:root {
  --bg: #07080a;
  --bg-2: #0d0f13;
  --panel: #11141a;
  --panel-2: #171b22;
  --text: #f6f2ea;
  --muted: #aaa39a;
  --line: rgba(255, 255, 255, 0.12);
  --gold: #d8ae45;
  --gold-soft: rgba(216, 174, 69, 0.14);
  --red: #ca4338;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
  text-wrap: pretty;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 78px);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 8, 10, 0.76);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform: translate3d(0, 0, 0);
  transition: background 0.28s ease, border-color 0.28s ease;
}

.site-header::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: left center;
  opacity: 0.86;
}

.site-header.is-scrolled {
  border-color: rgba(216, 174, 69, 0.18);
  background: rgba(7, 8, 10, 0.9);
}

.site-header.compact {
  position: sticky;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-logo {
  width: 150px;
  height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.06));
}

.company-brand-logo {
  width: clamp(128px, 12vw, 180px);
}

.brand-unit {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #111;
  background: var(--gold);
  font-weight: 950;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand strong {
  font-size: 15px;
  letter-spacing: 0.08em;
}

.brand small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav a:hover {
  color: var(--text);
}

.nav a {
  position: relative;
  transition: color 0.2s ease;
}

.nav a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.24s ease;
}

.nav a.is-active {
  color: var(--text);
}

.nav a.is-active::after,
.nav a:hover::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 124px clamp(20px, 6vw, 92px) 30px;
}

.experience-hero::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.55;
  background:
    linear-gradient(100deg, transparent 0 38%, rgba(216, 174, 69, 0.18) 47%, transparent 56%),
    linear-gradient(180deg, transparent, rgba(216, 174, 69, 0.05));
  mix-blend-mode: screen;
  transform: translateX(-70%);
}

.hero-backdrop,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.68;
  filter: contrast(1.08);
  transform: scale(1.06) translate3d(var(--hero-pan-x, 0), var(--hero-pan-y, 0), 0);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(7, 8, 10, 0.98), rgba(7, 8, 10, 0.84) 44%, rgba(7, 8, 10, 0.44)),
    linear-gradient(0deg, rgba(7, 8, 10, 0.98), rgba(7, 8, 10, 0.3) 52%, rgba(7, 8, 10, 0.86));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  padding-bottom: clamp(38px, 5vw, 70px);
}

.hero-copy {
  max-width: 860px;
}

.hero-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: clamp(8px, 1.2vw, 16px);
  margin-bottom: clamp(22px, 3vw, 38px);
}

.hero-brand-lockup span {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.22);
}

.hero-company-logo {
  width: clamp(108px, 10vw, 168px);
  max-height: 68px;
  object-fit: contain;
}

.hero-nas-logo {
  width: clamp(82px, 7.8vw, 132px);
  max-height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 0 24px rgba(202, 67, 56, 0.18));
}

.eyebrow,
.section-kicker,
.tag,
.identity-grid span,
.method-steps span,
.work-card span,
.member-grid span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 14px 0 22px;
  max-width: 760px;
  font-size: clamp(48px, 5.8vw, 86px);
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero h1 span {
  display: block;
  white-space: nowrap;
}

.hero-subtitle {
  max-width: 650px;
  color: rgba(246, 242, 234, 0.82);
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  font-weight: 800;
  white-space: nowrap;
}

.button.primary {
  color: #111;
  background: var(--gold);
  border-color: var(--gold);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.06);
}

