@import url("fonts.css");

:root {
  --ivory: #f3eee7;
  --ivory-deep: #e9e2d8;
  --paper: #f7f3ed;
  --stone: #ddd3c6;
  --oatmeal: #d0c1ad;
  --taupe: #b4a394;
  --ink: #2c2824;
  --ink-soft: #3f3933;
  --muted: #6e665c;
  --faint: #8a8278;
  --brass: #9a7b55;
  --brass-soft: #c4a574;
  --brass-deep: #7a5e3d;
  --line: rgba(44, 40, 36, 0.12);
  --line-strong: rgba(44, 40, 36, 0.22);
  --shadow: 0 18px 50px rgba(44, 40, 36, 0.12);
  --serif: "Cormorant Garamond", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans: "Instrument Sans", "Avenir Next", "Segoe UI", sans-serif;
  --header-h: 5.25rem;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p { margin: 0; }

.serif { font-family: var(--serif); }

/* ---------- typography helpers ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-deep);
}

.display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.04;
}

.lede {
  color: var(--muted);
  font-size: 1.075rem;
  max-width: 38rem;
}

/* ---------- layout ---------- */
.wrap {
  width: min(1180px, calc(100% - 3.5rem));
  margin-inline: auto;
}

.wrap-wide {
  width: min(1320px, calc(100% - 3rem));
  margin-inline: auto;
}

/* ---------- header ---------- */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
}

.site-header.is-light {
  /* sits over photography */
  color: var(--ivory);
}

.site-header.is-solid {
  position: sticky;
  background: rgba(243, 238, 231, 0.92);
  backdrop-filter: blur(14px);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(1320px, calc(100% - 3rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.wordmark {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.85rem;
}

.nav a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.86;
  transition: opacity 0.35s var(--ease);
}

.nav a:hover,
.nav a[aria-current="page"] { opacity: 1; }

.nav a[aria-current="page"] { box-shadow: inset 0 -1px 0 currentColor; }

.nav-chat {
  opacity: 0.86;
}

.menu-toggle {
  display: none;
  width: 2.4rem;
  height: 2.4rem;
  position: relative;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  height: 1px;
  background: currentColor;
  width: 1.15rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.menu-toggle span { top: 50%; }
.menu-toggle span::before,
.menu-toggle span::after { content: ""; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 3.05rem;
  padding: 0.7rem 1.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 0;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}

.btn-primary {
  background: var(--ink);
  color: var(--ivory);
  border: 1px solid var(--ink);
}
.btn-primary:hover { background: #1a1816; }

.btn-ghost {
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); }

.btn-text {
  background: transparent;
  border: 0;
  padding-inline: 0.15rem;
  min-height: 0;
  color: inherit;
  gap: 0.55rem;
}
.btn-text::after { content: "→"; font-size: 1rem; letter-spacing: 0; }
.btn-text:hover { color: var(--brass-deep); }

.btn-brass {
  background: transparent;
  color: var(--brass-deep);
  border: 1px solid var(--brass);
}
.btn-brass:hover { background: rgba(154, 123, 85, 0.08); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ivory);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 50%;
  transform: scale(1.03);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(28, 24, 20, 0.42) 0%, rgba(28, 24, 20, 0.10) 24%, rgba(28, 24, 20, 0.10) 52%, rgba(28, 24, 20, 0.58) 100%),
    linear-gradient(90deg, rgba(28, 24, 20, 0.38) 0%, rgba(28, 24, 20, 0.06) 46%, transparent 70%);
}

.hero-content {
  position: relative;
  width: min(1320px, calc(100% - 3rem));
  margin: 0 auto 5.5rem;
  max-width: 40rem;
  margin-left: max(1.5rem, calc((100% - 1320px) / 2 + 0rem));
  padding-left: 0;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.4rem, 7vw, 6.1rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0.85rem 0 1.15rem;
}

.hero .tag {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.85;
}

.hero p {
  font-size: 1.1rem;
  line-height: 1.55;
  max-width: 28rem;
  color: rgba(243, 238, 231, 0.86);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.4rem 1.8rem;
  margin-top: 2rem;
}

.hero .btn-primary {
  background: var(--ivory);
  color: var(--ink);
  border-color: var(--ivory);
}
.hero .btn-primary:hover { background: #fff; }

.hero .btn-ghost:hover { background: rgba(243, 238, 231, 0.1); }

/* ---------- sections ---------- */
.section {
  padding: 6.5rem 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 3rem;
}

.section-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-top: 0.55rem;
}

/* ---------- collections ---------- */
.collections-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 1.15rem;
  min-height: 36rem;
}

