/* ============================================================
   Arden Timber — global stylesheet
   Palette: warm paper / espresso ink / amber accent
   ============================================================ */

:root {
  --bg: #faf8f4;
  --bg-alt: #f3efe7;
  --surface: #ffffff;
  --ink: #211b13;
  --ink-soft: #5c5347;
  --ink-faint: #8a7f70;
  --accent: #b06119;
  --accent-deep: #8a4a10;
  --accent-soft: #f6e7d4;
  --dark: #241d14;
  --dark-2: #2e2619;
  --cream: #f5efe4;
  --line: #e6dfd2;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(33, 27, 19, .06), 0 4px 14px rgba(33, 27, 19, .05);
  --shadow-md: 0 2px 6px rgba(33, 27, 19, .07), 0 14px 38px rgba(33, 27, 19, .10);
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --header-h: 76px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-deep); text-decoration: none; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--ink);
  letter-spacing: -.01em;
}

p { margin: 0 0 1em; }

.container { width: min(1180px, 92vw); margin-inline: auto; }
.container-wide { width: min(1340px, 94vw); margin-inline: auto; }

/* ---------- utilities ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: clamp(2.2rem, 5vw, 3.6rem); }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.section-head p { color: var(--ink-soft); font-size: 1.06rem; }

/* Grid/flex children may hold wide content (tables); let them shrink so
   inner overflow-x wrappers scroll instead of stretching the page. */
.split > *, .grid-2 > *, .grid-3 > *, .grid-4 > *, .contact-grid > * { min-width: 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.2rem, 3vw, 2.4rem); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.1rem, 2.4vw, 1.8rem); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.6rem); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .95rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  letter-spacing: .01em;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  cursor: pointer;
  border: 0;
  font-family: var(--font-body);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 22px rgba(176, 97, 25, .35); }
.btn-primary:hover { background: var(--accent-deep); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent-deep); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--cream); color: var(--ink); transform: translateY(-2px); }
.btn-outline-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.45); }
.btn-outline-light:hover { box-shadow: inset 0 0 0 1.5px #fff; color: #fff; transform: translateY(-2px); }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background .3s ease, box-shadow .3s ease;
}
.site-header.scrolled {
  background: rgba(250, 248, 244, .88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 8px 30px rgba(33,27,19,.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; width: min(1340px, 94vw); margin-inline: auto; }

.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); font-family: var(--font-display); font-size: 1.32rem; font-weight: 700; letter-spacing: .01em; flex: none; }
.brand:hover { color: var(--ink); }
.brand svg { width: 38px; height: 38px; flex: none; }
/* Keep the wordmark on one line: prevents "Arden / Timber" stacking and
   disables Android/Samsung text-autosizing (font boosting) that inflated it. */
.brand > span { white-space: nowrap; line-height: 1.1; }
.brand .brand-sub { display: block; white-space: nowrap; font-family: var(--font-body); font-size: .6rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--accent-deep); margin-top: .1rem; }

.on-dark .brand, .site-header:not(.scrolled).on-dark .nav a { color: #fff; }
.site-header.scrolled .brand, .site-header.scrolled .nav a { color: var(--ink); }
.on-dark:not(.scrolled) .brand .brand-sub { color: #e8b477; }

.nav { display: flex; align-items: center; gap: clamp(1.1rem, 2.4vw, 2rem); }
.nav a { font-weight: 500; font-size: .96rem; color: var(--ink); position: relative; padding: .3rem 0; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--accent); border-radius: 2px; transition: width .28s ease; }
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }

.lang-switch {
  position: relative;
  display: inline-flex;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1.5px var(--line);
  font-size: .82rem;
  font-weight: 600;
}
.lang-switch a, .lang-switch span { padding: .42rem .8rem; color: inherit; position: relative; z-index: 1; transition: color .3s ease; }
.lang-switch .active { background: var(--accent); color: #fff; }

/* Water-droplet indicator: injected by JS, glides between options with a
   springy overshoot and a mid-flight squash before the page switches. */
.lang-switch .lang-pill {
  /* inset from the capsule wall so its stroke stays visible and the
     droplet's curve nests inside the capsule's own pill shape */
  position: absolute; top: 2.5px; left: 0; height: calc(100% - 5px); width: 0;
  background: var(--accent);
  border-radius: 999px;
  z-index: 0;
  padding: 0;
  /* no positional overshoot: the pill must never leave the capsule,
     even when the target sits at either rounded end */
  transition: left .42s cubic-bezier(.22, 1, .36, 1), width .42s cubic-bezier(.22, 1, .36, 1);
}
.lang-switch .lang-pill.stretch { animation: pill-squish .42s cubic-bezier(.22, 1, .36, 1); }
@keyframes pill-squish {
  0%   { transform: scale(1); }
  45%  { transform: scaleX(1.06) scaleY(.78); }
  100% { transform: scale(1); }
}
.lang-switch.has-pill .active { background: transparent; }
.lang-switch a.pill-target { color: #fff !important; }
.lang-switch.pill-moved .active { color: inherit !important; background: transparent; }
.on-dark:not(.scrolled) .lang-switch { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
.on-dark:not(.scrolled) .lang-switch a { color: #fff; }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: currentColor; margin: 5px 0; border-radius: 2px; transition: transform .3s ease, opacity .3s ease; color: var(--ink); }
.on-dark:not(.scrolled) .nav-toggle span { background: #fff; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero-media { position: absolute; inset: -10% 0; z-index: -2; overflow: hidden; will-change: transform; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 18s ease-out both; }
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(20,15,8,.42) 0%, rgba(20,15,8,.18) 40%, rgba(20,15,8,.72) 100%),
    linear-gradient(90deg, rgba(20,15,8,.5) 0%, rgba(20,15,8,.05) 65%);
}
@keyframes kenburns {
  from { transform: scale(1.12) translateY(-1.5%); }
  to   { transform: scale(1) translateY(0); }
}
.hero-content { padding: calc(var(--header-h) + 6vh) 0 clamp(3rem, 8vh, 5.5rem); width: min(1180px, 92vw); margin-inline: auto; }
.hero .eyebrow { color: #f0c48e; }
.hero .eyebrow::before { background: #f0c48e; }
.hero h1 {
  color: #fff;
  font-size: clamp(2.5rem, 5.6vw, 4.4rem);
  font-weight: 600;
  max-width: 17ch;
  margin-bottom: .45em;
  text-wrap: balance;
}
.hero p { max-width: 52ch; font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: rgba(255,255,255,.88); margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* stats strip */
.stats { border-top: 1px solid rgba(255,255,255,.22); margin-top: clamp(2.4rem, 5vh, 3.6rem); padding-top: clamp(1.4rem, 3vh, 2rem); display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 600; line-height: 1.1; }
.stat b sup { font-size: .5em; }
.stat > span { font-size: .86rem; color: rgba(255,255,255,.78); letter-spacing: .02em; }

/* ---------- cards ---------- */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .35s ease, box-shadow .35s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card-media { aspect-ratio: 4 / 3; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.6,.2,1); }
.card:hover .card-media img { transform: scale(1.06); }
.card-body { padding: 1.6rem 1.7rem 1.8rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.card-body h3 { font-size: 1.35rem; margin: 0; }
.card-body p { color: var(--ink-soft); font-size: .97rem; margin: 0; }
.card-link { margin-top: auto; padding-top: 1rem; font-weight: 600; font-size: .94rem; display: inline-flex; align-items: center; gap: .4rem; }
.card-link svg { width: 16px; height: 16px; transition: transform .25s ease; }
.card-link:hover svg { transform: translateX(4px); }

.chip-row { display: flex; flex-wrap: wrap; gap: .45rem; margin: .4rem 0 .2rem; }
.chip { font-size: .78rem; font-weight: 600; color: var(--accent-deep); background: var(--accent-soft); border-radius: 999px; padding: .28rem .7rem; }

/* ---------- process / steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.6rem); counter-reset: step; }
.step { position: relative; }
.step-media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow-sm); }
.step-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.6,.2,1); }
.step:hover .step-media img { transform: scale(1.05); }
.step h3 { font-size: 1.12rem; margin: 1.1rem 0 .3rem; display: flex; align-items: baseline; gap: .6rem; }
.step h3::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--font-display); color: var(--accent); font-size: .95rem; }
.step p { font-size: .93rem; color: var(--ink-soft); margin: 0; }

/* ---------- feature grid ---------- */
.feature { display: flex; gap: 1.1rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem 1.6rem; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: transparent; }
.feature-icon { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-deep); display: grid; place-items: center; }
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.08rem; margin: .1rem 0 .25rem; font-family: var(--font-body); font-weight: 650; }
.feature p { font-size: .93rem; color: var(--ink-soft); margin: 0; }

/* ---------- split section ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split-media { position: relative; }
.split-media .main { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.split-media .floating {
  position: absolute; right: -8%; bottom: -12%;
  width: 46%; aspect-ratio: 3/4; object-fit: cover;
  border-radius: var(--radius);
  border: 5px solid var(--bg);
  box-shadow: var(--shadow-md);
  will-change: transform;
}
.split-media.flip .floating { right: auto; left: -8%; }
.checklist { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .75rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; color: var(--ink-soft); }
.checklist svg { width: 21px; height: 21px; flex: none; color: var(--accent); margin-top: .15rem; }
.checklist b { color: var(--ink); font-weight: 600; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; color: #fff; overflow: hidden; isolation: isolate; }
.cta-band .cta-bg { position: absolute; inset: -16% 0; z-index: -2; will-change: transform; }
.cta-band .cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(26,19,10,.92) 20%, rgba(26,19,10,.55) 100%); }
.cta-inner { padding: clamp(4rem, 9vw, 6.5rem) 0; max-width: 620px; }
.cta-inner h2 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.cta-inner p { color: rgba(255,255,255,.85); margin-bottom: 1.8rem; }

/* ---------- tables ---------- */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  /* edge shadows appear only while more columns are off-screen */
  background:
    linear-gradient(90deg, var(--surface) 33%, rgba(255,255,255,0)) left / 48px 100% no-repeat local,
    linear-gradient(270deg, var(--surface) 33%, rgba(255,255,255,0)) right / 48px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(33,27,19,.22), transparent) left / 16px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(33,27,19,.22), transparent) right / 16px 100% no-repeat scroll,
    var(--surface);
}
table.spec { width: 100%; border-collapse: collapse; min-width: 560px; font-size: .95rem; }
table.spec th, table.spec td { text-align: left; padding: .85rem 1.2rem; border-bottom: 1px solid var(--line); }
table.spec th { background: var(--dark); color: var(--cream); font-weight: 600; font-size: .84rem; letter-spacing: .06em; text-transform: uppercase; }
table.spec tr:last-child td { border-bottom: 0; }
table.spec tbody tr { transition: background .2s ease; }
table.spec tbody tr:hover { background: var(--accent-soft); }
.table-note { font-size: .85rem; color: var(--ink-faint); margin-top: .8rem; }

/* ---------- page hero (subpages) ---------- */
.page-hero { position: relative; color: #fff; padding: calc(var(--header-h) + clamp(3.5rem, 9vw, 6rem)) 0 clamp(3rem, 7vw, 5rem); isolation: isolate; overflow: hidden; }
.page-hero .ph-bg { position: absolute; inset: -12% 0; z-index: -2; will-change: transform; }
.page-hero .ph-bg img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 16s ease-out both; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(22,16,9,.55), rgba(22,16,9,.78)); }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.6rem); max-width: 20ch; }
.page-hero p { color: rgba(255,255,255,.86); max-width: 56ch; font-size: 1.08rem; margin: 0; }
.page-hero .eyebrow { color: #f0c48e; }
.page-hero .eyebrow::before { background: #f0c48e; }
.breadcrumbs { font-size: .85rem; margin-bottom: 1.2rem; color: rgba(255,255,255,.72); }
.breadcrumbs a { color: rgba(255,255,255,.9); }
.breadcrumbs span { margin: 0 .45rem; opacity: .6; }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; }
.gallery a, .gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; display: block; position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; transition: transform .6s cubic-bezier(.2,.6,.2,1); }
.gallery figure:hover img { transform: scale(1.07); }
.gallery .tall img { aspect-ratio: 3/4; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.contact-card { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 2rem; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.3rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list .feature-icon { width: 42px; height: 42px; }
.contact-list b { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-faint); font-weight: 600; margin-bottom: .1rem; }
.contact-list a, .contact-list span.val { font-weight: 550; color: var(--ink); }
.contact-list a:hover { color: var(--accent-deep); }

form.quote { display: grid; gap: 1rem; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-size: .84rem; font-weight: 600; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink);
  padding: .8rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  transition: border-color .2s ease, box-shadow .2s ease;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(176,97,25,.15); }
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: .84rem; color: var(--ink-faint); margin: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--dark); color: #cfc4b4; font-size: .95rem; }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(1.6rem, 4vw, 3rem); padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-weight: 650; font-size: .95rem; letter-spacing: .04em; margin-bottom: 1rem; }
.site-footer .brand { color: #fff; margin-bottom: .9rem; }
.site-footer p { color: #b4a989; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-links a { color: #cfc4b4; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 1.3rem 0; display: flex; flex-wrap: wrap; gap: .8rem; justify-content: space-between; font-size: .84rem; color: #9a8f7e; }

/* ---------- reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.6,.2,1), transform .8s cubic-bezier(.2,.6,.2,1); transition-delay: var(--d, 0s); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- misc ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 28px rgba(37, 211, 102, .45);
  transition: transform .25s ease;
}
.wa-float:hover { transform: translateY(-4px) scale(1.05); color: #fff; }
.wa-float svg { width: 28px; height: 28px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--accent); color: #fff; padding: .7rem 1.2rem; border-radius: 0 0 10px 0; z-index: 200; }
.skip-link:focus { left: 0; color: #fff; }

::selection { background: var(--accent); color: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split-media .floating { bottom: -8%; }
  .split .split-media { order: -1; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet: collapse navigation into the burger menu */
@media (max-width: 900px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: flex-start;
    background: var(--bg);
    padding: 1.4rem 5vw 2rem;
    gap: 1.1rem;
    box-shadow: 0 30px 40px rgba(33,27,19,.12);
    transform: translateY(-130%);
    transition: transform .35s cubic-bezier(.2,.6,.2,1);
    z-index: -1;
  }
  .nav.open { transform: none; }
  .nav a { color: var(--ink) !important; font-size: 1.1rem; }
  .nav-toggle { display: block; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Phone */
@media (max-width: 760px) {
  .grid-2, .grid-3, .form-row { grid-template-columns: 1fr; }
  .hero { min-height: 88vh; }
  .split-media .floating { display: none; }
}

/* Small phone */
@media (max-width: 560px) {
  :root { --header-h: 64px; }
  body { font-size: 15.5px; }
  .footer-main, .steps { grid-template-columns: 1fr; }
  .step-media { aspect-ratio: 16 / 10; }
  .stats { gap: 1rem 1.2rem; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .contact-card, form.quote { padding: 1.4rem; }
  .card-body { padding: 1.3rem 1.4rem 1.5rem; }
  .wa-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  /* Compact header from here down so the wordmark + toggles fit every phone */
  .header-inner { gap: .6rem; }
  .brand { font-size: 1.1rem; gap: .5rem; }
  .brand svg { width: 32px; height: 32px; }
  .brand .brand-sub { font-size: .53rem; letter-spacing: .2em; }
  .lang-switch { font-size: .78rem; }
  .lang-switch a, .lang-switch span { padding: .36rem .58rem; }
  .nav-toggle { width: 40px; padding: 9px 7px; }
}

/* Very narrow phones */
@media (max-width: 400px) {
  .brand { font-size: 1rem; }
  .brand svg { width: 29px; height: 29px; }
  .brand .brand-sub { font-size: .5rem; letter-spacing: .18em; }
  .lang-switch { font-size: .75rem; }
  .lang-switch a, .lang-switch span { padding: .34rem .5rem; }
  .nav-toggle { width: 36px; padding: 8px 6px; }
}

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