:root {
  --salon-dark: #162820;
  --salon-deep: #122219;
  --salon-accent: #30543f;
  --salon-sheen: #d2b57e;
  --season-paper: #f4f0e6;
  --wine: var(--salon-accent);
}
:root[data-season='spring'] {
  --salon-dark: #49161c;
  --salon-deep: #351014;
  --salon-accent: #8f2c31;
  --salon-sheen: #dfb277;
  --season-paper: #f5ede2;
}
:root[data-season='classic'] {
  --salon-dark: #27151b;
  --salon-deep: #230e13;
  --salon-accent: #61232f;
  --salon-sheen: #d8bd9e;
  --season-paper: #f4f0e8;
}
.mast {
  background: var(--salon-dark);
  transition: background 0.4s ease;
}
.brand-mark {
  display: inline-block;
  flex: none;
  width: 45px;
  height: 44px;
  background: currentColor;
  mask: url(assets/brand-mark.svg) center / contain no-repeat;
  -webkit-mask: url(assets/brand-mark.svg) center / contain no-repeat;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 4px;
}
.footer-logo .brand-mark {
  width: 32px;
  height: 32px;
  margin-right: 4px;
}
.hero {
  background: var(--salon-deep);
}
.hero-shade {
  background:
    linear-gradient(90deg, rgba(8, 15, 12, 0.81), rgba(8, 14, 10, 0.42) 31%, transparent 54%),
    linear-gradient(0deg, rgba(12, 17, 12, 0.76), transparent 22%);
}
[data-season='spring'] .hero-shade {
  background:
    linear-gradient(90deg, #240609d9, #2a090d6e 31%, transparent 55%),
    linear-gradient(0deg, #260509bd, transparent 24%);
}
[data-season='classic'] .hero-shade {
  background:
    linear-gradient(90deg, #1b080dd9, #20071070 31%, transparent 55%),
    linear-gradient(0deg, #220b12bf, transparent 24%);
}
.atmosphere {
  opacity: 0.82;
}
.season-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid #f1e7d65e;
  color: var(--cream);
  background: #0e1411a6;
  width: max-content;
}
.season-switch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 35px;
  padding: 5px 13px;
  font: 12px var(--sans);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.season-switch button[aria-pressed='true'] {
  background: var(--cream);
  color: #2e2521;
}
.season-switch button i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6c8263;
  border: 1px solid #e1d7bf66;
}
.season-switch [data-season='spring'] i {
  background: #b84943;
}
.season-switch [data-season='classic'] i {
  background: #917b71;
}
.cover-switch {
  position: absolute;
  z-index: 3;
  top: calc(var(--mast-height) + clamp(16px, 2.8vh, 30px));
  left: var(--pad);
}
.hero-body {
  padding-top: calc(var(--mast-height) + 85px);
  padding-bottom: 92px;
}
.hero-copy {
  max-width: min(49%, 710px);
}
.issue {
  font: 500 13px/1.35 var(--sans);
  letter-spacing: 0.13em;
  gap: 10px;
}
.issue i {
  font: italic 21px/1.1 var(--serif);
  letter-spacing: 0;
  color: #efe0c8;
}
.hero h1 {
  font: 500 clamp(44px, 4.55vw, 88px) / 1.22 var(--cn);
  letter-spacing: 0.025em;
  margin: 21px 0 22px;
  white-space: normal;
  text-wrap: balance;
}
.hero-statement,
.hero-fit {
  font-size: clamp(13px, 1.05vw, 17px);
  line-height: 1.85;
  letter-spacing: 0.035em;
  color: #efe5d6;
  text-wrap: pretty;
  margin: 0;
}
.hero-fit {
  font-size: clamp(12px, 0.92vw, 15px);
  color: #e0d7c7;
  margin-top: 2px;
}
.rail-budget strong {
  font: 500 16px/1.3 var(--cn);
  letter-spacing: 0.08em;
}
.rail-budget span {
  font-size: 11px;
}
.paper,
.closing {
  background: var(--season-paper);
}
.dark {
  background: var(--salon-accent);
}
.tailor-note {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1fr);
  gap: clamp(42px, 7vw, 122px);
  align-items: center;
  background: var(--season-paper);
  padding-bottom: clamp(36px, 4.6vw, 72px);
}
.note-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.18;
  background: var(--salon-deep);
  isolation: isolate;
}
.note-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 53%;
  transform: none;
  transition:
    transform 0.7s var(--ease),
    object-position 0.7s var(--ease);
}
.note-photo[data-view='fit'] img {
  transform: scale(1);
  object-position: 50% 59%;
}
.note-photo:after {
  content: '';
  pointer-events: none;
  position: absolute;
  inset: 55% 0 0;
  background: linear-gradient(transparent, #160f0b85);
}
.note-photo-label {
  position: absolute;
  left: 22px;
  bottom: 17px;
  z-index: 1;
  font: 12px var(--sans);
  letter-spacing: 0.1em;
  color: #fff2dc;
}
.note-copy h2 {
  font-size: clamp(32px, 3vw, 55px);
  line-height: 1.32;
  margin: 13px 0 23px;
}
.note-tabs {
  display: flex;
  gap: 22px;
  border-bottom: 1px solid var(--hair);
  margin-bottom: 17px;
}
.note-tabs button {
  font-size: 13px;
  min-height: 35px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}
.note-tabs button[aria-pressed='true'] {
  color: var(--salon-accent);
  border-color: currentColor;
}
.note-copy h3 {
  font: 500 clamp(17px, 1.35vw, 23px) / 1.5 var(--cn);
}
.note-copy > p:not(.eyebrow) {
  font: 14px/1.9 var(--sans);
  color: #655b50;
  margin: 8px 0 18px;
  max-width: 39em;
}
.collection {
  border-top: 1px solid var(--hair);
}
.edit-switch {
  background: transparent;
  color: var(--ink);
  border-color: var(--hair);
}
.edit-switch button[aria-pressed='true'] {
  background: var(--salon-dark);
  color: #f9f0df;
}
.collection-grid.is-pair {
  grid-template-columns: 1fr 1fr;
}
/* Columns follow the seven original look indices. The second row contains the matching outfits. */
.card-photo {
  display: block;
  height: 100%;
  min-width: 0;
  overflow: hidden;
}
.card-photo img:not([src]),
#note-image:not([src]) {
  display: none;
}
.card-photo,
.piece-image-area.look::before,
.piece-image-area.twin::before {
  background: url(assets/gallery-previews.webp) calc(var(--look-index) * 100% / 6) var(--preview-row, 0%) / 700% 200% no-repeat;
}
.piece-image-area.look::before,
.piece-image-area.twin::before {
  content: '';
  display: block;
  height: 100%;
  max-width: 100%;
  aspect-ratio: 4/5;
  margin-inline: auto;
}
.collection-grid[data-view='twin'],
.piece-image-area.twin {
  --preview-row: 100%;
}
.image-retry {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 8px 16px;
  min-height: 44px;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--action-radius);
  font-size: 14px;
}
.detail-strip {
  display: none;
}
.is-pair .card-media {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 3px;
  aspect-ratio: 1.43;
}
.is-pair .card-photo img {
  min-width: 0;
  object-position: center;
}
.is-pair .detail-strip {
  display: block;
  min-width: 0;
  background-repeat: no-repeat;
  background-size: cover;
}
.seasonal-swatch {
  background: repeating-linear-gradient(49deg, #fff2 0 1px, transparent 1px 3px), var(--swatch);
}
.fabric {
  background: var(--salon-dark);
}
.library-dialog .flat img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.studio-picture {
  position: relative;
  flex: 1;
  min-height: 235px;
  isolation: isolate;
}
.studio-picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.studio-picture[data-proof='true'] img {
  object-fit: contain;
  background: #292923;
}
.studio-picture span {
  position: absolute;
  bottom: 12px;
  left: 13px;
  background: var(--ft-photo-label);
  color: #fff3e0;
  padding: 4px 8px;
  font: 11px/1.3 var(--sans);
}
.work-step {
  color: var(--muted);
  font-size: 12px;
  margin: 4px 0 14px;
}
.studio-form h3 {
  font: 500 23px/1.4 var(--cn);
  margin: 15px 0 9px;
}
#proof-fields > p,
#pattern-fields > p,
#pending-fields > p {
  font: 13px/1.9 var(--sans);
  color: var(--muted);
  margin: 7px 0 18px;
  overflow-wrap: anywhere;
}
.idea-seeds {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.idea-seeds button {
  font-size: 11px;
  padding: 4px 7px;
  border: 1px solid var(--hair);
  color: var(--salon-accent);
}
.form-label small,
.pet-photo-option small {
  font-size: 10px;
  color: var(--muted);
}
.pet-photo-option {
  position: relative;
  font-size: 12px;
  border-radius: var(--ft-field-radius);
  background: var(--ft-paper);
  padding: 0 12px;
}
.pet-photo-option summary {
  cursor: pointer;
  min-height: var(--ft-target);
  align-content:center;
}
.pet-photo-option .upload-label {
  margin: 7px 0;
}
.pet-photo-option:focus-within .upload-label {
  outline: 1px solid var(--salon-accent);
}
#dog-file {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
}
#dog-thumb {
  width: 38px;
  height: 38px;
  object-fit: cover;
  margin-left: auto;
}
#generate-design,
.save-design {
  width: 100%;
  margin-top: 10px;
}
#leave-job {
  margin-top: 6px;
}
.proof-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 14px;
}
.proof-palette {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  margin: 16px 0 21px;
}
.proof-palette i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #6b594a4d;
}
#pattern-fields .measure-grid {
  padding-bottom: 12px;
}
#check-job {
  color: var(--salon-accent);
}
@media (max-width: 950px) and (min-width: 701px) {
  .hero h1 {
    font-size: clamp(37px, 4.8vw, 47px);
  }
  .hero-copy {
    max-width: 51%;
  }
  .hero-statement,
  .hero-fit {
    max-width: 29em;
  }
  .tailor-note {
    gap: 30px;
  }
}
@media (max-width: 700px) {
  .brand-mark {
    width: 35px;
    height: 35px;
  }
  .hero {
    height: clamp(700px, 92svh, 875px);
  }
  .cover-switch {
    top: calc(var(--mast-height) + 12px);
    left: var(--pad);
  }
  .season-switch {
    padding: 2px;
    gap: 1px;
  }
  .season-switch button {
    min-height: 31px;
    padding: 3px 9px;
    font-size: 11px;
    gap: 5px;
  }
  .season-switch button i {
    width: 6px;
    height: 6px;
  }
  .hero-art {
    top: var(--mast-height);
    height: 64%;
  }
  .hero-photo {
    object-position: 70% 28%;
  }
  .hero .hero-shade,
  .hero[data-look] .hero-shade {
    background: linear-gradient(
      0deg,
      var(--salon-deep) 9%,
      var(--salon-deep) 27%,
      color-mix(in srgb, var(--salon-deep) 90%, transparent) 35%,
      color-mix(in srgb, var(--salon-deep) 35%, transparent) 49%,
      transparent 61%
    );
  }
  .hero-body {
    align-items: end;
    padding: 0 var(--pad) 76px;
  }
  .hero-copy {
    width: 100%;
    max-width: 100%;
  }
  .issue {
    font-size: 10px;
    gap: 6px;
  }
  .issue i {
    font-size: 17px;
  }
  .hero h1 {
    font-size: clamp(39px, 9.75vw, 62px);
    margin: 10px 0 10px;
    line-height: 1.17;
    letter-spacing: 0.025em;
  }
  .hero-statement {
    font-size: 0.875rem;
    line-height: 1.6;
  }
  .hero-fit {
    font-size: 0.8125rem;
    line-height: 1.7;
  }
  .hero-actions {
    margin-top: 14px;
  }
  .hero-actions,
  .closing-actions {
    flex-wrap: wrap;
    gap: 4px 16px;
  }
  .rail-budget strong {
    font-size: 13px;
  }
  .rail-budget span {
    display: none;
  }
  .hotspot {
    top: 37%;
    left: 72%;
  }
  .tailor-note {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .note-photo {
    aspect-ratio: 1.18;
  }
  .note-copy h2 {
    font-size: 30px;
    margin: 8px 0 12px;
  }
  .note-copy h3 {
    font-size: 17px;
  }
  .note-tabs {
    margin-bottom: 12px;
  }
  .note-copy > p:not(.eyebrow) {
    font-size: 13px;
    margin: 5px 0 13px;
  }
  .note-photo-label {
    left: 13px;
    bottom: 11px;
    font-size: 10px;
  }
  .collection {
    padding-top: clamp(24px, 5vw, 36px);
  }
  .collection .section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    margin-bottom: 8px;
  }
  .collection .eyebrow {
    font-size: 10px;
  }
  .collection h2 {
    margin-top: 6px;
  }
  .collection-grid.is-pair {
    grid-template-columns: none;
  }
  .is-pair .card-media {
    display: block;
    aspect-ratio: 4/4.7;
  }
  .is-pair .detail-strip {
    display: none;
  }
  .edit-switch {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(100%, 26rem);
    background: color-mix(in srgb, var(--season-paper), var(--salon-dark) 4%);
  }
  .edit-switch button {
    font-size: 0.875rem;
    gap: 6px;
  }
  .draft-pane {
    height: 190px;
  }
  .studio-picture {
    height: 100%;
    min-height: 0;
  }
  .studio-picture img {
    object-fit: cover;
  }
  .draft-pane:has(.studio-picture:not([hidden])) .draft-top,
  .draft-pane:has(.studio-picture:not([hidden])) .draft-bottom {
    display: none;
  }
  .studio-picture span {
    font-size: 10px;
    bottom: 8px;
    left: 9px;
  }
}
@media (max-width: 355px) {
  .hero {
    height: 705px;
  }
  .hero h1 {
    font-size: 36px;
  }
  .hero .issue {
    font-size: 9px;
  }
  .hero-actions {
    gap: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .note-photo img {
    transition: none;
  }
}
.hero-art picture {
  display: contents;
}
.hero-photo {
  object-position: 50% 0%;
}
.brand {
  position: relative;
  display: block;
  width: 222px;
  height: 55px;
}
@media (min-width: 701px) and (max-width: 950px) {
  .brand {
    width: clamp(156px, 21vw, 200px);
  }
}
.brand-lockup {
  display: block;
  width: 100%;
  height: 100%;
  background: currentColor;
  mask: url(/salon/assets/Furjoy-Cloth-Logo.svg) left center/contain no-repeat;
  -webkit-mask: url(/salon/assets/Furjoy-Cloth-Logo.svg) left center/contain no-repeat;
}
.brand .brand-cn {
  position: absolute;
  left: 28%;
  bottom: 1px;
  font-size: 9px;
  letter-spacing: 0.23em;
}
.footer-logo .brand-lockup {
  width: 169px;
  height: 42px;
}
.note-photo {
  aspect-ratio: 4/3;
}
.note-photo img {
  object-position: center;
  transform: none;
}
.note-photo[data-view='fit'] img {
  object-fit: contain;
  object-position: center;
  transform: none;
}
@media (max-width: 700px) {
  .brand {
    width: min(100%, 169px);
    height: 44px;
  }
  .brand .brand-cn {
    font-size: 7px;
    bottom: 0;
  }
  .footer-logo .brand-lockup {
    width: 138px;
    height: 34px;
  }
  .hero-art {
    height: 65%;
  }
  .hero-photo {
    object-position: 50% 47%;
  }
  .note-photo {
    aspect-ratio: 4/3;
  }
}

.custom-color {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 2px 8px;
  border: 1px solid var(--hair);
  font-size: 11px;
  color: var(--muted);
  cursor: pointer;
}
.custom-color input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.custom-color:focus-within {
  outline: 2px solid var(--salon-accent);
  outline-offset: 2px;
}

@media (min-width: 701px) {
  .hero {
    --cover-height: clamp(580px, max(87svh, min(715px, 93svh)), 1120px);
    --cover-photo-top: var(--mast-height);
    /* Keep the desktop crop close to the original 16:9 photography. */
    --cover-photo-height: min(calc(var(--cover-height) - var(--mast-height)), 58vw);
    --cover-photo-width: min(100%, calc(var(--cover-photo-height) * 1.9));
    --cover-image-width: max(var(--cover-photo-width), calc(var(--cover-photo-height) * 1.78));
    --cover-image-height: max(var(--cover-photo-height), calc(var(--cover-photo-width) / 1.78));
    height: var(--cover-height);
  }
  .hero-art {
    inset: var(--cover-photo-top) 0 auto auto;
    width: var(--cover-photo-width);
    height: var(--cover-photo-height);
    transform-origin: right top;
  }
  .hero-photo {
    object-position: 100% 0%;
  }
  .hotspot {
    left: min(calc(100% - 126px), calc(100% - var(--cover-image-width) * (1 - var(--spot-x))));
    top: calc(var(--cover-photo-top) + var(--cover-image-height) * var(--spot-y) - 22px);
  }
  .hero-art::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
      linear-gradient(90deg, var(--salon-deep), transparent 32%),
      linear-gradient(0deg, var(--salon-deep), transparent 10%);
  }
}
@media (min-width: 951px) and (max-height: 740px) {
  .hero h1 {
    font-size: clamp(42px, min(4.55vw, 10svh), 74px);
  }
  .hero-actions {
    margin-top: 16px;
  }
}

