/* ==========================================================================
   GPT Stal Solutions Sp. z o.o.
   Direction: architectural editorial — limestone paper, graphite, one oxide accent.
   Type: Archivo (display + text), IBM Plex Mono (labels, figures).
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --paper: #F5F3EE;
  --bone: #ECE9E2;
  --stone: #DDD9CF;
  --white: #FFFFFF;
  --ink: #12181B;
  --graphite: #1B2428;
  --steel: #5A666C;
  --mist: #A4AEB3;
  --accent: #C2441C;
  --accent-dark: #A23716;
  --accent-light: #E8693F;
  --line: rgba(18, 24, 27, 0.16);
  --line-light: rgba(245, 243, 238, 0.2);

  --font-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --container: 1320px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --header-h: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

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

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

body.nav-open { overflow: hidden; }

img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

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

/* ---------- Type helpers ---------- */
h1, h2, h3 { font-weight: 800; letter-spacing: -0.025em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.2vw, 3.5rem); line-height: 1.04; }
h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.01em; }

.eyebrow,
.section-index,
.mono-num,
dt,
.tags li,
.field label,
.hero__figure-head,
figcaption {
  font-family: var(--font-mono);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
}
.eyebrow__dot { width: 9px; height: 9px; background: var(--accent); display: inline-block; }

.section-index {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 1.25rem;
}
.section-index span { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.6rem;
  font: 600 0.95rem/1 var(--font-sans);
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1.5px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.btn svg { width: 1.1em; height: 1.1em; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: var(--accent-dark); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--ink);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
}
.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  min-height: 38px;
}
.topbar a { text-decoration: none; color: var(--paper); }
.topbar a:hover { color: var(--accent-light); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s;
}
.site-header.is-scrolled { box-shadow: 0 8px 24px -16px rgba(18, 24, 27, 0.35); }

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  flex-shrink: 0;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--ink);
  color: var(--accent-light);
  transition: background-color 0.3s;
}
.brand__mark svg { width: 26px; height: 26px; }
.brand:hover .brand__mark { background: var(--accent); color: var(--white); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; text-transform: uppercase; }
.brand__text span { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel); margin-top: 0.2rem; }
.brand--light .brand__mark { background: var(--paper); color: var(--accent); }
.brand--light .brand__text span { color: var(--mist); }

.nav ul { display: flex; align-items: center; gap: clamp(1.25rem, 2.6vw, 2.5rem); }
.nav a:not(.btn) {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.1rem;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav a:not(.btn):hover::after,
.nav a.is-active::after { transform: scaleX(1); }
.nav__cta-mobile { display: none; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  padding: 0;
  background: transparent;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 11px; right: 11px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s, top 0.3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.is-nav-open .nav-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.is-nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.is-nav-open .nav-toggle span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(3rem, 6vw, 5.5rem);
  background: var(--paper);
  overflow: hidden;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: stretch;
}
.hero__grid::before {
  content: "";
  position: absolute;
  inset: -3rem 0 0 0;
  border-inline: 1px solid rgba(18, 24, 27, 0.08);
  background-image: repeating-linear-gradient(90deg, rgba(18, 24, 27, 0.06) 0 1px, transparent 1px calc(100% / 6));
  pointer-events: none;
  z-index: 0;
}
.hero__copy, .hero__figure { position: relative; z-index: 1; }

.hero__copy { display: flex; flex-direction: column; justify-content: center; padding: 1rem 0 2rem; }

.hero h1 {
  margin: 1.75rem 0 1.75rem;
  font-size: clamp(2.6rem, 5.4vw, 5rem);
  line-height: 1;
  letter-spacing: -0.035em;
}
.hero h1 em { font-style: normal; color: var(--accent); }

.hero__lead {
  max-width: 40rem;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.6;
  color: #2E383D;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }

.hero__tags { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; margin-top: 2.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); max-width: 40rem; }
.hero__tags li {
  position: relative;
  padding-left: 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
}
.hero__tags li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 5px; height: 5px; background: var(--accent); }

