:root {
  --ink: #1c1c1e;
  --soft: #b9b9bc;
  --muted: #78787e;
  --hairline: #e9e9eb;
  --panel: #f5f5f5;
  --accent: #3f5bff;
  --max: 1320px;
  --font: "SF Pro Rounded", ui-rounded, "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); background: #fff; font: 500 16px/1.45 var(--font);
  letter-spacing: -.018em; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { width: min(var(--max), calc(100% - 64px)); margin: 0 auto; }
body, .fact-card, .cta-panel, .download-link, .theme-toggle { transition: background-color .38s ease, color .38s ease, border-color .38s ease; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 26px; letter-spacing: -.045em; }
.brand-mark {
  --flat-filter: grayscale(1) brightness(0) invert(1);
  position: relative;
  width: 32px; height: 32px; display: grid; place-items: center; overflow: hidden;
  isolation: isolate; border-radius: 8px; background: #111;
  transition: background .48s cubic-bezier(.2,.8,.2,1), box-shadow .48s cubic-bezier(.2,.8,.2,1), transform .48s cubic-bezier(.2,.8,.2,1);
}
.brand-mark img {
  grid-area: 1 / 1; pointer-events: none;
  transition: opacity .48s cubic-bezier(.22,.8,.2,1), transform .52s cubic-bezier(.2,.8,.2,1), filter .4s ease;
}
.brand-mark .mark-flat { width: 21px; height: 21px; object-fit: contain; filter: var(--flat-filter); }
.brand-mark .mark-color { width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(.88); filter: none; }
.brand-word { display: block; height: 17px; width: auto; }
@media (hover: hover) and (pointer: fine) {
  .brand:hover .brand-mark, .brand:focus-visible .brand-mark {
    background: transparent;
    box-shadow: 0 6px 16px rgba(255,122,48,.28);
    transform: scale(1.06);
  }
  .brand:hover .mark-flat, .brand:focus-visible .mark-flat { opacity: 0; transform: scale(1.12); }
  .brand:hover .mark-color, .brand:focus-visible .mark-color { opacity: 1; transform: scale(1); }
}
.top-links { display: flex; align-items: center; gap: 25px; color: #77777c; font-size: 16px; }
.top-links a, .footer-links a { position: relative; transition: color .18s ease; }
.top-links a:hover, .footer-links a:hover { color: #111; }
.top-links a::after, .footer-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 1px;
  background: currentColor; transition: right .28s cubic-bezier(.2,.8,.2,1);
}
.top-links a:hover::after, .footer-links a:hover::after { right: 0; }
.download-link {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  min-height: 42px; padding: 0 16px 0 14px;
  color: #fff !important; background: var(--ink); border-radius: 999px;
  letter-spacing: -.02em;
  transition: transform .22s cubic-bezier(.2,.8,.2,1), background .2s ease, box-shadow .22s ease !important;
}
.download-link:hover {
  background: #050505;
  transform: translateY(-2px) rotate(-1.5deg);
  box-shadow: 0 12px 24px rgba(20,20,25,.16);
}
.download-link:active { transform: translateY(0) rotate(0) scale(.97); }
.download-link::after { display: none; }
.apple-mark { width: 15px; height: 15px; flex: 0 0 15px; fill: currentColor; margin-top: -1px; transition: transform .22s cubic-bezier(.2,.8,.2,1); }
.download-link:hover .apple-mark, .cta-link:hover .apple-mark { transform: scale(1.08) rotate(-12deg); }
.theme-toggle {
  width: 42px; height: 42px; flex: 0 0 42px; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center; color: #55555a; background: var(--panel); cursor: pointer;
  transition: transform .22s ease, color .2s ease, background .2s ease;
}
.theme-toggle:hover { transform: rotate(8deg) scale(1.05); color: var(--ink); }
.theme-toggle svg { grid-area: 1 / 1; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: opacity .22s ease, transform .32s ease; }
.theme-toggle .moon { opacity: 0; transform: rotate(-35deg) scale(.65); }
html[data-theme="dark"] .theme-toggle .sun { opacity: 0; transform: rotate(35deg) scale(.65); }
html[data-theme="dark"] .theme-toggle .moon { opacity: 1; transform: none; }

.page-hero { max-width: 900px; padding: 126px 0 82px; }
.eyebrow { display: block; margin-bottom: 20px; color: #9a9aa0; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { text-wrap: balance; }
.lede, .article p, .article li, .fact-card strong, .closing-copy, .updated { text-wrap: pretty; }
h1 { margin-bottom: 26px; font-size: clamp(48px, 5.3vw, 80px); line-height: 1.055; letter-spacing: -.055em; font-weight: 500; }
.light { color: var(--soft); }
.lede { max-width: 720px; margin-bottom: 18px; color: #77777c; font-size: clamp(18px, 2vw, 23px); line-height: 1.35; }
.updated { margin: 0; color: #b0b0b5; font-size: 16px; }

.content-layout { display: grid; grid-template-columns: 220px minmax(0, 760px); gap: 90px; padding-bottom: 140px; }
.side-nav { position: sticky; top: 34px; align-self: start; }
.side-nav span { display: block; margin-bottom: 15px; color: #adadb2; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.side-nav a { display: block; width: fit-content; margin: 9px 0; color: #8d8d92; font-size: 16px; transition: color .18s ease, transform .18s ease; }
.side-nav a:hover { color: var(--ink); transform: translateX(3px); }
.article { min-width: 0; }
.article section { padding: 38px 0; border-top: 1px solid var(--hairline); scroll-margin-top: 30px; }
.article section:first-child { padding-top: 0; border-top: 0; }
.article h2 { margin-bottom: 15px; font-size: clamp(25px, 2.5vw, 34px); line-height: 1.1; letter-spacing: -.04em; font-weight: 500; }
.article h3 { margin: 24px 0 10px; font-size: 18px; letter-spacing: -.025em; font-weight: 500; }
.article p, .article li { color: #77777c; font-size: 16px; line-height: 1.62; }
.article p { margin-bottom: 13px; }
.article p:last-child { margin-bottom: 0; }
.article ul { margin: 4px 0 14px; padding-left: 20px; }
.article li { margin: 6px 0; }
.article strong { color: #27272a; font-weight: 500; }
.article a { color: var(--ink); border-bottom: 1px solid #c9c9cd; transition: border-color .18s ease; }
.article a:hover { border-color: var(--ink); }
.fact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 24px; }
.fact-card { min-height: 158px; padding: 24px; border-radius: 24px; background: var(--panel); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease; }
.fact-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(24,24,27,.07); }
.fact-card span { display: block; margin-bottom: 30px; color: #aaaab0; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.fact-card strong { font-size: 21px; letter-spacing: -.035em; }
.cta-panel { margin-top: 30px; padding: 34px; border-radius: 24px; background: var(--ink); color: #fff; }
.cta-panel p { color: #aaaab0; }
.cta-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 13px 18px; border: 0 !important; border-radius: 999px; color: var(--ink) !important; background: #fff; transition: transform .2s ease; }
.cta-link:hover { transform: translateY(-2px); }

footer.site-footer { padding: 0 0 66px; color: #b6b6ba; font-size: 16px; line-height: 1.4; }
.studio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.studio-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  padding: 16px 20px;
  border: 0; border-radius: 24px; background: var(--panel);
  transition: transform .55s cubic-bezier(.22, 1, .36, 1), box-shadow .55s ease, background .2s ease;
}
.studio-card:hover { transform: translateY(-5px); box-shadow: 0 22px 48px rgba(24,24,27,.08); }
.studio-logo { display: block; height: 18px; width: auto; max-width: 220px; object-fit: contain; object-position: left center; filter: invert(1); }
.studio-card p { margin: 0; max-width: 42ch; color: #a8a8ad; font-size: 16px; line-height: 1.35; }
.footer-bar {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; margin-top: 22px;
}
.footer-bar p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.studio-card::after { display: none; }
.contact-cursor {
  position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; padding: 9px 13px;
  border-radius: 999px; color: #fff; background: var(--ink); font-size: 12px; line-height: 1;
  white-space: nowrap; opacity: 0; transform: translate(14px, 14px) scale(.82);
  transition: opacity .18s ease, transform .25s cubic-bezier(.2,.8,.2,1);
}
.contact-cursor.visible { opacity: 1; transform: translate(14px, 14px) scale(1); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

html[data-theme="dark"] { --ink: #f2f2f4; --soft: #66666d; --muted: #96969d; --hairline: #2b2b2f; --panel: #19191c; color-scheme: dark; }
html[data-theme="dark"] body { color: var(--ink); background: #0c0c0e; }
html[data-theme="dark"] .brand-mark { background: #f3f3f5; --flat-filter: none; }
html[data-theme="dark"] .brand-word { filter: invert(1); }
html[data-theme="dark"] .top-links, html[data-theme="dark"] .side-nav a, html[data-theme="dark"] .lede, html[data-theme="dark"] .article p, html[data-theme="dark"] .article li { color: #929299; }
html[data-theme="dark"] .top-links a:hover, html[data-theme="dark"] .footer-links a:hover { color: #fff; }
html[data-theme="dark"] .studio-logo { filter: none; }
html[data-theme="dark"] .studio-card:hover { background: #222226; box-shadow: 0 22px 48px rgba(0,0,0,.3); }
html[data-theme="dark"] .studio-card p { color: #85858c; }
html[data-theme="dark"] .footer-bar { color: #6f6f76; }
html[data-theme="dark"] .download-link { color: #111 !important; background: #f3f3f5; }
html[data-theme="dark"] .download-link:hover { color: #111 !important; background: #fff; }
html[data-theme="dark"] .article strong, html[data-theme="dark"] .article a { color: #ededf0; }
html[data-theme="dark"] .fact-card { background: var(--panel); }
html[data-theme="dark"] .cta-panel { color: #f2f2f4; background: #19191c; }
html[data-theme="dark"] .cta-link { color: #111 !important; background: #f3f3f5; }
html[data-theme="dark"] .contact-cursor { color: #111; background: #f3f3f5; }

@media (max-width: 820px) {
  .shell { width: min(100% - 40px, 720px); }
  .topbar { padding-top: 22px; }
  .top-links a:not(.download-link) { display: none; }
  .page-hero { padding: 92px 0 66px; }
  .content-layout { display: block; padding-bottom: 100px; }
  .side-nav { display: none; }
  .fact-card { min-height: 145px; }
  .studio-grid { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 560px) {
  .shell { width: calc(100% - 32px); }
  .topbar { padding-top: 16px; }
  .brand { font-size: 22px; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-word { height: 15px; }
  .download-link { padding: 11px 15px; font-size: 16px; }
  .page-hero { padding: 76px 0 54px; }
  h1 { font-size: 45px; }
  .article section { padding: 31px 0; }
  .fact-grid { grid-template-columns: 1fr; }
  .studio-grid { grid-template-columns: 1fr; gap: 8px; }
  .studio-card { padding: 16px 18px; }
  .footer-bar { flex-direction: column; align-items: flex-start; gap: 14px; }
  footer { padding-bottom: 40px; }
  .contact-cursor { display: none; }
}

@media (max-width: 420px) {
  .shell { width: calc(100% - 28px); }
  .brand-word { display: none; }
  .topbar { padding-top: 14px; }
  .page-hero { padding-top: 66px; }
  h1 { font-size: clamp(38px, 12vw, 44px); }
  .lede { font-size: 17px; }
  .article p, .article li { font-size: 16px; }
  .cta-panel { padding: 26px 22px; }
}

@media (hover: none), (pointer: coarse) {
  .fact-card:hover { transform: none; box-shadow: none; }
  .download-link:hover, .cta-link:hover { transform: none; box-shadow: none; }
  .theme-toggle:hover { transform: none; }
}

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