/* ==========================================================================
   JAHID HUSSAIN — personal site stylesheet
   Edit colours/fonts in the :root block below.
   ========================================================================== */

:root {
  --paper: #f4f2ed;
  --paper-2: #ebe8e1;
  --ink: #0b0b0c;
  --char: #1d1d1f;
  --mute: #66655f;
  --faint: #a3a19b;
  --line: rgba(11, 11, 12, 0.12);
  --line-dark: rgba(244, 242, 237, 0.14);
  --accent: #00d9ff;
  --accent-ink: #00819b;

  --sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;

  --gutter: clamp(1rem, 4vw, 3.5rem);
  --max: 1680px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 100px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 1rem; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-weight: 500; }
::selection { background: var(--ink); color: var(--paper); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.45s var(--ease) both; }
::view-transition-new(root) { animation: vt-in 0.8s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); filter: blur(4px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(5rem, 12vw, 11rem); position: relative; }
.section-tight { padding-block: clamp(3.5rem, 8vw, 7rem); }
.rule { height: 1px; background: var(--line); border: 0; }
.dark { background: var(--ink); color: var(--paper); }
.dark .rule { background: var(--line-dark); }
.dark .muted { color: #9d9b95; }

/* ---------- Type ---------- */
.eyebrow { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600; color: var(--mute); }
.dark .eyebrow { color: #9d9b95; }
.dot::before {
  content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 99px; background: var(--accent);
  margin-right: 0.75em; vertical-align: 0.14em; box-shadow: 0 0 0 4px rgba(0, 217, 255, 0.16);
}
.label-num { font-size: 0.72rem; letter-spacing: 0.16em; font-weight: 600; color: var(--mute); font-variant-numeric: tabular-nums; }
.display { font-size: clamp(2.75rem, 8.6vw, 9rem); line-height: 0.93; letter-spacing: -0.048em; font-weight: 500; }
.display-2 { font-size: clamp(2.3rem, 6.4vw, 6.6rem); line-height: 0.98; letter-spacing: -0.042em; font-weight: 500; }
.h2 { font-size: clamp(2rem, 4.4vw, 4.1rem); line-height: 1.02; letter-spacing: -0.036em; }
.h3 { font-size: clamp(1.4rem, 2.3vw, 2.05rem); line-height: 1.12; letter-spacing: -0.026em; }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.012em; }
.it { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.015em; }
.lede { font-size: clamp(1.06rem, 1.35vw, 1.24rem); line-height: 1.6; color: var(--char); }
.dark .lede { color: #d9d7d1; }
.muted { color: var(--mute); }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- Links & buttons ---------- */
.ulink {
  background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat;
  background-size: 0% 1px; background-position: 100% 100%; padding-bottom: 2px;
  transition: background-size 0.6s var(--ease);
}
.ulink:hover, .ulink:focus-visible, .ulink[aria-current="page"] { background-size: 100% 1px; background-position: 0 100%; }

.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem;
  min-height: 52px; padding: 0 1.6rem; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; letter-spacing: -0.01em; white-space: nowrap;
  transition: color 0.5s var(--ease), min-height 0.5s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  transform: translateY(101%); transition: transform 0.6s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark::before { background: var(--accent); }
.btn-dark:hover, .btn-dark:focus-visible { color: var(--ink); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light::before { background: var(--accent); }
.btn-line { box-shadow: inset 0 0 0 1px currentColor; }
.btn-line::before { background: var(--ink); }
.btn-line:hover, .btn-line:focus-visible { color: var(--paper); }
.dark .btn-line::before { background: var(--paper); }
.dark .btn-line:hover, .dark .btn-line:focus-visible { color: var(--ink); }
.btn-text { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 600; min-height: 44px; }

.arrow { display: inline-block; transition: transform 0.6s var(--ease); }
a:hover .arrow, button:hover .arrow, .row-link:hover .arrow { transform: translateX(5px); }
a:hover .arrow-d { transform: translateY(4px); }
[data-magnetic] { display: inline-block; will-change: transform; transition: transform 0.6s var(--ease); }

:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 4px; border-radius: 6px; }
.dark :focus-visible { outline-color: var(--accent); }
.skip { position: fixed; left: 1rem; top: -100px; z-index: 200; background: var(--ink); color: var(--paper); padding: 0.75rem 1rem; border-radius: 8px; }
.skip:focus { top: 1rem; }

/* ---------- Scroll progress ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 120; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }

/* ---------- Navigation ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; }
.nav-bar { border-bottom: 1px solid transparent; padding-block: 1.25rem; transition: padding 0.6s var(--ease), background-color 0.6s var(--ease), border-color 0.6s var(--ease); }
@media (min-width: 900px) { .nav-bar { padding-block: 1.75rem; } }
.nav.is-scrolled .nav-bar { padding-block: 0.7rem; background: rgba(244, 242, 237, 0.82); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { position: relative; z-index: 3; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.24em; }
.nav-links { display: none; align-items: center; gap: 2.5rem; }
.nav-links ul { display: flex; gap: 2rem; font-size: 0.93rem; }
.nav.is-scrolled .btn { min-height: 44px; }
@media (min-width: 900px) { .nav-links { display: flex; } .menu-btn { display: none !important; } }
.menu-btn { position: relative; z-index: 3; display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; }
.menu-btn span { position: absolute; left: 10px; width: 24px; height: 1.5px; background: currentColor; transition: transform 0.6s var(--ease), top 0.6s var(--ease); }
.menu-btn span:nth-child(1) { top: 16px; }
.menu-btn span:nth-child(2) { top: 27px; }
.nav.is-open .menu-btn span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav.is-open .menu-btn span:nth-child(2) { top: 21px; transform: rotate(-45deg); }
.nav.is-open .brand, .nav.is-open .menu-btn { color: var(--paper); }
.nav.is-open .nav-bar { background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 2; background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 7rem var(--gutter) 2.5rem;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path 0.8s var(--ease-io), visibility 0s linear 0.8s;
}
.nav.is-open .mobile-menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 0.8s var(--ease-io), visibility 0s; }
.mobile-menu li { overflow: hidden; }
.mobile-menu li a { display: flex; align-items: baseline; gap: 1rem; padding-block: 0.35rem; font-size: clamp(2.5rem, 12vw, 3.8rem); font-weight: 500; letter-spacing: -0.045em; line-height: 1.05; transform: translateY(110%); transition: transform 0.9s var(--ease); }
.mobile-menu li a small { font-size: 0.7rem; letter-spacing: 0.2em; color: var(--faint); font-weight: 600; }
.nav.is-open .mobile-menu li a { transform: none; }
.nav.is-open .mobile-menu li:nth-child(1) a { transition-delay: 0.2s; }
.nav.is-open .mobile-menu li:nth-child(2) a { transition-delay: 0.26s; }
.nav.is-open .mobile-menu li:nth-child(3) a { transition-delay: 0.32s; }
.nav.is-open .mobile-menu li:nth-child(4) a { transition-delay: 0.38s; }
.mobile-menu .btn { width: 100%; }
@media (min-width: 900px) { .mobile-menu { display: none; } }

/* ---------- Media + placeholders ---------- */
.media { position: relative; overflow: hidden; background: var(--paper-2); isolation: isolate; }
.media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media .inner { position: absolute; inset: -12% 0; will-change: transform; }
.media .inner > .ph { padding-block: calc(12% + 1rem); }
.media .inner > img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.media > img { z-index: 1; }
.ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(1rem, 2vw, 1.75rem); color: rgba(244, 242, 237, 0.82);
  background: radial-gradient(120% 80% at 85% 8%, rgba(0, 217, 255, 0.12), transparent 55%), linear-gradient(160deg, #1d1e20, #0c0c0d 72%);
}
.ph-mono { font-family: var(--serif); font-size: clamp(3.5rem, 10vw, 9rem); line-height: 0.82; letter-spacing: -0.05em; }
.dark .ph { background: radial-gradient(120% 80% at 85% 8%, rgba(0, 217, 255, 0.14), transparent 55%), linear-gradient(160deg, #2a2b2e, #17181a 72%); }
.ph-meta { font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.6; line-height: 1.7; }
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.14; mix-blend-mode: overlay; z-index: 2;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.tone > img, .tone .inner > img { filter: grayscale(1) contrast(1.05); transition: filter 1.2s var(--ease), transform 1.2s var(--ease); }
.tone:hover > img, .tone:hover .inner > img, .tone.is-in.colour > img { filter: grayscale(0); }

/* ---------- Reveal system (only active when JS runs) ---------- */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 28px, 0); filter: blur(8px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }
.js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.22em; margin-bottom: -0.22em; }
.js [data-split] .w > span { display: inline-block; transform: translate3d(0, 65%, 0); opacity: 0; filter: blur(10px); transition: transform 1.15s var(--ease), opacity 1.15s var(--ease), filter 1.15s var(--ease); transition-delay: calc(var(--d, 0s) + var(--i) * 55ms); }
.js [data-split].is-in .w > span { transform: none; opacity: 1; filter: none; }
.js [data-mask] { clip-path: inset(100% 0 0 0); transition: clip-path 1.5s var(--ease-io); transition-delay: var(--d, 0s); }
.js [data-mask] > img, .js [data-mask] .inner > img { transform: scale(1.22); transition: transform 2s var(--ease), filter 1.2s var(--ease); transition-delay: var(--d, 0s); }
.js [data-mask].is-in { clip-path: inset(0 0 0 0); }
.js [data-mask].is-in > img, .js [data-mask].is-in .inner > img { transform: none; }

/* ---------- Cursor ---------- */
.cursor, .cursor-label { position: fixed; left: 0; top: 0; pointer-events: none; z-index: 150; display: none; }
.has-cursor .cursor, .has-cursor .cursor-label { display: block; }
.cursor { mix-blend-mode: difference; }
.cursor i { display: block; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 99px; background: #fff; transition: width 0.45s var(--ease), height 0.45s var(--ease), margin 0.45s var(--ease), opacity 0.3s; }
.cursor.is-link i { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
.cursor.is-hidden i { opacity: 0; }
.cursor-label span {
  display: grid; place-items: center; width: 86px; height: 86px; margin: -43px 0 0 -43px; border-radius: 99px;
  background: var(--paper); color: var(--ink); font-size: 0.64rem; font-weight: 700; letter-spacing: 0.2em;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18); transform: scale(0); transition: transform 0.5s var(--ease);
}
.cursor-label.on span { transform: scale(1); }
@media (hover: hover) and (pointer: fine) { .has-cursor, .has-cursor a, .has-cursor button, .has-cursor [data-cursor] { cursor: none; } }

/* ==========================================================================
   HOME
   ========================================================================== */
.hero { position: relative; padding-top: clamp(6.5rem, 14vw, 9.5rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.hero-grid { display: grid; gap: 2rem; }
.hero-eyebrow { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: clamp(1.5rem, 3vw, 2.75rem); }
.hero h1 { position: relative; z-index: 5; }
.hero h1 .it { white-space: nowrap; }
.hero-portrait .ph { padding-top: 4.5rem; }
.hero-portrait .ph-mono { align-self: flex-end; }
.hero h1 .it { color: var(--ink); }
.hero-portrait { position: relative; aspect-ratio: 4 / 5; margin-inline: calc(var(--gutter) * -1); }
.hero-portrait .media { position: absolute; inset: 0; }
.hero-tag {
  position: absolute; z-index: 3; font-size: 0.64rem; letter-spacing: 0.2em; font-weight: 700; text-transform: uppercase;
  color: var(--paper); background: rgba(11, 11, 12, 0.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 0.6rem 0.8rem; border-radius: 999px; display: inline-flex; gap: 0.6rem; align-items: center;
}
.hero-tag b { font-size: 0.95rem; letter-spacing: -0.02em; font-weight: 600; }
.hero-tag.t1 { left: var(--gutter); bottom: 1.25rem; }
.hero-tag.t2 { right: var(--gutter); top: 1.25rem; }
.hero-side { display: grid; gap: 1.75rem; }
.hero-statement { font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.4rem); line-height: 1.08; letter-spacing: -0.015em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; }
.hero-index { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; margin-top: clamp(3rem, 6vw, 5rem); padding-top: 1.25rem; border-top: 1px solid var(--line); }
.hero-index li { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; color: var(--mute); }
.hero-index li:first-child { color: var(--ink); }

@media (min-width: 900px) {
  .hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; }
  .hero-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, 2vw, 2rem); align-items: end; }
  .hero-copy { grid-column: 1 / span 8; grid-row: 1; }
  .hero h1 { margin-right: -14%; font-size: clamp(2.75rem, 9.4vw, 10rem); }
  .hero-portrait { grid-column: 9 / span 4; grid-row: 1 / span 2; margin: 0 calc(var(--gutter) * -1) 0 0; align-self: stretch; aspect-ratio: auto; min-height: 76svh; margin-top: -2rem; }
  .hero-tag.t1 { left: -1.5rem; bottom: 2rem; }
  .hero-tag.t2 { right: calc(var(--gutter) + 0.5rem); top: 1.5rem; }
  .hero-side { grid-column: 1 / span 7; grid-row: 2; grid-template-columns: 1fr 1fr; align-items: end; gap: 2.5rem; margin-top: 2.5rem; }
  .hero-side .hero-ctas { grid-column: 1 / -1; }
}
@media (min-width: 1440px) { .hero h1 { margin-right: -18%; } }

/* Positioning statement */
.pov-grid { display: grid; gap: 2.5rem; }
.pov h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.5rem, 7.4vw, 7.8rem); line-height: 0.98; letter-spacing: -0.03em; }
.pov h2 .muted-w { color: var(--faint); }
.pov-follow { max-width: 34rem; }
.pov-follow p { font-size: clamp(1.25rem, 2vw, 1.7rem); line-height: 1.35; letter-spacing: -0.02em; font-weight: 500; }
@media (min-width: 900px) {
  .pov-grid { grid-template-columns: 2fr 10fr; column-gap: 2rem; }
  .pov-follow { grid-column: 2; margin-left: auto; margin-right: 8%; }
}

