/* Homepage only: the Shade Chart. Shared styles live in site.css. */

/* ---------- Hero ---------- */
.hero { padding-block: clamp(1.25rem, 3vw, 2.5rem) clamp(2rem, 5vw, 4rem); }
h1 { font-size: clamp(2.25rem, 5.4vw, 4.5rem); max-width: 13ch; }
.hero-top { display: grid; gap: 1rem 3rem; align-items: end; }
.hero-sub { max-width: 46ch; margin: 0; font-size: clamp(1rem, 1.6vw, 1.1875rem); color: var(--text-soft); }
.hero-sub strong { color: var(--text); font-weight: 700; }
@media (min-width: 64rem) {
  .hero-top { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
}

/* ---------- The chart ---------- */
.chart { margin-top: clamp(1.5rem, 3vw, 2.25rem); position: relative; }
.chart-bar {
  height: 16px; border-radius: 8px; position: relative; z-index: 2;
  background: linear-gradient(180deg, #f4f0ea 0%, #bdb7ae 30%, #7d7871 62%, #3f3c38 100%);
  box-shadow: 0 7px 10px -4px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.tresses {
  list-style: none; margin: -3px 0 0; padding: 0 0.25rem;
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)) minmax(0, 2.6fr); gap: 0.5rem; align-items: start;
}
.slot { position: relative; padding-top: 0.5rem; }
/* A small metal ring hooks each tab over the bar. */
.slot::before {
  content: ""; position: absolute; top: -9px; left: 50%; width: 16px; height: 16px; margin-left: -8px; z-index: 3;
  border: 3px solid #d9d3cb; border-radius: 50%; box-shadow: 0 2px 3px rgba(0, 0, 0, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.5);
}
.tress {
  --c: var(--chestnut); --fg: var(--label);
  display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
  transform-origin: 50% 0;
}
.tab {
  background: var(--label); color: var(--ink); padding: 0.4rem 0.6rem 0.45rem; border-radius: 0 0 6px 6px;
  display: flex; justify-content: space-between; align-items: baseline; font-variant-numeric: tabular-nums;
  transition: background-color 0.25s var(--ease);
}
.tab-time { font-family: var(--display); font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.01em; }
.tab-code { font-size: 0.8125rem; font-weight: 500; color: var(--ink-soft); }
.hair-wrap { position: relative; display: block; margin-top: 4px; }
.hair { display: block; width: 100%; transition: transform 0.4s var(--ease), filter 0.25s var(--ease); transform-origin: 50% 0; }
.slot.len-a .hair { height: 10.5rem; }
.slot.len-b .hair { height: 9rem; }
.slot.len-c .hair { height: 7.75rem; }
.label { position: absolute; inset: 0.6rem 0.5rem auto; color: var(--fg); display: flex; flex-direction: column; gap: 0.15rem; pointer-events: none; }
.label .svc { font-weight: 700; font-size: 0.9375rem; line-height: 1.2; }
.label .stat { font-size: 0.8125rem; line-height: 1.25; }
/* Lift and press happen on the inner parts, so the hit area under the pointer never moves. */
.tress:hover .hair { transform: translateY(5px); filter: brightness(1.08); }
.tress[aria-pressed="true"] .hair { transform: translateY(9px); }
.tress[aria-pressed="true"] .tab { background: var(--copper-bright); }

.tress.chestnut { --c: #7a4430; --fg: var(--label); }
.tress.copper { --c: #d9824f; --fg: var(--ink); }
.tress.honey { --c: #dba54f; --fg: var(--ink); }
.tress.ash { --c: #bdb6ae; --fg: var(--ink); }
.tress.plum { --c: #7a3562; --fg: var(--label); }
.tress.jet { --c: #3a2c27; --fg: var(--label); }

/* The slot happening now carries a copper ring, like the damp course on a coil. */
.tress.now .hair-wrap::after {
  content: "Now"; position: absolute; left: 50%; bottom: 1.1rem; transform: translateX(-50%);
  background: var(--jet); color: var(--copper-bright); font-weight: 700; font-size: 0.8125rem;
  padding: 0.2rem 0.7rem; border-radius: 999px; border: 2px solid var(--copper-bright);
}

/* The open slot: a clear acetate tab, an outline with the signup inside it. */
.open-slot::before { border-color: var(--copper-bright); }
.open-slot .tab { background: var(--copper-bright); }
.open-body { margin-top: 4px; border: 2px dashed var(--copper-bright); border-radius: 8px; padding: 0.9rem 1rem 1rem; }
.open-label { margin: 0 0 0.6rem; font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; color: var(--copper-bright); }
.open-body .waitlist { margin: 0; max-width: none; }
.open-body .waitlist-form { flex-direction: column; }
.open-body .waitlist-form input[type="email"], .open-body .waitlist-form button { flex: 0 0 auto; width: 100%; min-height: 48px; }
.open-body .form-msg { min-height: 1.25rem; margin: 0.5rem 0 0; font-size: 0.9375rem; }
.open-body .fine { font-size: 0.8125rem; margin: 0.35rem 0 0; }

.note-row { grid-column: 1 / -1; padding-top: 1rem; }
.chart-note { margin: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; align-items: baseline; font-size: 1.0625rem; max-width: 70ch; min-height: 1.6rem; }
.chart-note strong { font-family: var(--display); font-size: 1.25rem; letter-spacing: -0.01em; }
.chart-caption { margin: 0.5rem 0 0; font-size: 0.875rem; color: var(--text-soft); }

/* ---------- Sections ---------- */
section { padding-block: clamp(3rem, 8vw, 6rem); }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); }

.story { background: var(--copper); color: var(--ink); }
.story .pull { font-family: var(--display); font-weight: 700; font-size: clamp(1.75rem, 4.6vw, 3.5rem); line-height: 1.1; letter-spacing: -0.025em; max-width: 24ch; margin: 0; text-wrap: balance; }
.story .names { margin: 1.5rem 0 0; font-weight: 700; }
.story .body { max-width: 62ch; margin: 1rem 0 0; font-size: 1.125rem; }
.story .body + .body { margin-top: 0.75rem; }

.does { background: var(--label); color: var(--ink); }
.does h2 { max-width: 16ch; }
.rows { margin: 2.5rem 0 0; padding: 0; list-style: none; }
.rows li {
  display: grid; grid-template-columns: 1fr; gap: 0.75rem 3rem; padding-block: 1.5rem;
  border-top: 1px solid rgba(26, 18, 16, 0.25);
}
.rows li:last-child { border-bottom: 1px solid rgba(26, 18, 16, 0.25); }
.rows h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); display: flex; align-items: center; gap: 0.9rem; }
.rows h3::before {
  content: ""; flex: 0 0 auto; width: 2.5rem; height: 1rem; border-radius: 3px;
  background: var(--chip, var(--chestnut));
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.2);
}
.rows p { margin: 0; max-width: 54ch; color: var(--ink-soft); }
.rows li:nth-child(1) { --chip: #7a4430; }
.rows li:nth-child(2) { --chip: #d9824f; }
.rows li:nth-child(3) { --chip: #dba54f; }

.commission { background: var(--chestnut-deep); }
.commission p.big { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 6vw, 4.5rem); line-height: 1.02; letter-spacing: -0.03em; margin: 0; max-width: 18ch; text-wrap: balance; }
.commission .sub { margin: 1.25rem 0 0; color: var(--text-soft); max-width: 52ch; }

.voices h2 { max-width: 14ch; }
.quotes { margin: 2.5rem 0 0; display: grid; gap: 2.5rem 3rem; grid-template-columns: 1fr; }
.quotes blockquote { margin: 0; }
.quotes blockquote p { margin: 0; }
.quotes .lead p { font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem, 3.4vw, 2.5rem); line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; max-width: 30ch; }
.quotes .small p { font-size: 1.125rem; max-width: 40ch; }
.quotes footer { margin-top: 0.75rem; color: var(--text-soft); font-size: 0.9375rem; }
.quotes footer strong { color: var(--text); }

.closing { background: var(--honey); color: var(--ink); }
.closing h2 { max-width: 16ch; }
.closing .sub { margin: 1rem 0 0; max-width: 52ch; font-size: 1.125rem; }
.closing .waitlist-form input[type="email"] { background: var(--jet); color: var(--text); border-color: var(--jet); }
.closing .waitlist-form input::placeholder { color: #b8aca2; }
.closing .waitlist-form button { background: var(--jet); border-color: var(--jet); color: var(--label); }
.closing .waitlist-form button:hover { background: #3a2c27; border-color: #3a2c27; }
.closing .fine { color: var(--ink-soft); }
.closing :focus-visible { outline-color: var(--jet); }



/* Between bands: the previous band's colour runs on as ragged fibre ends, so the page stays one swatch book. */
.story, .does, .commission, .voices, .closing { position: relative; }
.story::before, .does::before, .commission::before, .voices::before, .closing::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 22px; z-index: 1; pointer-events: none;
  background: var(--prev); -webkit-mask: var(--fibres) repeat-x top / 64px 22px; mask: var(--fibres) repeat-x top / 64px 22px;
}
.story { --prev: var(--jet); } .does { --prev: var(--copper); } .commission { --prev: var(--label); } .voices { --prev: var(--chestnut-deep); } .closing { --prev: var(--jet); }
:root { --fibres: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 22'%3E%3Cpath d='M0 0H64V8L60 22L56 9L51 17L47 8L42 20L38 10L33 18L29 8L24 21L20 9L15 17L11 8L6 20L3 10L0 8Z'/%3E%3C/svg%3E"); }

/* Testimonials as printed swatch tabs: a label tab on top, a tress-coloured panel below. */
.quotes { align-items: start; }
.quotes blockquote { display: block; margin: 0; }
.quotes footer { order: -1; }
.quotes blockquote { position: relative; padding: 0; }
.quotes .quote-tab { display: inline-block; background: var(--label); color: var(--ink); padding: 0.4rem 0.8rem 0.45rem; border-radius: 0 0 6px 6px; font-size: 0.9375rem; font-variant-numeric: tabular-nums; margin-left: 1rem; }
.quotes .quote-tab strong { color: var(--ink); }
.quotes .panel { background: var(--c); color: var(--fg); padding: 1.25rem 1.25rem 1.5rem; border-radius: 8px; margin-top: 4px; }
.quotes .panel p { margin: 0; }
.quotes .lead .panel p { font-family: var(--display); font-weight: 600; font-size: clamp(1.4rem, 3vw, 2.15rem); line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; max-width: 30ch; }
.quotes .small .panel p { font-size: 1.125rem; max-width: 40ch; }
.quotes .lead { --c: #7a3562; --fg: var(--label); }
.quotes .small:nth-of-type(2) { --c: #d9824f; --fg: var(--ink); }
.quotes .small:nth-of-type(3) { --c: #dba54f; --fg: var(--ink); }

/* ---------- Wider screens ---------- */
@media (min-width: 52rem) {
  .rows li { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; }
  .quotes { grid-template-columns: 1.4fr 1fr; }
  .quotes .lead { grid-row: span 2; }
}

/* Phones: two rows of hanging tresses per screen, the open slot first so the signup is on the first screen. */
@media (max-width: 48rem) {
  .chart-bar { display: none; }
  .tresses { grid-template-columns: 1fr 1fr; gap: 0.75rem 0.75rem; padding: 0; margin: 0; }
  .slot { padding-top: 0.9rem; }
  /* each pair of tresses hangs from its own bar, drawn as the top edge of the cell */
  .slot::after {
    content: ""; position: absolute; top: 0; left: -0.4rem; right: -0.4rem; height: 12px; border-radius: 6px; z-index: 1;
    background: linear-gradient(180deg, #f4f0ea 0%, #bdb7ae 30%, #7d7871 62%, #3f3c38 100%); box-shadow: 0 5px 8px -3px rgba(0, 0, 0, 0.6);
  }
  .slot::before { top: -2px; z-index: 3; }
  .open-slot { grid-column: 1 / -1; order: -1; }
  .slot.len-a .hair { height: 9.5rem; }
  .slot.len-b .hair { height: 8.25rem; }
  .slot.len-c .hair { height: 7.25rem; }
  .note-row { padding-top: 0; }
  /* idle prompt stays visible, directly above the first row of tresses */
  .note-row[data-idle] { order: -1; padding: 0.25rem 0 0; }
  .note-row[data-idle] .chart-note { background: none; padding: 0; font-size: 1rem; color: var(--text-soft); }
  .note-row[data-idle] .chart-note strong { font-size: 1rem; color: var(--text); }
  .note-row .chart-note { background: var(--chestnut-deep); border-radius: 8px; padding: 0.9rem 1rem; font-size: 1rem; }
  .note-row .chart-note strong { font-size: 1.125rem; }
  .hero-top { gap: 0.75rem; }
}

/* One authored moment: the tresses settle on the bar when the page opens. */
@media (prefers-reduced-motion: no-preference) {
  .tresses .tress .hair-wrap { animation: settle 1.1s var(--ease) both; transform-origin: 50% 0; }
  .tresses li:nth-child(1) .hair-wrap { animation-delay: 0.05s; }
  .tresses li:nth-child(2) .hair-wrap { animation-delay: 0.1s; }
  .tresses li:nth-child(3) .hair-wrap { animation-delay: 0.15s; }
  .tresses li:nth-child(4) .hair-wrap { animation-delay: 0.2s; }
  .tresses li:nth-child(5) .hair-wrap { animation-delay: 0.25s; }
  .tresses li:nth-child(6) .hair-wrap { animation-delay: 0.3s; }
  .tresses li:nth-child(7) .hair-wrap { animation-delay: 0.35s; }
  @keyframes settle {
    from { transform: rotate(-3.5deg); }
    to { transform: rotate(0); }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hair, .tab, .waitlist-form button { transition: none; }
}

/* Keep the shade code readable when the tab turns copper (open slot, pressed tress). */
.open-slot .tab-code, .tress[aria-pressed="true"] .tab-code { color: var(--ink); }
