/* azharthegill.com
   Shape rule: buttons and chips are full pills, cards and panels use --radius. */

:root {
  --paper: #f4f1ea;
  --paper-2: #ebe7dd;
  --card: #fbfaf6;
  --ink: #141413;
  --ink-soft: #4d4a43;
  --line: rgba(20, 20, 19, 0.16);
  --accent: #3858e9;
  --accent-text: #2c48d1;
  --accent-tint: #e2e7fb;
  --on-accent: #ffffff;

  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 4px 4px 0 var(--ink);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #151513;
    --paper-2: #1c1c19;
    --card: #1f1f1c;
    --ink: #efebe2;
    --ink-soft: #b4aea1;
    --line: rgba(239, 235, 226, 0.16);
    --accent-text: #93a6ff;
    --accent-tint: #232a52;
  }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 400; letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Paper texture under everything: fine noise plus two layers of tiny specks */
body {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.6' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(circle at 25% 30%, var(--speck) 0, transparent 1px),
    radial-gradient(circle at 75% 60%, var(--speck) 0, transparent 1px);
  background-size: 140px 140px, 6px 6px, 8px 8px;
}

/* Soft ambient light, fixed behind the page */
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ambient::before, .ambient::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}
.ambient::before {
  top: 4%;
  right: -6%;
  width: 34vw;
  height: 34vw;
  background: radial-gradient(circle, var(--glow-a), transparent 65%);
}
.ambient::after {
  bottom: -10%;
  left: -8%;
  width: 30vw;
  height: 30vw;
  background: radial-gradient(circle, var(--glow-b), transparent 70%);
}

.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 16px; }

/* Buttons */
.btn {
  --hover-dur: 0.18s;
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 15px 24px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: var(--shadow);
  font: 600 16px/1 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background-color 0.2s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn i { font-size: 1.05em; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-ghost { background: var(--card); color: var(--ink); }
.btn-sm { padding: 10px 18px; font-size: 15px; box-shadow: 3px 3px 0 var(--ink); }
.btn-sm:hover { box-shadow: 4px 4px 0 var(--ink); }
.btn-lg { padding: 18px 30px; font-size: 18px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 75%, transparent);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  backdrop-filter: blur(10px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
/* Three zones: logo left, menu centred, actions right */
.nav { height: 66px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font: 600 11.5px/1 var(--font-display);
  letter-spacing: 0.02em;
}
.brand-name { font: 600 22px/1 var(--font-display); letter-spacing: -0.035em; }
.brand-dot { color: var(--accent-text); }
.nav-links { display: flex; align-items: center; gap: 30px; justify-self: center; }
.nav-links a:not(.btn) {
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size 0.25s var(--ease);
  padding-bottom: 2px;
}
.nav-links a:not(.btn):hover { background-size: 100% 1.5px; }
.nav-mobile-only, .nav-mobile-extra { display: none; }
/* Menu button: two bars that turn into an X */
.burger { position: relative; display: block; width: 18px; height: 12px; }
.burger span { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: top 0.3s var(--ease), transform 0.3s var(--ease); }
.burger span:first-child { top: 1px; }
.burger span:last-child { top: 9px; }
.nav-toggle[aria-expanded="true"] .burger span:first-child { top: 5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .burger span:last-child { top: 5px; transform: rotate(-45deg); }
.nav-actions { display: flex; align-items: center; gap: 10px; justify-self: end; }
.pill-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px 8px 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #25d366;
  color: #0b2414;
  font: 600 13px/1 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s var(--ease);
}
.pill-wa i { font-size: 16px; }
.pill-wa:hover { transform: translateY(-2px); }
.nav-actions .btn-sm { padding: 9px 16px; font-size: 13.5px; }
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-size: 22px;
  place-items: center;
  cursor: pointer;
}

/* Hero */
.hero { padding: clamp(40px, 5vw, 64px) 0 clamp(56px, 7vw, 88px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.7rem, 5.6vw, 4.6rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.02;
  padding-bottom: 4px;
}
.hero h1 em { font-style: normal; color: var(--accent-text); }
/* Marker-style highlight under a key phrase */
:root { --hl: rgba(56, 88, 233, 0.26); }
@media (prefers-color-scheme: dark) { :root { --hl: rgba(56, 88, 233, 0.45); } }
.hl { color: var(--ink); background: linear-gradient(transparent 52%, var(--hl) 52%, var(--hl) 94%, transparent 94%); padding: 0 3px; margin: 0 -1px; border-radius: 3px; }

.lede { margin-top: 26px; max-width: 44ch; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--ink-soft); }
.hero-ctas { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }

.hero-side { display: grid; justify-items: center; }
.stage { position: relative; width: 100%; max-width: 480px; aspect-ratio: 1; }
.stage canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; }
.stage.no-3d { display: none; }

/* Tools marquee */
.tools { border-block: 2px solid var(--ink); background: var(--card); overflow: hidden; }
.marquee { display: flex; overflow: hidden; padding: 22px 0; }
.marquee-track { display: flex; align-items: center; gap: 64px; padding-right: 64px; flex-shrink: 0; }
.marquee-track img { width: 30px; height: 30px; opacity: 0.85; }
@media (prefers-color-scheme: dark) { .marquee-track img { filter: invert(1); } }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee 48s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(-100%); } }

/* Shared section bits */
section { position: relative; }
.services, .work, .about, .faq { padding: clamp(72px, 9vw, 120px) 0; }
.section-title { font-size: clamp(2.3rem, 4.6vw, 3.7rem); }
.section-note { margin-top: 18px; max-width: 58ch; font-size: 18px; color: var(--ink-soft); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 500 13px/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
/* Fixed height + flex centring keeps the mono text optically centred in the pill */
.chips li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 12px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  font: 500 13px/1 var(--font-mono);
}
.chips-sm li { height: 26px; padding: 0 10px; font-size: 12px; }

