/* ==========================================================================
   LIKHAAN AGGLOMERATES, INC. — alt-editorial system
   One stylesheet drives the whole site. Edit the :root variables to restyle.
   ========================================================================== */

:root{
  /* palette — warm editorial */
  --paper:      #f7f2e9;   /* cream paper */
  --paper-2:    #efe7d6;   /* deeper cream, alternating bands */
  --ink:        #1a1714;   /* warm near-black */
  --ink-soft:   #2a2520;   /* lifted ink for dark cards */
  --oxblood:    #6b1f1a;   /* the single accent */
  --oxblood-br: #8a2a22;   /* brighter oxblood for hover */
  --cream-dim:  #d9cdb8;   /* muted cream-on-dark */
  --muted:      #6f675b;   /* warm grey body-muted */
  --line:       #d7ccb8;   /* hairline on paper */
  --line-dk:    #3a342d;   /* hairline on ink */

  /* type */
  --sans: "Helvetica Neue LT Std","Helvetica Neue",Helvetica,Arial,sans-serif;

  /* metrics */
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- reset ---------- */
*,*::before,*::after{ box-sizing:border-box; margin:0; padding:0; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
body{
  font-family:var(--sans);
  background:var(--paper);
  color:var(--ink);
  line-height:1.5;
  font-weight:400;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }

/* subtle paper grain overlay */
body::before{
  content:""; position:fixed; inset:0; z-index:1; pointer-events:none;
  opacity:.035; mix-blend-mode:multiply;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- layout helpers ---------- */
.wrap{ width:100%; max-width:var(--wrap); margin-inline:auto; padding-inline:var(--gutter); }
.band{ position:relative; z-index:2; padding-block:clamp(64px,9vw,140px); }
.band--paper2{ background:var(--paper-2); }
.band--ink{ background:var(--ink); color:var(--paper); }
.band--ink .eyebrow{ color:#c98a82; }
.band--ink .muted{ color:var(--cream-dim); }
.band--tight{ padding-block:clamp(48px,6vw,90px); }

/* ---------- editorial type ---------- */
.eyebrow{
  font-size:.72rem; font-weight:700; letter-spacing:.26em; text-transform:uppercase;
  color:var(--oxblood); display:inline-flex; align-items:center; gap:.7em;
}
.eyebrow::before{ content:""; width:26px; height:2px; background:currentColor; display:inline-block; }
.eyebrow.no-tick::before{ display:none; }

.secnum{
  font-size:clamp(2.6rem,6vw,4.4rem); font-weight:800; line-height:.9;
  color:var(--oxblood); letter-spacing:-.02em; font-feature-settings:"tnum";
}

h1,h2,h3{ font-weight:800; letter-spacing:-.025em; line-height:1.02; }
.display{ font-size:clamp(2.6rem,7.2vw,6rem); font-weight:800; letter-spacing:-.035em; line-height:.98; }
.h-xl{ font-size:clamp(2rem,4.6vw,3.4rem); }
.h-lg{ font-size:clamp(1.6rem,3.2vw,2.4rem); }
.h-md{ font-size:clamp(1.2rem,2vw,1.5rem); letter-spacing:-.01em; }

.lede{ font-size:clamp(1.18rem,2.1vw,1.55rem); line-height:1.4; font-weight:400; max-width:30ch; }
.lede--wide{ max-width:46ch; }
p.body{ font-size:1.06rem; line-height:1.62; color:var(--ink); max-width:62ch; }
.band--ink p.body{ color:#e7ddca; }
.muted{ color:var(--muted); }
.measure{ max-width:62ch; }

/* frame statement (Klaff device) */
.frame{
  font-size:clamp(1.5rem,3.4vw,2.6rem); font-weight:700; letter-spacing:-.02em; line-height:1.12;
  padding-left:clamp(20px,2.4vw,34px); border-left:3px solid var(--oxblood);
  max-width:24ch;
}
.frame em{ font-style:normal; color:var(--oxblood); }
.band--ink .frame{ border-color:#c98a82; }
.band--ink .frame em{ color:#d98279; }

/* ---------- rules ---------- */
.rule{ height:1px; background:var(--line); border:0; width:100%; }
.band--ink .rule{ background:var(--line-dk); }
.rule--ox{ height:2px; background:var(--oxblood); width:60px; }

/* ---------- masthead ---------- */
.mast{
  position:sticky; top:0; z-index:50; background:var(--ink); color:var(--paper);
  border-bottom:1px solid var(--line-dk);
}
.mast-inner{ display:flex; align-items:center; justify-content:space-between; height:64px; }
.brand{ display:flex; align-items:baseline; gap:.55em; font-weight:800; letter-spacing:.02em; }
.brand .mark{ font-size:1.18rem; }
.brand .sub{ font-size:.62rem; letter-spacing:.32em; text-transform:uppercase; color:var(--cream-dim); font-weight:600; }
.brand .dot{ color:var(--oxblood); }
.nav{ display:flex; align-items:center; gap:clamp(16px,2.4vw,38px); }
.nav a{
  font-size:.74rem; letter-spacing:.18em; text-transform:uppercase; font-weight:600; color:var(--cream-dim);
  position:relative; padding-block:6px; transition:color .25s var(--ease);
}
.nav a::after{
  content:""; position:absolute; left:0; bottom:0; width:0; height:1.5px; background:var(--oxblood-br);
  transition:width .3s var(--ease);
}
.nav a:hover,.nav a[aria-current="page"]{ color:var(--paper); }
.nav a:hover::after,.nav a[aria-current="page"]::after{ width:100%; }
.nav a[aria-current="page"]::after{ background:var(--oxblood-br); }
.menu-btn{ display:none; background:none; border:0; color:var(--paper); cursor:pointer; font-size:.74rem;
  letter-spacing:.18em; text-transform:uppercase; font-weight:700; }

/* ---------- hero ---------- */
.hero{ background:var(--ink); color:var(--paper); position:relative; z-index:2; overflow:hidden; }
.hero .wrap{ padding-block:clamp(80px,15vh,180px) clamp(60px,11vh,130px); }
.hero-eyebrow{ color:#c98a82; }
.hero-display{ margin-top:.5em; max-width:18ch; }
.hero-display .ox{ color:var(--oxblood-br); }
.hero-sub{ margin-top:1.6em; font-size:clamp(1.05rem,1.8vw,1.35rem); color:#e7ddca; max-width:52ch; line-height:1.5; }
.hero-foot{ margin-top:clamp(40px,7vh,84px); display:flex; flex-wrap:wrap; gap:14px 40px; align-items:center; }
.hero-meta{ display:flex; gap:38px; flex-wrap:wrap; }
.hero-meta .mi{ }
.hero-meta .mi b{ display:block; font-size:.82rem; letter-spacing:.16em; text-transform:uppercase; color:var(--oxblood-br); font-weight:700; }
.hero-meta .mi span{ font-size:.92rem; color:var(--cream-dim); }
.hero-glow{ position:absolute; right:-12%; top:-20%; width:60vw; height:60vw; pointer-events:none;
  background:radial-gradient(circle, rgba(138,42,34,.30), transparent 62%); filter:blur(8px); }

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:.7em; font-size:.78rem; letter-spacing:.16em; text-transform:uppercase;
  font-weight:700; padding:15px 26px; border:1.5px solid var(--oxblood); color:var(--paper); background:var(--oxblood);
  transition:background .25s var(--ease), transform .25s var(--ease), color .25s var(--ease);
}
.btn:hover{ background:var(--oxblood-br); border-color:var(--oxblood-br); transform:translateY(-2px); }
.btn .arr{ transition:transform .3s var(--ease); }
.btn:hover .arr{ transform:translateX(5px); }
.btn--ghost{ background:transparent; color:var(--oxblood); }
.btn--ghost:hover{ background:var(--oxblood); color:var(--paper); }
.band--ink .btn--ghost{ color:var(--paper); border-color:#c98a82; }
.band--ink .btn--ghost:hover{ background:#c98a82; color:var(--ink); }

.txtlink{ font-weight:700; font-size:.82rem; letter-spacing:.12em; text-transform:uppercase; color:var(--oxblood);
  display:inline-flex; gap:.55em; align-items:center; border-bottom:1.5px solid transparent; padding-bottom:3px; transition:.25s var(--ease); }
.txtlink:hover{ border-color:var(--oxblood); gap:.85em; }
.band--ink .txtlink{ color:#d98279; }
.band--ink .txtlink:hover{ border-color:#d98279; }

/* ---------- section header pattern ---------- */
.sec-head{ display:grid; grid-template-columns:minmax(0,7ch) 1fr; gap:clamp(20px,4vw,60px); align-items:start; }
.sec-head .num-col{ }
.sec-head .head-col{ }
.sec-head .head-col .display,.sec-head .head-col .h-xl{ margin-top:.12em; }
@media(max-width:720px){ .sec-head{ grid-template-columns:1fr; gap:14px; } }

/* ---------- grids & cards ---------- */
.grid-2{ display:grid; grid-template-columns:repeat(2,1fr); gap:clamp(24px,3vw,48px); }
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:clamp(20px,2.4vw,36px); }
@media(max-width:860px){ .grid-2,.grid-3{ grid-template-columns:1fr; } }

.engine{ padding-top:26px; border-top:2px solid var(--ink); }
.band--ink .engine{ border-top-color:#c98a82; }
.engine .k{ font-size:.74rem; letter-spacing:.2em; text-transform:uppercase; color:var(--oxblood); font-weight:700; }
.band--ink .engine .k{ color:#d98279; }
.engine h3{ margin:.5em 0 .5em; font-size:clamp(1.25rem,2vw,1.6rem); }
.engine p{ color:var(--muted); font-size:1rem; line-height:1.58; }
.band--ink .engine p{ color:var(--cream-dim); }

/* practice / list rows */
.rows{ border-top:1px solid var(--line); }
.band--ink .rows{ border-top-color:var(--line-dk); }
.row{ display:grid; grid-template-columns:minmax(0,5ch) minmax(0,22ch) 1fr; gap:clamp(16px,3vw,48px);
  padding:clamp(22px,3vw,34px) 0; border-bottom:1px solid var(--line); align-items:baseline; transition:padding-left .3s var(--ease); }
.band--ink .row{ border-bottom-color:var(--line-dk); }
.row:hover{ padding-left:10px; }
.row .rn{ color:var(--oxblood); font-weight:800; font-size:1.05rem; font-feature-settings:"tnum"; }
.row .rt{ font-size:clamp(1.15rem,1.8vw,1.45rem); font-weight:700; letter-spacing:-.01em; }
.row .rd{ color:var(--muted); font-size:1rem; line-height:1.55; max-width:54ch; }
.band--ink .row .rd{ color:var(--cream-dim); }
@media(max-width:760px){ .row{ grid-template-columns:1fr; gap:8px; } .row .rn{ font-size:.9rem; } }

/* discipline chips */
.disc{ padding:22px 0 18px; border-top:2px solid var(--ink); }
.band--ink .disc{ border-top-color:#c98a82; }
.disc .dk{ font-size:1.2rem; font-weight:800; letter-spacing:-.01em; }
.disc .dd{ margin-top:.45em; color:var(--muted); font-size:.97rem; line-height:1.5; }
.band--ink .disc .dd{ color:var(--cream-dim); }

/* big quote band */
.bigframe{ font-size:clamp(1.8rem,4.6vw,3.6rem); font-weight:800; letter-spacing:-.03em; line-height:1.04; max-width:20ch; }
.bigframe .ox{ color:var(--oxblood-br); }

/* contact */
.cdl{ display:grid; grid-template-columns:auto 1fr; gap:.6em 2em; font-size:1.05rem; }
.cdl dt{ font-size:.74rem; letter-spacing:.18em; text-transform:uppercase; font-weight:700; color:var(--oxblood); padding-top:.35em; }
.band--ink .cdl dt{ color:#d98279; }
.cdl dd{ font-size:1.1rem; }
.field{ display:block; margin-bottom:18px; }
.field label{ display:block; font-size:.72rem; letter-spacing:.18em; text-transform:uppercase; font-weight:700; color:var(--muted); margin-bottom:8px; }
.field input,.field textarea{ width:100%; font-family:inherit; font-size:1rem; padding:13px 14px; background:var(--paper);
  border:1.5px solid var(--line); color:var(--ink); transition:border-color .2s var(--ease); }
.field input:focus,.field textarea:focus{ outline:none; border-color:var(--oxblood); }

/* ---------- footer ---------- */
.foot{ background:var(--ink); color:var(--cream-dim); position:relative; z-index:2; padding-block:clamp(54px,7vw,90px) 30px; }
.foot a:hover{ color:var(--paper); }
.foot-top{ display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:36px; padding-bottom:46px; border-bottom:1px solid var(--line-dk); }
@media(max-width:760px){ .foot-top{ grid-template-columns:1fr; gap:30px; } }
.foot h4{ font-size:.72rem; letter-spacing:.2em; text-transform:uppercase; color:#c98a82; font-weight:700; margin-bottom:16px; }
.foot ul{ list-style:none; display:flex; flex-direction:column; gap:10px; }
.foot ul a{ font-size:.95rem; }
.foot-brand .mark{ font-size:1.5rem; font-weight:800; color:var(--paper); letter-spacing:.01em; }
.foot-brand .dot{ color:var(--oxblood-br); }
.foot-brand p{ margin-top:14px; max-width:34ch; font-size:.95rem; line-height:1.55; }
.foot-bottom{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; padding-top:24px; font-size:.78rem; letter-spacing:.04em; }

/* ---------- reveal animation ---------- */
.reveal{ opacity:0; transform:translateY(22px); transition:opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in{ opacity:1; transform:none; }
.reveal.d1{ transition-delay:.08s } .reveal.d2{ transition-delay:.16s } .reveal.d3{ transition-delay:.24s }
.reveal.d4{ transition-delay:.32s } .reveal.d5{ transition-delay:.40s }
@media(prefers-reduced-motion:reduce){ .reveal{ opacity:1; transform:none; transition:none; } html{ scroll-behavior:auto; } }

/* hero load stagger */
.hero .stag{ opacity:0; transform:translateY(26px); animation:rise .9s var(--ease) forwards; }
.hero .stag.s1{ animation-delay:.05s } .hero .stag.s2{ animation-delay:.18s }
.hero .stag.s3{ animation-delay:.32s } .hero .stag.s4{ animation-delay:.46s }
@keyframes rise{ to{ opacity:1; transform:none; } }
@media(prefers-reduced-motion:reduce){ .hero .stag{ opacity:1; transform:none; animation:none; } }

/* ---------- mobile nav ---------- */
@media(max-width:820px){
  .menu-btn{ display:inline-block; }
  .nav{ position:fixed; inset:64px 0 auto 0; background:var(--ink); flex-direction:column; align-items:flex-start;
    gap:0; padding:8px var(--gutter) 26px; border-bottom:1px solid var(--line-dk);
    transform:translateY(-130%); transition:transform .4s var(--ease); }
  .nav.open{ transform:none; }
  .nav a{ width:100%; padding:16px 0; border-bottom:1px solid var(--line-dk); font-size:.9rem; }
  .nav a::after{ display:none; }
}

/* spacing utilities */
.mt-s{ margin-top:1rem } .mt-m{ margin-top:1.8rem } .mt-l{ margin-top:2.8rem } .mt-xl{ margin-top:4rem }
.maxr{ margin-left:auto }


/* ============================================================
   BRAND LOGOS
   ============================================================ */
.brand{ align-items:center; }
.brand-logo{ height:34px; width:auto; display:block; flex:0 0 auto; margin-right:.12em; }
.foot-logo{ height:48px; width:auto; display:block; margin-bottom:18px; }
.hero-top{ display:flex; justify-content:space-between; align-items:flex-start; gap:24px; flex-wrap:wrap; margin-bottom:.15em; }
.anniv{ height:clamp(64px,8.5vw,106px); width:auto; flex:0 0 auto; }
.inst-intro{ display:grid; grid-template-columns:minmax(0,230px) 1fr; gap:clamp(30px,5vw,72px); align-items:center; }
.inst-seal img{ width:100%; max-width:220px; height:auto; display:block; }
@media(max-width:760px){ .inst-intro{ grid-template-columns:1fr; gap:26px; } .inst-seal img{ max-width:170px; } }
@media(max-width:480px){ .brand .sub{ display:none; } .anniv{ height:60px; } }


/* Institute hero crest */
.inst-hero{ display:grid; grid-template-columns:auto 1fr; gap:clamp(28px,4vw,58px); align-items:center; }
.inst-crest{ height:clamp(116px,17vw,196px); width:auto; display:block; flex:0 0 auto; }
@media(max-width:680px){ .inst-hero{ grid-template-columns:1fr; gap:22px; } .inst-crest{ height:120px; } }


/* ============================================================
   IMAGERY — feature bands + media slots
   To use a REAL photo: replace the <img src> with your .jpg and
   (for the brand duotone) give the .media wrapper the class "photo".
   ============================================================ */
.feature{ position:relative; z-index:2; }
.feature-media{ position:relative; width:100%; height:clamp(320px,48vh,540px); overflow:hidden; background:var(--ink); }
.feature-media > img{ width:100%; height:100%; object-fit:cover; display:block; }
.feature-media::after{ content:""; position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(180deg, rgba(0,0,0,0) 34%, rgba(8,6,5,.80) 100%); }
.feature-cap{ position:absolute; left:0; right:0; bottom:0; z-index:2; padding-block:clamp(22px,4vw,50px); }
.feature-line{ font-size:clamp(1.5rem,3.4vw,2.8rem); font-weight:800; letter-spacing:-.025em;
  line-height:1.04; color:var(--paper); max-width:24ch; margin-top:.35em; }
/* generic media slot for real photos */
.media{ position:relative; overflow:hidden; background:var(--ink); }
.media > img{ width:100%; height:100%; object-fit:cover; display:block; transition:transform .9s var(--ease); }
.media:hover > img{ transform:scale(1.045); }
.media.ar-169{ aspect-ratio:16/9; } .media.ar-43{ aspect-ratio:4/3; } .media.ar-32{ aspect-ratio:3/2; }
.media.photo > img{ filter:grayscale(1) contrast(1.06) brightness(1.02); }
.media.photo::after{ content:""; position:absolute; inset:0; pointer-events:none; mix-blend-mode:multiply;
  background:linear-gradient(140deg, var(--oxblood) 0%, var(--ink) 100%); opacity:.58; }
