:root {
  --case-bg: #0a0a09;
  --case-ink: #f3f0e8;
  --case-muted: rgba(243, 240, 232, .58);
  --case-line: rgba(243, 240, 232, .18);
  --case-accent: #ff4b2f;
  --case-panel: #151513;
  --case-gutter: clamp(18px, 4.2vw, 72px);
}

* { box-sizing: border-box; }
html { background: var(--case-bg); scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; overflow-x: hidden; background: var(--case-bg); color: var(--case-ink); font-family: "DM Sans", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }

.pc-skip { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 10px 14px; background: var(--case-ink); color: var(--case-bg); transform: translateY(-160%); }
.pc-skip:focus { transform: none; }

.pc-nav {
  position: fixed;
  z-index: 30;
  top: max(18px, env(safe-area-inset-top));
  left: var(--case-gutter);
  right: var(--case-gutter);
  height: 58px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(18px, 2.2vw, 34px);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(90, 90, 86, .62);
  color: #fff;
  -webkit-backdrop-filter: blur(20px) saturate(130%);
  backdrop-filter: blur(20px) saturate(130%);
}
.pc-nav a { min-height: 44px; display: flex; align-items: center; text-decoration: none; font-size: 13px; }
.pc-nav a:last-child { justify-self: end; }
.pc-nav__brand { justify-self: center; font-family: Georgia, serif; font-size: clamp(20px, 1.8vw, 28px) !important; letter-spacing: -.04em; }
.pc-nav a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.pc-hero {
  min-height: 100svh;
  display: grid;
  align-content: end;
  padding: calc(110px + env(safe-area-inset-top)) var(--case-gutter) clamp(42px, 6vw, 82px);
}
.pc-hero__index { margin: 0 0 auto; padding-top: 8vh; color: var(--case-muted); font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.pc-hero h1 { margin: 8vh 0 clamp(52px, 7vw, 96px); font-size: clamp(72px, 12.6vw, 220px); font-weight: 400; line-height: .75; letter-spacing: -.085em; text-wrap: balance; }
.pc-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 5vw, 96px); margin: 0; }
.pc-facts div { display: grid; gap: 7px; }
.pc-facts dt { color: var(--case-muted); font-size: 11px; }
.pc-facts dd { margin: 0; font-size: clamp(14px, 1.3vw, 18px); }

.pc-stage { min-height: 100svh; padding: clamp(12px, 2vw, 28px); background: var(--case-panel); }
.pc-stage { padding: 0 !important; }
.pc-stage .project-scene { min-height: calc(100svh - clamp(24px, 4vw, 56px)); }

