/* ==========================================================================
   70×7 Autoworx — workshop UI, 2026
   Dark, industrial, red accent. No build step, no framework.
   ========================================================================== */

@view-transition { navigation: auto; }

:root {
  --bg: #09090a;
  --bg-2: #0e0e10;
  --surface: #131316;
  --surface-2: #1a1a1e;
  --surface-3: #232328;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --ink: #f4f1ea;
  --ink-2: #d6d1c8;
  --muted: #9a948b;
  --red: #e10600;
  --red-hot: #ff2b1c;
  --red-deep: #8f0400;
  --red-glow: rgba(225, 6, 0, 0.35);
  --green: #3ddc84;
  --amber: #ffb020;

  --radius: 20px;
  --radius-sm: 12px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1240px;

  --font-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Familjen Grotesk", "Avenir Next", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  color-scheme: dark;
  interpolate-size: allow-keywords;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.nav-locked { overflow: hidden; }

/* subtle grain + top glow behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(225, 6, 0, 0.14), transparent 60%),
    radial-gradient(40rem 25rem at -10% 20%, rgba(255, 255, 255, 0.04), transparent 60%),
    var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; }
button { font: inherit; color: inherit; }

::selection { background: var(--red); color: #fff; }

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

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

.skip {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 100;
  background: #fff; color: #000; padding: 0.5rem 0.8rem; border-radius: 8px;
  font-weight: 600; transition: top 0.2s var(--ease-out);
}
.skip:focus { top: 0.75rem; }

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

/* ---------- Type ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  font-stretch: 80%;
  font-style: italic;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-stretch: 82%;
  font-style: italic;
  text-transform: uppercase;
}

h3 { font-size: 1.45rem; font-stretch: 90%; line-height: 1.05; }
h4 { font-size: 1.1rem; font-stretch: 95%; line-height: 1.15; letter-spacing: -0.01em; }

h1 em, h2 em { color: var(--red); font-style: inherit; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 1.6rem; height: 2px;
  background: var(--red);
  border-radius: 2px;
}

.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--ink-2);
  max-width: 40rem;
  text-wrap: pretty;
}

.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }

/* ---------- Buttons ---------- */

.btn {
  --btn-bg: var(--surface-2);
  --btn-ink: var(--ink);
  --btn-line: var(--line-2);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.1rem;
  padding: 0.75rem 1.35rem;
  border: 1px solid var(--btn-line);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.35s var(--spring),
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.35s var(--ease-out),
    color 0.25s ease;
}

.btn svg { width: 1.15em; height: 1.15em; flex: none; transition: transform 0.35s var(--ease-out); }
.btn:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.3); }
.btn:hover .i-arrow { transform: translateX(4px); }
.btn:active { transform: translateY(0) scale(0.965); transition-duration: 0.08s; }