.hero-metrics {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 1px;
  width: 100%;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.hero-metrics div {
  min-height: 92px;
  padding: 18px 24px;
  border-right: 1px solid var(--line);
  background: rgba(7, 8, 10, 0.52);
  backdrop-filter: blur(10px);
}

.hero-metrics div:last-child {
  border-right: 0;
}

.hero-metrics strong {
  display: block;
  color: var(--gold);
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1;
}

.hero-metrics span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.motion-ready .experience-hero::before {
  animation: site-light-sweep 6.4s ease-in-out 0.6s both;
}

.motion-ready .hero-backdrop img {
  animation: hero-camera-drift 14s ease-in-out both;
}

.motion-ready .hero-brand-lockup,
.motion-ready .hero .eyebrow,
.motion-ready .hero h1 span,
.motion-ready .hero-subtitle,
.motion-ready .hero-actions,
.motion-ready .hero-metrics {
  opacity: 0;
  transform: translateY(18px);
  animation: hero-rise 0.82s cubic-bezier(0.2, 0.74, 0.22, 1) forwards;
}

.motion-ready .hero-brand-lockup {
  animation-delay: 0.12s;
}

.motion-ready .hero .eyebrow {
  animation-delay: 0.22s;
}

.motion-ready .hero h1 span:first-child {
  animation-delay: 0.34s;
}

.motion-ready .hero h1 span:last-child {
  animation-delay: 0.46s;
}

.motion-ready .hero-subtitle {
  animation-delay: 0.58s;
}

.motion-ready .hero-actions {
  animation-delay: 0.7s;
}

.motion-ready .hero-metrics {
  animation-delay: 0.84s;
}

.section {
  padding: clamp(70px, 9vw, 128px) clamp(20px, 6vw, 92px);
  border-top: 1px solid var(--line);
}

.section-heading,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.85fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: start;
  margin-bottom: 42px;
}

.section h2 {
  margin: 10px 0 0;
  max-width: 920px;
  font-size: clamp(34px, 4.5vw, 64px);
  line-height: 1.12;
  letter-spacing: 0;
  text-wrap: balance;
}

.balanced-lines span {
  display: block;
  white-space: nowrap;
}

.section p {
  color: var(--muted);
  max-width: 68ch;
}

.identity {
  background: var(--bg-2);
}

.identity .section-heading {
  grid-template-columns: minmax(360px, 0.86fr) minmax(420px, 1.14fr);
  align-items: end;
}

.identity .section-heading h2 {
  max-width: 720px;
  font-size: clamp(40px, 4.1vw, 60px);
  line-height: 1.08;
}

.identity .section-heading p {
  max-width: 820px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: clamp(16px, 1.15vw, 19px);
}

.statement-band {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.7fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: end;
  padding: clamp(54px, 7vw, 90px) clamp(20px, 6vw, 92px);
  border-top: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(202, 67, 56, 0.22), transparent 46%),
    #090a0d;
}

.statement-band p {
  margin: 0 0 10px;
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.statement-band strong {
  display: block;
  max-width: 1100px;
  font-size: clamp(42px, 6vw, 96px);
  line-height: 0.98;
}

.statement-band ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.statement-band li {
  padding: 14px 18px;
  color: rgba(246, 242, 234, 0.9);
  border-left: 3px solid var(--gold);
  background: rgba(255, 255, 255, 0.045);
  font-size: clamp(20px, 2.2vw, 34px);
  font-weight: 900;
  line-height: 1.15;
}

.identity-grid,
.method-steps,
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.identity-grid article,
.method-steps article,
.service-grid article {
  padding: clamp(26px, 3vw, 42px);
  background: var(--panel);
}

.identity-grid article {
  display: flex;
  min-height: 340px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.identity-grid p {
  max-width: 24em;
  margin-right: auto;
  margin-left: auto;
  text-wrap: balance;
}

.company-logo-card img {
  width: min(170px, 62%);
  margin: 0 0 26px;
  object-fit: contain;
}

.identity-unit {
  position: relative;
}

.identity-unit strong {
  display: block;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.08);
  font-size: clamp(48px, 6vw, 82px);
  font-weight: 950;
  line-height: 0.8;
}

.identity-grid h3,
.method-steps h3,
.service-grid h3,
.work-card h3,
.member-grid h4 {
  margin: 12px 0 10px;
  font-size: 23px;
  line-height: 1.25;
  text-wrap: balance;
}

.method {
  background: #090a0d;
}

.method-steps {
  grid-template-columns: repeat(4, 1fr);
}

.method-steps article {
  position: relative;
  overflow: hidden;
}

.method-steps article::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0;
  background:
    linear-gradient(90deg, rgba(216, 174, 69, 0.16), transparent 42%),
    radial-gradient(circle at 20% 18%, rgba(216, 174, 69, 0.22), transparent 26%);
  transition: opacity 0.35s ease;
}

