:root {
  --bg: oklch(0.155 0.012 265);
  --bg2: oklch(0.195 0.014 265);
  --text: oklch(0.965 0.008 265);
  --muted: oklch(0.715 0.014 265);
  --faint: oklch(0.58 0.014 265);
  --line: oklch(1 0 0 / 0.09);
  --glass: oklch(1 0 0 / 0.045);
  --accent: oklch(0.82 0.13 196);
  --accent2: oklch(0.70 0.145 292);
  --accent-ink: var(--accent);
  --badge-green: oklch(0.85 0.16 145);
  --badge-green-border: oklch(0.85 0.16 145 / 0.28);
  --badge-green-bg: oklch(0.85 0.16 145 / 0.07);
  --badge-yellow: oklch(0.88 0.15 95);
  --badge-yellow-border: oklch(0.88 0.15 95 / 0.28);
  --badge-yellow-bg: oklch(0.88 0.15 95 / 0.07);
  --panel: oklch(1 0 0 / 0.05);
  --header-bg: oklch(0.155 0.012 265 / 0.72);
  --tag-bg: oklch(1 0 0 / 0.035);
  --soft-border: oklch(1 0 0 / 0.22);
  --timeline-dot-border: oklch(1 0 0 / 0.26);
  --input-bg: oklch(1 0 0 / 0.05);
  --shadow-color: oklch(0 0 0 / 0.35);
  --glow: 0.55;
  --hex-opacity: 0.85;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Space Grotesk", Helvetica, Arial, sans-serif;
}
[data-theme="light"] {
  --bg: oklch(0.94 0.028 75);
  --bg2: oklch(0.895 0.035 75);
  --text: oklch(0.20 0.012 265);
  --muted: oklch(0.40 0.014 265);
  --faint: oklch(0.50 0.014 265);
  --line: oklch(0.32 0.03 60 / 0.13);
  --glass: oklch(0.32 0.03 60 / 0.045);
  --accent: oklch(0.55 0.14 85);
  --accent2: oklch(0.42 0.12 68);
  --accent-ink: oklch(0.42 0.14 85);
  --panel: oklch(1 0 0 / 0.65);
  --header-bg: oklch(0.94 0.028 75 / 0.78);
  --tag-bg: oklch(0.32 0.03 60 / 0.05);
  --soft-border: oklch(0.32 0.03 60 / 0.28);
  --timeline-dot-border: oklch(0.32 0.03 60 / 0.32);
  --input-bg: oklch(1 0 0 / 0.9);
  --shadow-color: oklch(0.32 0.03 60 / 0.14);
  --badge-green: oklch(0.42 0.13 145);
  --badge-green-border: oklch(0.42 0.13 145 / 0.32);
  --badge-green-bg: oklch(0.42 0.13 145 / 0.08);
  --badge-yellow: oklch(0.46 0.15 85);
  --badge-yellow-border: oklch(0.46 0.15 85 / 0.32);
  --badge-yellow-bg: oklch(0.46 0.15 85 / 0.09);
  --glow: 0.33;
  --hex-opacity: 0.35;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); -webkit-font-smoothing: antialiased;
  text-wrap: pretty; transition: background-color 0.35s ease, color 0.35s ease;
}
a { color: var(--accent-ink); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--text); }
::selection { background: oklch(from var(--accent) l c h / 0.28); }
input, textarea, button { font: inherit; color: inherit; }
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--faint); }
@keyframes drift { 0% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(2%,-3%,0) scale(1.08); } 100% { transform: translate3d(0,0,0) scale(1); } }
@keyframes blink { 0%,49% { opacity: 1; } 50%,100% { opacity: 0; } }

/* Smooth theme crossfade for browsers that support the View Transitions API */
::view-transition-old(root), ::view-transition-new(root) {
  animation-duration: 0.4s;
  animation-timing-function: ease;
}

.page { position: relative; overflow-x: clip; min-height: 100vh; }

