:root {
  --petrol: #04222A;
  --teal: #0B7F86;
  --teal-deep: #08666C;
  --mint: #A9E3D3;
  --flame: #FF6B0A;
  --ember: #D93A00;
  --bone: #F4EFE6;
  --butter: #FFC94D;
  --heat: #0B7F86;
  --gutter: clamp(16px, 3vw, 48px);
  --display: "Bricolage Grotesque", Impact, sans-serif;
  --body: "Instrument Sans", Arial, sans-serif;
  --mono: "DM Mono", Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--petrol); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  background: var(--petrol);
  color: var(--bone);
  font: 400 clamp(1rem, 1.2vw, 1.25rem)/1.5 var(--body);
  overflow-x: clip;
}
a { color: inherit; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--butter); outline-offset: 3px; }

.mono { font-family: var(--mono); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.label { margin-bottom: 2rem; }
.skip { position: fixed; left: -999px; z-index: 100; background: var(--butter); color: var(--petrol); padding: .75rem 1rem; }
.skip:focus { left: 16px; top: 16px; }

/* Split characters */
.w { display: inline-block; white-space: nowrap; }
.c { display: inline-block; will-change: transform; }

/* Fixed layers */
#film { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh; z-index: 0; }
.grain {
  position: fixed; inset: -50%; z-index: 40; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(4) infinite;
}
@keyframes grain { 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -2%); } }

.loader {
  position: fixed; inset: 0; z-index: 60; background: var(--petrol);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
}

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; justify-content: space-between; align-items: center;
  height: 64px; padding: 0 var(--gutter); color: var(--bone);
  background: var(--petrol); border-bottom: 1px solid rgba(169,227,211,.25);
}
.nav a { text-decoration: none; min-height: 44px; }
.nav__brand { display: flex; align-items: center; gap: .6rem; font: 600 1.15rem var(--display); }
.nav__brand img { width: 36px; height: 36px; }
.nav__phone { display: flex; align-items: center; }
.nav a:hover { color: var(--butter); }

.dial {
  position: fixed; right: var(--gutter); bottom: 24px; z-index: 30;
  display: flex; align-items: center; gap: .6rem; padding: .45rem .8rem .45rem .45rem;
  background: var(--petrol); color: var(--bone); border: 1px solid var(--heat); border-radius: 4px;
}
.dial b { font-weight: 500; }
.dial__ring { position: relative; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--heat); }
.dial__ring i { position: absolute; left: 50%; top: 2px; width: 2px; height: 11px; margin-left: -1px; background: var(--heat); transform-origin: 50% 11px; }

.solid { position: relative; z-index: 2; }
.chapter { position: relative; z-index: 1; }
.sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }

/* Hero */
.hero { height: 300vh; }
.hero .sticky {
  display: flex; flex-direction: column; justify-content: flex-end; padding: 0 var(--gutter) 28px;
  background: linear-gradient(180deg, rgba(4,34,42,.2) 40%, rgba(4,34,42,.8));
}
.eyebrow { margin-bottom: auto; padding-top: 88px; color: var(--mint); }
.hero__title { font: 600 clamp(3rem, 11.5vw, 15rem)/.98 var(--display); letter-spacing: -.03em; }
.hero__line { display: block; white-space: nowrap; }
.hero__line--flame { color: var(--flame); text-align: right; }
.hero__foot { display: flex; flex-wrap: wrap; gap: 1rem 3rem; justify-content: space-between; align-items: center; margin-top: 1.5rem; padding-right: 150px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.btn {
  display: inline-flex; gap: .8rem; align-items: center; min-height: 56px; padding: 0 1.75rem;
  background: var(--flame); color: var(--petrol); font: 600 1.2rem var(--display); text-transform: uppercase; text-decoration: none;
  border-radius: 4px; transition: background .25s;
}
.btn:hover { background: var(--butter); }
.btn:active { background: var(--butter); filter: brightness(.9); }
a, button { touch-action: manipulation; }
.link:hover { color: var(--butter); }
.toggle button { transition: background .2s, color .2s; }
.toggle button:not(.is-on):hover { color: var(--butter); }
.footer__cols a { display: inline-flex; align-items: center; min-height: 44px; }
.link { display: inline-flex; align-items: center; min-height: 44px; padding: 0; text-decoration: underline; text-underline-offset: 4px; }

/* Stats */
.stats { background: var(--petrol); border-top: 1px solid var(--teal); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats__grid li { padding: clamp(24px, 4vw, 56px) var(--gutter); border-right: 1px solid var(--teal); }
.stats__grid li:last-child { border-right: 0; }
.stats__grid b { display: block; font: 500 clamp(3.5rem, 7vw, 8rem)/1 var(--display); color: var(--mint); }
.marquee { overflow: hidden; background: var(--mint); color: var(--petrol); padding: .4rem 0; }
.marquee__track { display: inline-flex; white-space: nowrap; font: 500 clamp(1.1rem, 2vw, 2rem) var(--display); }
.marquee__track span { padding: 0 .5em; }
.marquee__track em { font-style: normal; color: var(--flame); }

/* Mission */
.mission { background: var(--bone); color: var(--petrol); padding: clamp(80px, 14vw, 220px) var(--gutter); }
.mission__text { font: 500 clamp(2rem, 5vw, 6rem)/1.1 var(--display); letter-spacing: -.02em; }
.mission__text .word { opacity: .13; }

/* Pillars */
.pillars { height: 600vh; }
.pillar {
  position: absolute; inset: 0; padding: clamp(88px, 10vw, 130px) var(--gutter) 100px;
  display: flex; flex-direction: column; justify-content: flex-end; will-change: clip-path;
}
.pillar h2 { font: 600 clamp(3rem, 10.5vw, 13rem)/1 var(--display); letter-spacing: -.03em; }
.pillar > p:last-child { max-width: 34em; margin-top: 1.25rem; font-size: 1.15em; }
.pillar .mono { margin-bottom: auto; }
.pillar--hot { background: linear-gradient(0deg, rgba(217,58,0,.92), rgba(4,34,42,.05) 75%); }
.pillar--cold, .pillar--run { background: var(--petrol); }
.pillar__video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; background-size: cover; background-position: center; }
.pillar--cold::after, .pillar--run::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(4,34,42,.9), rgba(4,34,42,.1) 70%);
}
.pillar { isolation: isolate; }

