/* ============================================================
   DIVIN — Video Editor Portfolio
   Dark cinematic theme. Edit the tokens below to rebrand.
   ============================================================ */

:root {
  /* Colour tokens */
  --bg:          #0a0a0b;
  --bg-alt:      #101013;
  --surface:     #16161a;
  --surface-2:   #1d1d22;
  --line:        #2a2a31;
  --text:        #f2f2f4;
  --text-dim:    #9a9aa5;
  --accent:      #d7ff4a;
  --accent-hover: #e4ff8e;
  --accent-rgb:  215, 255, 74;
  --accent-light: #ecffab;
  --accent-soft: rgba(215, 255, 74, 0.14);
  --signal:      #ff6b45;

  /* Type */
  --font-display: 'Bebas Neue', 'Impact', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --wrap: 1200px;
  --wrap-narrow: 760px;
  --radius: 14px;
  --nav-h: 72px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
  font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}
.wrap--narrow { max-width: var(--wrap-narrow); }

.section { padding: 120px 0; }
.section--alt { background: var(--bg-alt); }

.section__head { max-width: 640px; margin-bottom: 56px; }

.section__head h2 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 0.98;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.section__lede {
  margin-top: 18px;
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 55ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--accent);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-pad: 15px 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--btn-pad);
  border-radius: 100px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, color 0.25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }

.btn--primary { background: var(--accent); color: #11130a; }
.btn--primary:hover { background: var(--accent-hover); }

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.04);
}
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }

.btn--sm { --btn-pad: 11px 22px; font-size: 0.85rem; background: var(--accent); color: #fff; }
.btn--sm:hover { background: var(--accent-hover); }

.btn--full { width: 100%; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(10, 10, 11, 0.82);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--line);
}

.nav__inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.logo span { color: var(--accent); }

.nav__links { display: flex; gap: 34px; }
.nav__links a {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s;
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.28s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + 40px) 0 80px;
  background: #11130d;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: '';
  position: absolute;
  top: 12%;
  right: 12%;
  width: min(34vw, 460px);
  height: min(64vw, 760px);
  border: 1px solid rgba(var(--accent-rgb), 0.42);
  border-radius: 50% 50% 0 0;
  transform: rotate(16deg);
  z-index: 1;
}
.hero::after {
  content: 'DV / 01';
  position: absolute;
  right: max(24px, calc((100vw - var(--wrap)) / 2));
  bottom: 42px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  z-index: 1;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(10, 10, 11, 0.16);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 0.9;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero__title em {
  font-style: normal;
  color: var(--accent);
}

.hero__sub {
  max-width: 52ch;
  color: #d5d5dc;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  margin-bottom: 38px;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 64px; }

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.75fr);
  gap: clamp(36px, 7vw, 100px);
  align-items: center;
}
.about__copy h2 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 0.98;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.about__copy > p:not(.eyebrow) {
  max-width: 60ch;
  margin-top: 20px;
  color: var(--text-dim);
}
.about__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.about__skills li {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: #c8c8d2;
  font-size: 0.82rem;
}
.about__result {
  position: relative;
  padding: 36px 30px;
  overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb), 0.38);
  border-radius: var(--radius);
  background: #181b0d;
}
.about__result::before {
  content: '';
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  background: var(--signal);
}
.about__result > * { position: relative; }
.about__label {
  color: var(--accent-light);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.about__result strong {
  display: block;
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 6.5rem);
  line-height: 0.82;
  color: var(--text);
}
.about__result span {
  display: block;
  margin-top: 10px;
  color: var(--accent-light);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.about__result > p:last-child {
  margin-top: 25px;
  color: #d0d0d8;
  font-size: 0.9rem;
}

/* ============================================================
   FILTERS
   ============================================================ */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.filter {
  padding: 9px 20px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: all 0.24s var(--ease);
}
.filter:hover { color: var(--text); border-color: var(--text-dim); }
.filter.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ============================================================
   WORK GRID
   ============================================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 26px;
}

.work {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s;
}
.work:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--accent-rgb), 0.5);
  box-shadow: 0 22px 50px -18px rgba(0, 0, 0, 0.85);
}

/* Vertical short-form cards get a taller aspect ratio */
.work--vertical .work__media { aspect-ratio: 4 / 5; }

.work__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-2);
}
.work__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease), filter 0.4s;
}
.work:hover .work__media img { transform: scale(1.06); filter: brightness(0.72); }

