/* Use the original grid on ordinary desktops and retain its proportions on wide screens. */
@media (min-width: 801px) {
  :root { --u: var(--desktop-nav-unit); }
}

@media (min-width: 1760px) {
  h1 { font-size: calc(64 * var(--u)); }
  h2 { font-size: calc(44 * var(--u)); }
  h3, h4, .person-name { font-size: calc(28 * var(--u)); }
  .creative { font-size: calc(128 * var(--u)); }
  .hero { min-height: clamp(100svh, calc(900 * var(--u)), 106svh); }
}

:root { --home-type-unit: max(1px, var(--u)); }

.main-nav { font-size: calc(15 * var(--home-type-unit)); }

@media (min-width: 801px) {
  .material-rail { --material-inset: clamp(12px, 1.05vw, calc(24 * var(--u))); }
  .material-info { padding: var(--material-inset); }
  .material-order { left: var(--material-inset); }

  .home-header { transition: min-height 180ms ease, background-color 180ms, color 180ms; }
  main [id] { scroll-margin-top: calc(var(--compact-header-height) + 16px); }

  .hero-copy .door-button {
    min-height: max(44px, calc(42 * var(--u)));
    gap: calc(16 * var(--u));
    padding: calc(7 * var(--u)) calc(13 * var(--u));
    font-size: calc(16 * var(--home-type-unit));
  }

  .hero-copy .door-mark {
    width: calc(18 * var(--u));
    height: calc(18 * var(--u));
  }

  .hero-copy .door-mark img { height: calc(18 * var(--u)); }
}

@media (min-width: 801px) {
  .factory-cover { padding-block-end: calc(86 * var(--u)); }
  .factory-cover .factory-cover-inner {
    width: calc(100% - 2 * var(--site-edge));
    max-width: 89vw;
  }
}
.factory-cover-copy {
  margin-inline-start: auto;
  max-width: calc(490 * var(--u));
}
.factory-cover::before {
  background:
    linear-gradient(270deg, rgb(12 19 24 / .68), rgb(12 19 24 / .48) 32%, transparent 72%),
    linear-gradient(0deg, rgb(12 19 24 / .48), transparent 65%);
}
@media (max-width: 800px) {
  .factory-cover .cover-image { object-position: 72% center; }
  .factory-cover-copy {
    max-width: 28rem;
    text-align: right;
  }
  .factory-cover::before {
    background: linear-gradient(180deg, rgb(12 19 24 / .05), rgb(12 19 24 / .42) 38%, rgb(12 19 24 / .76));
  }
}

.factory-cover-action {
  display: inline-flex;
  align-items: center;
  gap: calc(8 * var(--home-type-unit));
  margin-top: calc(20 * var(--home-type-unit));
  padding-bottom: calc(3 * var(--home-type-unit));
  border-bottom: 1px solid rgb(255 255 255 / .65);
  font-size: calc(15 * var(--home-type-unit));
  font-weight: 500;
}
.factory-cover-action img {
  width: calc(14 * var(--home-type-unit));
  height: calc(14 * var(--home-type-unit));
  filter: brightness(0) invert(1);
}
.factory-cover:focus-visible {
  outline: 2px solid white;
  outline-offset: -6px;
}
.factory-cover:focus-visible .factory-cover-action { border-color: currentColor; }

@media (hover: hover) {
  .factory-cover:hover::before { opacity: .86; }
  .factory-cover:hover .factory-cover-action { border-color: currentColor; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .factory-cover::before { transition: opacity 260ms ease-out; }
}

.metal-panel {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: #56595c;
  padding-bottom: calc(44 * var(--u));
}
.metal-panel::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -6px;
  background:
    linear-gradient(102deg, rgb(168 177 192 / .26), rgb(82 91 108 / .27)),
    url("/brand-20261128/assets/confirmed-home/metal.png") center / cover no-repeat;
  filter: blur(clamp(.9px, .11vw, 2.4px));
  pointer-events: none;
}
.space-copy { display: grid; grid-template-columns: minmax(0, 1fr); }
.space-copy > [data-space-copy] { grid-area: 1 / 1; min-width: 0; }
.space-copy > [data-space-copy][hidden] { display: block !important; visibility: hidden; pointer-events: none; }
.space-copy > .space-tabs { grid-area: 2 / 1; }
.space-tabs { gap: calc(22 * var(--home-type-unit)); }
.space-tabs button { min-width: calc(32 * var(--home-type-unit)); min-height: calc(44 * var(--home-type-unit)); }
:is(.space-tabs, .space-dots) button { -webkit-tap-highlight-color: transparent; }
@media (prefers-reduced-motion: no-preference) {
  .space-copy > [data-space-copy]:not([hidden]),
  .space-slide:not([hidden]) {
    animation: showroom-fade-in 280ms ease-out;
  }
}

@keyframes showroom-fade-in {
  from { opacity: .55; }
}

