/* fountainheads — landing v1 */

:root {
  --graphite: #0B0B0C;
  --ivory: #F6F4ED;
  --cobalt: #2F5BFF;
  --sand: #D7C9BB;

  --ink-2: rgba(11, 11, 12, .68);
  --ink-3: rgba(11, 11, 12, .46);
  --line: rgba(11, 11, 12, .14);
  --light-2: rgba(246, 244, 237, .72);
  --light-3: rgba(246, 244, 237, .46);
  --line-dark: rgba(246, 244, 237, .15);

  --serif: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(16px, 4.5vw, 64px);
  --maxw: 1280px;
  --nav-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --grain-light: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .04  0 0 0 0 .04  0 0 0 0 .05  .75 0 0 0 -.3'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --grain-dark: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .96  0 0 0 0 .95  0 0 0 0 .93  .75 0 0 0 -.3'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
}

body {
  background: var(--ivory);
  color: var(--graphite);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, canvas { display: block; }
a { color: inherit; }
ul, ol { list-style: none; }
h1, h2, h3 { font-weight: inherit; }
::selection { background: var(--cobalt); color: var(--ivory); }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.wrap {
  width: min(100% - 2 * var(--gutter), var(--maxw));
  margin-inline: auto;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ivory); color: var(--graphite);
  padding: 10px 14px; font-size: 13px; text-decoration: none;
}
.skip:focus { top: 12px; }

.label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .3em;
  text-transform: uppercase;
}

/* Paper grain */
.grain { position: relative; isolation: isolate; }
.grain::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  pointer-events: none;
  background-image: var(--grain-light);
  background-size: 220px 220px;
  opacity: .5;
}
.grain--dark::after { background-image: var(--grain-dark); opacity: .35; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 42px; padding: 0 18px;
  border-radius: 3px;
  font: 500 13px/1 var(--sans);
  letter-spacing: .03em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.btn--light { background: var(--ivory); color: var(--graphite); }
.btn--light:hover { background: #fff; }
.btn--dark { background: var(--graphite); color: var(--ivory); height: 52px; padding: 0 26px; font-size: 14px; }
.btn--dark:hover { background: var(--cobalt); }
.btn .arr { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

/* Brand lockup */
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  color: inherit; text-decoration: none;
}
.brand svg { width: 31px; height: 28px; fill: currentColor; flex: none; }
.brand span {
  font-family: var(--serif);
  font-weight: 360;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -.035em;
  transform: translateY(-1px);
}

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: var(--ivory);
  border-bottom: 1px solid transparent;
  transition: background-color .35s var(--ease), border-color .35s var(--ease);
}
.nav.is-solid {
  background: rgba(11, 11, 12, .78);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line-dark);
}
.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--nav-h);
  transition: height .35s var(--ease);
}
.nav.is-solid .nav-inner { height: 64px; }
.nav .brand { justify-self: start; }
.nav-links { display: flex; gap: clamp(28px, 3.6vw, 52px); }
.nav-links a {
  font-size: 13px; letter-spacing: .03em;
  color: var(--light-2); text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover { color: var(--ivory); }
.nav-cta { justify-self: end; grid-column: 3; }

/* Hero */
.hero {
  position: relative;
  height: 100vh; height: 100svh;
  min-height: 640px; max-height: 1080px;
  background: var(--graphite);
  color: var(--ivory);
  overflow: hidden;
  display: flex; align-items: flex-end;
}
.hero-canvas, .hero-fx { position: absolute; inset: 0; width: 100%; height: 100%; }
.js .hero-canvas { opacity: 0; transition: opacity 1.6s ease; }
.js .hero-canvas.is-ready { opacity: 1; }
.hero-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(11, 11, 12, .9) 0%, rgba(11, 11, 12, .55) 34%, rgba(11, 11, 12, 0) 58%);
}
.hero-inner { position: relative; z-index: 2; padding-bottom: clamp(56px, 11vh, 128px); }
.hero-kicker { color: var(--light-2); }
.hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.75rem, 5.7vw, 5.6rem);
  line-height: 1;
  letter-spacing: -.028em;
  margin: 22px 0 28px;
}
.hero-sub {
  max-width: 31em;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.7;
  letter-spacing: .02em;
  color: var(--light-2);
}
.explore {
  display: inline-flex; align-items: center; gap: 18px;
  margin-top: 40px;
  font-size: 14px; letter-spacing: .05em;
  text-decoration: none;
}
.explore .ring {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border: 1px solid rgba(246, 244, 237, .55);
  border-radius: 50%;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.explore .ring svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.explore:hover .ring { background: var(--ivory); color: var(--graphite); border-color: var(--ivory); }
.explore:hover .ring svg { transform: translateX(2px); }

.js .hero-inner > * { opacity: 0; transform: translateY(14px); animation: rise 1.1s var(--ease) forwards; }
.js .hero-inner > :nth-child(1) { animation-delay: .15s; }
.js .hero-inner > :nth-child(2) { animation-delay: .25s; }
.js .hero-inner > :nth-child(3) { animation-delay: .4s; }
.js .hero-inner > :nth-child(4) { animation-delay: .55s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Sections */
.section { padding-block: clamp(96px, 12vw, 176px); }
.section-head {
  display: flex; align-items: center; gap: 20px;
  margin-bottom: clamp(40px, 6vw, 88px);
  color: var(--ink-2);
}
.section-head .rule { flex: 1; height: 1px; background: var(--line); }

.h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.3rem, 4.6vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -.026em;
}

/* Premise */
.statement {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.75rem, 3.5vw, 3.2rem);
  line-height: 1.14;
  letter-spacing: -.02em;
  max-width: 21em;
  text-wrap: pretty;
}
.statement em { font-style: italic; color: var(--cobalt); }
.traits {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 3.5vw, 56px);
  margin-top: clamp(64px, 8vw, 120px);
}
.trait { border-top: 1px solid var(--line); padding-top: 22px; }
.trait h3 { font: 500 11px/1.4 var(--sans); letter-spacing: .3em; text-transform: uppercase; margin-bottom: 14px; }
.trait p { color: var(--ink-2); font-size: 15.5px; max-width: 30em; }

