/* The Fantastic Planet — site styles
   Ported from the Claude Design canvas "Fantastic Planet Site.dc.html".
   The canvas computed its grid columns in JS from window.innerWidth; those
   breakpoints are reproduced here as CSS media queries (same thresholds),
   so layout is correct before JS runs and correct without JS at all. */

:root {
  --ac: #d8a765;

  --bg: #0b0d11;
  --bg-alt: #0d1015;
  --card: #12151b;
  --cell: #0f1218;
  --cell-hover: #141821;

  --tx: #e8eaed;
  --tx-hi: #f0f2f5;
  --tx-h2: #eceef1;
  --tx-title: #e8ebef;
  --tx-name: #e4e7ec;
  --tx-note: #dde1e7;
  --tx-mid: #c9cfd8;
  --tx-fact: #c2c9d3;
  --tx-mut: #98a0ad;
  --tx-mut2: #8b929e;
  --tx-mut3: #868e9b;
  --tx-dim: #7d8593;
  --tx-dim2: #727a87;
  --tx-dim3: #6d7684;
  --tx-dim4: #5d6470;
  --tx-eyebrow: #8a7a5e;

  --hair: rgba(255, 255, 255, .08);
  --hair-soft: rgba(255, 255, 255, .05);
  --hair-head: rgba(255, 255, 255, .07);
  --hair-cell: rgba(255, 255, 255, .09);
  --hair-mid: rgba(255, 255, 255, .1);
  --hair-fig: rgba(255, 255, 255, .12);
  --hair-btn: rgba(255, 255, 255, .16);
  --hair-tog: rgba(255, 255, 255, .14);

  --sans: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --gut: clamp(18px, 4vw, 48px);
  --maxw: 1200px;
  --headh: 62px;
}

/* ---------- base ---------- */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body {
  color: var(--tx);
  font-family: var(--sans);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

::selection { background: rgba(216, 167, 101, .26); }

:focus-visible {
  outline: 2px solid var(--ac);
  outline-offset: 3px;
  border-radius: 4px;
}

@keyframes tfpPulse {
  0%, 100% { opacity: .3; }
  50%      { opacity: 1; }
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ac);
  color: var(--bg);
  font: 500 13px/1 var(--sans);
  padding: 12px 18px;
  border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* Headline accents: serif italic in the accent colour. */
h1 em, h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--ac);
}

/* ---------- layout primitives ---------- */

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gut);
  padding-right: var(--gut);
}

.band { border-top: 1px solid var(--hair); }
.band.alt { background: var(--bg-alt); }

.band > .wrap       { padding-block: clamp(52px, 7vw, 100px); }
.band > .wrap-tight { padding-block: clamp(48px, 6vw, 84px); }
.band > .wrap-close { padding-block: clamp(60px, 8vw, 116px); }

section[id] { scroll-margin-top: var(--headh); }

.eyebrow {
  font: 500 10.5px/1 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--tx-eyebrow);
  margin: 0;
}

.section-h {
  font: 400 clamp(28px, 4.3vw, 48px)/1.07 var(--sans);
  letter-spacing: -.038em;
  color: var(--tx-h2);
  margin: 16px 0 0;
  max-width: 20ch;
  text-wrap: balance;
}

.section-p {
  font: 400 clamp(15px, 1.4vw, 17px)/1.65 var(--sans);
  color: var(--tx-mut2);
  margin: 16px 0 0;
  max-width: 58ch;
  text-wrap: pretty;
}
.section-p-narrow { max-width: 48ch; }

.num {
  font: 500 10.5px/1 var(--mono);
  letter-spacing: .14em;
  color: var(--ac);
}
.num-dim { color: var(--tx-dim4); }

/* ---------- buttons ---------- */

.btn {
  font: 500 13.5px/1 var(--sans);
  border-radius: 999px;
  padding: 14px 24px;
  white-space: nowrap;
  transition: filter .16s, border-color .16s, color .16s;
}
.btn-sm { font-size: 13px; padding: 12px 20px; }

.btn-accent { color: var(--bg); background: var(--ac); }
.btn-accent:hover { filter: brightness(1.12); }

.btn-ghost { color: var(--tx-mid); border: 1px solid var(--hair-btn); }
.btn-ghost:hover { border-color: rgba(216, 167, 101, .55); color: var(--tx-hi); }

.btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: clamp(24px, 3vw, 34px);
}
.btn-row-tight { margin-top: 26px; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 13, 17, .9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hair-head);
}

