/* Fonts: self-hosted (latin), Fraunces + Plus Jakarta Sans, SIL Open Font License */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 500 700;
  font-display: swap;
  src: url(fonts/Fraunces-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(fonts/Fraunces-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/PlusJakartaSans-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #1c1117;
  --ink-2: #281a21;
  --cream: #fff6ef;
  --cream-2: #fbe9dd;
  --coral: #ff8a65;
  --peach: #ffb48a;
  --text: #2b1812;
  --muted: #7d5d52;
  --on-ink: #fff3ea;
  --on-ink-muted: rgba(255, 243, 234, .68);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --pad: clamp(20px, 6vw, 96px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--on-ink); font-family: var(--sans); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: -.02em; margin: 0; }
section[id] { scroll-margin-top: 90px; }

/* ---------- Egg shell (hatching egg in Work) ---------- */
.shell {
  border-radius: 50% 50% 46% 46% / 58% 58% 42% 42%;
  background: radial-gradient(circle at 34% 28%, #fffaf3 0%, #ffd9b5 38%, #ffa27d 72%, #f07a55 100%);
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 20;
  width: min(760px, calc(100% - 24px)); height: 58px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 10px 0 22px; border-radius: 999px;
  background: rgba(28, 17, 23, .9); border: 1px solid rgba(255, 243, 234, .1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 18px 50px -20px rgba(20, 8, 12, .6);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
}
.nav-logo { font-family: var(--serif); font-weight: 700; font-size: 20px; letter-spacing: .02em; text-decoration: none; color: var(--on-ink); }
.nav-links { display: flex; gap: 28px; }
.nav-links a { text-decoration: none; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--on-ink-muted); transition: color .3s; }
.nav-links a:hover { color: var(--on-ink); }
.nav-cta, .btn {
  display: inline-flex; align-items: center; white-space: nowrap; text-decoration: none;
  background: var(--peach); color: var(--text); font-weight: 700; border-radius: 999px;
  transition: transform .4s var(--ease), background .3s;
}
.nav-cta { height: 40px; padding: 0 20px; font-size: 13px; }
.nav-cta:hover, .btn:hover { background: #ffc4a3; transform: translateY(-2px); }
.nav-cta:active, .btn:active { transform: scale(.98); }

/* ---------- Hero (sticky, sheet slides over it) ---------- */
.hero { position: sticky; top: 0; z-index: 0; min-height: 100dvh; display: flex; align-items: center; overflow: hidden; }
.hero-fluid { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .9; }
.hero-inner { position: relative; width: 100%; padding: 110px var(--pad) 90px; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 40px; }

/* Hero glass cards: parallax via --px/--py (JS), fluid shows through the frosted glass */
.hero-cards { position: relative; height: clamp(320px, 32vw, 440px); }
.gcard { position: absolute; width: clamp(210px, 19vw, 280px); padding: 18px 22px; border-radius: 22px; background: rgba(255, 243, 234, .07); border: 1px solid rgba(255, 243, 234, .18); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 30px 60px -30px rgba(10, 4, 8, .9); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); transform: translate3d(calc(var(--px, 0) * var(--d) * 1px), calc(var(--py, 0) * var(--d) * 1px), 0); transition: transform 1s var(--ease); }
.gcard small { display: block; font-size: 12px; font-weight: 700; color: var(--peach); }
.gcard b { font-family: var(--serif); font-size: clamp(24px, 2.2vw, 32px); font-weight: 700; }
.gcard:nth-child(1) { top: 2%; right: 18%; }
.gcard:nth-child(2) { top: 36%; right: 0; }
.gcard:nth-child(3) { top: 68%; right: 26%; }
@supports not (backdrop-filter: blur(1px)) { .gcard { background: rgba(40, 26, 33, .92); } }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--on-ink-muted); margin: 0 0 18px; }
h1 { font-size: clamp(52px, 9vw, 136px); line-height: .98; max-width: 11ch; padding-bottom: .06em; }
.hero-lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--on-ink-muted); max-width: 40ch; margin: 22px 0 0; }
.btn { margin-top: 34px; height: 54px; padding: 0 30px; font-size: 14px; letter-spacing: .02em; }

/* ---------- Sheet ---------- */
.sheet { position: relative; z-index: 1; background: var(--cream); color: var(--text); border-radius: 40px 40px 0 0; box-shadow: 0 -30px 60px -30px rgba(20, 8, 12, .5); }