.glow-layer { position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: var(--glow); transition: opacity 0.35s ease; }
.glow-orb-a { position: absolute; top: -22vh; left: 50%; width: 120vw; height: 90vh; transform: translateX(-50%); background: radial-gradient(45% 55% at 38% 40%, oklch(from var(--accent2) l c h / 0.30), transparent 70%), radial-gradient(40% 50% at 68% 30%, oklch(from var(--accent) l c h / 0.22), transparent 70%); filter: blur(20px); animation: drift 22s ease-in-out infinite; }
.glow-orb-b { position: absolute; bottom: -30vh; right: -10vw; width: 70vw; height: 70vh; background: radial-gradient(circle at 50% 50%, oklch(from var(--accent) l c h / 0.14), transparent 65%); filter: blur(10px); animation: drift 28s ease-in-out infinite reverse; }

.hex-mask { position: fixed; inset: 0; pointer-events: none; z-index: 0; mask-image: radial-gradient(120% 100% at 50% 0%, black 55%, transparent 100%); -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, black 55%, transparent 100%); }
.hex-pattern {
  position: absolute; inset: 0; opacity: var(--hex-opacity); background-color: var(--line);
  transition: opacity 0.35s ease, background-color 0.35s ease;
  mask-image: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2245.03%22 height=%2278%22 viewBox=%220 0 45.03 78%22%3E%3Cg fill=%22none%22 stroke=%22black%22 stroke-width=%221.4%22%3E%3Cpolygon points=%220,-26 22.52,-13 22.52,13 0,26 -22.52,13 -22.52,-13%22/%3E%3Cpolygon points=%2245.03,-26 67.55,-13 67.55,13 45.03,26 22.52,13 22.52,-13%22/%3E%3Cpolygon points=%2222.52,13 45.03,26 45.03,52 22.52,65 0,52 0,26%22/%3E%3Cpolygon points=%220,52 22.52,65 22.52,91 0,104 -22.52,91 -22.52,65%22/%3E%3Cpolygon points=%2245.03,52 67.55,65 67.55,91 45.03,104 22.52,91 22.52,65%22/%3E%3C/g%3E%3C/svg%3E');
  -webkit-mask-image: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2245.03%22 height=%2278%22 viewBox=%220 0 45.03 78%22%3E%3Cg fill=%22none%22 stroke=%22black%22 stroke-width=%221.4%22%3E%3Cpolygon points=%220,-26 22.52,-13 22.52,13 0,26 -22.52,13 -22.52,-13%22/%3E%3Cpolygon points=%2245.03,-26 67.55,-13 67.55,13 45.03,26 22.52,13 22.52,-13%22/%3E%3Cpolygon points=%2222.52,13 45.03,26 45.03,52 22.52,65 0,52 0,26%22/%3E%3Cpolygon points=%220,52 22.52,65 22.52,91 0,104 -22.52,91 -22.52,65%22/%3E%3Cpolygon points=%2245.03,52 67.55,65 67.55,91 45.03,104 22.52,91 22.52,65%22/%3E%3C/g%3E%3C/svg%3E');
  mask-repeat: repeat; -webkit-mask-repeat: repeat; mask-size: 45.03px 78px; -webkit-mask-size: 45.03px 78px;
}

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s cubic-bezier(0.2,0.7,0.2,1), transform 0.8s cubic-bezier(0.2,0.7,0.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Header */
header {
  position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: var(--header-bg); border-bottom: 1px solid var(--line);
  transition: background-color 0.35s ease, border-color 0.35s ease;
}
.progress-bar { height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent2)); width: 0%; transition: width 90ms linear; }
nav { max-width: 1440px; margin: 0 auto; padding: 14px clamp(18px, 4vw, 40px); display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.logo { font-family: var(--mono); font-size: 19px; font-weight: 600; letter-spacing: 0.02em; color: var(--text); display: flex; align-items: center; gap: 11px; }
.logo img { width: 46px; height: 46px; object-fit: contain; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); flex-wrap: wrap; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.04em; }
.nav-link { color: var(--muted); text-transform: lowercase; }
.nav-link:hover { color: var(--text); }

