/* ==========================================================================
   DULASTA BEHEER POLAND — style.css
   Editorial, warm-neutral design system with one terracotta accent.
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Colour */
  --bg: #F3EEE6;
  --bg-alt: #E9E1D4;
  --ink: #1D1B19;
  --ink-soft: #6A645C;
  --line: rgba(29, 27, 25, 0.16);
  --line-strong: rgba(29, 27, 25, 0.8);
  --accent: #A64826;
  --accent-dark: #8A3B1E;
  --accent-light: #E08A62;
  --dark: #1D1B19;
  --dark-soft: #B9B2A7;
  --error: #8E2A1C;
  --success: #3E6B4B;

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(5rem, 10vw, 9rem);
  --header-h: 76px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-fast: 0.2s;
  --t-med: 0.35s;
}

/* ---------- 2. Reset & base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.menu-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }

address { font-style: normal; }

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.8rem, 6.4vw, 5.5rem); line-height: 1.02; }
h2 { font-size: clamp(2.2rem, 4.6vw, 4rem); line-height: 1.06; }
h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); line-height: 1.2; letter-spacing: -0.01em; }

em { font-style: italic; color: var(--accent); }

section[id] { scroll-margin-top: 60px; }

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 1rem; }

/* ---------- 3. Shared components ---------- */
.eyebrow,
.section-label {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.eyebrow-mark {
  width: 0.55rem;
  height: 0.55rem;
  background: var(--accent);
}

.section-label::before {
  content: "";
  order: 1;
  width: 2.5rem;
  height: 1px;
  background: currentColor;
}
.section-label span { order: 0; color: var(--accent); font-weight: 600; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 1.5rem;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  border-radius: 2px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--t-med) var(--ease), border-color var(--t-med) var(--ease), color var(--t-med) var(--ease);
}
.btn .arrow { transition: transform var(--t-med) var(--ease); }
.btn:hover { background: var(--ink); border-color: var(--ink); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-small { padding: 0.55rem 1.05rem; font-size: 0.85rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: 0 100%;
  padding-bottom: 0.2rem;
  transition: color var(--t-fast), background-size var(--t-med) var(--ease);
}
.link-arrow:hover { color: var(--accent); background-size: 0% 1px; background-position: 100% 100%; }
.link-arrow-light { color: var(--bg); }
.link-arrow-light:hover { color: var(--accent-light); }

.text-link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  transition: color var(--t-fast);
}
.text-link:hover { color: var(--ink); }

.inline-btn {
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  transition: color var(--t-fast);
}
.inline-btn:hover { color: var(--accent); }

