:root {
  --paper: #f3f0e8;
  --paper-2: #e6e1d4;
  --white: #fbfaf6;
  --ink: #14161a;
  --ink-soft: #2c3138;
  --muted: #5c6570;
  --line: rgba(20, 22, 26, 0.12);
  --coral: #e23b1c;
  --coral-deep: #c23014;
  --shadow: 0 24px 60px rgba(20, 22, 26, 0.12);
  --display: "Syne", sans-serif;
  --sans: "Outfit", sans-serif;
  --max: 1160px;
  --nav-h: 78px;
  --radius: 28px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.nav-open { overflow: hidden; }

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

a { color: inherit; }

button, input, textarea { font: inherit; color: inherit; }

::selection { background: #f6c7bb; color: var(--ink); }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 0.9rem;
  z-index: 80;
  border-radius: 8px;
}
.skip:focus { top: 1rem; }

.wrap {
  width: min(var(--max), calc(100% - 2.4rem));
  margin-inline: auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--nav-h);
  width: 100%;
  padding-inline: max(1.2rem, calc((100% - var(--max)) / 2));
  background: rgba(243, 240, 232, 0.94);
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled { border-bottom-color: var(--line); }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.04em;
  font-size: 1.2rem;
}

.logo img { width: 32px; height: 32px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--ink); }

.nav-links a[aria-current="page"] { box-shadow: inset 0 -1.5px 0 var(--coral); }

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  text-decoration: none;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  padding: 0.92rem 1.25rem;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn:hover { background: var(--coral); border-color: var(--coral); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.btn-small { padding: 0.7rem 1rem; font-size: 0.95rem; }

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
  padding: 0.6rem 0 2rem;
}

.kicker {
  margin: 0 0 0.9rem;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--coral-deep);
  font-weight: 500;
}

h1, h2, h3, .logo {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.96;
}

h1 {
  margin: 0;
  font-size: clamp(3.3rem, 6.6vw, 6.3rem);
}

.lede {
  margin: 1.3rem 0 0;
  max-width: 38rem;
  color: var(--ink-soft);
  font-size: 1.16rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.hero-figure {
  margin: 0;
  position: relative;
}

.hero-figure img {
  width: 100%;
  height: min(68vh, 620px);
  object-fit: cover;
  object-position: center 42%;
  border-radius: 36px;
  background: #ddd8ce;
  box-shadow: var(--shadow);
  animation: floaty 7.5s ease-in-out infinite;
}

.hero-figure figcaption {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-copy > * {
  animation: rise 0.8s ease both;
}
.hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.24s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 0.95rem 0;
  margin-bottom: 1rem;
}

.marquee-track {
  display: flex;
  gap: 2.2rem;
  width: max-content;
  animation: ticker 28s linear infinite;
  font-family: var(--display);
  letter-spacing: -0.04em;
  font-size: 1.15rem;
}

.marquee span { white-space: nowrap; }
.dot { color: var(--coral); }

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.section { padding: 4.5rem 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 2rem;
}

.section-head h2,
.block h2,
.page-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  margin: 0;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
}

.split img,
.frame img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
}

.angle { aspect-ratio: 4 / 3; }
.macro { aspect-ratio: 4 / 3; object-position: center; }
.desk { aspect-ratio: 16 / 9; }

.laws {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.law, .card, .spec-card, .journal-card, .info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.4rem 1.35rem 1.5rem;
}

.law-num, .step-num {
  font-family: var(--display);
  color: var(--coral);
  letter-spacing: -0.04em;
  font-size: 1.05rem;
}

.law h3, .card h3, .journal-card h3, .step h3 {
  font-size: 1.55rem;
  margin: 0.7rem 0 0.55rem;
  line-height: 1.05;
}

.law p, .card p, .journal-card p, .step p, .info-card p { margin: 0; color: var(--ink-soft); }
.info-card a { display: block; margin: 0.35rem 0; text-decoration: none; color: var(--ink-soft); }
.info-card a:hover { color: var(--coral-deep); }

.steps {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2rem;
  align-items: center;
}