.bar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gut);
  height: var(--headh);
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-right: auto;
  flex: none;
}

.mark {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: 2px solid var(--ac);
  display: block;
  flex: none;
}
.mark-sm {
  width: 9px;
  height: 9px;
  border-color: rgba(216, 167, 101, .7);
}

.brand-name {
  font: 500 14px/1 var(--sans);
  letter-spacing: -.02em;
  color: var(--tx-h2);
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.9vw, 26px);
}

.nav .btn-sm { font-size: 12.5px; padding: 10px 17px; }

.nav-link {
  font: 500 12.5px/1 var(--sans);
  color: var(--tx-mut);
  padding: 8px 0;
  transition: color .16s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--tx-hi); }

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 38px;
  height: 38px;
  padding: 0 9px;
  background: none;
  border: 1px solid var(--hair-tog);
  border-radius: 9px;
  cursor: pointer;
  flex: none;
}
.menu-toggle i {
  height: 1.5px;
  background: var(--tx-mid);
  display: block;
  border-radius: 2px;
}

.mobile-menu {
  border-top: 1px solid var(--hair-head);
  padding: 6px var(--gut) 16px;
  display: flex;
  flex-direction: column;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  font: 500 15px/1 var(--sans);
  color: var(--tx-mid);
  padding: 15px 0;
  border-bottom: 1px solid var(--hair-soft);
}
.mobile-menu-cta {
  margin-top: 14px;
  align-self: flex-start;
  color: var(--bg) !important;
  background: var(--ac);
  border-radius: 999px;
  padding: 13px 22px !important;
  border-bottom: 0 !important;
}

/* Canvas logic: wide = innerWidth >= 880. */
.menu-toggle { display: none; }
@media (max-width: 879.98px) {
  .nav-link { display: none; }
  .menu-toggle { display: flex; }
}
@media (min-width: 880px) {
  .mobile-menu { display: none; }
  .mobile-menu-cta { display: none; }
}

/* Below ~400px the brand (nowrap) + CTA pill (nowrap) + hamburger no longer fit
   the 320px bar: the toggle was pushed to right:334 and clipped off-screen.
   Drop the header pill there — the same CTA sits in the mobile menu and again
   in the hero, immediately below. */
@media (max-width: 399.98px) {
  .nav > .btn-accent { display: none; }
  .bar { gap: 10px; }
}

/* ---------- hero ---------- */

.hero {
  padding-top: clamp(52px, 9vw, 116px);
  padding-bottom: clamp(44px, 6vw, 84px);
}

.ping {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  font: 500 10.5px/1.7 var(--mono);
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--tx-dim2);
  margin: 0;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--ac);
  display: block;
  animation: tfpPulse 2.8s ease-in-out infinite;
  flex: none;
}

.hero h1 {
  font: 400 clamp(36px, 7.2vw, 82px)/1.03 var(--sans);
  letter-spacing: -.042em;
  color: var(--tx-hi);
  margin: clamp(20px, 3vw, 32px) 0 0;
  max-width: 15ch;
  text-wrap: balance;
}

.lede {
  font: 400 clamp(16px, 1.6vw, 19.5px)/1.6 var(--sans);
  color: var(--tx-mut);
  margin: clamp(18px, 2.4vw, 28px) 0 0;
  max-width: 54ch;
  text-wrap: pretty;
}

/* ---------- flagship (products) ---------- */

.flagship {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}

.flagship h2 {
  font: 400 clamp(29px, 4.5vw, 50px)/1.06 var(--sans);
  letter-spacing: -.038em;
  color: var(--tx-h2);
  margin: 0;
  text-wrap: balance;
}

.flagship-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 4px;
}

.body {
  font: 400 clamp(15px, 1.4vw, 17px)/1.65 var(--sans);
  color: var(--tx-mut);
  margin: 0;
  max-width: 52ch;
  text-wrap: pretty;
}
.body-dim { color: var(--tx-dim); }

.rule-note {
  border-left: 2px solid rgba(216, 167, 101, .35);
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rule-note-k {
  font: 500 10.5px/1 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ac);
}
.rule-note-v {
  font: 400 14.5px/1.6 var(--sans);
  color: var(--tx-mut2);
  max-width: 48ch;
  text-wrap: pretty;
}

/* ---------- flow (how it works) ---------- */

#systems .section-h { max-width: 20ch; }

