/* SWRS STUDIO — design system (reference: docs/design-refs/reference-v1.webp, spec: docs/DESIGN_PLAN.md)
   No external fonts, no framework. System font = SF Pro on Apple devices. */
:root {
  --paper: #f3f2f0;          /* warm off-white page */
  --paper-2: #ebeae7;        /* haze / cards */
  --ink: #0b0b0c;            /* headlines, buttons */
  --ink-2: #3a3a3c;          /* body */
  --mute: #6b6b70;           /* secondary text */
  --line: #d9d8d4;           /* dividers on paper */
  --night: #0c0c0d;          /* footer */
  --night-line: #2a2a2c;
  --night-mute: #9a9a9f;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1320px;
  --gutter: clamp(20px, 5.2vw, 80px);
  --header-h: clamp(64px, 6.4vw, 92px);
  --section-y: clamp(96px, 11vw, 176px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: clamp(16px, 1.15vw, 18px); line-height: 1.5;
  letter-spacing: -0.011em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 4px; }
.site-footer :focus-visible { outline-color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); position: relative; }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; }
.skip:focus { left: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--line) 80%, transparent);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.wordmark { font-size: clamp(19px, 1.55vw, 24px); font-weight: 700; letter-spacing: -0.035em; }
.primary-nav { display: flex; align-items: center; gap: clamp(28px, 4vw, 64px); }
.primary-nav ul { display: flex; gap: clamp(20px, 2.6vw, 44px); }
.primary-nav ul a { position: relative; font-size: 14px; font-weight: 450; padding: 8px 0; color: var(--ink); }
.primary-nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: #a5a5a8; /* neutral grey */
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.primary-nav ul a:hover::after, .primary-nav ul a[aria-current="true"]::after { transform: scaleX(1); }

