/* ================================================================
   BURR MEDIA — "Editorial Noir, Elevated" (v3)
   Designed & built by Lustre Digital
   Two families: DM Sans (workhorse) + Fraunces (editorial ink)
   ================================================================ */

:root {
  /* Layered warm near-blacks */
  --ink-900: #0c0909;
  --ink-800: #141010;   /* base */
  --ink-700: #191413;   /* cards / fields */
  --ink-600: #201917;   /* hover surface */
  --ink-500: #2a2220;

  --paper:    #fafafa;
  --paper-70: rgba(250,250,250,0.68);
  /* 0.50 not 0.45: at 0.45 this composites to #777575 on --ink-900 = 4.33:1,
     which fails WCAG AA for small text. 0.50 clears 4.5 on every surface
     it's used over (ink-900 5.18, ink-800 5.15, ink-700 5.12). */
  --paper-45: rgba(250,250,250,0.50);
  --paper-24: rgba(250,250,250,0.24);
  --paper-14: rgba(250,250,250,0.14);
  --paper-08: rgba(250,250,250,0.08);

  --red:      #d81d1e;
  --red-link: #e33c3d;   /* AA-safe red for small text on dark (4.70:1) */
  --red-press:#b0181a;
  --red-deep: #5c1113;
  --red-glow: rgba(216,29,30,0.26);

  /* Type */
  --sans:  'DM Sans', system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;

  --fs-hero:  clamp(4.25rem, 15vw, 11rem);
  --fs-h2:    clamp(2rem, 5vw, 3.5rem);
  --fs-h3:    clamp(1.25rem, 2.2vw, 1.6rem);
  --fs-quote: clamp(1.75rem, 4vw, 3.25rem);
  --fs-lead:  clamp(1.125rem, 1.6vw, 1.375rem);
  --fs-body:  1.0625rem;
  --fs-label: 0.75rem;

  /* Layout */
  --container:   1200px;
  --gutter:      clamp(1.25rem, 4vw, 3rem);
  --section-pad: clamp(5rem, 11vw, 9rem);

  /* Motion */
  --ease-out:   cubic-bezier(0.16, 1, 0.30, 1);
  --ease-inout: cubic-bezier(0.76, 0, 0.24, 1);
  --ease:       cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --dur-micro: 200ms;
  --dur-ui:    320ms;
  --dur-reveal: 780ms;
}

/* ---------------------------------------------------------------- RESET */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-color: var(--ink-500) var(--ink-900); scrollbar-width: thin; }

body {
  font-family: var(--sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.62;
  color: var(--paper);
  background-color: var(--ink-800);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* Global film grain + vignette (over everything, never blocks clicks) */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px;
}
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(130% 100% at 50% 38%, transparent 52%, rgba(12,9,9,0.55) 100%);
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; transition: color var(--dur-micro) var(--ease); }

h1, h2, h3, h4 { font-weight: 600; line-height: 1.04; letter-spacing: -0.02em; text-wrap: balance; }
p { text-wrap: pretty; }
strong { font-weight: 600; color: var(--paper); }
em { font-style: italic; }

::selection { background: var(--red); color: var(--ink-800); text-shadow: none; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink-900); }
::-webkit-scrollbar-thumb { background: var(--ink-500); border: 2px solid var(--ink-900); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--red-press); }

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

.skip-link {
  position: fixed; top: -60px; left: 1rem; z-index: 200;
  background: var(--red); color: var(--paper);
  padding: 0.6rem 1.1rem; font-size: var(--fs-label);
  letter-spacing: 0.12em; text-transform: uppercase;
  transition: top var(--dur-ui) var(--ease);
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------- UTIL */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-pad) 0; border-top: 1px solid var(--paper-08); position: relative; }

.btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 0.95rem 2rem;
  font-family: var(--sans); font-size: var(--fs-label); font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid transparent; border-radius: 0; cursor: pointer;
  transition: background var(--dur-ui) var(--ease), color var(--dur-ui) var(--ease),
              transform var(--dur-ui) var(--ease-out), box-shadow var(--dur-ui) var(--ease);
}
.btn-primary { background: var(--red); color: var(--paper); }
.btn-primary:hover { background: var(--red-press); color: var(--paper); transform: translateY(-2px); box-shadow: 0 10px 30px -8px var(--red-glow); }
.btn-full { width: 100%; justify-content: center; }
.btn-tick { width: 16px; height: 16px; color: currentColor; transition: transform var(--dur-ui) var(--ease-out); }
.btn:hover .btn-tick { transform: translate(3px,-3px); }

/* ---------------------------------------------------------------- REVEAL */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out); }
.reveal.visible { opacity: 1; transform: none; }

.reveal-mask { overflow: hidden; }
.reveal-mask > * { transform: translateY(108%); transition: transform var(--dur-reveal) var(--ease-out); }
.reveal-mask.visible > * { transform: none; }

/* ---------------------------------------------------------------- THE ANGLE — spine */
.angle-spine {
  position: fixed; top: 0; bottom: 0; left: clamp(0.75rem, 2.4vw, 2.25rem);
  width: 1px; background: var(--paper-08); z-index: 5; pointer-events: none;
}
.angle-spine-fill { position: absolute; top: 0; left: 0; width: 1px; height: 0; background: linear-gradient(var(--red), var(--red-press)); box-shadow: 0 0 10px -2px var(--red-glow); }

/* ---------------------------------------------------------------- HEADER */
.site-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 100; padding: 1.4rem 0; transition: background var(--dur-ui) var(--ease), padding var(--dur-ui) var(--ease), border-color var(--dur-ui) var(--ease); border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(15,11,11,0.78); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); padding: 0.75rem 0; border-bottom-color: var(--paper-08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.logo { display: inline-flex; align-items: center; gap: 0.7rem; z-index: 101; }
.logo-mark { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid var(--paper-14); color: var(--red); transition: border-color var(--dur-ui) var(--ease), background var(--dur-ui) var(--ease); }
.logo-mark svg { width: 17px; height: 17px; }
.logo:hover .logo-mark { border-color: var(--red); background: rgba(216,29,30,0.08); }
.logo-word { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }

.nav-desktop { display: none; align-items: center; gap: 2.4rem; }
.nav-desktop a { position: relative; font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper-70); display: inline-flex; align-items: baseline; gap: 0.45rem; }
.nav-desktop a:hover, .nav-desktop a.active { color: var(--paper); }
.nav-idx { font-size: 0.6rem; letter-spacing: 0.1em; color: var(--red); font-variant-numeric: tabular-nums; }
.nav-desktop a:not(.nav-cta)::after { content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 1px; background: var(--red); transition: width var(--dur-ui) var(--ease); }
.nav-desktop a:not(.nav-cta):hover::after, .nav-desktop a:not(.nav-cta).active::after { width: 100%; }
.nav-cta { color: var(--paper) !important; padding: 0.6rem 1.15rem; border: 1px solid var(--paper-14); gap: 0.5rem; transition: border-color var(--dur-ui) var(--ease), background var(--dur-ui) var(--ease); }
.nav-cta:hover { border-color: var(--red); background: rgba(216,29,30,0.08); }
.cta-tick { width: 13px; height: 13px; color: var(--red); }

.nav-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 34px; height: 34px; background: none; border: none; cursor: pointer; z-index: 101; padding: 6px; }
.nav-toggle span { display: block; width: 100%; height: 1.5px; background: var(--paper); transition: transform var(--dur-ui) var(--ease), opacity var(--dur-ui) var(--ease); }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4px,4px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4px,-4px); }

@media (min-width: 860px) {
  .nav-desktop { display: flex; }
  .nav-toggle { display: none; }
}

/* Mobile menu */
.mobile-menu { position: fixed; inset: 0; height: 100dvh; background: rgba(12,9,9,0.97); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); z-index: 99; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3rem; opacity: 0; visibility: hidden; transition: opacity var(--dur-ui) var(--ease), visibility var(--dur-ui) var(--ease); }
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; align-items: center; gap: 1.4rem; }
.mobile-menu nav a { font-size: clamp(1.6rem, 6vw, 2.2rem); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; display: inline-flex; align-items: baseline; gap: 0.7rem; }
.mobile-menu nav a:hover { color: var(--red); }
.mobile-menu nav .nav-idx { font-size: 0.8rem; }
.mobile-menu-contact { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; font-size: var(--fs-label); letter-spacing: 0.06em; color: var(--paper-45); }

