/* ==========================================================================
   Salman Tanveer — Portfolio
   Warm editorial: paper background, serif display, forest-green accent.
   ========================================================================== */

:root {
  /* Color */
  --paper: #F5F1EA;
  --paper-2: #EDE7DC;
  --paper-3: #E4DCCD;
  --ink: #151412;
  --ink-2: #34312C;
  --muted: #6B665E;
  --line: #DAD2C4;
  --accent: #1E5B43;
  --accent-ink: #12402F;
  --accent-soft: #D7E5DA;
  --lime: #D9F07A;
  --clay: #F0DCCD;
  --sand: #E9DFC9;
  --sage: #DCE6DA;

  /* Type */
  --f-display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --f-body: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Layout */
  --container: 1240px;
  --gutter: clamp(16px, 5vw, 56px);
  --section-y: clamp(112px, 15vw, 200px);
  --radius: 22px;
  --radius-sm: 12px;
  --header-h: 72px;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
em { font-style: italic; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

section[id] { scroll-margin-top: calc(var(--header-h) - 1px); }
#enquiry { scroll-margin-top: calc(var(--header-h) + 24px); }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.mono {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 400;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { top: 16px; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 22px; border-radius: 999px;
  font-weight: 500; font-size: 15px; letter-spacing: -.005em;
  transition: transform .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--accent); }
.btn--ink:hover svg { transform: translateX(3px); }
.btn--small { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn--large { min-height: 56px; padding: 0 28px; font-size: 16px; }
.btn--block { width: 100%; }

.link-underline {
  position: relative; font-weight: 500; font-size: 15px; padding: 6px 0;
}
.link-underline::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: currentColor; transform-origin: right; transition: transform .45s var(--ease);
}
.link-underline:hover::after { transform: scaleX(0); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
/* The blur lives on a pseudo-element: backdrop-filter on the header itself would
   trap the fixed-position mobile menu inside the header's box. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.wordmark { font-family: var(--f-display); font-size: 26px; letter-spacing: -.01em; line-height: 1; }
.wordmark-dot { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 36px; font-size: 15px; }
.nav a:not(.btn) { color: var(--ink-2); position: relative; padding: 8px 0; transition: color .2s; }
.nav a:not(.btn):hover, .nav a.is-active { color: var(--ink); }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent); transform: translateX(-50%) scale(0); transition: transform .3s var(--ease);
}
.nav a.is-active::after { transform: translateX(-50%) scale(1); }

.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; position: relative; }
.menu-toggle span {
  position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink);
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; background: var(--paper);
  padding: 32px var(--gutter) 40px; display: flex; flex-direction: column; justify-content: space-between;
  overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  display: flex; align-items: baseline; gap: 16px;
  font-family: var(--f-display); font-size: 44px; line-height: 1.1;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.mobile-menu nav a .mono { color: var(--muted); }
.mobile-menu .btn { margin-top: 32px; font-size: 14px; }

/* ---------- Section scaffolding ---------- */
.section { padding-block: var(--section-y); }

.section-head { margin-bottom: clamp(56px, 8vw, 96px); }
.section-head--split {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px 64px; align-items: end;
}
.eyebrow {
  display: inline-flex; gap: 10px; align-items: center;
  font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 20px;
}
.eyebrow .mono { color: var(--accent); }
.section-title {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(44px, 6.4vw, 88px); line-height: 1; letter-spacing: -.02em;
}
.section-title em, .hero-title em, .contact-title em { color: var(--accent); }
.section-intro { color: var(--muted); max-width: 42ch; font-size: 17px; }

/* ---------- Hero ---------- */
.hero { padding-top: 0; }

/* The opening screen: exactly one viewport tall, so the chart always starts below the fold */
.hero-intro {
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex; flex-direction: column; justify-content: center;
  padding-block: clamp(32px, 5vh, 64px);
}

.hero-role {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px;
  font-size: 15px; font-weight: 500; color: var(--ink-2); letter-spacing: -.005em;
}
.hero-role-line { width: 32px; height: 1.5px; background: var(--accent); flex-shrink: 0; }
.hero-role-sep { color: var(--muted); font-weight: 400; }
.hero-role-part { white-space: nowrap; }

.hero-title {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(50px, 7.4vw, 116px); line-height: .96; letter-spacing: -.025em;
  max-width: 13ch;
}

/* Headline left, intro + CTA right, aligned to the headline's last line */
.hero-main {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px clamp(40px, 5vw, 80px);
  align-items: end; margin-top: clamp(28px, 3.5vw, 40px);
}

.hero-bottom { display: flex; flex-direction: column; gap: 32px; padding-bottom: .6em; }
.hero-lede { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); max-width: 54ch; line-height: 1.55; }
.hero-lede strong { color: var(--ink); font-weight: 600; }
.hero-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