.nav-link-dropdown { position: relative; display: inline-flex; align-items: center; }
.nav-link-caret { display: inline-block; margin-left: 4px; font-size: 9px; transform: translateY(-1px); transition: transform 0.2s ease; }
.nav-link-dropdown:hover .nav-link-caret, .nav-link-dropdown:focus-within .nav-link-caret { transform: translateY(-1px) rotate(180deg); }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(-4px);
  padding-top: 14px; opacity: 0; visibility: hidden; pointer-events: none; z-index: 30;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.nav-link-dropdown:hover .nav-dropdown-menu,
.nav-link-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.nav-dropdown-panel {
  min-width: 232px; padding: 8px; display: flex; flex-direction: column; gap: 2px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg);
  box-shadow: 0 20px 50px var(--shadow-color);
}
.nav-dropdown-item {
  display: block; padding: 9px 12px; border-radius: 8px; color: var(--muted);
  font-size: 12.5px; letter-spacing: 0.02em; white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.nav-dropdown-item:hover, .nav-dropdown-item:focus-visible { color: var(--text); background: var(--tag-bg); }

.theme-toggle {
  position: relative; width: 40px; height: 22px; flex: none; border-radius: 999px; border: 1px solid var(--line);
  background: var(--glass); backdrop-filter: blur(10px); cursor: pointer; padding: 0;
  transition: border-color 0.25s ease, background-color 0.35s ease;
}
.theme-toggle:hover { border-color: oklch(from var(--accent) l c h / 0.5); }
.theme-toggle .icon { position: absolute; top: 50%; transform: translateY(-50%); font-size: 10px; line-height: 1; color: var(--faint); pointer-events: none; }
.theme-toggle .icon--sun { left: 4px; }
.theme-toggle .icon--moon { right: 4px; }
.theme-toggle-thumb {
  position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  transition: left 0.25s cubic-bezier(0.2,0.7,0.2,1); box-shadow: 0 2px 8px var(--shadow-color);
}
[data-theme="light"] .theme-toggle-thumb { left: 21px; }

.lang-toggle { width: 52px; }
.lang-toggle .lang-flag {
  top: 4px; transform: none;
  width: 18px; height: 12px; border-radius: 2px;
  background-size: cover; background-position: center;
  box-shadow: 0 0 0 1px var(--line);
}
.lang-toggle .lang-flag--en {
  left: 5px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3CclipPath id='ukj'%3E%3Cpath d='M30,15 h30 v15 z v15 h-30 z h-30 v-15 z v-15 h30 z'/%3E%3C/clipPath%3E%3Crect width='60' height='30' fill='%23012169'/%3E%3Cpath d='M0,0 L60,30 M60,0 L0,30' stroke='%23fff' stroke-width='6'/%3E%3Cpath d='M0,0 L60,30 M60,0 L0,30' clip-path='url(%23ukj)' stroke='%23C8102E' stroke-width='4'/%3E%3Cpath d='M30,0 v30 M0,15 h60' stroke='%23fff' stroke-width='10'/%3E%3Cpath d='M30,0 v30 M0,15 h60' stroke='%23C8102E' stroke-width='6'/%3E%3C/svg%3E");
}
.lang-toggle .lang-flag--de {
  left: 29px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 3'%3E%3Crect width='5' height='3' fill='%23000'/%3E%3Crect width='5' height='2' y='1' fill='%23DD0000'/%3E%3Crect width='5' height='1' y='2' fill='%23FFCE00'/%3E%3C/svg%3E");
}
.lang-toggle-underline {
  position: absolute; bottom: 3px; left: 5px; width: 18px; height: 2px; border-radius: 2px;
  background: var(--accent);
  transition: left 0.25s cubic-bezier(0.2,0.7,0.2,1);
}
html[lang="de"] .lang-toggle-underline { left: 29px; }

main { position: relative; z-index: 1; max-width: 1440px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px); }

