:root {
  --bg: #101215;
  --surface: #17191d;
  --surface-2: #1e2126;
  --surface-3: #25292f;
  --text: #f4f1e9;
  --text-soft: #c6c4be;
  --muted: #8a8e96;
  --muted-2: #5e636c;
  --line: rgba(244, 241, 233, .13);
  --line-strong: rgba(244, 241, 233, .24);
  --lime: #c8f169;
  --lime-soft: rgba(200, 241, 105, .12);
  --orange: #ff8761;
  --blue: #90bcff;
  --max: 1200px;
  --header-h: 72px;
  --radius: 20px;
  --ease: 180ms ease;

  /* Apple-inspired system, adapted to the AI Builder palette. */
  --font-display: "SF Pro Display", "Helvetica Neue", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", Arial, sans-serif;
  --font-text: "Paperlogy", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --section-gap: 112px;
  --component-gap: 32px;
  --card-padding: 30px;
  --shadow-card: 0 2px 8px rgba(0, 0, 0, .05), 0 16px 38px rgba(0, 0, 0, .12);
  --shadow-hover: 0 4px 12px rgba(0, 0, 0, .07), 0 20px 46px rgba(0, 0, 0, .18);
}

body.light {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #f5f5f7;
  --surface-3: #e8e8ed;
  --text: #1d1d1f;
  --text-soft: #48484a;
  --muted: #6e6e73;
  --muted-2: #86868b;
  --line: rgba(29, 29, 31, .09);
  --line-strong: rgba(29, 29, 31, .16);
  --lime: #5d780d;
  --lime-soft: rgba(93, 120, 13, .11);
}

