/* JavaHeat — global styles (vanilla CSS, paired with Tailwind CDN) */
:root {
  --font-serif: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Outfit", "Helvetica Neue", system-ui, sans-serif;
  --background: #fcfcfc;
  --foreground: #0a0a0a;
  --muted: #f5f5f5;
  --muted-foreground: #616161;
  --border: #e6e6e6;
  --secondary: #f2f2f2;
  --destructive: #b41c1c;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--background);
  color: var(--foreground);
  overflow-x: hidden;
}
::selection { background: #0a0a0a; color: #fdfdfd; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.font-serif { font-family: var(--font-serif); }
.font-sans  { font-family: var(--font-sans); }
.tracking-luxe { letter-spacing: 0.22em; }
.text-balance  { text-wrap: balance; }

/* ---------- Layout ---------- */
.container-x {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) {
  .container-x { padding: 0 48px; }
}
.section { padding: 96px 0; }
@media (min-width: 768px) { .section { padding: 160px 0; } }
.section-tight { padding: 80px 0; }
@media (min-width: 768px) { .section-tight { padding: 128px 0; } }

/* ---------- Backgrounds ---------- */
.bg-dark { background: #0a0a0a; color: #fdfdfd; }
.bg-secondary { background: var(--secondary); }
.bg-foreground { background: var(--foreground); color: var(--background); }
.text-muted { color: var(--muted-foreground); }
.border-t-thin { border-top: 1px solid var(--border); }
.border-b-thin { border-bottom: 1px solid var(--border); }
.border-y-thin { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---------- Eyebrow / small caps ---------- */
.eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted-foreground);
}
.bg-dark .eyebrow { color: rgba(255,255,255,0.6); }

/* ---------- Headings ---------- */
.h-display {
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.01em;
  font-size: clamp(3rem, 9vw, 9.5rem);
}
.h1 {
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.01em;
  font-size: clamp(3rem, 7vw, 6rem);
}
.h2 {
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.01em;
  font-size: clamp(2.25rem, 5vw, 4rem);
}
.h3 {
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1.1;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}
em.serif-em { font-style: normal; color: var(--muted-foreground); }
.bg-dark em.serif-em { color: rgba(255,255,255,0.75); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  border: 1px solid transparent;
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
  cursor: pointer;
}
.btn svg { width: 14px; height: 14px; stroke-width: 1.5; }
.btn-primary { background: var(--foreground); color: var(--background); }
.btn-primary:hover { background: #2a2a2a; }
.btn-light { background: #fff; color: #000; }
.btn-light:hover { background: rgba(255,255,255,0.9); }
.btn-outline { border: 1px solid rgba(10,10,10,0.4); color: var(--foreground); }
.btn-outline:hover { background: var(--foreground); color: var(--background); }
.btn-outline-light { border: 1px solid rgba(255,255,255,0.4); color: #fff; }
.btn-outline-light:hover { background: #fff; color: #000; }

/* ---------- Underline link (footer) ---------- */
.underline-link { position: relative; display: inline-block; }
.underline-link::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: currentColor;
  transform-origin: right center;
  transform: scaleX(1);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.underline-link:hover::after { transform-origin: left center; transform: scaleX(0); }

/* ---------- Grain overlay ---------- */
.grain { position: relative; }
.grain::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Marquee ---------- */
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--background);
}
.marquee-track {
  display: flex;
  gap: 64px;
  white-space: nowrap;
  padding: 24px 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted-foreground);
  animation: marquee 38s linear infinite;
  width: max-content;
}
.marquee-track > div { display: flex; gap: 64px; flex-shrink: 0; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #0a0a0a;
  color: #fdfdfd;
}
.hero-90 { min-height: 90vh; }
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
}
.hero-veil {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.85) 100%);
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 160px 24px 96px;
  width: 100%;
}
@media (min-width: 768px) { .hero-inner { padding: 160px 48px 112px; } }

