:root {
  --ink: #14231d;
  --muted: #64736c;
  --paper: #f5f3ec;
  --card: #fffdf8;
  --line: #d8ddd8;
  --accent: #ff5d3a;
  --green: #1f8a65;
  --shadow: 0 24px 80px rgba(20, 35, 29, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 8%, rgba(255, 93, 58, .11), transparent 25rem),
    radial-gradient(circle at 5% 42%, rgba(31, 138, 101, .09), transparent 28rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; }
.page-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.nav { height: 92px; display: flex; align-items: center; justify-content: space-between; }
.brand {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  color: white; background: var(--ink); font-weight: 900; text-decoration: none;
}
.nav nav { display: flex; gap: 30px; }
.nav nav a { color: var(--muted); font-size: 14px; font-weight: 700; text-decoration: none; }
.nav nav a:hover { color: var(--ink); }

.hero { min-height: 630px; display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 8vw; }
.eyebrow { color: var(--green); font: 800 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .16em; }
h1 { max-width: 760px; margin: 18px 0 24px; font-size: clamp(50px, 7vw, 92px); line-height: .98; letter-spacing: -.06em; }
h1 span { color: var(--accent); }
.lead { max-width: 620px; color: var(--muted); font-size: clamp(18px, 2vw, 24px); line-height: 1.6; }
.actions { display: flex; gap: 12px; margin-top: 36px; }
.button {
  display: inline-flex; justify-content: center; align-items: center; height: 50px; padding: 0 24px;
  border: 1px solid var(--ink); border-radius: 999px; font: inherit; font-size: 14px; font-weight: 800;
  cursor: pointer; text-decoration: none; transition: transform .2s, box-shadow .2s;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(20, 35, 29, .12); }
.button.primary { color: white; background: var(--ink); }
.button.secondary { background: transparent; }
.portrait-wrap { position: relative; justify-self: center; }
.portrait { position: relative; width: min(320px, 62vw); aspect-ratio: 1; object-fit: cover; border-radius: 48% 48% 42% 42%; filter: grayscale(15%); box-shadow: var(--shadow); z-index: 1; }
.orbit { position: absolute; inset: -35px; border: 1px solid rgba(31, 138, 101, .35); border-radius: 50%; transform: rotate(-10deg); }
.status { position: absolute; right: -35px; bottom: 25px; z-index: 2; padding: 12px 17px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); font-size: 12px; font-weight: 800; }
.status span { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: #28bc79; box-shadow: 0 0 0 4px rgba(40, 188, 121, .13); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats article { padding: 28px; border-right: 1px solid var(--line); }
.stats article:last-child { border: 0; }
.stats strong, .stats span { display: block; }
.stats strong { overflow: hidden; text-overflow: ellipsis; font-size: 26px; white-space: nowrap; }
.stats span { margin-top: 6px; color: var(--muted); font-size: 12px; }

.section { padding: 110px 0; }
.section-heading { max-width: 680px; margin-bottom: 44px; }
.section h2 { margin: 12px 0; font-size: clamp(38px, 5vw, 62px); letter-spacing: -.045em; }
.section-heading > p:last-child { color: var(--muted); }
.project-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; }
.project-card { min-height: 360px; padding: 38px; border: 1px solid var(--line); border-radius: 28px; background: var(--card); box-shadow: var(--shadow); }
.project-card.featured { display: flex; flex-direction: column; justify-content: flex-end; background: var(--ink); color: white; }
.tag { display: inline-block; margin: 0 6px 8px 0; padding: 7px 10px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; font-size: 11px; }
.project-card h3 { margin: 24px 0 10px; font-size: 36px; }
.project-card p { color: #b9c5bf; line-height: 1.7; }
.project-card a { margin-top: 20px; color: #ff8d73; font-weight: 800; text-decoration: none; }
.mono { color: var(--green) !important; font-family: ui-monospace, monospace; font-size: 12px; letter-spacing: .12em; }
.architecture ol { margin: 36px 0 0; padding: 0; list-style: none; }
.architecture li { display: flex; gap: 18px; padding: 17px 0; border-bottom: 1px solid var(--line); font-weight: 750; }
.architecture li span { color: var(--accent); font-family: ui-monospace, monospace; font-size: 12px; }

.message-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 7vw; border-top: 1px solid var(--line); }
.note-form { grid-column: 2; }
.note-form label { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 800; }
.input-row { display: flex; gap: 10px; }
.input-row input { flex: 1; min-width: 0; height: 50px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font: inherit; outline: none; }
.input-row input:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(31, 138, 101, .1); }
.form-status { min-height: 22px; color: var(--muted); font-size: 13px; }
.notes { grid-column: 2; display: grid; gap: 10px; }
.note { display: flex; justify-content: space-between; gap: 20px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.note p { margin: 0; }
.note time { flex-shrink: 0; color: var(--muted); font-size: 11px; }
.empty-state { padding: 24px; border: 1px dashed var(--line); border-radius: 16px; color: var(--muted); }
footer { display: flex; justify-content: space-between; padding: 30px 0 50px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

@media (max-width: 780px) {
  .page-shell { width: min(100% - 28px, 1180px); }
  .nav nav { gap: 16px; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding: 70px 0 110px; }
  .portrait-wrap { grid-row: 1; }
  .portrait { width: 210px; }
  .status { right: -15px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats article:nth-child(2) { border-right: 0; }
  .stats article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .project-grid, .message-section { grid-template-columns: 1fr; }
  .note-form, .notes { grid-column: 1; }
  .section { padding: 80px 0; }
}

@media (max-width: 480px) {
  .nav nav a:nth-child(2) { display: none; }
  .actions, .input-row { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .stats article { padding: 20px 14px; }
  .stats strong { font-size: 20px; }
  .project-card { min-height: 320px; padding: 26px; }
  .note { flex-direction: column; }
  footer { gap: 12px; flex-direction: column; }
}

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