@media (min-width: 501px) and (max-width: 700px) and (min-height: 521px),
       (min-width: 701px) and (max-aspect-ratio: 6/5) {
  .hero {
    --cover-photo-top: calc(var(--mast-height) + 66px);
    --cover-photo-height: 75vw;
    --cover-photo-width: 100%;
    height: auto;
  }
  .hero-art {
    top: var(--cover-photo-top);
    height: var(--cover-photo-height);
    transform: none;
    transition: none;
  }
  .hero-art::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
      linear-gradient(180deg, var(--salon-deep), transparent 6%),
      linear-gradient(0deg, var(--salon-deep), transparent 13%);
  }
  .cover-switch {
    top: calc(var(--mast-height) + 10px);
  }
  .hero .hero-shade,
  .hero[data-look] .hero-shade {
    background: none;
  }
  .hero-body {
    height: auto;
    padding-top: calc(var(--cover-photo-top) + var(--cover-photo-height) - 18px);
  }
  .hero-copy {
    max-width: 100%;
  }
}
@media (min-width: 701px) and (max-aspect-ratio: 6/5) {
  .hero {
    --cover-photo-height: clamp(50vw, calc(100svh - var(--cover-photo-top)), 75vw);
  }
}
@media (min-width: 501px) and (max-width: 700px) and (min-height: 521px) {
  .hotspot {
    top: calc(var(--cover-photo-top) + var(--cover-photo-height) * 0.44);
  }
}

