/* ============================================================
   Cijo Stany John — portfolio
   PERMANENT LIGHT MODE — audited WCAG AA contrast
   #faf9f6 bg · #181614 text · #efece5 deep · #d81b60 accessible pink
   #5f5a54 grey · #67635e dim · single grotesque (Inter Tight)
   ============================================================ */
:root {
  --vh: 1vh;
  /* LIGHT MODE: names preserved for the roles they play in the stylesheet.
     --black/--dark-black = surfaces (now light); --white/--warm-white = text (now dark). */
  --black: #faf9f6;          /* page background — warm paper */
  --dark-black: #efece5;     /* deep sections (loader/footer/contact) — warm light grey */
  --white: #181614;          /* primary text — near-black, 17:1 on bg */
  --warm-white: #2c2822;     /* warm hairlines + intro copy — 15:1 on bg */
  --grey: #5f5a54;           /* secondary text — 6.5:1 */
  --dark-grey: #ded9d0;      /* light grey surface */
  --dark-grey-2: #ece7de;    /* lighter grey surface */
  --primary: #d81b60;        /* accessible pink — 4.7:1 on bg, 4.95:1 white-on-pink */
  --footer-dim: #67635e;     /* dimmed text — 5.7:1 on bg, 5:1 on deep */
  --screen-unit: 100vw / 1440;
  --font: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
  --site-px: clamp(20px, calc(202 * var(--screen-unit)), 202px);
  --hero-title: clamp(56px, calc(104 * var(--screen-unit)), 156px);
  --display-xl: clamp(64px, calc(144 * var(--screen-unit)), 176px);
  --display-lg: clamp(44px, calc(116 * var(--screen-unit)), 132px);
  --display-sm: clamp(26px, calc(34 * var(--screen-unit)), 40px);
  --p1: clamp(15px, calc(18 * var(--screen-unit)), 22px);
  --p2: clamp(13px, calc(15 * var(--screen-unit)), 17px);
  --caption: clamp(11px, calc(13 * var(--screen-unit)), 14px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
body {
  width: 100%;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-weight: 300;
  font-size: clamp(13px, calc(16 * var(--screen-unit)), 17px);
  line-height: 1.2;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}
::selection { background: var(--primary); color: var(--white); }
a { color: inherit; text-decoration: none; pointer-events: auto; }
ul { list-style: none; }
@media (hover: hover) { * { cursor: none !important; } }

/* ---------- type helpers (Atlas scale) ---------- */
.display {
  font-weight: 500;
  text-transform: uppercase;
  font-size: var(--hero-title);
  line-height: 0.906;
  letter-spacing: -0.03em;
}
.display-sm {
  font-weight: 400;
  text-transform: uppercase;
  font-size: var(--display-sm);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.p1 { font-weight: 500; font-size: var(--p1); line-height: 1.3; letter-spacing: -0.01em; }
.p2 { font-weight: 300; font-size: var(--p2); line-height: 1.45; letter-spacing: -0.01em; }
.caption {
  font-weight: 500;
  font-size: var(--caption);
  text-transform: uppercase;
  line-height: 1.4;
  letter-spacing: 0.01em;
}
.accent { color: var(--primary); }

/* ---------- fixed background grid: lines set in one by one ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  overflow: hidden;
}
.bg-grid .grid-v, .bg-grid .grid-h { position: absolute; will-change: transform; }
.bg-grid .grid-v {
  top: 0; bottom: 0; width: 1px;
  background: rgba(24, 22, 20, 0.09);
  transform: scaleY(0); transform-origin: top;
}
.bg-grid .grid-h {
  left: 0; right: 0; height: 1px;
  background: rgba(24, 22, 20, 0.06);
  transform: scaleX(0); transform-origin: left;
}
.bg-grid .grid-v:nth-child(4) { background: rgba(246, 88, 147, 0.16); }

/* ---------- cursor (Lusion mechanics, Atlas skin) ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 300; pointer-events: none;
  border-radius: 50%;
}
.cursor-dot { width: 7px; height: 7px; background: #ffffff; mix-blend-mode: difference; }
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(24, 22, 20, 0.5);
  display: grid; place-items: center;
  transition: width .3s ease, height .3s ease, background .3s ease, border-color .3s ease;
}
.cursor-ring.hovering { width: 52px; height: 52px; border-color: var(--white); background: rgba(24, 22, 20, 0.07); }
.cursor-ring.labeled { width: 78px; height: 78px; background: var(--white); border-color: transparent; }
.cursor-label { font-size: 9px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--black); opacity: 0; transition: opacity .25s ease; }
.cursor-ring.labeled .cursor-label { opacity: 1; }
@media (hover: none) { .cursor-dot, .cursor-ring { display: none; } }

/* ---------- scroll indicator (right edge bar) ---------- */
#scrollIndicator {
  position: fixed; top: 0; right: 0; width: 10px; height: 100vh; z-index: 40; pointer-events: none;
}
#scrollIndicatorBar {
  position: absolute; top: 0; right: 2px;
  width: 3px; height: 120px; background: var(--primary);
}

/* ---------- nav ---------- */
.nav {
  position: fixed; z-index: 50;
  left: clamp(20px, calc(32 * var(--screen-unit)), 32px);
  right: clamp(20px, calc(32 * var(--screen-unit)), 32px);
  top: clamp(16px, 2.5vh, 24px);
  display: flex; justify-content: space-between; align-items: flex-start;
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav-left { display: flex; flex-direction: column; gap: 14px; }
.nav-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: clamp(17px, calc(20 * var(--screen-unit)), 22px);
  text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.1;
  color: var(--white); white-space: nowrap;
  opacity: 0; transition: opacity .45s ease;
}
.nav-logo.on { opacity: 1; }
.nav-logo .accent {
  font-size: 1.15em;
  text-shadow: 0 0 10px rgba(216, 27, 96, .5);
}
.nav-links { display: flex; gap: 22px; overflow: hidden; }
.nav-link {
  font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: 0;
  color: var(--white);
  opacity: 0; transition: opacity .45s ease;
}
.nav-right.on .nav-link, .nav-links.on .nav-link { opacity: 1; }
.nav-right {
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  opacity: 0; transition: opacity .45s ease;
}
.nav-right.on { opacity: 1; }
.nav-sub { font-size: 10px; color: var(--footer-dim); }
.nav-cta {
  background: var(--white); color: var(--black);
  font-weight: 500; font-size: 12px; text-transform: uppercase;
  padding: 8px 14px; display: inline-flex; align-items: center;
  transition: background .25s ease;
}
.nav-cta:hover { background: var(--primary); color: var(--black); }

/* ---------- loader: plain dark screen behind the glitching name ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--dark-black);
  overflow: hidden;
}
.name-stage {
  position: fixed; inset: 0; z-index: 210;
  display: grid; place-items: center;
  perspective: 1000px;
  pointer-events: none;
}
.loader-word {
  font-family: var(--font);
  font-weight: 500;
  font-size: clamp(26px, 4.6vw, 64px);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--white);
  display: flex; flex-wrap: wrap; justify-content: center;
  line-height: 1; max-width: 90vw;
  transform-style: preserve-3d;
}
.loader-letter { display: inline-block; opacity: 0; }
.loader-space { width: .45em; }
.loader-letter.scrambling { color: var(--grey); opacity: .85; }
.loader-letter.glitch-in {
  opacity: 1;
  color: var(--white);
  text-shadow: 1.5px 0 rgba(246, 88, 147, 0.85), -1.5px 0 rgba(95, 90, 84, 0.55);
  animation: glitchPop .5s steps(3, end) both;
}
@keyframes glitchPop {
  0% { opacity: .15; transform: skewX(-10deg) translateX(6px); text-shadow: 4px 0 rgba(246, 88, 147, 0.9), -4px 0 rgba(95, 90, 84, 0.7); }
  35% { opacity: 1; transform: skewX(7deg) translateX(-5px); text-shadow: -5px 0 rgba(246, 88, 147, 0.9), 5px 0 rgba(95, 90, 84, 0.7); }
  65% { transform: skewX(-4deg); text-shadow: 2px 0 rgba(246, 88, 147, 0.85), -2px 0 rgba(95, 90, 84, 0.55); }
  100% { opacity: 1; transform: none; text-shadow: 1.5px 0 rgba(246, 88, 147, 0.85), -1.5px 0 rgba(95, 90, 84, 0.55); }
}
.loader-letter.morphed {
  color: var(--white);
  text-shadow: none;
  opacity: 1;
}

/* ---------- periodic glitch on the landed logo ---------- */
.nav-logo.glitch-burst { animation: logoGlitch .38s steps(2, end) both; }
@keyframes logoGlitch {
  0%  { transform: translateX(0) skewX(0); text-shadow: 3px 0 rgba(246, 88, 147, .9), -3px 0 rgba(95, 90, 84, .6); }
  25% { transform: translateX(-2px) skewX(-6deg); text-shadow: -4px 0 rgba(246, 88, 147, .9), 4px 0 rgba(95, 90, 84, .7); }
  55% { transform: translateX(2px) skewX(4deg); text-shadow: 2px 0 rgba(246, 88, 147, .8), -2px 0 rgba(95, 90, 84, .55); }
  100% { transform: none; text-shadow: none; }
}

/* work-section cube (kept) */
.work-3d {
  position: absolute;
  top: calc(clamp(16px, 2.5vh, 24px) + 100px);
  right: calc(var(--site-px) + 3vw);
  width: clamp(56px, 5vw, 84px);
  aspect-ratio: 1;
  perspective: 1100px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(20px) scale(.7);
}
.cube-wrap { position: absolute; }
.cube {
  position: absolute;
  width: var(--cs); height: var(--cs);
  margin-left: calc(var(--cs) / -2);
  margin-top: calc(var(--cs) / -2);
  transform-style: preserve-3d;
  animation: cubeSpin var(--dur, 16s) linear infinite;
}
@keyframes cubeSpin {
  from { transform: rotateX(-22deg) rotateY(0deg); }
  to   { transform: rotateX(-22deg) rotateY(360deg); }
}
.cube > span {
  position: absolute; inset: 0;
  border: 1px solid rgba(246, 88, 147, 0.55);
  background: rgba(246, 88, 147, 0.04);
  box-shadow: inset 0 0 22px rgba(246, 88, 147, 0.07);
}
.cube > span:nth-child(1) { transform: translateZ(calc(var(--cs) / 2)); }
.cube > span:nth-child(2) { transform: rotateY(90deg) translateZ(calc(var(--cs) / 2)); }
.cube > span:nth-child(3) { transform: rotateY(180deg) translateZ(calc(var(--cs) / 2)); }
.cube > span:nth-child(4) { transform: rotateY(-90deg) translateZ(calc(var(--cs) / 2)); }
.cube > span:nth-child(5) { transform: rotateX(90deg) translateZ(calc(var(--cs) / 2)); }
.cube > span:nth-child(6) { transform: rotateX(-90deg) translateZ(calc(var(--cs) / 2)); }

/* ---------- page ---------- */
.page { position: relative; z-index: 1; }
.pin-inner {
  position: sticky; top: 0;
  height: 100vh; height: calc(var(--vh) * 100);
  overflow: hidden;
}

/* ================= HERO (pinned 200vh) ================= */
.hero { position: relative; height: 200vh; }
.hero .pin-inner {
  display: flex; align-items: center; justify-content: center;
  padding: 0 var(--site-px);
}
.hero-content { position: relative; z-index: 2; width: 100%; }
.hero-title {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  justify-content: center; gap: 0.14em;
  height: auto; width: 100%;
  line-height: 0.95;
}
.hero-title .line { display: block; overflow: hidden; white-space: nowrap; }
/* line 1 script needs overflow visible + padding so the 'y' descender is not cut */
.hero-title .line-1 { overflow: visible; padding-bottom: 0.18em; }
.hero-title .line > * { display: inline-block; transform: translateY(115%); }
/* Tool-driven draw: a soft wipe is revealed as the 3D tool writes the word. */
.hero-title .line > span.is-drawing {
  -webkit-mask-image: linear-gradient(90deg, #000 0 calc(var(--draw, 0) * 100%), transparent calc(var(--draw, 0) * 100% + 9%));
  mask-image: linear-gradient(90deg, #000 0 calc(var(--draw, 0) * 100%), transparent calc(var(--draw, 0) * 100% + 9%));
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
}

/* Line 1 — was line 3: Renitah-style flowing script, transparent fill + outline only */
.hero-title .line-1 > span {
  font-family: 'Great Vibes', cursive;
  font-size: 1.18em;          /* script renders optically small — boost */
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--white);
  text-stroke: 1.2px var(--white);
}
/* Line 2 — was line 1: Belgan-style elegant serif, solid ink text */
.hero-title .line-2 > span {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.82em;          /* reduced — quieter middle line */
  font-weight: 500;
  color: var(--white);
}
/* Line 3 — was line 2: Holiday-style chunky slab, featured pink.
   Size matches line 1 so both lines' outer letters line up. */
.hero-title .line-3 > span {
  font-family: 'Bitter', Georgia, serif;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.01em;
}
/* ---------- LED strip — full-width scrolling words, no borders, no scan line ---------- */
.led-strip {
  width: calc(100% + 2 * var(--site-px));   /* extend to the extreme left/right edges */
  margin-left: calc(-1 * var(--site-px));
  margin-top: clamp(28px, 4.5vh, 56px);
  opacity: 0; transform: translateY(24px);
}
.led-inner {
  position: relative;
  overflow: hidden;
  padding: 12px 0;
}
.led-track {
  display: flex;
  width: max-content;
  animation: ledScroll 26s linear infinite;
}
.led-track span {
  white-space: nowrap;
  padding-right: 3em;
  font-size: clamp(14px, 1.5vw, 20px);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--grey);
}
@keyframes ledScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .led-track { animation: none; }
}
.scroll-to-explore {
  position: fixed; bottom: 22px; left: 0; right: 0; z-index: 30;
  text-align: center; color: var(--footer-dim);
  opacity: 0;
}

