/* ==========================================================================
   My Arizona Roofing — "Luxe" homepage
   Display: Bodoni Moda (Didone serif) · Text/labels: Archivo (variable width)
   ========================================================================== */

:root {
  --bone: #f3eee7;
  --paper: #faf7f2;
  --sand: #e8dfd3;
  --ink: #0e1724;
  --ink-2: #4b5565;
  --ink-3: #8a919c;
  --line: rgba(14, 23, 36, 0.14);
  --line-soft: rgba(14, 23, 36, 0.08);
  --copper: #b0683a;
  --copper-hi: #e0a674;
  --copper-deep: #7a4422;
  --night: #0b121c;
  --night-2: #131d2b;
  --line-night: rgba(243, 238, 231, 0.14);

  --metal: linear-gradient(100deg, #7a4422 0%, #c27a45 22%, #f0c39a 38%, #b0683a 55%, #e3a877 72%, #8a4d27 100%);

  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1440px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--copper); color: var(--paper); }

/* film grain over everything — the "printed" feel */
body::after {
  content: "";
  position: fixed; inset: -50%;
  pointer-events: none; z-index: 200;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- type primitives ---------- */
.label {
  font-family: var(--sans);
  font-variation-settings: "wdth" 125;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.label--copper { color: var(--copper); }
.display {
  font-family: var(--serif);
  font-weight: 400;
  font-optical-sizing: auto;
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0;
}
.display em { font-style: italic; color: var(--copper); }
.metal-text {
  background: var(--metal);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: sheen 7s var(--ease-in-out) infinite alternate;
}
@keyframes sheen { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.lede { font-size: clamp(16px, 1.25vw, 18px); color: var(--ink-2); max-width: 46ch; margin: 0; }

/* ---------- buttons ---------- */
.btn {
  --h: 54px;
  position: relative;
  display: inline-flex; align-items: center; gap: 14px;
  height: var(--h); padding: 0 28px;
  border-radius: 999px;
  font-variation-settings: "wdth" 118;
  font-weight: 600; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  overflow: hidden; isolation: isolate;
  transition: transform 0.5s var(--ease), color 0.4s var(--ease);
  will-change: transform;
}
.btn .arrow { transition: transform 0.5s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }
.btn--copper { background: var(--ink); color: var(--paper); }
.btn--copper::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--metal); background-size: 200% 100%;
  transform: translateY(101%); transition: transform 0.6s var(--ease);
}
.btn--copper:hover::before { transform: translateY(0); animation: sheen 3s linear infinite alternate; }
.btn--copper:hover { color: var(--night); }
.btn--ghost { border: 1px solid var(--line); background: rgba(250, 247, 242, 0.5); backdrop-filter: blur(10px); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: var(--copper-hi); }

/* ---------- reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.lines .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.lines .line > span { display: inline-block; transform: translateY(110%); transition: transform 1.3s var(--ease); }
.lines.in .line > span { transform: none; }
.lines.in .line:nth-child(2) > span { transition-delay: 0.09s; }
.lines.in .line:nth-child(3) > span { transition-delay: 0.18s; }
.lines.in .line:nth-child(4) > span { transition-delay: 0.27s; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease), transform 0.6s var(--ease);
  border-bottom: 1px solid transparent;
}
.hdr.scrolled { background: rgba(250, 247, 242, 0.78); backdrop-filter: blur(18px) saturate(1.2); border-color: var(--line-soft); }
.hdr.hide { transform: translateY(-100%); }
.hdr__row { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 36px; height: auto; filter: drop-shadow(0 4px 10px rgba(122, 68, 34, 0.25)); }
.brand__name { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name b { font-variation-settings: "wdth" 125; font-weight: 800; font-size: 15px; letter-spacing: 0.14em; }
.brand__name small { font-variation-settings: "wdth" 125; font-size: 8.5px; letter-spacing: 0.42em; color: var(--copper); font-weight: 600; }
.nav { display: flex; gap: clamp(18px, 2.2vw, 34px); }
.nav a {
  position: relative; font-size: 13px; font-weight: 500; letter-spacing: 0.01em; white-space: nowrap;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--copper);
  transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.hdr__cta { display: flex; align-items: center; gap: 18px; }
.hdr__phone { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.hdr .btn { --h: 44px; padding: 0 20px; font-size: 11px; }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); position: relative; }
.menu-btn span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--ink); transition: transform 0.5s var(--ease); }
.menu-btn span:nth-child(1) { top: 19px; } .menu-btn span:nth-child(2) { top: 26px; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

.overlay {
  position: fixed; inset: 0; z-index: 90; background: var(--night); color: var(--bone);
  clip-path: circle(0% at calc(100% - 44px) 38px); transition: clip-path 0.9s var(--ease);
  display: flex; flex-direction: column; justify-content: center; padding: 100px var(--gutter) 40px;
  visibility: hidden;
}
.menu-open .overlay { clip-path: circle(150% at calc(100% - 44px) 38px); visibility: visible; }
.menu-open .hdr { background: transparent; border-color: transparent; color: var(--bone); }
.menu-open .menu-btn { border-color: var(--line-night); }
.menu-open .menu-btn span { background: var(--bone); }
.overlay nav { display: flex; flex-direction: column; }
.overlay nav a {
  font-family: var(--serif); font-size: clamp(40px, 10vw, 88px); line-height: 1.08;
  display: flex; align-items: baseline; gap: 18px; border-bottom: 1px solid var(--line-night); padding: 6px 0;
}
.overlay nav a small { font-family: var(--sans); font-size: 11px; color: var(--copper-hi); letter-spacing: 0.2em; }
.overlay nav a:hover { color: var(--copper-hi); font-style: italic; }
.overlay__foot { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px 28px; color: rgba(243, 238, 231, 0.6); }

/* ==========================================================================
   HERO — centered, quiet: the emblem, its bezel, the headline, the wordmark
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  padding-top: 76px;
  overflow: hidden;
  background:
    radial-gradient(42% 46% at 50% 30%, rgba(236, 196, 128, 0.32), transparent 72%),
    radial-gradient(60% 55% at 92% 8%, rgba(207, 198, 236, 0.4), transparent 70%),
    linear-gradient(180deg, var(--paper), var(--bone));
  display: flex; flex-direction: column;
}

.hero__body {
  position: relative; z-index: 2; flex: 1;
  display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(24px, 4vw, 72px); align-items: center;
  padding-top: clamp(16px, 3vh, 40px); padding-bottom: clamp(16px, 3vh, 36px);
}

/* the emblem: the real logo, whole, with a slow tilt, a halo, a passing glint, and a bezel */
.emblem { position: relative; perspective: 900px; width: clamp(240px, 26vw, 390px); aspect-ratio: 1; }
.emblem::before { /* halo */
  content: ""; position: absolute; inset: -18%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(240, 196, 120, 0.45), rgba(240, 196, 120, 0.12) 60%, transparent);
  animation: halo 7s ease-in-out infinite;
}
@keyframes halo { 0%, 100% { opacity: 0.75; transform: scale(0.97); } 50% { opacity: 1; transform: scale(1.03); } }
/* the stage leans toward the cursor; the ring orbits the logo in 3D, in front along the bottom, behind along the top */
.emblem__stage { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 1.1s var(--ease); }
.emblem__orbit { position: absolute; inset: -24%; transform-style: preserve-3d; animation: orbitTilt 14s ease-in-out infinite; }
@keyframes orbitTilt { 0%, 100% { transform: rotateX(68deg) rotateY(-7deg); } 50% { transform: rotateX(62deg) rotateY(7deg); } }
.emblem__bezel { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; animation: orbit 28s linear infinite; }
@keyframes orbit { to { transform: rotate(-360deg); } }
.emblem__bezel .r1 { fill: none; stroke: url(#bezelMetal); stroke-width: 0.8; }
.emblem__bezel .r2 { fill: none; stroke: rgba(176, 104, 58, 0.35); stroke-width: 0.5; }
.emblem__bezel text { font-family: var(--sans); font-size: 8px; font-weight: 800; letter-spacing: 0; fill: url(#bezelMetal); }
.emblem__mark {
  position: absolute; inset: 8%;
  transform: translateZ(1px);
  animation: emblemFloat 8s ease-in-out infinite;
}
@keyframes emblemFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.emblem__mark img {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 1px 0 #8a4d27) drop-shadow(0 2px 0 #6f3915) drop-shadow(0 3px 0 #5a2f14) drop-shadow(0 22px 26px rgba(90, 47, 20, 0.35));
}
.emblem__glint {
  position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: url("uploads/logo-mark-copper-640.webp") center / contain no-repeat;
  mask: url("uploads/logo-mark-copper-640.webp") center / contain no-repeat;
  background: linear-gradient(110deg, transparent 38%, rgba(255, 244, 214, 0.75) 50%, transparent 62%);
  background-size: 300% 100%; background-position: 130% 0;
  animation: glint 7s var(--ease-in-out) infinite;
  mix-blend-mode: screen;
}
@keyframes glint { 0%, 62% { background-position: 130% 0; } 85%, 100% { background-position: -30% 0; } }

.hero__copy { min-width: 0; }
.hero__copy .label { display: block; margin-bottom: 22px; color: var(--ink-2); }
.hero__copy h1.label { margin-top: 0; }
.hero .hero__title { font-size: clamp(46px, 6vw, 104px); margin: 0 0 24px; }
.hero .hero__title em {
  font-weight: 400;
  background: linear-gradient(100deg, #6f3915 0%, #9c5426 24%, #b9792f 42%, #d9a54f 50%, #b9792f 58%, #8e4a1f 78%, #6f3915 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: metalsweep 9s ease-in-out infinite alternate;
  padding-right: 0.04em;
}
@keyframes metalsweep { from { background-position: 100% 50%; } to { background-position: 0% 50%; } }
.hero .lede { margin: 0 0 32px; }
.hero__links { display: grid; grid-template-columns: 1fr 1fr; width: min(100%, 560px); }
.hero__links a {
  display: flex; justify-content: space-between; align-items: center; text-align: left;
  padding: 16px 20px; border-left: 1px solid var(--ink); font-size: 14px; font-weight: 500;
  transition: background 0.5s var(--ease), padding 0.5s var(--ease);
}
.hero__links a:last-child { border-right: 1px solid var(--ink); }
.hero__links a:hover { background: rgba(255, 255, 255, 0.55); padding-left: 26px; }
.hero__links a span { transition: transform 0.5s var(--ease); }
.hero__links a:hover span { transform: translateX(4px); }
/* split hero: copy left, emblem + live inspection card right */
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.hero__ctas .btn { white-space: nowrap; }
.hero__ghost { display: inline-flex; gap: 10px; font-size: 14px; font-weight: 600; border-bottom: 1px solid var(--ink); padding: 4px 0; }
.hero__ghost span { transition: transform 0.5s var(--ease); }
.hero__ghost:hover span { transform: translateX(4px); }
.hero__ticks { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; color: var(--ink-2); }
.hero__ticks li { display: flex; align-items: center; gap: 8px; }
.hero__ticks li::before { content: "✓"; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--metal); color: #fff; font-size: 10px; font-weight: 700; }

.hero__visual { position: relative; display: grid; place-items: center; min-height: clamp(380px, 40vw, 600px); }

 }



.hero__word {
  position: relative; z-index: 0;
  font-variation-settings: "wdth" 125; font-weight: 900;
  font-size: 18.6vw; line-height: 0.78; letter-spacing: -0.045em;
  white-space: nowrap; text-align: center; width: 100%; margin: 0 auto -1.2vw; padding: 0;
  color: var(--ink); user-select: none;
}
.hero__word .hw-line { display: block; width: max-content; margin: 0 auto; line-height: 0.84; }
.hero__word .hw-line + .hw-line { margin-top: 0.02em; }
.hero__word .ch { display: inline-block; transform: translateY(105%); transition: transform 1.5s var(--ease); animation: wordWave 8s ease-in-out infinite; animation-delay: calc(var(--i) * 0.11s); }
/* a copper-to-gold wave rolls through the name, left to right */
@keyframes wordWave { 0%, 100% { color: var(--ink); } 22% { color: #6f3915; } 32% { color: #b0683a; } 40% { color: #d9a54f; } 48% { color: #b0683a; } 58% { color: #6f3915; } 70% { color: var(--ink); } }
.hero.ready .hero__word .ch { transform: none; }
.hero__word sup { font-size: max(10px, 0.05em); letter-spacing: 0.18em; position: absolute; right: var(--gutter); top: -2.2em; color: var(--ink-2); font-variation-settings: "wdth" 100; font-weight: 600; }
.hero__word-clip { overflow: hidden; position: relative; padding-top: 2.4em; z-index: 1; }

/* Arizona photographs behind the hero: each drifts slowly and fades into the next */
.hero__slides { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero__slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; opacity: 0; transition: opacity 1.8s ease; transform: scale(1.1); }
.hero__slides img.on { opacity: 1; animation: kenburns 9s linear forwards; }
@keyframes kenburns { from { transform: scale(1.12) translate3d(1.2%, 0, 0); } to { transform: scale(1.02) translate3d(0, 0, 0); } }
/* a cream veil keeps the headline readable on the left; the photograph shows through on the right */
.hero__slides::after { content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(250, 247, 242, 0.95) 0%, rgba(250, 247, 242, 0.88) 36%, rgba(250, 247, 242, 0.42) 64%, rgba(250, 247, 242, 0.16) 100%),
    linear-gradient(180deg, rgba(250, 247, 242, 0.55) 0%, rgba(250, 247, 242, 0) 22%, rgba(250, 247, 242, 0) 52%, rgba(243, 238, 231, 0.96) 84%); }
/* a single faint mountain line on the horizon */
.desert { position: absolute; left: 0; right: 0; bottom: 8vw; height: 16vw; z-index: 0; pointer-events: none; }
.desert svg { position: absolute; left: 0; width: 100%; bottom: 0; height: 100%; }
.desert__far path { fill: rgba(214, 170, 130, 0.22); }
.desert__mid path { fill: rgba(196, 140, 96, 0.18); }

@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-14px) rotate(1deg); } }

/* ==========================================================================
   VIDEO REVEAL
   ========================================================================== */
.film { position: relative; height: 220vh; background: var(--bone); }
.film__stick { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; overflow: hidden; }
.film__frame {
  position: absolute; inset: 0;
  clip-path: inset(var(--ci, 18%) var(--cx, 22%) var(--ci, 18%) var(--cx, 22%) round var(--cr, 28px));
  will-change: clip-path;
}
.film__frame video { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--vs, 1.25)); filter: saturate(0.85) contrast(1.05); }
.film__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 18, 28, 0.15), rgba(11, 18, 28, 0.55)); }
.film__text { position: relative; z-index: 2; text-align: center; color: var(--paper); opacity: var(--to, 0); transform: translateY(calc((1 - var(--to, 0)) * 30px)); }
.film__text .display { font-size: clamp(48px, 9vw, 150px); text-shadow: 0 10px 60px rgba(11, 18, 28, 0.5); }
.film__text .display em { color: var(--paper); }
.film__text .label { color: var(--copper-hi); display: block; margin-bottom: 22px; }
.film__cap { position: absolute; z-index: 2; bottom: 32px; left: var(--gutter); right: var(--gutter); display: flex; justify-content: space-between; color: rgba(250, 247, 242, 0.75); opacity: var(--to, 0); }

