/* Cykie Labs company site.
   Cream paper and ink, Outfit for headings, DM Sans for text, one orange accent.
   Each app section borrows the colours of its own app. */

@font-face { font-family: Outfit; src: url(fonts/Outfit.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(fonts/DMSans.woff2) format("woff2"); font-weight: 100 1000; font-display: swap; }

:root {
  --paper: #f7f3ec;
  --paper-2: #efe9df;
  --card: #fffdf9;
  --ink: #1b1813;
  --muted: #6b645a;
  --line: #e3dbcd;
  --accent: #e8552b;

  --cykie-bg: #fde9ee; --cykie: #d93d6e;
  --resume-bg: #ebebff; --resume: #4b43d8;
  --display: Outfit, "DM Sans", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #13110e;
    --paper-2: #1a1814;
    --card: #1f1c18;
    --ink: #f3eee6;
    --muted: #a69e91;
    --line: #302c26;
    --accent: #ff7a4d;
    --cykie-bg: #26161c; --cykie: #ff7da3;
    --resume-bg: #17173a; --resume: #a29dff;
  }
}
:root[data-theme="dark"] {
    --paper: #13110e;
    --paper-2: #1a1814;
    --card: #1f1c18;
    --ink: #f3eee6;
    --muted: #a69e91;
    --line: #302c26;
    --accent: #ff7a4d;
    --cykie-bg: #26161c; --cykie: #ff7da3;
    --resume-bg: #17173a; --resume: #a29dff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); background: var(--paper);
  font: 400 17px/1.7 "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -.035em; line-height: 1.04; margin: 0 0 .35em; }
h3, h4 { font-family: var(--display); }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h1 em, h2 em { color: var(--accent); font-style: normal; }
h3 { font-size: 1.05rem; font-weight: 600; margin: 0 0 .3em; }
p { margin: 0 0 1em; }
.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.kicker { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }

/* logo */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { width: 32px; height: 32px; }
.logo .lg-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo .lg-light { display: none; } :root:not([data-theme="light"]) .logo .lg-dark { display: block; } }
:root[data-theme="dark"] .logo .lg-light { display: none; }
:root[data-theme="dark"] .logo .lg-dark { display: block; }
.wordmark { font-family: var(--display); font-weight: 700; font-size: 1.5rem; line-height: 1; letter-spacing: -.035em; padding-top: .12em; }
.wordmark b { font-weight: inherit; color: var(--accent); }
.wordmark .i { position: relative; display: inline-block; }
.wordmark .i::after { content: ""; position: absolute; left: 50%; top: .02em; width: .21em; height: .21em; margin-left: -.105em; border-radius: 50%; background: var(--accent); }
.logo:hover .wordmark .i::after { animation: hop .6s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-.32em); } }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; height: 66px; gap: 16px; }
.nav { margin-left: auto; display: flex; gap: 28px; }
.nav a { text-decoration: none; font-size: .94rem; color: var(--muted); }
.nav a:hover { color: var(--ink); }
@media (max-width: 520px) { .nav { gap: 18px; } .nav a.sm-hide { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 12px 20px; border-radius: 999px;
  background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 600; font-size: .95rem;
  border: 1.5px solid var(--ink); transition: transform .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 17px; height: 17px; fill: currentColor; }
.btn.line { background: transparent; color: var(--ink); border-color: color-mix(in srgb, var(--ink) 25%, transparent); }
.btn.line:hover { border-color: var(--ink); }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* hero */
.hero { padding: 80px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 44ch; }
.applist { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; padding: 0; list-style: none; }
.applist a { display: flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: .92rem; }
.applist a:hover { border-color: var(--ink); }
.applist img { width: 34px; height: 34px; border-radius: 9px; }

.fan { position: relative; height: 540px; }
.fan img { position: absolute; top: 30px; width: 230px; border-radius: 26px; box-shadow: 0 30px 60px -30px rgba(27, 24, 19, .55); }
.fan .f1 { left: 4%; transform: rotate(-7deg); }
.fan .f2 { left: 50%; top: 0; transform: translateX(-50%); z-index: 2; }
.fan .f3 { right: 4%; transform: rotate(7deg); }
@media (max-width: 900px) {
  .hero { padding-top: 48px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .fan { height: 420px; max-width: 460px; width: 100%; margin: 0 auto; }
  .fan img { width: 180px; }
}
@media (max-width: 480px) { .fan { height: 340px; } .fan img { width: 140px; border-radius: 18px; } .fan .f1 { left: 0; } .fan .f3 { right: 0; } }

/* rules strip */
.rules { border-block: 1px solid var(--line); }
.rules ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.rules li { padding: 26px 24px; border-left: 1px solid var(--line); }
.rules li:first-child { border-left: 0; padding-left: 0; }
.rules b { display: block; font-family: var(--display); font-weight: 650; letter-spacing: -.02em; font-size: 1.28rem; line-height: 1.1; margin-bottom: 4px; }
.rules span { color: var(--muted); font-size: .93rem; }
@media (max-width: 760px) { .rules ul { grid-template-columns: 1fr; } .rules li { border-left: 0; border-top: 1px solid var(--line); padding: 20px 0; } .rules li:first-child { border-top: 0; } }

/* app sections */
.apps-intro { padding: 96px 0 36px; }
.apps-intro p { color: var(--muted); max-width: 52ch; font-size: 1.08rem; }
.app { margin: 0 auto 24px; width: min(1180px, 100% - 24px); border-radius: 32px; padding: clamp(28px, 5vw, 60px); overflow: hidden; }
.app .grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.app .id { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.app .id img { width: 72px; height: 72px; border-radius: 17px; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .4); }
.app .id small { display: block; font-size: .85rem; opacity: .75; }
.app .id strong { font-family: var(--display); font-weight: 650; letter-spacing: -.02em; font-size: 1.84rem; line-height: 1; }
.app .desc { font-size: 1.07rem; }
.app ul.facts { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 10px; }
.app ul.facts li { display: flex; gap: 12px; font-size: .97rem; }
.app ul.facts li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; margin-top: .7em; background: currentColor; opacity: .55; }
.shots { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
.shots::-webkit-scrollbar { display: none; }
.shots img { flex: 0 0 auto; width: 190px; border-radius: 20px; scroll-snap-align: start; }
@media (max-width: 900px) { .app .grid { grid-template-columns: 1fr; gap: 32px; } .shots img { width: 160px; } }

.app.cykie { background: var(--cykie-bg); }
.app.cykie .btn { background: var(--cykie); border-color: var(--cykie); color: var(--paper); }
.app.cykie .btn.line { background: transparent; color: var(--ink); border-color: color-mix(in srgb, var(--cykie) 45%, transparent); }

.app.skyshift { color: #f1edff; background: radial-gradient(120% 90% at 85% 0%, #3b2a6e 0%, #1a1438 45%, #0e0b22 100%); position: relative; }
.app.skyshift::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .7;
  background-image: radial-gradient(1.2px 1.2px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 32% 8%, #fff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 58% 22%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 76% 12%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 92% 30%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 22% 40%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 46% 6%, #fff 50%, transparent 51%), radial-gradient(1.3px 1.3px at 6% 70%, #fff 50%, transparent 51%); }
.app.skyshift .grid { position: relative; }
.app.skyshift .btn { background: #f1edff; color: #1a1438; border-color: #f1edff; }
.app.skyshift .btn.line { background: transparent; color: #f1edff; border-color: rgba(241, 237, 255, .35); }

.app.resume { background: var(--resume-bg); }
.app.resume .btn { background: var(--resume); border-color: var(--resume); color: var(--paper); }
.app.resume .btn.line { background: transparent; color: var(--ink); border-color: color-mix(in srgb, var(--resume) 45%, transparent); }

/* about */
.about { padding: 110px 0 90px; }
.about .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.about p { font-size: 1.1rem; color: var(--muted); }
.about p:first-of-type { color: var(--ink); }
.about .next { border: 1px dashed color-mix(in srgb, var(--ink) 30%, transparent); border-radius: 22px; padding: 26px; align-self: start; }
.about .next p { font-size: 1rem; margin: 0; }
@media (max-width: 860px) { .about .wrap { grid-template-columns: 1fr; gap: 28px; } }

/* footer */
footer { background: var(--paper-2); border-top: 1px solid var(--line); padding: 54px 0 40px; font-size: .92rem; color: var(--muted); }
footer .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; }
footer h4 { margin: 0 0 12px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }
footer .tag { max-width: 30ch; margin-top: 12px; }
footer .base { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
@media (max-width: 760px) { footer .cols { grid-template-columns: 1fr 1fr; } footer .cols > :first-child { grid-column: 1 / -1; } }

/* ---------- shared page parts ---------- */
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 8px; }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.btn.small { padding: 8px 16px; font-size: .88rem; }
@media (max-width: 860px) { .hide-sm { display: none !important; } }
.more { font-weight: 600; font-size: .92rem; color: var(--accent); }
.num { font-family: var(--display); font-weight: 650; letter-spacing: -.02em; font-size: 1.2rem; color: var(--accent); display: block; margin-bottom: 10px; }
.narrow { width: min(760px, 100% - 32px); }

.block { padding: 88px 0; }
.block.tight { padding: 32px 0 64px; }
.two { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; gap: 28px; } .block { padding: 64px 0; } }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 32px; }
.head-row h2 { margin: 0; }

.page-head { padding: 80px 0 40px; }
.page-head h1 { max-width: 16ch; }
.page-head .lead { font-size: 1.15rem; color: var(--muted); max-width: 56ch; margin-bottom: 26px; }
@media (max-width: 640px) { .page-head { padding: 52px 0 28px; } }

/* home pillars */
.pillars { border-top: 1px solid var(--line); }
.pillars .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.pillars a { text-decoration: none; padding: 40px 32px 40px 0; border-right: 1px solid var(--line); }
.pillars a + a { padding-left: 32px; }
.pillars a:last-child { border-right: 0; }
.pillars h3 { font-family: var(--display); font-weight: 650; letter-spacing: -.02em; font-size: 1.6rem; margin-bottom: 8px; }
.pillars p { color: var(--muted); }
.pillars a:hover h3 { color: var(--accent); }
@media (max-width: 860px) { .pillars .wrap { grid-template-columns: 1fr; } .pillars a, .pillars a + a { padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--line); } .pillars a:last-child { border-bottom: 0; } }

/* app cards */
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.app-card { display: flex; flex-direction: column; text-decoration: none; border-radius: 28px; padding: 26px; overflow: hidden; position: relative; min-height: 470px; }
.app-card.cykie { background: var(--cykie-bg); }
.app-card.skyshift { background: radial-gradient(120% 90% at 85% 0%, #3b2a6e 0%, #1a1438 50%, #0e0b22 100%); color: #f1edff; }
.app-card.resume-builder { background: var(--resume-bg); }
.app-card .meta { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.app-card .meta img { width: 56px; height: 56px; border-radius: 14px; }
.app-card small { display: block; font-size: .8rem; opacity: .75; }
.app-card strong { font-family: var(--display); font-weight: 650; letter-spacing: -.02em; font-size: 1.52rem; line-height: 1; }
.app-card p { font-size: .97rem; opacity: .85; max-width: 30ch; }
.app-card .more { color: inherit; margin-top: auto; position: relative; z-index: 1; }
.app-card .shot { position: absolute; right: -30px; bottom: -150px; width: 190px; border-radius: 22px; transform: rotate(-8deg); transition: transform .3s ease; box-shadow: 0 20px 40px -20px rgba(0,0,0,.5); }
.app-card:hover .shot { transform: rotate(-4deg) translateY(-10px); }
@media (max-width: 980px) { .app-grid { grid-template-columns: 1fr; } .app-card { min-height: 300px; } .app-card .shot { width: 150px; bottom: -120px; } .app-card p { max-width: 60%; } }

/* dark band */
.band { background: #1b1813; color: #f3eee6; padding: 88px 0; }
.band .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.band .kicker { color: #a69e91; }
.band p { color: #cfc7ba; font-size: 1.08rem; max-width: 50ch; margin-bottom: 26px; }
.band h2 em { color: #ff7a4d; }
.btn.light { background: #f3eee6; color: #1b1813; border-color: #f3eee6; }
.btn.line-light { background: transparent; color: #f3eee6; border-color: rgba(243, 238, 230, .35); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .band { background: #1f1c18; border-block: 1px solid var(--line); } }
:root[data-theme="dark"] .band { background: #1f1c18; border-block: 1px solid var(--line); }
@media (max-width: 860px) { .band .wrap { grid-template-columns: 1fr; gap: 32px; } .band { padding: 64px 0; } }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 14px; padding-bottom: 12px; border-bottom: 1px solid rgba(243, 238, 230, .14); }
.ticks li::before { content: "✓"; color: #ff7a4d; font-weight: 600; }
.ticks.dark li { border-color: var(--line); }
.ticks.dark li::before { color: var(--accent); }

/* app detail page */
.app-hero { padding: 40px 0 72px; }
.app-hero.cykie { background: var(--cykie-bg); }
.app-hero.skyshift { background: radial-gradient(120% 90% at 85% 0%, #3b2a6e 0%, #1a1438 45%, #0e0b22 100%); color: #f1edff; }
.app-hero.skyshift .btn { background: #f1edff; color: #1a1438; border-color: #f1edff; }
.app-hero.skyshift .lead, .app-hero.skyshift p { color: #d9d3f5; }
.app-hero.resume-builder { background: var(--resume-bg); }
.app-hero.cykie .btn { background: var(--cykie); border-color: var(--cykie); color: var(--paper); }
.app-hero.resume-builder .btn { background: var(--resume); border-color: var(--resume); color: var(--paper); }
.back { display: inline-block; text-decoration: none; font-size: .92rem; opacity: .75; margin-bottom: 28px; }
.back:hover { opacity: 1; }
.app-hero-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.app-hero .id { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.app-hero .id img { width: 88px; height: 88px; border-radius: 21px; box-shadow: 0 10px 24px -12px rgba(0,0,0,.45); }
.app-hero .id small { display: block; font-size: .9rem; opacity: .75; }
.app-hero h1 { margin: 0; font-size: clamp(2.6rem, 6vw, 4.2rem); }
.app-hero .lead { font-size: 1.2rem; font-weight: 600; margin-bottom: .6em; }
.facts-row { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 28px; }
.facts-row b { display: block; font-family: var(--display); font-weight: 650; letter-spacing: -.02em; font-size: 1.36rem; line-height: 1.1; }
.facts-row span { font-size: .82rem; opacity: .7; }
@media (max-width: 900px) { .app-hero-grid { grid-template-columns: 1fr; gap: 36px; } }

.feature-grid, .service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 36px; border-top: 1px solid var(--line); }
.feature-grid > div, .service-grid > div { padding: 28px 28px 28px 0; border-bottom: 1px solid var(--line); }
.feature-grid > div:not(:nth-child(3n+1)), .service-grid > div:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.feature-grid p, .service-grid p { color: var(--muted); margin: 0; font-size: .97rem; }
.service-grid { margin-top: 0; }
.service-grid h3 { font-family: var(--display); font-weight: 650; letter-spacing: -.02em; font-size: 1.36rem; margin-bottom: 6px; }
@media (max-width: 860px) {
  .feature-grid, .service-grid { grid-template-columns: 1fr; }
  .feature-grid > div, .service-grid > div, .feature-grid > div:not(:nth-child(3n+1)), .service-grid > div:not(:nth-child(3n+1)) { padding: 22px 0; border-left: 0; }
}

.panel { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 30px; }
.panel .big { font-family: var(--display); font-weight: 650; letter-spacing: -.02em; font-size: 1.36rem; line-height: 1.25; margin: 0; }
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: .96rem; }
.link-list li:last-child a { border-bottom: 0; }
.link-list a:hover { color: var(--accent); }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 48px 1fr; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--display); font-weight: 650; letter-spacing: -.02em; font-size: 1.28rem; color: var(--accent); line-height: 1.1; }
.steps h3 { margin-bottom: .15em; }
.steps p { margin: 0; color: var(--muted); font-size: .95rem; }

/* support */
.sup-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sup-card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 26px; }
.sup-card img { width: 56px; height: 56px; border-radius: 14px; margin-bottom: 14px; }
.sup-card h3 { font-family: var(--display); font-weight: 650; letter-spacing: -.02em; font-size: 1.44rem; margin-bottom: 6px; }
@media (max-width: 900px) { .sup-grid { grid-template-columns: 1fr; } }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 8px; }

.next-card { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; border: 1px dashed color-mix(in srgb, var(--ink) 30%, transparent); border-radius: 24px; padding: 30px; }
.next-card h3 { font-family: var(--display); font-weight: 650; letter-spacing: -.02em; font-size: 1.44rem; margin-bottom: 4px; }
.next-card p { color: var(--muted); margin: 0; }

/* contact */
.mail-big a { font-family: var(--display); font-weight: 650; letter-spacing: -.03em; font-size: clamp(1.8rem, 5vw, 3rem); line-height: 1.1; text-decoration: none; border-bottom: 2px solid var(--accent); overflow-wrap: anywhere; }
.mail-big a:hover { color: var(--accent); }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.contact-grid a { text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 28px; transition: border-color .15s; scroll-margin-top: 90px; }
.contact-grid a:hover, .contact-grid a:target { border-color: var(--ink); }
.contact-grid h3 { font-family: var(--display); font-weight: 650; letter-spacing: -.02em; font-size: 1.52rem; margin-bottom: 6px; }
.contact-grid p { color: var(--muted); }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
footer .mail-link { color: var(--ink); font-weight: 600; }

/* prose pages */
.prose h2 { font-size: 1.9rem; margin-top: 1.4em; }
.prose p, .prose li { color: var(--muted); }
.prose a { color: var(--ink); }

/* ---------- motion ---------- */
.top { transition: box-shadow .3s ease, background .3s ease; }
.top.scrolled { box-shadow: 0 10px 30px -18px rgba(27, 24, 19, .35); }
.btn svg, .more, .link-list a span { transition: transform .2s ease; }
.btn:hover svg { transform: translateY(-1px) scale(1.08); }
a:hover > .more, .more:hover, .contact-grid a:hover .more, .pillars a:hover .more { transform: translateX(4px); display: inline-block; }
.link-list a:hover span { transform: translateX(4px); }
.more { display: inline-block; }

/* hero entrance */
.js .hero .lead, .js .hero .btns, .js .hero .kicker,
.js .page-head .wrap > :not(h1), .js .app-hero .wrap > .back, .js .app-hero-grid > div:first-child > * {
  animation: rise .9s cubic-bezier(.2, .7, .2, 1) both;
}
.js .hero .kicker, .js .page-head .wrap > :nth-child(1) { animation-delay: .05s; }
.js .hero h1, .js .page-head .wrap > :nth-child(2) { animation-delay: .15s; }
.js .hero .lead, .js .page-head .wrap > :nth-child(3) { animation-delay: .3s; }
.js .hero .btns, .js .page-head .wrap > :nth-child(4) { animation-delay: .45s; }
.js .app-hero-grid > div:first-child > :nth-child(2) { animation-delay: .1s; }
.js .app-hero-grid > div:first-child > :nth-child(3) { animation-delay: .18s; }
.js .app-hero-grid > div:first-child > :nth-child(4) { animation-delay: .26s; }
.js .app-hero-grid > div:first-child > :nth-child(5) { animation-delay: .34s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.js .hero h1:not(.split), .js .page-head h1:not(.split) { opacity: 0; animation: showup .4s 1s forwards; }
@keyframes showup { to { opacity: 1; } }
h1.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
h1.split .w > span { display: inline-block; animation: wordup .9s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes wordup { from { transform: translateY(105%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes wink { from { opacity: 0; transform: translateY(.3em) rotate(-6deg); } to { opacity: 1; transform: none; } }

/* phones fan out, then float */
.js .fan img { animation: deal 1.1s cubic-bezier(.2, .8, .2, 1) both, bob 6s ease-in-out 1.3s infinite; }
.js .fan .f1 { --r: -7deg; --x: 0; animation-delay: .35s, 1.4s; }
.js .fan .f2 { --r: 0deg; --x: -50%; animation-delay: .2s, 1.2s; }
.js .fan .f3 { --r: 7deg; --x: 0; animation-delay: .5s, 1.6s; }
@keyframes deal { from { opacity: 0; transform: translate(var(--x), 120px) rotate(0deg) scale(.9); } to { opacity: 1; transform: translate(var(--x), 0) rotate(var(--r)); } }
@keyframes bob { 0%, 100% { transform: translate(var(--x), 0) rotate(var(--r)); } 50% { transform: translate(var(--x), -12px) rotate(var(--r)); } }

/* app page screenshots slide in */
.js .app-hero .shots img { animation: slidein .9s cubic-bezier(.2, .8, .2, 1) both; }
.js .app-hero .shots img:nth-child(2) { animation-delay: .1s; }
.js .app-hero .shots img:nth-child(3) { animation-delay: .2s; }
.js .app-hero .shots img:nth-child(4) { animation-delay: .3s; }
@keyframes slidein { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: none; } }

/* scroll reveals (motion.js adds .reveal, then .in) */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ticker */
.ticker { overflow: hidden; border-top: 1px solid var(--line); padding: 18px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker .track { display: flex; width: max-content; animation: tick 38s linear infinite; }
.ticker:hover .track { animation-play-state: paused; }
.ticker span { font-family: var(--display); font-weight: 650; letter-spacing: -.02em; font-size: 1.52rem; white-space: nowrap; padding: 0 28px; display: flex; align-items: center; gap: 56px; }
.ticker span::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); margin-left: 28px; }
@keyframes tick { to { transform: translateX(-50%); } }

/* starry skies twinkle */
.app.skyshift::before, .app-hero.skyshift, .app-card.skyshift { position: relative; }
.app.skyshift::before { animation: twinkle 4s ease-in-out infinite alternate; }
.app-hero.skyshift::before, .app-card.skyshift::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(1.2px 1.2px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 32% 8%, #fff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 58% 22%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 76% 12%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 92% 30%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 22% 40%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 46% 6%, #fff 50%, transparent 51%), radial-gradient(1.3px 1.3px at 6% 70%, #fff 50%, transparent 51%);
  animation: twinkle 4s ease-in-out infinite alternate;
}
.app-hero.skyshift .wrap { position: relative; }
@keyframes twinkle { from { opacity: .25; } to { opacity: .9; } }

/* cards */
.app-card { transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease; }
.app-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -36px rgba(27, 24, 19, .55); }
.sup-card, .panel, .contact-grid a, .steps li { transition: transform .3s cubic-bezier(.2, .7, .2, 1), border-color .2s; }
.sup-card:hover, .contact-grid a:hover, .steps li:hover { transform: translateY(-4px); }
.shots img { transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.shots img:hover { transform: translateY(-8px) rotate(-1deg); }
.pillars a .num { transition: transform .3s ease; display: inline-block; }
.pillars a:hover .num { transform: translateY(-4px) rotate(-6deg); }

/* ---------- header controls ---------- */
.top .wrap { gap: 12px; }
.nav { align-items: center; }
.nav a { position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .nav-cta { display: none; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); display: grid; place-items: center; cursor: pointer; padding: 0; transition: transform .2s, border-color .2s; }
.icon-btn:hover { border-color: var(--ink); transform: rotate(-12deg); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.theme-btn .moon { display: none; }
.theme-btn .moon path { fill: currentColor; stroke: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-btn .sun { display: none; } :root:not([data-theme="light"]) .theme-btn .moon { display: block; } }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }
.theme-anim, .theme-anim * { transition: background-color .45s ease, color .45s ease, border-color .45s ease !important; }
.menu-btn { display: none; }
.menu-btn span { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s ease; grid-area: 1 / 1; }
.menu-btn span:first-child { transform: translateY(-3px); }
.menu-btn span:last-child { transform: translateY(3px); }
.menu-open .menu-btn span:first-child { transform: rotate(45deg); }
.menu-open .menu-btn span:last-child { transform: rotate(-45deg); }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); transform-origin: left; transform: scaleX(0); }
@media (max-width: 760px) {
  .menu-btn { display: grid; }
  .theme-btn { margin-left: auto; }
  .nav { position: fixed; inset: 66px 0 auto 0; z-index: 9; flex-direction: column; align-items: flex-start; gap: 0; margin: 0; padding: 12px 24px 28px;
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 30px 40px -30px rgba(0,0,0,.35);
    clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .45s cubic-bezier(.2, .8, .2, 1), visibility 0s .45s; }
  .menu-open .nav { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .45s cubic-bezier(.2, .8, .2, 1); }
  .nav a, .nav a.sm-hide { display: block; width: 100%; padding: 14px 0; font-family: var(--display); font-size: 1.7rem; font-weight: 650; color: var(--ink); border-bottom: 1px solid var(--line);
    opacity: 0; transform: translateY(12px); transition: opacity .3s, transform .3s; }
  .nav a::after { display: none; }
  .menu-open .nav a { opacity: 1; transform: none; }
  .menu-open .nav a:nth-child(2) { transition-delay: .05s; } .menu-open .nav a:nth-child(3) { transition-delay: .1s; }
  .menu-open .nav a:nth-child(4) { transition-delay: .15s; } .menu-open .nav a:nth-child(5) { transition-delay: .2s; }
  .nav .nav-cta { display: block; color: var(--accent); border-bottom: 0; }
}

/* ---------- hero blobs ---------- */
.hero { position: relative; overflow: hidden; }
.blobs { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.blobs i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .45; }
.blobs i:nth-child(1) { width: 420px; height: 420px; background: #ffb199; right: 6%; top: 4%; animation: drift1 16s ease-in-out infinite alternate; }
.blobs i:nth-child(2) { width: 340px; height: 340px; background: #c7c2ff; right: 26%; top: 40%; animation: drift2 19s ease-in-out infinite alternate; }
.blobs i:nth-child(3) { width: 300px; height: 300px; background: #ffc9d9; right: -4%; top: 52%; animation: drift1 22s ease-in-out infinite alternate-reverse; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .blobs i { opacity: .16; } }
:root[data-theme="dark"] .blobs i { opacity: .16; }
@keyframes drift1 { to { transform: translate(-60px, 50px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(70px, -40px) scale(.9); } }
.fan { transition: transform .5s cubic-bezier(.2, .8, .2, 1); transform-style: preserve-3d; }

/* ---------- screenshot marquee ---------- */
.peek { padding: 90px 0 40px; }
.marquee { overflow: hidden; padding: 10px 0 30px; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.m-track { display: flex; gap: 18px; width: max-content; animation: tick 70s linear infinite; }
.marquee:hover .m-track { animation-play-state: paused; }
.m-track img { width: 200px; border-radius: 22px; transition: transform .35s cubic-bezier(.2, .7, .2, 1); box-shadow: 0 18px 36px -24px rgba(0, 0, 0, .5); }
.m-track img:hover { transform: translateY(-10px) scale(1.04) rotate(-1.5deg); }
@media (max-width: 640px) { .m-track img { width: 150px; } .peek { padding-top: 64px; } }

/* ---------- stats ---------- */
.stats { padding: 30px 0 90px; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stats .wrap > div { border-top: 2px solid var(--ink); padding-top: 18px; }
.stats b { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 6vw, 4.2rem); letter-spacing: -.04em; line-height: 1; color: var(--ink); }
.stats .wrap > div:last-child b { color: var(--accent); }
.stats span { color: var(--muted); font-size: .95rem; }
@media (max-width: 760px) { .stats .wrap { grid-template-columns: 1fr 1fr; } }

/* ---------- spotlight on cards ---------- */
.spot { position: relative; isolation: isolate; }
.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%); }
.spot:hover::after { opacity: 1; }
.app-card.spot::after { z-index: 0; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .28), transparent 60%); }
.app-card, .sup-card, .contact-grid a { transition: transform .25s ease-out, box-shadow .35s ease, border-color .2s; will-change: transform; }
.btn { transition: transform .2s ease-out, background .2s, color .2s, border-color .2s; }

/* ---------- copy, toast, back to top ---------- */
.copy { font: 600 .78rem "DM Sans", sans-serif; letter-spacing: .02em; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.copy:hover { border-color: var(--ink); }
.copy.done { background: var(--accent); border-color: var(--accent); color: #fff; }
.copy.big { font-size: .9rem; padding: 9px 16px; }
.mail-big { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.mail-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 30; transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--paper); padding: 11px 18px; border-radius: 999px; font-weight: 600; font-size: .92rem; transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .25s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 20; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--ink); color: var(--paper); display: grid; place-items: center; opacity: 0; transform: translateY(16px) scale(.8); pointer-events: none;
  transition: opacity .3s, transform .3s cubic-bezier(.2, .8, .2, 1); box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .5); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* links in text */
.prose a, .faq a, .page-head .lead a { background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat; text-decoration: none; transition: background-size .3s ease; }
.prose a:hover, .faq a:hover { background-size: 100% 2px; }
.faq details[open] summary { color: var(--accent); }

/* ---------- press kit, 404 ---------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.dl-list { display: grid; }
.dl { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.dl:last-child { border-bottom: 0; }
.dl b { display: block; font-weight: 600; }
.dl small { color: var(--muted); font-size: .82rem; }
.dl i { font-style: normal; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); transition: background .2s, color .2s, transform .25s; }
.dl:hover i { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(2px); }
.panel .muted { margin: 14px 0 0; }
.press-shots { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin: 30px 0 40px; }
.press-shots img { border-radius: 16px; transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s; }
.press-shots a:hover img { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 20px 36px -22px rgba(0, 0, 0, .5); }
@media (max-width: 900px) { .press-shots { grid-template-columns: repeat(3, 1fr); } }
.lost { min-height: 62vh; display: grid; align-items: center; }
.lost h1 em { display: inline-block; animation: wander 3.5s ease-in-out infinite; }
@keyframes wander { 0%, 100% { transform: translate(0, 0) rotate(0); } 30% { transform: translate(10px, -6px) rotate(4deg); } 65% { transform: translate(-8px, 4px) rotate(-3deg); } }

/* ---------- page transitions (Chrome, Edge, Safari 18+) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .22s ease both; }
::view-transition-new(root) { animation: vt-in .38s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }
.top { view-transition-name: header; }

/* ---------- extra hover details ---------- */
.logo img { transition: transform .4s cubic-bezier(.3, 1.5, .5, 1); }
.logo:hover img { transform: rotate(-10deg) scale(1.06); }
footer ul a { display: inline-block; transition: transform .2s ease, color .2s; }
footer ul a:hover { transform: translateX(4px); }
.applist img, .app-card .meta img, .sup-card img, .app .id img { transition: transform .35s cubic-bezier(.3, 1.5, .5, 1); }
.applist a:hover img, .app-card:hover .meta img, .sup-card:hover img { transform: rotate(-8deg) scale(1.08); }
.kicker { transition: letter-spacing .4s ease; }
.head-row:hover .kicker, .page-head:hover .kicker { letter-spacing: .2em; }
::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .js .hero h1, .js .page-head h1 { opacity: 1 !important; }
  .blobs, .m-track { animation: none !important; }
  @view-transition { navigation: none; }
  .ticker .track { transform: none; }
}

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