/* ================= INTRO (pinned 200vh, char reveal) ================= */
.intro { position: relative; height: 200vh; }
.intro .pin-inner {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8vh; padding: 0 var(--site-px);
  color: var(--warm-white);
}
.intro-copy {
  text-align: center;
  font-size: clamp(28px, calc(34 * var(--screen-unit)), 42px);
  letter-spacing: -0.02em;
  line-height: 0.95;
}
.intro-copy .char { will-change: opacity; opacity: 0.12; }
.intro-stats {
  display: flex; gap: clamp(28px, 5vw, 80px);
  border-top: 1px solid rgba(24, 22, 20, 0.16);
  padding-top: 26px;
}
.stat { display: flex; flex-direction: column; gap: 8px; }
.stat-n { font-weight: 500; font-size: clamp(26px, 2.6vw, 40px); line-height: 1; color: var(--primary); }
.stat-l { color: var(--footer-dim); }

/* ================= WORK (pinned 400vh rotator) ================= */
.work { position: relative; }
.work-track { position: relative; height: 400vh; }
.work-pin {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(clamp(16px, 2.5vh, 24px) + 70px) var(--site-px) clamp(28px, 5vh, 56px);
}
.work-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 24px;
}
.work-index { font-size: var(--display-sm); font-weight: 300; letter-spacing: -0.02em; line-height: 1; }
.work-index #workNum { color: var(--primary); }
.work-label {
  display: flex; flex-direction: column; align-items: flex-end;
  font-size: var(--display-sm); font-weight: 400; text-transform: uppercase;
  line-height: 1.0; letter-spacing: -0.02em;
}
.work-dots { display: flex; gap: 10px; padding-top: 10px; }
.work-dots li {
  width: 5px; height: 5px; border-radius: 50%;
  border: 1px solid var(--white);
  transition: background .25s ease, transform .25s ease;
}
.work-dots li.is-active { background: var(--primary); border-color: var(--primary); }
.work-desc-stack { position: relative; max-width: 430px; min-height: 7.5em; }
.work-desc-stack p {
  position: absolute; top: 0; left: 0;
  font-weight: 300; font-size: var(--p2); line-height: 1.5; letter-spacing: -0.01em;
  color: var(--grey);
  opacity: 0; transform: translateY(14px);
  transition: opacity .45s ease, transform .45s ease;
  pointer-events: none;
}
.work-desc-stack p.is-active { opacity: 1; transform: none; pointer-events: auto; }
.work-bottom { display: flex; flex-direction: column; align-items: flex-end; gap: 22px; }
.work-meta { position: relative; height: 2.8em; width: 100%; }
.work-meta span {
  position: absolute; right: 0; bottom: 0;
  color: var(--footer-dim);
  opacity: 0; transform: translateY(8px);
  transition: opacity .45s ease, transform .45s ease;
  white-space: nowrap;
}
.work-meta span.is-active { opacity: 1; transform: none; }
.work-title {
  position: relative;
  font-size: var(--display-xl);
  text-align: right; width: 100%;
  height: 1em;
}
.work-title span {
  position: absolute; right: 0; top: 0;
  white-space: nowrap;
  transform: translateX(40%);
  opacity: 0;
  transition: transform .55s cubic-bezier(.22,.9,.3,1), opacity .55s ease;
}
.work-title span.is-active { transform: none; opacity: 1; }
.work-link-stack { position: relative; height: 2.2em; width: 100%; }
.work-link-stack a {
  position: absolute; right: 0;
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 500; font-size: 12px; text-transform: uppercase;
  color: var(--white);
  background: rgba(24, 22, 20, 0.07);
  padding: 9px 14px;
  opacity: 0; transform: translateY(8px);
  transition: opacity .45s ease, transform .45s ease, background .25s ease;
  pointer-events: none;
}
.work-link-stack a .arr { transition: transform .25s ease; }
.work-link-stack a:hover { background: var(--primary); }
.work-link-stack a:hover .arr { transform: translate(2px, -2px); }
.work-link-stack a.is-active { opacity: 1; transform: none; pointer-events: auto; }