/* Track record */
.record { padding: clamp(72px, 9vw, 120px) 0 0; }
.record-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.record-copy h2 {
  margin-top: 22px;
  font-size: clamp(2.6rem, 5.2vw, 4.5rem);
  letter-spacing: -0.04em;
  line-height: 1.02;
}
.record-copy h2 em { font-style: normal; color: var(--accent-text); }
.record-copy p:not(.eyebrow) { margin-top: 24px; max-width: 40ch; font-size: 19px; line-height: 1.55; color: var(--ink-soft); }
.record-copy p a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.record-copy p a:hover { color: var(--accent-text); }

.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.tile {
  --tile-bg: var(--card);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 228px;
  padding: 28px 28px 26px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--tile-bg);
  color: var(--ink);
  transition: transform 0.45s var(--ease);
}
.tile:hover { transform: translateY(-6px); }
.tile-num {
  font: 300 clamp(3.4rem, 5.6vw, 5.2rem)/0.95 var(--font-display);
  letter-spacing: -0.045em;
}
.tile-label { margin-top: 18px; font-size: 17px; line-height: 1.35; font-weight: 500; max-width: 24ch; }
.tile-meta {
  margin-top: auto;
  padding-top: 20px;
  font: 500 12.5px/1.2 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.tile-ink { --tile-bg: var(--ink); color: var(--paper); }
.tile-ink .tile-num { color: #93a6ff; }
.tile-ink .tile-meta { color: color-mix(in srgb, var(--paper) 65%, transparent); }
.tile-accent { --tile-bg: var(--accent); color: var(--on-accent); }
.tile-accent .tile-meta { color: color-mix(in srgb, var(--on-accent) 75%, transparent); }

@media (prefers-color-scheme: dark) {
  .tile-ink .tile-num { color: var(--accent); }
}

/* White label */
.wl { padding: 0; }
.wl-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(36px, 5vw, 80px);
  padding: clamp(32px, 5.5vw, 72px);
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: 10px 10px 0 var(--accent);
}
.eyebrow-inv { color: color-mix(in srgb, var(--paper) 70%, transparent); }
.wl-intro h2 { margin-top: 22px; font-size: clamp(2.1rem, 3.9vw, 3.3rem); }
.wl-intro p { margin-top: 22px; max-width: 46ch; font-size: 18px; color: color-mix(in srgb, var(--paper) 78%, transparent); }
.wl-terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 28px; align-content: center; }
.wl-terms li { padding-top: 20px; border-top: 1px solid color-mix(in srgb, var(--paper) 22%, transparent); }
.wl-terms i { font-size: 28px; color: var(--accent); }
@media (prefers-color-scheme: dark) { .wl-terms i { color: var(--accent); } }
.wl-terms h3 { margin-top: 12px; font-size: 1.4rem; font-weight: 500; letter-spacing: -0.02em; }
.wl-terms p { margin-top: 8px; font-size: 15.5px; line-height: 1.55; color: color-mix(in srgb, var(--paper) 74%, transparent); }

/* Services bento */
/* Two headline platforms on top (WordPress, Shopify), four supporting services below */
.bento {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}
.cell {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--card);
  transition: transform 0.45s var(--ease);
}
.cell:hover { transform: translateY(-6px); }
.cell h3 { font-size: clamp(1.45rem, 2vw, 1.75rem); font-weight: 500; letter-spacing: -0.025em; }
.cell p { color: var(--ink-soft); font-size: 16px; }
.cell-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 8px;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 26px;
}
.cell-wp, .cell-shop { grid-column: span 6; min-height: 340px; justify-content: flex-end; }
.cell-wp .cell-icon, .cell-shop .cell-icon { margin-bottom: auto; }
.cell-wp h3, .cell-shop h3 { font-size: clamp(1.8rem, 2.8vw, 2.4rem); }
.cell-wp p, .cell-shop p { max-width: 46ch; }
.cell-wp .chips, .cell-shop .chips { margin-top: 6px; }
.cell-wp {
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 22%, transparent) 1.2px, transparent 1.4px);
  background-size: 18px 18px;
}
.cell-wp .cell-icon, .cell-wp p, .cell-wp .chips li { background: var(--card); }
.cell-shop { background: var(--accent); color: var(--on-accent); }
.cell-shop p { color: color-mix(in srgb, var(--on-accent) 88%, transparent); }
.cell-sm { grid-column: span 3; }
.cell-tint { background: var(--accent-tint); }

/* Work */

.work-list { margin-top: 44px; border-top: 2px solid var(--ink); }
.work-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas: "head body" "head chips";
  gap: 14px 48px;
  padding: 34px 0;
}
.work-row + .work-row { border-top: 1px solid var(--line); }
.work-head { grid-area: head; }
.work-head h3 { font-size: clamp(1.5rem, 2.3vw, 2rem); font-weight: 500; letter-spacing: -0.025em; line-height: 1.12; }
.work-role { margin-top: 10px; font-size: 15px; color: var(--ink-soft); }
.work-body { grid-area: body; color: var(--ink-soft); max-width: 62ch; }
.work-row .chips { grid-area: chips; color: var(--ink); }