.btn-red {
  --btn-bg: linear-gradient(180deg, var(--red-hot), var(--red) 55%, #c00500);
  --btn-line: rgba(255, 90, 80, 0.55);
  --btn-ink: #fff;
  background: var(--btn-bg);
  box-shadow: 0 10px 30px -10px var(--red-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-red:hover {
  border-color: rgba(255, 140, 130, 0.8);
  box-shadow: 0 16px 40px -10px rgba(225, 6, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* light sweep on the primary button */
.btn-red::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.8s var(--ease-out);
}
.btn-red:hover::after { transform: translateX(120%); }

.btn-ghost { --btn-bg: transparent; }
.btn-ghost:hover { --btn-bg: rgba(255, 255, 255, 0.06); }

.btn-light { --btn-bg: #fff; --btn-ink: #0a0a0a; --btn-line: #fff; }
.btn-light:hover { --btn-bg: #f1ede6; }

.btn-sm { min-height: 2.5rem; padding: 0.5rem 1rem; font-size: 0.92rem; }
.btn-block { width: 100%; }

/* ripple spawned by JS at the pointer */
.ripple {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
  background: currentColor;
  opacity: 0.28;
  transform: translate(-50%, -50%) scale(0);
  animation: ripple 0.65s var(--ease-out) forwards;
}
@keyframes ripple {
  to { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  background: linear-gradient(var(--red), var(--red)) 0 100% / 0 2px no-repeat;
  padding-bottom: 2px;
  transition: background-size 0.35s var(--ease-out), color 0.2s;
}
.text-link:hover { background-size: 100% 2px; }
.text-link svg { width: 1em; height: 1em; transition: transform 0.3s var(--ease-out); }
.text-link:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  view-transition-name: site-header;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(9, 9, 10, 0.72);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 4.5rem;
}

.mark { display: block; flex: none; border-radius: 10px; transition: transform 0.4s var(--spring); }
.mark:hover { transform: rotate(-2deg) scale(1.04); }
.mark img { height: 3.1rem; width: auto; border-radius: 8px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.site-nav a {
  position: relative;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0.85rem; right: 0.85rem; bottom: 0.3rem;
  height: 2px;
  border-radius: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}

.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.site-nav a[aria-current="page"] { color: #fff; }

.site-nav .nav-cta { display: none; }

.nav-toggle {
  display: none;
  position: relative;
  width: 2.9rem; height: 2.9rem;
  margin-left: auto;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
}
.nav-toggle span {
  position: absolute; left: 50%; top: 50%;
  width: 1.1rem; height: 2px; border-radius: 2px;
  background: #fff;
  transition: transform 0.4s var(--spring);
}
.nav-toggle span:nth-child(1) { transform: translate(-50%, calc(-50% - 4px)); }
.nav-toggle span:nth-child(2) { transform: translate(-50%, calc(-50% + 4px)); }
.nav-open .nav-toggle span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }

.scroll-progress {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--red-deep), var(--red-hot));
  transform-origin: left;
  transform: scaleX(0);
}
@supports (animation-timeline: scroll()) {
  .scroll-progress {
    animation: progress linear both;
    animation-timeline: scroll(root);
  }
}
@keyframes progress { to { transform: scaleX(1); } }

@media (max-width: 980px) {
  .header-cta { display: none; }
  .nav-toggle { display: block; }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: -2;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0.25rem;
    padding: 6rem var(--gutter) 2rem;
    background:
      radial-gradient(30rem 20rem at 100% 0%, rgba(225, 6, 0, 0.18), transparent 60%),
      var(--bg);
    opacity: 0;
    visibility: hidden;
    clip-path: circle(0% at calc(100% - 2.5rem) 2.2rem);
    transition: clip-path 0.6s var(--ease-in-out), opacity 0.3s, visibility 0s 0.6s;
  }
  .nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    clip-path: circle(150% at calc(100% - 2.5rem) 2.2rem);
    transition: clip-path 0.7s var(--ease-in-out), opacity 0.2s, visibility 0s;
  }
  .site-nav a {
    font-family: var(--font-display);
    font-size: clamp(2rem, 9vw, 3rem);
    font-weight: 800;
    font-style: italic;
    font-stretch: 80%;
    text-transform: uppercase;
    line-height: 1.1;
    padding: 0.35rem 0;
    border-radius: 0;
    color: var(--ink);
    opacity: 0;
    transform: translateY(1.2rem);
    transition: opacity 0.4s, transform 0.5s var(--ease-out), color 0.2s;
  }
  .site-nav a::after { left: 0; right: auto; width: 3rem; bottom: 0.2rem; }
  .site-nav a:hover { background: none; color: var(--red-hot); }
  .nav-open .site-nav a {
    opacity: 1;
    transform: none;
    transition-delay: calc(0.12s + var(--i, 0) * 0.05s);
  }
  .site-nav .nav-cta {
    display: inline-flex;
    margin-top: 1.5rem;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-style: normal;
    text-transform: none;
    padding: 0.9rem 1.4rem;
    border-radius: 999px;
    color: #fff;
  }
  .site-nav .nav-cta::after { display: none; }
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(4rem, 9vw, 7.5rem); position: relative; }
.section-tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.section-head > div { max-width: 46rem; }
.section-head p { margin: 1rem 0 0; color: var(--muted); font-size: 1.1rem; max-width: 38rem; }

.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Hero (home) ---------- */

.hero {
  position: relative;
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 6vw, 5rem);
  overflow: clip;
}

.hero::before {
  /* faint engineering grid */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 10%, transparent 70%);
  opacity: 0.55;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero h1 { font-size: clamp(3rem, 8.6vw, 7.2rem); line-height: 0.86; margin-bottom: 1.5rem; }
.hero h1 .line { display: block; overflow: hidden; padding-right: 0.1em; }
.hero h1 .line > span { display: inline-block; }

.js .hero h1 .line > span {
  transform: translateY(105%);
  animation: rise 1s var(--ease-out) forwards;
  animation-delay: calc(0.08s + var(--i, 0) * 0.09s);
}
@keyframes rise { to { transform: none; } }

.hero .lead { margin-bottom: 2rem; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 0;
  list-style: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.85rem;
  color: var(--ink-2);
  white-space: nowrap;
}
.chip svg { width: 0.95rem; height: 0.95rem; color: var(--red-hot); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.85rem 0.4rem 0.7rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-2);
}
.status .dot {
  position: relative;
  width: 0.55rem; height: 0.55rem;
  border-radius: 50%;
  background: var(--muted);
}
.status[data-state="open"] .dot { background: var(--green); }
.status[data-state="maybe"] .dot { background: var(--amber); }
.status[data-state="closed"] .dot { background: var(--red-hot); }
.status[data-state="open"] .dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: ping 1.8s var(--ease-out) infinite;
}
@keyframes ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }

.hero-media { position: relative; }

.hero-photo {
  position: relative;
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.js .hero-photo { clip-path: inset(100% 0 0 0 round 26px); animation: unveil 1.2s 0.2s var(--ease-in-out) forwards; }
.js .hero-photo img { animation: settle 1.8s 0.2s var(--ease-out) forwards; }
@keyframes unveil { to { clip-path: inset(0 0 0 0 round 26px); } }
@keyframes settle { from { transform: scale(1.25); } to { transform: scale(1.06); } }

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.65));
}

