/* ==========================================================================
   Nisha Sangani · site styles
   The world: a shallow basin of ink. Ivory washi water carries royal-blue
   ink that thins as it spreads, sand is the second dye, and navy is the
   newest, darkest drop. Commissioner sets everything, quiet and light; its
   flare axis swells stroke ends the way ink swells at the end of a brush.
   Controls are rounded like drops; prints of her work sit on paper with
   hairline edges. Marbled panels are real frames rendered by the site's own
   ink engine (assets/js/ink.js), not stock texture.
   No inline styles anywhere, so the Content-Security-Policy stays strict.
   ========================================================================== */

/* ---------- Font (self-hosted, SIL Open Font License) ---------- */
@font-face {
  font-family: "Commissioner";
  src: url("/assets/fonts/commissioner-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: oblique 0deg 12deg;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;

  --water: #F7F3E8;         /* ivory washi */
  --mist: #EEE8DA;
  --royal: #2242B4;         /* ink current */
  --royal-deep: #182F8C;
  --navy: #101B4F;          /* the newest drop */
  --dilute: #4E5D9C;        /* ink after it spreads (still 5.6:1 on ivory) */
  --feather: #BCC4E2;
  --sand: #DCCAA6;          /* sand beige field */

  --bg: var(--water);
  --fg: var(--navy);
  --fg-soft: var(--dilute);
  --rule: rgba(16, 27, 79, 0.16);
  --accent: var(--royal);
  --focus: var(--royal);
  --shadow-tint: 16, 27, 79;
  --grain: 0.06;            /* washi fiber in the bare ground */

  --font: "Commissioner", "Avenir Next", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  --flare: "FLAR" 0, "VOLM" 0;
  --flare-display: "FLAR" 55, "VOLM" 0;

  --t-small: 0.9rem;
  --t-body: clamp(1.0625rem, 1.02rem + 0.2vw, 1.1875rem);
  --t-lead: clamp(1.125rem, 1.02rem + 0.45vw, 1.35rem);
  --t-h3: clamp(1.35rem, 1.18rem + 0.7vw, 1.8rem);
  --t-h2: clamp(2.25rem, 1.6rem + 2.7vw, 4.25rem);
  --t-name: clamp(3rem, 1.6rem + 5.2vw, 6rem);

  --pad: clamp(20px, 5vw, 72px);
  --section: clamp(96px, 11vw, 168px);
  --maxw: 1280px;
  --nav-h: 72px;

  --r-ctl: 10px;
  --r-print: 3px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --z-basin: 0;
  --z-prints: 2;
  --z-text: 3;
  --z-grain: -1;            /* under everything: the fiber shows on bare ground, never over media or words */
  --z-nav: 50;
  --z-skip: 100;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  scrollbar-color: var(--dilute) var(--mist);
  background: var(--bg);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--t-body);
  font-weight: 380;
  font-variation-settings: var(--flare);
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
/* washi grain: sparse paper fiber in the bare ground under the page, so the ivory stays true and media stays clean */
body::before {
  content: ""; position: fixed; inset: 0; z-index: var(--z-grain); pointer-events: none;
  background: var(--fg); opacity: var(--grain);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8 0.6' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3.2 0 0 0 -1.5'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8 0.6' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3.2 0 0 0 -1.5'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (forced-colors: active) { body::before { display: none; } }
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--royal); color: #F7F3E8; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 16px; top: 12px; z-index: var(--z-skip);
  padding: 10px 18px; border-radius: var(--r-ctl); background: var(--navy); color: #F7F3E8;
  font-weight: 560; text-decoration: none; transform: translateY(-160%); transition: transform 0.2s var(--ease);
}
.skip:focus { transform: none; }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; }
.sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 2px; }
.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }

/* tracked small capitals: nav, labels, controls */
.nav__links a, .btn, .chip, .sector__name, .brand-row__kind, .tile__brand, .fact dt, .field__label, .field legend, .pill, .copy {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 520;
}

