:root {
  --ink: #17191f;
  --muted: #657083;
  --paper: #fbfaf6;
  --panel: #ffffff;
  --line: rgba(23, 25, 31, 0.12);
  --glass: rgba(251, 250, 246, 0.82);
  --soft-panel: rgba(255, 255, 255, 0.76);
  --card-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.72));
  --subtle-bg: #f6f4ee;
  --body-wash:
    radial-gradient(circle at 10% 10%, rgba(31, 111, 235, 0.18), transparent 28rem),
    radial-gradient(circle at 85% 15%, rgba(255, 107, 87, 0.18), transparent 24rem),
    linear-gradient(180deg, #f6f2e9 0%, #f9faf6 45%, #eef5f1 100%);
  --cs-wash: linear-gradient(135deg, #eef6ff 0%, #f8f0e6 100%);
  --design-wash: linear-gradient(135deg, #f9f1e7 0%, #ecf8f1 100%);
  --code-bg: #111827;
  --code-text: #dbeafe;
  --code-key: #7dd3fc;
  --code-accent: #fef3c7;
  --text-strong: #3d4656;
  --text-soft: #4d596b;
  --blue: #1f6feb;
  --green: #0e9f6e;
  --coral: #ff6b57;
  --yellow: #f4c542;
  --violet: #7657ff;
  --shadow: 0 24px 80px rgba(18, 28, 45, 0.14);
  --glow: rgba(31, 111, 235, 0.25);
  --on-accent: #ffffff;
  --footer-bg: #17191f;
  --footer-text: #ffffff;
  --overlay: rgba(12, 17, 27, 0.66);
}

body[data-theme="night"] {
  --ink: #f4f7fb;
  --muted: #a8b3c7;
  --paper: #101621;
  --panel: #182231;
  --line: rgba(229, 237, 248, 0.16);
  --glass: rgba(15, 21, 31, 0.82);
  --soft-panel: rgba(24, 34, 49, 0.82);
  --card-bg: linear-gradient(135deg, rgba(24, 34, 49, 0.94), rgba(15, 21, 31, 0.78));
  --subtle-bg: #202b3c;
  --body-wash:
    radial-gradient(circle at 15% 8%, rgba(118, 87, 255, 0.28), transparent 30rem),
    radial-gradient(circle at 80% 16%, rgba(31, 111, 235, 0.2), transparent 24rem),
    linear-gradient(180deg, #0c111b 0%, #101621 48%, #111827 100%);
  --cs-wash: linear-gradient(135deg, #111827 0%, #151f33 100%);
  --design-wash: linear-gradient(135deg, #15141f 0%, #1c2331 100%);
  --code-bg: #060a12;
  --code-text: #d7e1f3;
  --code-key: #a78bfa;
  --code-accent: #9ae6b4;
  --text-strong: #dfe7f5;
  --text-soft: #b8c3d5;
  --blue: #8ab4ff;
  --green: #63d7a5;
  --coral: #ff8d7d;
  --yellow: #ffd166;
  --violet: #b6a4ff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --glow: rgba(138, 180, 255, 0.28);
  --on-accent: #0c111b;
  --footer-bg: #060a12;
  --footer-text: #f4f7fb;
  --overlay: rgba(0, 0, 0, 0.76);
}

body[data-theme="matcha"] {
  --ink: #18241c;
  --muted: #617063;
  --paper: #f5f8ed;
  --panel: #ffffff;
  --line: rgba(24, 36, 28, 0.14);
  --glass: rgba(248, 250, 239, 0.86);
  --soft-panel: rgba(255, 255, 255, 0.78);
  --card-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(246, 250, 235, 0.82));
  --subtle-bg: #edf3df;
  --body-wash:
    radial-gradient(circle at 12% 12%, rgba(14, 159, 110, 0.18), transparent 28rem),
    radial-gradient(circle at 82% 16%, rgba(244, 197, 66, 0.16), transparent 24rem),
    linear-gradient(180deg, #f3f7e8 0%, #fbfaf1 45%, #eaf5eb 100%);
  --cs-wash: linear-gradient(135deg, #eef8e8 0%, #fff8df 100%);
  --design-wash: linear-gradient(135deg, #f8f3df 0%, #e8f5ef 100%);
  --code-bg: #17251b;
  --code-text: #dff4e7;
  --code-key: #9ae6b4;
  --code-accent: #f9dc7a;
  --text-strong: #314534;
  --text-soft: #526555;
  --blue: #2d7d6f;
  --green: #279266;
  --coral: #d86b4d;
  --yellow: #d1a431;
  --violet: #6f68b7;
  --glow: rgba(39, 146, 102, 0.24);
  --on-accent: #ffffff;
  --footer-bg: #17251b;
  --footer-text: #f5f8ed;
  --overlay: rgba(23, 37, 27, 0.68);
}

body[data-theme="sunset"] {
  --ink: #241817;
  --muted: #76615e;
  --paper: #fff7ef;
  --panel: #fffdf9;
  --line: rgba(36, 24, 23, 0.14);
  --glass: rgba(255, 247, 239, 0.86);
  --soft-panel: rgba(255, 253, 249, 0.8);
  --card-bg: linear-gradient(135deg, rgba(255, 253, 249, 0.94), rgba(255, 239, 224, 0.78));
  --subtle-bg: #ffece1;
  --body-wash:
    radial-gradient(circle at 12% 10%, rgba(255, 107, 87, 0.22), transparent 28rem),
    radial-gradient(circle at 82% 18%, rgba(118, 87, 255, 0.16), transparent 24rem),
    linear-gradient(180deg, #fff1e6 0%, #fffaf1 46%, #f2f4ff 100%);
  --cs-wash: linear-gradient(135deg, #fff0e4 0%, #f1f0ff 100%);
  --design-wash: linear-gradient(135deg, #ffefe3 0%, #fff8dd 100%);
  --code-bg: #271a1b;
  --code-text: #ffe8df;
  --code-key: #ff9c8d;
  --code-accent: #ffe08a;
  --text-strong: #5a423d;
  --text-soft: #725b56;
  --blue: #7857d7;
  --green: #1d9373;
  --coral: #f06449;
  --yellow: #e7ab2f;
  --violet: #9f6bff;
  --glow: rgba(240, 100, 73, 0.25);
  --on-accent: #ffffff;
  --footer-bg: #271a1b;
  --footer-text: #fff7ef;
  --overlay: rgba(39, 26, 27, 0.68);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", Arial, sans-serif;
  color: var(--ink);
  background: var(--body-wash);
  line-height: 1.6;
  transition: background 420ms ease, color 420ms ease;
}

body.nav-open {
  overflow: hidden;
}

body.modal-open { overflow: hidden; }

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 0;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow), transparent 68%);
  pointer-events: none;
  transform: translate3d(-50%, -50%, 0);
  transition: opacity 220ms ease;
  opacity: 0;
}

.site-header {
  position: fixed;
  inset: 16px 18px auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--glass);
  box-shadow: 0 16px 45px rgba(23, 25, 31, 0.08);
  backdrop-filter: blur(20px);
  transition: background 320ms ease, border-color 320ms ease, box-shadow 320ms ease;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 14px;
  color: var(--on-accent);
  background: var(--ink);
  font-size: 0.85rem;
}

.brand-text {
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a {
  padding: 0.72rem 0.9rem;
  border-radius: 14px;
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.72fr);
  gap: clamp(2rem, 5vw, 5rem);
  min-height: 100vh;
  padding: 9.5rem clamp(1.25rem, 5vw, 5rem) 5rem;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(23, 25, 31, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 25, 31, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, #000, transparent 88%);
  pointer-events: none;
}

.hero-noise {
  position: absolute;
  inset: auto 7% 8% auto;
  width: min(42vw, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    conic-gradient(from 130deg, var(--blue), var(--green), var(--yellow), var(--coral), var(--violet), var(--blue));
  filter: blur(42px);
  opacity: 0.22;
  pointer-events: none;
  transition: background 420ms ease;
}

.hero-copy,
.studio-panel,
.section-band,
.projects-section,
.site-footer {
  position: relative;
  z-index: 1;
}

.hero-copy {
  align-self: center;
  max-width: 780px;
}

.eyebrow,
.section-kicker,
.project-meta {
  margin: 0 0 0.9rem;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  max-width: 840px;
  margin-bottom: 1.35rem;
  font-size: clamp(3.1rem, 8vw, 7.8rem);
}

.hero-lede {
  max-width: 680px;
  color: var(--text-strong);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
}

.hero-actions,
.project-tags,
.quick-stats,
.mini-board {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button,
.project-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.78rem 1.05rem;
  border: 1px solid var(--ink);
  border-radius: 16px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.project-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(23, 25, 31, 0.14);
}

.button.primary,
.project-link {
  color: var(--on-accent);
  background: var(--ink);
}

.button.secondary {
  background: color-mix(in srgb, var(--panel) 72%, transparent);
}

.theme-dock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100%, 690px);
  margin-top: 1.3rem;
  padding: 0.72rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--soft-panel);
  box-shadow: 0 18px 48px rgba(23, 25, 31, 0.08);
  backdrop-filter: blur(18px);
}

.theme-label,
.theme-current {
  margin: 0;
}

.theme-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.theme-current {
  font-weight: 900;
}

.theme-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.theme-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 38px;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: color-mix(in srgb, var(--panel) 70%, transparent);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.theme-chip:hover,
.theme-chip.is-active {
  color: var(--on-accent);
  background: var(--ink);
  border-color: var(--ink);
  transform: translateY(-1px);
}

.swatch {
  width: 16px;
  height: 16px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.26);
}

.studio-swatch {
  background: linear-gradient(135deg, #1f6feb, #0e9f6e 45%, #ff6b57);
}

.night-swatch {
  background: linear-gradient(135deg, #0c111b, #7657ff 55%, #8ab4ff);
}

.matcha-swatch {
  background: linear-gradient(135deg, #279266, #f4c542 55%, #f5f8ed);
}

.sunset-swatch {
  background: linear-gradient(135deg, #f06449, #e7ab2f 55%, #9f6bff);
}

.quick-stats {
  margin-top: 2.4rem;
}

.quick-stats div {
  min-width: 150px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--soft-panel);
}

.quick-stats strong,
.quick-stats span {
  display: block;
}

.quick-stats strong {
  margin-bottom: 0.2rem;
  font-size: 1.05rem;
}

.quick-stats span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.studio-panel {
  align-self: center;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.76);
  background: var(--soft-panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transform-style: preserve-3d;
}

.panel-topbar {
  display: flex;
  gap: 0.45rem;
  padding: 0.4rem 0.35rem 0.9rem;
}

.panel-topbar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.panel-topbar span:nth-child(1) {
  background: var(--coral);
}

.panel-topbar span:nth-child(2) {
  background: var(--yellow);
}

.panel-topbar span:nth-child(3) {
  background: var(--green);
}

.panel-code {
  padding: 1.2rem;
  border-radius: 22px;
  color: #dbeafe;
  color: var(--code-text);
  background: var(--code-bg);
  font: 0.9rem/1.8 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.panel-code p {
  margin: 0;
}

.panel-code span {
  color: var(--code-key);
}

.panel-code .indent {
  padding-left: 1.3rem;
  color: var(--code-accent);
}

.signal-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
}

.signal-card strong,
.signal-card p {
  margin: 0;
}

.signal-card p {
  color: var(--muted);
  font-weight: 800;
}

.signal-ring {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--blue) 12%, var(--panel));
}

.signal-ring span {
  position: absolute;
  border-radius: 999px;
}

.signal-ring span:nth-child(1) {
  inset: 12px;
  border: 8px solid var(--blue);
}

.signal-ring span:nth-child(2) {
  inset: 26px 12px 12px 36px;
  background: var(--coral);
}

.signal-ring span:nth-child(3) {
  width: 14px;
  height: 14px;
  right: 14px;
  top: 14px;
  background: var(--green);
}

.mini-board span,
.project-tags span {
  border-radius: 999px;
  font-weight: 800;
}

.mini-board span {
  padding: 0.65rem 0.78rem;
  background: var(--subtle-bg);
  color: var(--text-strong);
  font-size: 0.84rem;
}

.section-band,
.projects-section {
  padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 5vw, 5rem);
}

.section-band {
  background: var(--paper);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}

.about h2,
.section-heading h2 {
  max-width: 820px;
  margin-bottom: 1rem;
  font-size: clamp(2.1rem, 5vw, 4.5rem);
}

.about p,
.section-heading p {
  max-width: 760px;
  color: var(--text-soft);
  font-size: 1.04rem;
}

.about-focus {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  max-width: 780px;
  margin-top: 2rem;
}

.about-focus div {
  min-height: 112px;
  padding: .95rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: color-mix(in srgb, var(--panel) 76%, transparent);
  box-shadow: 0 14px 32px rgba(23, 25, 31, 0.06);
}

.about-focus span,
.about-focus strong {
  display: block;
}

.about-focus span {
  margin-bottom: .55rem;
  color: var(--coral);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.about-focus strong {
  color: var(--ink);
  font-size: .98rem;
  line-height: 1.22;
}

.portrait-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.8rem;
  width: min(100%, 360px);
  justify-self: end;
}

.portrait-stack figure {
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--subtle-bg);
  box-shadow: 0 16px 35px rgba(23, 25, 31, 0.08);
}

.portrait-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 780px;
  margin: 1rem 0 0;
}

.capability-grid article {
  min-height: 190px;
  padding: 1.05rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
}

.capability-grid span {
  display: inline-block;
  margin-bottom: 1.1rem;
  color: var(--coral);
  font-weight: 900;
}

.capability-grid h3 {
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
}

.capability-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.journey,
.experience { overflow: hidden; }
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; max-width: 1180px; margin: 0 auto; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; top: 25px; right: 12.5%; left: 12.5%; height: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 1rem; text-align: center; }
.timeline-marker { position: relative; z-index: 1; display: grid; width: 52px; height: 52px; margin: 0 auto 1.25rem; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--on-accent); background: var(--ink); font-size: .72rem; font-weight: 900; }
.timeline-phase { margin-bottom: .45rem; color: var(--blue); font-size: .72rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.timeline h3 { margin-bottom: .5rem; font-size: 1.05rem; }
.timeline li > div > p:last-child { margin-bottom: 0; color: var(--muted); font-size: .9rem; }

.experience-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 1180px;
  margin: 0 auto;
}