/* ---------- Cards / grids with hairline borders ---------- */
.bento {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.bento > * { background: var(--background); }
.bento-dark { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.1); }
.bento-dark > * { background: #0a0a0a; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease, backdrop-filter 0.5s ease;
  color: #fff;
}
.nav.scrolled {
  background: rgba(252,252,252,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(230,230,230,0.6);
  color: var(--foreground);
}
.nav.light-page { color: var(--foreground); }
.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
@media (min-width: 768px) { .nav-inner { padding: 20px 48px; } }
.nav-logo { display: inline-flex; align-items: center; gap: 12px; }
.nav-logo-mark {
  display: inline-flex;
  height: 36px; width: 36px;
  align-items: center; justify-content: center;
  background: #fff;
  transition: background-color 0.4s ease;
}
.nav.scrolled .nav-logo-mark,
.nav.light-page .nav-logo-mark { background: var(--foreground); }
.nav-logo-mark img { height: 28px; width: 28px; object-fit: contain; }
.nav.scrolled .nav-logo-mark img,
.nav.light-page .nav-logo-mark img { filter: invert(1); }
.nav-title { font-family: var(--font-serif); font-size: 20px; line-height: 1; }
.nav-sub { font-size: 10px; text-transform: uppercase; letter-spacing: 0.22em; opacity: 0.7; margin-top: 2px; }
.nav-links { display: none; gap: 40px; align-items: center; }
@media (min-width: 880px) { .nav-links { display: flex; } }
.nav-link {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.22em; font-weight: 500;
  opacity: 0.6; transition: opacity 0.3s ease;
}
.nav-link:hover, .nav-link.active { opacity: 1; }
.nav-cta { display: none; }
@media (min-width: 880px) { .nav-cta { display: inline-flex; } }
.nav-mobile-toggle {
  display: inline-flex;
  height: 40px; width: 40px;
  align-items: center; justify-content: center;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
}
@media (min-width: 880px) { .nav-mobile-toggle { display: none; } }
.nav-mobile-sheet {
  display: none;
  background: var(--background);
  color: var(--foreground);
  border-top: 1px solid var(--border);
}
.nav-mobile-sheet.open { display: block; }
.nav-mobile-sheet .inner { padding: 32px 24px; display: flex; flex-direction: column; gap: 24px; }
.nav-mobile-sheet a {
  font-family: var(--font-serif);
  font-size: 30px; letter-spacing: -0.01em; opacity: 0.6;
}
.nav-mobile-sheet a.active { opacity: 1; }

/* ---------- Footer ---------- */
.footer { background: var(--foreground); color: var(--background); }
.footer .footer-inner {
  max-width: 1400px; margin: 0 auto;
  padding: 96px 24px 48px;
}
@media (min-width: 768px) {
  .footer .footer-inner { padding: 128px 48px 48px; }
}
.footer h3 { font-family: var(--font-serif); font-weight: 300; }
.footer-grid {
  display: grid; gap: 48px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 5fr 3fr 4fr; gap: 32px; }
}
.footer-bottom {
  margin-top: 64px; padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex; flex-direction: column; gap: 16px;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.22em;
  opacity: 0.5;
}
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ---------- WhatsApp FAB ---------- */
.wa-fab {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 50;
  display: inline-flex; align-items: center; justify-content: center;
  height: 56px; width: 56px;
  border-radius: 999px;
  background: #25D366;
  color: #fff;
  box-shadow: 0 18px 40px -12px rgba(37,211,102,0.55);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: scale(0.6);
  animation: faIn 0.6s cubic-bezier(0.16,1,0.3,1) 1s forwards;
}
.wa-fab:hover { transform: scale(1.06); box-shadow: 0 24px 60px -12px rgba(37,211,102,0.7); }
.wa-fab svg { height: 28px; width: 28px; }
.wa-fab::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 999px;
  background: #25D366;
  opacity: 0.2;
  animation: pingScale 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes faIn { to { opacity: 1; transform: scale(1); } }
@keyframes pingScale {
  0% { transform: scale(1); opacity: 0.25; }
  75%, 100% { transform: scale(2); opacity: 0; }
}
@media (min-width: 768px) {
  .wa-fab { bottom: 32px; right: 32px; height: 64px; width: 64px; }
  .wa-fab svg { height: 32px; width: 32px; }
}

