/* =========================================================
   壹集物业 · 企业宣传站
   Design tokens, layout, components
   ========================================================= */

:root {
  --navy-900: #062546;
  --navy-800: #0a3057;
  --navy-700: #0f3c6b;
  --blue-600: #1a5f9e;
  --blue-500: #1f6fb2;
  --blue-400: #3a8ac6;
  --teal-400: #17a2c4;
  --gold: #b8914a;
  --gold-soft: #d3b57e;
  --paper: #ffffff;
  --mist: #f2f6fa;
  --mist-2: #e8eff7;
  --line: #dbe5ef;
  --ink: #0f2138;
  --ink-soft: #2b3d54;
  --muted: #5b6d84;
  --muted-2: #8697a9;

  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong",
    "SimSun", "Times New Roman", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Hiragino Sans GB",
    "Helvetica Neue", Arial, sans-serif;

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 4px;
  --radius-lg: 10px;

  --shadow-sm: 0 2px 10px rgba(10, 48, 87, 0.06);
  --shadow-md: 0 18px 40px -18px rgba(10, 48, 87, 0.28);
  --shadow-lg: 0 40px 80px -40px rgba(6, 37, 70, 0.45);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

figure,
blockquote {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.28;
  color: var(--ink);
  letter-spacing: 0.01em;
}

p {
  margin: 0;
  text-wrap: pretty;
}

::selection {
  background: var(--navy-800);
  color: #fff;
}

.nowrap {
  white-space: nowrap;
}

:focus-visible {
  outline: 2px solid var(--teal-400);
  outline-offset: 3px;
}

/* ---------- layout helpers ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: clamp(64px, 9vw, 118px);
}

section[id] {
  scroll-margin-top: 88px;
}

.section--mist {
  background: var(--mist);
}

.section--paper {
  background: var(--paper);
}

.section--navy {
  background: var(--navy-800);
  color: rgba(255, 255, 255, 0.78);
  overflow: hidden;
}

.section-mark {
  position: absolute;
  top: clamp(28px, 4vw, 54px);
  right: clamp(16px, 4vw, 48px);
  width: clamp(180px, 24vw, 320px);
  opacity: 0.09;
  pointer-events: none;
}

.section-mark img {
  width: 100%;
  height: auto;
}

.section--navy h2,
.section--navy h3,
.section--navy h4 {
  color: #fff;
}

/* ---------- section heading ---------- */

.section-head {
  display: grid;
  gap: 18px;
  max-width: 720px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--blue-600);
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
}

.section--navy .eyebrow {
  color: var(--gold-soft);
}

.section-title {
  font-size: clamp(28px, 3.6vw, 44px);
  letter-spacing: 0.02em;
}

.section-title .thin {
  color: var(--blue-500);
}

.section--navy .section-title .thin {
  color: var(--gold-soft);
}

.section-lede {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.95;
}

.section--navy .section-lede {
  color: rgba(255, 255, 255, 0.66);
}

.head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 30px;
  border-radius: 2px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease),
    color 0.35s var(--ease), border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.35s var(--ease);
}

.btn:hover svg {
  transform: translateX(4px);
}

.btn--primary {
  background: var(--paper);
  color: var(--navy-800);
}

.btn--primary:hover {
  background: var(--gold);
  color: #fff;
}

.btn--solid {
  background: var(--navy-800);
  color: #fff;
}

.btn--solid:hover {
  background: var(--blue-600);
}

.btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: #fff;
}

.btn--ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn--outline {
  border: 1px solid var(--line);
  color: var(--navy-800);
  background: #fff;
}

.btn--outline:hover {
  border-color: var(--navy-800);
}

/* ---------- top bar ---------- */

.topbar {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 40px;
}

.topbar a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s var(--ease);
}

.topbar a:hover {
  color: #fff;
}

.topbar__group {
  display: flex;
  align-items: center;
  gap: 26px;
}

.topbar svg {
  width: 14px;
  height: 14px;
  color: var(--gold-soft);
}

