:root {
  --bg: #f6f6f3;
  --surface: #ffffff;
  --soft: #ecece7;
  --ink: #111315;
  --muted: #696d70;
  --line: #d9d9d4;
  --dark: #0b0d0f;
  --dark-soft: #15181b;
  --dark-line: #292d31;
  --accent: #c7ff4a;
  --max: 1240px;
  --radius: 2px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { max-width: 100%; display: block; }
::selection { background: var(--ink); color: var(--accent); }

.container { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.section { padding: 140px 0; }
.section-dark { background: var(--dark); color: #f5f5f1; }
.section-soft { background: var(--soft); }

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
.site-header.scrolled {
  background: rgba(246,246,243,.86);
  border-color: var(--line);
  backdrop-filter: blur(16px);
}
.nav { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 700; letter-spacing: -.02em; }
.brand-mark {
  width: 32px; height: 32px; display: grid; place-items: center;
  background: var(--ink); color: var(--accent); font-size: 14px;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-link { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; transition: color .2s; }
.nav-link:hover, .nav-link.active { color: var(--ink); }
.nav-cta { color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 4px; }
.nav-cta span { color: var(--muted); margin-left: 4px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }

.hero { min-height: 100svh; padding-top: 150px; padding-bottom: 70px; display: flex; flex-direction: column; justify-content: center; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 80px; }
.eyebrow, .section-kicker, .project-type, .blog-date {
  margin: 0 0 18px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.hero h1 { max-width: 720px; margin: 0; font-size: clamp(56px, 7vw, 104px); line-height: .94; letter-spacing: -.07em; font-weight: 650; }
.hero h1 em, h2 span { color: #74787a; font-style: normal; }
.hero-text { max-width: 590px; margin: 34px 0 0; color: var(--muted); font-size: 17px; }
.hero-actions { display: flex; gap: 12px; margin-top: 36px; }
.button { display: inline-flex; align-items: center; gap: 22px; min-height: 50px; padding: 0 20px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; transition: transform .25s var(--ease), background .25s; }
.button:hover { transform: translateY(-3px); }
.button-primary { background: var(--ink); color: #fff; }
.button-primary span { color: var(--accent); }
.button-ghost { border: 1px solid var(--line); }
.hero-meta { display: flex; gap: 28px; margin-top: 55px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.hero-meta i { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: #62a30b; }

.hero-visual { min-height: 560px; display: grid; place-items: center; }
.visual-frame {
  position: relative; width: min(100%, 500px); aspect-ratio: 1; overflow: hidden;
  background: #e8e8e3; border: 1px solid var(--line);
}
.visual-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(17,19,21,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(17,19,21,.07) 1px, transparent 1px);
  background-size: 50px 50px;
}
.visual-core {
  position: absolute; inset: 50% auto auto 50%; transform: translate(-50%,-50%);
  width: 180px; height: 180px; display: grid; place-items: center; align-content: center;
  background: var(--dark); color: white; border-radius: 50%; box-shadow: 0 30px 70px rgba(0,0,0,.15);
}
.visual-core strong { font-size: 68px; line-height: 1; letter-spacing: -.08em; color: var(--accent); }
.core-label { font-size: 9px; letter-spacing: .16em; color: #9da2a6; }
.data-orbit { position: absolute; border: 1px solid rgba(17,19,21,.2); border-radius: 50%; transform: translate(-50%,-50%) rotate(-18deg); left: 50%; top: 50%; }
.orbit-one { width: 330px; height: 140px; }
.orbit-two { width: 440px; height: 220px; transform: translate(-50%,-50%) rotate(32deg); }
.floating-card { position: absolute; display: flex; justify-content: space-between; align-items: center; gap: 28px; padding: 14px 16px; background: rgba(255,255,255,.88); border: 1px solid var(--line); backdrop-filter: blur(10px); font-size: 10px; }
.floating-card span { color: var(--muted); letter-spacing: .1em; }
.floating-card strong { font-size: 16px; }
.card-top { top: 15%; right: -6%; }
.card-bottom { bottom: 13%; left: -6%; }

.hero-scroll { display: flex; align-items: center; gap: 14px; margin-top: 40px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.scroll-line { width: 70px; height: 1px; background: var(--line); }

.statement-grid { display: grid; grid-template-columns: .4fr 1.6fr; gap: 50px; }
.statement .section-kicker { color: #7f8589; }
.statement h2 { max-width: 850px; margin: 0; font-size: clamp(38px, 5vw, 72px); line-height: 1.02; letter-spacing: -.055em; }
.statement-copy { grid-column: 2; max-width: 560px; margin: 10px 0 0; color: #9ca1a5; }

.section-heading { display: grid; grid-template-columns: 1.2fr .8fr; gap: 80px; align-items: end; margin-bottom: 70px; }
.section-heading h2, .contact h2 { margin: 0; font-size: clamp(42px, 5vw, 72px); line-height: .98; letter-spacing: -.06em; }
.section-heading > p { margin: 0; color: var(--muted); max-width: 430px; font-size: 15px; }
.light .section-kicker, .light > p { color: #7f8589; }

.about-grid { display: grid; grid-template-columns: .4fr 1.6fr; gap: 50px; border-top: 1px solid var(--line); padding-top: 45px; }
.about-number { font-size: clamp(100px, 18vw, 240px); line-height: .7; letter-spacing: -.1em; color: #dddeda; }
.about-number span { color: var(--accent); }
.about-copy { max-width: 760px; }
.about-copy .lead { font-size: 28px; line-height: 1.3; letter-spacing: -.025em; }
.about-copy > p:not(.lead) { color: var(--muted); }
.about-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 55px; padding-top: 25px; border-top: 1px solid var(--line); }
.about-facts span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.about-facts strong { font-size: 13px; }

.skills-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.skill-card { min-height: 360px; padding: 30px; background: var(--soft); transition: background .3s, transform .3s var(--ease); }
.skill-card:hover { background: var(--surface); transform: translateY(-6px); }
.skill-index { color: var(--muted); font-size: 11px; }
.skill-card h3 { margin: 80px 0 14px; font-size: 22px; letter-spacing: -.035em; }
.skill-card p { min-height: 92px; color: var(--muted); font-size: 13px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.tags span { padding: 5px 8px; border: 1px solid var(--line); color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .07em; }

.projects-list { border-top: 1px solid var(--line); }
.project { display: grid; grid-template-columns: 80px 1fr 70px; gap: 35px; align-items: center; padding: 42px 0; border-bottom: 1px solid var(--line); transition: padding .3s var(--ease); }
.project:hover { padding-left: 18px; padding-right: 18px; }
.project-number { color: var(--muted); font-size: 11px; }
.project-type { margin-bottom: 7px; }
.project h3 { margin: 0; font-size: 27px; letter-spacing: -.04em; }
.project-main > p:not(.project-type) { max-width: 700px; margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.project-main .tags { margin-top: 14px; }
.project-link { justify-self: end; width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line); transition: background .25s, color .25s; }
.project-link:hover { background: var(--ink); color: #fff; }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--dark-line); border: 1px solid var(--dark-line); }
.blog-card { min-height: 390px; padding: 30px; display: flex; flex-direction: column; background: var(--dark); transition: background .3s; }
.blog-card:hover { background: var(--dark-soft); }
.blog-date { color: #777e83; }
.blog-card h3 { margin: 65px 0 12px; font-size: 25px; line-height: 1.08; letter-spacing: -.04em; }
.blog-card p:not(.blog-date) { color: #969ca0; font-size: 13px; }
.blog-card a { margin-top: auto; color: #f5f5f1; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.blog-card a span { color: var(--accent); }

.contact { background: var(--accent); }
.contact-grid { display: grid; grid-template-columns: 1fr .8fr; gap: 100px; align-items: end; }
.contact .section-kicker { color: #4c5d25; }
.contact h2 span { color: #546526; }
.contact-copy { max-width: 520px; margin-top: 30px; color: #4f5d35; }
.contact-panel { border-top: 1px solid rgba(17,19,21,.3); }
.contact-line { display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; border-bottom: 1px solid rgba(17,19,21,.3); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.contact-line span { color: #536027; }
.contact-line strong { font-size: 12px; }

.footer { background: var(--dark); color: #777e83; }
.footer-inner { min-height: 80px; display: flex; justify-content: space-between; align-items: center; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay { transition-delay: .12s; }

.skip-link { position: fixed; left: 16px; top: -100px; z-index: 100; padding: 10px 14px; background: var(--ink); color: white; }
.skip-link:focus { top: 16px; }
