/* Shared by every Studio NODÉ page: tokens, type, nav, theme switch, buttons, device frames, footer. */
:root {
  --bg: #f7f7f9;
  --surface: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #5e5e66;
  --ink-3: #8e8e96;
  --line: rgba(20, 20, 40, 0.08);
  --hair: rgba(20, 20, 40, 0.14);
  --glass: rgba(255, 255, 255, 0.7);
  --glass-line: rgba(255, 255, 255, 0.9);
  --shadow: 0 1px 2px rgba(20, 20, 40, 0.04), 0 10px 30px -12px var(--hair);
  --accent: #0a6cff;
  --otto-deep: #232d18;
  --otto-mid: #3d4c2a;
  --otto-lime: #c0e084;
  --otto-sage: #bbcc93;
  --otto-ink: #4a6a1e;
  --glow-a: rgba(192, 224, 132, 0.45);
  --glow-b: rgba(120, 170, 255, 0.28);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}
/* Dark: only when chosen with the switch in the nav (or by the viewer) */
:root[data-theme="dark"] {
  --bg: #0b0b0d;
  --surface: #161618;
  --ink: #f5f5f7;
  --ink-2: #a1a1a8;
  --ink-3: #6e6e75;
  --line: rgba(255, 255, 255, 0.08);
  --hair: rgba(255, 255, 255, 0.14);
  --glass: rgba(28, 28, 32, 0.62);
  --glass-line: rgba(255, 255, 255, 0.1);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px -16px rgba(0, 0, 0, 0.8);
  --accent: #4c9bff;
  --otto-ink: #b5d77a;
  --glow-a: rgba(192, 224, 132, 0.14);
  --glow-b: rgba(80, 130, 255, 0.14);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* Anchor jumps land below the sticky nav */
[id] { scroll-margin-top: 96px; }
body {
  background: var(--bg); color: var(--ink); font: 17px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3, h4 { font-family: var(--display); text-wrap: balance; margin: 0; letter-spacing: -0.022em; }
p { margin: 0; text-wrap: pretty; }
.wrap {
  max-width: 1120px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.eyebrow { font-size: 15px; font-weight: 600; color: var(--ink-3); letter-spacing: -0.01em; margin-bottom: 6px; }

/* Nav */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; padding-top: 12px; }
.nav-bar {
  display: flex; align-items: center; gap: 24px; padding: 8px 8px 8px 14px;
  background: var(--glass); border: 1px solid var(--glass-line); border-radius: 18px;
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: var(--shadow);
}
.brand { display: flex; align-items: center; gap: 10px; padding-block: 6px; text-decoration: none; font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.brand .wm { height: 15px; width: auto; flex: none; color: var(--ink); }
.brand .studio-word { font-size: 13px; font-weight: 500; color: var(--ink-3); padding-left: 10px; border-left: 1px solid var(--hair); line-height: 1; }
.nav-links { display: flex; gap: 22px; margin-left: 8px; }
.nav-links a { text-decoration: none; font-size: 14px; color: var(--ink-2); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  margin-left: 0; text-decoration: none; font-size: 14px; font-weight: 600;
  background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 12px;
}
@media (max-width: 560px) { .nav-links { display: none; } .nav-bar { gap: 12px; } }
@media (max-width: 400px) { .brand .studio-word { display: none; } }

/* Theme switch: the real iOS switch. Safari 17.4+ draws <input type="checkbox" switch>
   natively; elsewhere the .fallback rules below draw the same shape. */
.theme { margin-left: auto; display: flex; align-items: center; gap: 8px; color: var(--ink-3); cursor: pointer; }
.theme input { margin: 0; cursor: pointer; }
.theme input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.theme input.fallback {
  appearance: none; -webkit-appearance: none; position: relative; flex: none;
  width: 51px; height: 31px; border-radius: 999px; background: #e9e9eb; transition: background-color .25s ease;
}
:root[data-theme="dark"] .theme input.fallback { background: #39393d; }
.theme input.fallback::before {
  content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15), 0 3px 1px rgba(0, 0, 0, 0.06);
  transition: transform .25s cubic-bezier(0.32, 0.72, 0, 1);
}
.theme input.fallback:checked { background: #34c759; }
.theme input.fallback:checked::before { transform: translateX(20px); }
/* Theme change: the new theme grows as a circle from the switch (studio.js drives it) */
html.theming::view-transition-old(root), html.theming::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
/* Between pages: a short cross-fade, with the nav bar staying put */
@view-transition { navigation: auto; }
.nav { view-transition-name: nav; }
::view-transition-old(root) { animation: page-out .22s ease-out both; }
::view-transition-new(root) { animation: page-in .32s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes page-out { to { opacity: 0; } }
@keyframes page-in { from { opacity: 0; transform: translateY(8px); } }

.pill {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2);
  padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: #8fbf45; box-shadow: 0 0 0 3px rgba(143, 191, 69, .22); }

.rise { animation: rise .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* Sections */
section { padding-block: 72px; }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
/* One size for every section title */
.sec-head h2, .about-intro h2, .contact h2 { font-size: clamp(32px, 4.6vw, 48px); line-height: 1.08; font-weight: 600; letter-spacing: -0.025em; }
.sec-head p { color: var(--ink-2); max-width: 30em; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); }
.chip img { width: 16px; height: 16px; border-radius: 4px; }
.chip svg { width: 16px; height: 16px; color: var(--ink-3); }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--otto-ink); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 15px; font-weight: 600;
  padding: 11px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  cursor: pointer; font-family: inherit; transition: transform .15s var(--ease), background .2s;
}
.btn:active { transform: scale(0.97); }
.btn.dark { background: var(--ink); color: var(--bg); border-color: transparent; }
.btn svg { width: 16px; height: 16px; }

.frame {
  border-radius: 46px; padding: 9px; background: #0b0b0c;
  box-shadow: 0 0 0 1.5px #48484c, 0 0 0 4px #1c1c1e, 0 40px 70px -24px rgba(0,0,0,.7);
}
.scr { position: relative; border-radius: 38px; overflow: hidden; background: #12160e; aspect-ratio: 1206 / 2622; }
.scr img { width: 100%; height: 100%; display: block; }
.isl { position: absolute; left: 50%; top: 1.4%; width: 31%; height: 3.6%; transform: translateX(-50%); background: #000; border-radius: 20px; }

footer { border-top: 1px solid var(--line); padding-block: 28px 40px; font-size: 13px; color: var(--ink-3); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { text-decoration: none; }
.foot-brand { display: inline-flex; align-items: center; gap: 12px; }
.foot-brand .wm { height: 11px; width: auto; color: var(--ink); }
footer a:hover { color: var(--ink); }

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