/* ---------------------------------------------------------------
   Glowlab Editor — house styles
   Warm ivory, espresso ink, antique gold.
---------------------------------------------------------------- */
:root {
  --ink: #201b16;
  --ink-soft: #3a322a;
  --muted: #786c5f;
  --muted-light: #9b8f81;
  --cream: #f4eee5;
  --cream-deep: #ebe2d5;
  --paper: #fbf8f2;
  --paper-warm: #f8f2e8;
  --gold: #a9814d;
  --gold-bright: #c6a06a;
  --gold-pale: #e4d2b5;
  --line: rgba(48, 60, 40, 0.14);
  --line-strong: rgba(48, 60, 40, 0.28);
  --rose: #d9b7a8;
  --serif: "Cormorant Garamond", "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --sans: "Manrope", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --shadow-soft: 0 24px 70px -38px rgba(38, 48, 32, 0.45);
  --shadow-card: 0 30px 80px -46px rgba(38, 48, 32, 0.55);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(120% 70% at 86% -8%, rgba(222, 190, 151, 0.28) 0%, rgba(244, 238, 229, 0) 55%),
    radial-gradient(80% 55% at 0% 20%, rgba(226, 193, 170, 0.2) 0%, rgba(244, 238, 229, 0) 60%),
    var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

em {
  font-style: italic;
  font-weight: 400;
}

::selection {
  background: rgba(111, 132, 100, 0.3);
  color: var(--ink);
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.page-grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.24;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.22'/%3E%3C/svg%3E");
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 2px;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 16px;
}

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 20;
  max-width: var(--max);
  margin: 0 auto;
  padding: 30px clamp(20px, 4.5vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.brand-mark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.45rem, 2.2vw, 1.75rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1;
}

.brand-sub {
  font-size: 0.6rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  padding-left: 12px;
  border-left: 1px solid var(--line-strong);
  line-height: 1.1;
  transform: translateY(-2px);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-nav > a:not(.nav-cta) {
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
}

.site-nav > a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transition: right 0.4s var(--ease);
}

.site-nav > a:not(.nav-cta):hover::after {
  right: 0;
}

.nav-cta {
  border: 1px solid var(--line-strong);
  padding: 11px 20px;
  border-radius: 999px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.nav-cta:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* ---------- Shared type ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.67rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.eyebrow--light {
  color: rgba(251, 248, 242, 0.64);
}

.eyebrow-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 0 4px rgba(143, 162, 125, 0.14);
  flex: none;
}

.micro-label {
  font-size: 0.58rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.98;
}

h1 {
  font-size: clamp(3.4rem, 7.8vw, 6.9rem);
}

h2 {
  font-size: clamp(2.5rem, 5vw, 4.4rem);
}

h1 em,
h2 em {
  color: var(--gold);
}

h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.55rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 72px) clamp(20px, 4.5vw, 56px) clamp(54px, 7vw, 100px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(40px, 7vw, 104px);
  align-items: center;
  position: relative;
  min-height: min(760px, 82vh);
}

.hero-copy {
  max-width: 620px;
  animation: rise 0.9s var(--ease) both;
}

.hero-copy h1 {
  margin: 24px 0 26px;
}

.lede {
  max-width: 46ch;
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  line-height: 1.75;
  color: var(--ink-soft);
  font-weight: 300;
}

