/* =========================================================
   High Cliff Homes Ltd
   Palette: greys only + near-black ink
   --------------------------------------------------------- */
:root {
  --grey-050: #f4f4f2;
  --grey-100: #e9e9e6;
  --grey-150: #deddda;
  --grey-200: #cfcfcc;
  --grey-300: #b6b6b2;
  --grey-400: #8f8f8b;
  --grey-500: #6c6c68;
  --grey-600: #4d4d4a;
  --grey-700: #343432;
  --grey-800: #262625;
  --grey-900: #171716;
  --grey-950: #101010;

  --text: #262625;
  --text-soft: #55554f;
  --bg: #e9e9e6;

  --font-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(76px, 12vw, 148px);
  --section-sm: clamp(56px, 9vw, 104px);
  --nav-h: 82px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 14px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; }

/* ---------- Shared bits ---------- */
.section-eyebrow {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--grey-500);
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-eyebrow::before {
  content: "";
  width: 44px;
  height: 2px;
  background: currentColor;
  flex: none;
}
.section-eyebrow--light { color: var(--grey-400); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 16px 32px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 2px solid var(--grey-900);
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
    color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn__arrow {
  display: inline-block;
  transition: transform 0.2s var(--ease);
}
.btn:hover .btn__arrow { transform: translateX(5px); }
.btn:focus-visible {
  outline: 3px solid var(--grey-500);
  outline-offset: 3px;
}

.btn--solid {
  background: var(--grey-900);
  color: var(--grey-050);
}
.btn--solid:hover {
  background: #000;
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(16, 16, 16, 0.28);
}
.btn--ghost {
  background: transparent;
  color: var(--grey-900);
}
.btn--ghost:hover {
  background: var(--grey-900);
  color: var(--grey-050);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(16, 16, 16, 0.22);
}

/* =========================================================
   Sticky navigation
   --------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.nav.is-stuck,
.nav.is-open {
  background: rgba(233, 233, 230, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--grey-300);
}
.nav.is-stuck { box-shadow: 0 1px 22px rgba(16, 16, 16, 0.07); }

.nav__inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav__brand {
  flex: none;
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav__brand img { height: 52px; width: auto; }
.nav__wordmark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.02rem;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--grey-900);
  white-space: nowrap;
}

.nav__menu {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.6vw, 34px);
}
.nav__menu a {
  position: relative;
  padding: 6px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-soft);
  transition: color 0.18s ease;
}
.nav__menu a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--grey-900);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s var(--ease);
}
.nav__menu a:hover { color: var(--grey-900); }
.nav__menu a:hover::after,
.nav__menu a.is-active::after { transform: scaleX(1); }
.nav__menu a.is-active { color: var(--grey-900); }

.nav__cta {
  border: 2px solid var(--grey-900);
  padding: 9px 18px !important;
  color: var(--grey-900) !important;
  transition: background 0.18s ease, color 0.18s ease !important;
}
.nav__cta::after { display: none; }
.nav__cta:hover {
  background: var(--grey-900);
  color: var(--grey-050) !important;
}

.nav__toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--grey-900);
  transition: transform 0.22s var(--ease), opacity 0.22s ease;
}
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* =========================================================
   Hero
   --------------------------------------------------------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  align-items: center;
  padding: clamp(40px, 9vw, 96px) 0;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 72% 18%, var(--grey-050), transparent 60%),
    linear-gradient(180deg, var(--grey-100), var(--grey-200));
}

.hero__watermark {
  position: absolute;
  right: -6%;
  bottom: -12%;
  width: min(60vw, 720px);
  height: auto;
  color: var(--grey-300);
  opacity: 0.35;
  z-index: -2;
  animation: watermark-float 14s ease-in-out infinite;
}
@keyframes watermark-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

.hero__blueprint {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  color: var(--grey-500);
  opacity: 0.5;
}
.hero__blueprint .draw {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: var(--len, 1200);
  stroke-dashoffset: var(--len, 1200);
  animation: draw-line 2.6s ease forwards;
  animation-delay: calc(var(--i, 0) * 0.28s);
}
.hero__blueprint .node {
  fill: var(--grey-600);
  opacity: 0;
  animation: node-pop 0.5s ease forwards;
  animation-delay: calc(2.4s + var(--i, 0) * 0.2s);
}
.blueprint__grid line {
  stroke: var(--grey-400);
  stroke-width: 0.5;
  opacity: 0.25;
}
@keyframes draw-line { to { stroke-dashoffset: 0; } }
@keyframes node-pop {
  0% { opacity: 0; transform: scale(0); transform-box: fill-box; transform-origin: center; }
  70% { opacity: 1; transform: scale(1.5); transform-box: fill-box; transform-origin: center; }
  100% { opacity: 1; transform: scale(1); transform-box: fill-box; transform-origin: center; }
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.hero__eyebrow {
  margin: 0 0 26px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--grey-500);
}
.hero__eyebrow::before {
  content: "";
  width: 44px;
  height: 2px;
  background: currentColor;
}

.hero__title {
  margin: 0;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  font-size: clamp(2.9rem, 10vw, 8.4rem);
  color: var(--text);
}
.hero__title span { display: block; }
.hero__title span:last-child {
  color: var(--grey-500);
  -webkit-text-stroke: 1px var(--grey-600);
}
.hero__title em {
  font-style: normal;
  font-size: 0.3em;
  font-weight: 800;
  letter-spacing: 0.25em;
  vertical-align: 0.7em;
  margin-left: 0.15em;
  -webkit-text-stroke: 0;
  color: var(--grey-500);
}

.hero__tagline {
  margin: 28px 0 40px;
  max-width: 32ch;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.55;
  color: var(--text-soft);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--grey-500);
  z-index: 2;
}
.hero__scroll-line {
  width: 1px;
  height: 44px;
  background: var(--grey-400);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grey-700);
  animation: scroll-cue 2s ease-in-out infinite;
}
@keyframes scroll-cue {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}

/* Hero entrance */
.hero__eyebrow,
.hero__title span,
.hero__tagline,
.hero__actions {
  opacity: 0;
  transform: translateY(22px);
  animation: rise 0.9s var(--ease) forwards;
}
.hero__eyebrow { animation-delay: 0.1s; }
.hero__title span:first-child { animation-delay: 0.22s; }
.hero__title span:last-child { animation-delay: 0.34s; }
.hero__tagline { animation-delay: 0.48s; }
.hero__actions { animation-delay: 0.6s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

/* =========================================================
   About
   --------------------------------------------------------- */
.about {
  position: relative;
  background: var(--grey-100);
  border-top: 1px solid var(--grey-300);
  padding: var(--section) 0 calc(var(--section) + clamp(20px, 6vw, 56px));
  overflow: hidden;
}
.about__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 7vw, 96px);
  align-items: start;
}
.about__title {
  margin: 20px 0 0;
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.015em;
  font-size: clamp(1.75rem, 3.6vw, 2.9rem);
  color: var(--text);
}
.about__body p {
  margin: 0 0 22px;
  max-width: 56ch;
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.75;
  color: var(--text-soft);
}
.about__body p:last-of-type { margin-bottom: 0; }

