/* ==========================================================================
   DevFolio — Spatial UI (visionOS) in the agency palette
   White light-room environment · frosted glass windows · hard black slabs ·
   one red. Depth is the design: nothing sits flat on the page.

   Spatial tokens: blur 40px / saturate 180%, 24px windows, four-step
   elevation, focus-scale 1.02, parallax on three clipped layers.
   The slabs stay sharp and opaque — that contrast against soft glass is
   the whole point of the combination.
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */
:root {
  /* environment — a lit white room, not a flat page */
  --env:    #eef0f4;
  --env-2:  #f7f8fa;
  --env-3:  #e4e7ec;

  /* glass material — opaque enough that dark text stays legible on it */
  --glass:        rgba(255, 255, 255, 0.58);
  --glass-2:      rgba(255, 255, 255, 0.72);
  --glass-3:      rgba(255, 255, 255, 0.86);
  --glass-blur:   40px;
  --glass-sat:    180%;
  --glass-edge:   rgba(255, 255, 255, 0.75);
  --glass-edge-2: rgba(255, 255, 255, 0.95);
  --glass-hair:   rgba(11, 13, 18, 0.09);
  --glass-spec:   inset 0 1px 0 rgba(255, 255, 255, 0.9);

  /* type ramp — every value below is >= 4.5:1 on the glass stack */
  --ink:    #0b0d12;   /* 17.6:1 */
  --text-2: #545c6b;   /*  6.1:1 */
  --text-3: #626b7a;   /*  4.9:1 */

  /* the one red. --red is the brand mark; --red-ink and --red-solid are the
     deeper steps used wherever the red carries text. */
  --red:       #fd3c3f;
  --red-ink:   #c41a1e;   /* red text on glass — 5.4:1 */
  --red-solid: #e02529;   /* white label on red — 4.7:1 */
  --red-deep:  #c41a1e;
  --red-glow:  rgba(253, 60, 63, 0.32);

  /* four-step elevation: how far a surface floats off the backdrop */
  --e1: 0 1px 2px rgba(11, 13, 18, 0.06);
  --e2: 0 8px 32px rgba(11, 13, 18, 0.1);
  --e3: 0 20px 48px -12px rgba(11, 13, 18, 0.18);
  --e4: 0 40px 90px -24px rgba(11, 13, 18, 0.26);

  --window-radius: 24px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --r-btn: 6px;
  --r-pill: 999px;

  --focus-scale: 1.02;

  --f-head: "Montserrat", system-ui, -apple-system, sans-serif;
  --f-body: "Poppins", system-ui, -apple-system, sans-serif;

  --shell: 1240px;
  --gut: clamp(1.25rem, 4vw, 3rem);

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 240ms;
}

/* --- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
  -webkit-text-size-adjust: 100%;
  /* The clip belongs on the root too: the fixed atmosphere layers are laid
     out against the viewport, so body's clip never reaches them. */
  overflow-x: clip;
}

