/* Third Quant (formerly QuantEngine) — antique gold on near-black, cosmic dusty mood */

/* ============================================================
   1. Tokens
============================================================ */
:root {
  /* Surfaces — deep but not OLED-off; slight warm undertone for "deep space" feel */
  --bg: #15141c;
  --bg-warm: #18161f;
  --bg-elev: #1c1a25;

  /* Antique gold — matte, not chrome */
  --gold: #c9a961;
  --gold-deep: #b8924a;
  --gold-bright: #e0c589;
  --gold-faint: rgba(201, 169, 97, 0.15);
  --gold-glow: rgba(201, 169, 97, 0.08);

  /* Text */
  --text: #e8e6e1;
  --text-muted: #8a8780;
  --text-faint: rgba(232, 230, 225, 0.4);
  --text-quiet: rgba(232, 230, 225, 0.55);

  /* Hairlines */
  --border: rgba(201, 169, 97, 0.12);
  --border-strong: rgba(201, 169, 97, 0.22);
  --border-cool: rgba(232, 230, 225, 0.08);

  /* Typography stacks */
  --font-serif: "EB Garamond", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "General Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", "Cascadia Mono", monospace;

  /* Layout */
  --content-max: 1240px;
  --text-max: 680px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  /* Motion */
  --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.25, 0.1, 0.25, 1);
  --dur-fast: 200ms;
  --dur-base: 400ms;
  --dur-slow: 800ms;
}

/* ============================================================
   2. Reset
============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background:
    radial-gradient(ellipse 110% 70% at 50% 100%, rgba(201, 169, 97, 0.045) 0%, transparent 55%),
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(120, 100, 160, 0.03) 0%, transparent 50%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  font-feature-settings: "kern" 1, "liga" 1;
}

body.no-scroll {
  overflow: hidden;
}

/* ============================================================
   Intro overlay (home page only) — the skew mark draws itself:
   baseline extends, curve traces left to right, mean tick drops,
   then the wordmark settles in. JS adds .is-ready to start it.
============================================================ */
.intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.25rem;
  background: var(--bg);
  pointer-events: auto;
  opacity: 1;
  transition: opacity 900ms cubic-bezier(0.16, 1, 0.3, 1);
}
.intro.is-done {
  opacity: 0;
  pointer-events: none;
}

.intro__mark {
  width: min(34vw, 30vh, 240px);
  aspect-ratio: 60 / 55;
}
.intro__svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  fill: none;
  stroke-linecap: round;
}
.intro__base {
  stroke: var(--text);
  stroke-opacity: 0.45;
  stroke-width: 2;
  transform-origin: 32px 54px;
  transform: scaleX(0);
}
.intro__curve {
  stroke: var(--text);
  stroke-width: 3.5;
  stroke-dasharray: 1 2;
  stroke-dashoffset: 1;
  opacity: 0;
}
.intro__tick {
  stroke: var(--gold);
  stroke-width: 3;
  opacity: 0;
  transform: translate(0, -6px);
}

.intro__name {
  display: block;
  height: clamp(2.2rem, 5.5vw, 3.6rem);
  width: auto;
  opacity: 0;
  transform: translate3d(0, 6px, 0);
  will-change: transform, opacity;
}

