:root {
  color-scheme: light;
  --page: #ffffff;
  --ink: #37374d;
  --muted: #666677;
  --blue: #22a7f0;
  --blue-mid: #1772a3;
  --blue-deep: #0c3d57;
  --blue-soft: #eaf6fd;
  --project-surface: #f0f7fc;
  --link: #1772a3;
  --sun-yellow: #ffd84d;
  --sun-orange: #ff982e;
  --orange-ink: #c94c00;
  --yellow-panel: var(--sun-yellow);
  --orange-panel: var(--sun-orange);
  --panel-ink: #37374d;
  --panel-muted: #383844;
  --panel-accent: #3b2b14;
  --yellow-tint: #ffeaa3;
  --orange-tint: #ffc77f;
  --orange-layer: #d7670c;
  --symbol-cutout: #ffffff;
  --focus: #1772a3;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #111820;
  --ink: #edf1f5;
  --muted: #b4bfcb;
  --blue-soft: #223d50;
  --project-surface: #1a2b39;
  --link: #7dc9f5;
  --orange-ink: #ffad5c;
  --yellow-panel: #e7bc45;
  --orange-panel: #ed8c41;
  --symbol-cutout: #111820;
  --focus: #ffad5c;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 48px; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
svg, img { display: block; max-width: 100%; }
::selection { background: var(--sun-yellow); color: var(--panel-ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 8px; }
#main:focus { outline: none; }
.page-shell { max-width: 1400px; padding: 0 80px; margin-inline: auto; }
.skip-link { position: fixed; z-index: 10; left: 24px; top: -100px; background: var(--page); padding: 16px; }
.skip-link:focus { top: 24px; }
.site-header { height: 132px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: block; margin-left: -6px; }
.brand img { width: 160px; height: 50px; object-fit: contain; }
nav { display: flex; align-items: center; gap: 24px; }
nav a { display: inline-flex; align-items: center; gap: 24px; min-height: 44px; font-size: 14px; font-weight: 500; }
nav a span { color: var(--orange-ink); font-size: 18px; }
a:hover { color: var(--link); }
.logo-dark, .theme-sun { display: none; }
[data-theme="dark"] .logo-light, [data-theme="dark"] .theme-moon { display: none; }
[data-theme="dark"] .logo-dark, [data-theme="dark"] .theme-sun { display: block; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--muted); font: inherit; cursor: pointer; }
.theme-toggle[hidden] { display: none; }
.theme-toggle:hover { color: var(--orange-ink); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-label { font-size: 11px; }
.theme-status { font-size: 12px; line-height: 1.6; color: var(--orange-ink); }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: center; gap: 40px; padding: 70px 0 116px; }
.eyebrow { margin: 0; font-size: 11px; line-height: 1.6; letter-spacing: .13em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.hero .eyebrow { margin-bottom: 28px; }
h1 { margin: 0; font-size: clamp(58px, 6vw, 84px); line-height: 1.09; letter-spacing: -.065em; font-weight: 500; }
h1 span { color: var(--orange-ink); white-space: nowrap; }
.hero-description { margin: 28px 0 28px; color: var(--muted); font-size: 17px; line-height: 1.8; letter-spacing: -.2px; }
.text-link { display: inline-flex; align-items: center; gap: 28px; min-height: 44px; font-size: 14px; font-weight: 500; }
.hero .text-link { background: var(--sun-yellow); color: var(--panel-ink); padding: 12px 20px; }
.text-link span { display: inline-block; color: var(--orange-ink); font-size: 19px; transition: transform .2s ease; }
.hero .text-link span { color: var(--panel-ink); }
.text-link:hover span { transform: translateY(4px); }
.hero-art { position: relative; width: 360px; padding-top: 12px; }
.brand-sculpture { width: 360px; height: 360px; transform: rotate(-9deg); }
.brand-light { fill: var(--blue); }
.brand-mid { fill: var(--blue-mid); }
.brand-deep { fill: var(--blue-deep); }
.art-word { display: block; padding-top: 24px; font-size: 11px; text-align: center; letter-spacing: .02em; color: var(--muted); }
.projects { padding: 16px 0 0; }
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) 360px; column-gap: 40px; }
.section-heading .eyebrow { grid-column: 1 / -1; margin-bottom: 16px; }
h2 { margin: 0; font-size: 34px; line-height: 1.3; font-weight: 500; letter-spacing: -1.2px; }
.section-heading > p:last-child { margin: 2px 0 0; font-size: 14px; color: var(--muted); line-height: 1.8; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
.project { --project-accent: var(--link); --project-tint: var(--blue-soft); --project-layer: var(--blue); display: flex; flex-direction: column; min-width: 0; background: var(--project-surface); padding: 36px 28px 32px; }
#taskio, #cliptrail { --ink: var(--panel-ink); --muted: var(--panel-muted); --project-accent: var(--panel-accent); --symbol-cutout: var(--yellow-tint); color: var(--ink); }
#taskio { --project-surface: var(--yellow-panel); --project-tint: var(--yellow-tint); }
#cliptrail { --project-surface: var(--orange-panel); --project-tint: var(--orange-tint); --project-layer: var(--orange-layer); }
.project-symbol { height: 64px; margin-bottom: 28px; }
.project-symbol svg { width: 64px; height: 64px; }
.symbol-soft { fill: var(--project-tint); }
.symbol-mid { fill: var(--project-layer); }
.symbol-solid { fill: var(--project-accent); }
.symbol-cutout { fill: var(--symbol-cutout); }
.project-category { margin: 0 0 16px; font-size: 10px; line-height: 1.6; color: var(--project-accent); font-weight: 500; letter-spacing: .04em; }
.project-category span { color: var(--muted); margin-left: 12px; letter-spacing: .01em; }
h3 { margin: 0; font-size: 36px; line-height: 1.2; font-weight: 500; letter-spacing: -1.3px; }
.project-tagline { font-size: 16px; font-weight: 500; line-height: 1.6; margin: 16px 0 10px; letter-spacing: -.2px; }
.project-description { color: var(--muted); font-size: 15px; line-height: 1.9; margin: 0; max-width: 315px; }
.project-link { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; margin-top: auto; padding-top: 24px; color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.6; }
.project-link span { color: var(--project-accent); font-size: 18px; }
.project-link:hover { color: var(--project-accent); text-decoration: underline; text-underline-offset: 4px; }
.studio-note { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px 40px; margin-top: 140px; padding-bottom: 100px; }
.studio-note .eyebrow { grid-column: 1 / -1; }
.studio-note h2 { font-size: 34px; line-height: 1.4; }
.studio-note h2 span { color: var(--orange-ink); }
.studio-note > p:last-child { align-self: end; font-size: 14px; line-height: 1.9; color: var(--muted); margin: 0 0 4px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 0 40px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.site-footer a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.site-footer a span { color: var(--orange-ink); }
.error-page { min-height: 80vh; padding-top: 100px; padding-bottom: 80px; }
.error-page h1 { margin: 24px 0; font-size: clamp(48px, 8vw, 84px); }
.error-page > p:not(.eyebrow) { color: var(--muted); line-height: 1.8; }
.error-page .text-link { margin-top: 20px; }
@media (min-width: 1600px) {
  .site-header { height: 148px; }
  .hero { padding-top: 92px; padding-bottom: 140px; }
}
@media (max-width: 1199px) {
  .page-shell { padding-inline: 56px; }
  .hero { grid-template-columns: minmax(0, 1fr) 270px; gap: 24px; padding-top: 60px; padding-bottom: 96px; }
  h1 { font-size: clamp(50px, 6vw, 72px); }
  .hero-art, .brand-sculpture { width: 270px; height: auto; }
  .section-heading, .studio-note { grid-template-columns: minmax(0, 1fr) 270px; gap: 16px 24px; }
  .project-grid { gap: 20px; }
  .project { padding: 32px 24px; }
  .project-tagline { font-size: 15px; }
  .project-description { font-size: 14px; }
  .project-category span { margin-left: 6px; }
}
@media (max-width: 899px) {
  .page-shell { padding-inline: 36px; }
  .hero { grid-template-columns: minmax(0, 1fr) 205px; gap: 16px; padding-top: 52px; padding-bottom: 84px; }
  h1 { font-size: clamp(44px, 6vw, 56px); }
  .hero-art, .brand-sculpture { width: 205px; }
  .hero-description { font-size: 15px; }
  .art-word { font-size: 9px; }
  .section-heading, .studio-note { grid-template-columns: 1fr; gap: 20px; }
  .section-heading .eyebrow { margin-bottom: 0; }
  .section-heading > p:last-child br { display: none; }
  .project-grid { grid-template-columns: 1fr; gap: 20px; margin-top: 40px; }
  .project { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 28px; padding: 32px; align-items: start; }
  .project-symbol { grid-column: 1; grid-row: 1 / 5; margin: 4px 0 0; }
  .project-category, .project h3, .project-tagline, .project-description, .project-link { grid-column: 2; }
  .project-link { margin-top: 16px; padding-top: 0; }
  h3 { font-size: 30px; }
  .project-category { margin-bottom: 12px; }
  .project-category span { display: inline; margin-left: 8px; }
  .project-tagline { margin-bottom: 8px; }
  .project-description { max-width: none; }
  .studio-note { margin-top: 100px; padding-bottom: 72px; }
}
@media (max-width: 649px) {
  html { scroll-padding-top: 24px; }
  .page-shell { padding-inline: 24px; }
  .site-header { height: 104px; }
  .brand img { width: 144px; height: 45px; }
  nav a { font-size: 12px; gap: 12px; }
  nav { gap: 12px; }
  .theme-label { display: none; }
  .hero { display: block; padding: 52px 0 80px; position: relative; }
  .hero .eyebrow { max-width: 240px; margin-bottom: 28px; font-size: 9px; }
  h1 { font-size: clamp(38px, 8.4vw, 54px); line-height: 1.15; letter-spacing: -.06em; }
  .hero-description { font-size: 15px; line-height: 1.8; margin: 24px 0 20px; max-width: 310px; }
  .hero-description br { display: none; }
  .hero-art { display: none; }
  .section-heading { gap: 16px; }
  h2, .studio-note h2 { font-size: 28px; letter-spacing: -.8px; }
  .section-heading > p:last-child { max-width: 285px; }
  .project-grid { margin-top: 32px; gap: 16px; }
  .project { grid-template-columns: 48px minmax(0, 1fr); column-gap: 16px; padding: 28px 24px; }
  .project-symbol { grid-row: 1 / 3; height: 48px; margin-top: 4px; }
  .project-symbol svg { width: 48px; height: 48px; }
  .project-category, .project h3 { grid-column: 2; }
  .project-tagline, .project-description, .project-link { grid-column: 1 / -1; }
  .project-category { min-height: 0; margin-bottom: 10px; font-size: 9px; }
  .project-category span { display: inline; margin-left: 6px; }
  h3 { font-size: 32px; }
  .project-tagline { font-size: 15px; margin: 24px 0 8px; }
  .project-description { font-size: 14px; line-height: 1.85; max-width: 360px; }
  .studio-note { margin-top: 84px; padding-bottom: 60px; gap: 20px; }
  .studio-note > p:last-child { max-width: 310px; }
  .studio-note > p:last-child br { display: none; }
  .site-footer { flex-wrap: wrap; padding-bottom: 24px; gap: 8px 20px; font-size: 10px; }
  .footer-note { display: none; }
}
@media (max-width: 359px) {
  .page-shell { padding-inline: 20px; }
  .brand img { width: 128px; height: 40px; }
  nav { gap: 8px; }
  nav a { gap: 8px; }
  h1 { font-size: 34px; }
  .project { grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; padding: 24px 20px; }
  .project-symbol svg { width: 40px; height: 40px; }
  .project-category span { display: block; margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .text-link span { transition: none; }
}
@media (forced-colors: active) {
  .project-symbol { forced-color-adjust: none; }
}