.work__placeholder {
  display: grid;
  place-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  padding: 28px;
  text-align: center;
  background: var(--surface-2);
}
.work__placeholder span {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.work__placeholder small {
  color: var(--text-dim);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.work--placeholder { cursor: default; }
.work--placeholder:hover {
  transform: none;
  border-color: var(--line);
  box-shadow: none;
}

.work__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.work:hover .work__play { opacity: 1; }
.work__play span {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 0 var(--accent-soft);
  animation: pulse 2s infinite;
}
.work__play svg { width: 22px; height: 22px; fill: #fff; margin-left: 3px; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.45); }
  70%  { box-shadow: 0 0 0 18px rgba(var(--accent-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); }
}

.work__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 11px;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(10, 10, 11, 0.75);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
}

.work__body { padding: 20px 22px 24px; }
.work__body h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 6px; }
.work__client {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.work__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.work__stats li {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 100px;
}

/* Hidden by filter */
.work.is-hidden { display: none; }

/* ============================================================
   SERVICE CARDS
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.card {
  position: relative;
  padding: 34px 28px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.3s;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.card:hover { transform: translateY(-5px); border-color: rgba(255, 255, 255, 0.2); }
.card:hover::before { transform: scaleX(1); }
.card:nth-child(2) { border-color: rgba(var(--accent-rgb), 0.42); }
.card:nth-child(2)::before { background: var(--signal); }
.card:nth-child(3) { background: #151914; }

.card__num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--accent);
  opacity: 0.6;
  margin-bottom: 14px;
}
.card h3 { font-size: 1.22rem; font-weight: 600; margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: 0.94rem; }

.card__list { margin: 18px 0 22px; display: grid; gap: 8px; }
.card__list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.88rem;
  color: #c2c2cc;
}
.card__list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.card__price {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text) !important;
}

.services__note {
  margin-top: 34px;
  color: var(--text-dim);
  font-size: 0.95rem;
}
.services__note a {
  color: var(--accent);
  border-bottom: 1px solid currentColor;
}

/* ============================================================
   QUOTES
   ============================================================ */
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
}
.quote {
  position: relative;
  padding: 40px 30px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.quote::before {
  content: '\201C';
  position: absolute;
  top: 6px;
  left: 22px;
  font-family: var(--font-display);
  font-size: 4.5rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.35;
}
.quote p { font-size: 1rem; color: #dcdce3; margin-bottom: 22px; }
.quote footer { padding-top: 18px; border-top: 1px solid var(--line); }
.quote footer strong {
  display: block;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
}
.quote footer span { font-size: 0.82rem; color: var(--text-dim); }
.quotes--single { grid-template-columns: minmax(0, 680px); }

/* ============================================================
   FORM
   ============================================================ */
.contact { background: var(--bg-alt); }

.form {
  display: grid;
  gap: 20px;
  padding: 38px 34px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field { display: grid; gap: 8px; }
.field label {
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #c8c8d2;
}
.field label span { color: var(--accent); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text);
  font: inherit;
  font-size: 0.94rem;
  transition: border-color 0.22s, box-shadow 0.22s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder,
.field textarea::placeholder { color: #5c5c68; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field select { appearance: none; cursor: pointer; }

.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #ff5a5a; }

.label-optional {
  color: var(--text-dim) !important;
  font-weight: 400;
}

.form__group {
  display: grid;
  gap: 12px;
  padding: 0;
  border: 0;
}
.form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form__group legend {
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #c8c8d2;
}
.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text-dim);
  font-size: 0.87rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.check:hover {
  border-color: rgba(var(--accent-rgb), 0.6);
  color: var(--text);
}
.check input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
  flex: 0 0 auto;
}
.check:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text);
}

.field__error {
  font-size: 0.8rem;
  color: #ff7a7a;
  min-height: 1em;
}

.form__status {
  font-size: 0.9rem;
  min-height: 1.4em;
  text-align: center;
}
.form__status.is-ok { color: #4ade80; }
.form__status.is-bad { color: #ff7a7a; }

.form__alt {
  text-align: center;
  font-size: 0.86rem;
  color: var(--text-dim);
}
.form__alt a { color: var(--accent); border-bottom: 1px solid currentColor; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 64px 0 28px;
  border-top: 1px solid var(--line);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 34px;
}
.footer__tag {
  margin-top: 12px;
  max-width: 34ch;
  font-size: 0.9rem;
  color: var(--text-dim);
}
.footer__social { display: flex; flex-wrap: wrap; gap: 24px; }
.footer__social a {
  font-size: 0.86rem;
  color: var(--text-dim);
  transition: color 0.2s;
}
.footer__social a:hover { color: var(--accent); }

.footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--text-dim);
}
.footer__base a:hover { color: var(--accent); }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 5, 6, 0.94);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.3s;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }

.lightbox__stage {
  width: 100%;
  max-width: 1000px;
  transform: scale(0.96);
  transition: transform 0.35s var(--ease);
}
.lightbox.is-open .lightbox__stage { transform: scale(1); }

.lightbox__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
}
/* Vertical (9:16) videos */
.lightbox__frame.is-vertical {
  aspect-ratio: 9 / 16;
  max-height: 78svh;
  margin-inline: auto;
  width: auto;
}
.lightbox__frame iframe,
.lightbox__frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.lightbox__ended {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.lightbox__meta { padding-top: 20px; text-align: center; }
.lightbox__meta h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 4px; }
.lightbox__meta p { font-size: 0.9rem; color: var(--text-dim); }

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 26px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  line-height: 1;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}
.lightbox__close:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: rotate(90deg);
}

body.is-locked { overflow: hidden; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .section { padding: 88px 0; }
  .about { grid-template-columns: 1fr; }

  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: rgba(10, 10, 11, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
    transform: translateY(-120%);
    transition: transform 0.4s var(--ease);
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a {
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
    color: var(--text);
  }
  .nav__links a::after { display: none; }

  .nav__toggle { display: flex; }
  .nav .btn--sm { display: none; }
}

@media (max-width: 620px) {
  .wrap { padding-inline: 18px; }
  .nav__inner { padding-inline: 18px; }

  .section { padding: 72px 0; }
  .section__head { margin-bottom: 40px; }

  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .grid { grid-template-columns: 1fr; }

  .form { padding: 26px 20px; }
  .form__row { grid-template-columns: 1fr; }
  .check-grid { grid-template-columns: 1fr; }

  .lightbox__close { top: 12px; right: 14px; }
  .footer__base { flex-direction: column; }
}

/* ---------- Motion / print preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__bg { display: none; }
}

@media print {
  .nav, .lightbox, .hero__bg { display: none !important; }
  body { background: #fff; color: #000; }
}
