/* ==========================================================================
   EVERIX — Better homes deserve better work.
   Palette: matte black, metallic gold, silver, white.
   ========================================================================== */

:root {
  --black: #0d0d0e;
  --black-2: #141416;
  --black-3: #1c1c1f;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --white: #ffffff;
  --text: #e9e9ea;
  --muted: #a3a6ab;
  --silver: #c3c7cc;
  --silver-dark: #8b9096;
  --gold: #c9a24c;
  --gold-light: #ecd59a;
  --gold-deep: #9a7428;
  --gold-gradient: linear-gradient(135deg, #f3dfa6 0%, #c9a24c 38%, #9a7428 62%, #e6c97f 100%);
  --silver-gradient: linear-gradient(135deg, #f4f5f6 0%, #b9bdc2 45%, #7f848a 70%, #dfe2e5 100%);
  --error: #ff8f80;
  --success: #9fd8a8;

  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Cormorant Garamond", "Times New Roman", serif;

  --radius: 4px;
  --container: 1200px;
  --header-h: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

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

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--gold); color: var(--black);
  padding: 10px 16px; font-weight: 700; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

/* ---------- Typography ---------- */

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: var(--gold-gradient);
}

h1, h2, h3, h4 { color: var(--white); margin: 0; line-height: 1.1; letter-spacing: -0.01em; }

.display {
  font-size: clamp(2.4rem, 6.4vw, 5.2rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.98;
}
.serif-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}
.gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.silver-text {
  background: var(--silver-gradient);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.015em;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 60ch; }

/* ---------- Buttons ---------- */

.btn {
  --pad-y: 16px; --pad-x: 28px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 0.82rem; font-weight: 800;
  letter-spacing: 0.16em; text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s, color 0.25s, border-color 0.25s;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-gold {
  background: var(--gold-gradient);
  background-size: 160% 160%;
  background-position: 0% 50%;
  color: #121212;
  box-shadow: 0 10px 30px -12px rgba(201, 162, 76, 0.55), inset 0 1px 0 rgba(255,255,255,0.45);
}
.btn-gold:hover { transform: translateY(-2px); background-position: 100% 50%; box-shadow: 0 16px 40px -14px rgba(201, 162, 76, 0.7), inset 0 1px 0 rgba(255,255,255,0.45); }
.btn-gold:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--white);
}
.btn-ghost:hover { border-color: var(--silver); background: rgba(255,255,255,0.04); }

.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(13, 13, 14, 0.78);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name {
  font-weight: 800; font-size: 1.15rem;
  letter-spacing: 0.42em;
  margin-right: -0.42em; /* optical balance for tracking */
  color: var(--white);
}

.nav { display: flex; align-items: center; gap: 34px; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--silver);
  position: relative; padding: 6px 0;
  transition: color 0.2s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--gold-gradient); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--white); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.header-phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 0.92rem; color: var(--white);
  letter-spacing: 0.02em;
}
.header-phone svg { width: 16px; height: 16px; color: var(--gold); }
.header-cta { --pad-y: 12px; --pad-x: 20px; min-height: 44px; font-size: 0.72rem; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  background: transparent; border: 1px solid var(--line-strong); border-radius: var(--radius);
  align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 1.5px; background: var(--white);
  position: relative; transition: transform 0.3s var(--ease), background 0.2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .header-phone .phone-label { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--black);
    border-bottom: 1px solid var(--line);
    padding: 8px clamp(20px, 5vw, 40px) 28px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links a { display: block; padding: 18px 0; font-size: 0.9rem; }
  .nav-links a::after { display: none; }
  .nav .header-cta { margin-top: 22px; min-height: 54px; font-size: 0.8rem; }
  .header-actions { display: flex; align-items: center; gap: 10px; }
}
@media (min-width: 961px) {
  .header-actions { display: flex; align-items: center; gap: 24px; }
  .header-actions .header-phone { order: -1; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex; align-items: flex-end;
  padding: clamp(120px, 18vh, 200px) 0 clamp(56px, 9vh, 96px);
  overflow: hidden;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(13,13,14,0.55) 0%, rgba(13,13,14,0.25) 35%, rgba(13,13,14,0.85) 78%, var(--black) 100%),
    linear-gradient(90deg, rgba(13,13,14,0.85) 0%, rgba(13,13,14,0.2) 70%);
}
.hero-content { max-width: 880px; }
.hero .eyebrow { margin-bottom: 26px; }
.hero h1 { margin-bottom: 26px; }
.hero .lead { color: #c9cbcf; margin: 0 0 38px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-meta {
  margin-top: 54px; padding-top: 26px;
  border-top: 1px solid var(--line-strong);
  display: flex; flex-wrap: wrap; gap: 18px 44px;
  list-style: none; padding-left: 0; margin-bottom: 0;
}
.hero-meta li {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--silver);
}
.hero-meta svg { width: 18px; height: 18px; color: var(--gold); flex: none; }