body.light .contact-section,
body.light .visual-agent,
body.light .visual-lawgate {
  --lime: #c8f169;
  --lime-soft: rgba(200, 241, 105, .12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: color var(--ease), background var(--ease);
}
body, a, button { transition: color var(--ease), background-color var(--ease), border-color var(--ease), opacity var(--ease); }
body.is-lightbox-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { border: 0; color: inherit; cursor: pointer; font: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { overflow-wrap: normal; word-break: keep-all; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }

.site-noise { position: fixed; inset: 0; z-index: 10; pointer-events: none; opacity: .025; background-image: radial-gradient(rgba(255,255,255,.16) .6px, transparent .6px); background-size: 5px 5px; mix-blend-mode: soft-light; }
body.light .site-noise { opacity: 0; }
.section-inner, .nav-inner { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
section { scroll-margin-top: calc(var(--header-h) + 24px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; height: var(--header-h); border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent); background: color-mix(in srgb, var(--bg) 74%, transparent); backdrop-filter: blur(22px) saturate(130%); }
.nav-inner { display: flex; height: 100%; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: .9rem; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
.brand-mark { display: inline-grid; width: 28px; height: 28px; place-items: center; border-radius: 7px; background: var(--lime); color: #101215; font-family: "Space Grotesk", sans-serif; font-size: .64rem; font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 28px; margin-left: auto; margin-right: 18px; color: var(--muted); font-size: .82rem; }
.nav-links a:hover, .nav-github:hover, .text-link:hover { color: var(--lime); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-github { color: var(--text-soft); font-family: "Paperlogy", sans-serif; font-size: .7rem; }
.icon-btn { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); font-family: "Paperlogy", sans-serif; font-size: .64rem; }
.icon-btn:hover { border-color: var(--lime); color: var(--lime); }
.theme-icon { font-size: 1rem; line-height: 1; }

/* Shared */
.eyebrow, .section-index, .project-meta, .console-label, .console-live, .console-bottom, .workflow-tool, .stack-row, .visual-caption { font-family: "Paperlogy", sans-serif; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--lime); font-size: .68rem; letter-spacing: .08em; }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px var(--lime-soft); }
.btn { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 12px; padding: 0 20px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .86rem; font-weight: 600; letter-spacing: -.02em; }
.btn span { font-size: 1rem; }
.btn-primary { border-color: var(--lime); background: var(--lime); color: #101215; }
.btn-primary:hover { background: #dbff8e; box-shadow: 0 0 26px rgba(200,241,105,.2); transform: translateY(-2px); }
.btn-ghost { color: var(--text-soft); }
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); transform: translateY(-2px); }
.section-index { margin-bottom: 14px; color: var(--muted-2); font-size: .67rem; letter-spacing: .08em; }
.section-subtitle { margin-top: 12px; color: var(--muted); font-size: .95rem; }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 42px; }
.section-heading-row h2, .workflow-grid h2 { font-family: var(--font-display); font-size: clamp(1.9rem, 3.2vw, 3.2rem); letter-spacing: -.06em; }
.text-link { color: var(--muted); font-family: "Paperlogy", sans-serif; font-size: .72rem; }

/* Hero */
.hero-section { min-height: calc(100vh - var(--header-h)); padding: clamp(82px, 9vw, 116px) 0 104px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; width: min(1240px, calc(100% - 48px)); margin-inline: auto; grid-template-columns: minmax(0, 1fr) minmax(380px, .76fr); align-items: center; gap: clamp(56px, 7vw, 104px); }
.hero-copy h1 { max-width: 680px; margin-top: 24px; font-family: var(--font-display); font-size: clamp(3.15rem, 5.2vw, 5.2rem); font-weight: 600; letter-spacing: -.085em; line-height: 1.04; }
.hero-title-line { display: block; white-space: nowrap; }
.hero-copy h1 em { color: var(--lime); font-style: normal; }
.hero-desc { max-width: 560px; margin-top: 28px; color: var(--text-soft); font-size: clamp(.98rem, 1vw, 1.1rem); line-height: 1.62; letter-spacing: -.025em; }
.hero-cta-group { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.hero-console { position: relative; overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--radius); background: linear-gradient(145deg, color-mix(in srgb, var(--surface) 94%, var(--lime)), var(--surface)); box-shadow: var(--shadow-card); transform: rotate(1.2deg); }
.hero-console::before { display: none; }
.hero-console::after { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: repeating-linear-gradient(180deg, transparent 0, transparent 5px, rgba(93, 120, 13, .035) 6px); content: ""; opacity: .55; }
.hero-console > * { position: relative; z-index: 1; }
.console-top, .console-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 20px; color: var(--muted); font-size: .62rem; letter-spacing: .05em; }
.console-top { border-bottom: 1px solid var(--line); }
.console-label b { color: var(--lime); font-weight: 600; }
.console-live { display: inline-flex; align-items: center; gap: 8px; color: var(--lime); }
.console-body { position: relative; padding: 46px 34px 38px; }
.console-body::before { position: absolute; top: 22px; right: -18px; width: 244px; height: 244px; border-radius: 50%; background: var(--lime); content: ""; opacity: .1; filter: blur(28px); pointer-events: none; }
.console-kicker { color: var(--orange); font-family: "Paperlogy", sans-serif; font-size: .68rem; letter-spacing: .08em; }
.console-body h2 { position: relative; z-index: 1; max-width: calc(100% - 72px); margin-top: 17px; font-family: "Space Grotesk", sans-serif; font-size: clamp(1.8rem, 3vw, 3rem); letter-spacing: -.065em; }
.console-body h2 span { color: var(--lime); }
.agent-core { position: absolute; top: 84px; right: 28px; display: grid; width: 112px; height: 112px; place-items: center; border: 1px solid color-mix(in srgb, var(--lime) 56%, transparent); border-radius: 50%; color: var(--lime); opacity: .84; animation: core-breathe 3.6s ease-in-out infinite; }
.agent-core::before, .agent-core::after { position: absolute; border-radius: 50%; content: ""; }
.agent-core::before { inset: 12px; border: 1px solid color-mix(in srgb, var(--lime) 64%, transparent); box-shadow: 0 0 30px color-mix(in srgb, var(--lime) 24%, transparent); }
.agent-core::after { inset: 29px; border: 1px dashed color-mix(in srgb, var(--blue) 70%, transparent); transform: rotate(22deg); animation: core-spin 9s linear infinite; }
.agent-core span { position: relative; z-index: 1; font-family: var(--font-display); font-size: .9rem; font-weight: 700; letter-spacing: .08em; }
.agent-core i { position: absolute; top: 10px; right: 22px; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 5px rgba(255, 135, 97, .12), -48px 84px 0 1px var(--blue), -86px 44px 0 0 var(--lime); }
.console-context { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 22px; color: var(--muted-2); font-family: var(--font-text); font-size: .55rem; letter-spacing: .08em; }
.console-context span::before { display: inline-block; width: 4px; height: 4px; margin: 0 7px 2px 0; border-radius: 50%; background: var(--lime); content: ""; opacity: .75; }
.agent-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 8px; align-items: center; margin-top: 48px; }
.flow-node { display: flex; min-width: 0; flex-direction: column; gap: 6px; }
.node-icon { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid var(--line-strong); border-radius: 9px; color: var(--lime); font-family: "Paperlogy", sans-serif; font-size: .68rem; }
.node-icon::after { display: inline-block; width: 4px; height: 4px; margin-left: 3px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px var(--lime-soft); content: ""; animation: node-pulse 1.8s ease-in-out infinite; }
.flow-node b { font-family: "Space Grotesk", sans-serif; font-size: .82rem; }
.flow-node small { overflow: hidden; color: var(--muted); font-size: .69rem; text-overflow: ellipsis; white-space: nowrap; }
.flow-arrow { color: var(--muted-2); font-size: 1.2rem; }
.agent-trace { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 22px; padding: 12px 0; border-block: 1px dashed var(--line-strong); }
.agent-trace div { display: flex; min-width: 0; flex-direction: column; gap: 5px; }
.agent-trace code { overflow: hidden; color: var(--text-soft); font-family: "Space Grotesk", monospace; font-size: .56rem; text-overflow: ellipsis; white-space: nowrap; }
.trace-status { color: var(--lime); font-family: var(--font-text); font-size: .54rem; letter-spacing: .04em; }
.trace-running { color: var(--orange); }
.trace-next { color: var(--muted-2); }
.console-log { margin-top: 20px; color: var(--text-soft); font-family: "Paperlogy", sans-serif; font-size: .68rem; }
.console-log > span:first-child { margin-right: 6px; color: var(--lime); }
.cursor { display: inline-block; width: 7px; height: 13px; margin-left: 5px; vertical-align: -2px; background: var(--lime); animation: blink 1s step-end infinite; }
.console-bottom { border-top: 1px solid var(--line); font-size: .59rem; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes node-pulse { 50% { opacity: .25; transform: scale(.72); } }
@keyframes core-breathe { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--lime) 6%, transparent), 0 0 34px color-mix(in srgb, var(--lime) 18%, transparent); } }
@keyframes core-spin { to { transform: rotate(382deg); } }