/* Process */
.process { background: var(--paper-2); border-block: 2px solid var(--ink); padding: clamp(72px, 9vw, 112px) 0; }
.steps {
  position: relative;
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}
.steps::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 10px;
  height: 2px;
  background: var(--ink);
}
.step { position: relative; padding-top: 44px; }
.step-dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 22px;
  height: 22px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper-2);
  transition: background-color 0.5s var(--ease) var(--d, 0ms);
}
.step.in .step-dot { background: var(--accent); }
.step h3 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); font-weight: 500; }
.step p { margin-top: 10px; color: var(--ink-soft); max-width: 30ch; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.portrait {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  max-width: 440px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 10px 10px 0 var(--ink);
  background-color: var(--accent-tint);
  background-image: radial-gradient(color-mix(in srgb, var(--accent) 35%, transparent) 1.3px, transparent 1.5px);
  background-size: 20px 20px;
}
.portrait-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 400 clamp(6rem, 14vw, 10rem)/1 var(--font-display);
  letter-spacing: -0.06em;
  color: var(--accent-text);
}
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-copy h2 { font-size: clamp(2.3rem, 4.6vw, 3.7rem); }
.about-copy p { margin-top: 20px; max-width: 58ch; font-size: 18px; }
.about-copy p + p { color: var(--ink-soft); }
.timeline { margin: 36px 0 36px; border-top: 2px solid var(--ink); }
.timeline li {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  grid-template-areas: "years role" "years org";
  column-gap: 20px;
  padding: 16px 0;
}
.timeline li + li { border-top: 1px solid var(--line); }
.tl-years { grid-area: years; font: 500 14px/1.6 var(--font-mono); color: var(--ink-soft); }
.tl-role { grid-area: role; font-weight: 600; }
.tl-org { grid-area: org; color: var(--ink-soft); font-size: 15.5px; }