.method-steps article > * {
  position: relative;
  z-index: 1;
}

.method-steps article.is-active::before,
.method-steps article:hover::before {
  opacity: 1;
}

.director-feature {
  display: grid;
  grid-template-columns: minmax(260px, 0.58fr) minmax(0, 1.42fr);
  gap: 1px;
  margin-bottom: 24px;
  background: var(--line);
}

.director-portrait {
  position: relative;
  min-height: 440px;
  margin: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(216, 174, 69, 0.18), transparent 44%),
    #0b0d10;
}

.director-portrait::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 46%;
  content: "";
  background: linear-gradient(0deg, rgba(7, 8, 10, 0.82), transparent);
}

.director-portrait figcaption {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 16px;
  color: rgba(246, 242, 234, 0.72);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.director-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
}

.director-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 5vw, 62px);
  background: var(--panel);
}

.director-feature h3 {
  margin: 14px 0 18px;
  font-size: clamp(34px, 4.8vw, 70px);
  line-height: 1.02;
  text-wrap: balance;
}

.role-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 9px 13px;
  color: #111;
  background: var(--gold);
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
}

.director-lead {
  max-width: 760px;
  color: rgba(246, 242, 234, 0.9);
  font-size: clamp(17px, 1.35vw, 21px);
}

.director-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.director-facts span {
  padding: 8px 12px;
  color: rgba(246, 242, 234, 0.88);
  border: 1px solid rgba(216, 174, 69, 0.32);
  background: rgba(216, 174, 69, 0.08);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

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

.member-grid article {
  display: grid;
  grid-template-rows: 320px 1fr;
  min-height: 620px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
}

.member-grid article img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  object-position: center top;
  border-bottom: 1px solid var(--line);
  background: #0b0d10;
}

.member-grid article div:not(.team-photo-frame) {
  display: flex;
  flex-direction: column;
  padding: 22px;
}

.member-grid article .team-photo-frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  padding: 0;
  border-bottom: 1px solid var(--line);
  background-color: #15181e;
  background-repeat: no-repeat;
  background-position: center 32%;
  background-size: cover;
}

.member-grid article .team-photo-cici {
  background-image: url("./assets/team-cici-final-20260528-0106.jpg");
}

.member-grid article .team-photo-placeholder {
  position: relative;
  background:
    radial-gradient(circle at 50% 28%, rgba(216, 174, 69, 0.18), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 38%),
    #101318;
}

.member-grid article .team-photo-placeholder::after {
  content: "NAS";
  position: absolute;
  right: 18px;
  bottom: 16px;
  color: rgba(246, 242, 234, 0.16);
  font-size: 34px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.member-grid span {
  display: block;
  color: var(--gold);
  font-size: clamp(20px, 1.35vw, 24px);
  font-weight: 950;
  line-height: 1.18;
  letter-spacing: 0;
  text-transform: none;
}

.member-grid h4 {
  margin: 8px 0 14px;
  font-size: clamp(20px, 1.35vw, 24px);
}

.member-grid p {
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.72;
  text-wrap: pretty;
}

.member-grid img.team-photo-cici {
  object-position: center top;
}

.member-grid img.team-photo-may {
  object-position: center top;
}

.member-grid img.team-photo-peng {
  object-position: center top;
}

.member-grid .team-photo-crop {
  width: 100%;
  height: 100%;
  min-height: 320px;
  margin: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #0b0d10;
}

.member-grid img.team-photo-zoe {
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.35) translateY(-11%);
  transform-origin: center 42%;
}