@media (pointer: coarse) and (orientation: landscape) and (min-width: 560px) and (max-height: 520px) {
  :root {
    --mast-bar: 52px;
    --gutter: clamp(16px, 3.5vw, 36px);
  }
  .brand {
    width: min(100%, 166px);
    height: 44px;
  }
  .hero {
    height: auto;
  }
  .hero-art {
    inset: var(--mast-height) 0 auto auto;
    width: 100%;
    height: calc(100% - var(--mast-height));
    transform: none;
  }
  .hero-art::after {
    display: none;
  }
  .hero .hero-shade {
    background: linear-gradient(90deg, var(--salon-deep) 2%, color-mix(in srgb, var(--salon-deep) 84%, transparent) 36%, transparent 69%);
  }
  .cover-switch {
    top: calc(var(--mast-height) + 6px);
  }
  .hero-body {
    height: auto;
    min-height: 100svh;
    align-items: center;
    padding: calc(var(--mast-height) + 65px) var(--pad) 58px;
  }
  .hero-copy {
    width: 58%;
    max-width: 35rem;
  }
  .hero .issue {
    font-size: 11px;
  }
  .issue i {
    font-size: 16px;
  }
  .hero h1 {
    margin: 6px 0 8px;
    font-size: clamp(27px, 3.5vw, 36px);
    line-height: 1.12;
  }
  .hero-statement,
  .hero-fit {
    max-width: none;
    font-size: 13px;
    line-height: 1.5;
  }
  .hero-actions {
    margin-top: 8px;
  }
  .hero-rail {
    height: 52px;
  }
}
@media (pointer: coarse) and (orientation: landscape) and (min-width: 701px) and (max-height: 520px) {
  .hero-photo {
    object-position: 50% 58%;
  }
  .hotspot {
    left: calc(100% * var(--spot-x));
    top: calc(100% * var(--spot-y));
  }
}
@media (pointer: coarse) and (orientation: landscape) and (min-width: 560px) and (max-width: 700px) and (max-height: 520px) {
  .hero-art {
    left: auto;
    width: 52%;
  }
  .hero[data-look] .hero-shade {
    background: linear-gradient(90deg, var(--salon-deep) 40%, transparent 74%);
  }
}