.intro.is-ready .intro__base  { animation: introBase 600ms cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.intro.is-ready .intro__curve { animation: introCurve 1000ms cubic-bezier(0.65, 0, 0.35, 1) 250ms forwards; }
.intro.is-ready .intro__tick  { animation: introTick 500ms cubic-bezier(0.16, 1, 0.3, 1) 1150ms forwards; }
.intro.is-ready .intro__name  { animation: introName 600ms cubic-bezier(0.16, 1, 0.3, 1) 1350ms forwards; }

@keyframes introBase  { to { transform: scaleX(1); } }
@keyframes introCurve {
  0%   { opacity: 0; stroke-dashoffset: 1; }
  1%   { opacity: 1; }
  100% { opacity: 1; stroke-dashoffset: 0; }
}
@keyframes introTick  { to { opacity: 1; transform: translate(0, 0); } }
@keyframes introName {
  from { opacity: 0; transform: translate3d(0, 6px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* Reduced motion — show the finished mark immediately.
   Scoped to html:not(.force-motion) so ?intro=replay can override. */
@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) .intro__base,
  html:not(.force-motion) .intro__curve,
  html:not(.force-motion) .intro__tick,
  html:not(.force-motion) .intro__name {
    opacity: 1;
    transform: none;
    stroke-dashoffset: 0;
    animation: none;
  }
}

/* ============================================================
   Hero USP cards — persistent content. Slide in from the left when
   body.intro-complete is set (JS fires this as the intro overlay
   begins fading). Same easing curve as the intro for continuity.
============================================================ */
.usp-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
  max-width: 980px;
  margin-top: 3rem;
}
.usp-card {
  position: relative;
  padding: 1.6rem 1.5rem 1.7rem;
  background:
    linear-gradient(180deg, rgba(34, 32, 45, 0.7) 0%, rgba(24, 22, 31, 0.5) 100%);
  border: 1px solid var(--border-strong);
  border-top: 2px solid var(--gold);
  border-radius: 3px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.02) inset,
    0 14px 32px -22px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translate3d(-40px, 0, 0);
  will-change: transform, opacity;
  backface-visibility: hidden;
  transition:
    border-color 280ms var(--ease-soft),
    background 280ms var(--ease-soft),
    transform 280ms var(--ease-soft);
}
.usp-card:hover {
  border-color: var(--gold);
  background:
    linear-gradient(180deg, rgba(38, 36, 50, 0.85) 0%, rgba(28, 26, 37, 0.65) 100%);
}
.usp-card__index {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.95rem;
}
.usp-card__title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--text);
  margin: 0 0 0.55rem;
}
.usp-card__body {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-quiet);
  margin: 0;
}

/* Reveal triggers when JS sets body.intro-complete (which happens when
   the intro overlay begins fading, or immediately on load for visitors
   who skipped the intro). */