.section { padding: clamp(64px, 10vh, 130px) 0; scroll-margin-top: 90px; }
.section--hero { padding: clamp(72px, 12vh, 150px) 0 clamp(64px, 10vh, 120px); scroll-margin-top: 90px; }
.section--contact { padding: clamp(64px, 10vh, 130px) 0 clamp(56px, 8vh, 100px); scroll-margin-top: 90px; }

/* Hero */
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; padding: 7px 13px; border-radius: 999px; border: 1px solid; transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; }
.badge--work { color: var(--accent-ink); border-color: oklch(from var(--accent) l c h / 0.28); background: oklch(from var(--accent) l c h / 0.07); }
.badge--work .badge-dot { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.badge--green { color: var(--badge-green); border-color: var(--badge-green-border); background: var(--badge-green-bg); }
.badge--green .badge-dot { background: var(--badge-green); box-shadow: 0 0 10px var(--badge-green); }
.badge--yellow { color: var(--badge-yellow); border-color: var(--badge-yellow-border); background: var(--badge-yellow-bg); }
.badge--yellow .badge-dot { background: var(--badge-yellow); box-shadow: 0 0 10px var(--badge-yellow); }

h1 { margin: 24px 0 0; font-size: clamp(34px, 6vw, 72px); line-height: 0.98; letter-spacing: -0.03em; font-weight: 600; }
.tagline { margin: 22px 0 0; font-family: var(--mono); font-size: clamp(14px, 2.1vw, 19px); letter-spacing: 0.02em; color: var(--muted); }
.caret { display: inline-block; width: 9px; height: 1.05em; margin-left: 6px; vertical-align: -0.16em; background: var(--accent); animation: blink 1.1s step-end infinite; }
.hero-bio { margin: 26px 0 0; max-width: 62ch; display: grid; gap: 14px; }
.hero-bio p { margin: 0; font-size: clamp(16px, 1.5vw, 18px); line-height: 1.65; color: var(--muted); }
.hero-actions { margin-top: 38px; display: flex; gap: 14px; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 24px; border-radius: 12px; font-family: var(--mono); font-size: 13.5px; letter-spacing: 0.04em; }
.btn-primary {
  padding: 15px 26px; color: oklch(0.16 0.02 265); background: linear-gradient(135deg, var(--accent), oklch(from var(--accent2) calc(l + 0.06) c h));
  box-shadow: 0 10px 34px oklch(from var(--accent) l c h / 0.28); transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 42px oklch(from var(--accent) l c h / 0.42); }
.btn-outline {
  color: var(--text); border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(10px);
  transition: border-color 0.25s ease, transform 0.25s ease, background-color 0.35s ease;
}
.btn-outline:hover { border-color: oklch(from var(--accent2) l c h / 0.6); transform: translateY(-2px); }

/* Section eyebrow */
.eyebrow-row { display: flex; align-items: center; gap: 16px; }
.eyebrow-label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-ink); }
.eyebrow-line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }

h2 { margin: 0; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.12; letter-spacing: -0.025em; font-weight: 600; }

/* About */
.about-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(28px, 4vw, 56px); align-items: start; }
.about-copy p { margin: 22px 0 0; font-size: 17px; line-height: 1.7; color: var(--muted); }
.about-copy p:first-of-type { margin-top: 22px; }
.about-facts { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--faint); }
.about-facts span { padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; transition: border-color 0.35s ease; }

.stack-card {
  border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(14px); border-radius: 18px; padding: clamp(22px, 3vw, 32px);
  transition: border-color 0.35s ease, background-color 0.35s ease;
}
.stack-card-label { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.stack-groups { margin-top: 20px; display: grid; gap: 24px; }
.stack-group-title { font-family: var(--mono); font-size: 12px; color: var(--accent-ink); letter-spacing: 0.08em; }
.stack-grid { margin-top: 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 10px; }

.tag {
  font-family: var(--mono); font-size: 12.5px; text-align: center; padding: 11px 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--tag-bg);
  transition: border-color 0.2s ease, transform 0.2s ease, color 0.2s ease, background-color 0.35s ease;
}
.tag--accent:hover { border-color: oklch(from var(--accent) l c h / 0.55); color: var(--accent-ink); transform: translateY(-2px); }
.tag--accent2:hover { border-color: oklch(from var(--accent2) l c h / 0.6); color: var(--text); transform: translateY(-2px); }
.tag--soft:hover { border-color: var(--soft-border); transform: translateY(-2px); }

