/* ==========================================================================
   Technoverse BIM Immersion — single page site
   Palette: dark navy / warm white / teal accent
   ========================================================================== */

:root {
  --navy-900: #071320;
  --navy-800: #0b1c2c;
  --navy-700: #122a3d;
  --navy-600: #1b3a50;
  --teal-500: #14b8a6;
  --teal-600: #0e9488;
  --teal-300: #6ee7dd;
  --warm-50: #fdfbf7;
  --warm-100: #f7f3ec;
  --warm-200: #efe8dd;
  --ink: #152430;
  --ink-soft: #46596a;
  --ink-mute: #6c7d8c;
  --line: #e2dccf;
  --line-navy: rgba(255, 255, 255, 0.14);
  --white: #ffffff;

  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1160px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(15, 35, 50, 0.06), 0 6px 18px -12px rgba(15, 35, 50, 0.25);
  --shadow-md: 0 2px 4px rgba(15, 35, 50, 0.05), 0 18px 40px -24px rgba(15, 35, 50, 0.35);
}

/* ---------------------------------- reset --------------------------------- */

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

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

ul, ol, dl, dd { margin: 0; padding: 0; }

ul, ol { list-style: none; }

a { color: inherit; }

::selection {
  background: rgba(20, 184, 166, 0.25);
  color: var(--navy-900);
}

:focus-visible {
  outline: 2px solid var(--teal-500);
  outline-offset: 3px;
  border-radius: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 22px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--white);
  color: var(--navy-900);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: top 0.18s ease;
}
.skip-link:focus { top: 12px; }

/* ================================= HEADER ================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 19, 32, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(7, 19, 32, 0.97);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px -20px rgba(0, 0, 0, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 66px;
}

/* brand */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
  padding: 6px 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  color: var(--teal-300);
  border: 1px solid rgba(110, 231, 221, 0.35);
  border-radius: 9px;
  background: rgba(20, 184, 166, 0.08);
}

.brand-mark svg { width: 22px; height: 22px; }

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.brand-sub {
  font-size: 0.66rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.56);
  margin-top: 3px;
}

/* nav toggle */

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.24s ease, opacity 0.2s ease;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: relative;
}
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 5.5px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-5.5px) rotate(-45deg); }

/* primary nav — mobile panel first */

.primary-nav {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--navy-900);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 40px -28px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  max-height: 0;
  visibility: hidden;
  transition: max-height 0.34s ease, visibility 0.34s;
}

.primary-nav.is-open {
  max-height: 30rem;
  visibility: visible;
}

.primary-nav ul {
  display: flex;
  flex-direction: column;
  padding: 8px 22px 22px;
  gap: 2px;
}

.primary-nav a {
  display: block;
  padding: 13px 4px;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.97rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: color 0.18s ease, padding-left 0.18s ease;
}

.primary-nav li:last-child a { border-bottom: 0; }

.primary-nav a:hover,
.primary-nav a[aria-current="true"] { color: var(--teal-300); }

.primary-nav .nav-cta {
  margin-top: 12px;
  padding: 13px 18px;
  text-align: center;
  border: 1px solid rgba(110, 231, 221, 0.45);
  border-radius: 999px;
  color: var(--navy-900);
  background: var(--teal-300);
  font-weight: 600;
  border-bottom: 0;
}
.primary-nav .nav-cta:hover { background: #fff; color: var(--navy-900); }

/* ================================== HERO ================================== */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 82% 8%, rgba(20, 184, 166, 0.16) 0%, rgba(20, 184, 166, 0) 58%),
    radial-gradient(90% 70% at 8% 100%, rgba(27, 58, 80, 0.75) 0%, rgba(11, 28, 44, 0) 62%),
    linear-gradient(160deg, #0b1c2c 0%, #071320 100%);
  color: var(--white);
  padding: clamp(58px, 9vw, 116px) 0 clamp(44px, 6vw, 76px);
  isolation: isolate;
}