/* ==========================================================================
   MARQUEE
   ========================================================================== */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--paper); padding: 26px 0; }
.marquee__track { display: flex; width: max-content; animation: marq 38s linear infinite; }
.marquee--rev .marquee__track { animation-direction: reverse; }
.marquee__track span {
  font-family: var(--serif); font-size: clamp(40px, 6vw, 92px); line-height: 1; padding: 0 0.35em; white-space: nowrap;
}
.marquee__track span.o { color: transparent; -webkit-text-stroke: 1px var(--ink); font-style: italic; }
.marquee__track span.s { color: var(--copper); font-size: 0.5em; align-self: center; }
@keyframes marq { to { transform: translateX(-50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ==========================================================================
   SECTIONS — shared
   ========================================================================== */
.sec { padding: clamp(96px, 14vw, 200px) 0; position: relative; }
.sec__head { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 24px; margin-bottom: clamp(48px, 7vw, 100px); }
.sec__head .label { grid-column: 1; padding-top: 14px; }
.sec__head h2 { grid-column: 2 / span 3; font-size: clamp(40px, 5.4vw, 88px); }
.sec__head p { grid-column: 2 / span 2; margin-top: 28px; }

/* ---------- numbers ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 34px 28px 10px 0; border-right: 1px solid var(--line); padding-left: 24px; }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat__n { font-family: var(--serif); font-size: clamp(64px, 7.4vw, 128px); line-height: 0.95; letter-spacing: -0.03em; font-variant-numeric: lining-nums; }
.stat__n small { font-size: 0.42em; font-style: italic; color: var(--copper); margin-left: 0.06em; }
.stat .label { display: block; margin: 20px 0 12px; color: var(--ink); }
.stat p { margin: 0; font-size: 14px; color: var(--ink-2); max-width: 30ch; }

/* ---------- protection (dark, floating card) ---------- */
.prot { background: var(--night); color: var(--bone); overflow: hidden; }
.prot__glow { position: absolute; width: 80vw; height: 80vw; left: 50%; top: 50%; translate: -50% -50%; background: radial-gradient(closest-side, rgba(176, 104, 58, 0.28), transparent); pointer-events: none; }
.prot__ring {
  position: absolute; right: -12vw; top: 50%; translate: 0 -50%; width: 56vw; aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 60%, rgba(224, 166, 116, 0.6) 75%, transparent 90%);
  -webkit-mask: radial-gradient(closest-side, transparent 96%, #000 97%, #000 99%, transparent 100%);
  mask: radial-gradient(closest-side, transparent 96%, #000 97%, #000 99%, transparent 100%);
  animation: spin 14s linear infinite; pointer-events: none;
}
.prot__ring.r2 { width: 44vw; right: -6vw; animation-duration: 22s; animation-direction: reverse; opacity: 0.6; }
@keyframes spin { to { transform: rotate(360deg); } }
.prot .wrap { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.prot h2 { font-size: clamp(44px, 5.8vw, 96px); }
.prot h2 em { color: var(--copper-hi); }
.prot .lede { color: rgba(243, 238, 231, 0.68); margin-top: 28px; }
.prot .label { color: var(--copper-hi); display: block; margin-bottom: 26px; }
.card3d {
  position: relative; border-radius: 26px; padding: clamp(28px, 3.4vw, 48px);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.6s var(--ease);
}
.card3d-float { animation: float 9s ease-in-out infinite; }
.card3d::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: linear-gradient(140deg, rgba(240, 195, 154, 0.9), transparent 35%, transparent 65%, rgba(176, 104, 58, 0.8));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
  pointer-events: none;
}
.card3d__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 36px; }
.card3d__years { font-family: var(--serif); font-size: clamp(90px, 10vw, 150px); line-height: 0.8; }
.card3d__seal { width: 84px; height: 84px; animation: spin 26s linear infinite; }
.card3d h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin: 0 0 22px; }
.card3d ul { list-style: none; margin: 0 0 30px; padding: 0; }
.card3d li { display: flex; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line-night); font-size: 15px; }
.card3d li::before { content: "✦"; color: var(--copper-hi); font-size: 12px; padding-top: 3px; }

/* ---------- services index with hover image ---------- */
.svc { border-top: 1px solid var(--line); position: relative; isolation: isolate; }
.svc__row {
  position: relative; display: grid; grid-template-columns: 80px 1.3fr 1fr 140px; gap: 24px; align-items: center;
  padding: clamp(24px, 3vw, 40px) 24px; border-bottom: 1px solid var(--line);
  transition: padding 0.6s var(--ease), color 0.4s;
}
.svc__row { transition: background-color 0.5s var(--ease); }
.svc__row:hover { background-color: rgba(224, 166, 116, 0.12); }
.svc__n { font-variation-settings: "wdth" 125; font-size: 12px; letter-spacing: 0.2em; color: var(--copper); }
.svc__t { font-family: var(--serif); font-size: clamp(32px, 4vw, 64px); line-height: 1; letter-spacing: -0.02em; }
.svc__t { transition: color 0.4s; }
.svc__row:hover .svc__t { font-style: italic; color: var(--copper); }
.svc__d { font-size: 15px; color: var(--ink-2); max-width: 40ch; }
.svc__tags { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.svc__tags span { font-variation-settings: "wdth" 120; font-size: 10px; letter-spacing: 0.16em; padding: 6px 10px; border: 1px solid currentColor; border-radius: 999px; opacity: 0.6; }
.svc__img { display: none; }

/* ---------- our standard (sticky) ---------- */
.std { background: var(--bone); }
.std .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 120px); }
.std__left { position: sticky; top: 120px; align-self: start; }
.std__deg { font-family: var(--serif); font-size: clamp(140px, 20vw, 320px); line-height: 0.8; letter-spacing: -0.05em; }
.std__deg sup { font-size: 0.4em; vertical-align: top; position: relative; top: 0.1em; }
.std__left h2 { font-size: clamp(36px, 4vw, 64px); margin: 28px 0 24px; }
.std__step { padding: 44px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 70px 1fr; gap: 10px 20px; }
.std__step:first-child { border-top: 0; padding-top: 10px; }
.std__step .label { color: var(--copper); padding-top: 12px; }
.std__step h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 2.8vw, 42px); line-height: 1.05; margin: 0 0 16px; }
.std__step p { margin: 0; color: var(--ink-2); max-width: 46ch; }
.std__step figure { grid-column: 2; margin: 28px 0 0; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 10; }
.std__step figure img { width: 100%; height: 115%; object-fit: cover; filter: sepia(0.15) saturate(0.88) contrast(1.04); transform: translateY(var(--py, 0)); }