.about__facts {
  list-style: none;
  margin: 40px 0 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--grey-300);
  display: flex;
  flex-wrap: wrap;
  gap: 32px 40px;
}
.about__facts li {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-500);
}
.about__facts li span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--text);
}

.about__line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: clamp(70px, 10vw, 120px);
  color: var(--grey-400);
  opacity: 0.6;
}
.about__line .draw {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: var(--len, 2400);
  stroke-dashoffset: var(--len, 2400);
}
.about__line .node { fill: var(--grey-500); opacity: 0; }
.about.is-visible .about__line .draw { animation: draw-line 2.4s ease forwards; }
.about.is-visible .about__line .node {
  animation: node-pop 0.5s ease forwards;
  animation-delay: 2.2s;
}

/* =========================================================
   What we do
   --------------------------------------------------------- */
.work {
  background: var(--bg);
  padding: var(--section) 0;
}
.work__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.work__list {
  list-style: none;
  margin: 44px 0 0;
  padding: 0;
  border-top: 1px solid var(--grey-300);
}
.work__item {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) 92px;
  gap: clamp(20px, 5vw, 60px);
  align-items: start;
  padding: clamp(30px, 5vw, 52px) 0;
  border-bottom: 1px solid var(--grey-300);
}
.work__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--grey-400);
  padding-top: 6px;
}
.work__text h3 {
  margin: 0 0 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.12;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  color: var(--text);
}
.work__text p {
  margin: 0;
  max-width: 60ch;
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.75;
  color: var(--text-soft);
}
.work__mark {
  width: 100%;
  height: auto;
  color: var(--grey-500);
  justify-self: end;
  transition: color 0.2s ease;
}
.work__item:hover .work__mark { color: var(--grey-900); }