/* Section heads */
.head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 6vw, 5rem); }
.head-row { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; }
@media (min-width: 900px) { .head.split { grid-template-columns: 2fr 6fr 4fr; align-items: end; column-gap: 2rem; } .head.split .lede { justify-self: end; max-width: 26rem; } }

/* What I work on */
.work { display: grid; gap: 2.5rem; }
@media (min-width: 1000px) { .work { grid-template-columns: 4fr 8fr; column-gap: 3rem; } .work-aside { position: sticky; top: 7rem; align-self: start; } }
.work-list { border-top: 1px solid var(--ink); counter-reset: w; }
.work-item { position: relative; display: grid; grid-template-columns: 3rem 1fr; gap: 0.5rem 1rem; padding-block: clamp(1.4rem, 2.6vw, 2.2rem); border-bottom: 1px solid var(--line); }
.work-item::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.9s var(--ease); }
.work-item:hover::after { transform: scaleX(1); }
.work-item .label-num { padding-top: 0.7em; }
.work-item h3 { font-size: clamp(1.6rem, 3.4vw, 3.1rem); letter-spacing: -0.04em; line-height: 1.02; transition: transform 0.7s var(--ease), color 0.5s; }
.work-item p { grid-column: 2; color: var(--mute); max-width: 36rem; line-height: 1.6; }
@media (min-width: 760px) {
  .work-item { grid-template-columns: 4rem 1.2fr 1fr; align-items: baseline; }
  .work-item p { grid-column: 3; }
}
@media (hover: hover) and (min-width: 1000px) {
  .work-list:hover .work-item h3 { color: var(--faint); }
  .work-list .work-item:hover h3 { color: var(--ink); transform: translateX(14px); }
}
.work-preview {
  position: fixed; left: 0; top: 0; z-index: 40; width: clamp(220px, 18vw, 300px); aspect-ratio: 4 / 5; pointer-events: none;
  border-radius: 6px; overflow: hidden; opacity: 0; transform: translate3d(-50%, -50%, 0) scale(0.85);
  transition: opacity 0.4s var(--ease), transform 0.6s var(--ease); display: none;
}
@media (hover: hover) and (pointer: fine) and (min-width: 1000px) { .work-preview { display: block; } }
.work-preview.on { opacity: 1; }
.work-preview .slot { position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s var(--ease); }
.work-preview .slot.on { opacity: 1; }
.work-preview .slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Consulting */
.consult { border-radius: clamp(0px, 2vw, 28px); overflow: hidden; display: grid; }
.consult-photo { position: relative; aspect-ratio: 4 / 5; }
.consult-photo .media { position: absolute; inset: 0; }
.consult-body { padding: clamp(1.75rem, 5vw, 5rem); display: flex; flex-direction: column; gap: 2rem; }
.consult-body h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent); }
.consult-scope { display: grid; gap: 0; border-top: 1px solid var(--line-dark); }
.consult-scope li { display: grid; grid-template-columns: 2.5rem 1fr; padding-block: 1rem; border-bottom: 1px solid var(--line-dark); font-size: 1.02rem; }
.consult-scope li span { color: #8f8d87; font-size: 0.72rem; letter-spacing: 0.16em; padding-top: 0.25em; }
.consult-steps { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.consult-steps div { padding-top: 1rem; border-top: 1px solid var(--line-dark); }
.consult-steps b { display: block; font-weight: 600; margin-bottom: 0.3rem; }
.consult-steps p { color: #9d9b95; font-size: 0.92rem; line-height: 1.5; }
.consult-cta { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; }
.consult-note { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: #c9c7c1; }
@media (min-width: 1000px) {
  .consult { grid-template-columns: 5fr 7fr; }
  .consult-photo { aspect-ratio: auto; min-height: 100%; }
}

/* Product rows (home) */
.prow-list { border-top: 1px solid var(--ink); }
.prow { position: relative; display: grid; grid-template-columns: 1fr; gap: 1.1rem; padding-block: clamp(1.5rem, 3vw, 2.5rem); border-bottom: 1px solid var(--line); }
.prow .media { aspect-ratio: 16 / 10; border-radius: 4px; }
.prow .media > img { transition: transform 1.2s var(--ease); }
.prow:hover .media > img { transform: scale(1.05); }
.prow-meta { display: flex; gap: 1rem; align-items: center; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; color: var(--mute); }
.prow-meta .status { color: var(--accent-ink); }
.prow h3 { font-size: clamp(1.6rem, 3vw, 2.7rem); letter-spacing: -0.04em; line-height: 1.04; transition: transform 0.7s var(--ease); }
.prow:hover h3 { transform: translateX(8px); }
.prow p { color: var(--mute); max-width: 34rem; line-height: 1.6; }
.prow .row-link::after { content: ""; position: absolute; inset: 0; }
.prow-cta { display: inline-flex; gap: 0.6rem; font-weight: 600; align-items: center; }
@media (min-width: 900px) {
  .prow { grid-template-columns: 3rem minmax(0, 3fr) minmax(0, 5fr) minmax(0, 3fr); column-gap: 2rem; align-items: center; }
  .prow .media { aspect-ratio: 4 / 3; }
  .prow-cta { justify-self: end; }
}

/* Editorial break */
.break { position: relative; height: clamp(520px, 92svh, 1100px); overflow: hidden; color: var(--paper); }
.break .media { position: absolute; inset: 0; }
.break .media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,0.25), rgba(0,0,0,0.15) 35%, rgba(0,0,0,0.78) 75%, rgba(0,0,0,0.88)); }
.break-copy { position: absolute; inset: auto 0 0 0; z-index: 3; padding-bottom: clamp(2rem, 6vw, 5rem); }
.break-copy h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 10vw, 10.5rem); line-height: 0.9; letter-spacing: -0.035em; }
.break-copy p { margin-top: 1.5rem; max-width: 28rem; color: rgba(244, 242, 237, 0.82); }
.break-copy .eyebrow { color: rgba(244, 242, 237, 0.7); margin-bottom: 1.5rem; display: block; }

