/* =====================================================================
   A Cut Above Painting — "Bold Swatch" theme
   Vanilla CSS, no build step. All component colors via semantic tokens.
   ===================================================================== */

/* ---------- Brand palette (raw values live ONLY here) ---------- */
:root {
  --brand-coral: #FF5A36;
  --brand-coral-600: #e84a28;
  --brand-teal: #0E8F86;
  --brand-teal-400: #13a89d;
  --brand-gold: #E9B949;
  --brand-cream: #FBF7F1;
  --brand-ink: #141414;

  /* Type */
  --font-display: "Bricolage Grotesque", "Inter Tight", system-ui, sans-serif;
  --font-body: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Spacing scale (4 / 8px rhythm) */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;   --sp-3: 0.75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;   --sp-6: 2rem;     --sp-7: 3rem;     --sp-8: 4rem;
  --sp-9: 6rem;

  --container: 1180px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --header-h: 4.5rem;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- DARK theme (default) ---------- */
:root,
[data-theme="dark"] {
  --bg: #0e0e0e;
  --bg-2: #141414;
  --surface: #1a1a1a;
  --surface-2: #202020;
  --surface-3: #272727;
  --text: #f6f2ec;
  --text-strong: #ffffff;
  --muted: #a7a29a;
  --border: rgba(251, 247, 241, 0.12);
  --border-strong: rgba(251, 247, 241, 0.22);

  --primary: var(--brand-coral);
  --primary-hover: #ff6e4f;
  --on-primary: #1a0d08;
  --accent: var(--brand-teal-400);
  --gold: var(--brand-gold);

  --ring: var(--brand-gold);
  --hero-veil: linear-gradient(180deg, rgba(14,14,14,0.30) 0%, rgba(14,14,14,0.78) 78%, var(--bg) 100%);
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.7);
  --shadow-card: 0 10px 30px -18px rgba(0, 0, 0, 0.85);
  --swatch-cream: #f4efe7;
}

/* ---------- LIGHT theme ---------- */
[data-theme="light"] {
  --bg: var(--brand-cream);
  --bg-2: #f3ede3;
  --surface: #ffffff;
  --surface-2: #fbf7f1;
  --surface-3: #f3ece1;
  --text: #1f1c19;
  --text-strong: var(--brand-ink);
  --muted: #534d45; /* darkened to clear WCAG AA (>=4.5:1) on cream surfaces */
  --border: rgba(20, 20, 20, 0.14);
  --border-strong: rgba(20, 20, 20, 0.26);

  --primary: #d8431f; /* slightly deeper coral so on-primary white stays legible */
  --primary-hover: #c23a1a;
  --on-primary: #ffffff;
  --accent: var(--brand-teal);
  --gold: #b88a17;

  --ring: var(--brand-coral-600);
  --hero-veil: linear-gradient(180deg, rgba(251,247,241,0.12) 0%, rgba(251,247,241,0.72) 74%, var(--bg) 100%);
  --shadow: 0 20px 50px -24px rgba(40, 24, 12, 0.35);
  --shadow-card: 0 14px 34px -22px rgba(40, 24, 12, 0.30);
  --swatch-cream: #efe7da;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem); }

.sr-only {
  position: absolute; 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: 1rem; top: -200%; z-index: 200;
  background: var(--primary); color: var(--on-primary);
  padding: 0.6rem 1rem; border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--font-display); color: var(--text-strong); line-height: 1.05; letter-spacing: -0.02em; font-weight: 800; }

.section-title {
  font-size: clamp(1.9rem, 1rem + 3.6vw, 3.4rem);
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.section-eyebrow {
  font-family: var(--font-body);
  font-weight: 700; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--primary);
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-bottom: var(--sp-3);
}
.section-eyebrow::before {
  content: ""; width: 1.75rem; height: 0.55rem; border-radius: 3px;
  background: linear-gradient(90deg, var(--brand-coral) 33%, var(--brand-teal) 33% 66%, var(--brand-gold) 66%);
}
.section-intro { color: var(--muted); font-size: 1.0625rem; max-width: 62ch; margin-top: var(--sp-4); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--surface-2); --btn-fg: var(--text-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--border-strong);
  padding: 0.7rem 1.25rem; border-radius: var(--radius-pill);
  font-weight: 700; font-size: 0.975rem; letter-spacing: -0.01em;
  cursor: pointer; white-space: nowrap;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease), box-shadow 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.btn svg { flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  --btn-bg: var(--primary); --btn-fg: var(--on-primary);
  border-color: transparent;
  box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--primary) 75%, transparent);
}
.btn-primary:hover { --btn-bg: var(--primary-hover); box-shadow: 0 16px 30px -12px color-mix(in srgb, var(--primary) 75%, transparent); }

