:root {
  color-scheme: dark;
  --bg: #050505;
  --bg-soft: #0b0b0c;
  --text: #f7f7f5;
  --muted: #a6a6aa;
  --quiet: #727277;
  --line: rgba(255, 255, 255, 0.13);
  --line-strong: rgba(255, 255, 255, 0.24);
  --glass: rgba(20, 20, 21, 0.66);
  --glass-strong: rgba(27, 27, 28, 0.86);
  --glass-soft: rgba(255, 255, 255, 0.055);
  --menu-glass: rgba(15, 15, 16, 0.88);
  --button-bg: #f4f4f2;
  --button-text: #090909;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
  --logo-filter: invert(1);
  --grid: rgba(255, 255, 255, 0.035);
  --grid-ripple: rgba(255, 255, 255, 0.15);
  --orb-a: rgba(255, 255, 255, 0.09);
  --orb-b: rgba(148, 148, 158, 0.08);
  --max: 1240px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f2f2f0;
  --bg-soft: #e9e9e6;
  --text: #111112;
  --muted: #58585d;
  --quiet: #7d7d82;
  --line: rgba(5, 5, 5, 0.12);
  --line-strong: rgba(5, 5, 5, 0.23);
  --glass: rgba(255, 255, 255, 0.58);
  --glass-strong: rgba(255, 255, 255, 0.82);
  --glass-soft: rgba(255, 255, 255, 0.38);
  --menu-glass: rgba(248, 248, 247, 0.88);
  --button-bg: #111112;
  --button-text: #fff;
  --shadow: 0 28px 90px rgba(30, 30, 34, 0.14);
  --logo-filter: none;
  --grid: rgba(0, 0, 0, 0.04);
  --grid-ripple: rgba(0, 0, 0, 0.14);
  --orb-a: rgba(255, 255, 255, 0.82);
  --orb-b: rgba(150, 150, 160, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 0;
  overflow-x: clip;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  transition: color 320ms ease, background-color 320ms ease;
  -webkit-text-size-adjust: 100%;
}

img {
  max-width: 100%;
}

button {
  font: inherit;
}

body::before,
body::after {
  position: fixed;
  z-index: -2;
  pointer-events: none;
  content: "";
}

body::before {
  inset: -35vmax;
  background:
    radial-gradient(circle at 17% 34%, var(--orb-a) 0 4%, transparent 22%),
    radial-gradient(circle at 82% 24%, var(--orb-b) 0 5%, transparent 24%),
    radial-gradient(circle at 58% 88%, var(--orb-a) 0 3%, transparent 22%);
  animation: atmosphere 24s ease-in-out infinite alternate;
  will-change: transform;
}

body::after {
  inset: 0;
  z-index: -1;
  opacity: 0.72;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 82%, transparent 100%);
}

body.is-wave-active::after { opacity: 0.72; }

@keyframes atmosphere {
  0% { transform: translate3d(-2%, -1%, 0) rotate(-2deg) scale(1); }
  48% { transform: translate3d(3%, 2%, 0) rotate(2deg) scale(1.04); }
  100% { transform: translate3d(-1%, 4%, 0) rotate(-1deg) scale(0.99); }
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--button-text);
  background: var(--button-bg);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.preloader {
  position: fixed;
  z-index: 999;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--text);
  background: var(--bg);
  transition: opacity 500ms ease, visibility 500ms ease;
}

.preloader::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.8;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
}

.preloader.is-hidden {
  visibility: hidden;
  opacity: 0;
}

.loader-lockup {
  position: relative;
  width: min(72vw, 430px);
  text-align: center;
}

.loader-wordmark {
  display: block;
  width: 100%;
  filter: var(--logo-filter);
  clip-path: inset(0 100% 0 0);
  animation: logo-reveal 1300ms cubic-bezier(.22,.82,.22,1) 160ms forwards;
}

.loader-line {
  display: block;
  width: 100%;
  height: 1px;
  margin-top: 26px;
  overflow: hidden;
  background: var(--line);
}

.loader-line::after {
  display: block;
  width: 100%;
  height: 100%;
  content: "";
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left center;
  animation: loader-line 1300ms cubic-bezier(.22,.82,.22,1) 160ms forwards;
}

@keyframes logo-reveal {
  to { clip-path: inset(0 0 0 0); }
}

@keyframes loader-line {
  to { transform: scaleX(1); }
}