/* FAQ */
.faq { padding-top: 0; }
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.faq .section-title { position: sticky; top: 112px; }
.faq-list { border-top: 2px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  font: 500 clamp(1.15rem, 1.6vw, 1.35rem)/1.3 var(--font-display);
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary i {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-size: 16px;
  transition: transform 0.3s var(--ease), background-color 0.2s;
}
.faq-list details[open] summary i { transform: rotate(45deg); background: var(--accent); border-color: var(--ink); color: var(--on-accent); }
.faq-list details p { padding: 0 56px 26px 0; color: var(--ink-soft); max-width: 60ch; }

/* Contact */
.contact { padding: 0 0 clamp(72px, 9vw, 120px); }
.contact-panel {
  padding: clamp(36px, 6vw, 80px);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: 10px 10px 0 var(--ink);
}
.contact-panel h2 { margin-top: 22px; max-width: 16ch; font-size: clamp(2.5rem, 5.4vw, 4.6rem); letter-spacing: -0.04em; }
.contact-lede { margin-top: 20px; font-size: 19px; color: var(--ink-soft); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(36px, 5vw, 72px); align-items: start; }
.contact-intro { position: sticky; top: 100px; }
.contact-intro h2 { max-width: 14ch; font-size: clamp(2.3rem, 4vw, 3.5rem); }
.contact-ways { margin-top: 32px; display: grid; gap: 10px; max-width: 380px; }
.way { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1.5px solid var(--ink); border-radius: 16px; background: var(--paper); color: var(--ink); text-decoration: none; transition: transform 0.3s var(--ease); }
.way:hover { transform: translateY(-2px); }
.way > i { flex-shrink: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #93a6ff; font-size: 20px; }
.way b { display: block; font-weight: 600; font-size: 16px; }
.way span span { display: block; margin-top: 3px; font: 500 12.5px/1.3 var(--font-mono); color: var(--ink-soft); }
@media (prefers-color-scheme: dark) { .way > i { color: var(--accent); } }

/* Brief form */
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-row-gap { margin-top: 20px; }
.field { display: grid; gap: 8px; margin-top: 18px; }
.form-row .field { margin-top: 0; }
.field label, .chips-field legend { font-weight: 600; font-size: 15px; color: var(--ink); }
.opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid color-mix(in srgb, var(--ink) 38%, transparent);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-soft); opacity: 0.85; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 46px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%234d4a43' d='M216.5 104.5l-80 80a12 12 0 0 1-17 0l-80-80a12 12 0 0 1 17-17L128 159l71.5-71.5a12 12 0 0 1 17 17Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
}
@media (prefers-color-scheme: dark) {
  .field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%23b4aea1' d='M216.5 104.5l-80 80a12 12 0 0 1-17 0l-80-80a12 12 0 0 1 17-17L128 159l71.5-71.5a12 12 0 0 1 17 17Z'/%3E%3C/svg%3E"); }
}
.field.is-bad input, .field.is-bad textarea { border-color: #b42318; }
.field-err { font-size: 14px; color: #b42318; }
.field-err:empty { display: none; }
@media (prefers-color-scheme: dark) {
  .field.is-bad input, .field.is-bad textarea { border-color: #ff8a7a; }
  .field-err { color: #ff8a7a; }
}

.chips-field { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; border: 0; }
.chips-field legend { width: 100%; margin-bottom: 10px; padding: 0; }
.chips-field label { position: relative; }
.chips-field input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.chips-field label > span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1.5px solid color-mix(in srgb, var(--ink) 38%, transparent);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.chips-field label:hover span { border-color: var(--ink); }
.chips-field input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chips-field input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

.brief-form .btn { width: 100%; justify-content: center; margin-top: 26px; }
.brief-form .btn[disabled] { opacity: 0.7; cursor: progress; }
.brief-note { margin-top: 12px; font-size: 14px; color: var(--ink-soft); text-align: center; }
.brief-note a { color: var(--ink); text-underline-offset: 3px; }
.brief-error { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #fef3f2; color: #b42318; font-size: 15px; text-align: center; }
@media (prefers-color-scheme: dark) { .brief-error { background: #3a1d1b; color: #ffb4ab; } }
.brief-done { padding: 48px 12px; text-align: center; }
.brief-done > i { font-size: 52px; color: var(--accent-text); }
.brief-done h3 { margin-top: 14px; font-size: clamp(1.6rem, 2.6vw, 2rem); font-weight: 500; }
.brief-done p { margin-top: 10px; color: var(--ink-soft); }

.inline-link { color: var(--ink); font-weight: 500; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.inline-link:hover { color: var(--accent-text); }

/* Footer */
.site-footer { border-top: 2px solid var(--ink); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding: 28px 0 40px; font-size: 14.5px; color: var(--ink-soft); }
.footer-left { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--ink); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size 0.25s var(--ease); padding-bottom: 1px; }
.footer-links a:hover, .footer-links a[aria-current="page"] { background-size: 100% 1.5px; }
.footer-tag { font: 500 12px/1.4 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; }

/* Privacy and terms pages */
.legal-page .footer-inner { padding-bottom: 40px; }
.nav-legal { display: flex; justify-content: space-between; }
.legal { max-width: 68ch; margin: 0 auto; padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 9vw, 112px); }
.legal h1 { font-size: clamp(2.6rem, 6vw, 4rem); letter-spacing: -0.04em; }
.legal-updated { margin-top: 14px; font: 500 13px/1.4 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.legal h2 { margin: 40px 0 12px; font-size: clamp(1.4rem, 2.4vw, 1.75rem); font-weight: 500; letter-spacing: -0.02em; }
.legal p, .legal li { font-size: 17.5px; line-height: 1.65; }
.legal p + p { margin-top: 14px; }
.legal > p:first-of-type + p { margin-top: 28px; }
.legal ul { margin-top: 14px; padding-left: 20px; list-style: disc; display: grid; gap: 8px; }
.legal li::marker { color: var(--accent); }
.legal a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.legal a:hover { color: var(--accent-text); }

/* Tools I work in: an even grid, each tool with what it is used for */
.workflow { padding: clamp(72px, 9vw, 120px) 0 0; }
.tool-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.tool {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "icon name" "icon role";
  align-items: center;
  column-gap: 14px;
  row-gap: 3px;
  padding: 18px;
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  background: var(--card);
  transition: transform 0.4s var(--ease);
}
.tool:hover { transform: translateY(-4px); }
.tool .app { grid-area: icon; }
.tool-name { grid-area: name; align-self: end; font-weight: 600; font-size: 16.5px; line-height: 1.2; }
.tool-role { grid-area: role; align-self: start; font: 500 12.5px/1.3 var(--font-mono); color: var(--ink-soft); }
.app {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  font-size: 23px;
}
.app img { width: 22px; height: 22px; }
@media (prefers-color-scheme: dark) { .app img { filter: invert(1); } }

/* Reviews (shown once real client quotes are added) */
.reviews {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 56px;
}
.reviews[hidden] { display: none; }
.reviews-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  color: var(--ink-soft);
}
.reviews-head strong { color: var(--ink); font-weight: 600; }
.reviews-head img { width: 22px; height: 22px; }
@media (prefers-color-scheme: dark) { .reviews-head img { filter: invert(1); } }
.reviews-head + .reviews { margin-top: 22px; }
.record-grid { row-gap: 0; }
.stars-num { margin-left: 10px; font: 600 15px/1 var(--font-body); letter-spacing: 0; vertical-align: 2px; }
.review {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 30px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--card);
}
.review .stars { font-size: 19px; letter-spacing: 3px; line-height: 1; }
.review blockquote { margin: 0; font: 400 clamp(1.15rem, 1.6vw, 1.35rem)/1.4 var(--font-display); letter-spacing: -0.01em; }
.review-by { margin-top: auto; display: flex; flex-direction: column; gap: 4px; padding-top: 6px; }
.review-name { font-size: 16px; font-weight: 600; }
.review-city { font: 500 12px/1.3 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }

/* Background textures: barely there, so they read as paper rather than decoration */
:root {
  --speck: rgba(20, 20, 19, 0.02);
  --dot: rgba(20, 20, 19, 0.09);
  --hatch: rgba(20, 20, 19, 0.035);
  --glow-a: rgba(56, 88, 233, 0.16);
  --glow-b: rgba(56, 88, 233, 0.08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --speck: rgba(239, 235, 226, 0.02);
    --dot: rgba(239, 235, 226, 0.08);
    --hatch: rgba(239, 235, 226, 0.03);
    --glow-a: rgba(56, 88, 233, 0.14);
    --glow-b: rgba(56, 88, 233, 0.07);
  }
}

/* Dot grid: behind the hero stack and the track record, fading at the edges */
.hero, .record { isolation: isolate; }
.hero::before, .record::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(circle, var(--dot) 1.1px, transparent 1.4px);
  background-size: 22px 22px;
}
.hero::before {
  -webkit-mask-image: radial-gradient(ellipse 50% 80% at 76% 48%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 50% 80% at 76% 48%, #000 30%, transparent 75%);
}
.record::before {
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
}

/* Diagonal hatch on the process band */
.process {
  background-image: repeating-linear-gradient(-45deg, transparent 0, transparent 14px, var(--hatch) 14px, var(--hatch) 15px);
}

@media (max-width: 960px) {
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero::before {
    -webkit-mask-image: radial-gradient(ellipse 85% 45% at 50% 75%, #000 30%, transparent 78%);
    mask-image: radial-gradient(ellipse 85% 45% at 50% 75%, #000 30%, transparent 78%);
  }
  .reviews { grid-template-columns: 1fr; }
  .ambient::before { width: 70vw; height: 70vw; }
  .ambient::after { width: 60vw; height: 60vw; }
}

/* Floating contact button (needs JS to open, so it only shows when JS runs) */
.fab { display: none; }
.js .fab { display: block; position: fixed; right: 24px; bottom: 24px; z-index: 60; }
.fab-toggle {
  display: grid;
  place-items: center;
  margin-left: auto;
  height: 52px;
  min-width: 52px;
  padding: 0 22px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: 600 15px/1 var(--font-body);
  cursor: pointer;
  position: relative;
  box-shadow: 4px 4px 0 var(--accent);
  transition: transform 0.25s var(--ease), background-color 0.2s, color 0.2s, box-shadow 0.25s var(--ease);
}
.fab-toggle:hover { transform: translateY(-2px); }
.fab-label { display: inline-flex; align-items: center; gap: 9px; }
.fab-label i { font-size: 19px; }
.fab-close { display: none; font-size: 22px; }

/* Attention cue while closed: a ring that grows and fades behind the button, and a small wiggle of the chat icon */
.fab-pulse {
  position: absolute;
  inset: -4px;
  z-index: -1;
  border-radius: 999px;
  background: rgba(56, 88, 233, 0.35);
  pointer-events: none;
  opacity: 0;
}
.fab[data-open="true"] .fab-pulse { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .fab-pulse { animation: fabPulse 2s ease-out infinite; }
  .fab-label i { animation: fabWiggle 4s ease-in-out infinite; transform-origin: 50% 60%; }
}
@keyframes fabPulse {
  0% { transform: scale(0.9); opacity: 0.55; }
  100% { transform: scale(1.4); opacity: 0; }
}
@keyframes fabWiggle {
  0%, 80%, 100% { transform: rotate(0deg); }
  84% { transform: rotate(-16deg); }
  88% { transform: rotate(13deg); }
  92% { transform: rotate(-8deg); }
  96% { transform: rotate(4deg); }
}
.fab[data-open="true"] .fab-toggle {
  width: 56px;
  height: 56px;
  padding: 0;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 0 0 4px var(--accent);
}
.fab[data-open="true"] .fab-label { display: none; }
.fab[data-open="true"] .fab-close { display: grid; place-items: center; }

.fab-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 18px);
  width: min(340px, calc(100vw - 32px));
  padding: 10px;
  border: 2px solid var(--ink);
  border-radius: 22px;
  background: var(--card);
  box-shadow: 6px 6px 0 var(--ink);
  transform-origin: bottom right;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.96);
  transition: opacity 0.2s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
}
.fab[data-open="true"] .fab-panel {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.2s var(--ease), transform 0.3s var(--ease), visibility 0s;
}
.fab-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 14px;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.2s;
}
.fab-item:hover, .fab-item:focus-visible { background: var(--accent-tint); }
.fab-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 21px;
}
.fab-icon-ink { background: var(--ink); color: #93a6ff; }
.fab-icon-wa { background: #25d366; color: #0b2414; }
@media (prefers-color-scheme: dark) { .fab-icon-ink { color: var(--accent); } }
.fab-title { display: block; font: 600 17px/1.2 var(--font-body); }
.fab-sub { display: block; margin-top: 5px; font: 500 12.5px/1.2 var(--font-mono); color: var(--ink-soft); }

/* Keep the footer text clear of the floating button without a tall empty band:
   on wider screens the right edge makes room, on phones a little bottom space does */
.footer-inner { padding-bottom: 32px; }
@media (min-width: 641px) and (max-width: 1520px) {
  body:not(.legal-page) .footer-inner { padding-right: 160px; }
}
@media (max-width: 640px) {
  body:not(.legal-page) .footer-inner { padding-bottom: 84px; }
}

@media (max-width: 640px) {
  .js .fab { right: 16px; bottom: 16px; }
  .fab-toggle { height: 48px; padding: 0 18px; }
}

/* Reveal on scroll (only when JS is running) */
/* Uses the separate `translate` property so it never fights hover transforms */
.js .reveal {
  opacity: 0;
  translate: 0 20px;
  transition:
    opacity 0.8s var(--ease) var(--d, 0ms),
    translate 0.8s var(--ease) var(--d, 0ms),
    transform var(--hover-dur, 0.45s) var(--ease),
    box-shadow var(--hover-dur, 0.45s) var(--ease);
}
.js .reveal.in { opacity: 1; translate: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; translate: none; transition: none; }
  .nav-links, .nav-links > a, .nav-mobile-extra, .burger span,
  .btn, .cell, .tile, .tool, .step-dot, .faq-list summary i, .fab-toggle, .fab-panel { transition: none; }
  .fab-panel { transform: none; }
  .cell:hover, .tile:hover, .tool:hover { transform: none; }
  .marquee { justify-content: center; }
  .marquee-track { flex-shrink: 1; flex-wrap: wrap; justify-content: center; gap: 24px 48px; padding: 0 24px; }
}

/* Narrow desktops: keep the header on one line */
@media (max-width: 1180px) {
  .pill-wa { padding: 8px; }
  .pill-wa span { display: none; }
}

/* Tablet and down */
@media (max-width: 960px) {
  .nav-toggle { display: grid; }
  .nav { display: flex; gap: 12px; }
  .nav-actions { margin-left: auto; }
  .nav-actions .btn { display: none; }
  /* Full-height menu panel. Sized from the header, because the header blur makes it the containing block */
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100dvh - 66px);
    justify-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px 24px calc(24px + env(safe-area-inset-bottom));
    overflow-y: auto;
    background: var(--paper);
    border-top: 1px solid var(--line);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.25s var(--ease), visibility 0s linear 0.3s;
  }
  .nav-links.open { visibility: visible; opacity: 1; transition: opacity 0.25s var(--ease), visibility 0s; }
  .nav-links > a:not(.btn) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font: 400 clamp(1.9rem, 8vw, 2.5rem)/1.1 var(--font-display);
    letter-spacing: -0.03em;
    background: none !important;
    opacity: 0;
    translate: 0 12px;
    transition: opacity 0.4s var(--ease), translate 0.5s var(--ease);
  }
  .nav-links > a:not(.btn)::after { content: ""; width: 10px; height: 10px; margin-right: 6px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); opacity: 0.45; }
  .nav-links > a:not(.btn):active { color: var(--accent-text); }
  .nav-links.open > a:not(.btn), .nav-links.open .nav-mobile-extra { opacity: 1; translate: none; transition-delay: calc(60ms + var(--i, 0) * 45ms); }
  .nav-mobile-only { display: flex; }
  .nav-mobile-extra { display: grid; gap: 12px; margin-top: auto; padding-top: 32px; opacity: 0; translate: 0 12px; transition: opacity 0.4s var(--ease), translate 0.5s var(--ease); }
  .nav-mobile-extra .btn { width: 100%; justify-content: center; padding: 16px 22px; font-size: 16px; }
  .nav-wa { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 6px 0; font: 500 14px/1.3 var(--font-mono); color: var(--ink-soft); text-decoration: none; }
  .nav-wa i { font-size: 18px; color: #1faa53; }
  html.menu-open { overflow: hidden; }
  html.menu-open .fab { opacity: 0; pointer-events: none; }
  .site-header:has(.nav-links.open) { border-bottom-color: transparent; background: var(--paper); }

  .hero-grid { grid-template-columns: 1fr; }
  .stage { max-width: 360px; }
  .record-grid { grid-template-columns: 1fr; }
  .record-grid .tiles { margin-top: 40px; }

  .wl-panel { grid-template-columns: 1fr; box-shadow: 6px 6px 0 var(--accent); }
  .cell-wp, .cell-shop { grid-column: span 12; min-height: 0; }
  .cell-sm { grid-column: span 6; }

  .work-row { grid-template-columns: 1fr; grid-template-areas: "head" "body" "chips"; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
  .steps::before { display: none; }
  .step { padding-top: 40px; }
  .step::before { content: ""; position: absolute; top: 10px; left: 0; right: -32px; height: 2px; background: var(--ink); }

  .about-grid, .faq-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-intro { position: static; }
  .contact-ways { max-width: none; }
  .portrait { max-width: 360px; }
  .faq .section-title { position: static; }
}

/* Phones */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .brand-name { font-size: 19px; }
  .hero-ctas .btn { flex: 1 1 auto; justify-content: center; }
  .tiles { gap: 14px; }
  .tile { min-height: 196px; padding: 20px 18px 18px; }
  .tile-num { font-size: clamp(2.4rem, 11vw, 3rem); }
  .tile-label { margin-top: 12px; font-size: 15px; }
  .tile-meta { font-size: 11px; letter-spacing: 0.06em; }
  .wl-terms { grid-template-columns: 1fr; gap: 24px; }
  .cell-sm { grid-column: span 12; }
  .cell { padding: 24px; }
  .steps { grid-template-columns: 1fr; }
  .step::before { right: 0; }
  .timeline li { grid-template-columns: 1fr; grid-template-areas: "years" "role" "org"; }
  .faq-list details p { padding-right: 0; }
  .btn-lg { width: 100%; justify-content: center; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-row .field + .field { margin-top: 18px; }
}

@media (max-width: 640px) {
  .tool-grid { gap: 12px; }
  .tool { grid-template-columns: 1fr; grid-template-areas: "icon" "name" "role"; row-gap: 4px; padding: 16px; }
  .tool .app { margin-bottom: 8px; }
}

/* Links from the homepage to the inner pages */
.wl-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; font-weight: 600; color: var(--paper); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.wl-link:hover i { translate: 3px 0; }
.wl-link i { transition: translate 0.25s var(--ease); }
.work-all { margin-top: 36px; }
/* A case-study row is one big link: the heading link stretches over the whole row */
.work-row:has(.row-link) { position: relative; }
.row-link { color: inherit; text-decoration: none; }
.row-link::after { content: ""; position: absolute; inset: 0; }
.row-link:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.work-row:has(.row-link:focus-visible) { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 8px; }
.row-link:focus-visible { outline: none; }
.work-more { grid-area: chips; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15.5px; }
.work-more i { transition: translate 0.25s var(--ease); }
.work-row:hover .work-more i { translate: 4px 0; }
.work-title { font-size: clamp(1.5rem, 2.3vw, 2rem); font-weight: 500; letter-spacing: -0.025em; line-height: 1.12; }

/* Inner pages: the agency service page, Work and the case studies */
.page-hero { padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 96px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 36px; font: 500 12.5px/1.4 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.crumbs li + li::before { content: "/"; margin-right: 10px; opacity: 0.5; }
.crumbs a { color: var(--ink); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.page-hero h1 { margin-top: 22px; max-width: 17ch; font-size: clamp(2.7rem, 6vw, 5rem); letter-spacing: -0.045em; line-height: 1.02; padding-bottom: 4px; }
.page-hero h1 em { font-style: normal; color: var(--accent-text); }
.page-hero .lede { max-width: 58ch; }
.page-section { padding: clamp(72px, 9vw, 120px) 0; }
.page-section-flush { padding-top: 0; }
.page-section-tint { background: var(--paper-2); border-block: 2px solid var(--ink); margin-top: clamp(72px, 9vw, 120px); }
.bento-3 .cell-sm { grid-column: span 4; }
.steps-page { margin-top: 52px; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(32px, 6vw, 96px); align-items: start; }
.split .section-title { margin-top: 18px; font-size: clamp(2rem, 3.8vw, 3.1rem); }
.split > div:first-child > .section-title:first-child { margin-top: 0; }
.prose p { font-size: 18px; color: var(--ink-soft); max-width: 62ch; }
.prose p + p { margin-top: 16px; }
.checks { margin-top: 26px; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; font-size: 17px; line-height: 1.55; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.chips-lg { gap: 10px; }
.chips-lg li { height: 40px; padding: 0 18px; font-size: 14px; }

/* Case study: facts on the left (sticky on desktop), the write-up on the right */
.cs-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px clamp(36px, 6vw, 96px); align-items: start; border-top: 2px solid var(--ink); padding-top: 40px; }
.cs-facts { position: sticky; top: 100px; padding: 24px; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.cs-facts dl { margin: 0; display: grid; gap: 18px; }
.cs-facts dl > div + div { padding-top: 18px; border-top: 1px solid var(--line); }
.cs-facts dt { font: 500 12px/1.4 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.cs-facts dd { margin: 6px 0 0; font-weight: 500; }
.cs-facts .chips { margin-top: 10px; }
.cs-body h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 500; letter-spacing: -0.025em; }
.cs-body h2:not(:first-child) { margin-top: 48px; }
.cs-body h2 + p, .cs-body h2 + .checks { margin-top: 16px; }
.cs-note { margin-top: 48px !important; padding: 18px 20px; border-left: 3px solid var(--accent); background: var(--accent-tint); border-radius: 0 12px 12px 0; font-size: 16px !important; color: var(--ink) !important; }
.cs-next { display: grid; gap: 14px; padding: 32px 0; border-block: 2px solid var(--ink); color: var(--ink); text-decoration: none; }
.cs-next-title { display: inline-flex; align-items: center; gap: 14px; font: 400 clamp(1.8rem, 3.6vw, 2.8rem)/1.1 var(--font-display); letter-spacing: -0.03em; }
.cs-next-title i { font-size: 0.7em; transition: translate 0.3s var(--ease); }
.cs-next:hover .cs-next-title i { translate: 6px 0; }
.cta-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 36px clamp(36px, 5vw, 72px); align-items: center; }
.cta-panel h2 { max-width: 14ch; font-size: clamp(2.3rem, 4.4vw, 3.6rem); }
.cta-panel .contact-ways { margin-top: 0; }
.cta-panel .hero-ctas { margin-top: 28px; }

@media (max-width: 960px) {
  .bento-3 .cell-sm { grid-column: span 6; }
  .split, .cs-layout, .cta-panel { grid-template-columns: 1fr; }
  .cs-facts { position: static; }
}
@media (max-width: 640px) {
  .bento-3 .cell-sm { grid-column: span 12; }
  .crumbs { margin-bottom: 28px; }
  .cs-layout { padding-top: 28px; }
  .prose p { font-size: 17px; }
}
.work-head .work-more { margin-top: 16px; color: var(--accent-text); }

/* Service cards that link to their own page: the heading link covers the card */
.cell .row-link:hover { text-decoration: none; }
.cell-more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--accent-text); }
.cell-more i { transition: translate 0.25s var(--ease); }
.cell:hover .cell-more i { translate: 4px 0; }
.cell-shop .cell-more { margin-top: 0; color: inherit; }
.cell:has(.row-link:focus-visible) { outline: 3px solid var(--accent); outline-offset: 4px; }

/* Other services: links between the service pages */
.svc-links { margin-top: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.svc-links a { position: relative; display: grid; gap: 6px; height: 100%; padding: 22px 64px 22px 24px; border: 1.5px solid var(--ink); border-radius: 16px; background: var(--card); color: var(--ink); text-decoration: none; transition: transform 0.35s var(--ease); }
.svc-links a:hover { transform: translateY(-4px); }
.svc-name { font: 500 clamp(1.25rem, 1.8vw, 1.5rem)/1.2 var(--font-display); letter-spacing: -0.02em; }
.svc-card { color: var(--ink-soft); font-size: 15.5px; line-height: 1.5; }
.svc-links i { position: absolute; right: 22px; top: 24px; font-size: 20px; transition: translate 0.25s var(--ease); }
.svc-links a:hover i { translate: 4px 0; }
@media (max-width: 640px) { .svc-links { grid-template-columns: 1fr; } }

/* Featured image under the intro of inner pages and articles */
.page-figure-wrap { padding-bottom: clamp(56px, 7vw, 96px); }
.page-figure { margin: 0; aspect-ratio: 21 / 9; border: 2px solid var(--ink); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 10px 10px 0 var(--ink); background: var(--paper-2); }
.page-figure img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .page-figure { aspect-ratio: 4 / 3; box-shadow: 6px 6px 0 var(--ink); } }

/* Insights: article cards */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.post-card { position: relative; display: flex; flex-direction: column; gap: 12px; height: 100%; padding: 14px 14px 22px; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--card); transition: transform 0.4s var(--ease); }
.post-card:hover { transform: translateY(-6px); }
.post-card .wp-block-post-featured-image { margin: 0 0 6px; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 10; }
.post-card .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; }
.post-card .post-card-cat, .post-card .post-card-cat a { padding: 0 8px; font: 500 12px/1.4 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); text-decoration: none; position: relative; z-index: 1; }
.post-card .post-card-title { padding: 0 8px; font-size: clamp(1.35rem, 2vw, 1.6rem); font-weight: 500; letter-spacing: -0.025em; line-height: 1.15; }
.post-card .post-card-title a { color: inherit; text-decoration: none; }
.post-card .post-card-title a::after { content: ""; position: absolute; inset: 0; }
.post-card .post-card-excerpt { padding: 0 8px; color: var(--ink-soft); font-size: 15.5px; }
.post-card .post-card-excerpt .wp-block-post-excerpt__more-text { display: none; }
.post-card .post-card-date { margin-top: auto; padding: 4px 8px 0; font: 500 12.5px/1.4 var(--font-mono); color: var(--ink-soft); }
.posts-empty { padding: 40px; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--ink-soft); font-size: 18px; text-align: center; }
.wp-block-query-pagination { margin-top: 40px; gap: 12px; font-weight: 600; }
@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }

/* Single article */
.post-hero .wp-block-post-terms { margin-top: 0; }
.post-hero .wp-block-post-terms a { color: inherit; text-decoration: none; }
.post-hero h1 { max-width: 22ch; }
.post-hero .wp-block-post-excerpt { margin-top: 26px; }
.post-hero .wp-block-post-excerpt__excerpt { margin: 0; max-width: 58ch; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--ink-soft); }
.post-hero .wp-block-post-excerpt__more-text { display: none; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 28px; font: 500 13px/1.4 var(--font-mono); letter-spacing: 0.04em; color: var(--ink-soft); }
.post-meta > * { margin: 0 !important; }
.post-meta .post-author { color: var(--ink); }
.post-figure-wrap .wp-block-post-featured-image { margin: 0; aspect-ratio: 21 / 9; border: 2px solid var(--ink); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 10px 10px 0 var(--ink); }
.post-figure-wrap .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .post-figure-wrap .wp-block-post-featured-image { aspect-ratio: 4 / 3; box-shadow: 6px 6px 0 var(--ink); } }
.post-body { max-width: 70ch; margin: 0 auto; padding-bottom: clamp(56px, 7vw, 96px); font-size: 18px; line-height: 1.7; }
.post-body > * + * { margin-top: 20px; }
.post-body h2 { margin-top: 52px; font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 500; letter-spacing: -0.025em; line-height: 1.15; }
.post-body h3 { margin-top: 36px; font-size: clamp(1.3rem, 2.2vw, 1.55rem); font-weight: 500; letter-spacing: -0.02em; }
.post-body h2 + *, .post-body h3 + * { margin-top: 14px; }
.post-body p, .post-body li { color: color-mix(in srgb, var(--ink) 86%, var(--paper)); }
.post-body a { color: var(--accent-text); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.post-body ul, .post-body ol { padding-left: 24px; display: grid; gap: 10px; }
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li::marker { color: var(--accent); font-weight: 600; }
.post-body blockquote { margin: 32px 0; padding: 8px 0 8px 24px; border-left: 3px solid var(--accent); font: 400 clamp(1.3rem, 2.2vw, 1.6rem)/1.35 var(--font-display); letter-spacing: -0.02em; }
.post-body blockquote p { color: var(--ink); }
.post-body figure { margin: 32px 0; }
.post-body figure img { border-radius: var(--radius); border: 2px solid var(--ink); }
.post-body figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-soft); text-align: center; }
.post-body code { padding: 2px 6px; border-radius: 6px; background: var(--paper-2); font: 0.88em var(--font-mono); }
.post-body .wp-block-table { overflow-x: auto; }
.post-body table { width: 100%; border-collapse: collapse; font-size: 16px; border: 2px solid var(--ink); border-radius: var(--radius); }
.post-body th, .post-body td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.post-body thead th { background: var(--ink); color: var(--paper); font-weight: 600; }
.post-body .note-box { padding: 20px 22px; border-left: 3px solid var(--accent); background: var(--accent-tint); border-radius: 0 12px 12px 0; }
.post-body .note-box p { color: var(--ink); }

