/* palette: bg=#140B24 fg=#F3ECFF accent=#E8B84B */
/* fonts: display="Fraunces" body="Manrope" mono="Space Mono" */

:root {
  --bg: #140B24;          /* dominant cosmic violet-black */
  --bg-alt: #1C0F31;      /* alternating section */
  --bg-deep: #0D0718;     /* deepest band */
  --fg: #F3ECFF;          /* starlight text */
  --fg-soft: #D8CCEE;     /* softened text */
  --muted: #9A8CB8;       /* secondary text */
  --accent: #E8B84B;      /* cosmic gold (hero/CTA) */
  --accent-deep: #C99A2E; /* gold hover */
  --violet: #8A5CF0;      /* electric violet glow */
  --violet-deep: #5B2EC2; /* deep violet */
  --line: rgba(243, 236, 255, 0.12);
  --line-strong: rgba(243, 236, 255, 0.22);
  --border: rgba(243, 236, 255, 0.12);
  --card: #1A0E2E;
  --card-raise: #22143B;

  --serif: 'Fraunces', ui-serif, Georgia, serif;
  --sans: 'Manrope', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Space Mono', ui-monospace, 'SFMono-Regular', monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1240px;
  --pad: clamp(80px, 12vw, 164px);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.76;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }

/* ---------- Cosmic backdrop ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 600px at 78% -8%, rgba(138, 92, 240, 0.22), transparent 60%),
    radial-gradient(900px 500px at 10% 8%, rgba(232, 184, 75, 0.10), transparent 55%),
    radial-gradient(1000px 700px at 50% 110%, rgba(91, 46, 194, 0.18), transparent 60%);
  pointer-events: none;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 768px) { .container { padding: 0 32px; } }

.section { padding: var(--pad) 0; position: relative; }
.section--alt { background: var(--bg-alt); }
.section--deep { background: var(--bg-deep); }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
  opacity: 0.7;
}

.section-head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 80px); }
.section-head p { color: var(--muted); font-size: 18px; margin-top: 20px; max-width: 58ch; }

h2.title {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 400;
}
h2.title em { font-style: italic; color: var(--accent); }

h3 { font-family: var(--serif); font-weight: 400; }

.lead { font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.6; color: var(--fg-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), opacity 0.4s var(--ease), box-shadow 0.4s var(--ease);
  white-space: nowrap;
}
.btn--gold {
  background: var(--accent);
  color: #1A1206;
  box-shadow: 0 10px 34px -12px rgba(232, 184, 75, 0.7);
}
.btn--gold:hover { transform: translateY(-2px); background: var(--accent-deep); }
.btn--ghost {
  border: 1px solid var(--line-strong);
  color: var(--fg);
}
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg);
  transition: gap 0.35s var(--ease), color 0.35s var(--ease);
}
.link-arrow::after { content: "→"; transition: transform 0.35s var(--ease); }
.link-arrow:hover { color: var(--accent); gap: 14px; }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* ======================================================
   HEADER  (two-tier, mirrors reference's utility + main nav)
   ====================================================== */
.topbar {
  background: var(--bg-deep);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.topbar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
  gap: 18px;
}
.topbar__row span { white-space: nowrap; }
.topbar__links { display: none; gap: 24px; }
.topbar__links a:hover { color: var(--accent); }
@media (min-width: 768px) { .topbar__links { display: flex; } }

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(20, 11, 36, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.header[data-scrolled="true"] {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 40px -20px rgba(0, 0, 0, 0.8);
  background: rgba(16, 9, 28, 0.9);
}
.header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 24px;
}
.brand {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
}
.brand__mark {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}
.brand__mark b { font-weight: 400; color: var(--accent); font-style: italic; }
.brand__sub {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 5px;
}

.nav { display: none; gap: 36px; }
.nav a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--fg-soft);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.35s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }
@media (min-width: 980px) { .nav { display: flex; } }

