/* Design C — "Studio": an iOS product studio. A 3D iPhone that follows the pointer and plays
   the development stages from the TZ, a slow living colour mesh behind it, spotlight cards,
   and a process line that fills as you scroll. Light only. */

@font-face { font-family: "Sora"; font-weight: 600; font-display: swap; src: url("/static/fonts/sora-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-weight: 700; font-display: swap; src: url("/static/fonts/sora-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 400; font-display: swap; src: url("/static/fonts/dm-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 500; font-display: swap; src: url("/static/fonts/dm-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 600; font-display: swap; src: url("/static/fonts/dm-sans-latin-600-normal.woff2") format("woff2"); }

:root.theme-studio, :root.theme-studio[data-theme] {
  --abyss: #12123a;
  --abyss-2: #22226a;
  --tide: #5145e5;
  --tide-strong: #3d32c4;
  --lagoon: #5145e5;
  --paper: #fafafe;
  --surface: #ffffff;
  --ink: #12122b;
  --slate: #5d5f7a;
  --line: #e7e7f3;
  --focus: #5145e5;
  --display: "Sora", "Segoe UI", system-ui, sans-serif;
  --body: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --step-5: clamp(2.6rem, 5.4vw, 4.6rem);
  color-scheme: light;
}
.theme-studio h1, .theme-studio h2 { letter-spacing: -0.04em; }
.theme-studio .site-header { background: rgba(250, 250, 254, 0.72); }
.theme-studio .btn { border-radius: 14px; }
.theme-studio .btn-primary, .theme-studio .hero .btn-primary, .theme-studio .cta .btn-primary {
  background: var(--ink); color: #fff; box-shadow: 0 8px 24px -10px rgba(18, 18, 43, 0.6);
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.theme-studio .btn-primary:hover { background: #26264f; color: #fff; transform: translateY(-1px); }
.theme-studio .hero .btn-ghost { color: var(--ink); border-color: #d9d9ea; background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(6px); }
.theme-studio .hero .btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.theme-studio .hero .btn-link, .theme-studio .crumb { color: var(--tide); }
.theme-studio .crumb:hover { color: var(--tide-strong); }

/* Hero: living mesh + device */
.theme-studio .hero { background: var(--paper); color: var(--ink); }
.theme-studio .hero h1 { color: var(--ink); max-width: 13ch; }
.theme-studio .hero.compact h1 { max-width: 18ch; }
.theme-studio .hero .lead { color: var(--slate); max-width: 50ch; }
.theme-studio .hero:not(.compact) .wrap { display: grid; grid-template-columns: minmax(0, 1fr); padding-right: calc(var(--gutter) + clamp(300px, 34vw, 440px)); min-height: min(86vh, 860px); align-content: center; }
.mesh { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.mesh i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; }
.mesh i:nth-child(1) { width: 46vw; height: 46vw; left: 48%; top: -18%; background: #a5b4fc; }
.mesh i:nth-child(2) { width: 34vw; height: 34vw; left: 70%; top: 40%; background: #67e8f9; }
.mesh i:nth-child(3) { width: 30vw; height: 30vw; left: 30%; top: 55%; background: #f0abfc; opacity: 0.35; }
.theme-studio .hero.compact .mesh i { opacity: 0.35; }

.device-stage { position: absolute; right: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))); top: 50%; transform: translateY(-50%); width: clamp(230px, 21vw, 285px); perspective: 1400px; z-index: 0; }
.device { position: relative; aspect-ratio: 9 / 19.2; border-radius: 52px; padding: 12px; background: linear-gradient(145deg, #2b2b3a, #0d0d14); box-shadow: inset 0 0 0 2px #45455a, inset 0 0 0 5px #121219, 0 50px 80px -30px rgba(40, 30, 120, 0.55), 0 30px 40px -30px rgba(0, 0, 0, 0.5); transform: rotateY(var(--ry, -16deg)) rotateX(var(--rx, 6deg)); transform-style: preserve-3d; transition: transform .25s ease-out; }
.island { position: absolute; top: 22px; left: 50%; width: 31%; height: 26px; transform: translateX(-50%); background: #000; border-radius: 20px; z-index: 3; }
.display { position: relative; height: 100%; border-radius: 41px; overflow: hidden; background: linear-gradient(180deg, #f7f7ff, #eef0ff); }
.screen { position: absolute; inset: 0; padding: 62px 20px 20px; opacity: 0; transform: translateX(14%); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.screen.active { opacity: 1; transform: none; }
.screen.leaving { opacity: 0; transform: translateX(-14%); }
.screen .stage { margin: 0 0 4px; font: 600 0.72rem/1 var(--body); color: var(--tide); }
.screen h4 { margin: 0 0 18px; font: 700 1.05rem/1.2 var(--display); color: var(--ink); letter-spacing: -0.02em; }
.notes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.notes i { height: 70px; border-radius: 12px; background: #fff3b0; box-shadow: 0 6px 14px -8px rgba(0,0,0,.25); }
.notes i:nth-child(2) { background: #c7f9e1; transform: rotate(2deg); }
.notes i:nth-child(3) { background: #dcd6ff; transform: rotate(-2deg); }
.notes i:nth-child(4) { background: #ffd6e7; }
.bars { margin-top: 16px; display: grid; gap: 8px; }
.bars b { display: block; height: 8px; border-radius: 6px; background: #dcdcef; }
.bars b:nth-child(2) { width: 80%; }
.bars b:nth-child(3) { width: 60%; }
.bars.center { justify-items: center; }
.bars.center b { width: 70%; }
.bars.center b:nth-child(2) { width: 45%; }
.mock-nav { height: 28px; border-radius: 10px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.mock-card { margin-top: 12px; height: 120px; border-radius: 18px; background: linear-gradient(135deg, #6d5efc, #38bdf8); }
.mock-row { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mock-row i { height: 58px; border-radius: 14px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; align-items: center; gap: 10px; }
.checks s { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #c9c9e0; position: relative; flex: none; }
.checks b { height: 8px; flex: 1; border-radius: 6px; background: #dcdcef; }
.checks li:nth-child(2n) b { flex: 0.7; }
.ring { display: grid; place-items: center; margin: 20px 0 10px; }
.ring svg { width: 120px; height: 120px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke: #e2e2f3; stroke-width: 7; }
.ring .arc { stroke: var(--tide); stroke-linecap: round; stroke-dasharray: 214; stroke-dashoffset: 214; }
.dots { position: absolute; bottom: 18px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: #cfd0e6; transition: width .3s ease, background-color .3s ease; }
.dots i.on { width: 18px; background: var(--tide); }
.chip { position: absolute; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.85); backdrop-filter: blur(8px); box-shadow: 0 10px 30px -12px rgba(40, 30, 120, 0.35); font: 600 0.85rem/1 var(--body); color: var(--ink); border: 1px solid #ececf8; }
.chip.c0 { left: -26%; top: 14%; }
.chip.c1 { right: -20%; top: 30%; }
.chip.c2 { left: -18%; bottom: 22%; }
.chip.c3 { right: -24%; bottom: 10%; }

@media (prefers-reduced-motion: no-preference) {
  .mesh i:nth-child(1) { animation: drift1 18s ease-in-out infinite alternate; }
  .mesh i:nth-child(2) { animation: drift2 22s ease-in-out infinite alternate; }
  .mesh i:nth-child(3) { animation: drift1 26s ease-in-out infinite alternate-reverse; }
  @keyframes drift1 { to { transform: translate(-12vw, 10vh) scale(1.15); } }
  @keyframes drift2 { to { transform: translate(-16vw, -14vh) scale(0.9); } }
  .chip { animation: float 6s ease-in-out infinite; }
  .chip.c1 { animation-delay: -1.5s; } .chip.c2 { animation-delay: -3s; } .chip.c3 { animation-delay: -4.5s; }
  @keyframes float { 50% { transform: translateY(-12px); } }
  .device-stage { animation: rise 1.1s cubic-bezier(.2,.7,.2,1) both .2s; }
  @keyframes rise { from { opacity: 0; transform: translateY(calc(-50% + 60px)); } }
  .s-qa.active .checks s { animation: tick .3s ease forwards; animation-delay: var(--d); }
  .s-qa.active .checks li s::after { content: ""; position: absolute; inset: 4px 5px 7px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); opacity: 0; animation: tickmark .2s ease forwards; animation-delay: calc(var(--d) + .15s); }
  @keyframes tick { to { background: #22c55e; border-color: #22c55e; } }
  @keyframes tickmark { to { opacity: 1; } }
  .s-release.active .arc { animation: fill 2s cubic-bezier(.3,.6,.2,1) forwards .2s; }
  @keyframes fill { to { stroke-dashoffset: 0; } }
  .s-design.active .mock-card { animation: pop .6s cubic-bezier(.2,.7,.2,1) both; }
  .s-design.active .mock-row i { animation: pop .6s cubic-bezier(.2,.7,.2,1) both .15s; }
  .s-discovery.active .notes i { animation: pop .5s cubic-bezier(.2,.7,.2,1) both; }
  .s-discovery.active .notes i:nth-child(2) { animation-delay: .1s; } .s-discovery.active .notes i:nth-child(3) { animation-delay: .2s; } .s-discovery.active .notes i:nth-child(4) { animation-delay: .3s; }
  @keyframes pop { from { opacity: 0; transform: scale(.85) translateY(10px); } }

  .fx-ready .hero h1, .fx-ready .hero .lead, .fx-ready .hero .actions, .fx-ready .hero .crumb { opacity: 0; transform: translateY(18px); animation: up .8s cubic-bezier(.2,.7,.2,1) forwards; }
  .fx-ready .hero .lead { animation-delay: .12s; }
  .fx-ready .hero .actions { animation-delay: .24s; }
  @keyframes up { to { opacity: 1; transform: none; } }
  .fx-ready .reveal { opacity: 0; transform: translateY(24px) scale(.98); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--rd, 0s); }
  .fx-ready .reveal.in { opacity: 1; transform: none; }
}

/* Content */
.theme-studio .facts { background: transparent; border: 0; }
.theme-studio .facts dl { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 20px 50px -30px rgba(40, 30, 120, 0.35); }
.theme-studio .facts dl > div { padding-left: 24px; }
.theme-studio .section.tint { background: #f3f3fb; border: 0; }
.theme-studio .service-list { border: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.theme-studio .service-list li { border: 1px solid var(--line); border-radius: 22px; background: var(--surface); position: relative; overflow: hidden; transition: transform .3s ease, box-shadow .3s ease; }
.theme-studio .service-list li::before { content: ""; position: absolute; inset: 0; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(81, 69, 229, 0.12), transparent 60%); opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.theme-studio .service-list li:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(40, 30, 120, 0.45); }
.theme-studio .service-list li:hover::before { opacity: 1; }
.theme-studio .service-list a { grid-template-columns: 1fr; padding: 30px; gap: 12px; height: 100%; align-content: start; }
.theme-studio .service-list .tags { grid-column: 1; }
.theme-studio .service-list .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, #ece9ff, #dff7fd); color: var(--tide); }
.theme-studio .service-list .ico svg { width: 24px; height: 24px; }
.theme-studio .steps { position: relative; }
.theme-studio .steps li { border-top: 0; padding-top: 0; }
.theme-studio .steps li::before { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); font-size: 1rem; color: var(--ink); box-shadow: 0 6px 16px -10px rgba(40,30,120,.4); }
.theme-studio .steps li.in::before { background: var(--tide); color: #fff; border-color: var(--tide); transition: background-color .4s ease .3s, color .4s ease .3s; }
.theme-studio .models { gap: 18px; background: none; border: 0; }
.theme-studio .models > div { border: 1px solid var(--line); border-radius: 22px; }
.theme-studio .points > div { border-top-color: var(--line); }
.theme-studio .checklist li::before { border-color: var(--tide); }

.theme-studio .cta { background: transparent; }
.theme-studio .cta .wrap { position: relative; overflow: hidden; margin-block: 24px 96px; padding: 56px; border-radius: 32px; background: var(--abyss); max-width: calc(var(--wrap) - 2 * var(--gutter)); isolation: isolate; }
.theme-studio .cta .wrap::after { content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(129, 140, 248, 0.55), transparent 65%); z-index: -1; }
.theme-studio .cta .btn-primary { background: #fff; color: var(--ink); }
.theme-studio .cta .btn-primary:hover { background: #e9e9ff; color: var(--ink); }
.theme-studio .site-footer { background: var(--abyss); }
.theme-studio .site-footer .brand svg { color: #a5b4fc; }
.theme-studio .legal-line { border-top-color: #2a2a5a; }

@media (max-width: 980px) {
  .theme-studio .hero:not(.compact) .wrap { padding-right: var(--gutter); min-height: 0; padding-bottom: 40px; }
  .device-stage { position: relative; right: auto; top: auto; transform: none; margin: 0 auto 64px; width: 250px; }
  @media (prefers-reduced-motion: no-preference) { @keyframes rise { from { opacity: 0; transform: translateY(60px); } } }
  .chip.c0, .chip.c2 { left: -30%; }
  .chip.c1, .chip.c3 { right: -30%; }
}
@media (max-width: 820px) {
  .theme-studio .service-list { grid-template-columns: 1fr; }
  .theme-studio .cta .wrap { margin-inline: var(--gutter); width: auto; padding: 32px 24px; }
}
@media (max-width: 480px) {
  .chip { display: none; }
}
