/* ==========================================================================
   Hariom Granite Industries
   Design system: see ../../DESIGN.md
   ========================================================================== */

:root {
  /* Stone neutrals (warm) */
  --ink: #1C1917;
  --ink-2: #292524;
  --ink-3: #44403C;
  --muted: #57534E;          /* body-secondary on paper: 7.3:1 */
  --muted-on-dark: #A8A29E;  /* secondary on ink: 7.9:1 */
  --paper: #F6F4F0;
  --paper-2: #EDE9E2;
  --card: #FFFFFF;
  --border: #D6D3D1;
  --border-dark: rgba(250, 250, 249, 0.14);

  /* Accent: gantry-crane ochre */
  --accent: #A16207;         /* text/button on light: 4.8:1 with white */
  --accent-hover: #854D0E;
  --accent-bright: #E3A21A;  /* accent on dark surfaces */

  --ring: #A16207;

  /* Type */
  --font-display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-body: 'Public Sans', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  /* Spacing (spacious density) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;
  --section-y: clamp(72px, 10vw, 136px);

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1240px;
  --radius: 2px;
  --header-h: 72px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 180ms;
  --dur: 600ms;

  /* Granite speckle texture for dark surfaces */
  --speckle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.6 -0.75'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
/* --scrollbar-w is set by JS so content doesn't shift when the scrollbar disappears */
html.scroll-locked { overflow: hidden; padding-right: var(--scrollbar-w, 0px); }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }
.dark :focus-visible, .site-header :focus-visible { outline-color: var(--accent-bright); }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: var(--radius);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

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

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); line-height: 1.02; }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.2; letter-spacing: -0.01em; }
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--accent); }
.dark h1 em, .dark h2 em { color: var(--accent-bright); }
p { text-wrap: pretty; }

.label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 10px;
}
.label::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.dark .label { color: var(--accent-bright); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 54ch; }
.dark .lead { color: var(--muted-on-dark); }

/* ---------- Surfaces ---------- */
.dark { background-color: var(--ink); color: #FAFAF9; position: relative; isolation: isolate; }
.dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--speckle); opacity: 0.07;
}
.section { padding-block: var(--section-y); }
.section--tint { background: var(--paper-2); }
.section-head { display: grid; gap: var(--space-4); margin-bottom: clamp(40px, 6vw, 72px); max-width: 760px; }
.section-head--split {
  max-width: none; grid-template-columns: 1fr; align-items: end;
}
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1.1fr 0.9fr; gap: var(--space-7); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  border-radius: var(--radius); border: 1px solid transparent;
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform var(--dur-fast) ease; }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { border-color: var(--border); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }
.dark .btn--ghost { border-color: rgba(250,250,249,0.3); color: #FAFAF9; }
.dark .btn--ghost:hover { border-color: #FAFAF9; background: rgba(250,250,249,0.06); }
.dark .btn--primary { background: var(--accent-bright); color: var(--ink); }
.dark .btn--primary:hover { background: #F2B53A; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(28, 25, 23, 0.92);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  color: #FAFAF9;
  border-bottom: 1px solid var(--border-dark);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 28px; height: 28px; flex: none; }
.brand-name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1; }
.brand-name span { display: block; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-on-dark); margin-top: 5px; }

