:root {
  --green: #1f65d6;
  --green-dark: #082a57;
  --mint: #eaf2ff;
  --cream: #f3f6fa;
  --paper: #f7f8fb;
  --ink: #111817;
  --muted: #66727f;
  --line: #dfe5ec;
  --white: #ffffff;
  --shadow: 0 22px 70px rgba(5, 22, 45, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", Arial, sans-serif;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }

.top-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  min-height: 38px;
  padding: 8px 16px;
  background: var(--green);
  color: var(--white);
  font-size: 13px;
}
.top-banner span { font-weight: 900; opacity: .86; }
.top-banner strong { font-weight: 800; }
.top-banner a {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--white);
  color: var(--green-dark);
  font-weight: 900;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 0 44px;
  border-bottom: 1px solid rgba(228, 225, 217, .8);
  background: rgba(251, 250, 247, .92);
  backdrop-filter: blur(18px);
}
.site-header-dark {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid rgba(255,255,255,.16);
  background: rgba(7, 21, 35, .96);
  box-shadow: 0 8px 30px rgba(2, 10, 20, .18);
  backdrop-filter: blur(20px);
  color: var(--white);
}
.site-header-dark .brand-text strong {
  color: #fff;
}
.site-header-dark .brand-text em,
.site-header-dark .nav-item > a {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.site-header-dark .nav-item:hover > a,
.site-header-dark .nav-item > a:focus-visible {
  color: #f2b643;
}
.site-header-dark .header-cta {
  background: #2f7df0;
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
}
.site-header-dark .nav-toggle {
  border-color: rgba(255,255,255,.35);
  background: rgba(255,255,255,.10);
}
.site-header-dark .nav-toggle span {
  background: #fff;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2f7df0 0%, #0d3b7c 100%);
  color: var(--white);
  font-weight: 950;
  letter-spacing: 0;
}
.brand-text { display: flex; flex-direction: column; }
.brand-text strong { font-size: 17px; font-weight: 950; }
.brand-text em { color: var(--muted); font-size: 11px; font-style: normal; font-weight: 800; }

.main-nav { display: flex; align-items: stretch; gap: 2px; }
.nav-item { position: relative; }
.nav-item > a {
  display: flex;
  align-items: center;
  height: 76px;
  padding: 0 14px;
  color: #293833;
  font-size: 14px;
  font-weight: 850;
}
.nav-item:hover > a { color: #2f7df0; }
.mega-menu {
  position: absolute;
  top: 66px;
  left: 50%;
  display: grid;
  width: 190px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: 160ms ease;
}
.nav-item:hover .mega-menu,
.nav-item:focus-within .mega-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.mega-menu a {
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.mega-menu a:hover { background: #f3f7f4; color: var(--green-dark); }
.header-cta,
.primary-button,
.ghost-button,
.contact-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 900;
}
.header-cta, .primary-button, .contact-form button {
  border: 0;
  background: var(--green);
  color: var(--white);
}
.ghost-button {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
}
.nav-toggle { display: none; border: 1px solid var(--line); border-radius: 10px; background: var(--white); width: 42px; height: 42px; }
.nav-toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--ink); }

main { overflow: hidden; }
section { scroll-margin-top: 96px; }
.hero-section {
  position: relative;
  min-height: 760px;
  padding: 92px 24px 86px;
  background: #07131d;
  color: var(--white);
}
.hero-section::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 13, 22, .94), rgba(5, 13, 22, .64) 46%, rgba(5, 13, 22, .34)),
    url("./assets/images/bim-hero-render-dark.jpg") center / cover;
  content: "";
}
.hero-v2 {
  min-height: 910px;
  padding: 0;
  background: #07131d;
}
.hero-v2::before {
  background:
    linear-gradient(90deg, rgba(5, 13, 27, .92) 0%, rgba(5, 13, 27, .72) 34%, rgba(5, 13, 27, .18) 72%),
    url("./assets/images/hero-reference-02-dark.jpg") center / cover;
}
.hero-v2-copy {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  padding-top: 250px;
  color: var(--white);
}
.hero-v2-copy p {
  margin: 0 0 28px;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 0;
}
.hero-v2-copy h1 {
  margin: 0;
  max-width: 650px;
  font-size: clamp(58px, 7vw, 104px);
  line-height: 1.08;
  letter-spacing: 0;
  font-weight: 950;
}
.hero-v2-copy i {
  display: block;
  width: 72px;
  height: 4px;
  margin: 42px 0 34px;
  background: #f2a51a;
}
.hero-v2-copy span {
  display: block;
  color: rgba(255,255,255,.78);
  font-size: 23px;
  line-height: 1.55;
}
.hero-project-ticker {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 220px repeat(4, 1fr);
  min-height: 78px;
  background: rgba(7, 11, 14, .82);
  backdrop-filter: blur(10px);
}
.hero-project-ticker strong,
.hero-project-ticker a {
  display: flex;
  align-items: center;
  padding: 0 36px;
  border-right: 1px solid rgba(255,255,255,.22);
  color: var(--white);
  font-size: 18px;
  font-weight: 850;
}
.hero-project-ticker strong {
  color: #2e8bff;
  font-size: 15px;
}
.hero-project-ticker a::after {
  margin-left: auto;
  color: #ff9f2c;
  content: "→";
}
.home-stat-strip {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(1180px, calc(100% - 64px));
  margin: -54px auto 0;
  border-bottom: 4px solid #f2b42b;
  background: #08233f;
  box-shadow: 0 22px 56px rgba(5, 13, 27, .18);
}
.home-stat-strip article {
  min-height: 108px;
  padding: 24px 30px;
  border-right: 1px solid rgba(255,255,255,.22);
  color: var(--white);
}
.home-stat-strip article:last-child { border-right: 0; }
.home-stat-strip span {
  display: block;
  margin-bottom: 6px;
  color: rgba(255,255,255,.74);
  font-size: 15px;
  font-weight: 850;
}
.home-stat-strip strong {
  display: block;
  color: #f4c32f;
  font-size: clamp(24px, 2.7vw, 38px);
  line-height: 1.1;
  font-weight: 950;
}
.hero-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(420px, .78fr);
  gap: 48px;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 58px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 0;
  background: rgba(6, 18, 29, .32);
  box-shadow: none;
  backdrop-filter: blur(4px);
}
.pill {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 18px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
}
.hero-copy h1 {
  margin: 0;
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.08;
  letter-spacing: 0;
}
.hero-copy p:not(.pill) {
  max-width: 610px;
  margin: 22px 0 0;
  color: rgba(255,255,255,.78);
  font-size: 18px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 34px;
}
.trust-row div {
  padding: 16px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  background: rgba(255,255,255,.08);
}
.trust-row strong, .trust-row span { display: block; }
.trust-row strong { font-size: 20px; }
.trust-row span { margin-top: 4px; color: rgba(255,255,255,.66); font-size: 13px; font-weight: 800; }