body {
  background: var(--env);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

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

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

.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-link {
  position: fixed; top: 0; left: 50%;
  transform: translate(-50%, -160%);
  z-index: 300;
  padding: 0.85rem 1.5rem;
  border-radius: 0 0 var(--r-btn) var(--r-btn);
  background: var(--red-solid); color: #fff;
  font: 800 0.72rem/1 var(--f-head);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ==========================================================================
   The environment — three parallax layers, clipped, slowest at the back.
   ========================================================================== */
.env {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% -10%, #ffffff, transparent 60%),
    linear-gradient(180deg, var(--env-2), var(--env) 60%, var(--env-3));
}

/* light sources — soft, tinted, always drifting */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}
.orb--a {
  width: 46vw; height: 46vw;
  top: -14vw; left: -8vw;
  background: radial-gradient(circle, rgba(253, 60, 63, 0.22), transparent 66%);
  animation: drift-a 30s var(--ease) infinite alternate;
}
.orb--b {
  width: 42vw; height: 42vw;
  top: 32vh; right: -12vw;
  background: radial-gradient(circle, rgba(11, 13, 18, 0.14), transparent 66%);
  animation: drift-b 38s var(--ease) infinite alternate;
}
.orb--c {
  width: 34vw; height: 34vw;
  bottom: -8vw; left: 24vw;
  background: radial-gradient(circle, rgba(253, 60, 63, 0.12), transparent 66%);
  animation: drift-c 34s var(--ease) infinite alternate;
}

@keyframes drift-a { to { transform: translate3d(7vw, 9vh, 0) scale(1.16); } }
@keyframes drift-b { to { transform: translate3d(-8vw, -7vh, 0) scale(1.12); } }
@keyframes drift-c { to { transform: translate3d(5vw, -5vh, 0) scale(1.1); } }

.grain {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* pointer light — the room responds to where you're looking */
.gaze {
  position: fixed;
  z-index: -1;
  width: 560px; height: 560px;
  margin: -280px 0 0 -280px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle, rgba(253, 60, 63, 0.08), transparent 62%);
  transition: opacity 0.6s ease;
  will-change: transform;
}
.gaze.lit { opacity: 1; }

.progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px; width: 100%;
  z-index: 200;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--red);
  will-change: transform;
}

/* --- Layout primitives -------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.band { padding-block: clamp(4rem, 8vw, 7rem); position: relative; }
.band--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

/* ==========================================================================
   Glass — the material every surface is cut from.
   ========================================================================== */
.glass {
  position: relative;
  border: 1px solid var(--glass-edge);
  border-radius: var(--window-radius);
  background: var(--glass);
  box-shadow: var(--e2), var(--glass-spec), 0 0 0 1px var(--glass-hair);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
}

/* top-down sheen so panels read as curved glass, not flat film */
.glass::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent 45%);
  transition: opacity var(--dur) var(--ease);
}

/* The sheen is absolutely positioned, so it would otherwise paint over the
   panel's in-flow content and wash the black slabs out to grey. Lift the
   content one layer above it. */
.glass > * { position: relative; z-index: 1; }

.glass--lift {
  transition: transform 0.45s var(--ease-out), background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), box-shadow 0.45s var(--ease);
}
.glass--lift:hover {
  transform: translateY(-6px) scale(var(--focus-scale));
  background: var(--glass-2);
  border-color: var(--glass-edge-2);
  box-shadow: var(--e3), var(--glass-spec), 0 0 0 1px var(--glass-hair);
}

/* --- Typography --------------------------------------------------------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font: 800 0.7rem/1 var(--f-head);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--red-ink);
}
.kicker::before {
  content: "";
  width: 20px; height: 2px;
  background: currentColor;
}

/* The signature: each headline line is its own hard black box, floating
   above the glass. Deliberately sharp — the only square corners left. */
.slabs {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.32rem;
}