/* ---------------------------------------------------------------- HERO */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; background: var(--ink-800); }
.hero::before { content: ''; position: absolute; inset: 0; z-index: 2; background: radial-gradient(80% 70% at 22% 42%, var(--red-glow) 0%, transparent 55%), linear-gradient(90deg, rgba(12,9,9,0.86) 0%, rgba(12,9,9,0.55) 55%, rgba(12,9,9,0.85) 100%); }
.hero-bg { position: absolute; inset: 0; z-index: 0; background: url('london-opt.jpg') center 30% / cover no-repeat; filter: grayscale(1) contrast(1.06) brightness(0.42); opacity: 0.55; will-change: transform; }
.hero-figure { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; opacity: 0.9; }
.hero-circles circle { fill: none; stroke: var(--paper); stroke-width: 1; opacity: 0.10; }
.hero-angle-path { stroke: var(--red); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px var(--red-glow)); stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw-angle 1.7s 0.55s var(--ease-inout) forwards; }
@keyframes draw-angle { to { stroke-dashoffset: 0; } }

.hero-grain { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0.05; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3C/svg%3E"); background-size: 180px; }

.hero-inner { position: relative; z-index: 3; width: 100%; max-width: var(--container); margin: 0 auto; padding: 8rem var(--gutter) 6rem; }

.hero-dateline { display: flex; align-items: center; flex-wrap: wrap; gap: 0.55rem; font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--paper-70); margin-bottom: 1.8rem; transition-delay: 0.1s; }
.hero-dateline .dot { color: var(--red); }
.hero-dateline .edition { width: 100%; margin-top: 0.5rem; letter-spacing: 0.14em; color: var(--paper-45); font-weight: 400; text-transform: none; font-size: 0.72rem; }

.hero-title { font-family: var(--sans); font-size: var(--fs-hero); font-weight: 700; line-height: 0.84; letter-spacing: -0.045em; text-transform: uppercase; margin-bottom: 2rem; }
.hero-title .line { display: block; }
.hero-title .line:nth-child(1) > span { transition-delay: 0.18s; }
.hero-title .line:nth-child(2) > span { transition-delay: 0.30s; color: var(--paper); -webkit-text-stroke: 1px transparent; }
.hero-title .line > span { display: block; }

.hero-kicker { font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--red); margin-bottom: 2.2rem; transition-delay: 0.48s; }

.hero-quote { max-width: 30ch; margin-bottom: 2.6rem; transition-delay: 0.6s; }
.hero-quote p { font-family: var(--serif); font-optical-sizing: auto; font-size: clamp(1.35rem, 2.4vw, 1.9rem); font-style: italic; font-weight: 400; line-height: 1.32; color: var(--paper-70); }
.hero-quote cite { display: block; margin-top: 0.9rem; font-family: var(--sans); font-size: var(--fs-label); font-style: normal; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); }

.hero .btn { transition-delay: 0.72s; }

.scroll-indicator { position: absolute; z-index: 3; left: var(--gutter); bottom: 1.6rem; display: flex; align-items: center; gap: 0.9rem; font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--paper-45); transition: opacity var(--dur-ui) var(--ease); }
.scroll-line { width: 54px; height: 1px; background: linear-gradient(90deg, var(--red), transparent); position: relative; overflow: hidden; }
.scroll-line::after { content: ''; position: absolute; inset: 0; width: 40%; background: var(--red); animation: scroll-run 2.2s var(--ease-inout) infinite; }
@keyframes scroll-run { 0% { transform: translateX(-120%); } 60%,100% { transform: translateX(320%); } }
.scroll-indicator.hidden { opacity: 0; }