.case-row {
  min-height: 0;
  padding-block: calc(20 * var(--u));
}
.case-row .case-copy {
  justify-content: flex-start;
  gap: calc(12 * var(--home-type-unit));
}
.case-row .case-thumb { align-self: end; }
.case-row .case-no {
  color: var(--muted);
  font-size: calc(14 * var(--home-type-unit));
  font-variant-numeric: tabular-nums;
}
.case-row .case-type { margin-inline-start: calc(-22 * var(--u)); }
.case-type > p:first-child {
  font-size: calc(16 * var(--home-type-unit));
  font-weight: 600;
}
.case-type > p + p {
  margin-top: calc(6 * var(--home-type-unit));
  font-size: calc(14 * var(--home-type-unit));
}
.case-copy .case-title {
  font-size: calc(20 * var(--home-type-unit));
  font-weight: 350;
  line-height: 1.35;
}
.case-copy .case-description {
  margin-top: calc(4 * var(--home-type-unit));
  color: var(--muted);
  font-size: calc(15 * var(--home-type-unit));
}

.case-copy > a, .cases-heading > a {
  display: inline-flex;
  align-items: center;
  gap: calc(8 * var(--home-type-unit));
  min-height: 44px;
  white-space: nowrap;
  width: fit-content;
}
.cases-heading > a img {
  flex: 0 0 calc(16 * var(--home-type-unit));
  width: calc(16 * var(--home-type-unit));
  height: calc(16 * var(--home-type-unit));
}
.case-copy > a {
  display: inline-grid;
  grid-auto-flow: column;
  align-content: end;
  margin-block-start: auto;
  color: var(--muted);
  font-size: calc(15 * var(--home-type-unit));
  font-weight: 550;
}
.case-copy > a img {
  width: calc(12 * var(--home-type-unit));
  height: calc(12 * var(--home-type-unit));
  filter: brightness(0);
  opacity: .48;
}
.case-copy > a:is(:hover, :focus-visible) img {
  opacity: 1;
  transform: scale(1.16);
}
@media (prefers-reduced-motion: no-preference) {
  .case-copy > a img { transition: opacity 160ms ease, transform 160ms ease; }
}

/* Let the panorama extend at its original proportion so the crest stays complete. */
@media (min-width: 801px) {
  .space-images { height: auto; aspect-ratio: 1440 / 558; }
}

.collab-title h2 {
  margin-top: calc(16 * var(--home-type-unit));
  color: var(--muted);
  font-size: calc(32 * var(--home-type-unit));
  font-weight: 400;
  line-height: 1.45;
}

/* Keep the plus symbol aligned and at the same scale on each card. */
.angled {
  display: grid;
  width: calc(28 * var(--home-type-unit));
  height: calc(28 * var(--home-type-unit));
  margin-inline-start: calc(-5 * var(--home-type-unit));
}
:is(.series-card, .person-card) .angled {
  margin-top: calc(8 * var(--home-type-unit));
}

/* Both people sections share their grid and typography. */
.collab-stack h3 { font-size: calc(22 * var(--home-type-unit)); line-height: calc(30 * var(--home-type-unit)); }
.people-grid {
  margin-top: calc(16 * var(--u));
  row-gap: calc(28 * var(--home-type-unit));
}
.people-grid .person-card > img {
  width: min(100%, max(104px, calc(132 * var(--u))));
}
.people-grid .person-name {
  margin-top: calc(11 * var(--home-type-unit));
  font-size: calc(21 * var(--home-type-unit));
  line-height: calc(26 * var(--home-type-unit));
}
.people-grid .person-note {
  margin-top: calc(4 * var(--home-type-unit));
  color: var(--ink);
  font-size: calc(14 * var(--home-type-unit));
  line-height: 1.45;
  min-height: 0;
}
.designers-grid .person-card[href*="designer=shen-lei"] .person-name { letter-spacing: .08em; }
.academy h4, .affiliate-grid a { font-size: calc(18 * var(--home-type-unit)); line-height: calc(26 * var(--home-type-unit)); }
.academy p, .affiliate-grid p, .academy > div > .text-action {
  font-size: calc(14 * var(--home-type-unit));
  line-height: calc(22 * var(--home-type-unit));
}

/* Original Figma: crest x27/y64, wordmark x64, first menu column x509. */
.home-footer {
  min-height: calc(568 * var(--u));
  background-size: auto calc(491 * var(--u));
  background-position: max(0px, calc((100vw - 1312 * var(--u)) / 2 - 37 * var(--u))) calc(64 * var(--u));
}

@media (max-width: 1100px) {
  .home-footer { background-size: auto calc(360 * var(--u)); background-position-y: calc(150 * var(--u)); }
}
@media (max-width: 800px) {
  .metal-panel { padding-bottom: 32px; }
  .home-footer { min-height: 0; background-size: auto 280px; background-position: 0 170px; }
}

.creative[lang="en"] {
  font-size: calc(94 * var(--u));
  line-height: 1.08;
  letter-spacing: -.065em;
}

.designers-grid .person-name[lang="en"] {
  font-size: calc(18 * var(--home-type-unit));
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}

.stat-unit small { font-size: .76em; }

.academy-figure img { width: 100%; aspect-ratio: 310 / 180; object-fit: cover; }
.academy-figure figcaption {
  margin-top: calc(8 * var(--u));
  color: var(--muted);
  font-size: calc(13 * var(--home-type-unit));
  line-height: 1.48;
}

@media (min-width: 1280px) {
  .people-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (min-width: 600px) and (max-width: 1279px) {
  .people-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
  .creative[lang="en"] { font-size: clamp(34px, 10.2vw, 68px); }
  .collab-title h2 { margin-top: 13px; font-size: clamp(17px, 4.9vw, 23px); }
  .factory-cover-copy h2 { font-size: clamp(24px, 7vw, 40px); }
}