/* ---------- header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(219, 229, 239, 0.9);
  transition: box-shadow 0.4s var(--ease), background-color 0.4s var(--ease);
}

.header.is-stuck {
  box-shadow: 0 10px 30px -18px rgba(6, 37, 70, 0.4);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand img {
  height: 46px;
  width: auto;
}

.brand__divider {
  width: 1px;
  height: 30px;
  background: var(--line);
}

.brand__text {
  display: grid;
  gap: 2px;
  line-height: 1.2;
}

.brand__text strong {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.06em;
}

.brand__text span {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--muted-2);
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
}

.nav a {
  position: relative;
  padding-block: 6px;
  font-size: 15px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  transition: color 0.3s var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--blue-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav a:hover,
.nav a.is-active {
  color: var(--navy-800);
}

.nav a:hover::after,
.nav a.is-active::after {
  transform: scaleX(1);
}

.header__cta {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 22px;
  background: var(--navy-800);
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.08em;
  border-radius: 2px;
  transition: background-color 0.3s var(--ease);
}

.header__cta:hover {
  background: var(--blue-600);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 2px;
}

.nav-toggle span {
  position: relative;
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: background-color 0.2s;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.nav-open .nav-toggle span {
  background: transparent;
}

.nav-open .nav-toggle span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-open .nav-toggle span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: min(92vh, 880px);
  min-height: min(92svh, 880px);
  padding-top: clamp(80px, 12vw, 140px);
  color: #fff;
  overflow: hidden;
  background: var(--navy-900);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.04);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
      100deg,
      rgba(6, 37, 70, 0.96) 0%,
      rgba(6, 37, 70, 0.92) 34%,
      rgba(8, 44, 80, 0.62) 58%,
      rgba(8, 44, 80, 0.28) 78%,
      rgba(8, 44, 80, 0.42) 100%
    ),
    linear-gradient(to top, rgba(6, 37, 70, 0.85), transparent 45%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.16;
  background-image: repeating-linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.16) 0px,
    rgba(255, 255, 255, 0.16) 1px,
    transparent 1px,
    transparent 84px
  );
}

.hero__inner {
  padding-bottom: clamp(28px, 4vw, 48px);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  letter-spacing: 0.26em;
  color: var(--gold-soft);
  text-transform: uppercase;
}

.hero__eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--gold-soft);
}

.hero h1 {
  margin: 22px 0 0;
  font-size: clamp(42px, 6.6vw, 84px);
  line-height: 1.12;
  color: #fff;
  letter-spacing: 0.02em;
  text-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.hero h1 em {
  font-style: normal;
  color: var(--gold-soft);
}

.hero__sub {
  max-width: 560px;
  margin-top: 24px;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.95;
  color: rgba(255, 255, 255, 0.78);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero__stats {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(to top, rgba(6, 37, 70, 0.55), transparent);
}

.hero__stats .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
}

.stat {
  padding: clamp(18px, 2.4vw, 26px) 0;
  display: grid;
  gap: 4px;
}

.stat + .stat {
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  padding-left: clamp(16px, 2.4vw, 28px);
}

.stat__num {
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.1;
  color: #fff;
  letter-spacing: 0.02em;
}

.stat__num small {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  margin-left: 4px;
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 0.04em;
}

.stat__label {
  font-size: 12.5px;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.55);
}

.scroll-hint {
  position: absolute;
  right: clamp(20px, 5vw, 56px);
  bottom: 108px;
  display: grid;
  justify-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.5);
  writing-mode: vertical-rl;
}

.scroll-hint span {
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6), transparent);
  animation: hint 2.4s var(--ease) infinite;
}

@keyframes hint {
  0%,
  100% {
    transform: scaleY(0.4);
    transform-origin: top;
    opacity: 0.4;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
    opacity: 1;
  }
}

/* ---------- about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(36px, 6vw, 84px);
  align-items: start;
}

.prose p + p {
  margin-top: 20px;
}

.prose .lead {
  font-family: var(--serif);
  font-size: clamp(18px, 1.9vw, 21px);
  line-height: 1.9;
  color: var(--ink);
}

.prose p {
  color: var(--muted);
}

.prose strong {
  color: var(--navy-800);
  font-weight: 600;
}

.quote-mark {
  font-family: var(--serif);
  font-size: 64px;
  line-height: 1;
  color: var(--gold-soft);
  opacity: 0.7;
}

.about-aside {
  position: relative;
  display: grid;
  gap: 20px;
}

.license-card {
  position: relative;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.license-card::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(184, 145, 74, 0.28);
  pointer-events: none;
}

.license-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top center;
}

.license-card figcaption {
  padding: 14px 6px 4px;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--muted-2);
  text-align: center;
}

.badge-stack {
  display: grid;
  gap: 12px;
}

.badge {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  font-size: 14px;
  color: var(--ink-soft);
}

.badge svg {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--blue-500);
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: clamp(44px, 6vw, 72px);
  background: var(--line);
  border: 1px solid var(--line);
}

.feature {
  padding: 28px 24px;
  background: #fff;
  display: grid;
  gap: 8px;
}

.feature__idx {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.feature h3 {
  font-size: 18px;
  letter-spacing: 0.06em;
}

.feature p {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted-2);
}

/* ---------- cases ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.chip {
  height: 40px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.06em;
  transition: all 0.3s var(--ease);
}

.chip:hover {
  border-color: var(--blue-400);
  color: var(--navy-800);
}

.chip.is-active {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: #fff;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 28px);
}

.case-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  text-align: left;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease),
    border-color 0.45s var(--ease);
}

.case-card:hover {
  transform: translateY(-6px);
  border-color: rgba(31, 111, 178, 0.4);
  box-shadow: var(--shadow-md);
}

.case-card[hidden] {
  display: none;
}

.case-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--mist-2);
}

.case-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.case-card:hover .case-card__media img {
  transform: scale(1.06);
}

.case-card__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 12px;
  background: rgba(6, 37, 70, 0.82);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 11.5px;
  letter-spacing: 0.12em;
}

.case-card__body {
  display: grid;
  gap: 10px;
  padding: 22px 22px 24px;
  flex: 1;
  align-content: start;
}

.case-card__title {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.case-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 13px;
  color: var(--blue-600);
}

.case-card__meta span {
  color: var(--muted-2);
}

.case-card__desc {
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.case-card__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  color: var(--navy-800);
}

.case-card__more::after {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold);
  transition: width 0.35s var(--ease);
}

.case-card:hover .case-card__more::after {
  width: 36px;
}

.cases-empty {
  grid-column: 1 / -1;
  padding: 60px;
  text-align: center;
  color: var(--muted-2);
  border: 1px dashed var(--line);
}

.case-card--more {
  display: grid;
  place-items: center;
  padding: clamp(26px, 3vw, 40px);
  background: linear-gradient(150deg, var(--navy-800) 0%, #10507f 100%);
  border-color: transparent;
  color: #fff;
}

.case-card--more:hover {
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

.case-card--more__inner {
  display: grid;
  gap: 18px;
  justify-items: start;
}

.case-card--more .eyebrow {
  color: var(--gold-soft);
}

.case-card--more .eyebrow::before {
  background: var(--gold-soft);
}

.case-card--more p {
  font-family: var(--serif);
  font-size: clamp(17px, 1.7vw, 19px);
  line-height: 1.9;
  color: #fff;
  letter-spacing: 0.02em;
}

.case-card--more .case-card__more {
  color: #fff;
}

.case-card--more .case-card__more::after {
  background: var(--gold-soft);
}

.case-card--more:hover .case-card__more::after {
  width: 36px;
}

/* ---------- culture ---------- */