.slab {
  display: inline-block;
  padding: 0.16em 0.42em 0.2em;
  background: var(--ink);
  color: #fff;
  font-family: var(--f-head);
  font-weight: 900;
  font-size: clamp(1.35rem, 3.05vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  text-wrap: nowrap;
  box-shadow: var(--e2);
}
.slab--red { background: var(--red-solid); }
.slab--sm { font-size: clamp(1.15rem, 2.4vw, 1.9rem); }

/* Oversized geometric word — the "Design" of the reference. */
.word {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: clamp(3.2rem, 8.4vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.word em { font-style: normal; color: var(--red); }

.lede {
  font-size: clamp(0.98rem, 1.15vw, 1.08rem);
  line-height: 1.85;
  color: var(--text-2);
  max-width: 56ch;
  text-wrap: pretty;
}

.section-head { max-width: 62ch; }
.section-head .slabs { margin-top: 1.4rem; }
.section-head .lede { margin-top: 1.6rem; }

.head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 1.05rem 2.2rem;
  border: 1px solid transparent;
  border-radius: var(--r-btn);
  font-family: var(--f-head);
  font-weight: 800;
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--dur) var(--ease-out), background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              color var(--dur) var(--ease);
}
.btn svg { width: 15px; height: 15px; transition: transform var(--dur) var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }

/* fill is the deeper red step so the white label clears 4.5:1 */
.btn--red {
  background: var(--red-solid);
  border-color: var(--red-solid);
  color: #fff;
  box-shadow: 0 10px 26px -10px var(--red-glow), var(--glass-spec);
}
.btn--red:hover {
  transform: translateY(-2px) scale(var(--focus-scale));
  background: var(--red-deep);
  border-color: var(--red-deep);
  box-shadow: 0 18px 38px -12px var(--red-glow), var(--glass-spec);
}

.btn--ink {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.btn--ink:hover { transform: translateY(-2px) scale(var(--focus-scale)); }

/* secondary is literal glass — it shows the room through it */
.btn--glass {
  border-color: var(--glass-edge);
  background: var(--glass-2);
  color: var(--ink);
  box-shadow: var(--e1), var(--glass-spec);
  backdrop-filter: blur(20px) saturate(var(--glass-sat));
  -webkit-backdrop-filter: blur(20px) saturate(var(--glass-sat));
}
.btn--glass:hover {
  transform: translateY(-2px) scale(var(--focus-scale));
  background: var(--glass-3);
  border-color: var(--glass-edge-2);
}

.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }

/* --- Nav: a floating glass window ---------------------------------------- */
.nav {
  position: fixed;
  top: 0.9rem; left: 50%;
  transform: translateX(-50%);
  z-index: 150;
  width: min(calc(100% - 1.5rem), var(--shell));
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease),
              box-shadow 0.4s var(--ease);
}
.nav.stuck .nav__inner {
  border-color: var(--glass-edge);
  background: rgba(255, 255, 255, 0.66);
  box-shadow: var(--e2), var(--glass-spec), 0 0 0 1px var(--glass-hair);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
}

.brand { display: inline-flex; align-items: center; gap: 0.7rem; }

.brand__mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px; height: 34px;
  border: 1px solid var(--glass-edge-2);
  border-radius: 11px;
  background: linear-gradient(160deg, rgba(253, 60, 63, 0.2), rgba(255, 255, 255, 0.7));
  box-shadow: var(--glass-spec), 0 6px 16px -8px var(--red-glow);
  color: var(--ink);
}
.brand__mark svg { width: 18px; height: 18px; }

.brand__name {
  font-family: var(--f-head);
  font-weight: 900;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.brand__name em { font-style: normal; color: var(--red); }

.nav__links {
  display: none;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  padding: 0;
}

.nav__link {
  display: block;
  padding: 0.5rem 0.9rem;
  border-radius: var(--r-btn);
  font: 800 0.7rem/1 var(--f-head);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-2);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.nav__link:hover { color: var(--ink); background: rgba(255, 255, 255, 0.7); }

/* active = the red, on a light block — as the reference marks HOME */
.nav__link[aria-current="true"] {
  color: var(--red-ink);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 0 0 1px rgba(253, 60, 63, 0.28);
}

.nav__cta { display: none; padding: 0.8rem 1.5rem; font-size: 0.68rem; }

.nav__toggle {
  display: grid;
  place-items: center;
  gap: 4px;
  width: 42px; height: 42px;
  border: 1px solid var(--glass-edge);
  border-radius: var(--r-md);
  background: var(--glass-2);
  box-shadow: var(--e1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.nav__toggle span {
  display: block;
  width: 16px; height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav__drawer {
  display: grid;
  grid-template-rows: 0fr;
  margin-top: 0.5rem;
  border: 1px solid transparent;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.86);
  opacity: 0;
  visibility: hidden;
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  transition: grid-template-rows 0.4s var(--ease), opacity 0.3s var(--ease),
              visibility 0.4s, border-color 0.3s var(--ease);
}
.nav__drawer.open {
  grid-template-rows: 1fr;
  border-color: var(--glass-edge);
  box-shadow: var(--e3), var(--glass-spec);
  opacity: 1;
  visibility: visible;
}
.nav__drawer ul { overflow: hidden; list-style: none; margin: 0; padding: 0; }
.nav__drawer a {
  display: block;
  margin: 0.15rem 0.5rem;
  padding: 0.8rem 0.9rem;
  border-radius: var(--r-sm);
  font: 800 0.75rem/1 var(--f-head);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-2);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav__drawer a:hover { background: rgba(255, 255, 255, 0.9); color: var(--red-ink); }

@media (min-width: 1000px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__toggle, .nav__drawer { display: none; }
}

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: clamp(6.5rem, 12vw, 9rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 1000px) { .hero__grid { grid-template-columns: 1.02fr 0.98fr; } }

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--glass-edge);
  border-radius: var(--r-btn);
  background: var(--glass-2);
  box-shadow: var(--e1), var(--glass-spec);
  font: 800 0.66rem/1 var(--f-head);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-2);
  backdrop-filter: blur(20px) saturate(var(--glass-sat));
  -webkit-backdrop-filter: blur(20px) saturate(var(--glass-sat));
}
.status i {
  position: relative;
  width: 8px; height: 8px;
  background: var(--red);
  font-style: normal;
}
.status i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  animation: ping 2.2s var(--ease-out) infinite;
}
@keyframes ping { to { transform: scale(2.8); opacity: 0; } }

