@import url('/static/fonts/fonts.css');

:root {
  /* Palette pulled from a Porsche desert-architecture wallpaper: warm sand,
     near-black reflective floor, dusty sky, sunlit terracotta rock, warm
     wood/gold tones. Warm luxury instead of the earlier electric-indigo set. */
  --bg: #F3EEE4;
  --bg-card: #FBF8F2;
  --bg-soft: #E9E1D0;
  --text: #1B1815;
  --text-secondary: #6B6259;
  --border: #E0D6C3;

  --accent: #B5642E;
  --accent-hover: #9A5325;
  --accent-contrast: #FBF8F2;

  --coral: #D9A548;
  --coral-text: #241A0D;

  --ink: #17130F;
  --ink-text: #F3EEE4;
  --ink-text-secondary: #A69A87;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: rgba(23, 19, 15, 0.1);

  --font-display: 'Unbounded', sans-serif;
  --font-body: 'Manrope', -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  scroll-behavior: smooth;
}

body { min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }

a { color: inherit; text-decoration: none; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

/* --- Typography scale --- */
.display-1 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-size: clamp(2.6rem, 8vw, 6.4rem);
  margin: 0;
}
.display-2 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  font-size: clamp(2rem, 5vw, 3.6rem);
  margin: 0;
}
.display-3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  margin: 0;
}
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  color: var(--text-secondary);
}
.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.5;
  color: var(--text-secondary);
  font-weight: 500;
}
.body-strong { font-weight: 700; }

/* --- Header: floating glass pill, not full-width, overlays content --- */
.site-header {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%);
  z-index: 30;
  background: rgba(23, 19, 15, 0.5);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  max-width: calc(100vw - 32px);
  box-shadow: 0 8px 32px rgba(23, 19, 15, 0.18);
}
.site-header .container-wide {
  display: flex; align-items: center; justify-content: space-between;
  height: 58px; padding: 0 10px 0 22px; gap: 32px; width: auto; max-width: none;
}
.brand { font-family: var(--font-display); font-weight: 800; font-size: 1rem; letter-spacing: -0.01em; color: #fff; white-space: nowrap; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: rgba(255, 255, 255, 0.8); font-size: 0.86rem; font-weight: 600; transition: color .15s; white-space: nowrap; }
.nav a:hover, .nav a.active { color: #fff; }
.nav-controls { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.08); color: #fff;
  border-radius: 999px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 0.85rem;
}
.icon-btn:hover { border-color: rgba(255, 255, 255, 0.4); }
.lang-switch { display: flex; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, 0.06); }
.lang-switch a { padding: 6px 10px; font-size: 0.75rem; font-weight: 700; color: rgba(255, 255, 255, 0.65); }
.lang-switch a.active { background: rgba(255, 255, 255, 0.22); color: #fff; }

.menu-toggle { display: none; }
.mobile-nav { display: none; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 0.95rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s, background .15s, border-color .15s;
  font-family: var(--font-body);
}
.btn-primary { background: var(--accent); color: var(--accent-contrast); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn-ghost { background: transparent; border-color: var(--text); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-on-ink { background: var(--ink-text); color: var(--ink); }
.btn-on-ink:hover { background: var(--coral); color: var(--coral-text); transform: translateY(-2px); }

.cta-circle {
  width: 190px; height: 190px; border-radius: 50%;
  background: var(--coral); color: var(--coral-text);
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; line-height: 1.15;
  transition: transform .3s ease;
  flex-shrink: 0;
}
.cta-circle:hover { transform: scale(1.06) rotate(-4deg); }

/* --- Hero (full viewport, first "scene" of the site) --- */
.hero-full {
  /* Header is a floating overlay pill now (position: fixed, out of document
     flow) — it no longer eats into the hero's own height budget. */
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 0 96px;
  position: relative;
  overflow: hidden;
}
/* --- Scene video background: real AI-generated cloud footage instead of
     CSS shapes. The video already contains the whole static scene (ground,
     dunes/trees) with only the sky animating — see the generation prompts —
     so it can just fill the whole hero, no separate compositing needed. --- */
.hero-bg-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  z-index: 0;
}
.hero-scrim { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-scrim-day {
  background: linear-gradient(180deg, rgba(243, 238, 228, 0.18), rgba(243, 238, 228, 0.32) 55%, rgba(243, 238, 228, 0.62) 78%);
}
.hero-scrim-night {
  background: linear-gradient(180deg, rgba(23, 19, 15, 0.25), rgba(23, 19, 15, 0.42) 55%, rgba(23, 19, 15, 0.72) 85%);
}
.hero-night { color: var(--ink-text); }

.hero-inner { position: relative; z-index: 1; }
.hero-headline { position: relative; margin-bottom: 8px; }
.hero-line { display: block; overflow: hidden; }
.hero-line-inner { display: block; }
.hero-rule { display: flex; align-items: center; gap: 20px; margin: 18px 0; }
.hero-rule .line { flex: 1; height: 1px; background: var(--text); opacity: 0.25; transform: scaleX(0); transform-origin: left; }
.hero-pitch {
  background: var(--accent); color: var(--accent-contrast);
  border-radius: var(--radius); padding: 26px 28px; max-width: 380px;
  transform: rotate(-2.5deg);
  box-shadow: 0 20px 40px var(--shadow);
  font-weight: 600; font-size: 1.05rem; line-height: 1.4;
  margin: 20px 0;
}
.hero-pitch .since { display: block; margin-top: 18px; font-family: var(--font-display); font-weight: 700; font-size: 0.82rem; opacity: 0.85; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; }

.hero-scroll-cue {
  position: absolute; left: 50%; bottom: 36px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  z-index: 1; color: var(--text-secondary); font-size: 0.76rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
}
.hero-scroll-cue .arrow { font-size: 1rem; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scroll-cue .arrow { animation: none; }
}

/* --- Intro splash: logo+name, then slides left to reveal the hero --- */
#intro {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
}
#intro .intro-word {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.2rem, 6vw, 4.5rem); color: var(--text); letter-spacing: -0.01em;
}
html.intro-lock, html.intro-lock body { overflow: hidden; }

/* --- Typewriter: cycling word inside a headline (see animations.js) --- */
.typewriter { color: var(--accent); white-space: nowrap; }
.hero-night .typewriter { color: var(--coral); }
.typewriter-cursor {
  display: inline-block; margin-left: 2px; color: inherit;
  animation: tw-blink 0.9s step-end infinite;
}
@keyframes tw-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .typewriter-cursor { animation: none; }
}