.culture-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.4vw, 30px);
  margin-top: clamp(30px, 4vw, 48px);
}

.pillar {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 38px 32px 34px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease),
    transform 0.4s var(--ease);
}

.pillar:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(211, 181, 126, 0.5);
  transform: translateY(-4px);
}

.pillar__num {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--gold-soft);
}

.pillar h3 {
  margin-top: 18px;
  font-size: 24px;
  letter-spacing: 0.08em;
}

.pillar__body {
  margin-top: 16px;
  font-family: var(--serif);
  font-size: clamp(18px, 1.9vw, 22px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.04em;
}

.pillar__body span {
  display: block;
}

.pillar__note {
  margin-top: auto;
  padding-top: 22px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.9;
}

.culture-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: clamp(38px, 5vw, 60px);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.culture-card {
  padding: 30px 28px;
  background: var(--navy-800);
}

.culture-card h4 {
  font-size: 17px;
  color: var(--gold-soft);
  letter-spacing: 0.12em;
}

.culture-card ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.78);
}

.culture-card li::before {
  content: "—";
  margin-right: 10px;
  color: rgba(211, 181, 126, 0.7);
}

/* ---------- galleries ---------- */

.gallery-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin: clamp(46px, 6vw, 76px) 0 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.gallery-head:first-child {
  margin-top: 0;
}

.gallery-head h3 {
  font-size: clamp(20px, 2.2vw, 24px);
  letter-spacing: 0.06em;
}

.gallery-head p {
  font-size: 13px;
  color: var(--muted-2);
  letter-spacing: 0.06em;
}

.tiles {
  display: grid;
  gap: clamp(12px, 1.6vw, 18px);
}