.float-card {
  position: absolute;
  z-index: 2;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: rgba(20, 20, 23, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
}
.float-card small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.float-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-style: italic;
  font-stretch: 80%;
  font-weight: 800;
  line-height: 1;
  margin-top: 0.2rem;
}
.float-card strong em { color: var(--red-hot); font-style: inherit; }

.float-card.one { left: -1.75rem; bottom: 18%; }
.float-card.two { right: -1.25rem; top: 10%; }
.js .float-card { opacity: 0; animation: pop 0.8s var(--spring) forwards; }
.js .float-card.one { animation-delay: 1s; }
.js .float-card.two { animation-delay: 1.15s; }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(0.92); } to { opacity: 1; transform: none; } }

.float-card.one { animation-name: pop, bob; animation-duration: 0.8s, 6s; animation-delay: 1s, 1.8s; animation-iteration-count: 1, infinite; animation-timing-function: var(--spring), ease-in-out; animation-fill-mode: forwards, none; }
@keyframes bob { 50% { translate: 0 -6px; } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { aspect-ratio: 16 / 11; }
  .float-card.one { left: 0.75rem; bottom: 0.75rem; }
  .float-card.two { right: 0.75rem; top: 0.75rem; }
}

/* ---------- Ticker ---------- */

.ticker {
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker ul {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding: 1.15rem 1.5rem;
  margin: 0;
  list-style: none;
}
.ticker li {
  display: flex;
  align-items: center;
  gap: 3rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  font-style: italic;
  font-stretch: 85%;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.ticker li::after { content: "×"; color: var(--red); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding: 0;
  margin: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}
.stats li {
  padding: clamp(1.4rem, 3vw, 2.2rem);
  background: var(--bg-2);
  transition: background-color 0.3s;
}
.stats li:hover { background: var(--surface); }
.stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  font-style: italic;
  font-stretch: 78%;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.5rem;
}
.stats strong .unit { color: var(--red-hot); }
.stats li > span { color: var(--muted); font-size: 0.95rem; }

@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ---------- Service cards ---------- */

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 960px) { .cards-3 { grid-template-columns: 1fr; } }

.svc-card {
  --mx: 50%; --my: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.5s var(--ease-out), border-color 0.3s, box-shadow 0.5s var(--ease-out);
}
.svc-card::before {
  /* pointer-follow glow */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(28rem circle at var(--mx) var(--my), rgba(225, 6, 0, 0.14), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
}
.svc-card:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9); }
.svc-card:hover::before { opacity: 1; }
.svc-card:active { transform: translateY(-2px) scale(0.99); transition-duration: 0.1s; }

.svc-card .media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.svc-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out), filter 0.6s; filter: saturate(0.85); }
.svc-card:hover .media img { transform: scale(1.07); filter: saturate(1.05); }
.svc-card .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, var(--surface)); }

.svc-card .num {
  position: absolute;
  top: 1rem; left: 1rem;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-2);
}

.svc-card .body { position: relative; z-index: 2; display: flex; flex-direction: column; flex: 1; padding: 0.5rem 1.5rem 1.5rem; }
.svc-card h3 { font-size: 2rem; font-style: italic; font-stretch: 80%; text-transform: uppercase; margin-bottom: 0.6rem; }
.svc-card p { color: var(--muted); }

.ticks { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 0.5rem; }
.ticks li { display: flex; gap: 0.6rem; align-items: flex-start; color: var(--ink-2); }
.ticks li::before {
  content: "";
  flex: none;
  width: 1.1rem; height: 1.1rem;
  margin-top: 0.22rem;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 62% no-repeat,
    var(--red);
}

.svc-card .go {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-weight: 600;
}
.svc-card .go .arrow {
  display: grid; place-items: center;
  width: 2.4rem; height: 2.4rem;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  transition: background-color 0.3s, border-color 0.3s, transform 0.5s var(--spring);
}
.svc-card .go svg { width: 1rem; height: 1rem; }
.svc-card:hover .go .arrow { background: var(--red); border-color: var(--red); transform: rotate(-45deg); }

/* ---------- Stage ladder ---------- */

.stages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  counter-reset: stage;
}
@media (max-width: 960px) { .stages { grid-template-columns: 1fr; } }

.stage {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  overflow: hidden;
  transition: border-color 0.3s, transform 0.5s var(--ease-out);
}
.stage:hover { border-color: rgba(225, 6, 0, 0.5); transform: translateY(-4px); }

.stage .tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.stage h3 {
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-style: italic;
  font-stretch: 75%;
  text-transform: uppercase;
  margin: 0.4rem 0 0.75rem;
}
.stage h3 em { color: var(--red); font-style: inherit; }
.stage > p { color: var(--muted); }

.meter {
  display: flex;
  gap: 4px;
  margin: 0.4rem 0 1.4rem;
}
.meter i {
  flex: 1;
  height: 8px;
  border-radius: 2px;
  background: var(--surface-3);
  transform-origin: left;
}
.meter i.on { background: linear-gradient(90deg, var(--red-deep), var(--red-hot)); }
.js .reveal .meter i.on { transform: scaleX(0); transition: transform 0.5s var(--ease-out); transition-delay: calc(0.3s + var(--n, 0) * 0.06s); }
.js .reveal.in .meter i.on { transform: none; }

