/* ==========================================================
   Studio Karry — Caroline Amirtharaj
   White · bold black · a little neon
   ========================================================== */

:root {
  --white: #ffffff;
  --paper: #f4f4f1;
  --ink: #0a0a0a;
  --ink-2: #3a3a3a;
  --muted: #8a8a85;
  --line: #e4e4df;
  --neon: #c6ff00;

  --display: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1440px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* menu links (#work, #about, #contact) stop below the sticky 68px header, with breathing room */
  scroll-padding-top: 100px;
}
body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--neon); color: var(--ink); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.scrolled { border-color: var(--line); }
.nav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo {
  font-family: var(--display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -.04em;
}
.logo .dot { color: var(--ink); }

/* Home nav: three icons that fold into "Studio Karry." on scroll */
.logo-morph { position: relative; display: inline-flex; align-items: center; height: 40px; }
.nav-icons { display: inline-flex; }
.ic {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border: 2px solid var(--ink); /* matches the 2px pixel strokes */
  border-radius: 50%;
  background: var(--white);
  transition: transform .6s var(--ease), opacity .45s var(--ease);
}
.ic + .ic { margin-left: 6px; }
.ic svg.px { display: block; fill: var(--ink); overflow: visible; } /* 1 grid unit = 1px for crisp pixels */

/* soft idle loops — pixel style, stepped timing */
.ic-bulb .ray { opacity: 0; animation: ray 3.6s steps(1, end) infinite; }
.ic-bulb .r2 { animation-delay: .15s; }
.ic-bulb .r3 { animation-delay: .3s; }
@keyframes ray {
  0%, 30% { opacity: 0; }
  36% { opacity: 1; }
  44% { opacity: .35; }
  48%, 70% { opacity: 1; }
  76%, 100% { opacity: 0; }
}

.ic-heart svg { animation: beat 2.4s steps(1, end) infinite; }
@keyframes beat {
  0%, 40%, 100% { transform: scale(1); }
  8% { transform: scale(1.18); }
  16% { transform: scale(1); }
  24% { transform: scale(1.12); }
  32% { transform: scale(1); }
}

.ic-bot .antenna { animation: antenna 2.8s steps(1, end) infinite; }
@keyframes antenna { 0%, 50%, 100% { transform: translateY(0); } 25% { transform: translateY(-1px); } }
.ic-bot .eye-open { animation: eye-open 4.2s steps(1, end) infinite; }
.ic-bot .eye-shut { opacity: 0; animation: eye-shut 4.2s steps(1, end) infinite; }
@keyframes eye-open { 0%, 64% { opacity: 1; } 66%, 74% { opacity: 0; } 76%, 100% { opacity: 1; } }
@keyframes eye-shut { 0%, 64% { opacity: 0; } 66%, 74% { opacity: 1; } 76%, 100% { opacity: 0; } }

.logo-morph .logo-text {
  position: absolute; left: 0; top: 50%;
  white-space: nowrap;
  transform: translateY(-50%);
  clip-path: inset(0 100% 0 0);
  transition: clip-path .7s var(--ease) .15s;
}
.nav.named .logo-text { clip-path: inset(0 -4px 0 0); }
.nav.named .ic { opacity: 0; }
.nav.named .ic:nth-child(1) { transform: scale(.4); transition-delay: .1s; }
.nav.named .ic:nth-child(2) { transform: translateX(-42px) scale(.4); transition-delay: .05s; }
.nav.named .ic:nth-child(3) { transform: translateX(-84px) scale(.4); }
.nav:not(.named) .ic:nth-child(1) { transition-delay: .2s; }
.nav:not(.named) .ic:nth-child(2) { transition-delay: .26s; }
.nav:not(.named) .ic:nth-child(3) { transition-delay: .32s; }
.nav:not(.named) .logo-text { transition-delay: 0s; }
.nav ul { display: flex; gap: clamp(16px, 3vw, 36px); list-style: none; }
.nav ul a {
  font-weight: 600; font-size: 15px;
  position: relative;
}
.nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px;
  height: 2px; background: var(--ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav ul a:hover::after, .nav ul a.active::after { transform: scaleX(1); }

/* ---------- Hero ---------- */
/* Sized against viewport height too, so name + title + intro sit above the fold */
.hero { padding: clamp(20px, 4vh, 56px) 0 clamp(28px, 5vh, 56px); }
.hero .wrap { position: relative; }
.hero-tag { position: absolute; right: var(--gutter); top: .4em; }
.hero-top {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  margin-bottom: clamp(24px, 4vw, 48px);
}
.status {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 14px;
  padding: 8px 14px 8px 12px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
}
.status i {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 0 1.5px var(--ink);
  animation: pulse 2s infinite;
}
@keyframes pulse { 50% { transform: scale(.7); } }

.wordmark {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(72px, min(24vw, 32vh), 380px);
  line-height: .78;
  letter-spacing: -.065em;
  margin-left: -.04em;
}
.wordmark .studio {
  display: block;
  font-size: clamp(20px, min(2.4vw, 4vh), 36px);
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1;
  margin: 0 0 .4em .12em;
}
.wordmark .period {
  display: inline-block;
  width: .2em; height: .2em;
  background: var(--neon);
  border-radius: 50%;
  margin-left: .02em;
  vertical-align: baseline;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  margin-top: clamp(28px, 6vh, 64px);
  align-items: end;
}
.hero-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(26px, min(3.6vw, 6vh), 52px);
  line-height: 1.05;
  letter-spacing: -.03em;
}

/* Rotating job title */
.rotator {
  display: inline-block;
  height: 1.1em;
  overflow: hidden;
  vertical-align: bottom;
}
.rotator-word {
  display: inline-block;
  transition: transform .5s var(--ease), opacity .5s var(--ease);
}
.rotator-word.out { transform: translateY(-100%); opacity: 0; }
.rotator-word.in { transform: translateY(100%); opacity: 0; transition: none; }
.hero-copy { font-size: clamp(16px, min(1.4vw, 2.6vh), 20px); color: var(--ink-2); max-width: 560px; }
.hero-meta {
  display: flex; gap: 24px; flex-wrap: wrap;
  margin-top: 20px;
}

/* ---------- Misregistered print effect (hover) ---------- */
:root { --ink-y: #ffe600; --ink-p: #ff2e8a; --ink-c: #1fb5ff; }

/* Nav icons: each fills with its own ink on hover */
.ic { transition: background-color .3s var(--ease), transform .6s var(--ease), opacity .45s var(--ease); }
.ic svg.px { transition: fill .3s var(--ease); }
/* only on devices with a real mouse — avoids "stuck" hover after a tap */
@media (hover: hover) and (pointer: fine) {
  .ic-bulb:hover  { background-color: var(--ink-y); }
  .ic-heart:hover { background-color: var(--ink-p); }
  .ic-bot:hover   { background-color: var(--ink-c); }
  .ic:hover svg.px { fill: var(--white); }
}

/* Wordmark: three ink copies behind the black "Karry" */
.mis {
  position: relative; display: inline-block; isolation: isolate;
  /* Safari clips an isolated blend group to its box; with line-height .78 that
     box ends above the "y" descender. Extra bottom padding (cancelled by the
     negative margin) keeps the descender inside without moving the layout. */
  padding-bottom: .3em;
  margin-bottom: -.3em;
}
.mis-k { position: relative; mix-blend-mode: multiply; }
.mis-l {
  position: absolute; left: 0; top: 0;
  mix-blend-mode: multiply;
  opacity: 0;
  transition: translate .45s var(--ease), opacity .3s var(--ease);
  pointer-events: none;
}
.mis-y { color: var(--ink-y); }
.mis-p { color: var(--ink-p); }
.mis-c { color: var(--ink-c); }
/* .split is added by JS on touch screens: once on load, and again on tap */
.wordmark.split .mis-l { opacity: 1; }
.wordmark.split .mis-y { translate: -.035em .02em; }
.wordmark.split .mis-p { translate: .025em .035em; }
.wordmark.split .mis-c { translate: .04em -.025em; }
@media (hover: hover) and (pointer: fine) {
  .wordmark:hover .mis-l { opacity: 1; }
  .wordmark:hover .mis-y { translate: -.035em .02em; }
  .wordmark:hover .mis-p { translate: .025em .035em; }
  .wordmark:hover .mis-c { translate: .04em -.025em; }
  .wordmark:hover .mis-l { animation: slip 1.6s steps(1, end) infinite; }
}

/* a tiny print-slip jitter while hovering */
@keyframes slip {
  0%, 100% { margin-left: 0; }
  33% { margin-left: 1px; }
  66% { margin-left: -1px; }
}

/* ---------- Marquee ---------- */
.marquee {
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  overflow: hidden;
  white-space: nowrap;
  padding: 14px 0;
}
.marquee-track {
  display: inline-flex; gap: 40px;
  animation: marquee 28s linear infinite;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(22px, 3vw, 40px);
  letter-spacing: -.03em;
  text-transform: uppercase;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 40px; }
.marquee-track span::after { content: "✦"; font-size: .6em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Section heading ---------- */
.section { padding: clamp(64px, 10vw, 140px) 0; }
.section-head {
  display: flex; justify-content: space-between; align-items: end;
  gap: 24px; flex-wrap: wrap;
  margin-bottom: clamp(32px, 5vw, 64px);
}
.h-xl {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(56px, 11vw, 168px);
  line-height: .85;
  letter-spacing: -.06em;
}
.h-xl sup {
  font-family: var(--mono);
  font-weight: 500;
  font-size: .14em;
  letter-spacing: 0;
  vertical-align: top;
  position: relative; top: .5em;
  margin-left: .2em;
}

/* ---------- Work cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2vw, 24px);
}
.card {
  --card: var(--neon);
  position: relative;
  display: flex; flex-direction: column;
  min-height: clamp(420px, 44vw, 640px);
  --pad: clamp(24px, 3.4vw, 48px);
  padding: var(--pad);
  background: var(--card);
  color: var(--fg, var(--ink));
  border-radius: 8px;
  overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.card:hover { transform: translate(-6px, -6px); box-shadow: 10px 10px 0 var(--ink); }
.card-top {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-bottom: clamp(32px, 5vw, 64px);
}
.card-num { font-family: var(--mono); font-size: 14px; font-weight: 500; }
.card-go {
  white-space: nowrap;
  font-weight: 600; font-size: 14px;
  background: var(--ink); color: var(--white);
  padding: 8px 14px; border-radius: 999px;
  opacity: 0; transform: translateY(-6px);
  transition: all .4s var(--ease);
}
.card:hover .card-go { opacity: 1; transform: none; }
.card-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(36px, 4.4vw, 68px);
  line-height: 1.04;
  letter-spacing: -.02em;
  max-width: 13ch;
}
.card-title .hl { color: var(--hl, var(--white)); }
.card-sub {
  font-family: var(--mono);
  font-size: clamp(13px, 1.1vw, 15px);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-top: 24px;
  max-width: 30ch;
}
.card-icon {
  width: clamp(64px, 7vw, 104px);
  margin-top: auto;
  align-self: flex-end;
  transition: transform .6s var(--ease);
}
.card:hover .card-icon { transform: rotate(-12deg) scale(1.08); }

/* Featured (full-width) work card with phone previews */
.card-feature { grid-column: 1 / -1; flex-direction: row; gap: clamp(24px, 4vw, 64px); min-height: clamp(420px, 38vw, 560px); }
.card-body { display: flex; flex-direction: column; flex: 1; }
.card-feature .card-title { max-width: 12ch; }
/* Dark phone rising from the bottom edge of the card (cropped by it) */
.device {
  --w: clamp(240px, 22vw, 320px);
  position: relative;
  flex: none;
  align-self: flex-end;
  width: var(--w);
  aspect-ratio: 9 / 19.5;
  margin: 24px clamp(0px, 6vw, 110px) calc(var(--w) * -.85 - var(--pad)) 0;
  padding: calc(var(--w) * .042);
  border-radius: calc(var(--w) * .18);
  background: #0c0c0d;
  box-shadow:
    inset 0 0 0 1.5px #4a4a4f,
    inset 0 0 0 4px #161618,
    0 -12px 40px -12px rgba(0,0,0,.35);
  transition: transform .8s var(--ease);
}
.device::before, .device::after {
  content: ""; position: absolute;
  width: 3px; border-radius: 2px;
  background: #222225;
}
.device::before { right: -3px; top: 22%; height: 12%; }
.device::after  { left: -3px; top: 17%; height: 7%; box-shadow: 0 calc(var(--w) * .16) 0 #222225; }
.device-screen {
  position: relative;
  height: 100%;
  border-radius: calc(var(--w) * .14);
  overflow: hidden;
  background: #fff;
}
.device-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.device-island {
  position: absolute;
  top: calc(var(--w) * .075); left: 50%;
  width: 30%; height: calc(var(--w) * .085);
  transform: translateX(-50%);
  background: #000;
  border-radius: 999px;
}
.card:hover .device { transform: translateY(-14px); }

/* Kelto case study */
.app-id { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.site-link {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 28px;
  font-weight: 700; font-size: 16px;
  border: 2px solid var(--ink); border-radius: 999px;
  padding: 10px 18px;
  transition: background .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.site-link:hover { background: var(--neon); transform: translate(-3px, -3px); box-shadow: 4px 4px 0 var(--ink); }
.app-id img { width: 56px; height: 56px; border-radius: 13px; }
.facts.four { grid-template-columns: repeat(4, 1fr); }
.phones { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.6vw, 24px); }
.phones img { border-radius: 18px; box-shadow: 0 20px 50px -24px rgba(0,0,0,.3); }
.brand-tile { display: grid; place-items: center; }
.brand-tile img { width: clamp(120px, 16vw, 200px); border-radius: 22%; }

/* ---------- Experience ---------- */
.exp-list { list-style: none; border-top: 2px solid var(--ink); }
.exp-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: clamp(18px, 2.4vw, 28px) 0;
  border-bottom: 1px solid var(--line);
  transition: padding .4s var(--ease);
}
.exp-list li:hover { padding-left: 16px; }
.exp-list .co {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(40px, 7vw, 104px);
  line-height: .9;
  letter-spacing: -.055em;
}

/* ---------- Recommendations ---------- */
.h-long { font-size: clamp(36px, 9vw, 132px); }
.recs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: clamp(24px, 4vw, 64px);
  border-top: 2px solid var(--ink);
}
.rec {
  display: flex; flex-direction: column;
  padding: clamp(28px, 4vw, 48px) 0;
  border-bottom: 1px solid var(--line);
}
.rec-pull {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.1;
  letter-spacing: -.025em;
  max-width: 22ch;
}
.rec-pull::before {
  content: "“";
  display: block;
  font-size: 2.2em; line-height: .7;
  margin-bottom: .1em;
}
.rec-who {
  display: flex; align-items: center; gap: 14px;
  margin-top: auto; padding-top: 22px;
  font-size: 15px; line-height: 1.35;
}
.rec-who strong { display: block; font-weight: 700; }
.rec-title { display: block; color: var(--ink-2); }
.rec-who .label { display: block; margin-top: 4px; font-size: 11px; }
.recs-more {
  display: inline-block;
  margin-top: 24px;
  font-weight: 600;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 2px;
  transition: background .25s var(--ease);
}
.recs-more:hover { background: var(--neon); }
.rec-avatar {
  flex: none;
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-family: var(--display); font-weight: 800; font-size: 16px;
  letter-spacing: -.02em;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
}
.about-lead {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(28px, 3.6vw, 54px);
  line-height: 1.04;
  letter-spacing: -.035em;
}
.mark {
  background: linear-gradient(transparent 58%, var(--neon) 58%, var(--neon) 92%, transparent 92%);
  padding: 0 .06em;
}
.about-body p + p { margin-top: 1em; }
.about-body p { color: var(--ink-2); }
.skills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.skills span {
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 14px; font-weight: 600;
}

/* ---------- Contact ---------- */
.contact {
  border-top: 2px solid var(--ink);
  padding: clamp(64px, 10vw, 140px) 0 clamp(32px, 4vw, 48px);
}
.contact-big {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(56px, 12.5vw, 200px);
  line-height: .84;
  letter-spacing: -.065em;
}
.mail {
  display: inline-flex; align-items: center; gap: 14px;
  margin-top: clamp(28px, 4vw, 48px);
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(20px, 3vw, 40px);
  letter-spacing: -.03em;
  background: var(--neon);
  border: 2px solid var(--ink);
  padding: .35em .7em;
  border-radius: 999px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  word-break: break-all;
}
.mail:hover { transform: translate(-4px, -4px); box-shadow: 6px 6px 0 var(--ink); }
.footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: clamp(64px, 9vw, 120px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.footer a { font-weight: 600; }
.footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer .label { display: block; margin-bottom: 6px; }

/* ==========================================================
   Case study pages
   ========================================================== */
.cs-hero { padding: clamp(40px, 7vw, 96px) 0 clamp(32px, 5vw, 64px); }
.back {
  display: flex; width: fit-content; gap: 8px; align-items: center;
  font-weight: 600; font-size: 15px;
  margin-bottom: clamp(32px, 5vw, 64px);
}
.back:hover { text-decoration: underline; text-underline-offset: 3px; }
.cs-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(52px, 10vw, 156px);
  line-height: .86;
  letter-spacing: -.06em;
  max-width: 13ch;
  margin-top: 16px;
}
.cs-intro {
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--ink-2);
  max-width: 720px;
  margin-top: clamp(24px, 3vw, 40px);
}
.facts {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid var(--ink);
  margin-top: clamp(40px, 6vw, 72px);
}
.facts div { padding: 18px 0; }
.facts div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.facts strong {
  display: block; margin-top: 6px;
  font-family: var(--display); font-weight: 800; font-size: clamp(18px, 2vw, 24px);
  letter-spacing: -.02em;
}
.cs-img {
  background: var(--paper);
  border-radius: 6px;
  overflow: hidden;
}
.cs-img.pad { padding: clamp(16px, 4vw, 56px); }
.cs-img img { width: 100%; }
.cs-img.pad img { border-radius: 4px; box-shadow: 0 20px 60px -20px rgba(0,0,0,.18); }
.caption { margin-top: 12px; }

.chapter { padding: clamp(64px, 9vw, 128px) 0 0; }
.chapter-head {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(24px, 5vw, 80px);
  padding-top: 20px; border-top: 2px solid var(--ink);
  margin-bottom: clamp(32px, 5vw, 64px);
}
.chapter h2 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(36px, 5.4vw, 80px);
  line-height: .92;
  letter-spacing: -.05em;
  margin-top: 12px;
}
.chapter-head p { color: var(--ink-2); font-size: clamp(17px, 1.4vw, 20px); padding-top: 32px; }

.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.cols.two { grid-template-columns: repeat(2, 1fr); }
.cols.four { grid-template-columns: repeat(4, 1fr); }
.col { border-top: 1px solid var(--ink); padding-top: 16px; }
.col h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(20px, 1.8vw, 26px);
  letter-spacing: -.025em;
  line-height: 1.1;
  margin: 8px 0 10px;
}
.col p { color: var(--ink-2); font-size: 16px; }