body.intro-complete .usp-card {
  animation: uspReveal 750ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
body.intro-complete .usp-card:nth-child(1) { animation-delay: 0ms; }
body.intro-complete .usp-card:nth-child(2) { animation-delay: 200ms; }
body.intro-complete .usp-card:nth-child(3) { animation-delay: 400ms; }

@keyframes uspReveal {
  from { opacity: 0; transform: translate3d(-40px, 0, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* Hover lift settles to 0,-2px once the reveal completes — transition
   handles the hover, animation handles the entrance. */
body.intro-complete .usp-card:hover {
  transform: translate3d(0, -2px, 0);
}

/* Stack vertically on narrow screens. */
@media (max-width: 720px) {
  .usp-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 2.25rem;
  }
}

/* Reduced motion — cards are simply present on first paint, no slide. */
@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) .usp-card {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* Reduced motion — final card statically shown, no cycle. */
@media (prefers-reduced-motion: reduce) {
  .intro__card {
    animation: none;
  }
  .intro__card:nth-child(3) {
    opacity: 1;
    transform: none;
  }
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

input,
textarea,
select {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  outline: 0;
}

::selection {
  background: var(--gold);
  color: var(--bg);
}

:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 3px;
}

/* ============================================================
   3. Atmosphere — grain + starfield
============================================================ */

/* Static SVG noise grain — does most of the dusty work */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='280' viewBox='0 0 280 280'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Fixed canvas for the starfield */
.starfield {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 1;
  transition: opacity 300ms var(--ease-out);
}

/* ============================================================
   4. Typography
============================================================ */
h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--text);
}

h1 {
  font-size: clamp(2.25rem, 4.4vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.018em;
}

h3 {
  font-size: clamp(1.2rem, 1.55vw, 1.45rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

p {
  max-width: var(--text-max);
}

p + p {
  margin-top: 1.1em;
}

em,
.italic,
.serif-italic {
  font-style: italic;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.34em;
  color: var(--gold);
  font-weight: 400;
  display: inline-block;
}

.lead {
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  line-height: 1.6;
  color: var(--text);
  max-width: var(--text-max);
}

.muted {
  color: var(--text-muted);
}

.quiet {
  color: var(--text-quiet);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.85em;
}

.serif {
  font-family: var(--font-serif);
}

/* ============================================================
   5. Layout primitives
============================================================ */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

main {
  position: relative;
  z-index: 10;
}

.section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  position: relative;
}

.section--tight {
  padding-block: clamp(2.5rem, 5.5vw, 4.5rem);
}

.section__head {
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
  max-width: var(--text-max);
}

.section__head .eyebrow {
  margin-bottom: 1.25rem;
}

.divider {
  height: 1px;
  background: var(--border);
  border: 0;
  margin: 0;
}

.divider--strong {
  background: var(--border-strong);
}

/* ============================================================
   6. Header / Nav
============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem var(--gutter);
  transition: background var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    backdrop-filter var(--dur-base) var(--ease-out);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(10, 10, 12, 0.78);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom-color: var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-serif);
  font-size: 1.55rem;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1;
}

.brand__mark {
  display: inline-flex;
  align-items: center;
  height: 2.1rem;
  width: auto;
}

.brand__mark img,
.brand__mark svg {
  height: 100%;
  width: auto;
  display: block;
  overflow: visible;
}

.brand__name {
  font-style: italic;
}

.brand__lockup {
  display: block;
  height: 1.9rem;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
  list-style: none;
}

.nav__link {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--text-muted);
  position: relative;
  padding: 0.4rem 0;
  transition: color var(--dur-fast) var(--ease-out);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: auto;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--dur-fast) var(--ease-out);
}

.nav__link:hover,
.nav__link:focus-visible,
.nav__link[aria-current="page"] {
  color: var(--text);
}

.nav__link:hover::after,
.nav__link:focus-visible::after,
.nav__link[aria-current="page"]::after {
  width: 100%;
}

.nav__link[aria-current="page"] {
  color: var(--gold);
}

.nav__toggle {
  display: none;
  width: 36px;
  height: 36px;
  position: relative;
  z-index: 60;
}

.nav__toggle span {
  display: block;
  position: absolute;
  left: 6px;
  right: 6px;
  height: 1px;
  background: var(--text);
  transition: transform var(--dur-fast) var(--ease-out),
    opacity var(--dur-fast) var(--ease-out),
    top var(--dur-fast) var(--ease-out);
}

.nav__toggle span:nth-child(1) {
  top: 13px;
}
.nav__toggle span:nth-child(2) {
  top: 22px;
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  top: 17px;
  transform: rotate(45deg);
}
.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  top: 17px;
  transform: rotate(-45deg);
}

@media (max-width: 800px) {
  .nav__toggle {
    display: block;
  }
  .nav__menu {
    position: fixed;
    inset: 0;
    z-index: 55;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.25rem;
    background: var(--bg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--dur-base) var(--ease-out),
      transform var(--dur-base) var(--ease-out),
      visibility 0s linear var(--dur-base);
  }
  .nav__menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity var(--dur-base) var(--ease-out),
      transform var(--dur-base) var(--ease-out),
      visibility 0s linear 0s;
  }
  .nav__link {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    text-transform: none;
    letter-spacing: -0.01em;
    color: var(--text);
    font-style: italic;
  }
  .nav__link::after {
    display: none;
  }
}

/* ============================================================
   7. Footer
============================================================ */
.site-footer {
  margin-top: clamp(4rem, 10vw, 8rem);
  border-top: 1px solid var(--border);
  padding: 4rem var(--gutter) 2.5rem;
  position: relative;
  z-index: 10;
}

.footer-grid {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.footer__brand {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-style: italic;
  margin-bottom: 0.5rem;
}

.footer__tagline {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 32ch;
}

.footer__heading {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer__list {
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.footer__list a {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color var(--dur-fast) var(--ease-out);
  position: relative;
  display: inline-block;
}

.footer__list a:hover {
  color: var(--gold);
}

.footer__bottom {
  max-width: var(--content-max);
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-faint);
}

/* ============================================================
   8. Buttons / CTAs
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--gold);
  border: 1px solid var(--border-strong);
  border-radius: 1px;
  background: transparent;
  transition: background var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
  cursor: pointer;
  position: relative;
}

.btn::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 1px;
  box-shadow: 0 0 0 0 var(--gold-glow);
  transition: box-shadow var(--dur-base) var(--ease-out);
  pointer-events: none;
}

.btn:hover {
  background: var(--gold-glow);
  border-color: var(--gold);
  color: var(--gold-bright);
}

.btn:hover::after {
  box-shadow: 0 0 30px 0 rgba(201, 169, 97, 0.18);
}

.btn .arrow {
  display: inline-block;
  transition: transform var(--dur-fast) var(--ease-out);
}

.btn:hover .arrow {
  transform: translateX(3px);
}

.btn--ghost {
  border-color: transparent;
  color: var(--text-muted);
  padding-inline: 0;
}

.btn--ghost:hover {
  background: transparent;
  color: var(--gold);
}

.btn--ghost::before {
  content: "";
  position: absolute;
  left: 0;
  right: auto;
  bottom: 0.55rem;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--dur-fast) var(--ease-out);
}

.btn--ghost:hover::before {
  width: calc(100% - 1.6rem);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  margin-top: clamp(2rem, 4vw, 3rem);
}

/* Inline link with gold underline draw-in */
.link {
  position: relative;
  color: var(--text);
  display: inline-block;
  padding-bottom: 1px;
}

.link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--dur-fast) var(--ease-out);
}

.link:hover::after {
  width: 100%;
}

/* ============================================================
   9. Hero
============================================================ */
.hero {
  position: relative;
  padding-top: clamp(6rem, 10vw, 8rem);
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
  min-height: clamp(520px, 75vh, 700px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::after {
  /* Vignette inside hero — softer, less crushing at edges */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
      ellipse 90% 75% at 50% 45%,
      transparent 45%,
      rgba(0, 0, 0, 0.3) 100%
    );
  z-index: 2;
}

.hero__inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.hero__content {
  max-width: 920px;
}

.hero__eyebrow {
  margin-bottom: 1.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.hero__eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

.hero__title {
  margin-bottom: 1.75rem;
  text-shadow: 0 0 40px rgba(201, 169, 97, 0.06);
}

.hero__title .it {
  font-style: italic;
  color: var(--gold-bright);
}

.hero__sub {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.6;
  color: var(--text);
  max-width: 60ch;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.hero__support {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  color: var(--text-quiet);
  max-width: 60ch;
}

.hero--small {
  min-height: auto;
  padding-top: clamp(5.5rem, 9vw, 7rem);
  padding-bottom: clamp(2.25rem, 4.5vw, 4rem);
}

.hero--small .hero__title {
  font-size: clamp(2rem, 3.5vw, 2.85rem);
}

/* ============================================================
   10. What we do — 4 tiles, no card chrome
============================================================ */
.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--border);
}

.tiles > .tile {
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.tiles > .tile:nth-child(2n) {
  border-right: 0;
}

@media (max-width: 760px) {
  .tiles {
    grid-template-columns: 1fr;
  }
  .tiles > .tile {
    border-right: 0;
  }
}

.tile {
  padding: clamp(2rem, 4vw, 3rem) clamp(1.25rem, 3vw, 2.5rem);
  position: relative;
  transition: background var(--dur-base) var(--ease-out);
}

.tile:hover {
  background: rgba(201, 169, 97, 0.025);
}

.tile__index {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-bottom: 1.25rem;
  display: block;
}

.tile__title {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 1.55vw, 1.45rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.tile__body {
  color: var(--text-quiet);
  font-size: 0.98rem;
  line-height: 1.7;
  max-width: 56ch;
}

/* ============================================================
   11. Audience / Who-this-is-for
============================================================ */
.audience {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  max-width: var(--text-max);
}

.audience__item p {
  color: var(--text-quiet);
  line-height: 1.7;
  font-size: 1.025rem;
}

.audience__lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--gold-bright);
  font-size: 1.15em;
}

/* ============================================================
   12. Prose blocks
============================================================ */
.prose {
  max-width: var(--text-max);
}

.prose p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 1.4em;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose .quiet {
  color: var(--text-quiet);
}

.prose__pull {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.2rem, 1.85vw, 1.65rem);
  line-height: 1.4;
  color: var(--gold-bright);
  letter-spacing: -0.01em;
  margin: 2.5rem 0;
  padding-left: 1.5rem;
  border-left: 1px solid var(--border-strong);
}

/* ============================================================
   13. What we don't do — closing block
============================================================ */
.closing {
  max-width: var(--text-max);
}

.closing p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 1.4em;
}

.closing__line {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.35;
  color: var(--gold-bright);
  margin-top: 2rem;
  letter-spacing: -0.01em;
  filter: drop-shadow(0 0 24px rgba(201, 169, 97, 0.1));
}

/* ============================================================
   14. Forms
============================================================ */
.form {
  max-width: 540px;
}

.form__row {
  margin-bottom: 2rem;
  position: relative;
}

.form__row label {
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--text-faint);
  pointer-events: none;
  transition: color var(--dur-fast) var(--ease-out);
}

.form__row input,
.form__row textarea {
  width: 100%;
  padding: 1.5rem 0 0.65rem;
  border-bottom: 1px solid var(--border);
  background: transparent;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text);
  transition: border-color var(--dur-fast) var(--ease-out);
  resize: none;
}