.stage .gain {
  display: flex;
  gap: 1.5rem;
  padding: 1rem 0;
  margin-bottom: 1rem;
  border-block: 1px solid var(--line);
}
.stage .gain div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  font-style: italic;
  font-stretch: 80%;
  line-height: 1;
}
.stage .gain div span { font-size: 0.85rem; color: var(--muted); }

.stage .needs-label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.6rem; }
.stage .ticks { margin-bottom: 1.5rem; }
.stage .text-link { margin-top: auto; }

/* ---------- Photo rail ---------- */

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(240px, 28vw, 340px);
  gap: 1rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  padding-inline: var(--gutter);
  margin-inline: calc(var(--gutter) * -1);
  scrollbar-width: thin;
  scrollbar-color: var(--surface-3) transparent;
}
@media (min-width: 1320px) {
  .rail { padding-inline: calc((100vw - var(--max)) / 2 + var(--gutter)); margin-inline: calc((100vw - var(--max)) / -2 - var(--gutter)); }
}

.rail-item {
  position: relative;
  scroll-snap-align: start;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  text-decoration: none;
  color: #fff;
  background: var(--surface);
}
.rail-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.rail-item:hover img { transform: scale(1.06); }
.rail-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.85)); }
.rail-item .cap {
  position: absolute;
  left: 1.1rem; right: 1.1rem; bottom: 1rem;
  z-index: 1;
}
.rail-item .cap small { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }
.rail-item .cap strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-stretch: 82%;
  font-size: 1.6rem;
  text-transform: uppercase;
  line-height: 1;
  margin-top: 0.2rem;
}

.rail-controls { display: flex; gap: 0.5rem; }
.icon-btn {
  display: grid; place-items: center;
  width: 3rem; height: 3rem;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--surface);
  cursor: pointer;
  transition: background-color 0.25s, transform 0.35s var(--spring), border-color 0.25s;
}
.icon-btn:hover { background: var(--surface-3); border-color: rgba(255, 255, 255, 0.3); }
.icon-btn:active { transform: scale(0.9); }
.icon-btn svg { width: 1.1rem; height: 1.1rem; }

/* ---------- Process ---------- */

.process {
  display: grid;
  grid-template-columns: repeat(var(--steps, 4), 1fr);
  gap: 1.25rem;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: step;
  position: relative;
}
.process li {
  position: relative;
  counter-increment: step;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.3s, background-color 0.3s;
}
.process li:hover { border-color: var(--line-2); background: var(--surface-2); }
.process li::before {
  content: counter(step, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 2.8rem; height: 2.8rem;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: rgba(225, 6, 0, 0.12);
  border: 1px solid rgba(225, 6, 0, 0.45);
  color: var(--red-hot);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.9rem;
}
.process li::after {
  content: "";
  position: absolute;
  top: calc(1.5rem + 1.4rem);
  left: calc(1.5rem + 2.8rem + 0.5rem);
  right: -1.25rem;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px);
}
.process li:last-child::after { display: none; }
.process h4 { margin-bottom: 0.5rem; }
.process p { color: var(--muted); margin: 0; font-size: 0.98rem; }

@media (max-width: 960px) {
  .process { grid-template-columns: 1fr 1fr; }
  .process li::after { display: none; }
}
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

/* ---------- Feature rows (services overview) ---------- */

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(2rem, 5vw, 3.5rem);
}
.feature + .feature { border-top: 1px solid var(--line); }
.feature:nth-child(even) .feature-media { order: 2; }
.feature-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
}
.feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.feature:hover .feature-media img { transform: scale(1.04); }
.feature h2 { margin-bottom: 1rem; }
.feature p { color: var(--ink-2); max-width: 36rem; }
.feature .ticks { margin-block: 1.25rem 1.75rem; grid-template-columns: 1fr 1fr; gap: 0.6rem 1.25rem; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature-media { order: 0; }
  .feature .ticks { grid-template-columns: 1fr; }
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  position: relative;
  padding-block: clamp(3rem, 8vw, 6.5rem) clamp(2.5rem, 6vw, 4.5rem);
  overflow: clip;
  isolation: isolate;
}
.page-hero .bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.page-hero .bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.38;
  filter: grayscale(0.3) contrast(1.1);
}
.js .page-hero .bg img { animation: hero-bg 1.8s var(--ease-out) both; }
@keyframes hero-bg { from { opacity: 0; transform: scale(1.12); } }
.page-hero .bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 15%, rgba(9, 9, 10, 0.6) 60%, rgba(9, 9, 10, 0.3)),
    linear-gradient(0deg, var(--bg), transparent 50%);
}
.page-hero h1 { margin-bottom: 1.25rem; max-width: 14ch; }
.page-hero .lead { margin-bottom: 1.75rem; }

.crumbs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.crumbs a { text-decoration: none; transition: color 0.2s; }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-hidden] { color: var(--red); }