.pill {
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
  height: 44px; padding: 0 22px; border-radius: 999px; font-size: 14px; font-weight: 500;
  transition: transform .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
}
.pill-dark { background: var(--ink); color: #fff; }
.pill-dark:hover { background: #2b2b2e; transform: translateY(-1px); }
.pill-outline { border: 1px solid #5a5a5e; color: #fff; }
.pill-outline:hover { background: #fff; color: var(--ink); }

.menu-toggle { display: none; }

/* ---------- Panels & type ---------- */
.panel { position: relative; overflow: hidden; padding: var(--section-y) 0; }
.eyebrow { font-size: clamp(11px, .85vw, 13px); font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); margin-bottom: clamp(20px, 2.4vw, 36px); }
.display {
  font-size: clamp(52px, 8.6vw, 136px); line-height: .94; font-weight: 500; letter-spacing: -0.052em;
  text-wrap: balance;
}
.display-2 { font-size: clamp(50px, 8vw, 128px); }
.headline { font-size: clamp(40px, 5.3vw, 84px); line-height: .98; font-weight: 400; letter-spacing: -0.045em; }
.aside { color: var(--mute); font-size: clamp(15px, 1.1vw, 17px); line-height: 1.55; max-width: 24ch; }
.aside-lg { font-size: clamp(16px, 1.3vw, 20px); max-width: 30ch; text-wrap: balance; }
.section-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 48px; }
.section-head .aside { padding-top: clamp(40px, 4.4vw, 72px); }

/* ---------- Home ---------- */
.hero {
  min-height: max(720px, 100svh); padding: calc(var(--header-h) + clamp(56px, 9vh, 120px)) 0 clamp(40px, 5vw, 64px);
  display: flex; background:
    radial-gradient(120% 90% at 85% 0%, #ffffff 0%, rgba(255,255,255,0) 55%),
    var(--paper);
}
.hero-inner { display: flex; flex-direction: column; min-height: 100%; flex: 1; z-index: 1; }
.hero-sub { margin-top: clamp(28px, 3.2vw, 48px); font-size: clamp(18px, 1.6vw, 24px); line-height: 1.4; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.arrow-link { margin-top: clamp(36px, 4.6vw, 64px); display: inline-flex; align-items: center; gap: 20px; align-self: flex-start; font-size: 15px; font-weight: 500; }
.arrow-circle {
  width: clamp(52px, 4.4vw, 64px); aspect-ratio: 1; border-radius: 50%; background: var(--ink);
  display: grid; place-items: center; transition: transform .4s var(--ease);
}
.arrow-circle svg { width: 22px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease); }
.arrow-link:hover .arrow-circle { transform: scale(1.06); }
.arrow-link:hover .arrow-circle svg { transform: translateX(3px); }

/* Abstract monochrome forms (pure CSS). A dark sphere with a soft light rim. */
.shape { position: absolute; pointer-events: none; z-index: 0; border-radius: 50%; }
.shape-hero {
  width: 150vmax; height: 150vmax; left: 46%; top: 34%;
  background: radial-gradient(closest-side at 50% 50%, #000 0%, #040405 86%, #161618 95%, #6e6e71 98.6%, #f4f4f2 99.5%, rgba(243,242,240,0) 100%);
  box-shadow: -18px -22px 60px -6px rgba(255,255,255,1);
  transform: rotate(-8deg);
}
.shape-hero::after { /* glossy light falling on the upper-left of the sphere */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(60% 60% at 18% 22%, rgba(255,255,255,.07) 0%, rgba(255,255,255,0) 40%);
}
.shape-hero::before { /* soft grey haze around the form */
  content: ""; position: absolute; inset: -14%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(110,110,112,.28) 72%, rgba(243,242,240,0) 100%);
  filter: blur(30px); z-index: -1;
}
.shape-studio {
  width: 120vmax; height: 46vmax; right: -48vmax; bottom: -30vmax; border-radius: 50%;
  background: radial-gradient(closest-side, #000 0%, #0b0b0c 55%, #2a2a2c 78%, rgba(243,242,240,0) 100%);
  box-shadow: -30px -40px 90px rgba(255,255,255,.9);
  transform: rotate(-14deg);
}
.shape-contact {
  width: 130vmax; height: 34vmax; left: -42vmax; bottom: -27vmax;
  background: radial-gradient(closest-side, #000 0%, #0b0b0c 60%, #3a3a3c 86%, rgba(243,242,240,0) 100%);
  box-shadow: 30px -36px 90px rgba(255,255,255,.95);
  transform: rotate(5deg);
}

/* ---------- Products ---------- */
.products { background: linear-gradient(180deg, var(--paper) 0%, #f6f5f3 100%); }
.app-grid { margin-top: clamp(56px, 6.4vw, 104px); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3.4vw, 56px); }
.app { display: flex; flex-direction: column; }
.app-icon {
  width: 100%; max-width: 260px; height: auto; aspect-ratio: 1; border-radius: 22.37%; object-fit: cover;
  box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 18px 40px -18px rgba(0,0,0,.35);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.app:hover .app-icon { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 28px 50px -20px rgba(0,0,0,.4); }
.icon-placeholder {
  position: relative; display: grid; place-items: center;
  background: linear-gradient(145deg, #e4e3e0, #d4d3cf); border: 1px dashed #a9a8a4; box-shadow: none;
}
.app:hover .icon-placeholder { box-shadow: none; }
.app-name { margin-top: clamp(24px, 2.4vw, 36px); font-size: clamp(19px, 1.6vw, 24px); font-weight: 600; letter-spacing: -0.02em; }

/* Store availability. Text only: official Apple/Google badges may only be used for apps that are
   live (or in pre-order / pre-registration) and must link to the listing — see docs/STORE_BADGES.md. */
.stores { margin-top: auto; padding-top: 24px; } /* bottom-aligned across the 3 cards */
.store-row { display: flex; gap: 8px; flex-wrap: nowrap; max-width: 300px; }
.store-btn {
  flex: 1 1 0; min-width: 0; display: inline-flex; align-items: center; gap: 9px;
  height: 48px; padding: 0 14px 0 11px; border-radius: 12px; white-space: nowrap;
  border: 1px solid transparent; color: #fff; cursor: not-allowed; user-select: none;
  box-shadow: 0 1px 0 rgba(255,255,255,.22) inset, 0 6px 16px -8px rgba(11,11,12,.35);
}
/* Own neutral platform chips (colour + name + generic phone glyph). No Apple/Google marks before launch:
   brand rules forbid them for unreleased apps (docs/STORE_BADGES.md, round 5). */
.store-apple { background: linear-gradient(160deg, #2b6fe6 0%, #1b4fc4 100%); }
.store-google { background: linear-gradient(160deg, #13955f 0%, #0d7356 100%); }
.sb-icon { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; opacity: .92; }
.sb-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sb-name { font-size: 15px; font-weight: 600; letter-spacing: -0.015em; line-height: 1; }
.sb-sub { font-size: 11px; font-weight: 500; line-height: 1; letter-spacing: .01em; color: rgba(255,255,255,.78); }
a.store-btn { cursor: pointer; } /* reserved; live apps use the official badge <img>, not this element */

/* ---------- Studio ---------- */
.studio { background: radial-gradient(90% 70% at 100% 100%, #e6e5e2 0%, var(--paper) 60%); padding-bottom: clamp(140px, 16vw, 240px); }
.pillars {
  margin-top: clamp(64px, 7vw, 112px); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.pillars li { padding: clamp(28px, 2.8vw, 40px) clamp(20px, 2.6vw, 40px) 8px; display: flex; flex-direction: column; gap: 12px; }
.pillars li:first-child { padding-left: 0; }
.pillars li + li { border-left: 1px solid var(--line); }
.num { font-size: clamp(16px, 1.3vw, 20px); font-weight: 600; letter-spacing: -0.01em; }
.label { color: var(--mute); font-size: clamp(16px, 1.3vw, 20px); line-height: 1.35; }
.approach { margin-top: clamp(64px, 7vw, 104px); max-width: 620px; position: relative; z-index: 1; }
.approach h3 { font-size: clamp(18px, 1.5vw, 22px); font-weight: 600; letter-spacing: -0.02em; margin-bottom: 12px; }
.approach p { color: var(--ink-2); font-size: clamp(16px, 1.25vw, 19px); line-height: 1.55; text-wrap: balance; }

/* ---------- Contact ---------- */
.contact { padding-bottom: clamp(140px, 15vw, 220px); }
.contact-grid { margin-top: clamp(48px, 5.6vw, 88px); display: grid; grid-template-columns: 1fr minmax(280px, 460px); gap: clamp(40px, 8vw, 160px); align-items: start; position: relative; z-index: 1; }
.contact-text { color: var(--ink-2); font-size: clamp(17px, 1.5vw, 22px); line-height: 1.5; max-width: 26ch; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.contact-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.field { position: relative; border-bottom: 1px solid var(--line); padding: 18px 0 10px; transition: border-color .3s var(--ease); }
.field:first-of-type { padding-top: 0; }
.field label { display: block; font-size: 12px; font-weight: 500; letter-spacing: .02em; color: var(--mute); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; border: 0; padding: 4px 0; background: transparent; color: var(--ink);
  font: inherit; font-size: clamp(16px, 1.2vw, 18px); letter-spacing: -0.01em; outline: none; resize: vertical;
}
.field textarea { min-height: 96px; line-height: 1.5; }
.field:focus-within { border-color: var(--ink); }
.field:focus-within label { color: var(--ink); }
.field.is-invalid { border-color: #b3261e; }
.field .err { display: block; margin-top: 6px; font-size: 12px; color: #b3261e; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.send-btn {
  display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 24px; border: 0; border-radius: 999px;
  background: var(--ink); color: #fff; font: inherit; font-size: 15px; font-weight: 500; cursor: pointer;
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.send-btn span { transition: transform .3s var(--ease); }
.send-btn:hover:not(:disabled) { background: #2b2b2e; }
.send-btn:hover:not(:disabled) span { transform: translateX(3px); }
.contact-form fieldset:disabled .field { opacity: .7; }
.contact-form fieldset:disabled .send-btn { background: #c9c8c4; color: #fff; cursor: not-allowed; }
.contact-form fieldset:disabled input, .contact-form fieldset:disabled textarea { cursor: not-allowed; }
.form-status { margin-top: 16px; margin-bottom: 0; font-size: 14px; color: var(--ink-2); min-height: 1.4em; }
.form-status.is-unavailable { display: flex; gap: 10px; align-items: baseline; margin: 0 0 28px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.45); }
.form-status.is-unavailable::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: #b3b2ae; transform: translateY(-2px); }
.form-status.is-error { color: #b3261e; }

.ci { width: 22px; flex: none; fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.contact-mail { display: inline-flex; align-items: center; gap: 14px; margin-top: 32px; font-size: clamp(16px, 1.25vw, 19px); font-weight: 500; letter-spacing: -0.01em; padding-bottom: 4px; border-bottom: 1px solid var(--line); transition: border-color .3s var(--ease); }
.contact-mail:hover { border-color: var(--ink); }
.form-status a { text-decoration: underline; text-underline-offset: 3px; }
.form-status[hidden] { display: none; }
.form-result { margin: 16px 0 0; font-size: 14px; color: var(--ink-2); min-height: 1.4em; }
.form-result.is-success { color: #1e6b3a; }
.form-result.is-error { color: #b3261e; }

/* Contact: headline + one mailto button */
.contact-cta { position: relative; z-index: 1; margin-top: clamp(40px, 4.4vw, 64px); height: 56px; padding: 0 30px; font-size: 16px; }
.contact-cta:hover { background: #2b2b2e; }
.contact-cta:hover span { transform: translateX(3px); }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: #fff; padding: clamp(40px, 4vw, 56px) 0 clamp(32px, 3vw, 44px); }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: clamp(24px, 2.4vw, 32px); border-bottom: 1px solid var(--night-line); }
.footer-claim { font-size: 12px; font-weight: 400; letter-spacing: .01em; color: #b4b4b9; text-align: right; }
.footer-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-top: clamp(20px, 2.2vw, 28px); }
.footer-meta { font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; line-height: 1.8; color: var(--night-mute); }
.footer-meta .copy { letter-spacing: .04em; text-transform: none; }
.legal-links { display: flex; gap: 24px; font-size: 11px; }
.legal-links a { color: var(--night-mute); font-weight: 400; letter-spacing: .12em; text-transform: uppercase; transition: color .3s; }
.legal-links a:hover, .legal-links a[aria-current="page"] { color: #fff; }

/* ---------- Legal pages ---------- */
.legal { padding: calc(var(--header-h) + clamp(56px, 8vw, 120px)) 0 var(--section-y); }
.legal .wrap { max-width: 880px; }
.legal h1 { font-size: clamp(44px, 6.4vw, 96px); line-height: .98; font-weight: 500; letter-spacing: -0.05em; margin-bottom: clamp(28px, 3vw, 48px); }
.legal h2 { font-size: clamp(20px, 1.7vw, 26px); font-weight: 600; letter-spacing: -0.02em; margin: clamp(40px, 4vw, 56px) 0 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal p, .legal li, .legal address { font-size: 17px; line-height: 1.6; color: var(--ink-2); font-style: normal; }
.legal p + p { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 1.2em; }
.legal .lead { color: var(--mute); }
.lang-switch { display: flex; align-items: center; gap: 6px; margin-bottom: clamp(16px, 2vw, 24px); font-size: 12px; letter-spacing: .14em; color: var(--mute); }
.legal .lang-switch a { text-decoration: none; color: var(--mute); padding: 6px 4px; transition: color .3s; }
.legal .lang-switch a:hover, .legal .lang-switch a[aria-current] { color: var(--ink); }
.legal .lang-switch a[aria-current] { font-weight: 500; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.todo { background: #e2e1dd; color: var(--ink); border-radius: 5px; padding: 1px 6px; font-size: .92em; }

/* ---------- 404 ---------- */
.notfound { min-height: 100svh; display: flex; align-items: center; }
.notfound .display { margin-bottom: 32px; }

/* ---------- Reveal on scroll (only when JS is active and motion allowed) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}

/* ---------- Responsive ---------- */
.br-mob { display: none; }
@media (max-width: 1024px) {
  .section-head { flex-direction: column; gap: 24px; }
  .section-head .aside { padding-top: 0; }
  .app-grid { gap: 28px; }
}
@media (max-width: 860px) {
  .menu-toggle {
    display: grid; place-content: center; gap: 5px; width: 44px; height: 44px; margin-right: -10px;
    background: none; border: 0; cursor: pointer; color: var(--ink);
  }
  .menu-toggle span { width: 20px; height: 1.6px; background: currentColor; border-radius: 2px; transition: transform .35s var(--ease), opacity .2s; }
  .menu-open .menu-toggle span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
  .menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }
  .primary-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); padding: 8px var(--gutter) 28px; border-bottom: 1px solid var(--line);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
  }
  .menu-open .primary-nav { visibility: visible; opacity: 1; transform: none; transition: opacity .3s var(--ease), transform .3s var(--ease); }
  .menu-open .site-header { background: var(--paper); }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav ul a { display: block; padding: 16px 0; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; border-bottom: 1px solid var(--line); }
  .primary-nav ul a::after { display: none; }
  .nav-cta { margin-top: 24px; height: 52px; font-size: 16px; }

  .contact-grid { grid-template-columns: 1fr; }
  .footer-claim { font-size: 11px; }
}
@media (max-width: 640px) {
  .app-grid { grid-template-columns: 1fr; gap: 64px; max-width: 420px; }
  .app-icon { max-width: 220px; }
  .pillars { grid-template-columns: 1fr; border-top: 0; }
  .pillars li { flex-direction: row; gap: 32px; padding: 18px 0; border-top: 1px solid var(--line); }
  .pillars li + li { border-left: 0; }
  .pillars li:last-child { border-bottom: 1px solid var(--line); }
  .num { min-width: 28px; }
  .label br { display: none; }
}
@media (max-width: 520px) {
  .br-desk { display: none; }
  .br-mob { display: inline; }
  .display { font-size: min(16vw, 72px); }
  .headline { font-size: min(11.5vw, 48px); }
  .hero { min-height: max(640px, 100svh); }
  .shape-hero { left: 42%; top: 58%; }
  .shape-contact { width: 240vw; height: 56vw; left: -70vw; bottom: -44vw; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Hero entrance (CSS only, no flash) */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.rise { animation: rise 1s var(--ease) both; }
.hero .rise:nth-child(2) { animation-delay: .08s; }
.hero .rise:nth-child(3) { animation-delay: .16s; }
.hero .rise:nth-child(4) { animation-delay: .24s; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.shape-hero { animation: fade 1.6s var(--ease) both; }
@media (prefers-reduced-motion: reduce) { .rise, .shape-hero { animation: none; } }

/* Store buttons on narrow 3-column tablets: stack instead of clipping text */
@media (min-width: 641px) and (max-width: 860px) {
  .store-row { flex-direction: column; max-width: none; }
  .store-btn { flex: none; width: 100%; }
}
