/* ───────────────────────────────────────────────────────────────────────────
   Fokhrul Islam — fokhrul.otterchain.com
   Built against DESIGN_BRIEF.md. Palette is sampled outward from the portrait
   (grey suit, warm neutral backdrop) so he sits IN the page, not on it.

   Two colour rules the whole look depends on:
     • GOLD IS A LINE, NEVER A FILL. Gold as a button background reads as a
       cheap awards badge. It appears only as 1px rules, eyebrows, icon strokes.
     • EMERALD IS FOR NUMBERS ONLY. The moment it leaks onto body copy or
       borders, the "money" signal dilutes and the numerals stop meaning
       anything.
   ─────────────────────────────────────────────────────────────────────────── */

:root {
  --ink:        #0E1014;
  --ink-2:      #161A21;
  --ink-3:      #1F242E;
  --ivory:      #F4F1EA;
  --ivory-2:    #EAE5DA;
  --muted:      #A2A8B4;
  --muted-dark: #5C616C;
  --gold:       #C9A961;
  --gold-soft:  #E4D3A6;
  --emerald:    #2FBF8F;
  --suit:       #8C919B;

  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          Helvetica, Arial, "Apple Color Emoji", sans-serif;

  --wrap: min(1160px, 92vw);
  --prose: 68ch;
  --pad-y: clamp(5rem, 10vw, 8.5rem);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ── reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ivory);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
/* The UA default is `figure { margin: 1em 40px }`. Left in place it silently
   steals 80px of width from every figure — which is what made the About
   portrait render tall and narrow at only a third of the content width. */
figure { margin: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; letter-spacing: -0.025em; font-weight: 800; }
p { margin: 0; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── layout primitives ─────────────────────────────────────────────────── */
.wrap { width: var(--wrap); margin-inline: auto; }
.section { padding-block: var(--pad-y); position: relative; }

/* Sections alternate dark / ivory. The seam between them is a HARD 1px gold
   hairline, never a gradient — a deliberate edge reads expensive, a soft fade
   reads like a template. */
.section--light { background: var(--ivory); color: var(--ink); }
.section--light + .section--dark,
.section--dark  + .section--light,
.section--light { border-top: 1px solid var(--gold); }
.section--dark  { background: var(--ink); border-top: 1px solid var(--ink-3); }

.eyebrow {
  font-size: .75rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold);
  display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem;
}
.eyebrow::after {
  content: ''; flex: 1; height: 1px; max-width: 4rem;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.eyebrow--center { justify-content: center; }
.eyebrow--center::before {
  content: ''; flex: 1; height: 1px; max-width: 4rem;
  background: linear-gradient(270deg, var(--gold), transparent);
}

h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }

.lead {
  font-size: 1.25rem; line-height: 1.6; letter-spacing: -0.01em;
  color: var(--muted); max-width: var(--prose);
}
.section--light .lead { color: #4A505C; }
.prose { max-width: var(--prose); }

.num {
  font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 800;
  letter-spacing: -0.02em; color: var(--emerald);
  font-variant-numeric: tabular-nums;
}

/* ── icons ─────────────────────────────────────────────────────────────── */
/* One base, sized in `em` so an icon always matches the text it prefixes, and
   stroked with `currentColor` so a single hover rule recolours icon + label
   together. Every icon on the page comes from the sprite at the top of <body>. */
.ico {
  width: 1em; height: 1em; flex: none;
  fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}

/* ── buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.7rem; border-radius: 999px;
  font-size: .95rem; font-weight: 650; letter-spacing: -0.01em;
  text-decoration: none; transition: transform .25s var(--ease),
    background-color .25s ease, border-color .25s ease, color .25s ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--ivory); color: var(--ink); }
.btn--primary:hover { background: #fff; }
.btn--ghost {
  border: 1px solid rgba(201,169,97,.45); color: var(--gold-soft);
}
.btn--ghost:hover { border-color: var(--gold); background: rgba(201,169,97,.08); }
.section--light .btn--primary { background: var(--ink); color: var(--ivory); }
.section--light .btn--ghost { border-color: rgba(14,16,20,.25); color: var(--ink); }
.section--light .btn--ghost:hover { border-color: var(--ink); background: rgba(14,16,20,.05); }
.btn__arrow { transition: transform .25s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ── nav ───────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 100;
  transition: background-color .35s ease, border-color .35s ease, backdrop-filter .35s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(14,16,20,.82);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--ink-3);
}
.nav__inner { display: flex; align-items: center; gap: 2rem; height: 76px; }
.nav__mark {
  font-weight: 800; letter-spacing: -0.03em; font-size: 1.05rem;
  text-decoration: none; display: flex; align-items: baseline; gap: .5rem;
}
.nav__mark span { color: var(--gold); font-weight: 500; }
.nav__links { display: flex; gap: 2rem; margin-left: auto; }
.nav__links a {
  text-decoration: none; font-size: .9rem; color: var(--muted);
  transition: color .2s ease; position: relative;
}
.nav__links a::after {
  content: ''; position: absolute; left: 0; bottom: -5px; height: 1px; width: 0;
  background: var(--gold); transition: width .3s var(--ease);
}
.nav__links a:hover { color: var(--ivory); }
.nav__links a:hover::after { width: 100%; }
.nav .btn { padding: .6rem 1.2rem; font-size: .85rem; }

/* ── hero ──────────────────────────────────────────────────────────────── */
.hero {
  position: relative; padding-top: clamp(8rem, 16vw, 11rem);
  padding-bottom: clamp(4rem, 8vw, 6rem); overflow: hidden;
}
/* Ambient light lives here, on the page — not on each section. A radial with
   non-zero alpha at a section edge would draw a visible line there. */
.hero::before {
  content: ''; position: absolute; inset: -20% -10% auto -10%; height: 120%;
  background:
    radial-gradient(52% 46% at 72% 26%, rgba(201,169,97,.13), transparent 70%),
    radial-gradient(44% 40% at 18% 68%, rgba(47,191,143,.07), transparent 72%);
  pointer-events: none;
}
.hero__grid {
  position: relative; display: grid; gap: clamp(2.5rem, 5vw, 4.5rem);
  grid-template-columns: 1.15fr .85fr; align-items: center;
}
.hero__title { margin-bottom: 1.6rem; }
.hero__title em {
  font-style: normal; color: var(--gold-soft);
  /* A hand-drawn-feeling underline: thin, gold, offset — the one flourish. */
  background-image: linear-gradient(90deg, var(--gold), rgba(201,169,97,.35));
  background-repeat: no-repeat; background-size: 100% 2px;
  background-position: 0 92%; padding-bottom: .06em;
}
.hero__lead { margin-bottom: 2.4rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.6rem; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 1.5rem 2.25rem;
  padding-top: 2rem; border-top: 1px solid var(--ink-3);
}
.hero__meta div { min-width: 6.5rem; }
/* `.hero__meta span` below is (0,1,1) and would otherwise beat the plain `.num`
   rule (0,1,0) on colour — which silently rendered these numerals grey instead
   of emerald. Re-declare colour here at (0,2,0) so the money colour wins. */
.hero__meta .num {
  font-size: 1.55rem; display: block; color: var(--emerald);
  letter-spacing: -0.02em; text-transform: none;
}
.hero__meta span {
  font-size: .74rem; color: var(--muted-dark); letter-spacing: .08em;
  text-transform: uppercase; font-weight: 600; line-height: 1.45;
}

/* Portrait: framed by a gold hairline offset behind it, so the frame reads as
   deliberate craft rather than a border stuck on the image. */
/* Capped at 340px, not 420px: this is a supporting portrait, not the
   headline. At the old size it competed with the h1 for the eye on every
   widescreen — the hero is about what he says. */
.portrait { position: relative; justify-self: center; width: min(100%, 340px); }
.portrait__frame {
  position: absolute; inset: 1.4rem -1.4rem -1.4rem 1.4rem;
  border: 1px solid rgba(201,169,97,.55); border-radius: 4px; pointer-events: none;
}
.portrait__img {
  position: relative; border-radius: 4px; overflow: hidden;
  background: var(--ink-2);
  box-shadow: 0 40px 80px -24px rgba(0,0,0,.75);
}
.portrait__img img { width: 100%; height: auto; }
/* Blend the photo's warm backdrop into the page instead of leaving a hard
   rectangle of studio grey floating on near-black. */
.portrait__img::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(14,16,20,.30) 0%, transparent 26%,
              transparent 62%, rgba(14,16,20,.55) 100%);
}
.portrait__tag {
  position: absolute; left: -1.1rem; bottom: 2.2rem; z-index: 2;
  background: var(--ink-2); border: 1px solid var(--ink-3);
  border-left: 2px solid var(--gold);
  padding: .7rem 1.1rem; border-radius: 3px;
  box-shadow: 0 20px 40px -18px rgba(0,0,0,.9);
}
.portrait__tag strong { display: block; font-size: .95rem; letter-spacing: -0.01em; }
.portrait__tag span { font-size: .74rem; color: var(--muted); letter-spacing: .04em; }