/* Blog rows */
.brow-list { border-top: 1px solid var(--ink); }
.brow { position: relative; display: grid; gap: 0.75rem; padding-block: clamp(1.6rem, 3vw, 2.6rem); border-bottom: 1px solid var(--line); }
.brow-meta { display: flex; gap: 1rem; flex-wrap: wrap; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; color: var(--mute); }
.brow-meta .cat { color: var(--ink); }
.brow h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.75rem, 3.6vw, 3.3rem); line-height: 1.04; letter-spacing: -0.02em; transition: transform 0.7s var(--ease); }
.brow:hover h3 { transform: translateX(10px); }
.brow p { color: var(--mute); max-width: 38rem; line-height: 1.6; }
.brow a::after { content: ""; position: absolute; inset: 0; }
.brow .go { display: none; }
@media (min-width: 900px) {
  .brow { grid-template-columns: 2fr 7fr 3fr; column-gap: 2rem; align-items: start; }
  .brow-meta { flex-direction: column; gap: 0.45rem; padding-top: 0.9rem; }
  .brow .go { display: flex; justify-content: flex-end; padding-top: 0.6rem; }
  .brow .go span { width: 52px; height: 52px; border-radius: 99px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); transition: background 0.5s var(--ease), color 0.5s, box-shadow 0.5s; }
  .brow:hover .go span { background: var(--ink); color: var(--paper); box-shadow: none; }
  .brow.offset h3, .brow.offset p { padding-left: 12%; }
}