.hero-visual {
  align-self: center;
  overflow: hidden;
  border: 1px solid #262c2a;
  border-radius: 22px;
  background: #0e1513;
  box-shadow: var(--shadow);
}
.visual-toolbar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 16px;
  color: #c9d5cf;
  font-size: 12px;
  font-weight: 900;
}
.visual-toolbar span { width: 8px; height: 8px; border-radius: 999px; background: #51615a; }
.visual-toolbar strong { margin-left: 8px; }
.hero-visual img { width: 100%; height: 390px; object-fit: cover; background: #eef1ee; }
.model-note {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding: 1px;
  background: #1d2824;
}
.model-note span {
  padding: 12px 8px;
  background: #101916;
  color: #d9e5df;
  text-align: center;
  font-size: 12px;
  font-weight: 850;
}

.stage-section,
.split-section,
.bim-section,
.process-section,
.business-section,
.projects-section,
.quality-section,
.documents-section,
.faq-section,
.contact-section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 86px 0;
}
.stage-section, .business-section, .quality-section, .faq-section { width: 100%; padding-right: 24px; padding-left: 24px; background: var(--cream); }
.section-title { margin-bottom: 34px; }
.section-title.center { max-width: 760px; margin-right: auto; margin-left: auto; text-align: center; }
.section-title p {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}
.section-title h2 {
  margin: 0;
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.14;
  letter-spacing: 0;
}
.section-title span {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 16px;
}

.stage-grid,
.business-list,
.quality-grid,
.documents-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: min(1180px, 100%);
  margin: 0 auto;
}
.stage-grid article,
.business-list article,
.quality-grid article,
.documents-grid article,
.proof-grid article,
.project-side article {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, .78);
  padding: 22px;
}
.stage-grid b,
.business-list span,
.process-table span,
.project-main span {
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
}
.stage-grid h3, .business-list h3, .process-table h3 { margin: 16px 0 8px; font-size: 21px; line-height: 1.2; }
.stage-grid p, .business-list p { margin: 0; color: var(--muted); font-size: 15px; }

.business-main {
  margin-top: 0;
  background: #fff;
}
.business-visual-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(1180px, 100%);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 22px 56px rgba(5, 22, 45, .08);
}
.business-visual-grid article {
  display: grid;
  grid-template-rows: 270px 1fr;
  min-width: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.business-visual-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #edf3f8;
  filter: saturate(.96) contrast(1.03);
}
.business-visual-grid div {
  padding: 28px;
}
.business-visual-grid span {
  color: #1f65d6;
  font-size: 12px;
  font-weight: 950;
}
.business-visual-grid h3 {
  margin: 16px 0 10px;
  font-size: 24px;
  line-height: 1.2;
}
.business-visual-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr .86fr;
  gap: 22px;
}
.info-panel {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--white);
}
.info-panel h3 { margin: 0 0 10px; font-size: 30px; }
.info-panel p { margin: 0; color: var(--muted); }
.company-list { display: grid; gap: 0; margin: 26px 0 0; border-top: 1px solid var(--line); }
.company-list div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.company-list dt { color: var(--muted); font-weight: 850; }
.company-list dd { margin: 0; font-weight: 850; }
.proof-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.proof-grid strong, .proof-grid span, .quality-grid b, .quality-grid span, .documents-grid strong, .documents-grid span { display: block; }
.proof-grid strong, .quality-grid b, .documents-grid strong { font-size: 20px; }
.proof-grid span, .quality-grid span, .documents-grid span { margin-top: 8px; color: var(--muted); font-size: 14px; }

.bim-showcase {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 18px;
}
.model-card {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  border-radius: 8px;
  background: #edf3f8;
  box-shadow: 0 18px 56px rgba(5, 22, 45, .12);
}
.model-card.large { grid-row: span 2; min-height: 620px; }
.model-card img { width: 100%; height: 100%; object-fit: cover; }
.model-card > div:not(.bim-frame):not(.home-bim-carousel) {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  padding: 16px;
  border-radius: 6px;
  background: rgba(5, 18, 34, .88);
  color: var(--white);
  backdrop-filter: blur(14px);
}
.model-card span { color: #69b7ff; font-size: 12px; font-weight: 950; }
.model-card strong { display: block; margin-top: 4px; font-size: 20px; }

.model-card.home-bim-card {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  background: #07131d;
}

.home-bim-card .home-bim-carousel {
  position: relative;
  inset: auto;
  min-height: 200px;
}

.model-card.home-bim-card > div:not(.home-bim-carousel) {
  position: relative;
  right: auto;
  bottom: auto;
  left: auto;
  z-index: 2;
  padding: 15px 18px 17px;
  border-radius: 0;
  background: #06111d;
  backdrop-filter: none;
}

.home-bim-carousel {
  position: absolute;
  inset: 0;
  background: #07131d;
}

.home-bim-carousel figure {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  background: #07131d;
  opacity: 0;
  animation: homeBimCarousel 15s linear infinite both;
}

.home-bim-carousel figure:nth-child(2) { animation-delay: 5s; }
.home-bim-carousel figure:nth-child(3) { animation-delay: 10s; }

.home-bim-carousel img {
  object-fit: cover;
  object-position: center;
  filter: saturate(.94) contrast(1.02);
}

.home-bim-carousel figcaption {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 4px;
  background: rgba(4, 16, 30, .82);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
}

@keyframes homeBimCarousel {
  0%, 33% { opacity: 1; }
  40%, 100% { opacity: 0; }
}

.bim-showcase-motion {
  perspective: 1200px;
}

.bim-animated-card {
  background: #06111d;
}

.bim-animated-card .bim-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #07131d;
}

.bim-animated-card .bim-frame img,
.bim-tech-stage .bim-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: saturate(.98) contrast(1.08);
  transform: scale(1.08) translateX(0);
  animation: bimRenderCycle 15s infinite;
}

.bim-animated-card .bim-frame img:nth-child(2),
.bim-tech-stage .bim-frame img:nth-child(2) {
  animation-delay: 5s;
}

.bim-animated-card .bim-frame img:nth-child(3),
.bim-tech-stage .bim-frame img:nth-child(3) {
  animation-delay: 10s;
}

.bim-animated-card.compact .bim-frame img {
  animation-duration: 10s;
}

.bim-animated-card.compact .bim-frame img:nth-child(2) {
  animation-delay: 5s;
}

.bim-frame::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(105, 183, 255, .16) 1px, transparent 1px),
    linear-gradient(0deg, rgba(105, 183, 255, .12) 1px, transparent 1px);
  background-size: 44px 44px;
  mix-blend-mode: screen;
  opacity: .45;
  content: "";
  pointer-events: none;
}

.bim-frame::after {
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -18%;
  z-index: 3;
  width: 26%;
  background: linear-gradient(90deg, transparent, rgba(105, 183, 255, .30), transparent);
  transform: skewX(-12deg);
  animation: bimScan 5.4s ease-in-out infinite;
  content: "";
  pointer-events: none;
}

.bim-hotspot {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(105, 183, 255, .52);
  border-radius: 4px;
  background: rgba(4, 16, 30, .78);
  color: #d9f2ff;
  font-size: 12px;
  font-weight: 950;
  box-shadow: 0 10px 30px rgba(5, 22, 45, .24);
  animation: bimPulse 2.4s ease-in-out infinite;
}

