/* ===========================================================
   Lenze Land Surveying — design tokens + components
   Art direction: precise, instrument-grade. Warm neutral greys keyed
   to the logo black (#231F20), brand red accent (#ED1C24),
   Display + technical labels use Simplex (Hershey single-stroke, the
   drafting standard for survey plans). Body copy stays in Satoshi.
   =========================================================== */

/* Simplex — rebuilt from AVHershey-OTF by Stewart Russell (CC0/WTFPL),
   after A. V. Hershey's public-domain vector fonts. */
@font-face {
  font-family: 'Simplex';
  src: url('./assets/fonts/Simplex-Regular.woff2') format('woff2');
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Simplex';
  src: url('./assets/fonts/Simplex-Bold.woff2') format('woff2');
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}

:root, [data-theme='light'] {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);

  /* Spacing */
  --space-1: 0.25rem;  --space-2: 0.5rem;  --space-3: 0.75rem;
  --space-4: 1rem;     --space-5: 1.25rem; --space-6: 1.5rem;
  --space-8: 2rem;     --space-10: 2.5rem; --space-12: 3rem;
  --space-16: 4rem;    --space-20: 5rem;   --space-24: 6rem;
  --space-32: 8rem;

  /* Brand constants — from Lenze-Logo-Final.ai */
  --brand-red: #ed1c24;
  --brand-black: #231f20;

  /* Surfaces — warm paper */
  --color-bg: #f6f5f5;
  --color-surface: #ffffff;
  --color-surface-2: #fbfafa;
  --color-surface-offset: #eeecec;
  --color-surface-offset-2: #e5e2e2;
  --color-ink: #1a1718;
  --color-divider: #e4e1e1;
  --color-border: #d5d1d1;

  /* Text */
  --color-text: #231f20;
  --color-text-muted: #5f5859;
  --color-text-faint: #938c8d;
  --color-text-inverse: #f6f5f5;

  /* Accent — brand red, darkened for text/UI contrast */
  --color-primary: #d6141d;
  --color-primary-hover: #ed1c24;
  --color-primary-active: #b30f17;
  --color-primary-highlight: #f8e3e3;

  --logo-void: var(--color-bg);

  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.625rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 1px 2px oklch(0.22 0.008 20 / 0.08);
  --shadow-md: 0 4px 14px oklch(0.22 0.008 20 / 0.1);
  --shadow-lg: 0 16px 40px oklch(0.22 0.008 20 / 0.15);

  --content-narrow: 660px;
  --content-default: 980px;
  --content-wide: 1240px;

  --font-display: 'Simplex', 'Cabinet Grotesk', 'Helvetica Neue', sans-serif;
  --font-body: 'Satoshi', 'Helvetica Neue', sans-serif;
  --font-mono: 'Simplex', ui-monospace, monospace;

  --hero-scrim: linear-gradient(100deg, oklch(0.19 0.01 25 / 0.92) 0%, oklch(0.19 0.01 25 / 0.74) 45%, oklch(0.21 0.012 25 / 0.22) 100%);
}

[data-theme='dark'] {
  --color-bg: #121011;
  --color-surface: #1a1718;
  --color-surface-2: #1f1c1d;
  --color-surface-offset: #1c1a1a;
  --color-surface-offset-2: #262223;
  --color-ink: #0a0808;
  --color-divider: #262223;
  --color-border: #332e2f;
  --color-text: #dbd6d7;
  --color-text-muted: #968e8f;
  --color-text-faint: #6b6465;
  --color-text-inverse: #1a1718;
  --color-primary: #ff6b70;
  --color-primary-hover: #ff8a8e;
  --color-primary-active: #ffa1a4;
  --color-primary-highlight: #2c1c1d;
  --logo-void: var(--color-bg);
  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.4);
  --shadow-md: 0 4px 14px oklch(0 0 0 / 0.45);
  --shadow-lg: 0 16px 40px oklch(0 0 0 / 0.55);
  --hero-scrim: linear-gradient(100deg, oklch(0.14 0.008 25 / 0.94) 0%, oklch(0.14 0.008 25 / 0.8) 45%, oklch(0.15 0.01 25 / 0.34) 100%);
}