.site-header {
  position: fixed;
  z-index: 40;
  top: 18px;
  right: 0;
  left: 0;
  width: min(calc(100% - 32px), var(--max));
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--glass);
  box-shadow: 0 12px 45px rgba(0, 0, 0, 0.12);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  backdrop-filter: blur(22px) saturate(1.2);
}

.header-inner {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 0 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 164px;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
  filter: var(--logo-filter);
  transition: filter 320ms ease;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.site-nav a {
  position: relative;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 650;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease;
}

.site-nav a {
  padding: 10px 14px;
}

.site-nav a::after {
  position: absolute;
  right: 14px;
  bottom: 5px;
  left: 14px;
  height: 1px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  opacity: 0;
  transform: scaleX(.2);
  transition: opacity 180ms ease, transform 220ms ease;
}

.site-nav a.is-active::after,
.site-nav a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  background: var(--glass-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-menu {
  position: relative;
}

.language-menu summary {
  min-width: 46px;
  min-height: 40px;
  display: grid;
  place-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  font-size: .76rem;
  font-weight: 750;
  list-style: none;
}

.language-menu summary::-webkit-details-marker { display: none; }

.language-menu[open] summary,
.language-menu summary:hover { background: var(--glass-soft); }

.language-panel {
  position: fixed;
  z-index: 80;
  width: min(230px, calc(100vw - 28px));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), transparent 52%),
    var(--glass);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  backdrop-filter: blur(22px) saturate(1.2);
}

.language-panel[hidden] { display: none; }

.language-panel a {
  padding: 9px 10px;
  border-radius: 11px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 650;
  text-decoration: none;
}

.language-panel a:hover,
.language-panel a[aria-current="page"] {
  color: var(--text);
  background: var(--glass-soft);
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.theme-toggle:hover {
  background: var(--glass-soft);
  transform: rotate(9deg);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.mobile-menu-toggle {
  position: relative;
  display: none;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: transparent;
  cursor: pointer;
}

.mobile-menu-toggle span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 18px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 220ms ease, opacity 180ms ease;
}

.mobile-menu-toggle span:first-child { transform: translate(-50%, -6px); }
.mobile-menu-toggle span:nth-child(2) { transform: translate(-50%, -50%); }
.mobile-menu-toggle span:last-child { transform: translate(-50%, 4.5px); }
.mobile-menu-toggle[aria-expanded="true"] span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle[aria-expanded="true"] span:last-child { transform: translate(-50%, -50%) rotate(-45deg); }

.page-shell {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  align-items: center;
  gap: clamp(42px, 7vw, 110px);
  padding-block: 150px 90px;
}

.hero-wave-canvas {
  position: fixed;
  z-index: 0;
  inset: 0;
  display: block;
  pointer-events: none;
}

.hero-copy,
.hero-object {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(3.5rem, 7.4vw, 7.6rem);
  font-weight: 650;
  letter-spacing: -0.068em;
  line-height: 1;
  text-wrap: balance;
}

.hero-lead {
  max-width: 670px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.7vw, 1.35rem);
}

.hero-actions,
.product-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  background: var(--glass-soft);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  border-color: var(--text);
  transform: translateY(-2px);
}

.button-primary {
  border-color: var(--button-bg);
  color: var(--button-text);
  background: var(--button-bg);
}

.button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.hero-object {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.hero-orbit {
  position: absolute;
  inset: 2%;
  border: 1px solid var(--line);
  border-radius: 50%;
  transform: rotate(var(--orbit-angle, 0deg));
  transition: border-color 260ms ease, box-shadow 260ms ease;
  will-change: transform;
}

.orbit-handle {
  position: absolute;
  top: 50%;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1.5px solid var(--text);
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--bg) 64%, transparent);
  cursor: grab;
  touch-action: none;
  transition: transform 160ms ease, background-color 160ms ease;
}

.orbit-handle::before {
  position: absolute;
  inset: -11px;
  border-radius: 50%;
  content: "";
}

.orbit-handle:first-child { left: 0; transform: translate(-50%, -50%); }
.orbit-handle:last-child { right: 0; transform: translate(50%, -50%); }

.orbit-handle:hover,
.orbit-handle:focus-visible {
  background: var(--text);
}

.hero-object.is-dragging .orbit-handle { cursor: grabbing; }
.hero-object.is-dragging .orbit-handle:first-child { transform: translate(-50%, -50%) scale(1.18); }
.hero-object.is-dragging .orbit-handle:last-child { transform: translate(50%, -50%) scale(1.18); }