.nav-links { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); list-style: none; padding: 0; }
.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: #D6D3D1; text-decoration: none;
  padding-block: 8px; position: relative; transition: color var(--dur-fast) ease;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--accent-bright);
  transform: scaleX(0); transform-origin: left; transition: transform 240ms var(--ease-out);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #FAFAF9; }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.pill {
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 2px 6px; border: 1px solid var(--accent-bright); color: var(--accent-bright); border-radius: 999px;
  margin-left: 6px; vertical-align: 2px;
}
.nav-actions { display: flex; align-items: center; gap: var(--space-3); }
.nav-cta { min-height: 42px; padding: 8px 18px; font-size: 0.875rem; background: var(--accent-bright); color: var(--ink); }
.nav-cta:hover { background: #F2B53A; }

.nav-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--border-dark); border-radius: var(--radius); cursor: pointer; color: #FAFAF9;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; }
  .nav-cta { display: none; }
  .nav-menu {
    position: fixed; inset: var(--header-h) 0 auto 0; background: var(--ink);
    border-bottom: 1px solid var(--border-dark);
    padding: var(--space-3) var(--gutter) var(--space-5);
    display: none;
  }
  .nav-menu.is-open { display: block; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links a { display: block; padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid var(--border-dark); }
  .nav-links a::after { display: none; }
  .nav-menu .btn { width: 100%; margin-top: var(--space-4); display: flex; background: var(--accent-bright); color: var(--ink); }
}
@media (min-width: 900px) {
  .nav-menu { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); }
  .nav-menu .btn { display: none; }
}

/* ---------- Hero (home) ---------- */
.hero { padding-block: clamp(48px, 7vw, 104px) 0; overflow: hidden; }
.hero-grid { display: grid; gap: clamp(40px, 5vw, 72px); align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; } }
.hero-copy { display: grid; gap: var(--space-5); justify-items: start; }
.hero-copy .lead { max-width: 48ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

.hero-visual { position: relative; padding-bottom: 56px; padding-left: clamp(0px, 6vw, 72px); }
.hero-visual .slab { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--ink-2); }
.hero-visual .slab img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.hero-visual .block {
  position: absolute; left: 0; bottom: 0; width: 52%;
  aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius);
  border: 6px solid var(--ink); box-shadow: 0 24px 48px rgba(0,0,0,0.45);
}
.hero-visual .block img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 60%; }
.tag {
  position: absolute; display: inline-flex; gap: 8px; align-items: baseline;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  background: rgba(28,25,23,0.82); color: #FAFAF9; padding: 6px 10px; border-radius: var(--radius);
}
.tag b { color: var(--accent-bright); font-weight: 500; }
.slab .tag { top: 14px; right: 14px; }
.block .tag { top: 10px; left: 10px; }

.spec-strip {
  display: grid; grid-template-columns: repeat(2, 1fr);
  margin-top: clamp(56px, 8vw, 104px);
  border-top: 1px solid var(--border-dark);
}
.spec-strip > div { padding: var(--space-5) var(--space-4) var(--space-5) 0; border-bottom: 1px solid var(--border-dark); }
.spec-strip > div:nth-child(odd) { border-right: 1px solid var(--border-dark); }
.spec-strip > div:nth-child(even) { padding-left: var(--space-4); }
@media (min-width: 900px) {
  .spec-strip { grid-template-columns: repeat(4, 1fr); }
  .spec-strip > div { border-bottom: 0; border-right: 1px solid var(--border-dark); padding-left: var(--space-5); }
  .spec-strip > div:first-child { padding-left: 0; }
  .spec-strip > div:last-child { border-right: 0; }
}
.spec-strip dt { font-family: var(--font-display); font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1; letter-spacing: -0.02em; }
.spec-strip dd { margin-top: 10px; font-size: 0.875rem; color: var(--muted-on-dark); max-width: 22ch; }

/* ---------- Stone ---------- */
.stone-grid { display: grid; gap: clamp(40px, 6vw, 88px); align-items: start; }
@media (min-width: 960px) { .stone-grid { grid-template-columns: 0.95fr 1.05fr; } }
.spec-sheet { border-top: 1px solid var(--ink); margin-top: var(--space-6); }
.spec-sheet div {
  display: grid; grid-template-columns: minmax(110px, 0.4fr) 1fr; gap: var(--space-4);
  padding: 18px 0; border-bottom: 1px solid var(--border);
}
.spec-sheet dt { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.spec-sheet dd { font-size: 1rem; }

.stone-media { display: grid; grid-template-columns: 1.25fr 1fr; gap: var(--space-3); }
.stone-media figure { margin: 0; }
.stone-media .frame { overflow: hidden; border-radius: var(--radius); background: var(--ink-2); }
.stone-media .tall .frame { aspect-ratio: 4 / 5; }
.stone-media .tall img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; transform: scale(1.4); transform-origin: 50% 42%; }
.stone-media .stack { display: grid; gap: var(--space-3); align-content: start; margin-top: clamp(32px, 8vw, 96px); }
.stone-media .detail .frame { aspect-ratio: 1; }
.stone-media .detail img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; transform: scale(2.4); transform-origin: 50% 62%; }
figcaption { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 10px; line-height: 1.5; }
.swatch-note { border: 1px solid var(--border); background: var(--card); padding: var(--space-4); border-radius: var(--radius); }
.swatch-note p { font-size: 0.925rem; color: var(--muted); }
.swatch-note strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; color: var(--ink); margin-bottom: 6px; letter-spacing: -0.01em; }

