@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Newsreader:ital,opsz,wght@0,6..72,500;1,6..72,500&display=swap');

:root {
  --bg: #090b0b;
  --surface: #111414;
  --surface-2: #171a1a;
  --ink: #f5f3ec;
  --muted: #a8ada8;
  --dim: #737974;
  --line: rgba(245, 243, 236, .14);
  --line-strong: rgba(245, 243, 236, .28);
  --accent: #c7ff5a;
  --accent-ink: #172006;
  --max: 1280px;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 85% 8%, rgba(199, 255, 90, .075), transparent 26rem),
    radial-gradient(circle at 10% 45%, rgba(255, 255, 255, .025), transparent 30rem),
    var(--bg);
  color: var(--ink);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--accent-ink); }
a { color: inherit; }

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  max-width: var(--max);
  min-height: 82px;
  margin: auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 11, 11, .82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.brand { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; line-height: 1.1; }
.brand strong { font-size: 1rem; font-weight: 700; letter-spacing: -.02em; text-transform: uppercase; }
.brand small { margin-top: 7px; font-size: .75rem; letter-spacing: .16em; color: var(--dim); text-transform: uppercase; }
nav { display: flex; gap: clamp(13px, 2.1vw, 30px); align-items: center; }
nav a { color: var(--muted); text-decoration: none; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; padding: 10px 0; position: relative; transition: color .2s ease; }
nav a::after { content: ''; height: 1px; background: var(--accent); position: absolute; left: 0; right: 100%; bottom: 5px; transition: right .25s ease; }
nav a.active, nav a:hover { color: var(--ink); }
nav a.active::after, nav a:hover::after { right: 0; }

main { max-width: var(--max); margin: auto; padding: 0 28px; }
.hero { min-height: calc(100vh - 82px); padding: clamp(54px, 8vw, 110px) 0 65px; display: flex; align-items: center; }
.hero-split { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(330px, .82fr); gap: clamp(35px, 7vw, 100px); align-items: center; width: 100%; }
.kicker, .label, .eyebrow {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .19em;
  color: var(--accent);
  margin: 0 0 22px;
  text-transform: uppercase;
}
.hero h1, .page-head h1 {
  font-size: clamp(4.25rem, 9.2vw, 9rem);
  line-height: .82;
  letter-spacing: -.075em;
  margin: 0;
  text-transform: uppercase;
  font-weight: 600;
}
.hero h1 em, .page-head h1 em { display: block; font-family: 'Newsreader', Georgia, serif; font-weight: 500; font-style: italic; color: var(--accent); text-transform: none; letter-spacing: -.055em; }
.hero .lede { font-size: clamp(1.03rem, 1.6vw, 1.25rem); line-height: 1.7; max-width: 680px; margin: 32px 0 0; color: var(--muted); }
.actions { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.button { padding: 13px 21px; border: 1px solid var(--line-strong); border-radius: 999px; text-decoration: none; color: var(--ink); font-size: .82rem; font-weight: 600; transition: background .2s ease, color .2s ease, transform .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); border-color: var(--ink); }
.button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.portrait-wrap { min-height: 540px; display: flex; align-items: center; justify-content: center; position: relative; }
.portrait-sketch {
  position: relative;
  width: min(100%, 500px);
  height: 560px;
  isolation: isolate;
}
.portrait-sketch::before { content: 'SYSTEMS'; position: absolute; z-index: 0; top: 17%; left: 50%; transform: translateX(-50%) rotate(-90deg); color: transparent; -webkit-text-stroke: 1px rgba(199, 255, 90, .34); font-size: clamp(4.6rem, 8vw, 7.4rem); font-weight: 700; letter-spacing: -.07em; line-height: 1; white-space: nowrap; }
.portrait-sketch::after { content: '14+ YEARS / BUILDING FOR THE REAL WORLD'; position: absolute; z-index: 2; top: 34px; right: -26px; color: var(--muted); font-size: .75rem; letter-spacing: .15em; writing-mode: vertical-rl; text-transform: uppercase; }
.portrait-sketch img { position: absolute; z-index: 1; left: 50%; bottom: 0; width: 112%; height: auto; max-height: 540px; object-fit: contain; transform: translateX(-50%); filter: grayscale(1) contrast(1.08); }
.scribble { position: absolute; z-index: 3; left: 5px; right: 5px; bottom: 5px; padding: 18px 20px; border-top: 1px solid var(--line); background: linear-gradient(to top, rgba(9, 11, 11, .88), rgba(9, 11, 11, .45)); font-size: .75rem; line-height: 1.5; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }

.signal-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 100px; }
.signal-strip span { padding: 20px; color: var(--muted); font-size: .75rem; letter-spacing: .11em; text-align: center; text-transform: uppercase; border-right: 1px solid var(--line); }
.signal-strip span:last-child { border-right: 0; }

.section-intro { display: grid; grid-template-columns: .75fr 1.25fr; gap: 50px; padding: 80px 0; border-top: 1px solid var(--line); }
.section-intro h2, .section-title h2 { margin: 0; font-family: 'Newsreader', Georgia, serif; font-size: clamp(2.6rem, 5vw, 5.2rem); font-weight: 500; line-height: .98; letter-spacing: -.045em; }
.section-intro p:last-child { margin: 0; color: var(--muted); font-size: 1.08rem; max-width: 680px; }

.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 0 0 110px; }
.quick { min-height: 285px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); display: flex; flex-direction: column; background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.015)); transition: transform .25s ease, background .25s ease, border-color .25s ease; overflow: hidden; position: relative; }
.quick::after { content: ''; position: absolute; width: 150px; height: 150px; right: -70px; top: -70px; border: 1px solid rgba(199,255,90,.3); border-radius: 50%; transition: transform .35s ease; }
.quick:hover { transform: translateY(-5px); background: var(--surface-2); border-color: var(--line-strong); }
.quick:hover::after { transform: scale(1.2); }
.quick .icon { font-size: .75rem; color: var(--accent); font-weight: 600; letter-spacing: .16em; }
.quick h2 { font-size: clamp(1.6rem, 2.3vw, 2.35rem); line-height: 1.08; margin: 34px 0 10px; }
.quick p { font-size: .92rem; line-height: 1.6; color: var(--muted); margin: 0; max-width: 290px; }
.quick b { margin-top: auto; font-size: 1.25rem; font-weight: 400; color: var(--accent); }
.q-work { grid-column: span 2; }