/* --- Needs scene (stage 2) headline layout --- */
.needs-headline { text-align: center; }
.needs-headline h2 { margin: 0; }
.needs-headline .lede-line { margin-top: 22px; }
@media (max-width: 760px) {
  .hero-full {
    min-height: 100vh;
    min-height: 100svh;
    padding: 96px 0 48px;
  }
  .hero-scroll-cue { display: none; }
}

/* --- Sections --- */
section { padding: 88px 0; }
.section-ink { background: var(--ink); color: var(--ink-text); }
.section-ink .text-secondary { color: var(--ink-text-secondary); }
.section-coral { background: var(--coral); color: var(--coral-text); overflow: hidden; }
.section-title { font-family: var(--font-display); font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 700; letter-spacing: -0.01em; margin: 0 0 36px; }

.two-col-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 48px; margin-top: 28px; }
.two-col-list div { padding: 10px 0; border-bottom: 1px solid var(--border); font-weight: 600; font-size: 0.95rem; }
.section-ink .two-col-list div { border-color: rgba(244,243,251,0.14); }

.pain-list { max-width: 780px; }
.pain-row {
  padding: 20px 0; border-bottom: 1px solid var(--border);
  font-size: clamp(1.05rem, 2.2vw, 1.4rem); font-weight: 600; letter-spacing: -0.01em;
}
.pain-row:first-child { border-top: 1px solid var(--border); }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: 0 1px 2px var(--shadow);
}

.category-block { margin-bottom: 48px; }
.category-block h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin-bottom: 20px; }

.package-card { display: flex; flex-direction: column; height: 100%; transition: transform .2s; }
.package-card:hover { transform: translateY(-4px); }
.package-card h3 { margin: 0 0 8px; font-size: 1.1rem; font-weight: 800; font-family: var(--font-display); }
.package-card .summary { color: var(--text-secondary); font-size: 0.92rem; margin-bottom: 16px; flex-grow: 1; }
.package-card .price { font-size: 1.5rem; font-weight: 800; margin-bottom: 4px; font-family: var(--font-display); }
.package-card .price small { font-size: 0.78rem; color: var(--text-secondary); font-weight: 500; font-family: var(--font-body); }
.package-card .delivery { color: var(--text-secondary); font-size: 0.85rem; margin-bottom: 18px; }