/* faint technical-drawing grid */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(115% 100% at 50% 0%, #000 25%, transparent 78%);
  mask-image: radial-gradient(115% 100% at 50% 0%, #000 25%, transparent 78%);
}

/* drawing motif */
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero-motif {
  position: absolute;
  right: -14%;
  top: 4%;
  width: min(760px, 92%);
  height: auto;
  color: var(--teal-300);
  opacity: 0.3;
}

.hero-motif .motif-lines {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.hero-motif .motif-ticks {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  opacity: 0.7;
}

.hero-inner { position: relative; max-width: 780px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(214, 245, 242, 0.86);
  padding: 7px 14px 7px 11px;
  border: 1px solid rgba(110, 231, 221, 0.26);
  border-radius: 999px;
  background: rgba(110, 231, 221, 0.06);
  margin-bottom: clamp(20px, 3vw, 28px);
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal-300);
  box-shadow: 0 0 0 3px rgba(110, 231, 221, 0.18);
}

.hero-title {
  font-size: clamp(2.16rem, 6.1vw, 4.05rem);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.08;
  margin-bottom: clamp(18px, 2.6vw, 26px);
}

.accent-underline {
  color: var(--teal-300);
  position: relative;
}

.hero-sub {
  font-size: clamp(1rem, 2.1vw, 1.19rem);
  line-height: 1.62;
  color: rgba(226, 238, 243, 0.82);
  max-width: 34ch;
  margin-bottom: clamp(28px, 4vw, 38px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  margin-bottom: clamp(38px, 5vw, 56px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--teal-500);
  color: #06231f;
  box-shadow: 0 10px 28px -14px rgba(20, 184, 166, 0.85);
}

.btn-primary:hover {
  background: var(--teal-300);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -16px rgba(20, 184, 166, 0.9);
}

.btn-primary:active { transform: translateY(0); }

.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: rgba(240, 249, 250, 0.9);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(240, 249, 250, 0.22);
  padding-bottom: 2px;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.link-arrow svg {
  width: 15px;
  height: 15px;
  transition: transform 0.22s ease;
}

.link-arrow:hover { color: var(--teal-300); border-color: var(--teal-300); }
.link-arrow:hover svg { transform: translateX(3px); }

/* hero facts strip */
.hero-facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.hero-facts > div {
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.hero-facts > div:last-child { border-bottom: 0; }

.hero-facts dt {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 4px;
}

.hero-facts dd {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.94);
}

/* ============================== SECTION SHELL ============================= */

.section {
  padding: clamp(58px, 8.4vw, 104px) 0;
  position: relative;
}

.section-head { margin-bottom: clamp(30px, 4vw, 50px); }

.section-head h2 {
  font-size: clamp(1.62rem, 3.9vw, 2.5rem);
  max-width: 26ch;
}

.kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 14px;
}

.kicker--onDark { color: var(--teal-300); }

.section-head--split {
  display: grid;
  gap: 16px;
}

.section-note {
  color: var(--ink-mute);
  font-size: 0.96rem;
  max-width: 34ch;
}

/* ================================== ABOUT ================================= */

.section-about { background: var(--warm-50); }

.about-layout {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
}

.about-copy p + p { margin-top: 16px; }

.about-copy p {
  color: var(--ink-soft);
  font-size: 1rem;
}

.about-copy .lead {
  color: var(--ink);
  font-size: clamp(1.04rem, 1.9vw, 1.16rem);
  line-height: 1.62;
}

.about-aside {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3.4vw, 30px);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

/* corner detail line, drawing-sheet flavour */
.about-aside::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 66px;
  height: 3px;
  background: linear-gradient(90deg, var(--teal-500), rgba(20, 184, 166, 0));
}

.about-aside h3 {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 18px;
}

.zone-list { display: grid; gap: 15px; }

.zone-list li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: start;
}

.zone-index {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: 1px solid rgba(20, 184, 166, 0.32);
  background: rgba(20, 184, 166, 0.07);
  color: var(--teal-600);
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 600;
  margin-top: 2px;
}

.zone-list strong {
  display: block;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}

.zone-list span span { display: block; }