.js .page-hero .hero-in > * { opacity: 0; animation: fade-up 0.9s var(--ease-out) forwards; }
.js .page-hero .hero-in > :nth-child(2) { animation-delay: 0.08s; }
.js .page-hero .hero-in > :nth-child(3) { animation-delay: 0.16s; }
.js .page-hero .hero-in > :nth-child(4) { animation-delay: 0.24s; }
.js .page-hero .hero-in > :nth-child(5) { animation-delay: 0.32s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* in-page jump links */
.jump {
  position: sticky;
  top: 4.5rem;
  z-index: 10;
  background: rgba(9, 9, 10, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.jump ul {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0.65rem 0;
  margin: 0;
  list-style: none;
}
.jump a {
  display: block;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}
.jump a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }
.jump a.active { color: #fff; border-color: rgba(225, 6, 0, 0.55); background: rgba(225, 6, 0, 0.12); }

/* ---------- Generic tiles ---------- */

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 1rem;
}
.tile {
  position: relative;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s, transform 0.45s var(--ease-out), background-color 0.3s;
}
a.tile:hover, button.tile:hover { border-color: rgba(225, 6, 0, 0.5); transform: translateY(-3px); background: var(--surface-2); }
a.tile:active { transform: scale(0.985); }
.tile .ico {
  display: grid; place-items: center;
  width: 2.6rem; height: 2.6rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: rgba(225, 6, 0, 0.1);
  border: 1px solid rgba(225, 6, 0, 0.35);
  color: var(--red-hot);
}
.tile .ico svg { width: 1.25rem; height: 1.25rem; }
.tile h4 { margin-bottom: 0.4rem; }
.tile p { color: var(--muted); margin: 0; font-size: 0.97rem; }
.tile .more { display: inline-flex; gap: 0.3rem; align-items: center; margin-top: 0.9rem; font-size: 0.9rem; font-weight: 600; color: var(--ink-2); }
.tile .more svg { width: 0.9rem; height: 0.9rem; transition: transform 0.3s var(--ease-out); }
a.tile:hover .more svg { transform: translateX(3px); }

.tile-big h4 { font-size: 1.6rem; font-style: italic; font-stretch: 80%; text-transform: uppercase; }
.tile-big .kicker { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red-hot); margin-bottom: 0.4rem; display: block; }

/* photo tile (fabrication capabilities) */
.ptile {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s, transform 0.5s var(--ease-out);
}
.ptile:hover { border-color: var(--line-2); transform: translateY(-4px); }
.ptile .media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.ptile .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.ptile:hover .media img { transform: scale(1.06); }
.ptile .media.icon-media { display: grid; place-items: center; background: radial-gradient(circle at 50% 60%, rgba(225, 6, 0, 0.18), transparent 60%), var(--surface-2); color: var(--red-hot); }
.ptile .media.icon-media svg { width: 3.5rem; height: 3.5rem; opacity: 0.9; }
.ptile .body { padding: 1.25rem 1.35rem 1.4rem; }
.ptile h4 { margin-bottom: 0.4rem; font-size: 1.25rem; }
.ptile p { color: var(--muted); font-size: 0.97rem; margin: 0; }

/* ---------- Interval cards ---------- */

.intervals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 860px) { .intervals { grid-template-columns: 1fr; } }
.interval {
  padding: 1.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}
.interval.hot { border-color: rgba(225, 6, 0, 0.45); background: linear-gradient(160deg, rgba(225, 6, 0, 0.14), var(--surface) 55%); }
.interval .k { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.interval strong {
  display: block;
  margin: 0.6rem 0 0.4rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-stretch: 78%;
  font-size: clamp(2.2rem, 4vw, 2.9rem);
  line-height: 1;
}
.interval strong small { font-size: 0.45em; color: var(--muted); font-style: normal; font-stretch: 100%; font-weight: 600; }
.interval p { color: var(--muted); margin: 0; }

/* ---------- Comparison table ---------- */

.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-x: auto;
  background: var(--surface);
}
.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td { padding: 1rem 1.25rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare tr:last-child td, .compare tr:last-child th { border-bottom: 0; }
.compare thead th {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-stretch: 80%;
  font-size: 1.4rem;
  text-transform: uppercase;
  background: var(--surface-2);
}
.compare thead th:first-child { font-family: var(--font-mono); font-size: 0.72rem; font-style: normal; letter-spacing: 0.12em; color: var(--muted); }
.compare tbody th { font-family: var(--font-mono); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); width: 11rem; }
.compare td { color: var(--ink-2); font-size: 0.98rem; }
.compare tbody tr { transition: background-color 0.2s; }
.compare tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
.yes { color: var(--green); font-weight: 600; }
.no { color: var(--muted); }

/* ---------- Accordion ---------- */

.acc { display: grid; gap: 0.75rem; }
.acc details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color 0.3s, background-color 0.3s;
}
.acc details:hover { border-color: var(--line-2); }
.acc details[open] { border-color: rgba(225, 6, 0, 0.45); background: var(--surface-2); }
.acc details:target { border-color: var(--red); box-shadow: 0 0 0 4px rgba(225, 6, 0, 0.15); }