/* Projects */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.project-card {
  position: relative;
  border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(14px); border-radius: 18px; padding: 26px;
  display: flex; flex-direction: column; gap: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.35s ease;
}
.project-card-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; cursor: pointer; }
.project-card--accent:hover { border-color: oklch(from var(--accent) l c h / 0.45); box-shadow: 0 18px 50px var(--shadow-color); }
.project-card--accent2:hover { border-color: oklch(from var(--accent2) l c h / 0.5); box-shadow: 0 18px 50px var(--shadow-color); }
.project-card-arrow {
  position: absolute; top: 24px; right: 26px; font-family: var(--mono); font-size: 15px; line-height: 1;
  color: var(--faint); opacity: 0.6; pointer-events: none; transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}
.project-card:hover .project-card-arrow { opacity: 1; color: var(--text); transform: translate(3px, -3px); }
.project-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.project-head h3 { margin: 0; font-size: 21px; letter-spacing: -0.015em; font-weight: 600; }
.project-year { font-family: var(--mono); font-size: 11.5px; color: var(--faint); }
.project-desc { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--muted); }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; padding: 5px 9px; border-radius: 6px; color: var(--muted); background: var(--tag-bg); border: 1px solid var(--line); transition: background-color 0.35s ease, border-color 0.35s ease; }
.chip--accent { color: var(--accent-ink); background: oklch(from var(--accent) l c h / 0.10); border: 1px solid oklch(from var(--accent) l c h / 0.22); }
.project-links { position: relative; z-index: 2; margin-top: auto; padding-top: 8px; display: flex; gap: 18px; font-family: var(--mono); font-size: 12.5px; }
.link-live { color: var(--text); border-bottom: 1px solid oklch(from var(--accent) l c h / 0.4); padding-bottom: 2px; }
.link-live:hover { color: var(--accent-ink); }
.link-source { color: var(--faint); }
.link-source:hover { color: var(--text); }

/* Agentic AI */
.prose { margin-top: 28px; max-width: 74ch; }
.prose p { margin: 22px 0 0; font-size: 17px; line-height: 1.7; color: var(--muted); }
.prose p:first-of-type { margin-top: 22px; }

/* Contact */
.contact-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(28px, 4vw, 56px); align-items: start; }
.contact-lede { margin: 20px 0 0; max-width: 44ch; font-size: 17px; line-height: 1.7; color: var(--muted); }
.contact-links { margin-top: 30px; display: grid; gap: 12px; }
.contact-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(10px); font-family: var(--mono); font-size: 13.5px; color: var(--text);
  transition: border-color 0.25s ease, transform 0.25s ease, background-color 0.35s ease;
}
.contact-row:hover { border-color: oklch(from var(--accent) l c h / 0.5); transform: translateX(3px); }
.contact-row .contact-action { color: var(--accent-ink); }

h1, h2, h3 { transition: color 0.35s ease; }

footer {
  border-top: 1px solid var(--line); padding: 28px 0 44px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: 12px; color: var(--faint);
  transition: border-color 0.35s ease;
}
.footer-link { color: var(--faint); }
.footer-link:hover { color: var(--accent-ink); }

/* ============ Project detail pages (shared with projects/*.html) ============ */
.detail-main { max-width: 1180px; }

.breadcrumb-back { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12.5px; color: var(--faint); }
.breadcrumb-back:hover { color: var(--text); }