.experience-item {
  display: flex;
  flex-direction: column;
  min-height: 255px;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 18px 48px rgba(23, 25, 31, 0.08);
  transform-style: preserve-3d;
}

.experience-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem;
  min-height: 34px;
  margin-bottom: 1.35rem;
}

.experience-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: .34rem .55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--panel) 72%, var(--subtle-bg));
}

.experience-meta span:first-child {
  margin-right: auto;
  color: var(--text-strong);
  background: transparent;
}

.experience-item strong {
  display: block;
  margin-bottom: .75rem;
  color: var(--blue);
  font-size: .84rem;
  line-height: 1.28;
  text-transform: uppercase;
}

.experience-item h3 {
  margin-bottom: .5rem;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.08;
}

.experience-item p {
  margin-bottom: 0;
  color: var(--text-soft);
}

.projects-section {
  overflow: hidden;
}

.cs-section {
  background: var(--cs-wash);
}

.design-section {
  background: var(--design-wash);
}

.startup-section { position: relative; z-index: 1; padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 5vw, 5rem); color: var(--ink); background: linear-gradient(135deg, var(--paper), color-mix(in srgb, var(--violet) 10%, var(--subtle-bg))); overflow: hidden; transition: color 420ms ease, background 420ms ease; }
.startup-section::before { content: ""; position: absolute; inset: -20% -10% auto 45%; height: 32rem; background: radial-gradient(circle, color-mix(in srgb, var(--violet) 34%, transparent), transparent 65%); pointer-events: none; }
.startup-shell { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; max-width: 1180px; margin: 0 auto; }
.startup-story h2 { margin-bottom: 1rem; font-size: clamp(2.8rem, 6vw, 6rem); white-space: nowrap; }
.startup-story > p:not(.section-kicker):not(.startup-status) { color: var(--text-soft); }
.startup-lede { font-size: 1.2rem; }
.startup-status { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1rem; color: var(--green); font-size: .8rem; font-weight: 800; text-transform: uppercase; }
.startup-status span { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 6px color-mix(in srgb, var(--green) 18%, transparent); }
.startup-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; margin: 1.35rem 0 1.45rem; }
.startup-proof div { min-height: 112px; padding: .95rem; border: 1px solid var(--line); border-radius: 18px; background: color-mix(in srgb, var(--panel) 74%, transparent); box-shadow: 0 14px 32px rgba(23, 25, 31, 0.07); }
.startup-proof strong, .startup-proof span { display: block; }
.startup-proof strong { margin-bottom: .4rem; color: var(--ink); font-size: 1rem; line-height: 1.12; }
.startup-proof span { color: var(--muted); font-size: .82rem; font-weight: 800; line-height: 1.32; }
.startup-tags { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1.5rem 0; }
.startup-tags span { padding: .45rem .7rem; border: 1px solid var(--line); border-radius: 999px; color: var(--text-strong); background: color-mix(in srgb, var(--panel) 68%, transparent); font-size: .78rem; font-weight: 800; }
.startup-cta { color: var(--on-accent) !important; background: var(--ink) !important; border-color: var(--ink) !important; }
.product-demo { padding: 1rem; border: 1px solid var(--line); border-radius: 26px; color: var(--ink); background: var(--soft-panel); box-shadow: var(--shadow); backdrop-filter: blur(18px); transform-style: preserve-3d; transition: color 420ms ease, background 420ms ease, border-color 420ms ease; }
.demo-topbar { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem .3rem 1rem; color: var(--muted); font-size: .78rem; }
.demo-topbar div { display: flex; gap: .35rem; } .demo-topbar span { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); } .demo-topbar span:nth-child(2) { background: var(--yellow); } .demo-topbar span:nth-child(3) { background: var(--green); }
.demo-score { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: center; padding: clamp(1rem, 4vw, 2rem); border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.score-orbit { display: grid; width: 116px; aspect-ratio: 1; place-content: center; border: 8px solid color-mix(in srgb, var(--blue) 34%, transparent); border-top-color: var(--green); border-right-color: var(--blue); border-radius: 50%; text-align: center; }
.score-orbit strong { font-size: 2rem; line-height: 1; } .score-orbit span, .demo-label, .demo-caption { color: var(--muted); font-size: .76rem; }
.demo-score h3 { margin-bottom: .4rem; font-size: 1.25rem; } .demo-score p { margin-bottom: 0; } .demo-label { margin-bottom: .35rem !important; text-transform: uppercase; font-weight: 800; }
.demo-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem; margin-top: .65rem; }
.demo-metric { display: grid; gap: .4rem; min-height: 78px; padding: .8rem; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: var(--panel); text-align: left; cursor: pointer; transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease; }
.demo-metric:hover, .demo-metric:focus-visible, .demo-metric.is-active { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 11%, var(--panel)); outline: none; transform: translateY(-2px); }
.demo-metric span { color: var(--muted); font-size: .75rem; } .demo-metric strong { font-size: 1.2rem; } .demo-caption { margin: .8rem 0 0; text-align: center; }