.member-grid.team-grid-extra {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 16px !important;
  margin-top: 16px !important;
}

.member-grid.team-grid-extra article {
  position: static !important;
  display: grid !important;
  grid-template-rows: 510px 1fr !important;
  min-height: 820px !important;
  overflow: hidden !important;
  border: 1px solid var(--line) !important;
  background: var(--panel) !important;
}

.member-grid.team-grid-extra article img {
  position: static !important;
  display: block !important;
  width: 100% !important;
  height: 510px !important;
  min-height: 510px !important;
  max-height: 510px !important;
  object-fit: cover !important;
  object-position: center top !important;
  border-bottom: 1px solid var(--line) !important;
  background: #0f1218 !important;
}

.member-grid.team-grid-extra article > div {
  position: static !important;
  inset: auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  min-height: 0 !important;
  padding: 22px !important;
  background: var(--panel) !important;
}

.member-grid.team-grid-extra span,
.member-grid.team-grid-extra h4 {
  font-size: clamp(20px, 1.35vw, 24px) !important;
  line-height: 1.18 !important;
}

.member-grid.team-grid-extra span {
  color: var(--gold) !important;
  font-weight: 950 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.member-grid.team-grid-extra h4 {
  margin: 8px 0 14px !important;
}

.member-grid.team-grid-extra p {
  margin: 0 !important;
  color: #aaa39a !important;
  font-size: 14px !important;
  line-height: 1.72 !important;
}

.work {
  background: var(--bg-2);
}

.selected-work {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.work-cluster {
  margin-top: clamp(54px, 7vw, 96px);
}

.work-cluster:first-of-type {
  margin-top: 22px;
}

.work-cluster-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(216, 174, 69, 0.34);
}

.work-cluster-head > div {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(360px, 1.22fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
}

.work-cluster-head > span,
.case-library-banner > span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.work-cluster-head h3 {
  margin: 0;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.05;
}

.work-cluster-head p {
  margin: 0;
  max-width: 700px;
  color: var(--muted);
  line-height: 1.65;
}

.featured-work {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.featured-work .work-card,
.featured-work .work-card-lead {
  grid-column: auto;
}

.featured-work .work-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.brand-work {
  grid-template-columns: repeat(3, 1fr);
}

.work-card {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  transform: translateZ(0);
  transition: border-color 0.24s ease, transform 0.24s ease, box-shadow 0.24s ease;
}

.work-card::before {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0;
  background:
    radial-gradient(circle at var(--card-x, 50%) var(--card-y, 28%), rgba(216, 174, 69, 0.22), transparent 28%),
    linear-gradient(110deg, transparent 0 42%, rgba(255, 255, 255, 0.12) 48%, transparent 56%);
  mix-blend-mode: screen;
  transition: opacity 0.28s ease;
}

.work-card:hover::before {
  opacity: 1;
}

.work-card:hover {
  border-color: rgba(216, 174, 69, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.26);
}

.work-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.55s ease, filter 0.55s ease;
}

.work-card:hover img {
  filter: contrast(1.06) saturate(1.06);
  transform: scale(1.045);
}

.work-card div {
  position: relative;
  z-index: 3;
  padding: 24px;
}

.work-card.large {
  grid-column: span 2;
  grid-row: span 2;
}

.work-card.large img {
  aspect-ratio: 16 / 11;
}

.library-card {
  display: flex;
  align-items: end;
  min-height: 300px;
  background:
    linear-gradient(135deg, rgba(216, 174, 69, 0.22), rgba(255, 255, 255, 0.04)),
    var(--panel);
}

.case-library-banner {
  display: grid;
  grid-template-columns: 0.55fr 1.2fr auto;
  gap: 30px;
  align-items: center;
  margin-top: clamp(44px, 6vw, 78px);
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid rgba(216, 174, 69, 0.38);
  background:
    linear-gradient(110deg, rgba(216, 174, 69, 0.15), transparent 38%),
    var(--panel);
  transition: border-color 0.24s ease, transform 0.24s ease;
}

.case-library-banner:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.case-library-banner h3,
.case-library-banner p {
  margin: 0;
}

.case-library-banner h3 {
  margin-bottom: 7px;
  font-size: clamp(24px, 2.5vw, 38px);
}

.case-library-banner p {
  color: var(--muted);
}

.case-library-banner strong {
  color: var(--text);
  white-space: nowrap;
}

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

.service-grid.refined article,
.service-grid.refined .capability-card {
  position: relative;
  overflow: hidden;
}

.service-grid.refined article::after,
.service-grid.refined .capability-card::after {
  position: absolute;
  right: 24px;
  bottom: 18px;
  width: 72px;
  height: 2px;
  content: "";
  opacity: 0.45;
  background: var(--gold);
  transform: scaleX(0.42);
  transform-origin: right center;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.service-grid.refined article:hover::after,
.service-grid.refined .capability-card:hover::after,
.service-grid.refined .capability-card:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.capability-card {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  padding: clamp(26px, 3vw, 42px);
  background: var(--panel);
  transition: background 0.24s ease, transform 0.24s ease;
}

.capability-card:hover,
.capability-card:focus-visible {
  z-index: 1;
  background: #17191e;
  transform: translateY(-2px);
}

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

.capability-card__action {
  margin-top: auto;
  padding-top: 28px;
  color: rgba(216, 174, 69, 0.72);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  transition: color 0.24s ease;
}

.capability-card:hover .capability-card__action,
.capability-card:focus-visible .capability-card__action {
  color: var(--gold);
}

.contact {
  display: block;
  margin-bottom: 0;
  background: var(--panel);
}

.contact h2 {
  max-width: 1000px;
  margin-top: 14px;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.04;
}

.closing-band-copy {
  max-width: 1400px;
}

.closing-band-copy p {
  max-width: none;
  margin-top: 24px;
  font-size: clamp(16px, 1.15vw, 19px);
}

@media (min-width: 1101px) {
  .closing-band-copy p {
    white-space: nowrap;
  }
}

.closing-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(20px, 6vw, 92px);
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 13px;
}

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

.footer-brand img {
  width: 118px;
  height: 46px;
  object-fit: contain;
}

.motion-ready .reveal-item {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.72s cubic-bezier(0.2, 0.74, 0.22, 1),
    transform 0.72s cubic-bezier(0.2, 0.74, 0.22, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.motion-ready .reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes hero-rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-camera-drift {
  0% {
    transform: scale(1.06) translate3d(var(--hero-pan-x, 0), var(--hero-pan-y, 0), 0);
  }
  100% {
    transform: scale(1.1) translate3d(calc(var(--hero-pan-x, 0) + 1.2%), calc(var(--hero-pan-y, 0) - 1%), 0);
  }
}

@keyframes site-light-sweep {
  0% {
    opacity: 0;
    transform: translateX(-75%);
  }
  18%,
  72% {
    opacity: 0.5;
  }
  100% {
    opacity: 0;
    transform: translateX(75%);
  }
}

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

.library-main {
  padding-top: 82px;
}

.library-hero {
  padding: clamp(70px, 9vw, 120px) clamp(20px, 6vw, 92px);
  border-bottom: 1px solid var(--line);
}

.library-hero h1 {
  margin: 10px 0;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 1;
  text-wrap: balance;
}

.library-group {
  position: relative;
  scroll-margin-top: 82px;
  padding: 44px clamp(20px, 6vw, 92px);
  border-bottom: 1px solid var(--line);
  transition: background 0.28s ease, box-shadow 0.28s ease;
}

.library-group:target,
.library-group:has(.library-anchor-alias:target) {
  background: linear-gradient(90deg, rgba(216, 174, 69, 0.075), transparent 34%);
  box-shadow: inset 4px 0 0 var(--gold);
}

.library-anchor-alias {
  position: absolute;
  top: -82px;
  left: 0;
  width: 1px;
  height: 1px;
}

.library-group h2 {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: clamp(24px, 3vw, 40px);
  text-wrap: balance;
}

.library-group ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 22px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.library-paths {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin: 0 clamp(20px, 5vw, 80px) clamp(58px, 8vw, 112px);
  border: 1px solid var(--line);
  background: var(--line);
}

.library-paths a {
  min-height: 220px;
  padding: 28px 24px;
  background: var(--panel);
  transition: background 0.24s ease, transform 0.24s ease;
}

.library-paths a:hover {
  z-index: 1;
  background: #181a1f;
  transform: translateY(-3px);
}

.library-paths span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.library-paths h2 {
  margin: 24px 0 12px;
  font-size: 22px;
  line-height: 1.2;
}

.library-paths p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.library-group a {
  text-decoration: underline;
  text-decoration-color: rgba(216, 174, 69, 0.35);
  text-underline-offset: 4px;
}

.library-group a:hover {
  color: var(--text);
}

@media (max-width: 1100px) {
  .hero-metrics,
  .identity .section-heading,
  .method-steps,
  .selected-work,
  .service-grid.refined,
  .library-group ul {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-heading,
  .contact,
  .director-feature {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 820px;
  }

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

  .member-grid article {
    min-height: 480px;
  }

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

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

  .featured-work .work-card,
  .featured-work .work-card-lead {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: sticky;
    align-items: flex-start;
    flex-direction: column;
  }

  .brand {
    width: 100%;
    gap: 10px;
  }

  .company-brand-logo {
    width: 132px;
  }

  .brand-unit {
    font-size: 11px;
  }

  .nav {
    justify-content: flex-start;
    gap: 12px;
  }

  .brand-logo {
    width: 104px;
    height: 38px;
  }

  .hero {
    min-height: auto;
    padding-top: 74px;
  }

  .hero-content {
    padding-bottom: 42px;
  }

  .hero h1 {
    font-size: clamp(34px, 11vw, 58px);
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .hero-metrics,
  .identity .section-heading,
  .identity-grid,
  .method-steps,
  .selected-work,
  .service-grid.refined,
  .member-grid,
  .statement-band,
  .library-group ul {
    grid-template-columns: 1fr;
  }

  .identity .section-heading h2 {
    font-size: clamp(34px, 11vw, 52px);
  }

  .hero-metrics div {
    min-height: auto;
    padding: 14px 18px;
  }

  .hero-metrics strong,
  .hero-metrics span {
    display: inline-block;
    vertical-align: baseline;
  }

  .hero-metrics span {
    margin: 0 0 0 10px;
  }

  .director-portrait {
    min-height: 360px;
  }

  .member-grid article {
    grid-template-columns: none;
    grid-template-rows: 360px 1fr;
    min-height: auto;
  }

  .member-grid article img {
    min-height: 360px;
  }

  .member-grid article .team-photo-frame {
    min-height: 360px;
  }

  .director-facts span {
    white-space: normal;
  }

  .work-card.large {
    grid-column: auto;
    grid-row: auto;
  }

  .work-cluster-head,
  .case-library-banner {
    grid-template-columns: 1fr;
  }

  .work-cluster-head {
    gap: 10px;
  }

  .work-cluster-head > div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .featured-work,
  .brand-work {
    grid-template-columns: 1fr;
  }

  .featured-work .work-card img {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .case-library-banner {
    gap: 14px;
  }

  .library-paths {
    grid-template-columns: 1fr;
  }

  .library-paths a {
    min-height: 0;
  }

}

.icp-link { color: inherit; text-decoration: none; }
.icp-link:hover { color: var(--gold); }
