/* ============================================================================
   STEADRING TECHNOLOGIES
   Steady systems. One ring away.
   ----------------------------------------------------------------------------
   0.  Tokens
   1.  Reset & base
   2.  Typography primitives
   3.  Utilities (container, eyebrow, button, icon)
   4.  The Steady Line — preloader, rail, curtain, cursor
   5.  Nav & mobile menu
   6.  Hero + living canvas
   7.  Marquee
   8.  Flagship + phone mock
   9.  Services
   10. Principles (pinned chapter)
   11. About + dictionary entry
   12. Product page — chips, ringline, trust, how, safety, case
   13. Contact
   14. Footer
   15. Responsive
   16. Reduced motion & no-JS
   ========================================================================== */

/* ---------------------------------------------------------------- 0. Tokens */

:root{
  --paper:  #FAF8F5;
  --ink:    #16302B;
  --ink-2:  #3D5650;
  --brass:  #B26E28;
  --brass-2:#C98F4E;
  --mist:   #E4EBE6;
  --card:   #FFFFFF;

  --ink-08: rgba(22,48,43,.08);
  --ink-12: rgba(22,48,43,.12);
  --ink-18: rgba(22,48,43,.18);
  --ink-60: rgba(22,48,43,.60);

  --font-display: 'Bricolage Grotesque', 'BG Fallback', 'Helvetica Neue', Arial, sans-serif;
  --font-body:    'Public Sans', 'PS Fallback', 'Helvetica Neue', Arial, sans-serif;
  --font-mono:    'Spline Sans Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --nav-h: 68px;
  --rail-x: 22px;
  --maxw: 1200px;
  --pad: clamp(1.25rem, 5vw, 4rem);

  --ease-out: cubic-bezier(.16,1,.3,1);
  --ease-io:  cubic-bezier(.7,0,.2,1);
}

/* Metric-matched fallbacks so swapping in the webfonts causes no layout shift. */
@font-face{
  font-family:'BG Fallback';
  src: local('Arial'), local('Helvetica Neue'), local('Liberation Sans');
  ascent-override:96%; descent-override:24%; line-gap-override:0%; size-adjust:104%;
}
@font-face{
  font-family:'PS Fallback';
  src: local('Arial'), local('Helvetica Neue'), local('Liberation Sans');
  ascent-override:95%; descent-override:24%; line-gap-override:0%; size-adjust:100%;
}

/* ------------------------------------------------------- 1. Reset & base */

*, *::before, *::after{ box-sizing: border-box; }

html{
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto;
}

body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  position: relative;
  min-height: 100vh;
}

img, svg, canvas{ display: block; max-width: 100%; }
hr{ border: 0; }

h1, h2, h3{
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}
p{ margin: 0; }
ul, ol{ margin: 0; padding: 0; list-style: none; }
dl, dd, dt{ margin: 0; }

a{ color: inherit; }

:focus-visible{
  outline: 3px solid var(--brass);
  outline-offset: 3px;
  border-radius: 3px;
}
:focus:not(:focus-visible){ outline: none; }

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

.skip{
  position: fixed;
  top: .75rem; left: .75rem;
  z-index: 10001;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .7rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .25s var(--ease-out);
}
.skip:focus{ transform: none; }

/* ------------------------------------------- 2. Typography primitives */

.hero__title{
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  font-weight: 700;
}

h2{ font-size: clamp(2rem, 4.5vw, 3.2rem); }
h3{ font-size: clamp(1.15rem, 1.6vw, 1.32rem); line-height: 1.25; letter-spacing: -.012em; }

.eyebrow{
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--brass);
  margin-bottom: 1.35rem;
}
.eyebrow--tight{ margin-bottom: .9rem; }

.lede{ color: var(--ink-2); }

/* SplitType line-mask scaffolding (created at runtime) */
.lmask{
  display: block;
  overflow: hidden;
  padding-bottom: .12em;
  margin-bottom: -.12em;
}
.sline{ display: block; will-change: transform; }

/* ---------------------------------------------------------- 3. Utilities */