/* ---------- transparency quote (scroll-lit words) ---------- */
.quote { background: var(--paper); }
.quote__text { font-family: var(--serif); font-size: clamp(34px, 4.6vw, 76px); line-height: 1.08; letter-spacing: -0.015em; margin: 0; max-width: 20ch; }
.quote__text .w { opacity: 0.14; transition: opacity 0.3s linear; }
.quote__text .w.lit { opacity: 1; }
.quote__text .w.c { color: var(--copper); font-style: italic; }
.quote__aside { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 64px; }
.quote__aside p { margin: 0; color: var(--ink-2); }
.quote__aside p:first-child { grid-column: 3; }
.quote__aside p:last-child { grid-column: 4; }

/* ---------- process ---------- */
.proc { background: var(--night); color: var(--bone); }
.proc .sec__head h2 em { color: var(--copper-hi); }
.proc .sec__head .label { color: var(--copper-hi); }
.proc__line { position: relative; height: 1px; background: var(--line-night); margin-bottom: 0; }
.proc__line i { position: absolute; inset: 0; background: var(--metal); transform-origin: left; transform: scaleX(var(--p, 0)); }
.proc__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.proc__step { padding: 34px 28px 0 0; position: relative; }
.proc__step::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--copper-hi); box-shadow: 0 0 0 6px rgba(224, 166, 116, 0.15); }
.proc__step .n { font-family: var(--serif); font-style: italic; font-size: 64px; line-height: 1; color: var(--copper-hi); }
.proc__step h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin: 22px 0 14px; }
.proc__step p { margin: 0; color: rgba(243, 238, 231, 0.62); font-size: 15px; }

