/* ==========================================================================
   Cơ Khí Gia Bảo — website styles
   Palette: steel ink, workshop paper, safety gold, marine teal
   ========================================================================== */

:root {
  --ink: #0a161a;
  --ink-2: #0f2429;
  --ink-3: #163238;
  --paper: #f3f0e8;
  --paper-2: #e8e3d6;
  --white: #ffffff;
  --gold: #e9b02e;
  --gold-dark: #c6921c;
  --teal: #1d7480;
  --muted: #5b696c;
  --muted-light: #9fb0b3;
  --line: rgba(10, 22, 26, 0.15);
  --line-dark: rgba(255, 255, 255, 0.15);
  --f-display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --f-body: "Be Vietnam Pro", "Segoe UI", system-ui, -apple-system, sans-serif;
  --container: 1240px;
  --gutter: clamp(20px, 4.5vw, 48px);
  --header-h: 82px;
  --ease: cubic-bezier(0.22, 0.68, 0.22, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0 0 1.15em;
}

p:last-child {
  margin-bottom: 0;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.005em;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--gold);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  transform: translateY(-150%);
  transition: transform 0.2s;
}

.skip-link:focus {
  transform: none;
}

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 26px;
  border: 1px solid transparent;
  background: none;
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.25s var(--ease),
    color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.btn svg {
  width: 15px;
  height: 15px;
  flex: none;
  transition: transform 0.25s var(--ease);
}

.btn:hover svg {
  transform: translateX(4px);
}

.btn--gold {
  background: var(--gold);
  color: var(--ink);
}