/* ---------- Surfaces ---------- */
.paper { background: var(--bg); color: var(--fg); position: relative; }
.sand {
  --bg: var(--sand); --fg: var(--navy); --fg-soft: #34427A; --rule: rgba(16, 27, 79, 0.2); --accent: var(--royal-deep); --focus: var(--royal-deep);
  background: var(--bg); color: var(--fg); position: relative;
}
.marbled {
  --fg: #F7F3E8; --fg-soft: rgba(247, 243, 232, 0.94); --rule: rgba(247, 243, 232, 0.26); --accent: #F7F3E8; --focus: #F7F3E8;
  position: relative; color: var(--fg); background-size: cover; background-position: center;
}
/* a wash over the marbled paper keeps the pattern behind the words, not in front of them */
.marbled--royal { background-color: var(--royal); background-image: linear-gradient(rgba(34, 66, 180, 0.66), rgba(34, 66, 180, 0.66)), url("/assets/media/ink/marble-royal.webp"); }
.marbled--navy { background-color: var(--navy); background-image: linear-gradient(rgba(16, 27, 79, 0.62), rgba(16, 27, 79, 0.74)), url("/assets/media/ink/marble-navy.webp"); }
.marbled ::selection { background: #F7F3E8; color: var(--navy); }

/* ---------- Type ---------- */
.h2 {
  font-size: var(--t-h2);
  font-weight: 300;
  font-variation-settings: var(--flare-display);
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.lede { margin-top: 20px; font-size: var(--t-lead); color: var(--fg-soft); max-width: 46ch; line-height: 1.5; }
.link {
  color: inherit; text-decoration-line: underline; text-decoration-thickness: 1px;
  text-underline-offset: 0.3em; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  transition: text-decoration-color 0.2s;
}
.link:hover { text-decoration-color: currentColor; }
.link .icon { display: inline-block; width: 0.95em; height: 0.95em; margin-left: 0.3em; vertical-align: -0.1em; }

/* ---------- Buttons ---------- */
/* actions are drops: fully round, like the chips */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  font-family: var(--font); font-size: 0.8rem; line-height: 1;
  white-space: nowrap; text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background-color 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.3s var(--ease), background-position 1.2s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.985); }
.btn .icon { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 0.72rem; }
/* the primary button is a piece of marbled paper, like the panels */
.btn--ink {
  color: #F7F3E8; background-color: var(--navy);
  background-image: url("/assets/media/ink/marble-navy.webp"); background-size: 520px auto; background-position: 30% 40%;
  box-shadow: inset 0 0 0 1px rgba(247, 243, 232, 0.08);
}
.btn--ink:hover { background-position: 60% 55%; box-shadow: inset 0 0 0 1px rgba(247, 243, 232, 0.16), 0 14px 28px -16px rgba(var(--shadow-tint), 0.8); }
.btn--line { color: var(--fg); background: transparent; border-color: currentColor; }
.btn--line:hover { background: color-mix(in srgb, var(--fg) 7%, transparent); }