/* =========================================================
   Our process (dark)
   --------------------------------------------------------- */
.process {
  background: var(--grey-900);
  color: var(--grey-100);
  padding: var(--section) 0;
}
.process__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.process__title {
  margin: 20px 0 0;
  max-width: 22ch;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-size: clamp(1.75rem, 3.6vw, 2.8rem);
  color: var(--grey-050);
}
.process__steps {
  list-style: none;
  margin: clamp(44px, 7vw, 80px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
}
.process__step {
  padding-top: 26px;
  border-top: 2px solid var(--grey-600);
}
.process__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: var(--grey-400);
}
.process__step h3 {
  margin: 14px 0 12px;
  font-weight: 800;
  line-height: 1.15;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  color: var(--grey-050);
}
.process__step p {
  margin: 0;
  font-size: clamp(0.98rem, 1.3vw, 1.06rem);
  line-height: 1.7;
  color: var(--grey-300);
}

/* =========================================================
   Service area
   --------------------------------------------------------- */
.area {
  background: var(--bg);
  border-top: 1px solid var(--grey-300);
  padding: var(--section-sm) 0;
}
.area__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}
.area__text {
  margin: 18px 0 0;
  max-width: 34ch;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.32;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  color: var(--text);
}
.area__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.area__list li {
  padding: 9px 15px;
  border: 2px solid var(--grey-300);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--grey-600);
  transition: border-color 0.18s ease, color 0.18s ease;
}
.area__list li:hover {
  border-color: var(--grey-500);
  color: var(--text);
}

/* =========================================================
   Accreditations & affiliations
   --------------------------------------------------------- */
.creds {
  background: var(--grey-100);
  border-top: 1px solid var(--grey-300);
  padding: var(--section-sm) 0;
}
.creds__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.creds__title {
  margin: 20px 0 0;
  max-width: 24ch;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.015em;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  color: var(--text);
}
.creds__grid {
  list-style: none;
  margin: clamp(36px, 6vw, 64px) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.creds__grid li {
  flex: 0 1 calc(33.333% - 11px);
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--grey-300);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 4vw, 40px);
  min-height: 140px;
}
.creds__grid img {
  max-width: 100%;
  max-height: 72px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.6;
  transition: filter 0.25s ease, opacity 0.25s ease;
}
.creds__grid li:hover img {
  filter: none;
  opacity: 1;
}

/* =========================================================
   Contact (dark)
   --------------------------------------------------------- */
.contact {
  background: var(--grey-900);
  color: var(--grey-100);
  padding: var(--section) 0;
}
.contact__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 7vw, 90px);
  align-items: start;
}
.contact__title {
  margin: 20px 0 0;
  max-width: 16ch;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-size: clamp(1.75rem, 3.6vw, 2.8rem);
  color: var(--grey-050);
}
.contact__details {
  list-style: none;
  margin: clamp(30px, 5vw, 48px) 0 0;
  padding: 0;
}
.contact__details li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 0;
  border-top: 1px solid var(--grey-600);
}
.contact__details li:last-child { border-bottom: 1px solid var(--grey-600); }
.contact__details span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey-400);
}
.contact__details a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  color: var(--grey-050);
  transition: color 0.18s ease;
  width: max-content;
}
.contact__details a:hover { color: var(--grey-300); }

.contact__form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey-400);
}
.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--grey-050);
  background: var(--grey-800);
  border: 2px solid var(--grey-600);
  padding: 13px 14px;
  border-radius: 0;
  transition: border-color 0.18s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--grey-300); }

