/* ==========================================================================
   World Web Solutions — classic studio theme
   Ivory paper · deep ink · crimson accent · antique gold hairlines
   ========================================================================== */

:root {
  --paper: #f4efe6;
  --paper-2: #ebe3d4;
  --paper-3: #e0d6c3;
  --ink: #15120f;
  --ink-2: #221d18;
  --ink-soft: #5b544c;
  --accent: #a3191f;
  --accent-2: #c8323a;
  --gold: #b48c55;
  --gold-soft: #d8bf93;
  --line: rgba(21, 18, 15, 0.14);
  --line-light: rgba(244, 239, 230, 0.16);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 64px);
  --max: 1440px;
  --ease: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--accent); color: var(--paper); }

/* Fine paper grain over everything */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 9990;
  pointer-events: none;
  opacity: 0.07;
  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='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-soft);
}
/* Every label reads "—— LABEL ——" */
.eyebrow::before, .eyebrow::after { content: ""; width: 36px; height: 1px; background: currentColor; flex: none; }
@media (max-width: 600px) { .eyebrow { gap: 10px; letter-spacing: .2em; font-size: 11px; } .eyebrow::before, .eyebrow::after { width: 18px; } }
@media (max-width: 440px) { .eb-more { display: none; } }
.dark .eyebrow { color: var(--gold-soft); }

/* Delicate scale: light 300 serif, modest sizes, a breath of tracking */
.display {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: 0.005em;
  margin: 0;
  font-size: clamp(40px, 5.6vw, 92px);
}
.h1 { font-family: var(--serif); font-weight: 300; line-height: 1.08; letter-spacing: 0.005em; margin: 0; font-size: clamp(36px, 4.4vw, 72px); }
.h2 { font-family: var(--serif); font-weight: 300; line-height: 1.12; letter-spacing: 0.005em; margin: 0; font-size: clamp(30px, 3.4vw, 54px); }
.h3 { font-family: var(--serif); font-weight: 400; line-height: 1.2; margin: 0; font-size: clamp(22px, 1.9vw, 30px); }
em, .it { font-style: italic; }
.accent { color: var(--accent); }
.gold { color: var(--gold); }
.lead { font-size: clamp(16px, 1.25vw, 19px); font-weight: 400; line-height: 1.75; color: var(--ink-soft); max-width: 46ch; }
.dark .lead { color: rgba(244, 239, 230, 0.72); }

/* Split-text masks (built by JS) */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
[data-split] .wi { display: inline-block; will-change: transform; }
.js [data-split] .wi { transform: translateY(110%); }
.js [data-fade] { opacity: 0; transform: translateY(40px); }

