/* Atelier controls and uncropped fitting preview. Loaded after the base styles. */
:root {
  --ink: #283c33;
  --muted: #70776c;
  --line: #dedbd1;
  --accent: #a98c60;
  --control: #fffcf6;
  --control-radius: 8px;
  --hero-button-fill: #d8cfbd;
}
button, .button, input, select, textarea {
  transition: background-color .18s, border-color .18s, box-shadow .18s, color .18s, transform .18s;
}
button:active:not(:disabled), .button:active { transform: translateY(1px); }
button:disabled { opacity: .5; }
button:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.button {
  border: 1px solid transparent;
  border-radius: var(--control-radius);
  font-weight: 500;
  min-height: 48px;
}
.button > span { font-size: 18px; font-weight: 400; }
.dark { background: #283c33; box-shadow: 0 4px 12px #283c3314; }
.dark:hover { background: #3b5547; box-shadow: 0 6px 18px #283c3326; }
.ivory { border-color: #d7cfbd; background: #fffcf5; }
.nav-cta {
  border: 1px solid #c6bcaa;
  border-radius: 6px;
  padding: 12px 17px;
  background: #fffcf580;
}
.nav-cta:hover { color: var(--ink); background: #e8e7db; border-color: var(--accent); }
.masthead nav a, .masthead nav button { border-radius: 5px; padding: 8px 10px; }
.masthead nav a:hover, .masthead nav button:hover { color: var(--ink); background: #e8e7dc; }
/* The image-backed homepage needs a separate, dark navigation hover state. */
body:not(.studio-active) .masthead nav a:hover,
body:not(.studio-active) .masthead nav button:hover {
  color: #f4ead7;
  background: #14211ecc;
}
body:not(.studio-active) .masthead .nav-cta {
  color: #fff;
  background: transparent;
  border-color: #ffffffb3;
  border-radius: 0;
  text-align: center;
}
body:not(.studio-active) .masthead .nav-cta:hover {
  color: #26382f;
  background: var(--hero-button-fill);
  border-color: var(--hero-button-fill);
}
.language-switch:hover { color: var(--ink); }
body:not(.studio-active) .masthead .language-switch:hover { color: #e6d5b6; }
.studio-heading { border-top: 1px solid #fff8; }
.journey strong { background: #e7eadf; border-radius: 30px; padding: 9px 15px; }
.journey strong span { color: #819077; }
.journey button:hover { color: var(--ink); }
.workspace { min-height: 620px; }
.stage {
  background: linear-gradient(90deg, #b9a78c, #dfd0b9 25%, #e5d7c1 75%, #c4b59c);
  --preview-height: calc(100% - 76px);
}
/* Fit the whole photograph vertically; cover cropped heads on wide screens.
   Both layers share the same image box to keep the comparison aligned. */
.stage > #stage-image, .before-layer > #before-image {
  inset: 0;
  width: 100%;
  height: var(--preview-height);
  object-fit: contain;
  object-position: center;
}
.stage-vignette {
  background: linear-gradient(0deg, #26352b30, transparent 18%);
}
.stage-heading {
  top: 22px;
  padding: 12px 16px;
  border-left: 2px solid #ab8b59;
  background: #f9f5e9db;
  backdrop-filter: blur(16px);
  border-radius: 0 7px 7px 0;
}
.stage-heading h2 { font-size: 20px; }
.wardrobe {
  top: 22px;
  padding: 18px 14px;
  border-color: #fff9;
  border-radius: 12px;
  background: #faf7efed;
  box-shadow: 0 12px 40px #34281a1a;
  max-height: calc(100% - 110px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.wardrobe h3 { margin-bottom: 14px; }
.suit-options { gap: 5px; }
.suit-option { border-radius: 7px; padding: 9px 7px; min-height: 51px; }
.suit-option:hover:not(:disabled) { background: #eaece2; }
.suit-option[aria-pressed="true"] {
  background: #e5eadf;
  border-color: #8c9a80;
  box-shadow: inset 3px 0 #596c51;
}
.suit-option[aria-pressed="true"]:after { top: 9px; right: 7px; color: #596c51; }
.suit-option .swatch { border-radius: 3px; }
.wardrobe-separator { margin: 14px 0; }
.layer-option {
  border-radius: 7px;
  background: #fffcf680;
  padding: 8px 2px;
  min-height: 62px;
}
.layer-option:hover:not(:disabled):not([aria-pressed="true"]) { background: #e7ebdf; border-color: #9aab8d; }
.layer-option[aria-pressed="true"] { box-shadow: 0 3px 8px #283c3320; }
.wardrobe-profile { min-height: 30px; margin-top: 10px; color: #536a54; }
.stage-person > button, .scene-trigger {
  border-radius: 8px;
  background: #faf7efed;
  border-color: #fff9;
  box-shadow: 0 5px 20px #30281a12;
}
.stage-person > button:hover, .scene-trigger:hover { background: #fffdf6; border-color: #b6a17d; }
.stage-person small { font-size: 9px; }
.stage-tools { display: flex; left: 22px; bottom: 22px; gap: 6px; }
.stage-tools button { height: 38px; border-radius: 7px; font-size: 17px; }
.stage-tools button span { font-size: 11px; }
.stage-tools button:hover:not([aria-pressed="true"]) { background: #fffaf0; }
.stage-bottom { bottom: 12px; gap: 5px; }
.angle-switch { border-radius: 9px; background: #faf7efed; padding: 4px; }
.angle-switch button { border-radius: 6px; min-height: 34px; }
.angle-switch button:hover:not(:disabled):not([aria-pressed="true"]) { background: #e7e9de; }
.stage-disclosure { color: #4e5348; text-shadow: none; font-size: 8px; }
.inspector { background: #f8f6f0; }
.inspector-tabs { padding: 8px 16px; gap: 5px; background: #eeede5; }
.inspector-tabs button { border: 1px solid transparent; border-radius: 7px; padding: 12px 5px; color: #72796d; }
.inspector-tabs button[aria-selected="true"] { background: #fffcf6; border-color: #d8d6c8; color: var(--ink); box-shadow: 0 2px 5px #283c3308; }
.inspector-tabs button:hover { color: var(--ink); }
.inspector-intro h2 { font-size: 24px; margin-bottom: 20px; }
.detail-group { padding: 18px 0; }
.detail-heading h3 { font-weight: 500; }
.detail-heading button { padding: 5px 7px; font-size: 10px; border-radius: 4px; }
.detail-heading button:hover { background: #e9e9df; color: var(--ink); }
.detail-group > p { font-size: 10px; }
.fabric-options { gap: 12px; }
.fabric-choice { width: 46px; height: 44px; border-radius: 7px; padding: 4px; }
.fabric-choice > span { border-radius: 3px; }
.fabric-choice:hover:not(:disabled) { border-color: #b9ad96; transform: translateY(-2px); }
.fabric-choice[aria-pressed="true"] { border: 1px solid #667a5d; background: #e4e9db; box-shadow: 0 0 0 2px #667a5d18; }
.segmented, .scene-options { padding: 4px; gap: 4px; background: #eceee5; border-radius: 8px; }
.segmented button, .scene-options button { min-height: 38px; border: 1px solid transparent; border-radius: 5px; padding: 8px 4px; font-size: 11px; }
.segmented button:hover:not(:disabled), .scene-options button:hover:not([aria-pressed="true"]) { background: #fffdf5; }
.segmented button[aria-pressed="true"] { border-color: #afbaa0; background: #fffcf6; color: #344f3a; box-shadow: 0 2px 5px #283c330d; }
.segmented button:disabled[aria-pressed="true"] { opacity: .8; }
.segmented button:disabled { cursor: not-allowed; }
.current-config { border-radius: 8px; background: #e9ede2; border: 1px solid #d6decb; padding: 16px; }
.current-config > span { color: #627453; }
.inspector-actions { background: #f8f6f0; box-shadow: 0 -8px 24px #283c3305; }
.inspector-actions > div { gap: 4px; margin: 8px 0; }
.inspector-actions > div button { border-radius: 5px; padding: 8px 6px; min-height: 34px; }
.inspector-actions > div button:hover { background: #e9ece1; }
.dossier-link { padding-top: 12px; color: #53694d; }
.chat-suggestions button { border-radius: 20px; padding: 8px 12px; }
.chat-suggestions button:hover { border-color: #a5b091; background: #e9eddf; }
.chat-form textarea { border-radius: 10px; background: #fffcf6; font-size: 12px; padding: 13px 50px 13px 14px; }
.chat-form button { width: 32px; height: 32px; border-radius: 7px; right: 9px; bottom: 14px; font-size: 19px; }
#modal { border-radius: 16px; border: 1px solid #e1dbc9; box-shadow: 0 24px 90px #18271d40; }
#modal::backdrop { background: #1a281f70; backdrop-filter: blur(7px); }
.close-modal { background: #ebece2; border-radius: 50%; width: 36px; height: 36px; }
.close-modal:hover { background: #dde4d4; }
.profile-card { border-radius: 10px; overflow: hidden; }
.profile-card:hover { border-color: #a3ae94; box-shadow: 0 6px 18px #283c3312; }
.profile-card[aria-pressed="true"] { box-shadow: 0 0 0 2px #81936e; }
.upload-box { border-radius: 10px; background: #edf0e6; padding: 20px; }
.upload-box label { display: block; margin-bottom: 12px; font-size: 12px; }
.upload-box input::file-selector-button { border: 1px solid #b7c0aa; border-radius: 6px; background: #fffcf6; color: var(--ink); padding: 9px 13px; margin-right: 12px; cursor: pointer; }
.form-grid { gap: 20px 18px; }
.form-grid label { gap: 9px; font-size: 12px; }
.form-grid input, .form-grid select, .form-grid textarea,
.dossier-fields input, .dossier-fields select, .dossier-fields textarea {
  min-height: 46px; border-radius: 7px; border-color: #d1d5c6;
  background: #fffcf6; font-size: 13px; padding: 12px 13px;
}
.form-grid textarea { min-height: 100px; }
input::placeholder, textarea::placeholder { color: #969a8c; }
.form-grid input:hover, .form-grid select:hover, .form-grid textarea:hover { border-color: #a5b194; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus,
.dossier-fields input:focus, .dossier-fields select:focus, .dossier-fields textarea:focus,
.chat-form textarea:focus {
  outline: none; border-color: #788d67; background: #fffefa; box-shadow: 0 0 0 3px #788d671c;
}
.consent { font-size: 11px; }
.consent input { width: 16px; height: 16px; flex-shrink: 0; }
.booking-look, .modal-note, .recommendation { border-radius: 9px; }
.toast { border-radius: 9px; box-shadow: 0 8px 28px #1d2a2026; }
@media (min-width: 761px) {
  .stage-bottom { max-width: calc(100% - 260px); }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .stage-heading { left: auto; right: 16px; max-width: 190px; }
  .stage-tools { gap: 4px; left: 12px; bottom: 24px; }
  .stage-tools button { padding: 6px 8px; }
  .stage-tools button span { font-size: 9px; }
  .stage-bottom { max-width: calc(100% - 180px); right: 12px; }
  .angle-switch button { padding: 8px 6px; }
}
@media (max-width: 760px) {
  .masthead nav a, .masthead nav button { padding: 8px 4px; }
  .nav-cta { min-width: auto; padding: 10px 12px; font-size: 10px; }
  .journey strong { padding: 7px 9px; }
  .stage { --preview-height: calc(100% - 86px); height: clamp(510px, calc(100svh - 210px), 690px); }
  /* Portrait screens crop only the room's sides, preserving head and shoes. */
  .stage > #stage-image, .before-layer > #before-image { object-fit: cover; object-position: center top; }
  .stage-heading { top: 14px; left: 12px; max-width: 145px; padding: 8px 10px; }
  .stage-heading h2 { font-size: 16px; }
  .stage-heading p { font-size: 8px; }
  .stage-person { top: auto; bottom: 103px; right: 12px; }
  .stage-person small { font-size: 8px; max-width: 95px; }
  .scene-trigger { top: 14px; right: 12px; }
  .stage-tools { bottom: 103px; left: 12px; display: grid; }
  .stage-tools button { height: 36px; padding: 6px 9px; }
  .stage-tools button span { font-size: 10px; }
  .stage-bottom { bottom: 0; padding: 9px 6px; gap: 5px; background: #f8f6f0; min-height: 86px; }
  .angle-switch button { padding: 8px 10px; }
  .stage-disclosure { font-size: 7px; }
  .inspector-tabs { padding: 8px 12px; }
  .inspector-tabs button { padding: 12px 5px; }
  .segmented button, .scene-options button { min-height: 42px; font-size: 12px; }
  .studio-footer button { padding: 9px 12px; border: 1px solid #c8cebb; border-radius: 7px; background: #faf8ef; color: var(--ink); }
  #modal { border-radius: 12px; }
  .form-grid input, .form-grid select, .form-grid textarea, .chat-form textarea { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  button, .button, input, select, textarea { transition: none; }
}
@media (min-width: 600px) and (max-width: 760px) {
  .stage > #stage-image, .before-layer > #before-image { object-fit: contain; }
}

.language-switch { margin-left: auto; padding: 12px 8px; font-size: 12px; white-space: nowrap; }
.masthead nav { margin-left: auto; }
html[lang="en"] .showcase h1 { letter-spacing: -1.5px; line-height: 1.15; }
html[lang="en"] .showcase-choice strong { font-size: 11px; letter-spacing: 0; }
html[lang="en"] .showcase-caption strong { letter-spacing: 0; }
html[lang="en"] .segmented button { font-size: 10px; padding-left: 7px; padding-right: 7px; }
html[lang="en"] .scene-options button { font-size: 10px; padding-left: 7px; padding-right: 7px; }
html[lang="en"] .layer-option { font-size: 11px; }
html[lang="en"] .stage-heading h2 { font-size: 23px; }
@media (max-width: 760px) {
  .masthead { gap: 10px; }
  .language-switch { font-size: 11px; padding: 12px 5px; }
  html[lang="en"] .nav-cta { font-size: 9px; padding: 10px 8px; }
  html[lang="en"] .showcase-actions { gap: 12px; flex-wrap: wrap; }
  html[lang="en"] .showcase .button { min-width: 150px; font-size: 10px; }
  html[lang="en"] .showcase .hero-secondary { font-size: 10px; }
  html[lang="en"] .showcase-choice strong { font-size: 9px; line-height: 1.5; }
  html[lang="en"] .stage-heading h2 { font-size: 15px; }
  html[lang="en"] .journey { flex-wrap: wrap; }
  html[lang="en"] .angle-switch button { font-size: 9px; padding: 8px; }
  html[lang="en"] .scene-trigger { font-size: 9px; }
}

/* Homepage actions and captions stay readable over every collection image. */
.showcase .showcase-actions { gap: 14px; align-items: stretch; }
.showcase .showcase-actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 48px;
  padding: 14px 28px;
  border: 1px solid;
  border-radius: 0;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 1.5px;
  text-align: center;
}
.showcase .showcase-actions .button {
  color: #fff;
  background: transparent;
  border-color: #ffffffb3;
  box-shadow: none;
}
.showcase .showcase-actions .button:hover {
  color: #26382f;
  background: var(--hero-button-fill);
  border-color: var(--hero-button-fill);
  box-shadow: none;
}
.showcase .showcase-actions button > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: 19px;
  line-height: 1;
  transition: transform .25s ease;
}
.showcase .showcase-actions button:hover > span { transform: translate(2px, -2px); }
.showcase .showcase-actions button:focus-visible { outline: 2px solid #fff7e5; outline-offset: 4px; }
/* A single satin-like sweep accompanies the homepage button fill. */
.showcase .showcase-actions .button,
body:not(.studio-active) .masthead .nav-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: background-color .45s ease, color .45s ease, border-color .45s ease;
}
.showcase .showcase-actions .button::after,
body:not(.studio-active) .masthead .nav-cta::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 80%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, #26382f0a 40%, #fff4dc26 60%, transparent);
  transform: translateX(-150%) skewX(-15deg);
}
.showcase .showcase-actions .button:focus-visible,
body:not(.studio-active) .masthead .nav-cta:focus-visible {
  color: #26382f;
  background: var(--hero-button-fill);
  border-color: var(--hero-button-fill);
  outline: 2px solid #fff7e5;
  outline-offset: 4px;
}
@media (hover: hover) and (pointer: fine) {
  .showcase .showcase-actions .button:hover::after,
  body:not(.studio-active) .masthead .nav-cta:hover::after {
    animation: atelier-button-sheen 1s ease .12s both;
  }
}
@keyframes atelier-button-sheen {
  from { transform: translateX(-150%) skewX(-15deg); }
  to { transform: translateX(160%) skewX(-15deg); }
}
@media (prefers-reduced-motion: reduce) {
  .showcase .showcase-actions .button,
  body:not(.studio-active) .masthead .nav-cta { transition: none; }
  .showcase .showcase-actions .button::after,
  body:not(.studio-active) .masthead .nav-cta::after { display: none; animation: none; }
}
.showcase .showcase-caption {
  right: 16%;
  align-items: flex-end;
  width: fit-content;
  max-width: min(320px, 34%);
  padding: 0;
  gap: 10px;
  color: #fff8ea;
  text-align: right;
  text-shadow: 0 2px 10px #08130de6, 0 1px 3px #08130dcc;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}
.showcase .showcase-caption > span:first-child { color: #e7d4af; }
.showcase .showcase-caption > span:last-child { color: #eee7d8; line-height: 1.6; }
.showcase .showcase-caption strong { line-height: 1.4; }
@media (max-width: 760px) {
  .showcase .showcase-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .showcase .showcase-actions .button,
  html[lang="en"] .showcase .showcase-actions .button {
    width: auto;
    min-width: 0;
    min-height: 52px;
    padding: 11px 12px;
    font-size: 11px;
    letter-spacing: .3px;
    gap: 10px;
    white-space: normal;
  }
  .showcase .showcase-actions button > span { width: 16px; height: 16px; flex-basis: 16px; font-size: 17px; }
  .showcase .showcase-caption { right: 14%; padding: 0; max-width: 64%; gap: 6px; }
  .showcase .showcase-caption strong { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .showcase .showcase-actions button > span { transition: none; } }
.home-visit { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; background: #eeece3; }
.home-visit h2 { font-family: var(--serif); font-size: clamp(28px, 3.2vw, 46px); font-weight: 400; line-height: 1.4; margin: 18px 0; }
.home-visit h2 i { display: block; font-weight: 400; }
.home-visit p { color: var(--muted); font-size: 13px; line-height: 1.9; }
.home-visit .button { margin-top: 22px; }
.visit-steps { list-style: none; padding: 0; margin: 0; }
.visit-steps li { display: flex; gap: 24px; padding: 22px 0; border-bottom: 1px solid #c6cdb8; }
.visit-steps li > span { color: var(--muted); font-size: 12px; padding-top: 4px; }
.visit-steps h3 { font-size: 18px; font-weight: 400; margin: 0 0 8px; }
.visit-steps p { margin: 0; }
.visit-fields { min-width: 0; border: 1px solid #c6cdb8; padding: 16px; margin: 0; }
.visit-fields[hidden] { display: none; }
.visit-fields legend { font-size: 12px; padding: 0 6px; }
.booking-summary { display: grid; grid-template-columns: auto 1fr; gap: 12px 20px; text-align: left; background: #eeece3; padding: 20px; font-size: 13px; line-height: 1.7; }
.booking-summary dt { color: var(--muted); }
.booking-summary dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
#modal[data-kind="booking"] { width: min(560px, calc(100% - 32px)); padding: 28px 30px; }
#modal[data-kind="booking"] .modal-header { margin-bottom: 14px; padding-bottom: 18px; }
#modal[data-kind="booking"] .modal-header h2 { font-size: 26px; }
#modal-content > .booking-intro { margin-bottom: 24px; line-height: 1.7; }
.booking-services { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.booking-services legend { font-size: 12px; margin-bottom: 10px; }
.booking-service-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.booking-service-options label { position: relative; cursor: pointer; }
.booking-service-options input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.booking-service-options label > span { display: flex; flex-direction: column; gap: 7px; padding: 15px 8px; border: 1px solid #d7dacd; border-radius: 10px; background: #fffcf6; text-align: center; transition: background .18s, border-color .18s; }
.booking-service-options strong { font-size: 13px; font-weight: 500; }
.booking-service-options small { font-size: 10px; color: var(--muted); }
.booking-service-options input:checked + span { background: #e8eddf; border-color: #758765; box-shadow: inset 0 0 0 1px #758765; }
.booking-service-options label:hover > span { border-color: #758765; }
.booking-service-options input:focus-visible + span { outline: 2px solid #758765; outline-offset: 3px; }
#booking-form .form-grid { gap: 16px 14px; }
#booking-form .form-grid label { font-size: 12px; gap: 8px; }
#booking-form .form-grid input, #booking-form .form-grid select, #booking-form .form-grid textarea { width: 100%; min-width: 0; }
.booking-details { margin: 20px 0; border-top: 1px solid #dcded2; border-bottom: 1px solid #dcded2; }
.booking-details summary { padding: 15px 2px; cursor: pointer; font-size: 12px; }
.booking-details summary span { float: right; font-size: 11px; color: var(--muted); }
.booking-details > .form-grid { padding: 4px 0 18px; }
#booking-form .visit-fields { border: 0; padding: 0; }
#booking-form textarea { min-height: 76px; resize: vertical; }
#booking-form .booking-look { margin: 0 0 20px; padding: 10px 12px; background: #eeeee5; display: flex; align-items: center; gap: 12px; }
#booking-form .booking-look img { width: 38px; height: 46px; border-radius: 5px; object-fit: cover; }
#booking-form .booking-look div { flex: 1; min-width: 0; }
#booking-form .booking-look small { display: block; font-size: 10px; margin: 0 0 5px; color: var(--muted); }
#booking-form .booking-look strong { display: block; font-size: 12px; font-weight: 500; }
#booking-form .booking-look > span { color: var(--muted); }
.booking-submit { width: 100%; display: flex; justify-content: center; min-height: 48px; border-radius: 8px; }
.booking-footnote { margin: 12px 0 0; text-align: center; font-size: 10px; color: var(--muted); line-height: 1.8; }
@media (max-width: 700px) {
  .home-visit { grid-template-columns: 1fr; gap: 24px; }
  #booking-form .form-grid { grid-template-columns: 1fr; }
  #booking-form input, #booking-form select, #booking-form textarea { font-size: 16px; min-width: 0; }
  #modal[data-kind="booking"] { padding: 22px 20px; }
  #modal[data-kind="booking"] .modal-header h2 { font-size: 23px; }
  .booking-service-options label > span { padding: 14px 4px; }
  .booking-service-options small { font-size: 9px; }
}