/* About the author, after each article */
.author-box { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 22px; align-items: center; max-width: 70ch; margin: 0 auto clamp(56px, 7vw, 96px); padding: 24px; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.author-box img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 2px solid var(--ink); }
.author-box h2 { font-size: 1.4rem; font-weight: 500; letter-spacing: -0.02em; }
.author-box p { margin-top: 6px; color: var(--ink-soft); font-size: 16px; }
.author-box a { color: var(--accent-text); font-weight: 600; }
@media (max-width: 640px) { .author-box { grid-template-columns: 1fr; } }
/* Category list in the article intro: keep ", " tight (the eyebrow's gap would space it out) */
.post-hero .wp-block-post-terms.eyebrow { gap: 0; }
.post-hero .wp-block-post-terms.eyebrow::before { margin-right: 12px; }
.post-body .summary-box { padding: 22px 26px; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.post-body .summary-box > p:first-child { font: 500 13px/1.4 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); }
.post-body .summary-box ul { margin-top: 12px; }
.post-body .post-toc { margin-top: 36px; padding: 18px 26px; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--card); }
.post-body .post-toc summary { cursor: pointer; font: 500 13px/1.4 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); }
.post-body .post-toc ol { margin: 12px 0 0; padding-left: 1.3em; font-size: 16px; line-height: 1.5; }
.post-body .post-toc li + li { margin-top: 6px; }
.post-body .post-toc a { color: var(--ink); text-decoration: none; }
.post-body .post-toc a:hover, .post-body .post-toc a.is-active { color: var(--accent-text); }
.post-body .post-toc a:hover { text-decoration: underline; }
/* Wide screens: the table of contents moves to a sticky left column beside the article */
@media (min-width: 1140px) {
  .post-body:has(> .post-toc) { display: grid; grid-template-columns: 250px 740px; column-gap: 60px; justify-content: center; max-width: none; }
  .post-body:has(> .post-toc) > * { grid-column: 2; }
  .post-body > .post-toc { grid-column: 1; grid-row: 1 / span 400; align-self: start; position: sticky; top: 104px; margin-top: 0; max-height: calc(100vh - 128px); overflow-y: auto; padding: 18px 20px; box-shadow: var(--shadow); }
  .post-body > .post-toc ol { font-size: 15px; }
  .post-body > .post-toc a.is-active { font-weight: 600; }
  .post:has(.post-toc) .author-box { max-width: 740px; margin-left: calc((100% - 1050px) / 2 + 310px); }
}
.post-hero .wp-block-post-terms__separator { white-space: pre; }

/* Related article card at the end of a case study */
.cs-related { display: grid; gap: 8px; margin-top: 28px; padding: 22px 24px; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: transform 0.35s var(--ease); }
.cs-related:hover { transform: translateY(-4px); }
.cs-related-title { display: inline-flex; align-items: center; gap: 10px; font: 500 clamp(1.2rem, 1.9vw, 1.45rem)/1.25 var(--font-display); letter-spacing: -0.02em; }
.cs-related-title i { flex-shrink: 0; transition: translate 0.25s var(--ease); }
.cs-related:hover .cs-related-title i { translate: 4px 0; }
.cs-related-text { color: var(--ink-soft); font-size: 15.5px; }