/* ---------- Navigation ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: var(--z-nav); color: var(--fg); transition: background-color 0.3s, box-shadow 0.3s; }
.nav.is-scrolled, .page-sub .nav { background: color-mix(in srgb, var(--water) 94%, transparent); box-shadow: 0 1px 0 var(--rule); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav__in { height: var(--nav-h); display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); padding-inline: var(--pad); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; margin-right: auto; }
.brand__mark { width: 30px; height: 30px; flex: none; color: var(--royal); transition: transform 0.8s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-35deg) scale(1.05); }
.brand__name { font-size: 0.86rem; font-weight: 520; text-transform: uppercase; letter-spacing: 0.3em; white-space: nowrap; }
.nav__links { display: flex; gap: clamp(20px, 2.4vw, 38px); }
.nav__links a {
  font-size: 0.74rem; text-decoration: none; padding: 8px 0;
  background: linear-gradient(currentColor, currentColor) left bottom / 0% 1px no-repeat;
  transition: background-size 0.4s var(--ease);
}
.nav__links a:hover, .nav__links a[aria-current="true"] { background-size: 100% 1px; }
.nav__tools { display: flex; align-items: center; gap: 14px; }
.nav__menu { display: none; width: 44px; height: 44px; border-radius: var(--r-ctl); border: 1px solid var(--rule); background: transparent; cursor: pointer; place-items: center; }
.nav__menu-bars, .nav__menu-bars::before, .nav__menu-bars::after { display: block; width: 18px; height: 1.5px; border-radius: 2px; background: currentColor; transition: transform 0.3s var(--ease); }
.nav__menu-bars { position: relative; }
.nav__menu-bars::before, .nav__menu-bars::after { content: ""; position: absolute; left: 0; }
.nav__menu-bars::before { top: -6px; }
.nav__menu-bars::after { top: 6px; }
.nav__menu[aria-expanded="true"] .nav__menu-bars { background: transparent; }
.nav__menu[aria-expanded="true"] .nav__menu-bars::before { transform: translateY(6px) rotate(45deg); }
.nav__menu[aria-expanded="true"] .nav__menu-bars::after { transform: translateY(-6px) rotate(-45deg); }
.sheet { background: var(--water); border-top: 1px solid var(--rule); padding: 8px var(--pad) 28px; box-shadow: 0 20px 30px -20px rgba(var(--shadow-tint), 0.4); }
.sheet__links { display: grid; }
.sheet__links a { padding: 14px 0; font-size: 1.7rem; font-weight: 300; font-variation-settings: var(--flare-display); text-decoration: none; border-bottom: 1px solid var(--rule); }
.sheet__links a:last-child { border-bottom: 0; color: var(--accent); }

/* ---------- Hero: the basin ---------- */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  min-height: max(100svh, 660px);
  display: grid; align-items: center;
  padding: calc(var(--nav-h) + 32px) var(--pad) 40px;
  background: var(--water);
}
.basin { position: absolute; inset: 0; z-index: var(--z-basin); }
.basin__still, .basin__canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.basin__canvas { display: none; touch-action: pan-y pinch-zoom; }
.ink-live .basin__canvas { display: block; }
.ink-live .basin__still { display: none !important; }
/* the still margin: ink may wander under the words, but the water there is calm */
.basin__veil {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--water) 0%, transparent) 78%, var(--water) 100%),
    linear-gradient(90deg, var(--water) 0%, color-mix(in srgb, var(--water) 94%, transparent) 26%, color-mix(in srgb, var(--water) 0%, transparent) 50%);
}
.hero__text { position: relative; z-index: var(--z-text); max-width: 33rem; }
/* on desktop the name stacks one word to a line, and its box ends with its longest word, so the drifting prints never pass under it */
.hero__name {
  font-size: var(--t-name); font-weight: 270; font-variation-settings: var(--flare-display);
  line-height: 0.98; letter-spacing: -0.035em; text-wrap: balance; width: min-content;
}
.hero__line { margin-top: 26px; font-size: var(--t-lead); color: var(--fg-soft); line-height: 1.5; max-width: 30ch; text-wrap: pretty; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* her photos and videos, riding the water as one feed of prints in a shared 3:4 frame */
.prints { position: absolute; inset: 0; z-index: var(--z-prints); pointer-events: none; }
.prints__item { position: absolute; left: 0; top: 0; }
.print {
  position: relative; display: block; pointer-events: auto; width: clamp(112px, 9.5vw, 156px); aspect-ratio: 3 / 4;
  padding: 5px; border-radius: var(--r-print); background: #FBF8F0;
  box-shadow: 0 1px 0 rgba(var(--shadow-tint), 0.06), 0 18px 34px -18px rgba(var(--shadow-tint), 0.55);
  transition: box-shadow 0.4s var(--ease);
}
/* lifted off the water while pointed at: the feed holds still and the print's shadow deepens */
.print:hover, .print:focus-visible { box-shadow: 0 1px 0 rgba(var(--shadow-tint), 0.08), 0 26px 44px -18px rgba(var(--shadow-tint), 0.7); }
.ink-live .print { will-change: transform; }
.print img { position: absolute; inset: 5px; width: calc(100% - 10px); height: calc(100% - 10px); object-fit: cover; border-radius: 1px; }
/* photos print in colour; a video prints in blue ink and develops to colour when pointed at (its cover is cut to the
   frame from just above the middle, where her face usually is and the captions usually are not) */
.print--video img { object-position: 50% 32%; }
.print__color { opacity: 0; transition: opacity 0.5s var(--ease); }
.print:hover .print__color, .print:focus-visible .print__color { opacity: 1; }
/* a print that takes keyboard focus is held fully in view, even mid-fade */
.print:focus-visible { opacity: 1 !important; }
/* before the engine takes over (and with reduced motion or no WebGL) six prints rest on the water in two loose rows */
.prints__item--1 { left: 53%; top: 15%; transform: rotate(-3deg); }
.prints__item--2 { left: 60%; top: 52%; transform: rotate(2deg); }
.prints__item--3 { left: 67%; top: 19%; transform: rotate(3.5deg); }
.prints__item--4 { left: 74%; top: 56%; transform: rotate(-2deg); }
.prints__item--5 { left: 81%; top: 13%; transform: rotate(-1.5deg); }
.prints__item--6 { left: 88%; top: 49%; transform: rotate(3deg); }
.prints__item:nth-child(n+7) { display: none; }
/* live, ink.js places the prints and runs the whole feed through a few at a time */
.ink-live .prints__item { left: 0; top: 0; transform: none; display: block; }

/* ---------- Work ---------- */
.work { padding-block: var(--section); }
.src { margin-top: 16px; font-size: 0.85rem; color: var(--fg-soft); }
.browse { margin-top: clamp(56px, 7vw, 96px); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(28px, 3vw, 40px); }
.chip {
  height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--rule); background: transparent; color: var(--fg); font-size: 0.74rem;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.chip:hover { border-color: currentColor; }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #F7F3E8; }

/* four, three or two across, so the first twelve always fill whole rows */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(32px, 3vw, 44px) clamp(14px, 1.8vw, 26px); }
.tile.is-hidden, .grid.is-collapsed .tile.is-extra { display: none; }
.tile__link { display: grid; gap: 10px; text-decoration: none; color: var(--fg); border-radius: 4px; }
.tile__frame {
  position: relative; display: block; aspect-ratio: 9 / 16; border-radius: var(--r-print); overflow: hidden;
  background: var(--mist); box-shadow: 0 1px 0 rgba(var(--shadow-tint), 0.06), 0 22px 40px -30px rgba(var(--shadow-tint), 0.7);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.tile__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.tile__badge {
  position: absolute; left: 12px; bottom: 12px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; color: #F7F3E8; background: var(--navy);
  box-shadow: 0 0 0 4px rgba(247, 243, 232, 0.35);
}
.tile__badge .icon { width: 16px; height: 16px; }
.tile__title { font-size: 1.02rem; font-weight: 460; line-height: 1.3; text-wrap: pretty; padding-inline: 1px; }
.tile__meta { font-size: 0.88rem; color: var(--fg-soft); padding-inline: 1px; margin-top: -4px; font-variant-numeric: tabular-nums; }
.tile__label { display: grid; gap: 2px; margin-top: -3px; padding-left: 1px; }
.tile__brand { font-size: 0.72rem; color: var(--accent); }
.tile__kind { font-size: 0.84rem; color: var(--fg-soft); }
@media (hover: hover) and (pointer: fine) {
  .tile__link:hover .tile__frame { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(var(--shadow-tint), 0.06), 0 30px 50px -28px rgba(var(--shadow-tint), 0.75); }
  .tile__link:hover .tile__frame img { transform: scale(1.04); }
}
.tile__link:focus-visible { outline-offset: 6px; }
.browse__more { display: flex; justify-content: center; margin-top: clamp(40px, 5vw, 64px); }

/* ---------- Partners ---------- */
.partners { padding-block: var(--section); }
.partners__title { max-width: 14ch; }
.sectors { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: clamp(32px, 4vw, 64px); margin-top: clamp(48px, 5vw, 80px); }
.sector__name { font-size: 0.74rem; color: var(--fg-soft); padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.brands { display: grid; }
.brand-row { display: grid; gap: 2px; padding: 16px 0; }
.brand-row__name { font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.75rem); font-weight: 320; font-variation-settings: var(--flare-display); letter-spacing: -0.01em; line-height: 1.2; }
.brand-row__kind { font-size: 0.72rem; color: var(--accent); }
.sector--wide .brands { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.also { margin-top: clamp(40px, 4vw, 56px); max-width: 68ch; color: var(--fg-soft); }
.also__lead { color: var(--fg); font-weight: 520; }
.proof { margin-top: clamp(56px, 7vw, 104px); padding-top: 28px; border-top: 1px solid var(--rule); max-width: 900px; }
.proof__line { max-width: 26ch; font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.9rem); font-weight: 280; font-variation-settings: var(--flare-display); line-height: 1.16; letter-spacing: -0.02em; text-wrap: balance; }
.proof__src { margin-top: 16px; font-size: 0.9rem; color: var(--fg-soft); }

/* ---------- Logos: every brand she has worked with ----------
   The set drifts left on a loop (an aria-hidden copy closes the gap) and feathers in and out at the edges
   like ink on the water. Hover holds it; with reduced motion it stands still and wraps into rows.
   Each logo is a silhouette in dilute ink: brightness(0) makes it black, and the rest of the chain
   (solved once, since filters cannot read tokens) turns that black into --dilute, #4E5D9C. */
.logos { padding-block: clamp(48px, 6vw, 88px) 0; }
.logos__window {
  max-width: 2560px; margin-inline: auto; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.logos__track { display: flex; width: max-content; animation: logos-drift 100s linear infinite; }
.logos__window:hover .logos__track { animation-play-state: paused; }
.logos__set { --logo-gap: clamp(44px, 5vw, 72px); display: flex; align-items: center; gap: var(--logo-gap); padding-right: var(--logo-gap); }
.logos__set img { max-width: none; filter: brightness(0) invert(39%) sepia(10%) saturate(3615%) hue-rotate(191deg) brightness(81%) contrast(71%); }
.logos__word { font-size: 1.2rem; font-weight: 520; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-soft); white-space: nowrap; }
@keyframes logos-drift { to { transform: translateX(-50%); } }
@media (max-width: 640px) { .logos__set { zoom: 0.8; } }
@media (prefers-reduced-motion: reduce) {
  .logos__window { -webkit-mask-image: none; mask-image: none; }
  .logos__track { display: block; width: auto; animation: none; }
  .logos__set { flex-wrap: wrap; justify-content: center; column-gap: clamp(32px, 4vw, 56px); row-gap: 32px; max-width: calc(var(--maxw) + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }
  .logos__set[aria-hidden="true"] { display: none; }
}

/* ---------- Services ---------- */
.services { padding-block: var(--section); }
.services__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.offers { margin: clamp(32px, 4vw, 48px) 0 clamp(28px, 3vw, 40px); border-top: 1px solid var(--rule); }
.offer { border-bottom: 1px solid var(--rule); }
.offer__row {
  position: relative; display: grid; gap: 6px; width: 100%; padding: 22px 0 22px 30px; color: var(--fg);
}
.offer__row::before {
  content: ""; position: absolute; left: 2px; top: 1.95em; width: 10px; height: 10px; border-radius: 50%;
  background: var(--feather); transition: background-color 0.3s, transform 0.4s var(--ease);
}
.offer__name { font-size: clamp(1.4rem, 1.15rem + 1vw, 2.1rem); font-weight: 300; font-variation-settings: var(--flare-display); line-height: 1.1; letter-spacing: -0.015em; color: var(--fg-soft); transition: color 0.25s; }
.offer__desc { font-size: 1rem; color: var(--fg-soft); max-width: 46ch; }
.offer__row.is-on .offer__name, .offer__row:hover .offer__name { color: var(--fg); }
.offer__row.is-on::before { background: var(--royal); transform: scale(1.3); }
.offer__thumb { display: none; }
.services__rates { color: var(--fg-soft); max-width: 44ch; margin-bottom: 24px; }
/* the window starts level with the middle of the list and rides at the middle of the screen while the rest scrolls past */
.services__window { align-self: center; position: sticky; top: max(calc(var(--nav-h) + 24px), calc(50vh - 260px)); display: grid; place-items: center; padding: 48px; }
/* a round window with the drop's rings pushed around it */
.lens { position: relative; width: min(100%, 430px); aspect-ratio: 1; border-radius: 50%; background: var(--mist); }
.lens::before, .lens::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; border: 1px solid var(--rule); }
.lens::before { inset: -16px -13px -14px -17px; }
.lens::after { inset: -36px -30px -33px -38px; opacity: 0.6; }
.lens__img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 10%; opacity: 0; transition: opacity 0.6s var(--ease); }
.lens__img.is-on { opacity: 1; }
.lens__hi { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(16, 27, 79, 0.12), 0 40px 70px -40px rgba(var(--shadow-tint), 0.7); }