.hero-mark {
  display: block;
  width: 100%;
  filter: var(--logo-filter);
  animation: mark-float 6s ease-in-out infinite;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

.hero-mark-button {
  position: relative;
  z-index: 2;
  width: 54%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  transition: transform 220ms cubic-bezier(.2,.8,.2,1);
  -webkit-touch-callout: none;
  user-select: none;
}

.hero-mark-button:focus-visible {
  border-radius: 50%;
  outline: 1px solid var(--line-strong);
  outline-offset: 12px;
}

.hero-object:hover .hero-orbit,
.hero-object.is-dragging .hero-orbit {
  border-color: var(--line-strong);
}

.hero-mark-button:hover { transform: scale(1.025); }
.hero-mark-button:active { transform: scale(.965); }

@keyframes mark-float { 50% { transform: translateY(-10px); } }

.section {
  padding-block: clamp(80px, 11vw, 150px);
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr);
  gap: 40px;
  margin-bottom: 58px;
}

.section-heading h2,
.contact-panel h2 {
  margin: 0;
  font-size: clamp(2.5rem, 5.1vw, 5rem);
  font-weight: 620;
  letter-spacing: -0.058em;
  line-height: 1;
  text-wrap: balance;
}

.section-heading p:last-child {
  max-width: 610px;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.product-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  gap: 50px;
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: 36px;
  background: var(--glass);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
  -webkit-backdrop-filter: blur(24px) saturate(1.15);
  backdrop-filter: blur(24px) saturate(1.15);
}

.product-slider { position: relative; }

.product-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.product-track::-webkit-scrollbar { display: none; }

.product-slide {
  min-width: 100%;
  scroll-snap-align: start;
  isolation: isolate;
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}

.slider-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--text);
  background: var(--glass);
  cursor: pointer;
  font-size: 1.2rem;
  transition: transform 180ms ease, background 180ms ease;
}

.slider-button:hover { background: var(--glass-strong); transform: scale(1.05); }

.slider-dots { display: flex; gap: 7px; }
.slider-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--line-strong);
  cursor: pointer;
  transition: width 200ms ease, background 200ms ease;
}
.slider-dot.is-active { width: 24px; background: var(--text); }

.product-card::after {
  position: absolute;
  width: 420px;
  height: 420px;
  right: -180px;
  bottom: -220px;
  border-radius: 50%;
  background: var(--orb-a);
  filter: blur(25px);
  content: "";
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 34px;
}

