
/* =========================================================================
   SHARED BASE — used by every page (reset, tokens, header, footer, buttons)
   ========================================================================= */
:root {
  --red: #c90000;
  --red-dark: #a40000;
  --ink: #1c2b34;
  --muted: #566670;
  --line: #dfe5e8;
  --soft: #f5f7f8;
  --dark: #12191d;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: #fff;
  color: var(--ink);
  font: 16px/1.65 Arial, Helvetica, sans-serif;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
}
.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}
h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: -.035em;
}
.eyebrow {
  display: block;
  margin-bottom: 16px;
  color: var(--red-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.button {
  display: inline-block;
  padding: 14px 22px;
  border: 0;
  background: var(--red);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.button:hover { background: var(--red-dark); }
.text-link {
  display: inline-block;
  margin-top: 12px;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--red);
  color: var(--red-dark);
  font-weight: 700;
}

/* HEADER (shared across every page) */
.site-header {
  position: relative;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo-window {
  position: relative;
  display: block;
  width: 360px;
  height: 54px;
  overflow: hidden;
  flex: none;
}
.logo-window img {
  position: absolute;
  top: -108px;
  left: -10px;
  width: 380px;
  max-width: none;
  height: auto;
}
.navigation {
  display: flex;
  align-items: center;
  gap: 23px;
  font-size: 14px;
  font-weight: 700;
}
.navigation a:hover,
.navigation a.current { color: var(--red); }
.contact-nav {
  padding: 11px 16px;
  border: 1px solid var(--red);
  color: var(--red-dark);
}
.contact-nav:hover,
.contact-nav.current {
  background: var(--red);
  color: #fff !important;
}
.menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

/* =========================================================================
   OUR SERVICES — hover/focus dropdown, as a frosted, see-through overlay
   that blends with whatever is behind it rather than a solid colour block.
   ========================================================================= */
.nav-item { position: relative; }
.services-dropdown {
  position: absolute;
  top: 100%;              /* flush against the trigger — no gap, no hover dead-zone */
  left: 0;                /* aligns with "Our Services", not centred over the whole nav */
  min-width: 300px;
  padding: 18px 10px 10px;  /* extra top padding stands in for the old visual gap */
  background: var(--red-dark);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 30;
}
.nav-item:hover .services-dropdown,
.nav-item:focus-within .services-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.services-dropdown a {
  display: block;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  white-space: normal;
  transition: background .15s ease, padding-left .15s ease;
}
.services-dropdown a:last-child { border-bottom: 0; }
.services-dropdown a:hover,
.services-dropdown a:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  padding-left: 20px;
}
@media (prefers-reduced-motion: reduce) {
  .services-dropdown { transition: none; }
  .services-dropdown a { transition: none; }
}

/* =========================================================================
   FOOTER — recoloured to match the logo red
   ========================================================================= */
footer {
  padding: 44px 0;
  background: linear-gradient(135deg, #c90000 0%, #a40000 100%);
  color: #ffe1e1;
  font-size: 13px;
}
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid #ffffff40;
}
.footer-logo {
  position: relative;
  display: block;
  width: 280px;
  height: 43px;
  overflow: hidden;
  flex: none;
}
.footer-logo img {
  position: absolute;
  top: -85px;
  left: -8px;
  width: 300px;
  max-width: none;
  height: auto;
  filter: brightness(0) invert(1);
}
.footer-brand > a:last-child {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding-bottom: 4px;
  border-bottom: 1px solid #ffffff80;
  transition: border-color .18s ease;
}
.footer-brand > a:last-child:hover { border-color: #fff; }
footer p { margin: 6px 0; }
footer a { margin-right: 20px; }
footer a:hover { color: #fff; }
.footer-links { margin-top: 18px; }
.footer-links a {
  padding-bottom: 4px;
  border-bottom: 1px solid #ffffff55;
  transition: border-color .18s ease;
}
.footer-links a:hover { border-color: #fff; }

/* Whole-page fade-in on load (each page is now a real, separate document) */
body { animation: pageIn .5s ease; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* SCROLL-REVEAL — elements fade/slide into place as they enter the viewport */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Hero entrance — headline pieces stagger in on first paint */
.hero-copy-inner > *, .page-hero-copy > *, .service-hero-copy > * {
  opacity: 0;
  transform: translateY(18px);
  animation: heroIn .7s ease forwards;
}
.hero-copy-inner > *:nth-child(1), .page-hero-copy > *:nth-child(1), .service-hero-copy > *:nth-child(1) { animation-delay: .05s; }
.hero-copy-inner > *:nth-child(2), .page-hero-copy > *:nth-child(2), .service-hero-copy > *:nth-child(2) { animation-delay: .18s; }
.hero-copy-inner > *:nth-child(3), .page-hero-copy > *:nth-child(3), .service-hero-copy > *:nth-child(3) { animation-delay: .31s; }
.hero-copy-inner > *:nth-child(4), .page-hero-copy > *:nth-child(4), .service-hero-copy > *:nth-child(4) { animation-delay: .44s; }
@keyframes heroIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* Header gains a soft shadow once the page scrolls */
.site-header { transition: box-shadow .25s ease; }
.site-header.is-scrolled { box-shadow: 0 8px 22px #00000014; }

/* =========================================================================
   BACK-TO-TOP — white rectangle with red arrow
   ========================================================================= */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  width: 54px;
  height: 42px;
  border: 0;
  border-radius: 0;                 /* rectangle, not round */
  background: #ffffff;
  color: var(--red);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px #00000026, 0 0 0 1px #00000012;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease,
              background .18s ease, color .18s ease, box-shadow .18s ease;
}
.back-to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover {
  background: var(--red);
  color: #ffffff;
  box-shadow: 0 8px 22px #c9000040, 0 0 0 1px #c9000040;
}

/* Lightbox for photo galleries */
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center;
  padding: 40px; background: #0c1418ea;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
}
.lightbox-overlay.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.lightbox-overlay img {
  max-width: min(1100px, 100%); max-height: 100%; width: auto;
  box-shadow: 0 25px 70px #00000080;
  transform: scale(.96); transition: transform .25s ease;
}
.lightbox-overlay.is-open img { transform: scale(1); }
.lightbox-close {
  position: absolute; top: 18px; right: 22px; width: 42px; height: 42px;
  border: 1px solid #ffffff55; background: transparent; color: #fff; font-size: 22px; cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
.lightbox-close:hover { background: #ffffff22; transform: rotate(90deg); }
.gallery-grid img, .photo-grid img { cursor: zoom-in; }

@media (prefers-reduced-motion: reduce) {
  body,
  .hero-copy-inner > *, .page-hero-copy > *, .service-hero-copy > * { animation: none; opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .back-to-top, .lightbox-overlay, .lightbox-overlay img, .lightbox-close { transition: none; }
}

@media (max-width: 1100px) {
  .navigation { gap: 14px; font-size: 13px; }
  .logo-window { width: 285px; height: 44px; }
  .logo-window img { width: 300px; top: -85px; left: -7px; }
}
@media (max-width: 980px) {
  .header-inner { min-height: 76px; }
  .menu-button { display: inline-flex; }
  .navigation {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 18px 24px;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 15px 25px #00000018;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform .22s ease, opacity .22s ease, visibility .22s;
  }
  .navigation.open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
  .navigation a {
    display: block;
    padding: 12px 3px;
    border-bottom: 1px solid var(--line);
    transition: padding-left .18s ease, color .18s ease;
  }
  .navigation.open a:hover { padding-left: 8px; }
  .navigation .contact-nav {
    margin-top: 12px;
    padding: 11px 16px;
    text-align: center;
    border: 1px solid var(--red);
  }

  /* On touch/mobile there's no hover, so the dropdown becomes a plain
     always-visible sub-list nested under "Our Services" in the menu. */
  .services-dropdown {
    position: static;
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    margin: 6px 0 10px;
    padding: 10px 12px;
    background: var(--red-dark);
    border: 0;
    border-radius: 2px;
    box-shadow: none;
  }
  .services-dropdown a {
    padding: 11px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff !important;
    font-weight: 600;
  }
  .services-dropdown a:last-child { border-bottom: 0; }
  .services-dropdown a:hover,
  .services-dropdown a:focus-visible {
    background: rgba(255, 255, 255, 0.16);
    padding-left: 14px;
    color: #ffffff !important;
  }
}
@media (max-width: 720px) {
  .container { width: min(100% - 36px, 1180px); }
}
@media (max-width: 490px) {
  .logo-window { width: 217px; height: 35px; }
  .logo-window img { width: 230px; top: -65px; left: -6px; }
  .header-inner { min-height: 69px; gap: 8px; }
  .menu-button { min-width: 64px; font-size: 14px; }
  .footer-logo { width: 230px; height: 36px; }
  .footer-logo img { width: 245px; top: -69px; left: -7px; }
  .footer-links a { display: inline-block; margin-bottom: 7px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* =========================================================================
   PAGE: HOME
   ========================================================================= */
@scope (#page-home) {
  h2 { margin: 0 0 25px; font-size: clamp(35px, 4vw, 53px); }
  .section { padding: 92px 0; }

  .hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: clamp(600px, 72vh, 780px);
    isolation: isolate;
    overflow: hidden;
    background: #172b37;
    color: #fff;
  }
  .hero-photo {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: #20323d url("https://images.unsplash.com/photo-1509391366360-2e959784a276?w=1600&q=85") center / cover no-repeat;
  }
  .hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    will-change: opacity;
    transform: translateZ(0);
    transition: opacity 1s ease;
  }
  .hero-video.is-active { opacity: 1; }
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(9,24,32,.88) 0%, rgba(9,24,32,.71) 38%, rgba(9,24,32,.31) 76%, rgba(9,24,32,.24) 100%);
    pointer-events: none;
  }
  .hero-copy { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 100px 0; }
  .hero-copy-inner { max-width: 780px; }
  .hero .eyebrow { color: #ffc2c2; }
  .hero h1 { margin: 0 0 25px; max-width: 760px; font-size: clamp(48px, 6.4vw, 82px); overflow-wrap: break-word; }
  .hero h1::after { content: ""; display: block; width: 64px; height: 4px; margin-top: 25px; background: var(--red); }
  .hero p { max-width: 630px; margin: 0 0 30px; color: #f0f4f5; font-size: clamp(18px, 1.7vw, 21px); line-height: 1.65; }
  @media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }

  .sectors { padding: 66px 0 72px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--soft); }
  .sectors-heading { display: flex; align-items: center; gap: 22px; margin-bottom: 27px; }
  .sectors-heading h2 { margin: 0; color: var(--red-dark); font-size: 14px; letter-spacing: .15em; text-transform: uppercase; }
  .sectors-heading::after { content: ""; height: 1px; flex: 1; background: #d5dfe3; }
  .sector-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .sector {
    display: flex; align-items: center; gap: 17px; min-width: 0; min-height: 82px;
    padding: 17px 21px; border: 1px solid var(--line); background: #fff;
    font-size: 15px; line-height: 1.4; font-weight: 600; overflow-wrap: anywhere;
  }
  .sector::before { content: ""; width: 7px; height: 7px; flex: none; background: var(--red); }
  .sector { transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
  .sector:hover { transform: translateY(-3px); border-color: var(--red); box-shadow: 0 8px 18px #0000000f; }

  .intro-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 95px; }
  .intro p { margin: 0 0 18px; color: var(--muted); font-size: 18px; }
  .intro-photo, .services-photo, .news-photo, .careers-photo { display: block; width: 100%; object-fit: cover; }
  .intro-photo { height: 270px; margin-top: 24px; }

  .photo-gallery { padding: 0 0 92px; }
  .gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
  .gallery-grid figure { position: relative; min-width: 0; margin: 0; overflow: hidden; background: #e2e7ea; }
  .gallery-grid img { display: block; width: 100%; height: 250px; object-fit: cover; transition: transform .4s ease; }
  .gallery-grid figure:hover img { transform: scale(1.06); }
  .gallery-grid figcaption {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 25px 16px 12px;
    background: linear-gradient(transparent, #13252dcb); color: #fff; font-weight: 700;
  }

  .services { background: var(--soft); border-top: 1px solid var(--line); }
  .services-heading { margin-bottom: 32px; }
  .services-heading h2 { margin-bottom: 0; }
  .services-photo { height: 285px; margin-bottom: 17px; }
  .service-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid #ccd5d9; border-left: 1px solid #ccd5d9; }
  .service {
    display: flex; flex-direction: column; justify-content: space-between; min-width: 0; min-height: 218px;
    padding: 28px 34px; border-right: 1px solid #ccd5d9; border-bottom: 1px solid #ccd5d9;
    background: #fff; transition: background .2s;
  }
  .service:hover { background: #fff8f8; }
  .service-number { color: var(--red-dark); font-size: 12px; font-weight: 800; letter-spacing: .14em; }
  .service h3 { max-width: 440px; margin: 16px 0 8px; font-size: 26px; }
  .service p { margin: 0; color: var(--muted); font-size: 15px; }
  .service-bottom { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
  .service-arrow { color: var(--red); font-size: 25px; line-height: 1; }

  .figures { padding: 50px 0; background: #263740; color: #fff; }
  .figure-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .figure { padding: 0 30px; border-right: 1px solid #ffffff45; }
  .figure:first-child { padding-left: 0; }
  .figure:last-child { border: 0; }
  .figure strong { display: block; font-size: clamp(40px, 4.5vw, 60px); line-height: 1.1; }
  .figure span { color: #d5dfe2; }

  .news-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 85px; align-items: center; }
  .news-photo { height: 230px; margin-top: 24px; }
  .news-card { padding: 36px 40px; border-left: 4px solid var(--red); background: var(--soft); }
  .news-card h3 { margin: 0 0 17px; font-size: clamp(24px, 2.5vw, 33px); }
  .news-card time { color: var(--muted); font-size: 14px; }

  .careers { background: var(--soft); border-top: 1px solid var(--line); }
  .two-column { display: grid; grid-template-columns: .85fr 1.15fr; gap: 95px; }
  .two-column p { margin: 0 0 15px; color: var(--muted); font-size: 17px; }
  .careers-photo { height: 230px; margin-top: 24px; }

  .contact-detail { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .contact-detail strong { display: block; color: var(--red-dark); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }

  @media (max-width: 1100px) {
    .hero-copy { padding: 60px 35px; }
    .intro-grid, .news-grid, .two-column { gap: 50px; }
  }
  @media (max-width: 980px) {
    .hero { min-height: 620px; }
    .hero-copy { width: min(1180px, calc(100% - 48px)); padding: 86px 0; }
    .sector-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .intro-grid, .news-grid, .two-column { grid-template-columns: 1fr 1.2fr; gap: 35px; }
    .service h3 { font-size: 23px; }
    .section { padding: 72px 0; }
  }
  @media (max-width: 720px) {
    .hero { min-height: 590px; }
    .hero::before { background: linear-gradient(90deg, rgba(9,24,32,.86), rgba(9,24,32,.55)); }
    .hero-copy { width: calc(100% - 36px); padding: 75px 0; }
    .hero h1 { font-size: clamp(38px, 9vw, 58px); }
    .hero p { font-size: 17px; }
    .intro-grid, .news-grid, .two-column { grid-template-columns: 1fr; gap: 20px; }
    .section { padding: 62px 0; }
    .intro-photo, .news-photo, .careers-photo { height: auto; aspect-ratio: 16 / 9; }
    .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gallery-grid img { height: 190px; }
    .gallery-grid figure:last-child { grid-column: 1 / -1; }
    .gallery-grid figure:last-child img { height: 220px; }
    .photo-gallery { padding-bottom: 62px; }
    .services-photo { height: auto; aspect-ratio: 16 / 7; }
    .service-list { grid-template-columns: 1fr; }
    .service { min-height: 175px; padding: 23px; }
    .figure { padding: 0 12px; }
    .figure strong { font-size: clamp(27px, 5vw, 42px); }
    .figure span { font-size: 13px; }
    .news-card { padding: 27px; }
  }
  @media (max-width: 490px) {
    .hero { min-height: 560px; }
    .hero-copy { padding-top: 70px; padding-bottom: 70px; }
    .sectors { padding: 42px 0 48px; }
    .sector-grid, .gallery-grid, .figure-grid { grid-template-columns: 1fr; }
    .sector { min-height: 62px; }
    .gallery-grid figure:last-child { grid-column: auto; }
    .gallery-grid img, .gallery-grid figure:last-child img { height: 215px; }
    .figures { padding: 37px 0; }
    .figure { padding: 14px 0; border-right: 0; border-bottom: 1px solid #ffffff45; }
    .figure:first-child { padding-top: 0; }
    .figure:last-child { padding-bottom: 0; border-bottom: 0; }
    .figure strong { font-size: 39px; }
    .figure span { font-size: 15px; }
    .service h3 { font-size: 22px; }
    .two-column p, .intro p { font-size: 16px; }
  }
}

/* =========================================================================
   PAGE: OUR SERVICES
   ========================================================================= */
@scope (#page-services) {
  .index-intro { padding: 48px 0 35px; border-bottom: 1px solid var(--line); }
  .index-intro h1 { margin: 0 0 12px; font-size: clamp(43px, 5vw, 66px); }
  .index-intro p { max-width: 700px; margin: 0; color: var(--muted); font-size: 18px; }

  .service-tabs { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 3; }
  .tabs-inner {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
    gap: 10px;
    padding-top: 16px;
    padding-bottom: 16px;
  }
  .service-tab {
    display: flex; align-items: center; justify-content: center; height: 100%;
    padding: 12px 10px; border: 1px solid var(--line);
    background: #fff; color: var(--ink); font: inherit; font-size: 13px; font-weight: 700;
    line-height: 1.3; text-align: center; cursor: pointer;
    transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
  }
  .service-tab:hover { border-color: var(--red); transform: translateY(-2px); box-shadow: 0 6px 14px #0000000f; }
  .service-tab.active { border-color: var(--red); background: var(--red); color: #fff; box-shadow: 0 6px 14px #c9000030; }

  .service-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 490px; }
  .service-hero-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-width: 0; padding: 66px max(42px, calc((100vw - 1180px) / 2)); }
  .service-number { display: block; margin-bottom: 15px; color: var(--red-dark); font-size: 12px; font-weight: 800; letter-spacing: .15em; }
  .service-hero h2 { max-width: 650px; margin: 0 0 20px; font-size: clamp(43px, 4.8vw, 66px); overflow-wrap: break-word; }
  .service-hero h2::after { content: ""; display: block; width: 64px; height: 4px; margin-top: 22px; background: var(--red); }
  .service-hero p { max-width: 540px; margin: 0 0 27px; color: var(--muted); font-size: 20px; }
  .hero-image { width: 100%; height: 100%; min-height: 400px; object-fit: cover; }

  .detail-section { padding: 89px 0 96px; background: var(--soft); border-top: 1px solid var(--line); }
  .detail-heading { max-width: 790px; margin-bottom: 34px; }
  .detail-heading h2 { margin: 0; font-size: clamp(34px, 3.5vw, 48px); }
  .detail-layout { display: grid; grid-template-columns: 1.3fr .85fr; gap: 19px; align-items: start; }
  .detail-panel { min-width: 0; padding: 31px 34px; border: 1px solid var(--line); background: #fff; }
  .detail-panel h3 { margin: 0 0 20px; font-size: 25px; }
  .detail-panel ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 0; padding: 0; list-style: none; }
  .detail-panel li { position: relative; min-width: 0; padding: 12px 0 12px 18px; border-bottom: 1px solid var(--line); font-size: 15px; }
  .detail-panel li::before { content: ""; position: absolute; top: 22px; left: 0; width: 6px; height: 6px; background: var(--red); }
  .secondary-panel ul { grid-template-columns: 1fr; }
  .detail-photo { width: 100%; height: 265px; margin-top: 19px; object-fit: cover; }

  .contact-strip { padding: 69px 0; background: #263740; color: #fff; }
  .contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
  .contact-strip .eyebrow { color: #ff9292; }
  .contact-strip h2 { max-width: 760px; margin: 0; font-size: clamp(30px, 3.3vw, 45px); }
  .contact-strip .button { flex: none; background: #fff; color: var(--red-dark); }
  .contact-strip .button:hover { background: #f3e8e8; }

  @media (max-width: 1100px) { .service-hero-copy { padding: 55px 35px; } }
  @media (max-width: 980px) {
    .tabs-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .service-hero { grid-template-columns: 1fr; min-height: 0; }
    .service-hero-copy { padding: 67px 35px; }
    .hero-image { height: 330px; min-height: 0; }
    .detail-section { padding: 72px 0; }
  }
  @media (max-width: 720px) {
    .tabs-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding-top: 12px; padding-bottom: 12px; }
    .service-tab { font-size: 12.5px; padding: 11px 8px; }
    .index-intro { padding: 36px 0 28px; }
    .index-intro p { font-size: 16px; }
    .service-hero-copy { padding: 52px 18px; }
    .service-hero h2 { font-size: clamp(38px, 8.3vw, 56px); }
    .service-hero p { font-size: 17px; }
    .hero-image { height: 250px; }
    .detail-section { padding: 59px 0; }
    .detail-layout { grid-template-columns: 1fr; gap: 14px; }
    .detail-panel { padding: 26px; }
    .detail-photo { height: 225px; }
    .contact-inner { align-items: flex-start; flex-direction: column; }
  }
  @media (max-width: 490px) {
    .tabs-inner { grid-template-columns: 1fr; gap: 8px; }
    .service-tab { text-align: left; justify-content: flex-start; padding: 14px 16px; }
    .hero-image { height: 220px; }
    .detail-panel { padding: 22px; }
    .detail-panel ul { grid-template-columns: 1fr; }
    .contact-strip { padding: 55px 0; }
  }
}

/* =========================================================================
   PAGE: ABOUT US
   ========================================================================= */
@scope (#page-about) {
  .page-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 490px; }
  .page-hero-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-width: 0; padding: 72px max(42px, calc((100vw - 1180px) / 2)); }
  .page-hero h1 { margin: 0; font-size: clamp(54px, 6vw, 80px); }
  .page-hero h1::after { content: ""; display: block; width: 64px; height: 4px; margin-top: 25px; background: var(--red); }
  .page-hero-photo { width: 100%; height: 100%; min-height: 440px; object-fit: cover; }

  .about { padding: 99px 0 92px; }
  .about-grid { display: grid; grid-template-columns: .84fr 1.16fr; gap: 90px; }
  .about h2 { max-width: 430px; margin: 0; font-size: clamp(38px, 4.3vw, 56px); }
  .about-copy p { margin: 0 0 23px; color: var(--muted); font-size: 19px; line-height: 1.8; }
  .about-copy p:last-child { margin-bottom: 0; }

  .photo-section { padding: 0 0 94px; }
  .photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
  .photo-grid figure { position: relative; min-width: 0; margin: 0; overflow: hidden; background: var(--soft); }
  .photo-grid img { width: 100%; height: 265px; object-fit: cover; transition: transform .4s ease; }
  .photo-grid figure:hover img { transform: scale(1.06); }
  .photo-grid figcaption { position: absolute; right: 0; bottom: 0; left: 0; padding: 26px 16px 13px; background: linear-gradient(transparent, #13252dcb); color: #fff; font-weight: 700; }

  .contact-section { padding: 84px 0; border-top: 1px solid var(--line); background: var(--soft); }
  .contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 90px; }
  .contact-section h2 { margin: 0; font-size: clamp(37px, 4vw, 54px); }
  .contact-panel { padding: 37px 40px; border-left: 4px solid var(--red); background: #fff; }
  .contact-panel h3 { margin: 0 0 15px; font-size: clamp(26px, 2.7vw, 35px); }
  .contact-panel p { margin: 0 0 25px; color: var(--muted); font-size: 17px; }

  @media (max-width: 1100px) {
    .page-hero-copy { padding: 60px 35px; }
    .about-grid, .contact-grid { gap: 50px; }
  }
  @media (max-width: 980px) {
    .page-hero { grid-template-columns: 1fr; min-height: 0; }
    .page-hero-copy { padding: 70px 35px; }
    .page-hero-photo { height: 330px; min-height: 0; }
    .about { padding: 76px 0; }
    .about-grid { gap: 38px; }
    .photo-section { padding-bottom: 76px; }
    .photo-grid img { height: 215px; }
    .contact-section { padding: 72px 0; }
    .contact-grid { gap: 35px; }
  }
  @media (max-width: 720px) {
    .page-hero-copy { padding: 55px 18px; }
    .page-hero h1 { font-size: clamp(48px, 11vw, 67px); }
    .page-hero-photo { height: 260px; }
    .about { padding: 63px 0; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .about-grid { gap: 25px; }
    .about-copy p { font-size: 17px; }
    .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .photo-grid img { height: 195px; }
    .photo-grid figure:last-child { grid-column: 1 / -1; }
    .photo-grid figure:last-child img { height: 230px; }
    .photo-section { padding-bottom: 63px; }
    .contact-grid { gap: 25px; }
    .contact-panel { padding: 30px; }
  }
  @media (max-width: 490px) {
    .page-hero-photo { height: 225px; }
    .photo-grid { grid-template-columns: 1fr; }
    .photo-grid figure:last-child { grid-column: auto; }
    .photo-grid img, .photo-grid figure:last-child img { height: 220px; }
    .contact-section { padding: 58px 0; }
    .contact-panel { padding: 26px; }
  }
}

/* =========================================================================
   PAGE: CAREERS
   ========================================================================= */
@scope (#page-careers) {
  .page-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 505px; }
  .page-hero-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-width: 0; padding: 70px max(42px, calc((100vw - 1180px) / 2)); }
  .page-hero h1 { margin: 0 0 22px; font-size: clamp(55px, 6vw, 80px); }
  .page-hero h1::after { content: ""; display: block; width: 64px; height: 4px; margin-top: 24px; background: var(--red); }
  .page-hero p { max-width: 480px; margin: 0; color: var(--muted); font-size: 18px; }
  .page-hero-photo { width: 100%; height: 100%; min-height: 450px; object-fit: cover; }

  .introduction { padding: 100px 0 90px; }
  .intro-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; }
  .introduction h2 { max-width: 500px; margin: 0; font-size: clamp(38px, 4.2vw, 56px); }
  .intro-copy p { margin: 0 0 20px; color: var(--muted); font-size: 19px; line-height: 1.8; }
  .intro-copy p:last-child { margin-bottom: 0; }

  .culture { padding: 88px 0 96px; background: var(--soft); border-top: 1px solid var(--line); }
  .culture-heading { margin-bottom: 31px; }
  .culture-heading h2 { margin: 0; font-size: clamp(35px, 4vw, 50px); }
  .culture-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
  .culture-card { min-width: 0; background: #fff; border: 1px solid var(--line); transition: transform .2s ease, box-shadow .2s ease; }
  .culture-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px #00000012; }
  .culture-card img { width: 100%; height: 215px; object-fit: cover; }
  .culture-card-content { padding: 27px 28px 31px; }
  .culture-card h3 { margin: 0 0 17px; font-size: 26px; }
  .culture-card p { margin: 0 0 15px; color: var(--muted); font-size: 15px; }
  .culture-card p:last-child { margin-bottom: 0; }

  .opportunities { padding: 96px 0; }
  .opportunities-intro { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; margin-bottom: 43px; }
  .opportunities-intro h2 { margin: 0; font-size: clamp(38px, 4.3vw, 56px); }
  .opportunities-intro p { align-self: end; margin: 0; color: var(--muted); font-size: 18px; }
  .opportunities-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 21px; }
  .opportunities-panel { padding: 34px 38px; border: 1px solid var(--line); background: var(--soft); }
  .opportunities-panel h3 { margin: 0 0 23px; font-size: 27px; }
  .opportunities-panel ul { margin: 0; padding: 0; list-style: none; }
  .opportunities-panel li { position: relative; padding: 13px 0 13px 19px; border-bottom: 1px solid #d6dde0; font-size: 16px; }
  .opportunities-panel li::before { content: ""; position: absolute; top: 24px; left: 0; width: 7px; height: 7px; background: var(--red); }
  .opportunities-panel p { margin: 23px 0 0; color: var(--muted); font-size: 17px; }
  .opportunities-photo { width: 100%; height: 100%; min-height: 380px; object-fit: cover; }

  .graduate { padding: 92px 0; border-top: 1px solid var(--line); background: var(--soft); }
  .graduate-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 90px; }
  .graduate h2 { margin: 0; font-size: clamp(37px, 4vw, 52px); }
  .graduate p { margin: 0 0 21px; color: var(--muted); font-size: 18px; line-height: 1.8; }
  .graduate p:last-child { margin-bottom: 0; }

  .contact-strip { padding: 74px 0; background: #263740; color: #fff; }
  .contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; align-items: center; }
  .contact-strip .eyebrow { color: #ff9292; }
  .contact-strip h2 { margin: 0; font-size: clamp(36px, 4vw, 52px); }
  .contact-strip p { margin: 0 0 25px; color: #e1e8eb; font-size: 18px; }

  @media (max-width: 1100px) {
    .page-hero-copy { padding: 60px 35px; }
    .intro-grid, .opportunities-intro, .graduate-grid, .contact-grid { gap: 48px; }
  }
  @media (max-width: 980px) {
    .page-hero { grid-template-columns: 1fr; min-height: 0; }
    .page-hero-copy { padding: 70px 35px; }
    .page-hero-photo { height: 330px; min-height: 0; }
    .introduction, .opportunities { padding: 76px 0; }
    .culture, .graduate { padding: 72px 0; }
    .culture-grid { gap: 12px; }
    .culture-card img { height: 175px; }
    .culture-card-content { padding: 22px; }
    .culture-card h3 { font-size: 23px; }
  }
  @media (max-width: 720px) {
    .page-hero-copy { padding: 55px 18px; }
    .page-hero h1 { font-size: clamp(48px, 11vw, 67px); }
    .page-hero-photo { height: 255px; }
    .intro-grid, .opportunities-intro, .opportunities-layout, .graduate-grid, .contact-grid { grid-template-columns: 1fr; }
    .intro-grid, .graduate-grid, .contact-grid { gap: 24px; }
    .opportunities-intro { gap: 13px; }
    .introduction, .opportunities { padding: 63px 0; }
    .culture, .graduate { padding: 62px 0; }
    .intro-copy p, .graduate p { font-size: 17px; }
    .culture-grid { grid-template-columns: 1fr; }
    .culture-card { display: grid; grid-template-columns: .8fr 1.2fr; }
    .culture-card img { height: 100%; min-height: 240px; }
    .opportunities-photo { height: 260px; min-height: 0; }
    .contact-strip { padding: 62px 0; }
  }
  @media (max-width: 490px) {
    .page-hero-photo { height: 220px; }
    .culture-card { grid-template-columns: 1fr; }
    .culture-card img { height: 205px; min-height: 0; }
    .opportunities-panel { padding: 25px; }
    .opportunities-photo { height: 220px; }
  }
}

/* =========================================================================
   PAGE: CONTACT US
   ========================================================================= */
@scope (#page-contact) {
  .page-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 410px; }
  .page-hero-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-width: 0; padding: 70px max(42px, calc((100vw - 1180px) / 2)); }
  .page-hero h1 { margin: 0; font-size: clamp(55px, 6vw, 80px); }
  .page-hero h1::after { content: ""; display: block; width: 64px; height: 4px; margin-top: 25px; background: var(--red); }
  .page-hero-photo { width: 100%; height: 100%; min-height: 410px; object-fit: cover; }

  .contact-section { padding: 91px 0 101px; background: var(--soft); border-top: 1px solid var(--line); }
  .contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 85px; align-items: start; }
  .contact-heading { margin: 0 0 30px; font-size: clamp(35px, 4vw, 50px); }
  .detail { padding: 20px 0; border-bottom: 1px solid #d4dde1; }
  .detail:first-of-type { border-top: 1px solid #d4dde1; }
  .detail-label { display: block; margin-bottom: 5px; color: var(--red-dark); font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
  .detail-value { display: block; font-size: 18px; overflow-wrap: anywhere; }
  .detail a:hover { color: var(--red); }
  .detail-map { width: 100%; height: 260px; margin-top: 32px; border: 1px solid var(--line); overflow: hidden; }
  .detail-map iframe { display: block; width: 100%; height: 100%; border: 0; }

  .form-card { padding: 41px 43px 44px; border: 1px solid var(--line); background: #fff; }
  .form-card h2 { margin: 0 0 30px; font-size: clamp(32px, 3vw, 42px); }
  .field { margin-bottom: 22px; }
  .field label { display: block; margin-bottom: 7px; font-size: 15px; font-weight: 700; }
  .field input, .field textarea {
    display: block; width: 100%; padding: 13px 14px; border: 1px solid #bac7cd;
    border-radius: 0; background: #fff; color: var(--ink); font: inherit;
  }
  .field input { min-height: 48px; }
  .field textarea { min-height: 160px; resize: vertical; }
  .field input:hover, .field textarea:hover { border-color: #758891; }
  .consent { display: flex; align-items: flex-start; gap: 12px; margin: 5px 0 24px; }
  .consent input { width: 18px; height: 18px; margin: 4px 0 0; flex: none; accent-color: var(--red); }
  .consent label { color: var(--muted); font-size: 14px; line-height: 1.6; }
  .form-note { margin: 15px 0 0; color: var(--muted); font-size: 13px; }
  .form-status { margin: 17px 0 0; color: var(--ink); font-weight: 700; }
  .form-status:empty { display: none; }

  .bottom-section { padding: 73px 0; background: #263740; color: #fff; }
  .bottom-grid { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
  .bottom-section .eyebrow { color: #ff9292; }
  .bottom-section h2 { max-width: 770px; margin: 0; font-size: clamp(32px, 3.6vw, 47px); }
  .bottom-section .button { flex: none; color: var(--red-dark); background: #fff; }

  @media (max-width: 1100px) {
    .page-hero-copy { padding: 60px 35px; }
    .contact-grid { gap: 50px; }
  }
  @media (max-width: 980px) {
    .page-hero { grid-template-columns: 1fr; min-height: 0; }
    .page-hero-copy { padding: 69px 35px; }
    .page-hero-photo { height: 310px; min-height: 0; }
    .contact-section { padding: 73px 0; }
    .form-card { padding: 32px; }
  }
  @media (max-width: 720px) {
    .page-hero-copy { padding: 54px 18px; }
    .page-hero h1 { font-size: clamp(48px, 11vw, 67px); }
    .page-hero-photo { height: 245px; }
    .contact-grid { grid-template-columns: 1fr; gap: 39px; }
    .contact-section { padding: 59px 0; }
    .detail-map { height: 225px; }
    .bottom-grid { align-items: flex-start; flex-direction: column; }
  }
  @media (max-width: 490px) {
    .page-hero-photo { height: 215px; }
    .form-card { padding: 25px 22px; }
    .detail-map { height: 205px; }
    .bottom-section { padding: 56px 0; }
  }
}

/* =========================================================================
   PAGE: PRIVACY POLICY
   ========================================================================= */
@scope (#page-privacy) {
  .hero { padding: 72px 0 61px; border-bottom: 1px solid var(--line); background: var(--soft); }
  .hero p { margin: 0; color: var(--muted); }
  h1 { margin: 0 0 13px; font-size: clamp(44px, 5vw, 70px); }
  .layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 70px; padding: 68px 0 100px; }
  .contents { align-self: start; position: sticky; top: 24px; padding: 23px; background: var(--soft); }
  .contents strong { display: block; margin-bottom: 12px; color: #a40000; font-size: 12px; letter-spacing: .13em; text-transform: uppercase; }
  .contents a { display: block; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; text-decoration: none; }
  .contents a:hover { color: var(--red); }
  .policy { max-width: 780px; min-width: 0; }
  .policy section { padding: 0 0 27px; margin: 0 0 30px; border-bottom: 1px solid var(--line); scroll-margin-top: 20px; }
  .policy section:last-child { border: 0; }
  .policy h2 { margin: 0 0 17px; font-size: clamp(26px, 3vw, 34px); }
  .policy p { margin: 0 0 15px; }
  .policy ul { margin: 0 0 17px; padding-left: 22px; }
  .policy li { padding: 4px 0; }
  .policy a { color: #a40000; overflow-wrap: anywhere; }

  @media (max-width: 980px) {
    .layout { grid-template-columns: 1fr; gap: 32px; }
    .contents { position: static; }
    .contents a { display: inline-block; margin-right: 18px; }
  }
  @media (max-width: 490px) {
    .hero { padding: 53px 0; }
    .layout { padding: 44px 0 65px; }
  }
}

/* =========================================================================
   PAGE: LEGAL NOTICE
   ========================================================================= */
@scope (#page-legal) {
  .hero { padding: 72px 0 61px; border-bottom: 1px solid var(--line); background: var(--soft); }
  h1 { margin: 0; font-size: clamp(44px, 5vw, 70px); }
  .legal-wrap { padding: 76px 0 105px; }
  .legal-card { max-width: 780px; padding: 42px 46px; border: 1px solid var(--line); background: #fff; }
  .legal-row { display: grid; grid-template-columns: 185px minmax(0, 1fr); gap: 28px; padding: 21px 0; border-bottom: 1px solid var(--line); }
  .legal-row:first-child { padding-top: 0; }
  .legal-row:last-child { border: 0; padding-bottom: 0; }
  .legal-row dt { font-weight: 700; }
  .legal-row dd { margin: 0; overflow-wrap: anywhere; }
  .legal-row a { color: #a40000; }

  @media (max-width: 600px) {
    .legal-wrap { padding: 48px 0 68px; }
    .legal-card { padding: 25px; }
    .legal-row { grid-template-columns: 1fr; gap: 4px; }
  }
  @media (max-width: 490px) { .hero { padding: 53px 0; } }
}

/* =========================================================================
   PAGE: LATEST NEWS
   ========================================================================= */
@scope (#page-news) {
  .hero { padding: 72px 0 61px; border-bottom: 1px solid var(--line); background: var(--soft); }
  h1 { margin: 0 0 13px; font-size: clamp(44px, 5vw, 70px); }
  .hero p { max-width: 640px; margin: 0; color: var(--muted); }

  .news-wrap { max-width: 780px; padding: 68px 0 100px; }
  .news-article time { display: block; margin-bottom: 12px; color: var(--muted); font-size: 14px; }
  .news-article h2 { margin: 0 0 26px; font-size: clamp(28px, 3.4vw, 40px); }
  .news-article-photo { width: 100%; height: 320px; margin-bottom: 26px; object-fit: cover; }
  .news-article p { margin: 0 0 18px; color: var(--muted); font-size: 18px; line-height: 1.8; }
  .news-more { margin: 46px 0 0; padding-top: 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }

  @media (max-width: 490px) {
    .hero { padding: 53px 0; }
    .news-wrap { padding: 44px 0 65px; }
    .news-article-photo { height: 220px; }
    .news-article p { font-size: 16px; }
  }
}
