/* ==========================================================================
   CURACHA — "Ink & Violet"
   Design system for alexacuracha.com

   The look is built from three ideas held in tension:

   1. LUXURY HOUSE (Coach / LV):  enormous whitespace, hairline rules, tiny
      wide-tracked labels, sharp corners (no radius anywhere), slow motion.
   2. EDITORIAL PHOTOGRAPHY:      images run full-bleed and are the loudest
      thing on any screen; type gets out of their way.
   3. ANIME:                      expressed through five restrained devices
      only — vertical katakana rails, diagonal "panel cut" section joins,
      speed lines, hard-stop cel gradients, and a printed halftone grain.
      Deliberately no neon, no glow, no cyberpunk. The anime reads as
      draughtsmanship, not as costume.

   Section map
     01 Reset
     02 Tokens
     03 Registers (dark/light theming)
     04 Base elements
     05 Layout
     06 Texture (grain, speed lines, halftone)
     07 Typography components
     08 Links, buttons, rules
     09 Site header + overlay menu
     10 Hero
     11 Section chrome + panel cuts
     12 Work grid
     13 Statement
     14 Services
     15 Journal
     16 Contact
     17 Footer
     18 Article / page / archive
     19 Motion + reveal
     20 Accessibility, print
   ========================================================================== */


/* 01 Reset ================================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul[class], ol[class] { list-style: none; margin: 0; padding: 0; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4 { font-weight: inherit; text-wrap: balance; }
p { text-wrap: pretty; }


/* 02 Tokens =============================================================== */

:root {
  /* --- Palette -----------------------------------------------------------
     Purple is the primary, but a single purple everywhere reads cheap. The
     scale runs from a violet-cast black through to a violet-cast white so
     that even the "neutrals" carry the hue. Sakura is the only warm colour
     in the system and is rationed: one accent per viewport, maximum. */
  --void:       #0B0710;   /* near-black, violet cast — the primary ground   */
  --ink:        #140D1F;
  --ink-2:      #1D1430;
  --ink-3:      #2A1D42;
  --violet-900: #2B1150;
  --violet-800: #3B1A6B;
  --violet-700: #4C1D95;
  --violet-600: #6D28D9;
  --violet-500: #7C3AED;   /* PRIMARY                                        */
  --violet-400: #9F67F5;
  --violet-300: #C0A0FF;
  --lilac:      #DCC9FF;
  --bloom:      #EFE6FF;
  --paper:      #F6F3FA;   /* violet-cast off-white — the light register     */
  --paper-2:    #EAE3F3;
  --sakura:     #FF6FB5;   /* rationed accent                                */

  /* Cel gradient: hard stops, no blend — the flat banded shading of cel
     animation rather than a smooth CSS gradient. Used on index numerals
     and display rules. */
  --cel: linear-gradient(103deg,
          var(--violet-300) 0 34%,
          var(--violet-500) 34% 68%,
          var(--violet-800) 68% 100%);

  /* --- Type -------------------------------------------------------------- */
  --font-display: 'Cormorant Garamond', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --font-sans:    'Jost', 'Futura', 'Century Gothic', ui-sans-serif, system-ui, sans-serif;
  --font-jp:      'Noto Sans JP', var(--font-sans);
  --font-mono:    ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, monospace;

  /* Fluid scale, 320px → 1600px viewport. */
  --step--2: clamp(0.66rem, 0.64rem + 0.10vw, 0.72rem);
  --step--1: clamp(0.78rem, 0.75rem + 0.14vw, 0.86rem);
  --step-0:  clamp(0.95rem, 0.91rem + 0.20vw, 1.06rem);
  --step-1:  clamp(1.13rem, 1.05rem + 0.38vw, 1.35rem);
  --step-2:  clamp(1.38rem, 1.22rem + 0.76vw, 1.85rem);
  --step-3:  clamp(1.72rem, 1.40rem + 1.55vw, 2.70rem);
  --step-4:  clamp(2.15rem, 1.55rem + 2.90vw, 4.00rem);
  --step-5:  clamp(2.70rem, 1.55rem + 5.50vw, 6.00rem);
  --display: clamp(3.20rem, 0.60rem + 11.5vw, 11.00rem);

  /* --- Space ------------------------------------------------------------- */
  --s-1: 0.5rem;  --s-2: 0.875rem; --s-3: 1.375rem; --s-4: 2.25rem;
  --s-5: 3.5rem;  --s-6: 5.5rem;   --s-7: 8.5rem;   --s-8: 13rem;
  --section-y: clamp(4.5rem, 9vw, 11rem);
  --gutter:    clamp(1.25rem, 5vw, 5.5rem);
  --maxw:      1600px;
  --maxw-prose: 68ch;

  /* --- Motion ------------------------------------------------------------
     One easing curve for the whole site. Expensive things move slowly and
     never bounce; luxury motion is decisive, not playful. */
  --ease: cubic-bezier(0.16, 1, 0.30, 1);
  --t-fast: 240ms;
  --t-med:  560ms;
  --t-slow: 1100ms;

  --nav-h: clamp(64px, 7vw, 92px);
  --rule-w: 1px;
}