.cs-hero { padding: clamp(48px, 8vh, 96px) 0 0; }
.cs-title { margin: 22px 0 0; font-size: clamp(40px, 8vw, 92px); line-height: 0.96; letter-spacing: -0.035em; font-weight: 600; }
.cs-title .gradient-text { background: linear-gradient(96deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cs-lede { margin: 24px 0 0; max-width: 58ch; font-size: clamp(16px, 1.8vw, 19px); line-height: 1.65; color: var(--muted); }
.cs-actions { margin-top: 30px; display: flex; gap: 13px; flex-wrap: wrap; }

.meta-strip, .stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.meta-strip { margin-top: clamp(36px, 6vh, 60px); }
.meta-strip > div, .stat-strip > div { background: var(--panel); backdrop-filter: blur(10px); padding: 18px 20px; }
.meta-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--faint); }
.meta-value { margin-top: 8px; font-size: 15px; line-height: 1.5; }

.hero-frame { margin-top: clamp(40px, 6vh, 64px); position: relative; border: 1px solid var(--line); border-radius: 20px; padding: 10px; background: var(--panel); backdrop-filter: blur(14px); box-shadow: 0 30px 90px var(--shadow-color); }
.hero-frame-bar { display: flex; align-items: center; gap: 8px; padding: 6px 10px 12px; }
.hero-frame-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--tag-bg); border: 1px solid var(--line); }
.hero-frame-url { margin-left: 10px; font-family: var(--mono); font-size: 11.5px; color: var(--faint); }

.img-slot {
  position: relative; display: flex; align-items: center; justify-content: center; text-align: center;
  border: 1px dashed var(--soft-border); border-radius: 12px; background: var(--tag-bg);
  color: var(--faint); font-family: var(--mono); font-size: 12.5px; padding: 20px; min-height: 160px;
  overflow: hidden;
}
.img-slot img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }

.phone-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.phone-frame {
  position: relative; flex: 0 1 240px; aspect-ratio: 9 / 18; overflow: hidden;
  border: 1px solid var(--line); border-radius: 20px; background: var(--tag-bg);
  box-shadow: 0 16px 40px var(--shadow-color);
}
.phone-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

.detail-section { padding: clamp(56px, 9vh, 108px) 0 0; scroll-margin-top: 90px; }
.detail-section h2 { margin: 0; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 600; }
.detail-section p { margin: 18px 0 0; font-size: 17px; line-height: 1.7; color: var(--muted); max-width: 74ch; }

.overview-grid { margin-top: 38px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(26px, 4vw, 56px); }
.info-tile { border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(14px); border-radius: 16px; padding: 22px; transition: border-color 0.3s ease, background-color 0.35s ease; }
.info-tile-label { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent-ink); }
.info-tile p { margin: 12px 0 0; font-size: 15.5px; line-height: 1.65; color: var(--muted); }
.info-tile-stack { display: grid; gap: 14px; align-content: start; }

.feature-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: clamp(24px, 4vw, 52px); align-items: center; margin-top: clamp(44px, 7vh, 80px); }
.feature-row:first-of-type { margin-top: 40px; }
.feature-row .img-slot { aspect-ratio: 4 / 3; border-radius: 18px; box-shadow: 0 20px 60px var(--shadow-color); min-height: 0; }
.feature-eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--faint); }
.feature-row h3 { margin: 14px 0 0; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.022em; font-weight: 600; line-height: 1.15; }
.feature-row p { margin: 16px 0 0; font-size: 16.5px; line-height: 1.7; color: var(--muted); max-width: 46ch; }
.feature-row-tags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }

.feature-row--stacked { display: block; }
.feature-row--stacked p { max-width: 74ch; }
.feature-row--stacked .img-slot {
  margin: 30px auto 0; max-width: 1040px; aspect-ratio: auto; height: auto; min-height: 0;
}
.feature-row--stacked .img-slot img { height: auto; object-fit: contain; }

