:root {
  color-scheme: dark;
  --bg: #090c12;
  --surface: rgba(18, 24, 34, 0.72);
  --surface-strong: #151c27;
  --border: rgba(164, 181, 205, 0.16);
  --text: #f4f7fb;
  --muted: #9aa8ba;
  --accent: #8aa4ff;
  --accent-strong: #6f8eff;
  --green: #66d58a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.ambient { border-radius: 50%; filter: blur(110px); opacity: .18; pointer-events: none; position: fixed; z-index: -1; }
.ambient-one { background: #4f72ff; height: 420px; right: -120px; top: -180px; width: 420px; }
.ambient-two { background: #7048d8; bottom: 5%; height: 360px; left: -180px; width: 360px; }
.site-header, main, footer { margin: 0 auto; max-width: 1160px; width: calc(100% - 48px); }
.site-header { align-items: center; display: flex; justify-content: space-between; padding: 24px 0; }
.identity { align-items: center; display: inline-flex; font-size: 14px; font-weight: 700; gap: 11px; text-decoration: none; }
.mark { background: linear-gradient(135deg, var(--accent-strong), #8d63dc); border-radius: 9px; display: grid; font-size: 13px; font-weight: 800; height: 32px; place-items: center; width: 32px; }
.mark.large { border-radius: 12px; font-size: 20px; height: 48px; margin-bottom: 30px; width: 48px; }
.header-links { align-items: center; display: flex; gap: 18px; }
.accessibility-button { background: transparent; border: 0; color: var(--muted); cursor: pointer; font: inherit; font-size: 12px; padding: 8px 0; }
.accessibility-button:hover { color: var(--text); }
.accessibility-panel { background: #111722; border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 20px 70px rgba(0, 0, 0, .45); display: grid; gap: 14px; margin: 4px auto 0; max-width: 600px; padding: 20px; position: relative; width: calc(100% - 32px); z-index: 10; }
.accessibility-panel[hidden] { display: none; }
.accessibility-title { font-size: 16px; font-weight: 800; margin: 0; }
.accessibility-copy { color: var(--muted); font-size: 12px; margin: 4px 0 0; }
.accessibility-panel label { align-items: start; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; display: flex; gap: 12px; padding: 14px; }
.accessibility-panel input { accent-color: var(--accent); height: 20px; margin: 1px 0 0; width: 20px; }
.accessibility-panel label span { display: grid; gap: 4px; }
.accessibility-panel label strong { font-size: 14px; }
.accessibility-panel label small { color: var(--muted); font-size: 12px; line-height: 1.5; }
.text-link { color: var(--muted); font-size: 12px; text-decoration: none; }
.text-link:hover { color: var(--text); }
.admin-link { border: 1px solid var(--border); border-radius: 999px; color: #d9e0e9; font-size: 12px; padding: 9px 14px; text-decoration: none; transition: background .2s, border-color .2s; }
.admin-link:hover { background: var(--surface-strong); border-color: rgba(164, 181, 205, .35); }
.hero { min-height: 72vh; padding: clamp(100px, 16vh, 180px) 0 96px; }
.eyebrow { color: var(--accent); font-size: 11px; font-weight: 750; letter-spacing: .15em; margin: 0 0 18px; text-transform: uppercase; }
h1 { font-size: clamp(64px, 11vw, 132px); letter-spacing: -.075em; line-height: .84; margin: 0; }
.hero-copy { color: #bac4d1; font-size: clamp(19px, 2.2vw, 28px); letter-spacing: -.025em; line-height: 1.4; margin: 38px 0 0; max-width: 860px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 44px; }
.primary-action, .secondary-action { border-radius: 10px; display: inline-flex; font-size: 13px; font-weight: 700; justify-content: center; padding: 13px 18px; text-decoration: none; transition: transform .2s, background .2s; }
.primary-action { background: var(--text); color: #0a0d12; }
.secondary-action { border: 1px solid var(--border); color: #d2dae5; }
.primary-action:hover, .secondary-action:hover { transform: translateY(-2px); }
.secondary-action:hover { background: var(--surface-strong); }
.profile-strip { border-bottom: 1px solid var(--border); border-top: 1px solid var(--border); display: grid; grid-template-columns: repeat(3, 1fr); }
.profile-strip > div { min-height: 150px; padding: 30px 28px; }
.profile-strip > div + div { border-left: 1px solid var(--border); }
.profile-label { color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .14em; margin: 0 0 20px; text-transform: uppercase; }
.profile-value { font-size: 20px; font-weight: 700; letter-spacing: -.025em; line-height: 1.35; margin: 0; }
.profile-value span { color: var(--muted); font-size: 13px; font-weight: 500; }
.profile-comment { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 17px 0 0; max-width: 340px; }
.work-section { border-top: 1px solid var(--border); padding: 86px 0 110px; }
.section-heading { align-items: end; display: grid; gap: 12px; grid-template-columns: 1fr 2fr; margin-bottom: 42px; }
h2 { font-size: clamp(32px, 5vw, 58px); letter-spacing: -.055em; line-height: 1.02; margin: 0; max-width: 760px; }
.work-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.work-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; color: inherit; display: flex; flex-direction: column; justify-content: space-between; min-height: 300px; padding: 24px; text-decoration: none; }
.work-card.featured { background: linear-gradient(155deg, rgba(70, 96, 175, .28), var(--surface)); }
.work-card[href] { transition: border-color .2s, transform .2s; }
.work-card[href]:hover { border-color: rgba(138, 164, 255, .55); transform: translateY(-3px); }
.card-index { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; margin: 0; }
.work-card h3 { font-size: 26px; letter-spacing: -.035em; margin: 0 0 12px; }
.work-card p:not(.card-index) { color: var(--muted); font-size: 14px; line-height: 1.65; }
.status { color: #bec9d7; font-size: 11px; }
.status span { background: var(--green); border-radius: 50%; display: inline-block; height: 7px; margin-right: 7px; width: 7px; }
.principles { border-top: 1px solid var(--border); padding: 110px 0 130px; }
.principles > p:last-child { color: var(--muted); font-size: 17px; line-height: 1.7; margin: 28px 0 0; max-width: 660px; }
footer { border-top: 1px solid var(--border); color: var(--muted); display: flex; font-size: 11px; justify-content: space-between; padding: 26px 0 42px; }
footer a { text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.low-vision-mode { font-size: 125%; }
.low-vision-mode body { --bg: #000; --surface: #111722; --surface-strong: #1d2735; --border: rgba(255,255,255,.46); --muted: #d2dbe7; --accent: #b8c7ff; --text: #fff; line-height: 1.65; zoom: 1.2; }
.low-vision-mode :focus-visible { outline-width: 5px; outline-offset: 5px; }

.dyslexia-mode body, .dyslexia-mode button, .dyslexia-mode input { font-family: Verdana, Arial, sans-serif; }
.dyslexia-mode :is(p, li, small, a, button, label) { letter-spacing: .035em; line-height: 1.75; word-spacing: .12em; }
.dyslexia-mode :is(h1, h2, h3) { letter-spacing: 0; line-height: 1.2; }
.centered-page { align-items: center; display: flex; justify-content: center; padding: 24px; }
.transition-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 30px 100px rgba(0, 0, 0, .36); max-width: 500px; padding: 42px; width: 100%; }
.transition-card h1 { font-size: clamp(42px, 8vw, 64px); line-height: .95; }
.transition-card > p:not(.eyebrow) { color: var(--muted); font-size: 16px; line-height: 1.6; margin: 24px 0 30px; }
.transition-card .primary-action { width: 100%; }
.back-link { color: var(--muted); display: block; font-size: 12px; margin-top: 20px; text-align: center; }

@media (max-width: 800px) {
  .site-header, main, footer { width: calc(100% - 32px); }
  .hero { min-height: 68vh; padding-top: 110px; }
  .section-heading { display: block; }
  .section-heading .eyebrow { margin-bottom: 18px; }
  .profile-strip { grid-template-columns: 1fr; }
  .profile-strip > div { min-height: auto; padding: 24px 0; }
  .profile-strip > div + div { border-left: 0; border-top: 1px solid var(--border); }
  .work-grid { grid-template-columns: 1fr; }
  .work-card { min-height: 260px; }
}

@media (max-width: 520px) {
  h1 { font-size: clamp(58px, 20vw, 86px); }
  .hero-copy { font-size: 19px; }
  .header-links { gap: 12px; }
  .text-link { display: none; }
  .accessibility-button { font-size: 11px; }
  .low-vision-mode body { zoom: 1.1; }
  footer { display: block; }
  .transition-card { padding: 30px 24px; }
}

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