@font-face {
  font-family: 'Mona Sans';
  src: url('assets/fonts/mona-sans-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/inter-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --black: #05050a;
  --navy: #0a1030;
  --line: #20223a;
  --white: #f6f6fb;
  --muted: #c0c3d6;
  --vivid: #1a2f8f;
  --bright: #93a9ff;
  --purple: #9b86ff;

  --fade: clamp(160px, 22vw, 320px);

  --display: 'Mona Sans', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  --gutter: clamp(20px, 3.4vw, 48px);
  --section: clamp(112px, 14vw, 200px);
  --ease: cubic-bezier(.16, 1, .3, 1);

  color-scheme: dark;
  scrollbar-color: var(--line) var(--black);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font: 400 1.0625rem/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
em { font-style: normal; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: var(--vivid); color: var(--white); }
:focus-visible { outline: 2px solid var(--bright); outline-offset: 3px; border-radius: 6px; }
section[id] { scroll-margin-top: 64px; }

.skip {
  position: fixed; left: 12px; top: -80px; z-index: 100;
  padding: 12px 16px; background: var(--white); color: #000; border-radius: 100px;
}
.skip:focus { top: 8px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 5, 10, .82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.nav-inner {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  max-width: 1360px; height: 64px; margin: 0 auto; padding: 0 var(--gutter);
}
.nav-mark { display: flex; align-items: center; min-height: 44px; font: 600 1.0625rem/1 var(--display); letter-spacing: -.02em; }
.nav nav { display: flex; gap: 4px; }
.nav nav a {
  display: flex; align-items: center; min-height: 44px; padding: 0 12px;
  font-size: .9375rem; font-weight: 500; color: var(--muted); transition: color .2s;
}
.nav nav a:hover, .nav nav a.active { color: var(--white); }
.nav-toggle { display: none; position: relative; width: 44px; height: 44px; margin-right: -10px; }
.nav-toggle span {
  position: absolute; left: 12px; width: 20px; height: 1.5px; background: var(--white);
  transition: transform .3s var(--ease);
}
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded='true'] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Buttons */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border-radius: 100px;
  font-size: 1rem; font-weight: 600;
  transition: transform .35s var(--ease), background-color .2s;
}
.pill:active { transform: scale(.97); transition-duration: .08s; }
.pill-primary { background: var(--white); color: #05050a; }
.pill-primary:hover { background: #fff; }
.pill-secondary { background: var(--navy); color: var(--white); box-shadow: inset 0 0 0 1px #2a3263; }
.pill-secondary:hover { background: #131b4a; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

/* Hero: copy on one side, object on the other */
.hero {
  position: relative; display: grid; align-items: center; gap: 16px;
  max-width: 1360px; min-height: calc(100svh - 64px); margin: 0 auto;
  padding: clamp(24px, 4vw, 48px) var(--gutter);
}
h1 {
  font: 500 clamp(3rem, 6.6vw, 6rem)/.98 var(--display);
  letter-spacing: -.045em;
}
h1 em { color: var(--purple); }
.line { display: block; overflow: hidden; padding: .03em .1em .12em 0; margin-bottom: -.1em; }
.line:last-child { overflow: visible; }
.line > span { display: block; animation: rise 1.15s var(--ease) both; }
.line:nth-child(2) > span { animation-delay: .08s; }
.line:nth-child(3) > span { animation: fade 1.2s .28s var(--ease) both; }
@keyframes rise { from { transform: translateY(116%); } }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } }
.hero-sub { max-width: 28em; margin-top: 32px; font-size: clamp(1.125rem, 1.5vw, 1.3125rem); color: var(--muted); animation: fade 1s .42s var(--ease) both; }
.hero .actions { animation: fade 1s .52s var(--ease) both; }

/* The website, shown as layers */
.studio {
  display: grid; place-items: center; perspective: 1400px; min-height: 340px;
  animation: fade 1.4s .2s var(--ease) both;
}
.stack {
  --rx: 56deg; --rz: -38deg;
  position: relative; width: min(440px, 68vw); aspect-ratio: 4 / 3;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateZ(var(--rz));
  transition: transform .9s var(--ease);
}
.plane {
  position: absolute; inset: 0; border-radius: 14px;
  border: 1.5px solid rgba(246, 246, 251, .9);
  background: rgba(10, 16, 48, .42);
  transform: translateZ(calc(var(--i) * 34px));
  animation: lift 7s calc(var(--i) * -.28s) ease-in-out infinite alternate;
}
@keyframes lift {
  from { transform: translateZ(calc(var(--i) * 22px)); }
  to { transform: translateZ(calc(var(--i) * 82px)); }
}
.plane-page { background: rgba(10, 16, 48, .85); box-shadow: 0 0 64px rgba(122, 92, 255, .22); }
.plane-layout, .plane-words, .plane-action { background: transparent; border-color: rgba(246, 246, 251, .3); box-shadow: none; }
.plane i { position: absolute; display: block; border-radius: 5px; }
.bar { background: var(--white); }
.bar-nav { left: 6%; right: 6%; top: 7%; height: 4.5%; opacity: .55; }
.block { border: 1.5px solid rgba(246, 246, 251, .75); }
.block-a { left: 6%; top: 58%; width: 27%; height: 32%; }
.block-b { left: 36.5%; top: 58%; width: 27%; height: 32%; }
.block-c { left: 67%; top: 58%; width: 27%; height: 32%; }
.bar-title { left: 6%; top: 19%; width: 62%; height: 7%; }
.bar-title-2 { left: 6%; top: 30%; width: 44%; height: 7%; }
.bar-text { left: 6%; top: 42%; width: 52%; height: 3%; opacity: .55; }
.cta { right: 6%; top: 21%; width: 24%; height: 15%; background: var(--white); border-radius: 100px !important; }

/* White statement */
.truth, .light {
  --f: var(--fade); color: #05050a;
  --e0: var(--black); --e1: #16161b; --e2: #3c3c44; --e3: #83838c; --e4: #c3c3cc; --e5: #ebebf2;
  /* One unbroken layer: separate strips left hairline seams when scrolling */
  background: linear-gradient(to bottom,
    var(--black), #16161b calc(var(--f) * .18), #3c3c44 calc(var(--f) * .36), #83838c calc(var(--f) * .56), #c3c3cc calc(var(--f) * .74), #ebebf2 calc(var(--f) * .9), var(--white) var(--f),
    var(--white) calc(100% - var(--f)),
    var(--e5) calc(100% - var(--f) * .9), var(--e4) calc(100% - var(--f) * .74), var(--e3) calc(100% - var(--f) * .56), var(--e2) calc(100% - var(--f) * .36), var(--e1) calc(100% - var(--f) * .18), var(--e0));
}
.truth { --e0: var(--navy); --e1: #1b203e; --e2: #40455f; --e3: #85889a; --e4: #c4c6d0; --e5: #eaeaf1; }
.truth::before, .truth::after, .light::before, .light::after { content: ''; display: block; height: var(--fade); }
section.light[id] { scroll-margin-top: calc(64px - var(--fade)); }
.statement {
  max-width: 1360px; margin: 0 auto;
  padding: clamp(56px, 8vw, 120px) var(--gutter);
  font: 600 clamp(2.25rem, 5.8vw, 5.25rem)/1.16 var(--display);
  letter-spacing: -.045em; text-wrap: pretty;
}
.statement span { color: var(--vivid); }
.statement .w { color: #b8b8c6; transition: color .35s; }
.statement .w.lit { color: #05050a; }
.statement span .w.lit { color: var(--vivid); }

.title {
  font: 500 clamp(2.75rem, 5.8vw, 5.25rem)/1 var(--display);
  letter-spacing: -.045em; text-wrap: balance;
}

/* What you get: uneven tiles on dark blue */
.benefits { background: linear-gradient(to bottom, var(--navy) calc(100% - var(--fade)), var(--black)); }
.benefits-inner { max-width: 1360px; margin: 0 auto; padding: var(--section) var(--gutter); }
.tiles { display: grid; gap: clamp(20px, 2.2vw, 32px); margin-top: clamp(56px, 7vw, 104px); }
.tile { position: relative; overflow: hidden; padding: clamp(32px, 4.4vw, 64px); border-radius: 16px; }
.tile h3 { font: 500 clamp(1.75rem, 3vw, 2.75rem)/1.04 var(--display); letter-spacing: -.04em; text-wrap: balance; }
.tile p { margin-top: 20px; max-width: 28em; font-size: 1.1875rem; line-height: 1.55; }

.tile-phone { display: grid; gap: 28px; background: var(--vivid); padding-bottom: 0; min-height: 520px; }
.tile-phone p { color: #dfe5ff; }
.phone {
  justify-self: center; align-self: end; width: 214px; height: 330px; margin-bottom: -40px;
  padding: 9px; border-radius: 34px; background: #05050a; box-shadow: 0 30px 70px -14px rgba(5, 5, 10, .8);
}
.screen { height: 100%; overflow: hidden; border-radius: 26px; background: var(--white); }
.screen i { display: block; margin: 12px 14px 0; border-radius: 5px; background: #c9c9d8; height: 8px; animation: screen 9s ease-in-out infinite alternate; }
.screen .s-title { margin-top: 26px; height: 20px; width: 72%; background: #05050a; }
.screen .s-btn { width: 50%; height: 26px; border-radius: 100px; background: var(--vivid); }
.screen .s-img { height: 112px; border-radius: 12px; background: var(--navy); }
.screen .s-img-b { background: var(--bright); }
.screen .s-short { width: 60%; }
@keyframes screen { 0%, 12% { transform: translateY(0); } 88%, 100% { transform: translateY(-110px); } }

.tile-contact { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; background: var(--white); color: #05050a; }
.tile-contact p { color: #3b3b4d; }
.click { position: relative; align-self: flex-start; margin: 10px 0 28px; }
.click-btn {
  display: inline-block; padding: 20px 34px; border-radius: 100px; background: #05050a; color: #fff;
  font: 600 1.25rem/1 var(--display); animation: press 4.5s infinite;
}
.cursor { position: absolute; right: -16px; bottom: -30px; animation: cursor 4.5s var(--ease) infinite; }
@keyframes cursor { 0%, 18% { transform: translate(90px, 54px); } 44%, 62% { transform: translate(0, 0); } 52% { transform: scale(.86); } 100% { transform: translate(90px, 54px); } }
@keyframes press { 0%, 48%, 60%, 100% { transform: scale(1); background: #05050a; } 53% { transform: scale(.95); background: var(--vivid); } }

.tile-easy { background: #05050a; box-shadow: inset 0 0 0 1px #2a3263; }
.tile-easy p { color: var(--muted); }
.ticks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; margin-top: 40px; font-weight: 500; }
.ticks li { display: flex; align-items: center; gap: 10px; }
.ticks .icon { flex: none; color: var(--bright); width: 20px; height: 20px; }

.tile-first {
  background: #142060;
}
.tile-first p { color: #dfe5ff; }
.icon.icon-lg { width: 32px; height: 32px; margin-bottom: 24px; }
.does { display: grid; gap: 16px; margin-top: 32px; font-weight: 500; }
.does li { display: flex; align-items: center; gap: 12px; }
.does .icon { flex: none; width: 20px; height: 20px; color: var(--bright); }
.tile-first .icon-lg, .tile-phone .icon-lg { color: var(--bright); }
.tile-contact .icon-lg { color: var(--vivid); }

/* About */
.me { display: grid; gap: clamp(48px, 7vw, 112px); align-items: center; max-width: 1360px; margin: 0 auto; padding: 0 var(--gutter) var(--section); }
.me-photo { margin: 0; }
.me-photo img { display: block; width: 100%; height: auto; border-radius: 16px; }
.contact-links.me-links { justify-content: flex-start; margin-top: 32px; }
.me-copy p { margin-top: 32px; max-width: 26em; color: var(--muted); font-size: clamp(1.1875rem, 1.6vw, 1.375rem); line-height: 1.55; }

/* Split sections */
.band { max-width: 1360px; margin: 0 auto; padding: var(--section) var(--gutter); }
.split { display: grid; gap: 36px; }
.row { position: relative; display: grid; gap: 8px; padding: 26px 0 30px; }
.row::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: var(--line); transform-origin: left;
}
.row h3 { font: 500 clamp(1.5rem, 2.3vw, 2rem)/1.15 var(--display); letter-spacing: -.03em; }
.row > p { max-width: 36em; color: var(--muted); font-size: 1.125rem; }

/* Questions on white */
.faq details { position: relative; border-top: 1px solid #d5d5e2; }
.faq details:last-child { border-bottom: 1px solid #d5d5e2; }
.faq summary {
  position: relative; display: block; cursor: pointer; list-style: none;
  padding: 36px 52px 36px 0;
  font: 500 clamp(1.25rem, 1.9vw, 1.625rem)/1.2 var(--display); letter-spacing: -.025em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ''; position: absolute; right: 8px; top: 50%; width: 16px; height: 1.5px;
  background: currentColor; transition: transform .35s var(--ease);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { max-width: 36em; padding: 0 52px 36px 0; color: #3b3b4d; font-size: 1.125rem; animation: fade .5s var(--ease) both; }
.light :focus-visible { outline-color: var(--vivid); }

/* Work and certificates, added from content.js */
.links { margin-top: 6px; }
.links a, .cert-link {
  display: inline-flex; align-items: center; min-height: 44px; color: var(--bright);
  text-decoration: underline; text-underline-offset: .22em;
}
.links a:hover, .cert-link:hover { color: var(--white); }
.cert-meta { color: var(--muted); font-size: 1.125rem; }

/* Tech list, kept quiet for curious readers */
.tools { padding-top: clamp(64px, 8vw, 120px); padding-bottom: 0; }
.tools h2 { font: 500 clamp(1.5rem, 2.3vw, 2rem)/1.15 var(--display); letter-spacing: -.03em; }
.tools p { color: var(--muted); font-size: 1.125rem; }
.stack-list { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 20px; font-weight: 500; }

/* Closing panel */
.close-wrap { padding: clamp(64px, 8vw, 120px) clamp(16px, 2.4vw, 32px) clamp(16px, 2.4vw, 32px); }
.close {
  max-width: 1560px; margin: 0 auto;
  padding: clamp(120px, 17vw, 260px) var(--gutter); border-radius: 16px;
  background: var(--vivid); text-align: center;
}
.close h2 {
  max-width: 11em; margin: 0 auto;
  font: 500 clamp(3rem, 8vw, 7rem)/.96 var(--display);
  letter-spacing: -.05em; text-wrap: balance;
}
.contact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 40px; }
.soon { margin-top: 32px; font-size: 1.125rem; color: #dfe5ff; }
.icon {
  display: block; width: 18px; height: 18px; background: currentColor;
  -webkit-mask: var(--src) center / contain no-repeat;
  mask: var(--src) center / contain no-repeat;
}

.foot {
  display: flex; justify-content: space-between; gap: 24px;
  max-width: 1360px; margin: 0 auto; padding: 28px var(--gutter) 36px;
  font-size: .875rem; font-weight: 500; color: var(--muted);
}

/* Scroll reveals, only hidden once scripting is running */
html.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
html.js .rv.in { opacity: 1; transform: none; }
html.js .row.rv { opacity: 1; transform: none; }
html.js .row.rv > * { opacity: 0; transform: translateY(14px); transition: opacity .8s .12s var(--ease), transform .8s .12s var(--ease); }
html.js .row.rv::before { transform: scaleX(0); transition: transform 1.1s var(--ease); }
html.js .row.rv.in > * { opacity: 1; transform: none; }
html.js .row.rv.in::before { transform: none; }

@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); }
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; }
  .tiles { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .me { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .tile-phone { grid-column: span 5; }
  .tile-contact { grid-column: span 7; }
  .tile-easy { grid-column: span 7; }
  .tile-first { grid-column: span 5; }
  .held { position: sticky; top: 104px; align-self: start; }
}

@media (max-width: 899px) {
  .hero { align-content: start; padding-top: 28px; }
  .studio { order: 2; min-height: 340px; margin-top: 72px; }
}

@media (max-width: 809px) {
  html.nav-many .nav-toggle { display: block; }
  html.nav-many .nav nav {
    position: absolute; left: 0; right: 0; top: 64px; display: none;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px; background: var(--black);
  }
  html.nav-many .nav nav.open { display: flex; }
  html.nav-many .nav nav a { min-height: 48px; padding: 0; font-size: 1.125rem; color: var(--white); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html.js .rv, html.js .row.rv > * { opacity: 1; transform: none; }
  html.js .row.rv::before { transform: none; }
  .plane { transform: translateZ(calc(var(--i) * 52px)); }
}
