/* ==================================================================
   ISAAC METHERELL — PORTFOLIO
   Editorial · warm · cinematic · grainy
   ================================================================== */

/* ------------------------------------------------------------------
   1. TOKENS
   ------------------------------------------------------------------ */
:root {
  /* Palette — warm cream, dusty blue, deep oxblood, near-black brown */
  --cream:        #E3DFCE;
  --cream-deep:   #D2CDB7;
  --cream-soft:   #DAD5C0;
  --charcoal:     #1A0905;
  --charcoal-2:   #2A1612;
  --ink:          #1A0905;
  --ink-soft:     #6B5552;
  /* Italic accent on LIGHT backgrounds — deep oxblood */
  --olive:        #4C050C;
  --olive-deep:   #4C050C;
  /* Italic accent on DARK backgrounds — dusty blue */
  --gold:         #94B1C8;
  --gold-deep:    #4C050C;
  --rule:         #BFB8A0;
  --rule-dark:    #3A2218;

  /* Type */
  --serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --sans:  'Manrope', system-ui, -apple-system, sans-serif;
  --hand:  'Swanky and Moo Moo', 'Caveat', cursive;

  /* Layout */
  --page-pad-x: clamp(20px, 4vw, 64px);
  --section-pad-y: clamp(80px, 12vw, 160px);
  --container: 1320px;

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ------------------------------------------------------------------
   2. RESET
   ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; }
input { font: inherit; color: inherit; }

/* ------------------------------------------------------------------
   3. UTILITIES — type, rules, labels
   ------------------------------------------------------------------ */