.hero-notes {
  list-style: none;
  padding: 26px 0 0;
  margin-top: 38px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-notes li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-notes span {
  color: var(--gold);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
}

/* ---------- Upload ---------- */
.upload-stage {
  position: relative;
  animation: rise 1s 0.1s var(--ease) both;
}

.aura {
  position: absolute;
  inset: -14% -10% -8%;
  background:
    radial-gradient(55% 45% at 50% 38%, rgba(214, 176, 158, 0.36) 0%, rgba(214, 176, 158, 0) 70%),
    radial-gradient(40% 34% at 78% 82%, rgba(126, 148, 112, 0.22) 0%, rgba(126, 148, 112, 0) 70%);
  filter: blur(30px);
  z-index: 0;
  pointer-events: none;
}

.upload-card {
  position: relative;
  z-index: 1;
  background: linear-gradient(150deg, rgba(255, 253, 249, 0.92), rgba(247, 240, 230, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 0 0 1px rgba(48, 60, 40, 0.06),
    var(--shadow-card);
  backdrop-filter: blur(18px);
  border-radius: 6px;
  padding: 20px;
}

.upload-card-top {
  display: flex;
  justify-content: space-between;
  padding: 2px 2px 16px;
}

.dropzone-inner {
  position: relative;
  min-height: clamp(330px, 38vw, 430px);
  border-radius: 3px;
  background:
    radial-gradient(90% 80% at 50% 10%, rgba(255, 255, 255, 0.82), rgba(250, 245, 237, 0.4)),
    repeating-linear-gradient(45deg, rgba(48, 60, 40, 0.018) 0 1px, transparent 1px 9px);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease), transform 0.4s var(--ease);
  outline: none;
}

.dropzone-inner:hover,
.dropzone-inner:focus-visible {
  border-color: rgba(111, 132, 100, 0.55);
  background:
    radial-gradient(90% 80% at 50% 10%, rgba(255, 255, 255, 0.95), rgba(248, 240, 228, 0.55)),
    repeating-linear-gradient(45deg, rgba(48, 60, 40, 0.02) 0 1px, transparent 1px 9px);
}

.dropzone-inner.is-dragging {
  border-color: var(--gold);
  background: radial-gradient(90% 80% at 50% 20%, #fffdf9, #f3e8d8);
  transform: scale(0.995);
}

.corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: rgba(111, 132, 100, 0.65);
  border-style: solid;
  transition: width 0.4s var(--ease), height 0.4s var(--ease);
}

.corner-tl { top: 12px; left: 12px; border-width: 1px 0 0 1px; }
.corner-tr { top: 12px; right: 12px; border-width: 1px 1px 0 0; }
.corner-bl { bottom: 12px; left: 12px; border-width: 0 0 1px 1px; }
.corner-br { bottom: 12px; right: 12px; border-width: 0 1px 1px 0; }

.dropzone-inner:hover .corner {
  width: 24px;
  height: 24px;
}

.upload-emblem {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  color: var(--gold);
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: 0 10px 26px -18px rgba(48, 60, 40, 0.6);
}

.upload-emblem svg {
  width: 25px;
  height: 25px;
}

.upload-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  line-height: 1.1;
  color: var(--ink);
}

.upload-help {
  margin-top: 7px;
  font-size: 0.88rem;
  color: var(--muted);
}

.link-underline {
  color: var(--ink);
  border-bottom: 1px solid var(--gold-bright);
  padding-bottom: 1px;
}

.upload-formats {
  margin-top: 22px;
  font-size: 0.61rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-light);
}

.upload-card-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 2px 2px;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.foot-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold-bright);
}

/* ---------- Ticker ---------- */
.look-ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(251, 248, 242, 0.42);
  overflow: hidden;
  padding: 18px 0;
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 38px;
  width: max-content;
  animation: ticker 42s linear infinite;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  color: var(--ink-soft);
  white-space: nowrap;
}

.ticker-track i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-bright);
  flex: none;
}

/* ---------- Editor ---------- */
.editor {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 130px) clamp(20px, 4.5vw, 56px) clamp(50px, 7vw, 96px);
  scroll-margin-top: 30px;
  animation: fade 0.7s var(--ease) both;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.section-head h2 {
  margin-top: 16px;
}

.section-head--split {
  align-items: flex-end;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-intro {
  max-width: 38ch;
  color: var(--muted);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.75;
  padding-bottom: 8px;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  padding: 10px 0;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}

.text-button svg {
  width: 15px;
  height: 15px;
}

.text-button:hover {
  color: var(--ink);
  border-color: var(--gold-bright);
}

.editor-lede {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-bottom: 28px;
  font-size: 0.92rem;
  color: var(--muted);
}

.editor-file {
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-light);
  max-width: 44ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 30px);
}