/* ---------- work (horizontal gallery) ---------- */
.work { padding-bottom: clamp(64px, 8vw, 120px); }
.work__rail {
  display: flex; gap: 20px; overflow-x: auto; padding: 0 var(--gutter) 30px; scroll-snap-type: x mandatory;
  scrollbar-width: none; cursor: grab;
}
.work__rail::-webkit-scrollbar { display: none; }
.work__rail.drag { cursor: grabbing; scroll-snap-type: none; }
.tile { flex: 0 0 auto; width: clamp(280px, 30vw, 460px); scroll-snap-align: start; }
.tile:nth-child(3n + 2) { margin-top: 70px; }
.tile__img { border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--sand); }
.tile__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.55) sepia(0.15) contrast(1.05); transform: scale(1.06); transition: filter 0.9s var(--ease), transform 1.2s var(--ease); pointer-events: none; }
.tile:hover .tile__img img { filter: none; transform: scale(1); }
.tile__cap { display: flex; justify-content: space-between; padding: 16px 4px 0; gap: 16px; }
.tile__cap b { font-family: var(--serif); font-weight: 400; font-size: 24px; }
.tile__cap span { color: var(--ink-2); font-size: 13px; text-align: right; }
.work__foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 30px; }
.work__bar { flex: 1; height: 1px; background: var(--line); position: relative; max-width: 420px; }
.work__bar i { position: absolute; left: 0; top: -1px; height: 3px; width: 20%; background: var(--ink); border-radius: 3px; }

