/* Touchstone AI project index, in the visual language of the GameCUA and OS-Omni pages: night-navy
   starfield, Inter, mono kickers, two-line headings with a periwinkle second line, translucent cards. */
@font-face { font-family: "Inter Variable"; font-weight: 100 900; font-display: swap; src: url(fonts/inter-latin-wght-normal.woff2) format("woff2-variations"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url(fonts/jetbrains-mono-latin-400-normal.woff2) format("woff2"); }
:root {
  --bg: #0c1524; --hi: #eaf0fb; --text: #c4d1e5; --dim: #a7bad3; --faint: #7f93b0;
  --accent: #8cb8ff; --accent-2: #679ffc; --accent-soft: #adcaff;
  --line: rgba(159, 190, 236, 0.125); --line-2: rgba(162, 189, 229, 0.216);
  --card: linear-gradient(145deg, rgba(23, 38, 59, 0.85), rgba(16, 28, 46, 0.91));
  --sans: "Inter Variable", Inter, Arial, sans-serif; --mono: "JetBrains Mono", Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font: 400 17px/1.75 var(--sans); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(40% 30% at 86% 14%, rgba(60, 94, 140, 0.12), transparent 70%),
    linear-gradient(158deg, transparent 36%, rgba(38, 57, 82, 0.22) 46%, rgba(52, 74, 104, 0.24) 52%, transparent 64%);
}
#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { width: min(1228px, 100% - 48px); margin: 0 auto; }

.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: 72px; background: rgba(12, 21, 36, 0.91); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-in { height: 100%; width: min(1280px, 100% - 48px); margin: 0 auto; display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--hi); font-weight: 600; font-size: 18px; letter-spacing: -0.025em; }
.brand img { width: 28px; height: 28px; object-fit: contain; filter: brightness(0) invert(0.93); }
.nav nav { margin-left: auto; display: flex; gap: 4px; }
.nav nav a { font-size: 14px; font-weight: 500; text-decoration: none; color: #dce6f5; padding: 7px 12px; border-radius: 9px; }
.nav nav a:hover { background: rgba(162, 189, 229, 0.09); color: var(--hi); }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 9px; color: var(--hi); }
.icon-btn:hover { background: rgba(162, 189, 229, 0.09); }