.tiles--5 {
  grid-template-columns: repeat(6, 1fr);
}

.tiles--5 .tile:nth-child(1),
.tiles--5 .tile:nth-child(2),
.tiles--5 .tile:nth-child(3) {
  grid-column: span 2;
}

.tiles--5 .tile:nth-child(4),
.tiles--5 .tile:nth-child(5) {
  grid-column: span 3;
}

.tiles--4 {
  grid-template-columns: repeat(4, 1fr);
}

.tiles--3 {
  grid-template-columns: repeat(3, 1fr);
}

.tiles--2 {
  grid-template-columns: repeat(2, 1fr);
}

.tile {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--mist-2);
  border: 1px solid transparent;
  text-align: left;
}

.tile img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.tile--tall img {
  aspect-ratio: 3 / 4;
}

.tile--wide img {
  aspect-ratio: 16 / 9;
}

.tile:hover img {
  transform: scale(1.05);
}

.tile__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 16px 14px;
  background: linear-gradient(to top, rgba(6, 37, 70, 0.92), transparent);
  color: #fff;
  font-size: 13.5px;
  letter-spacing: 0.08em;
  line-height: 1.5;
}

.tile__zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy-800);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.tile:hover .tile__zoom {
  opacity: 1;
  transform: none;
}

.tile__zoom svg {
  width: 16px;
  height: 16px;
}

/* ---------- party ---------- */

.party-quote {
  max-width: 880px;
  margin: clamp(6px, 1.5vw, 14px) 0 clamp(40px, 5vw, 62px);
}

.pull-quote {
  position: relative;
  padding-left: 26px;
  border-left: 2px solid var(--gold);
}

.pull-quote p {
  font-family: var(--serif);
  font-size: clamp(19px, 2.1vw, 24px);
  line-height: 1.8;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.pull-quote footer {
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
}

/* ---------- honors ---------- */

.qual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: clamp(40px, 5vw, 64px);
}

.qual {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  gap: clamp(18px, 2.4vw, 28px);
  align-items: center;
  padding: clamp(18px, 2.4vw, 28px);
  background: #fff;
}

.qual__frame {
  display: block;
  width: 100%;
  height: 236px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease),
    transform 0.35s var(--ease);
}

.qual__frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qual__frame:hover {
  border-color: rgba(184, 145, 74, 0.55);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.qual figcaption {
  display: grid;
  gap: 8px;
}

.qual__org {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--muted-2);
}

.qual strong {
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 21px);
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.qual__note {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(12px, 1.6vw, 20px);
}

.cert {
  display: grid;
  gap: 14px;
  text-align: center;
}

.cert__frame {
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.cert:hover .cert__frame {
  border-color: rgba(184, 145, 74, 0.55);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.cert__frame img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
}

.cert h3 {
  font-size: 15px;
  font-weight: 500;
  font-family: var(--sans);
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.honor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.8vw, 22px);
  margin-top: clamp(40px, 5vw, 56px);
}

.honor-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  text-align: left;
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease),
    transform 0.35s var(--ease);
}

.honor-card:hover {
  border-color: rgba(31, 111, 178, 0.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.honor-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background: #fff;
}

.honor-card__org {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--muted-2);
}

.honor-card__text {
  display: block;
}

.honor-card__title {
  display: block;
  margin-top: 6px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  line-height: 1.5;
}

/* ---------- ops ---------- */

.ops-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.ops-lead {
  font-family: var(--serif);
  font-size: clamp(19px, 2.1vw, 24px);
  line-height: 1.85;
  color: var(--ink);
}

.ops-lead + p {
  margin-top: 20px;
  color: var(--muted);
  line-height: 1.95;
}

.platforms {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.platform {
  flex: 1;
  padding: 18px;
  border: 1px solid var(--line);
  background: #fff;
  text-align: center;
}

.platform strong {
  display: block;
  font-family: var(--serif);
  font-size: 19px;
  color: var(--navy-800);
  letter-spacing: 0.06em;
}

.platform span {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--muted-2);
}

.modules {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.module {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 20px;
  padding: 26px 24px;
  background: #fff;
  align-items: start;
}

.module__title {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--navy-800);
  letter-spacing: 0.06em;
  padding-top: 2px;
}

.module ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.module li {
  padding: 5px 12px;
  background: var(--mist);
  color: var(--ink-soft);
  font-size: 13.5px;
  letter-spacing: 0.04em;
}

/* ---------- services ---------- */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 24px);
}