.look-card {
  position: relative;
  background: rgba(251, 248, 242, 0.66);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 12px 12px 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
  animation: rise 0.7s var(--ease) both;
  outline: none;
}

.look-card:nth-child(2) { animation-delay: 0.06s; }
.look-card:nth-child(3) { animation-delay: 0.12s; }
.look-card:nth-child(4) { animation-delay: 0.18s; }

.look-card:hover,
.look-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(111, 132, 100, 0.32);
}

.look-card.is-selected {
  border-color: rgba(111, 132, 100, 0.72);
  box-shadow: 0 0 0 1px rgba(111, 132, 100, 0.4), var(--shadow-soft);
}

.look-media {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background: var(--cream-deep);
  aspect-ratio: 4 / 3.15;
}

.look-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}

.look-card:hover .look-media img {
  transform: scale(1.025);
}

.look-media::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.look-index {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(28, 22, 16, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  padding: 5px 9px;
  border-radius: 999px;
}

.quick-select {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(28, 22, 16, 0.38);
  backdrop-filter: blur(8px);
  color: #fff;
  display: grid;
  place-items: center;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}

.quick-select svg {
  width: 15px;
  height: 15px;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.25s, transform 0.25s var(--ease);
}

.quick-select::before {
  content: "+";
  position: absolute;
  font-size: 16px;
  font-weight: 300;
  line-height: 1;
  transition: opacity 0.2s;
}

.look-card.is-selected .quick-select::before {
  opacity: 0;
}

.look-card.is-selected .quick-select {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  color: var(--ink);
}

.look-card.is-selected .quick-select svg {
  opacity: 1;
  transform: scale(1);
}

.quick-select:hover {
  background: rgba(251, 248, 242, 0.95);
  border-color: rgba(251, 248, 242, 0.95);
  color: var(--ink);
}

.recommended {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  background: rgba(143, 162, 125, 0.94);
  color: #241b12;
  font-size: 0.5rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 6px 9px;
  border-radius: 2px;
  backdrop-filter: blur(6px);
  pointer-events: none;
}

.inspect-pill {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translate(-50%, 8px);
  z-index: 2;
  background: rgba(251, 248, 242, 0.94);
  backdrop-filter: blur(8px);
  border: 0;
  border-radius: 999px;
  padding: 9px 17px;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  color: var(--ink);
  white-space: nowrap;
}

.look-card:hover .inspect-pill,
.look-card:focus-visible .inspect-pill {
  opacity: 1;
  transform: translate(-50%, 0);
}

.look-body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 6px 20px;
}

.look-body h3 {
  font-size: 1.45rem;
  margin-bottom: 3px;
}

.look-body p {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}

.look-number {
  font-family: var(--serif);
  font-size: 0.92rem;
  color: var(--gold);
  font-style: italic;
  padding-top: 4px;
}

.editor-bar {
  margin-top: clamp(20px, 3vw, 34px);
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 22px;
  border-radius: 5px;
  position: sticky;
  bottom: 14px;
  z-index: 10;
  box-shadow: 0 20px 45px -32px rgba(38, 48, 32, 0.5);
}

.selection {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  padding-right: 22px;
  border-right: 1px solid var(--line);
  min-width: 130px;
}

.selection-label {
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-light);
}

.selection-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin-top: 2px;
}

.signature-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  color: var(--ink-soft);
  cursor: pointer;
  margin-left: auto;
}

.signature-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-ui {
  width: 32px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(120, 108, 95, 0.12);
  padding: 2px;
  display: flex;
  align-items: center;
  transition: background 0.3s, border-color 0.3s;
  flex: none;
}

.toggle-ui span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 1px 3px rgba(38, 48, 32, 0.3);
  transition: transform 0.3s var(--ease), background 0.3s;
}

.signature-toggle input:checked + .toggle-ui {
  background: var(--gold);
  border-color: var(--gold);
}