.btn--gold:hover {
  background: #f6c448;
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn--dark {
  background: var(--ink);
  color: var(--white);
}

.btn--dark:hover {
  background: var(--ink-3);
}

.btn--outline {
  border-color: var(--line);
  color: var(--ink);
}

.btn--outline:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.link-arrow svg {
  width: 14px;
  height: 14px;
  transition: transform 0.25s var(--ease);
}

.link-arrow:hover svg {
  transform: translateX(4px);
}

/* ---------------------------------------------------------------- header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  color: var(--white);
  transition:
    background 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(8, 20, 24, 0.94);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  transition: height 0.3s var(--ease);
}

.is-scrolled .header-inner {
  height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.02em;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
}

.brand-text strong {
  font-family: var(--f-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.brand-text small {
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.62;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 32px);
}

.site-nav a {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.2s;
}

.site-nav a::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--white);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-cta {
  flex: none;
  padding: 12px 20px;
  font-size: 11px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: none;
  color: var(--white);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  margin: 4.5px auto;
  background: currentColor;
  transition:
    transform 0.25s,
    opacity 0.25s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ------------------------------------------------------------ mobile nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  background: var(--ink);
  color: var(--white);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.3s var(--ease),
    visibility 0.3s;
}

.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-nav a.mobile-link {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--f-display);
  font-size: clamp(26px, 7vw, 38px);
  font-weight: 500;
  text-transform: uppercase;
}

.mobile-nav a.mobile-link span {
  font-family: var(--f-body);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.mobile-nav a.mobile-link[aria-current="page"] {
  color: var(--gold);
}

.mobile-nav .mobile-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 32px;
  font-size: 13px;
  color: var(--muted-light);
}

.mobile-nav .mobile-contact a:hover {
  color: var(--gold);
}

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(660px, 100svh, 1080px);
  padding-top: 130px;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
}

.hero-media::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 17, 21, 0.72) 0%, rgba(7, 17, 21, 0.12) 36%, rgba(7, 17, 21, 0.88) 100%),
    linear-gradient(90deg, rgba(7, 17, 21, 0.72) 0%, rgba(7, 17, 21, 0) 65%);
  content: "";
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-topline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(18px, 3vw, 30px);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-topline::before {
  width: 46px;
  height: 1px;
  background: var(--gold);
  content: "";
}

.hero h1 {
  max-width: 15ch;
  font-size: clamp(2.9rem, 7.4vw, 6.4rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero-sub {
  max-width: 54ch;
  margin: 22px 0 0;
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.8);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(28px, 4vw, 40px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(40px, 6vw, 74px);
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.stat {
  padding: 24px 26px 28px 0;
}

.stat + .stat {
  padding-left: clamp(18px, 2.4vw, 32px);
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.stat-num {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--f-display);
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  font-weight: 500;
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.stat-num sup {
  margin-left: 3px;
  font-size: 0.45em;
  top: -0.7em;
  position: relative;
  letter-spacing: 0.02em;
}

.stat-label {
  margin-top: 9px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.scroll-hint {
  position: absolute;
  right: var(--gutter);
  bottom: 28px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  writing-mode: vertical-rl;
}

.scroll-hint::after {
  width: 1px;
  height: 54px;
  background: linear-gradient(var(--gold), transparent);
  content: "";
}

/* ---------------------------------------------------------------- ticker */
.ticker {
  overflow: hidden;
  padding: 13px 0;
  background: var(--gold);
  color: var(--ink);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 42s linear infinite;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-group {
  display: flex;
  align-items: center;
  flex: none;
}

.ticker-group span {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  padding-right: 26px;
  font-family: var(--f-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker-group span::after {
  width: 5px;
  height: 5px;
  background: var(--ink);
  border-radius: 50%;
  content: "";
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

/* --------------------------------------------------------------- sections */
.section {
  padding: clamp(68px, 9vw, 120px) 0;
}

.section--paper {
  background: var(--paper);
}

.section--white {
  background: #fbfaf6;
}

.section--paper-2 {
  background: var(--paper-2);
}

.section--dark {
  background: var(--ink);
  color: var(--white);
}

.section--dark .lead,
.section--dark .muted {
  color: rgba(255, 255, 255, 0.66);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(38px, 5vw, 64px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--teal);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 34px;
  height: 1px;
  background: currentColor;
  content: "";
}

.section--dark .eyebrow {
  color: var(--gold);
}

.section-title {
  max-width: 20ch;
  text-wrap: balance;
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  font-weight: 600;
  line-height: 1.02;
}

.section-title em {
  font-style: normal;
  color: var(--gold-dark);
}

.section--dark .section-title em {
  color: var(--gold);
}

.lead {
  max-width: 54ch;
  font-size: clamp(0.98rem, 1.1vw, 1.05rem);
  line-height: 1.8;
  color: var(--muted);
}

.section-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(34px, 4vw, 48px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.section--dark .section-more {
  border-color: var(--line-dark);
}

.muted {
  color: var(--muted);
}

/* ------------------------------------------------------------------ about */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(34px, 6vw, 84px);
  align-items: center;
}

.media-frame {
  position: relative;
}

.media-frame::before {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--gold);
  content: "";
  pointer-events: none;
}

.media-frame img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.92);
}

.media-badge {
  position: absolute;
  right: -14px;
  bottom: -26px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px 24px;
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.media-badge strong {
  font-family: var(--f-display);
  font-size: 2.2rem;
  font-weight: 500;
  line-height: 1;
  color: var(--gold);
}

.media-badge span {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-light);
}

.about-copy .section-title {
  margin-bottom: 22px;
}

.check-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin: 26px 0 32px;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.check-list li::before {
  position: absolute;
  top: 5px;
  left: 0;
  width: 15px;
  height: 8px;
  border-bottom: 2px solid var(--gold-dark);
  border-left: 2px solid var(--gold-dark);
  content: "";
  transform: rotate(-45deg);
}

.section--dark .check-list li::before {
  border-color: var(--gold);
}

.about-sign {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.sign-name strong {
  display: block;
  font-family: var(--f-display);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.sign-name span {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ------------------------------------------------------------- stat strip */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-dark);
}

.metric {
  padding: 30px 26px 4px 0;
}

.metric + .metric {
  padding-left: clamp(18px, 2.4vw, 32px);
  border-left: 1px solid var(--line-dark);
}

.metric-num {
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  font-weight: 500;
  line-height: 1;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}

.metric-num em {
  font-style: normal;
  color: var(--gold);
}

.metric p {
  margin: 10px 0 0;
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

/* --------------------------------------------------------------- services */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  display: flex;
  flex-direction: column;
  background: #fbfaf6;
  border: 1px solid var(--line);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(10, 22, 26, 0.12);
}

.service-media {
  position: relative;
  overflow: hidden;
}

.service-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.service-card:hover .service-media img {
  transform: scale(1.05);
}

.service-index {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 17px;
  font-weight: 600;
}

.service-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px 24px 26px;
}

.service-body h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
  font-weight: 500;
}

.service-body p {
  flex: 1;
  font-size: 0.89rem;
  line-height: 1.75;
  color: var(--muted);
}

.service-body .link-arrow {
  margin-top: 20px;
  color: var(--ink);
}

.service-card:hover .link-arrow {
  color: var(--gold-dark);
}

/* -------------------------------------------------------------- workshops */
.workshop-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
}