.service {
  display: grid;
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  text-align: left;
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease),
    transform 0.35s var(--ease);
}

.service:hover {
  transform: translateY(-5px);
  border-color: rgba(31, 111, 178, 0.4);
  box-shadow: var(--shadow-md);
}

.service img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.service:hover img {
  transform: scale(1.05);
}

.service__title {
  display: block;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 18px 20px;
  color: var(--ink);
}

.sub-block {
  margin-top: clamp(50px, 6vw, 80px);
}

.sub-block:first-of-type {
  margin-top: 0;
}

/* ---------- contact ---------- */

.contact {
  position: relative;
  overflow: hidden;
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.72);
}

.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background: radial-gradient(
      circle at 78% 18%,
      rgba(23, 162, 196, 0.22),
      transparent 55%
    ),
    radial-gradient(circle at 12% 82%, rgba(31, 111, 178, 0.28), transparent 55%);
}

.contact .container {
  position: relative;
}

.contact h2 {
  font-size: clamp(28px, 3.8vw, 46px);
  color: #fff;
  line-height: 1.35;
  max-width: 780px;
}

.contact h2 em {
  font-style: normal;
  color: var(--gold-soft);
}

.contact-lede {
  margin-top: 18px;
  max-width: 640px;
  font-size: 15.5px;
  line-height: 1.95;
  color: rgba(255, 255, 255, 0.62);
}

.sector-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.sector {
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 13.5px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.82);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease),
    background-color 0.3s var(--ease);
}

.sector:hover {
  border-color: var(--gold-soft);
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: end;
}

.coop {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
}

.coop span {
  font-size: 11.5px;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.45);
}

.coop strong {
  font-family: var(--serif);
  font-size: clamp(19px, 2.2vw, 23px);
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.06em;
}

.coop strong::before {
  content: "";
  display: inline-block;
  width: 42px;
  height: 1px;
  margin-right: 16px;
  vertical-align: 6px;
  background: var(--gold-soft);
}

.contact-method {
  display: grid;
  gap: 18px;
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.contact-method__item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-method__item svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--gold-soft);
}

.contact-method__item span {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.45);
}

.contact-method__item a,
.contact-method__item p {
  font-family: var(--serif);
  font-size: 19px;
  color: #fff;
  letter-spacing: 0.04em;
  transition: color 0.3s var(--ease);
}

.contact-method__item a:hover {
  color: var(--gold-soft);
}

.qr-card {
  padding: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  text-align: center;
}

.qr-card img {
  width: 100%;
  max-width: 168px;
  margin: 0 auto 14px;
  background: #fff;
  padding: 8px;
}

.qr-card strong {
  display: block;
  font-size: 14px;
  letter-spacing: 0.14em;
  color: #fff;
}

.qr-card span {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- footer ---------- */

.footer {
  background: #041d36;
  color: rgba(255, 255, 255, 0.55);
  padding-block: 56px 30px;
  font-size: 13.5px;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brand img {
  height: 54px;
  width: auto;
  margin-bottom: 18px;
}

.footer__brand p {
  max-width: 340px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.5);
}

.footer h4 {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer a:hover {
  color: #fff;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.35);
}

/* ---------- dialogs ---------- */

dialog {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: none;
  max-height: none;
  color: inherit;
}

dialog::backdrop {
  background: rgba(4, 21, 38, 0.82);
  backdrop-filter: blur(6px);
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy-800);
  border-radius: 50%;
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease);
}

.dialog-close:hover {
  transform: rotate(90deg);
  background: #fff;
}

.dialog-close svg {
  width: 18px;
  height: 18px;
}

/* case dialog */

.case-dialog {
  width: min(1080px, 92vw);
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.case-dialog__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-height: 86vh;
  overflow: auto;
}

.case-dialog__media {
  background: var(--mist-2);
}

.case-dialog__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

.case-dialog__body {
  padding: clamp(28px, 4vw, 48px);
  display: grid;
  align-content: start;
  gap: 16px;
}

.case-dialog__body h3 {
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: 0.04em;
}

.case-dialog__tag {
  font-size: 11.5px;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
}

.case-dialog__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding: 14px 0;
  border-block: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--blue-600);
}

.case-dialog__meta span {
  color: var(--muted-2);
}

.case-dialog__body p {
  font-size: 15px;
  line-height: 1.95;
  color: var(--muted);
}

.case-dialog__foot {
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--muted-2);
}

/* gallery dialog */

.gallery-dialog {
  width: min(1180px, 94vw);
}