/* 03 Registers ============================================================
   The page alternates between a deep "void" register and a light "paper"
   register. Every component below reads only the semantic tokens, so a
   section changes its entire appearance by swapping four variables. */

:root,
.register--void {
  --bg:        var(--void);
  --bg-2:      var(--ink);
  --bg-3:      var(--ink-2);
  --fg:        var(--bloom);
  --fg-strong: #FFFFFF;
  --fg-muted:  color-mix(in oklab, var(--bloom) 62%, transparent);
  --fg-faint:  color-mix(in oklab, var(--bloom) 34%, transparent);
  --rule:      color-mix(in oklab, var(--violet-300) 22%, transparent);
  --rule-hi:   color-mix(in oklab, var(--violet-300) 55%, transparent);
  --accent:    var(--violet-400);
  --accent-2:  var(--violet-500);
  --grain-op:  0.055;
}

.register--paper {
  --bg:        var(--paper);
  --bg-2:      var(--paper-2);
  --bg-3:      #FFFFFF;
  --fg:        var(--ink);
  --fg-strong: var(--void);
  --fg-muted:  color-mix(in oklab, var(--ink) 66%, transparent);
  --fg-faint:  color-mix(in oklab, var(--ink) 38%, transparent);
  --rule:      color-mix(in oklab, var(--violet-800) 20%, transparent);
  --rule-hi:   color-mix(in oklab, var(--violet-700) 48%, transparent);
  --accent:    var(--violet-700);
  --accent-2:  var(--violet-600);
  --grain-op:  0.035;
}


/* 04 Base elements ======================================================== */

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--void);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  font-weight: 300;
  line-height: 1.65;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-menu-open { overflow: hidden; }

::selection { background: var(--violet-500); color: #fff; }

:focus-visible {
  outline: 2px solid var(--sakura);
  outline-offset: 3px;
}

/* Keyboard users must be able to jump the fixed nav. */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 10000;
  background: var(--violet-700); color: #fff;
  padding: var(--s-2) var(--s-3);
  font-size: var(--step--1); letter-spacing: 0.18em; text-transform: uppercase;
}
.skip-link:focus { left: var(--s-3); top: var(--s-3); }


/* 05 Layout =============================================================== */

.wrap {
  width: min(100% - (var(--gutter) * 2), var(--maxw));
  margin-inline: auto;
}
.wrap--narrow { --maxw: 1080px; }
.wrap--prose  { width: min(100% - (var(--gutter) * 2), var(--maxw-prose)); margin-inline: auto; }
.bleed { width: 100%; }

.stack > * + * { margin-top: var(--flow, var(--s-3)); }

.grid { display: grid; gap: var(--s-4); }

/* The editorial split: a narrow label column and a wide content column.
   Collapses to a single column early — a 2-col label/content layout below
   roughly 900px just makes both columns too tight to read. */
.split {
  display: grid;
  gap: var(--s-4) var(--s-5);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(12rem, 1fr) minmax(0, 3fr); }
  .split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* 06 Texture ==============================================================
   A single fixed grain plate over the whole document. This is the printed-
   paper tooth that keeps large flat violet fields from looking like a
   default CSS background. It must never intercept pointer events. */

.grain {
  position: fixed; inset: 0; z-index: 9000;
  pointer-events: none;
  opacity: var(--grain-op, 0.05);
  mix-blend-mode: overlay;
  background-image: var(--grain-src);
  background-size: 220px 220px;
}
/* Grain opacity follows whichever register is under the viewport; JS sets
   --grain-op on :root as sections scroll past. Falls back to the dark value. */

.speedlines {
  position: absolute; inset: 0;
  pointer-events: none;
  background: var(--speedlines-src) center / cover no-repeat;
  opacity: 0.20;
  mix-blend-mode: screen;
}
.register--paper .speedlines { mix-blend-mode: multiply; opacity: 0.10; }

.halftone {
  position: absolute; inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at center, currentColor 0.9px, transparent 1px);
  background-size: 6px 6px;
  opacity: 0.10;
}


/* 07 Typography components ================================================ */

/* Eyebrow: the tiny wide-tracked label. This single component does more work
   than anything else in establishing the luxury register — it appears above
   every section heading. */