/* ---------- Sections ---------- */
section { position: relative; }
.pad { padding: clamp(96px, 14vw, 200px) 0; }
.dark { background: var(--ink); color: var(--paper); }
.paper-2 { background: var(--paper-2); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.dark .rule { background: var(--line-light); }

.section-head { display: grid; grid-template-columns: 1fr; gap: 28px; margin-bottom: clamp(48px, 7vw, 110px); }
@media (min-width: 900px) {
  .section-head { grid-template-columns: 5fr 4fr; align-items: end; }
  /* Single column: title, then description directly beneath */
  .section-head.section-head--stack { grid-template-columns: 1fr; gap: 20px; }
  .section-head--stack .lead { max-width: none; font-size: clamp(16px, 1.12vw, 18px); }
}

/* ---------- Preloader & page curtain ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
}
.preloader__inner { text-align: center; }
.preloader__mark {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(52px, 8vw, 110px);
  font-style: italic;
  line-height: 1;
  letter-spacing: -0.03em;
}
.preloader__mark span { color: var(--accent-2); }
.preloader__line { width: min(260px, 60vw); height: 1px; margin: 28px auto 18px; background: var(--line-light); overflow: hidden; }
.preloader__bar { height: 100%; width: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0); }
.preloader__count { font-size: 12px; letter-spacing: 0.3em; color: var(--gold-soft); font-variant-numeric: tabular-nums; }
.preloader__tag { position: absolute; bottom: 32px; left: 0; right: 0; text-align: center; font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: rgba(244,239,230,.45); }

.curtain { position: fixed; inset: 0; z-index: 9998; pointer-events: none; }
.curtain span { position: absolute; inset: 0; transform: translateY(100%); }
.curtain span:nth-child(1) { background: var(--accent); }
.curtain span:nth-child(2) { background: var(--ink); }

/* ---------- Cursor ---------- */
.cursor, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 9995; pointer-events: none; border-radius: 50%; }
.cursor { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--accent); }
.cursor-ring {
  width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border: 1px solid rgba(163, 25, 31, 0.55);
  display: grid; place-items: center;
  transition: width .45s var(--ease-out), height .45s var(--ease-out), margin .45s var(--ease-out), background-color .35s, border-color .35s;
}
.cursor-ring__label { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--paper); opacity: 0; transition: opacity .3s; }
.cursor-ring.is-link { width: 70px; height: 70px; margin: -35px 0 0 -35px; background: rgba(163, 25, 31, 0.1); }
.cursor-ring.is-label { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--accent); border-color: var(--accent); }
.cursor-ring.is-label .cursor-ring__label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor, .cursor-ring { display: none; } }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  padding: 28px 0;
  transition: transform .6s var(--ease), background-color .4s, padding .4s, color .4s;
  color: var(--paper);
}
.header.is-scrolled { background: rgba(244, 239, 230, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding: 16px 0; color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.header.is-hidden { transform: translateY(-110%); }
.header.on-light { color: var(--ink); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 12px; line-height: 1; }
/* Original logo file (black + red on transparent). On dark grounds the black turns white via #logo-white. */
.logo__img { height: 58px; width: auto; transition: height .4s; filter: url(#logo-white); }
.header.is-scrolled .logo__img { height: 50px; filter: none; }
.menu-open .header .logo__img { filter: url(#logo-white); }
.footer .logo__img { height: 72px; filter: url(#logo-white); }
@media (max-width: 600px) { .logo__img, .header.is-scrolled .logo__img { height: 44px; } }
.logo__mark {
  width: 38px; height: 38px; flex: none;
  border: 1.5px solid currentColor;
  display: grid; place-items: center;
  font-family: var(--serif); font-style: italic; font-size: 22px; font-weight: 600;
  position: relative;
}
.logo__mark::after { content: ""; position: absolute; top: -5px; right: -5px; width: 10px; height: 10px; background: var(--accent); }
.logo__text { font-family: var(--serif); font-size: 21px; letter-spacing: 0.01em; }
.logo__text small { display: block; font-family: var(--sans); font-size: 9px; letter-spacing: 0.34em; text-transform: uppercase; opacity: .7; margin-top: 4px; }

.nav { display: none; gap: 40px; align-items: center; }
.nav a { position: relative; font-size: 14px; letter-spacing: 0.04em; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav a.is-active { color: var(--accent-2); }
.header.is-scrolled .nav a.is-active, .header.on-light .nav a.is-active { color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 26px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent); border-radius: inherit; transform: translateY(101%); transition: transform .6s var(--ease); }
.btn:hover { color: var(--paper); border-color: var(--accent); }
.btn:hover::before { transform: translateY(0); }
.btn--solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.dark .btn--solid { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn svg { width: 14px; height: 14px; }

.header__cta { display: none; }
.burger { width: 44px; height: 44px; display: grid; place-items: center; }
.burger span { display: block; width: 26px; height: 1.5px; background: currentColor; position: relative; transition: transform .5s var(--ease); }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 100%; height: 100%; background: currentColor; transition: transform .5s var(--ease); }
.burger span::before { top: -7px; } .burger span::after { top: 7px; }
.menu-open .burger span { background: transparent; }
.menu-open .burger span::before { transform: translateY(7px) rotate(45deg); }
.menu-open .burger span::after { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 960px) {
  .nav { display: flex; }
  .header__cta { display: inline-flex; }
  .burger { display: none; }
}

.mobile-menu {
  position: fixed; inset: 0; z-index: 850;
  background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; justify-content: center;
  padding: 100px var(--gutter) 40px;
  clip-path: circle(0% at calc(100% - 38px) 44px);
  transition: clip-path .9s var(--ease);
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 38px) 44px); }
.menu-open .header { color: var(--paper); background: transparent; box-shadow: none; backdrop-filter: none; }
.mobile-menu a.mm-link { font-family: var(--serif); font-weight: 300; font-size: clamp(38px, 10vw, 60px); line-height: 1.15; display: block; }
.mobile-menu a.mm-link em { color: var(--accent-2); }
.mobile-menu__foot { margin-top: 48px; font-size: 14px; color: rgba(244,239,230,.6); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  background: var(--ink); color: var(--paper);
  overflow: hidden;
  padding: 170px 0 clamp(40px, 6vw, 80px);
}
.hero canvas.scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse at 70% 40%, transparent 0%, rgba(21,18,15,.35) 60%, rgba(21,18,15,.92) 100%),
    linear-gradient(to top, rgba(21,18,15,.9), transparent 45%);
}
.hero .wrap { position: relative; z-index: 2; text-shadow: 0 2px 18px rgba(21, 18, 15, .85); }
/* The hero is dark but isn't a .dark section, so give its text light colours explicitly */
.hero .lead { color: rgba(244, 239, 230, .88); }
.hero .eyebrow { color: var(--gold-soft); }
/* Hero label: a bold crimson dot with a soft pulse instead of the hairlines */
.hero .eyebrow::before { width: 9px; height: 9px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 0 rgba(200, 50, 58, .55); animation: dot-pulse 2.4s ease-out infinite; }
.hero .eyebrow::after { display: none; }
@keyframes dot-pulse { 0% { box-shadow: 0 0 0 0 rgba(200, 50, 58, .55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(200, 50, 58, 0); } }
/* Wide screens: hero text hugs the left so the 3D art on the right stays clear */
@media (min-width: 900px) { .hero .wrap { max-width: none; padding-left: clamp(48px, 7vw, 140px); padding-right: clamp(48px, 7vw, 140px); } .hero .lead { max-width: min(46ch, 48%); } }
.hero__kicker { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.hero__title em { color: var(--gold-soft); }
/* Coordinates label: a touch larger than the studio label */
.hero__kicker .eyebrow + .eyebrow { font-size: 15px; letter-spacing: .24em; gap: 14px; color: var(--paper); }
.hero__kicker .eyebrow + .eyebrow::before { width: 11px; height: 11px; }
/* Phones: stack the two labels, coordinates on their own line */
@media (max-width: 600px) {
  .hero__kicker { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero__kicker .eyebrow + .eyebrow { font-size: 12px; letter-spacing: .2em; gap: 10px; }
  .hero__kicker .eyebrow + .eyebrow::before { width: 9px; height: 9px; }
}
.hero__title .accent { color: var(--accent-2); }
.hero__foot { display: grid; gap: 32px; margin-top: clamp(32px, 5vw, 64px); align-items: end; }
@media (min-width: 900px) { .hero__foot { grid-template-columns: 1fr auto; } }
.scroll-cue { display: inline-flex; align-items: center; gap: 14px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: rgba(244,239,230,.6); }
.scroll-cue--corner { position: absolute; z-index: 3; right: clamp(16px, 2.6vw, 40px); bottom: clamp(20px, 3vw, 40px); }
@media (max-width: 900px) { .hero { padding-bottom: 120px; } }
.scroll-cue i { width: 1px; height: 56px; background: rgba(244,239,230,.2); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--gold); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }

.hero--page { min-height: 88vh; min-height: 88svh; }
.hero__meta { display: flex; gap: clamp(24px, 5vw, 80px); flex-wrap: wrap; font-size: 13px; color: rgba(244,239,230,.6); }
.hero__meta b { display: block; color: var(--paper); font-weight: 500; font-size: 15px; margin-top: 4px; }

/* ---------- Ornament ---------- */
.ornament { display: flex; align-items: center; justify-content: center; gap: 18px; color: var(--gold); margin: 0 auto; }
.ornament::before, .ornament::after { content: ""; height: 1px; width: min(160px, 25vw); background: linear-gradient(to var(--dir, right), transparent, currentColor); }
.ornament::after { --dir: left; }
.ornament svg { width: 22px; height: 22px; }

/* ---------- Manifesto (scroll-lit words) ---------- */
.belief__grid { display: grid; gap: 48px; align-items: start; }
@media (min-width: 900px) { .belief__grid { grid-template-columns: 4fr 8fr; gap: clamp(48px, 7vw, 120px); } }
/* The seal sits centred in its column and vertically against the paragraph */
.belief__aside { align-self: center; justify-self: center; }
/* "—— Our belief ——" with the seal centred beneath it; on mobile the pair centres on the page */
.belief__aside { display: flex; flex-direction: column; align-items: center; gap: 32px; width: fit-content; }
@media (max-width: 899px) { .belief__aside { margin: 0 auto; } }

.seal { width: clamp(190px, 17.5vw, 330px); aspect-ratio: 1; position: relative; color: var(--gold); }
.seal::before { content: ""; position: absolute; inset: 14%; border: 1px solid var(--line); border-radius: 50%; }
.seal__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 26s linear infinite; }
.seal__core { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.seal__core b { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(62px, 5.6vw, 108px); line-height: .9; color: var(--accent); }
.seal__core span { display: block; max-width: 8.5em; margin: 8px auto 0; font-size: clamp(9px, .72vw, 13px); line-height: 1.5; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); }

.manifesto p {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(23px, 2.2vw, 36px);
  line-height: 1.45;
  letter-spacing: 0.003em;
  margin: 0;
}
.manifesto .mw { opacity: .22; transition: opacity .2s linear; }
.manifesto em { color: var(--accent); }

.manifesto .belief__sign { display: flex; align-items: center; gap: 16px; margin-top: clamp(32px, 4vw, 56px); font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.3; color: var(--ink-soft); }
.belief__sign > span:first-child { width: 48px; height: 1px; background: var(--accent); flex: none; }
/* Red dot on the "i", echoing the logo: the font's own i is painted red above the x-height
   (the dot) and in the text colour below (the stem), so the dot keeps its natural size and place */
.i-dot { color: transparent; background: linear-gradient(to bottom, var(--accent) 0 var(--i-cut, 41%), var(--ink-soft) var(--i-cut, 41%)); -webkit-background-clip: text; background-clip: text; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 40px 24px 40px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .stat { border-bottom: 0; border-right: 1px solid var(--line); padding-left: 28px; } .stat:first-child { padding-left: 0; } .stat:last-child { border-right: 0; } }
.stat__num { font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 4.8vw, 76px); line-height: 1; letter-spacing: -0.01em; }
.stat__num sup { font-size: .4em; color: var(--accent); vertical-align: top; margin-left: 4px; }
.stat__label { margin-top: 14px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- Horizontal services ---------- */
.hscroll { overflow: hidden; }
.hscroll__track { display: flex; gap: clamp(20px, 2.5vw, 40px); padding: 0 var(--gutter); width: max-content; will-change: transform; }
.hcard {
  width: min(78vw, 520px);
  min-height: min(68vh, 600px);
  flex: none;
  padding: clamp(28px, 3vw, 48px);
  border: 1px solid var(--line-light);
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, rgba(255,255,255,.04), rgba(255,255,255,0));
  transform-style: preserve-3d;
}
.hcard__num { font-family: var(--serif); font-style: italic; font-size: clamp(72px, 8vw, 130px); font-weight: 300; line-height: .8; color: transparent; -webkit-text-stroke: 1px rgba(216,191,147,.5); }
.hcard h3 { margin-top: auto; }
.hcard p { color: rgba(244,239,230,.66); margin: 16px 0 24px; max-width: 38ch; }
.hcard ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hcard li { font-size: 12px; letter-spacing: .06em; padding: 6px 12px; border: 1px solid var(--line-light); border-radius: 999px; color: rgba(244,239,230,.75); }
.hcard__art { position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; opacity: .55; pointer-events: none; }
a.hcard { color: inherit; transition: border-color .5s, background-color .5s; }
a.hcard:hover { border-color: rgba(216,191,147,.45); background-color: rgba(255,255,255,.03); }
a.hcard:hover .hcard__num { -webkit-text-stroke-color: var(--gold-soft); }
.hcard--intro { border: 0; background: none; justify-content: center; width: min(86vw, 560px); }
@media (max-width: 899px) {
  .hscroll__track { flex-direction: column; width: auto; }
  .hcard, .hcard--intro { width: 100%; min-height: 0; }
  .hcard__num { font-size: 96px; margin-bottom: 40px; }
}

/* ---------- 3D tilt ---------- */
[data-tilt] { transform-style: preserve-3d; transition: transform .6s var(--ease-out); will-change: transform; }
[data-tilt] .tilt-pop { transform: translateZ(50px); }
.tilt-glare { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.22), transparent 55%); opacity: 0; transition: opacity .4s; mix-blend-mode: soft-light; }
[data-tilt]:hover .tilt-glare { opacity: 1; }

/* ---------- Process (pinned) ---------- */
.process { display: grid; gap: 48px; }
.process__dial { width: min(100%, 420px); aspect-ratio: 1; margin: 0 auto; position: relative; }
/* Desktop: the whole section is pinned (JS) while steps 1–5 slide through a window beside the dial */
@media (min-width: 900px) {
  .process-section { padding: 130px 0 70px; }
  .process-section .section-head { margin-bottom: clamp(28px, 4vh, 48px); }
  .process { grid-template-columns: 5fr 6fr; gap: 80px; align-items: center; }
  .process__dial { width: min(100%, 400px, 50vh); margin-left: 0; }
  .process__window { height: min(400px, 50vh); overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent); mask-image: linear-gradient(to bottom, #000 78%, transparent); }
  .process__list { will-change: transform; }
}
.process__dial svg { width: 100%; height: 100%; overflow: visible; }
.process__dial .dial-num { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-weight: 300; font-size: clamp(64px, 6.5vw, 104px); font-style: italic; color: var(--accent); }
.step { padding: 44px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 64px 1fr; gap: 20px; opacity: .3; transition: opacity .6s; }
.step.is-on { opacity: 1; }
.step__n { font-family: var(--serif); font-style: italic; font-size: 28px; color: var(--accent); }
.step p { margin: 14px 0 0; color: var(--ink-soft); max-width: 48ch; }

/* ---------- Artists gallery: 3D ring ---------- */
.ring-stage { height: clamp(460px, 62vw, 720px); perspective: 1600px; position: relative; overflow: hidden; display: grid; place-items: center; cursor: grab; touch-action: pan-y; }
.ring-stage:active { cursor: grabbing; }
.ring { position: relative; width: clamp(200px, 22vw, 300px); height: clamp(280px, 30vw, 400px); transform-style: preserve-3d; }
.ring__item {
  position: absolute; inset: 0;
  border-radius: 4px; overflow: hidden;
  backface-visibility: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 22px;
  color: var(--paper);
}
.ring__item::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,8,6,.8), transparent 60%); }
.ring__item > * { position: relative; }
.ring__item svg.art { position: absolute; inset: 0; width: 100%; height: 100%; }
.ring__item b { font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.05; }
.ring__item small { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 8px; }
/* Atelier card drawings: each craft has its own gentle loop (classes an-* inside .art) */
.art .an-spin, .art .an-meridian, .art .an-fold-l, .art .an-fold-r { transform-box: view-box; }
.art .an-breathe, .art .an-pulse, .art .an-focus, .art .an-star, .art .an-rotor, .art .an-pop, .art .an-bar { transform-box: fill-box; transform-origin: center; }
.art .an-grow, .art .an-progress { transform-box: fill-box; transform-origin: left center; }
.art .an-bar { transform-origin: center bottom; animation: art-bar 2.4s ease-in-out infinite; }
.art .an-spin { animation: spin 14s linear infinite; }
.art .an-breathe { animation: art-breathe 4s ease-in-out infinite; }
.art .an-draw { stroke-dasharray: 1; animation: art-draw 5s ease-in-out infinite; }
.art .an-pulse { animation: art-pulse 2s ease-in-out infinite; }
.art .an-meridian { animation: art-meridian 6s linear infinite; }
.art .an-focus { animation: art-focus 3.2s ease-in-out infinite; }
.art .an-flash { animation: art-flash 3.2s linear infinite; }
.art .an-wave { animation: art-wave 6s linear infinite; }
.art .an-star { animation: art-star 2.6s ease-in-out infinite; }
.art .an-flow { stroke-dasharray: 5 7; animation: art-flow 3s linear infinite; }
.art .an-progress { animation: art-progress 4s ease-in-out infinite; }
.art .an-grow { animation: art-grow 3.6s ease-in-out infinite; }
.art .an-hover { animation: art-hover 3s ease-in-out infinite; }
.art .an-rotor { animation: art-rotor .18s linear infinite alternate; }
.art .an-cone { animation: art-cone 3s ease-in-out infinite; }
.art .an-pop { animation: art-pop 4s ease-in-out infinite; }
.art .an-blink { animation: art-blink 1.6s steps(1) infinite; }
.art .an-fold-l { transform-origin: 118px 0; animation: art-fold 5s ease-in-out infinite; }
.art .an-fold-r { transform-origin: 182px 0; animation: art-fold 5s ease-in-out infinite; }
@keyframes art-breathe { 0%, 100% { transform: scale(1); opacity: .6; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes art-draw { 0% { stroke-dashoffset: 1; } 45%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -1; } }
@keyframes art-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: .55; } }
@keyframes art-meridian { 0% { transform: scaleX(2.4); } 50% { transform: scaleX(0); } 100% { transform: scaleX(-2.4); } }
@keyframes art-focus { 0%, 100% { transform: scale(.84); } 50% { transform: scale(1.04); } }
@keyframes art-flash { 0%, 88%, 100% { opacity: .15; } 90% { opacity: 1; } 94% { opacity: .5; } }
@keyframes art-wave { to { transform: translateX(-300px); } }
@keyframes art-star { 0%, 100% { opacity: .35; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.3); } }
@keyframes art-flow { to { stroke-dashoffset: -48; } }
@keyframes art-progress { 0% { transform: scaleX(0); } 80%, 100% { transform: scaleX(1); } }
@keyframes art-grow { 0% { transform: scaleX(0); } 40%, 85% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes art-bar { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
@keyframes art-hover { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes art-rotor { from { transform: scaleX(1); } to { transform: scaleX(.2); } }
@keyframes art-cone { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@keyframes art-pop { 0%, 8% { transform: scale(0); opacity: 0; } 22%, 86% { transform: scale(1); opacity: 1; } 100% { transform: scale(0); opacity: 0; } }
@keyframes art-blink { 50% { opacity: 0; } }
@keyframes art-fold { 0%, 30%, 100% { transform: scaleX(1); } 60%, 70% { transform: scaleX(.12); } }

.ring-hint { text-align: center; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: rgba(244,239,230,.45); margin-top: 8px; }

/* ---------- Ventures list ---------- */
.ventures { border-top: 1px solid var(--line); }
.venture {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px;
  padding: clamp(28px, 4vw, 52px) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.venture__name { font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 4.8vw, 76px); line-height: 1.05; letter-spacing: 0; transition: transform .8s var(--ease-out), color .5s; }
.venture__name em { color: var(--accent); }
.venture__tag { font-size: 13px; color: var(--ink-soft); max-width: 30ch; text-align: right; }
.venture:hover .venture__name { transform: translateX(clamp(10px, 2vw, 36px)); color: var(--accent); }
.venture__badge { display: inline-block; vertical-align: middle; margin-left: 14px; padding: 6px 12px; border: 1px solid var(--gold); border-radius: 999px; font-family: var(--sans); font-style: normal; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.venture--soon { cursor: default; }
.venture--soon:hover .venture__name { color: inherit; }
.venture__thumb { display: none; }
@media (hover: none) {
  .venture { grid-template-columns: 1fr; }
  .venture__tag { text-align: left; }
  .venture__thumb { display: block; width: 100%; height: auto; border: 1px solid var(--line); box-shadow: 0 24px 50px -30px rgba(21,18,15,.45); }
}

/* Hover preview: a small browser window */
.vf { background: var(--paper); }
.vf__bar { height: 26px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: var(--ink); }
.vf__bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(244,239,230,.25); }
.vf__bar i:first-child { background: var(--accent-2); }
.vf__bar span { margin-left: 10px; flex: 1; font-size: 10px; letter-spacing: .08em; color: rgba(244,239,230,.6); background: rgba(244,239,230,.08); border-radius: 999px; padding: 3px 12px; }
.vf img { display: block; width: 100%; height: auto; aspect-ratio: 640 / 448; object-fit: cover; }
.vf__soon { aspect-ratio: 640 / 448; display: grid; place-content: center; text-align: center; gap: 12px; background: radial-gradient(circle at 50% 40%, var(--paper), var(--paper-3)); }
.vf__soon b { font-family: var(--serif); font-weight: 300; font-size: 34px; }
.vf__soon b em { color: var(--accent); }
.vf__soon span { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }

.venture__float {
  position: fixed; top: 0; left: 0; z-index: 50; pointer-events: none;
  width: 400px; border-radius: 6px; overflow: hidden;
  opacity: 0; transform: translate(-50%, -50%) scale(.6) rotate(-6deg);
  transition: opacity .4s, transform .6s var(--ease-out);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.45);
}
.venture__float.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-3deg); }
.venture__float svg { width: 100%; height: 100%; }
@media (hover: none) { .venture__float { display: none; } }

/* ---------- Testimonials (3D stack) ---------- */
.quotes { position: relative; }
.quotes__stage { position: relative; height: clamp(420px, 44vw, 480px); perspective: 1400px; }
.quote {
  position: absolute; inset: 0;
  max-width: 900px; margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: clamp(28px, 5vw, 64px);
  display: flex; flex-direction: column; justify-content: space-between;
  transform-origin: 50% 100%;
  box-shadow: 0 40px 80px -40px rgba(21,18,15,.35);
}
.quote__mark { font-family: var(--serif); font-weight: 300; font-size: 96px; line-height: .6; color: var(--accent); height: 50px; }
.quote blockquote { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(20px, 2vw, 30px); line-height: 1.45; }
.quote footer { display: flex; align-items: center; gap: 16px; margin-top: 28px; }
.quote__avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: var(--gold-soft); display: grid; place-items: center; font-family: var(--serif); font-style: italic; font-size: 22px; flex: none; }
.quote footer b { display: block; font-weight: 600; }
.quote footer span { font-size: 13px; color: var(--ink-soft); }
.quotes__nav { display: flex; gap: 12px; justify-content: center; margin-top: 40px; align-items: center; }
.quotes__nav button { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background .3s, color .3s; }
.quotes__nav button:hover { background: var(--ink); color: var(--paper); }
.quotes__nav svg { width: 18px; height: 18px; }
.quotes__count { font-family: var(--serif); font-style: italic; font-size: 22px; min-width: 80px; text-align: center; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 0; }
.dark .marquee { border-color: var(--line-light); }
.marquee__track { display: flex; gap: 64px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { font-family: var(--serif); font-weight: 300; font-size: clamp(24px, 2.6vw, 40px); white-space: nowrap; display: inline-flex; align-items: center; gap: 64px; }
.marquee__item::after { content: "✦"; font-size: .45em; color: var(--accent); }
.marquee__item:nth-child(even) { font-style: italic; color: var(--ink-soft); }
.dark .marquee__item:nth-child(even) { color: var(--gold-soft); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Client logos: white backgrounds melt into the paper (multiply), soft grey until hovered */
.clients { padding: clamp(64px, 8vw, 110px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.clients .eyebrow { margin-bottom: clamp(32px, 4vw, 56px); }
.logo-row { overflow: hidden; padding: 12px 0; background: var(--paper); -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.logo-row + .logo-row { margin-top: clamp(8px, 1.4vw, 20px); }
/* The moving track is its own blend group, so it needs the paper colour for multiply to melt the white away */
.logo-row .marquee__track { gap: clamp(20px, 3vw, 48px); animation-duration: 60s; align-items: center; background: var(--paper); }
/* Durations are set per row by JS from the row's length, so all rows move at the same speed */
.logo-row--reverse .marquee__track { animation-direction: reverse; }
.logo-row:hover .marquee__track { animation-play-state: paused; }
/* Uniform tiles: logos come on both light and dark grounds, so each sits in its own card */
.logo-tile { flex: none; width: clamp(96px, 8vw, 136px); aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 24px -18px rgba(21,18,15,.35); transition: transform .8s var(--ease-out), box-shadow .6s; }
.logo-tile img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.02); opacity: .78; transition: filter .6s, opacity .6s; }
.logo-tile:hover { transform: translateY(-6px) scale(1.06); box-shadow: 0 22px 40px -20px rgba(21,18,15,.45); }
.logo-tile:hover img { filter: none; opacity: 1; }

/* ---------- CTA ---------- */
.cta { text-align: center; overflow: hidden; }
.cta .display em { color: var(--accent-2); }
.cta__circle {
  width: clamp(150px, 16vw, 210px); aspect-ratio: 1; border-radius: 50%;
  background: var(--accent); color: var(--paper);
  display: inline-grid; place-items: center;
  margin-top: 56px;
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase; font-weight: 500;
  position: relative;
}
/* Rotating text sits inside the circle, just within its edge */
.cta__circle svg.spin { position: absolute; top: 7%; left: 7%; width: 86%; height: 86%; max-width: none; transform-origin: 50% 50%; animation: spin 18s linear infinite; color: rgba(244, 239, 230, .78); }
@media (max-width: 600px) { .cta__circle { font-size: 10.5px; letter-spacing: .16em; } }
.cta__circle::after { content: ""; position: absolute; inset: 18%; border: 1px solid rgba(244, 239, 230, .22); border-radius: 50%; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--paper); padding: clamp(80px, 10vw, 140px) 0 32px; overflow: hidden; }
.footer__grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer h4 { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-soft); font-weight: 600; margin: 0 0 18px; }
.footer p, .footer a { color: rgba(244,239,230,.72); font-size: 15px; margin: 0; }
.footer a:hover { color: var(--paper); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__big {
  font-family: var(--serif); font-weight: 300; font-size: clamp(52px, 11vw, 190px); line-height: .9; letter-spacing: -0.02em;
  margin: clamp(60px, 8vw, 120px) 0 28px; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(244,239,230,.25);
}
.footer__big em { -webkit-text-stroke: 0; color: var(--accent); }
.footer__bottom { margin-top: clamp(56px, 7vw, 96px); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: rgba(244,239,230,.45); border-top: 1px solid var(--line-light); padding-top: 24px; }
.footer__bottom a { font-size: 13px; color: rgba(244,239,230,.45); }
.socials { display: flex; gap: 12px; margin-top: 24px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-light); display: grid; place-items: center; transition: background .3s, border-color .3s; }
.socials a:hover { background: var(--accent); border-color: var(--accent); }
.socials svg { width: 16px; height: 16px; }

/* ---------- About: story / timeline / flip cards ---------- */
.split { display: grid; gap: 48px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 96px; } }
.dropcap::first-letter { font-family: var(--serif); float: left; font-size: 5.4em; line-height: .8; padding: 8px 14px 0 0; color: var(--accent); }
.prose p { margin: 0 0 22px; color: var(--ink-soft); font-size: 17px; }