/* ---------- Sections ---------- */

.section { padding: clamp(80px, 12vw, 140px) 0; position: relative; }
.section-alt { background: var(--black-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head.split {
  grid-template-columns: 1fr; align-items: end;
}
@media (min-width: 900px) {
  .section-head.split { grid-template-columns: 1.1fr 1fr; gap: 48px; }
}
.section-head p { margin: 0; }

.gold-rule { height: 1px; background: var(--gold-gradient); opacity: 0.7; border: 0; margin: 0; }

/* ---------- Services ---------- */

.services-grid {
  display: grid; gap: 22px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--black-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.service-card:hover { border-color: rgba(201,162,76,0.45); transform: translateY(-4px); }
.service-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--black-3); }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); filter: saturate(0.92); }
.service-card:hover .service-media img { transform: scale(1.05); }
.service-body { padding: 30px 28px 32px; display: flex; flex-direction: column; flex: 1; }
.service-num {
  font-family: var(--font-serif); font-style: italic; font-size: 1.35rem;
  color: var(--gold); margin-bottom: 10px;
}
.service-card h3 { font-size: 1.4rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 14px; }
.service-card p { color: var(--muted); margin: 0 0 18px; }
.service-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 8px; }
.service-list li {
  position: relative; padding-left: 20px; font-size: 0.94rem; color: var(--text);
}
.service-list li::before {
  content: ""; position: absolute; left: 0; top: 0.72em; width: 8px; height: 1px; background: var(--gold);
}
.service-link {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.76rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-light);
}
.service-link svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.service-link:hover svg { transform: translateX(4px); }

/* ---------- Process ---------- */

.process-grid {
  display: grid; gap: 0;
  grid-template-columns: 1fr;
  counter-reset: step;
  border-top: 1px solid var(--line);
}
@media (min-width: 760px) { .process-grid { grid-template-columns: repeat(4, 1fr); border-top: 0; } }
.process-step {
  padding: 30px 0; border-bottom: 1px solid var(--line);
  position: relative;
}
@media (min-width: 760px) {
  .process-step { padding: 34px 28px 10px 0; border-bottom: 0; border-top: 1px solid var(--line); }
  .process-step::before {
    content: ""; position: absolute; top: -1px; left: 0; width: 44px; height: 1px; background: var(--gold-gradient);
  }
}
.process-step .step-num {
  font-family: var(--font-serif); font-size: 3rem; line-height: 1; font-weight: 500;
  margin-bottom: 18px; display: block;
}
.process-step h3 { font-size: 1.02rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 10px; }
.process-step p { color: var(--muted); margin: 0; font-size: 0.96rem; }

/* ---------- Standards / Why ---------- */