.zone-list li > span:last-child {
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* ================================= SERVICES =============================== */

.section-services {
  background: var(--warm-100);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.service-card {
  background: var(--warm-50);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 28px);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(20, 184, 166, 0.45);
  box-shadow: var(--shadow-md);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 10px;
  color: var(--teal-600);
  background: rgba(20, 184, 166, 0.09);
  border: 1px solid rgba(20, 184, 166, 0.22);
}

.card-icon svg { width: 21px; height: 21px; }

.service-card h3 {
  font-size: 1.06rem;
  line-height: 1.3;
  margin-bottom: 9px;
}

.service-card p {
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.6;
}

/* ================================= PROCESS ================================ */

.section-process { background: var(--warm-50); }

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  margin-bottom: clamp(30px, 4vw, 46px);
}

.step {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.step-num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--teal-600);
  border: 1px solid rgba(20, 184, 166, 0.3);
  border-radius: 5px;
  padding: 2px 7px;
  margin-bottom: 12px;
}

.step h3 {
  font-size: 1.12rem;
  margin-bottom: 7px;
}

.step p {
  color: var(--ink-soft);
  font-size: 0.93rem;
  line-height: 1.6;
}

.process-notes {
  display: grid;
  gap: 16px;
}

.note-card {
  background: var(--navy-800);
  color: #e6eff4;
  border-radius: var(--radius);
  padding: clamp(24px, 3.4vw, 32px);
  position: relative;
  overflow: hidden;
}

.note-card::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(110, 231, 221, 0.22);
  border-radius: 50%;
}

.note-card h3 {
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 10px;
}

.note-card p {
  color: rgba(219, 233, 240, 0.8);
  font-size: 0.95rem;
  line-height: 1.66;
  max-width: 62ch;
}

.toolset {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3.4vw, 28px);
}

.toolset h3 {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 16px;
}

.tool-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tool-chips li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--warm-100);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink);
}

.tool-chips li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal-500);
  flex: none;
}

/* ================================ EXPERIENCE ============================== */

.section-experience {
  background: var(--warm-100);
  border-top: 1px solid var(--line);
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.project-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 26px);
  display: flex;
  flex-direction: column;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.project-card:hover {
  border-color: rgba(20, 184, 166, 0.45);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.project-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 10px;
}

.project-card h3 {
  font-size: 1.1rem;
  margin-bottom: 9px;
}