/* Media placeholders (swap the <svg> for an <img> to use real photography) */
.media {
  position: relative;
  overflow: hidden;
  background: var(--bg-alt);
}
.media svg,
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Reveal on scroll (only active when JS has run) */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 4. Header ---------- */
.site-header {
  --header-h: 76px;
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: height var(--t-med) var(--ease), background-color var(--t-med), border-color var(--t-med);
}
.site-header.is-scrolled {
  --header-h: 60px;
  background: rgba(243, 238, 230, 0.97);
  border-bottom-color: var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.brand-mark {
  width: 0.8rem;
  height: 1.9rem;
  background: var(--accent);
  box-shadow: 0.35rem 0 0 var(--ink);
  margin-right: 0.35rem;
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.brand-sub {
  margin-top: 0.3rem;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}
.nav-list { display: flex; gap: 2rem; }
.nav-list a {
  position: relative;
  display: inline-block;
  padding: 0.35rem 0;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--t-fast);
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med) var(--ease);
}
.nav-list a:hover { color: var(--accent); }
.nav-list a:hover::after,
.nav-list a[aria-current="true"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle-bar {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  background: var(--ink);
  transition: transform var(--t-med) var(--ease), top var(--t-med) var(--ease);
}
.nav-toggle-bar:nth-child(1) { top: 18px; }
.nav-toggle-bar:nth-child(2) { top: 25px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

/* ---------- 5. Hero ---------- */
.hero {
  padding: calc(76px + clamp(2.5rem, 6vw, 5rem)) 0 clamp(4rem, 8vw, 7rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.hero-copy .eyebrow { margin-bottom: 1.75rem; }
.hero-copy h1 { margin-bottom: 1.75rem; }

.hero-lead {
  max-width: 34rem;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--ink-soft);
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  justify-content: start;
  gap: 1rem 2.5rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-strong);
}
.hero-meta dt {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.hero-meta dd { margin-top: 0.2rem; font-size: 0.95rem; font-weight: 500; overflow-wrap: anywhere; }
.hero-meta a { text-decoration: none; }
.hero-meta a:hover { color: var(--accent); }

.hero-visual {
  position: relative;
  padding-bottom: 3.5rem;
}
.media-main {
  width: 84%;
  margin-left: auto;
  aspect-ratio: 4 / 5;
}
.media-inset {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42%;
  aspect-ratio: 1;
  border: 10px solid var(--bg);
}
.hero-tag {
  position: absolute;
  top: 7%;
  left: 2%;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  max-width: 13.5rem;
  padding: 0.8rem 1rem;
  background: var(--bg);
  border: 1px solid var(--line-strong);
}
.hero-tag-title { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.2; }
.hero-tag-sub {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- 6. About ---------- */
.about { padding: var(--section) 0; border-top: 1px solid var(--line); }

.about-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.5rem var(--gutter);
  margin-bottom: clamp(3rem, 6vw, 5.5rem);
}
.about-head .section-label { grid-column: 1 / -1; }
.about-head h2 { grid-column: 1 / span 8; }

.about-body {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 2.5rem var(--gutter);
  align-items: start;
}
.about-text { grid-column: 1 / span 5; display: grid; gap: 1.35rem; }
.about-text .lead {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.about-text p:not(.lead) { color: var(--ink-soft); }

.about-visual { grid-column: 7 / -1; }
.media-landscape { aspect-ratio: 3 / 2.2; }
.statement {
  position: relative;
  max-width: 21rem;
  margin: -3.5rem 0 0 -3.5rem;
  padding: 1.5rem 1.75rem;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.3;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 var(--gutter);
  margin-top: clamp(3.5rem, 7vw, 6rem);
}
.facts li {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-strong);
}
.fact-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.fact-label { max-width: 17rem; font-size: 0.92rem; color: var(--ink-soft); line-height: 1.5; }

/* ---------- 7. Services ---------- */
.services { padding: 0 0 var(--section); }

.services-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.5rem var(--gutter);
  align-items: end;
  padding-top: var(--section);
  margin-bottom: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
}
.services-head .section-label { grid-column: 1 / -1; }
.services-head h2 { grid-column: 1 / span 7; }
.services-intro { grid-column: 9 / -1; color: var(--ink-soft); }

.service-feature {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0 var(--gutter);
  align-items: end;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.media-feature { grid-column: 1 / span 7; aspect-ratio: 700 / 460; }
.service-feature-body {
  grid-column: 8 / -1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
  padding-top: 1.5rem;
  border-top: 3px solid var(--ink);
}
.service-feature-body h3 { font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1.05; }
.service-feature-body > p { color: var(--ink-soft); }

.svc-num {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.svc-points { display: grid; gap: 0.1rem; width: 100%; margin-bottom: 0.6rem; }
.svc-points li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.5rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.96rem;
}
.svc-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.1rem;
  width: 0.6rem;
  height: 1px;
  background: var(--accent);
}

.service-list { border-bottom: 1px solid var(--line-strong); }
.service-row {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 1rem var(--gutter);
  align-items: start;
  margin-inline: -1rem;
  padding: 2rem 1rem;
  border-top: 1px solid var(--line-strong);
  transition: background-color var(--t-med) var(--ease);
}
.service-row:hover { background: var(--bg-alt); }
.service-row .svc-num { padding-top: 0.35rem; transition: color var(--t-fast); }
.svc-title { display: flex; align-items: flex-start; gap: 1rem; }
.svc-icon {
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--ink);
  transition: transform var(--t-med) var(--ease), color var(--t-fast);
}
.service-row:hover .svc-icon { transform: translateX(4px); color: var(--accent); }
.svc-text { display: grid; gap: 0.9rem; }
.svc-text p:first-child { color: var(--ink-soft); }
.svc-scope {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ---------- 8. Approach (contrast section) ---------- */
.approach {
  position: relative;
  overflow: hidden;
  padding: var(--section) 0;
  background: var(--dark);
  color: var(--bg);
}
/* precise ring echoing the machined-part drawing */
.approach::before {
  content: "";
  position: absolute;
  right: -12rem;
  top: -12rem;
  width: 36rem;
  height: 36rem;
  border: 1px solid rgba(243, 238, 230, 0.12);
  border-radius: 50%;
  pointer-events: none;
}
.approach::after {
  content: "";
  position: absolute;
  right: -7rem;
  top: -7rem;
  width: 26rem;
  height: 26rem;
  border: 1px dashed rgba(243, 238, 230, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.approach-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 3rem var(--gutter);
  align-items: start;
}
.approach-intro {
  grid-column: 1 / span 4;
  position: sticky;
  top: 6rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}
.approach .section-label { color: var(--dark-soft); }
.approach .section-label span,
.approach em { color: var(--accent-light); }
.approach-note { color: var(--dark-soft); }

.benefits {
  grid-column: 6 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3.5rem var(--gutter);
}
.benefit {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(243, 238, 230, 0.28);
}
.benefit:nth-child(even) { margin-top: 3rem; }
.benefit-num {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent-light);
}
.benefit p { color: var(--dark-soft); font-size: 0.98rem; }

/* ---------- 9. Contact ---------- */
.contact {
  padding: var(--section) 0;
  background: var(--bg-alt);
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 3.5rem var(--gutter);
  align-items: start;
}
.contact-info {
  grid-column: 1 / span 5;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-info h2 { font-size: clamp(2.1rem, 4vw, 3.3rem); }
.contact-lead { color: var(--ink-soft); max-width: 26rem; }

.contact-list { display: grid; margin-top: 1rem; }
.contact-list > div {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 0.5rem 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line-strong);
}
.contact-list > div:last-child { border-bottom: 1px solid var(--line-strong); }
.contact-list dt {
  padding-top: 0.2rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.contact-list dd { overflow-wrap: anywhere; }
.contact-list address { margin-bottom: 0.4rem; }

.contact-form-wrap {
  grid-column: 7 / -1;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--bg);
  border: 1px solid var(--line-strong);
}

.contact-form { display: grid; gap: 1.4rem; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field label { font-size: 0.82rem; font-weight: 500; letter-spacing: 0.02em; }
.req { color: var(--accent); }
.opt { font-weight: 400; color: var(--ink-soft); }

.field input,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  background: #fff;
  border: 1px solid rgba(29, 27, 25, 0.35);
  border-radius: 2px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:hover,
.field textarea:hover { border-color: var(--ink); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.field.has-error input,
.field.has-error textarea { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }

.field-error {
  min-height: 0;
  font-size: 0.82rem;
  color: var(--error);
}
.field-error:empty { display: none; }

.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
}
.form-note { flex: 1 1 14rem; font-size: 0.8rem; color: var(--ink-soft); line-height: 1.5; }

.form-status { font-size: 0.95rem; }
.form-status:empty { display: none; }
.form-status.is-success,
.form-status.is-error {
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--success);
  background: rgba(62, 107, 75, 0.09);
}
.form-status.is-error {
  border-left-color: var(--error);
  background: rgba(142, 42, 28, 0.08);
}
.form-status strong { display: block; margin-bottom: 0.25rem; }
.form-status small { display: block; margin-top: 0.4rem; color: var(--ink-soft); font-size: 0.82rem; }

/* ---------- 10. Footer ---------- */
.site-footer { padding: clamp(3.5rem, 6vw, 5rem) 0 2rem; border-top: 1px solid var(--line-strong); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1.2fr 1fr;
  gap: 2.5rem var(--gutter);
}
.footer-brand { display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start; }
.footer-brand > p { max-width: 24rem; font-size: 0.94rem; color: var(--ink-soft); }

.footer-title {
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.footer-col { font-size: 0.94rem; }
.footer-col ul { display: grid; gap: 0.5rem; justify-items: start; }
.footer-col a,
.footer-col .inline-btn { text-decoration: none; transition: color var(--t-fast); }
.footer-col a:hover,
.footer-col .inline-btn:hover { color: var(--accent); }
.footer-col address { line-height: 1.8; overflow-wrap: anywhere; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* ---------- 11. Legal dialogs ---------- */
dialog {
  width: min(92vw, 640px);
  max-height: 86vh;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 2px;
}
dialog::backdrop { background: rgba(29, 27, 25, 0.55); }
.dialog-body {
  position: relative;
  display: grid;
  gap: 1rem;
  max-height: 86vh;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  overflow-y: auto;
  font-size: 0.96rem;
}
.dialog-body h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); padding-right: 2.5rem; }
.dialog-body p { color: var(--ink-soft); }
.dialog-body strong { color: var(--ink); font-weight: 600; }
.dialog-close {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  width: 2.25rem;
  height: 2.25rem;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--t-fast), color var(--t-fast);
}
.dialog-close:hover { background: var(--ink); color: var(--bg); }

/* ---------- 12. Responsive ---------- */
@media (max-width: 1100px) {
  .about-head h2 { grid-column: 1 / span 10; }
  .about-text { grid-column: 1 / span 6; }
  .about-visual { grid-column: 7 / -1; }
  .statement { margin-left: -1.5rem; }
  .services-head h2 { grid-column: 1 / span 8; }
  .services-intro { grid-column: 1 / span 7; }
  .media-feature { grid-column: 1 / span 12; }
  .service-feature-body { grid-column: 1 / -1; margin-top: 2rem; max-width: 40rem; }
  .approach-intro { grid-column: 1 / -1; position: static; }
  .benefits { grid-column: 1 / -1; }
  .contact-info { grid-column: 1 / span 12; }
  .contact-form-wrap { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 959px) {
  .site-header { --header-h: 64px; }
  .site-header.is-scrolled { --header-h: 58px; }
  .hero { padding-top: calc(64px + 2rem); }

  .nav-toggle { display: inline-block; }

  .nav-wrap {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.75rem;
    max-height: calc(100vh - var(--header-h));
    padding: 1rem var(--gutter) 2rem;
    overflow-y: auto;
    background: var(--bg);
    border-bottom: 1px solid var(--line-strong);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease), visibility 0s linear var(--t-med);
  }
  .nav-wrap.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
  }
  .nav-list { flex-direction: column; gap: 0; width: 100%; }
  .nav-list li { border-bottom: 1px solid var(--line); }
  .nav-list a {
    display: block;
    padding: 0.9rem 0;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 400;
  }
  .nav-list a::after { display: none; }
  .nav-list a[aria-current="true"] { color: var(--accent); }
  .nav-wrap .btn { padding: 0.9rem 1.5rem; font-size: 0.95rem; }

  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 34rem; width: 100%; margin-inline: auto; }

  .about-head h2 { grid-column: 1 / -1; }
  .about-text,
  .about-visual { grid-column: 1 / -1; }
  .statement { margin: -2.5rem 0 0 1.25rem; }

  .services-head h2,
  .services-intro { grid-column: 1 / -1; }

  .benefit:nth-child(even) { margin-top: 0; }
}

@media (max-width: 720px) {
  .hero-meta { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero-meta > div:last-child { grid-column: 1 / -1; }

  .facts { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }

  .service-row {
    grid-template-columns: 2.75rem minmax(0, 1fr);
    padding-block: 1.6rem;
  }
  .service-row .svc-text { grid-column: 2 / -1; }
  .svc-icon { width: 2rem; height: 2rem; }

  .benefits { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .contact-list > div { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 420px) {
  .hero-visual .media-main { width: 90%; }
  .hero-tag { left: 0; max-width: 11rem; padding: 0.65rem 0.8rem; }
  .media-inset { border-width: 7px; }
  .brand-sub { letter-spacing: 0.22em; }
}

/* ---------- 13. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