.eyebrow {
  display: flex; align-items: center; gap: var(--s-2);
  font-family: var(--font-sans);
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.eyebrow::before {
  content: "";
  width: clamp(1.5rem, 4vw, 3.25rem); height: var(--rule-w);
  background: var(--rule-hi);
  flex: none;
}
.eyebrow--bare::before { display: none; }

/* Index numerals — "01", "02". Filled with the cel gradient so the numerals
   carry the anime banding without any imagery. */
.index-num {
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.22em;
  background: var(--cel);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
@supports not (background-clip: text) { .index-num { color: var(--accent); } }

/* Display type. Cormorant at Light with tight leading and slightly negative
   tracking is the whole voice of the site — do not bump the weight. */
.display {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--display);
  line-height: 0.86;
  letter-spacing: -0.022em;
}
.h1 { font-family: var(--font-display); font-weight: 300; font-size: var(--step-5); line-height: 0.95; letter-spacing: -0.018em; }
.h2 { font-family: var(--font-display); font-weight: 300; font-size: var(--step-4); line-height: 1.02; letter-spacing: -0.015em; }
.h3 { font-family: var(--font-display); font-weight: 300; font-size: var(--step-3); line-height: 1.12; letter-spacing: -0.01em; }
.h4 { font-family: var(--font-sans);    font-weight: 400; font-size: var(--step-1); line-height: 1.3;  letter-spacing: 0.02em; }

.display em, .h1 em, .h2 em, .h3 em {
  font-style: italic;
  color: var(--accent);
}

.lede {
  font-size: var(--step-1);
  font-weight: 300;
  line-height: 1.6;
  color: var(--fg-muted);
  max-width: 46ch;
}

.meta {
  font-family: var(--font-sans);
  font-size: var(--step--2);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

/* Katakana ornament. Set vertically down a page edge at low contrast — an
   accent to be noticed second, never first. Hidden from assistive tech
   because it is decoration, not content. */
.kana {
  font-family: var(--font-jp);
  font-weight: 300;
  letter-spacing: 0.42em;
  color: var(--fg-faint);
  font-size: var(--step--2);
}
.kana--rail {
  position: absolute;
  writing-mode: vertical-rl;
  text-orientation: upright;
  top: 0; bottom: 0;
  display: flex; align-items: center;
  pointer-events: none;
  user-select: none;
}
.kana--rail-left  { left:  calc(var(--gutter) * 0.34); }
.kana--rail-right { right: calc(var(--gutter) * 0.34); }
@media (max-width: 900px) { .kana--rail { display: none; } }


/* 08 Links, buttons, rules ================================================ */

a { color: inherit; text-decoration: none; }

/* Underline that draws itself in on hover, left to right. */
.link {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
  color: var(--fg);
}
.link::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: var(--rule-w);
  background: currentColor;
  transform: scaleX(var(--sx, 0));
  transform-origin: left;
  transition: transform var(--t-med) var(--ease);
}
.link:hover, .link:focus-visible { --sx: 1; color: var(--accent); }
.link--always { --sx: 1; }
.link--always:hover { --sx: 1; }

/* The button is a rule-and-label, not a filled pill. Filled buttons read as
   software; a tracked label over a hairline reads as a fashion house. */
.btn {
  --btn-fg: var(--fg);
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: var(--s-2) 0;
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--btn-fg);
  position: relative;
  transition: color var(--t-fast) var(--ease), gap var(--t-med) var(--ease);
}
.btn::before {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: var(--rule-w);
  background: currentColor; opacity: 0.42;
  transition: opacity var(--t-fast) var(--ease);
}
.btn .btn__arrow { transition: transform var(--t-med) var(--ease); }
.btn:hover, .btn:focus-visible { color: var(--accent); gap: calc(var(--s-2) * 1.6); }
.btn:hover::before { opacity: 1; }
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn--solid {
  padding: var(--s-3) var(--s-4);
  background: var(--violet-700);
  color: #fff;
  transition: background var(--t-fast) var(--ease);
}
.btn--solid::before { display: none; }
.btn--solid:hover { background: var(--violet-500); color: #fff; }

.rule { height: var(--rule-w); background: var(--rule); border: 0; margin: 0; }
.rule--cel { height: 2px; background: var(--cel); border: 0; }


/* 09 Site header + overlay menu ===========================================
   Transparent over the hero, then a blurred bar once scrolled. The full
   navigation lives behind a MENU trigger rather than in the bar — the
   restraint is the point. */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 8000;
  height: var(--nav-h);
  display: flex; align-items: center;
  color: var(--bloom);
  transition: background var(--t-med) var(--ease),
              backdrop-filter var(--t-med) var(--ease),
              border-color var(--t-med) var(--ease),
              color var(--t-med) var(--ease);
  border-bottom: var(--rule-w) solid transparent;
}
.site-header__inner {
  width: min(100% - (var(--gutter) * 2), var(--maxw));
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4);
}