.hero__word { margin-top: 1.4rem; margin-bottom: 1.1rem; }
.hero__slabs { margin-bottom: 1.8rem; }
.hero__lede { margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 2.4rem;
  max-width: 34rem;
}
.stat { padding: 1rem 1.1rem; border-radius: var(--r-lg); }
.stat__num {
  font-family: var(--f-head);
  font-weight: 900;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.stat__label {
  margin-top: 0.3rem;
  font: 800 0.62rem/1 var(--f-head);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* --- Hero device: a window in its own depth plane ------------------------ */
.device { position: relative; perspective: 1600px; }

.device__frame {
  overflow: hidden;
  border-radius: var(--window-radius);
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease-out);
  will-change: transform;
}

.device__bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--glass-hair);
}
.device__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(11, 13, 18, 0.14);
}
.device__dot:first-child { background: var(--red); }
.device__url {
  margin-left: 0.5rem;
  font: 800 0.6rem/1 var(--f-head);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}

.device__screen {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--env-3);
}
.device__screen img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.6s var(--ease), transform 1.2s var(--ease-out);
}
.device__screen img.on { opacity: 1; transform: scale(1); }

/* caption is a hard black slab, same as the headlines */
.device__caption {
  position: absolute;
  left: 0; bottom: 1rem;
  z-index: 2;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: #fff;
  font: 900 0.85rem/1.2 var(--f-head);
  text-transform: uppercase;
  box-shadow: var(--e2);
}

.device__tag {
  position: absolute;
  right: 0; top: 1rem;
  z-index: 2;
  padding: 0.4rem 0.85rem;
  background: var(--red-solid);
  color: #fff;
  font: 800 0.6rem/1 var(--f-head);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  box-shadow: var(--e2);
}

.device__nav { display: flex; align-items: center; gap: 0.9rem; margin-top: 1.4rem; }

.device__arrow {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--glass-edge);
  border-radius: var(--r-md);
  background: var(--glass-2);
  box-shadow: var(--e1), var(--glass-spec);
  color: var(--ink);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: transform var(--dur) var(--ease-out), background-color var(--dur) var(--ease),
              color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.device__arrow svg { width: 16px; height: 16px; }