.standards {
  display: grid; gap: clamp(40px, 6vw, 80px);
  grid-template-columns: 1fr; align-items: center;
}
@media (min-width: 960px) { .standards { grid-template-columns: 1fr 1.05fr; } }
.standards-quote {
  font-family: var(--font-serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.9rem, 3.8vw, 3rem); line-height: 1.15; color: var(--white);
  margin: 26px 0 26px;
}
.standards-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 600px) { .standards-list { grid-template-columns: 1fr 1fr; } }
.standard {
  background: var(--black); padding: 30px 26px;
}
.section-alt .standard { background: var(--black-2); }
.standard svg { width: 26px; height: 26px; color: var(--gold); margin-bottom: 16px; }
.standard h3 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 8px; }
.standard p { color: var(--muted); margin: 0; font-size: 0.94rem; }

/* ---------- Service area ---------- */

.area-tags { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 28px 0 0; padding: 0; }
.area-tags li {
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 8px 16px; font-size: 0.85rem; color: var(--silver);
}

/* ---------- CTA band ---------- */

.cta-band {
  position: relative; overflow: hidden;
  border: 1px solid rgba(201,162,76,0.35);
  border-radius: var(--radius);
  padding: clamp(44px, 7vw, 84px) clamp(24px, 6vw, 72px);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(201,162,76,0.16) 0%, transparent 55%),
    var(--black-2);
  display: grid; gap: 30px; align-items: center;
}
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.4fr auto; } }
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 3rem); text-transform: uppercase; font-weight: 800; }
.cta-band p { color: var(--muted); margin: 14px 0 0; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  padding: clamp(64px, 10vw, 110px) 0 clamp(36px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
  background: radial-gradient(90% 120% at 85% 0%, rgba(201,162,76,0.12) 0%, transparent 55%);
}
.page-hero h1 { font-size: clamp(2.2rem, 5.4vw, 4rem); font-weight: 800; text-transform: uppercase; margin: 20px 0 18px; letter-spacing: -0.02em; }
.page-hero .lead { margin: 0; }

/* ---------- Estimate layout ---------- */

.estimate-layout {
  display: grid; gap: clamp(36px, 5vw, 64px);
  grid-template-columns: 1fr;
  padding: clamp(44px, 6vw, 80px) 0 clamp(80px, 10vw, 120px);
}
@media (min-width: 1000px) {
  .estimate-layout { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: start; }
  .estimate-aside { position: sticky; top: calc(var(--header-h) + 28px); }
}

.form-card {
  background: var(--black-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 48px);
}

.form-section + .form-section { margin-top: 38px; padding-top: 34px; border-top: 1px solid var(--line); }
.form-section-title {
  display: flex; align-items: baseline; gap: 14px;
  font-size: 0.82rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--white); margin: 0 0 24px;
}
.form-section-title .num { font-family: var(--font-serif); font-style: italic; font-size: 1.3rem; letter-spacing: 0; color: var(--gold); font-weight: 500; }

.form-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }

.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label, .field .label {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--silver);
}
.req { color: var(--gold); margin-left: 2px; }
.optional { color: var(--silver-dark); font-weight: 600; letter-spacing: 0.04em; text-transform: none; margin-left: 4px; }

.input, .select, .textarea {
  width: 100%;
  background: var(--black);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 14px 16px;
  min-height: 52px;
  font-size: 16px; /* prevents iOS zoom on focus */
  color: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
  -webkit-appearance: none; appearance: none;
}
.input::placeholder, .textarea::placeholder { color: #6d7177; }
.input:hover, .select:hover, .textarea:hover { border-color: rgba(255,255,255,0.3); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,76,0.18);
}
.textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23c9a24c' stroke-width='1.6' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
  padding-right: 44px;
}
.select option { background: var(--black-2); color: var(--white); }

.field.has-error .input, .field.has-error .select, .field.has-error .textarea,
.field.has-error .choice-grid, .field.has-error .upload-slot { border-color: var(--error); }
.field-error { font-size: 0.86rem; color: var(--error); min-height: 0; margin: 0; }
.field-error:empty { display: none; }
.field-hint { font-size: 0.84rem; color: var(--silver-dark); margin: 0; }
.char-count { font-size: 0.8rem; color: var(--silver-dark); align-self: flex-end; }

