:root {
  --bg: #0d1621;
  --bg-soft: #132234;
  --surface: #ffffff;
  --surface-alt: #f2f6f9;
  --text: #14202d;
  --muted: #536372;
  --line: #d7e0e8;
  --accent: #f0b429;
  --accent-dark: #c88800;
  --success: #1f7a5a;
  --radius: 20px;
  --shadow: 0 20px 50px rgba(8, 22, 37, 0.14);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--surface-alt);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.container {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: #fff;
  padding: 0.75rem 1rem;
  z-index: 20;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: rgba(13, 22, 33, 0.84);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-contact-bar {
  background: #08111a;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.9);
  font-size: 0.78rem;
  font-weight: 650;
}
.header-contact-bar .container {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}
.header-contact-bar a { color: #fff; }
.header-contact-bar a:hover { color: var(--accent); }
.header-contact-bar .header-contact-divider { color: rgba(255,255,255,0.35); }
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
  gap: 1.5rem;
}
.brand {
  display: grid;
  gap: 0.15rem;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  width: 196px;
  line-height: 0;
}
.brand-mark img {
  width: 100%;
  height: auto;
  max-height: 72px;
  object-fit: contain;
  object-position: left center;
}
.brand-mark:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
  border-radius: 4px;
}
.brand small {
  color: rgba(255,255,255,0.7);
  font-size: 0.82rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  color: rgba(255,255,255,0.88);
}
.nav-links a {
  padding: 0.35rem 0;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -0.15rem;
  height: 2px;
  background: var(--accent);
  transition: right 0.2s ease;
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { right: 0; }
.nav-toggle {
  display: none;
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  color: #fff;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.3rem;
  border-radius: 999px;
  font-weight: 700;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  color: #0f1720;
  box-shadow: 0 14px 28px rgba(240, 180, 41, 0.28);
}
.btn-secondary {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
}
.hero {
  background:
    radial-gradient(circle at top left, rgba(240, 180, 41, 0.18), transparent 30%),
    linear-gradient(180deg, #0d1621 0%, #15273b 100%);
  color: #fff;
  padding: 4.5rem 0 4rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}
.kicker {
  display: inline-block;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: #d6e0ea;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.panel .kicker,
.info-card .kicker,
.page-hero .kicker {
  background: #eef4f7;
  color: #244159;
}
.hero h1 {
  font-size: clamp(2.35rem, 4.4vw, 3.45rem);
  line-height: 1.05;
  margin: 0 0 1rem;
  max-width: 15ch;
}
.hero p {
  max-width: 58ch;
  color: #d9e1e8;
  font-size: 1.05rem;
}
.hero-actions {
  margin-top: 1.7rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-points {
  list-style: none;
  padding: 0;
  margin: 1.8rem 0 0;
  display: grid;
  gap: 0.7rem;
  color: #d9e1e8;
}
.hero-points li::before {
  content: "✓";
  color: var(--accent);
  margin-right: 0.7rem;
  font-weight: 800;
}
.hero-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 28px;
  padding: 1rem;
  box-shadow: var(--shadow);
}
.hero-card img {
  border-radius: 20px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.hero-card-caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0.4rem 0.2rem;
  color: #d9e1e8;
  font-size: 0.95rem;
}
.hero-carousel {
  overflow: hidden;
  background: #0b1420;
}
.hero-carousel-track {
  position: relative;
  width: 100%;
  min-height: 340px;
}
.hero-carousel-track img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  animation: hero-carousel-fade 20s ease-in-out infinite;
}
.hero-carousel-track img:nth-child(1) { animation-delay: 0s; }
.hero-carousel-track img:nth-child(2) { animation-delay: 5s; }
.hero-carousel-track img:nth-child(3) { animation-delay: 10s; }
.hero-carousel-track img:nth-child(4) { animation-delay: 15s; }
@keyframes hero-carousel-fade {
  0%, 20% { opacity: 1; }
  25%, 95% { opacity: 0; }
  100% { opacity: 1; }
}
section {
  padding: 5rem 0;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.section-head h2,
.page-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.1;
}
.section-head p,
.page-hero p {
  max-width: 60ch;
  color: var(--muted);
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(19, 34, 52, 0.06);
}
.card h3 { margin-top: 0; margin-bottom: 0.8rem; }
.card p { color: var(--muted); margin-bottom: 0; }
.reference-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}
.reference-card {
  display: block;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(19, 34, 52, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.reference-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 56px rgba(8, 22, 37, 0.19);
}
.reference-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.reference-card-copy { padding: 1.45rem 1.5rem 1.55rem; }
.reference-card h3 { margin: 0.8rem 0; font-size: 1.45rem; line-height: 1.2; }
.reference-card p { color: var(--muted); margin: 0 0 1.2rem; }
.reference-card-link { color: #244159; font-weight: 800; }
.single-col { grid-template-columns: minmax(0, 1fr); }

.project-overview-section { padding-top: 0; }
.project-overview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; }
.project-overview-tile { position: relative; display: block; overflow: hidden; min-height: 300px; aspect-ratio: 1.18 / 1; background: var(--ink); color: #fff; isolation: isolate; }
.project-overview-tile img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; transition: transform 500ms ease, filter 500ms ease; }
.project-overview-tile::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgb(5 18 26 / 0.12) 0%, rgb(5 18 26 / 0.42) 46%, rgb(5 18 26 / 0.88) 100%); transition: background 300ms ease; }
.project-tile-overlay { position: absolute; z-index: 2; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; text-align: center; padding: 1.7rem; }
.project-tile-title { width: min(100%, 18rem); padding: 0.85rem 0; border-top: 1px solid rgb(255 255 255 / 0.78); border-bottom: 1px solid rgb(255 255 255 / 0.78); color: #fff; font-size: clamp(1.15rem, 2vw, 1.65rem); font-weight: 700; letter-spacing: 0.075em; text-transform: uppercase; }
.project-tile-link { margin-top: 1rem; color: rgb(255 255 255 / 0.92); font-size: 0.86rem; font-weight: 700; letter-spacing: 0.075em; text-transform: uppercase; }
.project-tile-link b { display: inline-block; margin-left: 0.25rem; transition: transform 200ms ease; }
.project-overview-tile:hover img, .project-overview-tile:focus-visible img { transform: scale(1.06); filter: brightness(1.12); }
.project-overview-tile:hover::after, .project-overview-tile:focus-visible::after { background: linear-gradient(180deg, rgb(5 18 26 / 0.06) 0%, rgb(5 18 26 / 0.32) 46%, rgb(5 18 26 / 0.8) 100%); }
.project-overview-tile:hover .project-tile-link b, .project-overview-tile:focus-visible .project-tile-link b { transform: translateX(0.3rem); }

.project-spec-section { padding: 0 0 2.5rem; }
.project-spec-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: hidden; border: 1px solid rgba(19, 34, 52, 0.1); border-radius: 20px; box-shadow: var(--shadow); background: var(--surface); }
.project-spec-item { padding: 1.25rem 1.35rem; border-right: 1px solid rgba(19, 34, 52, 0.1); }
.project-spec-item:last-child { border-right: 0; }
.project-spec-item span { display: block; margin-bottom: 0.35rem; color: var(--muted); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; }
.project-spec-item strong { display: block; color: var(--ink); font-size: 1.02rem; line-height: 1.3; }

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(240, 180, 41, 0.16);
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 1rem;
}
.split-section {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1.6rem;
  align-items: stretch;
}
.panel {
  background: var(--surface);
  border-radius: 28px;
  padding: 2rem;
  box-shadow: var(--shadow);
}
.panel-dark {
  background: linear-gradient(160deg, #102033, #1b3148);
  color: #fff;
}
.panel-dark p,
.panel-dark li { color: #d5deea; }
.bullets {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.9rem;
}
.bullets li {
  display: flex;
  gap: 0.8rem;
}
.bullets li strong { display: block; }
.bullets li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 0.55rem;
  flex: none;
}
.gallery-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.gallery-preview figure,
.gallery-grid figure {
  margin: 0;
  background: var(--surface);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.gallery-preview img,
.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.gallery-preview figcaption,
.gallery-grid figcaption {
  padding: 1rem 1.1rem 1.2rem;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  background: #eef4f7;
  color: #244159;
  font-weight: 600;
}
.cta-band {
  background: linear-gradient(135deg, #f0b429, #ffd874);
  border-radius: 28px;
  padding: 2rem;
  color: #14202d;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
  box-shadow: var(--shadow);
}
.cta-band p { margin: 0.4rem 0 0; color: rgba(20, 32, 45, 0.85); }
.cta-band .btn-secondary {
  background: #14202d;
  color: #ffffff;
  border-color: #14202d;
}
.inline-project-cta { padding-top: 0; }
.inline-project-cta .cta-band { margin-top: 0; }
.faq-section { padding-bottom: 1.5rem; }
.faq-list { display: grid; gap: 0.8rem; }
.faq-list details {
  background: var(--surface);
  border: 1px solid rgba(19, 34, 52, 0.1);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(8, 22, 37, 0.06);
  overflow: hidden;
}
.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 3.25rem 1.15rem 1.25rem;
  position: relative;
  color: #1b3148;
  font-weight: 800;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-dark);
  font-size: 1.6rem;
  font-weight: 400;
}
.faq-list details[open] summary { border-bottom: 1px solid var(--line); }
.faq-list details[open] summary::after { content: "−"; }
.faq-answer { padding: 1.1rem 1.25rem 1.25rem; color: var(--muted); }
.faq-answer p { margin: 0 0 0.9rem; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer a { color: #244159; font-weight: 700; text-decoration: underline; text-underline-offset: 0.18em; }
.faq-legal-note { font-size: 0.9rem; }
.page-hero {
  padding: 4rem 0 2rem;
  background: linear-gradient(180deg, #eef4f7 0%, rgba(238, 244, 247, 0) 100%);
}
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.info-card {
  background: var(--surface);
  border-radius: 24px;
  padding: 1.8rem;
  box-shadow: var(--shadow);
}
.notice {
  border-left: 4px solid var(--accent);
  background: #fff7de;
  padding: 1rem 1.1rem;
  border-radius: 0 16px 16px 0;
  color: #5b4a1a;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  display: grid;
  gap: 0.8rem;
}
.contact-list strong { display: block; }
.contact-form-card {
  max-width: 780px;
  margin: 0 auto;
  background: linear-gradient(145deg, #132234, #0b1420);
  color: #fff;
  border-radius: 24px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow);
}
.contact-form-card .kicker { margin-bottom: 0.75rem; }
.contact-form-card h2 { margin: 0 0 0.6rem; }
.contact-form-card > p { margin: 0 0 1.5rem; color: #d9e1e8; }
.contact-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.2rem; }
.contact-form-grid label { display: grid; gap: 0.35rem; color: #fff; font-weight: 700; }
.contact-form-grid .form-full { grid-column: 1 / -1; }
.contact-form-grid input, .contact-form-grid textarea, .contact-form-grid select {
  width: 100%; border: 1px solid rgba(255,255,255,0.32); border-radius: 10px; padding: 0.8rem 0.9rem;
  color: var(--text); background: #fff; font: inherit;
}
.contact-form-grid textarea { min-height: 8rem; resize: vertical; }
.contact-form-grid .form-consent { display: flex; align-items: flex-start; gap: 0.65rem; color: #d9e1e8; font-size: 0.92rem; font-weight: 500; }
.contact-form-grid .form-consent input { width: 1rem; height: 1rem; margin-top: 0.25rem; flex: none; }
.form-honeypot { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; }
.form-status { margin: 0; font-weight: 700; }
.form-status.is-success { color: #c7f4d3; }
.form-status.is-error { color: #ffd0d0; }
.contact-form-card button[disabled] { cursor: wait; opacity: .72; }
.contact-form-grid .btn { justify-self: start; }
.contact-box {
  background: linear-gradient(180deg, #132234, #0d1621);
  color: #fff;
}
.contact-box p,
.contact-box li { color: #d9e1e8; }
.site-footer {
  background: #0d1621;
  color: #d9e1e8;
  padding: 2rem 0 2.5rem;
  margin-top: 4rem;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-footer a { color: #fff; }
.footer-consent { color: #fff; background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; }
.cookie-banner { position: fixed; z-index: 50; left: 1rem; right: 1rem; bottom: 1rem; max-width: 820px; margin: 0 auto; padding: 1.25rem; border-radius: 18px; background: #102033; color: #fff; box-shadow: 0 18px 50px rgba(0,0,0,.35); display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
/* The [hidden] attribute must override the banner's flex display after a consent choice. */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner p { margin: .35rem 0; color: #d9e1e8; font-size: .9rem; }.cookie-banner a { color: #fff; text-decoration: underline; }.cookie-actions { display: flex; gap: .65rem; flex-wrap: wrap; }.cookie-actions .btn { white-space: nowrap; }
.footer-note { color: rgba(217, 225, 232, 0.76); }
.language-switch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.hero-language .language-pill {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: none;
}
.hero-language .language-pill.active,
.hero-language .language-pill[aria-current="page"] {
  background: var(--accent);
  color: #0f1720;
  border-color: var(--accent);
}
.language-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-weight: 700;
}
.language-pill.active,
.language-pill[aria-current="page"] {
  background: #132234;
  color: #fff;
  border-color: #132234;
}
.project-stack {
  display: grid;
  gap: 2rem;
}
.project-card {
  background: var(--surface);
  border-radius: 30px;
  padding: 2rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 1.75rem;
}
.project-head {
  display: grid;
  gap: 0.8rem;
}
.project-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.1;
}
.project-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: #eef4f7;
  color: #244159;
  font-size: 0.9rem;
  font-weight: 700;
}
.project-copy p {
  color: var(--muted);
  margin: 0 0 1rem;
}
.project-copy p:last-of-type {
  margin-bottom: 1.2rem;
}
.project-facts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}
.project-facts li {
  color: var(--muted);
  padding-left: 1.1rem;
  position: relative;
}
.project-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.project-gallery {
  display: grid;
  gap: 1rem;
}
.project-gallery.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.project-gallery.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.project-gallery figure {
  margin: 0;
  background: var(--surface-alt);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(19, 34, 52, 0.08);
}
.project-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.project-gallery figcaption {
  padding: 1rem 1.1rem 1.2rem;
}
.project-gallery figcaption div {
  color: var(--muted);
}
.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.stat-card {
  background: var(--surface);
  border-radius: 24px;
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(19, 34, 52, 0.06);
  display: grid;
  gap: 0.35rem;
}
.stat-card strong {
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #244159;
}
.stat-card span {
  color: var(--muted);
}
.service-overview-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.15rem; }
.service-overview-grid .project-overview-tile { min-height: 250px; }
.service-overview-grid .project-tile-title { font-size: clamp(0.82rem, 1.1vw, 1.15rem); letter-spacing: 0.025em; overflow-wrap: anywhere; }

@media (max-width: 980px) {
  .service-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid,
  .split-section,
  .card-grid,
  .reference-card-grid,
  .project-overview-grid,
  .project-spec-grid,
  .info-grid,
  .gallery-grid,
  .stat-strip,
  .project-gallery.two-col,
  .project-gallery.three-col { grid-template-columns: 1fr; }
  .gallery-preview { grid-template-columns: 1fr 1fr; }
  .section-head,
  .cta-band { align-items: start; flex-direction: column; }
}
@media (max-width: 760px) {
  .header-contact-bar .container {
    min-height: 0;
    padding: 0.5rem 0;
    justify-content: center;
    gap: 0.35rem 0.7rem;
    font-size: 0.72rem;
  }
  .header-contact-divider { display: none; }
  .cookie-banner { align-items: flex-start; flex-direction: column; left: .75rem; right: .75rem; bottom: .75rem; }
  .contact-form-grid { grid-template-columns: 1fr; }
  .contact-form-grid .form-full { grid-column: auto; }
  /* Service and reference tiles must be readable rather than two narrow columns on phones. */
  .service-overview-grid { grid-template-columns: 1fr; }
  .project-overview-tile { min-height: 270px; aspect-ratio: auto; }
  .project-tile-overlay { padding: 1.35rem; }
  .project-tile-title { width: 100%; max-width: 18rem; overflow-wrap: break-word; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.7rem);
    background: #132234;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 1rem;
    flex-direction: column;
    align-items: start;
    display: none;
  }
  .nav-links.open { display: flex; }
  .hero { padding-top: 3rem; }
  .gallery-preview,
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-card-caption { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