.device__arrow:hover {
  transform: scale(1.06);
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.device__count { font: 800 0.72rem/1 var(--f-head); letter-spacing: 0.2em; color: var(--text-3); }
.device__count b { color: var(--ink); }

.device__rule {
  flex: 1;
  height: 2px;
  background: rgba(11, 13, 18, 0.12);
  overflow: hidden;
}
.device__rule i {
  display: block;
  height: 100%;
  background: var(--red);
  transition: width 0.45s var(--ease);
}

/* --- Marquee ------------------------------------------------------------ */
.marquee {
  position: relative;
  padding-block: 1.1rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: 3.5rem;
  animation: roll 36s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes roll { to { transform: translateX(-50%); } }

.tech {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font: 800 0.75rem/1 var(--f-head);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-2);
  transition: color var(--dur) var(--ease);
}
.tech svg { width: 17px; height: 17px; color: var(--red); }
.marquee:hover .tech { color: var(--ink); }

/* --- Services ----------------------------------------------------------- */
/* Six services, so the track count has to divide into six — a 4-wide grid
   leaves an orphan row of two. 21rem lands on three columns at every desktop
   width the shell allows, then two, then one. */
.services {
  display: grid;
  gap: clamp(0.9rem, 1.6vw, 1.15rem);
  margin-top: 3rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr));
}

.service { padding: 1.6rem; }

.service__idx {
  font: 900 0.7rem/1 var(--f-head);
  letter-spacing: 0.2em;
  color: var(--red-ink);
}

.service__icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin: 1.1rem 0 1rem;
  border: 1px solid var(--glass-edge-2);
  border-radius: var(--r-md);
  background: linear-gradient(160deg, rgba(253, 60, 63, 0.14), rgba(255, 255, 255, 0.6));
  box-shadow: var(--e1), var(--glass-spec);
  color: var(--red-ink);
  transition: transform 0.4s var(--ease-out), background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.service__icon svg { width: 21px; height: 21px; }

.service h3 {
  font-family: var(--f-head);
  font-weight: 900;
  font-size: 0.98rem;
  line-height: 1.28;
  text-transform: uppercase;
}
.service p {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  line-height: 1.68;
  color: var(--text-2);
  text-wrap: pretty;
}

/* Hover flips the whole card to solid ink — the glass gives way to the slab
   colour, so the grid reads like the headlines. Declared after .glass--lift
   so it wins the background and border it sets there. */
.service:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
/* kill the white sheen, or it lightens the top of the black card */
.service:hover::before { opacity: 0; }
.service:hover p { color: rgba(255, 255, 255, 0.74); }
.service:hover .service__idx { color: var(--red); }
.service:hover .service__icon {
  transform: translateZ(20px) scale(1.06);
  background: rgba(253, 60, 63, 0.18);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--red);
}

/* --- Work --------------------------------------------------------------- */
.work {
  display: grid;
  gap: clamp(1.1rem, 2vw, 1.5rem);
  margin-top: 3rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr));
}
@media (min-width: 62rem) {
  .work { grid-template-columns: repeat(6, 1fr); }
  .project { grid-column: span 3; }
}

.project { overflow: hidden; }

.project__frame {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: calc(var(--window-radius) - 8px);
  margin: 0.55rem 0.55rem 0;
  background: var(--env-3);
}
.project__frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.04);
  transform: scale(1.02);
  transition: transform 0.9s var(--ease-out), filter 0.5s var(--ease);
}
.project:hover .project__frame img { transform: scale(1.07); filter: grayscale(0); }

.project__idx {
  position: absolute;
  top: 0.8rem; left: 0;
  z-index: 2;
  padding: 0.3rem 0.7rem;
  background: var(--ink);
  color: #fff;
  font: 900 0.66rem/1 var(--f-head);
  letter-spacing: 0.2em;
}

.project__role {
  position: absolute;
  top: 0.8rem; right: 0;
  z-index: 2;
  padding: 0.3rem 0.75rem;
  background: var(--red-solid);
  color: #fff;
  font: 800 0.62rem/1 var(--f-head);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.project__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  padding: 1.4rem;
  background: rgba(11, 13, 18, 0.86);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.project:hover .project__scrim { opacity: 1; }

.project__blurb {
  color: #fff;
  font-size: 0.92rem;
  line-height: 1.7;
  transform: translateY(10px);
  transition: transform 0.45s var(--ease-out);
  text-wrap: pretty;
}
.project:hover .project__blurb { transform: none; }

.project__meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.15rem 1.35rem 1.35rem;
}