.btn { display: inline-flex; align-items: center; height: 42px; padding: 0 20px; border-radius: 8px; font-size: 14px; font-weight: 500; text-decoration: none; color: #d1e2ff; background: rgba(137, 181, 255, 0.024); border: 1px solid var(--line-2); transition: background .15s; }
.btn:hover { background: rgba(137, 181, 255, 0.08); }
.btn.primary { color: #081527; background: var(--accent-2); border-color: #89b6ff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15); }
.btn.primary:hover { background: #7aacff; }
.text-link { font-size: 14px; color: var(--accent-soft); text-decoration: none; padding: 10px 5px; }
.kicker, .eyebrow { font: 400 11px/1.6 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: #9fb5d4; margin: 0; }
.kicker { display: flex; align-items: center; gap: 10px; letter-spacing: 0.08em; }
.kicker i { width: 6px; height: 6px; background: var(--accent); }

.hero { padding: 104px 0 0; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 40px; align-items: center; min-height: 560px; }
.hero h1 { margin: 10px 0 18px; font-size: clamp(54px, 5.6vw, 76px); line-height: 1; font-weight: 600; letter-spacing: -0.045em; color: var(--hi); }
.hero-title { margin: 0 0 22px; font-size: clamp(24px, 2.3vw, 31px); line-height: 1.3; font-weight: 500; letter-spacing: -0.035em; color: #d9e6fb; }
.hero-lede { margin: 0 0 30px; max-width: 540px; }
.hero-lede a { color: var(--accent-soft); text-decoration: none; }
.hero-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

/* Two project pages stacked like open windows */
.stack { position: relative; height: 440px; }
.screen { position: absolute; width: 78%; border-radius: 12px; overflow: hidden; background: #05080e; border: 1px solid rgba(190, 210, 240, 0.18); box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.85); transition: transform .35s ease; }
.screen.back { right: 0; top: 0; opacity: 0.82; }
.screen.front { left: 0; bottom: 0; }
.stack:hover .screen.back { transform: translateY(-8px); }
.stack:hover .screen.front { transform: translateY(6px); }
.bar { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; background: #111a28; border-bottom: 1px solid rgba(255, 255, 255, 0.05); white-space: nowrap; overflow: hidden; }
.bar i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #2a3a52; }
.bar b { margin-left: 10px; font: 400 11px var(--mono); color: #9fb2cd; overflow: hidden; text-overflow: ellipsis; }
.screen, .shot { text-decoration: none; }
.screen img, .shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.band { padding: 110px 0 40px; }
.head { margin: 0 0 44px; }
.eyebrow { letter-spacing: 0.24em; margin-bottom: 14px; }
.title { margin: 0; font-size: clamp(32px, 3.4vw, 48px); line-height: 1.14; font-weight: 500; letter-spacing: -0.035em; color: #e4edff; }
.hl { color: #93bfff; }
.card { background: var(--card); border: 1px solid rgba(162, 189, 229, 0.137); border-radius: 14px; }

.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project { display: flex; flex-direction: column; overflow: hidden; }
.shot { display: block; margin: 14px 14px 0; border-radius: 10px; overflow: hidden; border: 1px solid rgba(190, 210, 240, 0.12); background: #05080e; }
.shot img { transition: transform .4s ease; }
.shot:hover img { transform: scale(1.02); }
.project .body { display: flex; flex-direction: column; flex: 1; padding: 26px 28px 28px; }
.project .eyebrow { margin-bottom: 8px; font-size: 11px; line-height: 1.6; color: #9fb5d4; }
.project h3 { margin: 0; font-size: 30px; line-height: 1.2; font-weight: 600; letter-spacing: -0.035em; color: var(--hi); }
.project h3 a { text-decoration: none; }
.project .full { margin: 6px 0 14px; font-size: 17px; line-height: 1.45; font-weight: 500; letter-spacing: -0.015em; color: #93bfff; }
.project p { margin: 0; font-size: 15.5px; line-height: 1.7; color: #b4c4da; }
.mini { display: flex; gap: 0; margin: 22px 0 24px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mini div { display: flex; align-items: baseline; gap: 9px; padding: 0 20px; border-left: 1px solid var(--line); }
.mini div:first-child { padding-left: 0; border-left: 0; }
.mini dt { font-size: 24px; font-weight: 500; letter-spacing: -0.05em; color: #e1ebff; }
.mini dd { margin: 0; font-size: 13px; color: var(--dim); }
.links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: auto; }
.project .links { gap: 10px; }
.project .links .btn { padding: 0 16px; }
@media (max-width: 420px) { .project .links { gap: 8px; } .project .links .btn { padding: 0 12px; } }

footer.site { margin-top: 80px; padding: 54px 0 38px; background: rgba(8, 15, 27, 0.79); font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.foot-grid p { color: #a9bbd4; max-width: 380px; margin: 14px 0 0; }
.foot-grid h4 { margin: 4px 0 12px; font-size: 14px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--hi); }
.foot-grid a:not(.brand) { display: block; text-decoration: none; color: #c5d5ec; line-height: 1.8; }
.foot-grid a:not(.brand):hover { color: var(--hi); }

@media (max-width: 1180px) { .projects { grid-template-columns: 1fr 1fr; } }
/* Three cards per row: stack each mini stat so its label stays on one line. */
@media (min-width: 1181px) { .mini div { flex-direction: column; gap: 2px; padding: 0 18px; } .mini dd { line-height: 1.35; } }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 48px; }
  .stack { height: 62vw; max-height: 440px; }
  .projects { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav nav { display: none; }
  .icon-btn { margin-left: auto; }
  .hero { padding-top: 100px; }
  .stack { height: 72vw; }
  .screen { width: 86%; }
  .band { padding-top: 80px; }
  .project .body { padding: 22px 20px 24px; }
  .project h3 { font-size: 26px; }
  .mini div { padding: 0 12px; flex-direction: column; gap: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .screen, .shot img { transition: none; } }