.hero__figure {
  display: flex;
  flex-direction: column;
  background: var(--graphite);
  color: var(--paper);
  padding: 1.25rem 1.25rem 1.1rem;
  min-height: 560px;
}
.hero__figure-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line-light);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist);
}
.drawing { width: 100%; height: auto; flex: 1; margin-block: 0.75rem; }
.hero__figure figcaption {
  padding-top: 0.9rem;
  border-top: 1px solid var(--line-light);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--mist);
}

.dp { color: var(--paper); opacity: 0; animation: rise 0.9s var(--ease) forwards; animation-delay: calc(var(--i) * 0.16s + 0.2s); }
.dims path { stroke: var(--accent-light); stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s ease forwards; animation-delay: 1s; }
.drawing__text text { font-family: var(--font-mono); font-size: 14px; fill: var(--accent-light); }
.drawing__text .cap { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; fill: var(--mist); }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 2px solid var(--ink);
  position: relative;
  z-index: 1;
}
.fact { padding: 1.5rem 1.5rem 1.75rem 0; }
.fact + .fact { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.fact dt { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel); margin-bottom: 0.6rem; }
.fact dd { font-weight: 600; line-height: 1.4; }
.fact a { text-decoration: none; border-bottom: 1px solid var(--accent); }
.fact a:hover { color: var(--accent); }

/* ---------- Sections ---------- */
.section { padding: clamp(4.5rem, 9vw, 8.5rem) 0; }

.section-head { max-width: 62rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: end;
  max-width: none;
}
.section-head--split > p { color: var(--steel); font-size: 1.1rem; }
.section-head--right { margin-left: auto; max-width: 56rem; }

/* ---------- About ---------- */
.about { background: var(--paper); border-top: 1px solid var(--line); }
.about .section-head { display: grid; grid-template-columns: minmax(0, 0.45fr) minmax(0, 1.55fr); gap: 2rem; max-width: none; align-items: start; }
.about .section-index { margin-bottom: 0; padding-top: 0.9rem; }

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.about__text > * + * { margin-top: 1.4rem; }
.about__text p { color: #3A464B; }
.about__text .lead { font-size: 1.35rem; line-height: 1.55; font-weight: 500; color: var(--ink); }

.about__highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem !important;
  padding-top: 2rem;
  border-top: 2px solid var(--ink);
}
.about__highlights h3 { margin: 0.6rem 0 0.5rem; }
.about__highlights p { font-size: 0.97rem; line-height: 1.55; }
.mono-num { display: inline-block; font-size: 0.8rem; letter-spacing: 0.1em; color: var(--accent); border: 1px solid var(--accent); padding: 0.1rem 0.5rem; }

.about__side { display: grid; gap: 1.5rem; position: sticky; top: calc(var(--header-h) + 1.5rem); }

.glance { background: var(--graphite); color: var(--paper); padding: 2rem; }
.glance h3 { margin-bottom: 1.25rem; font-size: 1.1rem; }
.glance dl div { padding: 0.9rem 0; border-top: 1px solid var(--line-light); }
.glance dt { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mist); margin-bottom: 0.25rem; }
.glance dd { font-weight: 500; line-height: 1.4; }
.glance a { text-decoration: none; color: var(--accent-light); word-break: break-word; }
.glance a:hover { text-decoration: underline; }

.material-note { padding: 1.75rem 2rem; background: var(--bone); border-left: 4px solid var(--accent); }
.material-note h3 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.material-note p { font-size: 0.97rem; color: #3A464B; line-height: 1.6; }

.fig { margin-top: clamp(3rem, 6vw, 5.5rem); background: var(--bone); border: 1px solid var(--line); padding: clamp(1.25rem, 3vw, 2.5rem); }
.fig__scroll { overflow-x: auto; }
.fig__svg { display: block; width: 100%; min-width: 760px; height: auto; color: var(--ink); }
.fig__stage circle { fill: none; stroke: var(--mist); stroke-width: 1.5; stroke-dasharray: 3 4; }
.fig__stage .strip { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linejoin: round; stroke-linecap: square; }
.fig__stage--final .strip { stroke: var(--accent); }
.fig__stage .arrow { fill: none; stroke: var(--steel); stroke-width: 1.6; }
.fig__stage text { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; fill: var(--ink); }
.fig__stage text.n { fill: var(--accent); font-size: 11px; }
.fig figcaption { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: 0.78rem; letter-spacing: 0.03em; color: var(--steel); }
.fig figcaption span { color: var(--accent); margin-right: 0.5rem; }

/* ---------- Services ---------- */
.services { background: var(--bone); }

.services__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.service-list { border-bottom: 1px solid var(--ink); }
.service {
  position: relative;
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) 72px;
  gap: 1.25rem;
  padding: 2.25rem 1.5rem 2.25rem 0;
  border-top: 1px solid var(--ink);
  cursor: default;
  transition: background-color 0.35s, padding 0.35s var(--ease);
}
.service::before {
  content: "";
  position: absolute;
  left: 0; top: -1px; bottom: 0;
  width: 4px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease);
}
.service.is-active { background: var(--paper); padding-left: 1.25rem; }
.service.is-active::before { transform: scaleY(1); }