/* ---------------------------------------------------------------- TRUST */
.trust { padding: 2.6rem 0; border-top: 1px solid var(--paper-08); border-bottom: 1px solid var(--paper-08); }
.trust .container { display: flex; align-items: center; gap: clamp(1rem,4vw,3rem); flex-wrap: wrap; }
.trust-kicker { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--paper-45); flex-shrink: 0; }
.trust-roll { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.4rem); flex-wrap: wrap; list-style: none; }
.trust-roll li { position: relative; font-size: clamp(0.8rem, 1.4vw, 1rem); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper-45); transition: color var(--dur-ui) var(--ease); padding-right: clamp(1rem, 3vw, 2.4rem); }
.trust-roll li:not(:last-child)::after { content: ''; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 1px; height: 14px; background: var(--paper-14); }
.trust-roll li:hover { color: var(--paper); }

/* ---------------------------------------------------------------- SECTION FURNITURE */
.section-index { display: flex; align-items: center; gap: 1rem; font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--paper-45); margin-bottom: 2.4rem; }
.section-index .idx { color: var(--red); font-variant-numeric: tabular-nums; }
.section-index .rule { width: 40px; height: 1px; background: var(--red); }
.section-title { font-size: var(--fs-h2); font-weight: 600; letter-spacing: -0.025em; margin-bottom: 1.4rem; }
.section-intro { font-size: var(--fs-lead); color: var(--paper-70); max-width: 44ch; line-height: 1.5; }

/* ---------------------------------------------------------------- ABOUT */
.about-grid { display: grid; grid-template-columns: 1fr; gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 5fr 7fr; } }

.about-figure { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid var(--paper-08); }
.about-figure img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; filter: grayscale(1) contrast(1.08) brightness(0.94); transition: filter 0.7s var(--ease), transform 0.7s var(--ease); }
.about-figure:hover img { filter: grayscale(0.35) contrast(1.02) brightness(1); transform: scale(1.03); }
.about-figure::after { content: ''; position: absolute; left: 0; bottom: 0; width: 42%; height: 3px; background: var(--red); z-index: 2; }
.about-figure figcaption { position: absolute; left: 1rem; bottom: 1rem; z-index: 2; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--paper); background: rgba(12,9,9,0.55); padding: 0.35rem 0.6rem; backdrop-filter: blur(6px); }

.about-head { font-family: var(--sans); font-size: clamp(2.2rem, 5.5vw, 4rem); font-weight: 700; letter-spacing: -0.03em; line-height: 0.98; text-transform: uppercase; margin-bottom: 1.8rem; }
.about-head em { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; font-size: 0.7em; color: var(--paper-45); letter-spacing: 0; }
.about-head .hl { color: var(--red); }

.about-lead { font-size: var(--fs-lead); color: var(--paper); line-height: 1.5; margin-bottom: 1.4rem; }
.about-body > p:not(.about-lead) { color: var(--paper-70); max-width: 62ch; }
.about-body > p + p { margin-top: 1.1rem; }
.dropcap { float: left; font-family: var(--serif); font-weight: 600; font-size: 3.4em; line-height: 0.72; padding: 0.06em 0.14em 0 0; color: var(--red); }

.about-stats { display: flex; gap: clamp(2rem, 5vw, 3.5rem); margin-top: 2.6rem; padding-top: 2rem; border-top: 1px solid var(--paper-08); }
.stat-number { font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--paper); font-variant-numeric: tabular-nums; }
.stat:first-child .stat-number { color: var(--red); }
.stat-label { display: block; margin-top: 0.5rem; font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper-45); }

/* ---------------------------------------------------------------- SERVICES */
.services-head { display: grid; grid-template-columns: 1fr; gap: 1.2rem; margin-bottom: 3.5rem; }
@media (min-width: 900px) { .services-head { grid-template-columns: 1fr 1fr; align-items: end; gap: 3rem; } .services-head .section-intro { margin-bottom: 0.3rem; } }

