/* ==========================================================================
   Járnaverk ehf. – stílar
   Design tokens: dark graphite base, warm concrete surfaces, rust accent.
   ========================================================================== */

:root {
  --ink: #15181c;
  --ink-2: #1f2429;
  --ink-3: #2b3238;
  --concrete: #f3f1ec;
  --concrete-2: #e7e3db;
  --line: #d6d1c7;
  --line-dark: rgba(255, 255, 255, 0.12);
  --text: #1a1d21;
  --text-muted: #5b626a;
  --text-on-dark: #f3f1ec;
  --text-on-dark-muted: #b4b9bf;
  --rust: #d4581f;
  --rust-hover: #b8481a;
  --rust-soft: rgba(212, 88, 31, 0.14);
  --success: #2e7d4f;
  --error: #c62828;

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Segoe UI", system-ui, sans-serif;

  --radius: 6px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.14);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--concrete);
  overflow-x: hidden;
}

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

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.005em;
  margin: 0 0 0.4em;
  text-wrap: balance;
}

h1 { font-size: clamp(44px, 7.2vw, 96px); font-weight: 800; text-transform: uppercase; letter-spacing: 0.01em; }
h2 { font-size: clamp(34px, 4.6vw, 58px); text-transform: uppercase; }
h3 { font-size: clamp(22px, 2.2vw, 28px); }

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 3px;
  background: var(--rust);
  vertical-align: middle;
  margin-right: 12px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  background: var(--rust);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius);
  z-index: 1000;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 12px 22px;
  min-height: 48px;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 180ms var(--ease-out), border-color 180ms var(--ease-out), transform 120ms var(--ease-out), color 180ms;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--rust); color: #fff; }