.caps {
  font-family: var(--sans);
  font-size: 11px;
  /* Swiss principle — heavier weight on uppercase labels for graphic presence */
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.script {
  font-family: var(--hand);
  font-style: normal;
  font-weight: 400;
  color: var(--olive-deep);
  /* Handwritten fonts read smaller — bump it up to match the eye-weight
     of surrounding Cormorant italic. */
  font-size: 1.35em;
  line-height: 1;
  letter-spacing: 0.005em;
}
.rule {
  display: inline-block;
  width: 56px;
  /* Swiss principle — thick visible structure */
  height: 2px;
  background: var(--ink);
  vertical-align: middle;
  flex-shrink: 0;
}
.rule--short { width: 28px; height: 2px; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.section-label--center {
  display: flex;
  justify-content: center;
  margin: 0 auto 56px;
}
.section-label--dark .caps { color: var(--cream-deep); opacity: 0.65; }
.section-label--dark .rule { background: rgba(227, 223, 206, 0.25); }

/* Decorative ornaments and big background section numerals */
.ornament {
  display: inline-block;
  color: var(--olive-deep);
  font-family: var(--serif);
  font-size: 14px;
  vertical-align: middle;
  line-height: 1;
  user-select: none;
}
.section-label .ornament {
  margin-left: 6px;
  opacity: 0.7;
}

.section-hand {
  display: block;
  font-family: var(--hand);
  font-size: clamp(40px, 5.2vw, 72px);
  line-height: 1;
  color: var(--olive-deep);
  /* Generous breathing room so it doesn't crowd the caps label below
     or whatever sits above it. */
  margin: 0 0 clamp(36px, 5vw, 64px);
  padding-top: clamp(16px, 3vw, 32px);
  transform: rotate(-2deg);
  transform-origin: left center;
}
.section-hand--dark { color: var(--gold); }

.section-ornament {
  position: absolute;
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 60px);
  color: var(--olive-deep);
  opacity: 0.55;
  pointer-events: none;
  z-index: 1;
  user-select: none;
  line-height: 1;
}
.section-ornament--tr { top: 110px; right: clamp(24px, 4vw, 64px); }
.section-ornament--bl { bottom: clamp(40px, 6vw, 80px); left: clamp(24px, 4vw, 64px); }
.section-ornament--dark { color: var(--gold); opacity: 0.7; }

/* Ensure sections can host absolute children (patterns + ornaments)
   without spilling into neighbours. */
.about, .work, .capabilities, .offers, .contact { position: relative; overflow: hidden; }
/* Lift section content above background patterns */
.about__inner,
.work__head,
.work__grid,
.offers__inner,
.contact__inner,
.capabilities .section-label,
.capabilities .marquee,
.footer { position: relative; z-index: 1; }

/* ------------------------------------------------------------------
   3b. CUSTOM CURSOR
   ------------------------------------------------------------------ */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 0; height: 0;
  pointer-events: none;
  z-index: 10000;
  /* hidden until first mousemove (JS adds .is-active) */
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.cursor.is-active { opacity: 1; }

/* The dot — small, follows mouse exactly. Dusty blue is readable on
   cream and on charcoal, so we use a single accent color instead of
   complex blend-modes. A subtle shadow guarantees visibility on any image. */
.cursor__dot {
  position: fixed;
  top: 0; left: 0;
  width: 10px; height: 10px;
  background: var(--gold);                /* dusty blue */
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgba(26, 9, 5, 0.18),
    0 2px 10px rgba(26, 9, 5, 0.35);
  transform: translate(-50%, -50%);
  will-change: transform;
}

/* The ring — larger, lags behind mouse with smooth lerp */
.cursor__ring {
  position: fixed;
  top: 0; left: 0;
  width: 42px; height: 42px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow:
    inset 0 0 0 1px rgba(227, 223, 206, 0.4),
    0 0 14px rgba(148, 177, 200, 0.25);
  transition:
    width .35s var(--ease-out),
    height .35s var(--ease-out),
    border-color .35s var(--ease),
    background .35s var(--ease);
  will-change: transform;
}

/* On interactive elements — ring scales up and tints */
.cursor.is-hovering .cursor__ring {
  width: 76px; height: 76px;
  background: rgba(148, 177, 200, 0.10);
  border-color: var(--gold);
}
.cursor.is-hovering .cursor__dot {
  background: var(--cream);
}

/* Cursor context label — pill next to ring with action verb */
.cursor__label {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  background: var(--ink);
  color: var(--cream);
  padding: 6px 12px;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  scale: 0.85;
  transition: opacity .35s var(--ease), scale .35s var(--ease);
  will-change: transform, opacity;
}
.cursor.is-hovering .cursor__label {
  opacity: 1;
  scale: 1;
}

/* Hide on touch / coarse pointers */
@media (hover: none), (pointer: coarse) {
  .cursor { display: none; }
  body { cursor: auto; }
}
/* When the custom cursor is active, hide the native cursor on
   interactive surfaces (kept for accessibility on touch above) */
@media (hover: hover) and (pointer: fine) {
  html, body { cursor: none; }
  a, button, input, [data-card], [data-card-trigger] { cursor: none; }
}

/* ------------------------------------------------------------------
   3c. SWISS PATTERNS — background textures applied to sections.
   All at very low opacity so they read as paper-grain structure,
   not decoration. Inherits currentColor so we can colour-tint by
   section context (oxblood on cream, dusty blue on charcoal).
   ------------------------------------------------------------------ */
.swiss-grid,
.swiss-dots,
.swiss-diagonal {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  color: var(--ink);
}
.swiss-grid {
  background-image:
    linear-gradient(to right, currentColor 1px, transparent 1px),
    linear-gradient(to bottom, currentColor 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.05;
}
.swiss-dots {
  background-image: radial-gradient(circle, currentColor 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: 0.07;
}
.swiss-diagonal {
  background-image: repeating-linear-gradient(
    45deg, currentColor 0, currentColor 1px,
    transparent 1px, transparent 10px);
  opacity: 0.04;
}
/* Dark-section variants — use cream so it's visible on charcoal */
.swiss-grid--dark,
.swiss-dots--dark,
.swiss-diagonal--dark { color: var(--cream); }
.swiss-grid--dark { opacity: 0.06; }
.swiss-dots--dark { opacity: 0.08; }

/* ------------------------------------------------------------------
   3d. SWISS NUMERALS — oversized section numbers as graphic marks
   ------------------------------------------------------------------ */
.swiss-numeral {
  display: block;
  font-family: var(--sans);
  font-weight: 900;
  font-size: clamp(72px, 9vw, 132px);
  line-height: 0.85;
  letter-spacing: -0.03em;
  color: var(--olive-deep);
  margin: 0 0 16px;
  font-feature-settings: "lnum";
}
.swiss-numeral--dark { color: var(--gold); }

/* ------------------------------------------------------------------
   3e. CORNER METADATA — Swiss-style page edge labels
   ------------------------------------------------------------------ */
.corner-meta {
  position: absolute;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  z-index: 3;
  pointer-events: none;
}
.corner-meta--tl { top: 100px; left: clamp(20px, 4vw, 64px); }
.corner-meta--tr { top: 100px; right: clamp(20px, 4vw, 64px); text-align: right; }
.corner-meta--bl { bottom: 36px; left: clamp(20px, 4vw, 64px); }
.corner-meta--br { bottom: 36px; right: clamp(20px, 4vw, 64px); text-align: right; }
.corner-meta--dark { color: rgba(227, 223, 206, 0.5); }
.corner-meta__line {
  display: block;
  width: 32px; height: 1px;
  background: currentColor;
  opacity: 0.5;
  margin: 6px 0;
}
@media (max-width: 640px) {
  .corner-meta { display: none; }
}

/* ------------------------------------------------------------------
   4. GLOBAL GRAIN OVERLAY
   ------------------------------------------------------------------ */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.18;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.10  0 0 0 0 0.035  0 0 0 0 0.02  0 0 0 0.85 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}
/* Grain is static — no animation */

/* ------------------------------------------------------------------
   5. NAV
   ------------------------------------------------------------------ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 22px var(--page-pad-x);
  color: var(--cream);
  transition: background .5s var(--ease), color .5s var(--ease), padding .5s var(--ease), border-color .5s var(--ease), backdrop-filter .5s var(--ease);
  border-bottom: 1px solid transparent;
}
/* Over the hero — float on the image */
.nav:not(.is-scrolled) {
  mix-blend-mode: difference;
}
/* After the hero — solid cream nav, dark text */
.nav.is-scrolled {
  background: rgba(227, 223, 206, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  color: var(--ink);
  padding-top: 16px;
  padding-bottom: 16px;
  border-bottom-color: var(--rule);
}
.nav.is-scrolled .nav__mark-rule { background: var(--ink-soft); opacity: 0.6; }
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav__mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.nav.is-scrolled .nav__mark { color: var(--ink); }
.nav__mark-initial {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.nav__mark-rule {
  width: 22px; height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.nav__mark-name {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
}
.nav__links {
  display: flex;
  gap: 28px;
}
.nav__links a {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease-out);
}
.nav__links a:hover::after { transform: scaleX(1); }

@media (max-width: 720px) {
  .nav__mark-name, .nav__mark-rule { display: none; }
  .nav__links { gap: 14px; }
  .nav__links a { font-size: 9px; letter-spacing: 0.16em; }
}
@media (max-width: 440px) {
  .nav__links { gap: 10px; }
  .nav__links a { font-size: 8.5px; letter-spacing: 0.14em; }
}

/* ==================================================================
   6. HERO
   ================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: var(--charcoal);
  display: flex;
  align-items: flex-end;
  padding: 0 var(--page-pad-x) clamp(60px, 9vw, 120px);
  color: var(--cream);
}
.hero__bg {
  position: absolute;
  inset: -10%;
  will-change: transform;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter:
    sepia(0.35)
    saturate(0.7)
    contrast(0.95)
    brightness(0.78)
    hue-rotate(-8deg);
}
.hero__veil {
  position: absolute;
  inset: 0;
  /* No image behind — give the solid charcoal subtle depth with a
     warm-to-deep vertical wash plus a soft radial vignette */
  background:
    radial-gradient(ellipse 90% 70% at 40% 35%,
      rgba(76, 5, 12, 0.18) 0%,
      rgba(26, 9, 5, 0) 60%),
    linear-gradient(180deg,
      rgba(42, 22, 18, 0.4) 0%,
      rgba(26, 9, 5, 0) 35%,
      rgba(26, 9, 5, 0) 70%,
      rgba(10, 4, 2, 0.6) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
}

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
  opacity: 0;
  animation: hero-fade-up 1.1s var(--ease-out) 0.4s forwards;
}
.hero__label .rule { background: rgba(227, 223, 206, 0.55); }
.hero__label .caps { color: var(--cream); opacity: 0.85; }

.hero__headline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 9vw, 132px);
  line-height: 0.95;
  letter-spacing: -0.018em;
  margin: 0 0 32px;
  max-width: 16ch;
  color: var(--gold);              /* full name in dusty blue */
  opacity: 0;
  transform: scale(0.96);
  animation: hero-headline 1.5s var(--ease-out) 0.6s forwards;
}
.hero__headline em {
  font-style: italic;
  /* same blue as the rest of the headline — italic carries the rhythm */
  color: inherit;
}

.hero__sub {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(16px, 1.6vw, 22px);
  line-height: 1.5;
  max-width: 54ch;
  color: rgba(227, 223, 206, 0.82);
  margin: 0 0 56px;
  opacity: 0;
  animation: hero-fade-up 1.1s var(--ease-out) 0.95s forwards;
}

.hero__cue {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--cream);
  opacity: 0;
  animation: hero-fade-up 1.1s var(--ease-out) 1.2s forwards;
}
.hero__cue .caps { color: var(--cream); opacity: 0.75; }
.hero__cue-line {
  display: inline-block;
  width: 1px;
  height: 60px;
  background: linear-gradient(180deg, rgba(227, 223, 206, 0.6), rgba(227, 223, 206, 0));
  position: relative;
  overflow: hidden;
}
.hero__cue-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--cream);
  animation: cue-pulse 2.4s var(--ease) infinite;
}
@keyframes cue-pulse {
  0%   { transform: translateY(-100%); opacity: 0.7; }
  60%  { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(100%); opacity: 0; }
}

