﻿@font-face { font-family: 'Geist Variable'; font-style: normal; font-display: swap; font-weight: 100 900; src: url('../assets/fonts/geist-latin.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Geist Variable'; font-style: normal; font-display: swap; font-weight: 100 900; src: url('../assets/fonts/geist-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Geist Mono Variable'; font-style: normal; font-display: swap; font-weight: 100 900; src: url('../assets/fonts/geist-mono-latin.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Geist Mono Variable'; font-style: normal; font-display: swap; font-weight: 100 900; src: url('../assets/fonts/geist-mono-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-display: swap; font-weight: 400; src: url('../assets/fonts/instrument-serif-latin.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-display: swap; font-weight: 400; src: url('../assets/fonts/instrument-serif-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-display: swap; font-weight: 400; src: url('../assets/fonts/instrument-serif-italic-latin.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-display: swap; font-weight: 400; src: url('../assets/fonts/instrument-serif-italic-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
:root {
    --bg: #09090b;
  --surface: #111114;
  --surface-2: #17171b;
  --text: #f3f1ec;
  --text-2: #a1a1aa;
  --border: #29292f;
  --border-strong: #3a3a42;
  --accent: #c7f36b;
  --accent-ink: #0b0d04;

    --font-display: 'Instrument Serif', 'Times New Roman', serif;
  --font-sans: 'Geist Variable', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono Variable', ui-monospace, 'Cascadia Code', monospace;
  --fs-mono: 0.75rem;
  --fs-body: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --fs-lead: clamp(1.125rem, 1rem + 0.6vw, 1.5rem);
  --fs-h2: clamp(2.5rem, 1.6rem + 4.2vw, 5.5rem);
  --fs-h3: clamp(1.75rem, 1.3rem + 1.8vw, 3rem);
  --fs-hero: clamp(3.25rem, 1.2rem + 9.2vw, 10.5rem);

    --gutter: clamp(1.25rem, 0.5rem + 3.5vw, 3.5rem);
  --section: clamp(5rem, 3rem + 7vw, 9rem);
  --max: 82rem;

    --radius: 0.375rem;
  --radius-lg: 0.75rem;
  --shadow-lift: 0 30px 80px -30px rgb(0 0 0 / 0.8);

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-1: 160ms;
  --dur-2: 320ms;
  --dur-3: 800ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip {
  position: fixed; top: 0.75rem; left: 0.75rem; z-index: 100; padding: 0.6rem 1rem;
  background: var(--accent); color: var(--accent-ink); font-weight: 600; border-radius: var(--radius);
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

.mono { font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
.display { font-family: var(--font-display); font-weight: 400; line-height: 0.95; letter-spacing: -0.02em; }
.display em { font-style: italic; color: var(--accent); }

.section { padding-block: var(--section); }
.section-head h2 { margin: 0; }
.section-head { display: flex; align-items: baseline; gap: 1rem; padding-bottom: 1.25rem; margin-bottom: clamp(2.5rem, 6vw, 5rem); border-bottom: 1px solid var(--border); }
.section-head .mono:last-child { margin-left: auto; }

.btn {
  display: inline-flex; align-items: center; gap: 0.6rem; min-height: 3rem; padding: 0.75rem 1.4rem;
  border: 1px solid var(--border-strong); border-radius: 999px; text-decoration: none;
  font-weight: 500; font-size: 0.95rem; line-height: 1;
  transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
}
.btn svg { width: 1em; height: 1em; transition: transform var(--dur-2) var(--ease); }
.btn:hover svg { transform: translate(2px, -2px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn--primary:hover { background: var(--text); border-color: var(--text); }
.btn--ghost:hover { border-color: var(--text); background: var(--surface); }
.btn:active { transform: scale(0.98); }

.header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: border-color var(--dur-2); }
.header::before { content: ''; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); }
.header.is-scrolled { border-bottom-color: var(--border); }
.header__bar { display: flex; align-items: center; justify-content: space-between; height: 4rem; gap: 1rem; }
.logo { display: inline-flex; align-items: baseline; gap: 0.5rem; text-decoration: none; font-family: var(--font-display); font-size: 1.5rem; line-height: 1; }
.logo span { font-family: var(--font-mono); font-size: 0.7rem; color: var(--accent); letter-spacing: 0.1em; }
.nav { display: none; }
.nav a { position: relative; padding: 0.5rem 0; text-decoration: none; font-size: 0.9rem; color: var(--text-2); transition: color var(--dur-1); }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0.25rem; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-2) var(--ease); }
.nav a:hover, .nav a[aria-current='true'] { color: var(--text); }
.nav a:hover::after, .nav a[aria-current='true']::after { transform: scaleX(1); }
.header__cta { display: none; min-height: 2.5rem; padding: 0.55rem 1.1rem; font-size: 0.85rem; }

.menu-btn { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 2.75rem; min-width: 2.75rem; padding: 0 0.9rem; background: none; border: 1px solid var(--border-strong); border-radius: 999px; cursor: pointer; font-size: 0.85rem; }
.menu-btn__icon { position: relative; width: 14px; height: 8px; }
.menu-btn__icon::before, .menu-btn__icon::after { content: ''; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform var(--dur-2) var(--ease), top var(--dur-2) var(--ease); }
.menu-btn__icon::before { top: 0; }
.menu-btn__icon::after { top: 6.5px; }
.menu-btn[aria-expanded='true'] .menu-btn__icon::before { top: 3.25px; transform: rotate(45deg); }
.menu-btn[aria-expanded='true'] .menu-btn__icon::after { top: 3.25px; transform: rotate(-45deg); }

.drawer { position: fixed; inset: 4rem 0 0 0; z-index: 49; background: var(--bg); padding: 2rem var(--gutter) 2.5rem; display: flex; flex-direction: column; justify-content: space-between; opacity: 0; visibility: hidden; transform: translateY(-0.5rem); transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease), visibility 0s var(--dur-2); }
.drawer.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.drawer nav a { display: flex; align-items: baseline; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--border); text-decoration: none; font-family: var(--font-display); font-size: 2.75rem; line-height: 1; }
.drawer nav a span { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-2); }
.drawer__foot { color: var(--text-2); font-size: 0.9rem; }

@media (min-width: 56rem) {
  .nav { display: flex; gap: 2rem; }
  .header__cta { display: inline-flex; }
  .menu-btn, .drawer { display: none; }
}

.hero { position: relative; padding-top: clamp(3rem, 8vw, 7rem); padding-bottom: clamp(1rem, 2vw, 2rem); overflow: clip; }
.hero__grid-bg { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 6rem 6rem; opacity: 0.22; mask-image: radial-gradient(70% 80% at 70% 20%, #000, transparent 75%); }
.hero__meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-bottom: clamp(1.5rem, 4vw, 3rem); }
.hero__meta .dot { display: inline-block; width: 7px; height: 7px; margin-right: 0.6rem; border-radius: 50%; background: var(--accent); vertical-align: 0.05em; }
.hero__title { font-size: var(--fs-hero); max-width: 13ch; }
.hero__title .line { display: block; }
.hero__lower { display: grid; gap: 2.5rem; margin-top: clamp(2.5rem, 6vw, 5rem); align-items: end; }
.hero__intro { max-width: 34rem; color: var(--text-2); font-size: var(--fs-lead); line-height: 1.5; }
.hero__intro strong { color: var(--text); font-weight: 500; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

@media (min-width: 56rem) {
  .hero__lower { grid-template-columns: 1.1fr 0.9fr; gap: 4rem; }
  .facts { justify-self: end; width: min(100%, 28rem); }
}

.facts { display: grid; border-top: 1px solid var(--border); }
.facts > div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--border); }
.facts dd { margin: 0; font-size: 0.95rem; line-height: 1.45; }

.section--projects { padding-bottom: 0; }
.section--projects .section-head { margin-bottom: 0; }
.case { padding-block: clamp(3rem, 7vw, 6rem); }
.case + .case { border-top: 1px solid var(--border); }
.case:last-child { padding-bottom: 0; }
.case__grid { display: grid; gap: clamp(2.5rem, 5vw, 3.5rem); }
.case__title { font-size: var(--fs-h2); margin-top: 0.75rem; }
.case__kind { display: block; }
.case__summary { margin-top: 1.5rem; font-size: var(--fs-lead); line-height: 1.5; max-width: 40rem; }
.case__goal { margin-top: 1rem; color: var(--text-2); max-width: 40rem; }
.case--wide .case__head { display: grid; gap: 1.5rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.case--wide .case__summary, .case--wide .case__goal { margin-top: 0; }
.case--wide .case__head > div:last-child { display: grid; gap: 1rem; }

.frame { position: relative; margin: 0; }
.frame__desk { border: 1px solid var(--border-strong); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; box-shadow: var(--shadow-lift); transition: transform var(--dur-3) var(--ease), border-color var(--dur-2); }
.frame__chrome { display: flex; align-items: center; gap: 0.4rem; padding: 0.65rem 0.9rem; border-bottom: 1px solid var(--border); }
.frame__chrome i { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); }
.frame__chrome span { margin-left: 0.6rem; font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frame__desk img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.frame-link { display: block; text-decoration: none; }
.frame-link:hover .frame__desk { border-color: var(--accent); transform: translateY(-4px); }

.plates { display: grid; gap: 2rem; margin-top: clamp(1.5rem, 4vw, 3rem); }
.plates figure { margin: 0; }
.plates img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border: 1px solid var(--border); border-radius: var(--radius); }
.plates figcaption { margin-top: 0.75rem; }
.plates .phone { max-width: 10rem; }
.plates .phone img { aspect-ratio: 390 / 844; border-radius: 1rem; border-color: var(--border-strong); }

.case__detail { display: grid; gap: 2.25rem; margin-top: clamp(3rem, 6vw, 5rem); padding-top: 2rem; border-top: 1px solid var(--border); }
.case__detail h4 { margin: 0 0 1rem; font-weight: 400; }
.case__detail li { position: relative; padding-left: 1.1rem; margin-bottom: 0.7rem; color: var(--text-2); font-size: 0.97rem; }
.case__detail li::before { content: ''; position: absolute; left: 0; top: 0.8em; width: 0.45rem; height: 1px; background: var(--accent); }
.case__detail code { font-family: var(--font-mono); font-size: 0.85em; color: var(--text); }
.case__detail .tags li { padding: 0.25rem 0.65rem; margin: 0; border: 1px solid var(--border-strong); border-radius: 999px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--text); }
.case__detail .tags li::before { content: none; }
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.case__note { margin: 1.25rem 0 1.5rem; font-size: 0.9rem; color: var(--text-2); }

@media (min-width: 56rem) {
  .case__detail { grid-template-columns: 1fr 1fr 0.8fr; gap: 3rem; }
  .plates { grid-template-columns: 1fr 1fr 10rem; gap: 2.5rem; align-items: start; }
  .plates figure:nth-child(2) { margin-top: 3.5rem; }
  .plates .phone { margin-top: 1.75rem; }
    .case--wide .case__head { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: end; }
    .case--split .case__grid { grid-template-columns: 5fr 7fr; align-items: center; gap: 5rem; }
  .case--split   .case--split .case__title { font-size: clamp(2.5rem, 1rem + 4vw, 4.75rem); }
}

.about__grid { display: grid; gap: 3rem; }
.about__lead { font-size: var(--fs-h3); max-width: 22ch; }
.about__text p { max-width: 38rem; color: var(--text-2); font-size: var(--fs-lead); line-height: 1.55; }
.about__text p + p { margin-top: 1.25rem; }
.about__text p:first-child { color: var(--text); }
.about__sub { margin: 3rem 0 0; font-weight: 400; }
.timeline { margin-top: 1rem; border-top: 1px solid var(--border); }
.timeline li { display: grid; gap: 0.25rem 2rem; padding: 1.25rem 0; border-bottom: 1px solid var(--border); }
.timeline h4 { margin: 0; font-family: var(--font-sans); font-size: 1.1rem; font-weight: 500; line-height: 1.35; }
.about__text .timeline p { font-size: 0.95rem; line-height: 1.5; }
.langs { margin-top: 1.5rem; color: var(--text-2); font-size: 0.95rem; }
.about__text .langs { font-size: 0.95rem; }
@media (min-width: 56rem) {
  .about__grid { grid-template-columns: 5fr 7fr; gap: 5rem; align-items: start; }
  .about__lead { position: sticky; top: 6rem; }
  .timeline li { grid-template-columns: 10rem 1fr; }
}

.stack { background: var(--surface); border-block: 1px solid var(--border); }
.stack__grid { display: grid; }
.stack__row { display: grid; gap: 0.75rem 2rem; padding: 1.5rem 0; border-bottom: 1px solid var(--border); }
.stack__row:last-child { border-bottom: 0; padding-bottom: 0; }
.stack__row h3 { margin: 0; font-weight: 400; }
.stack__items { display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; font-family: var(--font-display); font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem); line-height: 1.15; }
@media (min-width: 56rem) { .stack__row { grid-template-columns: 12rem 1fr; align-items: baseline; } }

.contact { padding-bottom: clamp(3rem, 6vw, 5rem); }
.contact__title { font-size: clamp(3rem, 1rem + 9vw, 10rem); max-width: 12ch; }
.contact__mail { display: inline-block; margin-top: clamp(2rem, 5vw, 4rem); font-family: var(--font-sans); letter-spacing: -0.03em; font-size: clamp(1.4rem, 0.5rem + 4.4vw, 3.75rem); line-height: 1.1; text-decoration: none; border-bottom: 1px solid var(--border-strong); overflow-wrap: anywhere; transition: color var(--dur-2), border-color var(--dur-2); }
.contact__mail:hover { color: var(--accent); border-color: var(--accent); }
.contact__list { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.5rem; }
.contact__lead { margin-top: 1.5rem; max-width: 34rem; color: var(--text-2); font-size: var(--fs-lead); }

.footer { border-top: 1px solid var(--border); padding-block: 2rem 2.5rem; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.25rem 2rem; align-items: center; }
.footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.footer a { text-decoration: none; color: var(--text-2); transition: color var(--dur-1); }
.footer a:hover { color: var(--accent); }
.js [data-reveal] { opacity: 0; transform: translateY(1.5rem); transition: opacity var(--dur-3) var(--ease), transform var(--dur-3) var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.hero__title .line { animation: rise 0.7s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes rise { from { opacity: 0; transform: translateY(0.5em); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

.contact__phone { display: flex; align-items: baseline; gap: 1rem; margin-top: 1.25rem; }
.contact__phone a { font-size: var(--fs-lead); text-decoration: none; border-bottom: 1px solid var(--border-strong); transition: color var(--dur-1), border-color var(--dur-1); }
.contact__phone a:hover { color: var(--accent); border-color: var(--accent); }

.drawer__foot { display: grid; gap: 0.5rem; }
.drawer__foot a { color: var(--text); text-decoration: none; font-size: 1.05rem; }