/* Worlds */
.worlds { padding-top: 0; }
.worlds-top {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 48px; align-items: end;
  margin-bottom: clamp(40px, 5.5vw, 80px);
}
.worlds-top p { color: var(--ink-2); max-width: 28em; justify-self: end; font-size: 16px; }
.world-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(48px, 5vw, 72px) clamp(20px, 2.4vw, 32px);
}
.world { display: flex; flex-direction: column; }
.world-viz {
  position: relative;
  aspect-ratio: 16 / 10;
  background-color: var(--graphite);
  background-image: radial-gradient(circle at 1px 1px, rgba(246, 244, 237, .085) 1px, transparent 1.3px);
  background-size: 18px 18px;
  background-position: 9px 9px;
  overflow: hidden;
  color: var(--light-3);
}
.world-viz canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.viz-tag, .viz-col, .viz-legend {
  position: absolute;
  font: 500 10px/1 var(--sans);
  letter-spacing: .26em;
  text-transform: uppercase;
  pointer-events: none;
}
.viz-tag { top: 18px; left: 18px; }
.viz-col { bottom: 16px; transform: translateX(-50%); }
.viz-legend { top: 18px; right: 18px; display: flex; gap: 14px; }
.viz-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 6px; height: 6px; display: inline-block; }
.sw--cobalt { background: var(--cobalt); }
.sw--ivory { background: var(--ivory); border-radius: 50%; }
.sw--sand { border: 1px solid var(--sand); border-radius: 50%; }

.world-body {
  display: grid; grid-template-columns: 44px 1fr;
  padding-top: 28px;
}
.world-num { font: 500 11px/1 var(--sans); letter-spacing: .24em; color: var(--ink-3); padding-top: 12px; }
.world h3 {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(1.65rem, 2.3vw, 2.15rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 12px;
}
.world p { color: var(--ink-2); font-size: 15.5px; max-width: 32em; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tags li {
  font: 500 10px/1 var(--sans);
  letter-spacing: .22em; text-transform: uppercase;
  padding: 8px 10px 7px;
  border: 1px solid var(--line);
  color: var(--ink-2);
}

/* Approach */
.approach { background: var(--graphite); color: var(--ivory); }
.approach .section-head { color: var(--light-2); }
.approach .section-head .rule { background: var(--line-dark); }
.approach .h2 { max-width: 13em; }
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 3.5vw, 56px);
  margin-top: clamp(64px, 8vw, 120px);
  border-top: 1px solid var(--line-dark);
}
.step { position: relative; padding-top: 36px; }
.step::before {
  content: "";
  position: absolute; top: -4px; left: 0;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ivory);
}
.step:last-child::before {
  background: var(--cobalt);
  box-shadow: 0 0 0 5px rgba(47, 91, 255, .18), 0 0 20px rgba(47, 91, 255, .8);
}
.step .label { color: var(--light-3); }
.step h3 {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(1.65rem, 2.4vw, 2.2rem);
  letter-spacing: -.02em;
  line-height: 1.1;
  margin: 14px 0 14px;
}
.step p { color: var(--light-2); font-size: 15.5px; max-width: 28em; }

