/* Forgotten Mines — site styles */
:root {
  /* Palette drawn from the Forgotten Mines logo */
  --bg: #0c0c1a;
  --bg-2: #121326;
  --surface: #171931;
  --surface-2: #1e2140;
  --line: rgba(226, 230, 245, 0.09);
  --line-2: rgba(226, 230, 245, 0.17);
  --text: #eeeeee;
  --muted: #a3a7bd;
  --faint: #757a95;
  --ore: #19d18e;
  --ore-hi: #3fe3a6;
  --ore-deep: #0a9e74;
  --ore-ink: #04140e;
  --sand: #e39e28;
  --dune: #c0660f;
  --signal: #f03a1c;

  --font-display: 'Clash Display', 'General Sans', system-ui, sans-serif;
  --font-body: 'General Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --text-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.85rem + 0.12vw, 0.9375rem);
  --text-base: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --text-xl: clamp(1.75rem, 1.35rem + 1.6vw, 2.75rem);
  --text-2xl: clamp(2.25rem, 1.6rem + 2.6vw, 3.75rem);
  --text-hero: clamp(2.75rem, 1.6rem + 5vw, 6rem);

  --shell: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 10vw, 8.5rem);
  --radius: 14px;
  --radius-sm: 8px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
::selection { background: var(--ore); color: var(--ore-ink); }
:focus-visible { outline: 2px solid var(--ore); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--ore); color: var(--ore-ink); padding: 0.6rem 1rem; border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ore);
  margin-bottom: 1rem;
}
.lead { color: var(--muted); font-size: var(--text-lg); line-height: 1.55; max-width: 58ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 44px; padding: 0.7rem 1.25rem;
  border-radius: 999px; border: 1px solid transparent;
  font: 600 var(--text-sm)/1 var(--font-body);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ore); color: var(--ore-ink); }