@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes hero-headline {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

/* ==================================================================
   7. ABOUT
   ================================================================== */
.about {
  padding: var(--section-pad-y) var(--page-pad-x);
  background: var(--cream);
}
.about__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  /* Swiss principle — more dramatic asymmetric split */
  grid-template-columns: minmax(0, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(40px, 6vw, 120px);
  align-items: start;
  position: relative;
}
.about__image-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--cream-deep);
}
.about__image-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* Reference look: warm desaturated photo with bumped contrast.
     Less aggressive than full B&W so the portrait reads against cream. */
  filter:
    grayscale(0.45)
    sepia(0.20)
    contrast(1.12)
    brightness(0.88);
}
.about__image-caption {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-size: 10px;
}

.about__text { padding-top: 6px; }

.about__headline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.4vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.012em;
  margin: 0 0 40px;
  color: var(--ink);
  max-width: 22ch;
}
.about__headline em {
  font-style: italic;
  color: var(--olive-deep);
}

.about__body p {
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.7;
  margin: 0 0 18px;
  color: var(--ink);
  max-width: 62ch;
}
.about__body .lede {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 1.7vw, 26px);
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 28px;
  max-width: 28ch;
}
.about__close { margin-top: 28px !important; }
.about__close .script { font-size: 1.18em; }