/* Hero chart */
.hero-chart {
  margin-top: clamp(24px, 4vw, 48px);
  padding: clamp(20px, 3vw, 32px);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.hero-chart-head { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); flex-wrap: wrap; }
.hero-chart-legend { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); }
.hero-chart-legend::before { content: ""; width: 18px; height: 2px; background: var(--accent); border-radius: 2px; }
.hero-chart-plot { position: relative; height: clamp(150px, 20vw, 240px); margin-top: 24px; }
.hero-chart-plot .spark { width: 100%; height: 100%; overflow: visible; }
.hero-chart-axis {
  display: flex; justify-content: space-between; color: var(--muted); font-size: 11px;
  border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px;
}

.spark .grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 6; vector-effect: non-scaling-stroke; }
.spark .line {
  fill: none; stroke: var(--accent); stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.spark-wrap { position: relative; }
.spark-wrap .spark { width: 100%; height: 100%; overflow: visible; }
.peak-marker {
  position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: var(--accent); opacity: 0; transition: opacity .5s 2.1s var(--ease);
}
.peak-marker::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid var(--accent);
  animation: ring 2.4s var(--ease) infinite;
}
.is-drawn + .peak-marker, .spark.is-drawn ~ .peak-marker { opacity: 1; }
.cover--ink .peak-marker { background: var(--lime); }
.cover--ink .peak-marker::after { border-color: var(--lime); }
@keyframes ring { 0% { transform: scale(.5); opacity: .9; } 80%, 100% { transform: scale(1.8); opacity: 0; } }

.chart-note {
  position: absolute; display: flex; flex-direction: column; gap: 2px;
  font-size: 13px; color: var(--muted); line-height: 1.3;
  opacity: 0; transform: translateY(6px); transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.chart-note .mono { color: var(--ink); font-size: 13px; font-weight: 500; }
.chart-note--base { left: 38%; bottom: 22%; }
.chart-note--peak { right: 16%; top: -2%; align-items: flex-end; text-align: right; }
.chart-note--peak .mono { color: var(--accent); }
.hero-chart.is-visible .chart-note { opacity: 1; transform: none; }
.hero-chart.is-visible .chart-note--base { transition-delay: 1.2s; }
.hero-chart.is-visible .chart-note--peak { transition-delay: 2s; }


/* Stats */
.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(48px, 6vw, 72px);
  border-top: 1px solid var(--line);
}
.stat { padding: 28px 24px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat dt { font-size: 14px; color: var(--muted); max-width: 20ch; }
.stat dd {
  font-family: var(--f-display); font-size: clamp(44px, 5vw, 68px); line-height: 1; letter-spacing: -.02em;
  margin-top: 16px; font-variant-numeric: tabular-nums;
}

/* Marquee */
.marquee {
  margin-top: clamp(96px, 12vw, 160px);
  border-block: 1px solid var(--line);
  overflow: hidden; padding-block: 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; flex-shrink: 0; }
.marquee li {
  font-family: var(--f-display); font-size: clamp(24px, 3vw, 36px); line-height: 1.2;
  padding-inline: 28px; display: flex; align-items: center; gap: 56px; white-space: nowrap; color: var(--ink-2);
}
.marquee li::after { content: "✳"; font-family: var(--f-body); font-size: .5em; color: var(--accent); margin-left: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(48px, 8vw, 120px); align-items: start;
}
.portrait { position: sticky; top: calc(var(--header-h) + 32px); }
.portrait-frame {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden;
  background:
    radial-gradient(120% 80% at 20% 0%, var(--accent-soft), transparent 60%),
    var(--paper-3);
}
.portrait-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  color: var(--muted);
}
.portrait-initials { font-family: var(--f-display); font-size: clamp(96px, 12vw, 160px); line-height: 1; color: var(--accent); letter-spacing: -.03em; }
.portrait figcaption { color: var(--muted); margin-top: 16px; font-size: 11px; }

