@font-face {
  font-family: DM;
  src: url("../fonts/dm-sans.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}
@font-face {
  font-family: StudioSerif;
  src: url("../fonts/instrument-italic.woff2") format("woff2");
  font-style: italic;
  font-display: swap;
}
.studio-theme {
  --paper: #eeeee8;
  --ink: #18201d;
  --clay: #b2472b;
  --hair: #c4c6ba;
  --nav: 62px;
  --gutter: max(5vw, calc((100vw - 1580px) / 2));
  font: 16px/1.5 DM, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
:where(.studio-theme) :where(h1,h2,h3,figure,p), html.studio-theme body { margin: 0; }
:where(.studio-theme) :where(a) { color: inherit; text-decoration: none; }
:where(.studio-theme) :where(button, input) { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #cf643a; outline-offset: 4px; }
.skip { position: fixed; z-index: 20; left: 12px; top: -70px; padding: 10px; background: white; }
.skip:focus { top: 6px; }
.mast {
  position: sticky; top: 0; z-index: 9; height: var(--nav); padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--paper); border-bottom: 1px solid var(--hair);
}
.mast img { display: block; width: 131px; height: auto; }
.mast .chapters { display: flex; align-items: center; gap: 2.25rem; }
.mast .chapters a, .nav-quote { font-size: .82rem; font-weight: 650; }
.mast .chapters a { position: relative; padding: .6rem 0; }
.mast .chapters a[aria-current]::after {
  content: ""; position: absolute; bottom: 4px; left: 0; right: 0; height: 2px; background: var(--clay);
}
.nav-quote, .studio-button {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 1.1rem; min-height: 42px;
  padding: .66rem 1.18rem; border: 1px solid transparent; border-radius: 3rem; font-weight: 650;
}
.nav-quote, .studio-dark { background: var(--ink); color: #faf9ef; }
.studio-button, .studio-link { font-size: .9rem; }
.studio-button:hover, .nav-quote:hover { transform: translateY(-1px); }
.studio-link { font-weight: 650; text-decoration: underline; text-underline-offset: .28em; }
.mono,.eyebrow,.spec-row>span,.brief legend,.photo-actions button {
  font: 500 .68rem/1.5 ui-monospace, Menlo, monospace; text-transform: uppercase; letter-spacing: .095em;
}
.eyebrow { display: flex; align-items: center; gap: .6rem; }
.eyebrow i { width: 22px; height: 2px; background: var(--clay); }
.opening h1, .custom h2, .proof h2, .enquiry h2 {
  font-size: clamp(64px, 7.9vw, 148px); letter-spacing: -.086em; line-height: .87; font-weight: 640;
}
.opening h1 em, .studio-theme h2 em {
  font-family: StudioSerif, Georgia, serif; font-weight: 400; letter-spacing: -.055em;
}
.opening h1>span, .opening h1 em { display: block; }
.story { position: relative; }
.stage {
  position: relative; isolation: isolate; overflow: hidden; height: calc(100svh - var(--nav));
  min-height: 525px; max-height: 1200px;
  background: radial-gradient(ellipse at 72% 37%, #fbfbf6 0%, var(--paper) 47%, #e8e9e1 100%);
  --intro: 1; --details: 0; --object-x: 72%; --zoom: 1; --label-shift: 0px;
}
.has-motion .story { height: calc(235svh - var(--nav)); }
.has-motion .stage { position: sticky; top: var(--nav); }
.opening, .custom {
  position: absolute; z-index: 3; top: 47%; max-width: 575px;
  transform: translateY(-50%); will-change: opacity;
}
.opening {
  left: var(--gutter); width: 45%; opacity: var(--intro);
  transform: translateY(calc(-50% - (1 - var(--intro)) * 46px));
}
.opening .eyebrow { margin-bottom: clamp(18px, 4vh, 45px); }
.deck { max-width: 350px; margin-top: 1.65rem; color: #46504b; line-height: 1.58; }
.opening-actions { display: flex; gap: 1.35rem; align-items: center; margin-top: 1.6rem; flex-wrap: wrap; }
.object {
  position: absolute; z-index: 2; left: var(--object-x); top: 46%;
  width: min(51vw, 77svh, 815px); aspect-ratio: 1;
  transform: translate(-50%, -50%) scale(var(--zoom));
}
.turn-surface { position: absolute; inset: 0; cursor: grab; touch-action: pan-y; mix-blend-mode: multiply; }
.turn-surface:active { cursor: grabbing; }
.object { mix-blend-mode: multiply; }
.turn-surface img,.turn-surface video,.turn-surface canvas {
  display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  user-select: none; -webkit-user-drag: none; pointer-events: none;
}
.turn-video,.turn-fallback { opacity: 0; }
.video-ready .turn-video,.atlas-ready .turn-fallback { opacity: 1; }
.video-ready .poster,.atlas-ready .poster { opacity: 0; }
.turn-surface[data-colour="ink"] { filter: grayscale(1) contrast(1.65); }
.turn-surface[data-colour="moss"] { filter: hue-rotate(57deg) saturate(.62); }
.ground {
  position: absolute; bottom: -1%; left: 26%; width: 49%; height: 6%; opacity: .5;
  background: radial-gradient(ellipse closest-side, #64655b 0%, #86877b60 48%, transparent 100%);
  filter: blur(3px);
}
.garment-label {
  position: absolute; right: -2%; bottom: 0%; font: 500 .59rem/1.5 ui-monospace,Menlo,monospace;
  letter-spacing: .09em; text-transform: uppercase; color: #585e56; pointer-events: none;
  display: flex; align-items: baseline; gap: 8px;
}
.garment-label b { font: 450 .73rem/1.4 DM,sans-serif; text-transform: none; letter-spacing: normal; }
.notch { width: 27px; height: 7px; border-top: 1px solid #62685f; border-left: 1px solid #62685f; transform: skew(-28deg); }
.custom { right: var(--gutter); width: 35%; opacity: var(--details); visibility: hidden; }
.stage.is-design .custom { visibility: visible; }
.custom h2 { font-size: clamp(60px,6.5vw,110px); margin: 1rem 0 1.4rem; }
.custom h2 em { display: block; }
.spec-row { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--hair); padding: 10px 0; gap: 8px; }
.spec-row b, .print-options { font-size: .8rem; }
.swatches,.print-options { display: flex; flex-wrap: wrap; gap: .45rem; }
.swatches { padding: 0 0 14px; }
.swatches button,.print-options button,.motion-toggle {
  background: transparent; border: 1px solid transparent; padding: 6px 8px; font-size: .78rem; border-radius: 1rem;
}
.swatches button { display: flex; gap: 6px; align-items: center; min-height: 35px; }
.swatches button[aria-pressed="true"] { border-color: #8d9388; }
.swatches i { width: 15px; height: 15px; background: #c85232; border-radius: 50%; }
[data-colour="ink"] i { background: #474947; }
[data-colour="moss"] i { background: #6f793d; }
.print-options button { text-decoration: underline; text-underline-offset: .2em; }
.custom>.studio-link { display: inline-block; margin-top: 10px; }
.stage-tools { position: absolute; bottom: 19px; left: var(--gutter); right: var(--gutter); display: flex; justify-content: space-between; align-items: center; z-index: 4; }
.play-group { display: flex; align-items: center; gap: 12px; }
.motion-toggle { border-color: #999f92; min-width: 78px; }
.play-glyph { margin-right: 5px; }
.story-meter { position: absolute; bottom: 0; height: 3px; width: 100%; background: #d8dacf; }
.story-meter span { display: block; height: 100%; width: var(--progress, 12%); background: var(--clay); }
#sample,#enquire,#plan,#studio { scroll-margin-top: var(--nav); }
.proof { background: #1a211d; color: #f1f0e8; padding: clamp(48px,7vw,112px) var(--gutter); }
.proof-heading,.proof-grid,.enquiry { display: grid; grid-template-columns: 1.25fr .75fr; gap: 8vw; }
.proof-heading { align-items: end; margin-bottom: 2.2rem; }
.proof-heading .eyebrow { color: #d7d9cb; margin-bottom: 20px; }
.proof-heading .eyebrow i { background: #dc8359; }
.proof h2 { font-size: clamp(55px,6.8vw,110px); }
.proof-heading>p,.proof-data>p:not(.weight) { color: #c6cbbf; }
.proof-heading>p { border-left: 1px solid #657063; padding-left: 12px; font-weight: 600; }
.proof-heading>p span { font-size: .8rem; font-weight: 400; }
.proof-visual { min-width: 0; }
.proof-frame { position: relative; height: clamp(285px,48vw,520px); background: #c9c7bb; overflow: hidden; }
.proof-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 44%; transition: transform .6s; }
.proof-frame figcaption {
  position: absolute; bottom: 12px; left: 12px; color: white; background: #17201de8; padding: .5rem .85rem;
  display: flex; align-items: center; gap: .75rem;
}
.proof-frame figcaption b { font-weight: 500; font-size: .82rem; }
.photo-actions { display: flex; border-bottom: 1px solid #596058; }
.photo-actions button { flex: 1; border: 0; border-bottom: 2px solid transparent; color: #d0d5c9; background: transparent; padding: 12px 0; }
.photo-actions button[aria-pressed=true] { color: white; border-color: #ed946b; }
.proof-data { align-self: center; }
.weight { font-size: clamp(78px,9vw,160px); line-height: 1; letter-spacing: -.09em; font-weight: 550; }
.weight span { font: italic 400 .38em StudioSerif, Georgia, serif; letter-spacing: -.04em; padding-left: .12em; color: #f09a73; }
.proof-data h3 { font-size: 1.5rem; margin: 16px 0 4px; letter-spacing: -.04em; }
.proof-data dl { margin: 22px 0; font-size: .85rem; }
.proof-data dl>div { display: flex; justify-content: space-between; border-top: 1px solid #4b544a; padding: 8px 0; gap: 8px; }
.proof-data dd { margin: 0; text-align: right; }
.studio-outline { border-color: #859080; }
.enquiry { background: #e5b095; color: #26251e; align-items: center; padding: clamp(45px,8vw,130px) var(--gutter); }
.enquiry h2 { margin: 26px 0 18px; }
.enquiry-copy>p:not(.eyebrow) { max-width: 330px; margin-bottom: 16px; }
.brief { border-top: 2px solid #635344; }
.brief h3 { font-size: 1.45rem; margin: 12px 0; letter-spacing: -.04em; }
.brief-style { display: flex; gap: 14px; align-items: center; margin: 18px 0; }
.brief-style img { width: 76px; height: 76px; object-fit: cover; mix-blend-mode: multiply; }
.brief-style p { font-size: 1.15rem; font-weight: 550; }
.brief fieldset { margin: 0 0 20px; padding: 9px 0; border: 0; border-top: 1px solid #b08872; }
.brief legend { padding-right: 8px; }
.brief label { display: inline-flex; align-items: center; gap: 4px; margin: 4px 10px 4px 0; font-size: .9rem; }
.brief input { accent-color: #282921; }
.brief>.studio-button { width: 100%; }
.end,#plan { padding: 17px var(--gutter); background: #f7f6ef; }
.end { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--hair); font-size: .76rem; }
.end a,#plan a { text-decoration: underline; }
#plan summary { cursor: pointer; font-size: .9rem; font-weight: 600; }
.plan-wrap { max-width: 1050px; padding: 34px 0; }
.plan-wrap h2 { font-size: 2rem; }
.plan-wrap h3 { font-size: 1.2rem; margin-bottom: 8px; }
.plan-wrap p,.plan-wrap li { margin: 0 0 8px; line-height: 1.8; }
.row { border-top: 1px solid var(--hair); margin-top: 20px; padding-top: 18px; }
@media(max-width:760px) {
  .studio-theme { --nav: 50px; --gutter: 5vw; }
  .mast img { width: 94px; }
  .mast .chapters { gap: .65rem; }
  .mast .chapters a,.nav-quote { font-size: .7rem; }
  .nav-quote { gap: .25rem; padding: .35rem .65rem; min-height: 32px; }
  .stage { min-height: 520px; --object-x: 53%; }
  .opening,.custom { top: 4.3%; left: var(--gutter); right: var(--gutter); width: auto; max-width: none; transform: none; }
  .opening .eyebrow { margin-bottom: 13px; }
  .opening h1,.custom h2 { font-size: clamp(47px,12.6vw,77px); }
  .opening h1>span,.opening h1 em,.custom h2 em { display: inline; }
  .opening h1>span::after { content: " "; }
  .eyebrow { font-size: .57rem; }
  .deck { max-width: 340px; font-size: .82rem; line-height: 1.4; margin-top: 8px; }
  .opening-actions { gap: .85rem; margin-top: .65rem; }
  .opening-actions .studio-button { min-height: 34px; padding: .36rem .75rem; }
  .studio-button,.studio-link { font-size: .76rem; }
  .object {
    top: calc(62% + var(--details) * 4%); left: 50%;
    width: min(calc(84vw - var(--details) * 8vw), calc(47svh - var(--details) * 7svh));
  }
  .garment-label { right:-3%; bottom:-5%; }
  .stage-tools { bottom: 12px; }
  .stage-tools .mono { font-size: .58rem; }
  .motion-toggle { font-size: .7rem; min-width: 65px; }
  .custom h2 { margin: 7px 0 10px; }
  .custom .spec-row { padding: 3px 0; }
  .swatches { padding: 0 0 3px; }
  .swatches button { min-height: 28px; padding: 3px 8px; }
  .custom>.studio-link { margin-top: 4px; }
  .proof-heading,.proof-grid,.enquiry { grid-template-columns: 1fr; gap: 26px; }
  .proof-heading>p { display: none; }
  .proof-heading { margin-bottom: 18px; }
  .proof h2,.enquiry h2 { font-size: clamp(51px,13vw,76px); }
  .proof-data dl { margin: 14px 0; }
  .weight { font-size: 78px; }
  .proof-frame { height: clamp(225px,83vw,410px); }
}
@media(max-height:600px) and (min-width:761px) {
  .studio-theme { --nav: 47px; }
  .stage { min-height: 405px; }
  .opening h1, .custom h2 { font-size: 68px; }
  .opening .eyebrow { margin-bottom: 12px; }
  .deck,.opening-actions { margin-top: 10px; }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
html:not(.has-motion) .stage { height: auto; max-height: none; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; padding: 30px var(--gutter); gap: 20px; }
html:not(.has-motion) .opening,html:not(.has-motion) .custom,html:not(.has-motion) .object {
  visibility: visible; position: static; width: 100%; max-width: none; transform: none; opacity: 1; align-self: center;
}
html:not(.has-motion) .custom { grid-column: 1/-1; }
html:not(.has-motion) .stage-tools { position: static; grid-column: 1/-1; }
@media(max-width:760px) { html:not(.has-motion) .stage { grid-template-columns: 1fr; } }
/* Let the real fabric fill its crop before bringing the verified specification into view. */
@media (prefers-reduced-motion:no-preference) {
  .has-motion .opening h1>span { animation: title-enter .65s cubic-bezier(.16,.72,.21,1) both; }
  .has-motion .opening h1 em { animation: title-enter .82s .06s cubic-bezier(.16,.72,.21,1) both; }
  @keyframes title-enter {
    from { transform: translateY(.19em); opacity: .15; }
    to { transform: none; opacity: 1; }
  }
  .has-motion .proof-frame { clip-path: inset(0 calc((1 - var(--proof-enter,0)) * 15%) 0 0); }
  .has-motion .proof-frame img { scale: calc(1.14 - var(--proof-enter,0) * .14); }
  .has-motion .proof-data { transform: translateY(calc((1 - var(--proof-enter,0)) * 40px)); }
  .has-motion .proof-heading h2 { transform: translateX(calc((1 - var(--proof-enter,0)) * -16px)); }
  .has-motion .enquiry .brief { transform: translateY(calc((1 - var(--quote-enter,0)) * 45px)); }
  .has-motion .enquiry .brief-style img { transform: rotate(calc((1 - var(--quote-enter,0)) * -5deg)); }
}

.sample-actions { display: flex; align-items: center; gap: 1.25rem; }
.sample-actions { flex-wrap: wrap; }
.sample-actions .add-style { color: #f1f0e8; text-decoration: underline; text-underline-offset: .25em; }
.studio-catalogue { scroll-margin-top: 70px; padding-top: 2.6rem; }
.studio-catalogue .garment-finder { box-shadow: none; }
body:has(.studio-scenes) .support-dock { background: #303b32; bottom: 3.8rem; }
html:not(.has-motion) .object { position: relative; inset: auto; }
html:not(.studio-interactive) :is(.motion-toggle,.drag-hint,.photo-actions,.swatches,.print-options) { display: none; }
html:not(.studio-interactive) .spec-row:has(.print-options) { display: none; }
.print-options button[aria-pressed=true] { background: #d9dbd1; }

.opening .studio-study-link { display: inline-block; margin-top: 1.05rem; color: #45534a; font-size: .8rem; text-underline-offset: .24em; }
@media(max-width:760px) {
  .opening .opening-actions { gap: .65rem; }
  .opening .studio-study-link { margin-top: .45rem; font-size: .73rem; }
}