/* ---------- Story: block to container ---------- */
.story-grid { display: grid; gap: var(--space-6); }
@media (min-width: 960px) {
  .story-grid { grid-template-columns: 0.8fr 1.2fr; gap: clamp(48px, 7vw, 112px); }
  .story-aside { position: sticky; top: calc(var(--header-h) + 48px); align-self: start; }
}
.story-aside { display: grid; gap: var(--space-4); }
.story-progress { margin-top: var(--space-5); position: relative; display: none; }
.story-progress ol { list-style: none; padding: 0; }
@media (min-width: 960px) { .story-progress { display: block; } }
.story-progress::before, .story-progress .bar {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--border-dark);
}
.story-progress .bar { background: var(--accent-bright); transform-origin: top; transform: scaleY(var(--p, 0)); }
.story-progress li a {
  display: grid; grid-template-columns: 40px 1fr; gap: 8px; padding: 12px 0 12px 20px;
  text-decoration: none; color: var(--muted-on-dark); transition: color var(--dur-fast) ease;
}
.story-progress li a:hover { color: #FAFAF9; }
.story-progress li a span:first-child { font-family: var(--font-mono); font-size: 0.75rem; padding-top: 3px; }
.story-progress li.is-active a { color: #FAFAF9; }
.story-progress li.is-active a span:first-child { color: var(--accent-bright); }

.chapters { display: grid; gap: clamp(64px, 9vw, 128px); }
.chapter { display: grid; gap: var(--space-4); scroll-margin-top: calc(var(--header-h) + 32px); }
.chapter .frame { aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius); background: var(--ink-2); }
.chapter .frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.chapter:hover .frame img { transform: scale(1.03); }
.chapter-head { display: grid; grid-template-columns: auto 1fr; gap: var(--space-4); align-items: baseline; padding-top: var(--space-2); }
.chapter-num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent-bright); letter-spacing: 0.1em; }
.chapter p { color: var(--muted-on-dark); max-width: 56ch; grid-column: 2; }
.chapter h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }

/* ---------- Process ---------- */
.steps { list-style: none; padding: 0; display: grid; gap: 0; counter-reset: step; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { padding: var(--space-5) var(--space-4) var(--space-5) 0; border-top: 1px solid var(--ink); position: relative; }
@media (min-width: 720px) { .step { padding-right: var(--space-5); } }
.step-num {
  font-family: var(--font-display); font-size: 3.5rem; line-height: 1; color: var(--accent); font-weight: 400; font-style: italic;
  display: block; margin-bottom: var(--space-4);
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 0.95rem; }
.step-icon { position: absolute; top: var(--space-5); right: var(--space-5); width: 28px; height: 28px; color: var(--ink-3); }

/* ---------- Exports callout ---------- */
.callout { position: relative; min-height: 440px; display: grid; align-items: end; overflow: hidden; color: #FAFAF9; }
.callout-bg { position: absolute; inset: 0; z-index: -2; }
.callout-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.callout::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(28,25,23,0.94) 0%, rgba(28,25,23,0.82) 45%, rgba(28,25,23,0.35) 100%);
}
.callout { isolation: isolate; }
.callout-inner { padding-block: clamp(56px, 8vw, 104px); display: grid; gap: var(--space-4); justify-items: start; max-width: 640px; }
.callout .lead { color: #D6D3D1; }

/* ---------- Facility gallery ---------- */
.gallery {
  display: grid; gap: var(--space-3);
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 180px;
}
@media (min-width: 900px) {
  .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; }
}
.gallery .g-wide { grid-column: span 2; }
.gallery .g-big { grid-column: span 2; grid-row: span 2; }
.gallery-item {
  position: relative; overflow: hidden; border-radius: var(--radius); background: var(--ink-2);
  border: 0; padding: 0; cursor: zoom-in; display: block; width: 100%; height: 100%; text-align: left;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 14px 12px; color: #FAFAF9;
  background: linear-gradient(to top, rgba(28,25,23,0.85), rgba(28,25,23,0));
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  display: flex; justify-content: space-between; gap: 8px;
}
.gallery-item .cap svg { width: 16px; height: 16px; flex: none; opacity: 0.8; }

