/* =========================================================
   3-D Technology BD. — site styles
   Mobile-first. Palette and type follow the company letterhead.
   ========================================================= */

:root {
  --navy: #0B1F2A;
  --navy-2: #10303D;
  --navy-3: #163646;
  --teal: #1FB4D3;
  --teal-deep: #0E7F97;   /* links & labels on white (4.7:1) */
  --teal-ink: #0A6B80;    /* labels on tint (5.4:1) */
  --tint: #EEF8FB;
  --text: #3B4650;
  --muted: #5B6873;
  --line: #D5E6EC;
  --white: #FFFFFF;
  --on-dark: #E6F1F5;
  --on-dark-muted: #A9C2CD;
  --danger: #B42318;
  --success: #067647;

  --font-head: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 12px;
  --radius-sm: 10px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;
  --section-y: clamp(64px, 9vw, 112px);
  --focus: var(--teal-deep);
  --shadow: 0 1px 2px rgba(11, 31, 42, .06), 0 8px 24px rgba(11, 31, 42, .06);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -.015em;
  margin: 0;
}
h1 { font-weight: 800; }
h2 { font-weight: 800; font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-weight: 700; font-size: 1.125rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--teal-deep); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
ul { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
button, input, textarea { font: inherit; color: inherit; }
::placeholder { color: #66737D; opacity: 1; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-dark { --focus: var(--teal); }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute;
  left: 12px; top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--white); }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 48px;
  padding: .7em 1.35em;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.btn .icon { width: 1.1em; height: 1.1em; stroke-width: 2.2; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal); color: var(--navy); }
.btn-primary:hover { background: #45C3DE; color: var(--navy); }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: var(--white); }
.btn-ghost:hover { border-color: var(--teal); color: var(--white); background: rgba(31, 180, 211, .12); }
.btn-outline { border-color: var(--teal-deep); color: var(--navy); background: var(--white); }
.btn-outline:hover { background: var(--tint); color: var(--navy); }
.btn-sm { min-height: 42px; padding: .5em 1.05em; font-size: .9375rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; }

.text-link { font-weight: 700; }

/* ---------- Section scaffolding ---------- */
.section {
  position: relative;
  padding-block: var(--section-y);
  overflow: hidden;
}
.bg-tint { background: var(--tint); }
.on-dark { background: var(--navy); color: var(--on-dark); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--white); }
.on-dark a:not(.btn) { color: var(--teal); }
.on-dark a:not(.btn):hover { color: var(--white); }

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal-deep);
}
.section-label::before {
  content: "";
  width: 32px;
  height: 3px;
  flex: none;
  border-radius: 2px;
  background: var(--teal);
}
.bg-tint .section-label { color: var(--teal-ink); }
.on-dark .section-label { color: var(--teal); }

.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 52px); }
.section-intro { margin-top: 16px; font-size: 1.0625rem; color: var(--muted); }
.on-dark .section-intro { color: var(--on-dark-muted); }

/* Letterhead corner wedges: navy + teal triangles in the top-right corner */
.wedge-tr::before,
.wedge-tr::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  pointer-events: none;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.wedge-tr::before {
  width: clamp(72px, 13vw, 190px);
  aspect-ratio: 1;
  background: var(--navy);
}
.wedge-tr::after {
  width: clamp(40px, 7vw, 104px);
  aspect-ratio: 1;
  background: var(--teal);
}
.on-dark.wedge-tr::before { background: var(--navy-3); }

.card {
  background: var(--tint);
  border-radius: var(--radius);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(255, 255, 255, .9); backdrop-filter: blur(8px); }
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  color: var(--navy);
  text-decoration: none;
  min-width: 0;
}
.brand:hover { color: var(--navy); }
.brand-logo { width: 44px; height: 44px; flex: none; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: -.01em;
  line-height: 1.2;
  white-space: nowrap;
}
.brand-tag {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.header-call,
.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--navy);
}
.header-call:hover, .nav-toggle:hover { background: var(--tint); color: var(--navy); }
.nav-toggle { cursor: pointer; padding: 0; }
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav {
  display: none;
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  padding: 8px var(--gutter) 20px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 24px rgba(11, 31, 42, .08);
}
.site-nav.is-open { display: block; }
.nav-list a {
  display: block;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}
