/* ---------------------------------------------------------------------------
   BRAND. Change these to rebrand the whole site: colors, fonts, corner radius.
   SereusData brand guide: Obsidian, Stone, Ivory, Champagne. Montserrat.
   --------------------------------------------------------------------------- */
:root {
  --obsidian: #0a0a0a;       /* page background */
  --stone: #1f1f1f;          /* cards and panels */
  --ivory: #f4eee5;          /* text */
  --champagne: #c9ad78;      /* buttons, links, accents */

  --brand: var(--champagne);
  --brand-deep: #dcc497;     /* button hover (a touch lighter on dark) */
  --brand-glow: rgba(201, 173, 120, 0.18);
  --ink: var(--ivory);       /* main text */
  --ink-muted: #bdb5a9;      /* secondary text, still easy to read on dark */
  --on-brand: var(--obsidian); /* text on champagne buttons */
  --paper: var(--obsidian);  /* page background */
  --soft: var(--stone);      /* cards and panels */
  --line: #383532;           /* borders */
  --line-gold: rgba(201, 173, 120, 0.28);

  --font-display: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  --font-label: "Montserrat", ui-sans-serif, system-ui, sans-serif;

  --radius: 10px;
  --radius-card: 14px;
  --radius-panel: 20px;
  --maxw: 1160px;
  --narrow: 780px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(48px, 6vw, 64px);
}

/* --------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: dark; background: var(--paper); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { display: block; max-width: 100%; }
a { color: var(--brand); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--brand); color: var(--on-brand); }
main { flex: 1; }

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

/* Type */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 7vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
  color: var(--ink);
}
.title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 4vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
  margin: 0;
  color: var(--ink);
}
.lede { color: var(--ink); max-width: var(--narrow); margin: 0; font-size: 17px; }
.muted { color: var(--ink-muted); }
.small { font-size: 14px; line-height: 1.55; }
.caption { font-size: 13px; line-height: 1.45; letter-spacing: 0.01em; }
.eyebrow {
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
/* Brand tagline: small, widely spaced label above the main headline */
.tagline {
  margin: 0;
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brand);
  padding-left: 0.32em; /* balances the trailing letter space so it centres */
}
@media (min-width: 768px) { .tagline { font-size: 13px; letter-spacing: 0.4em; padding-left: 0.4em; } }

/* Header and footer */
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px;
  padding-top: 16px; padding-bottom: 16px;
}
.logo img { height: 28px; width: auto; }
@media (min-width: 768px) { .logo img { height: 32px; } }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 14px; font-weight: 500; }
.site-nav a { text-decoration: none; color: var(--ink); }
.site-nav a:hover { color: var(--brand); }
.site-nav a.button, .site-nav a.button:hover { color: var(--on-brand); }

.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; margin-top: var(--section); }
.site-footer .wrap { display: grid; gap: 16px; font-size: 14px; color: var(--ink-muted); }
.site-footer p { margin: 0; }
.site-footer a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.site-footer a:hover { color: var(--brand-deep); }
@media (min-width: 768px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } .site-footer .right { text-align: right; } }

/* Buttons: Champagne with Obsidian text */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 24px;
  background: var(--brand); color: var(--on-brand);
  border-radius: var(--radius);
  font-family: var(--font-body); font-size: 15px; font-weight: 600; letter-spacing: 0.01em;
  text-decoration: none; white-space: nowrap;
  transition: background 0.15s, box-shadow 0.15s;
}
.button:hover { background: var(--brand-deep); color: var(--on-brand); box-shadow: 0 0 24px rgba(201, 173, 120, 0.3); }
.button svg { width: 16px; height: 16px; }
@media (max-width: 420px) { .site-nav .button { height: 40px; padding: 0 16px; font-size: 14px; } }

/* Sections */
.section { padding-top: var(--section); }
.section > .wrap > .title { margin-bottom: 32px; }
.section.centred > .wrap > .title { text-align: center; }

/* Owner hero */
.hero { padding: 16px 0 48px; text-align: center; }
.hero .wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.hero .lede { color: var(--ink-muted); }
@media (min-width: 768px) { .hero { padding-top: 40px; } }

/* The dark stage with a soft champagne glow, like the data stream in the brand guide */
.stage {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--radius-panel);
  border: 1px solid rgba(201, 173, 120, 0.16);
  background:
    radial-gradient(ellipse 60% 55% at 12% 20%, rgba(201, 173, 120, 0.20), transparent 70%),
    radial-gradient(ellipse 55% 50% at 90% 85%, rgba(201, 173, 120, 0.16), transparent 70%),
    radial-gradient(ellipse 80% 40% at 50% 50%, rgba(201, 173, 120, 0.06), transparent 75%),
    linear-gradient(135deg, #171512, var(--obsidian) 55%, #050505);
  padding: 64px 12px;
}
@media (min-width: 768px) { .stage { padding: 64px 32px; } }
.stage .stripes {
  position: absolute; inset: -33%; z-index: -2;
  background: repeating-linear-gradient(115deg, rgba(201, 173, 120, 0.08) 0 1px, transparent 1px 46px);
  animation: drift 18s linear infinite;
}
/* A faint flowing gold wave across the panel */
.stage::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 18% at 30% 38%, rgba(220, 196, 151, 0.12), transparent 70%),
    radial-gradient(ellipse 65% 16% at 72% 62%, rgba(220, 196, 151, 0.10), transparent 70%);
  filter: blur(6px);
}
.stage .streams {
  position: absolute; inset: 0; z-index: -1;
  display: grid; align-content: space-between; padding: 16px 0;
}
.stream {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8% 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8% 92%, transparent);
}
.stream > div { display: flex; width: max-content; animation: marquee 55s linear infinite; }
.stream:nth-child(2) > div { animation: marquee 46s linear infinite reverse; }
.stream span {
  margin-right: 12px; padding: 8px 16px; white-space: nowrap;
  border: 1px solid rgba(201, 173, 120, 0.3); background: rgba(201, 173, 120, 0.08);
  border-radius: 999px; color: rgba(244, 238, 229, 0.85);
  font-family: var(--font-label); font-size: 12px; font-weight: 500; letter-spacing: 0.08em;
}
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes drift { to { transform: translate(41.69px, 19.44px); } }
@media (prefers-reduced-motion: reduce) { .stream > div, .stage .stripes { animation: none; } }