.section-heading {
  max-width: 1180px;
  margin: 0 auto 2.5rem;
}

.section-heading.compact {
  text-align: center;
}

.section-heading.compact h2,
.section-heading.compact p {
  margin-left: auto;
  margin-right: auto;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
  max-width: 1180px;
  margin: 0 auto;
}

.project-card {
  position: relative;
  display: flex;
  grid-column: span 3;
  min-height: 340px;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    var(--card-bg),
    radial-gradient(circle at 100% 0%, rgba(31, 111, 235, 0.2), transparent 15rem);
  box-shadow: 0 18px 48px rgba(23, 25, 31, 0.08);
  flex-direction: column;
  cursor: pointer;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--spot-x, 50%) var(--spot-y, 0%), color-mix(in srgb, var(--blue) 18%, transparent), transparent 18rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.project-card:nth-child(2n) {
  background:
    var(--card-bg),
    radial-gradient(circle at 100% 0%, rgba(14, 159, 110, 0.2), transparent 15rem);
}

.project-card:nth-child(3n) {
  background:
    var(--card-bg),
    radial-gradient(circle at 100% 0%, rgba(255, 107, 87, 0.2), transparent 15rem);
}

.project-card:hover,
.project-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 26px 70px rgba(23, 25, 31, 0.14);
  border-color: color-mix(in srgb, var(--blue) 42%, var(--line));
}