.flow {
  margin: clamp(30px, 4vw, 50px) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(14px, 2vw, 22px);
  align-items: stretch;
}
@media (min-width: 620px) { .flow { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .flow { grid-template-columns: repeat(4, 1fr); } }

.flow-card {
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.flow-title {
  font: 400 18px/1.2 var(--sans);
  letter-spacing: -.025em;
  color: var(--tx-title);
}
.flow-body {
  font: 400 13.5px/1.6 var(--sans);
  color: var(--tx-mut3);
  text-wrap: pretty;
}
.flow-tag {
  margin-top: auto;
  padding-top: 12px;
  font: 400 11px/1.4 var(--mono);
  letter-spacing: .05em;
  color: var(--tx-dim4);
}

/* ---------- vera notes ---------- */

.vera {
  margin-top: clamp(30px, 4vw, 52px);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 4vw, 60px);
  align-items: start;
}
@media (min-width: 900px) { .vera { grid-template-columns: 1.35fr 1fr; } }

.vera-notes {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.note {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--hair-mid);
  padding-top: 16px;
}
.note-t {
  font: 500 14.5px/1.3 var(--sans);
  color: var(--tx-note);
}
.note-b {
  font: 400 14.5px/1.65 var(--sans);
  color: var(--tx-mut2);
  max-width: 52ch;
  text-wrap: pretty;
}

.underneath {
  border-left: 2px solid rgba(216, 167, 101, .3);
  padding: 2px 0 2px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.underneath-k {
  font: 500 10.5px/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tx-dim4);
}
.underneath-v {
  font: 400 14.5px/1.65 var(--sans);
  color: var(--tx-mut2);
  text-wrap: pretty;
}
.underneath-cta {
  font: 500 11.5px/1 var(--mono);
  letter-spacing: .08em;
  color: var(--ac);
  margin-top: 4px;
  transition: filter .16s;
}
.underneath-cta:hover { filter: brightness(1.15); }

/* ---------- four arms ---------- */

.arms {
  margin-top: clamp(28px, 3.5vw, 44px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--hair-cell);
  border: 1px solid var(--hair-cell);
  border-radius: 14px;
  overflow: hidden;
}
@media (min-width: 560px)  { .arms { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .arms { grid-template-columns: repeat(4, 1fr); } }

.arm {
  background: var(--cell);
  padding: clamp(22px, 2.6vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-height: 212px;
  transition: background .18s;
}
.arm:hover { background: var(--cell-hover); }

.arm-title {
  font: 400 22px/1.1 var(--sans);
  letter-spacing: -.03em;
  color: var(--tx-h2);
}
.arm-body {
  font: 400 14px/1.6 var(--sans);
  color: var(--tx-mut2);
  text-wrap: pretty;
}
.arm-cta {
  margin-top: auto;
  font: 500 11px/1 var(--mono);
  letter-spacing: .1em;
  color: var(--ac);
}

/* ---------- about ---------- */

#about .section-h { max-width: 18ch; }

.about {
  margin-top: clamp(26px, 3.4vw, 44px);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 4vw, 64px);
  align-items: start;
}
@media (min-width: 900px) { .about { grid-template-columns: 1.25fr 1fr; } }

.about-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.about-p {
  font: 400 clamp(16px, 1.5vw, 18px)/1.7 var(--sans);
  color: var(--tx-mut);
  margin: 0;
  max-width: 56ch;
  text-wrap: pretty;
}
.about-p-dim {
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--tx-dim);
}

.facts {
  display: flex;
  flex-direction: column;
  margin: 0;
}
.fact {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 20px;
  padding: 14px 0;
  border-top: 1px solid var(--hair-mid);
}
.fact dt {
  font: 500 10.5px/1.4 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--tx-dim3);
  flex: none;
  min-width: 104px;
  margin: 0;
}
.fact dd {
  font: 400 14.5px/1.55 var(--sans);
  color: var(--tx-fact);
  flex: 1;
  min-width: 150px;
  margin: 0;
  text-wrap: pretty;
}

/* ---------- figures ---------- */