.header__cta { display: none; }
@media (min-width: 980px) { .header__cta { display: inline-flex; } }

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  align-items: flex-end;
}
.menu-toggle span {
  display: block;
  width: 26px; height: 1.5px;
  background: var(--fg);
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease), width 0.4s var(--ease);
}
.menu-toggle span:nth-child(2) { width: 20px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); width: 26px; }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); width: 26px; }
@media (min-width: 980px) { .menu-toggle { display: none; } }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: var(--bg-deep);
  padding: 120px 28px 48px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.5s var(--ease), opacity 0.4s var(--ease);
}
.mobile-menu[data-open="true"] { transform: translateY(0); opacity: 1; pointer-events: all; }
.mobile-menu a {
  font-family: var(--serif);
  font-size: clamp(2rem, 9vw, 3rem);
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.3s var(--ease), padding-left 0.35s var(--ease);
}
.mobile-menu a:hover { color: var(--accent); padding-left: 10px; }
.mobile-menu .btn { margin-top: 28px; align-self: flex-start; }

/* ======================================================
   HERO  (fullbleed banner, mirrors reference crimson hero)
   ====================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.42;
  animation: heroZoom 9s var(--ease) forwards;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 7, 24, 0.94) 0%, rgba(13, 7, 24, 0.72) 42%, rgba(13, 7, 24, 0.5) 100%),
    linear-gradient(180deg, transparent 55%, var(--bg) 100%);
}
@keyframes heroZoom {
  from { transform: scale(1.09); }
  to { transform: scale(1); }
}
.hero__inner { padding: 140px 0 80px; max-width: 920px; }
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(3.3rem, 9.4vw, 8.6rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 300;
  margin: 0 0 34px;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero__sub {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.6;
  color: var(--fg-soft);
  max-width: 54ch;
  margin-bottom: 42px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 64px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}
.hero__meta div span {
  display: block;
  font-family: var(--serif);
  font-size: 2.2rem;
  color: var(--accent);
  line-height: 1;
}
.hero__meta div small {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-top: 10px;
}

/* ---------- Promo strip (mirrors "Free Shipping" band) ---------- */
.strip {
  background: var(--accent);
  color: #1A1206;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid rgba(26, 18, 6, 0.2);
  border-bottom: 1px solid rgba(26, 18, 6, 0.2);
}
.strip__track {
  display: inline-flex;
  gap: 56px;
  padding: 14px 0;
  animation: marquee 34s linear infinite;
}
.strip span { display: inline-flex; align-items: center; gap: 56px; }
.strip span::after { content: "✦"; opacity: 0.6; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ======================================================
   SHOWCASE  (collection band — mirrors "Jewel Collection")
   ====================================================== */
.showcase__grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .showcase__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .showcase__grid { grid-template-columns: 1.4fr 1fr 1fr; grid-auto-rows: 1fr; } }

.showcard {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--card);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
}
.showcard:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: 0 24px 60px -24px rgba(0,0,0,0.7); }
.showcard__img { position: absolute; inset: 0; z-index: 0; }
.showcard__img img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; transition: transform 0.9s var(--ease), opacity 0.5s var(--ease); }
.showcard:hover .showcard__img img { transform: scale(1.06); opacity: 0.62; }
.showcard::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(13,7,24,0.1) 0%, rgba(13,7,24,0.55) 48%, rgba(13,7,24,0.95) 100%);
}
.showcard__body { position: relative; z-index: 2; padding: 30px 28px; }
.showcard__tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.showcard h3 { font-size: 1.7rem; line-height: 1.1; margin: 12px 0 10px; }
.showcard p { color: var(--fg-soft); font-size: 15px; line-height: 1.6; }
.showcard--lg { min-height: 480px; }
@media (min-width: 1024px) { .showcard--lg { grid-row: span 2; } }

/* ======================================================
   SOLUTIONS  (numbered sidebar — mirrors "01. What is your skin type?")
   ====================================================== */
.solutions__layout {
  display: grid;
  gap: 44px;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 900px) { .solutions__layout { grid-template-columns: 300px 1fr; gap: 64px; } }

