/* Marola studio — design language of marola.surf: paper, ink, teal, Instrument Serif. */
:root {
  --paper: #f4efe6; --paper2: #fffdf9; --ink: #14303f; --teal: #1f87a8;
  --line: #ddd2bf; --mut: #5c6168; --dim: #8a8579; --warm: #ece3d5;
  --red: #c0392b; --amber: #b07a3c;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2 { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; letter-spacing: -.015em; margin: 0; }
h1 em, h2 em { font-style: italic; color: var(--teal); }
a { color: inherit; text-decoration: none; }
.eyebrow { font-weight: 700; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; }

/* ---- nav ---- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
  background: linear-gradient(rgba(244,239,230,.92), rgba(244,239,230,0));
  pointer-events: none;
}
.nav a { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 9px; }
.brand .wm { font-weight: 800; font-size: 19px; color: var(--ink); letter-spacing: -.01em; }
.brand .tag { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-size: 19px; color: var(--teal); margin-left: -2px; }
.cta { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; font-size: 13.5px; }
.cta .arr { opacity: .7; }

/* ---- scrollytelling frame ---- */
.act { position: relative; }
.stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.cards { position: relative; display: flow-root; margin-top: -100svh; padding-bottom: 24svh; pointer-events: none; z-index: 5; }
.cards .spacer { height: 160svh; }
.card {
  pointer-events: auto;
  width: min(560px, calc(100% - 36px));
  margin: 78svh auto 0;
  background: rgba(255,253,249,.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(20,48,63,.09);
  border-radius: 18px; padding: 20px 24px;
  box-shadow: 0 22px 50px -22px rgba(20,48,63,.35);
}
.card:first-child { margin-top: 96svh; }
.card p { margin: 0; font-size: 16.5px; line-height: 1.6; color: #3b4650; }
.card b { color: var(--ink); }

/* ---- hero ---- */
.hero .stage { background: var(--paper); }
#sea, #sea2 { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-copy {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: max(66px, 7.5svh) 22px 0;
}
.hero-copy h1 { font-size: clamp(40px, 8.6vw, 82px); line-height: 1.04; margin: 16px 0 13px; text-wrap: balance; }
.lede { max-width: 600px; font-size: clamp(14.5px, 2.4vw, 17.5px); line-height: 1.55; color: #40505c; margin: 0; text-shadow: 0 1px 10px rgba(244,239,230,.9); }
.lede b { color: var(--ink); }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: rgba(31,135,168,.1); color: #1c6f95; font-weight: 700; font-size: 12px; letter-spacing: .01em;
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: #1f9d6b; animation: live 1.8s ease-in-out infinite; }
@keyframes live { 0%,100% { opacity: 1; transform: scale(1);} 50% { opacity: .4; transform: scale(.8);} }
.scrollcue { margin-top: auto; margin-bottom: 4svh; font-size: 13px; color: rgba(244,239,230,.95); font-weight: 700; line-height: 1.6; text-shadow: 0 1px 14px rgba(10,30,42,.55); }
.scrollcue .vee { display: inline-block; animation: vee 1.8s ease-in-out infinite; color: var(--teal); font-size: 16px; }
@keyframes vee { 0%,100% { transform: translateY(0);} 50% { transform: translateY(6px);} }

/* ---- act stages ---- */
.stage.paper { background: var(--paper); display: flex; flex-direction: column; }
.stagehead { padding: max(70px, 8svh) 24px 6px; text-align: center; }
.stagehead h2 { font-size: clamp(30px, 6.4vw, 54px); line-height: 1.05; text-wrap: balance; }
.actcanvas { flex: 1; width: 100%; min-height: 0; display: block; }
.hud {
  position: absolute; left: 0; right: 0; bottom: 12px; text-align: center;
  font-size: 12px; font-weight: 600; color: var(--dim); letter-spacing: .02em;
}
.hud b { color: var(--teal); font-variant-numeric: tabular-nums; }

/* ---- playground ---- */
.play { background: var(--paper2); border-top: 1px solid rgba(20,48,63,.06); padding: 72px 0 30px; }
.playhead { max-width: 720px; margin: 0 auto 34px; padding: 0 22px; text-align: center; }
.playhead h2 { font-size: clamp(34px, 7vw, 56px); margin-bottom: 14px; }
.playhead p { font-size: 16.5px; line-height: 1.6; color: var(--mut); margin: 0; }
.bench { max-width: 860px; margin: 0 auto; padding: 0 16px; }

.recrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.rec {
  border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 12px 10px;
  background: var(--paper); cursor: pointer; text-align: left;
  font-family: inherit; transition: border-color .2s, background .2s, transform .12s;
}
.rec:active { transform: scale(.97); }
.rec .rl { font-weight: 800; font-size: 13.5px; color: var(--ink); line-height: 1.25; }
.rec .rw { font-size: 11px; color: var(--dim); font-weight: 600; margin-top: 3px; }
.rec.on { border-color: var(--teal); background: rgba(31,135,168,.07); }
.rec.on .rl { color: var(--teal); }
.rec .rst { margin-top: 7px; font-size: 11px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; }
.rec .rdot { flex: none; width: 8px; height: 8px; border-radius: 50%; }
.recstory { grid-column: 1 / -1; font-size: 13.5px; line-height: 1.5; color: var(--mut); padding: 2px 4px 0; min-height: 2.6em; }

.seacard {
  position: relative; height: min(340px, 46svh); border-radius: 20px; overflow: hidden;
  border: 1px solid rgba(20,48,63,.1); box-shadow: 0 26px 60px -26px rgba(20,48,63,.4);
  margin-bottom: 16px; background: var(--paper);
}
.verdict {
  position: absolute; left: 12px; bottom: 12px; display: flex; gap: 8px; align-items: center;
  background: rgba(255,253,249,.94); border: 1px solid rgba(20,48,63,.08);
  border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 700;
  box-shadow: 0 10px 30px -12px rgba(20,48,63,.4);
}
.verdict .st { padding: 3px 10px; border-radius: 999px; color: #fff; font-size: 12px; }
.verdict .hsv { font-variant-numeric: tabular-nums; color: var(--ink); }
.verdict .sub { color: var(--dim); font-weight: 600; font-size: 12px; }

.benchgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 8px; }
.ctrl { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.ctrl label { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; font-size: 13px; color: var(--ink); margin-bottom: 8px; }
.ctrl .val { font-variant-numeric: tabular-nums; color: var(--teal); font-size: 12.5px; }
.ctrl.lie .val { color: var(--red); }
.ctrl .note { margin: 8px 0 0; font-size: 11.5px; line-height: 1.45; color: var(--dim); }
input[type="range"] { width: 100%; accent-color: var(--teal); height: 26px; }
.ctrl.lie input[type="range"] { accent-color: var(--red); }
.toggles { display: flex; gap: 8px; }
.tog {
  flex: 1; font-family: inherit; font-weight: 700; font-size: 12.5px; padding: 8px 6px;
  border-radius: 10px; border: 1.5px solid var(--line); background: transparent; color: var(--dim); cursor: pointer;
}
.tog.on { border-color: var(--teal); color: var(--teal); background: rgba(31,135,168,.07); }

.speccanvas { width: 100%; height: 240px; display: block; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }

.readout { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.ro { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.ro .k { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.ro .v { font-family: 'Instrument Serif', Georgia, serif; font-size: 30px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.ro .u { font-size: 13px; color: var(--dim); }
.ro.alarm .v { color: var(--red); }

/* ---- story ---- */
.story { background: var(--ink); color: #e8e2d4; padding: 84px 22px 90px; }
.storyin { max-width: 640px; margin: 0 auto; }
.story .eyebrow { color: #6fc0d8; }
.story h2 { color: #f4efe6; font-size: clamp(34px, 7vw, 56px); line-height: 1.06; margin-bottom: 22px; }
.story h2 em { color: #6fc0d8; }
.story p { font-size: 16.5px; line-height: 1.65; color: #b8c3ca; margin: 0 0 18px; }
.story p b, .story p i { color: #e8e2d4; }
.storymoral { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-size: 21px; color: #f4efe6 !important; border-left: 3px solid var(--teal); padding-left: 16px; }

/* ---- footer ---- */
.foot { background: var(--warm); padding: 40px 22px 46px; }
.footin { max-width: 860px; margin: 0 auto; }
.fbrand { display: flex; align-items: center; gap: 9px; font-size: 14.5px; color: #4a4438; }
.fbrand b { color: var(--ink); }
.flinks { margin-top: 10px; font-size: 13.5px; font-weight: 600; color: var(--dim); }
.fnote { margin-top: 14px; font-size: 12px; color: var(--dim); line-height: 1.5; }

/* ---- responsive ---- */
@media (max-width: 720px) {
  /* header: keep every item on one line — at 360px the italic tag and the CTA were each wrapping to two rows */
  .nav { padding: 10px 14px; }
  .brand { gap: 7px; }
  .brand .wm { font-size: 17px; }
  .brand .tag { font-size: 15px; white-space: nowrap; }
  .cta { white-space: nowrap; padding: 8px 13px; font-size: 12.5px; gap: 5px; }
  .recrow { grid-template-columns: repeat(2, 1fr); }
  .benchgrid { grid-template-columns: 1fr; }
  .readout { grid-template-columns: repeat(2, 1fr); }
  .card p { font-size: 15px; }
  .stagehead { padding-top: max(64px, 7svh); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chip .dot, .scrollcue .vee { animation: none; }
}
@media (max-width: 420px) { .brand .tag { display: none; } }   /* the h1 already says what the page is */