/* ── capability strip ──────────────────────────────────────────────────── */
.strip { border-block: 1px solid var(--ink-3); background: var(--ink-2); }
.strip__inner { padding-block: 2.5rem; }
.strip__label {
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted-dark); font-weight: 600; margin-bottom: 1.4rem; text-align: center;
}
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem .7rem; }
.chip {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem 1.1rem; border-radius: 999px;
  border: 1px solid rgba(201,169,97,.28);
  font-size: .87rem; color: var(--ivory-2); white-space: nowrap;
  transition: border-color .25s ease, background-color .25s ease, transform .25s var(--ease);
}
.chip .ico { font-size: 15px; color: var(--gold); transition: color .25s ease; }
.chip:hover {
  border-color: var(--gold); background: rgba(201,169,97,.07); transform: translateY(-2px);
}
.chip:hover .ico { color: var(--gold-soft); }

/* ── generic section head ──────────────────────────────────────────────── */
.head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.head--center { text-align: center; }
.head--center .lead { margin-inline: auto; }
.head h2 { margin-bottom: 1.1rem; }

/* ── the leak (problem) ────────────────────────────────────────────────── */
.leak__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.leak__card {
  padding: 2rem 1.75rem; border: 1px solid rgba(14,16,20,.12);
  border-radius: 4px; background: rgba(255,255,255,.5);
  border-top: 2px solid var(--gold);
  transition: transform .3s var(--ease), box-shadow .3s ease;
}
.leak__card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(14,16,20,.4); }
.leak__icon {
  width: 42px; height: 42px; border-radius: 4px; margin-bottom: 1.2rem;
  display: grid; place-items: center; font-size: 20px;
  background: rgba(201,169,97,.14); border: 1px solid rgba(201,169,97,.4);
  color: #A8863B;
}
.leak__card h3 { margin-bottom: .7rem; }
.leak__card p { color: #4A505C; font-size: .98rem; }

/* ── services ──────────────────────────────────────────────────────────── */
.svc__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.svc {
  position: relative; padding: 2.1rem 1.9rem 2.3rem;
  background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: 5px;
  overflow: hidden; transition: transform .32s var(--ease),
    border-color .32s ease, box-shadow .32s ease;
}
.svc::before {
  content: ''; position: absolute; inset-inline: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0; transition: opacity .32s ease;
}
.svc:hover {
  transform: translateY(-5px); border-color: rgba(201,169,97,.4);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.85);
}
.svc:hover::before { opacity: 1; }
.svc__icon {
  width: 44px; height: 44px; border-radius: 4px; margin-bottom: 1.4rem;
  display: grid; place-items: center; font-size: 21px;
  background: rgba(201,169,97,.1); border: 1px solid rgba(201,169,97,.25);
  color: var(--gold);
  transition: background-color .32s ease, border-color .32s ease, color .32s ease;
}
.svc:hover .svc__icon {
  background: rgba(201,169,97,.16); border-color: rgba(201,169,97,.5); color: var(--gold-soft);
}
.svc h3 { margin-bottom: .65rem; }
.svc p { color: var(--muted); font-size: .96rem; }
.svc__list { margin-top: 1.2rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.svc__list li {
  font-size: .76rem; color: var(--muted-dark); padding: .25rem .6rem;
  border: 1px solid var(--ink-3); border-radius: 3px;
}

/* ── method ────────────────────────────────────────────────────────────── */
.method { counter-reset: step; }
.method__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.method__step {
  counter-increment: step; padding: 2.2rem 1.6rem;
  border-left: 1px solid rgba(14,16,20,.12); position: relative;
}
.method__step:first-child { border-left: 0; padding-left: 0; }
.method__step::before {
  content: counter(step, decimal-leading-zero);
  display: block; font-size: .8rem; font-weight: 700; letter-spacing: .15em;
  color: var(--gold); margin-bottom: 1rem;
}
.method__icon {
  width: 38px; height: 38px; border-radius: 4px; margin-bottom: .9rem;
  display: grid; place-items: center; font-size: 18px;
  background: rgba(201,169,97,.14); border: 1px solid rgba(201,169,97,.4);
  color: #A8863B;
}
.method__step h3 { margin-bottom: .6rem; }
.method__step p { color: #4A505C; font-size: .95rem; }

/* ── metrics ───────────────────────────────────────────────────────────── */
.metrics__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.metric {
  padding: 2rem 1.6rem; background: var(--ink-2);
  border: 1px solid var(--ink-3); border-radius: 5px;
  border-bottom: 2px solid rgba(47,191,143,.4);
}
.metric__k {
  display: flex; align-items: center; gap: .55rem;
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); font-weight: 650; margin-bottom: .9rem;
}
.metric__k .ico { font-size: 17px; }
.metric .num { display: block; line-height: 1; margin-bottom: .8rem; font-size: 1.05rem;
  letter-spacing: .02em; text-transform: uppercase; }
.metric p { font-size: .93rem; color: var(--muted); }

/* ── work / selected case studies ──────────────────────────────────────── */
.work__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }

/* The whole card is one button: the click target, the focus ring and the hover
   state are the same element, so there is no "which bit do I click" ambiguity
   and keyboard users get the card for free. */
.work__open {
  display: flex; flex-direction: column; width: 100%; height: 100%;
  text-align: left; font: inherit; color: inherit; cursor: pointer;
  background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: 5px;
  padding: 0; overflow: hidden; position: relative;
  transition: transform .38s var(--ease), border-color .38s ease, box-shadow .38s ease;
}
.work__open::after {                       /* gold sweep along the top edge */
  content: ''; position: absolute; inset-inline: 0; top: 0; height: 1px; z-index: 2;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0); transition: transform .5s var(--ease);
}
.work__open:hover, .work__open:focus-visible {
  transform: translateY(-6px); border-color: rgba(201,169,97,.45);
  box-shadow: 0 34px 66px -32px rgba(0,0,0,.9);
}
.work__open:hover::after, .work__open:focus-visible::after { transform: scaleX(1); }
.work__open:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Proof shot runs full-bleed to the card edge. Fixed aspect + object-fit:cover
   so six dashboards of different native ratios still line the rows up;
   `top left` keeps the headline metric — always upper-left in these
   screenshots — inside the crop. */
.work__shot {
  display: block; position: relative; aspect-ratio: 16 / 9;
  overflow: hidden; background: #fff; border-bottom: 1px solid var(--ink-3);
}
.work__shot img {
  width: 100%; height: 100%; object-fit: cover; object-position: top left;
  display: block; transition: transform .6s var(--ease), filter .4s ease;
}
.work__open:hover .work__shot img,
.work__open:focus-visible .work__shot img { transform: scale(1.045); }

/* Magnifier badge — the affordance that says "this opens". */
.work__zoom {
  position: absolute; right: .75rem; bottom: .75rem; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(14,16,20,.82); border: 1px solid rgba(201,169,97,.45);
  backdrop-filter: blur(4px);
  opacity: 0; transform: translateY(6px) scale(.9);
  transition: opacity .3s ease, transform .3s var(--ease);
}
.work__zoom svg {
  width: 16px; height: 16px; stroke: var(--gold-soft); fill: none;
  stroke-width: 1.7; stroke-linecap: round;
}
.work__open:hover .work__zoom,
.work__open:focus-visible .work__zoom { opacity: 1; transform: translateY(0) scale(1); }