.gallery-dialog__stage {
  position: relative;
  display: grid;
  place-items: center;
  background: #062546;
  min-height: 50vh;
}

.gallery-dialog__stage img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
}

.gallery-dialog__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 20px;
  background: rgba(4, 21, 38, 0.96);
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  letter-spacing: 0.06em;
}

.gallery-dialog__count {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.5);
  font-variant-numeric: tabular-nums;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  transition: background-color 0.3s var(--ease);
}

.gallery-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.gallery-nav--prev {
  left: 16px;
}

.gallery-nav--next {
  right: 16px;
}

.gallery-nav svg {
  width: 20px;
  height: 20px;
}

/* ---------- reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- to top ---------- */

.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: rgba(10, 48, 87, 0.9);
  color: #fff;
  border-radius: 50%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease),
    background-color 0.35s var(--ease), visibility 0.35s;
  backdrop-filter: blur(6px);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  background: var(--blue-600);
}

.to-top svg {
  width: 18px;
  height: 18px;
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .nav {
    gap: 16px;
  }
  .nav a {
    font-size: 14px;
  }
  .header__cta {
    display: none;
  }
  .cert-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .honor-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cases-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .about-grid,
  .ops-grid {
    grid-template-columns: 1fr;
  }
  .about-aside {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .about-aside .license-card {
    grid-row: span 2;
  }
  .feature-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer__top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1024px) {
  .topbar {
    display: none;
  }
  .header__inner {
    min-height: 64px;
  }
  .brand img {
    height: 38px;
  }
  .brand__text {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .nav {
    position: fixed;
    inset: 64px 0 auto 0;
    z-index: 89;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
      visibility 0.3s;
  }
  .nav-open .nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav a {
    padding: 14px 0;
    font-size: 15px;
    border-bottom: 1px solid var(--mist-2);
  }
  .nav a::after {
    display: none;
  }
  .hero {
    min-height: 82svh;
  }
  .hero__stats .container {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat + .stat {
    border-left: 0;
  }
  .stat:nth-child(even) {
    border-left: 1px solid rgba(255, 255, 255, 0.14);
    padding-left: 20px;
  }
  .stat:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  .scroll-hint {
    display: none;
  }
  .culture-pillars,
  .culture-cards,
  .service-grid {
    grid-template-columns: 1fr;
  }
  .culture-cards {
    background: transparent;
    border: 0;
    gap: 12px;
  }
  .culture-card {
    border: 1px solid rgba(255, 255, 255, 0.14);
  }
  .tiles--5 {
    grid-template-columns: repeat(2, 1fr);
  }
  .tiles--5 .tile:nth-child(n) {
    grid-column: span 1;
  }
  .tiles--5 .tile:first-child {
    grid-column: span 2;
  }
  .tiles--4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .tiles--3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .qual-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .section-mark {
    display: none;
  }
  .case-dialog__inner {
    grid-template-columns: 1fr;
  }
  .case-dialog__media img {
    max-height: 36vh;
  }
  .footer__top {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .section-lede br {
    display: none;
  }
  section[id] {
    scroll-margin-top: 76px;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 15px;
  }
  .qual {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .qual__frame {
    height: 190px;
  }
  .hero h1 {
    font-size: clamp(38px, 11vw, 52px);
  }
  .hero__eyebrow {
    display: block;
    font-size: 11px;
    letter-spacing: 0.12em;
    line-height: 1.9;
  }
  .hero__eyebrow::before,
  .hero__sep {
    display: none;
  }
  .hero__eyebrow span {
    display: block;
  }
  .hero__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .hero__actions .btn {
    width: 100%;
    padding-inline: 22px;
  }
  .cases-grid,
  .tiles--2,
  .tiles--3,
  .tiles--4,
  .honor-grid,
  .cert-grid {
    grid-template-columns: 1fr;
  }
  .tiles--5 {
    grid-template-columns: 1fr;
  }
  .tiles--5 .tile:first-child {
    grid-column: span 1;
  }
  .about-aside {
    grid-template-columns: 1fr;
  }
  .feature-row {
    grid-template-columns: 1fr;
  }
  .module {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .filters {
    gap: 8px;
  }
  .chip {
    height: 36px;
    padding: 0 15px;
    font-size: 13px;
  }
  .gallery-head {
    flex-direction: column;
    gap: 6px;
  }
  .to-top {
    right: 14px;
    bottom: 14px;
  }
  .platforms {
    flex-direction: column;
  }
}