/* ---------------- primitives ---------------- */

.wrap { width: 100%; max-width: var(--content-wide); margin-inline: auto; padding-inline: clamp(var(--space-5), 5vw, var(--space-12)); }

section { padding-block: clamp(var(--space-16), 9vw, var(--space-32)); }
section + section { border-top: 1px solid var(--color-divider); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  display: flex; align-items: center; gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.eyebrow::before {
  content: ''; width: 26px; height: 1px; background: currentColor; flex: none;
}

h2.section-title { font-family: var(--font-display); font-size: var(--text-xl); letter-spacing: 0; max-width: 24ch; }
.section-lede { color: var(--color-text-muted); margin-top: var(--space-5); max-width: 58ch; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: 0 var(--space-6);
  font-size: var(--text-sm); font-weight: 700; letter-spacing: 0.01em;
  border-radius: var(--radius-md); text-decoration: none; border: 1px solid transparent;
  white-space: nowrap;
}
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { background: var(--color-primary-hover); transform: translateY(-1px); }
/* dark mode keeps the true brand red on solid buttons — the lighter red is
   reserved for text-level accents where contrast rules demand it */
[data-theme='dark'] .btn--primary { background: #d6141d; color: #fff; }
[data-theme='dark'] .btn--primary:hover { background: var(--brand-red); }
.btn--ghost { border-color: color-mix(in oklab, currentColor 34%, transparent); color: inherit; }
.btn--ghost:hover { border-color: currentColor; background: color-mix(in oklab, currentColor 8%, transparent); }
.btn--block { width: 100%; }

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

.header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in oklab, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-interactive), background var(--transition-interactive);
}
.header--scrolled { border-bottom-color: var(--color-divider); }
.header__inner { display: flex; align-items: center; gap: var(--space-6); min-height: 88px; }

.brand { display: flex; align-items: center; gap: var(--space-3); text-decoration: none; color: var(--color-text); flex: none; }
.brand__mark { color: var(--color-primary); flex: none; }

/* brand lockup from Lenze-Logo-Final.ai: black strokes take currentColor,
   counters take --logo-void so the mark inverts cleanly in dark mode */
.logo-svg { display: block; height: auto; flex: none; }
.logo-svg--header { width: 136px; }
.logo-svg--footer { width: 152px; }
.footer { --logo-void: var(--color-bg); }
.header { --logo-void: var(--color-bg); }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 700; letter-spacing: 0; }
.brand__sub { font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-text-faint); }

.nav { display: flex; gap: var(--space-6); margin-inline-start: auto; }
.nav a { font-size: var(--text-sm); color: var(--color-text-muted); text-decoration: none; white-space: nowrap; }
.nav a:hover { color: var(--color-primary); }

.header__actions { display: flex; align-items: center; gap: var(--space-3); flex: none; }
.header__phone {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-mono); font-size: var(--text-sm); font-weight: 500;
  color: var(--color-text); text-decoration: none;
}
.header__phone:hover { color: var(--color-primary); }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid var(--color-border); border-radius: var(--radius-md); color: var(--color-text-muted);
}
.icon-btn:hover { color: var(--color-primary); border-color: var(--color-primary); }

.menu-btn { display: none; }

@media (max-width: 1180px) { .nav { gap: var(--space-5); } .header__phone { display: none; } }

@media (max-width: 1000px) {
  .nav, .header__phone { display: none; }
  .menu-btn { display: inline-grid; }
  .header__actions { margin-inline-start: auto; }
}

@media (max-width: 680px) {
  .header__inner { gap: var(--space-3); min-height: 78px; }
  .header__actions .btn--primary { display: none; }
  .logo-svg--header { width: 108px; }
  .brand__name { font-size: 1rem; }
  .brand__sub { font-size: 0.5625rem; letter-spacing: 0.12em; }
  .icon-btn { width: 44px; height: 44px; }
}

/* mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 70; display: none;
  background: var(--color-bg); padding: var(--space-6);
}
.drawer[data-open='true'] { display: flex; flex-direction: column; }
.drawer__top { display: flex; justify-content: space-between; align-items: center; min-height: 60px; }
.drawer nav { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-8); }
.drawer nav a {
  font-family: var(--font-display); font-size: var(--text-lg); font-weight: 500;
  text-decoration: none; color: var(--color-text);
  padding-block: var(--space-3); border-bottom: 1px solid var(--color-divider);
}
.drawer__foot { margin-top: auto; display: grid; gap: var(--space-3); }

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

.hero { position: relative; padding-block: 0; border: none; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--hero-scrim); }

.hero__inner { padding-block: clamp(var(--space-20), 13vw, var(--space-32)); color: #f2f5f6; }
.hero__eyebrow { color: #ff7176; }
[data-theme='light'] .hero__eyebrow { color: #ff7176; }
.hero h1 {
  font-family: var(--font-display); font-size: var(--text-2xl);
  letter-spacing: -0.005em; max-width: 21ch; font-weight: 700;
}
.hero p.hero__lede { margin-top: var(--space-6); max-width: 46ch; color: #d3cccd; font-size: var(--text-base); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-10); }
.hero .btn--ghost { color: #f2f5f6; }

.hero__creds {
  display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6);
  margin-top: var(--space-12); padding-top: var(--space-6);
  border-top: 1px solid oklch(1 0 0 / 0.16);
}
.hero__cred {
  font-family: var(--font-mono); font-size: var(--text-xs);
  letter-spacing: 0.08em; text-transform: uppercase; color: #c4bcbd;
  display: flex; align-items: center; gap: var(--space-2);
}
.hero__cred svg { color: #ff8a8e; flex: none; }

/* ---------------- trust strip ---------------- */

