/* ==========================================================================
   Stillwater Atelier · a Wolfitway concept
   ========================================================================== */
@font-face { font-family: "Fraunces"; src: url("assets/fonts/fraunces-latin-opsz-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("assets/fonts/fraunces-latin-opsz-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  --deep: #0a120f;
  --ink: #0e1814;
  --panel: #1a2923;
  --line: #3b4f45;
  --cream: #f4eddc;
  --paper: #efe6d1;
  --dim: #b9c7bc;
  --gold: #edcf98;
  --teal: #5fd6cc;
  --edge: clamp(18px, 4.2vw, 72px);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  font: 1rem/1.5 var(--sans);
  color: var(--cream);
  background: var(--deep);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; overflow-x: hidden; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
button, .upload { cursor: pointer; }
::selection { background: var(--gold); color: var(--deep); }
:focus-visible, .upload:has(+ input:focus-visible) { outline: 2px solid var(--teal); outline-offset: 3px; }
.visually-hidden { position: absolute; inline-size: 1px; block-size: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }

h1, h2, h3 { font-family: var(--serif); font-weight: 300; font-variation-settings: "opsz" 144; margin: 0; }
h1 em, h2 em { font-style: italic; font-weight: 300; color: var(--gold); }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--gold); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; margin: 0 0 clamp(14px, 2vw, 24px); }
.eyebrow.dark { color: #7a5f2a; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 #5fd6cc88; animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px #5fd6cc00; } 100% { box-shadow: 0 0 0 0 #5fd6cc00; } }

/* text-reveal mask */
.line { display: block; overflow: hidden; padding: .06em .04em .14em; margin: -.06em -.04em -.14em; }
.line > span { display: inline-block; will-change: transform; }

/* ---------- page furniture ---------- */
.grain { position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.1s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); } }

.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 120; pointer-events: none; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--gold)); transform: scaleX(0); transform-origin: 0 50%; }

.cursor { position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none; display: none; }
.cursor-ring { position: absolute; left: 0; top: 0; width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid #f4eddcaa; border-radius: 50%; display: grid; place-items: center;
  transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background .3s, border-color .3s, opacity .3s; mix-blend-mode: difference; }
.cursor-ring b { font: 600 .66rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--deep); opacity: 0; transition: opacity .25s; white-space: nowrap; }
.cursor.is-link .cursor-ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: #f4eddc22; }
.cursor.is-label .cursor-ring { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--gold); border-color: var(--gold); mix-blend-mode: normal; }
.cursor.is-label .cursor-ring b { opacity: 1; }
.cursor.is-hidden .cursor-ring { opacity: 0; }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }

/* ---------- loader ---------- */
.loader { display: none; }
.js .loader { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: var(--deep); border-radius: 0 0 50% 50% / 0 0 9vw 9vw; will-change: transform; }
.loader-inner { text-align: center; }
.loader-mark { position: relative; font: 300 clamp(3.4rem, 13vw, 11rem)/1 var(--serif); font-variation-settings: "opsz" 144; letter-spacing: -.04em; }
.loader-word--outline { color: transparent; -webkit-text-stroke: 1px #f4eddc55; }
.loader-word--fill { position: absolute; inset: 0; color: var(--gold); clip-path: inset(100% 0 0 0); }
.loader-sub { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 18px 0 0; color: var(--dim); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; }
.loader-sub i { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.loader-count { position: absolute; left: var(--edge); bottom: calc(var(--edge) * .7); font: 300 clamp(2.4rem, 6vw, 5rem)/1 var(--serif); color: var(--cream); font-variant-numeric: tabular-nums; }
.loader-count sup { font-size: .35em; color: var(--gold); vertical-align: top; margin-left: 4px; }

/* ---------- masthead ---------- */
.masthead { position: fixed; inset: 0 0 auto 0; z-index: 60; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 12px var(--edge); min-height: 72px;
  transition: transform .7s var(--ease), background .5s, backdrop-filter .5s; }
.masthead.is-solid { background: #0a120fcc; backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); }
.masthead.on-light.is-solid { background: #efe6d1d9; color: var(--deep); }
.masthead.on-light .wordmark em { color: #8a6a22; }
.masthead.on-light .masthead-cta { border-color: #0a120f55; }
.masthead.on-light .masthead-cta i { color: #8a6a22; }
.masthead.is-hidden { transform: translateY(-110%); }
.wordmark { display: inline-flex; align-items: center; gap: .45em; min-height: 44px; font-size: clamp(.72rem, 2vw, .92rem); font-weight: 700; letter-spacing: .18em; text-decoration: none; justify-self: start; }
.wordmark em { font: italic 300 1.55em var(--serif); letter-spacing: 0; color: var(--gold); }
.masthead-nav { display: flex; gap: clamp(18px, 3vw, 44px); }
.masthead-nav a, .masthead-cta { position: relative; font-size: .82rem; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.masthead-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 9px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: 100% 50%; transition: transform .5s var(--ease); }
.masthead-nav a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
.masthead-cta { justify-self: end; gap: 10px; padding: 0 18px; border: 1px solid #f4eddc44; border-radius: 99px; transition: background .4s, color .4s, border-color .4s; }
.masthead-cta i { font-style: normal; color: var(--gold); transition: transform .4s var(--ease), color .4s; }
.masthead-cta:hover { background: var(--gold); color: var(--deep); border-color: var(--gold); }
.masthead-cta:hover i { color: var(--deep); transform: translate(2px, -2px); }
@media (max-width: 760px) { .masthead { grid-template-columns: 1fr auto; } .masthead-nav { display: none; } }

/* ---------- buttons ---------- */
.button, .motion, .compare button, .options button, .editor-nav button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px;
  border: 1px solid var(--line); border-radius: 12px; padding: 7px 14px; color: inherit; background: transparent;
  font-weight: 600; font-size: .86rem; text-align: center; text-decoration: none;
  transition: background .3s, border-color .3s, color .3s, transform .3s var(--ease);
}
.button { border-radius: 99px; padding: 10px 24px; font-size: .92rem; }
.button i { font-style: normal; transition: transform .4s var(--ease); }
.primary, .compare button[aria-pressed=true], .motion[aria-pressed=true] { background: var(--gold); color: #17231d; border-color: var(--gold); }
.button.primary:hover i { transform: translateY(3px); }
button:disabled { opacity: .45; cursor: default; }
@media (hover: hover) {
  .button.primary:hover { background: var(--cream); border-color: var(--cream); }
  .button.quiet:hover, .motion:hover, .compare button:not([aria-pressed=true]):hover, .options button:hover, .editor-nav button:hover { border-color: var(--gold); }
  button:hover:not(:disabled):not(.primary):not([aria-pressed=true]) { background: #edcf9814; }
}
.magnetic { will-change: transform; }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; min-height: max(640px, 100svh); display: grid; align-items: end; overflow: hidden; background: var(--deep); }
.hero-media, .hero-shade { position: absolute; inset: 0; }
.hero-media { z-index: -3; }
.hero-media img, .hero-media canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 60% 54%; }
.hero-media canvas { opacity: 0; transition: opacity .6s; }
.hero-media canvas.is-live { opacity: 1; }
.hero-shade { z-index: -2; background:
  linear-gradient(90deg, #070f0cee 0%, #070f0c99 34%, #070f0c10 66%, transparent 100%),
  linear-gradient(0deg, #070f0ccc 0%, transparent 38%),
  linear-gradient(180deg, #070f0c88 0%, transparent 22%); }
.hero-copy { width: 100%; max-width: 1760px; margin: 0 auto; padding: 140px var(--edge) clamp(70px, 11vh, 120px); }
.hero h1 { font-size: clamp(3.3rem, 9.4vw, 10.5rem); line-height: .94; letter-spacing: -.045em; text-shadow: 0 2px 40px #0006; }
.hero-foot { display: flex; align-items: center; gap: clamp(18px, 3vw, 44px); flex-wrap: wrap; margin-top: clamp(24px, 4vh, 44px); }
.hero-intro { max-width: 36ch; margin: 0; color: #f4eddccc; font-size: clamp(.95rem, 1.2vw, 1.12rem); line-height: 1.55; }
.hero-meta { position: absolute; left: var(--edge); right: var(--edge); bottom: 22px; display: flex; justify-content: space-between; align-items: center; color: #f4eddc99; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; }
.scroll-cue { display: inline-flex; align-items: center; gap: 12px; }
.scroll-cue i { position: relative; width: 1px; height: 38px; background: #f4eddc33; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform: translateY(-100%); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
@media (max-width: 760px) {
  .hero-shade { background: linear-gradient(0deg, #070f0cf2 0%, #070f0c99 48%, #070f0c33 100%), linear-gradient(180deg, #070f0c88 0%, transparent 25%); }
  .hero-meta span:first-child { display: none; }
  .hero-meta { justify-content: flex-end; }
  .hero-copy { padding-bottom: 86px; }
}

/* ---------- marquee ---------- */
.marquee { overflow: hidden; background: var(--gold); color: var(--deep); padding: clamp(14px, 2vw, 22px) 0; position: relative; z-index: 2; }
.marquee-track { display: flex; width: max-content; align-items: center; gap: clamp(22px, 3vw, 48px); font: italic 300 clamp(1.6rem, 3.6vw, 3.2rem)/1 var(--serif); letter-spacing: -.02em; animation: marquee 38s linear infinite; }
.marquee-track b { font: 400 .5em/1 var(--sans); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- manifesto ---------- */
.manifesto { background: var(--paper); color: var(--deep); padding: clamp(90px, 16vw, 220px) var(--edge); position: relative; z-index: 1; }
.manifesto > * { max-width: 1480px; margin-inline: auto; }
.manifesto-text { font: 300 clamp(1.9rem, 4.6vw, 4.8rem)/1.14 var(--serif); font-variation-settings: "opsz" 144; letter-spacing: -.03em; margin-block: 0; }
.manifesto-text .w { display: inline-block; opacity: .16; will-change: opacity; }
.pill { display: inline-block; vertical-align: -.1em; width: 2.1em; height: .86em; margin: 0 .12em; border-radius: 99px; overflow: hidden; transform-origin: 0 50%; }
.pill img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- before / after ---------- */
.reveal { background: var(--deep); position: relative; }
.reveal-stage { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: clamp(14px, 2.4vh, 26px); padding: 84px var(--edge) 28px; }
.reveal-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; width: min(100%, 1560px); margin-inline: auto; }
.reveal-head .eyebrow { margin-bottom: 10px; }
.reveal h2 { font-size: clamp(2.3rem, 5.4vw, 5.6rem); line-height: .98; letter-spacing: -.04em; }
.reveal h2 .line { display: inline-block; }
.reveal-state { margin: 0; font: italic 300 clamp(1.1rem, 2vw, 1.7rem)/1.2 var(--serif); color: var(--dim); text-align: right; min-width: 9ch; }
.reveal-frame { position: relative; width: min(100%, 1560px, calc((100svh - 250px) * 1.5)); aspect-ratio: 3 / 2; margin-inline: auto; border-radius: clamp(14px, 2vw, 26px); overflow: hidden; background: #0c1511; box-shadow: 0 40px 80px -30px #000a; }
.reveal-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.ba-after-wrap { position: absolute; inset: 0; clip-path: inset(0 0 0 0); will-change: clip-path; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: 100%; width: 0; z-index: 3; pointer-events: none; }
.ba-handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: var(--cream); box-shadow: 0 0 22px #f4eddc88; }
.ba-handle span { position: absolute; top: 50%; left: 0; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: #f4eddc; display: flex; align-items: center; justify-content: center; gap: 5px; box-shadow: 0 8px 30px #0008; }
.ba-handle i { width: 7px; height: 7px; border-top: 2px solid var(--deep); border-left: 2px solid var(--deep); transform: rotate(-45deg); }
.ba-handle i + i { transform: rotate(135deg); }
.chips { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.chips li { position: absolute; left: var(--x); top: var(--y); display: flex; align-items: center; gap: 10px; transform: translate(-6px, -50%); padding: 7px 14px 7px 12px; border-radius: 99px; background: #0a120fd9; backdrop-filter: blur(8px); border: 1px solid #f4eddc33; font-size: .76rem; font-weight: 600; white-space: nowrap; }
.chips li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px #5fd6cc33; }
@media (max-width: 700px) { .chips li:nth-child(n+3) { display: none; } .chips li { font-size: .68rem; padding: 5px 10px 5px 8px; } .reveal-frame { width: 100%; } .reveal-head { align-items: start; flex-direction: column; } .reveal-state { text-align: left; } }

/* ---------- signature looks ---------- */
.looks-section { background: var(--ink); position: relative; }
.looks-pin { min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.looks-track { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 40px); padding: 80px var(--edge); will-change: transform; }
.looks-intro { flex: 0 0 min(36vw, 480px); padding-right: 2vw; }
.looks-intro h2 { font-size: clamp(2.5rem, 5vw, 5rem); line-height: 1; letter-spacing: -.04em; }
.looks-intro > p:not(.eyebrow):not(.drag-hint) { color: var(--dim); max-width: 34ch; margin: 22px 0 0; }
.drag-hint { display: flex; align-items: center; gap: 12px; margin: 36px 0 0; color: var(--gold); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; }
.drag-hint i { width: 56px; height: 1px; background: var(--gold); position: relative; overflow: hidden; }
.drag-hint i::after { content: ""; position: absolute; inset: 0; background: var(--cream); animation: slide 1.8s var(--ease) infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.look-card { flex: 0 0 min(58vw, 860px, calc((100svh - 230px) * 1.5)); position: relative; cursor: pointer; }
.look-media { aspect-ratio: 3 / 2; overflow: hidden; border-radius: clamp(14px, 1.8vw, 24px); background: #0c1511; position: relative; }
.look-media img { max-width: none; position: absolute; top: 0; left: -8%; width: 116%; height: 100%; object-fit: cover; will-change: transform; }
.look-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #070f0c55, transparent 40%); opacity: 0; transition: opacity .5s; }
.look-card:hover .look-media::after { opacity: 1; }
.look-info { display: flex; align-items: center; gap: 18px; padding: 18px 4px 0; }
.look-no { font: italic 300 1.1rem var(--serif); color: var(--gold); }
.look-info > div { flex: 1; min-width: 0; }
.look-info h3 { font-size: clamp(1.4rem, 2.2vw, 2.1rem); letter-spacing: -.02em; line-height: 1.1; }
.look-info p { margin: 4px 0 0; color: var(--dim); font-size: .85rem; }
.round-btn { flex: none; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--cream); font-size: 1.2rem; transition: background .4s, color .4s, transform .5s var(--ease), border-color .4s; }
.look-card:hover .round-btn, .round-btn:focus-visible { background: var(--gold); color: var(--deep); border-color: var(--gold); transform: rotate(45deg); }
.looks-end { flex: 0 0 auto; padding: 0 6vw 0 2vw; }
@media (max-width: 820px) {
  .looks-pin { display: block; overflow: visible; }
  .looks-track { overflow-x: auto; scroll-snap-type: x mandatory; padding: 90px var(--edge) 70px; scrollbar-width: none; align-items: flex-start; }
  .looks-track::-webkit-scrollbar { display: none; }
  .looks-intro { flex-basis: 78vw; scroll-snap-align: start; }
  .look-card { flex-basis: 82vw; scroll-snap-align: center; }
  .look-media img { left: 0; width: 100%; }
  .looks-end { scroll-snap-align: center; padding: 0 var(--edge); align-self: center; }
}

/* ---------- process ---------- */
.process { background: var(--paper); color: var(--deep); padding: clamp(90px, 13vw, 190px) var(--edge) clamp(70px, 9vw, 130px); }
.process > * { max-width: 1480px; margin-inline: auto; }
.process-head { margin-bottom: clamp(48px, 7vw, 100px); }
.process h2 { font-size: clamp(2.6rem, 6.4vw, 6.6rem); line-height: .98; letter-spacing: -.045em; }
.process h2 em { color: #a37d2f; }
.process-steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 64px); padding-top: 36px; }
.process-line { position: absolute; left: 0; top: 0; width: 100%; height: 4px; overflow: visible; }
.process-line line { stroke: var(--deep); stroke-width: 2; vector-effect: non-scaling-stroke; }
.step-no { display: block; font: italic 300 clamp(3.6rem, 7vw, 7rem)/1 var(--serif); color: transparent; -webkit-text-stroke: 1px #0a120f88; margin-bottom: 22px; }
.step h3 { font-size: clamp(1.5rem, 2.4vw, 2.2rem); letter-spacing: -.025em; line-height: 1.1; }
.step p { margin: 14px 0 0; max-width: 34ch; color: #2c3a33; }
.stats { list-style: none; padding: 0; margin: clamp(60px, 9vw, 130px) auto 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; border-top: 1px solid #0a120f33; }
.stats li { padding-top: 26px; }
.stats b { display: block; font: 300 clamp(3rem, 6vw, 6rem)/1 var(--serif); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stats span { display: block; margin-top: 8px; font-size: .86rem; color: #2c3a33; max-width: 20ch; }
@media (max-width: 820px) { .process-steps { grid-template-columns: 1fr; } .stats { grid-template-columns: 1fr 1fr; } }

/* ---------- studio (visualizer) ---------- */
.studio { background: var(--deep); position: relative; padding: clamp(80px, 11vw, 160px) var(--edge) clamp(60px, 8vw, 110px); scroll-margin-top: 0; }
.studio > * { max-width: 1600px; margin-inline: auto; }
.studio h2 { font-size: clamp(2.8rem, 6.2vw, 6.4rem); line-height: .98; letter-spacing: -.045em; }
.studio-heading, .photo-tools, .photo-actions, .preview-heading, .preview-footer, .editor-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.studio-heading { margin-bottom: clamp(22px, 3vw, 40px); align-items: end; }
.studio-heading > p { max-width: 36ch; margin: 0; color: var(--dim); line-height: 1.55; }
.photo-tools { padding: 12px 18px; background: linear-gradient(180deg, #1a2923, #15221c); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 14px; }
.photo-tools > div:first-child { min-width: 0; }
.source { font-size: .9rem; font-weight: 650; margin: 0; overflow-wrap: anywhere; }
.privacy { color: var(--dim); font-size: .76rem; margin: 3px 0 0; }
.photo-actions { flex-wrap: wrap; justify-content: end; }

.workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 390px); gap: 16px; align-items: start; }
.preview, .controls { background: linear-gradient(180deg, #1b2a24, #15221c); border: 1px solid var(--line); border-radius: 20px; min-width: 0; }
.preview { position: sticky; top: 10px; z-index: 2; scroll-margin-top: 8px; box-shadow: 0 30px 60px -20px #000c, 0 0 0 1px #edcf9810; overflow: hidden; }
.preview-heading, .preview-footer { padding: 7px 12px; }
.preview-footer p { margin: 0; color: var(--dim); font-size: .78rem; line-height: 1.25; }
.motion { flex-shrink: 0; border-color: transparent; padding-inline: 10px; font-size: .8rem; }
#canvas-edit { border-color: var(--line); }
.picture { display: grid; place-items: center; background: #0a120f; min-height: 115px; overflow: hidden; }
.picture canvas { display: block; max-width: 100%; max-height: min(66svh, 740px); width: auto; height: auto; cursor: grab; touch-action: pan-y pinch-zoom; }
.picture canvas.editing { touch-action: none; }
.picture canvas.drawing { cursor: crosshair; }
.picture canvas:active:not(.drawing) { cursor: grabbing; }
.compare { display: flex; flex-wrap: wrap; gap: 4px; }
.compare button { padding-inline: 13px; }
.preview-heading .compare button:not([aria-pressed=true]) { border-color: transparent; }

.editor-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; padding: 9px; background: #101b16; border-radius: 19px 19px 0 0; }
.editor-nav button { border-color: transparent; color: var(--dim); }
.editor-nav button[aria-pressed=true] { color: var(--gold); border-color: var(--line); background: var(--panel); }
.editor-panel { display: grid; gap: 18px; padding: 16px; }
fieldset { border: 0; padding: 0; margin: 0; min-inline-size: 0; }
legend { margin-bottom: 9px; padding: 0; font-size: .9rem; font-weight: 700; }
.options { display: flex; gap: 6px; flex-wrap: wrap; }
.options button[aria-pressed=true], .look[aria-pressed=true] { color: var(--cream); background: #edcf981f; border-color: var(--gold); }
#shapes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
#shapes button { flex-direction: column; gap: 6px; min-height: 62px; padding: 5px 2px; font-size: .76rem; }
#shapes button[data-shape=custom] { grid-column: 1 / -1; flex-direction: row; min-height: 44px; }
#shapes button::before { content: ""; display: block; width: 26px; height: 14px; border: 1px solid currentColor; background: #7ac4b030; border-radius: 3px; }
#shapes button[data-shape=lap]::before { height: 8px; }
#shapes button[data-shape=round]::before { border-radius: 50%; }
#shapes button[data-shape=lagoon]::before { border-radius: 32% 66% 31% 63% / 70% 40% 66% 35%; transform: rotate(-12deg); }
#shapes button[data-shape=custom]::before { border-style: dashed; border-radius: 50%; width: 16px; }

.looks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.look { display: grid; justify-items: start; gap: 5px; min-height: 86px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #13201a; color: inherit; text-align: left; transition: border-color .3s, background .3s, transform .4s var(--ease); }
@media (hover: hover) { .look:hover { transform: translateY(-2px); border-color: var(--gold); } }
.swatch { display: flex; border-radius: 5px; overflow: hidden; }
.swatch i { width: 20px; height: 12px; }
.t-day { background: #bfe0f2; }
.t-golden { background: linear-gradient(#f3b866, #d9744a); }
.t-night { background: linear-gradient(#263452, #496281); }
.look-name { font-weight: 700; font-size: .82rem; }
.look-note, .hint { font-size: .75rem; color: var(--dim); line-height: 1.35; }
.hint { margin: 8px 0 0; }
.slider { display: flex; justify-content: space-between; font-size: .9rem; font-weight: 650; }
input[type=range] { width: 100%; margin: -12px 0 0; min-height: 44px; accent-color: var(--gold); }
.reset { justify-self: start; }
.editor-footer { border-top: 1px solid var(--line); padding: 11px 16px; background: #101b16; border-radius: 0 0 19px 19px; }
.editor-footer p { color: var(--dim); font-size: .8rem; margin: 0; }
#redraw { margin-top: 8px; }
.picture canvas.is-swapping { will-change: filter; }

@media (max-width: 900px) {
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .picture canvas { max-height: min(31svh, 380px); }
  .editor-panel { padding: 13px; }
  .controls :is(button, input) { scroll-margin-top: calc(31svh + 120px); }
  .studio-heading { flex-direction: column; align-items: start; }
}
@media (max-width: 620px) {
  .photo-tools { padding-inline: 10px; }
  .photo-actions .button { font-size: .78rem; padding-inline: 10px; }
  .photo-actions { gap: 5px; }
}
@media (max-height: 540px) and (max-width: 900px) {
  .preview { position: static; }
  .picture canvas { max-height: 62svh; }
  .controls :is(button, input) { scroll-margin-top: 12px; }
}
@media (pointer: coarse) { .picture canvas:not(.editing) { cursor: default; } }

/* ---------- outro ---------- */
.outro { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); padding: clamp(100px, 16vw, 230px) var(--edge) clamp(70px, 9vw, 120px); border-top: 1px solid #edcf9822; }
.outro > * { max-width: 1480px; margin-inline: auto; }
.outro-bg { position: absolute; inset: 0; z-index: -1; max-width: none; background:
  radial-gradient(60% 55% at 78% 60%, #1f6f72aa, transparent 70%),
  radial-gradient(40% 40% at 20% 20%, #edcf9818, transparent 70%); }
.outro h2 { font-size: clamp(2.8rem, 8.6vw, 9.4rem); line-height: .96; letter-spacing: -.05em; }
.outro-grid { display: flex; justify-content: space-between; align-items: center; gap: clamp(30px, 6vw, 100px); margin-top: clamp(40px, 6vw, 90px); flex-wrap: wrap; }
.outro-copy { max-width: 46ch; margin: 0; color: var(--dim); font-size: clamp(1rem, 1.3vw, 1.2rem); line-height: 1.6; }
.outro-copy strong { color: var(--cream); font-weight: 600; }
.orb { position: relative; flex: none; display: grid; place-items: center; align-content: center; gap: 10px; width: clamp(150px, 15vw, 220px); aspect-ratio: 1; border-radius: 50%; background: var(--gold); color: var(--deep); text-decoration: none; overflow: hidden; isolation: isolate; text-align: center; }
.orb::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: var(--cream); transform: translateY(101%); transition: transform .7s var(--ease); }
.orb:hover::before { transform: translateY(0); }
.orb-label { font: 400 clamp(1.1rem, 1.7vw, 1.6rem)/1.1 var(--serif); font-style: italic; letter-spacing: -.01em; }
.orb i { font-style: normal; font-size: 1.4rem; transition: transform .5s var(--ease); }
.orb:hover i { transform: translate(4px, -4px) rotate(10deg); }
.stack { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(50px, 7vw, 100px); padding: 0; }
.stack li { padding: 8px 16px; border: 1px solid #f4eddc2e; border-radius: 99px; font-size: .78rem; color: var(--dim); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--dim); overflow: hidden; padding-top: 20px; }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 0 var(--edge); font-size: .8rem; }
.footer-row a, .to-top { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 4px; color: inherit; }
.to-top { background: none; border: 0; padding: 0; font-size: inherit; }
.footer-row a:hover, .to-top:hover { color: var(--gold); }
.footer-word { font: italic 300 clamp(5rem, 24vw, 26rem)/.74 var(--serif); letter-spacing: -.06em; text-align: center; color: transparent; -webkit-text-stroke: 1px #edcf9855; padding-top: 2vw; white-space: nowrap; user-select: none; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .grain, .marquee-track, .eyebrow .dot, .scroll-cue i::after, .drag-hint i::after { animation: none; }
  .js .loader { display: none; }
}