.sol-nav { position: relative; }
@media (min-width: 900px) { .sol-nav { position: sticky; top: 120px; } }
.sol-nav__item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  width: 100%;
  text-align: left;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.3s var(--ease), padding-left 0.35s var(--ease);
  color: var(--muted);
}
.sol-nav__item:first-child { border-top: 1px solid var(--line); }
.sol-nav__item em {
  font-family: var(--mono);
  font-style: normal;
  font-size: 12px;
  color: var(--accent);
  min-width: 26px;
}
.sol-nav__item span {
  font-family: var(--serif);
  font-size: 1.3rem;
}
.sol-nav__item:hover, .sol-nav__item[aria-selected="true"] { color: var(--fg); padding-left: 8px; }
.sol-nav__item[aria-selected="true"] { color: var(--accent); }

.sol-panel { display: none; }
.sol-panel[data-active="true"] { display: block; animation: fadeUp 0.6s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.sol-panel__num {
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 6rem);
  color: var(--violet);
  line-height: 1;
  opacity: 0.5;
}
.sol-panel h3 { font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.08; margin: 10px 0 20px; }
.sol-panel p { color: var(--fg-soft); max-width: 60ch; margin-bottom: 18px; }
.sol-panel__list { display: grid; gap: 14px; margin-top: 26px; }
.sol-panel__list li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--fg-soft);
  font-size: 16px;
}
.sol-panel__list li::before { content: "✦"; color: var(--accent); font-size: 12px; }
.sol-panel__media {
  margin-top: 30px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 7;
}
.sol-panel__media img { width: 100%; height: 100%; object-fit: cover; }

/* ======================================================
   MANIFESTO  (inverted light band)
   ====================================================== */
.manifesto {
  background: var(--fg);
  color: var(--bg);
  text-align: center;
}
.manifesto__quote {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.9rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
  max-width: 980px;
  margin: 0 auto;
}
.manifesto__quote em { font-style: italic; color: var(--violet-deep); }
.manifesto__mark {
  font-family: var(--serif);
  font-size: 7rem;
  line-height: 0.5;
  color: var(--accent-deep);
  display: block;
  margin-bottom: 10px;
}
.manifesto__by {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(20, 11, 36, 0.55);
  margin-top: 40px;
}

/* ======================================================
   STATS
   ====================================================== */
.stats__grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(2, 1fr);
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
@media (min-width: 860px) { .stats__grid { grid-template-columns: repeat(4, 1fr); } }
.stat {
  background: var(--bg);
  padding: 44px 28px;
}
.stat b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  color: var(--accent);
  display: block;
  line-height: 1;
}
.stat small {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* ======================================================
   WORK / CASE STUDIES
   ====================================================== */
.work__grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .work__grid { grid-template-columns: repeat(2, 1fr); } }

.work-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--card);
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.work-card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: 0 26px 64px -28px rgba(0,0,0,0.75); }
.work-card__img { aspect-ratio: 16 / 10; overflow: hidden; }
.work-card__img img { width: 100%; height: 100%; object-fit: cover; opacity: 0.86; transition: transform 0.9s var(--ease); }
.work-card:hover .work-card__img img { transform: scale(1.05); }
.work-card__body { padding: 28px 30px 32px; }
.work-card__tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.work-card h3 { font-size: 1.55rem; line-height: 1.12; margin: 12px 0 12px; }
.work-card p { color: var(--muted); font-size: 15px; line-height: 1.6; margin-bottom: 20px; }

/* ======================================================
   TESTIMONIALS
   ====================================================== */
.quotes__grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .quotes__grid { grid-template-columns: repeat(3, 1fr); } }
.quote-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 34px 30px;
  background: var(--card);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.quote-card__stars { color: var(--accent); letter-spacing: 3px; font-size: 13px; }
.quote-card blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.22rem;
  line-height: 1.42;
  color: var(--fg);
}
.quote-card__who { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1rem;
  color: #1A1206;
  flex-shrink: 0;
}
.quote-card__who b { font-size: 15px; font-weight: 700; display: block; }
.quote-card__who small { color: var(--muted); font-size: 13px; }

/* ======================================================
   FAQ
   ====================================================== */