.workshop-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 420px;
  overflow: hidden;
  color: var(--white);
}

.workshop-card--tall {
  min-height: 100%;
}

.workshop-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.workshop-card:hover img {
  transform: scale(1.04);
}

.workshop-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 16, 20, 0) 30%, rgba(6, 16, 20, 0.88) 100%);
  content: "";
}

.workshop-info {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: clamp(22px, 3vw, 36px);
}

.workshop-info span {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 10px;
  background: var(--gold);
  color: var(--ink);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.workshop-info h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 500;
}

.workshop-info p {
  margin: 8px 0 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
}

.workshop-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 30px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.workshop-facts div {
  display: flex;
  flex-direction: column;
}

.workshop-facts strong {
  font-family: var(--f-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--gold);
  line-height: 1.1;
}

.workshop-facts small {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

/* --------------------------------------------------------------- projects */
.project-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.project-card {
  position: relative;
  grid-column: span 4;
  display: flex;
  align-items: flex-end;
  min-height: 300px;
  overflow: hidden;
  color: var(--white);
}

.project-card--wide {
  grid-column: span 8;
}

.project-card--tall {
  min-height: 480px;
}

.project-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 16, 20, 0.02) 30%, rgba(6, 16, 20, 0.86) 100%);
  content: "";
}

.project-info {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 24px;
}

.project-info small {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.project-info h3 {
  margin-top: 7px;
  font-size: 1.3rem;
  font-weight: 500;
}

.project-card .link-arrow {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.7);
}

/* ------------------------------------------------------------------ certs */
.cert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.cert-card {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  min-height: 330px;
  background: #fbfaf6;
  border: 1px solid var(--line);
}

.cert-media {
  position: relative;
  overflow: hidden;
  background: #e6e2d8;
}

.cert-media img {
  width: 100%;
  height: 100%;
  padding: 10px;
  object-fit: contain;
  background: var(--white);
  transition: transform 0.5s var(--ease);
}

.cert-media:hover img {
  transform: scale(1.04);
}

.cert-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(22px, 3vw, 34px);
}

.cert-body .cert-kicker {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
}

.cert-body h3 {
  margin: 10px 0 12px;
  font-size: 1.45rem;
  font-weight: 500;
}

.cert-body p {
  font-size: 0.87rem;
  line-height: 1.7;
  color: var(--muted);
}

.cert-meta {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.cert-meta strong {
  display: block;
  font-family: var(--f-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.cert-body .link-arrow {
  margin-top: 18px;
  align-self: flex-start;
}

/* -------------------------------------------------------------------- cta */
.cta {
  position: relative;
  padding: clamp(64px, 9vw, 110px) 0;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}

.cta-bg {
  position: absolute;
  inset: 0;
}

.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
}

.cta::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 17, 21, 0.95) 0%, rgba(7, 17, 21, 0.6) 70%, rgba(7, 17, 21, 0.3) 100%);
  content: "";
}

.cta .container {
  position: relative;
  z-index: 1;
}

.cta .lead {
  color: rgba(255, 255, 255, 0.72);
}

.cta h2 {
  max-width: 22ch;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  font-weight: 600;
}

.cta h2 em {
  font-style: normal;
  color: var(--gold);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.cta-note {
  margin-top: 18px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------------------------------------------------------------- footer */
.footer {
  padding-top: clamp(56px, 7vw, 84px);
  background: #071215;
  color: rgba(255, 255, 255, 0.62);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr 1.25fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(40px, 5vw, 64px);
}

.footer-brand .brand {
  margin-bottom: 20px;
  color: var(--white);
}

.footer-brand p {
  max-width: 34ch;
  font-size: 0.86rem;
  line-height: 1.8;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.footer-badges span {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer h3 {
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--white);
}

.footer-links li + li {
  margin-top: 9px;
}

.footer-links a {
  font-size: 0.86rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-contact li {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.86rem;
  line-height: 1.65;
}

.footer-contact svg {
  width: 15px;
  height: 15px;
  flex: none;
  margin-top: 4px;
  color: var(--gold);
}

.footer-contact a:hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a:hover {
  color: var(--gold);
}

/* -------------------------------------------------------------- page hero */
.page-hero {
  position: relative;
  padding: clamp(140px, 17vw, 200px) 0 clamp(48px, 6vw, 76px);
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}

.page-hero-media {
  position: absolute;
  inset: 0;
}

.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
}

.page-hero-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 17, 21, 0.72) 0%, rgba(7, 17, 21, 0.86) 100%);
  content: "";
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumb a:hover {
  color: var(--gold);
}

.breadcrumb li + li::before {
  margin-right: 8px;
  color: var(--gold);
  content: "/";
}

.breadcrumb li {
  display: inline-flex;
}

.page-hero h1 {
  max-width: 17ch;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  font-weight: 600;
  line-height: 0.98;
}

.page-hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.page-hero .lead {
  max-width: 62ch;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.72);
}