.collection-card {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--ivory-deep);
  min-height: 28rem;
  color: var(--ivory);
}

.collection-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.6s var(--ease);
}

.collection-card:hover img { transform: scale(1.04); }

.collection-card figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.4rem 1.6rem 1.6rem;
  background: linear-gradient(180deg, transparent, rgba(28, 24, 20, 0.62));
}

.collection-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2.15rem;
  letter-spacing: -0.02em;
  margin: 0.15rem 0 0.55rem;
}

.swatches-inline {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.swatch-dot {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35);
  display: inline-block;
}

.collection-card.linen figcaption,
.collection-card.linen { color: var(--ivory); }

/* ---------- preview intro ---------- */
.preview-intro {
  background: var(--ivory-deep);
}

.preview-intro-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4.5rem;
  align-items: center;
}

.preview-intro img {
  width: 100%;
  height: 36rem;
  object-fit: cover;
  object-position: 70% 50%;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 2rem 0 2.2rem;
}

.steps li {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 0.9rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.steps li:last-child { border-bottom: 1px solid var(--line); }

.steps .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--brass-deep);
  line-height: 1.3;
}

.steps strong {
  display: block;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.steps span {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- craft ---------- */
.craft-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 3rem;
}

.craft-card figure {
  margin: 0;
  overflow: hidden;
  background: var(--ivory-deep);
}

.craft-card img {
  width: 100%;
  height: 22rem;
  object-fit: cover;
  transition: transform 1.6s var(--ease);
}

.craft-card:hover img { transform: scale(1.035); }

.craft-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2rem;
  margin: 1.15rem 0 0.4rem;
}

.craft-card p {
  color: var(--muted);
  max-width: 22rem;
  font-size: 0.98rem;
}

/* ---------- footer ---------- */
.site-footer {
  padding: 3.5rem 0 2.4rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: var(--serif);
  color: var(--ink);
  font-size: 1.5rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-brand span {
  display: block;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--muted);
  margin-top: 0.55rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 500;
}

.footer-note {
  margin-top: 2.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--faint);
}

/* ---------- page hero (interior pages) ---------- */
.page-hero {
  padding: calc(var(--header-h) + 2.1rem) 0 1.6rem;
}

.page-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 5vw, 4.1rem);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0.4rem 0 0.75rem;
}

/* ---------- collection page ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.2rem 1.6rem;
  padding-bottom: 6rem;
}

.product-card figure {
  margin: 0;
  overflow: hidden;
  background: var(--ivory-deep);
  position: relative;
}

.product-card img {
  width: 100%;
  height: 17.25rem;
  object-fit: cover;
  transition: transform 1.5s var(--ease);
}

.product-card:hover img { transform: scale(1.03); }

.product-card h3 {
  font-family: var(--serif);
  font-size: 1.85rem;
  font-weight: 400;
  margin: 1.1rem 0 0.2rem;
  letter-spacing: -0.02em;
}

.product-meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 0.85rem;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.4rem;
  align-items: center;
}

.product-swatches {
  display: flex;
  gap: 0.45rem;
  margin: 0.35rem 0 0.9rem;
}

.swatch {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  overflow: hidden;
}

.swatch img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- preview studio ---------- */
.studio {
  padding: calc(var(--header-h) + 0.85rem) 0 2.8rem;
}

.studio-grid {
  display: grid;
  grid-template-columns: 22rem 1fr;
  gap: 1.8rem;
  align-items: start;
}

.studio-panel {
  position: sticky;
  top: calc(var(--header-h) + 0.5rem);
  max-height: calc(100vh - var(--header-h) - 0.9rem);
  overflow: auto;
  padding-right: 0.25rem;
}

.studio-panel h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2.25rem;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0.2rem 0 0.45rem;
}

.studio-panel .lede { font-size: 0.92rem; line-height: 1.5; }

.control-block {
  margin-top: 1.05rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--line);
}

.control-block h2 {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-bottom: 0.85rem;
}