/* ---------- About ---------- */
.about { padding-block: var(--section); }
.about__grid { display: grid; grid-template-columns: minmax(260px, 420px) minmax(0, 1fr); gap: clamp(40px, 6vw, 100px); align-items: start; }
.portrait { padding: 10px; border-radius: var(--r-print); background: #FBF8F0; box-shadow: 0 1px 0 rgba(var(--shadow-tint), 0.08), 0 34px 60px -34px rgba(var(--shadow-tint), 0.7); transform: rotate(-1.2deg); }
.portrait img { width: 100%; height: auto; border-radius: 1px; }
.about__copy > p { max-width: 58ch; color: var(--fg-soft); margin-top: 18px; }
.about__copy > p:first-of-type { margin-top: 28px; font-size: var(--t-lead); color: var(--fg); line-height: 1.5; }
.quote { margin: clamp(40px, 4vw, 56px) 0; }
.quote p {
  font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3.2rem); font-weight: 260; font-style: oblique 10deg;
  font-variation-settings: "FLAR" 80, "VOLM" 0; line-height: 1.12; letter-spacing: -0.02em; color: var(--fg); text-wrap: balance;
}
.quote footer { margin-top: 14px; font-size: 0.95rem; color: var(--fg-soft); }
.quote cite { font-style: normal; font-weight: 520; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding-top: 22px; border-top: 1px solid var(--rule); }
.fact--wide { grid-column: 1 / -1; }
.fact dt { font-size: 0.72rem; color: var(--fg-soft); }
.fact dd { margin-top: 6px; font-weight: 460; line-height: 1.35; }
.fact dd + dd { margin-top: 2px; }
.press { display: grid; gap: 10px; margin-top: 32px; }

