:root {
  --bg: oklch(0.98 0.006 80);
  --bg-soft: oklch(0.96 0.008 80);
  --bg-badge: oklch(0.96 0.02 70);
  --ink: oklch(0.24 0.015 60);
  --ink-2: oklch(0.38 0.012 60);
  --muted: oklch(0.42 0.012 60);
  --muted-2: oklch(0.46 0.012 60);
  --muted-3: oklch(0.50 0.012 60);
  --faint: oklch(0.55 0.012 60);
  --line: oklch(0.90 0.008 70);
  --line-2: oklch(0.88 0.008 70);
  --line-3: oklch(0.84 0.01 70);
  --accent: oklch(0.52 0.14 42);
  --accent-dark: oklch(0.44 0.13 42);
  --accent-deep: oklch(0.40 0.13 42);
  --live: oklch(0.58 0.15 145);
  --panel: oklch(0.24 0.02 60);
  --panel-title: oklch(0.97 0.006 80);
  --panel-kicker: oklch(0.72 0.10 55);
  --panel-body: oklch(0.76 0.012 70);
  --panel-lead: oklch(0.78 0.012 70);
  --field: oklch(0.99 0.004 80);
  --white: #fff;
  --max: 1120px;
  --radius: 12px;
  --font: "IBM Plex Sans", Helvetica, Arial, sans-serif;
  --display: Archivo, Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

img {
  max-width: 100%;
  height: auto;
}

summary {
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

input,
textarea,
select,
button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 8px 14px;
  border-radius: 6px;
}

.skip:focus {
  top: 12px;
  color: var(--bg);
  text-decoration: none;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.section-title {
  font-size: 38px;
  line-height: 1.12;
  letter-spacing: -0.022em;
  font-weight: 600;
  margin-bottom: 16px;
}

.lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 60ch;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(0.98 0.006 80 / 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
  text-decoration: none;
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  white-space: nowrap;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--accent);
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn:hover {
  text-decoration: none;
}

.btn-pill {
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 14.5px;
  font-weight: 500;
  background: var(--ink);
  color: var(--bg);
}

.nav-end .btn-pill,
.nav-end .btn-pill:hover {
  text-decoration: none;
}

.btn-pill:hover {
  background: var(--accent);
  color: #fff;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 15px 30px;
  font-size: 16px;
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-ghost {
  border: 1px solid var(--line-3);
  color: var(--ink);
  padding: 15px 30px;
  font-size: 16px;
  background: var(--white);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero {
  padding: 88px 0 72px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid oklch(0.86 0.03 60);
  background: var(--bg-badge);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 26px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--live);
  display: inline-block;
}

.badge-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero h1 {
  font-size: 57px;
  line-height: 1.04;
  letter-spacing: -0.028em;
  font-weight: 700;
  margin-bottom: 24px;
}

.hero-copy {
  font-size: 19.5px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 52ch;
  margin-bottom: 20px;
}

.hero-copy:last-of-type {
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.portrait {
  margin: 0;
}

.portrait-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(160deg, oklch(0.32 0.03 55) 0%, oklch(0.22 0.02 50) 55%, oklch(0.18 0.02 42) 100%);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  display: block;
  opacity: 0;
}

.portrait-frame img.is-loaded {
  opacity: 1;
}

.portrait-frame img.is-missing {
  display: none;
}

.portrait-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  color: var(--bg);
  pointer-events: none;
}

.portrait-frame:has(img.is-loaded) .portrait-fallback {
  display: none;
}

.portrait-fallback span {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.portrait-fallback small {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-top: 8px;
}

.portrait figcaption {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--faint);
  margin-top: 10px;
  letter-spacing: 0.02em;
}

.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 40px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat-value {
  font-family: var(--display);
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--muted-3);
}

.help {
  padding: 88px 0 8px;
}

.help .section-title {
  max-width: 24ch;
}

.help .lead {
  margin-bottom: 44px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px 32px;
}

.card h3 {
  font-size: 20px;
  letter-spacing: -0.012em;
  font-weight: 600;
  margin-bottom: 12px;
}

.card p {
  font-size: 15.5px;
  line-height: 1.6;
  color: oklch(0.44 0.012 60);
  margin-bottom: 18px;
}

.card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.card li {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--muted-3);
  padding-left: 16px;
  position: relative;
}

.card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--accent);
}

.ai-panel {
  margin: 88px 0 0;
  background: var(--panel);
  border-radius: 16px;
  padding: 64px 56px;
  color: oklch(0.96 0.008 80);
}

.ai-panel .kicker {
  color: var(--panel-kicker);
}

.ai-panel h2 {
  max-width: 26ch;
  margin-bottom: 18px;
  color: var(--panel-title);
}

.ai-panel .lead {
  color: var(--panel-lead);
  max-width: 62ch;
  margin-bottom: 48px;
}

.ai-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.ai-grid h3 {
  font-size: 18.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  color: var(--panel-title);
}