.about-copy > p { color: var(--ink-2); font-size: 18px; max-width: 58ch; }
.about-copy > p + p { margin-top: 20px; }
.about-copy strong { color: var(--ink); font-weight: 600; }
.about-lead {
  font-family: var(--f-display); font-size: clamp(30px, 3.4vw, 44px) !important; line-height: 1.15 !important;
  letter-spacing: -.01em; color: var(--ink) !important; margin-bottom: 36px; max-width: 24ch !important;
}


/* ---------- Work ---------- */
.work { background: var(--paper-2); border-block: 1px solid var(--line); }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px) clamp(24px, 3vw, 40px); }
.work-card--feature { grid-column: 1 / -1; }

.work-link { display: block; width: 100%; text-align: left; }
.work-link:focus-visible { outline-offset: 8px; border-radius: var(--radius); }

.cover {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3.1; padding: clamp(20px, 2.6vw, 32px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
  box-shadow: 0 0 0 1px rgba(21, 20, 18, .06);
}
.work-card--feature .cover { aspect-ratio: 16 / 6.6; }
.work-link:hover .cover { transform: translateY(-6px); box-shadow: 0 0 0 1px rgba(21, 20, 18, .06), 0 30px 60px -30px rgba(21, 20, 18, .35); }

.cover--ink { background: var(--ink); color: var(--paper); }
.cover--sage { background: var(--sage); }
.cover--sand { background: var(--sand); }
.cover--clay { background: var(--clay); }
.cover--paper { background: var(--paper); }

.cover-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cover-top .mono { opacity: .6; }
.chip {
  display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 500; border: 1px solid currentColor; opacity: .85; white-space: nowrap;
}

.cover-body { display: flex; flex-direction: column; gap: 22px; }
.work-card--feature .cover-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); align-items: end; gap: 40px; }
.cover-num {
  display: block; font-family: var(--f-display); line-height: .95; letter-spacing: -.025em;
  font-size: clamp(48px, 5.6vw, 84px);
}
.work-card--feature .cover-num { font-size: clamp(56px, 8vw, 128px); }
.cover-lbl { display: block; margin-top: 12px; font-size: 14px; opacity: .72; }

.cover--ink .spark .line { stroke: var(--lime); }
.cover--ink .spark .grid { stroke: rgba(245, 241, 234, .16); }
.cover-viz { width: 100%; height: clamp(110px, 14vw, 200px); overflow: visible; }
.work-card--feature .cover-viz { height: clamp(150px, 20vw, 280px); }

/* Horizontal comparison bars */
.viz-bars-h { display: grid; gap: 12px; }
.vb-row { display: grid; grid-template-columns: 124px 1fr 84px; align-items: center; gap: 12px; }
.vb-lbl, .vb-val { font-size: 11px; opacity: .75; }
.vb-val { text-align: right; opacity: 1; font-weight: 500; font-size: 12px; }
.vb-track { height: 12px; border-radius: 99px; background: rgba(21, 20, 18, .07); overflow: hidden; }
.vb-fill {
  display: block; height: 100%; width: var(--w); border-radius: 99px; background: var(--accent);
  transform-origin: left; transform: scaleX(0); transition: transform 1.2s .2s var(--ease);
}
.vb-fill--muted { background: rgba(21, 20, 18, .28); }
.is-visible .vb-fill { transform: scaleX(1); }

