/* ============================================================
   MAJLIS CONSULTANCY — styled after subduxion.com
   LIGHT theme: off-white #f9f9f9 canvas · black #131313 text
   Inter typeface · generous whitespace · pill chips
   Sharp corners · gold accent (#a9863f) replacing Subduxion blue
   Dark CTA + dark footer bands
   ============================================================ */

:root {
  --bg:        #f9f9f9;   /* off-white canvas */
  --bg-2:      #f2f1ee;   /* slightly warmer panel */
  --surface:   #ffffff;   /* cards */
  --ink:       #131313;   /* near-black text */
  --ink-2:     #3a3a3a;
  --muted:     #6f6f6f;
  --muted-2:   #9a9a9a;
  --line:      #e4e2dd;   /* hairline on light */
  --line-2:    #d6d3cc;

  --dark:      #111111;   /* dark bands */
  --dark-2:    #181818;
  --dark-line: #2a2a2a;
  --on-dark:   #f4f1ea;
  --on-dark-dim:#aaa7a0;

  --gold:      #a9863f;   /* primary accent (was Subduxion blue) */
  --gold-2:    #c9a24b;
  --gold-deep: #80683b;
  --gold-soft: #efe7d4;

  --maxw: 1200px;
  --pad: clamp(20px, 5vw, 80px);

  --ff: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ff-mono: 'Roboto Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ff);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--gold); color: #fff; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.gold { color: var(--gold); }

/* ---------- Eyebrow (mono uppercase label) ---------- */
.eyebrow {
  font-family: var(--ff-mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 26px;
  overflow-wrap: break-word;
}
.eyebrow::before { content:''; width: 26px; height: 1px; background: var(--gold); display: inline-block; }
.eyebrow.is-plain::before { display: none; }
.eyebrow span { color: var(--muted-2); margin: 0 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 0;
  transition: all .35s var(--ease);
  cursor: pointer; white-space: nowrap; line-height: 1;
}
.btn .arr {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; transition: transform .35s var(--ease);
}
.btn:hover .arr { transform: translate(2px,-2px); }
.btn--solid { background: var(--gold); color: #fff; }
.btn--solid:hover { background: var(--gold-deep); }
.btn--ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }
/* on dark bands */
.on-dark .btn--ghost { border-color: var(--dark-line); color: var(--on-dark); }
.on-dark .btn--ghost:hover { border-color: var(--on-dark); }

/* small arrow box (subduxion's nav CTA) */
.btn--cta { background: var(--ink); color: #fff; padding: 10px 10px 10px 18px; gap: 14px; font-size: 14px; }
.btn--cta .arr { background: var(--gold); color: #fff; width: 26px; height: 26px; }
.btn--cta:hover { background: #000; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .4s var(--ease), border-color .4s var(--ease), box-shadow .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(249,249,249,0.85);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
}
.nav__inner { max-width: var(--maxw); margin: 0 auto; padding: 16px var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__logo { height: 30px; width: auto; }
.nav__links { display: flex; gap: 38px; }
.nav__links a {
  font-family: var(--ff-mono); font-size: 12.5px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink);
  position: relative; padding: 4px 0; transition: color .3s var(--ease);
}
.nav__links a::after { content:''; position:absolute; left:0; bottom:-2px; height:1px; width:0; background: var(--gold); transition: width .35s var(--ease); }
.nav__links a:hover { color: var(--gold); }
.nav__links a:hover::after { width: 100%; }
.nav__cta { display: flex; }

.nav__burger { display: none; background: none; border: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.nav__burger span { width: 24px; height: 2px; background: var(--ink); transition: .3s var(--ease); }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile { display: none; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--pad) 28px; }
.nav__mobile a { font-family: var(--ff-mono); font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); padding: 16px 0; border-bottom: 1px solid var(--line); }
.nav__mobile .btn { margin-top: 18px; justify-content: center; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: clamp(150px, 22vh, 230px) 0 clamp(70px, 10vh, 110px); overflow: hidden; }
.hero__glow {
  position: absolute; top: -8%; right: -6%; width: 720px; height: 620px;
  background: radial-gradient(ellipse at center, var(--gold-soft), transparent 62%);
  filter: blur(10px); pointer-events: none; z-index: 0; opacity: .8;
}
.hero .container { position: relative; z-index: 2; }

/* asymmetric editorial grid (matches subduxion):
   row 1: headline (left, wide)  |  small photo card (right)
   row 2: large photo (left)     |  paragraph + actions (right) */
.hero__grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  grid-template-areas:
    "head  card"
    "media aside";
  gap: clamp(24px, 3vw, 44px) clamp(28px, 4vw, 64px);
  align-items: start;
}
.hero__grid > * { min-width: 0; }   /* let images shrink to their grid track */
.hero__head  { grid-area: head; }
.hero__card  { grid-area: card; }
.hero__media { grid-area: media; }
.hero__aside { grid-area: aside; align-self: start; }

.hero__title { font-size: clamp(34px, 5vw, 62px); line-height: 1.04; font-weight: 600; letter-spacing: -0.04em; max-width: 16ch; overflow-wrap: break-word; }

/* fixed aspect ratios keep the grid cells from being stretched by the image */
.hero__card, .hero__media { margin: 0; overflow: hidden; border-radius: 12px; background: var(--bg-2); }
.hero__card  { aspect-ratio: 16 / 10; }
.hero__media { aspect-ratio: 16 / 9; }
.hero__card img, .hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.1s var(--ease); }
.hero__card:hover img, .hero__media:hover img { transform: scale(1.04); }

.hero__lede { font-size: clamp(15px, 1.5vw, 18px); color: var(--muted); line-height: 1.62; margin-bottom: 26px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Trusted-by auto-scrolling logo marquee (in hero aside) ---------- */
.trusted { margin-top: clamp(28px, 4vh, 44px); padding-top: clamp(22px, 3vh, 32px); border-top: 1px solid var(--line); }
.trusted__label { font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 18px; }

.marquee {
  position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex; align-items: center; gap: clamp(26px, 3vw, 44px);
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track img {
  height: 22px; width: auto; flex: none;
  opacity: 0.42; filter: grayscale(1);
  transition: opacity .3s var(--ease), filter .3s var(--ease);
}
.marquee__track img:hover { opacity: 0.9; filter: grayscale(0); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ============================================================
   PROBLEM — sentence reveals word-by-word, pain chips pop in
   around it on scroll (subduxion-style)
   ============================================================ */
.problem {
  position: relative;
  border-top: 1px solid var(--line);
  height: 230vh;                 /* tall = scroll distance to drive the reveal */
}
.problem__sticky {
  position: sticky; top: 0;
  height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 0 var(--pad);
  overflow: hidden;
}
.problem__statement {
  position: relative; z-index: 3;
  font-size: clamp(24px, 3.6vw, 46px); font-weight: 500;
  letter-spacing: -0.03em; line-height: 1.18; text-align: center;
  max-width: 22ch; margin: 0 auto;
}
.problem__statement .gold { color: var(--gold); }
/* word-by-word: each word wrapped in <span class="w"> by JS */
.problem__statement .w {
  display: inline-block;
  opacity: 0; transform: translateY(0.5em);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.problem__statement .w.is-in { opacity: 1; transform: none; }

/* scattered pain-point chips */
.pains { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.pain {
  position: absolute;
  display: inline-flex; align-items: center; gap: 11px;
  max-width: min(40vw, 320px);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 13px 18px;
  font-size: clamp(12px, 1.1vw, 15px); color: var(--ink-2); line-height: 1.35;
  box-shadow: 0 24px 50px -30px rgba(19,19,19,0.35);
  opacity: 0; transform: scale(.6) rotate(var(--rot, 0deg));
  transition: opacity .45s var(--ease), transform .55s cubic-bezier(0.34, 1.56, 0.64, 1);
}
/* warning-triangle icon (amber outline, like the alert chip) */
.pain__ico {
  flex: none; width: 20px; height: 20px;
  fill: none; stroke: var(--gold); stroke-width: 1.7;
  stroke-linejoin: round; stroke-linecap: round;
}
.pain__ico circle { fill: var(--gold); stroke: none; }
.pain.is-in { opacity: 1; transform: scale(1) rotate(var(--rot, 0deg)); }

/* scattered positions around the centered sentence */
.pain[data-pos="tl"] { top: 12%;  left: 6%;   --rot: -3deg; }
.pain[data-pos="tr"] { top: 16%;  right: 7%;  --rot:  3deg; }
.pain[data-pos="ml"] { top: 44%;  left: 3%;   --rot:  2deg; }
.pain[data-pos="mr"] { top: 50%;  right: 4%;  --rot: -2deg; }
.pain[data-pos="bl"] { bottom: 14%; left: 9%;  --rot:  3deg; }
.pain[data-pos="br"] { bottom: 11%; right: 8%; --rot: -3deg; }

@media (prefers-reduced-motion: reduce) {
  .problem { height: auto; }
  .problem__sticky { position: static; height: auto; padding: clamp(80px,12vh,140px) var(--pad); flex-direction: column; gap: 28px; }
  .problem__statement .w { opacity: 1; transform: none; }
  .pains { position: static; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }
  .pain { position: static; opacity: 1; transform: none; --rot: 0deg; }
}

/* ============================================================
   SECTIONS (generic)
   ============================================================ */
.section { padding: clamp(80px, 11vh, 140px) 0; border-top: 1px solid var(--line); }
.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: clamp(44px, 6vh, 72px); }
.section__head-l { max-width: 720px; }
.section__title { font-size: clamp(30px, 4.6vw, 56px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.04; }
.section__sub { margin-top: 22px; font-size: clamp(15px, 1.7vw, 18px); color: var(--muted); max-width: 580px; line-height: 1.65; }

/* ============================================================
   CARD GRID (capabilities / cases)
   ============================================================ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: clamp(26px, 2.4vw, 34px);
  display: flex; flex-direction: column; min-height: 360px;   /* taller — icon floats above, text anchored below */
  transition: border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 20px 50px -28px rgba(19,19,19,0.25); }
/* big 3D icon floated in the upper area, offset to the right (subduxion direction) */
.card__ico3d {
  width: clamp(96px, 9vw, 120px); height: clamp(96px, 9vw, 120px);
  display: block; align-self: flex-end;
  margin: -8px -14px 0 0;
  transition: transform .6s cubic-bezier(0.16, 1, 0.3, 1);
}
.card:hover .card__ico3d { transform: translateY(-5px) rotate(-2deg); }
/* text block anchored to the bottom */
.card__n { font-family: var(--ff-mono); font-size: 12px; color: var(--gold); letter-spacing: 0.08em; margin: auto 0 12px; }
.card h3, .card h4 { font-size: clamp(19px, 2vw, 23px); font-weight: 600; letter-spacing: -0.02em; margin-bottom: 14px; }
.card p { font-size: 14.5px; color: var(--muted); line-height: 1.62; }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.cards--4 .card { min-height: 300px; }
.section__more { margin-top: 44px; }

/* ============================================================
   ARMS — "hands-on" step row (subduxion methodology style):
   text-only steps with a small dot-grid motif, reveal on scroll
   ============================================================ */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
  border-top: 1px solid var(--line); padding-top: clamp(40px, 5vh, 64px);
}
.step { display: flex; flex-direction: column; }
/* small animated dot-grid motif (like subduxion's square cluster) */
.step__dots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; width: 46px; margin-bottom: 28px; }
.step__dots i { width: 100%; aspect-ratio: 1; background: var(--gold-soft); border: 1px solid rgba(169,134,63,0.3); border-radius: 3px; transition: background .4s var(--ease); }
.step:hover .step__dots i { background: var(--gold); border-color: var(--gold); }
.step__n { font-size: clamp(38px, 4.4vw, 56px); font-weight: 600; letter-spacing: -0.05em; color: var(--gold); line-height: 1; margin-bottom: 14px; }
.step__title { font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; letter-spacing: -0.03em; margin-bottom: 14px; }
.step__desc { color: var(--muted); font-size: 15px; line-height: 1.62; margin-bottom: 22px; }
.step__list { list-style: none; margin-top: auto; border-top: 1px solid var(--line); }
.step__list li {
  font-size: 14px; color: var(--ink-2);
  padding: 12px 0; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 11px;
}
.step__list li::before { content:''; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; flex: none; }
.step__list li:last-child { border-bottom: none; }
/* reveal: fade + rise (the .reveal hook drives it, staggered per step in JS) */

/* ============================================================
   METHOD (Envision/Blueprint style — numbered columns)
   ============================================================ */
.method__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: none; }
.mstep { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: clamp(26px, 2.4vw, 36px); transition: border-color .35s, transform .35s, box-shadow .35s; }
.mstep:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 20px 50px -30px rgba(19,19,19,0.25); }
.mstep__n { font-size: clamp(40px, 5vw, 64px); font-weight: 600; letter-spacing: -0.05em; color: var(--gold); line-height: 0.9; margin-bottom: 22px; }
.mstep__kicker { font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); display: block; margin-bottom: 8px; }
.mstep h3 { font-size: clamp(20px, 2.2vw, 26px); font-weight: 600; letter-spacing: -0.03em; margin-bottom: 12px; }
.mstep p { font-size: 14.5px; color: var(--muted); line-height: 1.62; }