.work__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: .75rem; padding: 1.5rem 1.7rem .75rem;
}
.work__sector {
  font-size: .72rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--gold); font-weight: 650;
}
.work__src { font-size: .69rem; color: var(--muted-dark); white-space: nowrap; }
.work__title {
  display: block; margin: 0 1.7rem .6rem; font-size: 1.12rem;
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; color: #fff;
}
.work__teaser { display: block; margin: 0 1.7rem; color: var(--muted); font-size: .92rem; }

/* Headline metrics sit at the CARD FOOT: the six cards carry different amounts
   of prose, and `margin-top:auto` keeps the numbers on one line across a row so
   it reads as a comparison rather than six essays. */
.work__results {
  margin: auto 1.7rem 0; padding: 1.5rem 0 1.1rem;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
}
.work__results dt {
  font-size: .66rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted-dark); font-weight: 600; margin-bottom: .3rem;
}
.work__results dd {
  font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em;
  color: var(--emerald); line-height: 1.1;
}
.work__num { display: block; }
.work__delta {
  display: block; margin-top: .18rem;
  font-size: .7rem; font-weight: 650; letter-spacing: .04em; color: var(--gold);
}
.work__more {
  display: flex; align-items: center; gap: .45rem;
  margin: 0 1.7rem; padding: .95rem 0 1.5rem;
  border-top: 1px solid var(--ink-3);
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  font-weight: 650; color: var(--muted-dark);
  transition: color .3s ease;
}
.work__open:hover .work__more,
.work__open:focus-visible .work__more { color: var(--gold-soft); }
.work__arrow { display: inline-block; transition: transform .35s var(--ease); }
.work__open:hover .work__arrow,
.work__open:focus-visible .work__arrow { transform: translateX(5px); }

.work__detail[hidden] { display: none; }
.work__note {
  margin-top: 2.2rem; font-size: .86rem; color: var(--muted-dark); text-align: center;
}

/* ── work detail dialog ────────────────────────────────────────────────── */
.wdlg[hidden] { display: none; }
.wdlg { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 1.5rem; }
.wdlg__scrim {
  position: absolute; inset: 0; background: rgba(6,7,10,.78);
  backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s ease;
}
.wdlg__panel {
  position: relative; width: min(880px, 100%); max-height: min(88vh, 900px);
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: 8px;
  box-shadow: 0 50px 100px -40px rgba(0,0,0,.95);
  opacity: 0; transform: translateY(24px) scale(.97);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.wdlg.is-open .wdlg__scrim { opacity: 1; }
.wdlg.is-open .wdlg__panel { opacity: 1; transform: none; }
.wdlg__panel:focus { outline: none; }
.wdlg__x {
  position: sticky; top: 0; float: right; margin: .8rem .8rem -2.6rem 0; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(14,16,20,.85); border: 1px solid var(--ink-3); cursor: pointer;
  backdrop-filter: blur(4px);
  transition: border-color .25s ease, background-color .25s ease, transform .25s var(--ease);
}
.wdlg__x svg { width: 16px; height: 16px; stroke: var(--muted); fill: none; stroke-width: 1.8; stroke-linecap: round; }
.wdlg__x:hover { border-color: var(--gold); transform: rotate(90deg); }
.wdlg__x:hover svg { stroke: var(--gold-soft); }
.wdlg__body { padding: 2.2rem 2.4rem 2.6rem; }

/* Content staggers in behind the panel so the dialog resolves in layers
   instead of arriving as one flat block. */
.wdlg__body > * { opacity: 0; transform: translateY(12px); }
.wdlg.is-open .wdlg__body > * {
  animation: wdlgIn .5s var(--ease) forwards;
}
.wdlg.is-open .wdlg__body > *:nth-child(1) { animation-delay: .10s; }
.wdlg.is-open .wdlg__body > *:nth-child(2) { animation-delay: .16s; }
.wdlg.is-open .wdlg__body > *:nth-child(3) { animation-delay: .22s; }
.wdlg.is-open .wdlg__body > *:nth-child(4) { animation-delay: .28s; }
.wdlg.is-open .wdlg__body > *:nth-child(5) { animation-delay: .34s; }
.wdlg.is-open .wdlg__body > *:nth-child(6) { animation-delay: .40s; }
@keyframes wdlgIn { to { opacity: 1; transform: none; } }

.work__d-sector {
  font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); font-weight: 650; margin-bottom: .5rem;
}
.work__d-sector span { color: var(--muted-dark); letter-spacing: .06em; }
.work__d-title {
  font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.15;
  letter-spacing: -0.03em; margin-bottom: 1.5rem;
}
.work__d-shot { margin-bottom: 1.6rem; }
.work__d-shot img {
  width: 100%; height: auto; display: block; border-radius: 5px;
  border: 1px solid var(--ink-3); background: #fff;
}
.work__d-shot figcaption {
  margin-top: .6rem; font-size: .76rem; color: var(--muted-dark); text-align: center;
}
.work__d-body p { color: var(--muted); font-size: .97rem; margin-bottom: .9rem; }
.work__d-body strong { color: #fff; font-weight: 700; }
.work__d-stats {
  margin: 1.6rem 0; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--ink-3); border: 1px solid var(--ink-3); border-radius: 5px;
  overflow: hidden;
}
.work__d-stats > div { background: var(--ink); padding: 1.1rem 1.2rem; }
.work__d-stats dt {
  font-size: .64rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted-dark); font-weight: 600; margin-bottom: .35rem;
}
.work__d-stats dd { font-size: 1.02rem; font-weight: 750; color: var(--gold-soft); letter-spacing: -0.01em; }
.work__d-skillhead {
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted-dark); font-weight: 650; margin-bottom: .7rem;
}
.work__d-skills ul { display: flex; flex-wrap: wrap; gap: .45rem; }
.work__d-skills li {
  font-size: .78rem; color: var(--gold-soft); padding: .32rem .7rem;
  border: 1px solid rgba(201,169,97,.28); border-radius: 3px;
  background: rgba(201,169,97,.06);
}