/* ---------- FAQ ---------- */
.faq .wrap { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(40px, 6vw, 120px); }
.faq__left { position: sticky; top: 120px; align-self: start; }
.faq__left h2 { font-size: clamp(38px, 4.4vw, 70px); margin: 24px 0 24px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 30px; padding: 30px 0; font-family: var(--serif); font-size: clamp(22px, 2vw, 30px); line-height: 1.2; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: 0 0 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: background 0.4s, transform 0.6s var(--ease); }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; translate: -50% -50%; }
.faq summary i::after { rotate: 90deg; transition: rotate 0.5s var(--ease); }
.faq details[open] summary i { background: var(--ink); color: var(--paper); transform: rotate(180deg); }
.faq details[open] summary i::after { rotate: 0deg; }
.faq summary:hover { color: var(--copper); }
.faq__a p { margin: 0 0 30px; color: var(--ink-2); max-width: 60ch; animation: faqIn 0.7s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-10px); } }

/* ---------- areas (double marquee) ---------- */
.areas { background: var(--bone); padding-bottom: 0; }
.areas .marquee { background: transparent; border: 0; padding: 6px 0; }
.areas .marquee__track span { font-size: clamp(48px, 8vw, 140px); }
.trust { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); margin-top: clamp(64px, 8vw, 120px); }
.trust > div { padding: 34px 24px 60px 0; border-right: 1px solid var(--line); }
.trust > div + div { padding-left: 24px; }
.trust > div:last-child { border-right: 0; }
.trust b { display: block; font-family: var(--serif); font-weight: 400; font-size: 26px; margin: 14px 0 10px; }
.trust p { margin: 0; font-size: 14px; color: var(--ink-2); }
.trust a { color: var(--copper); border-bottom: 1px solid currentColor; }

