/* Fuhnance — fuhnance.ca */

@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  /* Matches the app's Vault palette: the 3D scene renders on #0E0D0C. */
  --bg: #0e0d0c;
  --surface: #161412;
  --line: rgba(243, 235, 221, 0.1);
  --ivory: #f3ebdd;
  --muted: #a39a8c;
  --faint: #6f675c;
  --gold: #d8ae5e;
  --gold-soft: rgba(216, 174, 94, 0.14);
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --measure: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--gold); color: var(--bg); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 4px; }

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 20;
  padding: 10px 16px; border-radius: 999px;
  background: var(--ivory); color: var(--bg); font-weight: 500; text-decoration: none;
}
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: var(--measure); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */

.eyebrow {
  margin: 0 0 20px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}
.display, .title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 350;
  letter-spacing: -0.015em;
  line-height: 1.04;
  text-wrap: balance;
}
.display { font-size: clamp(46px, 8.4vw, 112px); }
.title { font-size: clamp(36px, 5.4vw, 68px); }
.display em, .title em { font-style: italic; color: var(--gold); font-weight: 340; }
.lede {
  margin: 28px 0 0;
  max-width: 34em;
  font-size: clamp(17px, 1.5vw, 19px);
  color: var(--muted);
  text-wrap: pretty;
}

/* ---------- Header ---------- */

.site-header {
  position: absolute; inset: 0 0 auto; z-index: 10;
  padding: 24px 0;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none;
  font-family: var(--serif); font-size: 22px; letter-spacing: 0.01em;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav { display: flex; gap: clamp(16px, 3vw, 32px); font-size: 14px; }
.nav a { color: var(--muted); text-decoration: none; transition: color 0.3s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ivory); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid; place-items: center;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.hero-media {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: fade-in 2.4s var(--ease) 0.15s forwards;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 55% at 50% 52%, rgba(14, 13, 12, 0.72), rgba(14, 13, 12, 0.2) 70%, transparent),
    linear-gradient(to bottom, rgba(14, 13, 12, 0.55), transparent 24%, transparent 70%, var(--bg));
}
.hero-copy { padding-block: 120px 96px; }
.hero-copy > * { opacity: 0; animation: rise 1.4s var(--ease) forwards; }
.hero-copy > :nth-child(2) { animation-delay: 0.12s; }
.hero-copy > :nth-child(3) { animation-delay: 0.24s; }
.hero-copy > :nth-child(4) { animation-delay: 0.36s; }
.hero .lede { margin-left: auto; margin-right: auto; color: #c9bfae; }

.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 28px; margin-top: 44px; }

.button {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px;
  background: var(--gold); color: #1a140a;
  font-size: 15px; font-weight: 600; letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s;
  box-shadow: 0 0 0 0 rgba(216, 174, 94, 0);
}
.button svg { width: 18px; height: 18px; }
a.button:hover { transform: translateY(-2px); box-shadow: 0 12px 40px -12px rgba(216, 174, 94, 0.6); }
.button[aria-disabled="true"] {
  background: transparent; color: var(--ivory);
  border: 1px solid rgba(216, 174, 94, 0.45);
  cursor: default;
}
.soon {
  margin: 0;
  font-size: 13px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold);
}
.link {
  color: var(--muted); font-size: 15px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: color 0.3s;
}
.link:hover { color: var(--ivory); }
.link span { transition: transform 0.4s var(--ease); }
.link:hover span { transform: translateY(3px); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; translate: -50% 0;
  width: 1px; height: 56px;
  background: linear-gradient(var(--gold), transparent);
  opacity: 0.6;
  animation: cue 2.8s var(--ease) infinite;
}

/* ---------- Sections ---------- */

section { position: relative; overflow-x: clip; }
.section { padding: clamp(96px, 14vw, 184px) 0; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

.rule {
  height: 1px; border: 0; margin: 0;
  background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
}

/* ---------- Turntable ---------- */

.stage {
  position: relative;
  max-width: 640px;
  margin: clamp(32px, 6vw, 64px) auto 0;
  aspect-ratio: 1280 / 904;
}
/* Melt the render's edges into the page. */
.stage::after {
  content: ""; position: absolute; inset: -1px; pointer-events: none;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(14, 13, 12, 0) 62%, var(--bg) 100%);
}
.stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Features ---------- */