/* ============================================================
   SECTORS (2x2 detail)
   ============================================================ */
.sectors { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.sectorcard { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: clamp(28px, 2.6vw, 40px); transition: border-color .35s, transform .35s, box-shadow .35s; }
.sectorcard:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 20px 50px -30px rgba(19,19,19,0.25); }
.sectorcard h4 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 14px; }
.sectorcard p { color: var(--muted); font-size: 14.5px; line-height: 1.62; }
.sectorcard__clients { margin-top: 18px; font-family: var(--ff-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gold); }

/* ============================================================
   CONCEPT (two column)
   ============================================================ */
.concept__inner { display: grid; grid-template-columns: 0.9fr 1.2fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.concept__right p { color: var(--ink-2); font-size: 17px; line-height: 1.72; margin-bottom: 22px; }
.concept__principles { list-style: none; margin-top: 34px; border-top: 1px solid var(--line); }
.concept__principles li { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.concept__principles li strong { color: var(--ink); font-weight: 600; }

/* ============================================================
   DARK CTA band  (subduxion's near-black "get in touch")
   ============================================================ */
.cta { background: var(--dark); color: var(--on-dark); padding: clamp(90px, 14vh, 170px) 0; }
.cta .eyebrow { color: var(--on-dark-dim); }
.cta .eyebrow::before { background: var(--gold); }
.cta__title { font-size: clamp(40px, 7vw, 92px); font-weight: 600; letter-spacing: -0.045em; line-height: 0.98; margin-bottom: 26px; max-width: 16ch; }
.cta__sub { max-width: 520px; color: var(--on-dark-dim); font-size: 18px; line-height: 1.65; margin-bottom: 40px; }

/* ============================================================
   FOOTER (dark)
   ============================================================ */
.footer { background: var(--dark-2); color: var(--on-dark); }
.footer__inner { display: grid; grid-template-columns: 1.3fr 2fr; gap: clamp(40px, 6vw, 90px); padding-top: clamp(60px, 9vh, 100px); padding-bottom: 60px; }
.footer__logo { height: 40px; width: auto; margin-bottom: 22px; }
.footer__tag { font-size: 20px; color: var(--on-dark); margin-bottom: 10px; letter-spacing: -0.02em; }
.footer__line { font-family: var(--ff-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-dim); }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer__col h5 { font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.footer__col a, .footer__addr { display: block; font-size: 14px; color: var(--on-dark-dim); margin-bottom: 13px; transition: color .3s var(--ease); line-height: 1.5; }
.footer__col a:hover { color: var(--on-dark); }
.footer__addr { color: var(--muted); }
.footer__bottom { border-top: 1px solid var(--dark-line); }
.footer__bottom-inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 24px; padding-bottom: 24px; flex-wrap: wrap; }
.footer__bottom-inner span { font-family: var(--ff-mono); font-size: 11.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }

/* ============================================================
   INTRO PRELOADER
   black screen → line 1 → line 2 → logo → reveal site
   (sequenced by JS adding .step-1 / .step-2 / .step-logo)
   ============================================================ */
.intro {
  position: fixed; inset: 0; z-index: 9999;
  background: #0d0d0d;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.intro__stage { position: relative; width: 100%; max-width: 1100px; padding: 0 24px; text-align: center; }

/* the rotating phrase lines + the logo all stack centered */
.intro__phrase, .intro__logo {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 100%;
}

/* phrase text — feeds in from below, all in the SAME centered position */
.intro__phrase {
  font-size: clamp(18px, 2.2vw, 30px);
  font-weight: 500; letter-spacing: -0.02em; color: #f4f1ea;
  opacity: 0; transform: translate(-50%, -22%);   /* start below center */
  transition: opacity .6s var(--ease), transform .7s var(--ease);
}
.intro__phrase.is-on  { opacity: 1; transform: translate(-50%, -50%); }   /* rise into place */
.intro__phrase.is-off { opacity: 0; transform: translate(-50%, -78%); }   /* continue upward out */

/* logo — original stacked lockup (gold dome over cream MAJLIS), sized small */
.intro__logo {
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translate(-50%, -22%);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.intro.step-logo .intro__logo { opacity: 1; transform: translate(-50%, -50%); }
.intro__mark { width: clamp(130px, 16vw, 200px); height: auto; filter: drop-shadow(0 4px 18px rgba(201,162,75,0.28)); }

/* leave animation — added by JS */
.intro.is-leaving { transform: translateY(-101%); transition: transform .9s var(--ease); pointer-events: none; }
.intro.is-done { display: none; }

body.intro-lock { overflow: hidden; }

/* FAIL-SAFE: if JS never runs/finishes, CSS auto-clears the overlay so the
   page can never get stuck on a black screen. JS normally dismisses earlier. */
.intro { animation: introFailsafe 0.1s linear 8s forwards; }
@keyframes introFailsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.intro.is-done { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .intro__phrase { display: none; }
  .intro__logo { opacity: 1 !important; transform: translate(-50%,-50%) !important; transition: none; }
  .intro.is-leaving { transition: none; opacity: 0; transform: none; }
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   INTERIOR PAGES
   ============================================================ */
.pagehead { position: relative; padding: clamp(150px, 24vh, 230px) 0 clamp(56px, 8vh, 96px); overflow: hidden; }
.pagehead__title { font-size: clamp(40px, 7vw, 84px); font-weight: 600; letter-spacing: -0.045em; line-height: 1; margin-bottom: 24px; max-width: 16ch; }
.pagehead__sub { max-width: 600px; font-size: clamp(16px, 1.9vw, 19px); color: var(--muted); line-height: 1.65; }

/* Service detail blocks */
.svc { border-top: 1px solid var(--line); padding: clamp(64px, 9vh, 110px) 0; }
.svc__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.svc__index { font-size: clamp(54px, 8vw, 104px); font-weight: 600; letter-spacing: -0.05em; color: var(--gold); line-height: 0.85; }
.svc__label { font-family: var(--ff-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); margin-top: 20px; line-height: 1.6; }
.svc__title { font-size: clamp(28px, 4vw, 44px); font-weight: 600; letter-spacing: -0.04em; margin-bottom: 18px; }
.svc__desc { color: var(--ink-2); font-size: 16.5px; line-height: 1.68; margin-bottom: 34px; max-width: 640px; }
.svc__sub { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.svc__cell { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 24px 26px; }
.svc__cell h5 { font-size: 16px; font-weight: 600; margin-bottom: 10px; letter-spacing: -0.01em; }
.svc__cell p { font-size: 13.5px; color: var(--muted); line-height: 1.6; }

/* About: values + vision/mission */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.valuecard { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: clamp(26px, 2.4vw, 36px); transition: border-color .35s, transform .35s, box-shadow .35s; }
.valuecard:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 20px 50px -30px rgba(19,19,19,0.25); }
.valuecard .card__n { color: var(--gold); }
.valuecard h4 { font-size: 20px; font-weight: 600; margin-bottom: 12px; letter-spacing: -0.02em; }
.valuecard p { font-size: 14px; color: var(--muted); line-height: 1.6; }

.vm { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.vmcard { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: clamp(36px, 4vw, 56px); }
.vmcard h3 { font-family: var(--ff-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 22px; }
.vmcard p { font-size: clamp(19px, 2.3vw, 27px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.4; color: var(--ink); }

/* Contact */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.contact__info p { color: var(--ink-2); font-size: 16.5px; line-height: 1.72; margin-bottom: 30px; max-width: 460px; }
.contact__rows { border-top: 1px solid var(--line); }
.crow { padding: 22px 0; border-bottom: 1px solid var(--line); }
.crow span { display: block; font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 8px; }
.crow a, .crow p { font-size: 17px; color: var(--ink); }
.crow a:hover { color: var(--gold); }

form.cform { display: flex; flex-direction: column; gap: 18px; }
.field label { display: block; font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 9px; }
.field input, .field textarea, .field select {
  width: 100%; background: var(--surface); border: 1px solid var(--line2, var(--line));
  color: var(--ink); font-family: var(--ff); font-size: 15px; padding: 14px 16px; border-radius: 8px;
  transition: border-color .3s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); }
.field textarea { resize: vertical; min-height: 130px; }
.cform .btn { align-self: flex-start; margin-top: 8px; }
.form-note { font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); min-height: 16px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .arms, .cards, .method__grid { grid-template-columns: 1fr 1fr; }
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .concept__inner { grid-template-columns: 1fr; }
  .svc__grid { grid-template-columns: 1fr; gap: 22px; }
  .values { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav__mobile.is-open { display: flex; }
  .footer__inner { grid-template-columns: 1fr; }
  .sectors, .vm, .contact__grid { grid-template-columns: 1fr; }
  .cards, .method__grid, .cards--4, .steps { grid-template-columns: 1fr; }
  .section__head { align-items: flex-start; }
  /* arms step-row stacks; show a divider between stacked steps */
  .steps { gap: 0; }
  .step { padding: 28px 0; border-bottom: 1px solid var(--line); }
  .step:first-child { padding-top: 0; }
  .step:last-child { border-bottom: none; }
  .step__list { margin-top: 18px; }
  /* hero stacks: headline → large photo → text+actions → card last */
  .hero__grid {
    grid-template-columns: 1fr;
    grid-template-areas: "head" "media" "aside" "card";
  }
  .hero__card { min-height: clamp(160px, 40vw, 220px); }

  /* PROBLEM on mobile: no scatter — sentence on top, chips stacked below.
     Still sticky+tall so the scroll-driven reveal (words → chips) works. */
  .problem { height: 200vh; }
  .problem__sticky {
    flex-direction: column; justify-content: center; align-items: center;
    gap: 26px; padding: 64px var(--pad); width: 100%; box-sizing: border-box;
  }
  .problem__statement {
    font-size: clamp(20px, 5vw, 26px); width: 100%; max-width: 100%; order: 0;
  }
  .pains {
    position: static; inset: auto; order: 1;
    display: flex; flex-direction: column; align-items: stretch; gap: 11px;
    width: 100%; max-width: 100%; margin: 0; pointer-events: auto;
  }
  .pain {
    position: static !important;
    top: auto !important; right: auto !important; bottom: auto !important; left: auto !important;
    width: 100%; max-width: 100%; box-sizing: border-box;
    --rot: 0deg;                 /* no tilt on mobile */
    transform: scale(.94) translateY(8px);
    box-shadow: 0 16px 36px -26px rgba(19,19,19,0.3);
  }
  .pain.is-in { transform: none; }
}
@media (max-width: 560px) {
  .values { grid-template-columns: 1fr; }
  .svc__sub { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__bottom-inner { flex-direction: column; gap: 8px; }
  .hero__title { font-size: clamp(34px, 9.6vw, 48px); letter-spacing: -0.03em; }
  .pagehead__title, .cta__title { letter-spacing: -0.035em; }
  .problem__statement, .section__title { letter-spacing: -0.03em; }
  .btn { font-size: 14px; padding: 13px 18px; }
  .section__head { gap: 18px; }
}