.upload-drop {
  border: 1px dashed var(--line-strong);
  padding: 0.75rem 0.85rem;
  background: rgba(255,255,255,0.28);
  text-align: left;
  width: 100%;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.upload-drop.is-over,
.upload-drop:hover {
  border-color: var(--brass);
  background: rgba(154, 123, 85, 0.06);
}

.upload-drop strong {
  display: block;
  font-weight: 500;
  font-size: 0.95rem;
}

.upload-drop span {
  color: var(--muted);
  font-size: 0.85rem;
}

.style-list {
  display: grid;
  gap: 0.45rem;
}

.style-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  padding: 0.42rem 0.5rem;
  border: 1px solid transparent;
  text-align: left;
  width: 100%;
}

.style-option:hover { background: rgba(255,255,255,0.4); }
.style-option[aria-pressed="true"] {
  border-color: var(--line-strong);
  background: #fff;
}

.style-option .radio {
  width: 0.85rem;
  height: 0.85rem;
  border: 1px solid var(--brass);
  border-radius: 50%;
  margin-top: 0.3rem;
  position: relative;
}

.style-option[aria-pressed="true"] .radio::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: var(--brass);
  border-radius: 50%;
}

.style-option strong {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}

.style-option small {
  display: none;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}
.style-option[aria-pressed="true"] small { display: block; }

.swatch-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.color-option {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  overflow: hidden;
  position: relative;
  padding: 0;
}

.color-option img { width: 100%; height: 100%; object-fit: cover; }

.color-option[aria-pressed="true"] {
  outline: 1px solid var(--ink);
  outline-offset: 3px;
}

.color-name {
  margin-top: 0.7rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.studio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.85rem;
}

.studio-actions-primary {
  margin-top: 0.85rem;
  padding: 0.2rem 0 0.45rem;
}

/* stage */
.stage {
  position: relative;
  background: var(--ivory-deep);
  min-height: 36rem;
  overflow: hidden;
}

.stage-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 2800 / 1867;
  background: #d9cfc3;
}

.stage-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.compare {
  position: absolute;
  inset: 0;
}

.compare-after,
.compare-before {
  position: absolute;
  inset: 0;
}

.compare-before {
  z-index: 2;
  overflow: hidden;
  width: 50%;
}

.compare-before img,
.compare-after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* before panel should show the left portion of the full image? 
     For a slider, the before image should be positioned as if full-width
     and clipped. We'll use a full-size img with object-fit cover and
     the clip via width + the img is stretched to the STAGE not the clip. */
}

.compare-after img,
.compare-before img.full {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  max-width: none;
  object-fit: cover;
}

/* The before pane is a clip of the same composition: its image must be as wide as the stage */
.compare-before img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: var(--stage-w, 100%);
  max-width: none;
  object-fit: cover;
}

.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(243, 238, 231, 0.9);
  z-index: 3;
  transform: translateX(-50%);
  cursor: ew-resize;
}

.compare-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 1px solid rgba(243, 238, 231, 0.9);
  background: rgba(44, 40, 36, 0.35);
  backdrop-filter: blur(6px);
  transform: translate(-50%, -50%);
}

.compare-labels {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ivory);
  text-shadow: 0 1px 8px rgba(0,0,0,0.35);
}

.stage-caption {
  padding: 0.85rem 8.75rem 0 0.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: nowrap;
  color: var(--muted);
  font-size: 0.88rem;
}

.stage-tools {
  display: flex;
  gap: 0.55rem;
  flex-wrap: nowrap;
  align-items: center;
  flex-shrink: 0;
}
.stage-tools .btn { min-height: 2.55rem; padding: 0.5rem 1rem; }

.mark-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  cursor: crosshair;
}

.mark-rect {
  position: absolute;
  border: 1px solid var(--brass-soft);
  background: rgba(154, 123, 85, 0.12);
  pointer-events: none;
}

/* loading */
.generating {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(243, 238, 231, 0.38);
  backdrop-filter: blur(4px);
  color: var(--ink);
  text-align: center;
}

.generating.is-on { display: flex; }

.generating-inner {
  max-width: 18rem;
}

.generating p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.55rem;
  line-height: 1.25;
  margin-top: 1rem;
}

.progress-line {
  width: 8.5rem;
  height: 1px;
  margin: 0 auto;
  background: var(--stone);
  position: relative;
  overflow: hidden;
}

.progress-line i {
  display: block;
  height: 100%;
  width: 40%;
  background: var(--brass);
  animation: sweep 1.8s var(--ease) infinite;
}

@keyframes sweep {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(280%); }
}