.features {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(48px, 8vw, 120px);
  align-items: center;
}
.feature-list { list-style: none; margin: 48px 0 0; padding: 0; }
.feature-list li { padding: 24px 0; border-top: 1px solid var(--line); }
.feature-list li:last-child { border-bottom: 1px solid var(--line); }
.feature-list h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.25; }
.feature-list p { margin: 6px 0 0; color: var(--muted); font-size: 16px; }

.device-wrap { position: relative; display: grid; place-items: center; }
.device-wrap::before {
  content: ""; position: absolute; inset: 10% -10%; z-index: -1;
  background: radial-gradient(closest-side, rgba(216, 174, 94, 0.16), transparent);
  filter: blur(20px);
}
.device {
  position: relative;
  width: min(360px, 78vw);
  aspect-ratio: 590 / 1280;
  padding: 11px;
  border-radius: 56px;
  background: linear-gradient(145deg, #3a3631, #121110 40%, #242120);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 60px 120px -40px rgba(0, 0, 0, 0.9),
    0 30px 80px -50px rgba(216, 174, 94, 0.35);
}
.device video {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 46px;
  background: #000;
}

/* ---------- Closing ---------- */

.closing { overflow: hidden; isolation: isolate; }
.closing img {
  position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover;
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(transparent, #000 35%, #000 65%, transparent);
          mask-image: linear-gradient(transparent, #000 35%, #000 65%, transparent);
}
.closing .app-icon {
  width: 96px; height: 96px; margin: 0 auto 32px; border-radius: 22px;
  box-shadow: 0 20px 60px -20px rgba(216, 174, 94, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* ---------- Footer ---------- */

.site-footer { padding: 40px 0 56px; border-top: 1px solid var(--line); font-size: 14px; color: var(--faint); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ivory); }

/* ---------- Document pages (support, privacy) ---------- */

.page-head { max-width: 720px; padding-block: clamp(150px, 20vw, 220px) clamp(40px, 6vw, 64px); }
.page-head .title { font-size: clamp(44px, 7vw, 84px); }
.page-head .lede { margin-top: 20px; }
.doc { max-width: 720px; padding-bottom: clamp(80px, 12vw, 140px); }
.doc h2 {
  margin: 64px 0 16px;
  font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3vw, 32px); line-height: 1.2;
}
.doc h2:first-child { margin-top: 0; }
.doc h3 { margin: 32px 0 8px; font-size: 17px; font-weight: 600; }
.doc p, .doc li { color: #cfc6b7; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 8px 0; }
.doc li::marker { color: var(--gold); }
.doc a { color: var(--gold); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.doc strong { color: var(--ivory); font-weight: 600; }
.doc .meta { color: var(--faint); font-size: 14px; }
.path { font-weight: 500; color: var(--ivory); white-space: nowrap; }

.card {
  margin: 0 0 56px;
  padding: clamp(28px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(216, 174, 94, 0.08), transparent 60%), var(--surface);
}
.card h2 { margin-top: 0; }
.card p { margin: 0 0 24px; }
.doc a.button { color: #1a140a; text-decoration: none; }

.summary { list-style: none; padding: 0; margin: 0; }
.summary li { position: relative; padding-left: 28px; margin: 12px 0; }
.summary li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(216, 174, 94, 0.6);
}

details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0;
  font-family: var(--serif); font-size: 21px; line-height: 1.3;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px;
  border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform 0.4s var(--ease);
}
details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
details > div { padding: 0 0 24px; }
details > div p:first-child { margin-top: 0; }

/* ---------- Reveal ---------- */

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@keyframes fade-in { to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

@media (prefers-reduced-motion: reduce) {
  .hero-media, .hero-copy > * { animation: none; opacity: 1; }
  .scroll-cue { display: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Small screens ---------- */

@media (max-width: 860px) {
  .features { grid-template-columns: 1fr; }
  .features .device-wrap { order: -1; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav { gap: 18px; }
  .brand span { display: none; }
  .stage { margin-left: -16px; margin-right: -16px; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}