.figures {
  margin-top: clamp(24px, 3vw, 38px);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 40px);
}
@media (min-width: 560px)  { .figures { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .figures { grid-template-columns: repeat(4, 1fr); } }

.figure {
  border-top: 1px solid var(--hair-fig);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.figure-v {
  font: 400 clamp(30px, 3.6vw, 44px)/1 var(--sans);
  letter-spacing: -.045em;
  color: var(--tx-h2);
  font-variant-numeric: tabular-nums;
}
.figure-l {
  font: 400 13.5px/1.55 var(--sans);
  color: var(--tx-mut2);
  text-wrap: pretty;
}

/* ---------- work / clients ---------- */

#work .section-h { max-width: 22ch; }

.sub-label {
  margin: clamp(30px, 4vw, 48px) 0 0;
  font: 500 10.5px/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tx-dim4);
}

.clients {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
}
.client {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(0, 2.1fr);
  gap: 6px 28px;
  padding: 18px 0;
  border-top: 1px solid var(--hair-cell);
}
/* Deviation from the canvas: the two-column client row is fixed at every
   width in the design, which leaves ~146px for the description on a phone.
   Stack it below 560px. Delete this block to restore the canvas exactly. */
@media (max-width: 559.98px) {
  .client { grid-template-columns: 1fr; }
}

.client-name {
  font: 400 clamp(17px, 1.7vw, 21px)/1.25 var(--sans);
  letter-spacing: -.025em;
  color: var(--tx-name);
}
.client-line {
  font: 400 14.5px/1.6 var(--sans);
  color: var(--tx-mut2);
  text-wrap: pretty;
}

/* ---------- trust ---------- */

.trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
  gap: clamp(26px, 4vw, 60px);
  align-items: start;
}
#trust .section-h { max-width: 17ch; }

.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--hair-cell);
  border: 1px solid var(--hair-cell);
  border-radius: 14px;
  overflow: hidden;
  margin: 0;
}
@media (min-width: 560px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }

.trust-cell {
  background: var(--cell);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.trust-cell dt {
  font: 500 11px/1 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ac);
  margin: 0;
}
.trust-cell dd {
  font: 400 13.5px/1.6 var(--sans);
  color: var(--tx-mut2);
  margin: 0;
  text-wrap: pretty;
}

/* ---------- close ---------- */

.close-h {
  font: 400 clamp(30px, 5.4vw, 62px)/1.05 var(--sans);
  letter-spacing: -.04em;
  color: var(--tx-hi);
  margin: 0;
  max-width: 16ch;
  text-wrap: balance;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--hair);
  background: var(--bg-alt);
}
.foot {
  padding-top: 32px;
  padding-bottom: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  align-items: center;
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-right: auto;
  font: 400 12.5px/1 var(--sans);
  color: var(--tx-dim);
}
.foot-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font: 400 12px/1 var(--mono);
  letter-spacing: .06em;
  color: var(--tx-dim3);
}
.foot-links a { transition: color .16s; }
.foot-links a:hover { color: var(--tx-mid); }

/* ---------- grid overflow guard ----------
   Grid and flex children default to min-width:auto, which is min-content — a
   single long token then pushes the track wider than its container and the
   page overflows sideways. Measured as ~29px of hidden overflow at 320px,
   invisible only because body clips it. */

.flow-card, .arm, .trust-cell, .figure, .note, .client,
.fact dd, .flagship > *, .about > *, .vera > *, .trust > * {
  min-width: 0;
}

.flow-body, .arm-body, .note-b, .underneath-v, .client-line,
.figure-l, .trust-cell dd, .fact dd, .body, .about-p, .lede {
  overflow-wrap: break-word;
}

/* ---------- large displays ----------
   The canvas capped every clamp() and held the container at 1200px, so above
   roughly 1240px the layout stopped changing: on a 1920 or 2560 monitor the
   page sat in a fixed column with a third of the screen empty. Everything at
   or below 1599px is exactly as designed; these tiers only extend it upward.
   Delete this block to return to the canvas's fixed 1200px behaviour. */

@media (min-width: 1600px) {
  :root { --maxw: 1380px; --gut: 60px; }
  .hero h1        { font-size: clamp(82px, 5.4vw, 94px); }
  .lede           { font-size: 21px; }
  .flagship h2    { font-size: clamp(50px, 3.5vw, 58px); }
  .section-h      { font-size: clamp(48px, 3.2vw, 55px); }
  .close-h        { font-size: clamp(62px, 4.2vw, 72px); }
  .figure-v       { font-size: clamp(44px, 2.9vw, 52px); }
  .arm            { min-height: 236px; }
  .band > .wrap   { padding-block: clamp(100px, 6.4vw, 124px); }
}

@media (min-width: 2000px) {
  :root { --maxw: 1520px; --gut: 72px; }
  .hero h1     { font-size: 104px; }
  .flagship h2 { font-size: 62px; }
  .section-h   { font-size: 58px; }
  .close-h     { font-size: 78px; }
  .arm         { min-height: 252px; }
}

/* ---------- motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dot { animation: none; opacity: 1; }
  * { transition-duration: .01ms !important; }
}