.acc summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  font-stretch: 92%;
  line-height: 1.2;
  user-select: none;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary .k {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--red-hot);
  letter-spacing: 0.1em;
  min-width: 1.6rem;
}
.acc summary::after {
  content: "";
  flex: none;
  margin-left: auto;
  width: 2rem; height: 2rem;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background:
    linear-gradient(currentColor, currentColor) center / 10px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 10px no-repeat;
  transition: transform 0.45s var(--spring), background-color 0.3s, border-color 0.3s;
}
.acc details[open] > summary::after {
  transform: rotate(135deg);
  background-color: var(--red);
  border-color: var(--red);
}

.acc details::details-content {
  block-size: 0;
  overflow: hidden;
  opacity: 0;
  transition: block-size 0.45s var(--ease-out), opacity 0.35s, content-visibility 0.45s allow-discrete;
}
.acc details[open]::details-content { block-size: auto; opacity: 1; }

.acc .content { padding: 0 1.35rem 1.35rem; color: var(--ink-2); }
.acc .content > :last-child { margin-bottom: 0; }
.acc .content p { max-width: 48rem; }
.acc .content ul:not(.ticks):not(.nums) { padding-left: 1.2rem; margin: 0 0 1rem; display: grid; gap: 0.45rem; max-width: 48rem; }
.acc .content ul li::marker { color: var(--red); }
.acc .content a:not(.btn) { color: #fff; text-decoration-color: var(--red); text-underline-offset: 3px; }

.nums { display: flex; flex-wrap: wrap; gap: 0.75rem; padding: 0; margin: 0 0 1rem; list-style: none; }
.nums li { padding: 0.9rem 1.1rem; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--line); min-width: 11rem; }
.nums strong { display: block; font-family: var(--font-display); font-weight: 800; font-style: italic; font-stretch: 80%; font-size: 1.7rem; line-height: 1; color: #fff; }
.nums span { font-size: 0.85rem; color: var(--muted); }

/* ---------- Split layout ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.split .sticky { position: sticky; top: 7rem; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split .sticky { position: static; }
}

/* ---------- Callout ---------- */

.callout {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 176, 32, 0.35);
  background: rgba(255, 176, 32, 0.07);
  color: var(--ink-2);
}
.callout svg { flex: none; width: 1.4rem; height: 1.4rem; color: var(--amber); margin-top: 0.15rem; }
.callout p { margin: 0; }
.callout strong { color: #fff; }

/* ---------- Compare pair (pie-cut vs mandrel) ---------- */

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 860px) { .pair { grid-template-columns: 1fr; } }
.pair article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.pair .media { aspect-ratio: 16 / 10; overflow: hidden; }
.pair .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.pair article:hover .media img { transform: scale(1.05); }
.pair .body { padding: 1.5rem; }
.pair h3 { font-style: italic; text-transform: uppercase; font-stretch: 80%; font-size: 1.8rem; margin-bottom: 0.6rem; }
.pair p { color: var(--ink-2); }
.pair dl { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1rem; margin: 1rem 0 0; font-size: 0.95rem; }
.pair dt { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding-top: 0.2rem; }
.pair dd { margin: 0; color: var(--ink-2); }

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(2.5rem, 6vw, 4.5rem);
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(40rem 20rem at 100% 0%, rgba(255, 80, 60, 0.45), transparent 60%),
    linear-gradient(135deg, #b30500, var(--red) 45%, #7a0300);
  box-shadow: 0 40px 80px -40px rgba(225, 6, 0, 0.6);
}
.cta-band::before {
  content: "70×7";
  position: absolute;
  right: -2rem;
  bottom: -3.5rem;
  z-index: -1;
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-stretch: 75%;
  font-size: clamp(9rem, 22vw, 18rem);
  line-height: 1;
  color: rgba(0, 0, 0, 0.18);
  letter-spacing: -0.04em;
}
.cta-band h2 { font-size: clamp(2.2rem, 5vw, 4rem); max-width: 16ch; margin-bottom: 1rem; }
.cta-band p { max-width: 34rem; color: rgba(255, 255, 255, 0.88); font-size: 1.1rem; margin-bottom: 1.75rem; }
.cta-band .btn-ghost { --btn-line: rgba(255, 255, 255, 0.5); }
.cta-band .btn-ghost:hover { --btn-bg: rgba(0, 0, 0, 0.15); }

/* ---------- Reviews ---------- */

.stars { display: inline-flex; gap: 2px; color: var(--amber); }
.stars svg { width: 1rem; height: 1rem; }
.stars .off { color: var(--surface-3); }

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
.review {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.3s, transform 0.45s var(--ease-out), opacity 0.35s;
}
.review:hover { border-color: var(--line-2); transform: translateY(-3px); }
.review .top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.review .svc {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--muted);
}
.review blockquote { margin: 0; color: var(--ink-2); font-size: 1.02rem; line-height: 1.6; flex: 1; }
.review blockquote::before { content: "“"; display: block; font-family: var(--font-display); font-size: 3rem; line-height: 0.6; color: var(--red); margin-bottom: 0.4rem; height: 1.2rem; }
.review .who { display: flex; align-items: center; gap: 0.75rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.review .avatar {
  display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--surface-3), var(--surface-2));
  border: 1px solid var(--line-2);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
}
.review .who strong { display: block; font-size: 0.98rem; }
.review .who div span { display: block; font-size: 0.85rem; color: var(--muted); }