/* Contact + poster */
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(48px, 7vw, 112px);
  align-items: center;
}
.poster {
  position: relative;
  aspect-ratio: 4 / 5.4;
  background: var(--ivory);
  overflow: hidden;
  container-type: inline-size;
  box-shadow: 0 0 0 1px var(--line), 0 30px 60px -40px rgba(11, 11, 12, .35);
}
.poster canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.poster-copy { position: absolute; inset: 0; padding: 12cqw 8cqw; pointer-events: none; }
.poster-copy > span { display: block; }
.poster-word {
  font-family: var(--serif);
  font-weight: 360;
  font-size: 13.4cqw;
  line-height: .9;
  letter-spacing: -.045em;
}
.poster .label { font-size: max(8px, 1.85cqw); letter-spacing: .36em; margin-top: 3.6cqw; }
.poster-dash { width: 5.5cqw; height: 1px; background: var(--graphite); margin: 7cqw 0 9cqw; }
.poster-line {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 4.4cqw;
  line-height: 1.18;
  margin-left: 3cqw;
}
.contact-copy .h2 { margin-bottom: 28px; }
.contact-copy p { color: var(--ink-2); max-width: 30em; font-size: 16.5px; }
.contact-actions { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding-block: 40px 44px; }
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "brand tag links" "copy copy copy";
  align-items: center;
  gap: 28px 32px;
}
.footer .brand { grid-area: brand; }
.footer .brand svg { width: 26px; height: 24px; }
.footer .brand span { font-size: 21px; }
.footer-tag { grid-area: tag; color: var(--ink-3); }
.footer-links { grid-area: links; display: flex; gap: 28px; }
.footer-links a { font-size: 13px; color: var(--ink-2); text-decoration: none; }
.footer-links a:hover { color: var(--graphite); }
.footer-copy { grid-area: copy; font-size: 12px; color: var(--ink-3); letter-spacing: .03em; }

/* Scroll reveal */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 980px) {
  .worlds-top { grid-template-columns: 1fr; gap: 24px; }
  .worlds-top p { justify-self: start; }
  .contact-grid { grid-template-columns: 1fr; }
  .poster { max-width: 560px; }
}

@media (max-width: 859px) {
  :root { --nav-h: 68px; }
  .nav-links { display: none; }
  .nav-cta { height: 38px; padding: 0 14px; font-size: 12.5px; }
  .brand span { font-size: 22px; }

  .hero { height: auto; min-height: 100svh; max-height: none; align-items: flex-start; }
  .hero-inner { padding-top: calc(var(--nav-h) + clamp(40px, 9vh, 88px)); padding-bottom: 60vw; }
  .hero-scrim { background: linear-gradient(180deg, rgba(11, 11, 12, .82) 0%, rgba(11, 11, 12, .5) 50%, rgba(11, 11, 12, 0) 72%); }

  .world-grid { grid-template-columns: 1fr; }
  .traits, .steps { grid-template-columns: 1fr; }
  .steps { border-top: 0; gap: 44px; }
  .step { border-top: 1px solid var(--line-dark); }
}

@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; grid-template-areas: "brand" "tag" "links" "copy"; gap: 18px; }
  .world-body { grid-template-columns: 34px 1fr; }
  .viz-legend { gap: 10px; letter-spacing: .18em; }
  .viz-tag { top: 14px; left: 14px; }
  .viz-legend { top: auto; right: auto; bottom: 14px; left: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal], .js .hero-inner > * { opacity: 1; transform: none; transition: none; animation: none; }
  .js .hero-canvas { transition: none; }
}
