﻿:root { color-scheme: light; --paper: #fffdfa; --ink: #122534; --muted: #647187; --orange: #d94508; --bar: #f7f2ea; --bar-line: #e6ddcf; --header-h: 64px; font-family: 'Segoe UI', Arial, sans-serif; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--orange); outline-offset: 5px; }
::selection { background: #f8d9b1; color: var(--ink); }
[hidden] { display: none !important; }
.ambient-canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .12; }
.page-shell { position: relative; width: min(1480px, calc(100% - 112px)); height: 100svh; display: grid; grid-template-rows: var(--header-h) minmax(0, 1fr) clamp(34px, 7svh, 66px); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
/* Full-width bar behind the header, drawn on the body so it spans past the page shell. */
body:has(.site-header)::before { content: ''; position: absolute; inset: 0 0 auto; height: var(--header-h); border-bottom: 1px solid var(--bar-line); background: var(--bar); }
.site-header nav { display: flex; gap: 38px; align-items: center; }
.site-header nav a, .site-header nav button { padding: 8px 0; border: 0; background: none; font-size: 11px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; cursor: pointer; }
.site-header nav a:hover, .site-header nav button:hover { color: var(--orange); }
.header-note { display: flex; align-items: center; gap: 17px; margin: 0; color: #5d6a80; font-size: 9px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; }
.header-note span { position: relative; flex: none; width: 10px; height: 10px; margin-right: 5px; border-radius: 50%; background: var(--orange); }
.header-note span::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--orange); animation: kernel-pulse 2.5s ease-out infinite; }
@keyframes kernel-pulse { 0% { transform: scale(1); opacity: .45; } 70%, 100% { transform: scale(2.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .header-note span::after { display: none; } }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; min-width: 0; min-height: 0; }
.hero-copy { position: relative; z-index: 3; padding-block: 30px; }
.wordmark { display: block; width: min(100%, 620px); height: auto; }


h1 { margin: 55px 0 18px; font-size: clamp(37px, 3.75vw, 62px); font-weight: 400; line-height: 1.08; letter-spacing: -2.5px; }
.intro { max-width: 530px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.hero-actions { display: flex; gap: 16px; margin-top: 30px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 24px; min-height: 52px; padding: 14px 26px; border: 1px solid #8d9ab1; border-radius: 9px; background: transparent; font-size: 10px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; cursor: pointer; }
.button-primary { border-color: var(--orange); color: white; background: var(--orange); }
.button-primary:hover { background: #b93b08; }
.button-primary span { font-size: 23px; line-height: .5; }
.button-secondary:hover { background: #f3f1ec; }
.hero-art { --art-max: 660px; position: relative; top: clamp(0px, (100% - var(--art-max)) / 2 + 16px, 72px); height: 100%; max-height: var(--art-max); min-width: 0; align-self: center; }
.circuit-lines { position: absolute; width: 112%; height: 100%; left: -6%; top: -2%; }
.code-window { position: absolute; top: 14%; left: 17%; width: 64%; max-width: 355px; border: 1px solid #606a70; border-radius: 16px; background: linear-gradient(135deg, #39444d, #20292f); color: #d2dde3; box-shadow: 0 18px 35px #28343b14; transform: rotate(-1deg); }
.window-bar { display: flex; gap: 8px; height: 36px; padding: 13px 16px; border-bottom: 1px solid #ffffff0a; }
.window-bar i { width: 9px; height: 9px; border-radius: 50%; background: #ee8b38; }
.window-bar i:nth-child(2) { background: #efc85b; }.window-bar i:nth-child(3) { background: #62aa6f; }
.code-window pre { margin: 17px 21px 20px; font: 12px/1.65 Consolas, 'Courier New', monospace; }
.code-orange { color: #ed9b59; }.code-blue { color: #9dc8dd; }.code-yellow { color: #d7cf89; }
.principles-card { position: absolute; z-index: 1; top: 5%; right: 0; padding: 19px 22px; border: 1px solid #fff; border-radius: 15px; background: #fffffff0; box-shadow: 0 12px 40px #3142550c; }
.principles-card > div { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }.principles-card > div:last-child { margin-bottom: 0; }
.principle-icon { width: 22px; font-size: 28px; text-align: center; }
.principles-card p { margin: 0; color: #718099; font-size: 10px; line-height: 1.5; }
.principles-card strong { display: block; color: var(--ink); font-size: 10px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; }
.studio-scene { position: absolute; z-index: 2; left: -22%; bottom: -4%; width: 122%; height: auto; }
.site-footer { display: flex; align-items: center; gap: 17px; color: #6d7d98; font-size: 8px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; }
.studio-popover { width: min(460px, calc(100% - 40px)); padding: 42px 36px 32px; border: 1px solid #e6dfd5; border-radius: 18px; background: var(--paper); color: var(--ink); box-shadow: 0 24px 100px #13253425; }
.studio-popover::backdrop { background: #14233325; backdrop-filter: blur(5px); }
.close-popover { position: absolute; top: 10px; right: 14px; border: none; background: none; color: var(--muted); font-size: 28px; cursor: pointer; }
.popover-label { color: var(--orange); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; }
.studio-popover h2 { font-size: 27px; font-weight: 500; letter-spacing: -1px; }.studio-popover p:not(.popover-label) { color: #67748a; font-size: 15px; line-height: 1.7; }
@media (max-width: 1050px) and (min-width: 651px) {
  .page-shell { width: calc(100% - 64px); grid-template-rows: var(--header-h) minmax(0, 1fr) 50px; }
  .site-header nav { gap: 24px; }.header-note { font-size: 8px; gap: 10px; letter-spacing: 1.5px; }
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  h1 { font-size: 38px; margin-top: 37px; letter-spacing: -1.7px; }.intro { font-size: 14px; }
  .button { padding: 12px 17px; font-size: 9px; gap: 15px; }.hero-art { height: min(540px, 66svh); }
  .code-window { top: 16%; left: 10%; width: 82%; }.code-window pre { font-size: 10px; margin: 12px; }
  .principles-card { top: 7%; padding: 12px; right: 0; }.principles-card > div { gap: 10px; margin-bottom: 12px; }.principles-card p { font-size: 9px; }
  .studio-scene { width: 125%; left: -25%; bottom: -2%; }
}
@media (max-width: 650px) {
  :root { --header-h: 52px; }
  .page-shell { width: calc(100% - 40px); grid-template-rows: var(--header-h) minmax(0, 1fr) 36px; }
  .site-header { gap: 12px; }.site-header nav { gap: 18px; }.site-header nav a, .site-header nav button { font-size: 9px; letter-spacing: 2px; }
  .header-note { gap: 8px; font-size: 7.5px; letter-spacing: 1.4px; white-space: nowrap; }.header-note span { width: 8px; height: 8px; margin-right: 2px; }
  .hero { grid-template-columns: 1fr; grid-template-rows: auto auto; align-content: center; gap: 0; }.hero-copy { padding-block: 12px 0; }
  .wordmark { width: 94%; max-width: 390px; }
  h1 { margin: 24px 0 10px; font-size: clamp(28px, 8.3vw, 40px); letter-spacing: -1.2px; }.intro { max-width: 370px; font-size: 12px; line-height: 1.65; }
  .hero-actions { gap: 10px; margin-top: 18px; }.button { min-height: 40px; padding: 10px 16px; font-size: 8px; letter-spacing: 1.5px; gap: 18px; border-radius: 7px; }
  .hero-art { top: 0; width: 100%; height: min(33svh, 260px); margin-top: 4px; }.code-window, .principles-card { display: none; }
  .circuit-lines { width: 100%; left: 0; opacity: .5; }.studio-scene { width: 110%; max-width: 480px; height: 100%; object-fit: contain; left: -5%; bottom: 0; }
  .site-footer { gap: 10px; font-size: 6px; letter-spacing: 1.4px; }
}
@media (max-width: 650px) and (max-height: 620px) {
  .hero-copy { padding-top: 4px; }.wordmark { width: 90%; }h1 { margin-top: 18px; font-size: 27px; }.intro { font-size: 11px; }
  .hero-actions { margin-top: 12px; }.button { min-height: 34px; padding-block: 8px; }.hero-art { height: 29svh; }
}
@media (max-height: 550px) and (min-width: 651px) {
  :root { --header-h: 54px; }
  .page-shell { grid-template-rows: var(--header-h) minmax(0, 1fr) 34px; }.hero-copy { padding-block: 8px; }.wordmark { width: 84%; }
  h1 { margin-top: 16px; margin-bottom: 12px; font-size: 29px; }.intro { font-size: 11px; }.hero-actions { margin-top: 14px; }.button { min-height: 36px; padding: 8px 15px; font-size: 8px; }
  .hero-art { height: 76svh; }.code-window { top: 7%; }.principles-card { display: none; }.studio-scene { bottom: 0; }
}
/* Keep decorative lines within the viewport. */
/* Clip at the viewport, not the page shell, so focus outlines at the shell edge stay visible. */
body { overflow-x: clip; }

/* Fit the copy to the available viewport height, not just its width. */
.hero-copy { min-width: 0; }
@media (min-width: 651px) and (max-height: 780px) {
  .hero-copy { padding-block: 8px; }
  .wordmark { width: min(84%, 520px); }
  h1 { margin: 24px 0 12px; font-size: clamp(30px, 3vw, 44px); }
  .intro { font-size: 14px; line-height: 1.55; }
  .hero-actions { margin-top: 20px; }
  .button { min-height: 46px; padding-block: 12px; }
  .hero-art { --art-max: 600px; height: 100%; }
}
@media (min-width: 651px) and (max-height: 550px) {
  .hero-copy { padding-block: 4px; }
  .wordmark { width: min(70%, 68svh); }
  h1 { margin: 16px 0 8px; font-size: clamp(24px, 6svh, 30px); }
  .intro { font-size: 11px; line-height: 1.5; }
  .hero-actions { margin-top: 12px; }
  .button { min-height: 34px; padding-block: 8px; }
}
@media (max-width: 650px) and (max-height: 620px) {
  .wordmark { width: min(90%, 48svh); }
}
.studio-popover { max-height: calc(100svh - 40px); overflow-y: auto; }

.not-found-page { display: grid; place-items: center; min-height: 100svh; padding: 32px; }
.not-found-content { width: min(100%, 520px); }
.not-found-content .wordmark { width: min(100%, 360px); }
.not-found-label { margin-top: 40px; color: var(--orange); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; }
.not-found-content h1 { margin-top: 20px; }
.not-found-content > p:not(.not-found-label) { color: var(--muted); line-height: 1.6; }
.not-found-content > .button { margin-top: 20px; }