.frame3d { aspect-ratio: 4/5; position: relative; perspective: 1200px; }
.frame3d__inner { position: absolute; inset: 0; background: var(--ink); overflow: hidden; transform-style: preserve-3d; }
.frame3d__inner svg { width: 100%; height: 100%; }
.frame3d__caption { position: absolute; left: 24px; bottom: 24px; color: var(--paper); font-family: var(--serif); font-size: 24px; font-style: italic; transform: translateZ(60px); }
.frame3d::before { content: ""; position: absolute; inset: -14px 14px 14px -14px; border: 1px solid var(--gold); }

.timeline { overflow: hidden; }
.timeline__track { display: flex; width: max-content; padding: 0 var(--gutter); position: relative; }
.timeline__track::before { content: ""; position: absolute; left: 0; right: 0; top: 112px; height: 1px; background: var(--line-light); }
.tl { width: min(80vw, 420px); padding-right: 56px; flex: none; position: relative; }
.tl__year { font-family: var(--serif); font-weight: 300; font-size: clamp(46px, 4.4vw, 68px); line-height: 1; color: var(--gold-soft); font-style: italic; height: 96px; }
.tl__dot { width: 14px; height: 14px; border-radius: 50%; background: var(--accent-2); margin: 9px 0 32px; box-shadow: 0 0 0 6px rgba(200,50,58,.18); }
.tl p { color: rgba(244,239,230,.66); margin: 12px 0 0; }
@media (max-width: 899px) {
  .timeline__track { flex-direction: column; width: auto; }
  .timeline__track::before { display: none; }
  .tl { width: 100%; padding: 0 0 48px; border-left: 1px solid var(--line-light); padding-left: 28px; }
  .tl__year { height: auto; }
  .tl__dot { position: absolute; left: -7px; top: 22px; margin: 0; }
}