/* Story */
.story { background: var(--teal-deep); color: var(--bone); padding: clamp(80px, 12vw, 180px) var(--gutter); }
.kinetic { font: 600 clamp(2.6rem, 7.5vw, 9rem)/1 var(--display); letter-spacing: -.03em; }
.story__body { max-width: 38em; margin: clamp(40px, 6vw, 90px) 0 0 auto; display: grid; gap: 1.25rem; font-size: 1.2em; }
.story__sign { display: flex; flex-direction: column; border-top: 1px solid currentColor; padding-top: 1rem; }
.story__sign b { font: 600 1.8rem var(--display); }

/* Service board */
.board { background: var(--petrol); padding: clamp(80px, 10vw, 150px) 0; }
.board__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2rem; padding: 0 var(--gutter); }
.board__note { padding: 1.5rem var(--gutter) 2.5rem; color: var(--mint); }
.toggle { display: flex; border: 1px solid var(--mint); border-radius: 4px; }
.toggle button { min-height: 48px; padding: 0 1.25rem; font-family: var(--mono); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.toggle .is-on { background: var(--mint); color: var(--petrol); }
.rows li {
  position: relative; display: grid; grid-template-columns: 11em 1fr auto; gap: 1rem; align-items: center;
  padding: .75rem var(--gutter); border-top: 1px solid rgba(169,227,211,.3); overflow: hidden;
  transition: color .2s, opacity .3s;
}
.rows li::before { content: ""; position: absolute; inset: 0; z-index: 0; background: var(--row, var(--teal)); transform: scaleY(0); transform-origin: bottom; transition: transform .28s cubic-bezier(.2,.8,.2,1); }
.rows li > * { position: relative; z-index: 1; }
.rows li:hover::before { transform: scaleY(1); }
.rows li:hover { color: var(--petrol); }
.rows li.is-dim { opacity: .35; }
.rows h3 { font: 500 clamp(1.4rem, 3vw, 3.4rem)/1.1 var(--display); letter-spacing: -.015em; }
.rows .mono { font-size: .75rem; }
@media (min-width: 1024px) { .rows li { padding-right: calc(var(--gutter) + 130px); } }
.float { position: fixed; left: 0; top: 0; z-index: 5; width: 300px; aspect-ratio: 4/3; object-fit: cover; pointer-events: none; opacity: 0; border-radius: 4px; }

/* Work order */
.work { background: var(--bone); color: var(--petrol); padding: clamp(80px, 10vw, 150px) var(--gutter); overflow: hidden; }
.sheet {
  max-width: 820px; margin: clamp(40px, 5vw, 80px) auto 0; background: #FFFDF8; padding: clamp(20px, 3vw, 40px);
  border: 2px solid var(--petrol); transform: rotate(-1.4deg); touch-action: pan-y; cursor: grab; user-select: none;
}
.sheet.is-held { cursor: grabbing; }
.sheet__top { display: flex; justify-content: space-between; padding-bottom: 1rem; border-bottom: 2px solid var(--petrol); }
.sheet ol { counter-reset: s; }
.sheet li { position: relative; counter-increment: s; padding: 1.25rem 7.5rem 1.25rem 3rem; border-bottom: 1px dashed var(--petrol); }
.sheet li:last-child { border-bottom: 0; }
.sheet li::before { content: counter(s); position: absolute; left: 0; top: 1.1rem; font: 600 2rem var(--display); color: var(--teal); }
.sheet h3 { font: 600 clamp(1.4rem, 3vw, 2.3rem)/1.1 var(--display); }
.stamp {
  position: absolute; right: 0; top: 50%; margin-top: -1rem; padding: .25rem .5rem; rotate: -9deg;
  border: 3px solid var(--ember); color: var(--ember); font: 500 .8rem var(--mono); font-style: normal; text-transform: uppercase; letter-spacing: .08em;
}

/* CTA */
.cta { height: 300vh; }
.cta .sticky {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 80px var(--gutter);
  background: linear-gradient(90deg, rgba(4,34,42,.94), rgba(4,34,42,.82) 55%, rgba(4,34,42,.15) 88%);
}
.cta__title { font: 600 clamp(2.6rem, 7.5vw, 9rem)/1 var(--display); letter-spacing: -.03em; max-width: 10em; margin-bottom: 2rem; }

/* Footer */
.footer { background: var(--petrol); padding: clamp(48px, 6vw, 88px) var(--gutter) 0; overflow: hidden; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer__cols p + p { margin-top: .5rem; }
.footer__legal { display: grid; gap: .4rem; margin-top: 3rem; padding: 1rem 0 2rem; border-top: 1px solid var(--teal); font-size: .75rem; color: var(--mint); text-transform: none; letter-spacing: .03em; }
.footer__word { font: 600 25vw/.72 var(--display); letter-spacing: -.05em; text-transform: uppercase; color: var(--teal); white-space: nowrap; margin-bottom: -.04em; }

.mobilebar { display: none; }

.cursor { position: fixed; left: 0; top: 0; z-index: 50; width: 14px; height: 14px; margin: -7px; border-radius: 50%; background: var(--heat); pointer-events: none; opacity: 0; transition: width .2s, height .2s, margin .2s, background .2s; }
.cursor.is-big { width: 54px; height: 54px; margin: -27px; mix-blend-mode: difference; background: #fff; }
.toast { position: fixed; left: 50%; bottom: 90px; z-index: 55; translate: -50% 0; padding: .6rem 1rem; background: var(--butter); color: var(--petrol); opacity: 0; pointer-events: none; transition: opacity .2s; border-radius: 4px; }
.toast.is-on { opacity: 1; }
.spark { position: fixed; z-index: 45; width: 7px; height: 7px; border-radius: 50%; pointer-events: none; }

@media (hover: none), (pointer: coarse) { .cursor, .float { display: none; } }

@media (max-width: 767px) {
  .dial { bottom: calc(68px + env(safe-area-inset-bottom)); right: 16px; }
  .hero__line { white-space: normal; }
  .hero__line--flame { text-align: left; }
  .hero__title { font-size: clamp(3rem, 16vw, 6rem); }
  .hero__foot { padding-right: 0; padding-bottom: 60px; }
  .hero__foot .actions .link { padding-right: 90px; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stats__grid li:nth-child(2) { border-right: 0; }
  .stats__grid li:nth-child(-n+2) { border-bottom: 1px solid var(--teal); }
  .pillar h2 { font-size: 14vw; }
  .pillar { padding-bottom: 130px; }
  .rows li { grid-template-columns: 1fr auto; }
  .rows .group { grid-column: 1 / -1; }
  .rows .what { grid-column: 1 / -1; }
  .sheet li { padding-right: 0; padding-bottom: 3rem; }
  .stamp { top: auto; bottom: .8rem; right: auto; left: 3rem; }
  .cta .sticky { background: rgba(4,34,42,.62); padding-bottom: 130px; }
  .footer__cols { grid-template-columns: 1fr; }
  .footer { padding-bottom: 56px; }
  .mobilebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: grid; grid-template-columns: 1fr 1fr; }
  .mobilebar a { display: flex; align-items: center; justify-content: center; min-height: calc(56px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--flame); color: var(--petrol); font: 600 1.15rem var(--display); text-transform: uppercase; text-decoration: none; }
  .mobilebar a + a { background: var(--mint); }
}

.no-motion .hero, .no-motion .cta { height: 100vh; }
.no-motion .pillars { height: auto; }
.no-motion .pillars .sticky { position: static; height: auto; }
.no-motion .pillar { position: relative; inset: auto; min-height: 100vh; }
.no-motion .pillar--hot { background: var(--ember); }
.no-motion .mission__text .word { opacity: 1; }

/* Short screens, such as phones held sideways */
@media (max-height: 500px) {
  .eyebrow { display: none; }
  .hero .sticky { padding-top: 70px; padding-bottom: 12px; justify-content: flex-end; }
  .hero__title { font-size: 19vh; }
  .hero__line { white-space: nowrap; }
  .hero__line--flame { text-align: left; }
  .hero__foot { margin-top: .5rem; padding-bottom: 0; flex-wrap: nowrap; }
  .hero__foot > p { display: none; }
  .btn { min-height: 44px; }
  .pillar { padding: 68px var(--gutter) 16px; }
  .pillar h2 { font-size: 26vh; }
  .pillar > p:last-child { margin-top: .25rem; font-size: 1em; padding-right: 130px; }
  .cta .sticky { padding: 68px var(--gutter) 12px; }
  .cta__title { font-size: 17vh; max-width: none; margin-bottom: .5rem; }
  .dial { bottom: 8px; }
  .mobilebar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .hero, .cta { height: 100vh; }
  .pillars { height: auto; }
  .pillars .sticky { position: static; height: auto; }
  .pillar { position: relative; inset: auto; min-height: 100vh; }
  .mission__text .word { opacity: 1; }
}