.service__num { font-family: var(--font-mono); font-size: 0.95rem; color: var(--steel); padding-top: 0.35rem; transition: color 0.3s; }
.service.is-active .service__num { color: var(--accent); }
.service h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); margin-bottom: 0.75rem; letter-spacing: -0.02em; }
.service p { color: #3A464B; max-width: 38rem; }
.service__icon { width: 72px; height: 72px; color: var(--steel); transition: color 0.3s, transform 0.4s var(--ease); }
.service.is-active .service__icon { color: var(--accent); transform: scale(1.06); }

.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.tags li {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  color: var(--steel);
  background: transparent;
}

.service-panel {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  background: var(--graphite);
  color: var(--paper);
  padding: 1.5rem 1.5rem 2rem;
}
.service-panel__head {
  display: flex;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line-light);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist);
}
.service-panel__head b { color: var(--accent-light); font-weight: 500; }
.service-panel__art {
  display: grid;
  place-items: center;
  margin: 1.25rem 0 1.5rem;
  aspect-ratio: 4 / 3;
  background-image:
    linear-gradient(rgba(245, 243, 238, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 243, 238, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  border: 1px solid var(--line-light);
  color: var(--paper);
}
.service-panel__art svg { width: 62%; height: auto; }
.service-panel__art svg.swap { animation: rise 0.55s var(--ease); }
.service-panel h3 { font-size: 1.5rem; margin-bottom: 1.25rem; }
.service-panel__label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-light); margin-bottom: 0.4rem; }
.service-panel #panel-output { color: #D4D9DB; font-size: 0.97rem; line-height: 1.55; }

/* ---------- Process ---------- */
.process { background: var(--graphite); color: var(--paper); }
.process .section-index { color: var(--mist); }
.process .section-index span { color: var(--accent-light); }
.process .section-head--split > p { color: var(--mist); }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.step { position: relative; padding-top: 2rem; border-top: 2px solid var(--line-light); }
.step::before {
  content: "";
  position: absolute;
  left: 0; top: -2px;
  height: 2px; width: 100%;
  background: var(--accent-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s var(--ease) 0.3s;
}
.step.is-visible::before, .no-js .step::before { transform: scaleX(1); }
.step__num {
  display: block;
  margin-bottom: 1.5rem;
  font-size: clamp(3rem, 5vw, 4.25rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent-light);
}
.step h3 { margin-bottom: 0.75rem; }
.step p { color: var(--mist); font-size: 0.98rem; }
.process__note {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--accent-light);
  background: rgba(245, 243, 238, 0.05);
  color: #D4D9DB;
  max-width: 46rem;
}

/* ---------- Benefits ---------- */
.benefits { background: var(--paper); }

