:root {
  --ink: #101012;
  --paper: #f5f5f7;
  --white: #ffffff;
  --muted: #68686f;
  --line: rgba(16, 16, 18, 0.12);
  --dark: #0b0b0c;
  --dark-surface: #18181b;
  --dark-muted: #a3a3aa;
  --blue: #1677ff;
  --blue-light: #75aaff;
  --violet: #6d5dfc;
  --max: 1240px;
  --pad: clamp(22px, 4.5vw, 72px);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
::selection { background: #b9d5ff; color: var(--ink); }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--white);
  border-radius: 8px;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 50%;
  width: min(100%, var(--max));
  height: 76px;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--white);
  transform: translateX(-50%);
}
.wordmark { font-size: 22px; font-weight: 700; letter-spacing: -0.06em; }
.wordmark span { color: var(--blue-light); }
.site-header nav { display: flex; align-items: center; gap: 30px; font-size: 14px; }
.site-header nav > a { color: #c9c9ce; transition: color 160ms ease; }
.site-header nav > a:hover { color: var(--white); }
.site-header .nav-github {
  padding: 9px 13px;
  color: var(--ink);
  background: var(--white);
  border-radius: 8px;
}
.menu-button { display: none; }

.hero {
  min-height: 790px;
  padding: 166px max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad))) 104px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.72fr);
  gap: clamp(72px, 9vw, 140px);
  align-items: end;
  color: var(--white);
  background: var(--dark);
}
.hero-copy { min-width: 0; max-width: 840px; }
.eyebrow {
  margin: 0 0 24px;
  color: var(--muted);
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}
.hero .eyebrow { color: #888890; }
.hero h1 {
  margin: 0;
  font-size: clamp(54px, 7.4vw, 104px);
  font-weight: 650;
  letter-spacing: -0.062em;
  line-height: 0.94;
}
.hero h1 span { color: #8d8d96; }
.hero-intro {
  max-width: 690px;
  margin: 42px 0 0;
  color: #b6b6bd;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.5;
  letter-spacing: -0.015em;
}
.hero-actions, .connect-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.button {
  min-height: 46px;
  padding: 11px 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 550;
  transition: transform 160ms ease, background-color 160ms ease;
}
.button:hover { transform: translateY(-2px); }
.button-light { color: var(--ink); background: var(--white); }
.button-light:hover { background: #e9e9ec; }
.button-quiet { color: var(--white); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22); }
.button-quiet:hover { background: rgba(255, 255, 255, 0.08); }
.hero-status {
  padding: 26px;
  background: var(--dark-surface);
  border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.09);
}
.status-label { margin: 0 0 18px; color: #92929b; font-family: "SF Mono", ui-monospace, monospace; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.hero-status dl, .hero-status dd { margin: 0; }
.hero-status dl > div { padding: 15px 0; display: grid; grid-template-columns: 90px 1fr; gap: 18px; border-top: 1px solid rgba(255, 255, 255, 0.09); }
.hero-status dt { color: #92929b; font-size: 13px; }
.hero-status dd { color: #e9e9eb; font-size: 14px; }

.work-section, .about-section, .principles-section, .connect-section, footer {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}
.work-section { padding-top: 112px; padding-bottom: 128px; }
.section-heading { max-width: 780px; margin-bottom: 72px; }
.section-heading h2, .connect-section h2 {
  margin: 0;
  font-size: clamp(38px, 5vw, 66px);
  font-weight: 620;
  letter-spacing: -0.052em;
  line-height: 1.04;
  text-wrap: balance;
}

.project {
  position: relative;
  padding: clamp(30px, 5vw, 68px);
  display: grid;
  gap: 42px;
  overflow: hidden;
  border-radius: 24px;
}
.project + .project { margin-top: 52px; }
.project-itocanvas { color: var(--white); background: #111114; }
.project-dualtyper { color: #f7f7f9; background: #1e2430; }
.project-copy { max-width: 720px; }
.project-index { float: right; color: rgba(255, 255, 255, 0.23); font-family: "SF Mono", ui-monospace, monospace; font-size: 13px; }
.project-kicker { margin: 0 0 16px; color: var(--blue-light); font-family: "SF Mono", ui-monospace, monospace; font-size: 11px; font-weight: 600; letter-spacing: 0.11em; text-transform: uppercase; }
.project-itocanvas .project-kicker { color: #938aff; }
.project h3 { margin: 0; font-size: clamp(46px, 6vw, 78px); font-weight: 620; letter-spacing: -0.06em; line-height: 0.95; }
.project-lead { max-width: 650px; margin: 28px 0 14px; color: var(--white); font-size: clamp(20px, 2.5vw, 28px); line-height: 1.3; letter-spacing: -0.025em; }
.project-copy > p:not(.project-kicker):not(.project-lead):not(.release-note) { max-width: 680px; color: #a8a8b0; }
.tags { padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 9px; list-style: none; }
.tags li { padding: 6px 10px; color: #c7c7cc; background: rgba(255, 255, 255, 0.07); border-radius: 999px; font-size: 12px; }
.project-links { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 22px; }
.project-links a { color: var(--white); font-size: 14px; font-weight: 550; }
.project-links a:hover { text-decoration: underline; text-underline-offset: 5px; }
.release-note { max-width: 680px; margin: 24px 0 0; padding-top: 18px; color: #9299a7; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 13px; }
.product-frame { overflow: hidden; background: #25252a; border-radius: 14px; box-shadow: 0 22px 68px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(255, 255, 255, 0.11); }
.product-frame img { width: 100%; height: auto; }
.product-frame-detail { width: 54%; margin: -18% 3% 0 auto; position: relative; }
.project-dualtyper { grid-template-columns: 0.72fr 1.28fr; align-items: center; }
.project-dualtyper .product-frame { grid-column: 2; grid-row: 1; }
.project-dualtyper .project-copy { grid-column: 1; grid-row: 1; }

.lab-section { width: min(100%, var(--max)); margin: 0 auto; padding: 112px var(--pad) 128px; border-top: 1px solid var(--line); }
.lab-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lab-item { min-height: 300px; padding: 30px 28px 34px; background: var(--paper); display: flex; flex-direction: column; }
.lab-item .project-index { float: none; align-self: flex-end; margin: 0 0 34px; color: #9999a0; }
.lab-item h3 { margin: 0 0 16px; font-size: clamp(29px, 3.5vw, 42px); font-weight: 620; letter-spacing: -0.055em; }
.lab-item h3 a { color: inherit; text-decoration: none; }
.lab-item h3 a:hover { text-decoration: underline; text-underline-offset: 5px; }
.lab-item p:not(.project-index) { margin: 0; color: #606068; line-height: 1.55; }
.text-link { margin-top: auto; padding-top: 28px; color: var(--ink); font-size: 13px; font-weight: 600; }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }

.about-section { padding-top: 122px; padding-bottom: 128px; border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(52px, 9vw, 140px); }
.about-statement { margin: 0; font-size: clamp(28px, 4vw, 44px); line-height: 1.14; letter-spacing: -0.04em; }
.about-copy { color: #4f4f56; font-size: 18px; }
.about-copy p:first-child { margin-top: 0; }

.principles-section { padding-top: 122px; padding-bottom: 140px; border-top: 1px solid var(--line); }
.principles-list { padding: 0; margin: 0; list-style: none; }
.principles-list li { padding: 28px 0; display: grid; grid-template-columns: 82px 1fr; gap: 28px; border-top: 1px solid var(--line); }
.principles-list li:last-child { border-bottom: 1px solid var(--line); }
.principles-list > li > span { color: #9999a0; font-family: "SF Mono", ui-monospace, monospace; font-size: 12px; }
.principles-list h3 { margin: -5px 0 5px; font-size: clamp(25px, 3vw, 34px); letter-spacing: -0.035em; }
.principles-list p { max-width: 650px; margin: 0; color: #606068; }

.connect-section {
  width: 100%;
  max-width: none;
  padding-top: 118px;
  padding-bottom: 118px;
  color: var(--white);
  background: var(--dark);
}
.connect-section > * { width: min(100%, calc(var(--max) - 2 * var(--pad))); margin-left: auto; margin-right: auto; }
.connect-section .eyebrow { color: #81818a; }
.connect-grid { display: grid; grid-template-columns: 1.1fr 0.75fr; gap: clamp(58px, 10vw, 150px); align-items: end; }
.connect-grid > div > p { color: #a8a8af; font-size: 19px; }

footer { padding-top: 34px; padding-bottom: 34px; display: grid; grid-template-columns: 1fr auto auto; gap: 32px; align-items: center; color: #66666d; font-size: 12px; }
footer .wordmark { color: var(--ink); font-size: 18px; }
footer p { margin: 0; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 920px) {
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 60px; align-items: start; }
  .hero-status { max-width: 560px; }
  .project-dualtyper { grid-template-columns: 1fr; }
  .project-dualtyper .project-copy, .project-dualtyper .product-frame { grid-column: auto; grid-row: auto; }
  .about-grid, .connect-grid { grid-template-columns: 1fr; }
  .lab-grid { grid-template-columns: 1fr; }
  .about-statement { max-width: 690px; }
}

@media (max-width: 720px) {
  .site-header { left: 0; right: 0; width: auto; max-width: none; height: 66px; transform: none; }
  .menu-button { width: 44px; height: 44px; margin-left: auto; padding: 12px; display: grid; flex: 0 0 44px; align-content: center; gap: 6px; color: var(--white); background: transparent; border: 0; }
  .menu-button span:not(.sr-only) { width: 20px; height: 1px; display: block; background: currentColor; transition: transform 160ms ease; }
  .menu-button[aria-expanded="true"] span:nth-last-child(2) { transform: translateY(3.5px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .site-header nav { position: absolute; top: 62px; left: var(--pad); right: var(--pad); padding: 16px; display: none; flex-direction: column; align-items: stretch; gap: 0; background: #1b1b1e; border-radius: 12px; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34); }
  .site-header nav.is-open { display: flex; }
  .site-header nav > a { min-height: 46px; padding: 12px; }
  .site-header .nav-github { margin-top: 8px; text-align: center; }
  .hero { padding-top: 130px; padding-bottom: 74px; }
  .hero h1 { max-width: 100%; font-size: clamp(42px, 13vw, 54px); letter-spacing: -0.055em; }
  .hero-intro { max-width: 100%; overflow-wrap: anywhere; font-size: 17px; }
  .work-section { padding-top: 82px; padding-bottom: 90px; }
  .section-heading { margin-bottom: 48px; }
  .project { padding: 28px 20px 22px; border-radius: 18px; }
  .product-frame-detail { width: 78%; margin-top: -20%; }
  .about-section, .principles-section { padding-top: 82px; padding-bottom: 90px; }
  .principles-list li { grid-template-columns: 46px 1fr; gap: 14px; }
  .connect-section { padding-top: 82px; padding-bottom: 82px; }
  footer { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 46px; }
  .hero-status dl > div { grid-template-columns: 82px 1fr; gap: 12px; }
}

@media (max-width: 360px) {
  .hero-actions .button { width: 100%; }
}

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