.strip { background: var(--color-ink); color: #d6cfd0; padding-block: var(--space-8); border: none; }
[data-theme='light'] .strip { background: #1a1718; }
.strip__grid { display: grid; gap: var(--space-6) var(--space-8); grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.strip__item { display: flex; gap: var(--space-4); align-items: flex-start; }
.strip__num { font-family: var(--font-mono); font-size: var(--text-xs); color: #ff8a8e; padding-top: 3px; flex: none; }
.strip__item h3 { font-size: var(--text-sm); font-weight: 700; color: #f0f4f5; }
.strip__item p { font-size: var(--text-xs); color: #a39b9c; margin-top: var(--space-1); max-width: 32ch; }

/* ---------------- services ---------------- */

.svc-grid { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fill, minmax(288px, 1fr)); align-items: start; margin-top: var(--space-12); }
.svc {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: var(--space-6);
  display: flex; flex-direction: column; gap: var(--space-3);
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive), transform var(--transition-interactive);
}
.svc:hover { border-color: color-mix(in oklab, var(--color-primary) 55%, var(--color-border)); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.svc__icon { color: var(--color-primary); }
.svc h3 { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 700; letter-spacing: 0; }
.svc p { font-size: var(--text-sm); color: var(--color-text-muted); }
.svc__for {
  font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-text-faint);
  letter-spacing: 0.06em; text-transform: uppercase; margin-top: auto;
  padding-top: var(--space-4); border-top: 1px solid var(--color-divider);
}

/* ---------------- split editorial ---------------- */

.split { display: grid; gap: clamp(var(--space-8), 5vw, var(--space-16)); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1.05fr 0.95fr; }
  .split--flip .split__media { order: -1; }
}
.split__media { position: relative; }
@media (min-width: 900px) { #about .split { align-items: start; } }
.split__media img { border-radius: var(--radius-lg); width: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.figure-caption {
  font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-text-faint);
  margin-top: var(--space-3); letter-spacing: 0.04em;
}

/* ---------------- field gallery ---------------- */

.gallery { display: grid; gap: clamp(var(--space-5), 3vw, var(--space-8)); grid-template-columns: 1fr; margin-top: clamp(var(--space-8), 5vw, var(--space-12)); }
@media (min-width: 720px) { .gallery { grid-template-columns: 1fr 1fr; } }
.gallery__item { min-width: 0; }
.gallery__item img { border-radius: var(--radius-lg); width: 100%; object-fit: cover; aspect-ratio: 3 / 2; display: block; }
.gallery__item .figure-caption { max-width: 46ch; }

/* ---------------- sample deliverables ---------------- */

/* ---------------- sample map inside a service card ---------------- */

.svc__sample { margin: var(--space-1) 0 0; min-width: 0; }
.svc__zoom {
  display: block; width: 100%; padding: var(--space-2); cursor: zoom-in;
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md);
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}
.svc__zoom:hover, .svc__zoom:focus-visible {
  border-color: color-mix(in oklab, var(--color-primary) 60%, var(--color-border));
  box-shadow: var(--shadow-sm);
}
.svc__zoom img { display: block; width: 100%; height: auto; border-radius: 2px; }
.svc__sample--tall .svc__zoom img { max-height: 340px; width: auto; max-width: 100%; margin-inline: auto; }
.svc__sample figcaption {
  font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-text-faint);
  letter-spacing: 0.04em; margin-top: var(--space-2);
}

/* ---------------- lightbox ---------------- */

.lightbox {
  position: fixed; inset: 0; z-index: 999; display: grid; place-items: center;
  padding: clamp(var(--space-4), 4vw, var(--space-10));
  background: color-mix(in oklab, var(--brand-black) 88%, transparent);
  opacity: 0; visibility: hidden; transition: opacity 220ms ease, visibility 220ms ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
/* the header uses backdrop-filter, which forms its own backdrop root and would
   otherwise paint through the overlay in Chromium — hide it while zoomed */
body.lb-open .header { visibility: hidden; backdrop-filter: none; }
.lightbox__inner { max-width: min(1500px, 96vw); width: 100%; text-align: center; }
.lightbox img {
  display: block; margin: 0 auto; max-width: 100%; max-height: 82vh;
  background: #fff; padding: var(--space-3); border-radius: var(--radius-md);
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
}
.lightbox__cap {
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.06em;
  text-transform: uppercase; color: #cdc6c7; margin-top: var(--space-4);
}
.lightbox__close {
  position: absolute; top: var(--space-5); right: var(--space-5);
  width: 44px; height: 44px; border-radius: 999px; cursor: pointer;
  display: grid; place-items: center; color: #fff;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.28);
}
.lightbox__close:hover { background: rgba(255,255,255,0.22); }

.samples__note {
  font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-text-faint);
  letter-spacing: 0.04em; max-width: 62ch;
  margin-top: clamp(var(--space-12), 5vw, var(--space-16));
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
}

.factlist { list-style: none; margin-top: var(--space-8); display: grid; gap: var(--space-5); }
.factlist li { display: grid; grid-template-columns: 22px 1fr; gap: var(--space-4); font-size: var(--text-sm); color: var(--color-text-muted); max-width: 52ch; }
.factlist strong { color: var(--color-text); display: block; font-size: var(--text-base); font-weight: 700; margin-bottom: 2px; }
.factlist svg { color: var(--color-primary); margin-top: 4px; }

.pullquote {
  margin-top: var(--space-10); padding-left: var(--space-6);
  border-left: 2px solid var(--color-primary);
  font-family: var(--font-display); font-size: var(--text-lg); line-height: 1.4;
  letter-spacing: 0; max-width: 34ch;
}
.pullquote cite { display: block; margin-top: var(--space-4); font-family: var(--font-mono); font-style: normal; font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-text-faint); }

/* ---------------- process ---------------- */

.steps { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: var(--space-12); counter-reset: s; }
.step { padding-top: var(--space-6); border-top: 2px solid var(--color-border); }
.step__n { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.14em; color: var(--color-primary); }
.step h3 { font-size: var(--text-base); font-weight: 700; margin-top: var(--space-3); }
.step p { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: var(--space-2); }

/* ---------------- service area ---------------- */

.area { background: var(--color-surface-offset); }
.towns { display: grid; gap: var(--space-2) var(--space-6); grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-top: var(--space-8); list-style: none; }
.towns li { font-size: var(--text-sm); color: var(--color-text-muted); display: flex; gap: var(--space-2); align-items: center; }
.towns li::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--color-primary); flex: none; }
.area__note { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: var(--space-8); }