/* Final CTA */
.final { padding-top: clamp(6rem, 14vw, 12rem); padding-bottom: clamp(4rem, 8vw, 6rem); }
.final h2 { font-size: clamp(2.8rem, 9vw, 9.5rem); line-height: 0.92; letter-spacing: -0.05em; font-weight: 500; }
.final h2 .it { color: var(--accent); }
.final-bottom { display: grid; gap: 2rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 900px) { .final-bottom { grid-template-columns: 1fr auto; align-items: end; } }

/* Footer */
.footer { padding-bottom: 2rem; }
.footer-top { display: grid; gap: 2.5rem; padding-block: clamp(3rem, 6vw, 5rem); }
.footer-top h3 { font-size: 0.8rem; letter-spacing: 0.24em; font-weight: 700; }
.footer-top p { color: #9d9b95; margin-top: 0.5rem; }
.footer-col h4 { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: #8f8d87; font-weight: 600; margin-bottom: 1rem; }
.footer-col li + li { margin-top: 0.5rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; font-size: 0.85rem; color: #8f8d87; }
@media (min-width: 900px) { .footer-top { grid-template-columns: 8fr 2fr 2fr; } }

/* ==========================================================================
   PAGE HEROES (Products / Blog)
   ========================================================================== */
.page-hero { padding-top: clamp(8rem, 16vw, 13rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.page-hero-grid { display: grid; gap: 1.5rem; }
.page-hero h1 { font-size: clamp(3.4rem, 13vw, 13rem); line-height: 0.88; letter-spacing: -0.055em; font-weight: 500; }
.page-hero h1 .it { letter-spacing: -0.03em; }
@media (min-width: 900px) { .page-hero-grid { grid-template-columns: 8fr 4fr; align-items: end; column-gap: 2rem; } .page-hero .lede { padding-bottom: 1.2rem; } }

.filters { display: flex; gap: 0.5rem; overflow-x: auto; scrollbar-width: none; padding-block: 0.25rem; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.filters::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 40px; padding: 0 1.1rem; border-radius: 99px; font-size: 0.72rem; letter-spacing: 0.16em; font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); transition: background 0.4s var(--ease), color 0.4s, box-shadow 0.4s; }
.chip:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.filterbar { position: sticky; top: 62px; z-index: 20; padding-block: 0.9rem; background: rgba(244, 242, 237, 0.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.filterbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.filterbar .count { display: none; font-size: 0.72rem; letter-spacing: 0.16em; color: var(--mute); font-weight: 600; white-space: nowrap; }
@media (min-width: 760px) { .filterbar .count { display: block; } .filters { margin: 0; padding-inline: 0; } }
.is-hidden { display: none !important; }

/* Products library */
.plib { display: grid; gap: clamp(4rem, 9vw, 8rem); padding-block: clamp(3rem, 7vw, 6rem); }
.pitem { display: grid; gap: 1.75rem; }
.pitem .media { aspect-ratio: 16 / 10; border-radius: 4px; }
.pitem .media > img { transition: transform 1.4s var(--ease); }
.pitem:hover .media > img { transform: scale(1.04); }
.pitem-top { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; color: var(--mute); padding-bottom: 1rem; border-bottom: 1px solid var(--ink); }
.pitem-top .status { color: var(--accent-ink); }
.pitem h2 { font-size: clamp(2.1rem, 4.6vw, 4.3rem); letter-spacing: -0.045em; line-height: 1; margin-top: 1.5rem; }
.pitem .tag { font-family: var(--serif); font-style: italic; font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.2; margin-top: 0.85rem; color: var(--char); }
.pitem .desc { color: var(--mute); line-height: 1.65; margin-top: 1.25rem; max-width: 34rem; }
.pitem dl { display: grid; gap: 0; margin-top: 1.75rem; border-top: 1px solid var(--line); }
.pitem dl div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding-block: 0.95rem; border-bottom: 1px solid var(--line); }
.pitem dt { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mute); font-weight: 600; padding-top: 0.25em; }
.pitem dd { line-height: 1.55; }
.pitem-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2rem; }
.pitem-cta .price { font-size: 0.9rem; color: var(--mute); }
@media (min-width: 1000px) {
  .pitem { grid-template-columns: 7fr 5fr; column-gap: clamp(2rem, 5vw, 6rem); align-items: start; }
  .pitem:nth-child(even) .pitem-visual { order: 2; }
  .pitem-visual { position: sticky; top: 9rem; }
}

/* Blog page */
.feature { position: relative; display: grid; gap: 1.75rem; padding-block: clamp(2.5rem, 5vw, 4rem); }
.feature .media { aspect-ratio: 16 / 10; border-radius: 4px; }
.feature .media > img { transition: transform 1.4s var(--ease); }
.feature:hover .media > img { transform: scale(1.04); }
.feature h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.3rem, 5.2vw, 5.4rem); line-height: 0.98; letter-spacing: -0.025em; margin-top: 1rem; }
.feature p { color: var(--mute); margin-top: 1.25rem; max-width: 34rem; line-height: 1.65; }
.feature a.cover::after { content: ""; position: absolute; inset: 0; }
@media (min-width: 1000px) { .feature { grid-template-columns: 7fr 5fr; column-gap: 4rem; align-items: end; } }

/* ==========================================================================
   ARTICLE
   ========================================================================== */
.crumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); font-weight: 600; }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; color: var(--faint); }
.a-head { padding-top: clamp(7.5rem, 14vw, 11rem); padding-bottom: clamp(2rem, 4vw, 3rem); }
.a-head-inner { max-width: 1100px; }
.a-head h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.5rem, 6.4vw, 6.2rem); line-height: 0.98; letter-spacing: -0.028em; margin-top: 1.75rem; }
.a-head .lede { margin-top: 1.5rem; max-width: 44rem; }
.byline { display: flex; align-items: center; gap: 1rem; margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.byline .media { width: 52px; height: 52px; border-radius: 99px; flex: none; }
.byline .ph { padding: 0; display: grid; place-items: center; }
.byline .ph-mono { font-size: 1.3rem; }
.byline b { display: block; font-weight: 600; }
.byline span { font-size: 0.88rem; color: var(--mute); }
.a-cover { aspect-ratio: 16 / 9; border-radius: 4px; }
.a-body { display: grid; gap: 2rem; padding-block: clamp(3rem, 6vw, 5rem); }
.toc { display: none; }
@media (min-width: 1100px) {
  .a-body { grid-template-columns: 1fr minmax(0, 740px) 1fr; column-gap: 3rem; }
  .toc { display: block; position: sticky; top: 7rem; align-self: start; font-size: 0.88rem; }
  .toc h2 { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute); font-weight: 600; margin-bottom: 1rem; }
  .toc li { padding-block: 0.45rem; border-top: 1px solid var(--line); }
  .toc a { color: var(--mute); transition: color 0.3s; }
  .toc a:hover, .toc a.on { color: var(--ink); }
}
.prose { max-width: 740px; font-size: clamp(1.07rem, 1.2vw, 1.2rem); line-height: 1.78; color: var(--char); }
.prose > * + * { margin-top: 1.4em; }
.prose h2 { font-size: clamp(1.65rem, 2.6vw, 2.3rem); line-height: 1.12; letter-spacing: -0.032em; color: var(--ink); margin-top: 2.4em; }
.prose h3 { font-size: 1.3rem; letter-spacing: -0.02em; font-weight: 600; color: var(--ink); margin-top: 2em; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.prose strong { color: var(--ink); font-weight: 650; }
.prose ul li { position: relative; padding-left: 1.5em; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 0.85em; width: 0.7em; height: 1px; background: var(--ink); }
.prose ol { list-style: decimal; padding-left: 1.3em; }
.prose ol li::marker { color: var(--mute); font-variant-numeric: tabular-nums; }
.prose li + li { margin-top: 0.55em; }
.prose blockquote { margin-block: 2.2em; padding-left: clamp(1rem, 3vw, 2rem); border-left: 2px solid var(--accent); font-family: var(--serif); font-size: clamp(1.65rem, 3vw, 2.45rem); line-height: 1.16; letter-spacing: -0.015em; color: var(--ink); }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.86em; background: var(--paper-2); padding: 0.15em 0.4em; border-radius: 5px; }
.prose pre { background: var(--ink); color: #e8e6e1; padding: 1.25rem 1.4rem; border-radius: 12px; overflow-x: auto; font-size: 0.9rem; line-height: 1.65; }
.prose pre code { background: none; padding: 0; color: inherit; }
.table-wrap { overflow-x: auto; border-top: 1px solid var(--ink); margin-block: 2em; }
.prose table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 0.96rem; }
.prose th { text-align: left; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); font-weight: 600; padding: 0.9rem 1rem 0.9rem 0; }
.prose td { padding: 0.9rem 1rem 0.9rem 0; border-top: 1px solid var(--line); vertical-align: top; }
.prose img { border-radius: 8px; }
.a-end { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js [data-split] .w > span, .js [data-mask], .js [data-mask] > img, .js [data-mask] .inner > img { opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; }
  .work-preview { display: none !important; }
}