.faq__wrap { max-width: 860px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 28px 44px 28px 0;
  position: relative;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  line-height: 1.3;
  transition: color 0.3s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-size: 1.6rem;
  color: var(--accent);
  transition: transform 0.35s var(--ease);
}
.faq-item[open] summary { color: var(--accent); }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p {
  color: var(--fg-soft);
  padding: 0 44px 30px 0;
  max-width: 68ch;
  line-height: 1.72;
}

/* ======================================================
   CTA
   ====================================================== */
.cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  border-top: 1px solid var(--line);
}
.cta__bg { position: absolute; inset: 0; z-index: -1; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.3; }
.cta__bg::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(900px 500px at 50% 40%, rgba(20,11,36,0.6), var(--bg) 78%);
}
.cta h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 940px;
  margin: 0 auto 28px;
}
.cta h2 em { font-style: italic; color: var(--accent); }
.cta p { color: var(--fg-soft); max-width: 56ch; margin: 0 auto 40px; font-size: 1.1rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

/* ======================================================
   FOOTER
   ====================================================== */
.footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  padding: clamp(64px, 8vw, 100px) 0 40px;
}
.footer__top {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .footer__top { grid-template-columns: 1.6fr 1fr 1fr; } }
@media (min-width: 1024px) { .footer__top { grid-template-columns: 2fr 1fr 1fr 1.4fr; } }
.footer__brand .brand__mark { font-size: 1.8rem; }
.footer__brand p { color: var(--muted); font-size: 15px; max-width: 34ch; margin-top: 20px; line-height: 1.6; }
.footer__col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
.footer__col a { display: block; padding: 7px 0; color: var(--fg-soft); font-size: 15px; transition: color 0.3s var(--ease); }
.footer__col a:hover { color: var(--accent); }
.footer__col address { font-style: normal; color: var(--fg-soft); font-size: 15px; line-height: 1.8; }
.footer__bottom {
  margin-top: clamp(48px, 7vw, 80px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}
.footer__bottom a:hover { color: var(--accent); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 22px; }

/* ======================================================
   FORM (contact)
   ====================================================== */
.contact__grid { display: grid; gap: 52px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 940px) { .contact__grid { grid-template-columns: 1fr 1.15fr; gap: 72px; } }
.contact__info h3 { font-family: var(--serif); font-size: 1.5rem; margin-bottom: 14px; }
.contact__info-block { padding: 24px 0; border-bottom: 1px solid var(--line); }
.contact__info-block small { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 10px; }
.contact__info-block p { color: var(--fg-soft); line-height: 1.7; }

.form { display: grid; gap: 22px; }
.form__row { display: grid; gap: 22px; }
@media (min-width: 620px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 9px; }
.field label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 16px;
  color: var(--fg);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px 16px;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(154, 140, 184, 0.7); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 184, 75, 0.14);
}
.field textarea { resize: vertical; min-height: 140px; }
.form__consent { display: flex; gap: 12px; align-items: flex-start; }
.form__consent input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--accent); }
.form__consent label { font-family: var(--sans); text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.form__consent a { color: var(--accent); text-decoration: underline; }
.form .btn { justify-content: center; }

/* ======================================================
   PAGE HERO (interior pages)
   ====================================================== */
.pagehero {
  position: relative;
  padding: 150px 0 clamp(60px, 8vw, 100px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.pagehero__bg { position: absolute; inset: 0; z-index: -1; }
.pagehero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.3; }
.pagehero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,7,24,0.7), var(--bg) 92%); }
.pagehero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.8rem, 8vw, 6.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  max-width: 16ch;
}
.pagehero h1 em { font-style: italic; color: var(--accent); }
.pagehero p { color: var(--fg-soft); font-size: 1.15rem; max-width: 56ch; margin-top: 26px; }
.breadcrumb { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 26px; }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- Values / principles grid ---------- */
.values__grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .values__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .values__grid { grid-template-columns: repeat(3, 1fr); } }
.value {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 36px 32px;
  background: var(--card);
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease);
}
.value:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.value__num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--accent); }
.value h3 { font-size: 1.5rem; margin: 18px 0 12px; }
.value p { color: var(--muted); font-size: 15.5px; line-height: 1.68; }