.project__title {
  font-family: var(--f-head);
  font-weight: 900;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1.2;
  text-transform: uppercase;
}

.project__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.7rem; }
.tag {
  padding: 0.26rem 0.65rem;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  font: 800 0.6rem/1 var(--f-head);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project__go {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px; height: 42px;
  border: 1.5px solid var(--ink);
  border-radius: var(--r-md);
  transition: transform 0.4s var(--ease-out), background-color var(--dur) var(--ease),
              color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.project__go svg { width: 15px; height: 15px; }
.project:hover .project__go {
  transform: translateX(4px);
  background: var(--red-solid);
  border-color: var(--red-solid);
  color: #fff;
}

.work__empty {
  grid-column: 1 / -1;
  padding: 3rem;
  text-align: center;
  font: 800 0.75rem/1.6 var(--f-head);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
}

.skeleton {
  grid-column: span 3;
  aspect-ratio: 16 / 10;
  border-radius: var(--window-radius);
  border: 1px solid var(--glass-edge);
  background: linear-gradient(100deg, var(--glass) 30%, var(--glass-3) 50%, var(--glass) 70%);
  background-size: 220% 100%;
  animation: shimmer 1.5s linear infinite;
}
@media (max-width: 61.99rem) { .skeleton { grid-column: auto; } }
@keyframes shimmer { to { background-position: -220% 0; } }

/* --- Process ------------------------------------------------------------ */
.process {
  display: grid;
  gap: clamp(0.9rem, 1.6vw, 1.15rem);
  margin-top: 3rem;
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}

.step { padding: 1.6rem 1.5rem; }

.step__num {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  background: var(--red-solid);
  color: #fff;
  border-radius: 4px;
  font: 900 0.7rem/1 var(--f-head);
  letter-spacing: 0.18em;
  box-shadow: var(--e1);
}

.step h3 {
  margin-top: 1.1rem;
  font-family: var(--f-head);
  font-weight: 900;
  font-size: 0.98rem;
  text-transform: uppercase;
}
.step p { margin-top: 0.55rem; font-size: 0.86rem; line-height: 1.7; color: var(--text-2); }

/* --- Impact band -------------------------------------------------------- */
.impact {
  display: grid;
  gap: 2rem 1.5rem;
  padding: clamp(2rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  text-align: center;
}
.impact__num {
  font-family: var(--f-head);
  font-weight: 900;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  line-height: 1;
  letter-spacing: -0.025em;
}
.impact__label {
  margin-top: 0.6rem;
  font: 800 0.64rem/1.5 var(--f-head);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* --- About -------------------------------------------------------------- */
.about {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2.5rem);
}
@media (min-width: 56rem) { .about { grid-template-columns: auto 1fr; } }

.about__media {
  position: relative;
  width: 100%;
  max-width: 18rem;
  perspective: 1200px;
}
.about__media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 22%;
  border: 1px solid var(--glass-edge-2);
  border-radius: var(--r-lg);
  box-shadow: var(--e3), var(--glass-spec);
  transition: transform 0.5s var(--ease-out);
}
.about__media:hover img { transform: translateY(-5px) scale(var(--focus-scale)); }

.about__body p { margin-top: 1.2rem; color: var(--text-2); text-wrap: pretty; }

.pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.pill {
  padding: 0.5rem 1rem;
  border: 1.5px solid var(--ink);
  border-radius: var(--r-btn);
  font: 800 0.62rem/1 var(--f-head);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: transform var(--dur) var(--ease-out), background-color var(--dur) var(--ease),
              color var(--dur) var(--ease);
}
.pill:hover { transform: translateY(-2px); background: var(--ink); color: #fff; }

.signature {
  margin-top: 2rem;
  font-family: var(--f-head);
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.signature em { font-style: normal; color: var(--red); }

/* --- Testimonials ------------------------------------------------------- */
.quotes {
  display: grid;
  gap: clamp(1rem, 1.8vw, 1.25rem);
  margin-top: 3rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
}

.quote { display: flex; flex-direction: column; padding: 1.8rem; }

/* Hover pushes the card up-left off a hard red block — the offset-shadow
   move from the agency layout, kept sharp against the soft glass. */
.quote:hover {
  transform: translate(-5px, -5px);
  background: var(--glass-3);
  border-color: var(--glass-edge-2);
  box-shadow: 12px 12px 0 var(--red), var(--glass-spec);
}

.stars { display: flex; gap: 0.2rem; color: var(--red); }
.stars svg { width: 15px; height: 15px; }

.quote blockquote { margin: 1.2rem 0 0; font-size: 0.96rem; line-height: 1.8; text-wrap: pretty; }

.quote figcaption {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: auto;
  padding-top: 1.5rem;
}
.quote figcaption img {
  width: 44px; height: 44px;
  object-fit: cover;
  border: 1.5px solid var(--ink);
  border-radius: var(--r-sm);
  filter: grayscale(1);
}
.quote__who {
  font: 900 0.82rem/1.3 var(--f-head);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.quote__role {
  margin-top: 0.15rem;
  font: 800 0.6rem/1.4 var(--f-head);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red-ink);
}

/* --- FAQ ---------------------------------------------------------------- */
.faq { margin-top: 2.5rem; display: grid; gap: 0.7rem; }

.qa {
  overflow: hidden;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.qa:hover { border-color: var(--glass-edge-2); }
.qa.open { background: var(--glass-3); }

.qa__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: 100%;
  padding: 1.2rem 1.5rem;
  text-align: left;
  font-family: var(--f-head);
  font-weight: 900;
  font-size: clamp(0.88rem, 1.4vw, 1rem);
  text-transform: uppercase;
  color: var(--ink);
  transition: color var(--dur) var(--ease);
}
.qa__q:hover, .qa.open .qa__q { color: var(--red-ink); }

.qa__sign { position: relative; flex: none; width: 18px; height: 18px; color: var(--red-ink); }
.qa__sign::before, .qa__sign::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 2.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.4s var(--ease);
}
.qa__sign::after { transform: rotate(90deg); }
.qa.open .qa__sign::after { transform: rotate(0deg); }

.qa__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease); }
.qa.open .qa__a { grid-template-rows: 1fr; }
.qa__a > div { overflow: hidden; }
.qa__a p {
  padding: 0 1.5rem 1.35rem;
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--text-2);
  text-wrap: pretty;
}