.latest { border-top: 1px solid var(--line); padding: 90px 0 120px; }
.section-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 40px; }
.section-title p:not(.kicker) { margin: 8px 0 0; color: var(--muted); }
.section-title > a { color: var(--accent); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.feature-note { display: grid; grid-template-columns: 170px 1fr auto; gap: 35px; align-items: center; padding: clamp(28px, 5vw, 58px); border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(135deg, var(--surface-2), var(--surface)); text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.feature-note + .feature-note { margin-top: 14px; }
.feature-note:hover { border-color: var(--accent); transform: translateY(-3px); }
.feature-note h3 { font-family: 'Newsreader', Georgia, serif; font-size: clamp(2rem, 4vw, 4rem); font-weight: 500; line-height: 1; letter-spacing: -.045em; margin: 0 0 14px; }
.feature-note p { color: var(--muted); margin: 0; max-width: 670px; }
.feature-note .arrow { color: var(--accent); }

footer { max-width: var(--max); margin: auto; padding: 70px 28px 42px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: end; color: var(--muted); font-size: .78rem; }
footer strong { display: block; font-family: 'Newsreader', Georgia, serif; font-size: clamp(3.2rem, 8.2vw, 8rem); font-weight: 500; line-height: .75; letter-spacing: -.065em; color: var(--ink); }
footer p { margin: 20px 0 0; }
.social-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; }
.social-links a { color: var(--ink); font-size: .75rem; font-weight: 600; letter-spacing: .11em; text-decoration: none; text-transform: uppercase; }
.social-links a:hover { color: var(--accent); }

.page-head { padding: clamp(75px, 12vw, 150px) 0 70px; border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 1100px; font-size: clamp(3.9rem, 8vw, 8rem); }
.page-head p:last-child { font-size: clamp(1rem, 1.6vw, 1.18rem); color: var(--muted); max-width: 760px; margin: 34px 0 0; }
.content { padding: 75px 0 120px; max-width: 860px; }
.content h2 { font-family: 'Newsreader', Georgia, serif; font-size: clamp(2rem, 3.8vw, 3.5rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.05; margin: 72px 0 22px; }
.content h2:first-child { margin-top: 0; }
.content h3 { font-size: 1.16rem; margin-bottom: 5px; }
.content p { color: var(--muted); font-size: 1.03rem; }
.timeline { border-left: 1px solid var(--line); padding-left: 30px; }
.timeline article { margin: 0 0 48px; position: relative; }
.timeline article::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); position: absolute; left: -35px; top: 9px; box-shadow: 0 0 0 6px var(--bg); }
.muted { color: var(--dim) !important; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chips span { padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; background: var(--surface); color: var(--muted); }
.chips span:nth-child(-n+5) { border-color: rgba(199,255,90,.38); color: var(--ink); }

.project-list, .note-list { padding: 45px 0 120px; }
.project, .note { display: grid; grid-template-columns: 190px 1fr auto; gap: 35px; align-items: start; padding: 42px 22px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: background .2s ease, padding .2s ease; }
a.project:hover, a.note:hover { background: var(--surface); padding-left: 30px; padding-right: 30px; }
.project h2, .note h2 { margin: 0; font-family: 'Newsreader', Georgia, serif; font-size: clamp(1.65rem, 2.7vw, 2.7rem); font-weight: 500; letter-spacing: -.03em; line-height: 1.05; }
.project p, .note p { color: var(--muted); margin: 12px 0 0; max-width: 700px; }
.tag { font-size: .75rem; letter-spacing: .13em; color: var(--accent); font-weight: 600; text-transform: uppercase; }
.arrow { font-size: 1rem; white-space: nowrap; color: var(--muted); }

.article { max-width: 900px !important; margin: 0 auto !important; padding: 80px 28px 120px !important; }
.article h1 { font-family: 'Newsreader', Georgia, serif; font-weight: 500; letter-spacing: -.055em; }
.article .dek, .article .meta, .article-body { color: var(--muted); }
.article-body { font-size: 1.08rem !important; line-height: 1.85 !important; }
.article-body h2 { color: var(--ink); font-family: 'Newsreader', Georgia, serif; font-weight: 500; letter-spacing: -.03em; }
.article-body h3, .article-body strong { color: var(--ink); }
.article-body blockquote { color: var(--ink); border-left-color: var(--accent) !important; }
.article-body pre { color: var(--ink); background: var(--surface-2) !important; border: 1px solid var(--line); }
.article-body .callout { background: var(--surface); border-color: var(--line-strong) !important; }
.article-body hr { border: 0; border-top: 1px solid var(--line); margin: 70px 0; }
.article-body a { color: var(--accent); }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.hero-copy > *, .portrait-sketch, .page-head > * { animation: rise .65s ease both; }
.hero-copy > *:nth-child(2), .page-head > *:nth-child(2) { animation-delay: .08s; }
.hero-copy > *:nth-child(3), .page-head > *:nth-child(3) { animation-delay: .16s; }
.hero-copy > *:nth-child(4) { animation-delay: .24s; }
.portrait-sketch { animation-delay: .18s; }

@media (max-width: 980px) {
  .hero-split { grid-template-columns: 1fr 340px; gap: 30px; }
  .portrait-wrap, .portrait-sketch { min-height: 460px; height: 460px; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .q-work { grid-column: auto; }
  .signal-strip { grid-template-columns: 1fr 1fr; }
  .signal-strip span:nth-child(2) { border-right: 0; }
  .signal-strip span:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 760px) {
  .nav { min-height: 70px; padding: 12px 20px; align-items: flex-start; }
  .brand { padding-top: 9px; }
  .brand small { display: none; }
  nav { max-width: 72%; overflow-x: auto; gap: 18px; scrollbar-width: none; }
  nav::-webkit-scrollbar { display: none; }
  nav a { flex: 0 0 auto; }
  main { padding: 0 20px; }
  .hero { min-height: auto; padding-top: 65px; }
  .hero-split { grid-template-columns: 1fr; }
  .hero h1, .page-head h1 { font-size: clamp(3.8rem, 18vw, 6rem); }
  .portrait-wrap { min-height: 470px; margin-top: 20px; }
  .portrait-sketch { width: min(92%, 410px); height: 470px; min-height: 470px; }
  .section-intro { grid-template-columns: 1fr; gap: 22px; padding: 60px 0; }
  .section-title { align-items: flex-start; flex-direction: column; }
  .feature-note { grid-template-columns: 1fr; gap: 20px; }
  .project, .note { grid-template-columns: 1fr; gap: 10px; padding: 34px 8px; }
  a.project:hover, a.note:hover { padding-left: 14px; padding-right: 14px; }
  .article { padding-top: 55px !important; }
  footer { display: block; padding-left: 20px; padding-right: 20px; }
}

@media (max-width: 520px) {
  .quick-grid { grid-template-columns: 1fr; }
  .quick { min-height: 245px; }
  .signal-strip { grid-template-columns: 1fr; }
  .signal-strip span { border-right: 0; border-bottom: 1px solid var(--line); }
  .signal-strip span:last-child { border-bottom: 0; }
  .portrait-sketch::after { right: -14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