.site-header.is-stuck {
  background: color-mix(in oklab, var(--void) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: color-mix(in oklab, var(--violet-300) 16%, transparent);
}
/* Over a light section the bar has to invert or the wordmark disappears. */
.site-header.is-over-paper {
  color: var(--ink);
  background: color-mix(in oklab, var(--paper) 84%, transparent);
  border-bottom-color: color-mix(in oklab, var(--violet-800) 14%, transparent);
}

.wordmark {
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 400;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: opacity var(--t-fast) var(--ease);
}
.wordmark:hover { opacity: 0.62; }
.wordmark__mark { font-family: var(--font-display); font-size: var(--step-1); letter-spacing: 0.1em; }
.custom-logo { max-height: calc(var(--nav-h) * 0.44); width: auto; }

.site-header__nav { display: none; }
@media (min-width: 1024px) {
  .site-header__nav { display: flex; align-items: center; gap: clamp(1.5rem, 2.4vw, 2.75rem); }
  .site-header__nav a {
    font-size: var(--step--2); font-weight: 400;
    letter-spacing: 0.24em; text-transform: uppercase;
    opacity: 0.78; transition: opacity var(--t-fast) var(--ease);
  }
  .site-header__nav a:hover,
  .site-header__nav .current-menu-item > a { opacity: 1; }
}

.menu-toggle {
  display: flex; align-items: center; gap: var(--s-2);
  font-size: var(--step--2); font-weight: 500;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: inherit;
}
.menu-toggle__bars { display: grid; gap: 4px; width: 22px; }
.menu-toggle__bars span {
  height: var(--rule-w); background: currentColor; display: block;
  transition: transform var(--t-med) var(--ease), opacity var(--t-fast) var(--ease);
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Fullscreen overlay menu */
.nav-overlay {
  position: fixed; inset: 0; z-index: 7900;
  background: var(--void);
  color: var(--bloom);
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + var(--s-5)) var(--gutter) var(--s-5);
  clip-path: inset(0 0 100% 0);
  transition: clip-path var(--t-slow) var(--ease), visibility 0s linear var(--t-slow);
  visibility: hidden;
}
.nav-overlay.is-open {
  clip-path: inset(0 0 0 0);
  visibility: visible;
  transition: clip-path var(--t-slow) var(--ease), visibility 0s;
}
.nav-overlay::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 82% 12%,
              color-mix(in oklab, var(--violet-700) 55%, transparent) 0%,
              transparent 62%);
  pointer-events: none;
}
.nav-overlay__inner { position: relative; width: min(100%, var(--maxw)); margin-inline: auto; }

.nav-overlay__menu { display: grid; gap: clamp(0.15rem, 1.2vw, 0.6rem); }
.nav-overlay__menu li { overflow: hidden; }
.nav-overlay__menu a {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.2rem, 7.5vw, 5.5rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  transform: translateY(105%);
  transition: transform var(--t-slow) var(--ease), color var(--t-fast) var(--ease);
}
.nav-overlay.is-open .nav-overlay__menu a { transform: translateY(0); }
.nav-overlay__menu a:hover { color: var(--violet-300); font-style: italic; }
/* Stagger — each item trails the one above it. */
.nav-overlay__menu li:nth-child(1) a { transition-delay: 90ms; }
.nav-overlay__menu li:nth-child(2) a { transition-delay: 150ms; }
.nav-overlay__menu li:nth-child(3) a { transition-delay: 210ms; }
.nav-overlay__menu li:nth-child(4) a { transition-delay: 270ms; }
.nav-overlay__menu li:nth-child(5) a { transition-delay: 330ms; }
.nav-overlay__menu li:nth-child(6) a { transition-delay: 390ms; }
.nav-overlay__menu li:nth-child(n+7) a { transition-delay: 450ms; }

.nav-overlay__foot {
  margin-top: var(--s-6);
  display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5);
  align-items: baseline; justify-content: space-between;
  opacity: 0; transition: opacity var(--t-med) var(--ease) 420ms;
}
.nav-overlay.is-open .nav-overlay__foot { opacity: 1; }


/* 10 Hero =================================================================
   Full-viewport image with the display headline overlaid. The image scales
   down on load rather than up — arriving at rest, not departing. */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--void);
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img,
.hero__media video {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.10);
  animation: hero-settle 2600ms var(--ease) forwards;
}
@keyframes hero-settle { to { transform: scale(1); } }

/* Two-stop scrim: dark at the base for legibility, a violet wash at the top
   to tie the photograph into the palette without tinting the whole frame. */
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top,
      color-mix(in oklab, var(--void) 94%, transparent) 0%,
      color-mix(in oklab, var(--void) 62%, transparent) 34%,
      transparent 72%),
    linear-gradient(to bottom,
      color-mix(in oklab, var(--violet-900) 62%, transparent) 0%,
      transparent 46%);
}
.hero__speedlines { position: absolute; inset: 0; z-index: -1; }

.hero__inner {
  position: relative;
  width: min(100% - (var(--gutter) * 2), var(--maxw));
  margin-inline: auto;
  padding-block: var(--s-6) clamp(3.5rem, 8vh, 7rem);
}
.hero__eyebrow { margin-bottom: var(--s-3); }
.hero__title { color: var(--fg-strong); max-width: 15ch; }
.hero__title .is-accent { color: var(--violet-300); font-style: italic; }
.hero__lede { margin-top: var(--s-4); }
.hero__actions { margin-top: var(--s-5); display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-5); }

