/* Cassie Davis Studio — home page. One warm yellow world in the hero's colours (cream clay, warm black
   glass) with an 80s type set: Audiowide headlines, Monoton neon numbers, Mr Dafoe chrome-script accents
   and Space Mono text. A 3D .STUDIO on a phone, a pinned wordmark, numbered chapters with floating phones,
   warm-black pill buttons with a pulsing ring. The Moonchord pages use it too (see the end). */
/* the 80s type set, hosted here (latin subsets from Google Fonts, SIL Open Font License) */
@font-face { font-family: "Audiowide"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/audiowide-400.woff2) format("woff2"); }
@font-face { font-family: "Bebas Neue"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/bebas-neue-400.woff2) format("woff2"); }
@font-face { font-family: "Monoton"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/monoton-400.woff2) format("woff2"); }
@font-face { font-family: "Mr Dafoe"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/mr-dafoe-400.woff2) format("woff2"); }
@font-face { font-family: "Space Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/space-mono-400.woff2) format("woff2"); }
@font-face { font-family: "Space Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/space-mono-700.woff2) format("woff2"); }

:root {
  --gold: #ffc43d;
  --gold-deep: #f2a91c;
  --cream: #fff2d9;                       /* the hero's clay */
  --ink: #1c150d;                         /* warm black, like the phone glass */
  --ink-soft: rgba(28, 21, 13, 0.78);
  --ink-faint: rgba(28, 21, 13, 0.14);
  --wordmark: "Bebas Neue", "Arial Narrow", Impact, sans-serif;  /* matches the 3D word */
  --display: "Audiowide", "Arial Black", sans-serif;
  --neon: "Monoton", "Audiowide", sans-serif;
  --script: "Mr Dafoe", "Brush Script MT", cursive;
  --sans: "Space Mono", ui-monospace, Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4.5vw, 64px);
  --ease: cubic-bezier(.19, 1, .22, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--gold); color: var(--ink); font: 15.5px/1.75 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; line-height: 1.04; letter-spacing: 0.01em; text-transform: uppercase; }
p { margin: 0 0 1rem; }

/* pinned chrome: the wordmark stays top-left, a round mail button bottom-right */
.wordmark { position: fixed; z-index: 60; top: 26px; left: var(--gutter); display: inline-flex; align-items: center;
  font-family: var(--wordmark); font-weight: 400; font-size: clamp(1.8rem, 2.6vw, 2.3rem); letter-spacing: 0.01em; line-height: 1; padding-top: 3px; white-space: nowrap; }
.wordmark span { color: var(--cream); -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; }
.wordmark { transition: background .35s ease, padding .35s var(--ease), margin .35s var(--ease); border-radius: 999px; }
.scrolled .wordmark { background: rgba(255, 196, 61, 0.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); padding: 9px 18px; margin: -9px 0 0 -18px; box-shadow: 0 8px 24px -12px rgba(120, 70, 10, 0.4); }
.mail-fab { position: fixed; z-index: 60; right: var(--gutter); bottom: 26px; width: 58px; height: 58px; border-radius: 50%; background: var(--ink); color: var(--cream);
  display: grid; place-items: center; box-shadow: 0 12px 30px -10px rgba(28, 21, 13, 0.6); transition: transform .4s var(--ease), opacity .4s ease; }
.mail-fab:hover { transform: scale(1.08); }
.mail-fab svg { width: 24px; height: 24px; }
body:not(.scrolled) .mail-fab { opacity: 0; transform: scale(0.6); pointer-events: none; }

/* hero menu: sits in the hero and scrolls away with it; the links drop in one by one */
.menu { position: absolute; z-index: 5; top: 30px; right: var(--gutter); display: flex; gap: clamp(18px, 3.4vw, 52px); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; }
.menu a { position: relative; padding: 4px 0; animation: drop .7s var(--ease) both; }
.menu a:nth-child(1) { animation-delay: .15s; }
.menu a:nth-child(2) { animation-delay: .27s; }
.menu a:nth-child(3) { animation-delay: .39s; }
.menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.menu a:hover::after { transform: scaleX(1); }
@keyframes drop { from { opacity: 0; transform: translateY(-50px); } }

/* pill button with a pulsing halo */
.pill { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; background: var(--ink); color: var(--cream);
  font-weight: 700; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; min-width: 170px; height: 60px; padding: 0 34px; border-radius: 999px; transition: transform .3s var(--ease); }
.pill::before { content: ""; position: absolute; inset: -10px; z-index: -1; border-radius: inherit; background: rgba(28, 21, 13, 0.2); animation: halo 2.4s var(--ease) infinite; }
.pill:hover { transform: scale(1.04); }
.pill.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.pill.ghost::before { display: none; }
@keyframes halo { 0% { transform: scale(0.86); opacity: 1; } 70%, 100% { transform: scale(1.12); opacity: 0; } }
.pills { display: flex; flex-wrap: wrap; gap: 24px 28px; margin-top: 2.6rem; }

/* hero: the clay piano fills the first screen */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: clip; isolation: isolate; touch-action: pan-y; cursor: grab; }
.hero.dragging { cursor: grabbing; user-select: none; -webkit-user-select: none; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s ease; }
.hero canvas.ready { opacity: 1; }
/* if WebGL or the font can't load, the word still shows, flat */
.hero-word { display: none; position: absolute; inset: 0; margin: 0; place-items: center; font-family: var(--wordmark); font-weight: 400; font-size: clamp(6rem, 22vw, 20rem); letter-spacing: 0.01em; color: var(--cream); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; }
.hero.flat .hero-word { display: grid; }
.scroll-cue { position: absolute; z-index: 5; left: 50%; bottom: 7%; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; font-family: var(--sans); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.24em; }
.scroll-cue i { width: 25px; height: 40px; border-radius: 15px; background: var(--ink); position: relative; }
.scroll-cue i::after { content: ""; position: absolute; left: 50%; top: 6px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--cream); animation: cue 1.4s var(--ease) infinite both; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(16px); opacity: 0; } 100% { opacity: 0; } }