/* Full-viewport dialog; the image alone is centred, the caption hangs below it */
.lightbox {
  margin: 0; inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  border: 0; padding: 0; background: transparent; overflow: hidden;
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(12,10,9,0.92); }
.lightbox figure { position: relative; margin: 0; }
.lightbox img {
  width: auto; height: auto; border-radius: var(--radius);
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 160px); max-height: calc(100dvh - 160px);
}
.lightbox figcaption {
  position: absolute; top: 100%; left: 0; right: 0; margin-top: 14px;
  color: #E7E5E4; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; text-align: center;
}
.lightbox-close {
  position: fixed; top: 16px; right: 16px; z-index: 1; width: 44px; height: 44px; border-radius: var(--radius);
  background: rgba(250,250,249,0.1); border: 1px solid rgba(250,250,249,0.25); color: #FAFAF9; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.lightbox-close:hover { background: rgba(250,250,249,0.2); }
.lightbox-close svg { width: 20px; height: 20px; }

/* ---------- About ---------- */
.about-grid { display: grid; gap: clamp(40px, 6vw, 88px); align-items: center; }
@media (min-width: 960px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.about-media { position: relative; }
.about-media .frame { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-copy { display: grid; gap: var(--space-4); }
.about-copy p { color: var(--muted); max-width: 54ch; }
.pullquote {
  margin: var(--space-3) 0 0; padding: var(--space-4) 0 0 var(--space-5); border-left: 2px solid var(--accent);
  font-family: var(--font-display); font-style: italic; font-size: clamp(1.3rem, 2vw, 1.65rem); line-height: 1.35; letter-spacing: -0.01em; color: var(--ink);
}

/* ---------- Contact / forms ---------- */
.contact-grid { display: grid; gap: clamp(40px, 6vw, 96px); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; } }
.contact-copy { display: grid; gap: var(--space-4); align-content: start; }
.facts { list-style: none; padding: 0; margin-top: var(--space-4); border-top: 1px solid var(--border-dark); }
.facts li { display: grid; grid-template-columns: 24px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border-dark); }
.facts svg { width: 20px; height: 20px; color: var(--accent-bright); margin-top: 2px; }
.facts b { display: block; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-on-dark); font-weight: 500; margin-bottom: 2px; }

.map {
  margin-top: var(--space-3); aspect-ratio: 16 / 10; overflow: hidden;
  border: 1px solid var(--border-dark); border-radius: var(--radius); background: var(--ink-2);
}
.map iframe {
  display: block; width: 100%; height: 100%; border: 0;
  filter: grayscale(1) contrast(1.05) brightness(0.92); transition: filter 300ms ease;
}
.map:hover iframe, .map:focus-within iframe { filter: none; }
.map-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-bright); text-decoration: none;
}
.map-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.map-link svg { width: 16px; height: 16px; }