.bim-hotspot::before {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #f2a51a;
  content: "";
}

.hotspot-structure { top: 26%; left: 12%; }
.hotspot-core { top: 42%; right: 14%; animation-delay: .4s; }
.hotspot-finish { right: 20%; bottom: 28%; animation-delay: .8s; }

@keyframes bimRenderCycle {
  0% { opacity: 0; transform: scale(1.08) translateX(0); }
  8% { opacity: 1; }
  30% { opacity: 1; transform: scale(1.02) translateX(-1.6%); }
  38% { opacity: 0; transform: scale(1.04) translateX(-2.2%); }
  100% { opacity: 0; transform: scale(1.08) translateX(0); }
}

@keyframes bimScan {
  0%, 18% { transform: translateX(0) skewX(-12deg); opacity: 0; }
  28% { opacity: 1; }
  72% { opacity: .78; }
  100% { transform: translateX(560%) skewX(-12deg); opacity: 0; }
}

@keyframes bimPulse {
  0%, 100% { transform: translateY(0); opacity: .88; }
  50% { transform: translateY(-4px); opacity: 1; }
}

.process-table {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--white);
}
.process-table article { min-height: 310px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.process-table ul { margin: 18px 0 0; padding-left: 18px; color: var(--muted); }
.process-table li + li { margin-top: 8px; }

.project-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 22px; }
.project-main {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--white);
  box-shadow: 0 18px 60px rgba(17, 24, 23, .08);
}
.project-main img { width: 100%; height: 480px; object-fit: cover; background: #edf0ed; }
.project-main div { padding: 26px; }
.project-main h3 { margin: 8px 0 8px; font-size: 28px; }
.project-main p { margin: 0; color: var(--muted); }
.project-side { display: grid; gap: 12px; }
.project-side strong { display: block; font-size: 18px; }
.project-side span { display: block; margin-top: 8px; color: var(--muted); }

.quality-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.documents-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.faq-list { display: grid; gap: 10px; width: min(820px, 100%); margin: 0 auto; }
details { border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, .78); padding: 18px 20px; }
summary { cursor: pointer; font-weight: 900; }
details p { margin: 12px 0 0; color: var(--muted); }

.contact-card {
  display: grid;
  grid-template-columns: 1fr 430px;
  gap: 34px;
  padding: 40px;
  border-radius: 8px;
  background: #07131d;
  color: var(--white);
}
.contact-card h2 { margin: 0; font-size: clamp(28px, 4vw, 46px); line-height: 1.15; }
.contact-card span { display: block; margin-top: 18px; color: rgba(255,255,255,.68); }
.contact-form { display: grid; gap: 14px; }
.contact-form label { display: grid; gap: 7px; }
.contact-form label span { margin: 0; color: rgba(255,255,255,.72); font-size: 13px; font-weight: 900; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  color: var(--white);
  padding: 13px 14px;
}
.contact-form option { color: var(--ink); }
.contact-form button { min-height: 50px; border-radius: 14px; cursor: pointer; }
.contact-phone { color: inherit; font-weight: 900; text-underline-offset: 4px; }
.form-status { margin: 0; color: rgba(255,255,255,.72); font-size: 13px; line-height: 1.55; }
.contact-call-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 14px;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}
.contact-call-button:hover { background: rgba(255,255,255,.1); }
.site-footer {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 36px 24px;
  color: var(--muted);
  font-size: 14px;
}
.site-footer strong { color: var(--ink); }

.portfolio-index,
.project-detail-list {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 64px 0;
}
.portfolio-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.portfolio-menu {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: 0 18px 56px rgba(5, 22, 45, .08);
}
.portfolio-tab {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 108px;
  padding: 14px;
  border: 0;
  background: var(--white);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.portfolio-tab img {
  width: 72px;
  height: 72px;
  border-radius: 4px;
  object-fit: cover;
  background: #edf3f8;
}
.portfolio-tab span {
  grid-column: 2;
  grid-row: 1;
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
}
.portfolio-tab strong {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  padding-top: 18px;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 900;
}
.portfolio-tab.is-active {
  background: #07131d;
  color: var(--white);
}
.portfolio-tab.is-active span {
  color: #f2b42b;
}
.portfolio-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 18px 56px rgba(17, 24, 23, .08);
}
.portfolio-card img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  background: #edf0ed;
}
.portfolio-card > div { padding: 22px; }
.portfolio-card span,
.field-heading p {
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}
.portfolio-card h3 {
  margin: 8px 0 16px;
  font-size: 24px;
  line-height: 1.18;
}
.portfolio-card dl,
.field-heading dl {
  display: grid;
  gap: 8px;
  margin: 0;
}
.portfolio-card dl div,
.field-heading dl div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}
.portfolio-card dt,
.field-heading dt {
  font-weight: 900;
  color: #32413b;
}
.portfolio-card dd,
.field-heading dd {
  margin: 0;
}
.field-detail {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}
.field-detail[hidden] {
  display: none;
}
.field-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 34px;
  align-items: end;
  margin-bottom: 28px;
}
.field-heading h2 {
  margin: 8px 0 12px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
}
.field-heading span {
  display: block;
  max-width: 720px;
  color: var(--muted);
  font-size: 17px;
}
.field-heading dl {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
}
.field-gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.field-gallery-group {
  margin-top: 34px;
}
.field-gallery-group:first-of-type {
  margin-top: 0;
}
.field-gallery-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid #07131d;
}
.field-gallery-title h3 {
  margin: 0;
  color: #07131d;
  font-size: 24px;
  line-height: 1.2;
}
.field-gallery-title span {
  color: #1f65d6;
  font-size: 13px;
  font-weight: 950;
}
.field-image {
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.field-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #edf0ed;
}
.field-image strong {
  display: block;
  padding: 12px 14px 14px;
  font-size: 15px;
}
.field-image:hover img { transform: none; }
.image-lightbox {
  width: fit-content;
  max-width: min(1120px, calc(100% - 32px));
  border: 0;
  border-radius: 20px;
  padding: 0;
  background: #0b1110;
  color: var(--white);
}
.image-lightbox::backdrop {
  background: rgba(4, 10, 8, .72);
}
.image-lightbox img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 78vh;
  margin: 0 auto;
  object-fit: contain;
  background: #0b1110;
}
.image-lightbox p {
  margin: 0;
  padding: 16px 20px 20px;
  color: rgba(255,255,255,.76);
}
.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: var(--ink);
  font-size: 28px;
  cursor: pointer;
}