.services-list { list-style: none; }
.service { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(1rem, 3vw, 2.4rem); align-items: start; padding: clamp(1.8rem, 3.5vw, 2.6rem) 0; border-top: 1px solid var(--paper-08); position: relative; transition: background var(--dur-ui) var(--ease); }
.service:last-child { border-bottom: 1px solid var(--paper-08); }
.service::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 0; height: 2px; background: var(--red); transition: width 0.5s var(--ease-out); }
.service:hover::after { width: 100%; }
.service:hover { background: linear-gradient(90deg, rgba(216,29,30,0.04), transparent 60%); }
.service-no { font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.1em; color: var(--red); font-variant-numeric: tabular-nums; padding-top: 0.4rem; }
.service-main h3 { font-size: var(--fs-h3); margin-bottom: 0.8rem; }
.service-main p { color: var(--paper-70); max-width: 64ch; font-size: 1rem; line-height: 1.66; }
.service-icon { color: var(--red); opacity: 0.85; }
.service-icon svg { width: 40px; height: 40px; }
@media (max-width: 620px) { .service { grid-template-columns: auto 1fr; } .service-icon { display: none; } }

.services-extra { margin-top: 2.6rem; padding: 1.3rem 1.6rem; border-left: 2px solid var(--red); color: var(--paper-70); background: var(--ink-700); font-size: 1rem; }
.services-extra strong { color: var(--paper); }

/* ---------------------------------------------------------------- TRACK RECORD */
.track .section-title { margin-bottom: 3rem; }
.ledger { list-style: none; margin-bottom: clamp(4rem, 9vw, 7rem); }
.ledger-row { display: grid; grid-template-columns: 1fr; gap: 0.4rem 1.5rem; padding: clamp(1.4rem, 3vw, 2.1rem) 0; border-top: 1px solid var(--paper-08); transition: background var(--dur-ui) var(--ease); }
.ledger-row:last-child { border-bottom: 1px solid var(--paper-08); }
.ledger-row:hover { background: linear-gradient(90deg, rgba(216,29,30,0.04), transparent 60%); }
.ledger-name { font-size: clamp(1.4rem, 3vw, 2.1rem); font-weight: 600; letter-spacing: -0.02em; }
.ledger-desc { color: var(--paper-70); font-size: 0.98rem; align-self: center; max-width: 52ch; }
.ledger-tag { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); align-self: center; }
@media (min-width: 800px) { .ledger-row { grid-template-columns: minmax(200px, 1fr) 1.4fr auto; align-items: baseline; } .ledger-tag { justify-self: end; } }

.pullquote { position: relative; text-align: center; padding: clamp(2rem, 6vw, 4rem) 0; }
.pullquote-mark { display: block; font-family: var(--serif); font-size: clamp(5rem, 14vw, 11rem); font-weight: 600; line-height: 0.4; color: var(--red); opacity: 0.18; user-select: none; }
.pullquote blockquote p { font-family: var(--serif); font-optical-sizing: auto; font-size: var(--fs-quote); font-style: italic; font-weight: 400; line-height: 1.16; letter-spacing: -0.01em; max-width: 20ch; margin: 0 auto; }
.pullquote figcaption { margin-top: 2rem; font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--red); display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
.pq-rule { width: 54px; height: 2px; background: var(--red); }

/* ---------------------------------------------------------------- CONTACT */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-lead { font-size: var(--fs-lead); color: var(--paper-70); max-width: 40ch; line-height: 1.5; margin-bottom: 2.2rem; }

.contact-details { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2.2rem; }
.contact-link, .contact-note { display: flex; align-items: center; gap: 0.85rem; font-size: 1.05rem; color: var(--paper-70); }
.contact-link { width: fit-content; position: relative; }
.contact-link span { position: relative; }
.contact-link span::after { content: ''; position: absolute; left: 0; bottom: -3px; width: 0; height: 1px; background: var(--red); transition: width var(--dur-ui) var(--ease); }
.contact-link:hover { color: var(--paper); }
.contact-link:hover span::after { width: 100%; }
.contact-link svg, .contact-note svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--red); }
.contact-note { color: var(--paper-45); }

.social-links { display: flex; gap: 0.8rem; }
.social-links a { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1px solid var(--paper-14); transition: border-color var(--dur-ui) var(--ease), background var(--dur-ui) var(--ease); }
.social-links a:hover { border-color: var(--red); background: rgba(216,29,30,0.08); }
.social-links svg { width: 18px; height: 18px; }