@media (max-width: 880px) {
  .about__inner { grid-template-columns: 1fr; gap: 48px; }
  .about__image-frame { max-width: 460px; }
}

/* ==================================================================
   8. WORK
   ================================================================== */
.work {
  padding: var(--section-pad-y) var(--page-pad-x);
  background: var(--cream);
  border-top: 2px solid var(--ink);
}
.work__head {
  max-width: var(--container);
  margin: 0 auto clamp(48px, 6vw, 88px);
}
.work__headline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.4vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.012em;
  margin: 0;
  color: var(--ink);
  max-width: 18ch;
}
.work__headline em {
  font-style: italic;
  color: var(--olive-deep);
}

.work__grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  grid-template-rows: auto auto auto;
  gap: 24px;
}
.card--tall  { grid-row: 1 / 3; grid-column: 1; }
.card--wide:nth-of-type(2) { grid-row: 1; grid-column: 2; }
.card--wide:nth-of-type(3) { grid-row: 2; grid-column: 2; }
.card--full  { grid-row: 3; grid-column: 1 / -1; }

@media (max-width: 980px) {
  .work__grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .card--tall, .card--wide:nth-of-type(2), .card--wide:nth-of-type(3), .card--full {
    grid-column: 1; grid-row: auto;
  }
}

/* --- Card --- */
.card {
  position: relative;
  background: var(--cream-deep);
  overflow: hidden;
  /* Swiss principle — visible structural border */
  border: 2px solid var(--ink);
  transition: border-color .25s var(--ease);
}
.card:hover { border-color: var(--olive-deep); }
.card__inner {
  display: block;
  width: 100%;
  position: relative;
  text-align: left;
  color: var(--cream);
}
.card--tall .card__inner  { aspect-ratio: 4 / 5; min-height: 560px; }
.card--wide .card__inner  { aspect-ratio: 16 / 11; min-height: 320px; }
.card--full .card__inner  { aspect-ratio: 21 / 9; min-height: 420px; }
.card--full .card__title  { font-size: clamp(40px, 5.4vw, 78px); max-width: 18ch; }

