@font-face {
  font-family: "YRDZST Medium";
  src: url("./fonts/YRDZST-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f1f1ef;
  --ink: #111111;
  --muted: #5c5c5a;
  --dark: #0b0b0b;
  --light: #ffffff;
  --accent: #b87333;
  --accent-dark: #8d4f20;
  --margin: clamp(18px, 4vw, 68px);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Libre Baskerville", "YRDZST Medium", Georgia, serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: .18em; }
button { color: inherit; font: inherit; }
img { display: block; max-width: 100%; }
p { max-width: 68ch; margin: 0; text-wrap: pretty; }
h1, h2, h3, .wordmark, .footer-name {
  margin: 0;
  font-family: "Libre Baskerville", "YRDZST Medium", Georgia, serif;
  font-style: normal;
  font-weight: 700;
  text-wrap: balance;
}
h1 { max-width: 8ch; font-size: clamp(3.8rem, 8vw, 8.3rem); line-height: .9; letter-spacing: -.045em; }
h2 { max-width: 13ch; font-size: clamp(2.6rem, 5vw, 5rem); line-height: .94; letter-spacing: -.035em; }
h3 { font-size: 20px; line-height: 1.1; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--accent); color: var(--light); }
[hidden] { display: none !important; }

.skip-link { position: absolute; z-index: 20; top: -60px; left: var(--margin); padding: 10px 14px; background: var(--light); color: var(--ink); }
.skip-link:focus { top: 10px; }

.site-header {
  min-height: 82px;
  padding: 10px var(--margin);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: 0 0 auto; }
.brand img { width: 48px; height: 40px; object-fit: contain; }
.wordmark { color: var(--ink); font-size: 16px; line-height: 1; }
.wordmark span { display: block; margin-top: 5px; font-family: "Libre Baskerville", "YRDZST Medium", Georgia, serif; font-size: 13px; font-style: normal; font-weight: 600; }
.site-header nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.site-header nav a { font-size: 15px; text-decoration: none; }
.site-header nav a:not(.nav-call):hover { color: var(--accent); }
.nav-call { padding: 12px 16px; background: var(--dark); color: var(--light); }
.nav-call:hover { background: var(--accent); }
.menu-toggle { display: none; border: 0; padding: 9px 0 9px 12px; background: transparent; cursor: pointer; }

.opening {
  min-height: 610px;
  padding: 72px var(--margin) 78px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .82fr);
  align-items: center;
  gap: clamp(42px, 8vw, 128px);
  background: var(--dark);
  color: var(--light);
}
.opening-copy { max-width: 740px; }
.opening h1 { margin-bottom: 28px; }
.title-line { display: block; overflow: clip; padding: 0 .04em .1em 0; margin-bottom: -.1em; }
.title-line [data-line] { display: block; }
.title-line-meta { margin-top: 13px; }
.title-line-meta [data-line] { font-family: "Libre Baskerville", Georgia, serif; font-size: .22em; font-style: normal; font-weight: 700; letter-spacing: .06em; line-height: 1; text-transform: uppercase; }
.opening-lead { max-width: 44ch; font-size: clamp(1.1rem, 1.7vw, 1.4rem); line-height: 1.42; color: #e4e1da; }
.opening-actions { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.primary-action { display: inline-flex; min-height: 48px; align-items: center; padding: 11px 17px; background: var(--accent); color: var(--light); text-decoration: none; transition: transform 140ms var(--ease-out), background-color 180ms ease; }
.primary-action:hover { background: var(--accent-dark); }
.primary-action:active { transform: scale(.97); }
.opening-link { color: var(--light); }
.opening-link:hover { color: #e4b281; }
.opening-media { position: relative; min-height: 410px; margin: 0; background: #292929; overflow: clip; }
.opening-media img { width: 100%; height: 100%; min-height: 410px; object-fit: cover; object-position: center 44%; }
.opening-media figcaption { position: absolute; right: 0; bottom: 0; padding: 10px 13px; background: var(--dark); color: var(--light); font-size: 12px; }

.work-register { padding: 46px var(--margin) 104px; background: var(--dark); color: var(--light); }
.work-intro { margin-bottom: 52px; display: flex; align-items: end; justify-content: space-between; gap: 32px; }
.work-intro p { max-width: 38ch; color: #d3d0c9; }
.work-groups { display: grid; gap: 66px; }
.work-group h3 { margin-bottom: 17px; font-size: 21px; }
.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.work-group:first-child .photo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.work-group:first-child .work-photo:first-child { grid-column: span 2; aspect-ratio: 2.08; }
.work-photo { min-width: 0; aspect-ratio: 1.38; padding: 0; overflow: clip; border: 0; background: #292929; cursor: zoom-in; transition: opacity 180ms ease, transform 240ms var(--ease-out); }
.work-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 650ms var(--ease-out); }
.work-photo:hover img, .work-photo:focus-visible img { transform: scale(1.045); }
.work-photo:active { transform: scale(.98); }

.scopes-section, .profile-section, .registrations-section, .contact-section { padding: 112px var(--margin); }
.section-heading, .profile-heading { margin-bottom: 42px; display: flex; align-items: end; justify-content: space-between; gap: 34px; }
.section-heading p, .profile-heading p { max-width: 42ch; color: var(--muted); }
.scope-tabs { display: flex; gap: 8px; }
.scope-tabs button { min-width: 136px; min-height: 48px; padding: 10px 18px; border: 0; background: var(--surface); cursor: pointer; transition: background-color 180ms ease, color 180ms ease; }
.scope-tabs button[aria-selected="true"] { background: var(--dark); color: var(--light); }
.scope-tabs button:hover:not([aria-selected="true"]) { background: #d8d5cd; }
.scope-panel { margin-top: 32px; }
.scope-list { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; list-style: none; }
.scope-list li { min-height: 140px; padding: 24px; background: var(--surface); }
.scope-list li:nth-child(3n) { background: #ddd9d0; }
.scope-list h3 { margin: 0 0 10px; }
.scope-list p { color: var(--muted); }
.residential-panel { min-height: 230px; padding: 30px; display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 30px; background: var(--surface); }
.residential-panel h3 { max-width: 16ch; font-size: 22px; }
.residential-panel div { display: grid; gap: 15px; }
.residential-panel p { max-width: 50ch; }

.profile-section { background: var(--surface); }
.profile-facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(36px, 8vw, 120px); }
.profile-facts > div { min-height: 82px; padding: 15px 0; display: grid; grid-template-columns: minmax(145px, .7fr) minmax(0, 1.3fr); align-items: start; gap: 16px; }
.profile-facts dt { color: var(--muted); }
.profile-facts dd { margin: 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.profile-facts a { text-decoration-thickness: 1px; }

.registrations-section { display: grid; grid-template-columns: minmax(230px, .72fr) minmax(0, 1.28fr); gap: 9%; background: var(--dark); color: var(--light); }
.registration-intro h2 { margin-bottom: 22px; }
.registration-intro p { margin-bottom: 19px; color: #d3d0c9; }
.registration-intro a { color: var(--light); }
.registration-content { display: grid; gap: 36px; }
.registration-group h3, .hdb-registration h3 { margin-bottom: 14px; }
.registration-group table { width: 100%; border-collapse: collapse; text-align: left; font-variant-numeric: tabular-nums; }
.registration-group th, .registration-group td { padding: 13px 12px; vertical-align: top; }
.registration-group th { font-weight: 600; text-align: left; color: #e2dfd8; }
.registration-group th:first-child, .registration-group td:first-child { padding-left: 0; }
.registration-group tbody tr:nth-child(even) { background: #222323; }
.hdb-registration { padding-top: 5px; }
.hdb-registration p + p { margin-top: 7px; }

.contact-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, .75fr) 220px; align-items: start; gap: 44px; }
.contact-copy h2 { margin-bottom: 22px; }
.contact-copy > p { max-width: 40ch; color: var(--muted); }
.contact-phone { display: inline-block; margin-top: 25px; font-size: clamp(1.7rem, 3vw, 2.7rem); text-decoration-thickness: 1px; }
.contact-phone:hover { color: var(--accent); }
.contact-section address { display: grid; gap: 5px; font-style: normal; line-height: 1.5; }
.contact-section address a { margin-top: 12px; }
.contact-photo { width: 220px; height: 220px; margin: 0; overflow: clip; }
.contact-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; animation: photo-drift 14s ease-in-out infinite alternate; }

.site-footer { padding: 42px var(--margin) 28px; display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 16px 30px; background: var(--surface); }
.footer-name { grid-column: 1 / -1; width: fit-content; font-size: 18px; white-space: nowrap; text-decoration: none; }
.site-footer p { max-width: 48ch; color: var(--muted); }
.site-footer > span { grid-column: 1 / -1; font-size: 14px; color: var(--muted); }

.photo-viewer { width: min(94vw, 1200px); max-width: none; max-height: 94svh; padding: 18px; border: 0; background: var(--dark); color: var(--light); }
.photo-viewer::backdrop { background: rgba(0, 0, 0, .92); }
.viewer-toolbar, .viewer-controls { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.viewer-toolbar p { max-width: none; }
.photo-viewer button { min-height: 44px; padding: 8px 12px; border: 0; background: #252525; color: var(--light); cursor: pointer; }
.photo-viewer button:hover { background: var(--accent); }
.photo-viewer figure { margin: 14px 0; display: grid; justify-items: center; gap: 10px; }
.photo-viewer figure img { max-width: 100%; max-height: 76svh; object-fit: contain; }
.photo-viewer figcaption, .viewer-controls span { color: #e1e1df; }

@media (prefers-reduced-motion: no-preference) {
  .js .title-line [data-line] { transform: translateY(105%); animation: title-rise 850ms var(--ease-out) forwards; animation-delay: calc(140ms + var(--line-index, 0) * 90ms); }
  .js .title-line:nth-child(2) [data-line] { --line-index: 1; }
  .js .title-line:nth-child(3) [data-line] { --line-index: 2; }
  .js [data-reveal] { transform: translateY(14px); transition: transform 650ms var(--ease-out); }
  .js [data-reveal].is-in { transform: none; }
  .contact-photo img { animation-duration: 18s; }
}
@keyframes title-rise { to { transform: none; } }
@keyframes photo-drift { from { transform: scale(1); } to { transform: scale(1.08); } }

@media (max-width: 960px) {
  .site-header nav { gap: 11px; }
  .site-header nav a { font-size: 14px; white-space: nowrap; }
  .nav-call { padding-inline: 11px; }
  .opening { grid-template-columns: minmax(0, 1fr) minmax(300px, .8fr); gap: 38px; }
  .opening-media, .opening-media img { min-height: 350px; }
  .work-group:first-child .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .work-group:first-child .work-photo:first-child { grid-column: span 2; }
  .registrations-section { grid-template-columns: 1fr; gap: 42px; }
  .contact-section { grid-template-columns: minmax(0, 1fr) minmax(220px, .75fr) 150px; gap: 24px; }
  .contact-photo { width: 150px; height: 150px; }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 70px; }
  .site-header { min-height: 68px; padding-block: 8px; }
  .brand { gap: 8px; }
  .brand img { width: 42px; height: 36px; }
  .wordmark { font-size: 14px; }
  .wordmark span { font-size: 12px; }
  .menu-toggle { display: inline-flex; align-items: center; }
  .site-header nav { display: none; position: absolute; z-index: 10; top: 68px; left: 0; right: 0; padding: 12px var(--margin) 22px; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); }
  .site-header nav.is-open { display: flex; }
  .site-header nav a { padding: 11px 0; font-size: 16px; }
  .site-header nav .nav-call { margin-top: 8px; padding: 12px 14px; text-align: center; }
  .opening { min-height: 0; padding-block: 54px 52px; grid-template-columns: 1fr; gap: 38px; }
  h1 { font-size: clamp(3.5rem, 16vw, 5.8rem); }
  .opening h1 { margin-bottom: 20px; }
  .opening-lead { max-width: 100%; font-size: 16px; }
  .opening-media, .opening-media img { min-height: 280px; }
  .opening-media figcaption { font-size: 11px; }
  .work-register { padding-top: 38px; padding-bottom: 76px; }
  .work-intro { margin-bottom: 36px; display: grid; gap: 14px; }
  .work-groups { gap: 48px; }
  .photo-grid, .work-group:first-child .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .work-group:first-child .work-photo:first-child { grid-column: span 2; aspect-ratio: 1.7; }
  .work-photo { aspect-ratio: 1.18; }
  .scopes-section, .profile-section, .registrations-section, .contact-section { padding-block: 76px; }
  .section-heading, .profile-heading { margin-bottom: 30px; display: grid; gap: 14px; }
  h2 { font-size: 42px; }
  .scope-tabs button { flex: 1; min-width: 0; }
  .scope-list { grid-template-columns: 1fr; gap: 7px; }
  .scope-list li { min-height: 0; padding: 21px 18px; }
  .residential-panel { padding: 23px 18px; grid-template-columns: 1fr; gap: 18px; }
  .profile-facts { grid-template-columns: 1fr; }
  .profile-facts > div { min-height: 0; padding: 13px 0; grid-template-columns: minmax(118px, .8fr) minmax(0, 1.2fr); gap: 12px; }
  .registration-content { gap: 30px; }
  .registration-group table, .registration-group tbody, .registration-group tr, .registration-group td { display: block; width: 100%; }
  .registration-group thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .registration-group tbody tr { padding: 8px 12px; }
  .registration-group td { padding: 7px 0; display: grid; grid-template-columns: minmax(108px, .7fr) minmax(0, 1.3fr); gap: 10px; }
  .registration-group td:first-child { padding-left: 0; }
  .registration-group td::before { content: attr(data-label); color: #e1e1df; }
  .contact-section { grid-template-columns: 1fr; gap: 30px; }
  .contact-photo { width: 100%; height: 220px; }
  .site-footer { grid-template-columns: 1fr; align-items: start; gap: 12px; }
  .site-footer > span { grid-column: auto; }
  .photo-viewer { width: 100vw; max-height: 100svh; padding: 12px; }
  .photo-viewer figure img { max-height: 78svh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Current page composition */
.site-header nav a.is-active { color: var(--accent); font-weight: 700; }

.opening {
  position: relative;
  min-height: calc(100svh - 82px);
  display: flex;
  align-items: center;
  overflow: clip;
  grid-template-columns: none;
}
.opening-media { position: absolute; inset: 0; z-index: 0; min-height: 0; }
.opening-media img { width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: center 44%; filter: brightness(.58); }
.hero-slideshow img { position: absolute; inset: 0; opacity: 0; transition: opacity 1800ms ease; }
.hero-slideshow img.is-active { opacity: 1; }
.opening-media::after { content: ""; position: absolute; inset: 0; background: rgba(18, 19, 19, .36); }
.opening-media figcaption { z-index: 1; }
.opening-copy { position: relative; z-index: 1; }
.opening h1 { max-width: none; }
.opening h1 { width: fit-content; overflow: visible; }
.opening .title-line { overflow: visible; }
.opening .title-line [data-line] { white-space: nowrap; }
.opening .title-line-construction [data-line] { font-size: .92em; }
.opening-lead { color: var(--light); }
.opening-about { max-width: 54ch; margin: 22px 0 0; color: #e4e1da; font-size: 15px; line-height: 1.65; }

.work-section { background: var(--bg); }
.scope-layout { display: grid; grid-template-columns: minmax(250px, .62fr) minmax(0, 1.38fr); gap: clamp(38px, 8vw, 120px); align-items: start; }
.scope-copy { padding-top: 12px; }
.scope-copy h3 { margin: 0 0 14px; font-size: clamp(1.8rem, 3vw, 2.8rem); }
.scope-copy p { color: var(--muted); }
.scope-project-link { display: inline-flex; gap: 24px; align-items: center; margin-top: 28px; padding-bottom: 7px; color: var(--ink); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--accent); }
.scope-project-link:hover { color: var(--accent); }
.scope-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.scope-item { min-height: 142px; padding: 22px; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; border: 0; text-align: left; background: var(--surface); cursor: pointer; transition: background-color 180ms ease, color 180ms ease, transform 180ms var(--ease-out); }
.scope-item:nth-child(3n) { background: #ddd9d0; }
.scope-item:hover, .scope-item:focus-visible, .scope-item.is-active { background: var(--dark); color: var(--light); transform: translateY(-3px); }
.scope-item span:first-child { display: grid; gap: 10px; }
.scope-item strong { font-family: "Libre Baskerville", Georgia, serif; font-size: 20px; font-style: normal; }
.scope-item small { max-width: 34ch; color: var(--muted); font-size: 14px; line-height: 1.45; }
.scope-item:hover small, .scope-item:focus-visible small, .scope-item.is-active small { color: #d3d0c9; }
.projects-section .work-group[hidden] { display: none !important; }
#project-status { min-height: 1.55em; }

.about-credentials { margin-top: 72px; padding: 34px; display: grid; grid-template-columns: minmax(220px, .72fr) minmax(0, 1.28fr); gap: 9%; background: var(--dark); color: var(--light); }
.about-credentials-intro h3 { margin: 0 0 14px; font-family: "Libre Baskerville", Georgia, serif; font-size: 30px; font-style: normal; }
.about-credentials-intro p { margin-bottom: 18px; color: #d3d0c9; }
.about-credentials-intro a { color: var(--light); }
.about-credentials .registration-content { gap: 32px; }

.contact-section { grid-template-columns: minmax(0, 1fr) minmax(220px, .72fr) minmax(260px, .86fr); }
.contact-location { display: grid; gap: 22px; }
.map-frame { min-height: 210px; aspect-ratio: 1.45; overflow: hidden; background: #d8d5cd; }
.map-frame iframe { width: 100%; height: 100%; min-height: 210px; border: 0; }
.contact-form { display: grid; gap: 8px; padding: 24px; background: var(--surface); }
.contact-form h3 { margin: 0 0 7px; font-family: "Libre Baskerville", Georgia, serif; font-size: 26px; font-style: normal; }
.contact-form label { margin-top: 8px; font-size: 13px; color: var(--muted); }
.contact-form input, .contact-form textarea { width: 100%; padding: 11px 12px; border: 0; border-radius: 0; background: var(--light); color: var(--ink); font: inherit; }
.contact-form textarea { resize: vertical; }
.contact-form .primary-action { width: fit-content; margin-top: 12px; border: 0; cursor: pointer; }
.contact-status { min-height: 1.4em; color: var(--muted); font-size: 13px; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 16px; font-size: 14px; }
.footer-legal a { color: var(--muted); text-underline-offset: .18em; }
.footer-legal a:hover { color: var(--accent); }

@media (max-width: 960px) {
  .scope-layout { grid-template-columns: 1fr; gap: 32px; }
  .scope-copy { padding-top: 0; }
  .about-credentials { grid-template-columns: 1fr; gap: 36px; }
  .contact-section { grid-template-columns: minmax(0, 1fr) minmax(220px, .75fr) minmax(230px, .8fr); }
}

@media (max-width: 720px) {
  .opening { min-height: calc(100svh - 68px); align-items: end; padding-block: 58px 62px; }
  .opening-media img { object-position: 58% center; }
  .opening-copy { max-width: 100%; }
  .scope-list { grid-template-columns: 1fr; }
  .scope-item { min-height: 0; padding: 20px 18px; }
  .about-credentials { margin-top: 54px; padding: 22px 18px; }
  .about-credentials-intro h3 { font-size: 25px; }
  .contact-section { grid-template-columns: 1fr; }
  .contact-form { padding: 20px 18px; }
  .contact-location { gap: 20px; }
  .map-frame, .map-frame iframe { min-height: 230px; }
  .footer-legal { justify-content: flex-start; }
}

/* About-first flow and independent work carousel */
.about-intro { display: grid; grid-template-columns: minmax(0, .9fr) minmax(280px, 1.1fr); gap: clamp(40px, 9vw, 150px); align-items: end; }
.about-intro h2 { margin: 0; }
.about-intro > div { display: grid; gap: 18px; max-width: 56ch; }
.about-lead { max-width: 28ch; font-size: clamp(1.35rem, 2.4vw, 2.1rem); line-height: 1.2; letter-spacing: -.03em; color: var(--ink); }
.about-intro > div > p:last-child { color: var(--muted); }
.about-section .profile-facts { margin-top: 76px; }
.work-layout { display: grid; grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr); gap: clamp(42px, 8vw, 120px); align-items: start; }
.scope-carousel { position: sticky; top: 106px; }
.carousel-frame { position: relative; aspect-ratio: 1.02; overflow: clip; background: #272727; }
.carousel-slide { display: none; position: relative; height: 100%; margin: 0; }
.carousel-slide.is-active { display: block; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-slide figcaption { position: absolute; right: 0; bottom: 0; padding: 10px 13px; background: var(--dark); color: var(--light); font-size: 12px; }
.carousel-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 13px; color: var(--muted); font-size: 13px; }
.carousel-controls button { padding: 0; border: 0; background: transparent; color: var(--ink); cursor: pointer; text-decoration: underline; text-underline-offset: .18em; }
.carousel-controls button:hover { color: var(--accent); }
.scope-details .scope-tabs { margin-bottom: 28px; }
.scope-details .scope-panel { margin-top: 0; }
.scope-details .scope-copy { margin-bottom: 28px; }
.scope-details .scope-copy h3 { max-width: 12ch; }
.scope-item.is-active { background: var(--dark); color: var(--light); transform: translateY(-3px); }
.scope-item.is-active small { color: #d3d0c9; }
.project-group { gap: 18px; }
.project-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
.project-heading > div { display: flex; align-items: baseline; gap: 18px; }
.project-heading h3 { margin: 0; }
.project-heading p { max-width: 42ch; margin: 0; color: var(--muted); font-size: 14px; }
.section-link, .project-more { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); font-weight: 700; text-decoration: none; white-space: nowrap; }
.section-link:hover, .project-more:hover { color: var(--light); }
.project-more { font-size: 14px; }
.project-carousel-viewport { overflow-x: hidden; scroll-behavior: smooth; scrollbar-width: none; }
.project-carousel-viewport::-webkit-scrollbar { display: none; }
.project-carousel-track { display: flex; gap: 10px; }
.project-carousel .work-photo { flex: 0 0 calc((100% - 20px) / 3); aspect-ratio: 1.38; }
.project-carousel-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 13px; color: #d3d0c9; font-size: 13px; }
.project-carousel-controls button { padding: 0; border: 0; background: transparent; color: var(--light); cursor: pointer; text-decoration: underline; text-underline-offset: .18em; }
.project-carousel-controls button:hover { color: var(--accent); }
.scope-gallery, .project-detail-dialog { width: min(94vw, 1000px); max-width: none; max-height: 94svh; padding: 18px; border: 0; background: var(--dark); color: var(--light); }
.scope-gallery::backdrop, .project-detail-dialog::backdrop { background: rgba(0, 0, 0, .92); }
.scope-gallery button, .project-detail-dialog button { min-height: 44px; padding: 8px 12px; border: 0; background: #252525; color: var(--light); cursor: pointer; }
.scope-gallery button:hover, .project-detail-dialog button:hover { background: var(--accent); }
.scope-gallery figure { margin: 14px 0; display: grid; justify-items: center; gap: 10px; }
.scope-gallery figure img { width: min(100%, 720px); max-height: 62svh; object-fit: contain; }
.scope-gallery figcaption { color: #e1e1df; }
.scope-gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; }
.scope-gallery-thumbs button { flex: 0 0 74px; min-height: 58px; padding: 0; overflow: hidden; border: 2px solid transparent; background: #252525; }
.scope-gallery-thumbs button.is-active { border-color: var(--accent); }
.scope-gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.project-detail-dialog { width: min(92vw, 620px); }
.project-detail-content { padding: 48px 24px 24px; }
.project-detail-content h2 { max-width: none; margin: 0 0 18px; color: var(--light); }
.project-detail-content p:not(.eyebrow) { color: #d3d0c9; }
.project-detail-content .primary-action { margin-top: 28px; }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

.projects-page { min-height: 70vh; padding: 112px var(--margin); background: var(--bg); }
.projects-page-intro { max-width: 760px; margin-bottom: 58px; }
.projects-page-intro h1 { max-width: none; margin-bottom: 20px; }
.projects-page-intro p { color: var(--muted); }
.project-page-card { padding: 28px 0 64px; border-top: 1px solid #d0ccc2; }
.project-page-card h2 { max-width: none; margin-bottom: 12px; }
.project-page-card p { color: var(--muted); }
.project-page-card .project-page-images { margin-top: 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.project-page-card .project-page-images img { width: 100%; aspect-ratio: 1.35; object-fit: cover; }
.legal-page { max-width: 920px; min-height: 70vh; margin: 0 auto; padding: 112px var(--margin); }
.legal-page h1 { max-width: none; margin: 8px 0 14px; font-size: clamp(3.4rem, 7vw, 7rem); }
.legal-updated { color: var(--muted); font-size: 14px; }
.legal-section { max-width: 70ch; margin-top: 52px; }
.legal-section h2 { max-width: none; margin-bottom: 14px; font-size: clamp(1.75rem, 3vw, 2.5rem); }
.legal-section p + p { margin-top: 14px; }
.legal-section a { color: var(--accent-dark); }
.legal-note { max-width: 70ch; margin-top: 64px; padding: 18px 20px; border-left: 3px solid var(--accent); background: var(--surface); color: var(--muted); font-size: 14px; }

@media (max-width: 960px) {
  .about-intro { grid-template-columns: minmax(0, 1fr) minmax(280px, .9fr); gap: 42px; }
  .work-layout { grid-template-columns: minmax(220px, .65fr) minmax(0, 1.35fr); gap: 38px; }
}

@media (max-width: 720px) {
  .about-intro { grid-template-columns: 1fr; gap: 22px; align-items: start; }
  .about-section .profile-facts { margin-top: 52px; }
  .work-layout { grid-template-columns: 1fr; gap: 38px; }
  .scope-carousel { position: static; }
  .carousel-frame { aspect-ratio: 1.15; }
  .scope-details .scope-tabs { margin-bottom: 24px; }
  .opening-about { margin-top: 18px; font-size: 14px; }
  .opening h1 { font-size: clamp(3rem, 14.2vw, 5.8rem); }
  .project-heading { display: grid; gap: 8px; }
  .project-heading > div { justify-content: space-between; }
  .project-carousel .work-photo { flex-basis: calc((100% - 7px) / 2); }
  .project-carousel-track { gap: 7px; }
  .project-detail-content { padding: 36px 12px 12px; }
  .projects-page { padding-block: 76px; }
  .projects-page-intro h1 { font-size: 52px; }
  .project-page-card .project-page-images { grid-template-columns: 1fr 1fr; gap: 7px; }
  .legal-page { padding-block: 76px; }
  .legal-page h1 { font-size: 52px; }
}

/* Type and language refinements */
body { font-family: "Libre Baskerville", "YRDZST Medium", Georgia, serif; font-size: clamp(15px, 1vw, 17px); line-height: 1.6; }
h1, h2, h3, .wordmark, .footer-name { font-family: "Libre Baskerville", "YRDZST Medium", Georgia, serif; }
h1 { font-size: clamp(3.5rem, 7vw, 7.6rem); line-height: .9; }
h2 { font-size: clamp(2.6rem, 4.8vw, 5rem); line-height: .98; }
.site-header nav a { padding: 10px 13px; border: 1px solid transparent; border-radius: 9px; transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease; }
.site-header nav a.is-active { background: var(--dark); border-color: var(--dark); color: var(--light); font-weight: 700; }
.site-header nav a:not(.nav-call):hover { background: var(--surface); color: var(--ink); }
.site-header nav a.is-active:hover { background: var(--accent); border-color: var(--accent); color: var(--light); }
.language-toggle { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid #d0ccc2; border-radius: 999px; background: var(--surface); }
.language-toggle button { min-width: 36px; padding: 5px 8px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 700; letter-spacing: .03em; }
.language-toggle button[aria-pressed="true"] { background: var(--dark); color: var(--light); }
.language-toggle button:hover { color: var(--ink); }
.wordmark-cn { margin-top: 3px !important; color: var(--accent); font-family: "YRDZST Medium", "Libre Baskerville", Georgia, serif !important; font-size: 11px !important; font-style: normal !important; font-weight: 500 !important; letter-spacing: .02em; }
.lang-zh body { font-family: "YRDZST Medium", "Libre Baskerville", Georgia, serif; }
.lang-zh h1, .lang-zh h2, .lang-zh h3, .lang-zh .wordmark, .lang-zh .footer-name { font-family: "YRDZST Medium", "Libre Baskerville", Georgia, serif; font-style: normal; letter-spacing: .01em; }
.lang-zh .title-line-meta [data-line] { font-family: "Libre Baskerville", Georgia, serif; letter-spacing: .04em; }
.lang-zh .scope-item strong { font-size: 19px; line-height: 1.3; }
.lang-zh .title-line-construction [data-line] { font-size: .92em; }
.opening { justify-content: center; align-items: center; }
.opening-copy { width: min(100%, 960px); max-width: 960px; text-align: center; }
.opening h1 { margin-inline: auto; }
.opening .title-line-chinese [data-line] { font-family: "YRDZST Medium", "Libre Baskerville", Georgia, serif; font-size: .7em; font-style: normal; letter-spacing: .08em; line-height: 1.2; }
.opening .title-line-english [data-line] { font-size: .82em; white-space: nowrap; }
.opening .title-line-construction [data-line] { font-size: .82em; white-space: nowrap; }
.opening-lead, .opening-about { margin-left: auto; margin-right: auto; }
.opening-actions { justify-content: center; }

@media (max-width: 720px) {
  .site-header nav a { display: block; padding: 11px 13px; font-size: 16px; }
  .site-header nav a.is-active { background: var(--dark); color: var(--light); }
  .language-toggle { margin-left: auto; margin-right: 10px; }
  .wordmark-cn { font-size: 10px !important; }
  .lang-zh h1 { font-size: clamp(2.9rem, 13vw, 5.2rem); line-height: 1.05; }
  .lang-zh h2 { font-size: 40px; line-height: 1.15; }
  .opening .title-line-english [data-line] { font-size: .58em; }
  .opening .title-line-construction [data-line] { font-size: .58em; }
  .opening .title-line-chinese [data-line] { font-size: .62em; }
}

/* White, black and copper palette */
.opening-media, .work-photo, .carousel-frame { background: #151515; }
.opening-lead, .opening-about { color: #ffffff; }
.opening-link:hover { color: var(--accent); }
.opening h1 .title-line-chinese [data-line], .opening h1 .title-line-english [data-line], .opening h1 .title-line-construction [data-line] { color: var(--accent); }
.opening h1 .title-line-english [data-line], .opening h1 .title-line-construction [data-line] { color: #ffffff; }
.opening h1 .title-highlight { display: inline-block; padding: .06em .14em .1em; background: var(--accent); color: #ffffff; }
.work-intro p, .registration-intro p, .about-credentials-intro p, .scope-item:hover small, .scope-item:focus-visible small, .scope-item.is-active small, .project-detail-content p:not(.eyebrow), .project-carousel-controls { color: #e5e5e5; }
.scope-tabs button:hover:not([aria-selected="true"]) { background: #e6e6e6; }
.scope-list li:nth-child(3n), .scope-item:nth-child(3n) { background: #e9e9e7; }
.map-frame { background: #eeeeec; }
.project-page-card { border-top-color: #d8d8d6; }
.language-toggle { border-color: #d5d5d2; }
.photo-viewer button, .scope-gallery button, .project-detail-dialog button, .scope-gallery-thumbs button { background: #202020; }

/* Fixed bilingual header brand and single-button language switch */
.wordmark { display: flex; flex-direction: column; gap: 2px; color: var(--ink); font-family: "Libre Baskerville", Georgia, serif !important; font-size: 13px; font-style: normal !important; font-weight: 700; letter-spacing: 0 !important; line-height: 1.15; }
.wordmark span, .wordmark .wordmark-cn, .wordmark .wordmark-en { display: block; margin-top: 0 !important; color: inherit; font-family: inherit !important; font-size: inherit !important; font-style: normal !important; font-weight: inherit !important; letter-spacing: inherit !important; line-height: inherit; white-space: nowrap; }
.wordmark-cn { color: var(--accent) !important; }
.language-toggle { min-width: 88px; display: inline-flex; align-items: center; justify-content: center; gap: 1px; padding: 3px; border: 1px solid #d5d5d2; border-radius: 999px; background: var(--surface); color: var(--muted); cursor: pointer; }
.language-toggle > span { display: inline-flex; min-width: 34px; justify-content: center; padding: 5px 7px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .03em; line-height: 1; }
.language-toggle > span { white-space: nowrap; }
.language-toggle > span[aria-hidden="true"] { min-width: auto; padding-inline: 1px; color: var(--muted); }
.language-toggle > span.is-active { background: var(--accent); color: var(--light); }
.language-toggle:hover { border-color: var(--accent); }
.site-header nav a.is-active { background: var(--accent); border-color: var(--accent); color: var(--light); font-weight: 700; }
.site-header nav a.is-active:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--light); }
.scope-tabs button[aria-selected="true"] { background: var(--accent); color: var(--light); }
.scope-tabs button[aria-selected="true"]:hover { background: var(--accent-dark); color: var(--light); }
.scope-tabs button { border-radius: 999px; }
.scope-item:hover, .scope-item:focus-visible, .scope-item.is-active { background: var(--dark); color: var(--light); }
.scope-item:hover small, .scope-item:focus-visible small, .scope-item.is-active small { color: #f1f1ef; }
.menu-toggle { gap: 7px; white-space: nowrap; }
.menu-icon { display: inline-flex; flex: 0 0 18px; flex-direction: column; gap: 3px; width: 18px; }
.menu-icon span { display: block; width: 18px; height: 2px; background: currentColor; }

@media (max-width: 720px) {
  .site-header { min-height: 72px; padding: 8px 14px; gap: 10px; }
  .brand { min-width: 0; gap: 7px; }
  .brand img { width: 40px; height: 34px; }
  .wordmark { font-size: 10px; }
  .language-toggle { min-width: 83px; margin-right: 0; }
  .language-toggle > span { min-width: 31px; padding-inline: 5px; }
  .menu-toggle { flex: 0 0 auto; padding: 8px 0 8px 6px; }
  .site-header nav a.is-active { background: var(--accent); border-color: var(--accent); color: var(--light); }
}

@media (max-width: 360px) {
  .site-header { padding-inline: 10px; gap: 6px; }
  .brand { gap: 5px; }
  .brand img { width: 34px; height: 31px; }
  .wordmark { font-size: 8px; }
  .language-toggle { min-width: 76px; }
  .language-toggle > span { min-width: 28px; padding-inline: 3px; font-size: 11px; }
  .menu-toggle { padding-left: 4px; }
  .menu-toggle > span:last-child { display: none; }
  .opening-lead { font-size: 14px; }
}

@media (max-width: 720px) {
  .map-frame { width: 100%; height: 230px; aspect-ratio: auto; }
}

@media (min-width: 721px) {
  html { scroll-snap-type: y proximity; }
  main > section, .opening, .site-footer { scroll-snap-align: start; scroll-snap-stop: normal; }
}

@media (max-width: 720px) {
  .scope-carousel { display: none; }
  .work-layout { display: block; }
  .scope-item { position: relative; isolation: isolate; min-height: 154px; overflow: hidden; background-color: #151515; background-position: center; background-size: cover; color: var(--light); }
  .scope-item::before { content: ""; position: absolute; z-index: -1; inset: 0; background: rgba(0, 0, 0, .52); }
  .scope-item > * { position: relative; z-index: 1; }
  .scope-item small, .scope-item:hover small, .scope-item:focus-visible small, .scope-item.is-active small { color: #f1f1ef; }
  .scope-item[data-gallery="design-build"] { background-image: url("/images/placeholders/scopes/design-build.png"); }
  .scope-item[data-gallery="wet-works"] { background-image: url("/images/placeholders/scopes/wet-works-masonry.png"); }
  .scope-item[data-gallery="metal-roofing"] { background-image: url("/images/placeholders/scopes/metal-works-roofing.png"); }
  .scope-item[data-gallery="carpentry"] { background-image: url("/images/placeholders/scopes/carpentry-furniture.png"); }
  .scope-item[data-gallery="toilet"] { background-image: url("/images/placeholders/scopes/toilet-renovation.png"); }
  .scope-item[data-gallery="electrical"] { background-image: url("/images/placeholders/scopes/electrical-fire-protection.png"); }
  .scope-item[data-gallery="demolition"] { background-image: url("/images/placeholders/scopes/demolition-mixed-works.png"); }
  .scope-item[data-gallery="fitted-kitchens"] { background-image: url("/images/placeholders/scopes/residential-joinery.png"); }
  .scope-item[data-gallery="cabinetry"] { background-image: url("/images/placeholders/scopes/residential-cabinetry.png"); }
  .scope-item[data-gallery="fitted-spaces"] { background-image: url("/images/placeholders/scopes/residential-fitted-spaces.png"); }
}

.contact-person { display: grid; gap: 4px; margin-bottom: 22px; padding: 18px; background: var(--surface); }
.contact-person strong { font-family: "Libre Baskerville", Georgia, serif; font-size: 22px; font-style: normal; }
.contact-person a { color: var(--ink); text-underline-offset: .18em; }
.contact-person a:hover { color: var(--accent); }
.contact-person span { color: var(--muted); }
.contact-email { display: grid; gap: 5px; margin-top: 18px; }
.contact-email a { color: var(--ink); text-underline-offset: .18em; }
.contact-email a:hover { color: var(--accent); }
.footer-contact { display: grid; gap: 3px; font-size: 13px; line-height: 1.4; }
.footer-contact a { color: var(--ink); text-underline-offset: .18em; }
.footer-contact a:hover { color: var(--accent); }
.footer-contact span { color: var(--muted); }

/* Refined footer bar */
.site-footer { grid-template-columns: minmax(0, 1.25fr) minmax(220px, .9fr) auto; align-items: start; gap: 42px; padding: 58px var(--margin) 24px; background: var(--dark); color: var(--light); }
.footer-brand { display: grid; align-content: start; gap: 14px; }
.site-footer .footer-name { grid-column: auto; width: auto; display: grid; gap: 4px; color: var(--light); font-size: clamp(1.6rem, 2.5vw, 2.5rem); line-height: .95; white-space: normal; }
.site-footer .footer-name span { display: block; }
.site-footer .footer-name span:last-child { color: var(--accent); font-family: "Libre Baskerville", Georgia, serif; font-size: .48em; font-style: normal; letter-spacing: .04em; line-height: 1.2; }
.site-footer p { color: #e5e5e5; }
.site-footer .footer-contact { align-content: start; gap: 7px; padding-left: 20px; border-left: 3px solid var(--accent); color: #d5d5d1; }
.site-footer .footer-contact a { color: var(--light); }
.site-footer .footer-contact a:hover { color: var(--accent); }
.site-footer .footer-contact .footer-phone { margin-bottom: 3px; font-size: 1.15rem; font-weight: 700; text-decoration: none; }
.site-footer .footer-contact span { color: #cfcfca; }
.site-footer .footer-contact > a, .site-footer .footer-contact > .footer-detail { display: flex; align-items: flex-start; gap: 9px; }
.site-footer .footer-contact .footer-icon { width: 16px; height: 16px; flex: 0 0 16px; margin-top: .12em; color: var(--accent); fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.site-footer .footer-contact > a > span, .site-footer .footer-contact > .footer-detail > span { color: inherit; }
.site-footer .footer-legal { display: grid; align-content: start; justify-content: start; gap: 9px; font-size: 14px; }
.site-footer .footer-legal a { color: var(--light); text-decoration: none; }
.site-footer .footer-legal a:hover { color: var(--accent); }
.footer-bottom { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 12px; padding-top: 18px; color: #a9a9a5; font-size: 12px; }
.footer-bottom > span:last-child { color: var(--accent); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

@media (max-width: 720px) {
  .site-footer { grid-template-columns: 1fr; gap: 28px; padding: 46px var(--margin) 24px; }
  .site-footer .footer-contact { padding: 16px 0 0; border-top: 3px solid var(--accent); border-left: 0; }
  .site-footer .footer-legal { justify-content: start; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 6px; margin-top: 0; }
}

/* Keep language and navigation geometry stable across translations */
.language-toggle { position: relative; width: 88px; min-width: 88px; flex: 0 0 88px; display: grid; grid-template-columns: 34px 12px 34px; align-items: center; justify-content: center; gap: 0; height: 34px; padding: 3px; }
.language-toggle::before { content: ""; position: absolute; z-index: 0; top: 3px; left: 4px; width: 34px; height: 26px; border-radius: 999px; background: var(--accent); transition: transform 220ms var(--ease-out); }
.lang-zh .language-toggle::before { transform: translateX(46px); }
.language-toggle > span { position: relative; z-index: 1; min-width: 0; width: auto; height: 26px; align-items: center; padding: 5px 0; background: transparent !important; color: var(--muted) !important; }
.language-toggle > span.is-active { color: var(--light) !important; }
.language-toggle > span[aria-hidden="true"] { width: 12px; padding-inline: 0; color: var(--muted) !important; }
.site-header nav { gap: clamp(11px, 2vw, 30px); }
.site-header nav a:not(.nav-call) { width: 128px; min-width: 128px; justify-content: center; text-align: center; white-space: nowrap; }
.site-header nav a:nth-child(3):not(.nav-call) { width: 160px; min-width: 160px; }

@media (max-width: 960px) and (min-width: 721px) {
  .site-header nav a:not(.nav-call) { width: 108px; min-width: 108px; }
  .site-header nav a:nth-child(3):not(.nav-call) { width: 150px; min-width: 150px; }
}

/* Final type system: Libre Baskerville for Latin, YRDZST Medium for Chinese. */
body, button, input, textarea, select {
  font-family: "Libre Baskerville", Georgia, serif;
}
h1, h2, h3, p, a, button, label, input, textarea, select,
.wordmark, .site-header nav a, .footer-name, .footer-contact, .footer-legal {
  font-family: "Libre Baskerville", Georgia, serif;
}
.wordmark-cn,
.site-footer .footer-name span:last-child,
.opening .title-line-chinese [data-line],
.lang-zh h1, .lang-zh h2, .lang-zh h3,
.lang-zh [data-i18n] {
  font-family: "YRDZST Medium", "Libre Baskerville", Georgia, serif;
}
.wordmark .wordmark-cn {
  font-family: "YRDZST Medium", "Libre Baskerville", Georgia, serif !important;
}
.lang-zh .opening .title-line-english [data-line],
.lang-zh .opening .title-line-construction [data-line] {
  font-family: "Libre Baskerville", Georgia, serif;
}

/* Keep the wider Baskerville wordforms comfortable in the compact header. */
@media (max-width: 720px) {
  .site-header { gap: 6px; padding-inline: 12px; }
  .brand { gap: 6px; min-width: 0; }
  .brand img { width: 36px; height: 32px; }
  .wordmark { font-size: 9px; }
  .menu-toggle { gap: 5px; padding-left: 2px; font-size: 13px; }
}

@media (max-width: 960px) and (min-width: 721px) {
  .site-header { min-height: 72px; padding-block: 8px; }
  .menu-toggle { display: inline-flex; align-items: center; }
  .site-header nav { display: none; position: absolute; z-index: 10; top: 72px; left: 0; right: 0; padding: 12px var(--margin) 22px; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); }
  .site-header nav.is-open { display: flex; }
  .site-header nav a:not(.nav-call), .site-header nav a:nth-child(3):not(.nav-call) { width: auto; min-width: 0; justify-content: flex-start; text-align: left; }
  .site-header nav a { padding: 11px 0; font-size: 16px; }
}

@media (max-width: 720px) {
  .language-toggle { width: 83px; min-width: 83px; flex-basis: 83px; grid-template-columns: 31px 11px 31px; }
  .language-toggle::before { left: 3px; width: 31px; }
  .lang-zh .language-toggle::before { transform: translateX(42px); }
  .site-header nav { gap: 0; }
  .site-header nav a:not(.nav-call) { width: auto; min-width: 0; justify-content: flex-start; text-align: left; white-space: normal; }
  .site-header nav a:nth-child(3):not(.nav-call) { width: auto; min-width: 0; }
}

@media (max-width: 360px) {
  .language-toggle { width: 76px; min-width: 76px; flex-basis: 76px; grid-template-columns: 28px 10px 28px; }
  .language-toggle::before { left: 3px; width: 28px; }
  .lang-zh .language-toggle::before { transform: translateX(38px); }
}

/* Contact section: a deliberate, connected closing composition. */
.contact-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  background: var(--bg);
  color: var(--ink);
}
.contact-heading {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(260px, .72fr);
  align-items: end;
  gap: 42px;
}
.contact-heading h2 { color: var(--ink); }
.contact-heading p { max-width: 42ch; margin: 0 0 5px; color: var(--muted); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}
.contact-card {
  min-width: 0;
  padding: 26px;
  background: var(--surface);
  color: var(--ink);
}
.contact-details {
  display: flex;
  min-height: 0;
  flex-direction: column;
  justify-content: center;
  gap: 64px;
  border-top: 5px solid var(--accent);
}
.contact-card-block + .contact-card-block { margin-top: 0; }
.contact-card-label {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}
.contact-phone {
  display: inline-block;
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.55rem, 2.1vw, 2.35rem);
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
}
.contact-phone:hover { color: var(--accent); }
.contact-email { display: grid; gap: 9px; margin: 0; }
.contact-email a { color: var(--ink); font-size: 14px; text-underline-offset: .18em; overflow-wrap: anywhere; }
.contact-email a:hover { color: var(--accent); }
.contact-location { display: flex; flex-direction: column; gap: 16px; }
.contact-location .contact-card-label { margin-bottom: 0; }
.contact-location address { display: grid; gap: 4px; margin-top: auto; font-style: normal; line-height: 1.5; }
.contact-location address a { margin-top: 10px; color: var(--ink); font-size: 14px; font-weight: 700; text-underline-offset: .18em; }
.contact-location address a:hover { color: var(--accent); }
.contact-location .map-frame { width: 100%; min-height: 218px; aspect-ratio: 1.48; }
.contact-location .map-frame iframe { min-height: 218px; }
.contact-form.contact-card {
  display: grid;
  gap: 8px;
  border-top: 5px solid var(--accent);
  background: #171717;
  color: var(--light);
}
.contact-form-heading { display: grid; gap: 8px; margin-bottom: 10px; }
.contact-form h3 { margin: 0; color: var(--light); font-size: 26px; }
.contact-form-heading p { margin: 0; color: #c9c9c5; font-size: 13px; line-height: 1.5; }
.contact-form label { margin-top: 6px; color: #c9c9c5; font-size: 13px; }
.contact-form input, .contact-form textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #4a4a48;
  border-radius: 0;
  background: #292929;
  color: var(--light);
  font: inherit;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 1px; }
.contact-form textarea { min-height: 108px; resize: vertical; }
.contact-form .primary-action { width: 100%; justify-content: center; margin-top: 10px; border: 0; cursor: pointer; }
.contact-form .primary-action:hover { background: var(--light); color: var(--ink); }
.contact-status { min-height: 1.4em; margin: 0; color: #c9c9c5; font-size: 13px; }

@media (max-width: 960px) and (min-width: 721px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .contact-form.contact-card { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .contact-section { gap: 32px; }
  .contact-heading { grid-template-columns: 1fr; gap: 14px; }
  .contact-heading p { margin: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 10px; }
  .contact-card { padding: 22px 18px; }
  .contact-details { min-height: 0; gap: 42px; }
  .contact-card-block + .contact-card-block { margin-top: 0; }
  .contact-phone { font-size: clamp(1.45rem, 8vw, 2rem); }
  .contact-location .map-frame, .contact-location .map-frame iframe { min-height: 230px; }
}

/* Cookie consent */
.cookie-banner[hidden] { display: none; }
.cookie-banner {
  position: fixed;
  z-index: 30;
  right: max(16px, var(--margin));
  bottom: 16px;
  left: max(16px, var(--margin));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 18px 20px;
  border: 1px solid #3d3d3b;
  background: var(--dark);
  color: var(--light);
}
.cookie-banner-copy { display: grid; gap: 5px; }
.cookie-banner-copy p { max-width: 76ch; margin: 0; color: #e5e5e2; font-size: 13px; line-height: 1.45; }
.cookie-banner-copy p:first-child { color: var(--light); font-size: 15px; }
.cookie-banner-copy strong { font-weight: 700; }
.cookie-banner-copy a { color: var(--light); text-underline-offset: .18em; }
.cookie-banner-copy a:hover { color: var(--accent); }
.cookie-banner-actions { display: flex; flex: 0 0 auto; gap: 8px; }
.cookie-banner-actions button { min-width: 88px; padding: 10px 13px; border: 1px solid var(--accent); border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 700; }
.cookie-decline { background: transparent; color: var(--light); }
.cookie-accept { background: var(--accent); color: var(--light); }
.cookie-banner-actions button:hover { background: var(--light); border-color: var(--light); color: var(--ink); }
.cookie-banner [data-cookie-zh] { display: none; }
.lang-zh .cookie-banner [data-cookie-en] { display: none; }
.lang-zh .cookie-banner [data-cookie-zh] { display: inline; }
.lang-zh .cookie-banner p[data-cookie-zh] { display: block; }

@media (max-width: 720px) {
  .cookie-banner { align-items: stretch; flex-direction: column; gap: 14px; padding: 16px; }
  .cookie-banner-actions { width: 100%; }
  .cookie-banner-actions button { flex: 1; }
}