.form__row textarea {
  min-height: 130px;
  line-height: 1.5;
}

.form__row input:focus,
.form__row textarea:focus {
  border-bottom-color: var(--gold);
}

.form__row:focus-within label {
  color: var(--gold);
}

.form__submit {
  margin-top: 1rem;
}

.form__hint {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ============================================================
   15. "In preparation" placeholder block (reusable)
============================================================ */
.placeholder {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: 50vh;
  max-width: var(--text-max);
}

.placeholder__note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.placeholder__note::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

.placeholder p {
  color: var(--text-quiet);
  line-height: 1.7;
  font-size: 1.05rem;
  margin-top: 1.25rem;
}

/* ============================================================
   16. Contact direct line
============================================================ */
.direct {
  margin-top: clamp(3rem, 5vw, 4rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--border);
  max-width: var(--text-max);
}

.direct__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--gold);
  margin-bottom: 0.85rem;
}

.direct__email {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  color: var(--text);
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}

.direct__email::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--border-strong);
  transition: background var(--dur-fast) var(--ease-out);
}

.direct__email:hover::after {
  background: var(--gold);
}

/* ============================================================
   17. Fade-in on scroll
============================================================ */
[data-fade] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}

[data-fade].in-view {
  opacity: 1;
  transform: none;
}