.signature-toggle input:checked + .toggle-ui span {
  transform: translateX(14px);
}

.signature-toggle input:focus-visible + .toggle-ui {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 14px 22px;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
  white-space: nowrap;
}

.button svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button-primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  box-shadow: 0 12px 26px -18px rgba(32, 27, 22, 0.8);
}

.button-primary:hover {
  background: #332a22;
}

.button-quiet {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.button-quiet:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.button-light {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
  margin-top: 34px;
  padding: 16px 28px;
}

.button-light:hover {
  background: var(--gold-pale);
  border-color: var(--gold-pale);
}

.button:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

.select-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid currentColor;
  transition: background 0.3s;
}

.button-quiet.is-selected .select-dot {
  background: currentColor;
}

/* ---------- Look / principles ---------- */
.look-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(60px, 8vw, 110px) clamp(20px, 4.5vw, 56px);
  border-top: 1px solid var(--line);
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.principle {
  padding: clamp(28px, 3.4vw, 44px) clamp(20px, 2.6vw, 38px) 8px 0;
  border-right: 1px solid var(--line);
}

.principle:last-child {
  border-right: 0;
  padding-right: 0;
}

.principle + .principle {
  padding-left: clamp(20px, 2.6vw, 38px);
}

.principle-num {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  font-size: 1rem;
}

.principle h3 {
  margin: 14px 0 12px;
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
}

.principle p {
  color: var(--muted);
  font-weight: 300;
  font-size: 0.92rem;
  line-height: 1.75;
  max-width: 34ch;
}

/* ---------- How ---------- */
.how-section {
  background: var(--ink);
  color: var(--paper);
  margin-top: clamp(30px, 5vw, 60px);
}

.how-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 120px) clamp(20px, 4.5vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(44px, 8vw, 110px);
}

.how-copy h2 {
  margin: 18px 0 26px;
}

.how-copy h2 em {
  color: var(--gold-bright);
}

.how-copy > p:last-child {
  color: rgba(251, 248, 242, 0.62);
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 38ch;
}

.how-steps {
  list-style: none;
  padding: 0;
}

.how-steps li {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid rgba(251, 248, 242, 0.14);
}

.how-steps li:last-child {
  border-bottom: 1px solid rgba(251, 248, 242, 0.14);
}

.step-num {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold-bright);
  font-size: 1.1rem;
}

.how-steps h3 {
  font-size: 1.45rem;
  color: var(--paper);
  margin-bottom: 5px;
}

.how-steps p {
  color: rgba(251, 248, 242, 0.55);
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.7;
  max-width: 42ch;
}

/* ---------- FAQ ---------- */
.faq-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 120px) clamp(20px, 4.5vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(40px, 7vw, 100px);
}

.faq-head h2 {
  margin-top: 16px;
}

.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}

.faq-list details:first-child {
  border-top: 1px solid var(--line);
}

.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 34px 22px 0;
  position: relative;
  font-family: var(--serif);
  font-size: 1.26rem;
  line-height: 1.3;
  transition: color 0.3s;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.35s var(--ease);
}

.faq-list details[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}

.faq-list summary:hover {
  color: var(--gold);
}

.faq-list details p {
  padding: 0 40px 24px 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.75;
  max-width: 62ch;
}

/* ---------- CTA ---------- */
.cta-section {
  padding: 0 clamp(12px, 2vw, 22px);
}

.cta-inner {
  max-width: 1400px;
  margin: 0 auto;
  border-radius: 6px;
  background:
    radial-gradient(80% 120% at 50% -10%, rgba(143, 162, 125, 0.25), transparent 60%),
    radial-gradient(50% 80% at 90% 100%, rgba(217, 183, 168, 0.14), transparent 70%),
    #262019;
  color: var(--paper);
  text-align: center;
  padding: clamp(66px, 10vw, 130px) 24px;
  position: relative;
  overflow: hidden;
}

