/* ==========================================================================
   Page-level composition — loader, hero, art section, signup, footer
   ========================================================================== */

main { padding-top: var(--nav-h); }

/* --------------------------------------------------------------------------
   Loader — brief, and it never outlives the catalog fetch
   -------------------------------------------------------------------------- */

.loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  background: var(--ground);
  transition: opacity 420ms var(--ease), visibility 0s;
}
.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  /* Stop taking taps the instant it is dismissed, not when the fade finishes.

     Everything else here is a transition, and a transition can fail to run: a
     phone that locks or switches apps mid-load pauses the timeline, and the
     loader is then left at its starting values - fully opaque, visible, and
     covering the viewport at z-index 999. It sits over every product on the
     page, so nothing can be tapped and the shop looks broken in a way no
     amount of tapping fixes.

     pointer-events does not transition, so this applies immediately and cannot
     be left half-done. The fade is now decoration; this is the part that
     matters. */
  pointer-events: none;
  transition: opacity 420ms var(--ease), visibility 0s linear 420ms;
}
.loader__mark {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 6vw, 2.6rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding-bottom: 10px;
}
.loader__mark::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--accent);
  transform-origin: left;
  animation: loaderBar 1.1s var(--ease) infinite;
}
@keyframes loaderBar {
  0%   { transform: scaleX(0); transform-origin: left; }
  50%  { transform: scaleX(1); transform-origin: left; }
  51%  { transform: scaleX(1); transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}

/* --------------------------------------------------------------------------
   Hero

   Type on the left, one real product on the right. The product is a cut-out on
   the page's own ground, so the opening image is the goods rather than a
   photograph of a white studio.
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
/* A single soft light behind the product, not a gradient wash over everything. */
.hero::before {
  content: '';
  position: absolute;
  top: -18%;
  right: 4%;
  width: min(760px, 74vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(120, 132, 148, 0.20) 0%, transparent 66%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(var(--s-5), 4vw, var(--s-8));
  min-height: min(84vh, 780px);
  padding-block: clamp(var(--s-7), 7vw, var(--s-9));
}

.hero__eyebrow { margin-bottom: var(--s-4); }

.hero__title {
  font-size: clamp(2.9rem, 8.4vw, 5.6rem);
  margin-bottom: var(--s-5);
}
/* The headline stays in ink. The brand green marks it rather than fills it —
   a rule under the last line, which reads as a signature at this scale where a
   wall of solid accent reads as a warning label. */
.hero__title em {
  font-style: normal;
  position: relative;
  display: inline-block;
  padding-bottom: 0.1em;
}
.hero__title em::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0.07em;
  background: var(--accent);
}

.hero__lede {
  max-width: 44ch;
  color: var(--ink-2);
  font-size: var(--t-md);
  line-height: 1.62;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-6);
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-6);
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
}
.hero__facts dt {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: var(--t-xl);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hero__facts dd {
  font-family: var(--f-mono);
  font-size: var(--t-3xs);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 6px;
}

.hero__art {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
}
.hero__art img {
  width: 100%;
  max-height: min(66vh, 620px);
  object-fit: contain;
  filter: drop-shadow(0 34px 54px rgba(0, 0, 0, 0.62));
}
.hero__art[data-tier='studio'] img {
  border-radius: var(--radius-lg);
  background: linear-gradient(to bottom, var(--studio-from) 0%,
                              var(--studio-from) 80%, var(--studio-to) 100%);
  box-shadow: inset 0 0 0 1px var(--studio-edge);
  padding: 3%;
}

.hero__art-tag {
  position: absolute;
  left: 50%;
  bottom: 0;
  translate: -50% 0;
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 10px 16px;
  background: rgba(19, 19, 22, 0.86);
  border: 1px solid var(--line);
  border-radius: 100px;
  backdrop-filter: blur(10px);
  transition: border-color var(--fast);
  white-space: nowrap;
  max-width: 100%;
}
.hero__art-tag:hover { border-color: var(--line-strong); }

/* --- the hero rotation ----------------------------------------------------
   The same model wearing a different shirt every seventeen seconds. Every
   slide is in the DOM from the start and they share one grid cell, so the
   change is a cross-fade with nothing to load and no jump in layout.

   `visibility` rides along with the opacity so a faded-out slide cannot take a
   tap - the same trap the nav panel fell into, where an invisible layer went
   on swallowing taps because only its opacity had changed. */
.hero__shot {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 900ms ease, visibility 0s linear 900ms;
}
.hero__shot.is-on {
  opacity: 1;
  visibility: visible;
  transition: opacity 900ms ease, visibility 0s;
}
/* Only the tag belonging to the shirt on show, and it must not be clickable
   while hidden - it points at a different product. */
.hero__art-tag {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 500ms ease 260ms, visibility 0s linear 760ms,
              border-color var(--fast);
}
.hero__art-tag.is-on {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 500ms ease 260ms, visibility 0s, border-color var(--fast);
}
@media (prefers-reduced-motion: reduce) {
  /* No rotation runs, so the first slide simply stands still. */
  .hero__shot, .hero__art-tag { transition: none; }
}
.hero__art-tag span {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: var(--t-2xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero__art-tag b {
  font-family: var(--f-mono);
  font-size: var(--t-2xs);
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   The art / brand story
   -------------------------------------------------------------------------- */

.art {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(var(--s-5), 5vw, var(--s-8));
  align-items: start;
  padding: clamp(var(--s-6), 5vw, var(--s-8));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.art__copy h2 {
  font-size: clamp(1.8rem, 4.4vw, 2.8rem);
  margin: var(--s-3) 0 var(--s-5);
}
.art__copy h2 em { font-style: normal; color: var(--ink-3); }
.art__copy p {
  color: var(--ink-2);
  font-size: var(--t-sm);
  max-width: 48ch;
  margin-bottom: var(--s-4);
}
.art__copy .text-link { display: inline-block; margin-top: var(--s-2); }

.art__families {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.art__family {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--s-4);
  background: var(--surface);
  transition: background var(--fast);
}
.art__family:hover { background: var(--surface-3); }
.art__family b {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: var(--t-sm);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.art__family i {
  font-family: var(--f-mono);
  font-style: normal;
  font-size: var(--t-3xs);
  color: var(--ink-3);
}
.art__family:hover i { color: var(--accent); }

/* --------------------------------------------------------------------------
   Collections tiles carry an extra line of ranges
   -------------------------------------------------------------------------- */

/* One line, always. Five audiences wrapping to three lines pushes the label up
   into the artwork it is meant to sit beneath. */
.tile__ranges {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --------------------------------------------------------------------------
   Signup
   -------------------------------------------------------------------------- */

.signup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-4) var(--s-6);
  padding: clamp(var(--s-5), 4vw, var(--s-7));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(120deg, var(--surface) 0%, var(--surface-2) 100%);
}
.signup__title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-top: var(--s-2);
}
.signup__form { display: flex; gap: var(--s-2); min-width: 0; }
.signup__form input {
  flex: 1;
  min-width: 0;
  padding: 13px 16px;
  background: var(--ground);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: var(--t-sm);
}
.signup__form input::placeholder { color: var(--ink-3); }
.signup__form input:focus-visible { border-color: var(--accent); }
.signup__note {
  grid-column: 1 / -1;
  font-family: var(--f-mono);
  font-size: var(--t-3xs);
  color: var(--ink-3);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--line);
  margin-top: var(--s-8);
  padding-block: var(--s-7) var(--s-5);
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: var(--s-6);
}
.footer__brand {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.footer__brand span { color: var(--accent); }
.footer__blurb {
  color: var(--ink-3);
  font-size: var(--t-xs);
  max-width: 34ch;
  margin-top: var(--s-3);
  line-height: 1.6;
}
.footer__col h3 {
  font-family: var(--f-mono);
  font-size: var(--t-3xs);
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: var(--s-3);
}
.footer__col li { margin-bottom: 9px; }
.footer__col a {
  font-size: var(--t-xs);
  color: var(--ink-2);
  transition: color var(--fast);
}
.footer__col a:hover { color: var(--accent); }
.footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  margin-top: var(--s-7);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: var(--t-3xs);
  color: var(--ink-3);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .art { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: var(--s-6);
  }
  /* Product first on small screens: the artwork is the point, and it should not
     sit below a screenful of type. */
  .hero__art { order: -1; }
  .hero__art img { max-height: 46vh; }
  .hero__title { font-size: clamp(2.6rem, 12vw, 4rem); }
  .hero__facts { gap: var(--s-5); margin-top: var(--s-5); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand-col { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .signup { grid-template-columns: 1fr; }
  .art__families { grid-template-columns: 1fr; }
  .hero__facts dt { font-size: var(--t-lg); }
  .tiles--collections { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


.artist-page { padding-bottom: var(--s-9); }

.artist-hero {
  padding-top: clamp(var(--s-7), 9vw, var(--s-9));
  padding-bottom: var(--s-6);
}
.artist-hero__title {
  font-size: clamp(2.8rem, 8vw, 5.4rem);
  margin-top: var(--s-4);
}
/* Same signature rule the homepage headline uses, so the two read as one voice. */
.artist-hero__title em,
.artist-range__title em {
  font-style: normal;
  position: relative;
  display: inline-block;
  padding-bottom: 0.1em;
}
.artist-hero__title em::after,
.artist-range__title em::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 0.07em;
  background: var(--accent);
}

/* --- strips: her work, breaking the page width --------------------------- */

.artist-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(150px, 1fr);
  gap: var(--s-3);
  padding-inline: var(--gutter);
  margin-block: var(--s-6) var(--s-8);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.artist-strip--wide { grid-auto-columns: minmax(130px, 1fr); }
.artist-strip > * { scroll-snap-align: start; }

.plate {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(118% 86% at 50% 4%, var(--well-from) 0%, var(--well-to) 62%, var(--ground) 100%);
  transition: transform var(--med);
}
/* CONTAIN, not cover.
   These plates hold flat product shots, and a square crop of a flat lands in the
   middle of the garment — on a black hoodie that is a tile of solid black with
   the design cropped away. Every plate read as empty. Containing shows the whole
   piece, which is the point of a page about the work. */
.plate img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8%;
  display: block;
}
.plate:hover { transform: translateY(-3px); }
.plate__tag {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 10px 8px;
  font-family: var(--f-mono);
  font-size: var(--t-3xs);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--ink);
  background: linear-gradient(to top,
    color-mix(in srgb, var(--ground) 92%, black), transparent);
}

/* --- copy blocks, alternating side --------------------------------------- */

.artist-block {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(var(--s-6), 5vw, var(--s-8));
  align-items: start;
  margin-block: var(--s-8);
}
.artist-block--reverse .artist-block__copy { order: 2; }

.artist-block__copy p { color: var(--ink-2); font-size: var(--t-md); line-height: 1.68; max-width: 60ch; }
.artist-block__copy p + p { margin-top: var(--s-4); }
.artist-block__copy .label { margin-bottom: var(--s-4); }

/* The opening sentence carries the most weight on the page after the headline. */
.artist-lede {
  color: var(--ink) !important;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem) !important;
  line-height: 1.5 !important;
}

.artist-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }

/* Unmistakably empty while it is empty. A dashed frame reads as "awaiting a
   photograph"; a stock face or an AI-generated person would read as Akeya, and
   would be a lie about a real person. */
/* --- the range statement, set alone --------------------------------------- */

.artist-range {
  margin-block: var(--s-9) var(--s-7);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(var(--s-6), 5vw, var(--s-8));
  align-items: end;
}
.artist-range__title { font-size: clamp(2.2rem, 6vw, 4rem); }
.artist-range__copy { color: var(--ink-2); font-size: var(--t-md); line-height: 1.68; max-width: 52ch; }

/* --- her words ------------------------------------------------------------ */

.artist-quote-wrap { margin-block: var(--s-9) var(--s-8); }
.artist-quote {
  margin: var(--s-4) 0 0;
  padding-left: var(--s-6);
  border-left: 3px solid var(--accent);
  font-size: clamp(1.3rem, 3vw, 2rem);
  line-height: 1.45;
  color: var(--ink);
  max-width: 44ch;
}
.artist-quote[data-placeholder='true'] {
  color: var(--ink-3);
  font-style: italic;
  border-left-style: dashed;
}
.artist-quote[data-placeholder='true']::after {
  content: ' — placeholder, awaiting Akeya’s words';
  display: block;
  margin-top: var(--s-3);
  font-size: var(--t-2xs);
  font-style: normal;
  font-family: var(--f-mono);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--danger);
}

.artist-cta { margin-block: var(--s-7) 0; }
.btn--lg { padding: 16px 30px; font-size: var(--t-sm); }

@media (max-width: 820px) {
  .artist-block,
  .artist-range { grid-template-columns: 1fr; }
  .artist-block--reverse .artist-block__copy { order: 0; }
  }

/* --- About Akeya ----------------------------------------------------------
   Her story is a section of the brand, not a paragraph at the foot of a page,
   so it gets the same weight as anything selling a product: a display headline,
   a measured column, and her own work running alongside it. */
.artist-hero__lede {
  font-size: var(--t-md);
  color: var(--ink-2);
  max-width: 40ch;
  margin-top: var(--s-4);
}
.artist-block--full { grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr); }
.artist-block__copy p + p { margin-top: var(--s-4); }
/* Reading measure. Long copy set the full width of a desktop is a wall; this
   keeps a line to roughly 70 characters however wide the screen is. */