/* ── about ─────────────────────────────────────────────────────────────── *//* ── about ─────────────────────────────────────────────────────────────── */
.about__grid {
  /* The portrait column is CAPPED rather than a fraction. As a fraction it
     scaled with the viewport and grew until it competed with the copy for
     attention; the section is about what he says, the photograph is support.
     Fixed ceiling = the same considered size on every widescreen, with the
     text column absorbing the rest. */
  display: grid; grid-template-columns: minmax(0, 360px) 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center;
}
.about__img { position: relative; }
.about__img img {
  border-radius: 4px;
  /* Fill the column in BOTH axes. The source is a 512×728 portrait (0.70);
     framing it at 4/5 (0.80) makes it visibly wider without ever squashing
     him — `cover` crops instead of distorting, and the crop is pushed off the
     bottom by object-position so there is no chance of cutting his head. */
  width: 100%;
  /* `height: auto` is LOAD-BEARING. The <img> carries a height attribute, which
     maps to a presentational `height: 1000px`; aspect-ratio only decides the
     height when height is `auto`, so without this the ratio below is silently
     ignored and the portrait renders at the attribute's height (360×1000 —
     a very tall, thin strip). Remove this line and the framing breaks. */
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 22%;
}
.about__img::before {
  content: ''; position: absolute; inset: -1.2rem 1.2rem 1.2rem -1.2rem;
  border: 1px solid rgba(201,169,97,.5); border-radius: 4px;
}
.about__sig {
  margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid rgba(14,16,20,.12);
  display: flex; align-items: baseline; gap: .75rem;
}
.about__sig strong { font-size: 1.05rem; letter-spacing: -0.02em; }
.about__sig span { font-size: .85rem; color: #5C616C; }
.about p + p { margin-top: 1.15rem; }

/* ── faq ───────────────────────────────────────────────────────────────── */
.faq { max-width: 46rem; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--ink-3); }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding: 1.5rem 0; text-align: left;
  font-size: 1.05rem; font-weight: 650; letter-spacing: -0.015em;
  transition: color .2s ease;
}
.faq__q:hover { color: var(--gold-soft); }
.faq__lead { display: flex; align-items: center; gap: .85rem; min-width: 0; }
.faq__lead .ico { font-size: 19px; color: var(--gold); transition: color .2s ease; }
.faq__q:hover .faq__lead .ico,
.faq__q[aria-expanded="true"] .faq__lead .ico { color: var(--gold-soft); }
/* Keep the answer aligned under the question TEXT, not under its icon. */
.faq__a > div { padding-left: calc(19px + .85rem); }
.faq__icon {
  flex-shrink: 0; width: 22px; height: 22px; position: relative;
}
.faq__icon::before, .faq__icon::after {
  content: ''; position: absolute; inset: 50% 0 auto 0; height: 1px;
  background: var(--gold); transition: transform .3s var(--ease);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: rotate(0deg); }