.container{
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section{ padding-block: clamp(4.5rem, 9vw, 8.5rem); }

.btn{
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 1.05rem 1.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .18s var(--ease-out), background-color .22s ease,
              box-shadow .22s ease, border-color .22s ease, color .22s ease;
}
.btn--sm{ padding: .72rem 1.2rem; font-size: .92rem; }
.btn__arrow{ transition: transform .28s var(--ease-out); }
.btn:hover .btn__arrow{ transform: translateX(4px); }

.btn--brass{ background: var(--brass); color: #fff; }
.btn--brass:hover{
  background: var(--brass-2);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px -8px rgba(178,110,40,.55);
}
.btn--ghost{ border-color: var(--ink-18); color: var(--ink); }
.btn--ghost:hover{ border-color: var(--ink); transform: translateY(-1px); }

.panel-dark .btn--ghost{ border-color: rgba(255,255,255,.28); color: #fff; }
.panel-dark .btn--ghost:hover{ border-color: rgba(255,255,255,.75); }

.ic{
  width: 22px; height: 22px;
  flex: none;
  fill: none;
  stroke: var(--brass);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ic--sm{ width: 17px; height: 17px; stroke-width: 1.7; }

/* --------------------------------- 4. The Steady Line: preload / rail / etc */

/* --- Preloader ----------------------------------------------------------- */
.preloader{
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--paper);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
/* The element carries inline display:none so a failed stylesheet can never
   leave a bare preloader stranded on top of the page. */
html.is-loading .preloader{ display: flex !important; }
html.is-loading{ overflow: hidden; }

.preloader__mark{ width: 160px; }
.pre-ring{ stroke-dasharray: 189; stroke-dashoffset: 189; opacity: 0; }
.pre-line{ stroke-dasharray: 132; stroke-dashoffset: 132; }
.pre-pulse{ opacity: 0; transform-origin: 80px 52px; }

html.is-loading .pre-line{ animation: preLine .52s var(--ease-io) .04s forwards; }
html.is-loading .pre-ring{ animation: preRing .50s var(--ease-io) .34s forwards; }
html.is-loading .pre-pulse{ animation: prePulse .55s ease-out .84s forwards; }
html.is-loading .preloader{ animation: preWipe .40s var(--ease-io) 1.06s forwards; }

@keyframes preLine{ from{ stroke-dashoffset:132 } to{ stroke-dashoffset:0 } }
@keyframes preRing{ 0%{ opacity:1; stroke-dashoffset:189 } 100%{ opacity:1; stroke-dashoffset:0 } }
@keyframes prePulse{
  0%{ opacity:.85; transform: scale(1) }
  100%{ opacity:0; transform: scale(1.9) }
}
@keyframes preWipe{ to{ transform: translateY(-101%) } }

/* Click-to-skip */
.preloader.is-skipped{ animation: preWipe .3s var(--ease-io) forwards !important; }

/* --- Page-transition curtain -------------------------------------------- */
.curtain{
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: var(--ink);
  transform: translateY(101%);
  pointer-events: none;
  will-change: transform;
}
.curtain--in{ transform: translateY(0); transition: transform .28s var(--ease-io); }
html.is-arriving .curtain{ animation: curtainOut .44s var(--ease-io) .05s forwards; }
@keyframes curtainOut{ from{ transform: translateY(0) } to{ transform: translateY(-101%) } }

/* --- Custom cursor ------------------------------------------------------- */
.cursor{ display: none; }
html.has-cursor .cursor{ display: block; }
html.has-cursor,
html.has-cursor a,
html.has-cursor button{ cursor: none; }

.cursor__dot, .cursor__ring{
  position: fixed;
  top: 0; left: 0;
  z-index: 9999;
  pointer-events: none;
  border-radius: 50%;
  will-change: transform;
}
.cursor__dot{
  width: 10px; height: 10px;
  margin: -5px 0 0 -5px;
  background: var(--brass);
}
.cursor__ring{
  width: 28px; height: 28px;
  margin: -14px 0 0 -14px;
  border: 1px solid var(--ink-60);
  display: grid;
  place-items: center;
  transition: border-color .25s ease, background-color .25s ease;
}
.cursor__ring.is-hot{ border-color: var(--brass); background: rgba(178,110,40,.07); }
.cursor__label{
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brass);
  opacity: 0;
  white-space: nowrap;
}
.cursor__ring.is-labelled .cursor__label{ opacity: 1; transition: opacity .2s ease .08s; }

/* --- Traveling rail ------------------------------------------------------ */
.rail{
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 0;
  pointer-events: none;
  z-index: 4;
}
.rail svg{ position: absolute; top: 0; left: 0; overflow: visible; }
.rail__path{ fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.rail__pulse{ fill: none; stroke: var(--brass); stroke-width: 1.5; opacity: 0; }

/* ------------------------------------------------- 5. Nav & mobile menu */

.nav{
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250,248,245,.72);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background-color .3s ease;
}
.nav.is-scrolled{ border-bottom-color: var(--ink-08); background: rgba(250,248,245,.86); }

.nav__inner{
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--nav-h);
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}
.brand__mark{ flex: none; overflow: visible; }
.brand__bar{ stroke: var(--brass); }
.brand__word{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -.02em;
  line-height: 1;
  display: flex;
  flex-direction: column;
  gap: .18rem;
}
.brand__sub{
  font-family: var(--font-mono);
  font-style: normal;
  font-weight: 400;
  font-size: .58rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.nav__links{ display: flex; gap: 1.9rem; }
.nav__links a{
  position: relative;
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink-2);
  padding-block: .35rem;
  transition: color .2s ease;
}
.nav__links a::after{
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .32s var(--ease-out);
}
.nav__links a:hover{ color: var(--ink); }
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after{ transform: scaleX(1); }
.nav__links a[aria-current="page"]{ color: var(--ink); }

.nav__toggle{
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  border: 1px solid var(--ink-12);
  border-radius: 50%;
  background: transparent;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav__toggleBars{ display: block; width: 17px; }
.nav__toggleBars i{
  display: block;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s var(--ease-io), opacity .2s ease;
}
.nav__toggleBars i:first-child{ margin-bottom: 5px; }
.nav__toggle[aria-expanded="true"] .nav__toggleBars i:first-child{ transform: translateY(3.25px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggleBars i:last-child{ transform: translateY(-3.25px) rotate(-45deg); }

.menu{
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity .34s var(--ease-io);
}
/* Author `display:flex` above beats the UA's [hidden] rule, so restate it —
   otherwise the closed overlay stays in the layer, invisible, eating clicks. */
.menu[hidden]{ display: none; }
.menu.is-open{ opacity: 1; }

.menu__inner{ display: flex; flex-direction: column; gap: .35rem; padding-block: 6rem 3rem; }
.menu__inner a{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 9vw, 3rem);
  letter-spacing: -.025em;
  text-decoration: none;
  color: var(--paper);
  padding-block: .28rem;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
.menu.is-open .menu__inner a{ opacity: 1; transform: none; }
.menu.is-open .menu__inner a:nth-child(1){ transition-delay: .06s }
.menu.is-open .menu__inner a:nth-child(2){ transition-delay: .11s }
.menu.is-open .menu__inner a:nth-child(3){ transition-delay: .16s }
.menu.is-open .menu__inner a:nth-child(4){ transition-delay: .21s }
.menu.is-open .menu__inner a:nth-child(5){ transition-delay: .26s }
.menu.is-open .menu__inner a:nth-child(6){ transition-delay: .31s }
.menu__page{
  font-family: var(--font-mono) !important;
  font-size: .8rem !important;
  letter-spacing: .12em !important;
  text-transform: uppercase;
  color: var(--brass-2) !important;
  margin-top: 1.6rem;
}

/* ------------------------------------------- 6. Hero + living canvas */

.hero{
  position: relative;
  display: flex;
  align-items: center;
  min-height: 640px;
  min-height: min(calc(100svh - var(--nav-h)), 900px);
  padding-block: clamp(3.5rem, 9vh, 6.5rem) clamp(4rem, 9vh, 6rem);
  overflow: hidden;
}
.hero--product{ min-height: auto; }

.hero__canvas{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.hero__inner{ position: relative; z-index: 1; }

.hero__title{ max-width: 15ch; margin-bottom: 1.6rem; }
.hero--product .hero__title{ max-width: 17ch; }
.hero__sub{
  max-width: 56ch;
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  color: var(--ink-2);
  margin-bottom: 2.2rem;
}
.hero__cta{ display: flex; flex-wrap: wrap; gap: .85rem; }
@media (max-width: 420px){
  .hero__cta, .contact__cta{ display: grid; }
  .hero__cta .btn, .contact__cta .btn{ justify-content: center; }
}

.hero__hint{
  position: absolute;
  left: 50%;
  bottom: clamp(1.2rem, 3vh, 2.2rem);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  z-index: 1;
}
.hero__hintLine{
  width: 1px; height: 34px;
  background: linear-gradient(to bottom, transparent, var(--ink-18));
}
.hero__hintText{
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-2);
  opacity: .65;
}

/* ------------------------------------------------------------ 7. Marquee */

.marquee{
  border-block: 1px solid var(--ink-08);
  padding-block: 1.15rem;
  overflow: hidden;
  background: var(--paper);
  position: relative;
  z-index: 5;
}
.marquee__track{
  display: flex;
  width: max-content;
  animation: marq 46s linear infinite;
}
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track{ animation-play-state: paused; }
.marquee__set{
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
  padding-right: 0;
}
@keyframes marq{ from{ transform: translate3d(0,0,0) } to{ transform: translate3d(-50%,0,0) } }

/* --------------------------------------------- 8. Flagship + phone mock */

.flagship{ position: relative; }
.flagship__inner{
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.flagship__copy h2{ max-width: 16ch; margin-bottom: 1.1rem; }
.flagship__position{
  color: var(--ink-2);
  max-width: 46ch;
  margin-bottom: 2.1rem;
}

.benefits{ display: grid; gap: 1rem; margin-bottom: 2.3rem; }
.benefits li{
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  padding-top: .9rem;
  border-top: 1px solid var(--ink-08);
  font-weight: 500;
}
.benefits li:first-child{ border-top-color: var(--ink-18); }
.benefits .ic{ margin-top: 1px; }

.flagship__demo{ display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }
.flagship__caption{
  font-family: var(--font-mono);
  font-size: .72rem;
  line-height: 1.7;
  letter-spacing: .01em;
  color: var(--ink-2);
  max-width: 44ch;
  text-align: center;
}

.phone{
  position: relative;
  width: min(348px, 100%);
  background: var(--card);
  border: 1px solid var(--ink-08);
  border-radius: 36px;
  padding: 10px;
  box-shadow: 0 40px 70px -40px rgba(22,48,43,.38), 0 2px 8px rgba(22,48,43,.05);
}
.phone__screen{
  background: #F3F6F2;
  border-radius: 27px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.phone__bar{
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .8rem 1rem;
  background: var(--ink);
  color: #fff;
}
.phone__avatar{ flex: none; overflow: visible; }
.phone__name{
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.15;
}
.phone__name em{
  font-family: var(--font-mono);
  font-style: normal;
  font-size: .58rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brass-2);
  margin-top: .18rem;
}

.phone__thread{
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: .5rem;
  padding: 1.05rem .95rem;
  min-height: 352px;
}

.msg{
  max-width: 84%;
  padding: .58rem .78rem;
  border-radius: 15px;
  font-size: .875rem;
  line-height: 1.45;
}
.msg p{ margin: 0; min-height: 1.27em; }
.msg--in{
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--ink-08);
  border-bottom-left-radius: 5px;
}
.msg--out{
  align-self: flex-end;
  background: var(--mist);
  border-bottom-right-radius: 5px;
}

.phone__chip{
  align-self: center;
  margin-top: .35rem;
  font-family: var(--font-mono);
  font-size: .67rem;
  letter-spacing: .05em;
  color: var(--brass);
  background: rgba(178,110,40,.09);
  border: 1px solid rgba(178,110,40,.22);
  padding: .42rem .72rem;
  border-radius: 999px;
  text-align: center;
}

.phone__dots{
  display: none;
  align-self: flex-start;
  gap: 4px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--ink-08);
  border-radius: 15px;
  border-bottom-left-radius: 5px;
  padding: .62rem .7rem;
}
.phone__dots.is-right{ align-self: flex-end; background: var(--mist); border-bottom-left-radius: 15px; border-bottom-right-radius: 5px; }
.phone__dots i{
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ink-2);
  opacity: .45;
  animation: dot 1.1s ease-in-out infinite;
}
.phone__dots i:nth-child(2){ animation-delay: .15s }
.phone__dots i:nth-child(3){ animation-delay: .3s }
@keyframes dot{ 0%,60%,100%{ transform: translateY(0); opacity:.35 } 30%{ transform: translateY(-3px); opacity:.8 } }

.phone__input{
  padding: .7rem .95rem .85rem;
  background: #F3F6F2;
  border-top: 1px solid var(--ink-08);
}
.phone__input span{
  display: block;
  height: 32px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--ink-08);
}

/* ----------------------------------------------------------- 9. Services */

.services__title{ max-width: 18ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.cols{ display: grid; gap: clamp(2rem, 3.2vw, 2.6rem); }
.col{ padding-top: 1.15rem; border-top: 1px solid var(--ink-18); }
.col__num{
  display: block;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  color: var(--brass);
  margin-bottom: 1.1rem;
}
.col h3{ margin-bottom: .7rem; }
.col p{ color: var(--ink-2); font-size: .97rem; }

.engage{
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--ink-08);
}
.engage__steps{ display: grid; gap: 1.1rem; }
.engage__steps li{
  display: flex;
  align-items: baseline;
  gap: .8rem;
  color: var(--ink-2);
  font-size: .97rem;
}
.engage__steps b{ color: var(--ink); font-weight: 600; }
.engage__num{
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  color: var(--brass);
  flex: none;
}

/* -------------------------------------------- 10. Principles (pinned) */

.principles{ background: var(--mist); }
.principles__inner{ padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.principles__grid{ display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); }

.principles__head h2{ max-width: 15ch; }

.principles__progress{
  margin-top: 2.2rem;
  height: 2px;
  background: rgba(22,48,43,.14);
  border-radius: 2px;
  overflow: hidden;
}
.principles__fill{
  display: block;
  height: 100%;
  width: 100%;
  background: var(--brass);
  transform: scaleX(.2);
  transform-origin: left;
}
.principles__ticks{
  display: flex;
  gap: 1.1rem;
  margin-top: .85rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  color: rgba(22,48,43,.32);
}
.principles__ticks li{ transition: color .35s ease; }
.principles__ticks li.is-on{ color: var(--brass); }

/* Chapter progress only means something while the chapter is pinned. */
.principles:not(.has-pin) .principles__progress,
.principles:not(.has-pin) .principles__ticks{ display: none; }

.principles__stage{ display: grid; gap: 2.2rem; }
.principle{ padding-top: 1.15rem; border-top: 1px solid rgba(22,48,43,.16); }
.principle__num{
  display: block;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  color: var(--brass);
  margin-bottom: .9rem;
}
.principle h3{ font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: .65rem; }
.principle p{ color: var(--ink-2); max-width: 46ch; }

/* ------------------------------------------- 11. About + dictionary entry */

.about__title{ max-width: 18ch; margin-bottom: clamp(2.2rem, 4vw, 3rem); }

.entry{
  background: var(--mist);
  border-radius: 16px;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  font-family: var(--font-mono);
  max-width: 640px;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.entry__word{
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--brass);
  letter-spacing: -.01em;
  line-height: 1.2;
}
.entry__meta{
  font-size: .78rem;
  color: rgba(22,48,43,.55);
  margin-top: .4rem;
  letter-spacing: .02em;
}
.entry__rule{
  height: 1px;
  background: rgba(22,48,43,.16);
  margin: 1.35rem 0;
}
.entry__def{
  font-size: .86rem;
  line-height: 1.85;
  color: var(--ink);
}
.entry__def + .entry__def{ margin-top: .55rem; }
.entry__from{ color: var(--brass); }
.entry__from em{ font-style: italic; }

.about__lede{
  max-width: 62ch;
  color: var(--ink-2);
  font-size: clamp(1.02rem, 1.3vw, 1.14rem);
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.founders{ display: grid; gap: 1.35rem; }
.founder{
  background: var(--card);
  border: 1px solid var(--ink-08);
  border-radius: 16px;
  padding: clamp(1.5rem, 3vw, 2rem);
  transition: box-shadow .32s ease, border-color .32s ease;
}
.founder:hover{ box-shadow: 0 22px 44px -30px rgba(22,48,43,.35); border-color: var(--ink-12); }
.founder h3{ margin-bottom: .3rem; }
.founder__role{
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1rem;
}
.founder__bio{ color: var(--ink-2); font-size: .96rem; margin-bottom: 1.35rem; }
.founder__links{ display: flex; gap: 1.35rem; }
.founder__links a{
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-2);
  transition: color .2s ease;
}
.founder__links a:hover{ color: var(--brass); }
.founder__links a:hover .ic{ stroke: var(--brass); }
.founder__links .ic{ stroke: var(--ink-2); transition: stroke .2s ease; }
.founder--placeholder{ border-style: dashed; background: transparent; }
.founder--placeholder h3{ color: var(--ink-2); }
.founder__links--muted{
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(22,48,43,.3);
}

/* ------------------------------------------------ 12. Product page bits */

.chips{
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2.1rem;
}
.chips li{
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-2);
  border: 1px solid var(--ink-12);
  border-radius: 999px;
  padding: .42rem .8rem;
  background: rgba(255,255,255,.5);
}

.ringline{
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.ringline__svg{ width: min(460px, 100%); height: 96px; flex: none; }
.ringline__chip{
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .04em;
  color: var(--brass);
  background: rgba(178,110,40,.09);
  border: 1px solid rgba(178,110,40,.24);
  padding: .5rem .85rem;
  border-radius: 999px;
}

.trust{ padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.trust__inner{
  display: grid;
  gap: 1.1rem 2.5rem;
}
.trust__item{
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .97rem;
  font-weight: 500;
  color: rgba(255,255,255,.9);
}
.trust__tick{ color: var(--brass-2); font-family: var(--font-mono); line-height: 1.6; }

.how__title{ max-width: 17ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.safety__title{ max-width: 16ch; margin-bottom: 1.1rem; }
.safety__lede{ color: var(--ink-2); max-width: 52ch; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }

.grid6{ display: grid; gap: 1.25rem; }
.card{
  background: var(--card);
  border: 1px solid var(--ink-08);
  border-radius: 16px;
  padding: clamp(1.5rem, 2.6vw, 1.9rem);
  transition: box-shadow .32s ease, border-color .32s ease, transform .32s var(--ease-out);
}
.card:hover{ box-shadow: 0 24px 46px -32px rgba(22,48,43,.4); border-color: var(--ink-12); }
.card .ic{ margin-bottom: 1.15rem; }
.card h3{ margin-bottom: .6rem; }
.card p{ color: var(--ink-2); font-size: .95rem; }
.card__tag{
  margin-top: 1.15rem !important;
  font-family: var(--font-mono);
  font-size: .68rem !important;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brass) !important;
}

.case__panel{
  background: var(--mist);
  border-radius: 20px;
  padding: clamp(1.9rem, 5vw, 4rem);
}
.case__panel h2{ max-width: 16ch; margin-bottom: 1.8rem; }
.case__body{ display: grid; gap: 1.1rem; max-width: 62ch; }
.case__body p{ color: var(--ink-2); }

.facts{
  display: grid;
  gap: 0;
  margin-top: clamp(2.2rem, 4vw, 3rem);
  border-top: 1px solid rgba(22,48,43,.16);
}
.fact{
  display: grid;
  gap: .2rem;
  padding-block: .95rem;
  border-bottom: 1px solid rgba(22,48,43,.10);
}
.fact dt{
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brass);
}
.fact dd{ font-weight: 500; }

/* ----------------------------------------------------------- 13. Contact */

.panel-dark{
  background: var(--ink);
  color: var(--paper);
  position: relative;
}
.panel-dark .eyebrow{ color: var(--brass-2); }

.contact{ padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.contact__inner h2{ max-width: 15ch; margin-bottom: 1.1rem; }
.contact__line{
  color: rgba(255,255,255,.72);
  max-width: 52ch;
  margin-bottom: 2.2rem;
  font-size: clamp(1.02rem, 1.3vw, 1.14rem);
}
.contact__cta{ display: flex; flex-wrap: wrap; gap: .85rem; }

/* ------------------------------------------------------------ 14. Footer */

.footer{
  position: relative;
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
  overflow: hidden;
}
/* Fallback rule when the JS rail is not active (mobile / no-JS / reduced motion) */
.footer::before{
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--brass);
  opacity: .4;
}
html.has-rail .footer::before{ display: none; }

.footer__ghost{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14vw;
  line-height: .82;
  letter-spacing: -.035em;
  color: rgba(22,48,43,.04);
  text-align: center;
  white-space: nowrap;
  user-select: none;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  pointer-events: none;
}

.footer__inner{
  display: grid;
  gap: 1.6rem;
  align-items: start;
}
.brand--footer{ margin-right: 0; }
.footer__tagline{
  font-size: .92rem;
  color: var(--ink-2);
  margin-top: .75rem;
}
.footer__where{
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.footer__links{ display: flex; flex-wrap: wrap; gap: 1.3rem; }
.footer__links a{
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-2);
  transition: color .2s ease;
}
.footer__links a:hover{ color: var(--brass); }

/* -------------------------------------------------------- 15. Responsive */

@media (min-width: 620px){
  .cols{ grid-template-columns: repeat(2, 1fr); }
  .grid6{ grid-template-columns: repeat(2, 1fr); }
  .founders{ grid-template-columns: repeat(2, 1fr); }
  .trust__inner{ grid-template-columns: repeat(2, 1fr); }
  .engage__steps{ grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
  .engage__steps li{ display: block; }
  .engage__num{ display: block; margin-bottom: .5rem; }
  .facts{ grid-template-columns: repeat(2, 1fr); column-gap: 2.5rem; }
}

@media (min-width: 900px){
  :root{ --pad: clamp(3.75rem, 5vw, 4rem); }

  .cols{ grid-template-columns: repeat(4, 1fr); }
  .cols--3{ grid-template-columns: repeat(3, 1fr); }
  .grid6{ grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
  .trust__inner{ grid-template-columns: repeat(4, 1fr); }
  .facts{ grid-template-columns: repeat(3, 1fr); }

  .flagship__inner{ grid-template-columns: 1fr .84fr; }
  .flagship__demo{ align-items: flex-start; }
  .flagship__caption{ text-align: left; }

  .principles__grid{ grid-template-columns: .85fr 1fr; align-items: start; }

  /* Case study reads as a spec sheet: narrative left, facts right. */
  .case__panel{
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    column-gap: clamp(2.5rem, 5vw, 4.5rem);
    align-items: start;
  }
  .case__panel > .eyebrow{ grid-column: 1; grid-row: 1; }
  .case__panel > h2{ grid-column: 1; grid-row: 2; }
  .case__panel > .case__body{ grid-column: 1; grid-row: 3; }
  .case__panel > .facts{
    grid-column: 2;
    grid-row: 1 / span 3;
    grid-template-columns: 1fr;
    margin-top: .35rem;
  }

  .footer__inner{ grid-template-columns: 1fr auto auto; gap: 2.5rem; align-items: end; }
  .footer__where{ padding-bottom: .2rem; }
  .footer__links{ padding-bottom: .2rem; }
}

@media (min-width: 1100px){
  .flagship__inner{ grid-template-columns: 1fr .78fr; }
}

/* Mobile nav switch */
@media (max-width: 899px){
  .nav__links, .nav__cta{ display: none; }
  html.js .nav__toggle{ display: flex; }
  .rail{ display: none; }
  .cursor{ display: none !important; }
  html.has-cursor, html.has-cursor a, html.has-cursor button{ cursor: auto; }
}

/* No-JS: keep navigation usable on small screens */
html.no-js .nav__inner{ flex-wrap: wrap; }
@media (max-width: 899px){
  html.no-js .nav__links{ display: flex; flex-wrap: wrap; gap: .9rem 1.4rem; padding-bottom: .9rem; width: 100%; }
  html.no-js .menu{ display: none; }
}

/* --------------------------------------------- Desktop pinned chapters */

@media (min-width: 900px){
  /* Pinned sections are sized to exactly one viewport so the pin can never
     clip content, and so releasing the pin restores the flow untouched. */
  .flagship.has-pin{
    padding-block: 0;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
  }
  .flagship.has-pin .flagship__inner{ width: 100%; padding-block: 3rem; }
  .flagship.has-pin .phone__thread{ min-height: clamp(300px, 38vh, 352px); }

  .principles.has-pin .principles__inner{
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: stretch;
    /* Top pad clears the sticky nav, which overlays the pinned panel. */
    padding-block: calc(var(--nav-h) + 2rem) 2.75rem;
  }
  .principles.has-pin .principles__grid{ width: 100%; align-items: stretch; }

  /* The chapter is framed by its own edges rather than floating mid-panel:
     title and principle sit on the top rule, the progress rail parks on the
     bottom one. The whitespace between them then reads as structure. */
  .principles.has-pin .principles__head{ display: flex; flex-direction: column; }
  .principles.has-pin .principles__progress{ margin-top: auto; }

  /* Two hairlines frame the chapter — the stage's top rule and the head's
     progress rail — and the swapping content sits centred between them. */
  .principles.has-pin .principles__stage{
    position: relative;
    display: block;
    min-height: 300px;
    border-top: 1px solid rgba(22,48,43,.22);
  }
  /* In the pinned chapter each principle is the whole stage — give it the
     scale of a chapter title, not a list item. */
  .principles.has-pin .principle__num{
    font-size: clamp(2.6rem, 4.6vw, 3.8rem);
    font-weight: 400;
    line-height: 1;
    color: rgba(178,110,40,.32);
    letter-spacing: .01em;
    margin-bottom: 1.5rem;
  }
  .principles.has-pin .principle h3{
    font-size: clamp(1.9rem, 3.4vw, 2.7rem);
    margin-bottom: .9rem;
  }
  .principles.has-pin .principle p{
    font-size: clamp(1.02rem, 1.25vw, 1.15rem);
    max-width: 44ch;
  }
  .principles.has-pin .principle{
    position: absolute;
    inset: 0;                       /* fills the stage so the copy can centre */
    border-top: 0;                  /* the stage owns the frame rule now */
    padding-top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transform: translateY(26px);
    pointer-events: none;
    transition: opacity .5s var(--ease-out), transform .55s var(--ease-out);
  }
  .principles.has-pin .principle.is-active{
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}

/* Phone typing state (JS-driven) */
.phone.is-typing .msg{ display: none; }
.phone.is-typing .phone__chip{ opacity: 0; }

/* ----------------------------------------- 16. Reduced motion & no-JS */

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .preloader{ display: none !important; }
  .curtain{ display: none !important; }
  .cursor{ display: none !important; }
  .rail{ display: none !important; }
  html.has-cursor, html.has-cursor a, html.has-cursor button{ cursor: auto !important; }
  .marquee__track{ animation: none !important; transform: none !important; }
  .phone__dots{ display: none !important; }
  .principles.has-pin .principle{
    position: static !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
  }
  .principles.has-pin .principles__stage{ display: grid !important; gap: 2.2rem; }
  .phone.is-typing .msg{ display: block !important; }
  .phone.is-typing .phone__chip{ opacity: 1 !important; }
  .hero__hint{ display: none; }
}

/* Print */
@media print{
  .nav, .menu, .preloader, .curtain, .cursor, .rail, .marquee, .hero__canvas, .hero__hint{ display: none !important; }
  body{ background: #fff; }
}