.ai-grid p {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--panel-body);
}

.work {
  padding: 88px 0 0;
}

.work .section-title {
  max-width: 26ch;
}

.work .lead {
  margin-bottom: 40px;
}

.work-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.work-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.work-item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 28px;
}

.work-item h3 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.014em;
  margin-bottom: 8px;
}

.work-item .meta {
  font-size: 15px;
  color: var(--muted-3);
  line-height: 1.5;
}

.chev {
  flex-shrink: 0;
  margin-top: 6px;
  width: 14px;
  height: 14px;
  border-right: 2px solid var(--faint);
  border-bottom: 2px solid var(--faint);
  transform: rotate(-45deg);
  transition: transform 180ms ease;
}

.work-item[open] .chev {
  transform: rotate(45deg);
}

.work-body {
  padding: 0 28px 30px;
  max-width: 74ch;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.work-body p {
  font-size: 16px;
  line-height: 1.68;
  color: var(--ink-2);
}

.stack {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--faint);
  border-top: 1px solid oklch(0.92 0.008 70);
  padding-top: 16px;
}

.more-link {
  margin-top: 24px;
}

.more-link .btn-ghost {
  padding: 13px 24px;
  font-size: 15.5px;
}

.background {
  padding: 88px 0 0;
}

.background-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.background .prose p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 16px;
}

.background .prose p:last-child {
  margin-bottom: 0;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.timeline li {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.timeline li:last-child {
  border-bottom: 1px solid var(--line);
}

.timeline time {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--faint);
  padding-top: 3px;
}

.timeline h3 {
  font-size: 17.5px;
  font-weight: 600;
  margin-bottom: 4px;
}

.timeline p {
  font-size: 15px;
  color: var(--muted-3);
  line-height: 1.5;
}

.speaking {
  padding: 88px 0 0;
}

.speaking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.speaking figure {
  margin: 0;
}

.speaking img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  background: oklch(0.92 0.008 70);
}

.speaking p {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--faint);
  margin-top: 10px;
  letter-spacing: 0.02em;
}

.contact {
  margin: 88px 0 0;
  padding: 64px 0 0;
  border-top: 1px solid var(--line);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}

.contact .section-title {
  margin-bottom: 18px;
}

.contact .lead {
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 32px;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 16px;
}

.channel {
  display: flex;
  gap: 12px;
}

.channel dt {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--faint);
  width: 64px;
  padding-top: 3px;
  letter-spacing: 0.04em;
}

.channel dd {
  margin: 0;
  color: var(--muted);
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field span {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
}

.field input,
.field textarea,
.field select {
  border: 1px solid var(--line-2);
  border-radius: 7px;
  padding: 11px 13px;
  font-size: 15.5px;
  background: var(--field);
}

.field textarea {
  resize: vertical;
  font-family: inherit;
}

.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--faint);
}

.form-note.is-success {
  color: oklch(0.42 0.12 145);
}

.form-note.is-error {
  color: oklch(0.45 0.14 30);
}

.faq {
  padding: 80px 0 0;
}

.faq h2 {
  font-size: 26px;
  letter-spacing: -0.018em;
  font-weight: 600;
  margin-bottom: 28px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.faq h3 {
  font-size: 16.5px;
  font-weight: 600;
  margin-bottom: 10px;
}

.faq p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--muted-2);
}

.site-footer {
  margin-top: 88px;
  border-top: 1px solid var(--line);
  padding: 32px 28px;
  background: var(--bg-soft);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
}

.site-footer p {
  font-size: 14px;
  color: var(--muted-3);
}

.footer-links {
  display: flex;
  gap: 22px;
}

.footer-links a {
  font-size: 14px;
}

.page-hero {
  padding: 72px 0 48px;
}

.page-hero h1 {
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: -0.024em;
  font-weight: 700;
  max-width: 22ch;
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 64ch;
}

.project-list {
  padding-bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px 32px;
}

.project h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.014em;
  margin-bottom: 6px;
}

.project .meta {
  font-size: 15px;
  color: var(--muted-3);
  line-height: 1.5;
  margin-bottom: 16px;
}

.project .body {
  max-width: 74ch;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.project .body p {
  font-size: 16px;
  line-height: 1.68;
  color: var(--ink-2);
}

.page-cta {
  padding-bottom: 100px;
  text-align: center;
}

.page-cta p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 20px;
}

.not-found {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 0;
}

.not-found h1 {
  font-size: 42px;
  margin-bottom: 16px;
}

@media (max-width: 1040px) {
  .nav-links {
    gap: 20px;
  }
}

@media (max-width: 1000px) {
  .nav-links {
    display: none;
  }
}

@media (max-width: 860px) {
  .hero,
  .stats,
  .cards,
  .ai-grid,
  .background-grid,
  .contact-grid,
  .faq-grid,
  .form-row,
  .speaking-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 40px;
  }

  .ai-panel {
    padding: 40px 24px;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