/* --- Contact ------------------------------------------------------------ */
.contact {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  padding: clamp(1.75rem, 4vw, 3rem);
}
@media (min-width: 56rem) { .contact { grid-template-columns: 1fr 1fr; } }

.perks { list-style: none; padding: 0; margin-top: 2rem; display: grid; gap: 0.9rem; }
.perks li { display: flex; align-items: flex-start; gap: 0.85rem; font-size: 0.94rem; color: var(--text-2); }
.perks svg { flex: none; width: 18px; height: 18px; margin-top: 0.3rem; color: var(--red); }

.mailto {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.6rem;
  border-top: 1.5px solid var(--ink);
  font: 900 0.88rem/1 var(--f-head);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color var(--dur) var(--ease);
}
.mailto svg { width: 18px; height: 18px; color: var(--red); }
.mailto:hover { color: var(--red-ink); }

.form { display: grid; gap: 1rem; align-content: start; }
.field { position: relative; }

.field input,
.field textarea {
  width: 100%;
  padding: 1.45rem 1.1rem 0.65rem;
  border: 1px solid var(--glass-edge);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--e1), var(--glass-spec);
  font-family: var(--f-body);
  font-size: 0.95rem;
  color: var(--ink);
  resize: vertical;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              background-color var(--dur) var(--ease);
}
.field textarea { min-height: 8.5rem; }