/* Hero portrait: visible immediately (fast LCP), settles in with a slow scale */
.js .hero-settle .inner > img { transform: scale(1.12); transition: transform 2.4s var(--ease); }
.js .hero-settle.is-in .inner > img { transform: none; }
@media (min-width: 900px) {
  .hero h1 { mix-blend-mode: difference; color: #f4f2ed; }
  .hero h1 .it { color: inherit; }
}
@media (prefers-reduced-motion: reduce) { .js .hero-settle .inner > img { transform: none !important; } }
.hero-portrait .inner > .ph { padding-top: calc(12% + 4.5rem); }

.a-body > *, .feature > *, .pitem > *, .brow > *, .prow > *, .work > * { min-width: 0; }
.byline .ph-meta { display: none; }
.media img { object-position: 50% 22%; }
@media (min-width: 600px) and (max-width: 899px) { .hero-portrait { aspect-ratio: 1 / 1; } .consult-photo { aspect-ratio: 16 / 11; } }

/* Empty product state — an animated "orbit" of rings instead of a blank space */
.empty { position: relative; display: grid; gap: 1.1rem; justify-items: start; padding-block: clamp(3rem, 7vw, 6rem); overflow: hidden; }
.empty-title { font-size: clamp(2rem, 4.6vw, 4.4rem); line-height: 1.02; letter-spacing: -0.04em; font-weight: 500; max-width: 16ch; }
.empty-text { max-width: 34rem; line-height: 1.65; }
.empty .btn { margin-top: 1rem; }
.empty-orbit { position: absolute; right: -6%; top: 50%; width: clamp(260px, 38vw, 560px); aspect-ratio: 1; transform: translateY(-50%); pointer-events: none; }
.empty-orbit span { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--line); animation: orbit 18s linear infinite; }
.empty-orbit span:nth-child(2) { inset: 16%; animation-duration: 12s; animation-direction: reverse; }
.empty-orbit span:nth-child(3) { inset: 32%; animation-duration: 8s; }
.empty-orbit span::before { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--ink); }
.empty-orbit span:nth-child(2)::before { background: var(--accent); box-shadow: 0 0 0 5px rgba(0, 217, 255, 0.18); }
@keyframes orbit { to { transform: rotate(360deg); } }
@media (max-width: 760px) { .empty-orbit { opacity: 0.45; right: -30%; } }
.empty-lg { min-height: 60svh; align-content: center; }
