:root {
  --ink: #0b0c0e;
  --ink-soft: #121418;
  --paper: #f4f2ea;
  --muted: #aaa9a5;
  --line: rgba(255,255,255,.12);
  --pink: #ff3d93;
  --violet: #8766ff;
  --cyan: #21dfcb;
  --acid: #c7ff48;
  --shell: min(1180px, calc(100% - 40px));
}

@font-face {
  font-family: "Ubuntu";
  src: url("../fonts/ubuntu-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Ubuntu";
  src: url("../fonts/ubuntu-medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Ubuntu";
  src: url("../fonts/ubuntu-bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Ubuntu";
  src: url("../fonts/ubuntu-bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: "Ubuntu", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { background: var(--acid); color: var(--ink); }
.shell { width: var(--shell); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; background: var(--paper); color: var(--ink); padding: 12px 16px; border-radius: 8px; }
.skip-link:focus { top: 16px; }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(11,12,14,.86); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 23px/1 "Ubuntu", sans-serif; letter-spacing: -.04em; }
.brand img { width: 42px; height: 42px; object-fit: contain; filter: drop-shadow(0 0 13px rgba(199,255,72,.16)); }
.brand .brand-zebracorn { flex: 0 0 auto; }
.brand .brand-wordmark { width: 140px; height: 40px; object-fit: contain; filter: none; }
.brand-stripes { display: inline-flex; gap: 2px; height: 22px; transform: skew(-8deg); }
.brand-stripes i { width: 4px; border-radius: 2px; }
.brand-stripes i:nth-child(1), .stripe-run i:nth-child(1) { background: var(--pink); }
.brand-stripes i:nth-child(2), .stripe-run i:nth-child(2) { background: var(--violet); }
.brand-stripes i:nth-child(3), .stripe-run i:nth-child(3) { background: var(--cyan); }
.brand-stripes i:nth-child(4), .stripe-run i:nth-child(4) { background: var(--acid); }
.nav-links { display: flex; align-items: center; gap: 26px; color: #d3d1ca; font-size: 14px; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--paper); }
.nav-links .nav-email { color: var(--acid); font-weight: 700; }
.nav-links .nav-email:hover, .nav-links .nav-email:focus-visible { color: var(--paper); }
.nav-github { padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--paper); padding: 8px 12px; border-radius: 999px; }

.hero { min-height: calc(100vh - 76px); display: flex; flex-direction: column; justify-content: center; padding-block: 90px 64px; }
.eyebrow { margin: 0 0 18px; color: var(--cyan); font: 600 11px/1.4 "Ubuntu", sans-serif; letter-spacing: .2em; text-transform: uppercase; }
.hero h1 { max-width: 900px; margin: 0; font: 600 clamp(52px, 8vw, 108px)/.93 "Ubuntu", sans-serif; letter-spacing: -.065em; }
.hero h1 span { background: linear-gradient(90deg, var(--pink), var(--violet), var(--cyan), var(--acid)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-intro { max-width: 690px; margin: 32px 0 0; color: #c3c1ba; font-size: clamp(18px, 2vw, 22px); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; justify-content: center; padding: 14px 20px; border-radius: 10px; font-weight: 700; transition: transform .2s, border-color .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--ink); background: var(--paper); }
.button-secondary { border: 1px solid var(--line); }
.hero-note { display: flex; align-items: center; gap: 15px; margin-top: 72px; color: var(--muted); font-size: 14px; }
.hero-note p { margin: 0; }
.stripe-run { display: grid; grid-template-columns: repeat(4, 20px); gap: 3px; height: 5px; }
.stripe-run i { display: block; border-radius: 99px; }

.section { padding-block: 120px; }
.section-heading { max-width: 720px; margin-bottom: 50px; }
.section-heading h2, .origin-statement h2, .contact-intro h2 { margin: 0; font: 600 clamp(38px, 5.4vw, 68px)/1 "Ubuntu", sans-serif; letter-spacing: -.045em; }
.section-heading > p:last-child, .origin-statement > p:last-child, .contact-intro > p:last-child { color: var(--muted); font-size: 18px; line-height: 1.65; }
.section-heading.split { max-width: none; display: grid; grid-template-columns: 1fr .75fr; align-items: end; gap: 80px; }
.section-heading.split > p { margin: 0; }

.stripe-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.stripe-card { min-height: 310px; padding: 30px 26px; border-top: 5px solid; background: var(--ink-soft); }
.stripe-card + .stripe-card { border-left: 1px solid var(--line); }
.stripe-card > span { color: var(--muted); font: 600 11px "Ubuntu", sans-serif; }
.stripe-card h3 { margin: 90px 0 12px; font: 600 25px "Ubuntu", sans-serif; }
.stripe-card p { margin: 0; color: var(--muted); line-height: 1.6; }
.stripe-pink { border-top-color: var(--pink); } .stripe-violet { border-top-color: var(--violet); }
.stripe-cyan { border-top-color: var(--cyan); } .stripe-acid { border-top-color: var(--acid); }

.portfolio { background: var(--paper); color: var(--ink); }
.portfolio .eyebrow { color: #6352d7; }
.portfolio .section-heading > p:last-child { color: #5e5d59; }
.portfolio-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.project { grid-column: span 2; min-height: 350px; display: flex; flex-direction: column; padding: 26px; border: 1px solid rgba(11,12,14,.16); border-radius: 16px; background: rgba(255,255,255,.36); }
.project-featured { grid-column: span 3; min-height: 390px; background: var(--ink); color: var(--paper); }
.project-meta { display: flex; justify-content: space-between; gap: 16px; color: #6f6e69; font: 600 11px "Ubuntu", sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.project-featured .project-meta { color: var(--muted); }
.status { padding: 5px 8px; border: 1px solid currentColor; border-radius: 999px; font-size: 9px; }
.status-live { color: #167d70; }
.project-featured .status-live { color: var(--cyan); }
.project h3 { margin: 80px 0 14px; font: 600 clamp(30px, 4vw, 48px) "Ubuntu", sans-serif; letter-spacing: -.04em; }
.project p { margin: 0; max-width: 48ch; color: #5e5d59; line-height: 1.6; }
.project-featured p { color: #afaea8; }
.project-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; margin-top: auto; padding-top: 30px; font-size: 14px; font-weight: 700; }
.project-actions a:hover { text-decoration: underline; text-underline-offset: 4px; }
.project-actions .project-email { display: inline-flex; flex-direction: column; gap: 4px; padding: 10px 13px; border: 1px solid currentColor; border-radius: 10px; color: #4a3bc2; line-height: 1.2; }
.project-featured .project-actions .project-email { color: var(--acid); }
.project-actions .project-email span { color: #6f6e69; font: 600 9px "Ubuntu", sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.project-featured .project-actions .project-email span { color: var(--muted); }
.project-actions .project-email:hover { background: rgba(74,59,194,.07); text-decoration: none; }
.project-featured .project-actions .project-email:hover { background: rgba(199,255,72,.08); }
.portfolio-note { margin: 22px 0 0; color: #6e6d68; font-size: 13px; }

.origin-statement { max-width: 900px; }
.lineage { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 24px; margin-top: 72px; }
.lineage div { padding: 24px; border: 1px solid var(--line); border-radius: 14px; }
.lineage span, .lineage strong { display: block; }
.lineage span { margin-bottom: 8px; color: var(--muted); font-size: 12px; }
.lineage strong { font: 600 18px "Ubuntu", sans-serif; }
.lineage i { color: var(--cyan); font-style: normal; }
.record-note { display: grid; grid-template-columns: .7fr 1fr; gap: 60px; margin-top: 80px; padding: 36px; background: var(--ink-soft); border-left: 4px solid var(--cyan); border-radius: 0 14px 14px 0; }
.record-note h3 { margin: 0; font: 600 28px "Ubuntu", sans-serif; }
.record-note > p { margin: 0; color: var(--muted); line-height: 1.7; }

.manifesto { border-top: 1px solid var(--line); background: var(--ink-soft); }
.manifesto-grid { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: clamp(50px, 9vw, 130px); }
.manifesto-copy h2 { max-width: 760px; margin: 0 0 28px; font: 600 clamp(42px, 6vw, 78px)/.98 "Ubuntu", sans-serif; letter-spacing: -.05em; }
.manifesto-copy > p:not(.eyebrow) { max-width: 670px; margin: 0 0 18px; color: #bbb9b2; font-size: 18px; line-height: 1.7; }
.zebracorn-mark { position: relative; aspect-ratio: 1; width: min(100%, 450px); margin-inline: auto; border: 1px solid var(--line); border-radius: 50%; overflow: hidden; background: radial-gradient(circle, rgba(199,255,72,.08), transparent 63%), #090a0c; box-shadow: 0 30px 90px rgba(0,0,0,.35); }
.zebracorn-mark::after { content: ""; position: absolute; inset: 7%; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; pointer-events: none; }
.zebracorn-mark img { width: 100%; height: 100%; object-fit: contain; padding: 3%; filter: drop-shadow(0 20px 42px rgba(199,255,72,.13)); }

.contact { border-top: 1px solid var(--line); }
.contact .shell { display: grid; grid-template-columns: .8fr 1fr; gap: 100px; }
.contact-intro > p:last-child { max-width: 500px; }
.contact-list { border-top: 1px solid var(--line); }
.contact-list > a { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 8px; border-bottom: 1px solid var(--line); transition: padding .2s, color .2s; }
.contact-list > a:hover { padding-inline: 14px; color: var(--acid); }
.contact-list span, .contact-list strong, .contact-list small { display: block; }
.contact-list strong { font: 600 17px "Ubuntu", sans-serif; }
.contact-list small { margin-top: 5px; color: var(--muted); font-size: 12px; }
.contact-list b { color: var(--cyan); }

.site-footer { border-top: 1px solid var(--line); }
.footer-main, .footer-bottom { display: flex; justify-content: space-between; gap: 30px; }
.footer-main { align-items: flex-start; padding-block: 54px; }
.footer-main p { color: var(--muted); font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; color: #c4c2bb; font-size: 14px; }
.footer-links a:hover { color: var(--paper); }
.footer-bottom { padding-block: 18px; border-top: 1px solid var(--line); color: #777772; font-size: 11px; }

.error-page { width: min(680px, calc(100% - 40px)); min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; margin-inline: auto; padding-block: 64px; }
.error-page h1 { max-width: 650px; margin: 0; font: 600 clamp(48px, 9vw, 88px)/.95 "Ubuntu", sans-serif; letter-spacing: -.055em; }
.error-page > p:not(.eyebrow) { max-width: 560px; margin: 28px 0; color: var(--muted); font-size: 18px; line-height: 1.6; }
.error-mark { width: 110px; height: 110px; margin-bottom: 34px; border: 1px solid var(--line); border-radius: 50%; overflow: hidden; background: var(--ink-soft); }
.error-mark img { width: 100%; height: 100%; object-fit: contain; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .stripe-grid { grid-template-columns: 1fr 1fr; }
  .stripe-card:nth-child(3) { border-left: 0; }
  .stripe-card h3 { margin-top: 50px; }
  .section-heading.split, .contact .shell { grid-template-columns: 1fr; gap: 40px; }
  .manifesto-grid { grid-template-columns: 1fr; }
  .zebracorn-mark { width: min(72vw, 380px); }
  .project { grid-column: span 3; }
  .project-featured { grid-column: span 3; }
  .lineage { grid-template-columns: 1fr; }
  .lineage i { transform: rotate(90deg); justify-self: center; }
}

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav-links { position: absolute; display: none; top: calc(100% + 1px); left: 0; right: 0; padding: 20px; background: var(--ink); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; }
  .nav-links.is-open { display: flex; }
}

@media (max-width: 680px) {
  :root { --shell: min(100% - 28px, 1180px); }
  .brand .brand-wordmark { width: 126px; height: 36px; }
  .hero { min-height: auto; padding-top: 110px; }
  .hero-note { margin-top: 55px; align-items: flex-start; flex-direction: column; }
  .section { padding-block: 86px; }
  .manifesto-copy > p:not(.eyebrow) { font-size: 16px; }
  .stripe-grid { grid-template-columns: 1fr; }
  .stripe-card + .stripe-card { border-left: 0; }
  .project, .project-featured { grid-column: 1 / -1; min-height: 330px; }
  .record-note { grid-template-columns: 1fr; gap: 25px; padding: 28px 24px; }
  .footer-main, .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