/* Column bars */
.viz-cols {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  height: clamp(100px, 10vw, 130px); padding-bottom: 22px;
}
.vc { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; }
.vc .mono { position: absolute; bottom: -22px; left: 0; right: 0; text-align: center; font-size: 10px; opacity: .7; }
.vc-bar {
  display: block; height: var(--h); border-radius: 8px 8px 3px 3px; background: rgba(21, 20, 18, .18);
  transform-origin: bottom; transform: scaleY(0); transition: transform 1s var(--ease);
}
.vc--hi .vc-bar { background: var(--accent); }
.vc:nth-child(3) .vc-bar { transition-delay: .08s; }
.vc:nth-child(4) .vc-bar { transition-delay: .16s; }
.vc:nth-child(5) .vc-bar { transition-delay: .24s; }
.is-visible .vc-bar { transform: scaleY(1); }
.vc-avg {
  position: absolute; left: 0; right: 0; bottom: calc(22px + (100% - 22px) * var(--h) / 100);
  border-top: 1.5px dashed var(--ink); z-index: 2; pointer-events: none;
}
.vc-avg .mono {
  position: absolute; left: 0; top: -20px; font-size: 10px; background: var(--sand); padding: 0 4px 0 0;
}

/* Area comparison */
.viz-area { display: flex; align-items: flex-end; gap: 28px; }
.va-item { display: flex; align-items: flex-end; gap: 12px; }
.va-item .mono { font-size: 10.5px; opacity: .75; line-height: 1.4; }
.va-sq { display: block; border-radius: 4px; }
.va-sq--small { width: 9px; height: 9px; background: var(--ink); }
.va-sq--big {
  width: clamp(88px, 9vw, 114px); aspect-ratio: 1; background: var(--accent);
  transform-origin: bottom left; transform: scale(.08); transition: transform 1.4s .2s var(--ease);
}
.is-visible .va-sq--big { transform: scale(1); }