/* --- Case / portfolio tactile cards --- */
.case-strip { position: relative; }
.case-bg-word {
  position: absolute; top: 50%; left: 0; width: 200%; transform: translateY(-50%);
  font-family: var(--font-display); font-weight: 800; font-size: clamp(4rem, 12vw, 10rem);
  color: var(--coral-text); opacity: 0.16; white-space: nowrap; letter-spacing: -0.02em;
  pointer-events: none; user-select: none; z-index: 0;
}
.case-strip .container-wide { position: relative; z-index: 1; }
.case-cards { position: relative; display: flex; flex-direction: column; gap: 64px; align-items: center; }
.case-card {
  position: relative; width: min(560px, 100%);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 24px 48px rgba(20,17,25,0.18);
  transform: rotate(var(--tilt, -1.5deg));
  transition: transform .3s ease;
}
.case-card:nth-child(even) { --tilt: 1.5deg; }
.case-card:hover { transform: rotate(0deg) scale(1.02); }
.case-card img { display: block; width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; object-position: top; background: var(--ink); }
.case-tag {
  position: absolute; left: 20px; bottom: -18px; right: 20px;
  background: var(--ink); color: var(--ink-text);
  border-radius: var(--radius-sm); padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  transform: rotate(1.2deg);
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}
.case-tag h3 { margin: 0 0 4px; font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; }
.case-tag .cat { font-size: 0.8rem; color: var(--ink-text-secondary); font-weight: 600; }
.case-tag .year { font-family: var(--font-display); font-size: 0.85rem; font-weight: 700; flex-shrink: 0; }

/* --- Forms --- */
form.stack { display: flex; flex-direction: column; gap: 16px; max-width: 480px; }
label { font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; display: block; }
input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--bg-card); color: var(--text); font: inherit; font-size: 0.95rem; font-family: var(--font-body);
}
textarea { min-height: 120px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }
.option-row { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; }
.field-group { margin-bottom: 4px; }

/* --- Footer --- */
.site-footer { background: var(--ink); color: var(--ink-text); margin-top: auto; padding: 80px 0 40px; }
.footer-cta { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 64px; }
.footer-cta .contacts { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-cta .contacts div div:first-child { color: var(--ink-text-secondary); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; margin-bottom: 8px; }
.footer-cta .contacts a { color: var(--ink-text); font-weight: 600; border-bottom: 1px solid rgba(244,243,251,0.3); }
.footer-tagline { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 6vw, 4.2rem); line-height: 0.98; border-top: 1px solid rgba(244,243,251,0.16); padding-top: 40px; margin-bottom: 40px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; color: var(--ink-text-secondary); font-size: 0.85rem; }
.footer-bottom a { color: var(--ink-text-secondary); }
.footer-bottom a:hover { color: var(--coral); }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }

.status-badge {
  display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 700;
  background: var(--bg-soft); border: 1px solid var(--border);
}
.status-paid, .status-delivered { color: #16a34a; }
.status-pending_payment { color: #d97706; }
.status-cancelled { color: #dc2626; }

.notice { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.faq-item { border-bottom: 1px solid var(--border); padding: 24px 0; }
.faq-item h3 { margin: 0 0 8px; font-size: 1.1rem; font-family: var(--font-display); font-weight: 700; }
.faq-item p { margin: 0; color: var(--text-secondary); }
.section-ink .faq-item { border-color: rgba(244, 243, 251, 0.14); }
.section-ink .faq-item p { color: var(--ink-text-secondary); }

/* --- Scroll reveal (progressive enhancement — GSAP sets the hidden state via JS,
     this default keeps content visible if JS fails to load) --- */
[data-reveal] { opacity: 1; }
.gsap-ready [data-reveal] { opacity: 0; }

@media (max-width: 760px) {
  .site-header .nav { display: none; }
  .menu-toggle { display: flex; align-items: center; justify-content: center; }
  .mobile-nav {
    display: none;
    flex-direction: column;
    position: fixed; top: 76px; left: 16px; right: 16px;
    background: rgba(23, 19, 15, 0.92);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    overflow: hidden;
    z-index: 29;
    box-shadow: 0 16px 40px rgba(23, 19, 15, 0.25);
  }
  .mobile-nav.open { display: flex; }
  .mobile-nav a {
    padding: 14px 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.9); font-weight: 600; font-size: 0.95rem;
  }
  .mobile-nav a:last-child { border-bottom: none; }
  .site-header .container-wide { height: 52px; padding: 0 8px 0 18px; gap: 16px; }
  .brand { font-size: 0.92rem; }
  .two-col-list { grid-template-columns: 1fr; }
  .footer-cta { flex-direction: column; align-items: flex-start; }
  .footer-cta .contacts { gap: 28px; }
  .case-bg-word { font-size: 4.2rem; }
}