.field label {
  position: absolute;
  top: 1rem; left: 1.15rem;
  font: 800 0.66rem/1 var(--f-head);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
  pointer-events: none;
  transform-origin: 0 0;
  transition: transform var(--dur) var(--ease), color var(--dur) var(--ease);
}
.field input:focus + label,
.field textarea:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:not(:placeholder-shown) + label {
  transform: translateY(-0.6rem) scale(0.84);
  color: var(--red-ink);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 4px rgba(253, 60, 63, 0.14);
}
.field.invalid input,
.field.invalid textarea { border-color: var(--red); background: #fff5f5; }

.form__note {
  min-height: 1.35rem;
  font: 800 0.66rem/1.5 var(--f-head);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}
.form__note.ok { color: #0f7a45; }
.form__note.bad { color: var(--red-ink); }

.spinner {
  width: 14px; height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Footer: the one solid black surface -------------------------------- */
.footer {
  margin-top: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(2.5rem, 5vw, 3.5rem) 1.5rem;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--e4);
}

.footer__top {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
}
@media (min-width: 54rem) { .footer__top { grid-template-columns: 1.7fr 1fr 1fr 1fr; } }

.footer .brand__mark {
  border-color: rgba(255, 255, 255, 0.3);
  background: linear-gradient(160deg, rgba(253, 60, 63, 0.5), rgba(255, 255, 255, 0.08));
  color: #fff;
}
.footer__blurb {
  margin-top: 1.2rem;
  max-width: 34ch;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.62);
}

.footer h4 {
  font: 800 0.66rem/1 var(--f-head);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--red);
}
.footer ul { list-style: none; padding: 0; margin-top: 1.3rem; display: grid; gap: 0.8rem; }
.footer ul a {
  font: 800 0.68rem/1 var(--f-head);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}
.footer ul a:hover { color: #fff; padding-left: 4px; }

.wordmark {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  font-family: var(--f-head);
  font-weight: 900;
  font-size: clamp(2.6rem, 12.5vw, 9.5rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-align: center;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.2);
  user-select: none;
}

.footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font: 800 0.64rem/1.6 var(--f-head);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.footer__bar a { color: var(--red); }
.footer__bar a:hover { color: #fff; }
.footer__bar .sep { opacity: 0.35; margin-inline: 0.5rem; }

.footer__right { display: flex; align-items: center; gap: 1.5rem; }

.socials { display: flex; gap: 0.75rem; }
.socials a { color: #fff; transition: color var(--dur) var(--ease), transform var(--dur) var(--ease-out); }
.socials svg { width: 17px; height: 17px; }
.socials a:hover { color: var(--red); transform: translateY(-2px); }

.phone { color: #fff; letter-spacing: 0.22em; }

.to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 140;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border: 1px solid var(--glass-edge);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  backdrop-filter: blur(24px) saturate(var(--glass-sat));
  -webkit-backdrop-filter: blur(24px) saturate(var(--glass-sat));
  box-shadow: var(--e2), var(--glass-spec);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease-out),
              visibility var(--dur), background-color var(--dur) var(--ease),
              color var(--dur) var(--ease);
}
.to-top svg { width: 17px; height: 17px; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--red-solid); border-color: var(--red-solid); color: #fff; }

/* --- Reveal: content rises out of the backdrop into its layer ----------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px) scale(0.985);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--delay, 0ms);
}
[data-reveal].shown { opacity: 1; transform: none; }

/* --- Reduced motion / reduced transparency ------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .gaze, .grain { display: none; }
}

/* Glass is a preference, not a requirement — fall back to solid surfaces. */
@media (prefers-reduced-transparency: reduce) {
  .glass, .nav.stuck .nav__inner, .nav__drawer, .btn--glass, .to-top,
  .field input, .field textarea, .status, .device__arrow, .nav__toggle {
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .nav.stuck .nav__inner, .nav__drawer, .btn--glass, .to-top,
  .field input, .field textarea, .status, .device__arrow, .nav__toggle { background: #fff; }
}