.project-card.is-visible:hover,
.project-card.is-visible:focus-within {
  transform: translateY(-6px);
}

.project-card:hover::before,
.project-card:focus-within::before {
  opacity: 1;
}

.project-card > * {
  position: relative;
  z-index: 1;
}

.feature-card {
  grid-column: span 6;
  min-height: 290px;
}

.project-card h3 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.08;
}

.project-card p {
  max-width: 690px;
  color: var(--text-soft);
  font-size: 1rem;
}

.project-tags {
  margin-top: auto;
  padding-top: 1.4rem;
}

.project-tags span {
  padding: 0.46rem 0.72rem;
  color: var(--text-strong);
  background: color-mix(in srgb, var(--panel) 72%, transparent);
  border: 1px solid var(--line);
  font-size: 0.78rem;
}

.project-link {
  align-self: flex-start;
  margin-top: 1.1rem;
}

.project-actions, .startup-actions { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.project-actions { margin-top: 1.1rem; }
.project-actions .project-link { margin-top: 0; }
.startup-actions { margin-top: 1.5rem; }
.case-study-button { min-height: 46px; padding: .78rem 1.05rem; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: var(--panel); font: inherit; font-weight: 800; cursor: pointer; transition: transform 180ms ease, background 180ms ease, border-color 180ms ease; }
.case-study-button:hover, .case-study-button:focus-visible { transform: translateY(-2px); border-color: var(--blue); background: color-mix(in srgb, var(--blue) 10%, var(--panel)); outline: none; }
.button.is-disabled {
  border-color: var(--line);
  color: var(--muted);
  background: color-mix(in srgb, var(--panel) 76%, transparent);
  cursor: default;
}
.button.is-disabled:hover {
  box-shadow: none;
  transform: none;
}
.progress-icon { background: var(--blue); }

.contact-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
  gap: 1rem;
  max-width: 980px;
  margin: 0 auto;
}

