.home-page { background: var(--ivory); }
.hero-stage {
  --hero-feather: clamp(6rem, 12vw, 13rem);
  --hero-fade-direction: to right;
  display: grid;
  grid-template-columns: minmax(0, 37fr) minmax(0, 63fr);
  grid-template-areas: "copy photo";
  min-height: clamp(22rem, 37vw, 37rem);
  background: linear-gradient(105deg, #e6edee 0%, #f2f2eb 40%, var(--ivory) 75%);
}
.hero-images {
  grid-area: photo;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--ivory);
  margin-inline-start: calc(-.5 * var(--hero-feather));
  mask-image: linear-gradient(var(--hero-fade-direction), transparent, rgb(0 0 0 / 14%) calc(.22 * var(--hero-feather)), rgb(0 0 0 / 85%) calc(.78 * var(--hero-feather)), black var(--hero-feather));
}
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 56%;
  visibility: hidden;
}
.hero-images .hero-image[aria-hidden="false"] { visibility: visible; z-index: 1; }
.hero-images .hero-image[data-sku="HT53024"] { object-position: 50% 23%; }
.hero-images .hero-image[data-sku="HT71001"] { object-position: 50% 55%; }
.hero-images .hero-image[data-sku="HT54009"] { object-position: 50% 14%; }
.hero-copy {
  grid-area: copy;
  display: grid;
  grid-template-rows: 1fr auto auto 1fr auto;
  justify-items: start;
  padding: clamp(20px, 2.4vw, 42px) clamp(22px, 3vw, 54px) clamp(18px, 2vw, 34px) max(var(--gutter), calc((100vw - 1740px) / 2 + var(--gutter)));
  color: var(--deep);
}
.hero h1 {
  grid-row: 2;
  font: 400 var(--type-hero)/1 var(--serif);
  letter-spacing: -.045em;
  text-wrap: balance;
}
.hero h1 em { display: block; }
.hero-cta {
  grid-row: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: clamp(18px, 2.15vw, 34px);
  padding: .65rem 1.25rem;
  border-radius: 99px;
  background: var(--deep);
  color: var(--ivory);
  font: 550 var(--type-ui)/1.35 var(--sans);
  text-align: center;
}
.hero-cta:hover { background: var(--accent); }
.hero-caption {
  grid-row: 5;
  display: grid;
  align-content: start;
  gap: .2rem;
  width: 100%;
  margin-top: 1.25rem;
  border-top: 1px solid #becac9;
  padding-top: .75rem;
}
.hero-caption span:first-child { font: 550 var(--type-ui)/1.35 var(--sans); }
.hero-caption span:last-child { color: var(--muted); font: 450 var(--type-meta)/1.4 var(--sans); letter-spacing: .055em; }
@media (prefers-reduced-motion: no-preference) {
  .hero-image.is-entering { animation: hero-appear .5s ease-out both; }
  .hero-image.is-leaving { visibility: visible; }
  @keyframes hero-appear { from { opacity: 0; } to { opacity: 1; } }
}
.hero-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: clamp(8px, 1.6vw, 28px);
  padding-inline: max(var(--gutter), calc((100% - 1740px) / 2 + var(--gutter)));
  color: var(--ink);
  background: #f1f1e9;
  border-bottom: 1px solid #c7d0c3;
}
.hero-controls button {
  min-width: 0;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
}
.hero-choice {
  position: relative;
  display: flex;
  align-self: stretch;
  align-items: center;
  gap: clamp(8px, 1vw, 18px);
  text-align: start;
}
.hero-controls .hero-choice { padding-block: 13px; }
.hero-choice img {
  width: clamp(42px, 5.2vw, 78px);
  aspect-ratio: 1.4;
  object-fit: cover;
  border-radius: var(--thumbnail-radius);
}
.hero-choice span { font: 500 var(--type-ui)/1.25 var(--sans); overflow-wrap: anywhere; }
.hero-choice[aria-current] span { font-weight: 600; }
.hero-choice::after { position: absolute; inset: auto 0 0; height: 3px; background: transparent; content: ""; }
.hero-choice:hover::after { background: #acb8a8; }
.hero-choice[aria-current]::after { background: var(--sage); }
.hero-controls :focus-visible { outline-offset: -3px; }

.collections {
  display: grid;
  grid-template-columns: minmax(12rem, .58fr) minmax(0, 2fr);
  align-items: start;
  gap: clamp(28px, 4vw, 70px);
  padding-block: clamp(44px, 5.2vw, 86px) clamp(60px, 6.5vw, 100px);
}
.collection-intro {
  position: sticky;
  top: calc(var(--mast-height) + 1.5rem);
  display: grid;
  justify-items: start;
  gap: clamp(16px, 2.2vw, 36px);
  padding-block-start: clamp(13px, 1.6vw, 24px);
  border-block-start: 2px solid var(--ink);
}
.collection-intro h2, .texture-notes h2 {
  margin: 0;
  color: var(--ink);
  font: 400 var(--type-section-title)/1.06 var(--serif);
  letter-spacing: -.035em;
  text-wrap: balance;
}
.collection-intro .text-link, .swatch-link {
  width: fit-content;
  color: var(--ink);
  font: 600 var(--type-ui)/1.45 var(--sans);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .35em;
}
.collection-intro .text-link { padding-block: .55rem; }
.collection-intro .text-link:hover, .swatch-sheet a:hover .swatch-link { text-decoration-thickness: 2px; }
.collection-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(28px, 3.1vw, 54px) clamp(14px, 1.8vw, 30px);
}
.collection { display: block; }
.collection-photo { aspect-ratio: 3 / 2; }
.collection-description { padding-block-start: .875rem; }
.collection-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: .125rem .75rem;
  margin: 0;
}
.collection-info h3 {
  font: 550 var(--type-card-title)/1.25 var(--sans);
  letter-spacing: -.025em;
}
.collection-info span, .swatch-code {
  margin: 0;
  font: 500 var(--type-meta)/1.45 var(--sans);
  color: var(--sage);
  font-variant-numeric: tabular-nums;
}
.collection-summary {
  max-width: 43ch;
  margin: .3rem 0 0;
  color: var(--muted);
  font: 400 var(--type-body)/1.55 var(--sans);
}
.collection:hover h3, .collection:focus-visible h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .16em; }