.cta-inner::before,
.cta-inner::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(143, 162, 125, 0.18);
  border-radius: 50%;
  pointer-events: none;
}

.cta-inner::before {
  width: 520px;
  height: 520px;
  left: -220px;
  top: -260px;
}

.cta-inner::after {
  width: 680px;
  height: 680px;
  right: -320px;
  bottom: -440px;
}

.cta-inner .eyebrow {
  justify-content: center;
}

.cta-inner h2 {
  margin-top: 22px;
  font-size: clamp(2.5rem, 5.6vw, 4.9rem);
}

.cta-inner h2 em {
  color: var(--gold-bright);
}

/* ---------- Footer ---------- */
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(50px, 7vw, 82px) clamp(20px, 4.5vw, 56px) 34px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
}

.footer-brand p {
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  justify-content: flex-end;
  padding-top: 8px;
}

.footer-links a {
  border-bottom: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}

.footer-links a:hover {
  color: var(--ink);
  border-color: var(--gold-bright);
}

.footer-fine {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 20px;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-light);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: clamp(10px, 3vw, 36px);
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 19, 14, 0.72);
  backdrop-filter: blur(12px);
  animation: fade 0.35s var(--ease) both;
}

.lightbox-panel {
  position: relative;
  width: min(1180px, 100%);
  max-height: calc(100dvh - clamp(20px, 6vw, 72px));
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--paper);
  border-radius: 6px;
  box-shadow: 0 50px 120px -40px rgba(0, 0, 0, 0.6);
  padding: clamp(18px, 2.6vw, 30px);
  animation: modal-in 0.5s var(--ease) both;
}

.lightbox-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 0 2px 18px;
}

.lightbox-head h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  margin-top: 4px;
  line-height: 1;
}

.icon-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  display: grid;
  place-items: center;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
  flex: none;
}

.icon-button svg {
  width: 16px;
  height: 16px;
}

.icon-button:hover {
  background: var(--cream-deep);
  border-color: var(--line-strong);
  transform: rotate(90deg);
}

.compare {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--cream-deep);
  overflow: hidden;
  border-radius: 3px;
  user-select: none;
  touch-action: none;
}

.compare img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #1b1712;
  pointer-events: none;
}

.compare-after {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 55%);
  will-change: clip-path;
}

.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 55%;
  width: 1px;
  z-index: 3;
  transform: translateX(-0.5px);
  pointer-events: none;
}

.handle-line {
  position: absolute;
  inset: 0 auto 0 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.35);
}

.handle-grip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(251, 248, 242, 0.94);
  color: var(--ink);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
}

.handle-grip svg {
  width: 20px;
  height: 20px;
}

.compare-tag {
  position: absolute;
  top: 14px;
  z-index: 2;
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.compare-tag--before {
  left: 14px;
  background: rgba(20, 16, 12, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.88);
}

.compare-tag--after {
  right: 14px;
  background: rgba(251, 248, 242, 0.9);
  color: var(--ink);
}

.compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 4;
  margin: 0;
}

.lightbox-body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(20px, 3vw, 40px);
  padding-top: 22px;
  align-items: end;
}

.look-picker {
  display: flex;
  gap: 9px;
}

.look-thumb {
  width: 76px;
  border: 1px solid transparent;
  border-radius: 3px;
  padding: 4px;
  background: transparent;
  transition: border-color 0.3s, background 0.3s;
  text-align: center;
}

.look-thumb img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 2px;
}

.look-thumb span {
  display: block;
  font-size: 0.48rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.look-thumb:hover {
  background: var(--cream);
}

.look-thumb.is-active {
  border-color: var(--gold);
  background: var(--cream);
}

.look-thumb.is-active span {
  color: var(--ink);
}

.lightbox-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.lightbox-copy > p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 42ch;
}

.lightbox-actions {
  display: flex;
  gap: 10px;
  flex: none;
}

/* ---------- Processing ---------- */
.processing {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(28, 22, 16, 0.62);
  backdrop-filter: blur(14px);
  animation: fade 0.3s var(--ease) both;
}