/* ---------- Studio ---------- */
.studio { padding: clamp(70px, 9vw, 120px) 0 clamp(70px, 9vw, 120px); overflow: hidden; }
.band { border-block: 1px solid rgba(43, 24, 18, .1); padding: clamp(10px, 1.4vw, 20px) 0; }
@supports (animation-timeline: view()) { .band-shift { animation: bandshift linear both; animation-timeline: view(); } }
.band-track { display: flex; width: max-content; align-items: center; animation: marquee 38s linear infinite; }
.band-track span { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(52px, 8.6vw, 132px); line-height: 1.1; padding-bottom: .08em; white-space: nowrap; }
.band-track i { font-style: normal; color: var(--coral); font-size: clamp(30px, 4.4vw, 64px); margin: 0 clamp(20px, 3vw, 44px); }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes bandshift { from { transform: translateX(8%); } to { transform: translateX(-18%); } }
.studio-body { padding: clamp(60px, 8vw, 110px) var(--pad) 0; text-align: center; }
.statement { font-size: clamp(34px, 4.6vw, 68px); line-height: 1.06; max-width: 21ch; margin: 0 auto; }
.studio-grid { margin: clamp(40px, 5vw, 70px) auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); max-width: 860px; }
.studio-col { margin: 0 auto; font-size: 17px; color: var(--muted); max-width: 38ch; }
.studio-col strong { color: var(--text); font-weight: 700; }

/* ---------- Principles (sticky slider) ---------- */
.principles { position: relative; background: linear-gradient(var(--cream), var(--cream-2)); }
.principles-stage { position: sticky; top: 0; height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; padding: 110px var(--pad) 90px; overflow: hidden; }
.principles-title { font-size: clamp(22px, 2vw, 28px); text-align: center; color: var(--text); }
.slides { position: relative; }
.slide { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; opacity: 0; transform: translateY(30px); filter: blur(6px); transition: opacity .7s var(--ease), transform .7s var(--ease), filter .7s var(--ease); pointer-events: none; }
.slide.is-active { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.slide h3 { font-size: clamp(44px, 6.4vw, 96px); line-height: 1.02; font-style: italic; font-weight: 500; position: relative; z-index: 1; }
.slide p { font-size: clamp(16px, 1.3vw, 19px); color: var(--muted); max-width: 34ch; margin: 0; position: relative; z-index: 1; }
.slide-num { position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-family: var(--serif); font-weight: 500; font-style: italic; font-size: clamp(160px, 22vw, 320px); line-height: 1; color: rgba(255, 138, 101, .13); z-index: 0; }
.dashes { display: flex; justify-content: center; gap: 10px; }
.dashes i { width: 34px; height: 3px; border-radius: 2px; background: rgba(43, 24, 18, .16); transition: background .5s, width .5s var(--ease); }
.dashes i.on { background: var(--coral); width: 54px; }
.sentinels > div { height: 70vh; }
.wave { display: block; position: relative; z-index: 1; width: 100%; height: clamp(50px, 8vw, 120px); fill: var(--ink); }

/* ---------- Work ---------- */
.work { position: relative; z-index: 1; margin-top: -3px; background: var(--ink); color: var(--on-ink); padding: clamp(50px, 7vw, 90px) var(--pad) clamp(90px, 11vw, 150px); }
.work > h2 { font-size: clamp(34px, 4.4vw, 62px); line-height: 1.06; }
.work-card { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 80px); align-items: center; padding: clamp(28px, 4.6vw, 64px); border-radius: 36px; background: var(--ink-2); border: 1px solid rgba(255, 243, 234, .08); position: relative; overflow: hidden; view-timeline-name: --hatch; }
.work-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(45% 60% at 78% 50%, rgba(255, 138, 101, .22), transparent 70%); }
.work-copy { position: relative; }
.work-copy h3 { font-size: clamp(48px, 5.6vw, 80px); line-height: 1; }
.work-lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--on-ink-muted); max-width: 40ch; margin: 18px 0 0; }
.features { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.features li { color: var(--on-ink-muted); font-size: 16px; padding-left: 26px; position: relative; max-width: 44ch; }
.features li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 15px; border-radius: 50% 50% 46% 46% / 58% 58% 42% 42%; background: var(--peach); }
.features strong { color: var(--on-ink); }
.status { display: inline-block; margin-top: 30px; padding: 9px 16px; border-radius: 999px; background: var(--peach); color: var(--text); font-size: 13px; font-weight: 700; }