.btn-ghost {
  --btn-bg: transparent; --btn-fg: var(--text-strong);
  border-color: var(--border-strong);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { border-color: var(--text-strong); background: color-mix(in srgb, var(--text-strong) 8%, transparent); }

.btn-lg { padding: 0.95rem 1.7rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--primary); font-weight: 700;
  transition: gap 0.18s var(--ease);
}
.link-arrow:hover { gap: 0.7rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: var(--sp-4); min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand-mark { display: inline-flex; gap: 3px; padding: 5px; background: var(--brand-ink); border-radius: 7px; }
[data-theme="light"] .brand-mark { background: var(--brand-ink); }
.brand-mark .sw { width: 6px; height: 22px; border-radius: 2px; }
.sw-coral { background: var(--brand-coral); }
.sw-teal { background: var(--brand-teal-400); }
.sw-gold { background: var(--brand-gold); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--text-strong); letter-spacing: -0.02em; }
.brand-sub { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

.main-nav { margin-left: auto; }
.nav-menu { display: flex; align-items: center; gap: clamp(0.5rem, 1.4vw, 1.4rem); list-style: none; padding: 0; }
.nav-menu a {
  font-weight: 600; font-size: 0.95rem; color: var(--muted);
  padding: 0.4rem 0.2rem; position: relative; transition: color 0.18s var(--ease);
}
.nav-menu a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--primary); transform: scaleX(0); transform-origin: left;
  transition: transform 0.2s var(--ease);
}
.nav-menu a:hover, .nav-menu a:focus-visible { color: var(--text-strong); }
.nav-menu a:hover::after, .nav-menu a:focus-visible::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: var(--sp-3); }
.nav-toggle { display: none; background: transparent; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 0.4rem; color: var(--text-strong); }

.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: var(--radius-pill);
  background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text-strong);
  transition: background-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.theme-toggle:hover { transform: translateY(-2px); }
.icon-sun { display: none; }
.icon-moon { display: block; }
[data-theme="light"] .icon-sun { display: block; }
[data-theme="light"] .icon-moon { display: none; }

.header-cta span { display: inline; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; padding-top: clamp(3.5rem, 8vw, 7rem); padding-bottom: clamp(3rem, 6vw, 5.5rem); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-veil { position: absolute; inset: 0; background: var(--hero-veil); }
.hero-inner { position: relative; max-width: 60rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-weight: 700; font-size: 0.82rem; letter-spacing: 0.05em;
  color: var(--text); background: color-mix(in srgb, var(--bg) 55%, transparent);
  border: 1px solid var(--border-strong);
  padding: 0.45rem 0.9rem; border-radius: var(--radius-pill); margin-bottom: var(--sp-5);
}
.eyebrow-swatch { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--brand-coral); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-coral) 30%, transparent); }

.hero-title {
  font-size: clamp(2.6rem, 1rem + 7.5vw, 6rem);
  font-weight: 800; letter-spacing: -0.035em; line-height: 0.98;
  color: var(--text-strong); text-wrap: balance;
}
.hl-coral { color: var(--brand-coral); }
.hl-underline { position: relative; white-space: nowrap; }
.hl-underline::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: 0.06em; height: 0.18em;
  background: linear-gradient(90deg, var(--brand-coral), var(--brand-gold));
  border-radius: 3px; z-index: -1;
}
.hero-lede { font-size: clamp(1.05rem, 0.9rem + 0.6vw, 1.3rem); color: var(--text); max-width: 46ch; margin-top: var(--sp-5); opacity: 0.94; }

.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }

.trust-chips {
  display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5);
  list-style: none; padding: 0; margin-top: var(--sp-7);
  font-size: 0.95rem; color: var(--muted);
}
.trust-chips li { display: inline-flex; align-items: center; gap: 0.45rem; }
.trust-chips li:not(:last-child)::after { content: ""; }
.chip-strong { color: var(--text-strong); font-weight: 700; }