/* Meta under cover */
.work-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding-top: 24px; }
.work-meta h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(28px, 2.6vw, 36px); line-height: 1.1; letter-spacing: -.01em; }
.work-meta p { color: var(--muted); margin-top: 8px; max-width: 52ch; font-size: 16px; }
.work-more {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; margin-top: 8px;
  font-size: 14px; font-weight: 500; white-space: nowrap;
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper);
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.work-more svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.work-link:hover .work-more { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.work-link:hover .work-more svg { transform: translate(2px, -2px); }

/* ---------- Services ---------- */
.services-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.service {
  padding: clamp(32px, 4vw, 48px) clamp(0px, 3vw, 40px) clamp(32px, 4vw, 48px) 0;
  border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: 56px 1fr; gap: 4px 16px;
}
.service:nth-child(even) { padding-left: clamp(24px, 3vw, 40px); padding-right: 0; border-left: 1px solid var(--line); }
.service-idx { color: var(--accent); padding-top: 12px; grid-row: span 3; }
.service h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(30px, 3vw, 40px); line-height: 1.1; letter-spacing: -.01em; }
.service p { color: var(--muted); margin-top: 12px; max-width: 46ch; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tags li {
  font-size: 13px; padding: 6px 12px; border-radius: 999px;
  background: var(--paper-2); border: 1px solid var(--line); color: var(--ink-2);
}
.tags--large li { font-size: 15px; padding: 10px 18px; background: transparent; }

.process { margin-top: clamp(96px, 12vw, 144px); }
.process-title, .toolkit h3 {
  font-family: var(--f-display); font-weight: 400; font-size: clamp(32px, 3.6vw, 48px); letter-spacing: -.01em; line-height: 1.1;
  margin-bottom: 40px;
}
.process-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.process-steps li {
  position: relative; padding: 28px 24px 32px; border-radius: var(--radius-sm);
  background: var(--paper-2); border: 1px solid var(--line);
  transition: background-color .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.process-steps li:hover { background: var(--accent); color: var(--paper); transform: translateY(-4px); }
.process-steps li:hover .mono, .process-steps li:hover p { color: color-mix(in srgb, var(--paper) 78%, transparent); }
.process-steps .mono { color: var(--muted); transition: color .35s; }
.process-steps strong { display: block; font-family: var(--f-display); font-weight: 400; font-size: 36px; line-height: 1.1; margin-top: 40px; }
.process-steps p { color: var(--muted); font-size: 15px; margin-top: 10px; transition: color .35s; }

.toolkit { margin-top: clamp(80px, 10vw, 120px); }
.toolkit h3 { font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; color: var(--muted); margin-bottom: 20px; }

/* ---------- Contact ---------- */
.contact {
  background: var(--ink); color: var(--paper);
  padding-bottom: 0;
}
.eyebrow--light { color: rgba(245, 241, 234, .6); }
.contact .eyebrow .mono { color: var(--lime); }
.contact-title {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(52px, 9vw, 144px); line-height: .95; letter-spacing: -.025em; max-width: 15ch;
}
.contact .contact-title em { color: var(--lime); }
.contact-intro { color: rgba(245, 241, 234, .7); font-size: clamp(17px, 1.5vw, 20px); max-width: 52ch; margin-top: 40px; }

/* Enquiry form */
.enquiry {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px);
  margin-top: clamp(72px, 9vw, 120px); padding-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid rgba(245, 241, 234, .16);
}
.enquiry-title { font-family: var(--f-display); font-weight: 400; font-size: clamp(32px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -.01em; }
.enquiry-aside p { color: rgba(245, 241, 234, .7); margin-top: 16px; max-width: 36ch; }
.enquiry-points { margin-top: 32px; display: grid; gap: 12px; }
.enquiry-points li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: rgba(245, 241, 234, .85); }
.enquiry-points li::before {
  content: ""; width: 18px; height: 18px; flex-shrink: 0; border-radius: 50%;
  background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 10.5 2.5 2.5L14 7.5' fill='none' stroke='%23151412' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.enquiry-form { display: grid; gap: 24px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { display: flex; flex-direction: column; gap: 10px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field label, .field legend { font-size: 14px; font-weight: 500; color: rgba(245, 241, 234, .85); padding: 0; }
.field legend { margin-bottom: 10px; }
.field > label span { color: var(--lime); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 14px 16px;
  font: inherit; font-size: 16px; color: var(--paper);
  background: rgba(245, 241, 234, .05); border: 1px solid rgba(245, 241, 234, .18); border-radius: var(--radius-sm);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.field select {
  cursor: pointer; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 8 4 4 4-4' fill='none' stroke='%23F5F1EA' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.field select option { color: var(--ink); background: var(--paper); }
.field ::placeholder { color: rgba(245, 241, 234, .35); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(245, 241, 234, .32); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--lime); background-color: rgba(245, 241, 234, .08);
  box-shadow: 0 0 0 3px rgba(217, 240, 122, .18);
}
.field.has-error input, .field.has-error textarea { border-color: #F29C8B; }
.field-error { font-size: 13px; color: #F29C8B; min-height: 0; }
.field-error:empty { display: none; }

.choice-group { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid rgba(245, 241, 234, .22); font-size: 14px; color: rgba(245, 241, 234, .85);
  transition: background-color .2s, color .2s, border-color .2s;
}
.choice:hover span { border-color: rgba(245, 241, 234, .45); }
.choice input:checked + span { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.choice input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 3px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; margin-top: 8px; }
.btn--lime { background: var(--lime); color: var(--ink); }
.btn--lime:hover { background: var(--paper); }
.btn--lime:hover svg { transform: translateX(3px); }
.btn--lime[disabled] { opacity: .6; cursor: progress; }
.form-status { font-size: 15px; color: rgba(245, 241, 234, .75); }
.form-status.is-success { color: var(--lime); }
.form-status.is-error { color: #F29C8B; }

.contact-direct { margin-top: clamp(72px, 9vw, 120px); color: rgba(245, 241, 234, .6); font-size: 14px; }

.contact-email {
  display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px;
  margin-top: 16px; padding-bottom: clamp(28px, 3vw, 40px);
  border-bottom: 1px solid rgba(245, 241, 234, .16);
}
.email-link {
  font-family: var(--f-display); font-size: clamp(28px, 5.2vw, 76px); line-height: 1.05; letter-spacing: -.015em;
  overflow-wrap: anywhere;
  background: linear-gradient(var(--lime), var(--lime)) left 100% / 0 2px no-repeat;
  transition: background-size .6s var(--ease), color .3s;
}
.email-link:hover { background-size: 100% 2px; color: var(--lime); }
.copy-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: 999px; border: 1px solid rgba(245, 241, 234, .24); font-size: 14px; font-weight: 500;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.copy-btn:hover { background: var(--paper); color: var(--ink); }
.copy-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.socials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.socials a {
  display: flex; align-items: center; gap: 14px; min-height: 88px; padding: 24px 0;
  border-bottom: 1px solid rgba(245, 241, 234, .16); font-size: 18px; font-weight: 500;
  transition: color .3s var(--ease), padding .4s var(--ease);
}
.socials li + li a { padding-left: 24px; border-left: 1px solid rgba(245, 241, 234, .16); }
.socials svg { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.socials svg.icon-fill { fill: currentColor; stroke: none; }
.socials .arrow { margin-left: auto; margin-right: 24px; width: 20px; height: 20px; transition: transform .35s var(--ease); }
.socials li:last-child .arrow { margin-right: 0; }
.socials a:hover { color: var(--lime); }
.socials a:hover .arrow { transform: translate(3px, -3px); }

.footer { margin-top: clamp(96px, 12vw, 160px); border-top: 1px solid rgba(245, 241, 234, .16); }
.footer-inner {
  display: flex; justify-content: space-between; align-items: center; gap: 12px 32px; flex-wrap: wrap;
  padding-block: 28px; font-size: 14px; color: rgba(245, 241, 234, .6);
}
.footer .link-underline { color: var(--paper); font-size: 14px; }

/* ---------- Case study dialog ---------- */
.case {
  width: min(1040px, calc(100% - 32px)); max-height: calc(100dvh - 48px);
  padding: 0; border: 0; border-radius: var(--radius); background: var(--paper); color: var(--ink);
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .5);
  overscroll-behavior: contain;
}
.case::backdrop { background: rgba(21, 20, 18, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.case[open] { animation: dialog-in .5s var(--ease); }
.case[open]::backdrop { animation: fade-in .4s var(--ease); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(24px) scale(.98); } }
@keyframes fade-in { from { opacity: 0; } }

.case-inner { position: relative; padding: clamp(28px, 5vw, 64px); }
.case-close {
  position: sticky; top: 0; float: right; margin: -12px -12px 0 16px; z-index: 3;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--paper); transition: background-color .3s, transform .3s var(--ease);
}
.case-close:hover { background: var(--accent); transform: rotate(90deg); }
.case-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.case-kicker { color: var(--accent); }
.case-title {
  font-family: var(--f-display); font-weight: 400; font-size: clamp(40px, 5.5vw, 72px); line-height: 1; letter-spacing: -.02em;
  margin-top: 16px; max-width: 16ch;
}
.case-meta { color: var(--muted); margin-top: 16px; font-size: 15px; }

.case-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 48px; border-top: 1px solid var(--line); }
.case-stats div { padding: 20px 20px 0 0; }
.case-stats div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.case-stats strong { display: block; font-family: var(--f-display); font-weight: 400; font-size: clamp(30px, 3.4vw, 44px); line-height: 1; letter-spacing: -.01em; }
.case-stats span { display: block; color: var(--muted); font-size: 14px; margin-top: 10px; }

.case-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 56px; }
.case-cols h4, .case-section h4 { font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; font-weight: 400; color: var(--muted); margin: 0 0 10px; }
.case-cols p { font-size: 16px; color: var(--ink-2); }

.case-section { margin-top: 56px; }
.case-strategy { border-top: 1px solid var(--line); }
.case-strategy li { display: grid; grid-template-columns: 180px 1fr; gap: 8px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.case-strategy strong { font-weight: 500; }
.case-strategy span { color: var(--ink-2); }

.case-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.case-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.case-table th, .case-table td { padding: 14px 16px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.case-table th:first-child, .case-table td:first-child { text-align: left; white-space: normal; }
.case-table thead th { font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; font-weight: 400; color: var(--muted); background: var(--paper-2); }
.case-table tbody tr + tr td { border-top: 1px solid var(--line); }
.case-table-note { color: var(--muted); font-size: 14px; margin-top: 12px; }

.case-takeaway {
  margin-top: 56px; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-sm);
  background: var(--accent); color: var(--paper);
}
.case-takeaway .mono { color: var(--lime); }
.case-takeaway p { font-family: var(--f-display); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; margin-top: 10px; }

.proof-grid { display: grid; gap: 28px; }
.proof-grid figure { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.proof-grid a { display: block; cursor: zoom-in; }
.proof-grid img { width: 100%; height: auto; }
.proof-grid figcaption { padding: 14px 18px; font-size: 14px; color: var(--muted); background: var(--paper-2); border-top: 1px solid var(--line); }
.proof-empty { padding: 24px; border: 1px dashed var(--line); border-radius: var(--radius-sm); color: var(--muted); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 200;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--lime); color: var(--ink); padding: 12px 20px; border-radius: 999px; font-size: 14px; font-weight: 500;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero-main { grid-template-columns: 1fr; gap: 28px; }
  .hero-title { font-size: clamp(50px, 8.6vw, 88px); }
  .hero-bottom { padding-bottom: 0; }
}

@media (max-width: 1024px) {
  .work-card--feature .cover { aspect-ratio: auto; min-height: 460px; }
  .work-card--feature .cover-body { grid-template-columns: 1fr; gap: 28px; }
  .process-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; }
  .nav { display: none; }
  .menu-toggle { display: block; }


  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 24px 16px 24px 0; }
  .stat + .stat { padding-left: 0; border-left: 0; }
  .stat:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }

  .section-head--split { grid-template-columns: 1fr; }

  .about-grid { grid-template-columns: 1fr; }
  .portrait { position: relative; top: 0; max-width: 420px; }

  .work-grid { grid-template-columns: 1fr; }
  .cover { aspect-ratio: auto; min-height: 380px; }

  .services-list { grid-template-columns: 1fr; }
  .service, .service:nth-child(even) { padding-left: 0; padding-right: 0; border-left: 0; }

  .enquiry { grid-template-columns: 1fr; }
  .socials { grid-template-columns: 1fr; }
  .socials li + li a { padding-left: 0; border-left: 0; }
  .socials .arrow { margin-right: 0; }

  .case-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-stats div, .case-stats div + div { padding: 20px 12px 20px 0; border-left: 0; }
  .case-stats div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .case-stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .case-cols { grid-template-columns: 1fr; gap: 24px; }
  .case-strategy li { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hero-role-sep { display: none; }
  .hero-role-part + .hero-role-part { flex-basis: 100%; color: var(--muted); font-weight: 400; }
  .hero-title { font-size: clamp(46px, 13vw, 64px); }
  .hero-actions { width: 100%; }
  .hero-actions .btn { width: 100%; }
  .chart-note--base { left: 26%; bottom: 26%; }
  .chart-note--peak { right: 22%; }
  .chart-note span:not(.mono) { display: none; }
  .hero-chart-axis span:nth-child(even) { display: none; }

  .work-meta { flex-direction: column; gap: 16px; }
  .work-more { margin-top: 0; }
  .cover { min-height: 360px; }
  .work-card--feature .cover { min-height: 420px; }
  .vb-row { grid-template-columns: 1fr 72px; gap: 6px 8px; }
  .vb-lbl { grid-column: 1 / -1; }
  .vb-val { font-size: 11px; }

  .field-row { grid-template-columns: 1fr; }
  .form-foot .btn { width: 100%; }
  .service { grid-template-columns: 1fr; }
  .service-idx { grid-row: auto; padding-top: 0; margin-bottom: 8px; }

  .process-steps { grid-template-columns: 1fr; }
  .process-steps strong { margin-top: 20px; }

  .case { width: 100%; max-width: 100%; max-height: 100dvh; height: 100dvh; margin: 0; border-radius: 0; }
  .case-close { margin: -8px -8px 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .marquee-track { animation: none; }
}

/* ---------- Thank-you page ---------- */
.thanks {
  min-height: calc(100svh - var(--header-h) - 80px);
  display: flex; align-items: center;
  padding-block: clamp(56px, 9vw, 120px);
}
.thanks-mark {
  width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); margin-bottom: 36px;
  animation: pop .7s var(--ease) both;
}
.thanks-mark svg { width: 40px; height: 40px; fill: none; stroke: var(--lime); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.thanks-mark path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: tick .6s .35s var(--ease) forwards; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
@keyframes tick { to { stroke-dashoffset: 0; } }

.thanks .eyebrow { display: flex; }
.thanks-title {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(48px, 7vw, 104px); line-height: .98; letter-spacing: -.025em; max-width: 14ch;
}
.thanks-title em { color: var(--accent); }
.thanks-lede { margin-top: 28px; max-width: 54ch; font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); }

.thanks-steps {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
  margin-top: clamp(48px, 6vw, 72px);
}
.thanks-steps li { padding: 24px; border-radius: var(--radius-sm); background: var(--paper-2); border: 1px solid var(--line); }
.thanks-steps .mono { color: var(--accent); }
.thanks-steps strong { display: block; font-family: var(--f-display); font-weight: 400; font-size: 28px; line-height: 1.15; margin-top: 20px; }
.thanks-steps p { color: var(--muted); font-size: 15px; margin-top: 8px; }

.thanks-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 32px; margin-top: clamp(40px, 5vw, 56px); }

.thanks-footer { border-top: 1px solid var(--line); color: var(--muted); }
.thanks-footer .footer-inner { color: var(--muted); }

@media (max-width: 860px) {
  .thanks-steps { grid-template-columns: 1fr; }
  .thanks-actions { flex-direction: column; align-items: flex-start; }
  .thanks-actions .btn { width: 100%; }
}


/* ==========================================================================
   WordPress + Elementor additions (not part of the original design)
   ========================================================================== */

/* Keep the sticky header below the WordPress admin bar when logged in */
.admin-bar .site-header { top: 32px; }
.admin-bar .mobile-menu { top: calc(var(--header-h) + 32px); }
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
  .admin-bar .mobile-menu { top: calc(var(--header-h) + 46px); }
}
@media (max-width: 600px) {
  .admin-bar .site-header { top: 0; }
}

/* The Elementor container that holds the sections: no gaps, no padding, full width */
.e-con.stp-stack {
  --padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px;
  --gap: 0px; --row-gap: 0px; --column-gap: 0px; --widgets-spacing: 0px; --widgets-spacing-row: 0px; --widgets-spacing-column: 0px;
  --content-width: 100%; --container-max-width: none; --width: 100%;
  padding: 0; gap: 0;
}
.stp-stack > .elementor-widget,
.stp-stack > .e-con-inner > .elementor-widget { width: 100%; max-width: 100%; margin: 0; }
[class*="elementor-widget-stp-"] { width: 100%; }

/* Elementor's own image and link defaults would override these */
.elementor .portrait-frame img { height: 100%; max-width: none; }
.elementor .proof-grid img { border-radius: 0; }
.elementor .spark, .elementor svg.spark { max-width: 100%; }

/* Other pages (privacy policy, posts, 404) */
.stp-page { padding-block: clamp(72px, 10vw, 140px); min-height: 50vh; }
.stp-page .section-title { margin-bottom: 40px; }
.stp-prose { max-width: 70ch; font-size: 17px; color: var(--ink-2); }
.stp-prose > * + * { margin-top: 1.1em; }
.stp-prose h2, .stp-prose h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.15; color: var(--ink); margin-top: 1.6em; }
.stp-prose h2 { font-size: 36px; }
.stp-prose h3 { font-size: 28px; }
.stp-prose a { text-decoration: underline; text-underline-offset: 3px; }
.stp-prose ul { list-style: disc; padding-left: 1.2em; }
.stp-prose ol { list-style: decimal; padding-left: 1.2em; }
.stp-list li { padding: 18px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; }
.stp-list .mono { color: var(--muted); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