.page-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 46px;
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.page-hero-meta div {
  display: flex;
  flex-direction: column;
}

.page-hero-meta strong {
  font-family: var(--f-display);
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--gold);
  line-height: 1.1;
}

.page-hero-meta span {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------------------------------------------------------------- history */
.timeline {
  margin-top: 10px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: clamp(20px, 4vw, 56px);
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.timeline-item:last-child {
  border-bottom: 1px solid var(--line);
}

.timeline-year {
  font-family: var(--f-display);
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  font-weight: 500;
  line-height: 1;
  color: var(--gold-dark);
}

.timeline-body h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
  font-weight: 500;
}

.timeline-body p {
  max-width: 68ch;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--muted);
}

.timeline-ton {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 6px;
  font-family: var(--f-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
}

.timeline-ton span {
  font-family: var(--f-body);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ------------------------------------------------------------------ cards */
.info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.info-card {
  padding: clamp(24px, 3vw, 34px);
  background: #fbfaf6;
  border: 1px solid var(--line);
}

.info-card .card-num {
  font-family: var(--f-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--gold-dark);
}

.info-card h3 {
  margin: 14px 0 10px;
  font-size: 1.35rem;
  font-weight: 500;
}

.info-card p {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--muted);
}

.info-card ul {
  margin-top: 14px;
}

.info-card li {
  position: relative;
  padding-left: 18px;
  font-size: 0.87rem;
  line-height: 1.7;
  color: var(--muted);
}

.info-card li::before {
  position: absolute;
  top: 10px;
  left: 0;
  width: 6px;
  height: 1px;
  background: var(--gold-dark);
  content: "";
}

/* --------------------------------------------------------------- services */
.service-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: center;
  padding: clamp(40px, 6vw, 64px) 0;
  border-top: 1px solid var(--line);
}

.service-detail:last-of-type {
  border-bottom: 1px solid var(--line);
}

.service-detail:nth-child(even) .service-detail-media {
  order: 2;
}

.service-detail-media {
  position: relative;
  overflow: hidden;
}

.service-detail-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-detail-num {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
}

.service-detail-copy .eyebrow {
  margin-bottom: 14px;
}

.service-detail-copy h2 {
  margin-bottom: 16px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 600;
}

.service-detail-copy p {
  font-size: 0.93rem;
  line-height: 1.8;
  color: var(--muted);
}

.service-detail-copy ul {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
}

.service-detail-copy li {
  position: relative;
  padding-left: 20px;
  font-size: 0.85rem;
  line-height: 1.6;
}

.service-detail-copy li::before {
  position: absolute;
  top: 2px;
  left: 0;
  color: var(--gold-dark);
  content: "+";
  font-weight: 600;
}

/* ----------------------------------------------------------------- fields */
.field-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.field-pills span {
  padding: 10px 16px;
  border: 1px solid var(--line);
  background: #fbfaf6;
  font-size: 12px;
  letter-spacing: 0.02em;
}

/* ---------------------------------------------------------------- process */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.process-step {
  background: var(--paper);
  padding: clamp(22px, 3vw, 32px);
}

.process-step span {
  font-family: var(--f-display);
  font-size: 1.9rem;
  font-weight: 500;
  color: var(--gold-dark);
  line-height: 1;
}

.process-step h3 {
  margin: 16px 0 8px;
  font-size: 1.05rem;
  font-weight: 500;
}

.process-step p {
  font-size: 0.84rem;
  line-height: 1.7;
  color: var(--muted);
}

/* ----------------------------------------------------------------- gallery */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}

.filter-btn {
  padding: 9px 16px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}

.filter-btn:hover {
  border-color: var(--ink);
}

.filter-btn.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.gallery-item {
  grid-column: span 4;
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--ink);
  border: 0;
  padding: 0;
  cursor: zoom-in;
  text-align: left;
}

.gallery-item--wide {
  grid-column: span 6;
}

.gallery-item--tall {
  grid-column: span 6;
}

