:root {
  --bg: #08090b;
  --bg-soft: #151820;
  --text: #f3f0ec;
  --muted: #aaa6a0;
  --subtle: #6f737d;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.18);
  --red: #c84a3f;
  --red-soft: rgba(200, 74, 63, 0.18);
  --blue-soft: rgba(55, 93, 145, 0.2);
  --green: #4f9f7a;
  --green-soft: rgba(79, 159, 122, 0.16);
  --metal: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02) 45%, rgba(0,0,0,0.3));
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  --radius: 8px;
  --max: 1180px;
  --header-height: 76px;
  --pointer-x: 50%;
  --pointer-y: 50%;
  --pointer-speed: 0;
  --context-rgb: 200, 74, 63;
  --spring: linear(0, .006, .025 2.8%, .101 6.1%, .539 18.9%, .721 24.4%, .849 30.2%, .937 36.6%, .987 43.8%, 1.013 51.8%, 1.021 59.7%, 1.017 68.7%, 1.007 79.4%, 1.001 89.8%, 1);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(var(--context-rgb), 0.1), transparent 22rem),
    radial-gradient(circle at 80% 10%, rgba(55, 93, 145, 0.18), transparent 30rem),
    linear-gradient(180deg, #08090b 0%, #0c0d10 48%, #090a0d 100%);
  line-height: 1.55;
  letter-spacing: 0;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
main { min-height: 70vh; }
::selection { background: rgba(200, 74, 63, 0.42); }
:focus-visible { outline: 2px solid rgba(var(--context-rgb), 0.9); outline-offset: 4px; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

/* Decode overlays are short-lived; the hidden source keeps final layout and semantics stable. */
[data-decode-state="active"] { position: relative; }
.decode-source { visibility: hidden; text-shadow: none; }
.decode-visual {
  position: absolute;
  z-index: 1;
  left: var(--decode-left);
  top: var(--decode-top);
  width: var(--decode-width);
  height: var(--decode-height);
  overflow: visible;
  color: currentColor;
  white-space: pre-wrap;
  pointer-events: none;
  user-select: none;
  contain: paint;
}
[data-reveal-state="queued"] {
  opacity: 0;
  transform: translate3d(0, .72rem, 0);
  filter: blur(3px);
}
[data-reveal-state="visible"] {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
  transition:
    opacity 1120ms ease,
    transform 1260ms var(--spring),
    filter 960ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.ambient-field, .pointer-halo { pointer-events: none; position: fixed; inset: 0; z-index: 0; }
.ambient-field {
  background: linear-gradient(110deg, transparent 38%, rgba(255,255,255,0.035) 49%, transparent 60%), repeating-linear-gradient(90deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 88px);
  mask-image: radial-gradient(circle at 50% 20%, black, transparent 74%);
  opacity: 0.42;
  animation: ambient-drift 18s ease-in-out infinite alternate;
}
@keyframes ambient-drift { from { transform: translate3d(-1.5%,0,0); opacity: .34; } to { transform: translate3d(1.5%,1%,0); opacity: .46; } }
.pointer-halo {
  width: 25rem;
  height: 19rem;
  margin: -9.5rem 0 0 -12.5rem;
  border-radius: 47% 53% 58% 42%;
  background: radial-gradient(ellipse at 42% 44%, rgba(255,255,255,0.1), rgba(var(--context-rgb), 0.12) 26%, rgba(var(--context-rgb), 0.045) 49%, transparent 71%);
  filter: blur(calc(10px + var(--pointer-speed) * 8px));
  mix-blend-mode: screen;
  opacity: calc(0.38 + var(--pointer-speed) * 0.16);
  transition: background 700ms ease, opacity 400ms ease;
  will-change: transform;
}

.diagnostic-companion {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--subtle);
  background: rgba(8,9,11,0.66);
  backdrop-filter: blur(10px);
  font: 0.62rem/1 ui-monospace, monospace;
  letter-spacing: 0.08em;
  opacity: 0.72;
}
.diagnostic-companion i { width: 0.35rem; aspect-ratio: 1; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(79,159,122,0.9); animation: diagnostic-pulse 3.8s ease-in-out infinite; }
@keyframes diagnostic-pulse { 0%, 84%, 100% { opacity: 0.35; } 88% { opacity: 1; } }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-height);
  padding: 0 3vw;
  border-bottom: 1px solid rgba(var(--context-rgb), 0.18);
  background:
    linear-gradient(90deg, rgba(var(--context-rgb),0.08), transparent 34%, rgba(255,255,255,0.025)),
    rgba(8, 9, 11, 0.82);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 0.65rem; font-weight: 800; }