/* Scroll cue — a hairline that drains downward on a loop. */
.hero__cue {
  position: absolute; left: 50%; bottom: var(--s-4);
  transform: translateX(-50%);
  display: grid; justify-items: center; gap: var(--s-2);
}
.hero__cue .meta { font-size: var(--step--2); letter-spacing: 0.3em; }
.hero__cue-line { width: var(--rule-w); height: 56px; background: var(--rule); position: relative; overflow: hidden; }
.hero__cue-line::after {
  content: ""; position: absolute; inset: 0;
  background: var(--violet-300);
  animation: cue-drain 2400ms var(--ease) infinite;
}
@keyframes cue-drain {
  0%   { transform: translateY(-100%); }
  55%  { transform: translateY(0); }
  100% { transform: translateY(100%); }
}
@media (max-width: 700px) { .hero__cue { display: none; } }


/* 11 Section chrome + panel cuts ==========================================
   The diagonal join between sections is the manga panel gutter. It is drawn
   as a triangle in the *incoming* section's own background colour, sitting
   above that section and overlapping the one before it — so it works no
   matter which two registers meet, and it never clips the section's own
   content the way a clip-path on the section itself would. */

.section {
  position: relative;
  background: var(--bg);
  color: var(--fg);
  padding-block: var(--section-y);
}
.section--flush { padding-block: 0; }

.section--cut { --cut-h: clamp(34px, 4.5vw, 88px); }
.section--cut::before {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 100%;
  height: var(--cut-h);
  background: var(--bg);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  pointer-events: none;
}
.section--cut-left::before { clip-path: polygon(0 0, 100% 100%, 0 100%); }

/* A hairline drawn along the diagonal itself, in the cel gradient. Reads as
   the inked edge of a panel. */
.section--cut-inked::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 100%;
  height: var(--cut-h);
  background: var(--cel);
  clip-path: polygon(0 100%, 100% 0, 100% calc(0% + 2px), 0 calc(100% + 2px));
  opacity: 0.55;
  pointer-events: none;
}

.section__head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: var(--s-3) var(--s-5);
  margin-bottom: clamp(2.5rem, 5vw, 5rem);
}
.section__head-main { max-width: 30ch; }
.section__head .eyebrow { margin-bottom: var(--s-3); }


/* 12 Work grid ============================================================
   Portrait 4:5 frames on an asymmetric grid. Images sit slightly desaturated
   and darkened at rest and resolve to full colour on hover — the photograph
   "comes forward" when chosen. A cel-gradient hairline wipes across the top
   edge at the same time. */

.work-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 4.5rem) clamp(1.25rem, 2.5vw, 2.75rem);
  grid-template-columns: 1fr;
}
@media (min-width: 700px)  { .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .work-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); } }

/* On the wide grid the cards deliberately do not line up: each takes a
   different span and vertical offset so the page reads as a layout rather
   than a product listing. */
@media (min-width: 1180px) {
  .work-grid > .work-card:nth-child(6n+1) { grid-column: span 7; }
  .work-grid > .work-card:nth-child(6n+2) { grid-column: span 5; margin-top: clamp(3rem, 7vw, 8rem); }
  .work-grid > .work-card:nth-child(6n+3) { grid-column: span 5; }
  .work-grid > .work-card:nth-child(6n+4) { grid-column: span 7; margin-top: clamp(2rem, 4vw, 5rem); }
  .work-grid > .work-card:nth-child(6n+5) { grid-column: span 6; }
  .work-grid > .work-card:nth-child(6n+6) { grid-column: span 6; margin-top: clamp(2rem, 5vw, 6rem); }
}

.work-card { position: relative; }
.work-card__frame {
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
  aspect-ratio: 4 / 5;
}
.work-card--wide .work-card__frame { aspect-ratio: 3 / 2; }
.work-card__frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.72) brightness(0.86);
  transform: scale(1.015);
  transition: transform 1400ms var(--ease), filter var(--t-slow) var(--ease);
  will-change: transform;
}
.work-card:hover .work-card__frame img,
.work-card:focus-within .work-card__frame img {
  filter: saturate(1) brightness(1);
  transform: scale(1.055);
}

/* Inked top edge that wipes in on hover. */
.work-card__frame::after {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 2px;
  background: var(--cel);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-slow) var(--ease);
}
.work-card:hover .work-card__frame::after,
.work-card:focus-within .work-card__frame::after { transform: scaleX(1); }

.work-card__body {
  margin-top: var(--s-3);
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3);
}
.work-card__title { font-family: var(--font-display); font-weight: 300; font-size: var(--step-2); line-height: 1.12; }
.work-card__meta  { color: var(--fg-faint); white-space: nowrap; }
.work-card__terms { margin-top: var(--s-1); }

/* The whole card is clickable, but the anchor stays on the title so screen
   readers and the status bar get a meaningful link target. */
.work-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.work-card:hover .work-card__title { color: var(--accent); }
.work-card__title { transition: color var(--t-fast) var(--ease); }


/* 13 Statement ============================================================ */

.statement { position: relative; }
.statement__quote {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: var(--step-4);
  line-height: 1.16;
  letter-spacing: -0.012em;
  max-width: 22ch;
}
.statement__body { max-width: var(--maxw-prose); }
.statement__body p + p { margin-top: var(--s-3); }
.statement__portrait { position: relative; }
.statement__portrait img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.statement__sig {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-2);
  color: var(--accent);
  margin-top: var(--s-4);
}