/* ---------- Close ---------- */
.close { padding-block: var(--section); }
.close__title { font-size: clamp(2.6rem, 1.6rem + 4vw, 5.6rem); font-weight: 260; font-variation-settings: var(--flare-display); line-height: 1; letter-spacing: -0.035em; max-width: 13ch; text-wrap: balance; }
.close__copy { margin-top: clamp(24px, 2.6vw, 34px); color: var(--fg-soft); font-size: var(--t-lead); }
.reasons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; max-width: 820px; }
.pill {
  display: inline-flex; align-items: center; height: 46px; padding: 0 20px; border-radius: 999px;
  border: 1px solid rgba(247, 243, 232, 0.55); color: #F7F3E8; text-decoration: none; font-size: 0.74rem;
  background: rgba(16, 27, 79, 0.25); transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.pill:hover { background: #F7F3E8; color: var(--navy); border-color: #F7F3E8; }
.pill:active { transform: translateY(1px); }
.close__mail { margin-top: clamp(32px, 3.4vw, 44px); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; color: var(--fg-soft); }
.close__mail .link { color: #F7F3E8; font-weight: 460; }
.copy {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px 0 12px; border-radius: 999px;
  border: 1px solid rgba(247, 243, 232, 0.45); background: transparent; color: #F7F3E8; cursor: pointer; font-size: 0.72rem;
}
.copy:hover { background: rgba(255, 255, 255, 0.1); }
.copy .icon { width: 14px; height: 14px; }

/* ---------- Footer ---------- */
.foot { background: #0A1440; color: #F3EEDF; padding-block: 30px; --focus: #F3EEDF; --rule: rgba(243, 238, 223, 0.2); }
.foot .brand__mark { color: #8FA6F5; }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.brand--foot { margin-right: 0; }
.socials { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.socials a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 0.92rem; opacity: 0.9; padding: 6px 0; }
.socials a:hover { opacity: 1; text-decoration: underline 1px; text-underline-offset: 0.3em; }
.foot__note { display: inline-flex; align-items: center; gap: 12px; font-size: 0.86rem; color: rgba(243, 238, 223, 0.75); }
.drip {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgba(243, 238, 223, 0.35); background: transparent; color: #F3EEDF; transition: transform 0.4s var(--ease), background-color 0.2s;
}
.drip:hover { transform: translateY(2px); background: rgba(255, 255, 255, 0.08); }
.drip .icon { width: 17px; height: 17px; }
.no-ink .drip { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .nav__menu { display: grid; }
  .services__grid { grid-template-columns: 1fr; }
  .services__window { display: none; }
  .offer__row { grid-template-columns: 64px 1fr; column-gap: 18px; padding-left: 0; }
  .offer__row::before { display: none; }
  .offer__thumb { display: block; grid-row: 1 / span 2; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; box-shadow: 0 0 0 1px var(--rule), 0 0 0 6px var(--bg), 0 0 0 7px var(--rule); }
  .offer__name { color: var(--fg); }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sectors { grid-template-columns: 1fr 1fr; }
  .sector--wide { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .hero { align-items: start; padding-top: calc(var(--nav-h) + 28px); min-height: max(100svh, 720px); }
  .hero__text { max-width: none; }
  .hero__name { width: auto; }
  .hero__line { max-width: 34ch; }
  .basin__veil { background: linear-gradient(180deg, var(--water) 0%, color-mix(in srgb, var(--water) 96%, transparent) 54%, color-mix(in srgb, var(--water) 0%, transparent) 72%, color-mix(in srgb, var(--water) 0%, transparent) 90%, var(--water) 100%); }
  .basin__still { object-position: center bottom; }
  /* two lanes have to share the band under the words, so the prints shrink a little */
  .print { width: clamp(84px, 24vw, 116px); }
  .prints__item--1 { left: 6%; top: 70%; }
  .prints__item--2 { left: 38%; top: 76%; }
  .prints__item--3 { left: 68%; top: 69%; }
  /* at rest three prints show; live, the whole feed takes turns in the two lanes */
  .prints__item:nth-child(n+4) { display: none; }
  .ink-live .prints__item { display: block; }
  .about__grid { grid-template-columns: 1fr; }
  .portrait { max-width: 400px; }
}
@media (max-width: 640px) {
  :root { --nav-h: 64px; }
  .nav__cta { display: none; }
  .brand__name { letter-spacing: 0.22em; font-size: 0.78rem; }
  .sectors { grid-template-columns: 1fr; }
  .sector--wide .brands { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; gap: 14px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* the name gives way once it no longer fits beside the glyph and the menu: 204px of gutters, mark, gaps and
   the two 44px buttons, plus about 8.5em of name, so a larger default text size hides it sooner (340px at 16px) */
@media (max-width: calc(204px + 8.5em)) {
  .brand__name { display: none; }
}

/* ---------- Sub pages (contact, thanks, 404) ---------- */
.subhead { position: relative; isolation: isolate; overflow: clip; padding: calc(var(--nav-h) + clamp(48px, 7vw, 104px)) 0 clamp(56px, 7vw, 96px); background: var(--water); }
/* the basin's still frame, feathered on the left and at the foot so the header runs straight on into the form.
   The still's ink lives in its right 70%, so it is sized to put that part, not the empty water, across the box */
.subhead__ink {
  position: absolute; inset: 0 0 0 auto; width: 60%; z-index: -1; opacity: 1;
  background: url("/assets/media/ink/still-day.webp") right 45% / 143% auto no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 38%), linear-gradient(180deg, #000 72%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 38%), linear-gradient(180deg, #000 72%, transparent);
  mask-composite: intersect;
}
.subhead__title { font-size: clamp(2.8rem, 1.6rem + 4.6vw, 6rem); font-weight: 270; font-variation-settings: var(--flare-display); line-height: 0.98; letter-spacing: -0.035em; }
.subhead__copy { margin-top: 22px; font-size: var(--t-lead); color: var(--fg-soft); max-width: 44ch; }

/* the form sits on the same water as the header: one surface, no card */
.inquiry { padding-block: clamp(48px, 6vw, 88px) var(--section); background: var(--water); }
.inquiry__grid { display: grid; grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
/* the form comes first in the source (and on phones); on desktop the aside sits to its left */
.inquiry__main { grid-column: 2; grid-row: 1; }
.aside { grid-column: 1; grid-row: 1; position: sticky; top: calc(var(--nav-h) + 32px); display: grid; gap: 32px; }
.aside > div { display: grid; gap: 10px; }
.aside h2 { font-size: var(--t-h3); font-weight: 320; font-variation-settings: var(--flare-display); line-height: 1.15; }
.aside p { color: var(--fg-soft); }
.aside__list { display: grid; gap: 10px; }
.aside__list a { display: inline-flex; align-items: center; gap: 10px; }

/* field groups are set apart by space alone */
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.field { display: grid; gap: 10px; margin-bottom: clamp(30px, 3vw, 40px); min-width: 0; }
.field__label, .field legend { font-size: 0.74rem; color: var(--fg); padding: 0; }
.field__opt { text-transform: none; letter-spacing: 0; font-weight: 380; font-size: 0.86rem; color: var(--fg-soft); }
.field__hint { font-size: 0.9rem; color: var(--fg-soft); margin-top: -2px; }
.input, .textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--fg); background: var(--bg);
  border: 1px solid color-mix(in srgb, var(--fg) 58%, transparent); border-radius: 8px; padding: 0 14px; height: 52px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.textarea { height: auto; min-height: 168px; padding: 14px; line-height: 1.5; resize: vertical; }
.input:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
fieldset.field { border: 0; margin: 0 0 clamp(30px, 3vw, 40px); padding: 0; align-content: start; }
.opts { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px; margin-top: 4px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--fg) 58%, transparent); font-size: 0.95rem; color: var(--fg);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.opt span:hover { border-color: var(--fg); }
.opt input:checked + span { background: var(--navy); color: #F7F3E8; border-color: var(--navy); }
.opt input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 3px; }
.field.is-invalid .input, .field.is-invalid .textarea { border-color: #A8231B; }
.field__error { display: none; align-items: flex-start; gap: 8px; color: #A8231B; font-size: 0.93rem; font-weight: 500; }
.field.is-invalid .field__error { display: flex; }
.field__error .icon { width: 18px; height: 18px; margin-top: 2px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__follow[hidden] { display: none; }
.summary { margin-bottom: 28px; padding: 18px 20px; border-radius: 8px; border: 1px solid #A8231B; background: rgba(168, 35, 27, 0.05); }
.summary h2 { font-size: 1.05rem; font-weight: 560; }
.summary ul { margin-top: 8px; display: grid; gap: 4px; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 8px; }
.form__note { font-size: 0.9rem; color: var(--fg-soft); max-width: 46ch; }
.form__status { margin-top: 18px; font-weight: 460; }
.form__status.is-error { color: #A8231B; }
.ts { margin-bottom: 18px; }
.ts:empty { display: none; }
.btn[aria-busy="true"] { cursor: progress; opacity: 0.85; }
.btn[aria-busy="true"]::after { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid currentColor; border-right-color: transparent; animation: turn 0.8s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
.done__mark { width: 52px; height: 52px; color: var(--royal); margin-bottom: 22px; }
.done h2 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); font-weight: 280; font-variation-settings: var(--flare-display); line-height: 1.05; letter-spacing: -0.025em; }
.done p { margin-top: 16px; color: var(--fg-soft); max-width: 52ch; }
.done__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.noscript { padding: 14px 16px; border-radius: 8px; border: 1px solid var(--rule); margin-bottom: 24px; }

.lost { position: relative; isolation: isolate; overflow: clip; min-height: 100dvh; display: grid; align-content: center; gap: 22px; padding: calc(var(--nav-h) + 40px) var(--pad) 64px; background: var(--water); }
.lost .subhead__ink { width: min(70%, 1000px); background-size: cover; background-position: right center; }
.lost__mark { width: 64px; height: 64px; color: var(--royal); }
.lost h1 { font-size: clamp(2.8rem, 1.6rem + 4.6vw, 6rem); font-weight: 270; font-variation-settings: var(--flare-display); line-height: 0.98; letter-spacing: -0.035em; max-width: 12ch; }
.lost p { color: var(--fg-soft); font-size: var(--t-lead); max-width: 38ch; }
.lost .hero__cta { margin-top: 8px; }

@media (max-width: 900px) {
  .inquiry__grid { grid-template-columns: 1fr; }
  .inquiry__main, .aside { grid-column: auto; grid-row: auto; }
  .aside { position: static; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  /* the ink becomes a band under the words, never behind them, feathered at both edges into the water */
  .subhead { padding-bottom: 44%; }
  .lost { padding-bottom: 34vh; }
  .subhead__ink, .lost .subhead__ink {
    inset: auto 0 0 0; width: 100%; height: 34%; opacity: 0.55;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 55%, #000 80%, transparent); mask-image: linear-gradient(180deg, transparent, #000 55%, #000 80%, transparent);
  }
}

/* ---------- Reduced motion: still water, no loops ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