.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.25rem;
  aspect-ratio: 1;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: radial-gradient(circle at 70% 28%, rgba(79,159,122,0.18), transparent 28%), var(--metal);
  color: var(--red);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16);
  font-family: ui-monospace, monospace;
  letter-spacing: -0.02em;
}
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; width: .3rem; aspect-ratio: 1; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px rgba(200,74,63,.65); }
.brand-mark::before { left: .32rem; top: .32rem; }
.brand-mark::after { right: .32rem; bottom: .32rem; background: var(--green); box-shadow: 0 0 10px rgba(79,159,122,.65); }
.nav-links { display: flex; justify-content: center; gap: clamp(0.35rem, 1vw, 1rem); }
.nav-links a, .site-footer a { color: var(--muted); font-size: 0.92rem; transition: color 180ms ease, background 180ms ease; }
.nav-links a { padding: 0.45rem 0.7rem; border-radius: var(--radius); }
.nav-links a:hover, .nav-links a[data-active="true"], .site-footer a:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.header-tools { display: inline-flex; align-items: center; justify-content: flex-end; gap: 0.55rem; }
.live-clock { min-width: 4.2rem; color: var(--subtle); font-family: ui-monospace, monospace; font-size: 0.82rem; text-align: right; }
.icon-button {
  min-width: 4.8rem;
  min-height: 2.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(255,255,255,0.045);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  transition: border-color 180ms ease, background 180ms ease;
}
.icon-button[aria-pressed="true"] { border-color: rgba(79,159,122,0.42); background: rgba(79,159,122,0.09); }
.sound-glyph { width: 0.34rem; aspect-ratio: 1; border-radius: 50%; background: var(--subtle); box-shadow: 0 0 0 rgba(79,159,122,0); transition: background 180ms ease, box-shadow 180ms ease; }
.icon-button[aria-pressed="true"] .sound-glyph { background: var(--green); box-shadow: 0 0 9px rgba(79,159,122,0.8); }
.language-control { position: relative; flex: 0 0 auto; }
.language-summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .32rem;
  min-width: 3.9rem;
  min-height: 2.3rem;
  padding: .42rem .55rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(255,255,255,.045);
  cursor: pointer;
  font: 700 .75rem/1 ui-monospace, monospace;
  list-style: none;
  user-select: none;
}
.language-summary::-webkit-details-marker { display: none; }
.language-summary:hover, .language-control[open] .language-summary { border-color: rgba(var(--context-rgb),.48); background: rgba(var(--context-rgb),.1); }
.language-chevron { transition: transform 180ms ease; }
.language-control[open] .language-chevron { transform: rotate(180deg); }
.language-panel {
  position: absolute;
  top: calc(100% + .55rem);
  right: 0;
  width: min(21rem, calc(100vw - 1rem));
  max-height: calc(100vh - var(--header-height) - 1rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(10,12,16,.98);
  box-shadow: 0 24px 70px rgba(0,0,0,.55);
  backdrop-filter: blur(20px);
}
.language-section-label { margin: 0; padding: .65rem .7rem .35rem; color: var(--subtle); font: 700 .62rem/1 ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; }
.language-pinned { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem; padding: 0 .55rem .6rem; border-bottom: 1px solid var(--line); }
.language-pinned a, .language-list a { min-width: 0; border: 1px solid transparent; border-radius: 6px; color: var(--text); background: rgba(255,255,255,.025); }
.language-pinned a { display: grid; gap: .12rem; padding: .55rem .6rem; }
.language-pinned a[aria-current="page"] { border-color: rgba(var(--context-rgb),.45); background: rgba(var(--context-rgb),.12); }
.language-pinned span, .language-list span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.language-pinned small, .language-list small { color: var(--subtle); font: .6rem/1.2 ui-monospace, monospace; }
.language-auto-head { flex: 0 0 auto; padding-bottom: .45rem; border-bottom: 1px solid var(--line); }
.language-search { display: block; padding: 0 .55rem; }
.language-search input { width: 100%; min-height: 2.25rem; padding: .42rem .55rem; border: 1px solid var(--line); border-radius: 6px; color: var(--text); background: rgba(0,0,0,.28); font-size: .82rem; }
.language-note { margin: .4rem .65rem 0; color: var(--subtle); font-size: .68rem; line-height: 1.35; }
.language-list { min-height: 0; max-height: min(44vh, 22rem); overflow-y: auto; overscroll-behavior: contain; padding: .4rem; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.language-list a { display: flex; align-items: center; justify-content: space-between; gap: .65rem; padding: .42rem .5rem; font-size: .78rem; }
.language-list a:hover, .language-list a:focus-visible { border-color: var(--line); background: rgba(255,255,255,.065); }
.language-list small { flex: 0 0 auto; text-align: right; }
.language-empty { margin: .8rem; color: var(--subtle); font-size: .78rem; text-align: center; }

.hero-section, .section, .page-shell, .case-study { position: relative; z-index: 1; width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; }
.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(22rem, 1.05fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  min-height: calc(100vh - var(--header-height));
  padding: 5rem 0 4rem;
}
.hero-copy h1, .page-heading h1, .case-hero h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(3.3rem, 7vw, 7.2rem);
  line-height: 0.94;
  letter-spacing: 0;
}
.hero-copy h1 { transform-origin: left center; font-variation-settings: "wght" 760; transition: letter-spacing 800ms var(--spring), transform 800ms var(--spring); }
.hero-section:has(.hero-world[data-phase="activation"]) .hero-copy h1 { letter-spacing: -0.018em; transform: scaleX(0.99) translateX(.1rem); }
.hero-section:has(.hero-world[data-phase="diagnostic"]) .hero-copy h1 { letter-spacing: -0.028em; transform: scaleX(0.98) translateX(.22rem); }
.hero-section:has(.hero-world[data-phase="x-ray"]) .hero-copy h1 { letter-spacing: -0.038em; transform: scaleX(0.97) translateX(.34rem); }
.hero-summary, .page-heading p, .section-heading p, .hero-copy > p:not(.eyebrow), .case-hero p {
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.05rem;
}
.hero-turkish { margin: 1rem 0 0; color: var(--red); font-weight: 800; }
.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.6rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.68rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}
.button:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.button-primary { background: linear-gradient(135deg, #d15448, #832b29); color: white; box-shadow: 0 12px 34px rgba(200, 74, 63, 0.24); }
.button-secondary { background: rgba(255,255,255,0.055); color: var(--text); }
.placeholder-action { width: fit-content; color: var(--muted); cursor: default; }
.placeholder-action:hover { transform: none; }
.hero-evidence { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.35rem; color: var(--muted); font-size: 0.9rem; }
.hero-world {
  --hero-progress: 0;
  position: relative;
  min-height: min(64vw, 40rem);
  transform: perspective(1000px) translateZ(calc(var(--hero-progress) * 18px));
  transform-style: preserve-3d;
  border: 1px solid rgba(175,183,196,0.16);
  border-radius: 6px;
  background:
    radial-gradient(circle at 54% 48%, rgba(200,74,63,0.18), transparent 18rem),
    radial-gradient(circle at 26% 72%, rgba(55,93,145,0.13), transparent 14rem),
    linear-gradient(145deg, rgba(255,255,255,0.065), rgba(255,255,255,0.018)),
    #0d1014;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.12);
  overflow: hidden;
  isolation: isolate;
  transition: border-color 600ms ease, box-shadow 800ms ease;
}
.hero-world:focus-visible { outline-offset: 6px; }
.hero-world[data-phase="activation"] { border-color: rgba(200,74,63,0.28); box-shadow: 0 32px 100px rgba(0,0,0,0.48), 0 0 80px rgba(200,74,63,0.08), inset 0 1px 0 rgba(255,255,255,0.12); }
.hero-world[data-phase="diagnostic"] { border-color: rgba(79,159,122,0.28); box-shadow: 0 32px 100px rgba(0,0,0,0.48), 0 0 78px rgba(79,159,122,0.07), inset 0 1px 0 rgba(255,255,255,0.11); }
.hero-world[data-phase="x-ray"] { border-color: rgba(82,116,166,0.34); box-shadow: 0 32px 100px rgba(0,0,0,0.5), 0 0 90px rgba(55,93,145,0.1), inset 0 1px 0 rgba(255,255,255,0.1); }
.hero-world::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,0.07) 45%, transparent 62%);
  transform: translateX(calc(-75% + var(--hero-progress) * 135%));
  mix-blend-mode: screen;
  pointer-events: none;
}
.hero-world::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.07), transparent), repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 42px);
  opacity: calc(0.2 + var(--hero-progress) * 0.42);
  mix-blend-mode: screen;
  pointer-events: none;
}
.world-canvas { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; }
.world-index { position: absolute; z-index: 2; top: 1rem; left: 1rem; right: 11rem; display: grid; gap: 0.18rem; color: rgba(255,255,255,0.56); font: 0.66rem/1.2 ui-monospace, monospace; letter-spacing: 0.08em; }
.world-index span:last-child { color: var(--subtle); }
.world-readout {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  display: grid;
  gap: 0.1rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8,9,11,0.62);
  backdrop-filter: blur(12px);
}
.world-readout span, .status-text, .muted { color: var(--subtle); font-size: 0.82rem; }
.world-readout strong { color: var(--green); }
.readout-metric { display: flex; justify-content: space-between; gap: 1rem; min-width: 7rem; font-family: ui-monospace, monospace; }
.readout-metric b { color: rgba(255,255,255,0.55); font-weight: 500; }
.phase-rail { position: absolute; z-index: 2; left: 1rem; bottom: 1rem; display: grid; grid-template-columns: repeat(4, auto); gap: 0.75rem; padding-top: 0.5rem; color: var(--subtle); font: 0.61rem/1 ui-monospace, monospace; text-transform: uppercase; }
.phase-rail::before, .phase-rail i { content: ""; position: absolute; top: 0; left: 0; height: 1px; }
.phase-rail::before { right: 0; background: var(--line-strong); }
.phase-rail i { width: calc(25% + var(--hero-progress) * 75%); background: linear-gradient(90deg, var(--red), #4f9f7a 66%, #607da8); box-shadow: 0 0 8px rgba(200,74,63,0.45); transition: width 120ms linear; }
.section, .page-shell, .case-study { padding: 5rem 0; }
.section-tight { padding-top: 3rem; }
.section-heading { display: grid; gap: 0.25rem; margin-bottom: 1.5rem; }
h2, h3 { margin: 0; letter-spacing: 0; }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1; }
h3 { font-size: 1.35rem; }
.project-grid, .media-grid, .feature-grid, .service-grid, .lab-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.project-card, .lab-card, .service-card, .feature-card, .about-panel, .contact-form, .timeline-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255,255,255,0.07), rgba(255,255,255,0.025));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.09);
}
.project-grid { perspective: 1000px; }
.project-card { --card-x: 50%; --card-y: 50%; position: relative; min-height: 25rem; display: flex; flex-direction: column; gap: 1rem; padding: 1.15rem; transform-origin: center; transition: transform 620ms var(--spring), opacity 420ms ease, filter 420ms ease, border-color 320ms ease, background 420ms ease, box-shadow 520ms ease; }
.project-card::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; background: radial-gradient(circle at var(--card-x) var(--card-y), rgba(var(--context-rgb),0.2), transparent 48%); opacity: 0; transition: opacity 350ms ease; }
.project-card:hover, .project-card[data-focused="true"], .lab-card:hover, .service-card:hover { transform: translate3d(0,-7px,24px); border-color: rgba(var(--context-rgb),0.48); background: linear-gradient(145deg, rgba(var(--context-rgb),0.13), rgba(255,255,255,0.035)); box-shadow: 0 26px 70px rgba(0,0,0,0.34), inset 0 1px 0 rgba(255,255,255,0.12); }
.project-card:hover::before, .project-card[data-focused="true"]::before { opacity: 1; }
.project-grid[data-has-focus="true"] > .project-card:not([data-focused="true"]) { transform: translateZ(-18px) scale(0.985); opacity: 0.66; filter: saturate(0.72) brightness(0.78); }
.project-card p, .service-card p, .lab-card p, .case-section p, .about-panel p, .timeline-item p { color: var(--muted); }
.card-topline, .case-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.priority { color: var(--subtle); font-family: ui-monospace, monospace; font-size: 0.86rem; }
.status-pill { display: inline-flex; width: fit-content; max-width: 100%; align-items: center; min-height: 1.6rem; padding: 0.2rem 0.48rem; border: 1px solid var(--line); border-radius: 999px; color: var(--text); background: rgba(255,255,255,0.06); font-size: 0.68rem; font-weight: 800; line-height: 1.2; letter-spacing: 0.04em; text-align: center; }
.status-live { color: #ffd8d3; border-color: rgba(200,74,63,0.45); background: var(--red-soft); }
.status-private-system { color: #d5e4ff; border-color: rgba(55,93,145,0.48); background: var(--blue-soft); }
.status-in-development { color: #d5f5e4; border-color: rgba(79,159,122,0.48); background: var(--green-soft); }
.tech-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tech-list.compact { margin-top: auto; }
.tech-list span { display: inline-flex; padding: 0.35rem 0.55rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(0,0,0,0.14); font-size: 0.78rem; }
.text-link { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--text); font-weight: 800; }
.split-section, .proof-band, .case-hero, .about-layout, .contact-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 3rem; align-items: start; }
.area-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.area-tile { display: flex; align-items: center; gap: 0.7rem; min-height: 4.8rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,0.04); color: var(--text); }
.area-tile span { width: 0.55rem; aspect-ratio: 1; border-radius: 999px; background: var(--red); box-shadow: 0 0 18px var(--red); }
.structure-module {
  --structure-progress: 0;
  position: relative;
  min-height: 26rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: radial-gradient(circle at 50% 45%, rgba(200,74,63,0.13), transparent 18rem), #0c0e12;
  overflow: hidden;
  perspective: 900px;
}
.structure-module::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 63px, rgba(255,255,255,0.025) 64px), repeating-linear-gradient(0deg, transparent 0 63px, rgba(255,255,255,0.025) 64px); transform: perspective(500px) rotateX(62deg) scale(1.35) translateY(18%); transform-origin: center 70%; opacity: calc(0.16 + var(--structure-progress)); }
.rendered-object, .wire-object { position: absolute; width: min(42vw, 24rem); aspect-ratio: 1.25; transition: none; }
.rendered-object { opacity: calc(1 - var(--structure-progress) * .68); transform: translate3d(calc(var(--structure-progress) * -5.5rem), 0, calc(var(--structure-progress) * 4rem)) rotateX(calc(54deg - var(--structure-progress) * 10deg)) rotateZ(calc(-34deg + var(--structure-progress) * 8deg)); transform-style: preserve-3d; filter: saturate(calc(1 - var(--structure-progress) * .62)); }
.object-face { position: absolute; inset: 12%; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--metal); box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 20px 60px rgba(0,0,0,0.35); }
.face-b { transform: translate3d(2.5rem, -1.5rem, -4rem); background: linear-gradient(135deg, rgba(55,93,145,0.35), rgba(255,255,255,0.03)); }
.face-c { transform: translate3d(-2rem, 1rem, -7rem); background: linear-gradient(135deg, rgba(200,74,63,0.34), rgba(255,255,255,0.03)); }
.wire-object { opacity: var(--structure-progress); transform: translate3d(calc((1 - var(--structure-progress)) * 5rem), 0, calc(var(--structure-progress) * 3rem)) rotateY(calc((1 - var(--structure-progress)) * -18deg)); }
.wire-object span { position: absolute; inset: calc(var(--i) * 0.2rem); border: 1px solid rgba(200,74,63,0.42); transform: rotate(calc(11deg * var(--i))) scale(calc(.82 + var(--structure-progress) * .18)); }
.wire-object span:nth-child(odd) { border-color: rgba(55,93,145,0.55); }
.structure-energy { position: absolute; width: 15rem; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255,173,146,0.52), rgba(200,74,63,0.16) 28%, transparent 68%); filter: blur(calc(1px + var(--structure-progress) * 6px)); opacity: calc(var(--structure-progress) * .85); transform: scale(calc(.65 + var(--structure-progress) * .5)); }
.structure-axis { position: absolute; inset: 15% 11%; border-left: 1px dashed rgba(255,255,255,0.2); transform: translateX(calc((var(--structure-progress) - .5) * 28%)); opacity: var(--structure-progress); }
.structure-axis i { position: absolute; top: 46%; left: -3rem; width: 6rem; height: 1px; background: rgba(255,255,255,0.25); }
.structure-axis span { position: absolute; top: calc(46% - 1rem); left: .6rem; color: var(--subtle); font: .62rem/1 ui-monospace,monospace; text-transform: uppercase; }
.structure-labels { position: absolute; inset: auto 1rem 1rem; display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; color: var(--subtle); font-family: ui-monospace, monospace; font-size: 0.72rem; }
.structure-labels span:last-child { text-align: right; }
.structure-labels strong { color: rgba(255,255,255,0.62); font-size: .68rem; font-weight: 500; text-transform: uppercase; }
.proof-list { display: grid; gap: 0.75rem; }
.proof-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,0.04); }
.proof-row strong { display: block; margin-top: 0.55rem; }
.proof-row p { margin: 0.2rem 0 0; color: var(--muted); }
.media-surface { --media-x: 30%; --media-y: 20%; --media-rx: 0deg; --media-ry: 0deg; position: relative; min-height: 20rem; margin: 0; padding: 1px; border-radius: var(--radius); background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.03)); box-shadow: var(--shadow); transform: perspective(900px) rotateX(var(--media-rx)) rotateY(var(--media-ry)); transition: transform 650ms var(--spring), box-shadow 500ms ease; }
.media-surface::after { content: ""; position: absolute; z-index: -1; inset: 12% 8% -9%; border-radius: 50%; background: var(--surface-glow); filter: blur(28px); opacity: .28; transform: scale(.82); transition: opacity 400ms ease, transform 650ms var(--spring); }
.media-surface:hover { box-shadow: 0 30px 90px rgba(0,0,0,.48); }
.media-surface:hover::after { opacity: .55; transform: scale(1); }
.surface-glass { position: relative; height: 100%; min-height: 20rem; overflow: hidden; border-radius: var(--radius); background: radial-gradient(circle at var(--media-x) var(--media-y), var(--surface-glow), transparent 12rem), linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.025)), #0b0d11; }
.tone-red { --surface-glow: rgba(200,74,63,0.28); }
.tone-blue { --surface-glow: rgba(55,93,145,0.32); }
.tone-green { --surface-glow: rgba(79,159,122,0.24); }
.surface-media, .card-media, .timeline-media img { display: block; width: 100%; object-fit: cover; }
.surface-media { position: absolute; inset: 0; height: 100%; opacity: 0.82; filter: saturate(0.92) contrast(1.03) brightness(0.82); }
.surface-frame { position: absolute; inset: 1rem; border: 1px solid var(--line); }
.surface-frame span { position: absolute; width: 26%; height: 1px; background: var(--surface-glow); box-shadow: 0 0 20px var(--surface-glow); }
.surface-frame span:nth-child(1) { top: 18%; left: 8%; }
.surface-frame span:nth-child(2) { top: 52%; right: 10%; }
.surface-frame span:nth-child(3) { bottom: 22%; left: 34%; }
.surface-glass figcaption { position: absolute; left: 1.2rem; right: 1.2rem; bottom: 1.1rem; margin: 0; color: var(--muted); font-weight: 800; text-shadow: 0 1px 12px rgba(0,0,0,0.72); }
.card-media { height: 9rem; margin: -1.15rem -1.15rem 0; border-radius: var(--radius) var(--radius) 0 0; border-bottom: 1px solid var(--line); opacity: .82; filter: saturate(.92) contrast(1.02) brightness(.86); }
.case-media-collection, .case-video-stack { display: grid; gap: 1rem; min-width: 0; }
.video-card { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #050608; box-shadow: var(--shadow); }
.video-card video { display: block; width: 100%; aspect-ratio: 9 / 16; max-height: 34rem; object-fit: contain; background: #050608; }
.video-card figcaption { padding: .7rem .8rem; color: var(--muted); background: rgba(255,255,255,.035); font-size: .82rem; line-height: 1.4; }
.lab-video { margin-top: 1rem; box-shadow: none; }
.lab-video video { max-height: 28rem; }
.page-heading { margin-bottom: 2rem; }
.page-heading h1 { max-width: 15ch; }
.project-group { margin-top: 3rem; }
.project-group h2 { margin-bottom: 1rem; font-size: 1.8rem; }
.case-hero { grid-template-columns: minmax(0, 0.95fr) minmax(20rem, 0.8fr); margin-bottom: 4rem; }
.case-meta { justify-content: flex-start; margin-top: 1.25rem; color: var(--muted); }
.case-section { max-width: 54rem; margin: 0 0 3rem; }
.case-section h2 { margin-bottom: 1rem; font-size: clamp(1.5rem, 3vw, 2.4rem); }
.feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature-card { display: flex; align-items: center; gap: 0.65rem; min-height: 3.8rem; padding: 0.85rem; color: var(--text); }
.feature-card > span:first-child { color: var(--green); flex: 0 0 auto; }
.lab-card, .service-card, .timeline-item, .about-panel, .contact-form { padding: 1.15rem; }
.lab-card h2, .service-card h2, .timeline-item h2 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); line-height: 1.08; }
.lab-icon { display: grid; place-items: center; width: 2.4rem; aspect-ratio: 1; margin-bottom: 1rem; border-radius: var(--radius); background: var(--red-soft); color: #ffd7d2; }
.timeline { display: grid; gap: 1rem; }
.timeline-item { display: grid; gap: 1.3rem; align-items: start; padding: 1.35rem; }
.timeline-copy { display: grid; grid-template-columns: 6rem minmax(0, 1fr) minmax(13rem, .8fr); gap: .7rem 1.15rem; align-items: start; }
.timeline-copy > span { color: var(--red); font-family: ui-monospace, monospace; }
.timeline-copy > p { margin: 0; }
.timeline-copy > p:last-child { grid-column: 2 / -1; max-width: 62ch; }
.role { color: var(--text) !important; font-weight: 800; }
.photo-slot { display: grid; place-items: center; width: min(100%, 32rem); min-height: 6rem; padding: 1rem; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--subtle); font-size: 0.82rem; }
.timeline-media-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(18rem, .75fr); gap: .85rem; align-items: start; }
.timeline-media-layout.is-portrait-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(100%, 62rem); }
.timeline-media-layout.is-single-proof { grid-template-columns: minmax(0, 34rem); }
.timeline-media, .timeline-gallery figure { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(0,0,0,0.22); }
.timeline-media img, .timeline-gallery img { display: block; width: 100%; height: auto; max-height: 46rem; object-fit: contain; background: #08090b; }
.timeline-media figcaption, .timeline-gallery figcaption { padding: .6rem .7rem; color: var(--muted); font-size: .8rem; line-height: 1.4; }
.timeline-gallery { display: grid; grid-template-columns: 1fr; gap: .85rem; }
.timeline-gallery .orientation-portrait img { max-height: 34rem; }
.timeline-gallery .orientation-landscape img { max-height: 25rem; }
.timeline-media-layout.is-portrait-mosaic .timeline-media img,
.timeline-media-layout.is-portrait-mosaic .timeline-gallery img { max-height: 42rem; }
.cta-band { margin-top: 2rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(135deg, var(--red-soft), rgba(255,255,255,0.04)); }
.about-layout, .contact-layout { grid-template-columns: minmax(0, 0.85fr) minmax(20rem, 0.75fr); }
.email-link { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--text); font-weight: 800; }
.contact-form { display: grid; gap: 1rem; }
.contact-form label { display: grid; gap: 0.35rem; color: var(--text); font-weight: 800; }
.contact-form label span { color: var(--subtle); font-weight: 400; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(0,0,0,0.22); color: var(--text); padding: 0.72rem 0.8rem; }
.contact-form textarea { resize: vertical; }
.site-footer { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto auto; gap: 1rem; align-items: center; width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; padding: 2rem 0 3rem; border-top: 1px solid var(--line); color: var(--muted); }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.65rem; }