.js .review.enter { animation: fade-up 0.6s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 0.05s); }

.rating-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem 3rem;
  align-items: center;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
@media (max-width: 640px) { .rating-summary { grid-template-columns: 1fr; } }
.rating-summary .score strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-stretch: 78%;
  font-size: clamp(3.5rem, 8vw, 5rem);
  line-height: 1;
}
.rating-summary .score .stars svg { width: 1.25rem; height: 1.25rem; }
.rating-summary .score [data-score-count] { display: block; color: var(--muted); font-size: 0.92rem; margin-top: 0.4rem; }
.bars { display: grid; gap: 0.55rem; }
.bars .row { display: grid; grid-template-columns: 2.5rem 1fr 2rem; gap: 0.75rem; align-items: center; font-size: 0.88rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.bars .track { display: block; height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.bars .fill { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--amber), #ffcf66); transform-origin: left; transform: scaleX(0); transition: transform 1.1s var(--ease-out); }
.bars.in .fill { transform: scaleX(var(--w, 0)); }

/* filter chips */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.filter {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: transparent;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.3s var(--spring);
}
.filter:hover { border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.filter:active { transform: scale(0.94); }
.filter[aria-pressed="true"] { background: #fff; color: #0a0a0a; border-color: #fff; }
.filter .n { opacity: 0.6; margin-left: 0.3rem; font-variant-numeric: tabular-nums; }

/* ---------- Work / albums ---------- */

.albums {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1rem;
}
.album-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  color: #fff;
  text-decoration: none;
  background: var(--surface);
  transition: transform 0.5s var(--ease-out), border-color 0.3s;
}
.album-card:hover { transform: translateY(-5px); border-color: var(--line-2); }
.album-card:active { transform: scale(0.985); }
.album-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.album-card:hover img { transform: scale(1.07); }
.album-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.88)); }
.album-card .cap { position: absolute; left: 1.25rem; right: 1.25rem; bottom: 1.1rem; z-index: 1; display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.album-card strong { font-family: var(--font-display); font-weight: 800; font-style: italic; font-stretch: 80%; font-size: 1.9rem; text-transform: uppercase; line-height: 1; }
.album-card .count { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.3rem 0.6rem; border-radius: 99px; background: rgba(0, 0, 0, 0.5); border: 1px solid rgba(255, 255, 255, 0.2); white-space: nowrap; }
.album-card .blurb { display: block; font-size: 0.9rem; color: rgba(255, 255, 255, 0.75); margin-top: 0.35rem; font-family: var(--font-body); font-style: normal; text-transform: none; font-weight: 400; }

.album-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.album-head h2:focus { outline: none; }
.album-grid {
  columns: 3 260px;
  column-gap: 1rem;
}
.album-grid .shot { margin-bottom: 1rem; break-inside: avoid; }

.shot {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
  cursor: zoom-in;
  transition: border-color 0.3s, transform 0.45s var(--ease-out);
}
.shot:hover { border-color: var(--line-2); }
.shot:active { transform: scale(0.985); }
.shot img { width: 100%; transition: transform 0.9s var(--ease-out), opacity 0.4s; }
.shot:hover img { transform: scale(1.04); }
.js .album-grid .shot { animation: fade-up 0.6s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 0.06s); }