.flip-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .flip-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .flip-grid { grid-template-columns: repeat(4, 1fr); } }
.flip { perspective: 1200px; height: 320px; }
.flip__inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 1s var(--ease); }
.flip:hover .flip__inner, .flip:focus-within .flip__inner, .flip.is-flipped .flip__inner { transform: rotateY(180deg); }
.flip__face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; padding: 32px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); background: var(--paper); }
.flip__face--back { transform: rotateY(180deg); background: var(--ink); color: var(--paper); border-color: var(--ink); }
.flip__face--back p { color: rgba(244,239,230,.75); margin: 0; }
.flip__n { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 52px; line-height: 1; color: var(--accent); }
/* Card line-art: strokes sketch themselves in once the card is in view (.is-in), then idle gently */
.flip__art { width: clamp(96px, 8.5vw, 132px); height: auto; align-self: center; overflow: visible; color: var(--gold); }
.flip__art .draw { fill: none; stroke: currentColor; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--ease) calc(var(--d, 0) * .35s); }
.flip__art .draw.red { stroke: var(--accent); }
.flip__art .draw.faint { stroke-opacity: .35; }
.flip.is-in .flip__art .draw { stroke-dashoffset: 0; }
.flip__art .spark { fill: var(--accent); opacity: 0; transition: opacity .8s 2s; }
.flip__art .spark--gold { fill: var(--gold); }
.flip__art .sparkle { fill: var(--accent); opacity: 0; transform-box: fill-box; transform-origin: center; }
.flip__art .sparkle--2 { fill: var(--gold); }
.flip.is-in .flip__art .spark { opacity: 1; }
.flip.is-in .flip__art .sparkle { animation: twinkle 2.8s ease-in-out 2s infinite; }
.flip.is-in .flip__art .sparkle--2 { animation-delay: 3.4s; }
.flip__art .compass { transform-box: view-box; transform-origin: 60px 18px; }
.flip.is-in .flip__art .compass { animation: swing 6s ease-in-out 2.2s infinite; }
.flip__art .beam { transform-box: view-box; transform-origin: 60px 32px; }
.flip.is-in .flip__art .beam { animation: tilt 5s ease-in-out 2.4s infinite; }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }
@keyframes swing { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(14deg); } }
@keyframes tilt { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
.flip__face { transition: border-color .5s, box-shadow .6s var(--ease-out); }
.flip:hover .flip__face:not(.flip__face--back) { border-color: var(--gold-soft); box-shadow: 0 30px 60px -30px rgba(21,18,15,.35); }
.flip__title::after { content: ""; display: block; width: 0; height: 1px; margin-top: 16px; background: var(--accent); transition: width 1.4s var(--ease) 1.6s; }
.flip.is-in .flip__title::after { width: 44px; }

/* Specialities: hairline grid of eight, icons sketch themselves in (.is-in) */
/* Separate cards with breathing room, not a joined table */
.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(12px, 1.6vw, 24px); }
@media (min-width: 900px) { .specs { grid-template-columns: repeat(4, 1fr); } }
.spec {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  min-height: clamp(220px, 19vw, 280px); padding: clamp(22px, 2.6vw, 40px);
  border: 1px solid var(--line); border-radius: 6px;
  box-shadow: 0 18px 40px -30px rgba(21, 18, 15, .35);
  transition: box-shadow .6s, border-color .6s;
  /* --mx/--my set by JS: soft gold spotlight that follows the cursor across the grid */
  background: radial-gradient(circle 220px at var(--mx, -300px) var(--my, -300px), rgba(180, 140, 85, .16), transparent 70%), var(--paper);
}
.spec > * { position: relative; z-index: 1; }
.spec::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; z-index: 2; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease); }
.spec::after { content: ""; position: absolute; inset: 0; z-index: 0; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .8s var(--ease); }
.spec:hover::before { transform: scaleX(1); }
.spec:hover { border-color: var(--ink); box-shadow: 0 30px 60px -30px rgba(21, 18, 15, .55); }
.spec:hover::after { transform: scaleY(1); }
.spec h3, .spec__n { transition: color .6s; }
.spec:hover h3 { color: var(--paper); }
.spec:hover .spec__n { color: var(--gold-soft); }

