/* ==========================================================================
   NEUTREON — one half of a photo
   Static site stylesheet
   ========================================================================== */

:root {
  --ink:          #0e0b09;
  --ink-2:        #161110;
  --ink-3:        #1e1816;
  --line:         rgba(224, 164, 94, .18);
  --line-soft:    rgba(240, 232, 220, .10);

  --paper:        #f2ece2;
  --paper-dim:    #bfb4a5;
  --paper-faint:  #8d8377;

  --amber:        #e0a45e;
  --amber-bright: #f4c186;
  --rust:         #b4573a;
  --brand-red:    #ff040d;   /* đỏ lấy từ logo studio — dùng cho điểm nhấn thương hiệu */

  --shell:  min(1180px, 100% - 2.75rem);
  --gutter: clamp(4.5rem, 9vw, 8.5rem);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans:  ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.72;
  letter-spacing: .006em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--amber); text-decoration-color: rgba(224, 164, 94, .38); text-underline-offset: .22em; }
a:hover { color: var(--amber-bright); }

:focus-visible {
  outline: 2px solid var(--amber-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

.shell { width: var(--shell); margin-inline: auto; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--amber); color: var(--ink);
  padding: .7rem 1.1rem; border-radius: 4px; font-weight: 700;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* --- typography ---------------------------------------------------------- */

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: .69rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 1.15rem;
  display: flex; align-items: center; gap: .85rem;
}
.eyebrow::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

.section-title {
  font-size: clamp(1.9rem, 1.25rem + 2.4vw, 3.15rem);
  letter-spacing: .01em;
}

.lede { font-size: clamp(1.06rem, 1rem + .38vw, 1.28rem); color: #e6ded2; }

.prose p { margin: 0 0 1.25rem; color: #ded5c8; max-width: 68ch; }
.prose p:last-child { margin-bottom: 0; }

/* --- buttons ------------------------------------------------------------- */

.btn {
  --btn-bg: var(--amber);
  --btn-fg: #17110c;
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.65rem;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--sans);
  font-size: .82rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
  text-decoration: none; border: 1px solid var(--btn-bg); border-radius: 2px;
  cursor: pointer;
  transition: transform .22s var(--ease), background .22s var(--ease), box-shadow .22s var(--ease);
}
.btn:hover {
  color: var(--btn-fg);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -14px rgba(224, 164, 94, .8);
}
.btn:active { transform: translateY(0); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--paper);
  border-color: rgba(240, 232, 220, .28);
}
.btn--ghost:hover {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--paper);
  box-shadow: 0 12px 30px -16px rgba(242, 236, 226, .55);
}
.btn--lg { padding: 1.1rem 2.1rem; font-size: .88rem; }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* --- header -------------------------------------------------------------- */

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  padding: 1.05rem 0;
  transition: background .3s var(--ease), border-color .3s var(--ease), padding .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgba(14, 11, 9, .9);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  padding: .7rem 0;
}
.site-header .shell { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.brand { display: block; color: var(--paper); text-decoration: none; }
.brand img { width: clamp(158px, 19vw, 205px); height: auto; }

.nav { display: flex; align-items: center; gap: clamp(1.1rem, 2.4vw, 2.2rem); }
.nav a {
  color: var(--paper-dim); text-decoration: none;
  font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600;
  padding: .35rem 0; position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--amber); transition: width .28s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--paper); }
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }
.nav .btn { color: #17110c; }

.nav-toggle {
  display: none;
  background: none; border: 1px solid rgba(240, 232, 220, .22); border-radius: 2px;
  color: var(--paper); padding: .5rem .7rem; cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; inset: 100% 0 auto; flex-direction: column; align-items: stretch;
    gap: 0; padding: .5rem var(--shell-pad, 1.375rem) 1.25rem;
    background: rgba(14, 11, 9, .97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: .85rem 0; border-bottom: 1px solid var(--line-soft); }
  .nav .btn { margin-top: .9rem; justify-content: center; border-bottom: 1px solid var(--amber); }
}

/* --- hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: min(100svh, 900px);
  display: flex; align-items: flex-end;
  padding: 9rem 0 clamp(3rem, 6vw, 5.5rem);
  overflow: hidden;
}

.hero__slides { position: absolute; inset: 0; z-index: 0; }
.hero__slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.6s var(--ease), transform 9s linear;
  transform: scale(1.06);
}
.hero__slide.is-active { opacity: 1; transform: scale(1.14); }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }

.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(14, 11, 9, .82) 0%, rgba(14, 11, 9, .3) 32%, rgba(14, 11, 9, .88) 82%, var(--ink) 100%),
    linear-gradient(90deg, rgba(14, 11, 9, .78) 0%, rgba(14, 11, 9, .12) 62%);
}

.hero .shell { position: relative; z-index: 2; }

.hero__badge {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .42rem .95rem;
  border: 1px solid var(--line);
  background: rgba(224, 164, 94, .08);
  border-radius: 100px;
  font-size: .68rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--amber); font-weight: 700;
  margin-bottom: 1.6rem;
}
.hero__badge .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--amber);
  box-shadow: 0 0 0 0 rgba(224, 164, 94, .7);
  animation: pulse 2.6s infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 9px rgba(224, 164, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(224, 164, 94, 0); }
}

.hero__title {
  font-size: clamp(2.6rem, 1.1rem + 6.4vw, 6.1rem);
  line-height: .98;
  letter-spacing: -.005em;
  margin: 0;
  text-wrap: balance;
}
.hero__title-vn {
  display: block;
  margin-top: .85rem;
  font-family: var(--serif);
  font-size: clamp(.95rem, .82rem + .55vw, 1.3rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: .16em;
  color: var(--paper-faint);
}

.hero__tagline {
  margin: 1.9rem 0 0;
  max-width: 34ch;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1rem + .75vw, 1.7rem);
  line-height: 1.42;
  color: #ece4d8;
}
.hero__tagline span { display: block; }

.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.4rem; }

.hero__dots { display: flex; gap: .5rem; margin-top: 2.8rem; }
.hero__dots button {
  width: 34px; height: 3px; padding: 0;
  border: 0; border-radius: 2px; cursor: pointer;
  background: rgba(242, 236, 226, .24);
  transition: background .3s var(--ease);
}
.hero__dots button[aria-current="true"] { background: var(--amber); }

.hero__scroll {
  position: absolute; z-index: 2; right: 0; bottom: clamp(3rem, 6vw, 5.5rem);
  writing-mode: vertical-rl;
  font-size: .66rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--paper-faint); text-decoration: none;
  display: flex; align-items: center; gap: .9rem;
}
.hero__scroll::after {
  content: ""; width: 1px; height: 54px;
  background: linear-gradient(var(--amber), transparent);
}
@media (max-width: 900px) { .hero__scroll { display: none; } }

/* --- sections ------------------------------------------------------------ */

.section { padding: var(--gutter) 0; position: relative; }
.section--alt { background: var(--ink-2); border-block: 1px solid var(--line-soft); }

.section__head { max-width: 62ch; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.section__head .section-title { margin-bottom: 1.4rem; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* key features */

.features {
  list-style: none; margin: 3.25rem 0 0; padding: 0;
  display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.features li {
  background: var(--ink);
  padding: clamp(1.6rem, 2.6vw, 2.15rem);
  transition: background .3s var(--ease);
}
.section--alt .features li { background: var(--ink-2); }
.features li:hover { background: var(--ink-3); }
.features .icon {
  width: 34px; height: 34px; color: var(--amber);
  margin-bottom: 1.15rem; stroke-width: 1.35;
}
.features h3 {
  font-size: 1.16rem; margin-bottom: .6rem; line-height: 1.3;
}
.features p { margin: 0; color: var(--paper-dim); font-size: .955rem; line-height: 1.62; }

/* gallery */

.gallery {
  display: grid; gap: 12px;
  grid-template-columns: 1fr;
  margin-top: 1rem;
}
@media (min-width: 560px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery button {
  position: relative; padding: 0; border: 1px solid var(--line-soft); border-radius: 2px;
  background: none; cursor: pointer; overflow: hidden; display: block;
  aspect-ratio: 16 / 10;
}
.gallery img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.88) contrast(1.03);
  transition: transform .55s var(--ease), filter .45s var(--ease);
}
.gallery button:hover img { transform: scale(1.06); filter: saturate(1) contrast(1.06); }
.gallery figcaption,
.gallery .cap {
  position: absolute; inset: auto 0 0; padding: 2.4rem .95rem .85rem;
  background: linear-gradient(transparent, rgba(10, 8, 7, .92));
  color: var(--paper); font-size: .82rem; text-align: left; letter-spacing: .02em;
  transform: translateY(6px); opacity: 0;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.gallery button:hover .cap,
.gallery button:focus-visible .cap { opacity: 1; transform: translateY(0); }

/* lightbox */

.lightbox {
  position: fixed; inset: 0; z-index: 150;
  display: none; place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(8, 6, 5, .95);
  backdrop-filter: blur(6px);
}
.lightbox[open], .lightbox.is-open { display: grid; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); }
.lightbox img {
  width: 100%; height: auto; max-height: 76svh; object-fit: contain;
  border: 1px solid var(--line);
}
.lightbox figcaption {
  margin-top: 1rem; text-align: center; color: var(--paper-dim);
  font-size: .9rem; letter-spacing: .04em;
}
.lightbox__close, .lightbox__nav {
  position: absolute; background: rgba(20, 16, 14, .8); color: var(--paper);
  border: 1px solid var(--line); border-radius: 2px; cursor: pointer;
  width: 46px; height: 46px; display: grid; place-items: center;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--amber); color: var(--ink); }
.lightbox__close { top: 1.25rem; right: 1.25rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav[data-dir="prev"] { left: 1.1rem; }
.lightbox__nav[data-dir="next"] { right: 1.1rem; }
.lightbox svg { width: 20px; height: 20px; }

/* --- studio -------------------------------------------------------------- */

.studio__logo {
  border: 1px solid var(--line);
  background:
    radial-gradient(70% 70% at 50% 42%, rgba(255, 4, 13, .10), transparent 70%),
    #0a0807;
  padding: clamp(2rem, 5vw, 3.25rem);
  display: grid; place-items: center;
}
.studio__logo img { width: min(280px, 100%); height: auto; }
.studio__logo + p { margin-top: 1rem; font-size: .8rem; color: var(--paper-faint); }

.stat-row {
  display: flex; flex-wrap: wrap; gap: clamp(1.75rem, 4vw, 3.5rem);
  margin-top: 2.75rem; padding-top: 2.25rem;
  border-top: 1px solid var(--line-soft);
}
.stat-row div { min-width: 120px; }
.stat-row dt { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--paper-faint); }
.stat-row dd { margin: .45rem 0 0; font-family: var(--serif); font-size: 1.28rem; color: var(--paper); }

/* --- newsletter ---------------------------------------------------------- */

.newsletter { text-align: center; }
.newsletter .section__head { margin-inline: auto; text-align: center; }
.newsletter .eyebrow { justify-content: center; }
.newsletter .eyebrow::after { display: none; }

.signup { display: flex; gap: .7rem; max-width: 540px; margin: 0 auto; flex-wrap: wrap; }
.signup label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.signup input {
  flex: 1 1 260px; min-width: 0;
  padding: 1.02rem 1.15rem;
  background: var(--ink-3); color: var(--paper);
  border: 1px solid rgba(240, 232, 220, .18); border-radius: 2px;
  font: inherit; font-size: .98rem;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.signup input::placeholder { color: var(--paper-faint); }
.signup input:focus { border-color: var(--amber); background: #221b17; outline: none; }
.signup input[aria-invalid="true"] { border-color: var(--rust); }
.signup .btn { flex: 0 0 auto; }

.consent {
  margin: 1.15rem auto 0; max-width: 52ch;
  font-size: .82rem; color: var(--paper-faint); line-height: 1.6;
}

.form-msg {
  margin: 1.35rem auto 0; max-width: 52ch;
  padding: .85rem 1.1rem; border-radius: 2px;
  font-size: .92rem;
  display: none;
}
.form-msg.is-visible { display: block; }
.form-msg--ok  { background: rgba(224, 164, 94, .1); border: 1px solid var(--line); color: var(--amber-bright); }
.form-msg--err { background: rgba(180, 87, 58, .12); border: 1px solid rgba(180, 87, 58, .45); color: #e79b7f; }

/* --- contact ------------------------------------------------------------- */

.contact-grid {
  display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  margin-top: 1rem;
}
.contact-grid > div { background: var(--ink); padding: clamp(1.6rem, 2.6vw, 2.1rem); }
.section--alt .contact-grid > div { background: var(--ink-2); }
.contact-grid h3 { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase;
  font-family: var(--sans); color: var(--paper-faint); margin-bottom: .8rem; }
.contact-grid p { margin: 0; font-size: 1.02rem; }
.contact-grid small { display: block; margin-top: .5rem; color: var(--paper-faint); font-size: .82rem; }

.socials { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .35rem; }
.socials a {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--line-soft); border-radius: 2px;
  color: var(--paper-dim);
  transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.socials a:hover { color: var(--amber); border-color: var(--line); background: var(--ink-3); }
.socials svg { width: 19px; height: 19px; }

/* --- footer -------------------------------------------------------------- */

.site-footer {
  background: #0a0807;
  border-top: 1px solid var(--line-soft);
  padding: clamp(3.25rem, 6vw, 4.75rem) 0 2.25rem;
  font-size: .9rem;
}
.footer-grid {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, .8fr);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

.footer-grid h4 {
  font-family: var(--sans); font-size: .68rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--paper-faint); margin-bottom: 1.05rem;
}
.footer-grid p { margin: 0 0 .4rem; color: var(--paper-dim); line-height: 1.65; }
.footer-grid strong { color: var(--paper); font-weight: 600; letter-spacing: .02em; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-links a { color: var(--paper-dim); text-decoration: none; }
.footer-links a:hover { color: var(--amber); }

.footer-bottom {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-soft);
  color: var(--paper-faint);
  font-size: .82rem;
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between;
}

/* --- inner pages --------------------------------------------------------- */

.page-head {
  padding: clamp(9rem, 16vw, 12rem) 0 clamp(2.75rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(120% 140% at 12% 0%, rgba(224, 164, 94, .13), transparent 58%),
    var(--ink-2);
}
.page-head h1 { font-size: clamp(2.3rem, 1.4rem + 3.4vw, 4rem); margin-bottom: 1.2rem; }
.page-head p { max-width: 70ch; color: #ded5c8; margin: 0; }
.page-head .meta { margin-top: 1.1rem; font-size: .82rem; color: var(--paper-faint); letter-spacing: .04em; }

.fact-sheet { width: 100%; border-collapse: collapse; margin-top: .5rem; }
.fact-sheet th, .fact-sheet td {
  text-align: left; padding: 1.05rem 1.15rem;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.fact-sheet th {
  width: 32%; min-width: 150px;
  font-family: var(--sans); font-weight: 600;
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--paper-faint);
  padding-top: 1.35rem;
}
.fact-sheet td { color: var(--paper); font-size: 1.02rem; }
.fact-sheet tr:hover td, .fact-sheet tr:hover th { background: rgba(224, 164, 94, .04); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); }

.quote-block {
  border-left: 2px solid var(--amber);
  padding: .25rem 0 .25rem 1.6rem;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.05rem, .98rem + .45vw, 1.3rem);
  line-height: 1.6;
  color: #e9e1d5;
}
.copy-row { display: flex; gap: .7rem; align-items: center; margin-top: 1.4rem; flex-wrap: wrap; }
.copy-row .hint { font-size: .82rem; color: var(--paper-faint); }

.asset-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  margin-top: 1rem;
}
.asset-card {
  border: 1px solid var(--line-soft);
  background: var(--ink-2);
  display: flex; flex-direction: column;
}
.asset-card__thumb {
  position: relative;
  aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line-soft);
  background: var(--ink-3); color: var(--amber);
}
.asset-card__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* logo trên nền trong suốt: thu vừa khung, chừa lề, không cắt */
.asset-card__thumb--logo {
  background:
    radial-gradient(70% 70% at 50% 45%, rgba(255, 4, 13, .10), transparent 70%),
    #0a0807;
}
/* padding trên chính <img> (box-sizing: border-box) mới thu nhỏ được vùng của
   object-fit: contain — với ảnh absolute thì width/height:auto không kéo giãn theo inset */
.asset-card__thumb--logo img { object-fit: contain; padding: clamp(1rem, 3vw, 1.9rem); }
.asset-card__body { padding: 1.35rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.asset-card h3 { font-size: 1.1rem; }
.asset-card p { margin: 0; font-size: .88rem; color: var(--paper-dim); flex: 1; }
.asset-card .btn { align-self: flex-start; margin-top: .6rem; padding: .72rem 1.25rem; font-size: .74rem; }

.download-all {
  margin-top: 2.5rem; padding: clamp(1.75rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  background: linear-gradient(120deg, rgba(224, 164, 94, .09), transparent 65%), var(--ink-2);
  display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between;
}
.download-all h3 { font-size: 1.35rem; margin-bottom: .45rem; }
.download-all p { margin: 0; color: var(--paper-dim); font-size: .93rem; }

/* legal / privacy */

.legal { max-width: 76ch; }
.legal h2 {
  font-size: clamp(1.25rem, 1.1rem + .7vw, 1.6rem);
  margin: 3rem 0 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line-soft);
}
.legal > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal h2 .num { color: var(--amber); font-size: .78em; margin-right: .6rem; }
.legal p, .legal li { color: #ded5c8; }
.legal p { margin: 0 0 1.1rem; }
.legal ul { margin: 0 0 1.1rem; padding-left: 1.2rem; display: grid; gap: .85rem; }
.legal li::marker { color: var(--amber); }
.legal strong { color: var(--paper); }

.toc {
  border: 1px solid var(--line-soft); background: var(--ink-2);
  padding: 1.5rem 1.6rem; border-radius: 2px;
  position: sticky; top: 6.5rem;
}
.toc h2 { font-family: var(--sans); font-size: .68rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--paper-faint); margin-bottom: 1rem; }
.toc ol { margin: 0; padding-left: 1.15rem; display: grid; gap: .65rem; font-size: .9rem; }
.toc li::marker { color: var(--amber); }
.toc a { color: var(--paper-dim); text-decoration: none; }
.toc a:hover { color: var(--amber); }
@media (max-width: 900px) { .toc { position: static; margin-bottom: 2.5rem; } }

/* dev note (visible only with ?dev in URL — see main.js) */
.dev-note {
  display: none;
  margin-top: 1rem; padding: .7rem .9rem;
  border-left: 2px solid var(--rust);
  background: rgba(180, 87, 58, .08);
  font-size: .82rem; color: #e0b3a2; font-style: italic;
}
body.show-dev-notes .dev-note { display: block; }

/* --- reveal on scroll ---------------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero__slide.is-active { transform: scale(1.06); }
}

html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