[data-fade-delay="1"] {
  transition-delay: 80ms;
}
[data-fade-delay="2"] {
  transition-delay: 160ms;
}
[data-fade-delay="3"] {
  transition-delay: 240ms;
}
[data-fade-delay="4"] {
  transition-delay: 320ms;
}

/* ============================================================
   19. Works — stats hero
============================================================ */
.hero--works {
  min-height: auto;
  padding-bottom: clamp(4rem, 8vw, 6.5rem);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: clamp(2.5rem, 4vw, 3.5rem);
  border-top: 1px solid var(--border);
}

.stat {
  padding: 0 clamp(1rem, 2vw, 2rem);
  position: relative;
}

.stat:first-child {
  padding-left: 0;
}

.stat:last-child {
  padding-right: 0;
}

.stat:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 12%;
  bottom: 12%;
  right: 0;
  width: 1px;
  background: var(--border);
}

.stat__num {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 400;
  line-height: 1;
  color: var(--gold-bright);
  letter-spacing: -0.03em;
  font-feature-settings: "tnum" 1, "lnum" 1;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: baseline;
}

.stat__num .unit,
.stat__num .plus {
  font-size: 0.55em;
  color: var(--gold);
  font-style: italic;
  margin-left: 0.05em;
  letter-spacing: -0.01em;
}