.subpage .page-hero {
  width: min(980px, calc(100% - 48px));
  margin: 0 auto;
  padding: 78px 0 54px;
  text-align: center;
}
.page-hero h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.12;
  letter-spacing: 0;
}
.page-hero p:not(.pill) {
  max-width: 720px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 18px;
}
.case-detail,
.gallery-section,
.case-list-section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 64px 0;
}
.case-detail {
  display: grid;
  grid-template-columns: .78fr 1fr;
  gap: 26px;
  align-items: stretch;
}
.case-copy {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--white);
}
.case-copy span,
.case-list span {
  color: var(--green);
  font-size: 13px;
  font-weight: 950;
}
.case-copy h2 {
  margin: 10px 0 14px;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.12;
}
.case-copy p {
  margin: 0;
  color: var(--muted);
}
.case-copy dl {
  margin: 26px 0 0;
  border-top: 1px solid var(--line);
}
.case-copy dl div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.case-copy dt { color: var(--muted); font-weight: 850; }
.case-copy dd { margin: 0; font-weight: 850; }
.case-hero-image {
  overflow: hidden;
  border-radius: 28px;
  background: #edf0ed;
  box-shadow: var(--shadow);
}
.case-hero-image img {
  width: 100%;
  height: 100%;
  min-height: 470px;
  object-fit: cover;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.gallery-grid article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #edf0ed;
}
.gallery-grid strong,
.gallery-grid span {
  display: block;
  padding: 0 18px;
}
.gallery-grid strong {
  padding-top: 16px;
  font-size: 18px;
}
.gallery-grid span {
  padding-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}
.case-list {
  display: grid;
  gap: 18px;
}
.case-list article {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
}
.case-list img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 16px;
}
.case-list h3 {
  margin: 8px 0;
  font-size: 28px;
}
.case-list p {
  margin: 0;
  color: var(--muted);
}

.bim-detail-page {
  background: #eef2f6;
}

.bim-tech-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(420px, .82fr) minmax(520px, 1fr);
  gap: 44px;
  align-items: center;
  min-height: 900px;
  padding: 130px max(48px, calc((100vw - 1180px) / 2)) 86px;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 20%, rgba(47, 125, 240, .30), transparent 34%),
    linear-gradient(120deg, #050d1b 0%, #07131d 56%, #0b2a4d 100%);
  color: var(--white);
}

.bim-tech-hero::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 13, 27, .88), rgba(5, 13, 27, .28)),
    url("./assets/images/hero-reference-02-dark.jpg") center / cover;
  opacity: .42;
  content: "";
}

.bim-tech-copy,
.bim-tech-stage {
  position: relative;
  z-index: 1;
}

.bim-tech-copy p {
  margin: 0 0 28px;
  color: rgba(255,255,255,.86);
  font-size: 18px;
  font-weight: 950;
}

.bim-tech-copy h1 {
  margin: 0;
  font-size: clamp(54px, 6vw, 90px);
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: 0;
}

.bim-tech-copy i {
  display: block;
  width: 72px;
  height: 4px;
  margin: 40px 0 30px;
  background: #16c4df;
}

.bim-tech-copy span {
  display: block;
  max-width: 620px;
  color: rgba(255,255,255,.78);
  font-size: 21px;
  line-height: 1.7;
}

.bim-tech-stage {
  min-height: 560px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(5, 13, 27, .50);
  box-shadow: 0 34px 90px rgba(0, 0, 0, .34);
  transform: perspective(1100px) rotateY(-5deg);
}

.bim-view-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 12px;
  height: 532px;
}

.bim-view-grid figure {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  background: #f4f6f8;
}

.bim-view-grid .bim-view-plan {
  grid-row: 1 / span 2;
}

.bim-view-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.98) contrast(1.04);
}

.bim-view-grid .bim-view-plan img {
  object-position: center;
}

.bim-view-grid figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  background: rgba(4, 17, 33, .88);
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  backdrop-filter: blur(8px);
}

.bim-view-grid figcaption b {
  color: #4bd5e9;
  font-size: 11px;
}

.bim-review-section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 92px 0;
}

.bim-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.bim-review-grid article {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 18px 56px rgba(5, 22, 45, .08);
}

.bim-review-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(.96) contrast(1.04);
}

.bim-sequence {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0b1829;
}

.bim-sequence figure {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-right: 2px solid #fff;
}

.bim-sequence figure:last-child {
  border-right: 0;
}

.bim-sequence img {
  height: 100%;
  aspect-ratio: auto;
}

.bim-sequence figcaption {
  position: absolute;
  right: 5px;
  bottom: 6px;
  left: 5px;
  padding: 7px 4px;
  background: rgba(5, 20, 38, .82);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
}

.bim-review-grid b,
.bim-review-grid h3,
.bim-review-grid p {
  display: block;
  margin-right: 24px;
  margin-left: 24px;
}

.bim-review-grid b {
  margin-top: 24px;
  color: #1f65d6;
  font-size: 13px;
  font-weight: 950;
}

.bim-review-grid h3 {
  margin-top: 10px;
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 1.22;
}

.bim-review-grid p {
  margin-top: 0;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 15px;
}

.company-page,
.business-page,
.quality-page {
  background: #eef2f6;
}

.visual-subpage-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(420px, .82fr) minmax(520px, 1fr);
  gap: 44px;
  align-items: center;
  min-height: 780px;
  padding: 132px max(48px, calc((100vw - 1180px) / 2)) 82px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 20%, rgba(46, 125, 240, .25), transparent 34%),
    linear-gradient(120deg, #050d1b 0%, #07131d 58%, #0a2948 100%);
  color: #fff;
}

.visual-subpage-hero::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  pointer-events: none;
}

.visual-hero-copy,
.visual-hero-media,
.visual-hero-collage {
  position: relative;
  z-index: 1;
}

.visual-hero-copy > p {
  margin: 0 0 28px;
  color: rgba(255,255,255,.82);
  font-size: 17px;
  font-weight: 950;
  letter-spacing: .04em;
}

.visual-hero-copy h1 {
  margin: 0;
  font-size: clamp(48px, 5.4vw, 76px);
  font-weight: 950;
  line-height: 1.09;
  letter-spacing: -.03em;
}

.visual-hero-copy i {
  display: block;
  width: 72px;
  height: 4px;
  margin: 38px 0 28px;
  background: #16c4df;
}

.visual-hero-copy > span {
  display: block;
  max-width: 620px;
  color: rgba(255,255,255,.76);
  font-size: 20px;
  line-height: 1.72;
}

.visual-hero-media {
  min-height: 540px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.18);
  background: #07131d;
  box-shadow: 0 34px 90px rgba(0,0,0,.32);
}

.visual-hero-media img {
  width: 100%;
  height: 540px;
  object-fit: cover;
  filter: saturate(.98) contrast(1.04);
}

.concept-media img {
  object-position: center;
}

.quality-media img {
  object-position: center;
}

.visual-hero-media figcaption,
.company-work-grid figcaption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  padding: 15px 17px;
  background: rgba(4,17,33,.86);
  color: #fff;
  backdrop-filter: blur(8px);
}

.visual-hero-media figcaption b,
.visual-hero-media figcaption span,
.company-work-grid figcaption b,
.company-work-grid figcaption span {
  display: block;
}

.visual-hero-media figcaption b,
.company-work-grid figcaption b {
  color: #4bd5e9;
  font-size: 11px;
  letter-spacing: .06em;
}

.visual-hero-media figcaption span,
.company-work-grid figcaption span {
  margin-top: 5px;
  font-size: 14px;
  font-weight: 850;
}

.visual-hero-collage {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  grid-template-rows: repeat(2, 248px);
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(5,13,27,.48);
  box-shadow: 0 34px 90px rgba(0,0,0,.32);
}