.btn-primary:hover { background: var(--ore-hi); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: rgba(12, 12, 26, 0.35); }
.btn-ghost:hover { border-color: var(--ore); color: var(--ore-hi); }
.btn-lg { min-height: 52px; padding: 0.9rem 1.6rem; font-size: var(--text-base); }
.btn-sm { min-height: 38px; padding: 0.5rem 1rem; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(12, 12, 26, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-lockup { display: flex; flex-direction: column; gap: 5px; }
.brand-tag { font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ore); line-height: 1; padding-left: 1px; }
.brand-word { height: 18px; width: auto; }
.brand-sm .brand-mark { width: 28px; height: 28px; }
.brand-sm .brand-word { height: 15px; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a:not(.btn) {
  font-size: var(--text-sm); font-weight: 500; color: var(--muted); text-decoration: none;
  transition: color 0.2s;
}
.nav a:not(.btn):hover { color: var(--text); }
.nav-toggle { display: none; }

/* Hero */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: 120px; isolation: isolate; overflow: hidden;
}
.hero { background: var(--bg); }
.hero-bg { position: absolute; left: 0; right: 0; bottom: 0; height: 100%; z-index: -2; display: flex; align-items: flex-end; }
.hero-bg img { width: 100%; height: auto; min-height: 46%; max-height: 100%; object-fit: cover; object-position: 70% 100%; }
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(0deg, rgba(12,12,26,0.92) 0%, rgba(12,12,26,0.55) 22%, rgba(12,12,26,0) 45%);
}
.hero { justify-content: flex-start; }
.hero-inner { padding-top: clamp(1.5rem, 6vh, 4.5rem); padding-bottom: clamp(3rem, 7vw, 5.5rem); flex: 1; }
.hero-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--text-hero); line-height: 0.98; letter-spacing: -0.02em;
  max-width: 13ch; margin-bottom: 1.5rem;
}
.ore { color: var(--sand); }
.eyebrow-lg { font-size: var(--text-sm); letter-spacing: 0.22em; display: inline-flex; align-items: center; gap: 0.7rem; }
.eyebrow-lg::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px rgba(240, 58, 28, 0.18); }
.hero-sub { font-size: var(--text-lg); color: #cfd2e2; max-width: 50ch; line-height: 1.55; margin-bottom: 2.25rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.hero-strip {
  list-style: none; margin: 0 auto; padding-top: 1.5rem; padding-bottom: 2.25rem;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.hero-strip li { display: flex; flex-direction: column; gap: 0.2rem; }
.strip-k { font-weight: 600; font-size: var(--text-sm); }
.strip-v { font-size: var(--text-xs); color: #f3ece0; }
.strip-k { color: #fff; }

/* Sections */
.section { padding-block: var(--section); position: relative; }
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-title {
  font-family: var(--font-display); font-size: var(--text-xl); line-height: 1.08; letter-spacing: -0.01em;
  max-width: 22ch; margin-bottom: 1rem;
}

/* Products */
.product { position: relative; }
.product + .product { margin-top: clamp(4.5rem, 9vw, 7.5rem); }
.product-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.product-grid-vz { grid-template-columns: 1fr 1fr; }
.product-crypt .crypt-visual { order: -1; }
.product-crypt .product-grid { grid-template-columns: 1fr 1.1fr; }
.product-copy > p { color: var(--muted); max-width: 54ch; }
.product-copy > p + p { margin-top: 0.9rem; }
.product-title {
  font-family: var(--font-display); font-size: var(--text-2xl); line-height: 1; letter-spacing: -0.02em;
  margin: 1.1rem 0 1.1rem;
}
.product-kicker { color: var(--text) !important; font-size: var(--text-lg); font-weight: 500; line-height: 1.45; margin-bottom: 0.9rem; }
.product-cta { margin-top: 2rem; display: flex; gap: 0.75rem; flex-wrap: wrap; }

.tag-row { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.tag {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: var(--text-xs); font-weight: 500; color: var(--muted);
  padding: 0.35rem 0.75rem; border: 1px solid var(--line-2); border-radius: 999px;
}
.tag-accent { color: var(--ore-hi); border-color: rgba(25,209,142,0.45); }
.tag-muted { color: var(--faint); border-style: dashed; }

/* WTTC */
.wttc-banner {
  position: relative; height: clamp(180px, 26vw, 380px); margin-bottom: clamp(2.5rem, 5vw, 4rem); overflow: hidden;
}
.wttc-banner img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.wttc-banner::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(0deg, var(--bg) 0%, rgba(12,12,26,0) 55%), linear-gradient(180deg, var(--bg) 0%, rgba(12,12,26,0) 30%);
}
.facts { margin: 1.75rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; border-top: 1px solid var(--line); padding-top: 1.25rem; }
.facts dt { font-size: var(--text-xs); color: var(--faint); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; margin-bottom: 0.25rem; }
.facts dd { margin: 0; font-size: var(--text-sm); color: var(--text); line-height: 1.4; }

.gallery { display: flex; flex-direction: column; gap: 0.75rem; }
.gallery-main {
  margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2);
  aspect-ratio: 16 / 9; background: #05070c;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.8);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.3s var(--ease); }
.gallery-main img.is-fading { opacity: 0.25; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.thumb {
  padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; cursor: pointer;
  background: none; aspect-ratio: 16 / 9; opacity: 0.55; transition: opacity 0.2s, border-color 0.2s;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: 0.85; }
.thumb.is-active { opacity: 1; border-color: var(--ore); }

/* Vizew */
.product-vizew .shell { position: relative; }
.vizew-visual { position: relative; display: flex; justify-content: center; padding-block: 1rem; }
.vizew-glow {
  position: absolute; inset: 10% 5%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(225, 28, 36, 0.22), rgba(31, 92, 220, 0.12) 55%, transparent 75%);
  filter: blur(20px);
}
.phone {
  position: relative; width: min(290px, 70vw); aspect-ratio: 768 / 1663;
  border-radius: 40px; padding: 10px; background: #050505;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.9), inset 0 0 0 2px #1d1d1d;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 31px; }
.qr-chip {
  position: absolute; left: max(0px, calc(50% - 250px)); bottom: 14%;
  display: flex; align-items: center; gap: 0.7rem;
  background: #f7f3ec; color: #0d1b3f; padding: 0.75rem 1rem; border-radius: 12px;
  font-size: var(--text-sm); font-weight: 600; box-shadow: 0 20px 40px -18px rgba(0,0,0,0.7);
}
.vizew-mark { width: 44px; height: 44px; border-radius: 10px; background: #fff; object-fit: contain; padding: 3px; }
.checks { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.65rem; }
.checks li { position: relative; padding-left: 1.75rem; color: var(--text); font-size: var(--text-sm); }
.checks li::before {
  content: ''; position: absolute; left: 0; top: 0.42em; width: 14px; height: 9px;
  border-left: 2px solid var(--ore); border-bottom: 2px solid var(--ore); transform: rotate(-45deg);
}

/* Crypt */
.crypt-visual { margin: 0; display: flex; justify-content: center; }
.crypt-visual img { width: min(440px, 100%); height: auto; filter: drop-shadow(0 30px 50px rgba(0,0,0,0.5)); }

/* Studio */
.studio { background: var(--bg); overflow: hidden; isolation: isolate; border-block: 1px solid var(--line); }
.studio-media { position: absolute; inset: 0; z-index: -1; }
.studio-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; opacity: 0.85; }
.studio-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,12,26,0.2) 0%, rgba(12,12,26,0.55) 55%, var(--bg) 100%);
}
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pillar { background: rgba(18, 19, 38, 0.86); padding: clamp(1.5rem, 2.5vw, 2rem); backdrop-filter: blur(6px); }
.pillar-n { font-family: var(--font-display); color: var(--ore); font-size: var(--text-sm); font-weight: 500; letter-spacing: 0.08em; }
.pillar h3 { font-size: var(--text-lg); margin: 1.5rem 0 0.6rem; }
.pillar p { color: var(--muted); font-size: var(--text-sm); line-height: 1.6; }

/* Founder */
.founder { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.founder-id { position: sticky; top: 110px; }
.monogram {
  width: 76px; height: 76px; border-radius: 18px; margin-bottom: 1.75rem;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; color: var(--ore-ink);
  background: var(--ore);
}
.founder-name { margin-bottom: 0.5rem; }
.founder-role { color: var(--sand); font-weight: 500; font-size: var(--text-sm); margin-bottom: 1.5rem; }
.founder-bio { color: var(--muted); max-width: 52ch; }
.creds { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cred { display: grid; grid-template-columns: 120px 1fr; column-gap: 1.5rem; row-gap: 0.3rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.cred-k { grid-row: span 2; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.12em; color: var(--faint); font-weight: 600; padding-top: 0.3rem; }
.cred-v { font-size: var(--text-lg); font-weight: 600; line-height: 1.35; }
.cred-d { color: var(--muted); font-size: var(--text-sm); line-height: 1.55; }
.cred-feature .cred-v { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; color: var(--sand); letter-spacing: -0.01em; }

/* FAQ */
.faq-section { background: var(--bg-2); border-block: 1px solid var(--line); }
.faq-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); }
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.4rem 2.5rem 1.4rem 0; position: relative;
  font-weight: 600; font-size: var(--text-lg); line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 0.4rem; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--ore); border-bottom: 2px solid var(--ore); transform: rotate(45deg);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover { color: var(--ore-hi); }
.faq details p { color: var(--muted); padding: 0 2.5rem 1.5rem 0; max-width: 62ch; }
.faq details a { color: var(--ore-hi); }

/* Contact */
.contact-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: end; }
.contact-actions { display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start; }
.contact-mail {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(1.25rem, 0.9rem + 1.5vw, 2rem);
  text-decoration: none; color: var(--text); border-bottom: 1px solid rgba(25,209,142,0.4);
  padding-bottom: 0.25rem; transition: border-color 0.2s, color 0.2s; overflow-wrap: anywhere;
}
.contact-mail:hover { color: var(--ore-hi); border-color: var(--ore); }
.contact-links { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 2rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer-inner p { color: var(--faint); font-size: var(--text-xs); }

/* Reveal (content stays visible without JS) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
  .product-grid, .product-grid-vz, .product-crypt .product-grid, .founder, .faq-wrap, .contact-inner { grid-template-columns: 1fr; }
  .product-grid-vz .vizew-visual { order: 2; }
  .product-crypt .crypt-visual { order: 2; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .founder-id { position: static; }
  .contact-inner { align-items: start; }
}
@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; padding: 0 11px; background: none; border: 1px solid var(--line-2); border-radius: 10px; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s var(--ease); }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(12,12,26,0.97); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line); padding: 0.5rem var(--gutter) 1.5rem;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav a:not(.btn) { padding: 0.95rem 0; border-bottom: 1px solid var(--line); font-size: var(--text-base); color: var(--text); }
  .nav-cta { margin-top: 1.25rem; min-height: 48px; }
  .site-header.menu-open { background: rgba(12,12,26,0.97); }
  .hero-bg img { min-height: 34%; object-position: 72% 100%; }
  .hero-strip { grid-template-columns: 1fr; gap: 0.9rem; }
  .hero-cta .btn { flex: 1 1 auto; }
  .facts { grid-template-columns: 1fr 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .cred { grid-template-columns: 1fr; }
  .cred-k { grid-row: auto; padding-top: 0; }
  .qr-chip { left: 0; bottom: 8%; font-size: var(--text-xs); padding: 0.6rem 0.8rem; }
  .qr-chip svg { width: 28px; height: 28px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