.artist-block__copy p { max-width: 68ch; }
.artist-welcome {
  margin-top: var(--s-6);
  color: var(--accent);
}
.artist-range__copy p + p { margin-top: var(--s-4); }

@media (max-width: 820px) {
  /* One column, and the artwork follows the words rather than splitting them. */
  .artist-block,
  .artist-block--full,
  .artist-block--reverse { grid-template-columns: 1fr; }
  .artist-block--reverse .artist-block__copy { order: -1; }
  .artist-hero__title { font-size: clamp(2.6rem, 13vw, 4rem); }
  .artist-block__copy p { max-width: none; }
}

/* --- the neurodiversity mark ----------------------------------------------
   Small, and deliberately so. It sits at the scale of a piece of punctuation
   beside her title, not as a banner: the brief is that autism is an open and
   positive part of who she is, not the subject of the page. Her artwork stays
   the largest thing in view. */
.label--nd {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nd-mark {
  display: block;
  flex: none;
  overflow: visible;
}
/* Beside the paragraph where she says it, the mark hangs in the left margin on
   a wide screen so the text keeps its measure and the symbol is unmistakably
   attached to that passage. */
.artist-nd { position: relative; }
.artist-nd__mark {
  position: absolute;
  left: -46px;
  top: 2px;
}
@media (max-width: 900px) {
  /* No margin to hang in — it leads the paragraph instead, still at the same
     small scale rather than being blown up to fill the width. */
  .artist-nd__mark {
    position: static;
    display: inline-block;
    margin-right: 8px;
    vertical-align: -3px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .nd-mark { transition: transform var(--med); }
  .artist-hero:hover .nd-mark { transform: translateX(2px); }
}

/* A plate that has not loaded yet should read as "coming", not as an error.
   The tiles are square and dark, so an empty one is indistinguishable from a
   broken one — this gives the frame a faint ground of its own underneath. */
.plate {
  background:
    radial-gradient(120% 90% at 50% 0%,
      color-mix(in srgb, var(--halo, var(--accent)) 10%, var(--surface-2)) 0%,
      var(--surface) 70%);
}