.faq__a { overflow: hidden; height: 0; transition: height .34s var(--ease); }
.faq__a > div { padding-bottom: 1.6rem; color: var(--muted); max-width: 40rem; }

/* ── cta band ──────────────────────────────────────────────────────────── */
.cta { position: relative; overflow: hidden; text-align: center; }
.cta::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 70% at 50% 50%, rgba(201,169,97,.12), transparent 70%);
}
.cta__inner { position: relative; }
.cta h2 { margin-bottom: 1.2rem; }
.cta .lead { margin: 0 auto 2.4rem; }
.cta__row { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }
.cta__note { margin-top: 1.8rem; font-size: .85rem; color: var(--muted-dark); }

/* ── socials ───────────────────────────────────────────────────────────── */
/* Outlined circles, not gold-filled pills — same rule as everywhere else: gold
   is a LINE. The icon inherits `currentColor`, so one hover rule lifts the
   border and the glyph together. Hit area is 44px (touch-target minimum) while
   the visible circle stays 42px. */
.socials { display: flex; align-items: center; gap: .6rem; }
.socials a {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(201,169,97,.32);
  color: var(--muted);
  transition: color .25s ease, border-color .25s ease,
              background-color .25s ease, transform .25s var(--ease);
}
.socials svg { width: 18px; height: 18px; display: block; }
.socials a:hover {
  color: var(--gold-soft); border-color: var(--gold);
  background: rgba(201,169,97,.08); transform: translateY(-2px);
}
.section--light .socials a { border-color: rgba(14,16,20,.18); color: #5C616C; }
.section--light .socials a:hover {
  color: var(--ink); border-color: rgba(14,16,20,.5); background: rgba(14,16,20,.05);
}

/* The contact section's secondary route — quieter than the two buttons above it. */
.cta__socials {
  margin-top: 2.6rem; padding-top: 2rem;
  border-top: 1px solid var(--ink-3);
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.cta__socials > span {
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted-dark); font-weight: 600;
}

/* ── direct contact details ────────────────────────────────────────────── */
/* The address and number in plain, selectable text — a mailto: button alone
   is a dead end for anyone without a configured mail client. */
.contact-direct {
  margin-top: 2rem; display: flex; flex-wrap: wrap;
  justify-content: center; gap: .75rem 2.25rem;
}
.contact-direct li { display: flex; align-items: center; gap: .6rem; }
.contact-direct .ico { font-size: 17px; color: var(--gold); }
.contact-direct a {
  font-size: .98rem; color: var(--ivory-2); text-decoration: none;
  border-bottom: 1px solid rgba(201,169,97,.35);
  padding-bottom: 1px; transition: color .2s ease, border-color .2s ease;
  /* An email address must never be broken across lines mid-word. */
  word-break: break-word;
}
.contact-direct a:hover { color: #fff; border-bottom-color: var(--gold); }

.foot__contact { display: flex; flex-direction: column; gap: .55rem; }
.foot__contact li { display: flex; align-items: center; gap: .55rem; }
.foot__contact .ico { font-size: 15px; color: var(--gold); }
.foot__contact a {
  font-size: .86rem; color: var(--muted); text-decoration: none;
  transition: color .2s ease;
}
.foot__contact a:hover { color: var(--ivory); }

/* NOTE: the WhatsApp symbol carries `fill="currentColor" stroke="none"` as
   presentation attributes on its own path. A declaration ON the element beats an
   INHERITED one, so it correctly opts out of `.ico`'s stroke with no extra rule. */

/* ── footer ────────────────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--ink-3); padding-block: 3rem; background: var(--ink); }
.foot__inner {
  display: flex; flex-wrap: wrap; gap: 1.75rem 2.5rem;
  align-items: center; justify-content: space-between;
}
.foot__name { flex: 1 1 22rem; }
.foot__name { font-weight: 800; letter-spacing: -0.02em; }
.foot__name span { display: block; font-weight: 400; font-size: .84rem; color: var(--muted-dark); margin-top: .3rem; letter-spacing: 0; }
.foot__meta { font-size: .82rem; color: var(--muted-dark); text-align: right; }

/* ── scroll reveal ─────────────────────────────────────────────────────── */
/* PROGRESSIVE ENHANCEMENT: the hidden state is scoped to `.js`, which the inline
   snippet in <head> sets. If the script is blocked, fails, or the browser is old,
   `.js` is never added and every section renders visible — a broken script must
   never leave the page blank below the fold. */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .62s var(--ease), transform .62s var(--ease);
}

/* ── responsive ────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .portrait { order: -1; width: min(100%, 290px); }
  .about__grid { grid-template-columns: 1fr; }
  .about__img { max-width: 300px; margin-inline: auto; }
  .leak__grid, .svc__grid, .work__grid { grid-template-columns: repeat(2, 1fr); }
  .work__d-stats { grid-template-columns: repeat(2, 1fr); }
  .wdlg__body { padding: 1.8rem 1.6rem 2rem; }
  .method__grid { grid-template-columns: repeat(2, 1fr); }
  .method__step:nth-child(3) { border-left: 0; padding-left: 0; }
  .metrics__grid { grid-template-columns: repeat(2, 1fr); }
  .nav__links { display: none; }
}
@media (max-width: 620px) {
  /* Nav has to survive a 390px viewport: the name-mark and the CTA were each
     wrapping onto two lines and colliding. Drop the "/ Growth" suffix, stop the
     mark wrapping, and shrink the button rather than let it fold. */
  .nav__inner { height: 64px; gap: 1rem; }
  .nav__mark { font-size: .95rem; white-space: nowrap; }
  .nav__mark span { display: none; }
  .nav .btn { padding: .5rem .95rem; font-size: .8rem; white-space: nowrap; }

  .leak__grid, .svc__grid, .method__grid, .metrics__grid, .work__grid { grid-template-columns: 1fr; }
  .wdlg { padding: 0; }
  .wdlg__panel { max-height: 100vh; height: 100%; width: 100%; border-radius: 0; border: 0; }
  .work__d-stats { grid-template-columns: 1fr 1fr; }
  .method__step { border-left: 0; padding-left: 0; padding-block: 1.6rem;
    border-top: 1px solid rgba(14,16,20,.12); }
  .method__step:first-child { border-top: 0; padding-top: 0; }
  .hero__meta { gap: 1.25rem 1.75rem; }
  .portrait__tag { left: 0; }
  .foot__inner { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .foot__meta { text-align: left; }
  .foot__name { flex: 1 1 auto; }
  .cta__socials { margin-top: 2rem; padding-top: 1.6rem; }
}

/* ── reduced motion ────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* The dialog still opens — it just arrives instead of animating in. */
  .wdlg__scrim, .wdlg__panel { transition: none; }
  .wdlg__panel { opacity: 1; transform: none; }
  .wdlg.is-open .wdlg__body > *, .wdlg__body > * { animation: none; opacity: 1; transform: none; }
  .work__open, .work__shot img, .work__zoom, .work__arrow, .work__open::after { transition: none; }
  .work__open:hover, .work__open:focus-visible { transform: none; }
  .work__open:hover .work__shot img, .work__open:focus-visible .work__shot img { transform: none; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ── print ─────────────────────────────────────────────────────────────── */
@media print {
  .nav, .cta__row, .portrait__frame { display: none; }
  body { background: #fff; color: #000; }
  .section--dark { background: #fff; color: #000; }
}