.swatch-strip { display: flex; height: 0.5rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
.swatch-strip span { flex: 1; background: var(--c); }
.swatch-strip span:first-child { border-top-left-radius: 3px; border-bottom-left-radius: 3px; }
.swatch-strip span:last-child { border-top-right-radius: 3px; border-bottom-right-radius: 3px; }

/* ---------- Section rhythm ---------- */
.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section-head { max-width: 56rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }

/* ---------- About ---------- */
.about { background: var(--bg-2); }
.about-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; grid-template-columns: 1fr; }
.about-copy p { color: var(--muted); margin-top: var(--sp-4); max-width: 60ch; }
.about-copy p strong { color: var(--text-strong); }
.about-copy .section-title { margin-bottom: var(--sp-2); }
.about-points { list-style: none; padding: 0; margin: var(--sp-5) 0 var(--sp-6); display: grid; gap: var(--sp-3); }
.about-points li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--text); font-weight: 500; }
.about-points svg { color: var(--accent); flex: none; margin-top: 1px; }

.about-media { position: relative; }
.about-media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--border); }
.about-media figcaption { margin-top: var(--sp-3); font-size: 0.9rem; color: var(--muted); text-align: center; }

/* ---------- Cards (services) ---------- */
.card-grid { list-style: none; padding: 0; display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.services-grid { grid-template-columns: 1fr; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2rem);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.service-card { position: relative; overflow: hidden; }
.service-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--ic, var(--primary)); opacity: 0.0; transition: opacity 0.2s var(--ease);
}
.service-card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-card); }
.service-card:hover::before { opacity: 1; }
.service-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3.1rem; height: 3.1rem; border-radius: var(--radius);
  color: var(--ic); background: color-mix(in srgb, var(--ic) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--ic) 35%, transparent);
  margin-bottom: var(--sp-4);
}
.service-card h3 { font-size: 1.22rem; letter-spacing: -0.02em; margin-bottom: var(--sp-2); }
.service-card p { color: var(--muted); font-size: 0.975rem; }

.service-card--cta {
  background: linear-gradient(150deg, color-mix(in srgb, var(--brand-teal) 22%, var(--surface)), var(--surface));
  border-color: color-mix(in srgb, var(--brand-teal) 45%, var(--border));
  display: flex; flex-direction: column;
}
.service-card--cta p { color: var(--text); }
.service-card--cta .link-arrow { margin-top: auto; padding-top: var(--sp-4); }

/* ---------- Pricing ---------- */
.pricing { background: var(--bg-2); }
.pricing-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3.5vw, 2.5rem); max-width: 760px; margin-inline: auto;
  box-shadow: var(--shadow-card);
}
.pricing-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.pricing-table thead th {
  text-align: left; font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); font-weight: 700;
  padding-bottom: var(--sp-3); border-bottom: 2px solid var(--border-strong);
}
.pricing-table th.num, .pricing-table td.num { text-align: right; }
.pricing-table tbody th {
  text-align: left; font-family: var(--font-body); font-weight: 600; color: var(--text);
  padding: var(--sp-4) 0; border-bottom: 1px solid var(--border);
}
.pricing-table tbody td.num {
  font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: var(--text-strong);
  letter-spacing: -0.02em; padding: var(--sp-4) 0 var(--sp-4) var(--sp-4); border-bottom: 1px solid var(--border);
}
.pricing-table tbody tr:last-child th, .pricing-table tbody tr:last-child td { border-bottom: none; }

.pricing-disclaimer {
  display: flex; gap: 0.6rem; align-items: flex-start;
  margin: var(--sp-5) 0; padding: var(--sp-4);
  background: color-mix(in srgb, var(--brand-gold) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand-gold) 40%, transparent);
  border-radius: var(--radius); color: var(--text); font-size: 0.92rem; line-height: 1.55;
}
.pricing-disclaimer svg { color: var(--gold); flex: none; margin-top: 2px; }

/* ---------- Gallery ---------- */
.gallery-grid {
  list-style: none; padding: 0;
  display: grid; gap: clamp(0.8rem, 1.6vw, 1.1rem);
  grid-template-columns: repeat(2, 1fr);
}
.gallery-tile { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; transition: transform 0.35s var(--ease); }
.gallery-tile:hover img { transform: scale(1.04); }
.gallery-tile--wide { grid-column: span 2; }
.gallery-tile--wide img { aspect-ratio: 16 / 7; }