.nav-list a:hover { color: var(--teal-deep); }
.nav-cta { width: 100%; margin-top: 16px; }

@media (max-width: 380px) {
  .brand-tag { display: none; }
  .brand-name { font-size: 1rem; }
}

@media (min-width: 1080px) {
  :root { --header-h: 76px; }
  .header-call, .nav-toggle { display: none; }
  .site-nav {
    display: flex !important;
    align-items: center;
    gap: 20px;
    position: static;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .nav-list { display: flex; gap: 2px; }
  .nav-list a {
    padding: 8px 12px;
    border: 0;
    border-radius: 8px;
    font-size: .9375rem;
  }
  .nav-list a:hover { background: var(--tint); color: var(--navy); }
  .nav-cta { width: auto; margin: 0; white-space: nowrap; }
}
@media (min-width: 1080px) and (max-width: 1239px) {
  .brand-tag { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 9vw, 104px) clamp(88px, 11vw, 136px);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 0 100%);
}
.hero-panel,
.hero-corner {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-panel {
  background: var(--navy-2);
  clip-path: polygon(78% 0, 100% 0, 100% 100%, 64% 100%);
}
.hero-corner {
  background: var(--teal);
  clip-path: polygon(88% 0, 100% 0, 100% 22%);
}
.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.15rem, 6vw, 3.75rem);
  line-height: 1.06;
  letter-spacing: -.025em;
  max-width: 14ch;
}
.hero-lead {
  margin-top: 22px;
  max-width: 60ch;
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  color: var(--on-dark-muted);
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.badges li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 10px;
  border: 1px solid rgba(31, 180, 211, .45);
  border-radius: 999px;
  background: rgba(31, 180, 211, .08);
  color: var(--white);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.3;
}
.badges .icon { color: var(--teal); width: 1.1em; height: 1.1em; stroke-width: 2.2; }
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.hero-art { display: none; }

@media (min-width: 900px) {
  .hero-panel { clip-path: polygon(62% 0, 100% 0, 100% 100%, 46% 100%); }
  .hero-corner { clip-path: polygon(84% 0, 100% 0, 100% 30%); }
  .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px; }
  .hero-art { display: block; }
  .tower-svg { width: 100%; max-width: 440px; margin-inline: auto; }
}

