/* ==========================================================================
   Architektenhaus Braunschweig – "Linie & Fläche"
   CI of the previous website: navy #132d5b, olive #8c9e14, warm grey
   #f2f0ef, Encode Sans (+ Condensed), roof-lines logo. Light, airy
   architecture look: hairlines, large light headings, the logo's 45° roof
   pitch as recurring motif. Fonts are self-hosted.
   ========================================================================== */

@font-face { font-family: "Encode Sans"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/encode-sans-v22-latin-300.woff2") format("woff2"); }
@font-face { font-family: "Encode Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/encode-sans-v22-latin-regular.woff2") format("woff2"); }
@font-face { font-family: "Encode Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/encode-sans-v22-latin-700.woff2") format("woff2"); }
@font-face { font-family: "Encode Sans"; font-style: normal; font-weight: 900; font-display: swap; src: url("../fonts/encode-sans-v22-latin-900.woff2") format("woff2"); }
@font-face { font-family: "Encode Sans Condensed"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/encode-sans-condensed-v10-latin-300.woff2") format("woff2"); }
@font-face { font-family: "Encode Sans Condensed"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/encode-sans-condensed-v10-latin-regular.woff2") format("woff2"); }

:root {
  --navy: #132d5b;
  --navy-2: #0e2246;
  --navy-3: #1d3d74;
  --olive: #8c9e14;
  --olive-dark: #5d6a0c;      /* olive for text on light backgrounds (5.2:1+) */
  --olive-light: #c9d66a;     /* olive for text on navy (8.5:1) */
  --sand: #f2f0ef;
  --sand-2: #e7e4e1;
  --white: #ffffff;
  --ink: #1c1c1c;
  --text: #2b2f36;
  --muted: #5e6770;
  --line: #d9d5d1;

  --wrap: 1240px;
  --radius: 2px;
  --shadow: 0 30px 60px -36px rgba(19, 45, 91, .45);
  --font: "Encode Sans", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  --display: "Encode Sans Condensed", "Arial Narrow", "Encode Sans", Arial, sans-serif;
  --roof: polygon(0 0, calc(100% - 90px) 0, 100% 90px, 100% 100%, 0 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; font-family: var(--font); font-weight: 400; font-size: 17px; line-height: 1.7; color: var(--text); background: var(--white); overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--olive-dark); }
:focus-visible { outline: 3px solid var(--olive); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 300; line-height: 1.12; color: var(--navy); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.4rem; font-weight: 400; }
p { margin: 0 0 1em; }
strong { font-weight: 700; }
@media (max-width: 600px) { h1, h2 { -webkit-hyphens: auto; hyphens: auto; } }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
@media (min-width: 800px) { .wrap { padding: 0 40px; } }
.narrow { max-width: 900px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; }
.skip-link:focus { left: 8px; }
.small { font-size: .88rem; color: var(--muted); }
.big { font-size: clamp(1.1rem, 1.6vw, 1.28rem); line-height: 1.6; color: var(--ink); }
.lead { font-size: clamp(1.1rem, 1.8vw, 1.35rem); line-height: 1.5; color: var(--muted); }

/* ---------- Eyebrow: label with the logo's roof stroke ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px; margin: 0 0 18px;
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--olive-dark);
}
.eyebrow::before {
  content: ""; width: 34px; height: 14px; flex: none;
  background: linear-gradient(135deg, transparent 0 44%, currentColor 44% 56%, transparent 56%), linear-gradient(135deg, transparent 0 44%, var(--olive) 44% 56%, transparent 56%) 10px 0 / 100% 100% no-repeat;
}
.eyebrow-light { color: var(--olive-light); }
.section-head { max-width: 820px; margin-bottom: 40px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px;
  padding: 14px 28px; border: 1.5px solid transparent; border-radius: var(--radius);
  font: 700 .95rem/1.2 var(--font); letter-spacing: .04em; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-3); color: #fff; }
.btn-olive { background: var(--olive); color: var(--ink); }
.btn-olive:hover { background: var(--olive-light); color: var(--ink); }
.btn-line { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn-line:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.more { margin-top: auto; padding-top: 14px; font-weight: 700; font-size: .9rem; color: var(--olive-dark); }
.more::after { content: " →"; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.logo-mark { width: 62px; height: auto; flex: none; color: var(--ink); }
.brand-footer .logo-mark { color: #fff; }
.brand-text { display: flex; flex-direction: column; font-family: var(--display); font-weight: 400; font-size: 1.32rem; line-height: 1.05; color: var(--navy); letter-spacing: .01em; }
.brand-text span { font-weight: 300; font-size: .9em; color: var(--muted); }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item > a { padding: 12px 10px; font-size: .9rem; font-weight: 700; color: var(--navy); text-decoration: none; position: relative; }
.nav-item > a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 6px; height: 2px; background: var(--olive); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.nav-item > a:hover::after, .nav-item > a.is-active::after { transform: scaleX(1); }
.nav-item > a.nav-cta { margin-left: 10px; background: var(--navy); color: #fff; padding: 12px 20px; border-radius: var(--radius); }
.nav-item > a.nav-cta::after { display: none; }
.nav-item > a.nav-cta:hover, .nav-item > a.nav-cta.is-active { background: var(--olive); color: var(--ink); }
.sub-toggle { width: 24px; height: 40px; margin-left: -6px; background: none; border: 0; cursor: pointer; position: relative; }
.sub-toggle::before { content: ""; position: absolute; left: 7px; top: 15px; width: 7px; height: 7px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg); transition: transform .2s; }
.sub-toggle[aria-expanded="true"]::before { transform: rotate(225deg); top: 19px; }
.sub { list-style: none; margin: 0; padding: 10px 0; position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--olive); box-shadow: var(--shadow); display: none; }
.sub a { display: block; padding: 10px 20px; color: var(--navy); text-decoration: none; font-size: .95rem; }
.sub a:hover, .sub a[aria-current="page"] { background: var(--sand); color: var(--olive-dark); }
@media (min-width: 1181px) {
  .has-sub:hover .sub, .has-sub:focus-within .sub, .sub.is-open { display: block; }
}
.nav-toggle { display: none; width: 48px; height: 48px; background: none; border: 0; cursor: pointer; position: relative; }
.bars, .bars::before, .bars::after { position: absolute; left: 11px; width: 26px; height: 2px; background: var(--navy); transition: transform .2s, opacity .2s; }
.bars { top: 23px; }
.bars::before, .bars::after { content: ""; left: 0; }
.bars::before { top: -8px; }
.bars::after { top: 8px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-8px) rotate(-45deg); }
@media (max-width: 1180px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); max-height: calc(100vh - 84px); overflow-y: auto; }
  .nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; padding: 10px 20px 24px; }
  .nav-item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav-item > a { flex: 1; padding: 16px 4px; font-size: 1rem; }
  .nav-item > a::after { display: none; }
  .sub-toggle { width: 48px; height: 48px; margin: 0; }
  .sub-toggle::before { left: 19px; top: 19px; }
  .sub-toggle[aria-expanded="true"]::before { top: 23px; }
  .sub { position: static; width: 100%; border: 0; box-shadow: none; padding: 0 0 10px 12px; }
  .sub.is-open { display: block; }
  .nav-item:last-child { border-bottom: 0; }
  .nav-item > a.nav-cta { margin: 16px 0 0; text-align: center; }
}
@media (max-width: 420px) { .logo-mark { width: 48px; } .brand-text { font-size: 1.12rem; } }

.breadcrumbs ol { list-style: none; margin: 0; padding: 14px 0; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: .85rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 10px; color: var(--line); }
.breadcrumbs a { color: var(--muted); }

/* ---------- Home hero ---------- */
.hero { position: relative; background: var(--navy-2); color: #fff; }
.hero-media img { width: 100%; height: clamp(520px, 82vh, 860px); object-fit: cover; object-position: 50% 35%; }
.hero-inner { position: absolute; inset: auto 0 0 0; }
.hero-panel {
  position: relative; max-width: 640px; padding: clamp(32px, 5vw, 60px); margin-bottom: clamp(24px, 5vw, 70px);
  background: rgba(19, 45, 91, .93); clip-path: var(--roof);
}
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5.4vw, 4.2rem); }
.hero .lead { color: #dce3ee; }
.hero-caption { position: absolute; right: 0; left: 0; bottom: 8px; margin: 0; text-align: right; font-size: .78rem; color: rgba(255, 255, 255, .85); text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.hero-caption a { color: #fff; }
@media (max-width: 760px) {
  .hero-inner { position: relative; }
  .hero-panel { margin: -80px 16px 0; clip-path: polygon(0 0, calc(100% - 50px) 0, 100% 50px, 100% 100%, 0 100%); }
  .hero-media img { height: min(60vh, 520px); min-height: 380px; }
  .hero-caption { position: static; text-align: left; padding: 14px 20px 18px; text-shadow: none; color: #b9c5d9; }
}

/* ---------- Page hero ---------- */
.page-hero { background: var(--sand); padding: clamp(36px, 6vw, 72px) 0; overflow: hidden; }
.page-hero-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .page-hero-grid { grid-template-columns: 1fr 1.05fr; gap: 64px; } }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); }
.page-hero-media { margin: 0; position: relative; }
.page-hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; clip-path: var(--roof); }
.page-hero-media::before { /* three roof lines from the logo */
  content: ""; position: absolute; left: -18px; bottom: -18px; width: 110px; height: 110px; z-index: -1;
  background: repeating-linear-gradient(135deg, var(--olive) 0 3px, transparent 3px 16px);
}

/* ---------- Sections ---------- */
.section { padding: clamp(60px, 9vw, 120px) 0; }
.section-light { background: var(--sand); }
.section-navy { background: var(--navy); color: #e4e9f2; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy .eyebrow { color: var(--olive-light); }
.two-col { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: 72px; } .two-col-top { align-items: start; } }

/* Intro with portrait */
.intro-grid { display: grid; gap: 44px; align-items: center; }
@media (min-width: 900px) { .intro-grid { grid-template-columns: 5fr 7fr; gap: 80px; } }
.portrait { margin: 0; position: relative; max-width: 460px; }
.portrait img { width: 100%; clip-path: var(--roof); }
.portrait figcaption { position: absolute; left: -1px; bottom: 24px; background: var(--navy); color: #fff; padding: 14px 20px; font-size: .9rem; line-height: 1.4; }
.portrait figcaption strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.2rem; }

/* Service cards */
.services { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
@media (min-width: 600px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .services { grid-template-columns: repeat(4, 1fr); } }
.service a { display: flex; flex-direction: column; height: 100%; background: #fff; text-decoration: none; color: var(--text); position: relative; transition: transform .25s, box-shadow .25s; }
.service a:hover { transform: translateY(-6px); box-shadow: var(--shadow); color: var(--text); }
.service-media { display: block; overflow: hidden; clip-path: polygon(0 0, calc(100% - 60px) 0, 100% 60px, 100% 100%, 0 100%); }
.service-media img { width: 100%; aspect-ratio: 52 / 50; object-fit: cover; transition: transform .6s; }
.service a:hover .service-media img { transform: scale(1.05); }
.service-no { position: absolute; top: 14px; left: 16px; font-family: var(--display); font-weight: 300; font-size: 2.6rem; line-height: 1; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .45); }
.service-title { display: block; padding: 22px 22px 6px; font-family: var(--display); font-size: 1.55rem; line-height: 1.15; color: var(--navy); -webkit-hyphens: manual; hyphens: manual; }
.service-text { display: block; padding: 0 22px; font-size: .95rem; color: var(--muted); }
.service .more { padding: 14px 22px 22px; }

/* Facts band */
.facts { background: var(--navy); color: #dce3ee; padding: 56px 0; }
.facts-grid { display: grid; gap: 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .facts-grid { grid-template-columns: repeat(4, 1fr); } }
.facts-grid > div { border-left: 2px solid var(--olive); padding-left: 18px; }
.facts-grid strong { display: block; font-family: var(--display); font-weight: 300; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; color: var(--olive-light); }
.facts-grid span { font-size: .92rem; }

/* Case cards */
.cases { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
@media (min-width: 800px) { .cases { grid-template-columns: repeat(2, 1fr); } }
.case-card a { display: grid; height: 100%; background: #fff; text-decoration: none; color: var(--text); border: 1px solid var(--line); transition: box-shadow .25s, transform .25s; }
.section-light .case-card a { border-color: transparent; }
.case-card a:hover { box-shadow: var(--shadow); transform: translateY(-4px); color: var(--text); }
.case-media { overflow: hidden; }
.case-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .6s; }
.case-card a:hover .case-media img { transform: scale(1.04); }
.case-body { display: flex; flex-direction: column; gap: 8px; padding: 26px 28px 28px; }
.case-no { font-size: .76rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--olive-dark); }
.case-body strong { font-family: var(--display); font-weight: 400; font-size: 1.5rem; line-height: 1.2; color: var(--navy); }
.case-body > span:not(.case-no):not(.more) { color: var(--muted); }

/* Quotes */
.quotes { display: grid; gap: 24px; }
@media (min-width: 1000px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote { margin: 0; background: #fff; padding: 84px 30px 30px; position: relative; display: flex; flex-direction: column; }
.quote::before { content: "„"; position: absolute; top: -34px; left: 26px; font-family: Georgia, serif; font-size: 6rem; line-height: 1; color: var(--olive); }
.quote blockquote { margin: 0 0 24px; font-size: .98rem; }
.quote figcaption { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); display: grid; }
.quote figcaption strong { color: var(--navy); }
.quote figcaption span { font-size: .88rem; color: var(--muted); }

/* Lists */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 18px; height: 9px; border-left: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(-45deg); }
.checks-olive li::before { border-color: var(--olive-dark); }
.section-navy .checks li::before { border-color: var(--olive-light); }

.phases { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 700px) { .phases { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .phases { grid-template-columns: repeat(4, 1fr); } }
.phases li { background: #fff; padding: 26px 24px; display: flex; flex-direction: column; gap: 6px; }
.phase-no { font-family: var(--display); font-weight: 300; font-size: 2.4rem; line-height: 1; color: var(--olive-dark); }
.phases strong { font-family: var(--display); font-weight: 400; font-size: 1.25rem; color: var(--navy); }
.phases span:not(.phase-no) { font-size: .93rem; color: var(--muted); }

.advantages-card { background: var(--navy); color: #e4e9f2; padding: clamp(28px, 4vw, 48px); clip-path: var(--roof); }
.advantages-card h2 { color: #fff; }
.advantages-card .eyebrow { color: var(--olive-light); }
.advantages-card .btn-navy { background: var(--olive); color: var(--ink); }
.advantages-card .btn-navy:hover { background: var(--olive-light); }
.section:not(.section-light) .advantages:not(.advantages-card) { background: var(--sand); padding: clamp(28px, 4vw, 44px); }

.tiles { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.tiles li { background: var(--sand); padding: 18px 16px; border-top: 3px solid var(--olive); font-weight: 700; color: var(--navy); font-size: .95rem; line-height: 1.35; }
.problem, .solution { background: #fff; padding: clamp(26px, 4vw, 44px); height: 100%; }
.problem { border-top: 4px solid var(--muted); }
.solution { border-top: 4px solid var(--olive); }
.problem h2, .solution h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }

.reasons { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: rgba(255, 255, 255, .14); counter-reset: r; }
@media (min-width: 640px) { .reasons { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .reasons { grid-template-columns: repeat(4, 1fr); } }
.reasons li { counter-increment: r; background: var(--navy); padding: 24px 22px; display: flex; flex-direction: column; gap: 8px; }
.reasons li::before { content: counter(r, decimal-leading-zero); font-family: var(--display); font-weight: 300; font-size: 2rem; line-height: 1; color: var(--olive-light); }

.milestones { margin: 28px 0 0; display: grid; gap: 14px; }
.milestones div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; align-items: baseline; border-top: 1px solid var(--line); padding-top: 14px; }
.milestones dt { font-family: var(--display); font-size: 1.4rem; color: var(--olive-dark); }
.milestones dd { margin: 0; }

/* Team */
.team-group { margin: 48px 0 20px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.team { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .team { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .team { grid-template-columns: repeat(4, 1fr); } }
.member { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; }
.member-photo { width: 100%; aspect-ratio: 52 / 62; object-fit: cover; margin-bottom: 10px; background: var(--sand); }
.member-initials { display: grid; place-items: center; font-family: var(--display); font-weight: 300; font-size: 3rem; color: var(--olive-dark); background: var(--sand) repeating-linear-gradient(135deg, transparent 0 18px, rgba(140, 158, 20, .12) 18px 21px); }
.member strong { font-size: 1.05rem; color: var(--navy); }
.member-title { color: var(--ink); }
.member-area { color: var(--muted); }
.note { margin-top: 36px; color: var(--muted); }

/* Partners */
.partners { display: grid; gap: 24px; }
@media (min-width: 760px) { .partners { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .partners { grid-template-columns: repeat(3, 1fr); } .partner-group-wide { grid-row: span 2; } }
.partner-group { background: #fff; padding: 28px 30px; border-top: 3px solid var(--olive); }
.partner-group h2 { font-size: 1.5rem; font-weight: 400; }
.partner-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.partner-group li { padding-left: 18px; position: relative; }
.partner-group li::before { content: ""; position: absolute; left: 0; top: .75em; width: 8px; height: 2px; background: var(--olive); }

/* Link cards (hub pages) */
.link-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
@media (min-width: 760px) { .link-cards { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } }
.link-card a { display: flex; flex-direction: column; height: 100%; background: #fff; text-decoration: none; color: var(--text); transition: transform .25s, box-shadow .25s; }
.link-card a:hover { transform: translateY(-5px); box-shadow: var(--shadow); color: var(--text); }
.link-card-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.link-card-body { display: flex; flex-direction: column; gap: 8px; padding: 24px 26px 26px; flex: 1; }
.link-card-body strong { font-family: var(--display); font-weight: 400; font-size: 1.55rem; color: var(--navy); }
.link-card-body > span:not(.more) { color: var(--muted); }

/* Case study page */
.facts-card { margin: 0; background: var(--navy); color: #fff; padding: 36px; display: grid; gap: 18px; clip-path: var(--roof); align-self: start; }
.facts-card div { border-left: 2px solid var(--olive); padding-left: 16px; }
.facts-card dt { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--olive-light); font-weight: 700; }
.facts-card dd { margin: 0; font-family: var(--display); font-weight: 300; font-size: 1.8rem; line-height: 1.2; }
.case-story { display: grid; gap: 24px; }
@media (min-width: 900px) { .case-story { grid-template-columns: 1fr 1fr; } .story-wide { grid-column: 1 / -1; } }
.story-step { background: #fff; padding: clamp(24px, 3.5vw, 40px); }
.story-step h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.story-result { background: var(--navy); color: #e4e9f2; grid-column: 1 / -1; }
.story-result h2 { color: #fff; }
.story-result .checks li::before { border-color: var(--olive-light); }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.shot { display: block; width: 100%; padding: 0; border: 0; background: var(--sand); cursor: zoom-in; overflow: hidden; }
.shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s, opacity .3s; }
.shot:hover img { transform: scale(1.05); opacity: .9; }
.back { margin-top: 36px; }
.back a::before { content: "← "; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(94vw, 1300px); max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(14, 34, 70, .92); }
.lightbox figure { margin: 0; }
.lightbox img { max-height: 84vh; width: auto; margin: 0 auto; }
.lightbox figcaption { color: #fff; text-align: center; margin-top: 12px; font-size: .95rem; }
.lightbox-close { position: absolute; top: -8px; right: -8px; width: 46px; height: 46px; border: 0; background: var(--olive); color: var(--ink); font-size: 1.8rem; line-height: 1; cursor: pointer; z-index: 1; }

/* Contact */
.contact-card { background: var(--sand); padding: clamp(26px, 4vw, 44px); }
.contact-lines { list-style: none; margin: 24px 0; padding: 0; display: grid; gap: 12px; }
.contact-lines li { display: grid; grid-template-columns: 90px 1fr; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.contact-lines span { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--olive-dark); font-weight: 700; padding-top: 3px; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; margin: 0; }
.hours dd { margin: 0; white-space: nowrap; }
.site-footer .hours { grid-template-columns: 1fr; gap: 0; }
.site-footer .hours dd { margin-bottom: 10px; color: #fff; }
.inquiry-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 640px) { .inquiry-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .inquiry-cards { grid-template-columns: repeat(4, 1fr); } }
.inquiry-cards a { display: flex; flex-direction: column; gap: 10px; height: 100%; min-height: 180px; padding: 28px; background: #fff; text-decoration: none; color: var(--muted); border-bottom: 3px solid var(--olive); clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 0 100%); transition: background .2s, color .2s; }
.inquiry-cards a strong { font-family: var(--display); font-weight: 400; font-size: 1.5rem; line-height: 1.15; color: var(--navy); -webkit-hyphens: manual; hyphens: manual; }
.inquiry-cards a:hover { background: var(--navy); color: #dce3ee; }
.inquiry-cards a:hover strong { color: #fff; }

.form-layout { display: grid; gap: 48px; align-items: start; }
@media (min-width: 1000px) { .form-layout { grid-template-columns: 5fr 7fr; gap: 72px; } }
.form-card { background: var(--sand); padding: clamp(24px, 4vw, 48px); border-top: 4px solid var(--olive); }
.form { display: grid; gap: 18px; }
.form h2 { font-size: 1.9rem; margin: 0; }
.field-row { display: grid; gap: 18px; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; font-weight: 700; font-size: .92rem; color: var(--navy); }
.field input, .field textarea, .field select {
  font: 400 1rem/1.4 var(--font); color: var(--ink); width: 100%;
  padding: 13px 14px; border: 1.5px solid #b9b4ae; border-radius: var(--radius); background: #fff;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(140, 158, 20, .45); }
.field [aria-invalid="true"], .check [aria-invalid="true"] { border-color: #b3261e; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: .92rem; }
.check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--navy); }
.field-error { font-weight: 700; font-size: .85rem; color: #b3261e; }
.field-error:empty { display: none; }
.form-note { padding: 14px 16px; margin: 0; }
.form-error { background: #fbe3e1; color: #7d1a14; }
.form-success h2 { color: var(--olive-dark); }
.form-success { outline: none; }
.form .btn { justify-self: start; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.map { min-height: 400px; background: var(--sand-2); display: flex; border: 1px solid var(--line); }
.section-light .map { background: #fff; }
.map iframe { width: 100%; min-height: 400px; border: 0; }
.map-placeholder { margin: auto; padding: 32px; max-width: 460px; text-align: center; display: grid; gap: 14px; justify-items: center; }
.map-placeholder p { margin: 0; }

/* CTA band */
.cta-band { position: relative; color: #fff; overflow: hidden; background: var(--navy); }
.cta-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, var(--navy) 35%, rgba(19, 45, 91, .6)); }
.cta-inner { position: relative; padding-top: clamp(60px, 8vw, 100px); padding-bottom: clamp(60px, 8vw, 100px); max-width: 900px; margin-left: max(0px, calc((100vw - var(--wrap)) / 2)); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #dce3ee; font-size: 1.1rem; }

/* Footer */
.site-footer { background: var(--navy-2); color: #c3cee0; padding: 64px 0 28px; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--olive-light); }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h2 { font-family: var(--font); font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--olive-light); margin-bottom: 16px; }
.site-footer address { font-style: normal; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.brand-footer { color: #fff; margin-bottom: 18px; }
.brand-footer .brand-text { color: #fff; }
.brand-footer .brand-text span { color: #c3cee0; }
.footer-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .88rem; }

/* Legal */
.legal { max-width: 860px; }
.legal h2 { font-size: 1.8rem; margin-top: 1.8em; }
.legal h3 { font-size: 1.2rem; margin-top: 1.6em; font-weight: 400; }
.legal p, .legal li { font-size: .98rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.phases li.phase-cta { background: var(--navy); padding: 0; }
.phase-cta a { display: flex; align-items: flex-end; height: 100%; min-height: 140px; padding: 26px 24px; color: #fff; text-decoration: none; font-family: var(--display); font-size: 1.35rem; line-height: 1.2; }
.phase-cta a::after { content: " →"; color: var(--olive-light); margin-left: 6px; }
.phase-cta a:hover { background: var(--navy-3); color: #fff; }