.pc-brief {
  display: grid;
  grid-template-columns: minmax(180px, .35fr) minmax(0, 1fr);
  gap: 50px;
  padding: clamp(110px, 15vw, 230px) var(--case-gutter);
}
.pc-label { margin: 0; color: var(--case-muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.pc-brief p:last-child { max-width: 980px; margin: 0; font-size: clamp(34px, 4.8vw, 76px); line-height: 1.02; letter-spacing: -.055em; }

.pc-ui {
  margin: 0 var(--case-gutter) clamp(18px, 3vw, 46px);
  overflow: hidden;
  background: var(--case-panel);
}
.pc-ui { margin-left: 0 !important; margin-right: 0 !important; }
.pc-ui__bar { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 clamp(18px, 2.5vw, 34px); border-bottom: 1px solid var(--case-line); font-size: 10px; letter-spacing: .09em; text-transform: uppercase; }
.pc-ui__content { min-height: min(76vw, 860px); position: relative; padding: clamp(26px, 5vw, 74px); overflow: hidden; }
.pc-ui__kicker { margin: 0; color: var(--case-muted); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.pc-ui h2 { max-width: 980px; margin: clamp(38px, 6vw, 84px) 0 0; font-size: clamp(56px, 9vw, 150px); font-weight: 400; line-height: .82; letter-spacing: -.075em; }

.pc-note { display: grid; grid-template-columns: minmax(180px, .35fr) minmax(0, 1fr); gap: 50px; padding: clamp(80px, 11vw, 160px) var(--case-gutter); }
.pc-note p:last-child { max-width: 720px; margin: 0; font-size: clamp(24px, 3vw, 46px); line-height: 1.12; letter-spacing: -.04em; }

.pc-system { margin: 0 var(--case-gutter) clamp(18px, 3vw, 46px); display: grid; grid-template-columns: .8fr 1.2fr; min-height: 620px; background: var(--case-panel); }
.pc-system { margin-left: 0 !important; margin-right: 0 !important; }
.pc-system__type { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(26px, 4vw, 60px); border-right: 1px solid var(--case-line); }
.pc-system__type small,
.pc-system__components small { color: var(--case-muted); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.pc-system__type strong { font-size: clamp(82px, 12vw, 190px); font-weight: 400; line-height: .8; letter-spacing: -.08em; }
.pc-system__components { display: grid; grid-template-rows: auto 1fr auto; gap: 40px; padding: clamp(26px, 4vw, 60px); }
.pc-swatches { display: grid; grid-template-columns: repeat(3, 1fr); align-self: stretch; }
.pc-swatches i { min-height: 250px; background: var(--swatch, #fff); }
.pc-button { min-height: 54px; display: inline-flex; align-items: center; justify-content: space-between; padding: 0 20px; border: 1px solid currentColor; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }

.pc-mobile { padding: clamp(90px, 12vw, 180px) var(--case-gutter); overflow: hidden; }
.pc-mobile__head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: clamp(50px, 8vw, 100px); }
.pc-mobile__head h2 { max-width: 900px; margin: 0; font-size: clamp(48px, 7vw, 112px); font-weight: 400; line-height: .88; letter-spacing: -.07em; }
.pc-phones { min-height: 720px; display: grid; grid-template-columns: repeat(3, minmax(220px, 340px)); justify-content: center; gap: clamp(18px, 4vw, 64px); align-items: center; }
.pc-phone { position: relative; aspect-ratio: .49; border: 8px solid #181817; border-radius: 42px; overflow: hidden; background: var(--case-panel); box-shadow: 0 30px 80px rgba(0,0,0,.22); }
.pc-phone:nth-child(1) { transform: rotate(-6deg) translateY(42px); }
.pc-phone:nth-child(3) { transform: rotate(6deg) translateY(42px); }
.pc-phone::before { content: ""; position: absolute; z-index: 5; top: 9px; left: 50%; width: 34%; height: 18px; border-radius: 20px; background: #181817; transform: translateX(-50%); }
.pc-phone__top { height: 62px; display: flex; align-items: end; justify-content: space-between; padding: 0 16px 12px; border-bottom: 1px solid var(--case-line); font-size: 9px; font-weight: 600; letter-spacing: .06em; }
.pc-phone__body { height: calc(100% - 62px); padding: 22px 16px; }
.pc-phone__body small { color: var(--case-muted); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.pc-phone__body h3 { margin: 18px 0; font-size: clamp(30px, 3vw, 48px); font-weight: 400; line-height: .88; letter-spacing: -.06em; }
.pc-phone__visual { height: 58%; margin-top: 28px; background: var(--case-accent); }

.pc-next { min-height: 78svh; display: grid; align-content: end; padding: clamp(80px, 10vw, 150px) var(--case-gutter); background: var(--next-bg, #eeeae1); color: var(--next-ink, #11110f); text-decoration: none; }
.pc-next small { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.pc-next strong { margin-top: 28px; font-size: clamp(60px, 11vw, 180px); font-weight: 400; line-height: .78; letter-spacing: -.085em; }
.pc-next span { margin-top: 30px; font-size: 14px; }
.pc-next:focus-visible { outline: 3px solid currentColor; outline-offset: -6px; }

/* Per-project case art direction. */
.case-kontur { --case-bg: #11110f; --case-panel: #f14b2f; --case-ink: #f1eee5; --case-muted: rgba(241,238,229,.58); --case-accent: #f14b2f; }
.case-kontur .pc-ui { background: #f14b2f; color: #11110f; }
.case-kontur .pc-ui__bar { border-color: rgba(17,17,15,.28); }
.case-kontur .pc-ui__kicker { color: rgba(17,17,15,.55); }
.case-kontur .pc-ui__content { background-image: linear-gradient(rgba(17,17,15,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(17,17,15,.12) 1px, transparent 1px); background-size: 64px 64px; }
.case-kontur .pc-ui__content::after { content: ""; position: absolute; width: 42%; aspect-ratio: 1; right: 4%; top: 18%; border: 1px solid #111; transform: rotate(22deg); box-shadow: inset 0 0 0 54px #f14b2f, inset 0 0 0 55px #111; }
.case-kontur .pc-system { background: #22211f; }

.case-severa { --case-bg: #051522; --case-panel: #0a263c; --case-ink: #effbfb; --case-muted: rgba(239,251,251,.56); --case-accent: #9ef2e7; --case-line: rgba(239,251,251,.17); }
.case-severa .pc-ui__content { background-image: linear-gradient(rgba(158,242,231,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(158,242,231,.07) 1px, transparent 1px); background-size: 52px 52px; }
.case-severa .pc-ui__content::after { content: "+2.4°"; position: absolute; right: 6%; bottom: 8%; color: #9ef2e7; font-size: clamp(90px, 16vw, 260px); line-height: .7; letter-spacing: -.08em; }
.case-severa .pc-system { background: #0a263c; }

.case-biosfera { --case-bg: #15372a; --case-panel: #f4f2e9; --case-ink: #eff5e9; --case-muted: rgba(239,245,233,.58); --case-accent: #d8ff54; --case-line: rgba(239,245,233,.18); }
.case-biosfera .pc-ui { background: #f4f2e9; color: #173b2d; }
.case-biosfera .pc-ui__kicker { color: rgba(23,59,45,.55); }
.case-biosfera .pc-ui__content::after { content: ""; position: absolute; width: min(38vw, 520px); aspect-ratio: 1; right: 6%; top: 15%; border-radius: 50%; background: radial-gradient(circle at 38% 34%, rgba(255,255,255,.9) 0 6%, transparent 7%), radial-gradient(circle, #b7d783, #4b745c 68%, #173b2d 70%); box-shadow: inset -42px -24px 80px rgba(9,52,34,.38); }
.case-biosfera .pc-system { background: #eff2e5; color: #173b2d; --case-line: rgba(23,59,45,.2); }

.case-modul { --case-bg: #292018; --case-panel: #d9ba93; --case-ink: #eee4d5; --case-muted: rgba(238,228,213,.57); --case-accent: #6c3024; --case-line: rgba(238,228,213,.18); }
.case-modul .pc-ui { background: #d9ba93; color: #2b2119; }
.case-modul .pc-ui__kicker { color: rgba(43,33,25,.58); }
.case-modul .pc-ui__content { background-image: linear-gradient(rgba(43,33,25,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(43,33,25,.12) 1px, transparent 1px); background-size: 46px 46px; }
.case-modul .pc-ui__content::after { content: ""; position: absolute; width: 44%; height: 42%; right: 6%; bottom: 10%; border: 1px solid #2b2119; background: #eee3d2; box-shadow: -34px -34px 0 #6c3024, -68px -68px 0 #c89c71; }
.case-modul .pc-system { background: #d9ba93; color: #2b2119; --case-line: rgba(43,33,25,.22); }

@media (max-width: 760px) {
  .pc-nav { left: 14px; right: 14px; height: 54px; padding-inline: 18px; }
  .pc-nav a { font-size: 11px; }
  .pc-nav__brand { font-size: 20px !important; }
  .pc-hero { min-height: 100svh; padding-top: calc(94px + env(safe-area-inset-top)); }
  .pc-hero__index { padding-top: 3vh; }
  .pc-hero h1 { margin: auto 0 64px; font-size: clamp(66px, 22vw, 98px); line-height: .76; }
  .pc-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .pc-facts dt { font-size: 9px; }
  .pc-facts dd { font-size: 12px; line-height: 1.3; }
  .pc-stage { min-height: 82svh; padding: 10px; }
  .pc-stage .project-scene { min-height: calc(82svh - 20px); }
  .pc-brief,
  .pc-note { grid-template-columns: 1fr; gap: 28px; }
  .pc-brief p:last-child { font-size: clamp(34px, 10.5vw, 48px); }
  .pc-note p:last-child { font-size: 28px; }
  .pc-ui { margin-inline: 0; }
  .pc-ui__content { min-height: 720px; padding: 36px 18px; }
  .pc-ui h2 { max-width: 370px; margin-top: 54px; font-size: clamp(58px, 17vw, 78px); }
  .pc-system { margin-inline: 0; grid-template-columns: 1fr; min-height: 720px; }
  .pc-system__type { min-height: 330px; border-right: 0; border-bottom: 1px solid var(--case-line); }
  .pc-system__components { min-height: 390px; }
  .pc-swatches i { min-height: 180px; }
  .pc-mobile__head { display: grid; }
  .pc-phones { min-height: 560px; grid-template-columns: repeat(3, 180px); justify-content: start; margin-inline: -130px; gap: 18px; }
  .pc-phone { border-width: 6px; border-radius: 30px; }
  .pc-phone__body h3 { font-size: 30px; }
  .pc-next { min-height: 62svh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pc-phone { transform: none !important; }
}
