:root {
  --bg: #0a0b0d;
  --surface: #111317;
  --surface-2: #171a1f;
  --text: #f0f0ec;
  --muted: #a6a9ad;
  --line: rgba(255,255,255,.10);
  --accent: #d9e2c8;
  --accent-dark: #288aa6;
  --max: 1180px;
  --radius: 18px;
  --shadow: 0 22px 70px rgba(0,0,0,.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 80% 0%, rgba(139,154,118,.10), transparent 32rem),
    radial-gradient(circle at 10% 20%, rgba(255,255,255,.035), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
button, a { -webkit-tap-highlight-color: transparent; }

.container { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(820px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(10,11,13,.78);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav {
  min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 28px;
}
.brand { font-weight: 800; letter-spacing: -.04em; font-size: 1.05rem; }
.nav-links { display: flex; gap: 24px; color: var(--muted); font-size: .92rem; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.hero { padding: 130px 0 110px; min-height: 78vh; display: grid; align-items: center; }
.eyebrow { color: var(--accent-dark); text-transform: uppercase; letter-spacing: .16em; font-size: .76rem; font-weight: 800; }
.hero h1 { font-size: clamp(3.5rem, 9vw, 8.5rem); line-height: .88; letter-spacing: -.075em; margin: 18px 0 30px; max-width: 950px; }
.hero p { max-width: 650px; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.3rem); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--text); color: var(--bg); font-weight: 750; font-size: .9rem;
  transition: transform .2s ease, opacity .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button.secondary { background: transparent; color: var(--text); }
.button.disabled { opacity: .42; pointer-events: none; }

.section { padding: 95px 0; }
.section-header { display: flex; justify-content: space-between; gap: 30px; align-items: end; margin-bottom: 34px; }
.section-header h2 { font-size: clamp(2rem, 5vw, 4rem); letter-spacing: -.055em; line-height: .95; margin: 8px 0 0; }
.section-header p { max-width: 520px; color: var(--muted); margin: 0; }

.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.project-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .25s ease, border-color .25s ease;
}
.project-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,.22); }
.project-card.featured { grid-column: 1 / -1; }
.project-card .card-media { aspect-ratio: 16/9; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.project-card:hover .card-media img { transform: scale(1.03); }
.card-body { padding: 25px; }
.card-meta { color: var(--accent-dark); text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; font-weight: 800; }
.card-body h3 { font-size: 1.65rem; letter-spacing: -.04em; margin: 8px 0 7px; }
.card-body p { color: var(--muted); margin: 0 0 18px; }
.card-link { font-size: .86rem; font-weight: 750; }

.placeholder {
  height: 100%; min-height: 220px; position: relative; overflow: hidden;
  display: grid; place-items: center; text-align: center; padding: 30px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.06) 0 25%, transparent 25% 50%, rgba(255,255,255,.035) 50% 75%, transparent 75%),
    linear-gradient(180deg, #20252a, #0f1114);
  background-size: 48px 48px, auto;
  color: #d4d7d4;
}
.placeholder .placeholder-title { font-weight: 800; letter-spacing: -.02em; font-size: 1.25rem; }
.placeholder .placeholder-note { color: #9fa4a8; font-size: .82rem; margin-top: 5px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split h2 { font-size: clamp(2rem, 5vw, 4rem); line-height: 1; letter-spacing: -.06em; margin: 12px 0 20px; }
.muted { color: var(--muted); }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag { border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; color: #c5c8c8; font-size: .72rem; }

.about-box {
  padding: 34px; border: 1px solid var(--line); background: linear-gradient(135deg, var(--surface), rgba(17,19,23,.55));
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.about-box p:last-child { margin-bottom: 0; }

.site-footer { border-top: 1px solid var(--line); padding: 45px 0 60px; color: var(--muted); }
.footer-row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 18px; }
.footer-links a:hover { color: var(--text); }

.page-hero { padding: 100px 0 70px; }
.page-hero h1 { font-size: clamp(3rem, 8vw, 6.5rem); line-height: .9; letter-spacing: -.07em; margin: 12px 0 20px; }
.page-hero p { color: var(--muted); max-width: 700px; font-size: 1.08rem; }

.project-hero { padding: 90px 0 45px; }
.project-hero h1 { font-size: clamp(3.4rem, 8vw, 7.5rem); line-height: .86; letter-spacing: -.075em; margin: 12px 0 24px; }
.project-hero .lede { max-width: 720px; color: var(--muted); font-size: 1.15rem; }
.project-media { margin-top: 45px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.project-media .placeholder { min-height: 480px; }

.project-layout { display: grid; grid-template-columns: 240px 1fr; gap: 65px; padding: 80px 0; }
.project-sidebar { position: sticky; top: 100px; align-self: start; }
.sidebar-label { text-transform: uppercase; letter-spacing: .14em; font-size: .68rem; color: var(--accent-dark); font-weight: 800; }
.sidebar-list { list-style: none; padding: 0; margin: 12px 0 25px; color: var(--muted); font-size: .88rem; }
.sidebar-list li { margin: 6px 0; }
.content h2 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1; letter-spacing: -.055em; margin: 0 0 18px; }
.content h3 { font-size: 1.45rem; margin-top: 45px; letter-spacing: -.03em; }
.content p { color: #c5c7c8; }
.content-section { margin-bottom: 70px; }
.media-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 25px 0; }
.media-grid .placeholder { aspect-ratio: 16/9; min-height: 180px; }

/* Real screenshots */
.shot { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #0f1114; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-shot { margin-top: 45px; aspect-ratio: 16/9; box-shadow: var(--shadow); }
.media-grid .shot { aspect-ratio: 16/9; }
.media-grid .shot.wide { grid-column: 1 / -1; aspect-ratio: 2/1; }
.callout {
  border-left: 3px solid var(--accent-dark); background: var(--surface); padding: 22px 25px; margin: 30px 0;
  border-radius: 0 12px 12px 0;
}
.callout strong { color: var(--text); }
.next-project {
  border-top: 1px solid var(--line); padding: 60px 0 90px; display: flex; justify-content: space-between; gap: 30px; align-items: center;
}
.next-project h2 { margin: 6px 0 0; font-size: 2rem; letter-spacing: -.04em; }

.skill-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.skill { border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 22px; }
.skill strong { display: block; margin-bottom: 6px; }
.skill span { color: var(--muted); font-size: .88rem; }

.timeline { border-left: 1px solid var(--line); margin-left: 8px; }
.timeline-item { padding: 0 0 45px 35px; position: relative; }
.timeline-item::before { content: ""; width: 9px; height: 9px; background: var(--accent); border-radius: 50%; position: absolute; left: -5px; top: 8px; }
.timeline-item .date { color: var(--accent-dark); font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
.timeline-item h3 { margin: 7px 0; font-size: 1.5rem; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 800px) {
  .nav { min-height: 62px; }
  .nav-links { gap: 14px; font-size: .82rem; }
  .hero { padding: 95px 0 75px; min-height: auto; }
  .section { padding: 70px 0; }
  .project-grid, .split, .skill-grid, .project-layout { grid-template-columns: 1fr; }
  .project-card.featured { grid-column: auto; }
  .section-header { display: block; }
  .section-header p { margin-top: 15px; }
  .project-sidebar { position: static; }
  .project-layout { gap: 35px; padding: 55px 0; }
  .project-media .placeholder { min-height: 280px; }
  .media-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .container, .narrow { width: min(100% - 28px, var(--max)); }
  .nav-links a:nth-child(3) { display: none; }
  .hero h1 { font-size: 3.6rem; }
  .project-hero h1 { font-size: 3.7rem; }
  .about-box { padding: 24px; }
}

/* Contact links */
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}