/* ---------- Service area ---------- */
.area-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; grid-template-columns: 1fr; }
.area-copy p { color: var(--muted); margin-top: var(--sp-4); max-width: 56ch; }
.area-chips { list-style: none; padding: 0; margin-top: var(--sp-5); display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.area-chips li {
  padding: 0.45rem 0.95rem; border-radius: var(--radius-pill);
  background: var(--surface); border: 1px solid var(--border-strong);
  font-weight: 600; font-size: 0.92rem; color: var(--text);
}
.area-chips__more { background: transparent !important; border-color: transparent !important; color: var(--muted) !important; font-style: italic; }
.area-motif { max-width: 360px; margin-inline: auto; width: 100%; }
.area-motif svg { border-radius: var(--radius-lg); border: 1px solid var(--border); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); grid-template-columns: 1fr; align-items: start; }
.contact-copy p { color: var(--muted); margin-top: var(--sp-4); max-width: 50ch; }
.contact-methods { list-style: none; padding: 0; margin-top: var(--sp-6); display: grid; gap: var(--sp-4); }
.contact-methods li { display: flex; gap: var(--sp-3); align-items: center; }
.contact-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.9rem; height: 2.9rem; flex: none; border-radius: var(--radius);
  color: var(--ic); background: color-mix(in srgb, var(--ic) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--ic) 35%, transparent);
}
.contact-label { display: block; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.contact-value { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--text-strong); letter-spacing: -0.01em; transition: color 0.18s var(--ease); }
a.contact-value:hover { color: var(--primary); }
.contact-value--static { font-size: 1.02rem; }

.contact-form {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3.5vw, 2.25rem); box-shadow: var(--shadow-card);
}
.form-intro { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; color: var(--text-strong); margin-bottom: var(--sp-4); letter-spacing: -0.02em; }
.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: var(--sp-4); }
.field label { font-weight: 600; font-size: 0.9rem; color: var(--text); }
.field input, .field textarea {
  font: inherit; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); padding: 0.75rem 0.9rem; width: 100%;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 0.8; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 28%, transparent);
}
.field textarea { resize: vertical; min-height: 110px; }
.field-row { display: grid; gap: var(--sp-4); grid-template-columns: 1fr; }

.form-status { margin-top: var(--sp-3); font-weight: 600; font-size: 0.95rem; min-height: 1.2em; }
.form-status.is-success { color: var(--accent); }
.form-status.is-error { color: var(--primary); }
.form-note { margin-top: var(--sp-3); font-size: 0.82rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); padding-top: clamp(2.5rem, 5vw, 4rem); }
.footer-inner { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: 1fr; padding-bottom: var(--sp-7); }
.footer-brand .brand { margin-bottom: var(--sp-3); }
.footer-blurb { color: var(--muted); max-width: 40ch; font-size: 0.95rem; }
.footer-h { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: var(--sp-3); }
.footer-nav ul, .footer-contact ul { list-style: none; padding: 0; display: grid; gap: var(--sp-2); }
.footer-nav a, .footer-contact a { color: var(--text); font-weight: 500; transition: color 0.18s var(--ease); }
.footer-nav a:hover, .footer-contact a:hover { color: var(--primary); }
.footer-contact li { color: var(--muted); }
.footer-hours { margin-top: var(--sp-3); color: var(--muted); font-size: 0.92rem; }
.footer-hours strong { color: var(--text); }

.footer-bottom {
  display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); justify-content: space-between; align-items: center;
  border-top: 1px solid var(--border); padding-block: var(--sp-5); color: var(--muted); font-size: 0.85rem;
}
.footer-disclaimer { opacity: 0.85; }

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(16px); }
.reveal-ready [data-reveal] { transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .btn, .card, .gallery-tile img, .theme-toggle, .nav-menu a::after, .link-arrow { transition: none !important; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* =====================================================================
   Responsive
   ===================================================================== */
@media (min-width: 640px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .about-grid { grid-template-columns: 1.05fr 0.95fr; }
  .area-grid { grid-template-columns: 1.2fr 0.8fr; }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
  .gallery-tile--wide { grid-column: span 2; }
}

@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1.6fr 1fr 1.2fr; }
}

/* ---------- Mobile nav ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { margin-left: auto; position: static; }
  .nav-menu {
    position: absolute; top: calc(var(--header-h) - 0.25rem); left: clamp(1.1rem, 4vw, 2.5rem); right: clamp(1.1rem, 4vw, 2.5rem);
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius);
    padding: var(--sp-2); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s var(--ease);
  }
  .nav-menu.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-menu a { display: block; padding: 0.75rem 0.75rem; border-radius: var(--radius-sm); color: var(--text); }
  .nav-menu a::after { display: none; }
  .nav-menu a:hover { background: var(--surface-2); }
}

@media (max-width: 520px) {
  .header-cta span { display: none; }
  .header-cta { padding: 0.7rem; width: 2.6rem; height: 2.6rem; }
  .brand-sub { display: none; }
  .hero-actions .btn { flex: 1 1 auto; }
}