.gallery-item[hidden] {
  display: none;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition:
    transform 0.7s var(--ease),
    opacity 0.4s;
}

.gallery-item--tall img {
  aspect-ratio: 3 / 2;
}

.gallery-item:hover img {
  transform: scale(1.05);
  opacity: 0.82;
}

.gallery-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 26px 18px 16px;
  background: linear-gradient(transparent, rgba(6, 16, 20, 0.85));
  color: var(--white);
  font-size: 12px;
  line-height: 1.4;
}

.gallery-caption small {
  display: block;
  margin-bottom: 3px;
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------------------------------------------------------------- lightbox */
.lightbox {
  max-width: min(1180px, 94vw);
  max-height: 92vh;
  padding: 0;
  border: 0;
  background: #081418;
  color: var(--white);
}

.lightbox::backdrop {
  background: rgba(4, 10, 12, 0.92);
}

.lightbox img {
  max-width: 100%;
  max-height: 76vh;
  width: auto;
  margin: 0 auto;
  object-fit: contain;
}

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
}

.lightbox-caption {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
}

.lightbox-controls {
  display: flex;
  gap: 6px;
}

.lightbox-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: none;
  color: var(--white);
  cursor: pointer;
}

.lightbox-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.lightbox-btn svg {
  width: 16px;
  height: 16px;
}

/* ---------------------------------------------------------------- contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 14px;
}

.contact-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: #fbfaf6;
  border: 1px solid var(--line);
}

.contact-item svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 2px;
  color: var(--gold-dark);
}

.contact-item h3 {
  margin-bottom: 4px;
  font-family: var(--f-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-item p,
.contact-item a {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink);
}

.contact-item a:hover {
  color: var(--gold-dark);
}

.form-card {
  padding: clamp(24px, 4vw, 40px);
  background: #fbfaf6;
  border: 1px solid var(--line);
}

.form-card h2 {
  margin-bottom: 8px;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 600;
}

.form-card > p {
  margin-bottom: 24px;
  font-size: 0.88rem;
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 0.92rem;
  line-height: 1.4;
  transition: border-color 0.2s;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold-dark);
  outline: none;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
}

.form-note {
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
}

.form-status {
  margin-top: 14px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--teal);
}

.map-wrap {
  margin-top: clamp(40px, 6vw, 64px);
  border: 1px solid var(--line);
  background: #dcd8cb;
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: clamp(340px, 42vw, 480px);
  border: 0;
  filter: grayscale(0.2) contrast(1.02);
}

/* ----------------------------------------------------------------- tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
}

.banner {
  width: 100%;
  height: clamp(240px, 34vw, 430px);
  object-fit: cover;
  margin-bottom: clamp(24px, 3vw, 36px);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fbfaf6;
  font-size: 0.9rem;
}

caption {
  text-align: left;
}

th,
td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

thead th {
  background: var(--ink);
  color: var(--white);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

tbody tr:hover {
  background: rgba(233, 176, 46, 0.08);
}

tbody tr:last-child td {
  border-bottom: 0;
}

td:first-child,
th:first-child {
  width: 64px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

td:last-child,
th:last-child {
  width: 110px;
  text-align: right;
  font-weight: 600;
}

.table-group th {
  background: var(--paper-2);
  color: var(--ink);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-align: left;
}

.equipment-note {
  margin-top: 18px;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--muted);
}

.split--start {
  align-items: start;
}

/* ------------------------------------------------------------------- 404 */
.error-page {
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 40px var(--gutter);
  background: var(--ink);
  color: var(--white);
  text-align: center;
}

.error-page .brand {
  justify-content: center;
  margin-bottom: 40px;
}

.error-page h1 {
  font-size: clamp(5rem, 20vw, 12rem);
  line-height: 0.9;
  color: var(--gold);
}

.error-page p {
  margin: 18px 0 30px;
  color: rgba(255, 255, 255, 0.65);
}

/* -------------------------------------------------------------- utilities */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.section--flush {
  padding-top: 0;
}