.arch-panel { margin-top: clamp(48px, 7vh, 80px); border: 1px solid var(--line); background: var(--panel); backdrop-filter: blur(14px); border-radius: 20px; padding: clamp(22px, 3.4vw, 38px); }
.arch-panel-label { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.arch-grid { margin-top: 22px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.arch-tile { border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: var(--tag-bg); }
.arch-tile-label { font-family: var(--mono); font-size: 12px; color: var(--accent-ink); }
.arch-tile-list { margin-top: 10px; font-family: var(--mono); font-size: 12.5px; line-height: 1.9; color: var(--muted); }

.feature-grid { margin-top: 34px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.feature-card { border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(14px); border-radius: 14px; padding: 20px; transition: border-color 0.3s ease, background-color 0.35s ease; }
.feature-card h3 { margin: 0 0 8px; font-size: 16px; font-weight: 600; }
.feature-card p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--muted); }

.gallery-grid { margin-top: 30px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.gallery-grid .img-slot { aspect-ratio: 4 / 3; border-radius: 16px; min-height: 0; }

.carousel { position: relative; margin-top: 30px; }
.carousel-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  border-radius: 18px; box-shadow: 0 20px 60px var(--shadow-color);
  scrollbar-width: none; -ms-overflow-style: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide {
  flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 16 / 9;
  display: flex; align-items: center; justify-content: center; background: var(--tag-bg);
}
.carousel-slide img { width: 100%; height: 100%; object-fit: contain; display: block; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; flex: none;
  border: 1px solid var(--line); background: var(--panel); backdrop-filter: blur(10px); color: var(--text);
  font-size: 19px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0;
  transition: border-color 0.25s ease, background-color 0.35s ease, transform 0.2s ease;
}
.carousel-btn:hover { border-color: oklch(from var(--accent) l c h / 0.5); transform: translateY(-50%) scale(1.06); }
.carousel-btn--prev { left: 14px; }
.carousel-btn--next { right: 14px; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.carousel-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--line); border: none; padding: 0; cursor: pointer;
  transition: background-color 0.25s ease, transform 0.25s ease;
}
.carousel-dot.is-active { background: var(--accent); transform: scale(1.35); }

.framework-grid { margin-top: 34px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(20px, 3vw, 32px); }
.framework-card { border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(14px); border-radius: 18px; padding: clamp(22px, 3vw, 30px); transition: border-color 0.3s ease, background-color 0.35s ease; }
.framework-card-title { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.framework-badge { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); flex: none; }
.framework-card p { margin: 14px 0 0; font-size: 15.5px; line-height: 1.65; color: var(--muted); }
.framework-card-cite { margin-top: 14px; font-family: var(--mono); font-size: 12px; color: var(--faint); }

.reflection-grid { margin-top: 34px; display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: clamp(24px, 4vw, 52px); }
.reflection-grid h3 { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: -0.018em; }
.reflection-list { margin-top: 16px; display: grid; gap: 12px; }
.reflection-item { display: flex; gap: 12px; font-size: 15.5px; line-height: 1.6; color: var(--muted); }
.reflection-mark { font-family: var(--mono); flex: none; }
.reflection-mark--plus { color: var(--accent-ink); }
.reflection-mark--minus { color: var(--faint); }
.reflection-mark--next { color: var(--accent-ink); font-family: var(--mono); }

.next-project-card {
  margin-top: clamp(56px, 9vh, 104px); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  border: 1px solid var(--line); background: var(--panel); backdrop-filter: blur(14px); border-radius: 20px; padding: clamp(26px, 4vw, 44px); color: var(--text);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.35s ease;
}
.next-project-card:hover { border-color: oklch(from var(--accent2) l c h / 0.5); box-shadow: 0 20px 60px var(--shadow-color); color: var(--text); }
.next-project-label { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.next-project-title { margin-top: 10px; font-size: clamp(24px, 3.2vw, 36px); letter-spacing: -0.03em; font-weight: 600; }
.next-project-desc { margin-top: 8px; font-size: 15.5px; color: var(--muted); }
.next-project-arrow { font-family: var(--mono); font-size: 13px; color: var(--accent-ink); flex: none; }

.detail-footer { margin-top: clamp(52px, 8vh, 96px); max-width: 1180px; }

.placeholder-text { opacity: 0.65; font-style: italic; }