.visual-hero-collage figure {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #132235;
}

.visual-hero-collage .collage-main {
  grid-row: 1 / span 2;
}

.visual-hero-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.96) contrast(1.05);
}

.visual-hero-collage figcaption {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  padding: 10px 12px;
  background: rgba(4,17,33,.82);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(7px);
}

.company-showcase,
.quality-proof-section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 92px 0;
}

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

.company-work-grid figure {
  position: relative;
  min-height: 390px;
  margin: 0;
  overflow: hidden;
  background: #dfe6ec;
  box-shadow: 0 20px 60px rgba(5,22,45,.12);
}

.company-work-grid img {
  width: 100%;
  height: 390px;
  object-fit: cover;
  filter: saturate(.96) contrast(1.04);
}

.company-profile-section {
  padding-top: 0;
}

.info-panel .eyebrow {
  margin: 0 0 12px;
  color: #1f65d6;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .05em;
}

.business-page .business-main {
  width: 100%;
  padding-top: 92px;
  padding-bottom: 100px;
}

.business-page .business-main > .section-title {
  width: min(1180px, 100%);
  margin-right: auto;
  margin-left: auto;
}

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

.quality-visual-grid article {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 20px 60px rgba(5,22,45,.09);
}

.quality-visual-grid figure {
  position: relative;
  height: 300px;
  margin: 0;
  overflow: hidden;
  background: #dfe6ec;
}

.quality-visual-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.96) contrast(1.04);
}

.quality-visual-grid article:nth-child(1) img {
  object-position: center 48%;
}

.quality-concept-figure figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  padding: 9px 11px;
  background: rgba(4,17,33,.82);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .06em;
  backdrop-filter: blur(7px);
}

.quality-visual-grid article > div {
  padding: 26px;
}

.quality-visual-grid b {
  color: #1f65d6;
  font-size: 12px;
  font-weight: 950;
}

.quality-visual-grid h3 {
  margin: 15px 0 10px;
  font-size: 24px;
  line-height: 1.24;
}

.quality-visual-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.quality-principles {
  width: 100%;
  padding: 0 24px 92px;
  background: #eef2f6;
}

.quality-principles .quality-grid {
  width: min(1180px, 100%);
}

body:has(.projects-page) {
  background: #eef2f6;
}

.projects-page {
  background: #eef2f6;
}

.projects-page .portfolio-hero {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 900px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #07131d;
  color: var(--white);
  text-align: left;
}

.projects-page .portfolio-hero::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 13, 27, .94) 0%, rgba(5, 13, 27, .76) 36%, rgba(5, 13, 27, .20) 76%),
    url("./assets/images/hero-reference-02-dark.jpg") center / cover;
  content: "";
}

.projects-page .portfolio-hero-copy {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  padding: 230px 0 150px;
}

.projects-page .portfolio-hero-copy p {
  margin: 0 0 28px;
  color: rgba(255,255,255,.88);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0;
}

.projects-page .portfolio-hero-copy h1 {
  max-width: 880px;
  margin: 0;
  color: var(--white);
  font-size: clamp(54px, 6.6vw, 96px);
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: 0;
}

.projects-page .portfolio-hero-copy i {
  display: block;
  width: 72px;
  height: 4px;
  margin: 42px 0 34px;
  background: #f2a51a;
}

.projects-page .portfolio-hero-copy span {
  display: block;
  max-width: 720px;
  color: rgba(255,255,255,.78);
  font-size: 22px;
  line-height: 1.6;
}

.portfolio-hero-ticker {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 220px repeat(4, minmax(0, 1fr));
  min-height: 78px;
  background: rgba(7, 11, 14, .84);
  backdrop-filter: blur(10px);
}

.portfolio-hero-ticker strong,
.portfolio-hero-ticker a {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0 34px;
  border-right: 1px solid rgba(255,255,255,.20);
  color: var(--white);
  font-size: 18px;
  font-weight: 850;
}

.portfolio-hero-ticker strong {
  color: #2e8bff;
  font-size: 14px;
}

.portfolio-hero-ticker a::after {
  margin-left: auto;
  color: #ff9f2c;
  content: "→";
}

.projects-page .portfolio-index {
  padding: 90px 0 48px;
}

.projects-page .project-detail-list {
  padding: 0 0 86px;
}

.projects-page .section-title {
  display: grid;
  grid-template-columns: minmax(0, .62fr) minmax(320px, .38fr);
  gap: 42px;
  align-items: end;
  margin-bottom: 34px;
}

.projects-page .section-title p {
  grid-column: 1;
  color: #1f65d6;
}

.projects-page .section-title h2 {
  grid-column: 1;
  font-size: clamp(34px, 4vw, 52px);
}

.projects-page .section-title span {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin-top: 0;
  font-size: 17px;
  line-height: 1.7;
}

.projects-page .portfolio-menu {
  border-radius: 0;
  background: #cfd8e3;
  box-shadow: 0 22px 56px rgba(5, 22, 45, .10);
}

.projects-page .portfolio-tab {
  min-height: 116px;
  background: #fff;
}

.projects-page .portfolio-tab:hover {
  background: #f7f9fc;
}

.projects-page .portfolio-tab.is-active {
  background: #07131d;
}

.projects-page .portfolio-tab img {
  border-radius: 2px;
}

.projects-page .field-detail {
  padding: 72px 0;
  border-top: 1px solid #cfd8e3;
}

.projects-page .field-heading {
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: start;
}

.projects-page .field-heading h2 {
  max-width: 760px;
  font-size: clamp(42px, 5vw, 66px);
}

.projects-page .field-heading span {
  font-size: 18px;
  line-height: 1.75;
}

.projects-page .field-heading dl {
  border-radius: 0;
  background: #fff;
  box-shadow: 0 16px 42px rgba(5, 22, 45, .07);
}

.projects-page .field-gallery {
  gap: 14px;
}

.projects-page .field-image {
  border-radius: 0;
  box-shadow: 0 12px 34px rgba(5, 22, 45, .06);
}

.projects-page .field-image img {
  aspect-ratio: 4 / 3;
  filter: none;
}

.projects-page #godeokho .field-image img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #fff;
}

.projects-page .field-image strong {
  min-height: 54px;
  color: #172534;
  font-size: 14px;
  line-height: 1.35;
}

.projects-page + .image-lightbox + .site-footer {
  background: #07131d;
  color: rgba(255,255,255,.66);
}

.projects-page + .image-lightbox + .site-footer strong {
  color: var(--white);
}

