/* Crease landing page. Calm, warm near-black, white as the accent; colour comes from the photos and the app. */

@font-face { font-family: "Geist"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/geist-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/geist-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/geist-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/fonts/geist-latin-400-italic.woff2") format("woff2"); }

:root {
  --bg: #0c0a09;
  --bg-2: #151311;
  --fg: #fafaf9;
  --fg-80: rgb(250 250 249 / 0.8);
  --fg-70: rgb(250 250 249 / 0.7);
  --stone: #a8a29e;
  --stone-2: #78716c;
  --line: rgb(255 255 255 / 0.1);
  --line-2: rgb(255 255 255 / 0.2);
  --glass: rgb(255 255 255 / 0.1);
  --glass-nav: rgb(28 25 23 / 0.6);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1200px;
  --r-lg: clamp(24px, 3vw, 40px);
  --r-md: clamp(16px, 2vw, 24px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 18px/1.6 "Geist", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
html, body { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
::selection { background: rgb(232 50 43 / 0.45); }

:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--fg); color: var(--bg); text-decoration: none; font-weight: 500; }
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- type ---------- */
.display, .h2 {
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.9;
  text-wrap: balance;
}
.display em, .h2 em { font-style: italic; font-weight: 400; color: var(--fg-70); letter-spacing: -0.04em; }
.display { font-size: clamp(52px, 7vw, 100px); }
.h2 { font-size: clamp(40px, 5.2vw, 72px); }
.h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.h4 { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; }
.lede, .body { color: var(--fg-80); font-size: 18px; line-height: 1.6; max-width: 34em; }
.body-sm { color: var(--stone); font-size: 15px; line-height: 1.55; }
.dim { color: var(--stone); }
.step-n { font-size: 13px; font-weight: 500; color: var(--stone); letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }

/* ---------- controls ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px;
  border-radius: 999px;
  background: var(--fg); color: #0c0a09;
  font-size: 16px; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background-color 0.15s var(--ease), transform 0.15s var(--ease);
}
.pill:hover { background: #e7e5e4; }
.pill:active { transform: scale(0.98); }
.pill-sm { min-height: 38px; padding: 0 18px; font-size: 14px; }
.text-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 4px;
  color: var(--fg); font-size: 16px; font-weight: 500; text-decoration: none;
  transition: color 0.15s var(--ease);
}
.text-link span { transition: transform 0.15s var(--ease); }
.text-link:hover { color: var(--fg-70); }
.text-link:hover span { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.actions.center { justify-content: center; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg);
}

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; justify-content: center; padding: 0; pointer-events: none; }
.nav-bar {
  pointer-events: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  width: 100%; max-width: calc(var(--max) + 2 * var(--gutter));
  margin-top: 0; padding: 20px var(--gutter);
  border: 1px solid transparent; border-radius: 0;
  transition: max-width 0.6s var(--ease), margin-top 0.6s var(--ease), padding 0.6s var(--ease), background-color 0.6s var(--ease), border-color 0.6s var(--ease), border-radius 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.nav.is-floating .nav-bar {
  max-width: 820px; margin-top: 14px; padding: 8px 8px 8px 20px;
  border-radius: 999px;
  border-color: var(--line);
  background: var(--glass-nav);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 10px 40px rgb(0 0 0 / 0.35);
}
.brand { display: inline-flex; align-items: center; min-height: 40px; border-radius: 8px; }
.brand img { width: 113px; height: auto; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 999px;
  color: var(--fg-80); font-size: 14px; font-weight: 500; text-decoration: none;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.nav-links a:hover { color: var(--fg); background: rgb(255 255 255 / 0.06); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow-x: clip;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 0 clamp(24px, 4vw, 64px);
  padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2));
}
.hero-copy { align-self: start; display: grid; gap: 28px; justify-items: start; position: relative; z-index: 2; padding-top: clamp(150px, 15vw, 210px); }
.hero-copy .chip { margin-bottom: -4px; }
.hero-copy .lede { max-width: 27em; }
.hero-stage { position: relative; height: clamp(600px, 60vw, 880px); }
.hero-photo { position: absolute; inset: 0; }
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%;
  border-radius: 0 0 0 var(--r-lg);
}
.hero-photo::after { /* soft dark lip under the nav, Floria-style */
  content: ""; position: absolute; inset: 0; border-radius: 0 0 0 var(--r-lg); pointer-events: none;
  background: linear-gradient(180deg, rgb(12 10 9 / 0.6) 0%, transparent 16%), linear-gradient(90deg, rgb(12 10 9 / 0.45) 0%, transparent 22%);
}
.hero-app {
  grid-column: 1 / -1;
  position: relative; z-index: 3;
  margin-top: calc(-1 * clamp(120px, 13vw, 210px));
  padding-left: clamp(0px, 7vw, 120px);
}
.window {
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: #161616;
  box-shadow: 0 40px 100px rgb(0 0 0 / 0.6), 0 8px 24px rgb(0 0 0 / 0.35);
}
.window img { width: 100%; }
.hero-window { position: relative; width: calc(100% + 6vw); border-radius: var(--r-md) 0 0 var(--r-md); }
.window video, .media video { display: block; width: 100%; height: auto; background: #161616; }
.hero-video { aspect-ratio: 16 / 9; object-fit: cover; }
.media { position: relative; }
.media video { height: 100%; object-fit: cover; }

/* Pause / play for looping videos (and the only way to start them when motion is reduced) */
.motion-toggle {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 0 12px 0 11px;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: rgb(12 10 9 / 0.72); color: var(--fg);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-family: inherit; font-size: 12px; font-weight: 500; line-height: 1; cursor: pointer;
  transition: background-color 0.15s var(--ease);
}
.motion-toggle:hover { background: rgb(41 37 36 / 0.9); }
.motion-toggle::before { content: ""; width: 10px; height: 10px; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.motion-toggle[data-playing]::before { clip-path: none; background: none; box-sizing: border-box; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.motion-toggle[hidden] { display: none; }

/* ---------- sections ---------- */
.section { padding: clamp(96px, 12vw, 176px) 0 0; }
.section-head { display: grid; gap: 20px; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head .body { max-width: 30em; }

.steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(48px, 5vw, 72px) clamp(20px, 3vw, 40px); counter-reset: s; }
.step { display: grid; gap: 10px; align-content: start; }
.step .media { margin-bottom: 14px; }
.step .body { font-size: 16px; color: var(--stone); max-width: 28em; }
.media {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #161616;
  aspect-ratio: 6 / 5;
}
.media img { width: 100%; height: 100%; object-fit: cover; }

.gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr) minmax(0, 0.85fr);
  grid-template-rows: auto auto;
  gap: clamp(16px, 2vw, 24px);
}
.photo-card, .tile { display: grid; gap: 14px; align-content: start; }
.photo-card.bear { grid-row: 1 / span 2; }
.photo-card picture { display: block; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5.6; }
.photo-card img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; transition: transform 1s var(--ease); }
.photo-card:hover img { transform: scale(1.02); }
.tile-note {
  display: grid; gap: 12px; align-content: end;
  aspect-ratio: 1; padding: clamp(20px, 2.4vw, 32px);
  border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--bg-2);
}
.tile img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-lg); border: 1px solid var(--line); background: #2a2a2a; }
.photo-card figcaption, .tile figcaption { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 15px; font-weight: 500; }
.photo-card figcaption .dim, .tile figcaption .dim { font-weight: 400; }

