/* ============================================================
   LOTUS DESIGN — site.css
   Warm premium · Editorial / car-magazine machines
   Pure CSS, no build step
   Display: Fraunces (variable serif)
   Body: Plus Jakarta Sans
   ============================================================ */

:root {
  /* Colors — warm premium palette */
  --ink: #1a1916;
  --ink-soft: #4a463e;
  --ink-muted: #6b6557;
  --bg: #fafaf6;
  --bg-alt: #f1ede4;
  --bg-warm: #fef7ee;
  --bg-dark: #14110d;
  --bg-dark-alt: #1f1b15;
  --bg-darker: #0a0907;
  --accent: #b45309;
  --accent-glow: #d97706;
  --accent-bg: #fef3c7;
  --text-on-dark: #f5f0e6;
  --muted-on-dark: rgba(245, 240, 230, 0.62);
  --border: #e5dfd2;
  --border-dark: rgba(245, 240, 230, 0.10);

  /* Typography */
  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-body:    'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono:    ui-monospace, 'SF Mono', Menlo, monospace;

  --text-xs:   clamp(0.70rem, 0.65rem + 0.25vw, 0.80rem);
  --text-sm:   clamp(0.80rem, 0.75rem + 0.25vw, 0.90rem);
  --text-base: clamp(0.95rem, 0.90rem + 0.25vw, 1.10rem);
  --text-lg:   clamp(1.10rem, 1.00rem + 0.50vw, 1.35rem);
  --text-xl:   clamp(1.40rem, 1.20rem + 1.00vw, 2.00rem);
  --text-2xl:  clamp(1.80rem, 1.50rem + 1.50vw, 2.75rem);
  --text-3xl:  clamp(2.20rem, 1.80rem + 2.00vw, 4.00rem);
  --text-hero: clamp(3.00rem, 2.20rem + 4.50vw, 7.00rem);

  /* Motion */
  --spring:        cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out:      cubic-bezier(0, 0, 0.2, 1);
  --duration-fast: 200ms;
  --duration-mid:  400ms;
  --duration-slow: 700ms;

  /* Layout */
  --max-width: 1280px;
  --gutter:    clamp(20px, 4vw, 56px);
  --section-pad: clamp(64px, 10vh, 140px);
}

/* ---------- Reset + base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; transition: color var(--duration-fast) var(--ease-out); }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
}
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  font-variation-settings: "opsz" 144;
}
h1 { font-size: var(--text-hero); line-height: 0.95; letter-spacing: -0.04em; }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-xl); letter-spacing: -0.015em; }
p  { margin: 0 0 1em; }
.lead { font-size: var(--text-lg); color: var(--ink-soft); line-height: 1.55; font-weight: 400; }

/* ---------- Layout ---------- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-pad) 0; position: relative; }
.section-dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .lead { color: var(--muted-on-dark); }
.section-dark .eyebrow { color: var(--accent-glow); }
.section-warm { background: var(--bg-warm); }
.section-alt { background: var(--bg-alt); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 246, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 24px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-lg);
  letter-spacing: -0.025em;
  color: var(--ink);
  font-variation-settings: "opsz" 32;
}
.nav { display: flex; gap: clamp(14px, 2.5vw, 32px); align-items: center; font-size: var(--text-sm); font-weight: 500; }
.nav a { color: var(--ink-soft); }
.nav a:hover { color: var(--ink); }
.lang-toggle {
  display: inline-flex;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.lang-toggle a {
  padding: 5px 11px;
  color: var(--ink-muted);
}
.lang-toggle a.active { background: var(--ink); color: var(--bg); }
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  transition: transform var(--duration-fast) var(--spring), background var(--duration-fast) var(--ease-out);
}
.btn-cta:hover { transform: translateY(-1px); background: var(--accent); }
.btn-cta-large { padding: 18px 32px; font-size: var(--text-base); border-radius: 999px; }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-soft);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: color var(--duration-fast);
  font-family: var(--font-body);
}
.btn-ghost:hover { color: var(--accent); }
@media (max-width: 720px) {
  .nav .nav-link { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: clamp(60px, 12vh, 140px) 0;
}
.hero-eyebrow { margin-bottom: 28px; }
.hero h1 { max-width: 1100px; }
.hero h1 .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(28px);
  animation: word-rise 900ms var(--spring) forwards;
}
.hero h1 .word:nth-child(1) { animation-delay: 80ms; }
.hero h1 .word:nth-child(2) { animation-delay: 240ms; }
.hero h1 .word:nth-child(3) { animation-delay: 400ms; color: var(--accent); }
@keyframes word-rise {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero h1 .word { opacity: 1; transform: none; animation: none; }
}
.hero-sub {
  max-width: 640px;
  margin-top: 28px;
  font-size: var(--text-lg);
  color: var(--ink-soft);
  line-height: 1.55;
  font-weight: 400;
}
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 44px;
}
.hero-meta {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(20px, 4vh, 40px);
  text-align: right;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
}
@media (max-width: 720px) { .hero-meta { display: none; } }

/* ---------- Three pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 40px;
  margin-top: 24px;
}
.pillar {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.pillar-num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent);
  letter-spacing: 0.18em;
  margin-bottom: 14px;
}
.pillar h3 { margin-bottom: 12px; }
.pillar p { color: var(--ink-soft); margin: 0; line-height: 1.6; font-family: var(--font-body); }
@media (max-width: 880px) { .pillars { grid-template-columns: 1fr; gap: 36px; } }

/* ============================================================
   MACHINES — high-end car magazine layout
   Each machine = full-bleed section with image background +
   bottom-aligned editorial overlay
   ============================================================ */