@media (max-width: 980px) {
  .top-banner { flex-wrap: wrap; }
  .site-header { padding: 0 20px; }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .main-nav {
    position: absolute;
    top: 76px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow);
  }
  .site-header-dark .main-nav {
    border-color: rgba(255,255,255,.16);
    background: rgba(7, 20, 34, .98);
    box-shadow: 0 20px 48px rgba(0,0,0,.34);
  }
  .site-header-dark .main-nav .nav-item > a {
    color: rgba(255,255,255,.94);
  }
  .site-header-dark .main-nav .nav-item > a:hover,
  .site-header-dark .main-nav .nav-item > a:focus-visible {
    color: #f2b643;
    background: rgba(255,255,255,.07);
    border-radius: 10px;
  }
  .site-header-dark {
    position: sticky;
    background: rgba(4, 13, 27, .94);
  }
  .main-nav.is-open { display: flex; }
  .nav-item > a { height: auto; padding: 13px 10px; }
  .mega-menu { position: static; width: 100%; padding: 4px 8px 10px; box-shadow: none; border: 0; opacity: 1; pointer-events: auto; transform: none; }
  .hero-card, .split-grid, .bim-showcase, .project-layout, .contact-card { grid-template-columns: 1fr; }
  .home-stat-strip, .business-visual-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-project-ticker { grid-template-columns: 1fr; position: relative; }
  .hero-project-ticker strong, .hero-project-ticker a { min-height: 56px; padding: 0 24px; }
  .case-detail, .case-list article { grid-template-columns: 1fr; }
  .portfolio-card-grid, .portfolio-menu { grid-template-columns: repeat(2, 1fr); }
  .bim-tech-hero { grid-template-columns: 1fr; min-height: auto; padding: 124px 24px 72px; }
  .bim-tech-stage { min-height: 430px; transform: none; }
  .bim-view-grid { height: 402px; }
  .bim-review-grid { grid-template-columns: 1fr; }
  .visual-subpage-hero { grid-template-columns: 1fr; min-height: auto; padding: 124px 24px 72px; }
  .visual-hero-media { min-height: 440px; }
  .visual-hero-media img { height: 440px; }
  .company-work-grid, .quality-visual-grid { grid-template-columns: 1fr; }
  .company-work-grid figure, .company-work-grid img { height: 430px; }
  .business-page .business-visual-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .projects-page .portfolio-hero { display: block; min-height: auto; }
  .projects-page .portfolio-hero-copy { padding: 160px 0 92px; }
  .portfolio-hero-ticker { position: relative; grid-template-columns: 1fr; }
  .portfolio-hero-ticker strong,
  .portfolio-hero-ticker a { min-height: 56px; padding: 0 24px; }
  .projects-page .section-title,
  .projects-page .field-heading { grid-template-columns: 1fr; }
  .projects-page .section-title p,
  .projects-page .section-title h2,
  .projects-page .section-title span { grid-column: 1; grid-row: auto; }
  .field-heading { grid-template-columns: 1fr; }
  .field-gallery { grid-template-columns: repeat(3, 1fr); }
  .trust-row, .stage-grid, .business-list, .process-table, .documents-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .model-card.large { min-height: 420px; }
}

@media (max-width: 640px) {
  .top-banner { align-items: flex-start; justify-content: flex-start; gap: 8px; font-size: 12px; }
  .site-header { min-height: 68px; }
  .main-nav { top: 68px; }
  .brand-text em { display: none; }
  .hero-section { padding: 28px 16px 48px; }
  .hero-v2 { min-height: 720px; padding: 0; }
  .hero-v2-copy { width: calc(100% - 36px); padding-top: 140px; }
  .hero-v2-copy h1 { font-size: 46px; }
  .hero-v2-copy span { font-size: 18px; }
  .projects-page .portfolio-hero-copy { width: calc(100% - 36px); padding: 132px 0 66px; }
  .projects-page .portfolio-hero-copy p { margin-bottom: 18px; font-size: 14px; }
  .projects-page .portfolio-hero-copy h1 { font-size: 34px; line-height: 1.14; }
  .projects-page .portfolio-hero-copy i { margin: 28px 0 24px; }
  .projects-page .portfolio-hero-copy span { font-size: 17px; }
  .bim-tech-hero { padding: 112px 18px 58px; }
  .bim-tech-copy p { margin-bottom: 18px; font-size: 14px; }
  .bim-tech-copy h1 { font-size: 40px; line-height: 1.14; }
  .bim-tech-copy i { margin: 28px 0 24px; }
  .bim-tech-copy span { font-size: 17px; }
  .bim-tech-stage { min-height: 310px; }
  .bim-view-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 1.15fr .85fr; height: 282px; gap: 7px; }
  .bim-view-grid .bim-view-plan { grid-column: 1 / -1; grid-row: 1; }
  .bim-view-grid figcaption { right: 7px; bottom: 7px; left: 7px; padding: 8px 9px; font-size: 10px; }
  .bim-review-section { width: calc(100% - 32px); padding: 58px 0; }
  .visual-subpage-hero { padding: 112px 18px 58px; }
  .visual-hero-copy > p { margin-bottom: 18px; font-size: 14px; }
  .visual-hero-copy h1 { font-size: 38px; line-height: 1.14; }
  .visual-hero-copy i { margin: 28px 0 24px; }
  .visual-hero-copy > span { font-size: 17px; }
  .visual-hero-media { min-height: 330px; }
  .visual-hero-media img { height: 330px; }
  .visual-hero-collage { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 150px; gap: 7px; padding: 7px; }
  .visual-hero-collage .collage-main { grid-column: 1 / -1; grid-row: 1; }
  .company-showcase, .quality-proof-section { width: calc(100% - 32px); padding: 58px 0; }
  .company-work-grid figure, .company-work-grid img { height: 340px; min-height: 340px; }
  .business-page .business-main { padding: 58px 16px 70px; }
  .business-page .business-visual-grid { grid-template-columns: 1fr; }
  .quality-visual-grid figure { height: 250px; }
  .quality-principles { padding: 0 16px 58px; }
  .portfolio-hero-ticker strong,
  .portfolio-hero-ticker a { font-size: 15px; }
  .home-stat-strip { width: calc(100% - 32px); margin-top: -34px; grid-template-columns: 1fr; }
  .home-stat-strip article { min-height: 88px; padding: 20px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
  .home-stat-strip article:last-child { border-bottom: 0; }
  .hero-card { padding: 24px; border-radius: 24px; }
  .hero-copy h1 { font-size: 35px; }
  .hero-visual img { height: 280px; }
  .model-note, .trust-row, .stage-grid, .business-list, .business-visual-grid, .process-table, .quality-grid, .documents-grid, .proof-grid { grid-template-columns: 1fr; }
  .business-visual-grid article { grid-template-rows: 230px 1fr; }
  .portfolio-card-grid, .portfolio-menu, .field-gallery { grid-template-columns: 1fr; }
  .portfolio-tab { min-height: 92px; }
  .portfolio-index, .project-detail-list { width: calc(100% - 32px); padding: 44px 0; }
  .gallery-grid { grid-template-columns: 1fr; }
  .subpage .page-hero, .case-detail, .gallery-section, .case-list-section { width: calc(100% - 32px); padding: 44px 0; }
  .stage-section, .split-section, .bim-section, .process-section, .business-section, .projects-section, .quality-section, .documents-section, .faq-section, .contact-section { width: 100%; padding: 58px 16px; }
  .company-list div { grid-template-columns: 1fr; gap: 4px; }
  .model-card, .model-card.large { min-height: 300px; }
  .project-main img { height: 300px; }
  .contact-card { padding: 24px; border-radius: 24px; }
  .site-footer { flex-direction: column; text-align: center; }
}