/* 14 Services =============================================================
   A numbered list, not cards. Each row is a hairline-separated band that
   lifts its label on hover — closer to a menu in a gallery than to pricing
   tiers, which is the correct register for commissioned work. */

.services { border-top: var(--rule-w) solid var(--rule); }
.service {
  border-bottom: var(--rule-w) solid var(--rule);
  display: grid;
  gap: var(--s-2) var(--s-4);
  grid-template-columns: 1fr;
  padding-block: clamp(1.75rem, 3vw, 2.75rem);
  position: relative;
  transition: color var(--t-fast) var(--ease);
}
@media (min-width: 860px) {
  .service { grid-template-columns: 4rem minmax(0, 1fr) minmax(0, 1.4fr) auto; align-items: baseline; }
}
.service::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--bg-2);
  opacity: 0;
  transition: opacity var(--t-med) var(--ease);
  z-index: -1;
  /* bleed the hover field into the gutters so it reads as a full-width band */
  margin-inline: calc(var(--gutter) * -0.5);
}
.service:hover::before { opacity: 0.6; }
.service__title { font-family: var(--font-display); font-weight: 300; font-size: var(--step-3); line-height: 1.1; }
.service__desc  { color: var(--fg-muted); max-width: 52ch; }
.service__note  { color: var(--fg-faint); }


/* 15 Journal ============================================================== */

.journal-list { display: grid; gap: clamp(1.5rem, 3vw, 3rem); }
@media (min-width: 820px) { .journal-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.journal-card { position: relative; display: grid; gap: var(--s-3); align-content: start; }
.journal-card__frame { overflow: hidden; aspect-ratio: 3 / 2; background: var(--bg-2); }
.journal-card__frame img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.78);
  transform: scale(1.01);
  transition: transform 1200ms var(--ease), filter var(--t-med) var(--ease);
}
.journal-card:hover .journal-card__frame img { transform: scale(1.05); filter: saturate(1); }
.journal-card__title { font-family: var(--font-display); font-weight: 300; font-size: var(--step-2); line-height: 1.14; }
.journal-card__excerpt { color: var(--fg-muted); font-size: var(--step--1); }
.journal-card__link::after { content: ""; position: absolute; inset: 0; }


/* 16 Contact ============================================================== */