/* Tower illustration */
.t-grid { fill: none; stroke: #1A3A4A; stroke-width: 1; }
.t-leg { fill: none; stroke: var(--teal); stroke-width: 3.2; stroke-linecap: round; }
.t-brace, .t-strut { fill: none; stroke: var(--teal); stroke-width: 1.4; opacity: .6; }
.t-strut { opacity: .85; }
.t-platform { fill: none; stroke: var(--white); stroke-width: 2.2; stroke-linecap: round; opacity: .8; }
.t-mast { fill: none; stroke: var(--white); stroke-width: 2.2; stroke-linecap: round; }
.t-antenna { fill: var(--navy-2); stroke: var(--white); stroke-width: 1.6; }
.t-light { fill: var(--teal); }
.t-ground { fill: none; stroke: #5E8494; stroke-width: 2; }
.t-hatch { fill: none; stroke: #2F5566; stroke-width: 1.2; }
.t-footing { fill: var(--navy); stroke: var(--teal); stroke-width: 1.6; }
.t-dim { fill: none; stroke: #5E8494; stroke-width: 1; }
.t-text {
  fill: #8FB3C2;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
}
.t-arcs path { fill: none; stroke: var(--teal); stroke-width: 2; stroke-linecap: round; }
.t-arcs .a1 { opacity: .9; }
.t-arcs .a2 { opacity: .55; }
.t-arcs .a3 { opacity: .28; }

@media (prefers-reduced-motion: no-preference) {
  .t-light { animation: beacon 2.4s ease-in-out infinite; }
  .t-arcs path { animation: signal 3.2s ease-in-out infinite; }
  .t-arcs .a2 { animation-delay: .35s; }
  .t-arcs .a3 { animation-delay: .7s; }
  @keyframes beacon { 50% { opacity: .25; } }
  @keyframes signal { 0%, 100% { stroke-opacity: 1; } 50% { stroke-opacity: .25; } }
}

/* ---------- About ---------- */
.about-grid { display: grid; gap: 24px; }
.about-grid h2 { max-width: 16ch; }
.about-copy { font-size: 1.0625rem; max-width: 62ch; }
.about-copy p:first-child { color: var(--navy); font-weight: 500; font-size: 1.125rem; }
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
  .about-copy { padding-top: 34px; }
}

/* ---------- Stats band ---------- */
.stats {
  position: relative;
  padding-block: 72px 56px;
  clip-path: polygon(0 32px, 100% 0, 100% 100%, 0 100%);
  margin-top: -8px;
}
.stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--teal);
  clip-path: polygon(0 32px, 100% 0, 100% 8px, 0 40px);
}
.stats-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 20px;
}
.stats-list li { display: flex; flex-direction: column; gap: 6px; }
.stat-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--teal);
}
.stat-label {
  max-width: 22ch;
  color: var(--on-dark);
  font-weight: 600;
  font-size: .9375rem;
  line-height: 1.4;
}
@media (min-width: 900px) {
  .stats-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stats-list li { padding-left: 24px; border-left: 1px solid rgba(169, 194, 205, .25); }
}

/* ---------- Services ---------- */
.service-grid {
  display: grid;
  gap: 16px;
}
.service {
  position: relative;
  padding: 26px 24px 28px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.service::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 44px; height: 44px;
  background: var(--teal);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  opacity: .9;
}
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.service-icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: var(--teal);
}
.service-icon .icon { width: 28px; height: 28px; stroke-width: 1.7; }
.service h3 { margin-bottom: 10px; }
.service p { font-size: .9375rem; line-height: 1.6; }
@media (min-width: 620px) { .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1080px) { .service-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Projects ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 28px;
}
.tl-item {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
  min-height: 112px;
  padding: 14px 14px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--navy);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .15s, background-color .15s, color .15s;
}
.tl-item:hover { border-color: var(--teal-deep); }
.tl-bar {
  position: absolute;
  left: 14px; right: 14px; top: 14px;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--teal) var(--fill, 33%), var(--tint) var(--fill, 33%));
}
.tl-item[data-count="3"] { --fill: 33%; }
.tl-item[data-count="4"] { --fill: 44%; }
.tl-item[data-count="9"] { --fill: 100%; }
.tl-year {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.375rem;
  line-height: 1.1;
}
.tl-all .tl-year { font-size: 1.0625rem; }
.tl-count { font-size: .8125rem; font-weight: 600; color: var(--muted); }
.tl-item[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.tl-item[aria-pressed="true"] .tl-count { color: var(--on-dark-muted); }
.tl-item[aria-pressed="true"] .tl-bar {
  background: linear-gradient(90deg, var(--teal) var(--fill, 33%), var(--navy-3) var(--fill, 33%));
}
@media (min-width: 720px) {
  .timeline { grid-template-columns: 1.1fr repeat(5, minmax(0, 1fr)); gap: 12px; }
}

.table-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 16px;
}
.search {
  position: relative;
  flex: 1 1 280px;
  max-width: 420px;
}
.search .icon {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.search input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px 10px 44px;
  border: 1px solid #B9CFD7;
  border-radius: var(--radius-sm);
  background: var(--white);
}
.search input:focus-visible { outline-offset: 0; border-color: var(--teal-deep); }
.table-status { margin: 0; font-size: .9375rem; font-weight: 600; color: var(--muted); }