.contact__form .btn {
  align-self: flex-start;
  margin-top: 4px;
  border-color: var(--grey-050);
  background: var(--grey-050);
  color: var(--grey-900);
}
.contact__form .btn:hover {
  background: #fff;
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
}
.contact__form .btn:disabled { opacity: 0.6; cursor: default; transform: none; box-shadow: none; }

.contact__status {
  margin: 4px 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--grey-300);
}
.contact__status[data-state="ok"] { color: #cfe8cf; }
.contact__status[data-state="error"] { color: #e8cfcf; }

/* =========================================================
   Footer
   --------------------------------------------------------- */
.footer {
  background: var(--grey-950);
  color: var(--grey-300);
  border-top: 2px solid var(--grey-700);
}
.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--section-sm) var(--gutter) clamp(40px, 6vw, 60px);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: clamp(30px, 5vw, 64px);
}
.footer__brand img {
  height: 62px;
  width: auto;
  margin-bottom: 18px;
}
.footer__brand p {
  margin: 0;
  max-width: 32ch;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--grey-400);
}
.footer__label {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey-500);
}
.footer__links,
.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__links a,
.footer__contact a {
  width: max-content;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-300);
  transition: color 0.18s ease;
}
.footer__links a:hover,
.footer__contact a:hover { color: var(--grey-050); }

.footer__bar {
  border-top: 1px solid var(--grey-800);
}
.footer__bar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 22px var(--gutter);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--grey-500);
}
.footer__bar-inner p { margin: 0; }

/* =========================================================
   Responsive
   --------------------------------------------------------- */
@media (max-width: 960px) {
  .about__inner { grid-template-columns: 1fr; gap: 28px; }
  .contact__inner { grid-template-columns: 1fr; gap: 36px; }
  .contact__form .btn { align-self: stretch; }
}

@media (max-width: 860px) {
  .area__inner { grid-template-columns: 1fr; gap: 24px; align-items: start; }
  .work__item { grid-template-columns: 40px minmax(0, 1fr); }
  .work__mark { display: none; }
  .process__steps { grid-template-columns: 1fr; gap: 0; }
  .process__step { padding: 24px 0; border-top: 2px solid var(--grey-600); }
  .process__step:last-child { border-bottom: 2px solid var(--grey-600); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .creds__grid li { flex-basis: calc(50% - 8px); }
}

/* Nav collapses to a menu */
@media (max-width: 820px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--nav-h);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 6px var(--gutter) 22px;
    background: var(--bg);
    border-bottom: 1px solid var(--grey-300);
    box-shadow: 0 22px 44px rgba(16, 16, 16, 0.14);
    transform: translateY(-130%);
    transition: transform 0.32s var(--ease);
  }
  .nav.is-open .nav__menu { transform: none; }
  .nav__menu a {
    padding: 16px 2px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--grey-200);
  }
  .nav__menu a::after { display: none; }
  .nav__menu a.is-active { color: var(--grey-900); }
  .nav__cta {
    margin-top: 16px;
    text-align: center;
    justify-content: center;
    border-width: 2px;
  }
}

@media (max-width: 560px) {
  :root { --nav-h: 68px; }
  .nav__brand img { height: 44px; }
  .nav__brand { gap: 10px; }
  .nav__wordmark { font-size: 0.9rem; }
  .hero__eyebrow { margin-bottom: 20px; letter-spacing: 0.18em; }
  .hero__title span:last-child em { display: inline-block; margin-top: 0.2em; }
  .hero__actions { gap: 12px; }
  .btn { flex: 1 1 100%; padding: 15px 24px; }
  .about__facts { gap: 22px 28px; }
  .creds__grid li { flex-basis: 100%; max-width: none; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bar-inner { justify-content: flex-start; }
}

@media (max-width: 380px) {
  .hero__title { font-size: 2.5rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-delay: 0s !important;
    transition-duration: 0.01s !important;
  }
  .hero__blueprint .draw,
  .about__line .draw { stroke-dashoffset: 0; }
  .hero__eyebrow,
  .hero__title span,
  .hero__tagline,
  .hero__actions { opacity: 1; transform: none; }
}