/* job list (work page) */
.gallery { display: grid; gap: 1rem; }
.job {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.5rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.3s;
}
.job:hover { border-color: var(--line-2); }
.job .shot { aspect-ratio: 4 / 3; border: 0; }
.job .shot img { height: 100%; object-fit: cover; }
.job h2 { font-size: 1.7rem; margin-bottom: 0.6rem; }
.job .svc { display: inline-block; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red-hot); margin-bottom: 0.5rem; }
.job p { color: var(--ink-2); }
.job a:not(.shot) { color: #fff; font-weight: 600; text-decoration-color: var(--red); text-underline-offset: 3px; }
@media (max-width: 760px) { .job { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */

.contact-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 960px) { .contact-tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .contact-tiles { grid-template-columns: 1fr; } }
.contact-tiles .tile strong { display: block; font-size: 1.05rem; word-break: break-word; }

.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: 0.75rem 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.hours th { color: var(--ink-2); }
.hours td { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.hours tr.today th, .hours tr.today td { color: #fff; font-weight: 600; }
.hours tr.today th::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--red-hot); margin-right: 0.6rem; vertical-align: middle; }

.panel {
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.panel h3 { margin-bottom: 1rem; }

.form { display: grid; gap: 1.1rem; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form .row2 { grid-template-columns: 1fr; } }

.field { position: relative; display: grid; }
.field input, .field textarea {
  width: 100%;
  padding: 1.45rem 1rem 0.6rem;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  color: var(--ink);
  font: inherit;
  transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field label {
  position: absolute;
  left: 1rem; top: 1.05rem;
  color: var(--muted);
  pointer-events: none;
  transform-origin: left top;
  transition: transform 0.25s var(--ease-out), color 0.25s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--red);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(225, 6, 0, 0.15);
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  transform: translateY(-0.6rem) scale(0.78);
  color: var(--ink-2);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--amber); }

.form-label { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.55rem; display: block; }
.job-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.job-chips .filter { font-size: 0.86rem; padding: 0.42rem 0.85rem; }

.form-note { display: flex; gap: 0.6rem; color: var(--muted); font-size: 0.9rem; margin: 0; }
.form-note svg { flex: none; width: 1.1rem; height: 1.1rem; margin-top: 0.15rem; }

.map {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  filter: grayscale(1) invert(0.92) contrast(0.9) hue-rotate(180deg);
  transition: filter 0.5s;
}
.map:hover { filter: none; }

/* ---------- Footer ---------- */

.site-footer {
  margin-top: clamp(3rem, 8vw, 6rem);
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2.5rem;
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid img { height: 3.6rem; width: auto; border-radius: 8px; margin-bottom: 1rem; }
.footer-grid p { color: var(--muted); max-width: 22rem; font-size: 0.97rem; }
.footer-grid h4 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.footer-grid ul { list-style: none; padding: 0; display: grid; gap: 0.55rem; }
.footer-grid a { color: var(--ink-2); text-decoration: none; transition: color 0.2s; }
.footer-grid a:hover { color: #fff; }
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}

/* floating WhatsApp button */
.fab {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 40;
  display: grid;
  place-items: center;
  width: 3.6rem; height: 3.6rem;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 14px 30px -8px rgba(37, 211, 102, 0.55);
  transition: transform 0.4s var(--spring), box-shadow 0.3s;
  view-transition-name: wa-fab;
}
.fab:hover { transform: scale(1.08) rotate(-6deg); }
.fab:active { transform: scale(0.92); }
.fab svg { width: 1.7rem; height: 1.7rem; }
.js .fab { animation: pop 0.6s 1.4s var(--spring) both; }

/* ---------- Viewer (lightbox) ---------- */

dialog#viewer {
  width: min(1100px, 94vw);
  max-height: 92vh;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--bg-2);
  color: var(--ink);
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  transition:
    opacity 0.35s var(--ease-out),
    transform 0.45s var(--ease-out),
    overlay 0.45s allow-discrete,
    display 0.45s allow-discrete;
}
dialog#viewer[open] { opacity: 1; transform: none; display: grid; grid-template-rows: minmax(0, 1fr) auto; }
@starting-style {
  dialog#viewer[open] { opacity: 0; transform: translateY(20px) scale(0.96); }
}
dialog#viewer::backdrop {
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0);
  transition: background-color 0.4s, backdrop-filter 0.4s, overlay 0.4s allow-discrete, display 0.4s allow-discrete;
}
dialog#viewer[open]::backdrop { background: rgba(0, 0, 0, 0.82); backdrop-filter: blur(8px); }
@starting-style {
  dialog#viewer[open]::backdrop { background: rgba(0, 0, 0, 0); backdrop-filter: blur(0); }
}

dialog#viewer .stage-img {
  display: grid;
  place-items: center;
  background: #000;
  min-height: 0;
  overflow: hidden;
}
dialog#viewer img {
  max-width: 100%;
  max-height: 74vh;
  object-fit: contain;
  transition: opacity 0.25s, transform 0.35s var(--ease-out);
}
dialog#viewer img.swap { opacity: 0; transform: scale(0.98); }
dialog#viewer .bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--line);
}
dialog#viewer .bar p { margin: 0; flex: 1; color: var(--ink-2); font-size: 0.97rem; }
dialog#viewer .bar .counter { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); white-space: nowrap; }
dialog#viewer form { position: absolute; top: 0.75rem; right: 0.75rem; z-index: 2; margin: 0; }
dialog#viewer .icon-btn { background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(8px); }
dialog#viewer [data-prev], dialog#viewer [data-next] { position: absolute; top: 40%; z-index: 2; }
dialog#viewer [data-prev] { left: 0.75rem; }
dialog#viewer [data-next] { right: 0.75rem; }
@media (max-width: 640px) {
  dialog#viewer .bar { flex-wrap: wrap; }
}

/* ---------- Reveal on scroll ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 0.08s);
}
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Page transitions ---------- */

::view-transition-old(root) { animation: vt-out 0.28s var(--ease-in-out) both; }
::view-transition-new(root) { animation: vt-in 0.55s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-14px); filter: blur(4px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(22px); filter: blur(4px); } }

/* fallback for browsers without cross-document view transitions */
body.is-leaving main { opacity: 0; transform: translateY(-12px); transition: opacity 0.22s ease, transform 0.22s ease; }
.js.no-vt main { animation: fade-up 0.55s var(--ease-out) both; }

/* ---------- Utilities ---------- */

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .js .hero h1 .line > span { transform: none; }
  .ticker-track { animation: none; }
  @view-transition { navigation: none; }
}

/* contact layout + compact tiles on phones */
@media (min-width: 901px) {
  .split-form { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
}
@media (max-width: 520px) {
  .contact-tiles { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .contact-tiles .tile { padding: 1rem; }
  .contact-tiles .tile .ico { margin-bottom: 0.6rem; }
  .contact-tiles .tile strong { font-size: 0.85rem; }
  .contact-tiles .tile .more { display: none; }
}