/* ---------- Service rows (services page) ---------- */
.srv-row {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  padding: clamp(40px, 6vw, 70px) 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
@media (min-width: 880px) { .srv-row { grid-template-columns: 0.4fr 1fr; gap: 56px; } }
.srv-row__index { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--violet); opacity: 0.7; line-height: 1; }
.srv-row__index small { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--accent); margin-top: 16px; opacity: 1; }
.srv-row h3 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); line-height: 1.1; margin-bottom: 18px; }
.srv-row > div p { color: var(--fg-soft); max-width: 62ch; margin-bottom: 20px; }
.srv-row__tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.srv-row__tags span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-soft);
  border: 1px solid var(--line);
  border-radius: 9999px;
  padding: 7px 15px;
}

/* ---------- Timeline (about) ---------- */
.timeline { max-width: 820px; }
.tl-item { display: grid; grid-template-columns: 110px 1fr; gap: 28px; padding: 30px 0; border-top: 1px solid var(--line); }
.tl-item b { font-family: var(--serif); font-size: 1.6rem; color: var(--accent); }
.tl-item h3 { font-size: 1.3rem; margin-bottom: 10px; }
.tl-item p { color: var(--muted); font-size: 15.5px; line-height: 1.66; }
@media (max-width: 600px) { .tl-item { grid-template-columns: 1fr; gap: 10px; } }

/* ---------- Legal pages ---------- */
.legal { max-width: 820px; margin: 0 auto; }
.legal h2 { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 48px 0 18px; }
.legal h3 { font-size: 1.2rem; margin: 30px 0 12px; color: var(--fg); }
.legal p, .legal li { color: var(--fg-soft); font-size: 16.5px; line-height: 1.76; margin-bottom: 16px; }
.legal ul { padding-left: 22px; list-style: disc; margin-bottom: 20px; }
.legal li { margin-bottom: 8px; }
.legal__updated { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.legal a { color: var(--accent); text-decoration: underline; }

/* ---------- Thanks page ---------- */
.thanks { min-height: 78vh; display: flex; align-items: center; text-align: center; }
.thanks__mark {
  width: 86px; height: 86px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--accent);
  margin: 0 auto 32px;
}
.thanks h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1.02; letter-spacing: -0.02em; margin-bottom: 22px; }
.thanks h1 em { font-style: italic; color: var(--accent); }
.thanks p { color: var(--fg-soft); max-width: 50ch; margin: 0 auto 36px; font-size: 1.1rem; }

/* ======================================================
   COOKIE POPUP
   ====================================================== */
.cookie-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 24px;
  background: rgba(5, 2, 12, 0.5);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.cookie-popup[data-open="true"] { opacity: 1; pointer-events: all; }
.cookie-popup__card {
  background: var(--card-raise);
  border: 1px solid var(--line-strong);
  padding: 32px 34px;
  max-width: 460px;
  border-radius: 10px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.8);
}
.cookie-popup__label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.cookie-popup__card h3 { font-family: var(--serif); font-size: 1.5rem; margin-bottom: 12px; }
.cookie-popup__card p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.cookie-popup__card p a { color: var(--accent); text-decoration: underline; }
.cookie-popup__actions { display: flex; gap: 12px; margin-top: 24px; }
.cookie-popup__actions button {
  padding: 11px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 9999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  flex: 1;
  transition: all 0.3s var(--ease);
}
.cookie-popup__actions button:hover { border-color: var(--accent); }
.cookie-popup__actions button:last-child { background: var(--accent); color: #1A1206; border-color: var(--accent); }
.cookie-popup__actions button:last-child:hover { background: var(--accent-deep); }

/* ---------- misc ---------- */
.split-intro {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 900px) { .split-intro { grid-template-columns: 0.9fr 1.1fr; gap: 72px; } }
.split-intro .lead { color: var(--fg-soft); }
.split-intro p + p { margin-top: 20px; }
.prose p { color: var(--fg-soft); margin-bottom: 20px; max-width: 64ch; }
