/* ===== Tokens ===== */
:root{
  --black: #0a0a0a;
  --black-deep: #050505;
  --red: #d81e24;
  --red-bright: #ff4d47;
  --red-deep: #3d0a0c;
  --white: #f5f5f3;
  --grey: #8a8a88;
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --motion-fast: .3s;
  --motion-base: .6s;
  --motion-slow: 1.2s;
  --ease-brand: cubic-bezier(.22,.61,.36,1);
  --side-pad: 20px;
}

@media (min-width: 768px){
  :root{ --side-pad: 48px; }
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: auto; }
body{
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; }
h1,h2,h3,p,ul{ margin: 0; }
ul{ padding: 0; list-style: none; }

.skip-link{
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--red);
  color: var(--white);
  padding: 12px 20px;
  z-index: 1000;
  font-family: var(--font-body);
  font-weight: 600;
}
.skip-link:focus{ left: 12px; top: 12px; }

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

/* ===== Typography ===== */
.display{
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.02;
  color: var(--white);
}
.display--xl{ font-size: clamp(2.6rem, 9vw, 6rem); }
.display--lg{ font-size: clamp(1.9rem, 6vw, 3.4rem); }
.display--brand{
  color: transparent;
  -webkit-text-stroke: 2px var(--white);
  font-size: clamp(4rem, 22vw, 11rem);
}

.eyebrow{
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin-bottom: 14px;
}

.lede{
  font-size: 1.05rem;
  color: var(--grey);
  margin-top: 18px;
  margin-bottom: 30px;
}

.body-text{
  max-width: 46ch;
  font-size: 1.05rem;
  color: #cfcfcd;
  margin-top: 20px;
}
.body-text--center{ max-width: 52ch; margin-left: auto; margin-right: auto; text-align: center; }

.service-list{
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.service-list li{
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  padding-left: 22px;
  position: relative;
}
.service-list li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 10px;
  height: 2px;
  background: var(--red);
}

.service-tag{
  margin-top: 22px;
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(1.1rem, 2.6vw, 1.6rem);
  border-left: 3px solid var(--red);
  padding-left: 16px;
}

/* ===== Buttons ===== */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background var(--motion-fast) var(--ease-brand), color var(--motion-fast) var(--ease-brand);
}
.btn--primary{
  background: var(--red);
  color: var(--white);
}
.btn--primary:hover, .btn--primary:focus-visible{
  background: #a8171c;
}

/* ===== Persistent brand mark ===== */
.site-mark{
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 60;
  opacity: 1;
  pointer-events: none;
  background: rgba(5,5,5,0.72);
  padding: 8px 14px;
  backdrop-filter: blur(2px);
}
@media (min-width: 768px){
  .site-mark{ left: calc(var(--side-pad) - 14px); }
}
.js .site-mark{
  opacity: 0;
  transition: opacity var(--motion-base) var(--ease-brand);
}
.js .site-mark.is-visible{ opacity: 1; }
.site-mark__text{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
}
.site-mark__text span{ color: var(--red-bright); font-weight: 600; font-size: 0.7rem; display: block; letter-spacing: 0.14em; }

/* ===== Persistent CTA ===== */
.persistent-cta{
  position: fixed;
  z-index: 70;
  right: var(--side-pad);
  bottom: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  background: var(--red);
  color: var(--white);
  text-decoration: none;
  padding: 12px 20px;
  min-height: 48px;
  justify-content: center;
  opacity: 1;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.js .persistent-cta{
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--motion-base) var(--ease-brand), transform var(--motion-base) var(--ease-brand), visibility 0s linear var(--motion-base);
}
.js .persistent-cta.is-visible{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity var(--motion-base) var(--ease-brand), transform var(--motion-base) var(--ease-brand), visibility 0s linear 0s;
}
.persistent-cta span{ font-size: 0.72rem; font-weight: 600; }
.persistent-cta__num{ font-size: 0.95rem; font-weight: 700; }