/* ------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .site-nav {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .metric:nth-child(3),
  .metric:nth-child(4) {
    margin-top: 20px;
    border-top: 1px solid var(--line-dark);
  }

  .project-card {
    grid-column: span 6;
  }

  .project-card--wide {
    grid-column: span 12;
  }

  .gallery-item,
  .gallery-item--tall {
    grid-column: span 6;
  }
}

@media (max-width: 900px) {
  .section-head {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 18px;
  }

  .section-title {
    max-width: 24ch;
  }

  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-copy {
    order: -1;
  }

  .workshop-grid {
    grid-template-columns: 1fr;
  }

  .workshop-card,
  .workshop-card--tall {
    min-height: 340px;
  }

  .cert-grid {
    grid-template-columns: 1fr;
  }

  .info-cards {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-detail {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .service-detail:nth-child(even) .service-detail-media {
    order: 0;
  }

  .timeline-item {
    grid-template-columns: 110px 1fr;
  }

  .page-hero h1 {
    max-width: 20ch;
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 72px;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .page-hero-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .page-hero-meta strong {
    font-size: 1.25rem;
  }

  .stat {
    padding: 18px 16px 18px 0;
  }

  .stat:nth-child(3) {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }

  .stat:nth-child(4) {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }

  .scroll-hint {
    display: none;
  }

  .hero-topline {
    gap: 10px;
    font-size: 9px;
    letter-spacing: 0.14em;
  }

  .hero-topline::before {
    width: 26px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .check-list {
    grid-template-columns: 1fr;
  }

  .media-badge {
    right: 12px;
    bottom: -18px;
  }

  .project-grid {
    display: flex;
    flex-direction: column;
  }

  .project-card,
  .project-card--wide,
  .project-card--tall {
    min-height: 300px;
  }

  .cert-card {
    grid-template-columns: 1fr;
  }

  .cert-media {
    max-height: 300px;
  }

  .gallery {
    gap: 12px;
  }

  .gallery-item,
  .gallery-item--wide,
  .gallery-item--tall {
    grid-column: span 12;
  }

  .gallery-item img {
    aspect-ratio: 16 / 10;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .metric-grid {
    grid-template-columns: 1fr 1fr;
  }

  .metric {
    padding-right: 12px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 22px 0;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .service-detail-copy ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .brand-text strong {
    font-size: 17px;
  }

  .brand-text small {
    letter-spacing: 0.16em;
  }

  .hero h1 {
    font-size: 2.55rem;
  }

  .btn {
    width: 100%;
  }

  .hero-actions .btn,
  .cta-actions .btn {
    width: 100%;
  }

  .form-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-media img {
    transform: none;
  }
}

/* ------------------------------------------------------ CMS: news & posts */
.brand-logo {
  display: block;
  width: auto;
  height: 52px;
}

.brand-logo--footer {
  height: 46px;
}

.address-lines {
  white-space: pre-line;
}

.flash-stack {
  position: fixed;
  top: calc(var(--header-h) + 14px);
  right: 16px;
  z-index: 80;
  display: grid;
  gap: 8px;
  width: min(420px, calc(100vw - 32px));
}

.flash {
  padding: 12px 16px;
  margin: 0;
  background: var(--ink);
  color: var(--white);
  border-left: 3px solid var(--gold);
  font-size: 13px;
  box-shadow: 0 12px 30px rgba(4, 10, 12, 0.22);
}

.flash--error {
  border-left-color: #e05252;
}

.flash--success {
  border-left-color: #3fae74;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 22px;
}

.news-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
}

.news-card-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ink-2);
}

.news-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.news-card:hover .news-card-media img {
  transform: scale(1.04);
}

.news-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
}

.news-meta {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}

.news-card h2,
.news-card h3 {
  font-size: 1.2rem;
  line-height: 1.15;
}

.news-card h2 a,
.news-card h3 a {
  text-decoration: none;
}

.news-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.news-card .link-arrow {
  margin-top: auto;
}

.empty-state {
  padding: 30px 0;
  color: var(--muted);
}

.post-meta {
  margin-top: 16px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(26px, 5vw, 64px);
  align-items: start;
}

.post-body {
  max-width: 72ch;
  font-size: 16px;
  line-height: 1.8;
}

.post-body h2,
.post-body h3 {
  margin: 1.6em 0 0.6em;
}

.post-body p + p {
  margin-top: 1em;
}

.post-body ul,
.post-body ol {
  margin: 1em 0;
  padding-left: 1.2em;
}

.post-body a {
  color: var(--teal);
}

.post-aside {
  display: grid;
  gap: 16px;
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.post-aside h2 {
  font-size: 1.1rem;
  margin-top: 8px;
}

.post-related {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.post-related li span {
  display: block;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.post-related a {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}

@media (max-width: 960px) {
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .post-layout {
    grid-template-columns: 1fr;
  }

  .post-aside {
    padding: 24px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 620px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}