.processing-card {
  width: min(460px, 100%);
  background: var(--paper);
  padding: clamp(32px, 5vw, 48px);
  border-radius: 5px;
  text-align: center;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.5);
  animation: modal-in 0.5s var(--ease) both;
}

.processing-mark {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-bottom: 26px;
}

.processing-mark span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 1.2s var(--ease) infinite;
}

.processing-mark span:nth-child(2) { animation-delay: 0.15s; }
.processing-mark span:nth-child(3) { animation-delay: 0.3s; }

.processing-card h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 10px 0 26px;
}

.progress {
  height: 1px;
  background: var(--line);
  overflow: hidden;
  position: relative;
}

.progress span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: var(--gold);
  transition: width 0.5s var(--ease);
}

.processing-meta {
  margin-top: 14px;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-light);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 90;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.6);
  animation: toast-in 0.4s var(--ease) both;
  max-width: calc(100vw - 32px);
  text-align: center;
}

/* ---------- Animations ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(18px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-33.333%); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 48px;
    padding-top: 40px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .upload-stage {
    max-width: 640px;
    width: 100%;
  }

  .how-inner,
  .faq-section {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .section-head--split {
    display: block;
  }

  .section-intro {
    margin-top: 22px;
    padding-bottom: 0;
  }

  .lightbox-body {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 820px) {
  .site-nav > a:not(.nav-cta) {
    display: none;
  }

  .editor-bar {
    flex-wrap: wrap;
    gap: 14px 18px;
    bottom: 8px;
  }

  .selection {
    min-width: 0;
    flex: 1;
  }

  .signature-toggle {
    order: 3;
    margin-left: 0;
    width: 100%;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

  .editor-bar .button-primary {
    order: 2;
  }

  .principles {
    grid-template-columns: 1fr;
  }

  .principle,
  .principle + .principle {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 28px 0;
  }

  .principle:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .principles {
    border-top: 0;
  }

  .principle:first-child {
    border-top: 1px solid var(--line);
  }

  .lightbox-copy {
    display: block;
  }

  .lightbox-actions {
    margin-top: 18px;
  }

  .lightbox-actions .button {
    flex: 1;
  }

  .compare {
    aspect-ratio: 4 / 3.4;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding-top: 22px;
    padding-bottom: 18px;
  }

  .brand-sub {
    display: none;
  }

  .nav-cta {
    padding: 9px 16px;
    font-size: 0.62rem;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.4rem);
  }

  .hero {
    padding-bottom: 50px;
  }

  .hero-notes {
    margin-top: 28px;
    gap: 8px 18px;
    font-size: 0.64rem;
  }

  .upload-card {
    padding: 14px;
  }

  .dropzone-inner {
    min-height: 300px;
    padding: 32px 18px;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .look-media {
    aspect-ratio: 4 / 3.4;
  }

  .inspect-pill {
    opacity: 1;
    transform: translate(-50%, 0);
  }

  .section-head {
    display: block;
  }

  .section-head .text-button {
    margin-top: 18px;
  }

  .editor-lede {
    display: block;
  }

  .editor-file {
    margin-top: 8px;
    white-space: normal;
  }

  .editor-bar {
    position: relative;
    bottom: auto;
  }

  .editor-bar .button-primary {
    width: 100%;
    order: 4;
  }

  .selection {
    border-right: 0;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-links {
    justify-content: flex-start;
    padding-top: 0;
  }

  .footer-fine {
    margin-top: 8px;
  }

  .lightbox {
    padding: 0;
  }

  .lightbox-panel {
    max-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    padding: 18px;
  }

  .compare {
    aspect-ratio: 3 / 3.2;
    flex: none;
  }

  .look-thumb {
    width: 64px;
  }

  .look-thumb span {
    font-size: 0.42rem;
  }

  .lightbox-actions {
    flex-direction: column-reverse;
  }

  .lightbox-actions .button {
    width: 100%;
  }

  .toast {
    bottom: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