@media (max-width: 640px) {
  .subpage.projects-page .portfolio-hero {
    width: 100%;
    padding: 0;
  }
}

/* Portfolio index — technical case option 3 */
body:has(.project-catalog),
body:has(.project-detail-page) {
  background: #f1f3f5;
}

.portfolio-site-header {
  position: relative;
  min-height: 68px;
  padding-inline: clamp(20px, 4vw, 64px);
  background: #071523;
  backdrop-filter: none;
}

.portfolio-site-header .nav-item > a {
  height: 68px;
}

.project-catalog {
  overflow: visible;
}

.project-catalog-intro {
  display: grid;
  grid-template-columns: minmax(0, .66fr) minmax(320px, .34fr);
  gap: 72px;
  align-items: center;
  padding: 30px max(32px, calc((100% - 1240px) / 2));
  background: #071523;
  color: #fff;
}

.project-catalog-intro > div > p,
.project-catalog-toolbar > div > p,
.project-detail-heading > div > p,
.project-detail-story > div:first-child > p {
  margin: 0 0 9px;
  color: #62a4ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
}

.project-catalog-intro h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.15;
  letter-spacing: -.035em;
}

.project-catalog-summary {
  max-width: 480px;
  margin: 0;
  color: rgba(255, 255, 255, .7);
  font-size: 14px;
  line-height: 1.7;
}

.project-catalog-body {
  width: min(1240px, calc(100% - 64px));
  margin: 0 auto;
  padding: 58px 0 96px;
}

.project-catalog-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 28px;
}

.project-catalog-toolbar h2 {
  margin: 0;
  color: #102032;
  font-size: clamp(30px, 3vw, 44px);
  letter-spacing: -.035em;
}

.project-filters {
  display: flex;
  gap: 8px;
  padding-bottom: 2px;
}

.project-filters button {
  min-width: 68px;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid #cfd6dd;
  border-radius: 0;
  background: transparent;
  color: #526171;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
}

.project-filters button:hover,
.project-filters button:focus-visible {
  border-color: #1f65d6;
  color: #123d75;
}

.project-filters button.is-active {
  border-color: #071523;
  background: #071523;
  color: #fff;
}

.project-feature {
  min-height: 310px;
  margin-bottom: 24px;
}

.project-feature-link {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(350px, .88fr);
  height: 340px;
  min-height: 0;
  overflow: hidden;
  background: #071523;
  color: #fff;
}

.project-feature-image {
  min-width: 0;
  height: 340px;
  min-height: 0;
  background: #dfe4e8;
}

.project-feature-image img,
.project-index-image img,
.project-photo-mosaic img,
.project-gallery-dialog img {
  filter: none !important;
  image-rendering: auto;
}

.project-feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px 32px;
}

.project-feature-copy > p {
  margin: 0 0 13px;
  color: #62a4ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
}

.project-feature-copy h3 {
  margin: 0 0 10px;
  font-size: clamp(29px, 3vw, 42px);
  line-height: 1.12;
  letter-spacing: -.04em;
}

.project-feature-copy > span {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, .67);
  font-size: 15px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.project-feature-copy dl {
  display: grid;
  gap: 5px;
  margin: 0 0 16px;
}

.project-feature-copy dl div {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 10px;
  font-size: 13px;
}

.project-feature-copy dt {
  color: rgba(255, 255, 255, .44);
  font-weight: 800;
}

.project-feature-copy dd {
  margin: 0;
  color: rgba(255, 255, 255, .84);
}

.project-feature-copy > strong,
.project-index-copy > strong {
  align-self: flex-start;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  font-size: 14px;
  font-weight: 900;
}

.project-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.project-index-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d7dde3;
  background: #fff;
}

.project-index-card a {
  display: block;
  height: 100%;
}

.project-index-image {
  position: relative;
  height: 205px;
  overflow: hidden;
  background: #e2e6e9;
}

.project-index-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.project-index-card:hover .project-index-image img {
  transform: scale(1.018);
}

.project-index-image > span {
  position: absolute;
  top: 14px;
  left: 14px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 30px;
  background: rgba(7, 21, 35, .88);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.project-index-copy {
  min-height: 196px;
  padding: 22px;
}

.project-index-copy > p {
  margin: 0 0 9px;
  color: #1f65d6;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
}

.project-index-copy h3 {
  margin: 0 0 12px;
  color: #102032;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -.025em;
}

.project-index-copy > span {
  display: block;
  min-height: 43px;
  margin-bottom: 16px;
  color: #697684;
  font-size: 13px;
  line-height: 1.6;
}

.project-index-copy > strong {
  color: #22364d;
  font-size: 12px;
}

.project-empty {
  grid-column: 1 / -1;
  padding: 48px;
  border: 1px solid #d7dde3;
  background: #fff;
  color: #697684;
  text-align: center;
}

.portfolio-footer {
  background: #071523;
  color: rgba(255, 255, 255, .58);
}

.portfolio-footer strong {
  color: #fff;
}

/* Project detail */
.project-detail-page {
  overflow: visible;
}

.project-detail-loading,
.project-not-found {
  width: min(1180px, calc(100% - 48px));
  min-height: 55vh;
  margin: 0 auto;
  padding: 110px 0;
  color: #66727f;
}

.project-not-found a {
  display: inline-block;
  margin-top: 18px;
  border-bottom: 1px solid currentColor;
  color: #1f65d6;
  font-weight: 900;
}

.project-detail-hero {
  padding: 46px max(32px, calc((100% - 1180px) / 2)) 42px;
  background: #071523;
  color: #fff;
}

.project-back-link {
  display: inline-block;
  margin-bottom: 42px;
  color: rgba(255, 255, 255, .68);
  font-size: 13px;
  font-weight: 850;
}

.project-back-link:hover,
.project-back-link:focus-visible {
  color: #fff;
}

.project-detail-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 60px;
  align-items: end;
}

.project-detail-heading h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.08;
  letter-spacing: -.045em;
}

.project-detail-heading > div > span {
  display: block;
  max-width: 680px;
  color: rgba(255, 255, 255, .67);
  font-size: 16px;
  line-height: 1.8;
}

.project-detail-heading dl {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 24px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .24);
}

.project-detail-heading dl div {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 12px;
  font-size: 13px;
}

.project-detail-heading dt {
  color: rgba(255, 255, 255, .42);
  font-weight: 850;
}

.project-detail-heading dd {
  margin: 0;
  color: rgba(255, 255, 255, .86);
}

.project-photo-mosaic {
  position: relative;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, 210px);
  gap: 4px;
  width: min(1180px, calc(100% - 64px));
  margin: 36px auto 0;
  overflow: hidden;
  background: #dce2e7;
}

.project-mosaic-item {
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #dce2e7;
  cursor: pointer;
}

.project-mosaic-item-1 {
  grid-row: 1 / 3;
}

.project-mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-view-all {
  position: absolute;
  right: 16px;
  bottom: 16px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(7, 21, 35, .2);
  background: rgba(255, 255, 255, .95);
  color: #102032;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.project-view-all span {
  margin-left: 8px;
  color: #1f65d6;
}