@media (max-width: 767px){
  .persistent-cta{
    left: var(--side-pad);
    right: var(--side-pad);
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ===== Visual anchor (persistent) ===== */
.visual-anchor{
  position: fixed;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  will-change: transform, opacity;
}
.anchor-svg{
  width: min(70vw, 620px);
  height: auto;
  overflow: visible;
}
.frag{ fill: var(--red); opacity: 0.9; }
.anchor-wordmark{
  position: absolute;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(3.5rem, 26vw, 13rem);
  color: var(--white);
  opacity: 0;
  letter-spacing: 0.02em;
}

/* ===== Scenes ===== */
.scene{
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 90px var(--side-pad);
  overflow: hidden;
}
.scene__content{
  position: relative;
  z-index: 15;
  max-width: 720px;
  text-align: center;
}
.scene__content--left{
  text-align: left;
  margin-left: 0;
  margin-right: auto;
  max-width: 620px;
}
.scene__bg{
  position: absolute;
  inset: 0;
  z-index: 1;
}

.scene-01{ background: var(--black-deep); }
.scene-02{ background: var(--black-deep); }
.scene-03{ background: #0c0505; }
.scene-04{ background: #100404; }
.scene-05{ background: #140505; }
.scene-06{ background: #180606; }
.scene-07{ background: #121212; }

/* noise texture: repeating conic + radial gradients, no image asset */
.noise{
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.035) 0, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.03) 0, transparent 45%),
    repeating-linear-gradient(115deg, rgba(255,255,255,0.015) 0 2px, transparent 2px 4px);
}
.noise--dense{
  background-image:
    radial-gradient(circle at 30% 40%, rgba(255,255,255,0.05) 0, transparent 35%),
    radial-gradient(circle at 70% 60%, rgba(255,255,255,0.04) 0, transparent 40%),
    repeating-linear-gradient(115deg, rgba(255,255,255,0.025) 0 2px, transparent 2px 4px);
}

.light-crack{
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(100deg, transparent 46%, rgba(227,30,36,0.55) 49%, transparent 53%);
  opacity: 0;
}

.vapor{ overflow: hidden; }
.droplet{
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(227,30,36,0.5);
  opacity: 0;
}
.d1{ top: 20%; left: 15%; } .d2{ top: 60%; left: 30%; } .d3{ top: 35%; left: 55%; }
.d4{ top: 70%; left: 70%; } .d5{ top: 15%; left: 80%; }

.light-sweep{
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,0.0) 40%, rgba(255,80,80,0.45) 50%, rgba(255,255,255,0.0) 60%, transparent 100%);
  transform: translateX(-60%);
}

.glow{
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at 50% 55%, rgba(227,30,36,0.28) 0%, transparent 60%);
  opacity: 0;
}
.glow--full{ opacity: 0.5; }

/* ===== Contact scene (calm, not cinematic) ===== */
.scene-07{ align-items: center; }
.contact{
  position: relative;
  z-index: 15;
  width: 100%;
  max-width: 760px;
  text-align: center;
}
.contact__grid{
  margin-top: 40px;
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  text-align: left;
}
@media (min-width: 640px){
  .contact__grid{ grid-template-columns: 1fr 1fr; }
}
.contact__block{
  display: block;
  background: #1a1a1a;
  border-left: 3px solid var(--red);
  padding: 22px 22px 24px;
  text-decoration: none;
  min-height: 48px;
}
.contact__block--phone{ transition: background var(--motion-fast) var(--ease-brand); }
.contact__block--phone:hover, .contact__block--phone:focus-visible{ background: #241111; }
.contact__label{
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 8px;
}
.contact__value{
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--white);
}
.contact__value--small{ font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1.5; }
.contact__link{
  display: inline-block;
  margin-top: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--red-bright);
  text-decoration: underline;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.contact__note{
  margin-top: 30px;
  color: var(--grey);
  font-size: 0.9rem;
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}

.scroll-hint{
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
}
.scroll-hint span{
  display: block;
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--red), transparent);
  animation: scrollhint 1.8s ease-in-out infinite;
}
@keyframes scrollhint{
  0%{ transform: scaleY(0.3); opacity: 0.4; transform-origin: top; }
  50%{ transform: scaleY(1); opacity: 1; transform-origin: top; }
  100%{ transform: scaleY(0.3); opacity: 0.4; transform-origin: bottom; }
}

/* ===== Footer ===== */
.site-footer{
  position: relative;
  z-index: 15;
  background: var(--black-deep);
  padding: 28px var(--side-pad) 40px;
}
.site-footer p{
  max-width: 760px;
  margin: 0 auto;
  font-size: 0.78rem;
  line-height: 1.6;
  color: #6f6f6d;
  text-align: center;
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce){
  .scroll-hint{ display: none; }
  * { scroll-behavior: auto !important; }
}

/* ===== Small mobile scaling ===== */
@media (max-width: 480px){
  .scene{ padding-top: 110px; padding-bottom: 110px; }
  .anchor-svg{ width: 82vw; }
}

/* On narrow screens the centered anchor and the (also centered/near-full-width)
   headline occupy the same space, unlike desktop where left-aligned scenes
   keep clear of it. Dial the anchor back and lift text with a soft shadow
   instead of shrinking type or adding a decorative panel. */
@media (max-width: 767px){
  .visual-anchor{ opacity: 0.6; }
  .display, .eyebrow, .lede, .body-text, .service-list li, .service-tag{
    text-shadow: 0 2px 16px rgba(0,0,0,0.9);
  }
  /* The ghost wordmark is solid, near-white type at headline scale — on a
     390px column it lands directly under the real headline instead of beside
     it as on desktop. The line-art swoosh alone still carries the anchor
     without fighting the actual words for attention. */
  .anchor-wordmark{ display: none; }
  /* Fewer simultaneous animated particles on mobile, per motion-direction.md. */
  .droplet:nth-child(n+4){ display: none; }
}