.card__image {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.card__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.0);
  transition: transform 1.6s var(--ease-out), filter .8s var(--ease-out);
  filter:
    grayscale(0.65)
    sepia(0.20)
    contrast(1.05)
    brightness(0.78);
}
.card:hover .card__image img { filter: grayscale(0.45) sepia(0.18) contrast(1.05) brightness(0.85); }
.card:hover .card__image img { transform: scale(1.06); }
.card__image-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(26,9,5,0.22) 0%,
    rgba(26,9,5,0.10) 40%,
    rgba(26,9,5,0.85) 100%);
  transition: background .6s var(--ease-out);
}
.card:hover .card__image-veil {
  background: linear-gradient(180deg,
    rgba(26,9,5,0.30) 0%,
    rgba(26,9,5,0.18) 40%,
    rgba(26,9,5,0.90) 100%);
}

.card__head {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(28px, 3vw, 44px);
  z-index: 2;
}
.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(227,223,206,0.78);
  margin-bottom: 14px;
}
.card__meta-sep { opacity: 0.5; }
.card__title {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--cream);
}
.card--tall .card__title { font-size: clamp(36px, 4.6vw, 64px); }
.card--wide .card__title { font-size: clamp(28px, 3vw, 42px); }
.card__title em {
  font-style: italic;
  color: var(--gold);
}

.card__cue {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  color: var(--cream);
  opacity: 0.85;
  position: relative;
  height: 14px;
}
.card__cue-text {
  position: absolute;
  left: 0; top: 0;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.card__cue-text--open { opacity: 0; transform: translateY(6px); }
.card.is-open .card__cue-text--default { opacity: 0; transform: translateY(-6px); }
.card.is-open .card__cue-text--open { opacity: 1; transform: translateY(0); }
.card__cue-mark {
  margin-left: auto;
  width: 28px; height: 1px;
  background: currentColor;
  position: relative;
}
.card__cue-mark::after {
  content: '';
  position: absolute;
  right: 0; top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
  transition: transform .4s var(--ease);
}
.card.is-open .card__cue-mark::after { transform: rotate(135deg); }

/* expand body */
.card__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .7s var(--ease-out);
  background: var(--cream);
  color: var(--ink);
  border-top: 1px solid var(--rule);
}
.card.is-open .card__body { max-height: 1400px; }
.card__body-inner {
  padding: clamp(28px, 3vw, 48px);
}
.card__body-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--ink-soft);
}
.card__body-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.15;
  margin: 0 0 22px;
  color: var(--ink);
  letter-spacing: -0.008em;
  max-width: 34ch;
}
.card__body-inner p {
  font-size: clamp(14px, 0.98vw, 16px);
  line-height: 1.7;
  margin: 0 0 14px;
  max-width: 62ch;
}
.card__body-inner p em {
  font-style: italic;
  color: var(--olive-deep);
}

/* ==================================================================
   9. CAPABILITIES (marquee)
   ================================================================== */
.capabilities {
  padding: clamp(90px, 12vw, 160px) 0;
  background: var(--cream);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  overflow: hidden;
}
.marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
}
.marquee::before,
.marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 12vw;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--cream), transparent); }
.marquee::after  { right: 0; background: linear-gradient(270deg, var(--cream), transparent); }

.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 48px;
  white-space: nowrap;
  animation: marquee 48s linear infinite;
  will-change: transform;
}
.marquee__item {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(38px, 5.5vw, 84px);
  letter-spacing: -0.01em;
  color: var(--ink);
}
.marquee__dot {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 28px);
  color: var(--gold-deep);
  opacity: 0.7;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ==================================================================
   9b. OFFERS — "How I Work" section, between capabilities & contact
   ================================================================== */
.offers {
  background: var(--cream);
  padding: var(--section-pad-y) var(--page-pad-x);
  border-top: 2px solid var(--ink);
}
.offers__inner {
  max-width: var(--container);
  margin: 0 auto;
}
.offers__head {
  max-width: 720px;
  margin: 0 auto clamp(48px, 6vw, 80px);
}
.offers__intro {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(20px, 1.7vw, 26px);
  line-height: 1.45;
  color: var(--ink);
  max-width: 44ch;
  margin: 0;
}

