/* ══════════════════════════════════════════════════════════════
   vaultaagency.com/portfolio  +  /portfolio/info
   Structure after perryw-2023.webflow.io. Atmosphere and type
   colours are the site's own (style.css tokens). Components are
   ported to plain CSS/JS from Aceternity UI (background beams,
   spotlight card, text reveal, timeline, hover border gradient,
   shimmer button), 21st.dev (section header, feature bento,
   closing CTA) and bklit (facts strip, browser window). The only
   script library is Motion, self-hosted at assets/vendor/motion.min.js.
   ══════════════════════════════════════════════════════════════ */

@font-face { font-family: 'Neue Montreal'; src: url('/assets/portfolio/fonts/PPNeueMontreal-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Neue Montreal'; src: url('/assets/portfolio/fonts/PPNeueMontreal-Book.woff2') format('woff2'); font-weight: 400; font-display: swap; }

@property --a { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

:root {
  --disp:  'Inter Tight', 'Inter', system-ui, sans-serif;
  --body:  'Inter', system-ui, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, monospace;
  --serif: 'Gloock', 'Times New Roman', serif;

  --bg:        #0A0A09;
  --fg:        #F4F2EE;
  --fg-72:     rgba(244,242,238,0.72);
  --fg-55:     rgba(244,242,238,0.55);
  --fg-35:     rgba(244,242,238,0.35);
  --line:      rgba(244,242,238,0.10);
  --line-2:    rgba(244,242,238,0.18);
  --ink:       #111110;
  --ink-55:    rgba(17,17,16,0.58);
  --ink-35:    rgba(17,17,16,0.38);
  --ink-line:  rgba(17,17,16,0.10);
  --blue:      #1B3BFF;
  --blue-soft: #5B74FF;
  --blue-pale: #9AAAFF;
  --bezel:     #171716;
  --bezel-2:   #1f1f1e;
  --screen:    #121211;

  --glow: 0 6px 14px rgba(27,59,255,0.38), 0 -4px 12px rgba(91,116,255,0.20), 0 0 34px rgba(244,242,238,0.16);
  --w: 1040px;
  --pad: 24px;
  --ease: cubic-bezier(.22,1,.36,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { color-scheme: dark; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  position: relative;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
textarea, input { font: inherit; }
:focus-visible { outline: 2px solid var(--blue-soft); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* black + blue atmosphere from the site's services hand-off wash */
.atmo {
  position: absolute;
  inset: 0 0 auto;
  height: 1500px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle closest-corner at 50% 0, rgba(27,59,255,0.34), rgba(27,59,255,0) 100%),
    radial-gradient(ellipse 120% 60% at 50% 42%, rgba(27,59,255,0.28) 0%, rgba(91,116,255,0.12) 40%, rgba(10,10,9,0) 72%),
    radial-gradient(40% 34% at 92% 62%, rgba(13,20,60,0.85), transparent 80%);
  -webkit-mask-image: linear-gradient(#000 70%, transparent);
  mask-image: linear-gradient(#000 70%, transparent);
}
.atmo::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
}

.wrap { width: min(var(--w), 100% - var(--pad) * 2); margin-inline: auto; }
.narrow { width: min(882px, 100% - var(--pad) * 2); margin-inline: auto; }

/* ═══ NAV ═══ */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: 150px;
  padding: calc(24px + env(safe-area-inset-top, 0px)) 48px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0));
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--disp);
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-72);
  background: rgba(10,10,9,0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: color .2s, border-color .2s, background-color .2s;
  justify-self: start;
}
.back:hover { color: var(--fg); border-color: rgba(244,242,238,0.32); background: rgba(244,242,238,0.05); }
.back svg { width: 14px; height: 14px; }

.pill {
  position: relative;
  display: flex;
  align-items: center;
  width: 180px;
  height: 48px;
  padding: 0 6px;
  border-radius: 24px;
  background: rgba(244,242,238,0.05);
  border: 1px solid rgba(244,242,238,0.10);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  transition: background .4s, border-color .4s, box-shadow .8s cubic-bezier(.23,1,.32,1);
}
.pill:hover { background: rgba(244,242,238,0.08); border-color: rgba(244,242,238,0.20); box-shadow: 0 15px 40px rgba(0,0,0,0.30); }
.pill a {
  position: relative;
  z-index: 1;
  flex: 1;
  text-align: center;
  font-family: var(--disp);
  font-weight: 500;
  font-size: 14px;
  line-height: 36px;
  color: var(--fg-72);
  transition: color .3s;
}
.pill a[aria-current="page"] { color: var(--fg); }
.pill .thumb { position: absolute; top: 5px; left: 6px; width: 84px; height: 36px; border-radius: 18px; background: rgba(244,242,238,0.08); }
.pill .ind { position: absolute; top: -2px; left: 36px; width: 24px; height: 4px; border-radius: 2px; background: var(--blue-soft); box-shadow: 0 2px 22px 2px rgba(91,116,255,0.9); }
.pill[data-on="info"] .thumb, .pill[data-on="info"] .ind { transform: translateX(84px); }

.nav-right { display: flex; justify-content: flex-end; align-items: center; gap: 20px; }
.nav-logo img { height: 16px; width: auto; opacity: .92; }
.nav-logo:hover img { opacity: 1; }
.nav .nav-logo .dark { display: none; }
.nav.on-white { background: linear-gradient(rgba(255,255,255,0.92), rgba(255,255,255,0)); }
.nav.on-white .back { color: var(--ink); border-color: rgba(17,17,16,0.18); background: rgba(255,255,255,0.7); }
.nav.on-white .back:hover { border-color: rgba(17,17,16,0.4); background: #fff; }
.nav.on-white .pill { background: rgba(17,17,16,0.05); border-color: rgba(17,17,16,0.12); box-shadow: 0 10px 25px rgba(0,0,0,0.08); }
.nav.on-white .pill a { color: var(--ink-55); }
.nav.on-white .pill a[aria-current="page"] { color: var(--ink); }
.nav.on-white .pill .thumb { background: rgba(17,17,16,0.08); }
.nav.on-white .pill .ind { background: var(--blue); box-shadow: 0 2px 18px 2px rgba(27,59,255,0.6); }
.nav.on-white .nav-logo .light { display: none; }
.nav.on-white .nav-logo .dark { display: block; }

/* ═══ BUTTONS: Aceternity shimmer (primary) + hover border gradient (ghost) ═══ */
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: var(--disp);
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: -0.005em;
  line-height: 1;
  white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s, background-color .25s, color .25s;
}
.btn svg { width: 14px; height: 14px; flex: none; }
.btn.sm { height: 38px; padding: 0 16px; font-size: 13px; }
.btn.primary {
  color: #fff;
  background: var(--blue);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(27,59,255,0.35), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn.primary::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 32%, rgba(255,255,255,0.32) 50%, transparent 68%);
  transform: translateX(-130%);
  animation: shimmer 3.4s var(--ease) infinite;
}
@keyframes shimmer { 0% { transform: translateX(-130%); } 55%, 100% { transform: translateX(130%); } }
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 14px 36px rgba(27,59,255,0.48), inset 0 1px 0 rgba(255,255,255,0.22); }
.btn.ghost { color: var(--fg); border: 1px solid var(--line-2); background: rgba(244,242,238,0.03); }
.btn.ghost::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--a), transparent 0 55%, var(--blue-pale) 75%, var(--blue-soft) 85%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.btn.ghost:hover { background: rgba(244,242,238,0.06); }
.btn.ghost:hover::before { opacity: 1; animation: turn 1.4s linear infinite; }
@keyframes turn { to { --a: 360deg; } }
.btn.circle { width: 40px; height: 40px; padding: 0; }
.on-light .btn.ghost { color: var(--ink); border-color: var(--ink-line); background: #fff; }
.on-light .btn.ghost:hover { background: #F4F2EE; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ═══ CHIPS ═══ */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(244,242,238,0.18);
  background: rgba(10,10,9,0.3);
  font-family: var(--disp);
  font-weight: 500;
  font-size: 12.5px;
  color: var(--fg-72);
  white-space: nowrap;
}
.chip.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.on-light .chip { border-color: rgba(17,17,16,0.16); background: #fff; color: var(--ink); }
.on-light .chip.on { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ═══ TYPE ═══ */
.display {
  font-family: var(--disp);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.95;
  font-size: 76px;
  color: var(--fg);
  text-shadow: var(--glow);
  text-wrap: balance;
}
.display em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  background: linear-gradient(180deg, var(--blue-pale) 20%, var(--blue-soft) 60%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  padding-right: .06em;
  filter: drop-shadow(0 6px 22px rgba(27,59,255,0.45));
}
.display .w { display: inline-block; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-soft);
}
.eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--blue-soft); box-shadow: 0 0 12px 2px rgba(91,116,255,0.7); }
.on-light .eyebrow { color: var(--blue); }
.on-light .eyebrow i { background: var(--blue); box-shadow: 0 0 10px 2px rgba(27,59,255,0.35); }