.contact-card,
.contact-form {
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: 0 18px 48px rgba(23, 25, 31, 0.08);
}

.contact-card {
  display: grid;
  gap: 0.75rem;
}

.contact-card a,
.contact-card div {
  display: block;
  padding: 1rem;
  border-radius: 20px;
  background: var(--subtle-bg);
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease;
}

.contact-card a:hover {
  transform: translateX(4px);
  background: color-mix(in srgb, var(--blue) 12%, var(--subtle-bg));
}

.contact-card span,
.contact-form span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.contact-card strong {
  display: block;
  margin-top: 0.2rem;
  word-break: break-word;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.45rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.9rem 1rem;
  color: var(--ink);
  background: var(--paper);
  font: inherit;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.12);
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form .button {
  justify-self: start;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1.25rem, 5vw, 5rem);
  color: var(--footer-text);
  background: var(--footer-bg);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--footer-text);
  font-weight: 800;
  text-decoration: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: var(--overlay);
  backdrop-filter: blur(8px);
}

.case-modal { position: fixed; inset: 0; z-index: 55; display: grid; place-items: center; padding: 1rem; background: var(--overlay); backdrop-filter: blur(10px); }
.case-modal[hidden] { display: none; }
.case-modal-panel { position: relative; width: min(100%, 860px); max-height: min(88vh, 780px); padding: clamp(1.4rem, 4vw, 2.5rem); overflow: auto; border: 1px solid var(--line); border-radius: 26px; color: var(--ink); background: var(--panel); box-shadow: var(--shadow); outline: none; }
.case-modal-panel > h2 { max-width: 720px; margin-bottom: 1rem; font-size: clamp(2rem, 5vw, 4rem); }
.case-intro { max-width: 720px; color: var(--text-soft); font-size: 1.08rem; }
.case-close { position: sticky; z-index: 2; top: 0; float: right; display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: var(--subtle-bg); font-size: 1.55rem; line-height: 1; cursor: pointer; }
.case-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 2rem 0; border: 1px solid var(--line); background: var(--line); }
.case-details section { padding: 1.25rem; background: var(--panel); }
.case-details span { color: var(--coral); font-size: .75rem; font-weight: 900; }
.case-details h3 { margin: .65rem 0 .45rem; font-size: 1rem; }
.case-details p { margin: 0; color: var(--muted); font-size: .92rem; }