/* ---------- CTA + form ---------- */
.cta { background: var(--night); color: var(--bone); overflow: hidden; }
.cta__glow { position: absolute; width: 70vw; height: 70vw; left: -20vw; top: -10vw; background: radial-gradient(closest-side, rgba(176, 104, 58, 0.35), transparent); filter: blur(10px); animation: drift 18s ease-in-out infinite alternate; pointer-events: none; }
@keyframes drift { to { transform: translate(30vw, 20vw); } }
.cta .wrap { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 110px); align-items: start; }
.cta h2 { font-size: clamp(48px, 6.4vw, 110px); margin: 26px 0 30px; }
.cta h2 em { color: var(--copper-hi); }
.cta .lede { color: rgba(243, 238, 231, 0.66); }
.cta .label { color: var(--copper-hi); }
.cta__phone { display: inline-block; margin-top: 44px; font-family: var(--serif); font-size: clamp(36px, 4vw, 60px); border-bottom: 1px solid var(--line-night); }
.cta__phone:hover { color: var(--copper-hi); font-style: italic; }
.launch {
  position: relative; border-radius: 26px; padding: clamp(26px, 3.4vw, 44px);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12); backdrop-filter: blur(16px);
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.7);
}
.launch .label { color: var(--copper-hi); }
.launch__list { list-style: none; margin: 26px 0 32px; padding: 0; display: grid; gap: 4px; counter-reset: l; }
.launch__list li { display: grid; grid-template-columns: 44px 1fr; gap: 2px 14px; padding: 16px 0; border-top: 1px solid var(--line-night); }
.launch__list li::before { counter-increment: l; content: counter(l); grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--night); background: var(--metal); }
.launch__list b { font-family: var(--serif); font-weight: 400; font-size: 22px; color: var(--bone); }
.launch__list span { font-size: 14px; color: rgba(243, 238, 231, 0.62); }
.launch__go { width: 100%; justify-content: space-between; --h: 60px; }
.launch__go::before { border-radius: inherit; }