.project-detail-story {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 90px;
  width: min(1060px, calc(100% - 64px));
  margin: 0 auto;
  padding: 86px 0;
}

.project-detail-story h2 {
  margin: 0;
  color: #102032;
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.25;
  letter-spacing: -.04em;
}

.project-detail-story > div:last-child > p {
  margin: 0 0 16px;
  color: #5c6977;
  font-size: 16px;
  line-height: 1.9;
}

.project-gallery-button {
  min-height: 48px;
  margin-top: 14px;
  padding: 0 22px;
  border: 0;
  background: #071523;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.project-detail-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto 88px;
  border-top: 1px solid #cfd6dd;
  border-bottom: 1px solid #cfd6dd;
}

.project-detail-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 74px;
  color: #22364d;
  font-size: 14px;
  font-weight: 900;
}

.project-detail-actions a + a {
  border-left: 1px solid #cfd6dd;
}

.project-detail-actions a:hover,
.project-detail-actions a:focus-visible {
  background: #fff;
}

.project-gallery-dialog {
  width: min(1280px, calc(100% - 32px));
  max-width: none;
  height: min(880px, calc(100vh - 32px));
  max-height: none;
  padding: 0;
  border: 0;
  background: #08111b;
  color: #fff;
}

.project-gallery-dialog::backdrop {
  background: rgba(1, 7, 12, .88);
}

.project-gallery-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) 96px;
  height: 100%;
}

.project-gallery-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 22px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.project-gallery-topbar > div {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.project-gallery-topbar span {
  color: rgba(255, 255, 255, .52);
  font-size: 12px;
}

.project-gallery-topbar button,
.gallery-step {
  border: 1px solid rgba(255, 255, 255, .2);
  background: transparent;
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.project-gallery-topbar button {
  min-width: 64px;
  min-height: 36px;
}

.project-gallery-stage {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) 68px;
  min-height: 0;
}

.project-gallery-stage figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 18px;
}

.project-gallery-stage img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  background: #08111b;
}

.project-gallery-stage figcaption {
  min-height: 32px;
  padding-top: 10px;
  color: rgba(255, 255, 255, .63);
  font-size: 12px;
  text-align: center;
}

.gallery-step {
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, .08);
}

.gallery-step:last-child {
  border-right: 0;
  border-left: 1px solid rgba(255, 255, 255, .08);
}

.project-gallery-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 18px 14px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.project-gallery-thumbs button {
  flex: 0 0 92px;
  height: 68px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  background: #18222d;
  opacity: .58;
  cursor: pointer;
}

.project-gallery-thumbs button.is-active {
  border-color: #62a4ff;
  opacity: 1;
}

.project-gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.gallery-is-open {
  overflow: hidden;
}

@media (max-width: 980px) {
  .portfolio-site-header {
    position: sticky;
  }

  .project-catalog-intro {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 38px;
  }

  .project-feature-link {
    grid-template-columns: 1.3fr 1fr;
  }

  .project-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-detail-heading {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .project-detail-heading dl {
    max-width: 580px;
  }

  .project-photo-mosaic {
    grid-template-columns: 1.6fr 1fr;
    grid-template-rows: repeat(2, 180px);
  }

  .project-mosaic-item:nth-of-type(n + 4) {
    display: none;
  }

  .project-detail-story {
    gap: 48px;
  }
}

@media (max-width: 700px) {
  .portfolio-site-header {
    min-height: 68px;
  }

  .project-catalog-intro {
    padding: 34px 18px;
  }

  .project-catalog-intro h1 {
    font-size: 34px;
  }

  .project-catalog-summary {
    font-size: 14px;
  }

  .project-catalog-body {
    width: calc(100% - 32px);
    padding: 42px 0 68px;
  }

  .project-catalog-toolbar {
    display: block;
  }

  .project-filters {
    margin-top: 24px;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .project-filters button {
    flex: 0 0 auto;
  }

  .project-feature {
    min-height: 0;
  }

  .project-feature-link {
    display: block;
    height: auto;
    min-height: 0;
  }

  .project-feature-image {
    min-height: 0;
    height: 250px;
  }

  .project-feature-image img {
    max-height: none;
  }

  .project-feature-copy {
    padding: 28px 24px 32px;
  }

  .project-feature-copy h3 {
    font-size: 30px;
  }

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

  .project-index-image {
    height: 210px;
  }

  .project-index-copy {
    min-height: 0;
  }

  .project-detail-hero {
    padding: 34px 18px 36px;
  }

  .project-back-link {
    margin-bottom: 28px;
  }

  .project-detail-heading h1 {
    font-size: 38px;
  }

  .project-detail-heading > div > span {
    font-size: 14px;
  }

  .project-photo-mosaic {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 250px 110px;
    width: 100%;
    margin-top: 0;
  }

  .project-mosaic-item-1 {
    grid-column: 1 / 3;
    grid-row: 1;
  }

  .project-mosaic-item-2,
  .project-mosaic-item-3 {
    grid-row: 2;
  }

  .project-mosaic-item:nth-of-type(n + 4) {
    display: none;
  }

  .project-view-all {
    right: 12px;
    bottom: 12px;
  }

  .project-detail-story {
    grid-template-columns: 1fr;
    gap: 32px;
    width: calc(100% - 36px);
    padding: 58px 0;
  }

  .project-detail-story h2 {
    font-size: 34px;
  }

  .project-detail-actions {
    width: calc(100% - 36px);
    margin-bottom: 62px;
  }

  .project-gallery-dialog {
    width: 100%;
    height: 100%;
  }

  .project-gallery-shell {
    grid-template-rows: auto minmax(0, 1fr) 82px;
  }

  .project-gallery-stage {
    grid-template-columns: 52px minmax(0, 1fr) 52px;
  }

  .project-gallery-stage figure {
    padding: 10px;
  }

  .project-gallery-thumbs button {
    flex-basis: 78px;
    height: 58px;
  }
}

/* Compact browser and mobile header: keep every menu label visible. */
@media (max-width: 980px) {
  .site-header,
  .site-header-dark {
    position: sticky;
    top: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    min-height: 0;
    padding: 12px 16px 0;
  }

  .site-header-dark {
    background: #071523;
  }

  .site-header .brand {
    min-height: 46px;
  }

  .site-header .nav-toggle {
    display: none;
  }

  .site-header .main-nav,
  .site-header-dark .main-nav {
    position: static;
    right: auto;
    left: auto;
    display: flex;
    grid-column: 1;
    width: 100%;
    padding: 0;
    overflow-x: auto;
    flex-direction: row;
    gap: 0;
    border: 0;
    border-top: 1px solid rgba(255,255,255,.14);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    scrollbar-width: none;
  }

  .site-header:not(.site-header-dark) .main-nav {
    border-top-color: var(--line);
  }

  .site-header .main-nav::-webkit-scrollbar {
    display: none;
  }

  .site-header .nav-item {
    flex: 0 0 auto;
  }

  .site-header .nav-item > a,
  .site-header-dark .main-nav .nav-item > a {
    height: 44px;
    padding: 0 12px;
    font-size: 13px;
    white-space: nowrap;
  }
}