.modal[hidden] {
  display: none;
}

.modal-card {
  display: grid;
  gap: 0.9rem;
  width: min(100%, 440px);
  padding: 1.35rem;
  border-radius: 26px;
  background: var(--panel);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  outline: none;
}

.modal-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 50%; color: var(--on-accent); background: var(--green); font-size: 1.4rem; font-weight: 900; }
.modal[data-status="error"] .modal-icon { background: var(--coral); }
.modal-fallback { display: grid; gap: .6rem; } .modal-fallback[hidden] { display: none; }

.modal-card h2,
.modal-card p {
  margin: 0;
}

.modal-card a {
  padding: 0.9rem;
  border-radius: 16px;
  background: var(--subtle-bg);
  font-weight: 800;
  text-decoration: none;
}

.modal-card .button { justify-self: start; }

@media (max-width: 860px) { .startup-shell { grid-template-columns: 1fr; } .product-demo { width: 100%; } }
@media (max-width: 520px) { .startup-proof { grid-template-columns: 1fr; } .startup-proof div { min-height: 0; } .demo-score { grid-template-columns: 1fr; } .score-orbit { width: 96px; } .demo-metrics { grid-template-columns: 1fr; } .demo-metric { min-height: 64px; grid-template-columns: 1fr auto; align-items: center; } }