.texture-library { background: var(--sage-wash); border-block: 1px solid #c2ccbf; }
.texture-spread { padding-block: clamp(40px, 4.8vw, 80px); }
.texture-notes {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.6fr);
  align-items: end;
  gap: clamp(24px, 4vw, 70px);
  margin-block-end: clamp(16px, 2vw, 30px);
}
.texture-notes h2 { color: #2c4639; }
.swatch-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(6px, 1.5vw, 25px);
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.swatch-option {
  position: relative;
  display: flex;
  gap: .65rem;
  align-items: center;
  padding-block: .35rem .6rem;
  border-block-end: 2px solid #b2c0ad;
  color: #354f40;
  cursor: pointer;
}
.swatch-option img {
  width: clamp(30px, 3.2vw, 48px);
  flex: none;
  aspect-ratio: 1;
  border-radius: var(--thumbnail-radius);
  object-fit: cover;
}
.swatch-option span {
  font: 500 var(--type-ui)/1.3 var(--sans);
  overflow-wrap: anywhere;
}
.swatch-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.swatch-option:has(:checked) { border-color: var(--sage); }
.swatch-option:has(:checked) span { font-weight: 600; }
.swatch-option:has(:focus-visible) { outline: 2px solid var(--sage); outline-offset: 3px; }
@media (forced-colors: active) {
  .swatch-option:has(:checked) { border-color: Highlight; }
  .swatch-option:has(:checked) span { text-decoration: underline; }
}
.swatch-sheet { margin: 0; }
.swatch-sheet a { display: block; }
.swatch-pair {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: clamp(7px, 1vw, 16px);
  aspect-ratio: 2.9;
}
.swatch-pair img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--photo-radius);
}
.swatch-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .5rem 1.25rem;
  padding-block-start: .85rem;
}
.swatch-identity { display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem 1rem; }
.swatch-title { font: 550 var(--type-card-title)/1.25 var(--sans); letter-spacing: -.02em; color: #2c4639; }
.swatch-code { letter-spacing: .04em; }
.swatch-link { flex: none; color: #354f40; }
.home-page:lang(zh) :is(.collection-intro h2, .texture-notes h2) { line-height: 1.2; letter-spacing: .005em; }
.home-page:lang(zh) :is(.collection-info h3, .swatch-title) { line-height: 1.35; letter-spacing: 0; }
.home-page:lang(zh) .collection-summary { line-height: 1.65; }

@media (max-width: 60em) {
  .collections { display: block; }
  .collection-intro {
    position: static;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 4px 20px;
    border-block-start: 0;
    border-block-end: 1px solid #b7c2b8;
    padding-block: 0 .75rem;
    margin-block-end: 1.25rem;
  }
  .texture-notes { grid-template-columns: 1fr; gap: 1rem; }
}
@media (max-width: 700px) {
  .hero-stage {
    --hero-feather: clamp(2.25rem, 8vw, 3.25rem);
    --hero-fade-direction: to top;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "photo" "copy";
    min-height: 0;
  }
  .hero-images { height: clamp(13.5rem, 65vw, 23rem); margin-inline-start: 0; }
  .hero-copy {
    grid-template: "heading action" auto "caption caption" auto / minmax(0, 1fr) auto;
    gap: .8rem 1rem;
    align-items: center;
    padding: 1.15rem var(--gutter) .85rem;
  }
  .hero h1 { grid-area: heading; font-size: clamp(1.85rem, 6.8vw, 2.8rem); }
  .hero h1 em { display: inline; }
  .hero-cta { grid-area: action; margin: 0; padding-inline: .95rem; }
  .hero-caption {
    grid-area: caption;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .1rem .6rem;
    margin: 0;
    padding-top: .65rem;
  }
  .hero-controls { gap: 9px; }
  .hero-controls .hero-choice { flex-direction: column; align-items: start; gap: 6px; padding-block: 9px; }
  .hero-choice img { width: 100%; aspect-ratio: 1.9; }
  .hero-choice span { font-size: var(--type-meta); }
  .swatch-pair { aspect-ratio: 2; }
}
@media (max-width: 35em) {
  .collection-grid { grid-template-columns: minmax(0, 1fr); }
  .collection-description { padding-block-start: .625rem; }
  .swatch-option { flex-direction: column; align-items: start; gap: .45rem; }
  .swatch-option img { width: 100%; aspect-ratio: 2.7; }
  .swatch-pair { grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr); aspect-ratio: 1.6; }
  .swatch-caption { flex-wrap: wrap; }
  .swatch-identity { display: grid; gap: .2rem; }
}
@media (max-width: 500px) {
  .hero-choice span { display: none; }
  .hero-choice img { aspect-ratio: 1.5; }
}