/* ---------- Forms (Contact) ---------- */
.field-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.22em; color: var(--muted-foreground); display: block; }
.field-input, .field-textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  padding: 12px 0;
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 300;
  margin-top: 8px;
  color: var(--foreground);
  transition: border-color 0.3s ease;
}
.field-input:focus, .field-textarea:focus {
  outline: none; border-bottom-color: var(--foreground);
}
.field-textarea { resize: none; }

/* ---------- Helpers ---------- */
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; }
.grid-2 { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
.grid-3 { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-4 { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.col-span-3  { grid-column: span 3 / span 3; }
.col-span-4  { grid-column: span 4 / span 4; }
.col-span-5  { grid-column: span 5 / span 5; }
.col-span-6  { grid-column: span 6 / span 6; }
.col-span-7  { grid-column: span 7 / span 7; }
.col-span-8  { grid-column: span 8 / span 8; }
.col-span-9  { grid-column: span 9 / span 9; }
.col-span-12 { grid-column: span 12 / span 12; }

@media (max-width: 767px) {
  .grid-12 > * { grid-column: span 12; }
  .col-span-3, .col-span-4, .col-span-5, .col-span-6, .col-span-7, .col-span-8, .col-span-9 { grid-column: span 12; }
}

.flex-row { display: flex; }
.items-end   { align-items: flex-end; }
.items-center{ align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-3 { gap: 12px; }
.gap-6 { gap: 24px; }

.aspect-4-5 { position: relative; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid var(--border); }
.aspect-4-5 img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s cubic-bezier(0.16,1,0.3,1);
}
.aspect-4-5:hover img { transform: scale(1.04); }
.aspect-4-5 .badge-row {
  position: absolute; top: 24px; left: 24px; right: 24px;
  display: flex; align-items: center; justify-content: space-between;
  color: #fff;
}
.badge-tag {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.22em;
  background: #fff; color: #000;
  padding: 6px 12px;
}

/* Spec cell */
.spec-cell { padding: 24px; }
.spec-cell .k { font-size: 10px; text-transform: uppercase; letter-spacing: 0.22em; color: var(--muted-foreground); }
.spec-cell .v { font-family: var(--font-serif); font-size: 22px; margin-top: 8px; letter-spacing: -0.01em; }
.bg-dark .spec-cell .k { color: rgba(255,255,255,0.6); }
.bg-dark .spec-cell .v { color: #fdfdfd; }

/* Big numeric cells */
.stat-cell { padding: 32px; text-align: center; }
.stat-cell .v { font-family: var(--font-serif); font-weight: 300; font-size: clamp(2.5rem, 5vw, 4.5rem); letter-spacing: -0.01em; line-height: 1; }
.stat-cell .k { margin-top: 12px; font-size: 10px; text-transform: uppercase; letter-spacing: 0.22em; color: var(--muted-foreground); }
.bg-dark .stat-cell .k { color: rgba(255,255,255,0.6); }

/* Grading list rows */
.grade-row { display: flex; align-items: flex-start; gap: 24px; padding: 32px; background: var(--background); }
@media (min-width: 768px) { .grade-row { gap: 32px; padding: 40px; } }
.grade-row .num { font-family: var(--font-serif); font-size: 28px; color: var(--muted-foreground); }
.grade-row .ico { width: 20px; height: 20px; stroke-width: 1.2; margin-top: 14px; color: rgba(10,10,10,0.7); display: block; }
.grade-row .body p { font-size: 15px; line-height: 1.6; color: var(--muted-foreground); font-weight: 300; margin-top: 12px; max-width: 540px; }

/* Drop cap paragraph (About story) */
.drop-cap::first-letter {
  font-family: var(--font-serif);
  font-size: 5.5rem;
  line-height: 0.85;
  float: left;
  margin: 6px 16px 0 0;
}

/* Blockquote */
.blockquote {
  border-left: 2px solid var(--foreground);
  padding-left: 32px;
  max-width: 880px;
}
@media (min-width: 768px) { .blockquote { padding-left: 48px; } }
.blockquote p {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(1.5rem, 3.5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.blockquote footer { margin-top: 24px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.22em; color: var(--muted-foreground); }

/* Scroll indicator */
.scroll-cue {
  position: absolute; bottom: 24px; right: 24px;
  display: none; flex-direction: column; align-items: flex-end; gap: 8px;
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.22em;
  color: rgba(255,255,255,0.6);
  opacity: 0; animation: faIn 1s ease 1.4s forwards;
}
@media (min-width: 640px) { .scroll-cue { display: flex; } }
.scroll-cue .line { display: block; height: 48px; width: 1px; background: rgba(255,255,255,0.4); }

/* Reading body text */
.lead {
  font-size: 17px;
  line-height: 1.7;
  font-weight: 300;
  color: rgba(10,10,10,0.85);
}
.bg-dark .lead { color: rgba(255,255,255,0.8); }
.text-sm-soft { font-size: 14px; line-height: 1.7; color: var(--muted-foreground); font-weight: 300; }
.bg-dark .text-sm-soft { color: rgba(255,255,255,0.7); }

/* Pull image card with hover scale already on aspect-4-5 */
.cta-stack { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }

/* Tabular table (Products comparison) */
.tbl-compare {
  width: 100%;
  min-width: 720px;
  text-align: left;
  border-collapse: collapse;
  font-size: 14px;
}
.tbl-compare th, .tbl-compare td { padding: 16px 24px; }
.tbl-compare thead th { border-bottom: 1px solid rgba(255,255,255,0.2); }
.tbl-compare thead th:first-child {
  padding-right: 24px; padding-left: 0;
  font-weight: 400; font-size: 10px; text-transform: uppercase; letter-spacing: 0.22em; color: rgba(255,255,255,0.6);
}
.tbl-compare thead th:not(:first-child) {
  font-family: var(--font-serif); font-size: 22px; font-weight: 300;
}
.tbl-compare tbody tr { border-bottom: 1px solid rgba(255,255,255,0.1); }
.tbl-compare tbody td:first-child {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.22em; color: rgba(255,255,255,0.6);
  padding-left: 0;
}
.tbl-compare tbody td:not(:first-child) { font-weight: 300; }
.tbl-wrap { margin-top: 48px; overflow-x: auto; }

/* Contact split */
.contact-split { display: grid; grid-template-columns: 1fr; }
@media (min-width: 1024px) {
  .contact-split { grid-template-columns: 5fr 7fr; }
}
.contact-left {
  position: relative;
  background: #0a0a0a; color: #fdfdfd; overflow: hidden;
  min-height: 600px;
}
.contact-left .bg-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.5;
}
.contact-left .veil {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.85) 100%);
}
.contact-left .inner {
  position: relative;
  padding: 64px 32px;
  display: flex; flex-direction: column; gap: 48px;
  min-height: 600px;
}
@media (min-width: 1024px) {
  .contact-left .inner { padding: 80px; gap: 48px; }
}
.contact-channel { display: flex; align-items: flex-start; gap: 20px; }
.contact-channel .ico-square {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; width: 40px;
}
.contact-channel .ico-square.wa { background: #25D366; color: #000; }
.contact-channel .ico-square.email { background: #fff; color: #000; }
.contact-channel .ico-square.map { border: 1px solid rgba(255,255,255,0.3); }
.contact-channel .ico-square svg { width: 16px; height: 16px; stroke-width: 1.5; }
.contact-channel .lbl { font-size: 10px; text-transform: uppercase; letter-spacing: 0.22em; opacity: 0.6; margin-bottom: 4px; }
.contact-channel .val { font-family: var(--font-serif); font-size: clamp(1.5rem, 2.5vw, 2rem); transition: opacity 0.3s ease; }
.contact-channel:hover .val { opacity: 0.7; }
.contact-right { background: var(--background); }
.contact-right .inner { padding: 64px 32px; max-width: 680px; }
@media (min-width: 1024px) { .contact-right .inner { padding: 80px; } }

/* Order helpers */
.order-1 { order: 1; }
.order-2 { order: 2; }
@media (min-width: 1024px) {
  .lg-order-1 { order: 1; }
  .lg-order-2 { order: 2; }
}

/* Sticky helper */
@media (min-width: 1024px) {
  .lg-sticky-top { position: sticky; top: 128px; }
}

/* Active page link state added via JS */