.reveal-on-scroll,
.project-card,
.capability-grid article {
  opacity: 0;
  transform: translateY(22px);
}

.reveal-on-scroll.is-visible,
.project-card.is-visible,
.capability-grid article.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 520ms ease, transform 520ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

@media (max-width: 900px) {
  .hero,
  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .studio-panel {
    max-width: 560px;
  }

  .portrait-stack { width: min(100%, 520px); justify-self: start; }

  .about-focus {
    grid-template-columns: 1fr;
  }

  .about-focus div {
    min-height: 0;
  }

  .capability-grid {
    grid-template-columns: 1fr;
  }

  .experience-list {
    grid-template-columns: 1fr;
  }

  .timeline { grid-template-columns: 1fr; gap: 1.2rem; }
  .timeline::before { top: 26px; bottom: 26px; left: 25px; width: 2px; height: auto; }
  .timeline li { display: grid; grid-template-columns: 52px 1fr; gap: 1rem; padding: 0; text-align: left; }
  .timeline-marker { margin: 0; }

  .project-card,
  .feature-card {
    grid-column: span 6;
  }
}

@media (max-width: 720px) {
  .site-header {
    inset: 10px 10px auto;
    border-radius: 18px;
  }

  .brand-text {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 78px 10px auto;
    display: none;
    padding: 0.65rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--glass);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.9rem;
  }

  .hero {
    padding-top: 7.5rem;
  }

  .theme-dock {
    align-items: stretch;
    flex-direction: column;
  }

  .theme-options {
    justify-content: flex-start;
  }

  .theme-chip {
    flex: 1 1 calc(50% - 0.45rem);
  }

  h1 {
    font-size: clamp(2.8rem, 16vw, 4.6rem);
  }

  .startup-story h2 { white-space: normal; }

  .quick-stats {
    display: grid;
    grid-template-columns: 1fr;
  }

  .experience-item {
    min-height: 0;
  }

  .experience-meta {
    gap: .3rem;
    margin-bottom: 1rem;
  }

  .experience-meta span {
    min-height: 28px;
    padding: .28rem .38rem;
    font-size: .66rem;
  }

  .experience-meta span:first-child {
    margin-right: 0;
  }

  .project-card {
    min-height: 0;
  }

  .site-footer {
    flex-direction: column;
  }

  .case-details { grid-template-columns: 1fr; }
  .case-modal-panel { max-height: 92vh; border-radius: 20px; }
}

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

  .cursor-glow {
    display: none;
  }

  .reveal-on-scroll,
  .project-card,
  .capability-grid article {
    opacity: 1;
    transform: none;
  }
}