.extras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px clamp(20px, 3vw, 40px); margin-top: clamp(64px, 8vw, 112px); }
.extras li { display: grid; gap: 6px; align-content: start; padding-top: 20px; border-top: 1px solid var(--line); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(32px, 5vw, 80px); align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.split .section-head { margin-bottom: 0; }
.designers { display: grid; gap: 0; }
.designer { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 0; border-bottom: 1px solid var(--line); }
.designer:first-child { border-top: 1px solid var(--line); }
.d-name { font-size: clamp(26px, 3vw, 34px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.designer .dim { font-size: 15px; }
.window.wide { border-radius: var(--r-lg); }
.tour video { aspect-ratio: 16 / 9; }

.renders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); margin-top: clamp(16px, 2vw, 24px); }
.renders .tile img { aspect-ratio: 16 / 10; background: #e4e2df; }

/* Designs on white, straight from the app's renders */
.made { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); margin-top: clamp(16px, 2vw, 24px); }
.made .tile img { aspect-ratio: 4 / 3; object-fit: contain; background: #fff; border-color: transparent; }
.made .tile figcaption { display: grid; gap: 2px; }

/* Demos: a strip of tabs over one player */
.demos { display: grid; gap: 20px; }
.demo-tabs {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.demo-tabs button {
  min-height: 38px; padding: 0 16px;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: transparent; color: var(--fg-80);
  font-family: inherit; font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.demo-tabs button:hover { color: var(--fg); background: rgb(255 255 255 / 0.06); }
.demo-tabs button[aria-selected="true"] { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.demo-stage { position: relative; }
.demo-stage video { aspect-ratio: 16 / 9; object-fit: contain; }
.demo-caption { display: grid; gap: 6px; max-width: 46em; }
.demo-prompt { font-size: clamp(18px, 2vw, 22px); font-weight: 500; letter-spacing: -0.01em; line-height: 1.35; }

.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px clamp(32px, 5vw, 80px); align-items: center; margin-top: clamp(64px, 8vw, 112px); }
.feature .media { aspect-ratio: 1; }
.feature .media picture { display: block; height: 100%; }
.feature-copy { display: grid; gap: 14px; align-content: center; }

.needs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.needs li {
  display: grid; gap: 10px; align-content: start;
  padding: 28px; border-radius: var(--r-md);
  background: var(--bg-2); border: 1px solid var(--line);
}

.faq-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 32px clamp(32px, 5vw, 80px); align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 64px; padding: 14px 0; cursor: pointer; list-style: none;
  font-size: 18px; font-weight: 500; letter-spacing: -0.01em;
  transition: color 0.15s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 6px;
  border-right: 1.5px solid var(--stone); border-bottom: 1.5px solid var(--stone);
  transform: rotate(45deg) translateY(-3px); transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq summary:hover { color: var(--fg-80); }
.faq details p { padding: 0 32px 22px 0; color: var(--fg-80); font-size: 16px; }

/* ---------- CTA + footer ---------- */
.cta-wrap { padding: clamp(112px, 12vw, 176px) var(--gutter) 0; }
.cta {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: stretch;
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--line);
}
.cta-copy { display: grid; gap: 24px; align-content: center; justify-items: start; padding: clamp(32px, 6vw, 88px); }
.cta-mark { display: grid; place-items: center; min-height: 420px; background: #fff; }
.cta-mark video {
  width: min(78%, 420px); height: auto;
  -webkit-mask-image: radial-gradient(closest-side, #000 80%, transparent 100%); mask-image: radial-gradient(closest-side, #000 80%, transparent 100%);
}

.foot { padding: clamp(80px, 9vw, 120px) 0 40px; }
.foot-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 40px; background: linear-gradient(var(--line), var(--line)) 50% 100% / calc(100% - 2 * var(--gutter)) 1px no-repeat; }
.foot-grid img { width: 134px; height: auto; }
.foot-tag { margin-top: 14px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 24px; align-content: start; }
.foot-links a { display: inline-flex; min-height: 40px; align-items: center; color: var(--fg-80); font-size: 15px; text-decoration: none; transition: color 0.15s var(--ease); }
.foot-links a:hover { color: var(--fg); }
.foot-small { display: flex; justify-content: space-between; gap: 8px 32px; flex-wrap: wrap; padding-top: 24px; color: var(--stone-2); font-size: 13px; }

/* ---------- reveal motion ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav-links a { padding: 0 9px; }
}
@media (max-width: 959px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-left: var(--gutter); gap: 48px; }
  .hero-copy { padding-top: 120px; padding-right: var(--gutter); }
  .hero-stage { height: auto; aspect-ratio: 4 / 3.6; }
  .hero-photo img, .hero-photo::after { border-radius: var(--r-lg) 0 0 var(--r-lg); }
  .hero-app { margin-top: -120px; padding-left: 8vw; }
  .split, .faq-wrap, .cta { grid-template-columns: minmax(0, 1fr); }
  .cta-mark { min-height: 0; aspect-ratio: 4 / 3; }
  .needs, .extras, .feature { grid-template-columns: minmax(0, 1fr); }
  .made { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-card.bear { grid-column: 1 / -1; grid-row: auto; }
  .tile-note { aspect-ratio: auto; }
  .renders { grid-template-columns: minmax(0, 1fr); }
  .made { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* One scrolling row of tabs on phones */
  .demo-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
  .demo-tabs::-webkit-scrollbar { display: none; }
  .needs li { padding: 22px; }
  .designer { flex-direction: column; align-items: flex-start; gap: 6px; }
}
@media (max-width: 600px) {
  .hero-app { padding-left: 0; padding-right: var(--gutter); }
  .hero-window { width: 100%; border-radius: var(--r-md); }
}
@media (max-width: 480px) {
  body { font-size: 17px; }
  .hide-sm { display: none; }
  .hero-stage { aspect-ratio: 4 / 4.6; }
  .hero-app { margin-top: -72px; }
  .lede, .body { font-size: 17px; }
  .actions .pill { flex: 1 1 auto; }
}

/* ---------- preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .chip { background: #292524; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav.is-floating .nav-bar { background: #1c1917; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav.is-floating .nav-bar { background: #1c1917; }
}
@media (forced-colors: active) {
  .pill { border: 1px solid ButtonText; }
}
