/* Srini portfolio — minimal. Every colour lives in :root. */
:root {
  /* palette: rebrand by editing these five */
  --almond-silk: #D0B8AC;
  --powder-petal: #F3D8C7;
  --linen: #EFE5DC;
  --porcelain: #FBFEFB;
  --white: #FFFFFF;

  /* text: contrast checked on White, Linen and Porcelain (all >= 4.5:1) */
  --ink: #2A2421;      /* 15.3:1 on white, 12.3:1 on Linen */
  --ink-2: #6B5D56;    /* 6.3:1 on white, 5.1:1 on Linen */
  --ink-3: #6B5D56;    /* same as ink-2; #7D6E66 fails on Linen (3.9:1) */
  --accent: #7A5646;   /* 6.5:1 on white, 5.2:1 on Linen; white on accent 6.5:1 */
  --accent-ink: #FFFFFF;
  --accent-soft: #F3D8C7;
  --line: #E4D6CC;     /* hairline: decoration only, never the only edge of a control */
  --line-2: #EFE5DC;
  --line-ui: #8F7565;  /* edges of form fields and cover outlines: 4.3:1 on white, 3.45:1 on Linen, 3.15:1 on Powder Petal */
  --disabled-bg: #EFE5DC;  /* disabled controls: --ink-2 text on Linen, 5.1:1 */

  --bg: #FFFFFF;
  --bg-2: #EFE5DC;
  --surface: #FFFFFF;
  --focus: #7A5646;
  --ph-1: var(--linen);
  --ph-2: var(--powder-petal);
  --ph-3: var(--almond-silk);
  --ph-4: var(--porcelain);
  --ph-5: var(--powder-petal);
  --ph-6: var(--linen);
  --ph-ink: var(--ink);
  --head-bg: #FFFFFF;
  --overlay: rgba(42, 36, 33, 0.94);
  --overlay-ink: var(--porcelain);
  --shadow: 0 1px 2px rgba(42, 36, 33, 0.06);
  --dots: radial-gradient(circle, rgba(122, 86, 70, 0.18) 1px, transparent 1.2px); /* the only radial-gradient: Home hero, contact bands */

  --sans: "Google Sans", "Product Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hand: "Handlee", cursive; /* small text only: Home sign-off, figure captions, small notes */
  --head: var(--sans); /* heading font for h1 and h2; set to var(--hand) to swap */
  --r: 16px;
  --r-s: 10px;
  --r-btn: 8px;
  --r-tag: 4px;
  --wrap: 1200px;
  --max: var(--wrap); /* the centred container on every page, header and footer included */
  --wrap-wide: 1400px;
  --gut: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* pass 10: one type scale. Every page hero h1 uses --fs-h1, every section heading --fs-h2, every card title --fs-h3. */
  --fs-h1: clamp(40px, 5.2vw, 68px);
  --fs-h2: clamp(28px, 3.2vw, 40px);
  --fs-h3: clamp(19px, 1.5vw, 22px);
  --fs-lead: clamp(18px, 1.5vw, 20px);
  --fs-body: 17px;
  --fs-small: 15px;   /* list items, card text, form labels */
  --fs-eyebrow: 13px; /* eyebrows, meta lines, captions */

  /* pass 10: one vertical rhythm */
  --section-pad: clamp(64px, 8vw, 120px); /* top and bottom of every band */
  --head-gap: clamp(32px, 4vw, 56px);     /* section heading -> content */
  --grid-gap: clamp(16px, 2vw, 28px);     /* between cards */

  /* pass 10: card hover tints, one per band colour (set as --card-hover on each band) */
  --hover-on-white: color-mix(in srgb, #FFFFFF, #EFE5DC 70%);     /* ≈ #F4EDE6; --ink-2 5.4:1, --accent 5.6:1 on it */
  --hover-on-porcelain: var(--linen);
  --hover-on-linen: color-mix(in srgb, #EFE5DC, #F3D8C7 60%);     /* ≈ #F1DDCF; --ink-2 4.8:1, --accent 4.9:1 on it */
  --head-h: 68px; /* header height: sticky offsets */
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; overflow-x: clip; }
body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--fs-body)/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
/* inline content links: accent, underline on hover */
:where(.prose, .lead, .note, .sec-head__sub, .crumbs, figcaption, .domains, .site-foot__small, .tools, .clients, .field, .form__status, .tl) a:not([class]) {
  color: var(--accent); text-decoration: none; transition: color 0.2s var(--ease); }
:where(.prose, .lead, .note, .sec-head__sub, .crumbs, figcaption, .domains, .site-foot__small, .tools, .clients, .field, .form__status, .tl) a:not([class]):hover {
  text-decoration: underline; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
main:focus { outline: none; } /* the skip link's target (tabindex=-1); never shows a ring around the whole page */
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; overflow-wrap: break-word; }
::placeholder { color: var(--ink-2); opacity: 1; } /* 6.3:1 on white */
/* h1 and h2 in the heading font (--head); h3 and below stay Google Sans. Headings use --ink or --accent only (>= 5.2:1). */
h1, h2, .h2 { font-family: var(--head); font-weight: 600; letter-spacing: -0.01em; line-height: 1.1; color: var(--ink); }
p { margin: 0 0 1em; }
em { font-style: italic; }
/* em in headings: same font, upright, accent colour */
:is(h1, h2, h3, .h2, .ph__word, blockquote) em { font-family: inherit; font-style: normal; font-weight: inherit; }
:is(h1, h2, h3, .h2) em { color: var(--accent); }
kbd { font: 500 12px/1 var(--sans); }
.wrap { width: 100%; max-width: calc(var(--max) + var(--gut) * 2); margin-inline: auto; padding: 0 var(--gut); }
.wrap-wide { width: 100%; max-width: calc(var(--wrap-wide) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--r-s); }
.skip:focus { top: 12px; color: var(--bg); }

.eyebrow { font-size: var(--fs-eyebrow); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 14px; }
.display { font-size: var(--fs-h1); line-height: 1.05; letter-spacing: -0.01em; max-width: 16ch; }
.display--cs { max-width: 18ch; }
.display--cs em { display: block; font-size: 0.62em; line-height: 1.15; margin-top: 0.15em; }
.signoff { margin: 20px 0 0; font: 400 22px/1.3 var(--hand); color: var(--ink-2); }
.h2 { font-size: var(--fs-h2); line-height: 1.12; letter-spacing: -0.01em; max-width: 26ch; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-2); max-width: 60ch; }
.prose { max-width: 68ch; color: var(--ink-2); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin: 0 0 0.45em; }
.prose h3 { font-size: var(--fs-h3); color: var(--ink); margin: 1.6em 0 0.4em; letter-spacing: -0.01em; }
.prose h3:first-child { margin-top: 0; }
.note { font-size: 14px; color: var(--ink-3); max-width: 70ch; }

/* buttons */
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border: 1px solid var(--line); border-radius: var(--r-btn);
  text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink); background: var(--white);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease); }
.btn:hover { border-color: var(--accent); color: var(--ink); }
.btn--solid { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--solid:hover { background: var(--ink); border-color: var(--ink); color: var(--accent-ink); }
.btn--ghost { background: transparent; border-color: transparent; color: var(--accent); text-underline-offset: 4px; }
.btn--ghost:hover { border-color: transparent; color: var(--accent); text-decoration: underline; }
/* A9: every button ends in an arrow icon that slides 4px on hover and focus; a new-tab button shows ↗ instead.
   Left out: back links (.btn--back), search, cancel and icon-only buttons. */
.btn::after, .link-arrow::after { content: ""; flex: none; width: 16px; height: 16px; margin-left: 8px; background: currentColor;
  -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; transition: transform 250ms var(--ease);
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8h10M8.5 3.5 13 8l-4.5 4.5' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.btn[target="_blank"]::after, .link-arrow[target="_blank"]::after {
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 11.5l7-7M5.5 4.5h6v6' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
:is(.btn, .link-arrow):is(:hover, :focus-visible)::after { transform: translateX(4px); }
:is(.btn, .link-arrow)[target="_blank"]:is(:hover, :focus-visible)::after { transform: translate(2px, -2px); }
.btn--back::after, .search-form .btn::after, .btn[data-cancel]::after, .btn--icon::after { content: none; }
.link-arrow { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); font-weight: 500; text-decoration: none; }
.link-arrow:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
/* busy submit: a spinner replaces the arrow */
.btn.is-busy::after { content: ""; --arrow: none; -webkit-mask: none; mask: none; background: none; width: 14px; height: 14px; border: 2px solid currentColor;
  border-right-color: transparent; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: var(--head-bg); border-bottom: 1px solid var(--line); }
.site-head__in { display: flex; align-items: center; gap: 8px 20px; min-height: 68px; }
.logo { display: flex; flex-direction: column; justify-content: center; min-height: 44px; text-decoration: none; font-weight: 600; font-size: 18px; letter-spacing: -0.02em; line-height: 1.15; margin-right: auto; }
.logo span { font-size: 12px; font-weight: 400; color: var(--ink-3); letter-spacing: 0; }
.logo:hover { color: var(--ink); }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 12px; font-size: 15px; text-decoration: none; color: var(--ink-2); border-radius: var(--r-btn); transition: color 0.2s var(--ease); }
.site-nav a:hover { color: var(--accent); text-decoration: underline; }
.site-nav a[aria-current] { color: var(--ink); background: var(--bg-2); }
.search-btn, .menu-btn { min-height: 44px; min-width: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-btn); background: var(--surface);
  color: var(--ink-2); cursor: pointer; font: 500 14px var(--sans); }
