/* Visual composition follows CALVIN's approved P1 reference. */
:root { --margin: clamp(20px, 4.5vw, 72px); }
.site-header { background: linear-gradient(180deg,#080f19de,#080f1970); border-color: #d4e3ef36; }
.hero-shade {
  background: linear-gradient(90deg,#070d17ee 0%,#081321c9 27%,#0b172635 67%,#07111b36 100%),
    linear-gradient(0deg,#070e17 0%,#0813218a 15%,transparent 50%,#07234436 79%,#080f1887);
}
.hero-media img { object-position: 51% 44%; filter: saturate(.86) brightness(.97); }
.hero h1 {
  color: #f5f7fa;
  background: linear-gradient(178deg,#fff 7%,#f2f6fb 31%,#d4c6b0 62%,#74757a 96%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.official-portrait {
  width: min(41.8vw,660px);
  height: auto;
  right: 0;
  top: max(33px, calc(var(--head) - 19px));
  bottom: auto;
  margin: 0;
}
.official-portrait img {
  width: 100%;
  height: auto;
  --edge-mask: linear-gradient(90deg,transparent,#000 3%);
  mask-image: var(--edge-mask);
}
.horizon { box-shadow: 0 -7px 26px #87c7f079, inset 0 12px 32px #5c83a133; }
.expertise { background: radial-gradient(ellipse at 42% 0%,#263e53,#121f2b 32%,#080f17 86%); }
.dimension [data-theme=commerce] { background: #0c1520 url("assets/home-v14/commerce.webp") 44% center / cover; }
.dimension [data-theme=assets] { background: #0c1520 url("assets/home-v14/assets.webp") 18% center / cover; }
.dimension [data-theme=leadership] { background: #0c1520 url("assets/p2/team.webp") 53% center / cover; }
.dimension [data-theme=vision] { background: #0c1520 url("assets/p2/skyline.webp") 72% bottom / auto 133%; }
.dimension [data-theme=intelligence] { background: linear-gradient(180deg,#0b193812,#14223858),url("assets/intelligence-circuit.svg") center top / cover; }
.dimension [data-theme=new-media] { background: linear-gradient(180deg,#34193f24,#14253458),url("assets/suzhou-gate.webp") 54% 62% / cover; }
.dimension button::after { background: linear-gradient(180deg,#0b172229 9%,#09152149 38%,#090f18 78%,#0c1620ef); }
.dimension :is([data-theme=commerce], [data-theme=assets])::after {
  background: linear-gradient(180deg,#0b172214 4%,#09152128 31%,#090f1885 57%,#090f18e5 82%,#0c1620f5 100%);
}
.dimension :is([data-theme=leadership], [data-theme=vision], [data-theme=intelligence], [data-theme=new-media])::after {
  background: linear-gradient(180deg,#0b17220c 5%,#0915213b 29%,#090f1896 57%,#090f18e5 82%,#0c1620f5 100%);
}
#project-commerce .practice-art { background: url("assets/home-v14/commerce.webp") 44% 23% / cover; }
#project-assets .practice-art { background: url("assets/home-v14/assets.webp") 32% 40% / cover; }
:is(#project-commerce, #project-assets) .project-button::after {
  background: radial-gradient(ellipse at 0% 100%,#06101aad 0%,#06101a45 43%,transparent 73%),
    linear-gradient(180deg,transparent 15%,#07111b14 39%,#07101a9c 67%,#080f19f0 100%);
}
.project-copy { text-shadow: 0 2px 8px #03080d; }
.home-group { padding-block: 12px 18px; }
.group-heading { padding: 0; margin-bottom: 9px; gap: 7px 24px; }
.group-heading::before { display: none; }
.group-heading h2 { font-size: 21px; letter-spacing: .07em; color: var(--gold); }
.strategy-content .actions { margin-block: 12px 10px; }
.lab { background: radial-gradient(ellipse at 69% 73%,#1e4260,#102436 36%,#07101a 73%); }
.lab-stage::after { height: 1px; box-shadow: 0 0 18px 2px #6cd4ff83; }
.creative { background: radial-gradient(ellipse at 77% 100%,#20435b,#101c29 49%,#080f1a 77%); }
.creative .button { margin-top: 22px; }
.gallery-grid { padding-inline: 6px; }
.gallery-item button { box-shadow: 0 12px 24px #000a,0 6px 22px #69aeda26; }
.gallery-item img { object-position: center 45%; }
.gallery-item [data-crop=beisi] img { object-position: 56% 35%; }
.gallery-item [data-crop=fantasy] img { object-position: center 34%; }
.gallery-caption { text-shadow: 0 1px 5px #000; }
dialog.artwork-dialog { width: min(1040px, calc(100% - 28px)); }
.artwork-dialog .dialog-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(68vh,680px);
  margin: 0;
  object-fit: contain;
  background: #060d16;
}
.closing-media img { object-position: 52% 46%; filter: saturate(.92); }
.closing::before {
  background: linear-gradient(180deg,#08121de3 0%,#0a142080 45%,#080f1ab2 100%),
    radial-gradient(ellipse at 72% 70%,#d9924a31,transparent 45%);
}

@media (min-width: 1001px) {
  :root { --head: 53px; }
  .shell { width: min(100% - var(--margin)*2, 1440px); }
  .hero { min-height: clamp(590px, 45.1vw, 824px); place-items: center; }
  .hero-inner { padding: 82px 0 126px; }
  .hero h1 { font-size: clamp(137px,16.1vw,248px); letter-spacing: -.016em; line-height: .83; }
  .hero-tagline { margin-top: 13px; font-size: clamp(36px,3.65vw,66px); }
  .hero-subtitle { margin: 19px 0 26px; }
  .scroll-cue { bottom: 26px; }
  .motion-button { bottom: 23px; }
  .expertise { padding: 28px 0 23px; }
  .expertise .section-head { margin-bottom: 19px; }
  .dimension button { min-height: clamp(176px,15.6vw,266px); }
  .projects .project-list-shell { width: min(100% - 46px, 1490px); }
  .project-grid { gap: 13px; }
  .project-button { min-height: clamp(228px,18.6vw,315px); }
  .strategy-card summary { min-height: 59px; padding-block: 7px; }
  .strategy-letter { font-size: 30px; }
  .lab { padding: 35px 0 37px; }
  .lab-grid { grid-template-columns: .88fr 1.12fr; gap: clamp(30px,5vw,97px); }
  .dash { transform: rotateY(-13deg) rotateX(5deg) rotateZ(-2deg); padding: clamp(10px,1.5vw,20px); }
  .lab-tabs { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 7px; }
  .lab-tab { align-items: center; flex-direction: column; text-align: center; justify-content: center; gap: 3px; min-height: 78px; padding: 6px 4px; }
  .creative { padding: 41px 0 36px; }
  .creative-grid { grid-template-columns: .68fr 1.32fr; gap: 20px; }
  .gallery-item button { min-height: clamp(204px,17.6vw,310px); }
  .closing { min-height: clamp(265px,18vw,350px); padding: 39px 0 35px; }
  .closing h2 { font-size: clamp(47px,4.5vw,68px); }
}
@media (min-width: 641px) and (max-width: 1000px) {
  .hero h1 { letter-spacing: -.05em; }
  .official-portrait { width: 53vw; top: auto; bottom: 0; }
  .official-portrait img { mask-image: var(--edge-mask),linear-gradient(#000 72%,transparent 100%); mask-composite: intersect; }
  .gallery-grid { width: min(100%, 800px); }
}
@media (max-width: 640px) {
  .hero { min-height: max(690px, 100svh); }
  .hero-inner { padding-top: clamp(105px, 16vh, 169px); }
  .hero-shade { background: linear-gradient(90deg,#081221e8,#0a162a69),linear-gradient(0deg,#070e17 0%,#07132122 57%,#071321c9 100%); }
  .official-portrait { width: min(76%,350px); top: auto; right: 0; bottom: 2%; opacity: 1; }
  .official-portrait img { mask-image: var(--edge-mask),linear-gradient(#000 73%,transparent 100%); mask-composite: intersect; }
  .expertise { padding-top: 38px; }
  .home-group { padding-block: 18px 22px; }
  .gallery-grid { padding: 0; }
  .gallery-item button { min-height: clamp(198px,55vw,275px); }
  dialog.artwork-dialog { width: calc(100% - 20px); }
  .artwork-dialog .dialog-image { max-height: 61vh; }
}
.motion-disabled .dash { transform: none; }
@media (prefers-reduced-motion: reduce) { .official-portrait,.dash { transform: none; } }

/* V17 professional direction imagery and local text contrast. */
.dimension [data-theme="leadership"],
#leadership.strategy-card {
  --direction-art: url("assets/home-v17/leadership.webp");
  --small-crop: 67% 50%;
  --strategy-crop: 66% 45%;
}
.dimension [data-theme="vision"],
#vision.strategy-card {
  --direction-art: url("assets/home-v17/vision.webp");
  --small-crop: 76% 50%;
  --strategy-crop: 70% 47%;
}
.dimension [data-theme="intelligence"],
#intelligence.strategy-card {
  --direction-art: url("assets/home-v17/intelligence.webp");
  --small-crop: 92% 50%;
  --strategy-crop: 84% 50%;
}
.dimension [data-theme="new-media"],
#new-media.strategy-card {
  --direction-art: url("assets/home-v17/new-media.webp");
  --small-crop: 96% 50%;
  --strategy-crop: 91% 43%;
}

.dimension :is([data-theme="leadership"], [data-theme="vision"], [data-theme="intelligence"], [data-theme="new-media"]) {
  background: #0c1520 var(--direction-art) var(--small-crop) / cover;
}
.dimension :is([data-theme="leadership"], [data-theme="vision"], [data-theme="intelligence"], [data-theme="new-media"])::after {
  background:
    radial-gradient(ellipse 66% 35% at 50% 57%, #07111bb8 30%, #07111b85 70%, transparent 100%),
    linear-gradient(180deg, transparent 11%, #08121c1f 30%, #08121c73 54%, #08121cbf 74%, #08121cf4 100%);
}
.dimension :is([data-theme="commerce"], [data-theme="assets"])::after {
  background:
    radial-gradient(ellipse 63% 39% at 50% 55%, #07111bc4 30%, #07111b9c 68%, transparent 100%),
    linear-gradient(180deg, #0b172214 4%, #09152128 31%, #090f1885 57%, #090f18e5 82%, #0c1620f5 100%);
}

.strategy-card:is(#leadership, #vision, #intelligence, #new-media) {
  background:
    linear-gradient(90deg, #0b1521f0 0%, #0b1521da 23%, #0b152177 50%, #0b152117 76%, transparent 100%),
    #121e2b var(--direction-art) var(--strategy-crop) / cover;
}
.strategy-card:is(#leadership, #vision, #intelligence, #new-media) .strategy-content {
  background: linear-gradient(90deg, #0b1521f2, #0b1521b3 67%, #0b15214f);
  border-end-start-radius: inherit;
  border-end-end-radius: inherit;
}
.strategy-card:is(#leadership, #vision, #intelligence, #new-media) .expand-sign {
  text-shadow: 0 1px 2px #09131d, 0 0 3px #09131d;
  background: #0b1521e6;
  box-shadow: 0 0 0 5px #0b1521b8;
  border-radius: 2px;
}
@media (max-width: 720px) {
  .strategy-card:is(#leadership, #vision, #intelligence, #new-media) {
    background-image:
      linear-gradient(90deg, #0b1521f0 0%, #0b1521e0 30%, #0b152187 58%, transparent 100%),
      var(--direction-art);
  }
  .strategy-card:is(#leadership, #vision, #intelligence, #new-media) .strategy-content {
    background: linear-gradient(90deg, #0b1521ec 0%, #0b1521d4 65%, #0b152198);
  }
}

/* The mobile grid places the letters higher over the photo. */
@media (max-width: 640px) {
  .dimension button[data-theme]::after {
    background:
      radial-gradient(ellipse 52% 33% at 50% 36%, #07111bd6 18%, #07111bbb 62%, transparent 100%),
      linear-gradient(180deg, transparent 9%, #08121c1f 30%, #08121c84 54%, #08121cc5 75%, #08121cf4 100%);
  }
  .dimension button:is([data-theme="commerce"], [data-theme="assets"])::after {
    background:
      radial-gradient(ellipse 53% 34% at 50% 36%, #07111bd9 18%, #07111bb8 65%, transparent 100%),
      linear-gradient(180deg, #0b172214 4%, #09152128 31%, #090f1885 57%, #090f18e5 82%, #0c1620f5 100%);
  }
  #vision.strategy-card .strategy-content {
    background: linear-gradient(90deg, #0b1521ec, #0b1521d4 65%, #0b1521ba);
  }
}