/* statement: two giant lines that slide in from opposite sides */
.statement { text-align: center; padding: clamp(70px, 10vw, 150px) var(--gutter) clamp(50px, 8vw, 110px); overflow: hidden; }
.statement h1, .statement h2 { font-size: clamp(2.6rem, 8vw, 8rem); max-width: 14ch; margin: 0 auto; }
.statement .line { display: block; }
/* the second line in 80s chrome script, cream with a hard offset shadow */
.statement .line.cream, .page-hero .line.cream, .legal-head .line.cream { font-family: var(--script); text-transform: none; font-size: 1.2em; line-height: 1.05; letter-spacing: 0; color: var(--cream); text-shadow: 0.04em 0.04em 0 var(--ink); margin-top: 0.05em; }
.statement .lede { font-family: var(--sans); font-weight: 700; font-size: clamp(0.9rem, 1.5vw, 1.15rem); letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.7; margin: 2rem auto 0; max-width: 36ch; }
.statement .pills { justify-content: center; }

/* numbered chapters: a floating phone beside the copy */
.chapter { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(32px, 6vw, 100px); min-height: 100vh; padding: clamp(60px, 8vw, 120px) var(--gutter); max-width: 1440px; margin: 0 auto; }
.chapter.flip { grid-template-columns: 1fr 1.05fr; }
.chapter.flip .copy { order: 2; }
.num { font-family: var(--neon); font-size: clamp(3rem, 6.5vmin, 4.8rem); line-height: 1; display: block; color: var(--ink); letter-spacing: 0.04em; }
.chapter h2 { font-size: clamp(2.3rem, 5vw, 5.4rem); margin: 0.5rem 0 1.6rem; }
.chapter .copy p { max-width: 27em; color: var(--ink-soft); }
.chapter .app-icon { width: 76px; height: 76px; border-radius: 20px; margin-bottom: 24px; box-shadow: 0 16px 40px rgba(120, 70, 10, 0.25); }