/* ================= AWS (SAA-C03 showcase) ================= */
.aws {
  position: relative; z-index: 1;
  padding: clamp(90px, 14vh, 180px) var(--site-px) clamp(70px, 10vh, 140px);
}
.aws-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 30px;
  margin-bottom: clamp(40px, 6vh, 80px);
}
.aws-note { max-width: 460px; color: var(--grey); }
.pillars { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(36px, 6vh, 70px); }
.pillar {
  border: 1px solid rgba(24, 22, 20, 0.2);
  padding: 9px 14px;
  color: var(--grey);
  transition: color .25s ease, border-color .25s ease;
}
.pillar:hover { color: var(--primary); border-color: rgba(246, 88, 147, 0.5); }

/* --- diagram --- */
.aws-svg-wrap {
  border: 1px solid rgba(24, 22, 20, 0.16);
  background: rgba(255, 255, 255, 0.75);
  padding: clamp(12px, 2vw, 30px);
  margin-bottom: clamp(40px, 6vh, 72px);
}
.aws-svg { width: 100%; height: auto; display: block; }
.aws-svg .node rect {
  fill: rgba(255, 255, 255, 0.95);
  stroke: rgba(24, 22, 20, 0.3);
  stroke-width: 1;
}
.aws-svg .node-hot rect { stroke: rgba(246, 88, 147, 0.65); }
.aws-svg .node-note rect { stroke: rgba(24, 22, 20, 0.16); fill: rgba(239, 236, 229, 0.9); }
.aws-svg .n-name {
  fill: var(--white);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  text-anchor: middle;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.aws-svg .n-sub {
  fill: var(--grey);
  font-family: var(--font);
  font-size: 10px;
  font-weight: 400;
  text-anchor: middle;
}
.aws-svg .region-tag {
  fill: rgba(95, 90, 84, 0.6);
  font-family: var(--font);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .14em;
  text-anchor: end;
}
.aws-svg .flow {
  fill: none;
  stroke: var(--primary);
  stroke-width: 1.5;
  stroke-dasharray: 5 7;
  animation: flowDash 1.1s linear infinite;
  animation-play-state: paused;
}
.aws-svg .flow-grey {
  fill: none;
  stroke: rgba(95, 90, 84, 0.55);
  stroke-width: 1;
  stroke-dasharray: 3 6;
  animation: flowDash 1.6s linear infinite;
  animation-play-state: paused;
}
.aws-svg.play .flow, .aws-svg.play .flow-grey { animation-play-state: running; }
@keyframes flowDash { to { stroke-dashoffset: -24; } }

/* --- decision callouts --- */
.aws-decisions {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 30px);
}
.aws-decisions li {
  display: flex; gap: 16px;
  border-top: 1px solid rgba(24, 22, 20, 0.18);
  padding-top: 18px;
}
.aws-decisions .d-no {
  font-weight: 500; font-size: 12px; line-height: 1.5;
}
.aws-decisions h6 {
  font-weight: 500; font-size: clamp(14px, 1.1vw, 17px);
  text-transform: uppercase; line-height: 1.2; letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.aws-decisions p { color: var(--grey); }

/* ================= APPROACH (Atlas specs-list) ================= */
.approach {
  position: relative; z-index: 1;
  padding: clamp(90px, 14vh, 180px) var(--site-px) clamp(70px, 10vh, 140px);
}
.approach-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 30px;
  margin-bottom: clamp(48px, 7vh, 96px);
}
.approach-note { max-width: 420px; color: var(--grey); }
.sec-idx { display: block; color: var(--primary); margin-bottom: 16px; }
.spec-idx { display: block; font-size: 11px; font-weight: 500; letter-spacing: .12em; margin-bottom: 10px; }
.specs-list {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 30px);
}
.specs-list li {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: clamp(300px, 42vh, 420px);
  padding: clamp(28px, 3vw, 46px) clamp(24px, 2.6vw, 40px) clamp(18px, 2vh, 26px);
}
.specs-list li:nth-child(2) { transform: translateY(3.5em); }
.specs-list li > div:first-child h6 {
  font-weight: 500; font-size: clamp(17px, 1.3vw, 21px);
  text-transform: uppercase; line-height: 1.15; letter-spacing: -0.01em;
}
.specs-list li > div:nth-child(2) { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.specs-list li p { color: var(--grey); }
.specs-list .squares-decorator {
  position: absolute; inset: 0; z-index: -1;
  border: 1px solid rgba(24, 22, 20, 0.2);
  background: rgba(255, 255, 255, 0.75);
  transition: border-color .3s ease;
}
.specs-list li:hover .squares-decorator { border-color: rgba(246, 88, 147, 0.5); }
.specs-list .squares-decorator span {
  position: absolute; width: 6px; height: 6px; background: var(--primary);
}
.specs-list .squares-decorator span:nth-child(1) { top: 0; left: 0; transform: translate(-50%, -50%); }
.specs-list .squares-decorator span:nth-child(2) { top: 0; right: 0; transform: translate(50%, -50%); }
.specs-list .squares-decorator span:nth-child(3) { bottom: 0; left: 0; transform: translate(-50%, 50%); }
.specs-list .squares-decorator span:nth-child(4) { bottom: 0; right: 0; transform: translate(50%, 50%); }
.specs-list .squares-decorator span:nth-child(5) { top: 25%; right: 0; transform: translate(50%, 25%); }
.specs-list .squares-decorator span:nth-child(6) { top: 25%; left: 0; transform: translate(-50%, 25%); }

/* ================= CONTACT (Atlas build-to-spec) ================= */
.contact {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(60px, 10vh, 120px);
  padding: clamp(140px, 20vh, 260px) var(--site-px) clamp(120px, 18vh, 220px);
  text-align: center;
}
.contact-title {
  display: flex; flex-direction: column; align-items: center;
  font-size: var(--display-lg);
  line-height: 1.05;
}
.contact-title span:last-child { color: var(--primary); }
.contact-actions { display: flex; flex-direction: column; align-items: center; gap: 40px; }
.btn-atlas {
  position: relative;
  background: var(--dark-black); color: var(--white);
  font-weight: 500; font-size: 13px; text-transform: uppercase;
  padding: 24px 40px;
  display: inline-flex; align-items: center; gap: 1em;
  overflow: hidden;
}
.btn-atlas::before {
  content: ""; position: absolute; left: 0; top: 0;
  width: 2ex; height: 100%;
  background: var(--primary);
  transform: scaleX(0); transform-origin: left;
  transition: transform .2s ease-in-out;
}
.btn-atlas:hover::before { transform: scaleX(1); }
.btn-atlas span { position: relative; transition: transform .2s ease-in-out; }
.btn-atlas:hover span { transform: translateX(1ex); }
.contact-links { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; }
.contact-links a { color: var(--footer-dim); transition: color .25s ease; }
.contact-links a:hover { color: var(--white); }

/* ================= FOOTER (Atlas: double hairlines, columns) ================= */
.footer {
  position: relative; z-index: 2;
  background: var(--dark-black);
  padding: clamp(60px, 9vh, 110px) var(--site-px) 30px;
}
.footer::before, .footer::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 8px;
  border-top: 1px solid var(--warm-white);
  border-bottom: 1px solid var(--warm-white);
  opacity: .1;
}
.footer::before { top: 8px; }
.footer::after { bottom: 8px; }
.footer-top {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: clamp(24px, 4vw, 60px);
}
.footer-logo-col { display: flex; align-items: flex-start; }
.footer-logo { color: var(--footer-dim); line-height: 1.05; }
.footer-col { display: flex; flex-direction: column; gap: 12px; padding-bottom: 2em; }
.col-label { color: var(--footer-dim); }
.footer-col a { color: var(--white); font-weight: 500; font-size: var(--caption); text-transform: uppercase; transition: color .25s ease; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  margin-top: clamp(70px, 12vh, 140px);
  padding-top: 26px;
  border-top: 1px solid rgba(24, 22, 20, 0.14);
  display: flex; justify-content: space-between; gap: 20px;
  color: var(--footer-dim);
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero-title { height: auto; gap: .05em; }
  .intro-stats { flex-wrap: wrap; gap: 20px; }
  .specs-list { grid-template-columns: 1fr; }
  .specs-list li:nth-child(2) { transform: none; }
  .work-desc-stack { max-width: 70vw; }
  .work-title { font-size: clamp(34px, 9vw, 64px); height: 1em; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .nav-links, .nav-sub { display: none; }
  .work-3d { display: none; }
}