/* Statement */
.statement-section { padding: clamp(96px, 11vw, 136px) 0; }
.statement-grid { display: grid; grid-template-columns: 160px 1fr; gap: 30px; }
.statement { max-width: 820px; font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 3.2rem); font-weight: 700; letter-spacing: -.065em; line-height: 1.14; }
.statement em { color: var(--lime); font-style: normal; }
.statement-note { margin-top: 40px; color: var(--muted); font-size: 1rem; line-height: 1.8; }

/* Builds */
.builds-section { padding-bottom: 136px; }
.filter-group { display: flex; flex-wrap: wrap; justify-content: end; gap: 7px; }
.filter-btn { padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font-family: "Paperlogy", sans-serif; font-size: .64rem; }
.filter-btn:hover, .filter-btn.is-active { border-color: var(--lime); background: var(--lime-soft); color: var(--lime); }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.project-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-card); transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease); }
.project-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.project-card-featured { grid-column: span 2; display: grid; grid-template-columns: 1.12fr .88fr; }
.project-visual { position: relative; min-height: 300px; overflow: hidden; }
.project-card-featured .project-visual { min-height: 360px; }
.screenshot-visual { background: var(--surface-2); }
.project-gallery-trigger { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: hidden; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.project-gallery-trigger::after { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.48), transparent 38%); content: ""; opacity: .52; transition: opacity var(--ease); }
.project-gallery-trigger:hover::after { opacity: .82; }
.project-gallery-trigger:focus-visible { outline: 2px solid var(--lime); outline-offset: -5px; }
.project-thumb { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 320ms ease; }
.project-gallery-trigger:hover .project-thumb { transform: scale(1.035); }
.gallery-hint { position: absolute; right: 20px; bottom: 18px; z-index: 1; color: #fff; font-family: "Paperlogy", sans-serif; font-size: .6rem; letter-spacing: .06em; }
.visual-caption { position: absolute; right: 20px; bottom: 18px; z-index: 2; color: rgba(255,255,255,.62); font-size: .58rem; letter-spacing: .06em; }
.visual-lawgate { display: grid; place-items: center; background: #202630; color: #f1f3ef; }
.visual-lawgate::before { position: absolute; inset: 18px; border: 1px solid rgba(200,241,105,.22); content: ""; }
.lawgate-type { position: relative; z-index: 1; font-family: "Space Grotesk", sans-serif; font-size: clamp(3rem, 7vw, 6.8rem); font-weight: 600; letter-spacing: -.13em; line-height: .82; }
.lawgate-type em { color: var(--lime); font-style: normal; }
.lawgate-ring { position: absolute; border: 1px solid rgba(200,241,105,.34); border-radius: 50%; }
.ring-a { width: 82%; height: 42%; transform: rotate(26deg); }
.ring-b { width: 42%; height: 94%; transform: rotate(-26deg); }
.visual-ruf { display: grid; place-items: center; background: #cae3db; color: #102822; }
.visual-ruf::before { position: absolute; inset: 16px; border: 1px solid rgba(16,40,34,.25); border-radius: 50%; content: ""; }
.visual-label { position: relative; z-index: 1; font-family: "Space Grotesk", sans-serif; font-size: clamp(3.8rem, 10vw, 8rem); font-weight: 700; letter-spacing: -.12em; }
.visual-ruf .visual-caption { color: rgba(16,40,34,.65); }
.visual-orbit { position: absolute; border: 1px solid rgba(16,40,34,.28); border-radius: 50%; transform: rotate(-24deg); }
.orbit-one { width: 120%; height: 48%; }
.orbit-two { width: 70%; height: 120%; transform: rotate(32deg); }
.visual-pocket { display: grid; place-items: center; background: #f6b35f; color: #40251a; }
.pocket-orb { position: absolute; width: 230px; height: 230px; border: 1px solid rgba(64,37,26,.26); border-radius: 50%; box-shadow: inset 0 0 0 22px rgba(255,255,255,.12), inset 0 0 0 50px rgba(64,37,26,.08); }
.pocket-label { position: relative; z-index: 1; font-family: "Space Grotesk", sans-serif; font-size: 2.6rem; font-weight: 600; letter-spacing: -.1em; line-height: .85; }
.visual-pocket .visual-caption { color: rgba(64,37,26,.6); }
.visual-agent { background: #242932; color: var(--lime); }
img.engine-logo { position: absolute; top: 50%; left: 50%; z-index: 1; width: 112px !important; height: 112px !important; max-width: none; object-fit: contain; opacity: .9; transform: translate(-50%, -50%); }
img.engine-logo-unity { width: 104px !important; height: 104px !important; }
.agent-grid-lines { position: absolute; inset: 0; opacity: .42; background-image: linear-gradient(rgba(200,241,105,.13) 1px, transparent 1px), linear-gradient(90deg, rgba(200,241,105,.13) 1px, transparent 1px); background-size: 34px 34px; transform: perspective(360px) rotateX(55deg) scale(1.5) translateY(38px); transform-origin: bottom; }
.agent-cross { position: absolute; top: 50%; left: 50%; color: var(--orange); font-family: "Space Grotesk", sans-serif; font-size: 6rem; line-height: 1; transform: translate(-50%,-50%); opacity: .8; }
.agent-label, .unity-label { position: absolute; top: 28px; left: 28px; color: var(--text); font-family: "Space Grotesk", sans-serif; font-size: 1.1rem; letter-spacing: -.07em; line-height: .95; }
.agent-label strong, .unity-label strong { color: var(--lime); font-size: 2rem; }
.visual-unity { background: #1a2735; }
.unity-shape { position: absolute; top: 50%; left: 50%; width: 160px; height: 160px; border: 2px solid var(--blue); border-radius: 42% 58% 55% 45%; box-shadow: 0 0 80px rgba(144,188,255,.32); transform: translate(-50%,-50%) rotate(28deg); }
.unity-shape::after { position: absolute; inset: 26px; border: 2px solid var(--blue); border-radius: 50%; content: ""; }
.visual-unity .visual-caption { color: rgba(211,229,255,.6); }
.visual-sparta { display: grid; place-items: center; background: #d9edff; color: #182e4c; }
.sparta-type { position: relative; z-index: 1; font-family: "Space Grotesk", sans-serif; font-size: clamp(2.2rem, 5vw, 4.3rem); font-weight: 700; letter-spacing: -.11em; line-height: .82; text-align: center; }
.sparta-type em { color: #3173ff; font-style: normal; }
.sparta-line { position: absolute; width: 170%; height: 34px; border-block: 2px solid rgba(49,115,255,.35); transform: rotate(-16deg); }
.visual-sparta .visual-caption { color: rgba(24,46,76,.6); }
.visual-game { background: #283235; }
.game-sun { position: absolute; top: 34px; right: 46px; width: 72px; height: 72px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 38px rgba(255,135,97,.48); }
.game-mountain { position: absolute; bottom: 0; width: 120%; height: 65%; background: #3e5958; clip-path: polygon(0 100%, 32% 32%, 48% 60%, 72% 12%, 100% 100%); }
.mountain-two { right: -36%; bottom: -4%; opacity: .55; transform: scale(1.18); }
.game-type { position: absolute; top: 34px; left: 30px; color: #eff3e4; font-family: "Space Grotesk", sans-serif; font-size: 1.25rem; font-weight: 600; letter-spacing: -.08em; line-height: .9; }
.game-type em { color: var(--lime); font-size: 2rem; font-style: normal; }
.project-body { padding: var(--card-padding); }
.project-meta { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: .61rem; letter-spacing: .05em; }
.project-body h3 { margin-top: 18px; font-family: "Space Grotesk", sans-serif; font-size: 1.6rem; letter-spacing: -.07em; }
.project-body p { min-height: 52px; margin-top: 11px; color: var(--muted); font-size: .9rem; line-height: 1.65; }
.project-collaborator { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .72rem; }
.project-collaborator a { color: var(--text-soft); font-family: var(--font-text); font-size: .68rem; }
.project-collaborator a:hover { color: var(--lime); }
.project-decision { display: flex; flex-direction: column; gap: 7px; margin-top: 17px; padding: 12px 14px; border-left: 2px solid var(--lime); background: var(--lime-soft); }
.project-decision span { color: var(--lime); font-family: "Paperlogy", sans-serif; font-size: .56rem; letter-spacing: .06em; }
.project-decision b { color: var(--text-soft); font-size: .78rem; font-weight: 500; line-height: 1.45; }
.project-link { display: inline-flex; margin-top: 21px; color: var(--lime); font-family: "Paperlogy", sans-serif; font-size: .69rem; }
.project-link:hover { color: var(--text); }
.empty-state { padding: 50px; border: 1px dashed var(--line-strong); color: var(--muted); text-align: center; }

/* Workflow */
.workflow-section { padding: var(--section-gap) 0 0; border-top: 1px solid var(--line); background: var(--surface); }
.workflow-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(50px, 10vw, 160px); }
.workflow-list { border-top: 1px solid var(--line); }
.workflow-item { display: grid; grid-template-columns: 48px 1fr auto; gap: 20px; align-items: start; padding: 27px 0; border-bottom: 1px solid var(--line); }
.workflow-number { color: var(--lime); font-family: "Paperlogy", sans-serif; font-size: .7rem; }
.workflow-item h3 { font-family: "Space Grotesk", sans-serif; font-size: 1.28rem; letter-spacing: -.04em; }
.workflow-item p { max-width: 520px; margin-top: 8px; color: var(--muted); font-size: .86rem; line-height: 1.7; }
.workflow-tool { color: var(--muted-2); font-size: .6rem; letter-spacing: .05em; }
.history-strip { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; margin-top: 52px; padding: 6px 8px; border: 1px solid var(--line-strong); border-radius: 999px; background: color-mix(in srgb, var(--surface-2) 86%, transparent); color: var(--lime); font-family: var(--font-text); font-size: .62rem; letter-spacing: .08em; }
.history-strip span { flex: 1 1 0; padding: 10px 8px; border-radius: 999px; color: var(--text-soft); text-align: center; }
.history-strip i { flex: 0 0 auto; color: var(--muted-2); font-style: normal; }
.stack-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding-top: 72px; padding-bottom: 80px; color: var(--muted-2); font-size: .65rem; letter-spacing: .05em; }
.stack-row b { color: var(--text-soft); font-size: .68rem; font-weight: 500; }

/* About/contact/footer */
.about-section { padding-top: var(--section-gap); padding-bottom: 128px; }
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 96px; align-items: start; }
.about-lede { font-family: var(--font-display); font-size: clamp(1.55rem, 1.55vw, 1.725rem); font-weight: 600; letter-spacing: -.045em; line-height: 1.34; }
.about-details { padding-top: 7px; color: var(--muted); font-size: .95rem; line-height: 1.8; }
.about-details p + p { margin-top: 23px; }
.contact-section { padding: 120px 0 130px; border-top: 1px solid var(--line); background: linear-gradient(145deg, #202721 0%, #18201c 100%); }
.contact-inner h2 { max-width: 840px; margin-top: 28px; color: #f4f8e8; font-family: "Space Grotesk", sans-serif; font-size: clamp(2.3rem, 4.6vw, 4.8rem); letter-spacing: -.085em; line-height: 1.12; }
.contact-inner h2 em { color: var(--lime); font-style: normal; }
.contact-mail { display: inline-flex; align-items: center; gap: 18px; margin-top: 48px; padding-bottom: 8px; border-bottom: 1px solid var(--lime); color: var(--lime); font-family: "Paperlogy", sans-serif; font-size: clamp(1rem, 2vw, 1.4rem); }
.contact-mail:hover { color: #fff; border-color: #fff; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; width: min(var(--max), calc(100% - 48px)); min-height: 72px; margin-inline: auto; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-family: "Paperlogy", sans-serif; font-size: .65rem; }
.footer-inner a:hover { color: var(--lime); }

/* Screenshot gallery */
.lightbox { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(7,9,12,.82); backdrop-filter: blur(14px); }
.lightbox-dialog { position: relative; z-index: 1; display: flex; width: min(1080px, 100%); max-height: min(900px, calc(100vh - 48px)); flex-direction: column; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 22px; background: var(--surface); box-shadow: 0 8px 20px rgba(0,0,0,.12), 0 24px 70px rgba(0,0,0,.32); }
.lightbox-header, .lightbox-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 22px; }
.lightbox-header { border-bottom: 1px solid var(--line); }
.lightbox-kicker { color: var(--lime); font-family: "Paperlogy", sans-serif; font-size: .6rem; letter-spacing: .08em; }
.lightbox-header h2 { margin-top: 4px; font-family: "Space Grotesk", sans-serif; font-size: 1.25rem; letter-spacing: -.04em; }
.lightbox-close { width: 34px; height: 34px; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface-2); color: var(--text-soft); font-size: 1.4rem; line-height: 1; }
.lightbox-close:hover { border-color: var(--lime); color: var(--lime); }
.lightbox-stage { position: relative; display: grid; min-height: 300px; flex: 1; place-items: center; padding: 24px 76px; background: #0e1115; }
.lightbox-stage img { width: 100%; max-height: min(68vh, 720px); object-fit: contain; }
.lightbox-nav { position: absolute; top: 50%; z-index: 2; display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; background: rgba(14,17,21,.78); color: #fff; font-size: 1.2rem; transform: translateY(-50%); }
.lightbox-nav:hover { border-color: var(--lime); color: var(--lime); }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }
.lightbox-footer { color: var(--muted); font-family: "Paperlogy", sans-serif; font-size: .64rem; }

/* Apple-style light presentation: quiet surfaces, large breathing room, one accent. */
body.light .site-header { border-bottom-color: rgba(29, 29, 31, .08); background: rgba(245, 245, 247, .78); }
body.light .hero-section { background: linear-gradient(180deg, #ffffff 0%, #f5f5f7 100%); }
body.light .hero-console { border-color: rgba(29, 29, 31, .12); box-shadow: 0 2px 8px rgba(0, 0, 0, .04), 0 24px 50px rgba(0, 0, 0, .11); }
body.light .hero-console::after { opacity: .28; }
body.light .console-body::before { opacity: .075; }
body.light .agent-core { opacity: .7; }
body.light .workflow-section { background: #f5f5f7; }
body.light .project-card { border-color: rgba(29, 29, 31, .09); box-shadow: 0 2px 8px rgba(0, 0, 0, .04), 0 14px 34px rgba(0, 0, 0, .08); }
body.light .project-card:hover { border-color: rgba(29, 29, 31, .16); box-shadow: 0 4px 12px rgba(0, 0, 0, .06), 0 20px 44px rgba(0, 0, 0, .12); }
body.light .history-strip { background: rgba(255, 255, 255, .72); }
body.light .contact-section { background: linear-gradient(145deg, #202721 0%, #18201c 100%); }
body.light .visual-agent,
body.light .visual-unity { color: #f5f5f7; }
body.light .visual-agent .agent-label,
body.light .visual-unity .unity-label { color: #f5f5f7; text-shadow: 0 1px 14px rgba(0, 0, 0, .28); }
body.light .visual-agent .agent-label strong,
body.light .visual-unity .unity-label strong { color: #c8f169; }
body.light .visual-agent .visual-caption,
body.light .visual-unity .visual-caption { color: rgba(245, 245, 247, .66); }

.hero-copy h1,
.console-body h2,
.section-heading-row h2,
.workflow-grid h2,
.statement,
.project-body h3,
.about-lede,
.contact-inner h2,
.lightbox-header h2 { font-family: var(--font-display); }
.hero-copy h1 { font-weight: 700; letter-spacing: -.065em; }
.section-heading-row h2, .workflow-grid h2 { letter-spacing: -.045em; }
.project-body h3 { letter-spacing: -.045em; }
.about-lede { letter-spacing: -.045em; }

@media (max-width: 1067px) {
  .hero-grid { grid-template-columns: 1fr; gap: 68px; }
  .hero-console { max-width: 620px; transform: rotate(1.2deg); }
  .statement-grid { grid-template-columns: 90px 1fr; }
  .project-card-featured { grid-template-columns: 1fr; }
  .project-card-featured .project-visual { min-height: 320px; }
  .workflow-grid, .about-grid { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 734px) {
  .section-inner, .nav-inner, .hero-grid { width: min(100% - 32px, var(--max)); }
  .site-header { height: 62px; }
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
  .nav-github { display: none; }
  .hero-section { min-height: auto; padding: 72px 0 76px; }
  .hero-copy h1 { font-size: clamp(2.85rem, 13vw, 5rem); }
  .hero-title-line { white-space: normal; }
  .hero-desc br { display: block; }
  .hero-console { transform: none; }
  .console-body { padding: 32px 22px 28px; }
  .console-body h2 { font-size: 2rem; }
  .console-body h2 { max-width: 100%; }
  .agent-core { top: 72px; right: 22px; width: 82px; height: 82px; }
  .agent-core::before { inset: 9px; }
  .agent-core::after { inset: 22px; }
  .agent-core i { top: 7px; right: 15px; box-shadow: 0 0 0 4px rgba(255, 135, 97, .12), -36px 58px 0 1px var(--blue), -60px 30px 0 0 var(--lime); }
  .agent-trace { gap: 5px; }
  .agent-trace code { font-size: .5rem; }
  .agent-flow { gap: 5px; margin-top: 34px; }
  .flow-arrow { font-size: 1rem; }
  .node-icon { width: 31px; height: 31px; font-size: .59rem; }
  .flow-node b { font-size: .7rem; }
  .flow-node small { font-size: .6rem; }
  .statement-section { padding: 80px 0 100px; }
  .statement { font-size: 2rem; line-height: 1.28; }
  .statement-note { margin-top: 28px; }
  .section-heading-row { align-items: start; flex-direction: column; gap: 24px; margin-bottom: 30px; }
  .filter-group { justify-content: start; }
  .project-grid { grid-template-columns: 1fr; gap: 18px; }
  .project-card-featured { grid-column: span 1; }
  .project-visual, .project-card-featured .project-visual { min-height: 238px; }
  .project-body { padding: 20px; }
  .project-body p { min-height: 0; }
  .workflow-section { padding-top: 80px; }
  .history-strip { justify-content: start; border-radius: 16px; }
  .history-strip i { display: none; }
  .workflow-item { grid-template-columns: 32px 1fr; gap: 12px; }
  .workflow-tool { grid-column: 2; }
  .stack-row { padding-top: 52px; padding-bottom: 58px; gap: 9px 14px; }
  .about-section { padding-top: 80px; padding-bottom: 92px; }
  .contact-section { padding: 84px 0 100px; }
  .contact-inner h2 { font-size: 2.7rem; line-height: 1.14; }
  .lightbox { padding: 12px; }
  .lightbox-stage { padding: 18px 54px; }
  .lightbox-header, .lightbox-footer { padding-inline: 16px; }
  .footer-inner { min-height: 100px; align-items: start; flex-direction: column; justify-content: center; gap: 5px; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
  .statement-grid { grid-template-columns: 1fr; gap: 18px; }
  .statement { max-width: 680px; font-size: clamp(2rem, 5vw, 3rem); }
  .project-grid { grid-template-columns: 1fr; gap: 20px; }
  .project-card-featured { grid-column: span 1; grid-template-columns: 1fr; }
  .project-card-featured .project-visual { min-height: 320px; }
  .hero-console { max-width: 100%; transform: none; }
}

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