.btn-primary:hover { background: var(--rust-hover); }
.btn-ghost { background: rgba(255, 255, 255, 0.06); color: #fff; border-color: rgba(255, 255, 255, 0.5); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); border-color: #fff; }
.btn-lg { font-size: 20px; padding: 14px 28px; min-height: 54px; }
.btn-sm { font-size: 16px; padding: 8px 16px; min-height: 44px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(21, 24, 28, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
  color: var(--text-on-dark);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) {
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  color: var(--text-on-dark-muted);
  padding: 8px 0;
  position: relative;
  transition: color 160ms;
}
.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 2px;
  background: var(--rust);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--ease-out);
}
.site-nav a:not(.btn):hover { color: #fff; }
.site-nav a:not(.btn):hover::after,
.site-nav a:not(.btn).is-active::after { transform: scaleX(1); }
.site-nav a.is-active { color: #fff; }

.nav-toggle {
  display: none;
  width: 48px; height: 48px;
  background: transparent;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: var(--radius);
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  transition: transform 220ms var(--ease-out), opacity 160ms;
}
.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); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(560px, calc(100svh - var(--header-h)), 860px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--text-on-dark);
  background: var(--ink);
  isolation: isolate;
}
.hero-media, .hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  z-index: -2;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(21,24,28,0.35) 0%, rgba(21,24,28,0.15) 35%, rgba(21,24,28,0.78) 80%, rgba(21,24,28,0.95) 100%),
    linear-gradient(90deg, rgba(21,24,28,0.55) 0%, rgba(21,24,28,0.0) 60%);
}
.hero-content {
  padding-top: clamp(80px, 14vh, 160px);
  padding-bottom: clamp(48px, 7vh, 96px);
  max-width: calc(var(--container));
}
.hero-content h1 { max-width: 12ch; margin-bottom: 0.3em; text-shadow: 0 2px 20px rgba(0,0,0,0.35); }
.hero .lead {
  font-size: clamp(18px, 1.6vw, 22px);
  max-width: 56ch;
  color: rgba(243, 241, 236, 0.9);
  margin-bottom: 28px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* hero entrance */
.hero-content > * { animation: rise 700ms var(--ease-out) both; }
.hero-content > :nth-child(1) { animation-delay: 80ms; }
.hero-content > :nth-child(2) { animation-delay: 180ms; }
.hero-content > :nth-child(3) { animation-delay: 320ms; }
.hero-content > :nth-child(4) { animation-delay: 440ms; }
.hero-stats { animation: fade 800ms 600ms var(--ease-out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* hand-drawn underline */
.underline-doodle { position: relative; display: inline-block; }
.doodle-underline {
  position: absolute;
  left: -2%; right: -2%; bottom: -0.12em;
  width: 104%; height: 0.32em;
  overflow: visible;
  pointer-events: none;
}
.doodle-underline path {
  fill: none;
  stroke: var(--rust);
  stroke-width: 7;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.hero .doodle-underline path { animation: drawline 900ms 700ms var(--ease-out) forwards; }
.is-visible .doodle-underline path { animation: drawline 900ms 250ms var(--ease-out) forwards; }
.underline-doodle--light .doodle-underline path { stroke: #ff7a3d; stroke-width: 5; }
@keyframes drawline { to { stroke-dashoffset: 0; } }

.hero-stats {
  background: rgba(21, 24, 28, 0.72);
  border-top: 1px solid var(--line-dark);
  backdrop-filter: blur(8px);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.stat {
  padding: 22px 20px 22px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 1px solid var(--line-dark);
  padding-left: 20px;
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 34px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.stat-num sup { font-size: 0.55em; color: var(--rust); vertical-align: top; }
.stat-label { font-size: 14px; color: var(--text-on-dark-muted); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 10vw, 128px); }
.section-dark {
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  color: var(--text-on-dark);
}
.section-dark .eyebrow { color: #ff7a3d; }
.section-dark .eyebrow::before { background: #ff7a3d; }
.section-light { background: #fff; }

.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-intro { font-size: 19px; color: var(--text-muted); max-width: 64ch; }
.section-dark .section-intro { color: var(--text-on-dark-muted); }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px 28px;
  position: relative;
  overflow: hidden;
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out), border-color 220ms;
}
.service::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--rust);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 260ms var(--ease-out);
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.service:hover::before { transform: scaleY(1); }
.service-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  background: var(--rust-soft);
  color: var(--rust);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.service-icon svg { width: 28px; height: 28px; }
.service-icon svg * { stroke-dasharray: 90; stroke-dashoffset: 90; }
.service.is-visible .service-icon svg * { animation: drawicon 1100ms 150ms var(--ease-out) forwards; }
@keyframes drawicon { to { stroke-dashoffset: 0; } }
.service h3 { font-size: 26px; text-transform: uppercase; letter-spacing: 0.02em; }
.service p { color: var(--text-muted); margin: 0; font-size: 16px; }

/* ---------- Band (quote over image) ---------- */
.band {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}
.band picture, .band img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(21,24,28,0.85) 0%, rgba(21,24,28,0.45) 60%, rgba(21,24,28,0.25) 100%);
}
.band-content { padding-block: 80px; }
.band-text {
  max-width: 680px;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.15;
}

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-dark);
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  left: 0; top: 61px;
  height: 2px;
  width: 0;
  background: repeating-linear-gradient(90deg, var(--rust) 0 10px, transparent 10px 18px);
  opacity: 0.7;
  transition: width 1400ms var(--ease-out);
}
.steps.is-visible::before { width: 100%; }
.step {
  padding: 34px 28px 28px 0;
  border-right: 1px solid var(--line-dark);
  margin-right: 28px;
}
.step:last-child { border-right: 0; margin-right: 0; }
.step-num {
  display: inline-block;
  position: relative;
  background: var(--ink);
  padding-right: 16px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 54px;
  line-height: 1;
  color: var(--rust);
  margin-bottom: 18px;
}
.step h3 { font-size: 24px; text-transform: uppercase; }
.step p { color: var(--text-on-dark-muted); margin: 0; font-size: 16px; }

/* ---------- Projects ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.project {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}
.project:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.project picture { aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink-3); }
.project img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.project:hover img { transform: scale(1.04); }
.project-body { padding: 22px 24px 26px; }
.project-tag::before {
  content: "";
  display: inline-block;
  width: 10px; height: 10px;
  margin-right: 8px;
  vertical-align: -1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1 1l8 8M9 1L1 9' stroke='%23d4581f' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.project-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 8px;
}
.project h3 { font-size: 28px; text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 8px; }
.project p { margin: 0; color: var(--text-muted); font-size: 16px; }

.project-featured { grid-column: span 3; flex-direction: row; }
.project-featured picture { aspect-ratio: auto; flex: 1 1 62%; min-height: 380px; }
.project-featured .project-body {
  flex: 1 1 38%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
  background: var(--ink);
  color: var(--text-on-dark);
}
.project-featured h3 { font-size: clamp(34px, 3.4vw, 46px); }
.project-featured p { color: var(--text-on-dark-muted); font-size: 17px; }

.more-projects { margin-top: clamp(40px, 5vw, 64px); }
.more-projects h3 { font-size: 24px; text-transform: uppercase; margin-bottom: 18px; }
.project-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 40px;
}
.project-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.project-list strong { font-family: var(--font-display); font-size: 20px; text-transform: uppercase; letter-spacing: 0.03em; }
.project-list span { color: var(--text-muted); font-size: 15px; text-align: right; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.about-media { position: relative; }
.about-media picture {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1;
}
.about-media::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--rust);
  border-radius: var(--radius-lg);
  transform: translate(0, 0);
  opacity: 0;
  transition: transform 700ms 300ms var(--ease-out), opacity 500ms 300ms;
}
.about-media.is-visible::before { transform: translate(16px, 16px); opacity: 1; }
.stamp {
  position: absolute;
  z-index: 2;
  width: clamp(96px, 11vw, 136px);
  height: auto;
  top: -34px; right: -26px;
  color: var(--rust);
  animation: spin 22s linear infinite;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.15));
}
.stamp-ring { fill: var(--concrete); stroke: currentColor; stroke-width: 2; }
.stamp-text { font-family: var(--font-display); font-weight: 700; font-size: 12.6px; letter-spacing: 0.14em; fill: var(--ink); }
.stamp-mark path { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; }
.stamp-mark .stamp-x { stroke: currentColor; stroke-width: 2.6; }
.about-body p { color: var(--text-muted); }
.values {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.values li { display: flex; gap: 14px; align-items: flex-start; }
.values svg {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  padding: 9px;
  border-radius: var(--radius);
  background: var(--rust-soft);
  color: var(--rust);
}
.values strong { display: block; font-family: var(--font-display); font-size: 21px; text-transform: uppercase; letter-spacing: 0.03em; }
.values span { color: var(--text-muted); font-size: 16px; }

/* ---------- Contact / Form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.contact-intro p { color: var(--text-on-dark-muted); font-size: 18px; max-width: 46ch; }
.contact-phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 38px;
  letter-spacing: 0.04em;
  color: #fff;
  text-decoration: none;
  margin: 0;
  transition: color 160ms;
}
.contact-phones { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 8px 0 28px; }
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  min-height: 44px;
  font-weight: 600;
  font-size: 19px;
  color: #fff;
  text-decoration: none;
  transition: color 160ms;
}
.contact-email svg { color: var(--rust); }
.contact-email:hover { color: #ff9a68; }
.contact-phone svg { color: var(--rust); }
.contact-phone:hover { color: #ff9a68; }
.doodle-arrow {
  width: 150px;
  height: auto;
  margin: -8px 40px 8px auto;
  display: block;
  color: #ff7a3d;
  transform: rotate(-8deg);
}
.doodle-arrow path {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.doodle-arrow.is-visible path { animation: drawline 900ms 400ms var(--ease-out) forwards; }
.doodle-arrow.is-visible .doodle-arrow-head { animation-delay: 1100ms; animation-duration: 400ms; }
.contact-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
}
.contact-facts dt { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-on-dark-muted); }
.contact-facts dd { margin: 2px 0 0; font-weight: 600; }

.quote-form {
  background: #fff;
  color: var(--text);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.5vw, 40px);
  box-shadow: var(--shadow-md);
}
.quote-form fieldset { border: 0; margin: 0 0 22px; padding: 0; min-width: 0; }
.quote-form legend {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0;
  margin-bottom: 14px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; margin-bottom: 16px; min-width: 0; }
.field label, .field .label { font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.req { color: var(--rust); }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 14px;
  min-height: 48px;
  width: 100%;
  transition: border-color 160ms, box-shadow 160ms;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--rust);
  box-shadow: 0 0 0 3px var(--rust-soft);
}
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--error); }
.hint { font-size: 14px; color: #6b6f74; margin: 6px 0 0; }
.error { font-size: 14px; color: var(--error); margin: 6px 0 0; min-height: 0; font-weight: 500; }
.error:empty { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  user-select: none;
  transition: background-color 160ms, border-color 160ms, color 160ms;
}
.chip:hover span { border-color: var(--rust); }
.chip input:checked + span { background: var(--rust); border-color: var(--rust); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--rust); outline-offset: 2px; }

.form-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 6px; }
.form-note { margin: 0; font-size: 14px; color: var(--text-muted); }
.form-status { margin: 16px 0 0; font-weight: 600; padding: 12px 14px; border-radius: var(--radius); display: none; }
.form-status.is-success { display: block; background: #e7f3ec; color: var(--success); }
.form-status.is-error { display: block; background: #fbe9e9; color: var(--error); }

.btn-spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}
.btn.is-loading { pointer-events: none; opacity: 0.85; }
.btn.is-loading .btn-spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Footer ---------- */
.site-footer {
  background: #0f1114;
  color: var(--text-on-dark-muted);
  border-top: 1px solid var(--line-dark);
  padding-block: 40px;
  font-size: 15px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  align-items: center;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand strong { display: block; color: #fff; font-family: var(--font-display); font-size: 20px; text-transform: uppercase; letter-spacing: 0.06em; }
.footer-contact { display: flex; flex-direction: column; gap: 4px; }
.footer-contact a { color: #fff; text-decoration: none; font-weight: 600; }
.footer-contact a:hover { color: #ff9a68; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-self: end; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { color: #fff; }
.footer-copy { grid-column: 1 / -1; margin: 12px 0 0; padding-top: 16px; border-top: 1px solid var(--line-dark); font-size: 13px; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
.services-grid .reveal:nth-child(2), .projects-grid .reveal:nth-child(3), .steps .reveal:nth-child(2) { transition-delay: 60ms; }
.services-grid .reveal:nth-child(3), .projects-grid .reveal:nth-child(4), .steps .reveal:nth-child(3) { transition-delay: 120ms; }
.services-grid .reveal:nth-child(4), .projects-grid .reveal:nth-child(5), .steps .reveal:nth-child(4) { transition-delay: 180ms; }
.services-grid .reveal:nth-child(5) { transition-delay: 240ms; }
.services-grid .reveal:nth-child(6) { transition-delay: 300ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-content > *, .hero-stats, .stamp { animation: none; }
  .doodle-underline path, .doodle-arrow path, .service-icon svg * { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
  .steps::before { transition: none; width: 100%; }
  .about-media::before { transition: none; transform: translate(16px, 16px); opacity: 1; }
  .project img, .service, .project, .btn { transition: none; }
  .btn-spinner { animation-duration: 1.5s; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .project-featured { grid-column: span 2; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
  .step:nth-child(2) { border-right: 0; margin-right: 0; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-nav { justify-self: start; grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--ink);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px var(--gutter) 20px;
    border-bottom: 1px solid var(--line-dark);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s 200ms;
  }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
  .site-nav a:not(.btn) { padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--line-dark); }
  .site-nav a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 16px; }
  .nav-toggle { display: flex; }

  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .doodle-arrow { display: none; }
  .stamp { top: -22px; right: -10px; }
  .project-featured { flex-direction: column; }
  .project-featured picture { min-height: 0; aspect-ratio: 16 / 10; }
  .project-featured .project-body { padding: 28px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat { padding: 14px 0; border-left: 0; border-top: 1px solid var(--line-dark); }
  .stat:first-child { border-top: 0; }
  .stat-num { font-size: 26px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .services-grid, .projects-grid, .steps, .project-list, .field-row, .contact-facts { grid-template-columns: 1fr; }
  .project-featured { grid-column: span 1; }
  .steps::before { display: none; }
  .step { border-right: 0; margin-right: 0; padding-right: 0; border-bottom: 1px solid var(--line-dark); }
  .step:last-child { border-bottom: 0; }
  .hero-content h1 { max-width: none; }
  .hero-actions .btn { flex: 1 1 100%; }
  .project-list li { flex-direction: column; align-items: flex-start; gap: 2px; }
  .project-list span { text-align: left; }
  .contact-phone { font-size: 32px; }
  .footer-inner { grid-template-columns: 1fr; }
  .band { min-height: 360px; }
}