/* Hatching egg */
.hatch { position: relative; height: clamp(300px, 34vw, 420px); display: grid; place-items: center; }
.hatch-light { position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 214, 170, .55), transparent 65%); transform: scale(var(--hatch-light, .6)); opacity: .8; }
.egg-split { position: relative; width: clamp(170px, 17vw, 220px); aspect-ratio: 200 / 250; filter: drop-shadow(0 30px 60px rgba(255, 138, 101, .4)); animation: wobble 3.4s ease-in-out infinite; transform-origin: 50% 90%; }
.shell { position: absolute; inset: 0; }
.shell-top { clip-path: polygon(0 0, 100% 0, 100% 46.4%, 87% 46.4%, 79% 40.8%, 70% 48.8%, 61% 39.2%, 52% 49.6%, 44% 40%, 33% 50.4%, 26% 41.6%, 14% 47.2%, 0 47.2%); transform-origin: 20% 45%; }
.shell-bottom { clip-path: polygon(0 47.2%, 14% 47.2%, 26% 41.6%, 33% 50.4%, 44% 40%, 52% 49.6%, 61% 39.2%, 70% 48.8%, 79% 40.8%, 87% 46.4%, 100% 46.4%, 100% 100%, 0 100%); }
.crack { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.crack path { fill: none; stroke: rgba(110, 40, 25, .55); stroke-width: 3; stroke-linejoin: round; stroke-dasharray: 220; stroke-dashoffset: 220; }
@keyframes wobble { 0%, 72%, 100% { transform: rotate(0); } 78% { transform: rotate(-5deg); } 84% { transform: rotate(5deg); } 90% { transform: rotate(-3deg); } }

/* scroll-driven hatch where supported */
@supports (animation-timeline: view()) {
  .crack path { animation: crack linear both; animation-timeline: --hatch; animation-range: entry 40% cover 55%; }
  .shell-top { animation: lid linear both; animation-timeline: --hatch; animation-range: cover 45% cover 70%; }
  .hatch-light { animation: glow linear both; animation-timeline: --hatch; animation-range: entry 40% cover 70%; }
}
@keyframes crack { to { stroke-dashoffset: 0; } }
@keyframes lid { 0% { transform: none; } 100% { transform: translate(-6%, -22%) rotate(-16deg); } }
@keyframes glow { from { transform: scale(.6); opacity: .5; } to { transform: scale(1.35); opacity: 1; } }
/* fallback (no scroll timelines): JS adds .hatched when visible */
.no-sda .crack path { transition: stroke-dashoffset 1.4s var(--ease); }
.no-sda .shell-top { transition: transform 1s var(--ease) 1.2s; }
.no-sda .hatch.hatched .crack path { stroke-dashoffset: 0; }
.no-sda .hatch.hatched .shell-top { transform: translate(-6%, -22%) rotate(-16deg); }

/* ---------- Contact ---------- */
.contact { padding: clamp(100px, 13vw, 180px) var(--pad); text-align: center; }
.contact h2 { font-size: clamp(34px, 4.4vw, 62px); line-height: 1.06; max-width: 16ch; margin: 0 auto; }
.mail { display: inline-block; margin-top: 34px; font-family: var(--serif); font-size: clamp(24px, 3.4vw, 46px); text-decoration: none; background: linear-gradient(var(--peach), var(--peach)) 0 100% / 100% 3px no-repeat; padding-bottom: 6px; transition: background-size .5s var(--ease); }
.mail:hover { background-size: 100% 100%; }

/* ---------- Footer ---------- */
.footer-wrap { padding: 0 clamp(12px, 1.6vw, 24px) clamp(12px, 1.6vw, 24px); }
.footer { background: var(--ink); color: var(--on-ink); border-radius: 36px; padding: clamp(36px, 5vw, 64px) clamp(28px, 5vw, 72px) 28px; position: relative; overflow: hidden; }
.footer::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(40% 70% at 10% 0%, rgba(255, 138, 101, .14), transparent 70%); }
.footer-top { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-brand p { color: var(--on-ink-muted); font-size: 14px; max-width: 30ch; margin: 14px 0 0; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-col h4 { margin: 0 0 6px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 243, 234, .45); font-weight: 600; }
.footer-col a { text-decoration: none; color: var(--on-ink-muted); transition: color .3s; }
.footer-col a:hover { color: var(--on-ink); }
.footer-col span { color: var(--on-ink); }
.copyright { position: relative; margin: 48px 0 0; text-align: center; font-size: 12px; color: rgba(255, 243, 234, .45); }

/* ---------- Motion (JS adds .js) ---------- */
.js .split .w { display: inline-block; opacity: 0; transform: translateY(.45em); filter: blur(8px); animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--i) * 90ms + 150ms); }
.js .hero-lead, .js .hero .btn, .js .eyebrow { opacity: 0; animation: rise .9s var(--ease) forwards .75s; }
@keyframes rise { to { opacity: 1; transform: none; filter: none; } }
.js [data-reveal] { opacity: 0; transform: translateY(28px); filter: blur(8px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; filter: none; }

/* Statement fills in line by line while it scrolls through the viewport */
.js .fill .fw { opacity: .16; transition: opacity .6s var(--ease); transition-delay: calc(var(--i) * 35ms); }
.js .fill.in .fw { opacity: 1; }
@supports (animation-timeline: view()) {
  .js .fill .fw { opacity: 1; animation: fillw linear both; animation-timeline: view(); animation-range: entry 100% cover 48%; transition: none; }
}
@keyframes fillw { from { opacity: .16; } to { opacity: 1; } }

/* Liquid drop cursor (fine pointers only, JS adds .has-cursor) */
.has-cursor, .has-cursor * { cursor: none !important; }
.drop { position: fixed; left: 0; top: 0; z-index: 100; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, #ffe2cf 0%, #ff9a76 45%, #ee6848 100%); box-shadow: 0 0 26px rgba(255, 138, 101, .55); opacity: 0; transition: opacity .3s, width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease); }
.drop.on { opacity: 1; }
.drop.is-link { width: 56px; height: 56px; margin: -28px 0 0 -28px; opacity: .85; }
.js .hero-cards .gcard { animation: appear 1.2s var(--ease) both; animation-delay: calc(.5s + var(--d) * .15s); }
@keyframes appear { from { opacity: 0; filter: blur(10px); } }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .hero-inner { padding-top: 120px; grid-template-columns: 1fr; }
  .hero-cards { height: 230px; }
  .gcard { width: 190px; padding: 12px 16px; }
  .gcard b { font-size: 21px; }
  .gcard:nth-child(1) { top: 0; left: 0; right: auto; }
  .gcard:nth-child(2) { top: 34%; right: 0; }
  .gcard:nth-child(3) { top: 68%; left: 6%; right: auto; }
  .studio-grid { grid-template-columns: 1fr; }
  .slide { grid-template-columns: 1fr; align-content: center; gap: 18px; }
  .slide-num { top: 20%; font-size: 150px; }
  .work-card { grid-template-columns: 1fr; }
  .hatch { order: -1; height: 280px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .split .w, .js .hero-lead, .js .hero .btn, .js .eyebrow, .js [data-reveal], .js .fill .fw { opacity: 1; transform: none; filter: none; }
  .crack path { stroke-dashoffset: 0; }
}

/* ---------- Legal pages ---------- */
.legal-body { background: var(--cream); color: var(--text); }
.legal { max-width: 760px; margin: 0 auto; padding: 150px 24px 110px; }
.legal h1 { font-size: clamp(42px, 6vw, 72px); line-height: 1.02; max-width: none; }
.legal .updated { color: var(--muted); font-size: 14px; margin: 16px 0 48px; }
.legal h2 { font-size: clamp(22px, 2.2vw, 28px); margin: 48px 0 12px; }
.legal h3 { font-family: var(--sans); font-size: 17px; letter-spacing: 0; margin: 26px 0 8px; }
.legal p, .legal li { color: var(--muted); font-size: 16.5px; line-height: 1.75; }
.legal strong { color: var(--text); }
.legal ul { padding-left: 20px; }
.legal a { color: var(--text); text-decoration-color: var(--coral); text-underline-offset: 3px; }
.legal .box { background: #fff; border-radius: 24px; padding: 24px 28px; margin: 24px 0; box-shadow: 0 1px 0 #f1e2d6; }
.legal .box p { margin: 0; }
.faq details { border-bottom: 1px solid rgba(43, 24, 18, .1); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; color: var(--text); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--coral); font-size: 22px; line-height: 1; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 12px 0 0; }