.stat__num .plus {
  font-style: normal;
  font-size: 0.65em;
}

.stat__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 18ch;
}

.hero__stack-line {
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  padding-top: clamp(2rem, 3vw, 2.5rem);
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-quiet);
}

@media (max-width: 720px) {
  .stats {
    grid-template-columns: 1fr;
  }
  .stat {
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--border);
  }
  .stat:last-child {
    border-bottom: 0;
  }
  .stat::after {
    display: none !important;
  }
}

/* ============================================================
   20. Engagement list (works TOC)
============================================================ */
.engagement-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border);
}

.engagement-list > li {
  border-bottom: 1px solid var(--border);
}

.engagement-list a {
  display: grid;
  grid-template-columns: 3.25rem minmax(13rem, 18rem) 1fr;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.4rem 0;
  transition: background var(--dur-fast) var(--ease-out),
    padding-inline-start var(--dur-base) var(--ease-out);
  position: relative;
}

.engagement-list a:hover {
  background: rgba(201, 169, 97, 0.025);
  padding-inline-start: 0.6rem;
}

.engagement-list a:hover .eng__company {
  color: var(--gold);
}

.eng__num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: var(--gold);
}

.eng__company {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.25;
  transition: color var(--dur-fast) var(--ease-out);
}

.eng__brief {
  color: var(--text-quiet);
  font-size: 0.95rem;
  line-height: 1.55;
}

@media (max-width: 760px) {
  .engagement-list a {
    grid-template-columns: 2.5rem 1fr;
    grid-template-rows: auto auto;
    gap: 0.4rem 1rem;
    padding: 1.4rem 0;
  }
  .engagement-list a:hover {
    padding-inline-start: 0.4rem;
  }
  .eng__num {
    grid-row: 1;
    grid-column: 1;
  }
  .eng__company {
    grid-row: 1;
    grid-column: 2;
    font-size: 1.1rem;
  }
  .eng__brief {
    grid-row: 2;
    grid-column: 2;
  }
}

/* ============================================================
   21. Case study
============================================================ */
.case-study {
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  scroll-margin-top: 6rem;
}

.case-study + .case-study {
  border-top: 1px solid var(--border);
}

.case-study__head {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.case-study__head .eyebrow {
  margin-bottom: 1.2rem;
}

.case-study__title {
  font-family: var(--font-serif);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 400;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.case-study__company {
  color: var(--text);
}

.case-study__project {
  font-style: italic;
  color: var(--gold-bright);
  font-size: 0.78em;
  letter-spacing: -0.015em;
}

.case-study__grid {
  display: grid;
  grid-template-columns: minmax(220px, 28%) 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

@media (max-width: 860px) {
  .case-study__grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
}

/* Meta data sheet */
.meta {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
  margin: 0;
}

.meta__row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--border);
}

.meta dt {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--gold);
  font-weight: 400;
}

.meta dd {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.5;
  margin: 0;
}

/* Case study prose */
.case-study__prose p {
  font-size: 1.025rem;
  line-height: 1.78;
  color: var(--text);
  margin-bottom: 1.4em;
  max-width: 64ch;
}

.case-study__prose p:last-child {
  margin-bottom: 0;
}

.case-study__prose p + p {
  color: var(--text-quiet);
}

/* ============================================================
   18. Reduced motion
============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-fade] {
    opacity: 1;
    transform: none;
  }
}