.table-wrap {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.records {
  width: 100%;
  border-collapse: collapse;
  font-size: .9375rem;
}
.records thead { display: none; }
.records tr {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.records tbody tr:last-child { border-bottom: 0; }
.records tr[hidden] { display: none; }
.records th, .records td { display: block; padding: 0; text-align: left; }
.c-year { grid-row: 1 / span 2; padding-top: 2px !important; }
.c-client { color: var(--navy); font-weight: 700; line-height: 1.4; }
.c-works { color: var(--text); line-height: 1.5; }
.year-chip {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--navy);
  color: var(--teal);
  font-family: var(--font-head);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.table-empty { padding: 28px 20px; margin: 0; text-align: center; color: var(--muted); }

@media (min-width: 760px) {
  .records thead { display: table-header-group; }
  .records tr { display: table-row; padding: 0; }
  .records tr[hidden] { display: none; }
  .records th, .records td { display: table-cell; padding: 14px 20px; vertical-align: top; }
  .records thead th {
    padding-block: 14px;
    background: var(--navy);
    color: var(--white);
    font-family: var(--font-body);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
  }
  .records tbody tr { border-bottom: 1px solid var(--line); }
  .records tbody tr:hover { background: #F7FCFD; }
  .c-year { width: 96px; padding-top: 13px !important; }
  .c-client { width: 44%; }
}

/* ---------- Engineering ---------- */
.engineering { background: var(--navy); }
.eng-intro {
  display: grid;
  gap: 32px;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.eng-intro h2 { max-width: 18ch; }
.eng-intro .section-intro { max-width: 60ch; font-size: 1.125rem; }
.basis {
  padding: 26px 24px;
  border: 1px solid rgba(31, 180, 211, .35);
  border-radius: var(--radius);
  background: var(--navy-2);
}
.basis h3 { font-size: 1.0625rem; line-height: 1.35; margin-bottom: 18px; }
.basis-kicker {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-body);
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal);
}
.basis-list { margin: 0; display: grid; }
.basis-list > div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid rgba(169, 194, 205, .2);
}
.basis-list dt { font-size: .8125rem; font-weight: 700; color: var(--on-dark-muted); text-transform: uppercase; letter-spacing: .06em; padding-top: 2px; }
.basis-list dd { margin: 0; color: var(--white); font-weight: 600; font-size: .9375rem; line-height: 1.5; }
@media (min-width: 960px) {
  .eng-intro { grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
}

.gallery-title {
  margin: 0 0 16px;
  font-family: var(--font-body);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}
.gallery {
  display: grid;
  gap: 16px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.gallery-feature { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery-sheets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery-site { grid-template-columns: 1fr; }
@media (min-width: 620px) { .gallery-site { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) {
  .gallery { gap: 20px; }
  .gallery-sheets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.g-item { margin: 0; }
.g-link {
  position: relative;
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--white);
}
.g-link img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: 8px;
  background: var(--white);
  transition: transform .3s;
}
.gallery-feature .g-link img { aspect-ratio: 4 / 5; padding: 0; object-fit: cover; object-position: top; }
.gallery-site .g-link img { aspect-ratio: 3 / 2; padding: 0; object-fit: cover; }
.g-link:hover img { transform: scale(1.03); }
.g-zoom {
  position: absolute;
  right: 10px; bottom: 10px;
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--teal);
  opacity: .92;
}
.g-zoom .icon { width: 18px; height: 18px; stroke-width: 2; }
.g-item figcaption {
  margin-top: 10px;
  font-size: .875rem;
  line-height: 1.45;
  color: var(--on-dark-muted);
}
.g-item figcaption strong { display: block; color: var(--white); font-weight: 700; }

.product {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
}
.product-media {
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(160deg, #F4FAFC, #E1F1F6);
}
.product-media img { width: auto; max-height: 260px; mix-blend-mode: multiply; }
.product-body { padding: 28px 24px 32px; }
.product-body h3 { color: var(--navy); font-size: clamp(1.35rem, 2.6vw, 1.75rem); font-weight: 800; }
.product .section-label { color: var(--teal-deep); }
.product-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 12px 0 14px;
  padding: 4px 12px 4px 8px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--navy);
  font-size: .875rem;
  font-weight: 700;
}
.product-tag .icon { color: var(--teal-deep); width: 1.1em; height: 1.1em; }
.product-body > p:not(.section-label):not(.product-tag) { font-size: 1.0625rem; margin-bottom: 22px; max-width: 46ch; }
.product .btn { --focus: var(--teal-deep); }
@media (min-width: 720px) {
  .product { grid-template-columns: 260px 1fr; align-items: stretch; }
  .product-body { padding: 36px 40px; align-self: center; }
}

/* ---------- Clients ---------- */
.client-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.client {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color .15s, box-shadow .15s;
}
.client:hover { border-color: #A9D6E2; box-shadow: var(--shadow); }
.mono {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  flex: none;
  border-radius: 50%;
  background: var(--navy);
  color: var(--teal);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .875rem;
  letter-spacing: .01em;
  box-shadow: inset 0 0 0 3px var(--navy), inset 0 0 0 4.5px rgba(31, 180, 211, .55);
}
.client-name {
  color: var(--navy);
  font-weight: 700;
  font-size: .9375rem;
  line-height: 1.4;
}
.client-sub {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-weight: 500;
  font-size: .8125rem;
}
@media (min-width: 620px) {
  .client-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .client { flex-direction: row; align-items: center; padding: 18px; }
}
@media (min-width: 1080px) { .client-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.assurance { display: grid; gap: 16px; }
.assurance-card { padding: 28px 24px; }
.assurance-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 1.1875rem;
}
.assurance-card h3 .icon { color: var(--teal-deep); width: 26px; height: 26px; }
.check-list li {
  position: relative;
  padding: 10px 0 10px 30px;
  border-top: 1px solid var(--line);
  color: var(--navy);
  font-weight: 500;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 17px;
  width: 14px; height: 8px;
  border-left: 2.5px solid var(--teal-deep);
  border-bottom: 2.5px solid var(--teal-deep);
  transform: rotate(-45deg);
}
@media (min-width: 900px) { .assurance { grid-template-columns: 1fr 1fr; gap: 24px; } .assurance-card { padding: 32px; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 20px; }
.contact-side { display: grid; gap: 20px; align-content: start; }
.contact-card {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--radius);
  overflow: hidden;
}
.contact-card::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 64px; height: 64px;
  background: var(--teal);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.contact-list { display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; line-height: 1.5; }
.contact-list .icon { color: var(--teal); width: 22px; height: 22px; margin-top: 2px; }
.contact-k {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}
.contact-list a { font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { text-decoration: underline; }
.call-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.call-row .btn { flex: 1 1 140px; }
.contact-card .btn-primary { color: var(--navy); }
.contact-card .btn-ghost { color: var(--white); }

.map {
  position: relative;
  min-height: 240px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background-color: #E3F1F6;
  background-image:
    linear-gradient(#D2E7EE 1px, transparent 1px),
    linear-gradient(90deg, #D2E7EE 1px, transparent 1px);
  background-size: 32px 32px;
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  padding: 20px;
  text-align: center;
  color: var(--navy);
}
.map-placeholder > .icon { width: 40px; height: 40px; color: var(--teal-deep); stroke-width: 1.6; }
.map-placeholder p { margin: 0; line-height: 1.45; }
.map-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 18px; margin-top: 4px; }

.form {
  padding: 28px 22px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.form h3 { font-size: 1.375rem; font-weight: 800; }
.form-note { margin: 6px 0 22px; font-size: .875rem; color: var(--muted); }
.form-row { display: grid; gap: 0 16px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  margin-bottom: 6px;
  color: var(--navy);
  font-weight: 700;
  font-size: .9375rem;
}
.req { color: var(--danger); }
.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid #B9CFD7;
  border-radius: var(--radius-sm);
  background: #FBFEFF;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: #8FB3C2; }
.field input:focus-visible, .field textarea:focus-visible {
  outline: 3px solid var(--teal-deep);
  outline-offset: 0;
  border-color: var(--teal-deep);
}
.field [aria-invalid="true"] { border-color: var(--danger); background: #FFF8F7; }
.field-hint { margin: 6px 0 0; font-size: .8125rem; color: var(--muted); }
.field-error { margin: 6px 0 0; font-size: .875rem; font-weight: 600; color: var(--danger); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status:not(:empty) {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.5;
  background: var(--tint);
  color: var(--navy);
}
.form-status[data-state="success"] { background: #ECFDF3; color: var(--success); }
.form-status[data-state="error"] { background: #FEF3F2; color: var(--danger); }
.form-status a { color: inherit; font-weight: 800; }
@media (min-width: 620px) {
  .form { padding: 36px 32px; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .contact-card { padding: 32px; }
}
@media (min-width: 1000px) {
  .contact-grid { grid-template-columns: 5fr 6fr; gap: 28px; align-items: start; }
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  padding-block: 88px 28px;
  clip-path: polygon(0 32px, 100% 0, 100% 100%, 0 100%);
  margin-top: -32px;
  font-size: .9375rem;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--teal);
  clip-path: polygon(0 32px, 100% 0, 100% 8px, 0 40px);
}
.footer-grid { display: grid; gap: 36px; }
.on-dark a.brand-light { color: var(--white); margin-bottom: 14px; text-decoration: none; }
.on-dark a.brand-light:hover { color: var(--white); text-decoration: none; }
.footer-brand p { max-width: 38ch; color: var(--on-dark-muted); }
.footer-h {
  margin-bottom: 14px;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal);
}
.footer-nav ul, .footer-contact ul { display: grid; gap: 8px; }
.site-footer a:not(.btn) { color: var(--on-dark); text-decoration: none; }
.site-footer a:not(.btn):hover { color: var(--teal); text-decoration: underline; }
.footer-contact li { color: var(--on-dark-muted); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid rgba(169, 194, 205, .2);
  color: var(--on-dark-muted);
  font-size: .875rem;
}
.footer-bottom p { margin: 0; }
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1.2fr; gap: 48px; }
}

/* The contact section sits directly above the footer; leave room for its angled edge. */
.contact { padding-bottom: calc(var(--section-y) + 32px); }

/* ---------- Lightbox ---------- */
.lightbox {
  width: min(1100px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(6, 18, 25, .82); }
.lightbox figure { margin: 0; display: flex; flex-direction: column; max-height: calc(100vh - 24px); }
.lightbox img {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-height: calc(100vh - 96px);
  object-fit: contain;
  background: var(--white);
}
.lightbox figcaption {
  padding: 14px 64px 16px 20px;
  border-top: 1px solid var(--line);
  color: var(--navy);
  font-weight: 700;
}
.lightbox-close {
  position: absolute;
  top: 10px; right: 10px;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: var(--white);
  cursor: pointer;
}
.lightbox-close:hover { background: var(--teal-deep); }
.lightbox-close .icon { width: 22px; height: 22px; stroke-width: 2.2; }

/* ---------- 404 ---------- */
.notfound {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
}
.notfound h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 14px; }
.notfound .section-label { justify-content: center; }
.notfound p { color: var(--on-dark-muted); margin-bottom: 28px; }
.notfound .brand { margin: 0 0 48px; }
.notfound .cta-row { justify-content: center; margin-top: 0; }

/* ---------- Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
@media print {
  .site-header, .hero-art, .timeline, .table-tools, .map, .form, .lightbox, .hero-panel, .hero-corner { display: none !important; }
  .on-dark, .stats, .site-footer { background: none !important; color: #000 !important; clip-path: none !important; }
  .on-dark h1, .on-dark h2, .on-dark h3, .stat-num { color: #000 !important; }
  .wedge-tr::before, .wedge-tr::after, .stats::before, .site-footer::before { display: none; }
}