.object { position: relative; display: grid; place-items: center; perspective: 1600px; min-height: 560px; }
.object::after { content: ""; position: absolute; bottom: 2%; width: 46%; height: 34px; border-radius: 50%; background: radial-gradient(closest-side, rgba(138, 79, 18, 0.32), transparent); filter: blur(4px); }
.object .phone { position: relative; width: min(260px, 56%); border-radius: 30px; transform: rotateY(-16deg) rotateX(6deg) rotateZ(3deg); box-shadow: -30px 40px 70px -20px rgba(120, 70, 10, 0.45), 0 0 0 7px var(--ink); }
.flip .object .phone { transform: rotateY(16deg) rotateX(6deg) rotateZ(-3deg); }
/* a photo in place of the floating phone (Chordigan's cardigan man): a slightly tilted print */
.object .photo { position: relative; width: min(440px, 92%); border-radius: 18px; transform: rotateZ(2.5deg); box-shadow: -24px 34px 60px -18px rgba(120, 70, 10, 0.5), 0 0 0 5px var(--ink); }
.object .disc { position: absolute; width: 68%; aspect-ratio: 1; border-radius: 50%; background: var(--cream); opacity: 0.7; top: 6%; right: 6%; }
.flip .object .disc { right: auto; left: 6%; }
.object .drift { position: relative; display: grid; place-items: center; width: 100%; will-change: transform; }

/* wide rounded media card that zooms in */
.showcase { padding: 0 var(--gutter) clamp(60px, 8vw, 120px); overflow: hidden; }
/* warm black like the phone glass, with a low sunset glow and faint VHS scanlines */
.showcase .card { position: relative; max-width: 1440px; margin: 0 auto; border-radius: 28px; overflow: hidden;
  background: radial-gradient(120% 70% at 50% 120%, rgba(255, 140, 40, 0.38), transparent 62%), var(--ink); display: flex; justify-content: center; align-items: center; gap: clamp(14px, 3vw, 48px);
  padding: clamp(40px, 6vw, 90px) clamp(16px, 4vw, 60px); }
.showcase .card::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255, 242, 217, 0.035) 0 2px, transparent 2px 5px); }
.showcase .card img { position: relative; width: clamp(90px, 20vw, 270px); border-radius: clamp(14px, 2vw, 30px); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45); }
.showcase .card img:nth-child(2) { transform: translateY(-8%); }

/* tilted gallery that zooms in and slides sideways as you scroll */
.reel { padding: clamp(30px, 5vw, 70px) 0 clamp(80px, 11vw, 150px); overflow: hidden; }
.reel-tilt { transform: rotate(-9deg) skewX(4deg); }
.reel-track { display: flex; align-items: flex-start; gap: clamp(18px, 2.4vw, 36px); width: max-content; padding-left: 8vw; will-change: transform; }
.reel-track img, .reel-track .tile { width: clamp(140px, 16vw, 240px); aspect-ratio: 552 / 1200; border-radius: 24px; box-shadow: 0 24px 50px -20px rgba(28, 21, 13, 0.5); }
.reel-track > :nth-child(2n) { margin-top: 60px; }
.reel-track .tile { background: var(--cream); display: grid; place-items: center; }
.reel-track .tile img { width: 46%; height: auto; aspect-ratio: 1; border-radius: 22%; box-shadow: 0 14px 30px rgba(120, 70, 10, 0.3); }

/* closing: contact and footer, centred */
.contact { text-align: center; padding: clamp(70px, 10vw, 140px) var(--gutter) clamp(40px, 6vw, 80px); }
.contact h2 { font-size: clamp(2.8rem, 9vw, 8rem); }
.contact .mail { display: inline-block; font-weight: 700; font-size: clamp(1rem, 2.6vw, 1.8rem); letter-spacing: 0; margin: 1.6rem 0 0.8rem; border-bottom: 3px solid var(--ink); line-height: 1.25; overflow-wrap: anywhere; }
.contact p { color: var(--ink-soft); max-width: 30em; margin: 0 auto; }
.contact .pills { justify-content: center; }
footer { display: grid; justify-items: center; gap: 14px; text-align: center; padding: clamp(40px, 6vw, 70px) var(--gutter) 110px; font-size: 0.92rem; color: var(--ink-soft); }
footer .mark { width: 54px; height: 54px; border-radius: 15px; }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; }
footer a:hover { color: var(--ink); }