/* Folder card: a card with a file-folder tab on top */
.folder {
  position: relative; margin: 32px auto 0; max-width: var(--narrow);
  background: var(--stone); border: 1px solid var(--line-gold);
  border-radius: var(--radius-panel); border-top-left-radius: 0;
  padding: 24px; text-align: left; color: var(--ink);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55), 0 0 60px rgba(201, 173, 120, 0.08);
}
@media (min-width: 768px) { .folder { padding: 32px; } }
.folder .tab {
  position: absolute; bottom: 100%; left: -1px; transform: translateY(1px);
  background: var(--stone); color: var(--brand);
  border: 1px solid var(--line-gold); border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 8px 16px;
}
.folder .pitch { font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 1.35; margin: 0; color: var(--ink); }
@media (min-width: 768px) { .folder .pitch { font-size: 24px; line-height: 1.3; letter-spacing: -0.01em; } }
.folder .actions { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 640px) { .folder .actions { flex-direction: row; align-items: center; } }
.folder .actions p { margin: 0; }

/* How it works: four steps joined by a line that fills in */
.steps { list-style: none; margin: 0; padding: 0; display: grid; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { display: flex; gap: 16px; }
@media (min-width: 768px) { .steps li { flex-direction: column; gap: 12px; } }
.steps .rail { display: flex; flex-direction: column; align-items: center; }
@media (min-width: 768px) { .steps .rail { flex-direction: row; } }
.steps .dot {
  width: 20px; height: 20px; flex-shrink: 0; border-radius: 999px;
  border: 2px solid var(--line); background: var(--paper); transition: all 0.3s;
}
.steps .line { position: relative; width: 2px; flex: 1; background: var(--line); }
@media (min-width: 768px) { .steps .line { width: 100%; height: 2px; } }
.steps .line::after {
  content: ""; position: absolute; inset: 0; background: var(--brand);
  transform: scaleY(0); transform-origin: top; transition: transform 0.5s;
}
@media (min-width: 768px) { .steps .line::after { transform: scaleX(0); transform-origin: left; } }
.steps.seen .dot { border-color: var(--brand); background: var(--brand); box-shadow: 0 0 12px rgba(201, 173, 120, 0.45); }
.steps.seen .line::after { transform: none; }
.steps li:nth-child(2) .dot, .steps li:nth-child(2) .line::after { transition-delay: 0.4s; }
.steps li:nth-child(3) .dot, .steps li:nth-child(3) .line::after { transition-delay: 0.8s; }
.steps li:nth-child(4) .dot { transition-delay: 1.2s; }
.steps .text { padding-bottom: 32px; }
@media (min-width: 768px) { .steps .text { padding: 0 24px 0 0; } }
.steps h3 { margin: 0; }
.steps p { margin: 4px 0 0; color: var(--ink-muted); }

.promises { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 768px) { .promises { grid-template-columns: repeat(3, 1fr); } }
.promises li {
  display: flex; align-items: center; gap: 16px;
  background: var(--soft); border: 1px solid var(--line);
  border-radius: var(--radius-panel); padding: 16px 24px;
  font-weight: 600; color: var(--ink);
}
.promises svg { width: 24px; height: 24px; flex-shrink: 0; color: var(--brand); }

/* Questions */
.faq { border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  cursor: pointer; list-style: none; color: var(--ink);
  font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 1.35;
}
.faq summary:hover { color: var(--brand); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 24px; height: 24px; flex-shrink: 0; color: var(--brand); transition: transform 0.2s; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq p { margin: 12px 0 0; max-width: var(--narrow); color: var(--ink-muted); }

/* Recruit page: words on the left, film on the right */
.split { display: grid; align-items: center; gap: 32px; padding-top: 16px; }
@media (min-width: 768px) { .split { grid-template-columns: 1fr 1fr; gap: 48px; } }
.split .words { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.split .lede { color: var(--ink-muted); }
.film-panel {
  border-radius: var(--radius-panel);
  border: 1px solid rgba(201, 173, 120, 0.16);
  background:
    radial-gradient(ellipse 70% 50% at 15% 15%, rgba(201, 173, 120, 0.18), transparent 70%),
    radial-gradient(ellipse 60% 45% at 85% 90%, rgba(201, 173, 120, 0.14), transparent 70%),
    var(--stone);
  padding: 32px 24px; color: var(--ink);
}
@media (min-width: 768px) { .film-panel { padding: 48px 24px; } }
.film-panel figure { margin: 0 auto; max-width: 280px; display: flex; flex-direction: column; gap: 12px; }
.film-panel video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--radius-card); background: var(--obsidian); }
.film-panel figcaption { font-size: 14px; font-weight: 500; color: var(--ink); }