/* Form — underline fields with floating labels */
.contact-form { display: flex; flex-direction: column; gap: 1.6rem; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; padding: 1.4rem 0 0.6rem; background: transparent; border: none;
  border-bottom: 1px solid var(--paper-14); color: var(--paper);
  font-family: var(--sans); font-size: 1.0625rem; font-weight: 400;
  outline: none; border-radius: 0; -webkit-appearance: none;
  transition: border-color var(--dur-ui) var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field label { position: absolute; left: 0; top: 1.35rem; font-size: 1.0625rem; color: var(--paper-45); pointer-events: none; transform-origin: left top; transition: transform var(--dur-ui) var(--ease-out), color var(--dur-ui) var(--ease); }
.field .optional { font-size: 0.8em; color: var(--paper-24); }
.field input:focus + label, .field textarea:focus + label,
.field input:not(:placeholder-shown) + label, .field textarea:not(:placeholder-shown) + label {
  transform: translateY(-1.35rem) scale(0.72); color: var(--paper-70); letter-spacing: 0.08em; text-transform: uppercase;
}
.field::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--red); transition: width var(--dur-ui) var(--ease-out); }
.field:focus-within::after { width: 100%; }
.field input:focus, .field textarea:focus { border-bottom-color: var(--paper-24); }
.field-error { display: none; margin-top: 0.5rem; font-size: 0.75rem; color: var(--red); letter-spacing: 0.02em; }
.field.error input, .field.error textarea { border-bottom-color: var(--red); }
.field.error .field-error { display: block; }
.btn-success { background: #1c6b2e !important; }

/* ---------------------------------------------------------------- FOOTER */
.site-footer { padding: clamp(3.5rem, 7vw, 5rem) 0 2rem; border-top: 1px solid var(--paper-08); background: var(--ink-900); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding-bottom: 2.8rem; border-bottom: 1px solid var(--paper-08); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 3rem; } }
.logo--footer { margin-bottom: 1.1rem; }
.footer-brand p { color: var(--paper-45); font-size: 0.92rem; max-width: 34ch; line-height: 1.7; }
.footer-links h4, .footer-contact h4 { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--paper-45); margin-bottom: 1.1rem; }
.footer-links a, .footer-contact a { display: block; font-size: 0.92rem; color: var(--paper-70); padding: 0.32rem 0; }
.footer-links a:hover, .footer-contact a:hover { color: var(--red); }
.footer-bottom { display: flex; flex-direction: column; gap: 0.5rem; padding-top: 1.8rem; font-size: 0.8rem; color: var(--paper-45); }
@media (min-width: 620px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
/* Brand --red (#d81d1e) is only 3.89:1 on the near-black footer, which fails
   AA at this size. --red-link is the same hue lifted to 4.70:1. Used for small
   red text on dark only — the brand red is untouched everywhere else. */
.footer-credit a { color: var(--red-link); font-weight: 600; }
.footer-credit a:hover { color: var(--paper); }

/* Contact form status line (aria-live region) */
.form-status { margin: 0.9rem 0 0; font-size: 0.9375rem; line-height: 1.5; min-height: 1.4em; }
.form-status:empty { display: none; }
.form-status.is-ok { color: var(--paper); }
.form-status.is-error { color: var(--red-link); }

/* ---------------------------------------------------------------- BACK TO TOP */
.back-to-top { position: fixed; bottom: 1.6rem; right: 1.6rem; width: 46px; height: 46px; background: var(--ink-700); border: 1px solid var(--paper-14); color: var(--paper); display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 90; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity var(--dur-ui) var(--ease), visibility var(--dur-ui) var(--ease), transform var(--dur-ui) var(--ease-out), background var(--dur-ui) var(--ease), border-color var(--dur-ui) var(--ease); }
.back-to-top.visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--red); border-color: var(--red); }
.back-to-top svg { width: 20px; height: 20px; }

/* ---------------------------------------------------------------- REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-mask > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-angle-path { animation: none; stroke-dashoffset: 0; }
  .hero-bg { transform: none !important; }
  .scroll-line::after { animation: none; }
  .about-figure:hover img { transform: none; }
  * { scroll-behavior: auto !important; }
}