.offers__list {
  display: flex;
  flex-direction: column;
}

.offer {
  display: grid;
  /* Swiss principle — push asymmetric ratio further */
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(32px, 5vw, 80px);
  padding: clamp(40px, 5vw, 64px) 0;
  border-top: 2px solid var(--ink);
  transition: background .25s var(--ease);
}
.offer:last-child { border-bottom: 2px solid var(--ink); }
.offer:hover { background: rgba(76, 5, 12, 0.04); }

@media (max-width: 880px) {
  .offer { grid-template-columns: 1fr; gap: 20px; }
}

.offer__head { padding-top: 6px; }

.offer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--ink-soft);
}
.offer__meta-sep { opacity: 0.5; }
.offer__meta-tag {
  margin-left: 4px;
  padding: 3px 10px;
  border: 1px solid var(--olive-deep);
  border-radius: 100px;
  color: var(--olive-deep);
  font-size: 9px;
  letter-spacing: 0.16em;
}

.offer__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 2.8vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.008em;
  margin: 0;
  color: var(--ink);
  max-width: 22ch;
}
.offer__title em {
  font-style: italic;
  color: var(--olive-deep);
}

.offer__detail p {
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.7;
  margin: 0 0 16px;
  color: var(--ink);
  max-width: 60ch;
}
.offer__note {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-soft);
  margin-top: 8px !important;
}

.offer__cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  font-family: var(--sans);
  font-size: 11px;
  /* Swiss principle — heavier weight on uppercase */
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 10px 18px;
  border: 2px solid var(--ink);
  transition: background .2s var(--ease), color .2s var(--ease);
}
/* Swiss principle — full background inversion on hover */
.offer__cta:hover {
  background: var(--ink);
  color: var(--cream);
}
.offer__cta-arrow {
  font-size: 14px;
  transition: transform .2s var(--ease);
}
.offer__cta:hover .offer__cta-arrow { transform: translateX(6px); }

/* Featured (Offer 04 — audit) */
.offer--featured {
  background: var(--cream-soft);
  margin: 24px calc(-1 * clamp(20px, 4vw, 48px)) 0;
  padding: clamp(40px, 5vw, 64px) clamp(20px, 4vw, 48px);
  border: 1px solid var(--rule);
}
.offer__cta--featured {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  border: 0;
  padding: 0;
  margin-top: 24px;
  text-transform: none;
  letter-spacing: 0;
}
.offer__cta--featured .caps {
  color: var(--ink-soft);
  font-size: 10px;
}
.offer__cta-email {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1;
  color: var(--ink);
  transition: color .35s var(--ease);
}
.offer__cta--featured:hover { color: var(--ink); border: 0; }
.offer__cta--featured:hover .offer__cta-email { color: var(--olive-deep); }
.offer__cta-subject {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 9px;
}

/* Contact section — small caps audit line below the form.
   Sits with generous breathing room above and below so it never
   collides with the SEND button or the footer line. */
.contact__audit-line {
  margin: clamp(56px, 7vw, 96px) auto 0;
  padding-top: clamp(28px, 3vw, 40px);
  border-top: 1px solid rgba(227, 223, 206, 0.12);
  font-size: 10px;
  color: rgba(227, 223, 206, 0.55);
  letter-spacing: 0.22em;
  text-align: center;
  max-width: 60ch;
  line-height: 1.85;
}
.contact__audit-line a {
  color: var(--gold);
  transition: color .3s var(--ease);
}
.contact__audit-line a:hover { color: var(--cream); }
.contact__audit-line .contact__foot-sep { opacity: 0.4; margin: 0 6px; }

/* ==================================================================
   10. CONTACT
   ================================================================== */
.contact {
  background: var(--charcoal);
  color: var(--cream);
  padding: var(--section-pad-y) var(--page-pad-x) 0;
  position: relative;
}
.contact__inner {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  padding-bottom: clamp(60px, 8vw, 100px);
}
.contact__inner .swiss-numeral { text-align: center; }
.contact__inner .section-hand {
  transform: rotate(-2deg);
  text-align: center;
  /* center the rotated handwritten label as a block-level item */
  margin-left: auto;
  margin-right: auto;
  display: inline-block;
}
.contact__inner .section-label { justify-content: center; }