.upload-result {
  display: none;
  position: absolute;
  inset: auto 1.2rem 1.2rem 1.2rem;
  z-index: 4;
  background: rgba(247, 243, 237, 0.94);
  padding: 1.15rem 1.2rem;
  max-width: 28rem;
}

.upload-result.is-on { display: block; }

.upload-result h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.45rem;
  margin-bottom: 0.3rem;
}

.upload-result p { font-size: 0.9rem; color: var(--muted); }

/* ---------- chat ---------- */
.chat-launcher {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 2.8rem;
  padding: 0 1rem 0 0.7rem;
  background: var(--ink);
  color: var(--ivory);
  box-shadow: var(--shadow);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 500;
}

.chat-launcher .mark {
  width: 1.45rem;
  height: 1.45rem;
  border: 1px solid var(--brass-soft);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
}

.chat-panel {
  position: fixed;
  right: 1.4rem;
  bottom: 4.6rem;
  z-index: 60;
  width: min(24.5rem, calc(100vw - 1.6rem));
  height: min(36.5rem, calc(100vh - 7.5rem));
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
}

.chat-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.chat-head {
  padding: 1.15rem 1.2rem 1rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.chat-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

.chat-head p {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
  margin-top: 0.15rem;
}

.chat-close {
  width: 1.8rem;
  height: 1.8rem;
  font-size: 1.2rem;
  color: var(--muted);
  line-height: 1;
}

.chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.msg {
  max-width: 92%;
  font-size: 0.92rem;
  line-height: 1.5;
}

.msg.bot {
  color: var(--ink-soft);
}

.msg.user {
  align-self: flex-end;
  background: #fff;
  border: 1px solid var(--line);
  padding: 0.65rem 0.8rem;
}

.msg .who {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-bottom: 0.2rem;
}

.msg.user .who { text-align: right; color: var(--muted); }

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0 1.15rem 0.7rem;
}

.chip {
  border: 1px solid var(--line-strong);
  padding: 0.32rem 0.65rem;
  font-size: 0.75rem;
  color: var(--ink-soft);
  background: transparent;
}
.chip:hover { border-color: var(--brass); color: var(--brass-deep); }

.chat-compose {
  border-top: 1px solid var(--line);
  padding: 0.75rem 0.8rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
}

.chat-compose input[type="text"] {
  border: 0;
  background: transparent;
  padding: 0.45rem 0.4rem;
  outline: none;
}

.chat-compose button {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--brass-deep);
  padding: 0 0.5rem;
}

.escalate-card {
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.9rem 1rem 1rem;
}

.escalate-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.25rem;
  margin-bottom: 0.3rem;
}

.escalate-card p { color: var(--muted); font-size: 0.86rem; margin-bottom: 0.8rem; }

.escalate-card label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0.45rem 0 0.2rem;
}

.escalate-card input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  padding: 0.35rem 0;
  outline: none;
}

.escalate-card .btn { margin-top: 0.9rem; width: 100%; }

.notice {
  font-size: 0.86rem;
  color: var(--ink-soft);
  border-left: 1px solid var(--brass);
  padding-left: 0.75rem;
}

/* ---------- motion / a11y ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .collections-grid,
  .preview-intro-grid,
  .craft-grid,
  .studio-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }
  .collection-card,
  .product-card img,
  .preview-intro img,
  .craft-card img { height: 22rem; min-height: 0; }
  .studio-panel { order: 1; position: static; max-height: none; overflow: visible; }
  .nav { display: none; }
  .menu-toggle { display: block; }
  .nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--ivory);
    color: var(--ink);
    padding: 1.2rem 1.5rem 1.6rem;
    gap: 1.1rem;
    border-bottom: 1px solid var(--line);
  }
  .hero-content { margin-bottom: 3.5rem; }
  .section { padding: 4.2rem 0; }
}

@media (max-width: 640px) {
  .wrap, .wrap-wide, .header-inner, .hero-content {
    width: calc(100% - 2rem);
    margin-inline: auto;
  }
  .hero h1 { font-size: 3rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .chat-launcher span.lbl { display: none; }
  .chat-launcher { padding: 0; width: 2.9rem; height: 2.9rem; justify-content: center; }
  .product-card img { height: 18rem; }
}

.studio-actions-inline { gap: 1.1rem; }
.studio-actions-inline .btn-text { font-size: 0.68rem; }

#stage-status { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