.search-btn:hover, .menu-btn:hover { color: var(--ink); border-color: var(--ink); }
.menu-btn { display: none; align-items: center; gap: 10px; }
.menu-btn i { position: relative; width: 16px; height: 1.5px; background: currentColor; }
.menu-btn i::before, .menu-btn i::after { content: ""; position: absolute; left: 0; width: 16px; height: 1.5px; background: currentColor; }
.menu-btn i::before { top: -5px; }
.menu-btn i::after { top: 5px; }
.menu-btn[aria-expanded="true"] i { background: transparent; }
.menu-btn[aria-expanded="true"] i::before { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i::after { transform: translateY(-5px) rotate(-45deg); }
.menu { position: fixed; inset: 68px 0 0; background: var(--bg); overflow-y: auto; }
.menu ol { list-style: none; margin: 0; padding-top: 24px; padding-bottom: 48px; }
.menu a { display: flex; align-items: baseline; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line-2); text-decoration: none;
  font-size: clamp(32px, 8vw, 52px); letter-spacing: -0.03em; line-height: 1.1; }
.menu a span { font-size: 13px; color: var(--ink-3); letter-spacing: 0.04em; }
body.menu-open, body.lightbox-open { overflow: hidden; }
html:has(body.lightbox-open) { overflow: hidden; overscroll-behavior: none; }
@media (max-width: 900px) {
  .site-nav { display: none; }
  .menu-btn { display: inline-flex; }
}

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 48px 0 96px; }
main > :last-child:not(section) { margin-bottom: clamp(64px, 8vw, 112px); }
.site-foot__in { display: grid; gap: 24px; grid-template-columns: 1fr auto; align-items: start; }
.site-foot nav { grid-column: 1 / -1; }
.site-foot ul { display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; margin: 0; padding: 0; }
.site-foot nav a { display: inline-flex; min-height: 44px; min-width: 44px; justify-content: center; align-items: center; padding: 0 4px; font-size: 15px; text-decoration: none; color: var(--ink-2); }
.site-foot__small { grid-column: 1 / -1; font-size: 13px; color: var(--ink-3); margin: 0; }
.site-foot__small a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.site-foot__cta { justify-self: end; }
@media (max-width: 700px) { .site-foot__in { grid-template-columns: 1fr; } .site-foot__cta { justify-self: start; } }

/* ---------- bands (pass 10) ----------
   Every top-level section is a .band: its background spans the window edge to edge, its content sits in the centred .wrap.
   Colours run Linen (the hero) → White → Porcelain → Linen … in page order; each band sets the card hover tint that suits it. */
.band { position: relative; isolation: isolate; padding-block: var(--section-pad); background: var(--band); --band: var(--white); --card-hover: var(--hover-on-white); }
main > .band:nth-of-type(3n + 3) { --band: var(--porcelain); --card-hover: var(--hover-on-porcelain); }
main > .band:nth-of-type(3n + 1), .band--hero { --band: var(--linen); --card-hover: var(--hover-on-linen); }
main { --card-hover: var(--hover-on-white); } /* project pages: text sections on white */
/* project pages: image bands Linen, full-bleed by a spread shadow (their content is not in a band) */
.cs-cover, .cs-sec--media, .cs-gallery {
  position: relative; isolation: isolate; background-color: var(--band); --band: var(--linen); --card-hover: var(--hover-on-linen);
  box-shadow: 0 0 0 100vmax var(--band); clip-path: inset(0 -100vmax); }
/* faint dot grid: the closing contact bands only */
.contact-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: var(--dots); background-size: 22px 22px; }

/* ---------- page heroes with the etched illustration (A11) ---------- */
.band--hero { overflow: hidden; padding-top: clamp(48px, 7vw, 104px); min-height: clamp(380px, 42vw, 620px); display: flex; flex-direction: column; justify-content: center; }
.band--hero::before { /* a soft Linen scrim on the left keeps the text at AA over the drawing */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to right, var(--linen) 0%, var(--linen) 38%, rgba(239, 229, 220, 0.6) 52%, rgba(239, 229, 220, 0) 66%); }
.hero-copy { position: relative; z-index: 2; }
.hero-copy > .lead, .hero-copy > .btns, .hero-copy > .contact-links, .hero-copy > .crumbs, .hero-copy > .block--tight { max-width: min(60ch, 52%); }
.hero-copy > .display { max-width: min(16ch, 56%); }
.hero-art { position: absolute; z-index: 0; top: 0; right: 0; width: min(55%, 1180px); height: 100%; object-fit: cover; object-position: center;
  pointer-events: none; user-select: none; mix-blend-mode: multiply; opacity: 0.92;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 35%), linear-gradient(to bottom, #000 70%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent 0%, #000 35%), linear-gradient(to bottom, #000 70%, transparent);
  mask-composite: intersect; }
