:root {
  --bg: #131418;
  --ink: #ede7db;
  --muted: #b7af9f;
  --panel: #1b1d22;
  --line: #2f3440;
  --accent: #c9a14b;
  --accent-ink: #231a08;
  --max: 1120px;
  --gutter: 24px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body.profile {
  font-family: Inter, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.6;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

body.profile[data-theme="light"] {
  --bg: #f4efe6;
  --ink: #17181c;
  --muted: #4a463e;
  --panel: #fffdf8;
  --line: #ddd4c6;
}

body.profile[data-twist="cinema"] { --bg: #0c0b0d; }
body.profile[data-twist="lifestyle"] { --bg: #16120f; }
body.profile[data-twist="venues"] { --bg: #120f0c; }
body.profile[data-twist="pixels"] { --bg: #0d1216; }
body.profile[data-twist="ev"] { --bg: #f3f6f4; --panel: #ffffff; --line: #d5e2db; }
body.profile[data-twist="store"] { --bg: #f7f1e6; }
body.profile[data-twist="lighting"] { --bg: #f6f1e8; --panel: #fffdf8; }

a { color: inherit; }

img { max-width: 100%; display: block; }

.topbar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px var(--gutter) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.brand img { height: 42px; width: auto; }

.topbar-actions, .index-actions { display: flex; gap: 14px; align-items: center; }

.text-link, .index-actions a {
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.download {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: 999px;
}

.hero, .section, .colophon {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: end;
  padding-top: 36px;
  padding-bottom: 28px;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 12px var(--gutter) 0;
  border-radius: 18px;
  z-index: 0;
  pointer-events: none;
}

.hero-copy, .hero-media, .hero-motif { position: relative; z-index: 1; }

.kicker {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--accent);
}

.edition {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  letter-spacing: 0.01em;
  text-transform: none;
  font-size: 0.84rem;
  color: var(--muted);
}

h1, .display, h2, h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  margin: 8px 0 0;
  font-size: clamp(3rem, 6vw, 4.6rem);
  line-height: 0.92;
}

.display {
  margin: 10px 0 0;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.15;
  font-style: italic;
}

.standfirst, .intro, .section p, .card p, .steps p, .names p, .contact p, .colophon p, .heritage {
  color: var(--muted);
}

.standfirst { font-size: 1.12rem; max-width: 38rem; }

.heritage { margin: 12px 0 0; max-width: 38rem; font-size: 0.95rem; }

.edition a, .contact a, .family a { color: var(--ink); }

.hero-media img, .hero-motif, .project img, .project-fallback {
  width: 100%;
  border-radius: 16px;
}

.hero-media img, .hero-motif {
  min-height: 280px;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.18);
}

.hero-media figcaption, .project figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.84rem;
}

.section { padding-top: 8px; padding-bottom: 12px; }

h2 {
  margin: 28px 0 12px;
  font-size: 2.3rem;
  line-height: 1;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.cards, .projects, .index-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.card, .project, .index-card {
  grid-column: span 4;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  break-inside: avoid;
}

.card h3, .steps h3, .index-card h2 {
  margin: 0 0 6px;
  font-size: 1.45rem;
  line-height: 1.1;
}

.card p, .steps p, .index-card p { margin: 0; }

.projects { margin-top: 8px; }

.project { padding: 0; overflow: hidden; }
.project img, .project-fallback, .project-slot { border-radius: 0; aspect-ratio: 16 / 10; object-fit: cover; }
.project-fallback { min-height: 140px; background: linear-gradient(160deg, transparent, var(--accent)); opacity: 0.85; }
.project-slot {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 16px;
  background: linear-gradient(160deg, transparent, var(--accent));
}
body[data-twist="lighting"] .project-slot {
  background: linear-gradient(165deg, #f7f1e6 0%, #e7d7b8 100%);
}
.project-slot span {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ink);
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 22px;
}
.checklist li {
  display: grid;
  gap: 2px;
  padding: 12px 0 12px 16px;
  border-top: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  break-inside: avoid;
}
.checklist strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.1;
  color: var(--ink);
}
.checklist span { color: var(--muted); font-size: 0.92rem; }

.awards-line {
  margin: 0;
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
  background: var(--panel);
  border-radius: 0 12px 12px 0;
}
.project figcaption { padding: 12px 14px 16px; display: grid; }
.project strong { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.35rem; font-weight: 500; }
.project em { font-style: normal; color: var(--muted); font-size: 0.86rem; }

.names { margin-top: 16px; }
.names ul, .family {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.names li, .family li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.82rem;
}
.family { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.family li { border-radius: 12px; display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; }
.family a { text-decoration: none; font-weight: 600; }
.family span { color: var(--muted); text-align: right; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li { display: grid; grid-template-columns: 48px 1fr; gap: 12px; break-inside: avoid; }
.steps span { color: var(--accent); letter-spacing: 0.08em; font-size: 0.86rem; padding-top: 6px; }

.contact { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 14px; }
.contact span {
  display: block;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: var(--accent);
}

.index-card { display: flex; flex-direction: column; gap: 8px; border-top: 3px solid var(--accent); }
.index-card h2 { border: 0; margin: 0; padding: 0; font-size: 2rem; }
.index-card h2 a { text-decoration: none; }
.soon {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: var(--accent);
}

.colophon {
  padding-top: 10px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
  margin-top: 20px;
}
.colophon p { margin: 4px 0; font-size: 0.88rem; }

body[data-twist="group"] .hero::before {
  background: radial-gradient(circle at 100% 0%, rgba(201, 161, 75, 0.28), transparent 46%);
}
body[data-twist="tech"] .hero::before {
  background: linear-gradient(180deg, rgba(155, 176, 195, 0.2), transparent 70%);
}
body[data-twist="lifestyle"] .hero::before {
  background: radial-gradient(circle at 0% 0%, rgba(201, 149, 107, 0.38), transparent 48%);
}
body[data-twist="cinema"] .hero::before {
  background:
    radial-gradient(ellipse at 50% 120%, rgba(163, 59, 69, 0.45), transparent 55%),
    repeating-linear-gradient(90deg, transparent 0 28px, rgba(163, 59, 69, 0.16) 28px 29px);
}
body[data-twist="lighting"] .hero::before {
  background: linear-gradient(100deg, rgba(255, 252, 246, 0.2) 0 54%, #17181d 54% 100%);
}
body[data-twist="pixels"] .hero::before {
  background-image:
    linear-gradient(rgba(62, 198, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(62, 198, 255, 0.22) 1px, transparent 1px);
  background-size: 18px 18px;
}
body[data-twist="venues"] .hero::before {
  background: radial-gradient(ellipse at 70% 0%, rgba(224, 160, 69, 0.5), transparent 46%);
}
body[data-twist="ev"] .hero::before {
  background: radial-gradient(circle at 90% 10%, rgba(47, 143, 104, 0.28), transparent 36%);
}
body[data-twist="store"] .hero::before {
  border-bottom: 3px solid var(--accent);
  border-radius: 0;
}

.hero-motif {
  background:
    linear-gradient(160deg, transparent, rgba(201, 161, 75, 0.35)),
    repeating-linear-gradient(135deg, transparent 0 12px, rgba(201, 161, 75, 0.18) 12px 13px);
}

@media (max-width: 860px) {
  .hero, .contact, .family, .checklist { grid-template-columns: 1fr; }
  .card, .project, .index-card { grid-column: span 12; }
  .family span { text-align: left; }
  .topbar { align-items: flex-start; }
  body[data-twist="lighting"] .hero::before {
    background: linear-gradient(#f7f3ea 0 72%, #17181d 72% 100%);
  }
}

@page { size: A4; margin: 12mm 12mm 14mm; }

@media print {
  .download, .text-link { display: none !important; }
  .topbar { padding-top: 0; }
  .hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 8mm;
    align-items: start;
    padding-top: 4mm;
    break-inside: avoid;
  }
  .hero-media img, .hero-motif {
    min-height: 0;
    height: 62mm;
    max-height: 62mm;
    object-fit: cover;
  }
  .card, .project { grid-column: span 6; }
  .checklist { grid-template-columns: 1fr 1fr; }
  h2, h3 { break-after: avoid; }
  .project, .card, .steps li, .hero-media, .checklist li, .awards-line { break-inside: avoid; }
  body[data-twist="lighting"] .section { padding-top: 0; padding-bottom: 2px; }
  body[data-twist="lighting"] h2 { margin-top: 14px; margin-bottom: 8px; padding-top: 10px; font-size: 1.7rem; }
  body[data-twist="lighting"] .project img,
  body[data-twist="lighting"] .project-slot { aspect-ratio: 2 / 1; max-height: 34mm; object-fit: cover; }
  body[data-twist="lighting"] .project figcaption { padding: 6px 10px 8px; }
  body[data-twist="lighting"] .project strong { font-size: 1.15rem; }
  body[data-twist="lighting"] .checklist li { padding: 7px 0 7px 12px; }
  body[data-twist="lighting"] .card { padding: 10px 12px; }
  a { text-decoration: none; }
}
