:root {
  --ink: #0b0d0f; --panel: #14181c; --line: #292e32; --paper: #f3efe6;
  --muted: #a8adb2; --orange: #ff6a1a; --blue: #35c9ff;
  --jungle: #1a3a3a; --jungle-light: #2a4a4a; --gold: #f2a93b;
  --sand: #f5edd8; --espresso: #2c1810; --lime: #6db33f; --sage: #7a9e7e;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: Inter, system-ui, sans-serif; line-height: 1.55; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 99; padding: .75rem 1rem; background: white; color: black; }
.skip-link:focus { top: 1rem; }
.site-header { position: absolute; z-index: 10; top: 0; left: 0; width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 1.4rem clamp(1.25rem, 5vw, 5rem); }
.wordmark { display: inline-flex; align-items: center; font-size: 1.25rem; font-weight: 600; letter-spacing: -.055em; text-decoration: none; }
.wordmark b { margin: 0 .02em; color: var(--orange); font-size: 1.45em; line-height: 1; }
nav { display: flex; align-items: center; gap: clamp(.8rem, 3vw, 2.4rem); }
nav a { color: #bfc2c4; font-size: .78rem; text-decoration: none; }
nav a:hover, nav a.active { color: white; }
nav a.active { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: .45rem; }
.eyebrow, .section-index, .project-label { color: var(--muted); font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.pulse { display: inline-block; width: 7px; height: 7px; margin-right: .65rem; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 6px rgba(255,106,26,.12); }
h1, h2 { font-weight: 500; letter-spacing: -.065em; line-height: .96; }
h1 em, h2 em { color: var(--orange); font-family: Georgia, serif; font-weight: 400; }
.lede { max-width: 650px; color: #bdc0c3; font-size: clamp(1rem, 1.45vw, 1.22rem); }
.hero-actions { display: flex; align-items: center; gap: 2rem; margin-top: 2.4rem; }
.button { display: inline-flex; align-items: center; gap: 1.5rem; padding: .95rem 1.35rem; border-radius: 3px; font-size: .82rem; font-weight: 600; text-decoration: none; }
.button-primary { background: var(--orange); color: white; box-shadow: 0 8px 30px rgba(255,106,26,.16); transition: background .2s, transform .2s; }
.button-primary:hover { background: #ff7c35; transform: translateY(-2px); }
.text-link { color: #d5d7d9; font-size: .8rem; text-decoration-color: #555; text-underline-offset: .35rem; }

/* Studio */
.studio-hero { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(340px, .78fr); align-items: center; gap: clamp(2rem, 6vw, 7rem); position: relative; overflow: hidden; padding: 7rem clamp(1.25rem, 7vw, 8rem) 4rem; background: radial-gradient(circle at 78% 48%, rgba(53,201,255,.07), transparent 25%), var(--ink); }
.studio-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .16; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(to right, black, transparent 75%); }
.studio-intro { position: relative; z-index: 2; }
.studio-intro h1 { max-width: 920px; margin: .9rem 0 1.5rem; font-size: clamp(3.5rem, 7.1vw, 7.4rem); }
.hero-visual { position: relative; z-index: 2; margin: 0; }
.hero-visual::before { content: ""; position: absolute; z-index: -1; inset: -9px; border: 1px solid rgba(53,201,255,.32); transform: translate(16px, -16px); }
.hero-visual img { width: 100%; aspect-ratio: 1.04; object-fit: cover; filter: saturate(.8) contrast(1.04); }
.hero-visual figcaption { display: flex; justify-content: space-between; gap: 1rem; margin-top: .85rem; color: #74797d; font-size: .61rem; letter-spacing: .11em; text-transform: uppercase; }
.hero-visual figcaption span { color: var(--blue); }
.definition, .studio-statement, .principles { padding: clamp(5rem, 10vw, 10rem) clamp(1.25rem, 7vw, 8rem); border-top: 1px solid #22272b; }
.definition { display: grid; grid-template-columns: .5fr 2fr; gap: 3rem; }
.definition-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 7vw, 7rem); margin: 0; }
.definition-grid div { padding-top: 1rem; border-top: 1px solid var(--line); }
.definition-grid dt { font-size: clamp(2.5rem, 4vw, 4rem); letter-spacing: -.05em; }
.definition-grid dd { max-width: 480px; margin: 1rem 0 0; color: #979ca0; }
.section-heading { display: flex; justify-content: space-between; align-items: start; gap: 2rem; margin-bottom: clamp(3rem, 6vw, 6rem); }
.section-heading h2 { max-width: 900px; margin: 0; font-size: clamp(3rem, 6vw, 6rem); }
.section-heading .eyebrow, .section-heading .project-label { margin-top: .8rem; }
.statement-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 8vw, 8rem); }
.statement-lead { margin: 0; font-size: clamp(1.7rem, 3vw, 3rem); letter-spacing: -.035em; line-height: 1.2; }
.statement-grid > div { color: #a4a9ad; font-size: 1rem; }
.principles { background: #101316; }
.principle-intro { display: grid; grid-template-columns: 1.4fr .6fr; align-items: end; gap: 2rem; margin: -2rem 0 4rem 25%; }
.principle-intro p { max-width: 700px; color: #a4a9ad; }
.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; list-style: none; }
.principle-grid li { min-height: 260px; padding: 1.5rem 2rem; border: 1px solid var(--line); margin: -1px 0 0 -1px; }
.principle-grid span { color: var(--blue); font-size: .65rem; }
.principle-grid h3 { margin-top: 3.8rem; font-size: 1.05rem; font-weight: 500; }
.principle-grid p { color: #858a8f; font-size: .84rem; }
.featured-project { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr .7fr; gap: 3rem; padding: clamp(5rem, 10vw, 10rem) clamp(1.25rem, 9vw, 10rem); background: var(--jungle); }
.project-mark { position: absolute; right: -2rem; bottom: -7rem; color: rgba(242,169,59,.055); font-family: Nunito, sans-serif; font-size: min(55vw, 620px); font-weight: 800; line-height: .8; }
.featured-copy, .featured-meta { position: relative; z-index: 2; }
.featured-copy h2 { margin: 1rem 0 0; color: var(--gold); font-family: Nunito, sans-serif; font-size: clamp(4.2rem, 9vw, 9rem); font-weight: 800; }
.featured-tagline { margin: .2rem 0 1.5rem; font-family: Nunito, sans-serif; font-size: 1.45rem; font-weight: 700; }
.featured-copy > p:not([class]) { max-width: 650px; color: #d6ddcf; }
.apeology-button { display: inline-flex; gap: 2rem; margin-top: 1.2rem; padding: .95rem 1.4rem; border-radius: 32px; background: var(--lime); color: white; font-family: Nunito, sans-serif; font-weight: 700; text-decoration: none; }
.featured-meta { display: flex; flex-wrap: wrap; align-content: end; gap: .6rem; }
.featured-meta span { padding: .5rem .8rem; border: 1px solid rgba(245,237,216,.22); border-radius: 99px; color: var(--sage); font-size: .7rem; }
.contact { padding: clamp(6rem, 12vw, 12rem) 1.5rem; text-align: center; background: #101316; }
.contact h2 { margin: 1rem auto 2.5rem; font-size: clamp(3rem, 6.8vw, 7rem); }
.contact-note { margin-top: 2rem; color: #656b70; font-size: .7rem; }
footer { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: 2rem clamp(1.25rem, 5vw, 5rem); border-top: 1px solid #22272b; color: #676d71; font-size: .68rem; }
.footer-links { display: flex; gap: 1.5rem; }

/* Apeology */
.apeology-page { background: var(--jungle); color: var(--sand); }
.ape-header { background: linear-gradient(to bottom, rgba(26,58,58,.92), transparent); }
.apeology-page .wordmark b { color: var(--gold); }
.apeology-page nav a.active { text-decoration-color: var(--gold); }
.ape-hero { min-height: 90svh; display: grid; grid-template-columns: 1fr .78fr; align-items: center; gap: clamp(3rem, 8vw, 8rem); padding: 8rem clamp(1.25rem, 9vw, 10rem) 5rem; background: radial-gradient(circle at 80% 30%, rgba(242,169,59,.13), transparent 28%); }
.ape-hero h1 { margin: 1rem 0 0; color: var(--gold); font-family: Nunito, sans-serif; font-size: clamp(5rem, 11vw, 11rem); font-weight: 800; }
.apeology-tagline { margin: .2rem 0 1.8rem; font-family: Nunito, sans-serif; font-size: clamp(1.4rem, 2.5vw, 2.1rem); font-weight: 700; }
.store-row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; }
.store-badge { display: inline-flex; align-items: center; gap: .7rem; min-width: 158px; padding: .58rem .9rem; border: 1px solid rgba(245,237,216,.35); border-radius: 9px; font-size: .84rem; font-weight: 600; line-height: 1.05; }
.store-badge i { color: var(--gold); font-style: normal; font-size: 1.15rem; }
.store-badge small { display: block; margin-bottom: .18rem; color: var(--sage); font-size: .52rem; font-weight: 400; }
.ape-id { display: grid; grid-template-columns: 110px 1fr; gap: 1.2rem; min-height: 340px; padding: 1.5rem; border-radius: 16px; background: var(--sand); color: var(--espresso); box-shadow: 0 18px 50px rgba(0,0,0,.25); transform: rotate(1.5deg); }
.id-kicker { grid-column: 1 / -1; margin: 0; color: var(--sage); font-size: .65rem; letter-spacing: .16em; }
.ape-face { width: 110px; height: 110px; padding: .2rem; border-radius: 50%; background: var(--gold); object-fit: cover; object-position: center 24%; }
.role { margin: .3rem 0; color: var(--sage); font-size: .62rem; letter-spacing: .12em; }
.ape-id h4 { margin: 0; color: var(--jungle); font-family: Nunito, sans-serif; font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: .95; }
.trait { color: var(--sage); font-size: .6rem; letter-spacing: .08em; }
.id-number { grid-column: 1 / -1; align-self: end; padding-top: 1rem; border-top: 1px solid rgba(44,24,16,.15); color: var(--jungle); font-family: Nunito, sans-serif; font-weight: 700; line-height: 1.4; text-transform: uppercase; }
.ape-process, .species-section, .ape-launch { padding: clamp(5rem, 10vw, 10rem) clamp(1.25rem, 9vw, 10rem); border-top: 1px solid rgba(245,237,216,.13); }
.apeology-page .section-heading h2, .ape-launch h2 { color: var(--sand); }
.apeology-page h2 em { color: var(--gold); font-family: Nunito, sans-serif; font-style: italic; font-weight: 800; }
.quiz-steps { margin: 0 0 0 26%; padding: 0; list-style: none; }
.quiz-steps li { display: grid; grid-template-columns: 70px 1fr; gap: 1rem; padding: 2rem 0; border-top: 1px solid rgba(245,237,216,.14); }
.quiz-steps li > span { color: var(--gold); font-family: Nunito, sans-serif; font-size: .75rem; font-weight: 800; }
.quiz-steps h3 { margin: 0 0 .5rem; font-family: Nunito, sans-serif; font-size: 1.35rem; }
.quiz-steps p { max-width: 700px; margin: 0; color: #b9c7ba; }
.species-section { background: var(--sand); color: var(--espresso); }
.species-section .project-label { color: var(--sage); }
.species-section h2 { color: var(--espresso); }
.species-section h2 em { color: var(--jungle); }
.species-list { display: flex; flex-wrap: wrap; gap: .7rem; }
.species-list span { padding: .65rem 1rem; border: 1px solid rgba(44,24,16,.2); border-radius: 99px; font-family: Nunito, sans-serif; font-size: .85rem; font-weight: 700; }
.ape-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding: clamp(4rem, 8vw, 8rem) clamp(1.25rem, 9vw, 10rem); }
.ape-feature-grid article { padding: 2rem; border-radius: 16px; background: var(--sand); color: var(--espresso); }
.ape-feature-grid article > span { display: block; margin-bottom: 3rem; color: var(--lime); font-size: 1.8rem; }
.ape-feature-grid h3 { font-family: Nunito, sans-serif; }
.ape-feature-grid p { color: #6e655d; font-size: .87rem; }
.ape-feature-grid a { color: var(--jungle); font-size: .78rem; font-weight: 700; }
.ape-launch { text-align: center; }
.ape-launch h2 { margin: 1rem auto 2rem; font-size: clamp(3.2rem, 7vw, 7rem); }
.ape-launch > p:not([class]) { max-width: 700px; margin: auto; color: #b9c7ba; }
.launch-links { display: flex; justify-content: center; align-items: center; gap: 2rem; margin-top: 2rem; }

/* Support and legal */
.prose-shell { padding: 8rem clamp(1.25rem, 9vw, 10rem) 6rem; }
.prose-hero { max-width: 1000px; padding: clamp(3rem, 8vw, 8rem) 0; }
.prose-hero h1 { margin: 1rem 0 1.5rem; font-size: clamp(4rem, 9vw, 8rem); }
.prose-hero > p:last-child { max-width: 600px; color: var(--muted); font-size: 1.1rem; }
.support-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(3rem, 9vw, 9rem); padding-top: 4rem; border-top: 1px solid var(--line); }
.support-contact h2, .faq h2, .security-callout h2 { font-size: clamp(2rem, 3.3vw, 3.2rem); }
.support-contact > p:not([class]) { color: var(--muted); }
.response-note { margin-top: 1.5rem; color: #6f757a; font-size: .72rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { padding: 1.4rem 2rem 1.4rem 0; cursor: pointer; font-weight: 500; }
.faq details p { max-width: 680px; margin: 0 0 1.5rem; color: var(--muted); }
.security-callout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: end; margin-top: 7rem; padding: 3rem; border: 1px solid var(--line); }
.security-callout h2 { margin-bottom: 0; }
.security-callout > p { color: var(--muted); }
.legal-index { position: sticky; z-index: 5; top: 0; display: flex; flex-wrap: wrap; gap: 1rem 2rem; padding: 1rem 0; background: rgba(11,13,15,.94); border-block: 1px solid var(--line); backdrop-filter: blur(10px); }
.legal-copy { max-width: 920px; margin: 5rem auto; }
.legal-copy section { scroll-margin-top: 5rem; padding: 3rem 0; border-top: 1px solid var(--line); }
.legal-copy h2 { margin: .8rem 0 2rem; font-size: clamp(2.5rem, 5vw, 4.8rem); }
.legal-copy h3 { margin: 2rem 0 .5rem; font-size: 1.05rem; }
.legal-copy p { color: #a9aeb2; }
.legal-copy strong { color: var(--paper); }
.legal-note { padding: 1rem; border-left: 2px solid var(--orange); background: var(--panel); font-size: .8rem; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; transition: none; } }
@media (max-width: 850px) {
  .studio-hero, .ape-hero { grid-template-columns: 1fr; padding-top: 8.5rem; }
  .hero-visual { max-width: 620px; }
  .definition, .definition-grid, .statement-grid, .principle-intro, .featured-project, .support-grid, .security-callout { grid-template-columns: 1fr; }
  .principle-intro, .quiz-steps { margin-left: 0; }
  .principle-grid { grid-template-columns: 1fr 1fr; }
  .ape-feature-grid { grid-template-columns: 1fr; }
  .ape-id { max-width: 560px; }
}
@media (max-width: 560px) {
  .site-header { align-items: flex-start; }
  nav { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1rem; }
  .studio-intro h1 { font-size: clamp(3.1rem, 15vw, 4.5rem); }
  .hero-actions, .launch-links { align-items: flex-start; flex-direction: column; gap: 1.2rem; }
  .definition-grid, .principle-grid { grid-template-columns: 1fr; }
  .ape-id { grid-template-columns: 80px 1fr; transform: none; }
  .ape-face { width: 80px; height: 80px; }
  .quiz-steps li { grid-template-columns: 42px 1fr; }
  footer { align-items: flex-start; flex-direction: column; }
}