/* Service choice cards */
.choice-grid {
  display: grid; gap: 10px; grid-template-columns: 1fr 1fr;
  border: 1px solid transparent; border-radius: var(--radius);
}
@media (min-width: 640px) { .choice-grid { grid-template-columns: repeat(4, 1fr); } }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px;
  min-height: 84px; height: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--black);
  font-size: 0.84rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--white);
  transition: border-color 0.2s, background 0.2s;
  pointer-events: none;
}
.choice span svg { width: 22px; height: 22px; color: var(--silver-dark); transition: color 0.2s; }
.choice input:hover + span { border-color: rgba(255,255,255,0.32); }
.choice input:checked + span {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(201,162,76,0.14), rgba(201,162,76,0.04));
}
.choice input:checked + span svg { color: var(--gold); }
.choice input:focus-visible + span { outline: 2px solid var(--gold-light); outline-offset: 2px; }

/* Upload */
.upload-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .upload-grid { grid-template-columns: 1fr 1fr; } }
.upload-slot {
  position: relative;
  border: 1px dashed rgba(255,255,255,0.26);
  border-radius: var(--radius);
  background: var(--black);
  min-height: 168px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
}
.upload-slot:hover, .upload-slot.is-dragover { border-color: var(--gold); background: rgba(201,162,76,0.05); }
.upload-slot input[type="file"] {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 2;
}
.upload-slot input[type="file"]:focus-visible ~ .upload-empty { outline: 2px solid var(--gold-light); outline-offset: -6px; }
.upload-empty {
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  padding: 22px; pointer-events: none; width: 100%; height: 100%; justify-content: center;
}
.upload-empty svg { width: 28px; height: 28px; color: var(--gold); }
.upload-empty strong { font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--white); }
.upload-empty small { color: var(--silver-dark); font-size: 0.8rem; }
.upload-preview {
  position: absolute; inset: 0; z-index: 3; display: none;
  background: var(--black);
}
.upload-slot.has-file .upload-preview { display: block; }
.upload-slot.has-file input[type="file"] { pointer-events: none; }
.upload-preview img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.upload-meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px;
  background: linear-gradient(0deg, rgba(0,0,0,0.88), rgba(0,0,0,0.4));
  font-size: 0.8rem;
}
.upload-meta .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--white); }
.upload-meta .size { color: var(--silver); flex: none; }
.upload-remove {
  position: absolute; top: 8px; right: 8px; z-index: 4;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,0,0,0.75); border: 1px solid var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  color: var(--white);
}
.upload-remove:hover { border-color: var(--gold); color: var(--gold-light); }
.upload-remove svg { width: 16px; height: 16px; }

.upload-meter { margin-top: 14px; display: grid; gap: 8px; }
.upload-meter-bar { height: 3px; border-radius: 3px; background: var(--line-strong); overflow: hidden; }
.upload-meter-bar span { display: block; height: 100%; width: 0; background: var(--gold-gradient); transition: width 0.35s var(--ease); }
.upload-meter.is-over .upload-meter-bar span { background: var(--error); }
.upload-meter-text { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--silver-dark); }

/* Honeypot */
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.form-privacy {
  margin: 28px 0 0; padding: 18px 20px;
  border-left: 2px solid var(--gold);
  background: rgba(255,255,255,0.025);
  font-size: 0.88rem; color: var(--muted);
}
.form-privacy a { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }

.form-alert {
  display: none;
  margin: 0 0 24px; padding: 14px 18px; border-radius: var(--radius);
  border: 1px solid rgba(255,143,128,0.4); background: rgba(255,143,128,0.07);
  color: #ffd2cb; font-size: 0.92rem;
}
.form-alert.is-visible { display: block; }