.screen {
  background: #17181c;
  color: #f6f3ec;
  border-radius: 32px;
  padding: 1.4rem;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.screen::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -40px;
  top: -50px;
  background: radial-gradient(circle, rgba(226, 59, 28, 0.45), transparent 68%);
  animation: glow 4.5s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.screen-top, .screen-foot { position: relative; z-index: 1; font-size: 0.92rem; color: #c8c2b6; }
.screen-body { position: relative; z-index: 1; }
.screen-body strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(2rem, 3vw, 2.8rem);
  letter-spacing: -0.045em;
  line-height: 1;
  font-weight: 700;
  margin-bottom: 0.8rem;
}
.screen-body p { margin: 0; color: #d9d3c7; max-width: 18rem; }

.hold {
  margin-top: 1.6rem;
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}
.hold span {
  display: block;
  height: 100%;
  width: 40%;
  background: var(--coral);
  border-radius: inherit;
  animation: hold 2.8s ease-in-out infinite;
}
@keyframes hold {
  0% { width: 8%; }
  70% { width: 100%; }
  100% { width: 100%; }
}

.step-list { display: grid; gap: 0.8rem; }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
}
.step h3 { margin-top: 0.15rem; font-size: 1.35rem; }

.anatomy {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  align-items: stretch;
}

.points { display: grid; gap: 0.75rem; }
.point {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.8rem;
  padding: 0.95rem 0;
  border-top: 1px solid var(--line);
}
.point strong { font-family: var(--display); letter-spacing: -0.03em; }
.point p { margin: 0.2rem 0 0; color: var(--muted); }

.bleed {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  min-height: 520px;
}
.bleed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.bleed-card {
  position: relative;
  z-index: 1;
  width: min(420px, calc(100% - 2rem));
  margin: 2rem;
  background: rgba(251, 250, 246, 0.92);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 1.5rem;
}
.bleed-card h2 { font-size: clamp(2rem, 3vw, 2.8rem); margin: 0 0 0.7rem; }

.journal-grid, .card-grid, .info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.journal-card { text-decoration: none; display: flex; flex-direction: column; min-height: 100%; transition: transform 0.3s ease; }
.journal-card:hover { transform: translateY(-6px); }
.journal-card span { color: var(--coral-deep); font-size: 0.88rem; letter-spacing: 0.08em; text-transform: uppercase; }
.journal-card h3 { flex: 1; }

.studio {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  background: #17181c;
  color: #f6f3ec;
  border-radius: 32px;
  padding: clamp(1.5rem, 4vw, 3rem);
}
.studio p { color: #d5cfc3; }
.studio a { color: #f6f3ec; }
.studio h2 { font-size: clamp(2.2rem, 4vw, 3.5rem); margin: 0 0 0.8rem; }

.page-hero { padding: 2.4rem 0 1rem; }
.page-hero .lede { margin-top: 1rem; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 1.2rem;
}
.crumbs a { color: var(--ink-soft); }

.prose { max-width: 70ch; }
.prose p, .prose li { color: var(--ink-soft); font-size: 1.12rem; line-height: 1.7; }
.prose h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 2.4rem 0 0.7rem; }
.prose ul { padding-left: 1.2rem; }
.prose figure { margin: 1.6rem 0; }
.prose figcaption { color: var(--muted); font-size: 0.92rem; margin-top: 0.55rem; }

.related { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }

.spec {
  width: 100%;
  border-collapse: collapse;
}
.spec th, .spec td {
  text-align: left;
  padding: 0.95rem 0.2rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.spec th { width: 34%; font-weight: 500; }

details.faq {
  border-top: 1px solid var(--line);
  padding: 1.05rem 0;
}
details.faq:last-of-type { border-bottom: 1px solid var(--line); }
details.faq summary {
  cursor: pointer;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
  list-style: none;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+";
  float: right;
  color: var(--coral);
}
details.faq[open] summary::after { content: "–"; }
details.faq p { color: var(--ink-soft); margin: 0.75rem 0 0.2rem; max-width: 68ch; }

.form {
  display: grid;
  gap: 0.85rem;
  max-width: 36rem;
}
.form label { display: grid; gap: 0.35rem; font-size: 0.95rem; }
.form input, .form textarea {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem 0.9rem;
  outline: none;
}
.form input:focus, .form textarea:focus { border-color: var(--ink); }
.form textarea { min-height: 150px; resize: vertical; }
.form-error { color: var(--coral-deep); margin: 0; }

.legal h2 { font-size: 1.55rem; margin: 2rem 0 0.4rem; }
.legal p, .legal li { color: var(--ink-soft); }
.table-wrap { overflow-x: auto; }
table.cookies { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
table.cookies th, table.cookies td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 0.7rem 0.5rem 0.7rem 0;
  vertical-align: top;
}

.footer {
  margin-top: 2rem;
  padding: 3rem 0 5.5rem;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 1.5rem;
}
.footer-lead { color: var(--muted); max-width: 26rem; }
.footer-label {
  margin: 0 0 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--muted);
}
.footer a { display: block; text-decoration: none; margin: 0.28rem 0; color: var(--ink-soft); }
.footer a:hover { color: var(--ink); }
.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}
.footer-base a { display: inline; }

.cookie[hidden] { display: none; }
.cookie {
  position: fixed;
  z-index: 60;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  width: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #17181c;
  color: #f6f3ec;
  border-radius: 22px;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
  animation: rise 0.45s ease both;
}
.cookie p { margin: 0; color: #ddd6cb; font-size: 0.98rem; }
.cookie a { color: #fff; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; flex: none; }
.cookie .btn { background: var(--coral); border-color: var(--coral); color: white; }
.cookie .btn-ghost { background: transparent; color: #f6f3ec; border-color: rgba(255,255,255,0.28); }
.cookie .btn-ghost:hover { background: #f6f3ec; color: #17181c; }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-in { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }

@media (max-width: 900px) {
  .hero, .split, .steps, .anatomy, .studio, .footer-grid { grid-template-columns: 1fr; }
  .laws, .journal-grid, .card-grid, .info-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: #f3f0e8;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.2rem 1.2rem 2rem;
    gap: 1rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
  }
  .nav-links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links .btn { width: 100%; }
  .point { grid-template-columns: 1fr; gap: 0.2rem; }
  .footer-base { flex-direction: column; }
  .cookie { flex-direction: column; align-items: stretch; }
  h1 { font-size: clamp(2.8rem, 12vw, 4.2rem); }
  .hero-figure img { height: auto; aspect-ratio: 1; }
  .bleed { min-height: 460px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}
