/* Layout: a calm, light studio page; the hero's app icons float on separate depth planes (the parallax). */
:root {
  --bg: #F3F5F6; --surface: #FFFFFF; --ink: #10161D; --muted: #56636F; --line: #DCE2E6;
  --accent: #0E7C72; --accent-ink: #FFFFFF; --accent-soft: #D6EEEA;
  --display: "Sora", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0C1117; --surface: #131A22; --ink: #EAF0F4; --muted: #95A4B1; --line: #222D38;
    --accent: #5FD0C2; --accent-ink: #062320; --accent-soft: #12302D;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--body);
  padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px));
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.nav, main, .foot { max-width: 1120px; margin: 0 auto; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: max(20px, env(safe-area-inset-top, 0px)) 0 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 16px var(--display); letter-spacing: -0.01em; }
.nav nav { display: flex; gap: 22px; }
.nav nav a { text-decoration: none; color: var(--muted); font-size: 15px; }
.nav nav a:hover { color: var(--ink); }
@media (max-width: 560px) { .nav nav { gap: 14px; } .brand span { display: none; } }

.eyebrow { font: 500 12.5px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.btn { display: inline-block; background: var(--ink); color: var(--bg); text-decoration: none; font: 600 15px var(--body); padding: 12px 20px; border-radius: 999px; transition: transform .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.small { padding: 8px 15px; font-size: 14px; background: var(--accent); color: var(--accent-ink); }
.link { color: var(--ink); font-weight: 500; text-underline-offset: 4px; }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 56px 0 88px; }
.hero-text { display: grid; gap: 22px; }
.hero h1 { font-size: clamp(44px, 6.6vw, 82px); font-weight: 700; }
.lede { font-size: clamp(18px, 1.6vw, 20px); color: var(--muted); max-width: 52ch; }
.cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero-stage { position: relative; aspect-ratio: 1 / 0.92; max-width: 520px; width: 100%; justify-self: end; }
.layer { position: absolute; border-radius: 22%; box-shadow: 0 30px 60px -20px rgba(16, 22, 29, .35), 0 8px 18px -8px rgba(16, 22, 29, .25); will-change: transform; transition: transform .2s ease-out; }
.l1 { width: 44%; left: 30%; top: 22%; z-index: 5; }
.l2 { width: 34%; left: 2%; top: 4%; z-index: 4; }
.l3 { width: 30%; left: 66%; top: 0%; z-index: 3; }
.l4 { width: 26%; left: 70%; top: 62%; z-index: 4; }
.l5 { width: 22%; left: 8%; top: 66%; z-index: 2; }
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding: 28px 0 64px; }
  .hero-stage { justify-self: start; max-width: 380px; order: -1; }
}

/* apps */
section { scroll-margin-top: 24px; }
.section-head { display: grid; gap: 10px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 48px); font-weight: 700; }
.apps { padding-bottom: 96px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .grid { grid-template-columns: 1fr; } }
.app { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.app > img { border-radius: 22%; width: 96px; height: 96px; }
.app-body { display: grid; gap: 8px; min-width: 0; }
.kind { font: 500 12px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.app h3 { font-size: 21px; font-weight: 600; }
.app p:not(.kind) { color: var(--muted); font-size: 15.5px; }
.links { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.links a:not(.btn) { font-size: 14.5px; color: var(--muted); text-underline-offset: 3px; }
.links a:not(.btn):hover { color: var(--ink); }
.app.next { background: transparent; border-style: dashed; }
.next-mark { width: 96px; height: 96px; position: relative; }
.next-mark span { position: absolute; width: 58px; height: 58px; border-radius: 16px; border: 2px solid var(--accent); }
.next-mark span:nth-child(1) { left: 0; top: 0; opacity: .35; }
.next-mark span:nth-child(2) { left: 18px; top: 18px; opacity: .65; }
.next-mark span:nth-child(3) { left: 36px; top: 36px; background: var(--accent-soft); }
@media (max-width: 420px) { .app { grid-template-columns: 1fr; } }

/* studio */
.studio { padding-bottom: 96px; }
.cols { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; }
.cols > p { font-size: 18.5px; color: var(--muted); max-width: 60ch; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.facts li { padding: 14px 0; border-top: 1px solid var(--line); color: var(--muted); }
.facts li:last-child { border-bottom: 1px solid var(--line); }
.facts b { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) { .cols { grid-template-columns: 1fr; gap: 24px; } }

/* contact */
.contact { padding-bottom: 96px; }
.contact-line { color: var(--muted); margin-bottom: 14px; }
.email { display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 10px 10px 10px 22px; max-width: 100%; }
#email-address { font: 600 clamp(18px, 2.6vw, 26px) var(--display); user-select: all; overflow-wrap: anywhere; }
#copy-email { font: 600 14px var(--body); border: 0; border-radius: 999px; padding: 10px 16px; background: var(--accent); color: var(--accent-ink); cursor: pointer; }

/* footer */
.foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding: 22px 0 max(28px, env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 14px; }
.foot nav { display: flex; gap: 18px; }
.foot a { color: var(--muted); text-underline-offset: 3px; }

/* privacy page */
.doc { max-width: 720px; padding: 32px 0 96px; display: grid; gap: 18px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); }
.doc h2 { font-size: 22px; margin-top: 18px; }
.doc p, .doc li { color: var(--muted); }