.contact { position: relative; overflow: hidden; }
.contact__wash {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(85% 120% at 15% 100%,
              color-mix(in oklab, var(--violet-700) 70%, transparent) 0%,
              transparent 60%);
}
.contact__inner { position: relative; }
.contact__title { max-width: 14ch; }
.contact__mail {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--step-3);
  letter-spacing: -0.01em;
  word-break: break-word;
}
.contact__details { display: grid; gap: var(--s-4); }
@media (min-width: 760px) { .contact__details { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.contact__detail dt { margin-bottom: var(--s-1); }
.contact__detail dd { margin: 0; font-size: var(--step-1); font-weight: 300; }


/* 17 Footer =============================================================== */

.site-footer {
  background: var(--void);
  color: var(--bloom);
  padding-block: clamp(3.5rem, 7vw, 7rem) var(--s-4);
  position: relative;
  overflow: hidden;
}
.site-footer__grid {
  display: grid; gap: var(--s-5);
  grid-template-columns: 1fr;
}
@media (min-width: 880px) {
  .site-footer__grid { grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
}
.site-footer__col h3 { margin-bottom: var(--s-3); }
.site-footer__col li + li { margin-top: var(--s-1); }
.site-footer__col a { color: var(--fg-muted); transition: color var(--t-fast) var(--ease); }
.site-footer__col a:hover { color: var(--bloom); }

/* Oversized wordmark bleeding off the bottom edge — the sign-off device
   every luxury house uses. Cropped deliberately; it should not fully fit. */
.site-footer__mark {
  margin-top: clamp(3rem, 7vw, 7rem);
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3rem, 15.5vw, 17rem);
  line-height: 0.78;
  letter-spacing: -0.03em;
  color: color-mix(in oklab, var(--violet-300) 16%, transparent);
  white-space: nowrap;
  user-select: none;
  overflow: hidden;
}
.site-footer__base {
  margin-top: var(--s-5);
  padding-top: var(--s-3);
  border-top: var(--rule-w) solid color-mix(in oklab, var(--violet-300) 14%, transparent);
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4);
  justify-content: space-between; align-items: center;
}


/* 18 Article / page / archive ============================================= */

.page-hero {
  position: relative;
  /* Required: page.php and single.php reuse .hero__media / .hero__scrim, which
     sit at z-index -2 and -1. Without a stacking context here those negative
     children would paint behind this element's own background and disappear. */
  isolation: isolate;
  padding-block: calc(var(--nav-h) + clamp(4rem, 10vw, 9rem)) clamp(2.5rem, 5vw, 5rem);
  background: var(--bg);
  overflow: hidden;
}
.page-hero__title { max-width: 18ch; }
.page-hero__lede { margin-top: var(--s-3); }

.breadcrumb { margin-bottom: var(--s-3); }
.breadcrumb a { color: var(--fg-muted); }
.breadcrumb a:hover { color: var(--accent); }

/* Long-form content. Everything the block editor can emit needs a sane
   default here, because the client will paste into it and never see this file. */
.prose { font-size: var(--step-0); line-height: 1.78; color: var(--fg-muted); }
.prose > * + * { margin-top: var(--s-3); }
.prose > h2 { font-family: var(--font-display); font-weight: 300; font-size: var(--step-3); line-height: 1.14; color: var(--fg-strong); margin-top: var(--s-5); letter-spacing: -0.012em; }
.prose > h3 { font-family: var(--font-display); font-weight: 300; font-size: var(--step-2); line-height: 1.2;  color: var(--fg-strong); margin-top: var(--s-4); }
.prose > h4 { font-family: var(--font-sans); font-weight: 500; font-size: var(--step-0); letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg); margin-top: var(--s-4); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--fg-strong); }
.prose strong { font-weight: 500; color: var(--fg); }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose li + li { margin-top: var(--s-1); }
.prose ul { list-style: none; padding-left: 0; }
.prose ul > li { position: relative; padding-left: 1.5em; }
.prose ul > li::before {
  content: ""; position: absolute; left: 0; top: 0.72em;
  width: 0.5em; height: var(--rule-w); background: var(--accent);
}
.prose blockquote {
  margin: var(--s-5) 0;
  padding-left: clamp(1rem, 3vw, 2.5rem);
  border-left: 2px solid transparent;
  border-image: var(--cel) 1;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-2);
  line-height: 1.32;
  color: var(--fg);
}
.prose figure { margin: var(--s-5) 0; }
.prose figcaption,
.wp-element-caption { margin-top: var(--s-2); font-size: var(--step--2); letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-faint); }
.prose hr { margin: var(--s-6) 0; height: var(--rule-w); background: var(--rule); border: 0; }
.prose code { font-family: var(--font-mono); font-size: 0.88em; background: var(--bg-2); padding: 0.15em 0.4em; }
.prose pre { background: var(--bg-2); padding: var(--s-3); overflow-x: auto; font-family: var(--font-mono); font-size: var(--step--1); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.prose th, .prose td { text-align: left; padding: var(--s-2) var(--s-2) var(--s-2) 0; border-bottom: var(--rule-w) solid var(--rule); }
.prose img { width: 100%; height: auto; }

/* Core block alignment inside a constrained prose column. */
.prose .alignwide  { width: min(100vw - (var(--gutter) * 2), 1180px); margin-inline: auto; max-width: none; }
.prose .alignfull  { width: 100vw; margin-left: 50%; transform: translateX(-50%); max-width: none; }
.prose .alignleft  { float: left;  margin: 0.35em var(--s-3) var(--s-3) 0; max-width: 45%; }
.prose .alignright { float: right; margin: 0.35em 0 var(--s-3) var(--s-3); max-width: 45%; }
.prose .aligncenter { margin-inline: auto; }

/* Series detail — the gallery is the page. */
.series-gallery { display: grid; gap: clamp(1rem, 2.2vw, 2.25rem); }
@media (min-width: 800px) { .series-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.series-gallery figure { margin: 0; }
.series-gallery img { width: 100%; height: auto; }
/* Every third frame runs the full width — the rhythm change is what makes a
   gallery feel art-directed instead of tiled. */
@media (min-width: 800px) { .series-gallery > *:nth-child(5n+1) { grid-column: 1 / -1; } }

.post-nav {
  display: grid; gap: var(--s-3);
  border-top: var(--rule-w) solid var(--rule);
  padding-top: var(--s-4); margin-top: var(--s-6);
}
@media (min-width: 700px) { .post-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.post-nav__item--next { text-align: right; }
.post-nav__label { display: block; margin-bottom: var(--s-1); }
.post-nav__title { font-family: var(--font-display); font-weight: 300; font-size: var(--step-2); line-height: 1.14; }

.pagination { margin-top: var(--s-6); display: flex; gap: var(--s-2); flex-wrap: wrap; justify-content: center; }
.pagination .page-numbers {
  min-width: 2.75rem; padding: var(--s-2);
  text-align: center;
  font-size: var(--step--1); letter-spacing: 0.14em;
  border: var(--rule-w) solid var(--rule);
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.pagination .page-numbers:hover { border-color: var(--rule-hi); color: var(--accent); }
.pagination .page-numbers.current { border-color: var(--accent); color: var(--accent); }

/* Filter rail on the work archive */
.filters { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.filters a {
  font-size: var(--step--2); letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--fg-faint); padding-bottom: 3px;
  border-bottom: var(--rule-w) solid transparent;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.filters a:hover, .filters a[aria-current] { color: var(--fg); border-bottom-color: var(--accent); }

/* Forms — used by search and, later, the enquiry form. */
.field { display: grid; gap: var(--s-1); }
.field label { font-size: var(--step--2); letter-spacing: 0.22em; text-transform: uppercase; color: var(--fg-faint); }
.field input, .field textarea, .field select {
  background: transparent;
  border: 0; border-bottom: var(--rule-w) solid var(--rule);
  padding: var(--s-2) 0;
  color: var(--fg);
  font-size: var(--step-0); font-weight: 300;
  transition: border-color var(--t-fast) var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.field textarea { resize: vertical; min-height: 8rem; }
.search-form { display: flex; gap: var(--s-3); align-items: end; }
.search-form .field { flex: 1; }

.empty-state { padding-block: var(--s-6); text-align: center; color: var(--fg-muted); }

/* 404 */
.error-404 { min-height: 82svh; display: grid; place-items: center; text-align: center; }
.error-404__code {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(6rem, 26vw, 20rem); line-height: 0.8;
  background: var(--cel); -webkit-background-clip: text; background-clip: text; color: transparent;
}


/* 19 Motion + reveal ======================================================
   Reveals are a clip-path wipe rather than a fade-and-rise. A wipe reads as
   a panel being uncovered — it is the one motion in the system that is
   overtly anime, and it costs nothing because clip-path and transform are
   both compositor-friendly. */

[data-reveal] {
  clip-path: inset(0 0 100% 0);
  opacity: 0;
  transition:
    clip-path var(--t-slow) var(--ease),
    opacity var(--t-med) var(--ease),
    transform var(--t-slow) var(--ease);
  transform: translateY(14px);
}
[data-reveal].is-revealed {
  clip-path: inset(0 0 0 0);
  opacity: 1;
  transform: none;
}
[data-reveal="wipe"]        { clip-path: inset(0 100% 0 0); transform: none; }
[data-reveal="wipe"].is-revealed { clip-path: inset(0 0 0 0); }
[data-reveal-delay="1"] { transition-delay: 110ms; }
[data-reveal-delay="2"] { transition-delay: 220ms; }
[data-reveal-delay="3"] { transition-delay: 330ms; }
[data-reveal-delay="4"] { transition-delay: 440ms; }

/* If JS never runs, nothing may stay hidden. */
.no-js [data-reveal] { clip-path: none; opacity: 1; transform: none; }


/* 20 Accessibility, print ================================================= */

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.screen-reader-text:focus {
  position: static !important; width: auto; height: auto;
  clip: auto; clip-path: none;
}

/* Honour the OS setting completely: no wipes, no drifts, no looping cue.
   Hover colour changes stay, because they carry meaning. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { clip-path: none !important; opacity: 1 !important; transform: none !important; }
  .hero__media img { transform: none; animation: none; }
  .nav-overlay { transition: none; }
}

@media print {
  .site-header, .nav-overlay, .grain, .hero__cue, .site-footer__mark { display: none !important; }
  body, .section { background: #fff !important; color: #000 !important; }
  .prose a { text-decoration: underline; }
}


/* Texture sources ---------------------------------------------------------
   The grain is an inline data URI on purpose: it is painted over the entire
   document on first paint, so it must not cost a round trip. The speed lines
   are a real file — they appear once, below the fold of the hero, and are
   large enough that inlining them would bloat every page's CSS. */
:root {
  --grain-src: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}


/* Menu + list plumbing =====================================================
   Rules for the markup WordPress generates, kept together so it is obvious
   which selectors exist to serve core output rather than the design. */

.site-header__nav-list { display: flex; align-items: center; gap: clamp(1.5rem, 2.4vw, 2.75rem); list-style: none; margin: 0; padding: 0; }

.social-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); }
.social-list a { transition: color var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease); }
.social-list a:hover { color: var(--accent); }
/* In the footer column the channels stack rather than run inline. */
.site-footer__col .social-list { flex-direction: column; gap: var(--s-1); }

.site-footer__list { list-style: none; margin: 0; padding: 0; font-size: var(--step--1); }
.site-footer__legal { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--s-3); }

.statement__portrait-img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

.page-links { margin-top: var(--s-4); display: flex; gap: var(--s-2); }

/* Comments are off by default on this site; these are floor-level styles so
   that switching them on for one entry does not produce unstyled markup. */
.comment-list ol { list-style: none; padding-left: var(--s-4); }
.comment-list .comment-body { border-bottom: var(--rule-w) solid var(--rule); padding-bottom: var(--s-3); }
.comment-list .comment-meta { font-size: var(--step--2); letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-faint); margin-bottom: var(--s-2); }
.comment-form { display: grid; gap: var(--s-3); max-width: 46rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%; background: transparent; color: var(--fg);
  border: 0; border-bottom: var(--rule-w) solid var(--rule); padding: var(--s-2) 0;
}
.comment-form label { font-size: var(--step--2); letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-faint); }
.comment-form .submit {
  justify-self: start; padding: var(--s-3) var(--s-4);
  background: var(--violet-700); color: #fff;
  font-size: var(--step--1); letter-spacing: 0.26em; text-transform: uppercase;
}

/* WordPress admin bar sits above the fixed masthead when logged in. */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