/* Medallion: ring draws in, a crimson dot orbits, the icon floats inside */
.spec__medal { width: clamp(68px, 5.6vw, 84px); aspect-ratio: 1; display: grid; place-items: center; }
.spec__orbit { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.spec__ring { fill: none; stroke: var(--gold); stroke-opacity: .55; stroke-width: .8; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2s var(--ease) .2s, stroke .6s; }
.spec.is-in .spec__ring { stroke-dashoffset: 0; }
.spec__spin { transform-box: view-box; transform-origin: 50px 50px; fill: var(--accent); opacity: 0; transition: opacity .8s 1.6s; }
.spec.is-in .spec__spin { opacity: 1; animation: spin calc(9s + var(--i, 0) * 1.3s) linear 1.6s infinite; }
.spec:nth-child(even).is-in .spec__spin { animation-direction: reverse; }
.spec__icon { width: 56%; height: auto; overflow: visible; color: var(--gold); transition: transform .9s var(--ease-out), color .6s; }
.spec.is-in .spec__icon { animation: float 4.2s ease-in-out calc(var(--i, 0) * -.55s) infinite; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
.spec:hover .spec__icon { transform: scale(1.1); color: var(--gold-soft); }
.spec:hover .spec__ring { stroke: var(--gold-soft); }

/* Watermark numeral glides into the corner */
.spec__bg { position: absolute !important; right: -6px; bottom: -28px; z-index: 0 !important; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(110px, 10vw, 160px); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(180, 140, 85, .28); opacity: 0; transform: translate(30px, 30px); transition: opacity 1.4s var(--ease-out) .5s, transform 1.6s var(--ease-out) .5s, -webkit-text-stroke-color .6s; pointer-events: none; }
.spec.is-in .spec__bg { opacity: 1; transform: none; }
@media (max-width: 600px) { .spec__bg { font-size: 78px; bottom: -14px; right: -4px; -webkit-text-stroke-color: rgba(180, 140, 85, .2); } }
.spec:hover .spec__bg { -webkit-text-stroke-color: rgba(216, 191, 147, .35); }
.spec__icon .draw { fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease) calc(var(--d, 0) * .3s); }
.spec__icon .draw.red { stroke: var(--accent); }
.spec.is-in .spec__icon .draw { stroke-dashoffset: 0; }
.spec__icon .hand { transform-box: view-box; transform-origin: 24px 26px; }
.spec.is-in .spec__icon .hand { animation: spin 14s linear 2s infinite; }
.spec.is-in .spec__icon .glow { animation: glow 2.6s ease-in-out 2s infinite; }
.spec__icon .pen { transform-box: view-box; transform-origin: 22px 26px; }
.spec.is-in .spec__icon .pen { animation: swing 5s ease-in-out 2.2s infinite; }
@keyframes glow { 0%, 100% { stroke-opacity: 1; } 50% { stroke-opacity: .2; } }
.spec__n { margin-top: 36px; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 18px; color: var(--accent); }
.spec h3 { margin: 6px 0 0; font-family: var(--serif); font-weight: 300; font-size: clamp(19px, 1.55vw, 25px); line-height: 1.25; }

/* Same drawing on the dark back of the card, same size, in soft gold */
.flip__art--back { color: var(--gold-soft); }

/* Single-line card titles that scale with the card's own width */
.flip__face:has(.flip__title) { container-type: inline-size; }
.flip__title { white-space: nowrap; font-size: min(34px, 9.6cqi); }
.flip__icon { width: 44px; height: 44px; color: var(--gold); }

.offices { display: grid; gap: 24px; }
@media (min-width: 900px) { .offices { grid-template-columns: 1fr 1fr; } }
.office { border: 1px solid var(--line); padding: clamp(28px, 4vw, 56px); position: relative; overflow: hidden; background: var(--paper); }
.office__tag { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.office address { font-style: normal; font-family: var(--serif); font-weight: 300; font-size: clamp(22px, 2vw, 30px); line-height: 1.25; margin: 20px 0 28px; }
.office__bg { position: absolute; right: -40px; bottom: -40px; width: 220px; height: 220px; color: var(--paper-3); }

/* ---------- Services page ---------- */
.cat-nav { position: sticky; top: 84px; z-index: 40; background: rgba(244,239,230,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.cat-nav__list { display: flex; gap: 8px; overflow-x: auto; padding: 14px var(--gutter); scrollbar-width: none; max-width: var(--max); margin: 0 auto; }
.cat-nav__list::-webkit-scrollbar { display: none; }
.cat-nav a { white-space: nowrap; font-size: 13px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); transition: background .3s, color .3s; }
.cat-nav a.is-active, .cat-nav a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.cat { display: grid; gap: 36px; padding: clamp(64px, 9vw, 130px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 140px; }
@media (min-width: 900px) { .cat { grid-template-columns: 5fr 7fr; gap: 80px; } .cat__head { position: sticky; top: 160px; align-self: start; } }
.cat__num { font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 22px; }
.cat__head p { color: var(--ink-soft); margin: 20px 0 0; max-width: 40ch; }
.cat__visual { width: 140px; height: 140px; margin-top: 36px; perspective: 700px; }
.cube { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; animation: cube 16s linear infinite; }
.cube span { position: absolute; inset: 0; border: 1px solid var(--gold); background: rgba(180,140,85,.06); display: grid; place-items: center; font-family: var(--serif); font-style: italic; font-size: 34px; color: var(--accent); }
.cube span:nth-child(1) { transform: translateZ(70px); }
.cube span:nth-child(2) { transform: rotateY(180deg) translateZ(70px); }
.cube span:nth-child(3) { transform: rotateY(90deg) translateZ(70px); }
.cube span:nth-child(4) { transform: rotateY(-90deg) translateZ(70px); }
.cube span:nth-child(5) { transform: rotateX(90deg) translateZ(70px); }
.cube span:nth-child(6) { transform: rotateX(-90deg) translateZ(70px); }
@keyframes cube { from { transform: rotateX(-20deg) rotateY(0); } to { transform: rotateX(-20deg) rotateY(360deg); } }

.svc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.svc-list li { border-bottom: 1px solid var(--line); }
.svc-list li > div { display: flex; align-items: baseline; gap: 20px; padding: 20px 0; transition: padding .5s var(--ease-out), color .3s; }
.svc-list li > div::before { content: attr(data-n); font-size: 12px; color: var(--gold); font-variant-numeric: tabular-nums; min-width: 24px; }
.svc-list li > div span { font-family: var(--serif); font-weight: 300; font-size: clamp(20px, 1.7vw, 26px); }
.svc-list li:hover > div { padding-left: 16px; color: var(--accent); }
.svc-sub { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); margin: 36px 0 12px; font-weight: 600; }
.svc-sub:first-child { margin-top: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 64px; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: 6fr 5fr; gap: 100px; } }
.form { display: grid; gap: 8px; }
.field { position: relative; padding-top: 18px; }
.field input, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--line);
  background: transparent; padding: 16px 0 14px;
  font: inherit; font-family: var(--serif); font-size: clamp(22px, 2.2vw, 30px); color: var(--ink);
  outline: none; border-radius: 0; resize: vertical;
}
.field textarea { min-height: 140px; }
.field label { position: absolute; left: 0; top: 34px; font-size: 15px; color: var(--ink-soft); pointer-events: none; transition: transform .4s var(--ease-out), font-size .4s, color .3s; transform-origin: left; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-26px); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); }
.field::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.field:focus-within::after { transform: scaleX(1); }
.form .btn { margin-top: 36px; justify-self: start; }
.form__note { font-size: 13px; color: var(--ink-soft); margin-top: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 12px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; transition: background .3s, color .3s, border-color .3s; }
.chips input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.contact-card { border-top: 1px solid var(--line); padding: 28px 0; }
.contact-card h4 { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; font-weight: 600; }
.contact-card p, .contact-card a { font-family: var(--serif); font-weight: 300; font-size: clamp(20px, 1.7vw, 25px); line-height: 1.3; margin: 0; }
.contact-card a { display: inline-block; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease); }
.contact-card a:hover { background-size: 100% 1px; }
.map { aspect-ratio: 16/8; width: 100%; border: 0; filter: grayscale(1) sepia(.25) contrast(1.05); min-height: 320px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 0; font-family: var(--serif); font-weight: 300; font-size: clamp(20px, 1.8vw, 28px); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); flex: none; position: relative; transition: transform .6s var(--ease), background .3s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1px; background: currentColor; transform: translate(-50%, -50%); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary i { transform: rotate(135deg); background: var(--accent); color: var(--paper); border-color: var(--accent); }
.lead--wide { max-width: none; }
.faq details p { margin: 0 0 28px; color: var(--ink-soft); max-width: 70ch; }