.site-header > *, .hero-section > *, .split-section > *, .proof-band > *, .case-hero > *, .about-layout > *, .contact-layout > *, .project-card, .timeline-item { min-width: 0; }
.hero-copy h1, .page-heading h1, .case-hero h1, h2, h3 { overflow-wrap: break-word; }

@media (max-width: 980px) {
  .site-header { grid-template-columns: minmax(0, 1fr) auto; padding-top: .55rem; }
  .nav-links { grid-column: 1 / -1; order: 3; justify-content: flex-start; overflow-x: auto; padding-bottom: 0.65rem; }
  .hero-section, .split-section, .proof-band, .case-hero, .about-layout, .contact-layout { grid-template-columns: 1fr; }
  .hero-section { min-height: auto; }
  .hero-world { min-height: 28rem; }
  .project-grid, .media-grid, .lab-grid, .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline-copy { grid-template-columns: 5rem minmax(0, 1fr) minmax(11rem, .7fr); }
}
@media (max-width: 760px) {
  .sound-button { min-width: 2.3rem; }
  .sound-button [data-sound-label] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
  .site-header { gap: .55rem; padding-inline: .65rem; }
  .header-tools { gap: .38rem; }
}
@media (max-width: 640px) {
  :root { --header-height: 64px; }
  .hero-section, .section, .page-shell, .case-study { width: min(100% - 1rem, var(--max)); }
  .hero-section { padding-top: 3rem; }
  .hero-copy h1, .page-heading h1, .case-hero h1 { font-size: clamp(2.7rem, 16vw, 4.4rem); }
  .hero-world { min-height: 23rem; }
  .world-readout { right: .65rem; bottom: .65rem; }
  .world-index { top: .65rem; left: .65rem; }
  .phase-rail { left: .65rem; bottom: .65rem; transform: scale(.88); transform-origin: left bottom; }
  .diagnostic-companion { display: none; }
  .structure-labels { grid-template-columns: 1fr 1fr; }
  .structure-labels strong { grid-column: 1 / -1; grid-row: 1; text-align: center; }
  .project-grid, .media-grid, .lab-grid, .service-grid, .feature-grid, .area-grid { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer nav { justify-content: flex-start; }
  .language-panel { position: fixed; top: calc(var(--header-height) + .5rem); right: .5rem; left: .5rem; width: auto; max-height: calc(100dvh - var(--header-height) - 1rem); }
  .language-list { max-height: min(46dvh, 20rem); }
  .hero-actions .button { flex: 1 1 12rem; }
  .timeline-item { padding: .75rem; }
  .timeline-copy { grid-template-columns: 1fr; gap: .35rem; padding: .25rem; }
  .timeline-copy > p:last-child { grid-column: auto; }
  .timeline-media-layout, .timeline-media-layout.is-portrait-mosaic, .timeline-media-layout.is-single-proof { grid-template-columns: 1fr; width: 100%; }
  .timeline-media img, .timeline-gallery img, .timeline-gallery .orientation-portrait img, .timeline-gallery .orientation-landscape img { max-height: none; }
  .timeline-media figcaption, .timeline-gallery figcaption, .video-card figcaption { font-size: .86rem; }
  .video-card video, .lab-video video { max-height: none; }
}
@media (max-width: 440px) {
  .brand > span:last-child, .live-clock { display: none; }
  .brand { width: 2.25rem; }
  .header-tools { min-width: 0; }
  .nav-links a { padding-inline: .55rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .decode-source { visibility: visible; }
  .decode-visual { display: none; }
  .pointer-halo { display: none; }
  .ambient-field { animation: none; }
  [data-reveal-state] { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  .project-grid[data-has-focus="true"] > .project-card:not([data-focused="true"]) { opacity: 1; filter: none; transform: none; }
}