/* ---------- footer ---------- */
.foot { background: var(--night); color: rgba(243, 238, 231, 0.7); padding: 0 0 40px; border-top: 1px solid var(--line-night); overflow: hidden; }
.foot__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding: 80px 0 60px; }
.foot h4 { margin: 0 0 18px; color: var(--copper-hi); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.foot a:hover { color: var(--bone); }
.foot__word {
  font-variation-settings: "wdth" 125; font-weight: 900; font-size: 13.6vw; line-height: 0.8; letter-spacing: -0.05em;
  color: transparent; -webkit-text-stroke: 1px rgba(243, 238, 231, 0.22); white-space: nowrap; text-align: center; width: max-content; margin: 10px auto 30px;
  user-select: none;
}
.foot__word span { background: var(--metal); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-stroke: 0; animation: sheen 6s ease-in-out infinite alternate; }
.foot__legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-size: 12px; border-top: 1px solid var(--line-night); padding-top: 26px; }

/* ---------- floating pill (follows the reader) ---------- */
.pill {
  position: fixed; left: 50%; bottom: 22px; z-index: 80;
  display: flex; align-items: center; gap: 6px; padding: 6px;
  border-radius: 999px; background: rgba(14, 23, 36, 0.86); backdrop-filter: blur(16px); border: 1px solid rgba(224, 166, 116, 0.35);
  box-shadow: 0 20px 50px -18px rgba(0, 0, 0, 0.6);
  transform: translate(-50%, 140%); transition: transform 0.8s var(--ease);
  white-space: nowrap;
}
.pill.show { transform: translate(-50%, 0); }
.pill a { height: 46px; display: inline-flex; align-items: center; padding: 0 20px; border-radius: 999px; color: var(--bone); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; font-variation-settings: "wdth" 115; }
.pill a.primary { background: var(--metal); background-size: 200% 100%; color: var(--night); animation: sheen 5s ease-in-out infinite alternate; }
.pill a.primary .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--night); margin-right: 10px; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(11, 18, 28, 0.6); } 100% { box-shadow: 0 0 0 10px rgba(11, 18, 28, 0); } }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1340px) {
  .nav, .hdr__phone { display: none; }
  .menu-btn { display: block; }
  .svc__row { grid-template-columns: 50px 1fr 120px; }
  .svc__d { grid-column: 2 / span 2; grid-row: 2; }
}
@media (max-width: 860px) {
  .hdr__row { height: 66px; }
  .hdr .btn { display: none; }
  .hero { padding-top: 66px; }
  .emblem { width: min(62vw, 260px); }
  .hero__body { grid-template-columns: 1fr; }
  .hero__visual { min-height: 0; padding: 24px 0 0; display: flex; flex-direction: column; align-items: center; }
  .hero__ctas .btn { width: 100%; justify-content: space-between; }
  .hero__links { grid-template-columns: 1fr; }
  .hero__links a, .hero__links a:last-child { border-left: 0; border-right: 0; border-top: 1px solid var(--ink); padding: 16px 2px; }
  .hero__word { font-size: 19vw; margin-top: 30px; }
  .hero__slides::after { background: linear-gradient(180deg, rgba(250, 247, 242, 0.9) 0%, rgba(250, 247, 242, 0.84) 55%, rgba(250, 247, 242, 0.55) 72%, rgba(243, 238, 231, 0.97) 92%); }
  .sec__head { grid-template-columns: 1fr; }
  .sec__head .label, .sec__head h2, .sec__head p { grid-column: 1; }
  .sec__head h2 { margin-top: 18px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 28px 16px 28px 0 !important; border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .stat:nth-child(even) { padding-left: 16px !important; border-right: 0; }
  .prot .wrap, .std .wrap, .faq .wrap, .cta .wrap { grid-template-columns: 1fr; }
  .prot__ring { width: 120vw; right: -60vw; }
  .prot__ring.r2 { width: 90vw; right: -40vw; }
  .std__left, .faq__left { position: static; }
  .svc__row { grid-template-columns: 1fr; gap: 10px; }

  .svc__d { grid-column: 1; grid-row: auto; }
  .svc__tags { justify-content: flex-start; }
  .svc__img { display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; margin-top: 8px; }
  .svc__img img { width: 100%; height: 100%; object-fit: cover; filter: sepia(0.15) saturate(0.9); }
  .quote__aside { grid-template-columns: 1fr; }
  .quote__aside p:first-child, .quote__aside p:last-child { grid-column: 1; }
  .proc__grid { grid-template-columns: 1fr; }
  .proc__line { display: none; }
  .proc__step { padding: 30px 0 30px 28px; border-left: 1px solid var(--line-night); }
  .proc__step::before { top: 40px; left: -5px; }
  .tile:nth-child(3n + 2) { margin-top: 0; }
  .tile { width: 78vw; }
  .trust { grid-template-columns: 1fr; }
  .trust > div, .trust > div + div { padding: 26px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .foot__cols { grid-template-columns: 1fr 1fr; }
  .foot__cols > div:first-child { grid-column: 1 / -1; }
  .film { height: 180vh; }
  .pill a { padding: 0 16px; font-size: 11px; }
}


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .reveal, .lines .line > span, .hero__word .ch { opacity: 1; transform: none; }
  .quote__text .w { opacity: 1; }
  .film { height: auto; }
  .film__stick { position: relative; height: 80vh; }
  .film__frame { clip-path: none; }
  .film__text, .film__cap { opacity: 1; transform: none; }
}

.launch__go { background: var(--metal); background-size: 200% 100%; color: var(--night); }
.launch__go:hover { color: var(--night); }

/* ---------- legal pages (privacy, terms) ---------- */
.legal { max-width: 760px; padding-block: 150px 110px; }
.legal h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 6vw, 72px); letter-spacing: -0.02em; line-height: 1; margin: 0 0 12px; }
.legal h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; margin: 48px 0 12px; padding-top: 28px; border-top: 1px solid var(--line); }
.legal h3 { font-size: 15px; font-weight: 700; margin: 26px 0 6px; }
.legal p, .legal li { color: var(--ink-2); max-width: 68ch; }
.legal a { color: var(--copper); border-bottom: 1px solid currentColor; }
.legal + .foot { padding-top: 30px; }