.quote {
  margin-top: clamp(48px, 7vw, 96px);
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(26px, 3.4vw, 48px);
  line-height: 1.08;
  letter-spacing: -.035em;
  max-width: 24ch;
}
.quote::before { content: "“"; display: block; font-size: 2.2em; line-height: .6; }
.quote cite { display: block; margin-top: 20px; font-style: normal; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); }
.stats.three { grid-template-columns: repeat(3, 1fr); }
.stat { padding: 24px 20px 24px 0; }
.stat + .stat { padding-left: 20px; border-left: 1px solid var(--line); }
.stat b {
  display: block;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(44px, 6.5vw, 104px);
  line-height: .9;
  letter-spacing: -.06em;
  margin-bottom: 14px;
}
.stat p { color: var(--ink-2); font-size: 15px; }

.ba { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 24px); }
.ba-card { border-radius: 6px; padding: clamp(24px, 3vw, 40px); }
.ba-card.before { background: var(--paper); }
.ba-card.after { background: var(--ink); color: var(--white); }
.ba-card ul { list-style: none; margin-top: 18px; }
.ba-card li {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(20px, 2.2vw, 30px); letter-spacing: -.03em; line-height: 1.15;
  padding: 10px 0; border-top: 1px solid rgba(128,128,128,.25);
}
.ba-card.after .label { color: var(--neon); }