/* scroll-in motion (the observer in site.js adds .in) */
.js .reveal { opacity: 0; transform: translateY(70px); transition: opacity 1s ease, transform 1.1s var(--ease); }
.js .reveal.left { transform: translateX(-200px) scale(1.1); }
.js .reveal.right { transform: translateX(200px) scale(1.1); }
.js .reveal.zoom { transform: scale(1.2); }
.js .reveal.in { opacity: 1; transform: none; }
.copy > .reveal:nth-child(2) { transition-duration: 1s, 1.2s; transition-delay: .05s; }
.copy > .reveal:nth-child(3) { transition-duration: 1s, 1.3s; transition-delay: .1s; }
.copy > .reveal:nth-child(4) { transition-duration: 1s, 1.4s; transition-delay: .15s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .menu a, .pill::before, .scroll-cue i::after { animation: none; }
  .pill, .mail-fab { transition: none; }
}

@media (max-width: 860px) {
  .chapter, .chapter.flip { grid-template-columns: 1fr; min-height: 0; }
  .chapter.flip .copy { order: 0; }
  .object { min-height: 460px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wordmark { top: 20px; font-size: 1.6rem; }
  .menu { top: 21px; gap: 16px; font-size: 0.95rem; }
  .menu a:last-child { display: none; } /* no room beside the wordmark; the mail button and Contact section cover it */
  .pill { min-width: 140px; height: 54px; padding: 0 26px; }
  .mail-fab { width: 52px; height: 52px; bottom: 18px; }
  .js .reveal.left { transform: translateX(-80px) scale(1.05); }
  .js .reveal.right { transform: translateX(80px) scale(1.05); }
  .js .reveal.in { transform: none; }
}

/* ---- Moonchord pages: the same yellow world with a short top instead of the 3D hero ---- */
.sub-head { position: relative; z-index: 5; }
.menu a[aria-current="page"]::after { transform: scaleX(1); }
.eyebrow { font-weight: 700; font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase; margin: 0 0 0.9rem; }
.page-hero { min-height: 0; padding-top: clamp(130px, 14vw, 190px); }
.page-hero h1 { font-size: clamp(2.6rem, 6.2vw, 6.2rem); margin: 0 0 1.6rem; }
.page-hero h1 .line { display: block; }
.page-hero .object { min-height: 620px; }

.sub { max-width: 1440px; margin: 0 auto; padding: clamp(60px, 8vw, 120px) var(--gutter) 0; }
.section-head { margin-bottom: clamp(28px, 4vw, 56px); }
.section-head h2 { font-size: clamp(2rem, 4.6vw, 4.4rem); margin-top: 0.5rem; }

/* media-first cream cards: screenshot in a warm-black frame, then a label and a sentence */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 34px); }
.feature { background: var(--cream); border-radius: 28px; padding: clamp(16px, 1.6vw, 22px); box-shadow: 0 24px 50px -28px rgba(120, 70, 10, 0.55); }
.feature .shot { background: var(--ink); border-radius: 20px; padding: clamp(22px, 3vw, 40px) 0 0; overflow: hidden; display: grid; justify-items: center;
  background-image: radial-gradient(120% 70% at 50% 120%, rgba(255, 140, 40, 0.38), transparent 62%); }
.feature .shot img { width: 64%; border-radius: 22px 22px 0 0; aspect-ratio: 552 / 860; object-fit: cover; object-position: top; }
.feature h2 { font-size: clamp(1.1rem, 1.5vw, 1.35rem); margin: 1.3rem 6px 0.7rem; }
.feature p { color: var(--ink-soft); margin: 0 6px 0.4rem; font-size: 0.94rem; }