/* ---------------- faq ---------------- */

.faq { margin-top: var(--space-10); max-width: var(--content-default); }
.faq details { border-bottom: 1px solid var(--color-divider); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; gap: var(--space-4); align-items: flex-start;
  padding-block: var(--space-5); font-size: var(--text-base); font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; margin-inline-start: auto; flex: none; width: 11px; height: 11px; margin-top: 7px;
  border-right: 2px solid var(--color-primary); border-bottom: 2px solid var(--color-primary);
  transform: rotate(45deg); transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq summary:hover { color: var(--color-primary); }
.faq p { font-size: var(--text-sm); color: var(--color-text-muted); padding: 0 var(--space-8) var(--space-6) 0; max-width: 68ch; }

/* ---------------- quote form ---------------- */

.quote { background: var(--color-ink); color: #ded8d8; }
[data-theme='light'] .quote { background: #1a1718; }
.quote__grid { display: grid; gap: clamp(var(--space-10), 6vw, var(--space-20)); grid-template-columns: 1fr; }
@media (min-width: 960px) { .quote__grid { grid-template-columns: 0.85fr 1.15fr; } }
.quote h2 { font-family: var(--font-display); font-size: var(--text-xl); color: #f2f5f6; letter-spacing: 0; max-width: 22ch; }
.quote .eyebrow { color: #ff8a8e; }
.quote p.section-lede { color: #b0a8a9; }
.quote__direct { margin-top: var(--space-10); display: grid; gap: var(--space-5); }
.quote__direct a { color: #f2f5f6; text-decoration: none; font-family: var(--font-mono); font-size: var(--text-sm); display: flex; gap: var(--space-3); align-items: center; }
.quote__direct a:hover { color: #ff8a8e; }
.quote__direct svg { color: #ff8a8e; flex: none; }

.form { display: grid; gap: var(--space-5); }
.form__row { display: grid; gap: var(--space-5); grid-template-columns: 1fr; }
@media (min-width: 620px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2); }
.field label { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase; color: #a39b9c; }
.field input, .field select, .field textarea {
  background: oklch(1 0 0 / 0.05); border: 1px solid oklch(1 0 0 / 0.16);
  border-radius: var(--radius-md); padding: var(--space-3) var(--space-4);
  color: #f2f5f6; font-size: var(--text-sm); min-height: 48px; width: 100%;
}
.field textarea { min-height: 116px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #a39b9c 50%), linear-gradient(135deg, #a39b9c 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px; background-size: 6px 6px; background-repeat: no-repeat; }
.field select option { color: #111719; background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #ff8a8e; background: oklch(1 0 0 / 0.08); outline: none; }
.field input::placeholder, .field textarea::placeholder { color: #6d777d; }
/* ---- document upload ---- */

.field__label {
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.1em;
  text-transform: uppercase; color: #a39b9c;
}

.field label.dropzone {
  font-family: var(--font-body); font-size: var(--text-sm);
  letter-spacing: normal; text-transform: none; color: var(--color-text);
}
.dropzone {
  position: relative;
  display: grid; justify-items: center; text-align: center; gap: var(--space-2);
  padding: var(--space-8) var(--space-5);
  border: 1px dashed oklch(1 0 0 / 0.24); border-radius: var(--radius-md);
  background: oklch(1 0 0 / 0.04); cursor: pointer;
  transition: border-color var(--transition-interactive), background var(--transition-interactive);
}
.dropzone:hover { border-color: #ff8a8e; background: oklch(1 0 0 / 0.07); }
.dropzone:focus-within { border-color: #ff8a8e; border-style: solid; outline: 2px solid oklch(1 0 0 / 0.18); outline-offset: 2px; }
.dropzone[data-drag='true'] { border-color: #ff8a8e; border-style: solid; background: oklch(0.55 0.19 20 / 0.14); }
.dropzone__input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.dropzone__icon { color: #ff8a8e; }
.dropzone__title { font-size: var(--text-sm); color: #f2f5f6; }
.dropzone__link { color: #ff8a8e; text-decoration: underline; text-underline-offset: 3px; }
.dropzone__hint { font-size: var(--text-xs); color: #8b959b; max-width: 40ch; line-height: 1.5; }
.dropzone__error:empty { display: none; }
.dropzone__error { font-size: var(--text-xs); color: #ffa1a4; }

.filelist { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2); }
.filelist:empty { display: none; }
.filelist li {
  display: flex; align-items: center; gap: var(--space-3); min-width: 0;
  padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4);
  border: 1px solid oklch(1 0 0 / 0.14); border-radius: var(--radius-md);
  background: oklch(1 0 0 / 0.05);
}
.filelist svg { color: #ff8a8e; flex: none; }
.filelist__name {
  flex: 1 1 auto; font-size: var(--text-sm); color: #f2f5f6; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}
.filelist__size {
  font-family: var(--font-mono); font-size: var(--text-xs); color: #8b959b;
  letter-spacing: 0.04em; margin-inline-start: auto; flex: none;
}
.filelist__remove {
  flex: none; width: 30px; height: 30px; display: grid; place-items: center;
  border: 1px solid transparent; border-radius: var(--radius-sm); background: none;
  color: #a39b9c; cursor: pointer;
}
.filelist__remove:hover { color: #ff8a8e; border-color: oklch(1 0 0 / 0.18); }
.filelist__remove:focus-visible { outline: 2px solid #ff8a8e; outline-offset: 1px; }

.attach-reminder {
  border: 1px solid oklch(0.6 0.2 22 / 0.45); border-radius: var(--radius-md);
  background: oklch(0.55 0.19 20 / 0.12); padding: var(--space-5);
  display: grid; gap: var(--space-3);
}
.attach-reminder__title {
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.1em;
  text-transform: uppercase; color: #ffa1a4;
}
.attach-reminder ul { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-1); }
.attach-reminder li { font-size: var(--text-sm); color: #f2f5f6; display: flex; gap: var(--space-3); overflow-wrap: anywhere; }
.attach-reminder li::before { content: '\2713'; color: #ff8a8e; flex: none; }
.attach-reminder__note { font-size: var(--text-xs); color: #b0a8a9; line-height: 1.6; }

.form__note { font-size: var(--text-xs); color: #8b959b; max-width: 52ch; }
.form__status { font-size: var(--text-sm); color: #ff8a8e; min-height: 1.4em; }

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

.footer { background: var(--color-bg); padding-block: var(--space-16) var(--space-8); border-top: 1px solid var(--color-divider); }
.footer__grid { display: grid; gap: var(--space-10); grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.footer h3 { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-text-faint); margin-bottom: var(--space-4); font-weight: 500; }
.footer ul { list-style: none; display: grid; gap: var(--space-2); }
.footer a { color: var(--color-text-muted); text-decoration: none; font-size: var(--text-sm); }
.footer a:hover { color: var(--color-primary); }
.footer p { font-size: var(--text-sm); color: var(--color-text-muted); }
.footer__bottom {
  margin-top: var(--space-16); padding-top: var(--space-6); border-top: 1px solid var(--color-divider);
  display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between;
}
.footer__bottom span, .footer__bottom p { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-text-faint); letter-spacing: 0.04em; }

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

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), transform 700ms cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
