:root {
  --ink: #091426;
  --ink-soft: #14233a;
  --blue: #2f5ee5;
  --blue-light: #8dcfff;
  --ice: #eef5fb;
  --paper: #f8fbfe;
  --white: #ffffff;
  --line: rgba(9, 20, 38, 0.14);
  --muted: #566477;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(9, 20, 38, 0.12);
  --shell: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
.shell { width: var(--shell); margin-inline: auto; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--white);
  color: var(--ink);
  border-radius: 8px;
}
.skip-link:focus { top: 16px; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  color: var(--white);
  background: rgba(9, 20, 38, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}
.header-inner {
  min-height: 78px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 34px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  width: max-content;
}
.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 10px;
  overflow: hidden;
  transform: rotate(45deg);
}
.brand-mark span {
  display: grid;
  place-items: center;
  color: var(--blue-light);
  font-size: 11px;
  font-weight: 800;
  transform: rotate(-45deg);
}
.brand-mark span + span { border-left: 1px solid rgba(255, 255, 255, 0.25); }
.brand-text { display: grid; line-height: 1.05; }
.brand-text strong { font-size: 20px; letter-spacing: 0.08em; }
.brand-text small { color: #b9c9dc; font-size: 12px; letter-spacing: 0.05em; }
.main-nav { display: flex; gap: 28px; }
.main-nav a {
  position: relative;
  color: #d9e5f2;
  font-size: 14px;
  text-decoration: none;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 2px;
  background: var(--blue-light);
  transition: right 180ms ease;
}
.main-nav a:hover::after,
.main-nav a:focus-visible::after { right: 0; }
.language-switcher {
  display: flex;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}
.language-switcher button {
  min-width: 39px;
  padding: 7px 9px;
  color: #d9e5f2;
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}
.language-switcher button.is-active { color: var(--ink); background: var(--white); }
.menu-toggle { display: none; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 158px 0 0;
  color: var(--white);
  background:
    radial-gradient(circle at 82% 14%, rgba(65, 117, 235, 0.27), transparent 30%),
    linear-gradient(135deg, #07101f 0%, #0b1a2e 55%, #102d51 100%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image:
    linear-gradient(rgba(141, 207, 255, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(141, 207, 255, 0.2) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, black, transparent 72%);
}
.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 72px;
  align-items: center;
  min-height: 640px;
  padding-bottom: 78px;
}
.eyebrow {
  margin: 0 0 18px;
  color: #3f92c8;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero .eyebrow { color: var(--blue-light); }
h1, h2, h3, p { overflow-wrap: break-word; }
h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(50px, 6.2vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}
.hero-lead {
  max-width: 700px;
  margin: 32px 0 0;
  color: #c5d4e5;
  font-size: clamp(18px, 2vw, 22px);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--blue); box-shadow: 0 16px 36px rgba(47, 94, 229, 0.3); }
.button-primary:hover { background: #426eee; }
.button-ghost { color: var(--white); border-color: rgba(255, 255, 255, 0.34); }
.button-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }
.button-light { color: var(--ink); background: var(--white); }

.system-panel {
  position: relative;
  border: 1px solid rgba(141, 207, 255, 0.27);
  border-radius: 28px;
  background: rgba(4, 13, 26, 0.72);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.26);
  overflow: hidden;
}
.system-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  color: #b9c9dc;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.live-dot::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #5de4b2;
  box-shadow: 0 0 12px #5de4b2;
}
.system-diagram {
  position: relative;
  min-height: 360px;
  background:
    radial-gradient(circle at center, rgba(47, 94, 229, 0.18), transparent 38%),
    linear-gradient(rgba(141, 207, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(141, 207, 255, 0.08) 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px;
}
.system-diagram::before,
.system-diagram::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 54%;
  height: 54%;
  border: 1px solid rgba(141, 207, 255, 0.34);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.system-diagram::after { width: 75%; height: 75%; opacity: 0.38; }
.diagram-core,
.diagram-node {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 1px solid rgba(141, 207, 255, 0.5);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}
.diagram-core {
  left: 50%;
  top: 50%;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  color: var(--white);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.95);
  overflow: hidden;
  background: #13233c;
}
.diagram-core::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(rgba(4, 13, 26, 0.24), rgba(4, 13, 26, 0.7));
}
.diagram-core > strong {
  position: relative;
  z-index: 2;
}
.core-mosaic {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.core-mosaic i {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.core-h { background-image: url("tga-heizung.jpg"); }
.core-k { background-image: url("tga-kaelte.jpg"); }
.core-l { background-image: url("tga-lueftung.jpg"); }
.core-s { background-image: url("tga-sanitaer.jpg"); }
.diagram-node {
  width: 88px;
  min-height: 70px;
  border-radius: 16px;
  color: var(--white);
  font-size: 20px;
  font-weight: 900;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
  background-image:
    linear-gradient(rgba(4, 13, 26, 0.28), rgba(4, 13, 26, 0.82)),
    var(--node-image);
  background-size: auto, cover;
  background-position: center;
  background-repeat: no-repeat;
}
.diagram-node small { display: block; color: var(--white); font-size: 10px; font-weight: 700; }
.node-h { left: 11%; top: 16%; --node-image: url("tga-heizung.jpg"); }
.node-k { right: 11%; top: 16%; --node-image: url("tga-kaelte.jpg"); }
.node-l { left: 11%; bottom: 16%; --node-image: url("tga-lueftung.jpg"); }
.node-s { right: 11%; bottom: 16%; --node-image: url("tga-sanitaer.jpg"); }
.system-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.system-meta div { display: grid; gap: 3px; padding: 16px 18px; }
.system-meta div + div { border-left: 1px solid rgba(255, 255, 255, 0.1); }
.system-meta strong { color: var(--white); font-size: 13px; }
.system-meta span { color: #8fa3b9; font-size: 10px; }
.trust-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.trust-row span {
  padding: 22px 20px;
  color: #bdcad8;
  font-size: 13px;
  text-align: center;
}
.trust-row span + span { border-left: 1px solid rgba(255, 255, 255, 0.15); }

.section { padding: 120px 0; }
.section-heading {
  display: grid;
  grid-template-columns: 1.45fr 0.75fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 56px;
}
.section-heading h2,
.profile-copy h2,
.contact h2 {
  margin: 0;
  font-size: clamp(40px, 5vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}
.section-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card {
  position: relative;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.service-card:hover { transform: translateY(-5px); border-color: rgba(47, 94, 229, 0.32); box-shadow: var(--shadow); }
.service-card h3 { margin: 0 0 14px; font-size: 27px; line-height: 1.08; letter-spacing: -0.03em; }
.service-card p { margin: 0; color: var(--muted); }
.service-tag { margin-top: 30px; padding-top: 0; color: var(--ink); font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }

.projects { color: var(--white); background: var(--ink); }
.projects .eyebrow { color: var(--blue-light); }
.projects .section-heading > p { color: #9fb1c4; }
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.project-card {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: var(--ink-soft);
}
.project-featured {
  grid-column: 1 / -1;
  min-height: 430px;
  background:
    radial-gradient(circle at 80% 15%, rgba(141, 207, 255, 0.24), transparent 26%),
    linear-gradient(135deg, #17365d, #0d1c31);
}
.project-card-top { display: flex; justify-content: space-between; color: var(--blue-light); font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.project-media {
  position: relative;
  height: 240px;
  margin: 22px 0 0;
  overflow: hidden;
  border-radius: 15px;
  background: #081426;
}
.project-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.crop-office img {
  width: 180%;
  max-width: none;
  height: auto;
  transform: translateY(-55%);
}
.crop-tdd img {
  width: 315%;
  max-width: none;
  height: auto;
  transform: translate(-68%, -2%);
}
.project-card h3 { max-width: 720px; margin: 26px 0 15px; font-size: clamp(30px, 4vw, 50px); line-height: 1.05; letter-spacing: -0.04em; }
.project-card p { max-width: 660px; margin: 0; color: #b8c6d5; }
.project-number { margin-top: auto; padding-top: 32px; color: var(--white); font-size: 19px; }
.project-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: auto; padding-top: 50px; }
.project-metrics div { display: grid; gap: 3px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.project-metrics strong { font-size: 27px; }
.project-metrics span { color: #93a9bf; font-size: 12px; text-transform: uppercase; }

.profile { background: var(--ice); }
.profile-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 70px;
  align-items: center;
}
.profile-photo-wrap {
  position: relative;
  width: 100%;
  justify-self: center;
}
.profile-photo-wrap::before {
  content: "";
  position: absolute;
  inset: -20px 20px 20px -20px;
  z-index: 0;
  border: 1px solid rgba(47, 94, 229, 0.24);
  border-radius: 28px;
}
.profile-photo-wrap img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.photo-caption {
  position: relative;
  z-index: 2;
  display: grid;
  margin-top: 12px;
  padding: 17px 19px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(9, 20, 38, 0.82);
  backdrop-filter: blur(10px);
}
.photo-caption span { font-weight: 800; }
.photo-caption small { color: #b9c9dc; }
.profile-intro { margin: 27px 0 34px; color: var(--muted); font-size: 20px; }
.profile-facts { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.profile-facts li { display: grid; grid-template-columns: 100px 1fr; align-items: center; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.profile-facts span { color: var(--blue); font-size: 13px; font-weight: 900; }
.profile-facts p { margin: 0; }
.qualification-list, .software-list { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.qualification-list span, .software-list span { padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.72); font-size: 12px; }
.software-list span { color: var(--white); border-color: var(--ink); background: var(--ink); }

.collaboration { background: var(--white); }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.process-grid li {
  min-height: 290px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.process-grid li + li { border-left: 1px solid var(--line); }
.process-grid h3 { margin: 0 0 12px; font-size: 24px; }
.process-grid p { margin: 0; color: var(--muted); }

.contact { padding: 110px 0; color: var(--white); background: var(--blue); }
.contact .eyebrow { color: #d7eaff; }
.contact-layout { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 80px; align-items: end; }
.contact-actions { display: grid; justify-items: start; gap: 16px; }
.contact-email { font-size: clamp(24px, 3vw, 36px); font-weight: 800; text-decoration: none; border-bottom: 2px solid rgba(255, 255, 255, 0.6); }
.contact-phones { display: flex; flex-wrap: wrap; gap: 18px; }
.contact-phones a { color: #dce8ff; text-decoration: none; }
.contact-actions p { margin: 0; color: #dce8ff; }
.contact-actions .button { margin-top: 10px; }

.site-footer { padding: 32px 0; color: #aab9c9; background: #050c17; font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 30px; }
.footer-brand { display: grid; }
.footer-brand strong { color: var(--white); font-size: 16px; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--white); }

.legal-page { min-height: 100vh; padding: 150px 0 80px; background: var(--ice); }
.legal-copy { max-width: 820px; }
.legal-copy h1 { margin-bottom: 34px; font-size: clamp(44px, 7vw, 78px); }
.legal-copy h2 { margin-top: 42px; font-size: 26px; }
.legal-copy p, .legal-copy li { color: var(--muted); }
.draft-notice { padding: 18px 20px; border: 1px solid #d79725; border-radius: 12px; color: #704b05; background: #fff6dc; }
.back-link { display: inline-block; margin-bottom: 30px; color: var(--gold-dark); font-weight: 800; text-decoration: none; }

:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 4px; }

@media (max-width: 980px) {
  .header-inner { grid-template-columns: 1fr auto auto; }
  .menu-toggle {
    width: 44px;
    height: 44px;
    display: grid;
    align-content: center;
    gap: 5px;
    padding: 10px;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
  }
  .menu-toggle span:not(.sr-only) { display: block; height: 2px; background: currentColor; }
  .main-nav {
    position: fixed;
    inset: 78px 0 auto;
    display: grid;
    gap: 0;
    padding: 12px 20px 22px;
    background: var(--ink);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    transform: translateY(-130%);
    transition: transform 200ms ease;
  }
  .main-nav.is-open { transform: translateY(0); }
  .main-nav a { padding: 14px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.09); }
  .hero-layout { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { max-width: 800px; }
  .system-panel { max-width: 680px; width: 100%; }
  .section-heading { grid-template-columns: 1fr; gap: 24px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 48px; }
  .contact-layout { grid-template-columns: 1fr; gap: 46px; }
}

@media (max-width: 720px) {
  :root { --shell: min(100% - 28px, 1180px); }
  body { font-size: 16px; }
  .header-inner { min-height: 70px; gap: 10px; }
  .brand-text small { display: none; }
  .main-nav { top: 70px; }
  .language-switcher button { min-width: 34px; padding-inline: 7px; }
  .hero { padding-top: 116px; }
  .hero-layout { gap: 46px; padding-bottom: 52px; }
  h1 { font-size: clamp(45px, 14vw, 68px); }
  .hero-lead { margin-top: 24px; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .system-diagram { min-height: 300px; }
  .diagram-node { width: 74px; min-height: 62px; }
  .node-h, .node-l { left: 6%; }
  .node-k, .node-s { right: 6%; }
  .system-meta { grid-template-columns: 1fr; }
  .system-meta div + div { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.1); }
  .trust-row { grid-template-columns: repeat(2, 1fr); }
  .trust-row span:nth-child(3) { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.15); }
  .trust-row span:nth-child(4) { border-top: 1px solid rgba(255, 255, 255, 0.15); }
  .section { padding: 82px 0; }
  .section-heading { margin-bottom: 38px; }
  .service-grid, .project-grid, .profile-layout, .process-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 310px; }
  .project-featured { grid-column: auto; }
  .project-card { min-height: 360px; padding: 26px; }
  .project-media { height: 200px; }
  .crop-office img { width: 280%; }
  .crop-tdd img { width: 400%; }
  .project-card h3 { margin-top: 26px; }
  .project-metrics { grid-template-columns: 1fr; padding-top: 36px; }
  .profile-layout { gap: 58px; }
  .profile-photo-wrap { width: min(62%, 240px); margin: 0 auto; }
  .profile-facts li { grid-template-columns: 84px 1fr; }
  .process-grid li { min-height: 250px; padding: 26px 10px; }
  .process-grid li + li { border-left: 0; }
  .process-grid h3 { margin: 0 0 12px; }
  .contact { padding: 82px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* 2026-07 redesign: arquitectura visual clara, inspirada en estudios TGA alemanes */
:root {
  --gold: #795515;
  --gold-dark: #60420f;
  --warm-paper: #f6f5f2;
  --warm-line: rgba(61, 57, 49, 0.16);
  --charcoal: #292b2d;
  --radius: 4px;
  --shadow: 0 18px 45px rgba(35, 34, 30, 0.12);
  --shell: min(1100px, calc(100% - 40px));
}

body {
  color: #292b2d;
  background: #fff;
  font-family: Verdana, Geneva, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.62;
}

.site-header {
  color: #292b2d;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--warm-line);
  box-shadow: 0 2px 18px rgba(35, 34, 30, 0.05);
  backdrop-filter: blur(14px);
}
.header-inner { min-height: 96px; }
.brand-mark { border-color: rgba(41, 43, 45, 0.45); }
.brand-mark span { color: var(--gold); }
.brand-mark span + span { border-left-color: rgba(41, 43, 45, 0.22); }
.brand-text strong { color: #292b2d; }
.brand-text small { color: #77746d; }
.main-nav a { color: #353535; }
.main-nav a::after { background: var(--gold); }
.language-switcher { border-color: var(--warm-line); }
.language-switcher button { color: #585858; }
.language-switcher button.is-active { color: #fff; background: var(--gold); }

.hero {
  padding: 96px 0 0;
  color: #292b2d;
  background: #fff;
}
.hero-showcase {
  position: relative;
  width: 100%;
  height: clamp(400px, 50vw, 580px);
  overflow: hidden;
  background: #e8e6e1;
}
.hero-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 700ms ease;
  pointer-events: none;
}
.hero-slide.is-active { opacity: 1; pointer-events: auto; }
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(20, 20, 18, 0.68));
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-slide:nth-child(2) img { object-position: center 46%; }
.hero-slide:nth-child(3) img { object-position: center 42%; }
.hero-slide figcaption {
  position: absolute;
  left: max(24px, calc((100vw - 1100px) / 2));
  right: 24px;
  bottom: 38px;
  z-index: 2;
  display: grid;
  gap: 4px;
  color: #fff;
}
.hero-slide figcaption span {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero-slide figcaption strong { font-size: clamp(20px, 2.4vw, 32px); font-weight: 500; }
.hero-dots {
  position: absolute;
  right: max(24px, calc((100vw - 1100px) / 2));
  bottom: 42px;
  z-index: 3;
  display: flex;
  gap: 9px;
}
.hero-dots button {
  width: 24px;
  height: 3px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}
.hero-dots button.is-active { background: #fff; }
.hero-copy {
  max-width: 980px;
  padding: 68px 0 54px;
  text-align: center;
}
.hero .eyebrow,
.eyebrow { color: var(--gold); }
h1 {
  max-width: 960px;
  margin-inline: auto;
  color: var(--gold);
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.025em;
}
.hero-lead {
  max-width: 820px;
  margin: 24px auto 0;
  color: #5f5d58;
  font-size: clamp(16px, 1.7vw, 19px);
}
.hero-actions { justify-content: center; margin-top: 30px; }
.button { min-height: 48px; border-radius: 2px; font-size: 13px; letter-spacing: 0.02em; }
.button-primary { background: var(--gold); box-shadow: 0 12px 24px rgba(161, 118, 33, 0.2); }
.button-primary:hover { background: var(--gold-dark); }
.button-ghost { color: #333; border-color: rgba(41, 43, 45, 0.28); }
.button-ghost:hover { border-color: var(--gold); color: var(--gold-dark); background: #fff; }
.trust-row { border-color: var(--warm-line); }
.trust-row span { color: #67635c; }
.trust-row span + span { border-left-color: var(--warm-line); }

.quick-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 72px 0 20px;
}
.quick-card {
  position: relative;
  min-height: 230px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #292b2d;
  text-align: center;
  text-decoration: none;
  background: #eee;
}
.quick-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.75);
  transition: background 220ms ease;
}
.quick-card:hover::after { background: rgba(255, 255, 255, 0.6); }
.quick-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.quick-card:nth-child(3) img { object-position: center 28%; }
.quick-card span { position: relative; z-index: 1; display: grid; gap: 8px; padding: 24px; }
.quick-card small { color: #55514a; font-size: 12px; }
.quick-card strong { color: #292b2d; font-size: 26px; font-weight: 400; }

.section { padding: 100px 0; }
.section-heading { grid-template-columns: 1.15fr 0.85fr; gap: 70px; margin-bottom: 44px; }
.section-heading h2,
.profile-copy h2,
.contact h2 {
  color: var(--gold);
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.025em;
}
.section-heading > p { color: #64615a; font-size: 16px; }

.services { background: var(--warm-paper); }
.services-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  gap: 42px;
  align-items: stretch;
  margin-bottom: 54px;
}
.system-panel { border-radius: 3px; }
.services-principles {
  display: grid;
  border-top: 1px solid var(--warm-line);
}
.services-principles article {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 0;
  align-content: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--warm-line);
}
.services-principles h3 { margin: 0 0 5px; font-size: 20px; font-weight: 500; }
.services-principles p { margin: 0; color: #66635d; font-size: 13px; }
.service-grid { gap: 1px; background: var(--warm-line); border: 1px solid var(--warm-line); }
.service-card {
  min-height: 280px;
  padding: 32px 28px;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}
.service-card:hover { transform: none; border-color: transparent; box-shadow: inset 0 -4px 0 var(--gold); }
.service-card h3 { font-size: 22px; font-weight: 500; }
.service-card p { color: #66635d; font-size: 14px; }
.service-tag { color: var(--gold-dark); }

.projects { color: #292b2d; background: #fff; }
.projects .eyebrow { color: var(--gold); }
.projects .section-heading > p { color: #64615a; }
.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 38px;
  border-bottom: 1px solid var(--warm-line);
}
.project-filters button {
  padding: 10px 18px;
  color: #69655e;
  border: 0;
  border-top: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}
.project-filters button.is-active { color: var(--gold-dark); border-top-color: var(--gold); }
.project-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
.project-card,
.project-featured {
  grid-column: auto;
  min-height: 0;
  padding: 0 0 26px;
  color: #292b2d;
  border: 1px solid var(--warm-line);
  border-radius: 0;
  background: #fff;
}
.project-card[hidden] { display: none; }
.project-card-top { padding: 18px 20px 0; color: var(--gold-dark); font-size: 10px; }
.project-media { height: 220px; margin-top: 16px; border-radius: 0; background: #e7e6e2; }
.project-media img { transition: transform 350ms ease; }
.project-card:hover .project-media img { transform: scale(1.035); }
.crop-office img,
.crop-tdd img { width: 100%; max-width: 100%; height: 100%; transform: none; object-fit: cover; }
.energy-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: minmax(0, 2fr) minmax(0, 1fr);
  gap: 2px;
  overflow: hidden;
  background: #fff;
}
.energy-gallery img {
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}
.energy-gallery .energy-main { grid-column: 1 / -1; }
.project-card:hover .energy-gallery img { transform: none; }
.project-card h3 { margin: 24px 20px 10px; font-size: 24px; font-weight: 400; line-height: 1.22; letter-spacing: -0.02em; }
.project-card p { margin: 0 20px; color: #66635d; font-size: 13px; }
.project-number { min-height: 62px; margin: auto 20px 0; padding-top: 16px; color: #292b2d; border-top: 1px solid var(--warm-line); font-size: 14px; }
.project-metrics { gap: 8px; margin: auto 20px 0; padding-top: 16px; border-top: 1px solid var(--warm-line); }
.project-metrics div { padding-top: 0; border-top: 0; }
.project-metrics strong { color: #292b2d; font-size: 18px; }
.project-metrics span { color: #79756d; font-size: 9px; }

.profile { background: var(--warm-paper); }
.profile-photo-wrap::before { border-color: rgba(161, 118, 33, 0.3); border-radius: 2px; }
.profile-photo-wrap img { border-radius: 2px; box-shadow: var(--shadow); }
.photo-caption { border-radius: 0; background: rgba(41, 43, 45, 0.9); }
.profile-facts span { color: var(--gold-dark); }
.software-list span { border-color: var(--gold-dark); background: var(--gold-dark); }

.collaboration { background: #fff; }
.process-grid { border-color: var(--warm-line); }
.process-grid li { border-color: var(--warm-line); }
.process-grid li + li { border-left-color: var(--warm-line); }
.process-grid h3 { font-weight: 500; }
.process-grid p { color: #66635d; font-size: 14px; }

.contact { color: #fff; background: var(--charcoal); }
.contact .eyebrow { color: #d8b464; }
.contact h2 { color: #d8b464; }
.contact-actions p,
.contact-phones a { color: #d8d6d1; }
.button-light { color: #292b2d; background: #fff; }
.site-footer { background: #1f2021; }
.footer-brand strong { color: #d8b464; }

@media (max-width: 980px) {
  .menu-toggle { color: #292b2d; border-color: var(--warm-line); }
  .main-nav { top: 96px; background: #fff; border-bottom-color: var(--warm-line); }
  .main-nav a { color: #292b2d; border-bottom-color: var(--warm-line); }
  .section-heading { grid-template-columns: 1fr; gap: 24px; }
  .services-overview { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .header-inner { min-height: 72px; }
  .main-nav { top: 72px; }
  .hero { padding-top: 72px; }
  .hero-showcase { height: 360px; }
  .hero-slide figcaption { left: 20px; bottom: 28px; }
  .hero-dots { right: 20px; bottom: 32px; }
  .hero-copy { padding: 48px 0 36px; }
  .hero-actions { display: grid; }
  .trust-row span:nth-child(3),
  .trust-row span:nth-child(4) { border-top-color: var(--warm-line); }
  .quick-links { grid-template-columns: 1fr; gap: 14px; padding-top: 46px; }
  .quick-card { min-height: 190px; }
  .section { padding: 76px 0; }
  .service-grid,
  .project-grid { grid-template-columns: 1fr; }
  .project-filters { display: grid; grid-template-columns: 1fr 1fr; }
  .project-filters button { text-align: left; }
  .project-media { height: 240px; }
  .diagram-node { width: 82px; }
  .profile-photo-wrap { width: min(70%, 250px); }
  .legal-copy h1 {
    font-size: clamp(29px, 8vw, 34px);
    line-height: 1.08;
    hyphens: auto;
    overflow-wrap: normal;
    word-break: normal;
  }
}