/* the top of the page is never hidden waiting for script: it slides in with CSS alone, without a fade */
.page-hero .rise { animation: rise 1.1s var(--ease) both; }
.page-hero .rise.left { animation-name: rise-left; }
.page-hero .rise.right { animation-name: rise-right; }
.page-hero .copy > .rise:nth-child(2) { animation-delay: .05s; }
.page-hero .copy > .rise:nth-child(3) { animation-delay: .1s; }
.page-hero .copy > .rise:nth-child(n+4), .page-hero .object.rise { animation-delay: .15s; }
@keyframes rise { from { transform: translateY(40px); } }
@keyframes rise-left { from { transform: translateX(-120px); } }
@keyframes rise-right { from { transform: translateX(120px); } }
@media (prefers-reduced-motion: reduce) { .page-hero .rise { animation: none; } }

/* details: short label + sentence pairs on ruled lines */
.details { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: clamp(24px, 4vw, 64px); border-top: 2px solid var(--ink); }
.details > div { padding: 22px 0 24px; border-bottom: 2px solid var(--ink-faint); }
.details b { display: block; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 1.05rem; letter-spacing: 0.02em; margin-bottom: 0.35rem; }
.details span { color: var(--ink-soft); font-size: 0.94rem; }

/* questions: ruled rows that open with a turning plus */
.faq { max-width: 960px; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 2px solid var(--ink-faint); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0;
  font-family: var(--display); text-transform: uppercase; font-size: clamp(1.05rem, 2vw, 1.45rem); line-height: 1.2; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--cream); font-family: var(--sans); font-size: 1.3rem; transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-soft); max-width: 40em; padding-bottom: 12px; }
.faq a, .legal a { border-bottom: 2px solid var(--ink); }

/* privacy and terms: one readable column */
.legal { width: min(46rem, 100% - 2 * var(--gutter)); margin: 0 auto; padding-top: clamp(130px, 14vw, 190px); }
.legal-head { margin-bottom: clamp(36px, 5vw, 64px); }
.legal-head h1 { font-size: clamp(2.6rem, 7vw, 5.6rem); margin-bottom: 1.2rem; }
.legal-head h1 .line { display: block; }
.page-hero .line.cream, .legal-head .line.cream { padding-left: 0.12em; }  /* room for the script swash */
.legal-head .date { font-weight: 700; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.legal h2 { font-size: clamp(1.25rem, 2.4vw, 1.7rem); margin: 2.8rem 0 0.9rem; }
.legal p, .legal li { color: var(--ink-soft); }
.legal strong { color: var(--ink); }
.legal ul { padding-left: 1.2em; margin: 0 0 1rem; }
.legal li { margin-bottom: 0.7rem; }
.legal li::marker { color: var(--ink); }

@media (max-width: 960px) {
  .features { grid-template-columns: 1fr 1fr; }
  .details { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .page-hero .object { min-height: 480px; }
}
@media (max-width: 560px) {
  /* three links don't fit beside the wordmark, so they sit on their own row under it */
  .sub-head .menu { position: static; padding: 70px var(--gutter) 0; gap: 22px; font-size: 0.85rem; }
  .sub-head .menu a:last-child { display: block; }
  .page-hero, .legal { padding-top: 50px; }
  .features, .details { grid-template-columns: 1fr; }
  .faq summary::after { width: 34px; height: 34px; }
}

/* Small label beside an app name, such as "Free on iPhone" */
.soon { display: inline-block; vertical-align: middle; margin-left: 0.7em; padding: 0.42em 0.85em; border-radius: 999px; background: var(--ink); color: var(--cream); font-weight: 700; font-size: 0.68rem; letter-spacing: 0.16em; line-height: 1; text-transform: uppercase; white-space: nowrap; }
h2 .soon { font-family: var(--sans); }