/* 21st.dev section header */
.sec-head {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}
.sec-head h2 { margin-top: 14px; font-family: var(--disp); font-weight: 600; font-size: 28px; letter-spacing: -0.025em; line-height: 1.1; text-wrap: balance; }
.sec-head p { margin-top: 10px; font-size: 16px; line-height: 1.55; color: var(--fg-55); max-width: 56ch; }
.on-light .sec-head { border-color: var(--ink-line); }
.on-light .sec-head p { color: var(--ink-55); }

/* ═══ REVEALS (Motion inView) ═══ */
html.js-motion .reveal { opacity: 0; transform: translateY(18px); }
html.js-motion .reveal.in { opacity: 1; transform: none; }

/* ═══ HERO (work page) ═══ */
.hero { position: relative; padding-top: 156px; }
.frame {
  position: relative;
  border-radius: 28px;
  padding: 6px;
  background: linear-gradient(180deg, var(--bezel-2), var(--bezel));
  border: 1px solid rgba(244,242,238,0.10);
  box-shadow: 0 40px 100px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.06);
}
.frame::before {
  content: '';
  position: absolute;
  top: -1px; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(154,170,255,0.8) 35%, #fff 50%, rgba(154,170,255,0.8) 65%, transparent 95%);
  opacity: .7;
}
.screen { position: relative; overflow: hidden; border-radius: 22px; background: var(--screen); }
.bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  background: linear-gradient(180deg, #5c5c5b 0%, #3a3a39 100%);
  border-bottom: 1px solid rgba(0,0,0,0.5);
}
.bar .bar-logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); height: 12px; width: auto; opacity: .85; }
.bar::after { content: '+'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 24px; line-height: 1; color: #fff; opacity: .22; }
.dot { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(16,16,16,0.25); }
.dot.r { background: #f46b5d; box-shadow: 0 0 20px 2px rgba(244,107,93,0.7); }
.dot.y { background: #f9bd4e; box-shadow: 0 0 20px 2px rgba(249,189,78,0.7); }
.dot.g { background: #57c353; box-shadow: 0 0 20px 2px rgba(87,195,83,0.7); }

/* Aceternity background beams */
.beams { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.beams .track { fill: none; stroke: rgba(244,242,238,0.05); stroke-width: 1; }
.beams .beam {
  fill: none;
  stroke: url(#beam-grad);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 160 1600;
  stroke-dashoffset: 1760;
  animation: beam 7s linear infinite;
}
.beams .beam:nth-of-type(2) { animation-delay: -1.6s; animation-duration: 8s; }
.beams .beam:nth-of-type(3) { animation-delay: -3.1s; animation-duration: 6.5s; }
.beams .beam:nth-of-type(4) { animation-delay: -4.4s; animation-duration: 9s; }
.beams .beam:nth-of-type(5) { animation-delay: -2.2s; animation-duration: 7.5s; }
.beams .beam:nth-of-type(6) { animation-delay: -5.6s; animation-duration: 8.5s; }
@keyframes beam { to { stroke-dashoffset: 0; } }

.hero-body {
  position: relative;
  min-height: 540px;
  padding: 88px 72px 84px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 48px;
}
.hero-body::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 55%, rgba(91,116,255,0.09), transparent 70%);
  pointer-events: none;
}
.hero-body > .display, .hero-body > .hero-foot { position: relative; }
.hero-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.hero-sub { max-width: 420px; font-size: 18px; line-height: 1.5; }
.hero-sub b { display: block; font-family: var(--disp); font-weight: 600; letter-spacing: -0.01em; color: var(--fg); }
.hero-sub span { display: block; color: var(--fg-55); }
.down {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  margin: 28px auto 0;
  color: var(--fg-55);
  animation: nudge 2.4s ease-in-out infinite;
}
.down svg { width: 22px; height: 32px; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
html.js .hero .frame { opacity: 0; transform: translateY(28px); }
html.loaded .hero .frame { animation: rise .9s var(--ease) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero .frame { opacity: 1; transform: none; animation: none !important; }
  .down, .btn.primary::after, .beams .beam { animation: none; }
  html.js-motion .reveal { opacity: 1; transform: none; }
}

/* ═══ WORK ═══ */
.work { padding: 104px 0 0; }
.cards { display: flex; flex-direction: column; gap: 32px; }

/* Aceternity spotlight card */
.card {
  position: relative;
  border-radius: 28px;
  border: 1px solid rgba(244,242,238,0.10);
  background:
    radial-gradient(circle farthest-side at 50% 0, rgba(27,59,255,0.34), rgba(27,59,255,0) 62%),
    linear-gradient(180deg, #151514, #0f0f0e);
  box-shadow: 0 40px 100px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.05);
  overflow: hidden;
  --mx: 50%; --my: 0%;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(640px circle at var(--mx) var(--my), rgba(91,116,255,0.16), transparent 42%);
  opacity: 0;
  transition: opacity .5s;
  pointer-events: none;
}
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(154,170,255,0.95), transparent 42%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .5s;
  pointer-events: none;
}
.card:hover::before, .card:hover::after { opacity: 1; }
.card-in { position: relative; padding: 44px 48px 48px; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.card-top h3 { font-family: var(--disp); font-weight: 600; font-size: 32px; letter-spacing: -0.03em; line-height: 1.1; color: var(--fg); }
.card-top .meta { display: block; margin-top: 10px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-55); }
.card-top .go { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--fg); transition: transform .4s var(--ease), background-color .3s, border-color .3s; }
.card-top .go svg { width: 20px; height: 20px; }
.card:hover .go { transform: translateX(4px); background: rgba(244,242,238,0.06); border-color: rgba(244,242,238,0.3); }
.card-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: start; margin-top: 34px; }
.card-copy p { font-size: 16px; line-height: 1.65; color: var(--fg-72); }
.card-copy p + p { margin-top: 12px; }
.card-copy p b { font-weight: 500; color: var(--fg); }
.card-copy .chips { margin-top: 22px; }
.card-copy .cta-row { margin-top: 28px; }

/* 21st.dev feature bento */
.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile {
  position: relative;
  padding: 18px 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(244,242,238,0.08);
  background: rgba(244,242,238,0.03);
  transition: border-color .3s, background-color .3s, transform .3s var(--ease);
}
.tile:hover { border-color: rgba(154,170,255,0.35); background: rgba(27,59,255,0.10); transform: translateY(-2px); }
.tile .ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 14px; color: var(--blue-pale); background: rgba(27,59,255,0.16); border: 1px solid rgba(91,116,255,0.25); }
.tile .ic svg { width: 18px; height: 18px; }
.tile b { display: block; font-family: var(--disp); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; color: var(--fg); margin-bottom: 6px; }
.tile p { font-size: 13px; line-height: 1.5; color: var(--fg-55); }
.tile .n { position: absolute; top: 18px; right: 18px; font-family: var(--mono); font-size: 11px; color: var(--fg-35); }

/* phone screens: shown once the WebP files exist */
.shots {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
  height: 380px;
  margin: 36px -48px 0;
  padding: 0 48px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 68%, transparent);
  mask-image: linear-gradient(#000 68%, transparent);
}
.phone {
  flex: none;
  width: 216px;
  border-radius: 30px;
  padding: 4px;
  background: #050505;
  border: 1px solid rgba(244,242,238,0.16);
  box-shadow: 0 30px 60px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(0,0,0,0.9);
}
.phone img { border-radius: 26px; width: 100%; aspect-ratio: 393 / 852; object-fit: cover; object-position: top; background: #000; }
.shots .phone:nth-child(1), .shots .phone:nth-child(3) { transform: translateY(40px); }

/* bklit browser window */
.win { border-radius: 14px; border: 1px solid rgba(244,242,238,0.14); background: #161615; box-shadow: 0 30px 60px rgba(0,0,0,0.55); overflow: hidden; }
.win-bar { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px; background: #1d1d1c; border-bottom: 1px solid rgba(0,0,0,0.5); }
.win-bar .dot { width: 10px; height: 10px; box-shadow: none; }
.win-bar .url { flex: 1; margin-left: 8px; height: 22px; line-height: 22px; padding: 0 10px; border-radius: 6px; background: rgba(244,242,238,0.06); font-family: var(--mono); font-size: 11px; color: var(--fg-55); }
.win img { width: 100%; }

/* ═══ RECEPTIONIST (work page) ═══ */
.lab { padding: 32px 0 140px; }
.lab .card-in { display: grid; grid-template-columns: minmax(0, 1fr) 316px; gap: 56px; align-items: center; }
.lab-copy { display: flex; flex-direction: column; gap: 18px; }
.lab-copy h3 { font-family: var(--disp); font-weight: 600; font-size: 34px; letter-spacing: -0.03em; line-height: 1.08; }
.lab-copy p { font-size: 16px; line-height: 1.65; color: var(--fg-72); max-width: 44ch; }
.lab-copy p b { color: var(--fg); font-weight: 500; }
.lab-copy .cta-row { margin-top: 10px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-55); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: #57c353; box-shadow: 0 0 10px #57c353; }
.iphone {
  position: relative;
  width: 100%;
  border-radius: 46px;
  padding: 10px;
  background: linear-gradient(180deg, #2a2a29, #0d0d0c);
  border: 1px solid rgba(244,242,238,0.18);
  box-shadow: 0 40px 90px rgba(0,0,0,0.65), inset 0 0 0 2px #050505, inset 0 0 0 3px rgba(244,242,238,0.06);
}
.iphone::before, .iphone::after { content: ''; position: absolute; width: 3px; height: 34px; border-radius: 2px; background: #2a2a29; }
.iphone::before { left: -4px; top: 120px; height: 50px; }
.iphone::after { right: -4px; top: 150px; height: 74px; }
.iphone .island { position: absolute; z-index: 3; top: 20px; left: 50%; width: 92px; height: 26px; border-radius: 16px; background: #050505; transform: translateX(-50%); }
.iphone .chat-shell { border-radius: 36px; height: 600px; padding-top: 18px; }
.iphone .home-bar { display: block; width: 104px; height: 4px; margin: 6px auto 6px; border-radius: 3px; background: rgba(244,242,238,0.45); }
.chat-shell { display: flex; flex-direction: column; height: 560px; border-radius: 26px; background: #0d0d0c; overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 36px 18px 12px; border-bottom: 1px solid var(--line); }
.chat-head img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.chat-head b { display: block; font-family: var(--disp); font-weight: 600; font-size: 14px; }
.chat-head small { display: block; font-size: 12px; color: var(--fg-55); }
.log { flex: 1; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; }
.msg { display: flex; }
.msg.me { justify-content: flex-end; }
.msg.sys { justify-content: center; }
.bubble { font-size: 14px; line-height: 1.45; max-width: 86%; padding: 10px 14px; border-radius: 16px; background: #1c1c1b; color: var(--fg); border-bottom-left-radius: 6px; }
.msg.me .bubble { background: var(--blue); color: #fff; border-radius: 16px; border-bottom-right-radius: 6px; }
.msg.sys .bubble { background: transparent; color: var(--fg-55); font-size: 12px; text-align: center; max-width: 100%; }
.typing { display: inline-flex; gap: 4px; align-items: center; height: 18px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--fg-55); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.seeds { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; }
.seed { font-size: 12px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--fg-72); text-align: left; transition: border-color .2s, color .2s; }
.seed:hover { border-color: var(--blue-soft); color: var(--fg); }
.composer { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px 4px; border-top: 1px solid var(--line); }
.composer textarea {
  flex: 1;
  resize: none;
  min-height: 40px;
  max-height: 120px;
  padding: 10px 14px;
  border-radius: 20px;
  border: 1px solid var(--line-2);
  background: #151514;
  color: var(--fg);
  font-size: 14px;
  line-height: 1.35;
  outline: none;
  overflow: hidden;
}
.composer textarea::placeholder { color: var(--fg-35); }
.composer .btn.circle { width: 40px; height: 40px; }
.composer textarea:focus { border-color: var(--blue-soft); }
.composer .btn.primary::after { display: none; }

/* ═══ INFO PAGE ═══ */
.info-top { position: relative; padding: 168px 0 0; }
.info-hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.info-top .display { font-size: 62px; line-height: 1; max-width: 16ch; }
.info-top .lead { margin-top: 24px; font-size: 18px; line-height: 1.55; color: var(--fg-72); max-width: 44ch; }
.info-top .eyebrow { margin-bottom: 24px; }
.hero-side { display: flex; flex-direction: column; gap: 14px; }
.glass {
  position: relative;
  padding: 24px 26px 22px;
  border-radius: 24px;
  border: 1px solid rgba(244,242,238,0.14);
  background: linear-gradient(180deg, rgba(244,242,238,0.06), rgba(244,242,238,0.02));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.08);
}
.glass::before { content: ''; position: absolute; top: -1px; left: 12%; right: 12%; height: 1px; background: linear-gradient(90deg, transparent, rgba(154,170,255,0.9), transparent); }
.glass .eyebrow { margin: 0; }
.stat .eyebrow { margin-bottom: 16px; }
.stat-cap { font-size: 15px; line-height: 1.5; color: var(--fg-72); max-width: 32ch; }
.stat-big { margin-top: 8px; font-family: var(--disp); font-weight: 600; font-size: 64px; letter-spacing: -0.04em; line-height: 1; color: var(--fg); text-shadow: var(--glow); font-variant-numeric: tabular-nums; }
.stat-sub { margin-top: 8px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-55); }
.stat-mini { list-style: none; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.stat-mini li { display: flex; align-items: baseline; gap: 12px; font-size: 14px; color: var(--fg-72); }
.stat-mini b { font-family: var(--disp); font-weight: 600; font-size: 22px; letter-spacing: -0.03em; color: var(--fg); min-width: 1.2ch; }
.founder .founder-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.founder .mark { width: 78px; height: 16px; background: var(--blue-soft); -webkit-mask: url('/assets/portfolio/wordmark-dark.png') right center / contain no-repeat; mask: url('/assets/portfolio/wordmark-dark.png') right center / contain no-repeat; }
.founder b { display: block; font-family: var(--disp); font-weight: 600; font-size: 22px; letter-spacing: -0.025em; line-height: 1.1; color: var(--fg); }
.founder small { display: block; margin-top: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-soft); }
.founder p { margin-top: 12px; font-size: 14.5px; line-height: 1.55; color: var(--fg-55); max-width: 34ch; }
.fade { height: 300px; margin-top: 4px; background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.12) 25%, rgba(255,255,255,0.45) 50%, rgba(255,255,255,0.82) 75%, #FFFFFF 100%); }
.info-white { background: #FFFFFF; color: var(--ink); padding: 96px 0 120px; }

.intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: start; }
.intro .eyebrow { margin-bottom: 16px; }
.intro-title { font-family: var(--disp); font-weight: 600; font-size: 36px; line-height: 1.05; letter-spacing: -0.03em; color: var(--ink); max-width: 18ch; text-wrap: balance; }
.intro p.first { margin-top: 22px; font-size: 17.5px; line-height: 1.6; color: var(--ink); max-width: 56ch; }
.intro p.first + p { margin-top: 14px; font-size: 16.5px; line-height: 1.6; color: var(--ink-55); max-width: 56ch; }
.intro .chips { margin-top: 26px; }

/* bklit facts strip */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--ink-line); border-radius: 18px; overflow: hidden; background: #fff; }
.facts > div { padding: 18px 20px 20px; border-bottom: 1px solid var(--ink-line); }
.facts > div:nth-child(odd) { border-right: 1px solid var(--ink-line); }
.facts > div:nth-last-child(-n+2) { border-bottom: 0; }
.facts dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-35); }
.facts dd { margin-top: 6px; font-family: var(--disp); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; color: var(--ink); }

/* Aceternity timeline */
.tl { margin-top: 112px; }
.tl-list { position: relative; margin-top: 8px; }
.tl-line { position: absolute; left: 19px; top: 8px; bottom: 60px; width: 2px; border-radius: 2px; background: var(--ink-line); overflow: hidden; }
.tl-line i { position: absolute; inset: 0; background: linear-gradient(to bottom, var(--blue-pale), var(--blue)); transform-origin: top; transform: scaleY(var(--p, 0)); }
.step { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; padding-bottom: 96px; }
.step:last-child { padding-bottom: 8px; }
.step-l { position: sticky; top: 120px; align-self: start; display: flex; align-items: center; gap: 24px; }
.step-l .dot { position: relative; z-index: 1; flex: none; width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1px solid var(--ink-line); box-shadow: none; display: grid; place-items: center; }
.step-l .dot i { width: 12px; height: 12px; border-radius: 50%; background: rgba(17,17,16,0.14); transition: background-color .35s, box-shadow .35s; }
.step.on .dot i { background: var(--blue); box-shadow: 0 0 0 5px rgba(27,59,255,0.14); }
.step-l h3 { font-family: var(--disp); font-weight: 600; font-size: 38px; letter-spacing: -0.035em; line-height: 1; color: var(--ink-35); transition: color .35s; }
.step.on h3 { color: var(--ink); }
.step-r { padding-top: 6px; }
.step-r .n { display: block; margin-bottom: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); }
.step-r p { font-size: 17px; line-height: 1.6; color: var(--ink-55); max-width: 54ch; }
.step-r p b { color: var(--ink); font-weight: 500; }
.step-r .chips { margin-top: 18px; }

/* 21st.dev closing CTA */
.cta-block {
  position: relative;
  margin-top: 96px;
  padding: 64px 48px;
  border-radius: 28px;
  border: 1px solid var(--ink-line);
  background: radial-gradient(circle farthest-side at 50% 0, rgba(27,59,255,0.14), transparent 70%), #fff;
  text-align: center;
  overflow: hidden;
}
.cta-block::before { content: ''; position: absolute; top: -1px; left: 20%; right: 20%; height: 1px; background: linear-gradient(90deg, transparent, var(--blue-soft), transparent); }
.cta-block h2 { font-family: var(--disp); font-weight: 600; font-size: 40px; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
.cta-block p { margin: 16px auto 0; font-size: 17px; line-height: 1.55; color: var(--ink-55); max-width: 44ch; }
.cta-block .cta-row { justify-content: center; margin-top: 30px; }

/* ═══ FOOTER ═══ */
.foot { border-top: 1px solid var(--line); padding: 88px 0 64px; background: var(--bg); color: var(--fg); }
.foot-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 48px; flex-wrap: wrap; }
.foot-brand img { height: 26px; width: auto; }
.foot-brand p { margin-top: 18px; font-size: 15px; color: var(--fg-55); max-width: 34ch; }
.foot-cols { display: flex; gap: 80px; flex-wrap: wrap; }
.foot h4 { font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-55); margin-bottom: 22px; }
.foot ul { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.foot li a { font-family: var(--disp); font-weight: 500; font-size: 16px; display: inline-flex; align-items: center; gap: 6px; }
.foot li a svg { width: 12px; height: 12px; opacity: .8; }
.foot-base { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--line); }
.foot-base b { display: block; font-family: var(--disp); font-weight: 500; font-size: 15px; margin-bottom: 6px; }
.foot-base p, .foot-base small { font-size: 13px; color: var(--fg-55); }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1100px) { .nav { padding-inline: 24px; } }
@media (max-width: 900px) {
  :root { --pad: 16px; }
  .nav { display: flex; justify-content: space-between; align-items: flex-start; height: 120px; padding: calc(16px + env(safe-area-inset-top, 0px)) 16px 0; gap: 10px; }
  .back span { display: none; }
  .back { padding: 0 11px; min-height: 38px; }
  .nav-right .btn { display: none; }
  .nav-logo img { height: 14px; }
  .hero { padding-top: 120px; }
  .hero-body { padding: 56px 24px 56px; min-height: 0; gap: 32px; }
  .display { font-size: clamp(38px, 10vw, 64px); }
  .hero-sub { font-size: 16px; }
  .sec-head h2 { font-size: 24px; }
  .work { padding-top: 80px; }
  .card-in { padding: 28px 20px 28px; }
  .card-top h3 { font-size: 26px; }
  .card-top .go { width: 40px; height: 40px; }
  .card-grid { grid-template-columns: 1fr; gap: 28px; margin-top: 24px; }
  .bento { gap: 8px; }
  .tile { padding: 14px 14px 16px; }
  .shots { margin: 28px -20px 0; padding: 0 20px; height: 320px; justify-content: flex-start; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; -webkit-mask-image: none; mask-image: none; }
  .shots::-webkit-scrollbar { display: none; }
  .shots .phone { scroll-snap-align: center; width: 190px; transform: none !important; }
  .lab { padding-bottom: 96px; }
  .lab .card-in { grid-template-columns: 1fr; gap: 28px; }
  .lab-copy h3 { font-size: 28px; }
  .lab-phone { width: min(316px, 100%); margin-inline: auto; }
  .iphone .chat-shell { height: 580px; }
  .iphone::before, .iphone::after { display: none; }
  .info-top { padding-top: 130px; }
  .info-hero { grid-template-columns: 1fr; gap: 36px; }
  .info-top .display { font-size: clamp(36px, 9.5vw, 52px); }
  .info-top .lead { font-size: 17px; }
  .glass { padding: 20px 20px 18px; }
  .stat-big { font-size: 52px; }
  .fade { height: 200px; margin-top: 0; }
  .info-white { padding-top: 56px; }
  .intro { grid-template-columns: 1fr; gap: 32px; }
  .intro-title { font-size: 28px; }
  .tl { margin-top: 72px; }
  .tl-line { left: 15px; }
  .step { grid-template-columns: 1fr; gap: 16px; padding-bottom: 56px; }
  .step-l { position: static; gap: 16px; }
  .step-l .dot { width: 32px; height: 32px; }
  .step-l .dot i { width: 10px; height: 10px; }
  .step-l h3 { font-size: 26px; }
  .step-r { padding-left: 48px; }
  .step-r p { font-size: 16px; }
  .cta-block { margin-top: 64px; padding: 44px 22px; }
  .cta-block h2 { font-size: 30px; }
  .foot { padding: 64px 0 48px; }
  .foot-cols { gap: 48px; }
}
@media (max-width: 480px) {
  .pill { width: 160px; height: 44px; }
  .pill .thumb { width: 74px; height: 32px; top: 5px; }
  .pill .ind { left: 31px; }
  .pill[data-on="info"] .thumb, .pill[data-on="info"] .ind { transform: translateX(74px); }
  .pill a { line-height: 32px; }
  .bento { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .facts > div:nth-child(odd) { border-right: 0; }
  .facts > div:nth-last-child(-n+2) { border-bottom: 1px solid var(--ink-line); }
  .facts > div:last-child { border-bottom: 0; }
}