.form-submit { margin-top: 30px; display: grid; gap: 14px; }
.form-submit .btn { min-height: 60px; font-size: 0.86rem; }
.form-submit-note { text-align: center; font-size: 0.84rem; color: var(--silver-dark); margin: 0; }

/* Aside */
.aside-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; background: var(--black-2);
}
.aside-card + .aside-card { margin-top: 18px; }
.aside-card h2 { font-size: 0.86rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 18px; }
.aside-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.aside-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; }
.aside-steps .n { font-family: var(--font-serif); font-style: italic; color: var(--gold); font-size: 1.3rem; line-height: 1.2; }
.aside-steps strong { display: block; color: var(--white); font-size: 0.95rem; }
.aside-steps span { color: var(--muted); font-size: 0.9rem; }
.contact-lines { display: grid; gap: 12px; }
.contact-line {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  transition: border-color 0.2s, background 0.2s;
}
.contact-line:hover { border-color: var(--gold); background: rgba(201,162,76,0.05); }
.contact-line svg { width: 20px; height: 20px; color: var(--gold); flex: none; }
.contact-line small { display: block; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--silver-dark); }
.contact-line strong { color: var(--white); font-size: 1rem; word-break: break-word; }

/* ---------- Prose (privacy) ---------- */

.prose { max-width: 760px; padding: clamp(44px, 6vw, 80px) 0 clamp(80px, 10vw, 120px); }
.prose h2 { font-size: 1.2rem; text-transform: uppercase; letter-spacing: 0.08em; margin: 46px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #c8cacd; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--gold); }
.prose a { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }
.prose .updated { font-size: 0.85rem; color: var(--silver-dark); }

/* ---------- Thank you ---------- */

.thanks {
  min-height: calc(100vh - var(--header-h) - 200px);
  display: flex; align-items: center;
  padding: clamp(64px, 10vw, 120px) 0;
  background: radial-gradient(70% 90% at 50% 0%, rgba(201,162,76,0.13) 0%, transparent 60%);
}
.thanks-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.thanks-seal {
  width: 88px; height: 88px; margin: 0 auto 30px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(201,162,76,0.5);
  background: radial-gradient(circle, rgba(201,162,76,0.18), transparent 70%);
}
.thanks-seal svg { width: 38px; height: 38px; color: var(--gold-light); }
.thanks h1 { font-size: clamp(2.2rem, 5.6vw, 4rem); font-weight: 800; text-transform: uppercase; margin: 18px 0 20px; }
.thanks .lead { margin: 0 auto 36px; }
.thanks-next {
  text-align: left; margin: 0 auto 40px; max-width: 560px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--black-2); padding: 26px 28px;
}
.thanks-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 72px 0 34px;
  background: var(--black);
}
.footer-grid {
  display: grid; gap: 40px; grid-template-columns: 1fr;
}
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-slogan {
  margin: 18px 0 0; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase;
}
.footer-col h2 { font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--silver-dark); margin-bottom: 18px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--text); transition: color 0.2s; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 0.82rem; color: var(--silver-dark);
}
.footer-bottom a:hover { color: var(--white); }

/* ---------- Mobile action bar ---------- */

.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(13,13,14,0.92);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
  }
  .mobile-bar .btn { min-height: 50px; --pad-x: 12px; font-size: 0.74rem; letter-spacing: 0.12em; }
  body.has-mobile-bar { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}

/* ---------- Reveal ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; }
  .btn { --pad-x: 20px; letter-spacing: 0.12em; }
}

/* Fieldset reset (legend float avoids cross-browser legend quirks) */
fieldset.form-section { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.form-section + fieldset.form-section { margin-top: 38px; padding-top: 34px; border-top: 1px solid var(--line); }
fieldset.form-section > legend { float: left; width: 100%; padding: 0; }
fieldset.form-section > legend + * { clear: both; }