.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(12px, 1.6vw, 20px); }
.gallery .cs-img { display: flex; align-items: center; justify-content: center; }
.span-12 { grid-column: span 12; }
.span-8 { grid-column: span 8; }
.span-7 { grid-column: span 7; }
.span-6 { grid-column: span 6; }
.span-5 { grid-column: span 5; }
.span-4 { grid-column: span 4; }

.role-block { margin-top: clamp(48px, 7vw, 88px); }
.role-block .row { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(24px, 5vw, 80px); margin-bottom: 28px; }
.role-block h3 {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(32px, 4vw, 56px); letter-spacing: -.05em; line-height: .95;
}
.role-block p { color: var(--ink-2); }

.next {
  display: block;
  margin-top: clamp(80px, 11vw, 160px);
  border-top: 2px solid var(--ink);
  padding: clamp(32px, 5vw, 64px) 0;
}
.next .h-xl { font-size: clamp(44px, 8vw, 128px); transition: letter-spacing .5s var(--ease); }
.next:hover .h-xl { letter-spacing: -.04em; }
.next .arrow {
  display: inline-grid; place-items: center;
  width: .58em; height: .58em;
  margin-left: .18em;
  vertical-align: .22em; /* centre the circle on the capital letters */
  border-radius: 50%;
  background: var(--neon);
  border: 2px solid var(--ink);
  letter-spacing: 0;
  transition: transform .4s var(--ease);
}
.next .arrow svg {
  width: 58%; height: 58%;
  fill: none; stroke: var(--ink); stroke-width: 2.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.next:hover .arrow { transform: rotate(-45deg); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .marquee-track, .status i, .ic, .ic svg, .ic svg * { animation: none; }
  .ic-bulb .ray { opacity: 1; }
  .wordmark:hover .mis-l { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .about-grid, .chapter-head, .role-block .row { grid-template-columns: 1fr; }
  .chapter-head p { padding-top: 0; }
  .cols, .cols.four { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stats .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .footer { grid-template-columns: 1fr 1fr; }
  .gallery [class*="span-"] { grid-column: span 12; }
  .cards { grid-template-columns: 1fr; }
  .recs { grid-template-columns: 1fr; }
  .facts.four { grid-template-columns: 1fr 1fr; }
  .facts.four div:nth-child(3) { padding-left: 0; border-left: 0; }
  .phones { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .nav ul { gap: 14px; }
  .nav ul a { font-size: 14px; }
  .cols, .cols.two, .cols.four, .ba, .stats.three { grid-template-columns: 1fr; }
  .stats.three .stat { padding-left: 0; border-left: 0; }
  .stats.three .stat + .stat { border-top: 1px solid var(--line); }
  .facts { grid-template-columns: 1fr; }
  .facts div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .card-go { opacity: 1; transform: none; }
  .card-feature { flex-direction: column; }
  .device { --w: min(64vw, 250px); align-self: center; margin: 40px auto calc(var(--w) * -.85 - var(--pad)); }
  .facts.four { grid-template-columns: 1fr; }
  .cs-title, .h-xl, .contact-big { letter-spacing: -.035em; }
}

/* ---------- Contact mascot (portrait that watches the cursor) ---------- */
.contact-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: clamp(24px, 4vw, 64px);
}
.mascot {
  position: relative;
  width: clamp(170px, 20vw, 280px);
  padding: 0; border: 0; background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mascot-head { display: block; }
.mascot-face { position: relative; display: block; width: 100%; }
.mascot-face img { width: 100%; height: auto; display: block; }
.mascot-eyes { position: absolute; inset: 0; width: 100%; height: 100%; }
.mascot-eyes .pupil circle { fill: #0a0a0a; }
.mascot-eyes .glint { fill: #fff; }
.mascot-eyes .lid { transform-box: fill-box; transform-origin: center; transition: transform .09s ease-in; }
.mascot.blink .lid { transform: scaleY(.1); }
.mascot-bubble {
  position: absolute; left: -8%; top: 4%;
  z-index: 1;
  padding: 8px 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--neon);
  font-family: var(--display); font-weight: 800; font-size: 15px;
  white-space: nowrap;
  opacity: 0; transform: translateY(6px) scale(.9);
  transition: opacity .2s, transform .3s var(--ease);
  pointer-events: none;
}
.mascot-bubble.show { opacity: 1; transform: none; }
@media (max-width: 600px) {
  .contact-row { grid-template-columns: 1fr; }
  .mascot { justify-self: center; width: min(62vw, 240px); }
}

/* Very small phones (≤360px): keep the logo and menu from touching */
@media (max-width: 360px) {
  .nav .wrap { gap: 12px; }
  .logo { font-size: 17px; }
  .nav ul { gap: 10px; }
  .nav ul a { font-size: 13px; }
}