.form { display: grid; gap: var(--space-4); background: var(--ink-2); padding: clamp(24px, 4vw, 48px); border: 1px solid var(--border-dark); border-radius: var(--radius); }
.form-row { display: grid; gap: var(--space-4); }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-size: 0.875rem; font-weight: 500; color: #E7E5E4; }
.field .req { color: var(--accent-bright); }
.field .hint { font-size: 0.8rem; color: var(--muted-on-dark); }
.input {
  width: 100%; min-height: 48px; padding: 12px 14px;
  background: rgba(250,250,249,0.04); border: 1px solid rgba(250,250,249,0.22); border-radius: var(--radius);
  color: #FAFAF9; font-size: 1rem;
  transition: border-color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.input::placeholder { color: #8A847F; }
.input:hover { border-color: rgba(250,250,249,0.4); }
.input:focus { outline: none; border-color: var(--accent-bright); background: rgba(250,250,249,0.07); box-shadow: 0 0 0 3px rgba(227,162,26,0.25); }
textarea.input { min-height: 120px; resize: vertical; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23A8A29E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
select.input option { color: var(--ink); }
.field.has-error .input { border-color: #F87171; }
.error-msg { font-size: 0.82rem; color: #FCA5A5; display: none; align-items: center; gap: 6px; }
.field.has-error .error-msg { display: flex; }
.error-msg svg { width: 14px; height: 14px; flex: none; }

fieldset.field { border: 0; padding: 0; }
.choice-group { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px;
  border: 1px solid rgba(250,250,249,0.22); border-radius: 999px; font-size: 0.9rem; cursor: pointer;
  transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
.choice input:hover + span { border-color: rgba(250,250,249,0.45); }
.choice input:checked + span { background: var(--accent-bright); border-color: var(--accent-bright); color: var(--ink); font-weight: 600; }
.choice input:focus-visible + span { outline: 2px solid var(--accent-bright); outline-offset: 3px; }

/* Reserve the widget's height (78px) so the form doesn't jump when it loads */
.h-captcha { min-height: 78px; }
.form-error {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px;
  border: 1px solid #F87171; border-radius: var(--radius); background: rgba(248,113,113,0.08);
  color: #FCA5A5; font-size: 0.9rem;
}
.form-error[hidden] { display: none; }
.form-error svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); }
.form-note { font-size: 0.8rem; color: var(--muted-on-dark); }
.form .btn[disabled] { opacity: 0.7; cursor: progress; }
.form-success {
  display: none; gap: var(--space-3); padding: var(--space-5); border: 1px solid var(--accent-bright); border-radius: var(--radius);
  background: rgba(227,162,26,0.08);
}
.form-success.is-visible { display: grid; }
.form-success h3 { color: #FAFAF9; }
.form-success p { color: #D6D3D1; }

/* ---------- Footer ---------- */
.site-footer { background: #0C0A09; color: #D6D3D1; padding-block: var(--space-7) var(--space-5); }
.footer-grid { display: grid; gap: var(--space-6); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-grid h2 { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-on-dark); margin-bottom: var(--space-3); }
.footer-grid ul { list-style: none; padding: 0; display: grid; gap: 6px; }
.footer-grid a { text-decoration: none; color: #E7E5E4; display: inline-block; padding-block: 4px; }
.footer-grid a:hover { color: var(--accent-bright); }
.footer-grid address { font-style: normal; font-size: 0.925rem; line-height: 1.7; color: #A8A29E; }
.footer-brand p { color: #A8A29E; max-width: 40ch; margin-top: var(--space-3); font-size: 0.925rem; }
.footer-base { margin-top: var(--space-7); padding-top: var(--space-4); border-top: 1px solid var(--border-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); font-size: 0.8rem; color: #8A847F; }

/* ---------- Exports page ---------- */
.status-bar { background: var(--accent-bright); color: var(--ink); font-size: 0.85rem; font-weight: 500; }
.status-bar .wrap { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; text-align: center; padding-block: 8px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); flex: none; position: relative; }
.status-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--ink); animation: pulse 2s ease-out infinite; }
@keyframes pulse { from { transform: scale(0.6); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

.x-hero { position: relative; overflow: hidden; isolation: isolate; text-align: center; }
.x-hero-bg { position: absolute; inset: 0; z-index: -2; }
.x-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.x-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(28,25,23,0.82) 0%, rgba(28,25,23,0.9) 60%, var(--ink) 100%); }
.x-hero-inner { padding-block: clamp(80px, 12vw, 168px) clamp(72px, 10vw, 136px); display: grid; gap: var(--space-5); justify-items: center; max-width: 920px; margin-inline: auto; }
.x-hero .label::after { content: ""; width: 24px; height: 1px; background: currentColor; }
.x-hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); }
.x-hero .lead { margin-inline: auto; color: #D6D3D1; }
.x-hero .hero-actions { justify-content: center; }

.why-grid { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); }
@media (min-width: 720px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
.why-card { background: var(--card); padding: clamp(28px, 4vw, 48px); display: grid; gap: var(--space-3); align-content: start; }
.why-card .icon { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: var(--radius); color: var(--accent); margin-bottom: var(--space-2); }
.why-card .icon svg { width: 22px; height: 22px; }
.why-card p { color: var(--muted); }

.markets { display: grid; gap: var(--space-3); grid-template-columns: 1fr; }
@media (min-width: 640px) { .markets { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .markets { grid-template-columns: repeat(3, 1fr); } }
.market { border-top: 1px solid var(--ink); padding: var(--space-4) 0 var(--space-3); display: grid; grid-template-columns: auto 1fr; gap: 6px var(--space-4); }
.market-idx { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent); padding-top: 6px; grid-row: span 2; }
.market h3 { font-size: 1.35rem; }
.market p { color: var(--muted); font-size: 0.925rem; }

.terms { border-top: 1px solid var(--ink); }
.term { display: grid; gap: var(--space-2) var(--space-5); padding: var(--space-4) 0; border-bottom: 1px solid var(--border); }
@media (min-width: 760px) { .term { grid-template-columns: 220px 1fr; } }
.term h3 { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; padding-top: 4px; }
.term p { color: var(--muted); max-width: 64ch; }
.term abbr { text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; }

.timeline { list-style: none; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 2px; background: var(--border-dark); }
.t-item { position: relative; display: grid; grid-template-columns: 32px 1fr; gap: var(--space-4); padding-bottom: var(--space-6); }
.t-item:last-child { padding-bottom: 0; }
.t-marker { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); border: 2px solid var(--muted-on-dark); position: relative; z-index: 1; }
.t-marker svg { width: 16px; height: 16px; }
.t-item.done .t-marker { background: var(--accent-bright); border-color: var(--accent-bright); color: var(--ink); }
.t-item.progress .t-marker { border-color: var(--accent-bright); color: var(--accent-bright); }
.t-item.upcoming .t-marker { color: var(--muted-on-dark); }
.t-status { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-on-dark); }
.t-item.done .t-status, .t-item.progress .t-status { color: var(--accent-bright); }
.t-body { display: grid; gap: 6px; padding-top: 4px; }
.t-body p { color: var(--muted-on-dark); max-width: 56ch; }

.two-col { display: grid; gap: clamp(40px, 6vw, 96px); }
@media (min-width: 960px) { .two-col { grid-template-columns: 0.8fr 1.2fr; } .two-col .sticky { position: sticky; top: calc(var(--header-h) + 48px); align-self: start; } }

/* ---------- Reveal motion (JS-enhanced; content visible without JS) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .hero-visual .slab { clip-path: inset(100% 0 0 0); transition: clip-path 1.1s var(--ease-out) 0.15s; }
.js .hero-visual .block { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease-out) 0.7s, transform 0.8s var(--ease-out) 0.7s; }
.js .is-loaded .hero-visual .slab { clip-path: inset(0 0 0 0); }
.js .is-loaded .hero-visual .block { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .hero-visual .slab { clip-path: none; }
  .js .hero-visual .block { opacity: 1; transform: none; }
}