.chip {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.store-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  background: var(--glass-soft);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.025em;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.store-link:hover {
  transform: translateY(-1px);
  border-color: var(--text);
  background: var(--glass-strong);
}

.store-link img {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  filter: var(--logo-filter);
}

.product-copy h3 {
  margin: 0;
  font-size: clamp(2.8rem, 5vw, 5.6rem);
  font-weight: 650;
  letter-spacing: -0.06em;
  line-height: 0.96;
}

.product-copy p {
  max-width: 590px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.product-visual {
  position: relative;
  z-index: 1;
  min-height: 360px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 28px;
  background: transparent;
}

.app-icon {
  width: min(56%, 230px);
  max-height: 230px;
  object-fit: contain;
  filter: none;
  transition: transform 400ms cubic-bezier(.2,.8,.2,1);
}

:root[data-theme="light"] .app-icon {
  filter: none;
}

.product-card:hover .app-icon {
  transform: scale(1.045);
}

.upcoming-mark {
  width: min(48%, 190px);
  filter: var(--logo-filter);
  opacity: .74;
  transition: transform 400ms cubic-bezier(.2,.8,.2,1), opacity 300ms ease;
}

.product-card:hover .upcoming-mark { transform: scale(1.04); opacity: 1; }

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.principle {
  min-height: 270px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.principle-number {
  color: var(--quiet);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: .13em;
}

.principle h3 {
  margin: auto 0 13px;
  font-size: 1.45rem;
  letter-spacing: -0.035em;
}

.principle p {
  margin: 0;
  color: var(--muted);
}

.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(42px, 9vw, 130px);
  align-items: start;
}

.studio-statement {
  margin: 0;
  font-size: clamp(2.3rem, 4.6vw, 4.8rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.studio-copy {
  color: var(--muted);
  font-size: 1.08rem;
}

.studio-copy p:first-child {
  margin-top: 0;
}

.contact-panel {
  overflow: hidden;
  padding: clamp(34px, 7vw, 86px);
  border: 1px solid var(--line);
  border-radius: 36px;
  background: var(--glass-strong);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(26px);
  backdrop-filter: blur(26px);
}

.contact-panel p {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.subpage-main {
  width: min(calc(100% - 40px), 920px);
  margin-inline: auto;
  padding-block: 160px 100px;
}

.subpage-hero { margin-bottom: 42px; }
.subpage-hero h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.8rem);
  font-weight: 640;
  letter-spacing: -.06em;
  line-height: 1;
}
.subpage-hero p:last-child { max-width: 700px; color: var(--muted); font-size: 1.1rem; }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.info-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}
.info-card-wide { grid-column: 1 / -1; }
.info-card h2 { margin: 0 0 12px; font-size: 1.45rem; }
.info-card p { margin: 0; color: var(--muted); }
.info-card p + p { margin-top: 12px; }
.copy-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 20px; }
.email-value { color: var(--text); font-weight: 700; overflow-wrap: anywhere; }
.copy-status { min-height: 1.4em; color: var(--muted); font-size: .86rem; }

.site-footer {
  padding-block: 38px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-inner img {
  width: 112px;
  filter: var(--logo-filter);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  text-decoration: none;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms cubic-bezier(.2,.7,.2,1), transform 800ms cubic-bezier(.2,.7,.2,1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 920px) {
  .site-header {
    top: 10px;
    width: min(calc(100% - 20px), var(--max));
  }

  .header-inner {
    min-height: 66px;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    padding: 0 14px;
  }

  .brand { width: 138px; }
  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    width: calc(100% + 28px);
    margin-inline: -14px;
    overflow-x: auto;
    padding: 0 14px 10px;
    scroll-padding-inline: 14px;
    scroll-snap-type: x proximity;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }
  .site-nav a {
    flex: 0 0 auto;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    scroll-snap-align: start;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .header-actions { justify-self: end; }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 52px;
    padding-block: 148px 72px;
  }

  .hero-object {
    width: min(70vw, 410px);
    margin-inline: auto;
  }

  .hero h1 {
    max-width: 12ch;
    font-size: clamp(3.2rem, 11vw, 5.6rem);
    overflow-wrap: normal;
    text-wrap: pretty;
    word-break: normal;
  }

  .section-heading,
  .product-card,
  .studio-grid {
    grid-template-columns: 1fr;
  }

  .section-heading { gap: 18px; }
  .product-visual { min-height: 320px; }
  .principles-grid { grid-template-columns: 1fr; }
  .principle { min-height: 220px; }
}

@media (max-width: 560px) {
  .page-shell,
  .footer-inner {
    width: min(calc(100% - 28px), var(--max));
  }

  .header-inner {
    min-height: 64px;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 10px;
  }

  .brand { width: 112px; }
  .header-actions { gap: 7px; }
  .language-menu summary { min-width: 42px; min-height: 38px; padding-inline: 10px; }
  .theme-toggle { width: 38px; height: 38px; }
  .language-panel {
    width: min(280px, calc(100vw - 20px));
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 10px;
  }

  .hero {
    gap: 42px;
    padding-block: 142px 60px;
  }
  .hero h1 {
    max-width: 11ch;
    font-size: clamp(2.65rem, 12.2vw, 4rem);
    letter-spacing: -.06em;
    line-height: .98;
  }
  .hero-lead { margin-top: 26px; }
  .hero-actions .button { flex: 1 1 100%; }
  .hero-object { width: min(78vw, 310px); }
  .hero-object { overflow: clip; }
  .hero-orbit { inset: 6%; }
  .orbit-handle { width: 22px; height: 22px; }
  .section { padding-block: 76px; }
  .section-heading { margin-bottom: 34px; }
  .section-heading h2,
  .contact-panel h2 {
    font-size: clamp(2.35rem, 11vw, 3.4rem);
    overflow-wrap: normal;
    text-wrap: pretty;
    word-break: normal;
  }
  .product-card { gap: 22px; padding: 22px; border-radius: 28px; }
  .product-copy h3 { font-size: clamp(2.5rem, 13vw, 3.8rem); }
  .product-visual { min-height: 220px; border-radius: 22px; }
  .app-icon { width: min(50%, 155px); }
  .upcoming-mark { width: min(44%, 145px); }
  .product-actions .button { flex: 1 1 100%; }
  .slider-controls { margin-top: 18px; }
  .slider-button { width: 48px; height: 48px; }
  .principle { min-height: 190px; padding: 24px; }
  .studio-statement { font-size: clamp(2.25rem, 11vw, 3.3rem); overflow-wrap: normal; text-wrap: pretty; }
  .contact-panel { border-radius: 28px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer-links { gap: 14px 18px; }
  .info-grid { grid-template-columns: 1fr; }
  .info-card-wide { grid-column: auto; }
  .subpage-main { width: min(calc(100% - 28px), 920px); padding-block: 145px 76px; }
  .subpage-hero h1 {
    font-size: clamp(2.55rem, 13vw, 4rem);
    overflow-wrap: normal;
    text-wrap: pretty;
    word-break: normal;
  }
  .info-card { padding: 22px; border-radius: 22px; }
  .button { min-height: 48px; }
}

@media (max-width: 380px) {
  .page-shell,
  .footer-inner,
  .subpage-main {
    width: min(calc(100% - 20px), var(--max));
  }

  .site-header { width: calc(100% - 12px); }
  .header-inner { padding-inline: 10px; }
  .brand { width: 102px; }
  .hero { padding-top: 138px; }
  .hero h1 { font-size: 2.48rem; }
  .hero-object { width: min(80vw, 280px); }
  .product-card { padding: 18px; }
  .contact-panel { padding: 26px 20px; }
}

/* Mobile navigation is a contained menu rather than an overflowing link strip. */
@media (max-width: 920px) {
  .site-header {
    border-radius: 20px;
  }

  .header-inner {
    position: relative;
    min-height: 64px;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 1fr;
    gap: 10px;
    padding: 0 12px;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  .header-actions {
    grid-column: 2;
    grid-row: 1;
  }

  .mobile-menu-toggle { display: grid; }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    width: 100%;
    max-height: calc(100vh - 96px);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    margin: 0;
    padding: 10px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: color-mix(in srgb, var(--bg) 95%, transparent);
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px) scale(.985);
    transform-origin: top center;
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    backdrop-filter: blur(24px) saturate(1.2);
    transition: opacity 180ms ease, transform 220ms cubic-bezier(.2,.75,.2,1), visibility 180ms ease;
  }

  .site-header.is-menu-open .site-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .site-nav a {
    width: 100%;
    min-height: 46px;
    justify-content: flex-start;
    padding: 11px 14px;
    scroll-snap-align: none;
  }

  .site-nav a::after { right: 14px; left: 14px; }
}

@media (max-width: 680px) {
  body::before {
    animation: none;
    transform: none;
    will-change: auto;
  }

  .site-header {
    top: 8px;
    width: calc(100% - 16px);
  }

  .site-nav { grid-template-columns: 1fr; }
  .brand { width: 118px; }
  .header-actions { gap: 6px; }
  .language-menu summary,
  .theme-toggle,
  .mobile-menu-toggle { width: 40px; min-width: 40px; height: 40px; min-height: 40px; padding: 0; }

  .page-shell,
  .footer-inner {
    width: calc(100% - 32px);
  }

  .hero {
    gap: 42px;
    padding-block: 106px 64px;
  }

  .hero h1 {
    max-width: 12ch;
    font-size: clamp(2.65rem, 12vw, 3.75rem);
    line-height: 1.01;
  }

  .hero-lead {
    margin-top: 24px;
    font-size: 1.03rem;
  }

  .hero-actions { margin-top: 28px; }

  .hero-object {
    width: min(68vw, 260px);
    overflow: visible;
  }

  .hero-orbit { inset: 14px; }
  .orbit-handle { width: 28px; height: 28px; }
  .orbit-handle::before { inset: -9px; }
  .hero-mark { animation: none; }

  .section { padding-block: 68px; }
  .section-heading { margin-bottom: 30px; }
  .product-card { padding: 20px; }
  .product-visual { min-height: 190px; }
  .principle { min-height: 180px; }
  .reveal { transform: translateY(12px); transition-duration: 520ms; }
}

@media (max-width: 390px) {
  .site-header { width: calc(100% - 12px); }
  .header-inner { padding-inline: 9px; }
  .brand { width: 105px; }
  .header-actions { gap: 4px; }
  .language-menu summary,
  .theme-toggle,
  .mobile-menu-toggle { width: 38px; min-width: 38px; height: 38px; min-height: 38px; }
  .page-shell,
  .footer-inner,
  .subpage-main { width: calc(100% - 24px); }
  .hero { padding-top: 100px; }
  .hero h1 { font-size: clamp(2.35rem, 11.8vw, 3.05rem); }
  .hero-object { width: min(70vw, 246px); }
  .product-card { padding: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