.contact__headline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 92px);
  line-height: 1.0;
  letter-spacing: -0.018em;
  margin: 0 0 28px;
  color: var(--cream);
}
.contact__headline em {
  font-style: italic;
  color: var(--gold);
}

.contact__sub {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.5;
  color: rgba(227, 223, 206, 0.72);
  max-width: 44ch;
  margin: 0 auto 56px;
}
.contact__sub em {
  /* Subtitle is already italic — em flips upright + dusty-blue accent
     so the emphasized word actually reads as emphasized. */
  font-style: normal;
  font-weight: 500;
  color: var(--gold);
}

/* form */
.contact__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 36px;
  max-width: 640px;
  margin: 0 auto 24px;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.contact__form.is-sent {
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
}
@media (max-width: 640px) {
  .contact__form { grid-template-columns: 1fr; }
}
.field {
  position: relative;
  text-align: left;
}
.field label {
  display: block;
  margin-bottom: 10px;
  color: rgba(227, 223, 206, 0.55);
  font-size: 10px;
}
.field input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(227, 223, 206, 0.25);
  padding: 6px 0 12px;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.2;
  outline: none;
  transition: border-color .3s var(--ease);
}
.field input:focus {
  border-color: var(--gold);
}
.field__line { display: none; } /* reserved */

.contact__submit {
  grid-column: 1 / -1;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 32px;
  margin-top: 16px;
  border: 1px solid rgba(227, 223, 206, 0.35);
  border-radius: 100px;
  color: var(--cream);
  transition: background .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease), transform .4s var(--ease);
}
.contact__submit:hover {
  background: var(--cream);
  color: var(--charcoal);
  border-color: var(--cream);
}
.contact__submit-arrow {
  font-size: 14px;
  transition: transform .4s var(--ease);
}
.contact__submit:hover .contact__submit-arrow { transform: translateX(4px); }

/* thanks message — sits below the (faded) form. No overlap with audit-line
   or footer below it because it takes its own flow space. */
.contact__thanks {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.4;
  color: var(--cream);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .6s var(--ease) .35s, transform .6s var(--ease) .35s;
  margin: 28px 0 0;
  min-height: 0;
  pointer-events: none;
}
.contact__thanks.is-shown { pointer-events: auto; }
.contact__thanks.is-shown {
  opacity: 1;
  transform: translateY(0);
}

.contact__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 96px;
  color: rgba(227, 223, 206, 0.55);
}
.contact__foot a:hover { color: var(--gold); }
.contact__foot-sep { opacity: 0.5; }

.footer {
  max-width: var(--container);
  margin: 0 auto;
  padding: 36px var(--page-pad-x);
  border-top: 1px solid rgba(227, 223, 206, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: rgba(227, 223, 206, 0.4);
}
.footer__sep { display: none; }
@media (max-width: 640px) {
  .footer { justify-content: center; text-align: center; }
}

/* ==================================================================
   11. REVEAL — scroll-in animations (fade + slight slide + blur-to-sharp)
   ================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(10px);
  transition:
    opacity 1.2s var(--ease-out),
    transform 1.2s var(--ease-out),
    filter 1.2s var(--ease-out);
  will-change: transform, filter, opacity;
}
.reveal--left {
  transform: translateX(-36px);
}
.reveal--right {
  transform: translateX(36px);
  transition-delay: 0.18s;
}
.reveal.in-view {
  opacity: 1;
  transform: translate(0, 0);
  filter: blur(0);
}

/* Lighter blur variant — for text-heavy elements where 10px is too soft */
.reveal--soft { filter: blur(6px); }
.reveal--soft.in-view { filter: blur(0); }

/* Word-by-word reveal on big serif headlines.
   JS wraps every word in <span class="word" style="--i:N">.
   Animation fires when the headline (or its reveal parent) enters view. */
[data-words] .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(28px);
  filter: blur(8px);
  transition:
    opacity .9s var(--ease-out),
    transform .9s var(--ease-out),
    filter .9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 65ms);
  will-change: transform, opacity, filter;
}
[data-words].in-view .word,
.in-view [data-words] .word,
[data-words][data-words-ready].is-visible .word {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
/* Preserve em-italic + colour on word spans inside <em> */
[data-words] em .word {
  font-style: italic;
  color: inherit;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