.machines-intro {
  background: var(--bg);
  padding: var(--section-pad) 0 calc(var(--section-pad) - 20px);
  text-align: left;
}
.machines-intro h2 { max-width: 900px; margin-top: 14px; }
.machines-intro .lead { max-width: 720px; margin-top: 20px; }

.machine {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--bg-darker);
  color: white;
  padding: 0;
}
.machine-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #211c14;
  z-index: 0;
}
.machine-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 17, 13, 0.20) 0%, rgba(20, 17, 13, 0.45) 50%, rgba(20, 17, 13, 0.92) 100%),
    linear-gradient(90deg, rgba(20, 17, 13, 0.50) 0%, rgba(20, 17, 13, 0.10) 60%);
}
.machine-image-attr {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 240, 230, 0.55);
  background: rgba(20, 17, 13, 0.55);
  padding: 5px 10px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.machine-num {
  position: absolute;
  top: 36px;
  left: var(--gutter);
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: rgba(245, 240, 230, 0.55);
  text-transform: uppercase;
}
.machine-body {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(40px, 7vh, 100px) var(--gutter);
}
.machine-tag {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  color: var(--accent-glow);
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 700;
}
.machine-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 1.6rem + 4.5vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.92;
  color: white;
  margin: 0 0 24px;
  max-width: 1100px;
  font-variation-settings: "opsz" 144;
}
.machine-sub {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.3rem);
  color: rgba(255, 255, 255, 0.78);
  max-width: 620px;
  margin: 0 0 32px;
  line-height: 1.55;
  font-weight: 400;
}
.machine-specs-line {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  margin-bottom: 32px;
  padding-top: 26px;
  border-top: 1px solid rgba(245, 240, 230, 0.20);
}
.machine-spec {
  padding: 0 32px 0 0;
  margin-right: 32px;
  border-right: 1px solid rgba(245, 240, 230, 0.18);
  min-width: 0;
}
.machine-spec:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.machine-spec .label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 5px;
  display: block;
}
.machine-spec .value {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
  color: white;
}
.machine-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: white;
  padding: 16px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: all var(--duration-fast);
}
.machine-cta:hover { background: var(--accent-glow); transform: translateY(-1px); }
@media (max-width: 720px) {
  .machine { min-height: 80vh; }
  .machine-specs-line { gap: 14px; padding-top: 18px; }
  .machine-spec { padding-right: 14px; margin-right: 0; border-right: none; flex-basis: 47%; }
}

/* ---------- Materials chips ---------- */
.materials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-top: 28px;
}
.materials .chip {
  padding: 8px 16px;
  border: 1px solid var(--border-dark);
  border-radius: 999px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-on-dark);
  font-family: var(--font-body);
}
.materials .chip.accent {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* ---------- LinkedIn feed ---------- */
.linkedin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 32px;
}
.linkedin-grid.has-multiple { grid-template-columns: repeat(2, 1fr); }
.linkedin-embed-wrap {
  background: white;
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 20px 40px -20px rgba(26, 25, 22, 0.18);
}
.linkedin-embed-wrap iframe {
  display: block;
  width: 100%;
  border: none;
  background: white;
}
.linkedin-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 26px;
}
.linkedin-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-xs);
  color: var(--ink-muted);
  margin-bottom: 14px;
}
.linkedin-meta .author { font-weight: 700; color: var(--ink); }
.linkedin-card p { font-size: var(--text-sm); color: var(--ink); margin: 0 0 14px; line-height: 1.6; }
.linkedin-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
}
@media (max-width: 720px) { .linkedin-grid.has-multiple { grid-template-columns: 1fr; } }

/* ---------- Quote CTA banner ---------- */
.quote-banner {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: clamp(70px, 10vh, 140px) 0;
  text-align: left;
}
.quote-banner h2 { font-size: var(--text-3xl); max-width: 900px; color: white; }
.quote-banner .lead { color: var(--muted-on-dark); max-width: 640px; margin-top: 20px; }
.quote-banner .btn-cta {
  background: var(--accent);
  margin-top: 36px;
}
.quote-banner .btn-cta:hover { background: var(--accent-glow); }
.quote-banner .eyebrow { color: var(--accent-glow); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-dark);
  color: var(--muted-on-dark);
  padding: 80px 0 50px;
  border-top: 1px solid var(--border-dark);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}
.footer-grid h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-on-dark);
  margin-bottom: 18px;
  letter-spacing: 0.14em;
}
.footer-grid a { color: var(--muted-on-dark); display: block; padding: 4px 0; font-size: var(--text-sm); }
.footer-grid a:hover { color: var(--accent-glow); }
.footer-brand .logo { color: var(--text-on-dark); font-size: var(--text-xl); }
.footer-brand p { color: var(--muted-on-dark); max-width: 320px; margin-top: 14px; font-size: var(--text-sm); line-height: 1.6; }
.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: var(--text-xs);
  color: var(--muted-on-dark);
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--duration-slow) var(--spring), transform var(--duration-slow) var(--spring);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Floating quote button (mobile) ---------- */
.float-cta {
  display: none;
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 60;
  background: var(--accent);
  color: white;
  padding: 14px 20px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  box-shadow: 0 10px 30px -10px rgba(180, 83, 9, 0.5);
}
@media (max-width: 720px) { .float-cta { display: inline-flex; align-items: center; gap: 6px; } }