/* ---------- Engagement cards ---------- */
.plans { display: grid; gap: 20px; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { border: 1px solid var(--line-light); padding: clamp(28px, 3vw, 44px); position: relative; overflow: hidden; min-height: 380px; display: flex; flex-direction: column; }
.plan .flip__n { color: var(--gold-soft); }
.plan p { color: rgba(244,239,230,.66); }
.plan ul { list-style: none; padding: 0; margin: auto 0 0; display: grid; gap: 10px; font-size: 14px; color: rgba(244,239,230,.8); }
.plan li::before { content: "✦"; color: var(--accent-2); margin-right: 10px; font-size: 10px; }

/* ---------- Team roles ---------- */
.roles { display: grid; gap: 0; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .roles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .roles { grid-template-columns: repeat(3, 1fr); } }
.role { padding: 36px 28px 36px 0; border-bottom: 1px solid var(--line); position: relative; }
.role svg { width: 48px; height: 48px; color: var(--accent); margin-bottom: 22px; }
.role p { color: var(--ink-soft); margin: 10px 0 0; max-width: 34ch; }

/* ---------- Legal pages (Terms, Privacy): plain reading layout, no hero ---------- */
.header.on-light .logo__img { filter: none; }
.legal { padding: clamp(150px, 16vw, 200px) 0 clamp(80px, 10vw, 140px); }
.legal__body { max-width: 860px; margin-top: clamp(32px, 4vw, 56px); padding-top: 32px; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.8; color: var(--ink-soft); }
.legal__body p { margin: 0 0 18px; }
.legal__body strong, .legal__body b { color: var(--ink); font-weight: 600; }
.legal__body ul, .legal__body ol { margin: 0 0 22px; padding-left: 22px; }
.legal__body li { margin-bottom: 8px; }
.legal__body li::marker { color: var(--accent); }
.legal__body h2, .legal__body h3, .legal__body h4 { font-family: var(--serif); font-weight: 400; color: var(--ink); font-size: clamp(22px, 2vw, 28px); margin: 40px 0 14px; }
.legal__body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: clamp(16px, 2.4vw, 36px); bottom: clamp(16px, 2.4vw, 36px); z-index: 800;
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(244, 239, 230, .88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 14px 30px -14px rgba(21, 18, 15, .35);
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity .5s, visibility .5s, transform .6s var(--ease-out), background-color .4s;
}
.to-top.is-on { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 100%; height: 100%; overflow: visible; }
.to-top__track { fill: none; stroke: var(--line); stroke-width: 1; }
.to-top__ring { fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transform: rotate(-90deg); transform-origin: 26px 26px; }
.to-top__arrow { fill: none; stroke: var(--ink); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease-out); }
.to-top:hover { background-color: var(--ink); }
.to-top:hover .to-top__arrow { stroke: var(--paper); transform: translateY(-3px); }
.to-top:hover .to-top__track { stroke: rgba(244,239,230,.2); }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-s { margin-top: 24px; } .mt-m { margin-top: 48px; } .mt-l { margin-top: 96px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-split] .wi, .js [data-fade] { transform: none !important; opacity: 1 !important; }
  .manifesto .mw { opacity: 1; }
}