.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.25rem; }
.benefit {
  position: relative;
  overflow: hidden;
  padding: 2rem;
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.benefit:hover { transform: translateY(-5px); box-shadow: 0 22px 40px -26px rgba(18, 24, 27, 0.45); }
.benefit h3 { margin: 1rem 0 0.75rem; font-size: 1.4rem; letter-spacing: -0.02em; }
.benefit p { color: #3A464B; }
.benefit__num { font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.12em; color: var(--accent); }

.benefit--lead {
  grid-column: 1 / span 5;
  grid-row: span 2;
  background: var(--graphite);
  border-color: var(--graphite);
  color: var(--paper);
  padding: 2.5rem;
  min-height: 460px;
}
.benefit--lead h3 { font-size: clamp(1.7rem, 2.6vw, 2.25rem); line-height: 1.1; max-width: 22rem; }
.benefit--lead p { color: #C9D0D3; max-width: 28rem; }
.benefit--lead .benefit__num { color: var(--accent-light); }
.benefit__art { position: absolute; right: -1.5rem; bottom: -1.5rem; width: 15rem; height: 15rem; color: var(--accent-light); opacity: 0.9; transition: transform 0.6s var(--ease); }
.benefit--lead:hover .benefit__art { transform: translate(-6px, -6px) rotate(-2deg); }

.benefit--b { grid-column: 6 / span 7; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.5rem; background: var(--white); }
.benefit--b h3 { margin-top: 0; }
.benefit--c { grid-column: 6 / span 4; background: var(--bone); }
.benefit--d { grid-column: 10 / span 3; background: var(--white); }
.benefit--e {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  padding: 2.5rem;
}
.benefit--e .benefit__num { color: var(--white); opacity: 0.8; }
.benefit--e h3 { margin-top: 0; font-size: clamp(1.4rem, 2.2vw, 1.9rem); max-width: 36rem; }
.benefit--e p { color: rgba(255, 255, 255, 0.92); max-width: 44rem; }
.benefit__art--wide { color: var(--white); opacity: 0.22; right: 1rem; bottom: -2.5rem; width: 16rem; height: 16rem; }

/* ---------- Contact ---------- */
.contact { background: var(--bone); border-top: 1px solid var(--line); }
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.contact__info { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.contact__info h3 { padding-bottom: 1rem; border-bottom: 2px solid var(--ink); }
.contact__info dl div { padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
.contact__info dt { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel); margin-bottom: 0.3rem; }
.contact__info dd { font-weight: 600; font-size: 1.1rem; line-height: 1.4; }
.contact__info a { text-decoration: none; border-bottom: 2px solid var(--accent); word-break: break-word; }
.contact__info a:hover { color: var(--accent); }
.contact__note { margin-top: 1.5rem; color: var(--steel); font-size: 0.97rem; }

.form { background: var(--white); border: 1px solid var(--line); padding: clamp(1.5rem, 3.5vw, 3rem); border-top: 4px solid var(--accent); }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.field { margin-bottom: 1.35rem; }
.field label { display: block; margin-bottom: 0.5rem; font-size: 0.74rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
.field label .optional { color: var(--steel); text-transform: none; letter-spacing: 0.02em; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #B9B6AC;
  border-radius: 2px;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--white); box-shadow: 0 0 0 3px rgba(194, 68, 28, 0.18); }
.field [aria-invalid="true"] { border-color: var(--accent-dark); background: #FBEFEA; }
.field__error { min-height: 0; margin-top: 0.4rem; font-size: 0.85rem; color: var(--accent-dark); font-weight: 500; }
.field__error:empty { display: none; }

.check { display: flex !important; align-items: flex-start; gap: 0.75rem; font-family: var(--font-sans) !important; font-size: 0.92rem !important; font-weight: 400 !important; letter-spacing: 0 !important; text-transform: none !important; line-height: 1.5; color: #3A464B !important; cursor: pointer; }
.check input { width: 1.2rem; height: 1.2rem; margin: 0.15rem 0 0; accent-color: var(--accent); flex-shrink: 0; }

.form__submit { margin-top: 0.5rem; }
.form__status { margin-top: 1.25rem; font-size: 0.95rem; }
.form__status:empty { display: none; }
.form__status.is-success { padding: 1rem 1.25rem; background: #EAF1EC; border-left: 4px solid #2F7A4D; color: #1F4D33; }
.form__status.is-error { padding: 1rem 1.25rem; background: #FBEFEA; border-left: 4px solid var(--accent-dark); color: var(--accent-dark); }

.map { position: relative; margin-top: clamp(3rem, 6vw, 5rem); border: 1px solid var(--ink); background: var(--stone); }
.map iframe { display: block; width: 100%; height: clamp(300px, 38vw, 440px); border: 0; filter: grayscale(1) contrast(1.05); }
.map__link { position: absolute; left: 1rem; bottom: 1rem; padding: 0.7rem 1.1rem; background: var(--ink); color: var(--paper); font-size: 0.9rem; font-weight: 600; text-decoration: none; transition: background-color 0.25s; }
.map__link:hover { background: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--mist); padding-top: clamp(3.5rem, 6vw, 5.5rem); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 0.7fr 0.9fr 1.1fr; gap: clamp(1.5rem, 4vw, 4rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.footer__brand p { margin-top: 1.5rem; max-width: 26rem; font-size: 0.97rem; }
.brand--light { color: var(--paper); }
.site-footer h3 { margin-bottom: 1.1rem; font-family: var(--font-mono); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper); }
.site-footer li + li { margin-top: 0.55rem; }
.site-footer a { text-decoration: none; transition: color 0.2s; }
.site-footer a:hover { color: var(--accent-light); }
.site-footer address { font-style: normal; font-size: 0.97rem; }
.site-footer address p + p { margin-top: 0.75rem; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem 2rem; padding: 1.5rem 0 2rem; border-top: 1px solid rgba(245, 243, 238, 0.14); font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.04em; }

/* ---------- Scroll reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
/* Keep hover lift working after reveal */
.js .benefit.reveal.is-visible { transition: opacity 0.9s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__figure { min-height: 0; max-width: 640px; }
  .hero__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }

  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem 2rem; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }

  .navbar__cta { display: none; }
  .nav-toggle { display: block; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    padding: 2rem var(--gutter) 3rem;
    background: var(--ink);
    color: var(--paper);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0.3s;
  }
  .is-nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav li { border-bottom: 1px solid var(--line-light); }
  .nav a:not(.btn) { display: block; padding: 1.1rem 0; font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; }
  .nav a:not(.btn)::after { display: none; }
  .nav a.is-active { color: var(--accent-light); }
  .nav__cta-mobile { display: block; border-bottom: 0 !important; margin-top: 2rem; }
  .nav__cta-mobile .btn { width: 100%; }

  .topbar__code { display: none; }

  .about .section-head { grid-template-columns: 1fr; gap: 0; }
  .about .section-index { padding-top: 0; margin-bottom: 1.25rem; }
  .about__grid, .services__layout, .contact__grid, .section-head--split { grid-template-columns: 1fr; }
  .about__side, .contact__info { position: static; }
  .section-head--right { margin-left: 0; }

  .service-panel { display: none; }

  .benefit--lead, .benefit--b, .benefit--c, .benefit--d, .benefit--e { grid-column: 1 / -1; grid-row: auto; }
  .benefit--lead { min-height: 400px; }
}

@media (max-width: 720px) {
  body { font-size: 1rem; }
  .topbar__inner { justify-content: center; min-height: 34px; }
  .topbar__inner p { display: none; }

  .brand__text span { display: none; }
  .brand__text strong { font-size: 1.05rem; }

  .hero__actions .btn { flex: 1 1 100%; }
  .hero__facts { grid-template-columns: 1fr; }
  .fact, .fact + .fact { padding: 1.25rem 0; border-left: 0; }
  .fact + .fact { border-top: 1px solid var(--line); }

  .about__highlights { grid-template-columns: 1fr; }

  .service { grid-template-columns: 2.75rem minmax(0, 1fr); padding: 1.75rem 0; gap: 0.75rem; }
  .service.is-active { padding-left: 0.9rem; padding-right: 0.5rem; }
  .service__icon { grid-column: 2; grid-row: 2; width: 56px; height: 56px; margin-top: 0.5rem; }

  .steps { grid-template-columns: 1fr; gap: 2.5rem; }

  .benefit, .benefit--lead, .benefit--e { padding: 1.5rem; }
  .benefit--b, .benefit--e { grid-template-columns: 1fr; gap: 0.5rem; }
  .benefit__art { width: 11rem; height: 11rem; }
  .benefit--lead { min-height: 420px; }

  .form__row { grid-template-columns: 1fr; gap: 0; }
  .form__submit { width: 100%; }

  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-delay: 0s !important; }
  .dp { opacity: 1; }
  .dims path { stroke-dashoffset: 0; }
  .js .reveal { opacity: 1; transform: none; }
  .step::before { transform: scaleX(1); }
}