.hero-art--home { width: min(60%, 1280px); }
.page-head .lead { margin-top: 28px; }
.hero .lead { margin-top: 32px; }
@media (max-width: 767px) {
  .band--hero { min-height: 0; padding-bottom: 0; }
  .band--hero::before { content: none; }
  .hero-copy > .lead, .hero-copy > .display, .hero-copy > .btns, .hero-copy > .contact-links { max-width: none; }
  .hero-art { position: relative; width: 100%; height: clamp(180px, 52vw, 300px); margin-top: 24px; opacity: 0.85;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 30%, #000 72%, transparent 100%); -webkit-mask-composite: source-over;
    mask-image: linear-gradient(to bottom, transparent 0%, #000 30%, #000 72%, transparent 100%); mask-composite: add; }
}
@media (max-width: 480px) { .hero-art:not(.hero-art--home) { display: none; } .band--hero:has(.hero-art:not(.hero-art--home)) { padding-bottom: var(--section-pad); } }

/* ---------- home ---------- */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line-2);
  border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.stat { background: var(--white); padding: 22px 20px; display: flex; flex-direction: column; gap: 6px; }
.stat__fig { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: clamp(28px, 3.4vw, 44px); font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.stat__label { font-size: var(--fs-eyebrow); color: var(--ink-3); line-height: 1.35; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat:last-child { grid-column: 1 / -1; } }
.flags { display: inline-flex; gap: 5px; }
.flags img { width: 30px; height: 20px; border-radius: 2px; border: 1px solid var(--line); object-fit: cover; }

/* client logos (B13): one muted tone, the brand colour on hover */
.logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px clamp(28px, 4vw, 52px); list-style: none; margin: var(--head-gap) 0 0; padding: 0; }
.logos li { display: flex; align-items: center; justify-content: center; min-height: 44px; }
.lg { display: block; flex: none; transition: color 0.3s var(--ease), filter 0.3s var(--ease), background-color 0.3s var(--ease); }
.lg--mono { width: 30px; height: 30px; color: var(--ink-2); }
.lg--img { height: 30px; width: auto; max-width: 150px; object-fit: contain; filter: grayscale(1) opacity(0.7); }
.lg--invert { filter: brightness(0) opacity(0.62); border-radius: 6px; } /* white artwork (NeuDesic, Uizard) as a dark silhouette */
.lg--text { font-size: var(--fs-eyebrow); font-weight: 500; font-variant: small-caps; text-transform: lowercase; letter-spacing: 0.08em; color: var(--ink-2); white-space: nowrap; }
:is(.logos li, .tech, .donut__logos li):hover .lg--mono { color: var(--brand, var(--ink)); }
:is(.logos li, .tech, .donut__logos li):hover .lg--img { filter: none; }
:is(.logos li, .tech, .donut__logos li):hover .lg--invert { filter: none; background: var(--ink); padding: 3px 6px; } /* a dark chip for white artwork */
:is(.logos li, .tech, .donut__logos li):hover .lg--text { color: var(--ink); }

.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.split .sec-head { margin-bottom: 0; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.sec-head { margin-bottom: var(--head-gap); }
.sec-head__sub { font-size: var(--fs-lead); color: var(--ink-2); max-width: 58ch; margin: 20px 0 0; }

.more { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 32px;
  border: 1px solid var(--line); border-radius: var(--r); }
* + .more { margin-top: var(--head-gap); }
.more h3 { font-size: var(--fs-h3); letter-spacing: -0.02em; margin-bottom: 6px; }
.more p { margin: 0; color: var(--ink-2); }
.more .eyebrow { margin-bottom: 8px; }

.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--grid-gap); }
.tiles--4 { grid-template-columns: repeat(4, 1fr); }
.tile { padding: 28px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.tile .num, .cs-sec__label .num { font-size: var(--fs-eyebrow); color: var(--ink-3); letter-spacing: 0.04em; }
.tile h3 { font-size: var(--fs-h3); margin: 28px 0 10px; }
.tile p { margin: 0; color: var(--ink-2); font-size: var(--fs-small); }
.tile__list { margin: 14px 0 0; padding-left: 1.1em; font-size: var(--fs-small); color: var(--ink-2); }
@media (max-width: 1000px) { .tiles--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .tiles { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .tiles--4 { grid-template-columns: 1fr; } }
.more__list { margin-top: 10px !important; font-size: 14px; color: var(--ink-3) !important; }
.lines { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.lines li { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: var(--fs-small); }

/* skills & domains (About) */
.skills { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px clamp(20px, 3vw, 40px); }
.skills h3 { font-size: var(--fs-h3); letter-spacing: -0.01em; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.skills ul { list-style: none; margin: 0; padding: 0; }
.skills li { padding: 5px 0; font-size: var(--fs-small); line-height: 1.45; color: var(--ink-2); }
@media (max-width: 1000px) { .skills { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .skills { grid-template-columns: 1fr; } }
.tools, .clients { margin: 40px 0 0; font-size: 15px; line-height: 1.6; color: var(--ink-3); max-width: 90ch; }
.tools strong, .clients strong { color: var(--ink-2); font-weight: 500; margin-right: 8px; }
.domains { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.domains__row { display: grid; grid-template-columns: minmax(200px, 1fr) 2fr; gap: 6px clamp(24px, 5vw, 80px); padding: 20px 0; border-bottom: 1px solid var(--line-2); }
.domains__row h3 { font-size: var(--fs-h3); letter-spacing: -0.01em; line-height: 1.35; }
.domains__row p { margin: 0; color: var(--ink-2); }
.domains__row .domains__clients { margin-top: 4px; font-size: 14px; color: var(--ink-3); }
@media (max-width: 700px) { .domains__row { grid-template-columns: 1fr; } }
/* testimonials (content/data/testimonials.md); hidden while empty */
.testimonials:empty, .testimonials:not(:has(*)) { display: none; }
.quotes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.quotes--short { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .quotes--short { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .quotes { grid-template-columns: 1fr; } }
.quote { display: flex; flex-direction: column; padding: clamp(22px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.quote blockquote { margin: 0; }
.quote__text { margin: 0; font-size: var(--fs-small); line-height: 1.6; color: var(--ink-2); }
.quotes--short .quote__text { display: -webkit-box; -webkit-line-clamp: 6; line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.quotes--short .quote__text.is-open { display: block; overflow: visible; }
.quote__more { align-self: flex-start; min-height: 44px; padding: 0; border: 0; background: none; font: 500 14px var(--sans); color: var(--ink);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.quote__more:hover { color: var(--accent); }
.quote__by { display: flex; align-items: center; gap: 14px; margin: auto 0 0; padding-top: 20px; }
.quote__by img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; background: var(--bg-2); }
.quote__by > span { display: flex; flex-direction: column; font-size: 14px; line-height: 1.4; color: var(--ink-3); }
.quote__by strong { color: var(--ink); font-weight: 600; font-size: 15px; }
.testimonials .sec-head__sub a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); }

/* experience timeline, education */
.tl { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.tl__row { display: grid; grid-template-columns: minmax(180px, 1fr) 2fr; gap: 6px clamp(24px, 5vw, 80px); padding: 24px 0; border-bottom: 1px solid var(--line-2); }
.tl__when { margin: 0; font-size: 14px; color: var(--ink-3); }
.tl__row h3 { font-size: var(--fs-h3); letter-spacing: -0.02em; margin-bottom: 4px; }
.tl__role { font-size: 14px; color: var(--ink-3); margin-bottom: 8px; }
.tl__row p:last-child { margin-bottom: 0; color: var(--ink-2); }
.tl--edu .tl__role { margin: 0; }
@media (max-width: 700px) { .tl__row { grid-template-columns: 1fr; } }

/* earlier projects */
.earlier { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--grid-gap); }
.early { padding: 24px; border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; background: var(--surface); }
/* aligned footers: each card's six parts share the row heights of its neighbours, so meta and links line up */
@supports (grid-template-rows: subgrid) {
  .early { display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
  .early > .early__media:empty { margin: 0; }
}
.early .eyebrow { font-size: var(--fs-eyebrow); margin-bottom: 8px; }
.early h3 { font-size: var(--fs-h3); letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 10px; }
.early p { font-size: var(--fs-small); color: var(--ink-2); }
.early strong { color: var(--ink); font-weight: 600; }
.early__role { margin: auto 0 0 !important; padding-top: 8px; font-size: var(--fs-eyebrow) !important; color: var(--ink-3) !important; align-self: end; }
.early__live:empty { display: none; }
.early__media { margin: -8px -8px 18px; }
.early__media .shot, .early__thumbs .shot { aspect-ratio: 4 / 3; border-radius: var(--r-s); }
.early__media img, .early__thumbs img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.early__thumbs { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.early__thumbs figure { margin: 0; }
.early__thumbs figcaption { margin-top: 4px; font-size: 12px; line-height: 1.3; color: var(--ink-3); }
@media (max-width: 1000px) { .earlier { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .earlier { grid-template-columns: 1fr; } .early__thumbs { grid-template-columns: repeat(2, 1fr); } }

/* journal post */
.article { padding-top: 0; }
.display--post { max-width: min(20ch, 60%); margin-bottom: 0; }
@media (max-width: 767px) { .display--post { max-width: none; } }
.article__body { font-size: var(--fs-body); line-height: 1.7; }
.article__body h2 { font-size: var(--fs-h2); color: var(--ink); margin: 1.8em 0 0.5em; letter-spacing: -0.01em; }
.article__body blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--accent);
  font-size: var(--fs-lead); line-height: 1.45; color: var(--ink); }
.article__body blockquote p { margin: 0; }
.post-page .cs-next { padding-top: clamp(64px, 8vw, 112px); }

.post-page .cs-next__next:only-child { grid-column: 2; }

/* contact form */
.form { max-width: 760px; display: grid; gap: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.field label span { font-weight: 400; color: var(--ink-3); margin-left: 6px; font-size: 13px; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-ui); border-radius: var(--r-s);
  background: var(--surface); color: var(--ink); font: 400 16px/1.5 var(--sans); }
.field textarea { resize: vertical; min-height: 160px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--accent); outline: 2px solid var(--focus); outline-offset: 2px; }
.field [aria-invalid="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.field__err { margin: 6px 0 0; font-size: 13px; color: var(--accent); min-height: 0; }
.field__err:empty { display: none; }
.check { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 15px; color: var(--ink-2); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form__foot .note { margin: 0; }
.form__foot .btn { font: 500 15px var(--sans); cursor: pointer; }
.form__foot .btn:disabled, .pw-modal .btn:disabled { opacity: 1; cursor: progress; background: var(--disabled-bg); border-color: var(--line-ui); color: var(--ink-2); }
.form__status { margin: 0; font-size: 15px; }
.form__status:empty { display: none; }
.form__status.is-err { color: var(--accent); }

.posts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.post a { display: grid; grid-template-columns: 130px 1fr auto; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.post a:hover strong { color: var(--accent); }
.post__date, .post__time, .post__tags { font-size: 13px; color: var(--ink-3); }
.post__main { display: flex; flex-direction: column; gap: 6px; }
.post strong { font-size: var(--fs-h3); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; transition: color 0.2s; }
.post__sum { color: var(--ink-2); font-size: 15px; max-width: 64ch; }
.post__time { white-space: nowrap; }
@media (max-width: 700px) { .post a { grid-template-columns: 1fr; gap: 8px; } }


.rail { position: fixed; left: 20px; top: 50%; transform: translateY(-50%); z-index: 30; display: none; }
.rail ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.rail a { display: flex; align-items: center; gap: 10px; min-height: 28px; text-decoration: none; font-size: 12px; color: var(--ink-3); }
.rail a::before { content: ""; width: 14px; height: 1px; background: currentColor; }
.rail a span { opacity: 0; }
.rail a:hover span, .rail a.is-on span, .rail a:focus-visible span { opacity: 1; }
.rail a.is-on { color: var(--ink); }
.rail a.is-on::before { width: 28px; }
@media (min-width: 1440px) { .rail { display: block; } }

/* ---------- cards & grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 32px) clamp(16px, 2vw, 28px); }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }
.card[hidden] { display: none; }
.card__link { display: flex; flex-direction: column; height: calc(100% + 24px); margin: -12px; padding: 12px 12px 16px; border-radius: calc(var(--r) + 8px);
  text-decoration: none; color: var(--ink); transition: transform 0.2s var(--ease), background-color 500ms ease; }
.card__link:hover { color: var(--ink); transform: translateY(-2px); }
.card__body { display: flex; flex-direction: column; flex: 1; }
.card__meta { margin-top: auto !important; padding-top: 10px; } /* footers line up across a row */
.grid--feat { grid-template-columns: 1fr 1fr; gap: var(--grid-gap) clamp(24px, 3vw, 40px); }
.grid--feat .card__media { aspect-ratio: 16 / 10; }
@media (max-width: 767px) { .grid--feat { grid-template-columns: 1fr; } }
.thumb--contain { object-fit: contain !important; object-position: center !important; padding: 18%; }
.card__media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); }
.card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.card__media .ph { height: 100%; }
.card__num { position: absolute; top: 12px; left: 12px; padding: 2px 6px; border: 1px solid var(--line); border-radius: var(--r-tag); background: var(--white); color: var(--ink-2);
  font-size: 12px; font-weight: 500; line-height: 1.4; }
.card__body { padding: 18px 2px 0; }
.card__body .eyebrow { font-size: 12px; margin-bottom: 8px; }
.card__title { font-size: var(--fs-h3); letter-spacing: -0.02em; line-height: 1.2; }
.card__link:hover .card__title { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.card__sub { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.card__meta { margin: 10px 0 0; font-size: 13px; color: var(--ink-3); }

/* placeholder tiles */
.ph { display: flex; flex-direction: column; justify-content: space-between; padding: 22px; color: var(--ph-ink); min-height: 220px; }
.ph--1 { background: var(--ph-1); } .ph--2 { background: var(--ph-2); } .ph--3 { background: var(--ph-3); }
.ph--4 { background: var(--ph-4); } .ph--5 { background: var(--ph-5); } .ph--6 { background: var(--ph-6); }
.ph { border: 1px solid var(--line); }
.ph__word { font-weight: 500; letter-spacing: -0.02em; font-size: clamp(28px, 3vw, 40px); line-height: 1.05; max-width: 14ch; }
.ph__tag { align-self: flex-start; font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); } /* ink: 8.1:1 on Almond Silk, where ink-2 is only 3.4:1 */
.ph--big { aspect-ratio: 16 / 8; padding: clamp(24px, 4vw, 56px); }
.ph--big .ph__word { font-size: clamp(48px, 9vw, 128px); max-width: 12ch; }
.gallery .ph { aspect-ratio: 16 / 10; border-radius: var(--r); }
.gallery .ph__word { font-size: clamp(22px, 2.4vw, 32px); }

/* ---------- work page ---------- */

.page-head .lead { margin-top: 28px; }

.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 4px 6px; margin: -4px -4px 18px; scrollbar-width: none; } /* the padding keeps focus rings inside the scroller */
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; min-height: 44px; padding: 0 16px; border-radius: var(--r-tag); border: 1px solid var(--line); background: var(--white);
  font: 500 14px var(--sans); color: var(--ink-2); cursor: pointer; transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease); }
.tabs button:hover { color: var(--ink); border-color: var(--accent); }
.tabs button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tabs .count { font-size: 12px; margin-left: 2px; }
.work__count { font-size: 14px; color: var(--ink-3); margin-bottom: 28px; }
.work__empty { padding: 48px 0; color: var(--ink-2); }
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 56px; }
.pager button { min-width: 44px; min-height: 44px; padding: 0 14px; border-radius: var(--r-btn); border: 1px solid var(--line); background: var(--white);
  font: 500 14px var(--sans); color: var(--ink-2); cursor: pointer; }
.pager button:hover:not(:disabled) { border-color: var(--accent); color: var(--ink); }
.pager button[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pager button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.pager__arrow { transition: transform 250ms var(--ease); }
.pager button:is(:hover, :focus-visible):not(:disabled) .pager__arrow { transform: translateX(4px); }
.pager button:disabled { cursor: default; background: var(--disabled-bg); border-color: var(--line); color: var(--ink-2); }

/* ---------- case study (project page) ---------- */
.cs-hero { padding-top: clamp(40px, 7vw, 96px); }
.crumbs { font-size: 13px; color: var(--ink-3); margin-bottom: clamp(32px, 5vw, 64px); }

.cs-hero__row { display: grid; grid-template-columns: 1fr auto; gap: 32px 64px; align-items: end; margin-top: clamp(32px, 4vw, 56px); }
.cs-hero__row .lead p:last-child { margin-bottom: 0; }
.cs-hero__row .btns { margin-top: 0; justify-content: flex-end; }
@media (max-width: 900px) { .cs-hero__row { grid-template-columns: 1fr; } .cs-hero__row .btns { justify-content: flex-start; } }
.cs-cover { margin-top: clamp(40px, 6vw, 80px); margin-bottom: 0; padding-block: clamp(32px, 5vw, 64px); }
.cs-cover img, .cs-cover .ph { width: 100%; border-radius: var(--r); background: var(--bg-2); }
.cs-cover img { max-height: 82vh; object-fit: cover; object-position: top center; }
.cs-facts { padding-top: clamp(40px, 5vw, 64px); }
.cs-facts dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 32px; margin: 0; border-top: 1px solid var(--line); }
.cs-facts dl > div { padding: 18px 0; border-bottom: 1px solid var(--line-2); }
.cs-facts dt { font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.cs-facts dd { margin: 0; font-size: 15px; line-height: 1.5; }
.cs-facts .note { margin-top: 20px; padding: 14px 18px; border-radius: var(--r-s); background: var(--accent-soft); color: var(--ink); }
.search-results a:focus-visible { outline-offset: -2px; } /* inside its scroller, so the ring is never clipped */
.cs-sec { display: grid; grid-template-columns: minmax(200px, 1fr) 2fr; gap: 24px clamp(32px, 6vw, 96px); padding: clamp(32px, 4.5vw, 64px) 0; }
.cs-sec__label { display: flex; flex-direction: column; gap: 10px; align-self: start; position: sticky; top: 140px; }
.cs-sec__label h2 { font-size: var(--fs-h2); letter-spacing: -0.01em; }
.cs-sec__body { font-size: 17px; }
.cs-sec__body > p:first-child { font-size: var(--fs-lead); color: var(--ink); line-height: 1.5; }
@media (max-width: 900px) { .cs-sec { grid-template-columns: 1fr; } .cs-sec__label { position: static; } }
.cs-gallery { margin-top: clamp(32px, 4.5vw, 64px); padding-block: clamp(48px, 6vw, 88px); }
.cs-gallery > .cs-sec__label { position: static; margin-bottom: 16px; }
.cs-gallery > .note { margin-bottom: 36px; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 40px) clamp(16px, 2vw, 28px); }
.gallery figure { margin: 0; }
.gallery .wide { grid-column: 1 / -1; }
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr; } }
.shot { display: block; border-radius: var(--r); overflow: hidden; background: var(--white); border: 1px solid var(--line); cursor: zoom-in;
  transition: border-color 0.2s var(--ease); }
.shot img { width: 100%; }
.shot:hover { border-color: var(--accent); }
.gallery figcaption { display: flex; gap: 12px; margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.gallery figcaption span { color: var(--ink-3); }
/* project pages: figure captions in the hand font (numbers stay sans) */
.case .gallery figcaption, .case .shots figcaption { font: 400 15px/1.4 var(--hand); color: var(--ink-2); } /* 5.1:1 on Linen, 6.2:1 on Porcelain */
.case .gallery figcaption span { font: 400 13px/1.6 var(--sans); }
.cs-next { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: clamp(80px, 10vw, 140px); }
.cs-next a { display: flex; flex-direction: column; gap: 6px; padding: clamp(24px, 3vw, 40px); border-radius: var(--r); background: var(--bg-2); text-decoration: none;
  border: 1px solid var(--line); transition: border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease); }
.cs-next a:hover { border-color: var(--accent); transform: translateY(-2px); }
.cs-next a:hover strong { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.cs-next strong { font-size: var(--fs-h3); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.cs-next span:last-child { color: var(--ink-2); font-size: 15px; }
.cs-next__next { text-align: right; align-items: flex-end; }
@media (max-width: 700px) { .cs-next { grid-template-columns: 1fr; } .cs-next__next { text-align: left; align-items: flex-start; } }

/* ---------- photo sets: justified rows, natural aspect ratios (--ar = width / height, set per photo) ---------- */
.cs-gallery--photos > .note { margin-bottom: 24px; }
.photos { --k: 19%; --gap: 12px; display: flex; flex-wrap: wrap; gap: var(--gap); }
.photos::after { content: ""; flex: 999 1 0; } /* the last row keeps its natural height instead of stretching */
.photo { display: block; flex: var(--ar) 1 calc(var(--ar) * var(--k)); border-radius: var(--r-s); overflow: hidden; background: var(--line); cursor: zoom-in; }
.photo img { display: block; width: 100%; height: auto; transition: opacity 0.2s var(--ease); }
.photo:hover img { opacity: 0.88; }
.photo:focus-visible { outline-offset: 3px; border-radius: var(--r-s); }
@media (max-width: 900px) { .photos { --k: 28%; } }
@media (max-width: 560px) { .photos { --k: 42%; --gap: 8px; } }
.card--photo .card__media img { object-position: center; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: var(--overlay); color: var(--overlay-ink);
  font-family: var(--sans); animation: lb-fade 0.2s var(--ease); }
.lightbox[hidden] { display: none; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 12px 10px 20px; font: 500 14px/1.4 var(--sans); }
.lightbox__pos { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.lightbox__stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; overflow: hidden; padding: 0 72px;
  touch-action: none; user-select: none; -webkit-user-select: none; }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; cursor: zoom-in; transform-origin: 50% 50%;
  will-change: transform; -webkit-user-drag: none; animation: lb-in 0.22s var(--ease); }
.lightbox.is-zoomed .lightbox__stage img { cursor: grab; border-radius: 0; }
.lightbox.is-dragging .lightbox__stage img { cursor: grabbing; }
.lightbox.is-easing .lightbox__stage img { transition: transform 0.22s var(--ease); }
.lightbox__cap { min-height: 1.4em; margin: 0; padding: 12px 72px 18px; text-align: center; font: 400 14px/1.4 var(--sans); }
.lightbox button { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0; border: 1px solid rgba(251, 254, 251, 0.28);
  border-radius: var(--r-btn); background: rgba(42, 36, 33, 0.4); color: var(--overlay-ink); font: 500 18px var(--sans); cursor: pointer; }
.lightbox button:hover { background: rgba(251, 254, 251, 0.14); }
.lightbox button:focus-visible { outline: 2px solid var(--overlay-ink); outline-offset: 2px; }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; }
.lightbox__prev { left: 14px; }
.lightbox__next { right: 14px; }
.lightbox--single .lightbox__prev, .lightbox--single .lightbox__next { display: none; }
@media (max-width: 700px) {
  .lightbox__stage { padding: 0; }
  .lightbox__cap { padding: 12px 68px 22px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 10px; transform: none; }
  .lightbox__prev { left: 10px; }
  .lightbox__next { right: 10px; }
}
@keyframes lb-fade { from { opacity: 0; } }
@keyframes lb-in { from { opacity: 0; transform: scale(0.97); } }
@media (prefers-reduced-motion: reduce) { .lightbox, .lightbox__stage img { animation: none; } .lightbox.is-easing .lightbox__stage img { transition: none; } }

/* ---------- motion ---------- */
/* only: hover colour/underline, a <=2px card lift, a one-time fade-in */
.js .reveal { opacity: 0; transition: opacity 0.6s var(--ease); }
.js .reveal.is-in { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transition: none; }
  .card__link:hover, .cs-next a:hover { transform: none; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print { .site-head, .progress, .to-top, .rail, .cs-nav, .site-foot nav, .x-intro, .cmodal:not(.cmodal--inline) { display: none !important; } .js .reveal { opacity: 1; } }

/* ---------- utilities ---------- */
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ---------- search ---------- */
.search-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.search-btn[aria-expanded="true"] { color: var(--ink); border-color: var(--ink); }
@media (max-width: 900px) { .search-btn span { display: none; } }
.search-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line-2); box-shadow: var(--shadow); padding: 16px 0 20px; }
.search-panel .wrap { max-width: calc(760px + var(--gut) * 2); }
.search-form input { width: 100%; min-width: 0; min-height: 52px; padding: 12px 16px; border: 1px solid var(--line-ui); border-radius: var(--r-s); background: var(--surface);
  color: var(--ink); font: 400 17px var(--sans); }
.search-form input:focus-visible { border-color: var(--accent); outline: 2px solid var(--focus); outline-offset: 2px; }
.search-form--page { display: flex; flex-wrap: wrap; gap: 10px; max-width: 760px; }
.search-form--page input { flex: 1 1 220px; }
.search-form--page .btn { min-height: 52px; flex: none; }
.search-results, .search-list { list-style: none; margin: 8px 0 0; padding: 0; }
.search-results { max-height: 60vh; overflow-y: auto; }
.search-results:empty { display: none; }
.search-results a, .search-list a { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--r-s); text-decoration: none; }
.search-results a:hover, .search-results a:focus-visible { background: var(--bg-2); color: var(--ink); }
.search__type { font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.search__sum { font-size: 14px; line-height: 1.45; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.search__none { padding: 12px 14px; font-size: 14px; color: var(--ink-3); }
.search-list { max-width: 820px; border-top: 1px solid var(--line); margin-top: 0; }
.search-list li { border-bottom: 1px solid var(--line-2); }
.search-list a { padding: 18px 0; border-radius: 0; }
.search-list strong { font-size: var(--fs-h3); font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; }
.search-list a:hover strong { color: var(--accent); }
#search-count { margin: 24px 0 12px; }

/* ---------- screens inside case-study sections (Images: lines) ---------- */
.cs-sec--media { grid-template-columns: 1fr; }
.cs-sec--media .cs-sec__label { position: static; }
.cs-sec--media .cs-sec__body { max-width: none; }
.cs-sec--media .cs-sec__body > :not(.shots) { max-width: 68ch; }
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 20px; margin: 24px 0 40px; }
.shots:last-child { margin-bottom: 0; }
.shots--compact, .gallery--compact { grid-template-columns: repeat(3, 1fr); }
.shots--phones { grid-template-columns: repeat(4, 1fr); }
.shots--wide { grid-template-columns: 1fr; }
.shots figure { margin: 0; }
.shots figcaption { margin-top: 10px; font-size: 14px; line-height: 1.4; color: var(--ink-3); }
@media (max-width: 1000px) { .shots--phones { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) {
  .shots { grid-template-columns: 1fr; gap: 24px; }
  .shots--phones, .shots--compact, .gallery--compact { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
  .shots--wide { grid-template-columns: 1fr; }
}
/* pass 4: lo-fi rows of five, top-cropped tall captures, a Linen band for dark screens, paired and panel covers */
.shots--five { grid-template-columns: repeat(5, 1fr); gap: 24px 16px; }
.shots--crop { grid-template-columns: repeat(4, 1fr); gap: 24px 16px; }
.shots--crop .shot { aspect-ratio: 3 / 4; }
.shots--crop img { height: 100%; object-fit: cover; object-position: top center; }
.shots--band { padding: clamp(20px, 4vw, 48px); border-radius: var(--r); background: var(--linen); }
.shots--band figcaption { color: var(--ink-2); }
.cs-sec--media .shots--band { background: var(--porcelain); border: 1px solid var(--line); }
@media (max-width: 700px) {
  .shots--five { grid-template-columns: repeat(3, 1fr); gap: 16px 10px; }
  .shots--crop { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
  .shots--band { padding: 16px; }
}
.cs-cover--pair { display: flex; justify-content: center; gap: clamp(16px, 4vw, 48px); padding: clamp(24px, 5vw, 64px) var(--gut); border-radius: var(--r); background: transparent; }
.cs-cover--pair img { width: min(44%, 300px); max-height: none; border-radius: 24px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.cs-cover--panel img { padding: clamp(24px, 6vw, 80px); max-height: 70vh; object-fit: contain; background: var(--white); border: 1px solid var(--line-2); }
.lightbox--tall .lightbox__stage { align-items: flex-start; overflow-y: auto; touch-action: pan-y; }
.lightbox--tall .lightbox__stage img { max-width: min(100%, 820px); max-height: none; cursor: default; }

/* ---------- earlier work extras ---------- */
.shot--link { cursor: pointer; }
.early__media figcaption { margin-top: 10px; font-size: 14px; }
.webwork { margin-top: 48px; }
.webwork h3 { font-size: var(--fs-h3); letter-spacing: -0.02em; margin-bottom: 16px; }
.webwork ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.webwork figure { margin: 0; }
.webwork .shot { aspect-ratio: 4 / 3; border-radius: var(--r-s); }
.webwork img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.webwork figcaption { margin-top: 8px; font-size: 13px; line-height: 1.4; color: var(--ink-3); }
.webwork figcaption strong { display: block; font-size: 15px; font-weight: 500; color: var(--ink); }
@media (max-width: 900px) { .webwork ul { grid-template-columns: repeat(2, 1fr); } }

/* ---------- pass 8: generated covers, thumbs on next/previous, live-site links ---------- */
.cover { display: block; width: 100%; height: 100%; }
.card__media .cover, .cs-next__thumb .cover { height: 100%; }
.cs-cover .cover { width: 100%; height: auto; aspect-ratio: 4 / 3; max-height: 72vh; border-radius: var(--r); border: 1px solid var(--line); }
.early__cover { display: block; aspect-ratio: 4 / 3; margin: -8px -8px 18px; border-radius: var(--r-s); overflow: hidden; border: 1px solid var(--line); }
.cs-next__thumb { display: block; width: clamp(104px, 14vw, 168px); aspect-ratio: 4 / 3; margin-bottom: 14px; border-radius: var(--r-s); overflow: hidden;
  border: 1px solid var(--line); background: var(--white); }
.cs-next__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.live { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 4px; font-weight: 500; }
.live:hover { color: var(--ink); }
.cs-facts dd .live { min-height: 32px; }
.live__note { display: block; font: 400 15px/1.4 var(--hand); color: var(--ink-2); }
.early__live { display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px; margin: 8px 0 0 !important; font-size: 14px !important; }
.early__live > span { font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.webwork figcaption .live { min-height: 36px; font-size: 14px; }

/* ---------- pass 8: protected Adani screens ---------- */
.locked { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-top: clamp(32px, 4vw, 48px);
  margin-bottom: 20px; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--accent-soft); }
.locked p { margin: 0; max-width: 60ch; color: var(--ink); }
.locked .btn { cursor: pointer; font: 500 15px var(--sans); }
.locked.is-open { background: var(--porcelain); }
.locked.is-open .btn { display: none; }
[data-private] { position: relative; }
.is-locked a[data-private]::after { content: "Locked · select to unlock"; position: absolute; left: 12px; bottom: 12px; padding: 4px 10px; border-radius: var(--r-tag);
  background: var(--white); color: var(--ink); font: 500 12px/1.4 var(--sans); border: 1px solid var(--line); }
.is-locked a[data-private] { cursor: pointer; }
.pw-modal { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: var(--gut); background: rgba(42, 36, 33, 0.6); }
.pw-modal[hidden] { display: none; }
.pw-modal__box { width: min(440px, 100%); padding: clamp(24px, 4vw, 36px); border-radius: var(--r); background: var(--white); border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(42, 36, 33, 0.25); }
.pw-modal__box h2 { font-size: var(--fs-h2); margin-bottom: 8px; }
.pw-modal__box > p { font-size: 15px; color: var(--ink-2); }
.pw-row { display: flex; gap: 8px; }
.pw-row input { flex: 1; min-width: 0; }
.pw-toggle { flex: none; min-width: 72px; min-height: 48px; padding: 0 14px; border: 1px solid var(--line-ui); border-radius: var(--r-s); background: var(--white); color: var(--ink);
  font: 500 14px var(--sans); cursor: pointer; }
.pw-toggle:hover { border-color: var(--accent); }
.pw-modal .btns { margin-top: 20px; }
.pw-modal .btn { cursor: pointer; font: 500 15px var(--sans); }
body.modal-open { overflow: hidden; }

/* ---------- pass 8: contact feedback ---------- */
.form-done, .form-fail { max-width: 760px; padding: clamp(24px, 4vw, 40px); border-radius: var(--r); border: 1px solid var(--line); }
.form-done { background: var(--linen); }
.form-done h2 { font-size: var(--fs-h2); margin-bottom: 12px; }
.form-done p { color: var(--ink-2); }
.form-done:focus { outline: 2px solid var(--focus); outline-offset: 4px; }
.form-fail { background: var(--accent-soft); color: var(--ink); }
.form-fail p { margin: 0 0 6px; }
.form-fail p:last-child { margin: 0; }
.form-fail a { color: var(--accent); font-weight: 500; }

/* =====================================================================
   pass 10
   ===================================================================== */

/* ---------- A8 scroll progress, A7 back to top ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: 2px; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; will-change: transform; }
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--linen); color: var(--accent); border: 1px solid var(--line); box-shadow: var(--shadow); opacity: 0; visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0s linear 0.3s, background-color 0.25s var(--ease); }
.to-top[hidden] { display: none; }
.to-top.is-on { opacity: 1; visibility: visible; transition: opacity 0.3s var(--ease), visibility 0s, background-color 0.25s var(--ease); }
.to-top:hover { background: var(--powder-petal); color: var(--accent); }
body.lightbox-open .to-top, body.modal-open .to-top, html.x-locked .to-top { display: none; }

/* ---------- A10 card hover: the band's deeper tint, slowly ---------- */
:is(.card__link, .early, .quote, .carousel__card, .more, .tile, .tech, .law, .cs-next a, .post a, .dt__stage, .donut__key, .search-list a) {
  transition: background-color 500ms ease, border-color 0.2s var(--ease), transform 0.2s var(--ease), color 0.2s var(--ease); }
:is(.card__link, .early, .quote, .carousel__card, .more, .tile, .tech, .law, .cs-next a, .post a, .search-list a):is(:hover, :focus-within) { background-color: var(--card-hover); }
.cs-next a { background: var(--surface); }
:is(.early, .law, .tech, .more):hover { transform: translateY(-2px); }
.post a { padding-inline: 12px; margin-inline: -12px; border-radius: var(--r-s); }
.search-list a { padding-inline: 12px; margin-inline: -12px; }

/* ---------- A1 intro (Home), light palette ---------- */
.x-intro { position: fixed; inset: 0; z-index: 1000; overflow: hidden; background: var(--linen); color: var(--ink); font-family: var(--sans);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease); }
.x-intro[hidden] { display: none; }
html.intro-pending .x-intro[hidden] { display: block; }
html.x-locked, html.x-locked body { overflow: hidden; }
.x-intro.is-leaving { opacity: 0; transform: translateY(-3%); pointer-events: none; }
.x-intro__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.12; mix-blend-mode: multiply; pointer-events: none; }
.x-intro.is-playing .x-intro__bg { animation: x-kb 24s linear forwards; }
.x-intro::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 45%, rgba(251, 254, 251, 0.55) 0%, rgba(239, 229, 220, 0) 70%); }
.x-intro__top { position: absolute; top: 0; left: 0; right: 0; z-index: 3; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 20px var(--gut); }
.x-intro__here { display: grid; gap: 6px; min-width: 150px; }
.x-intro__count, .x-intro__now { margin: 0; font-size: var(--fs-eyebrow); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.x-intro__count { display: flex; align-items: baseline; gap: 10px; }
.x-intro__count b { font-size: 28px; font-weight: 600; letter-spacing: 0.01em; color: var(--ink); font-variant-numeric: tabular-nums; }
.x-intro__now b { font-weight: 600; color: var(--accent); }
.x-intro__route { flex: 1; max-width: 680px; display: flex; list-style: none; margin: 8px auto 0; padding: 0; }
.x-intro__route li { flex: 1 1 0; position: relative; display: grid; justify-items: center; align-content: start; gap: 10px; padding: 0 4px; text-align: center;
  font-size: 12px; line-height: 1.3; color: var(--ink-2); transition: color 400ms ease; }
.x-intro__route li::before { content: ""; position: absolute; top: 4px; left: -50%; width: 100%; height: 1px; background: var(--line-ui); opacity: 0.5; }
.x-intro__route li:first-child::before { content: none; }
.x-intro__route li.is-done::before, .x-intro__route li.is-current::before { background: var(--accent); opacity: 1; }
.x-intro__route i { position: relative; z-index: 1; width: 9px; height: 9px; border: 1px solid var(--accent); border-radius: 50%; background: var(--linen);
  transition: background 400ms ease, transform 400ms var(--ease), box-shadow 400ms ease; }
.x-intro__route li.is-done i { background: var(--accent); }
.x-intro__route li.is-current i { background: var(--accent); transform: scale(1.4); box-shadow: 0 0 0 5px rgba(122, 86, 70, 0.16); }
.x-intro__route li.is-current { color: var(--ink); font-weight: 600; }
.x-intro__skip { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border: 1px solid var(--line-ui); border-radius: 999px;
  background: var(--porcelain); color: var(--ink); font: 500 14px var(--sans); cursor: pointer; white-space: nowrap; }
.x-intro__skip:hover { border-color: var(--accent); }
.x-intro__skip kbd { font: 500 12px var(--sans); color: var(--ink-2); border: 1px solid var(--line-ui); border-radius: 4px; padding: 1px 6px; }
.x-intro__stage { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; list-style: none; margin: 0; padding: 120px var(--gut) 150px; }
.x-intro__m { grid-area: 1 / 1; max-width: 920px; text-align: center; opacity: 0; transform: translateY(40px); transition: opacity 800ms var(--ease), transform 900ms var(--ease); }
.x-intro__m.is-on { opacity: 1; transform: none; }
.x-intro__m.is-out { opacity: 0; transform: translateX(-6vw); transition-duration: 700ms; }
.x-intro__yr { margin: 0; font-weight: 600; font-size: clamp(56px, 12vw, 156px); line-height: 0.95; letter-spacing: -0.02em; color: var(--accent); font-variant-numeric: tabular-nums; }
.x-intro__t { font-size: clamp(24px, 3.2vw, 40px); line-height: 1.12; color: var(--ink); }
.x-intro__t::before { content: ""; display: block; width: 48px; height: 1px; background: var(--accent); margin: 24px auto 20px; }
.x-intro__org { margin: 12px 0 0; font-size: var(--fs-eyebrow); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.x-intro__line { margin: 14px auto 0; max-width: 52ch; font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-2); }
.x-intro .pins { justify-content: center; margin-top: 20px; }
.x-intro__end { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; text-align: center; padding: 0 var(--gut) 120px; opacity: 0;
  pointer-events: none; transition: opacity 600ms ease; }
.x-intro.is-end .x-intro__end { opacity: 1; }
.x-intro.is-end .x-intro__stage { opacity: 0; transition: opacity 400ms ease; }
.x-intro__name { margin: 0; font-weight: 600; font-size: clamp(64px, 13vw, 168px); line-height: 1; letter-spacing: 0.08em; white-space: nowrap; color: var(--ink); }
.x-intro__name span { display: inline-block; opacity: 0; transform: translateY(0.35em) scale(1.1); filter: blur(10px); }
.x-intro.is-end .x-intro__name span { animation: x-letter 900ms var(--ease) forwards; animation-delay: calc(var(--i) * 90ms); }
.x-intro__role { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 24px 0 0; font-size: var(--fs-eyebrow); font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); opacity: 0; }
.x-intro__role::before, .x-intro__role::after { content: ""; width: 40px; height: 1px; background: var(--accent); }
.x-intro.is-end .x-intro__role { animation: x-rise 800ms var(--ease) 700ms forwards; }
.x-intro__rail { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 0 var(--gut) 28px; }
.x-intro__track { position: relative; max-width: var(--max); height: 1px; margin: 0 auto 52px; background: var(--line-ui); transform: scaleX(0); transform-origin: left; }
.x-intro.is-playing .x-intro__track { animation: x-draw 1100ms var(--ease) forwards; }
.x-intro__fill { position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 900ms var(--ease); }
.x-intro__dot { position: absolute; top: 0; left: calc(var(--p) * 1%); width: 9px; height: 9px; border: 1px solid var(--accent); border-radius: 50%; background: var(--linen);
  transform: translate(-50%, -50%); transition: background 400ms ease, transform 400ms var(--ease), box-shadow 400ms ease; }
.x-intro__dot.is-done { background: var(--accent); }
.x-intro__dot.is-current { transform: translate(-50%, -50%) scale(1.5); box-shadow: 0 0 0 6px rgba(122, 86, 70, 0.14); }
.x-intro__dot > span { position: absolute; top: 14px; left: 50%; transform: translateX(-50%) scale(0.667); transform-origin: 50% 0; font-size: 18px; color: var(--ink-2);
  white-space: nowrap; background: var(--linen); padding: 0 4px; border-radius: 4px; }
.x-intro__dot.is-current > span { color: var(--accent); font-weight: 600; }
.x-intro__bar { max-width: var(--max); height: 2px; margin: 0 auto; background: rgba(122, 86, 70, 0.14); overflow: hidden; }
.x-intro__bar span { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
/* reduced motion: a still name card for 1.5 s */
.x-intro.is-static .x-intro__stage, .x-intro.is-static .x-intro__rail, .x-intro.is-static .x-intro__here, .x-intro.is-static .x-intro__route { display: none; }
.x-intro.is-static .x-intro__top { justify-content: flex-end; }
.x-intro.is-static .x-intro__end { opacity: 1; }
.x-intro.is-static .x-intro__name span, .x-intro.is-static .x-intro__role { opacity: 1; transform: none; filter: none; animation: none; }
@media (max-width: 900px) { .x-intro__route { display: none; } }
@media (max-width: 640px) {
  .x-intro__dot > span { display: none; }
  .x-intro__dot.is-current > span { display: block; }
  .x-intro__skip kbd { display: none; }
  .x-intro__stage { padding-top: 110px; }
}
@keyframes x-kb { from { transform: scale(1.04); } to { transform: scale(1.16) translate(-1.5%, -1%); } }
@keyframes x-draw { to { transform: scaleX(1); } }
@keyframes x-letter { to { opacity: 1; transform: none; filter: none; } }
@keyframes x-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- location pills (intro, Experience) ---------- */
.pins { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.pin { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 8px; border: 1px solid var(--line-ui); border-radius: 999px; background: var(--porcelain);
  font-size: 12px; font-weight: 500; line-height: 1.3; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.pin__icon { width: 12px; height: 12px; flex: none; }

/* ---------- B15 recommendations carousel ---------- */
.carousel__card { max-width: 900px; padding: clamp(28px, 5vw, 56px); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.carousel__slides { display: grid; }
.slide { margin: 0; }
.slide + .slide { margin-top: 40px; }
.slide blockquote { margin: 0; }
.slide__text { margin: 0; font-size: clamp(20px, 2vw, 26px); line-height: 1.5; letter-spacing: -0.01em; color: var(--ink); }
.slide__text::before { content: "“"; } .slide__text::after { content: "”"; }
.slide__text:not(.is-open) { display: -webkit-box; -webkit-line-clamp: 6; line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.slide figcaption { display: flex; flex-direction: column; margin-top: 22px; font-size: var(--fs-small); color: var(--ink-2); }
.slide figcaption strong { color: var(--ink); font-weight: 600; }
.carousel__nav { display: none; }
.js .carousel__nav { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 32px 0 0; padding: 0; }
.js .slide { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; }
.js .slide.is-active { opacity: 1; visibility: visible; transition: opacity 2000ms ease; }
.avatar { display: block; padding: 2px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; opacity: 0.6; transition: opacity 0.3s ease, box-shadow 0.3s ease; }
.avatar img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--bg-2); }
.avatar:hover { opacity: 0.85; }
.avatar[aria-pressed="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--band, var(--white)), 0 0 0 4px var(--accent); }
.avatar:focus-visible { border-radius: 50%; outline-offset: 4px; }

/* ---------- C17a technologies & tools ---------- */
.techs-block { margin-top: var(--head-gap); padding-top: var(--head-gap); border-top: 1px solid var(--line); }
.techs-block__title { font-size: var(--fs-h3); margin-bottom: 8px; }
.techs__group h3 { font-size: var(--fs-eyebrow); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin: 28px 0 12px; }
.techs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.tech { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 104px; padding: 14px 8px; text-align: center;
  border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); }
.tech__logo { display: flex; align-items: center; justify-content: center; height: 32px; }
.tech .lg--mono { width: 32px; height: 32px; }
.tech .lg--img { height: 32px; max-width: 88px; }
.tech .lg--text { display: none; } /* a tool without a logo: its name below is the tile */
.tech__logo:has(.lg--text) { display: none; }
.tech:has(.lg--text) .tech__name { font-size: var(--fs-small); color: var(--ink); }
.tech__name { font-size: var(--fs-eyebrow); line-height: 1.3; color: var(--ink-2); }
@media (min-width: 1100px) { .techs { grid-template-columns: repeat(8, 1fr); } }
@media (max-width: 560px) { .techs { grid-template-columns: repeat(3, 1fr); } }
.techs-block__std { margin: 28px 0 10px; }
.techs-block__std span { font-size: var(--fs-eyebrow); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tags li { padding: 4px 10px; border: 1px solid var(--line-ui); border-radius: var(--r-tag); font-size: var(--fs-eyebrow); color: var(--ink-2); background: var(--surface); }

/* ---------- C17c domain donut ---------- */
.donut { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.donut__fig { margin: 0; }
.donut__chart { position: relative; }
.donut__chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.donut__slice { transition: transform 300ms var(--ease), opacity 300ms ease; cursor: pointer; }
.donut__slice circle { stroke-linecap: butt; }
.donut.is-drawing .donut__slice circle { transition: stroke-dasharray var(--dur, 0.12s) linear var(--delay, 0s); }
.donut__slice.is-on { transform: translate(var(--dx), var(--dy)); }
.donut.has-hover .donut__slice:not(.is-on) { opacity: 0.5; }
.donut__center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 0; pointer-events: none; text-align: center; }
.donut__center b { font-size: clamp(40px, 5vw, 64px); font-weight: 600; line-height: 1; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.donut__center span { margin-top: 6px; max-width: 12ch; font-size: var(--fs-eyebrow); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.donut__fig figcaption { margin-top: 14px; text-align: center; font: 400 15px/1.4 var(--hand); color: var(--ink-2); }
.donut__legend { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; }
.donut__key { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 6px 10px; border: 1px solid transparent; border-radius: var(--r-s);
  background: transparent; color: var(--ink); font: 400 var(--fs-small)/1.3 var(--sans); text-align: left; cursor: pointer; }
.donut__key i { flex: none; width: 12px; height: 12px; border-radius: 3px; }
.donut__key span { flex: 1; }
.donut__key b { flex: none; font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.donut__key:hover, .donut__key.is-hover { background: var(--card-hover); }
.donut__key[aria-pressed="true"] { border-color: var(--accent); }
.donut__detail { margin-top: 24px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); min-height: 220px; }
.donut__panel { display: none; }
.donut__panel.is-on { display: block; }
.donut__panel h3 { font-size: var(--fs-h3); margin-bottom: 8px; }
.donut__panel > p { color: var(--ink-2); font-size: var(--fs-small); }
.donut__logos { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; list-style: none; margin: 16px 0 0; padding: 0; }
.donut__logos li { display: flex; align-items: center; min-height: 32px; }
.donut__logos .lg--img { height: 24px; max-width: 120px; }
.donut__logos .lg--mono { width: 24px; height: 24px; }
.donut__links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; margin: 12px 0 0; }
.donut__links > span { width: 100%; margin-top: 6px; font-size: var(--fs-eyebrow); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.clients { margin-top: var(--head-gap); }
@media (max-width: 900px) { .donut { grid-template-columns: 1fr; } .donut__fig { max-width: 420px; margin-inline: auto; width: 100%; } }
@media (max-width: 520px) { .donut__legend { grid-template-columns: 1fr; } }

/* ---------- D18a experience timeline (v10 style) ---------- */
.xp { list-style: none; margin: 0; padding: 0; position: relative; }
.xp::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 1px; background: var(--line-ui); opacity: 0.6; }
.xp__item { position: relative; display: grid; grid-template-columns: minmax(170px, 230px) 1fr; gap: 10px clamp(24px, 5vw, 72px); padding: 0 0 clamp(36px, 4vw, 56px) 44px; }
.xp__item:last-child { padding-bottom: 0; }
.xp__item::before { content: ""; position: absolute; left: 0; top: 4px; width: 15px; height: 15px; box-sizing: border-box; border: 2px solid var(--accent); border-radius: 50%; background: var(--band, var(--white)); }
.js .xp__item.reveal { transform: translateY(14px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .xp__item.reveal.is-in { transform: none; }
.xp__date, .xp__where, .xp__role { margin: 0; font-size: var(--fs-eyebrow); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.4; }
.xp__date, .xp__role { color: var(--accent); }
.xp__where { margin-top: 4px; color: var(--ink-2); }
.xp__body h3 { font-size: var(--fs-h3); margin-bottom: 6px; }
.xp__role { margin-bottom: 14px; }
.xp__body > .pins { margin-bottom: 16px; }
.xp__list { list-style: none; margin: 0; padding: 0; max-width: 70ch; }
.xp__list li { position: relative; padding-left: 26px; margin-bottom: 10px; font-size: var(--fs-small); line-height: 1.6; color: var(--ink-2); }
.xp__list li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.xp__list .pins { margin-top: 10px; }
@media (max-width: 700px) { .xp__item { grid-template-columns: 1fr; padding-left: 36px; } }

/* ---------- E18b design thinking loop ---------- */
.dt__row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; }
.dt__stage { position: relative; padding: 22px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.dt__stage:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: -22px; width: 16px; height: 16px; transform: translateY(-50%); background: var(--accent);
  -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat;
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8h10M8.5 3.5 13 8l-4.5 4.5' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.dt__stage.is-current { background: var(--card-hover); border-color: var(--accent); }
.dt__num { font-size: var(--fs-eyebrow); color: var(--ink-3); letter-spacing: 0.04em; }
.dt__stage h3 { font-size: var(--fs-h3); margin: 18px 0 10px; }
.dt__map { margin: 0; font-size: var(--fs-small); color: var(--ink); }
.dt__map span { display: block; font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.dt__loop { position: relative; margin: 6px 0 0; padding-top: 44px; text-align: center; font-size: var(--fs-small); color: var(--ink-2); }
.dt__loop-line { position: absolute; top: 0; left: 0; width: 100%; height: 40px; color: var(--accent); }
.dt__loop-head { position: absolute; top: -2px; left: calc(10% - 6px); width: 12px; height: 12px; color: var(--accent); }
.dt__principles { margin: 28px 0 0; font-size: var(--fs-small); color: var(--ink-2); }
.dt__principles span { display: block; font-size: var(--fs-eyebrow); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
@media (max-width: 900px) {
  .dt__row { grid-template-columns: 1fr; gap: 26px; }
  .dt__stage:not(:last-child)::after { top: auto; right: auto; bottom: -22px; left: 28px; transform: rotate(90deg); }
  .dt__loop { padding-top: 0; text-align: left; }
  .dt__loop svg { display: none; }
  .dt__loop span::before { content: "↺ "; color: var(--accent); }
}

/* ---------- E18b UX laws ---------- */
.law-credit { margin: calc(var(--head-gap) * -0.5) 0 var(--head-gap); }
.laws { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--grid-gap); }
.law { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.law__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.law__media img, .law__media .cover { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.law__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 12px; }
.law__body h3 { font-size: var(--fs-h3); margin-bottom: 8px; }
.law__def { font-size: var(--fs-small); color: var(--ink); }
.law__work { font-size: var(--fs-small); color: var(--ink-2); }
.law__work strong { color: var(--ink); font-weight: 600; }
.law__links { display: flex; flex-wrap: wrap; gap: 0 18px; margin: auto 0 0; }
@media (max-width: 1000px) { .laws { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .laws { grid-template-columns: 1fr; } }

/* ---------- F19a contact modal with a flip ---------- */
.cmodal { position: fixed; inset: 0; z-index: 110; display: flex; overflow-y: auto; padding: var(--gut); perspective: 1800px; }
.cmodal[hidden] { display: none; }
.cmodal__scrim { position: fixed; inset: 0; background: rgba(42, 36, 33, 0.55); }
.cmodal__dialog { position: relative; width: min(680px, 100%); margin: auto; }
.cmodal__flip { display: grid; transform-style: preserve-3d; transition: transform 700ms var(--ease); }
.cmodal__face { grid-area: 1 / 1; -webkit-backface-visibility: hidden; backface-visibility: hidden; padding: clamp(24px, 4vw, 40px); border-radius: var(--r);
  background: var(--white); border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(42, 36, 33, 0.25); }
.cmodal__back { transform: rotateY(180deg); display: flex; flex-direction: column; justify-content: center; }
.cmodal.is-flipped .cmodal__flip { transform: rotateY(180deg); }
.cmodal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.cmodal__head h2, .cmodal__back h2 { font-size: var(--fs-h2); }
.cmodal__sub { margin: 10px 0 24px; color: var(--ink-2); font-size: var(--fs-small); }
.cmodal__close { flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin: -6px -10px 0 0; border: 1px solid var(--line); border-radius: 50%;
  background: var(--white); color: var(--ink); cursor: pointer; }
.cmodal__close:hover { border-color: var(--accent); }
.cmodal__back h2 { margin-bottom: 12px; }
.cmodal__back p { color: var(--ink-2); }
.cmodal__back .btns { margin-top: 20px; }
.cmodal__back .btn, .cmodal .form__foot .btn { cursor: pointer; font: 500 15px var(--sans); }
.cmodal .form { max-width: none; }
/* reduced motion: a cross-fade instead of the flip */
.cmodal--fade .cmodal__flip { transform: none !important; }
.cmodal--fade .cmodal__back { transform: none; opacity: 0; visibility: hidden; transition: opacity 0.4s ease; }
.cmodal--fade .cmodal__front { transition: opacity 0.4s ease; }
.cmodal--fade.is-flipped .cmodal__back { opacity: 1; visibility: visible; }
.cmodal--fade.is-flipped .cmodal__front { opacity: 0; visibility: hidden; }
/* /contact/ without JavaScript: the same form, inline on the page */
.cmodal--inline { position: static; display: block; padding: 0; overflow: visible; perspective: none; }
.cmodal--inline .cmodal__scrim, .cmodal--inline .cmodal__close, .cmodal--inline .cmodal__back { display: none; }
.cmodal--inline .cmodal__dialog { width: auto; max-width: 760px; margin: 0; }
.cmodal--inline .cmodal__face { box-shadow: none; }
.contact-links { margin: 18px 0 0; font-size: var(--fs-small); color: var(--ink-2); }
.contact-links a { color: var(--accent); display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- F19b case-study "On this page" nav ---------- */
.cs-layout { display: block; }
.cs-nav { position: sticky; top: var(--head-h); z-index: 21; }
.cs-nav__title, .cs-nav__toggle { display: none; }
.cs-nav__list { list-style: none; margin: 0; padding: 0; }
.cs-nav__list a { display: flex; align-items: center; min-height: 40px; padding: 4px 14px; font-size: var(--fs-small); line-height: 1.3; color: var(--ink-2); text-decoration: none;
  border-left: 2px solid transparent; margin-left: -1px; }
.cs-nav__list a:hover { color: var(--accent); }
.cs-nav__list a[aria-current="true"] { color: var(--ink); font-weight: 500; border-left-color: var(--accent); }
.cs-nav__list a:focus-visible { outline-offset: -2px; }
@media (min-width: 1100px) {
  .cs-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 0 clamp(32px, 4vw, 64px); align-items: start; }
  .cs-nav { top: calc(var(--head-h) + 32px); padding-top: clamp(32px, 4.5vw, 64px); }
  .cs-nav__title { display: block; margin: 0 0 10px 14px; font-size: var(--fs-eyebrow); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
  .cs-nav__list { border-left: 1px solid var(--line); }
  .cs-layout .cs-sec { grid-template-columns: minmax(160px, 1fr) 2.6fr; }
  .cs-layout .cs-sec__body.prose { max-width: 760px; }
  .cs-layout .cs-sec--media { grid-template-columns: 1fr; }
}
@media (max-width: 1099px) {
  .cs-nav { margin-inline: calc(var(--gut) * -1); padding: 0 var(--gut); background: var(--head-bg); border-bottom: 1px solid var(--line); }
  .cs-nav__toggle:not([hidden]) { display: inline-flex; }
  .cs-nav__toggle { align-items: center; gap: 8px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--ink); font: 500 var(--fs-small) var(--sans); cursor: pointer; }
  .cs-nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .cs-nav__toggle:focus-visible { outline-offset: -2px; }
  .js .cs-nav__list:not(.is-open) { display: none; }
  .cs-nav__list { padding: 4px 0 14px; max-height: 60vh; overflow-y: auto; }
  html.has-csnav { scroll-padding-top: 136px; }
}
html.has-csnav { scroll-padding-top: calc(var(--head-h) + 24px); }
@media (max-width: 1099px) { html.has-csnav { scroll-padding-top: 136px; } }

/* ---------- MilkMan icon panel ---------- */
.cs-cover--bg-powder-petal img { background: var(--powder-petal) !important; border-color: var(--line); max-height: 60vh; }

/* ---------- reduced motion (pass 10 additions) ---------- */
@media (prefers-reduced-motion: reduce) {
  :is(.early, .law, .tech, .more):hover, .js .xp__item.reveal { transform: none; }
  .donut__slice.is-on { transform: none; }
}