.project-card > p:not(.project-tag) {
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.project-points {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.project-points li {
  font-size: 0.79rem;
  color: var(--ink-mute);
  background: var(--warm-100);
  border-radius: 999px;
  padding: 4px 10px;
}

.disclaimer {
  margin-top: clamp(22px, 3vw, 30px);
  padding: 18px 20px;
  border-left: 3px solid var(--teal-500);
  background: var(--warm-50);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.62;
}

.disclaimer strong { color: var(--ink); font-weight: 600; }

/* ================================= CONTACT ================================ */

.section-contact {
  background:
    radial-gradient(90% 80% at 88% 0%, rgba(20, 184, 166, 0.13) 0%, rgba(20, 184, 166, 0) 60%),
    linear-gradient(160deg, #0b1c2c 0%, #071320 100%);
  color: #e8f1f6;
  overflow: hidden;
  position: relative;
}

.section-contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(100% 90% at 70% 20%, #000 10%, transparent 75%);
  mask-image: radial-gradient(100% 90% at 70% 20%, #000 10%, transparent 75%);
  pointer-events: none;
}

.contact-layout {
  position: relative;
  display: grid;
  gap: clamp(30px, 4.4vw, 52px);
  align-items: start;
}

.contact-intro h2 {
  font-size: clamp(1.8rem, 4.4vw, 2.9rem);
  color: var(--white);
  margin-bottom: 18px;
  max-width: 22ch;
}

.contact-lead {
  color: rgba(220, 234, 241, 0.82);
  font-size: 1rem;
  max-width: 44ch;
  margin-bottom: 20px;
}

.check-list { display: grid; gap: 10px; }

.check-list li {
  position: relative;
  padding-left: 28px;
  color: rgba(226, 238, 243, 0.86);
  font-size: 0.94rem;
  line-height: 1.55;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid rgba(110, 231, 221, 0.5);
  background:
    linear-gradient(45deg, transparent 45%, var(--teal-300) 45%, var(--teal-300) 55%, transparent 55%) no-repeat 3px 6.5px / 9px 5px;
}

.contact-card {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: clamp(24px, 3.6vw, 32px);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.contact-card h3 {
  font-size: 1.06rem;
  color: var(--white);
  margin-bottom: 18px;
}

.contact-list { display: grid; gap: 0; margin-bottom: 24px; }

.contact-list > div {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  align-items: baseline;
}

.contact-list > div:first-child { border-top: 1px solid rgba(255, 255, 255, 0.1); }

.contact-list dt {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.contact-list dd {
  font-size: 0.97rem;
  color: rgba(240, 249, 250, 0.95);
  overflow-wrap: anywhere;
}

.contact-link {
  display: inline-block;
  color: var(--teal-300);
  text-decoration: none;
  border-bottom: 1px solid rgba(110, 231, 221, 0.35);
  padding-bottom: 1px;
  font-weight: 500;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.contact-link:hover {
  color: #fff;
  border-bottom-color: #fff;
}

.contact-foot {
  margin-top: 14px;
  font-size: 0.83rem;
  color: rgba(214, 230, 238, 0.62);
  line-height: 1.5;
}

/* ================================= FOOTER ================================= */

.site-footer {
  background: var(--navy-900);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding: 28px 0 34px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-inner { display: grid; gap: 8px; }

.footer-brand {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.footer-meta {
  font-size: 0.82rem;
  line-height: 1.6;
}

.footer-meta a {
  color: rgba(214, 245, 242, 0.82);
  text-decoration: none;
  border-bottom: 1px solid rgba(214, 245, 242, 0.24);
}

.footer-meta a:hover { color: var(--teal-300); }

/* ============================== BREAKPOINTS =============================== */

/* ---- small tablets ---- */
@media (min-width: 560px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-facts { grid-template-columns: repeat(3, 1fr); }
  .hero-facts > div {
    padding: 18px 0 0;
    border-bottom: 0;
  }
  .hero-facts > div + div {
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
  }
  .process-notes { grid-template-columns: 1fr; }
}

/* ---- tablet / desktop nav ---- */
@media (min-width: 860px) {
  .wrap { padding-inline: 32px; }

  .nav-toggle { display: none; }

  .primary-nav {
    position: static;
    max-height: none;
    visibility: visible;
    overflow: visible;
    background: none;
    border: 0;
    box-shadow: none;
  }

  .primary-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 4px;
    padding: 0;
  }

  .primary-nav a {
    padding: 9px 12px;
    border-bottom: 0;
    border-radius: 999px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.76);
    transition: color 0.18s ease, background-color 0.18s ease;
  }

  .primary-nav a:hover,
  .primary-nav a[aria-current="true"] {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
  }

  .primary-nav li:last-child { margin-left: 6px; }

  .primary-nav .nav-cta {
    margin-top: 0;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(110, 231, 221, 0.12);
    color: var(--teal-300);
    border: 1px solid rgba(110, 231, 221, 0.4);
    font-size: 0.86rem;
  }

  .primary-nav .nav-cta:hover {
    background: var(--teal-300);
    color: var(--navy-900);
  }

  .section-head--split {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
    align-items: end;
    gap: 32px;
  }

  .section-note { justify-self: end; text-align: right; }

  .about-layout { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); }

  /* steps stay stacked until there is room for five readable columns */
  .steps { max-width: 720px; }

  .process-notes { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); }

  .contact-layout { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }

  .contact-card { padding: 34px; }

  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 6px 24px;
  }

  .footer-brand { grid-column: 1; grid-row: 1; }
  .footer-meta:first-of-type { grid-column: 1; grid-row: 2; }
  .footer-meta:last-of-type { grid-column: 2; grid-row: 1 / span 2; text-align: right; }
}

/* ---- desktop ---- */
@media (min-width: 1040px) {
  .card-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .project-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }

  .steps {
    max-width: none;
    grid-template-columns: repeat(5, 1fr);
  }

  .step {
    padding: 26px 20px 8px 0;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }

  .step + .step { padding-left: 20px; }

  .step:last-child { border-right: 0; padding-right: 0; }

  .hero-inner { max-width: 800px; }

  .hero-motif {
    right: -6%;
    top: 2%;
    width: min(700px, 56%);
  }
}

/* ---- motion preferences ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---- print ---- */
@media print {
  .site-header,
  .nav-toggle { display: none; }
  body { background: #fff; }
  .section { padding: 24px 0; }
}
