/* ==========================================================
   Atelier Sore — styles
   Brand colours and fonts live in :root.
   ========================================================== */
/* Own fonts: titles (Akira Expanded) and doodles (Acki Preschool) */
@font-face {
  font-family: "Akira Expanded";
  src: url("../fonts/akira-expanded.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Acki Preschool";
  src: url("../fonts/acki-preschool.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --blue: #4245e2;          /* sampled from the shirt print */
  --bg: #e6e6e3;            /* soft grey background */
  --white: #ffffff;
  --line: #cbcbc7;
  --text: #111111;
  --muted: #7a7a7a;
  --marker: #e2231a;        /* red scribbles */

  --font: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-title: "Akira Expanded", var(--font);
  /* characters the doodle font doesn't have (→ + = € …) fall back to Reenie Beanie */
  --font-hand: "Acki Preschool", "Reenie Beanie", "Comic Sans MS", cursive;

  --max: 1320px;
  --gutter: clamp(16px, 4vw, 40px);
  --header: 64px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

h1, h2, h3 { margin: 0; line-height: 1; }

.label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.hand {
  font-family: var(--font-hand);
  color: var(--marker);
  font-size: clamp(1.15rem, 1.9vw, 1.6rem);
  line-height: 1.1;
  font-weight: 400;
}

/* ---------- Red announcement bar (scrolling) ---------- */
.announce {
  display: block;
  width: 100%;
  background: var(--marker);
  color: var(--white);
  border: 0;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  font: inherit;
}
.announce-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.announce:hover .announce-track { animation-play-state: paused; }
.announce-track span {
  flex: none;
  padding: 0.3rem 1.25rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .announce-track { animation: none; }
}

/* ---------- Header: menu left, logo centre, Instagram right ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header);
}
.logo { justify-self: center; }
.logo img { height: 38px; width: auto; }
.header-right {
  justify-self: end;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}
.header-right:hover { color: var(--blue); }

.nav ul {
  display: flex;
  gap: 2.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--blue); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.5rem 0.5rem 0.5rem 0;
  cursor: pointer;
  color: inherit;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  transition: transform 0.2s, opacity 0.2s;
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 0.5rem var(--gutter) 1.5rem; }
  .nav li a { display: block; padding: 0.9rem 0; font-size: 0.85rem; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  border: 1.5px solid var(--text);
  background: var(--text);
  color: var(--white);
  text-decoration: none;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn:hover { background: transparent; color: var(--text); }

/* ---------- Home: shirt carousel as grey blocks with thin lines ---------- */
.showcase {
  --slide: 48vw;
  position: relative;
  min-height: calc(100svh - var(--header));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 0 3rem;
  overflow: hidden;
}
.showcase-top {
  position: relative;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}
.counter { font-variant-numeric: tabular-nums; }

.carousel {
  position: relative;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  outline: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.carousel::-webkit-scrollbar { display: none; }
/* spacers so the first and last block can sit in the centre */
.carousel::before,
.carousel::after {
  content: "";
  flex: 0 0 calc((100vw - var(--slide)) / 2);
}
.carousel::before { border-right: 1px solid var(--line); }

.slide {
  flex: 0 0 var(--slide);
  scroll-snap-align: center;
  margin: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1rem, 2vw, 1.5rem);
  border-right: 1px solid var(--line);
  cursor: pointer;
}
.slide.is-active { cursor: default; }
.slide img {
  width: 100%;
  height: min(54vh, 580px);
  object-fit: contain;
  margin: 1rem 0 1.5rem;
  user-select: none;
  -webkit-user-drag: none;
}
/* name + price bottom-left, button bottom-right */
.slide figcaption {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}
.slide .label { display: block; margin-bottom: 0.4rem; }
.slide h2 {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
}
.slide .tagline {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--muted);
  margin: 0 0 0.5rem;
}
.slide .price { margin: 0; }
.slide .btn { padding: 0.75rem 1.3rem; }

/* greyed-out price + sold out */
.price {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
}
.price s { opacity: 0.6; }
.sold-out {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* red scribble next to the shirt */
.slide .hand {
  position: absolute;
  white-space: nowrap;
  pointer-events: none;
  clip-path: inset(-30% 100% -30% -10%);
}
.slide.is-active .hand {
  clip-path: inset(-30% -10% -30% -10%);
  transition: clip-path 1.1s cubic-bezier(0.55, 0.1, 0.35, 1) 0.25s;
}
.note-right { top: 10%; right: 6%; transform: rotate(6deg); }
.note-left { top: 14%; left: 6%; transform: rotate(-6deg); }

/* thin blue chevrons at the edges of the centre shirt */
.carousel-arrow {
  position: absolute;
  top: calc(50% - 3rem);
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  padding: 6px;
  border: 0;
  background: none;
  color: var(--text);
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.carousel-arrow svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.carousel-prev { left: calc(50% - var(--slide) / 2 + 10px); }
.carousel-next { right: calc(50% - var(--slide) / 2 + 10px); }
.carousel-prev:hover { transform: translate(-3px, -50%); }
.carousel-next:hover { transform: translate(3px, -50%); }
.carousel-arrow:disabled { opacity: 0; pointer-events: none; }

@media (max-width: 720px) {
  .showcase { --slide: 80vw; }
  .slide img { height: 46vh; }
  .carousel-arrow { width: 36px; height: 36px; }
  .carousel-prev { left: calc(50% - var(--slide) / 2 - 12px); }
  .carousel-next { right: calc(50% - var(--slide) / 2 - 12px); }
  .note-right { right: 0; }
  .note-left { left: 0; }
}

/* ---------- Pages ---------- */
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.page-intro { padding: clamp(3rem, 7vw, 5rem) 0 2rem; }
.page-intro h1 {
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.page-intro p { color: var(--muted); max-width: 52ch; margin: 0; }

/* ---------- Collection: one row per drop (portfolio) ---------- */
.drop-row { margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.drop-head {
  display: flex;
  align-items: baseline;
  gap: 0.5rem 1.25rem;
  flex-wrap: wrap;
  padding-bottom: 1rem;
}
.drop-head .label { color: var(--text); }
.drop-head h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.drop-head .price { margin: 0 0 0 auto; }
.drop-row .hand { display: block; margin-top: 0.75rem; }

/* a swipeable row of photos with thin lines between them */
.strip {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.cell {
  flex: 0 0 auto;
  height: clamp(320px, 42vw, 520px);
  aspect-ratio: 4 / 5;
  scroll-snap-align: start;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 0;
}
.cell img,
.cell .ph { width: 100%; height: 100%; object-fit: cover; }
/* cut-out product shot: shown whole, with some breathing room */
.cell.product img { object-fit: contain; padding: 8%; }

/* ---------- Photo placeholders ---------- */
.ph {
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  width: 100%;
  overflow: hidden;
}
.ph img { width: 100%; height: 100%; object-fit: cover; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.split .ph { aspect-ratio: 4 / 5; }
.split p { color: var(--muted); max-width: 46ch; }
.split .hand { display: block; margin-bottom: 0.75rem; }
.split h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
@media (max-width: 720px) { .split { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.1rem; max-width: 560px; }
.form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.form input,
.form textarea,
.form select {
  font: inherit;
  font-size: 1rem;
  text-transform: none;
  letter-spacing: normal;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 0;
  background: var(--white);
  color: var(--text);
}
.form input:focus,
.form textarea:focus,
.form select:focus { outline: none; border-color: var(--blue); }
.form textarea { min-height: 160px; resize: vertical; }
.form-note { color: var(--muted); font-size: 0.95rem; }

.contact-details h3 {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.4rem;
}
.contact-details p { font-size: 1.3rem; margin: 0 0 2rem; }
.contact-details a { color: var(--blue); text-decoration: none; }

/* ---------- "I'm interested" popup ---------- */
.interest-dialog {
  width: min(460px, calc(100% - 32px));
  border: 0;
  padding: 2.5rem 2rem 2rem;
  background: var(--white);
  color: var(--text);
}
.interest-dialog::backdrop { background: rgba(17, 17, 17, 0.45); }
.interest-dialog h2 {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.interest-dialog .form-note { margin: 0 0 1.5rem; }
.dialog-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: 0;
  font-size: 1.6rem;
  line-height: 1;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--muted);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0;
  font-size: 0.75rem;
  color: var(--muted);
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--blue); }

.about-photo { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

/* ==========================================================
   Details: blurry headlines, photo animations, red dot cursor
   ========================================================== */

/* photos fade in from a blur when they scroll into view */
.js .reveal {
  opacity: 0;
  filter: blur(14px);
  translate: 0 14px;
  transition: opacity 0.9s ease, filter 0.9s ease, translate 0.9s ease;
}
.js .reveal.is-visible { opacity: 1; filter: none; translate: 0 0; }

/* carousel: side shirts slightly smaller and softer, centre shirt floats gently */
.slide > img,
.slide .mosaic-wrap {
  transition: scale 0.5s ease, opacity 0.5s ease;
}
.slide:not(.is-active) > img,
.slide:not(.is-active) .mosaic-wrap { scale: 0.9; opacity: 0.55; }
.slide.is-active > img { animation: float 5s ease-in-out infinite; }
@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -7px; }
}

/* collection: photos zoom in a little on hover */
.cell { overflow: hidden; }
.cell img { transition: scale 0.6s ease; }
.cell:hover img { scale: 1.04; }

/* ---------- Drop 04: pixel mosaic + spinner + loading bar ---------- */
.mosaic-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: min(54vh, 580px);
  margin: 1rem 0 1.5rem;
}
.cell .mosaic-wrap { height: 100%; margin: 0; }
.mosaic {
  height: 78%;
  width: auto;
  max-width: 88%;
  object-fit: contain;
  image-rendering: pixelated;
  animation: mosaic-pulse 2.4s ease-in-out infinite;
}
.slide .mosaic { width: auto; height: 78%; margin: 0; filter: none; }
@keyframes mosaic-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.82; }
}

/* spinner: 8 bars, like a phone loading icon */
.spinner {
  position: absolute;
  width: 46px;
  height: 46px;
  animation: spin 1s steps(8) infinite;
}
.spinner i {
  position: absolute;
  left: 50%;
  top: 0;
  width: 6px;
  height: 14px;
  margin-left: -3px;
  border-radius: 3px;
  background: var(--white);
  transform-origin: 3px 23px;
}
.spinner i:nth-child(1) { transform: rotate(0deg);   opacity: 1; }
.spinner i:nth-child(2) { transform: rotate(45deg);  opacity: 0.35; }
.spinner i:nth-child(3) { transform: rotate(90deg);  opacity: 0.4; }
.spinner i:nth-child(4) { transform: rotate(135deg); opacity: 0.45; }
.spinner i:nth-child(5) { transform: rotate(180deg); opacity: 0.55; }
.spinner i:nth-child(6) { transform: rotate(225deg); opacity: 0.65; }
.spinner i:nth-child(7) { transform: rotate(270deg); opacity: 0.75; }
.spinner i:nth-child(8) { transform: rotate(315deg); opacity: 0.88; }
@keyframes spin { to { transform: rotate(360deg); } }

.loading {
  width: min(220px, 100%);
  margin: 0.4rem 0 0.9rem;
}
.loading-bar {
  height: 3px;
  background: var(--line);
  overflow: hidden;
}
.loading-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--marker);
  animation: load 3.5s cubic-bezier(0.3, 0.7, 0.4, 1) forwards;
}
@keyframes load { to { width: 78%; } }
.loading small {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.drop-head .loading { margin: 0 0 0 auto; }

/* ---------- Red dot cursor (mouse/trackpad only) ---------- */
.cursor-dot {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9999;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--marker);
  pointer-events: none;
  opacity: 0;
  transition: width 0.2s, height 0.2s, margin 0.2s, opacity 0.2s;
}
.cursor-dot.is-visible { opacity: 1; }
.cursor-dot.is-hover { width: 34px; height: 34px; margin: -17px 0 0 -17px; opacity: 0.35; }
html.has-dot,
html.has-dot * { cursor: none !important; }
html.has-dot input,
html.has-dot textarea,
html.has-dot select { cursor: text !important; }
/* popups sit above everything, so use the normal cursor while one is open */
html.has-dot:has(dialog[open]),
html.has-dot:has(dialog[open]) * { cursor: auto !important; }
html:has(dialog[open]) .cursor-dot { display: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; filter: none; translate: 0 0; transition: none; }
  .slide.is-active > img,
  .mosaic,
  .spinner { animation: none; }
  .loading-bar span { animation: none; width: 78%; }
}

/* coming soon: in grey */
.coming .mosaic { filter: grayscale(1) contrast(0.9); }

/* ---------- Titles in Akira Expanded ---------- */
.page-intro h1,
.slide h2,
.drop-head h2,
.split h2,
.interest-dialog h2 {
  font-family: var(--font-title);
  font-weight: 800;
  font-style: normal;
  letter-spacing: 0;
  text-transform: uppercase;
}
.page-intro h1 { font-size: clamp(1.8rem, 5.5vw, 3.8rem); }
.slide h2 { font-size: clamp(0.85rem, 1.25vw, 1.05rem); line-height: 1.2; }
.drop-head h2 { font-size: clamp(1.1rem, 2.6vw, 1.8rem); }
.split h2 { font-size: clamp(1.3rem, 3vw, 2rem); }
.interest-dialog h2 { font-size: 1.35rem; }

/* ---------- Doodles "write in" when they scroll into view ---------- */
.js .write { clip-path: inset(-30% 100% -30% -10%); }
.js .write.is-visible {
  clip-path: inset(-30% -10% -30% -10%);
  transition: clip-path 1.1s cubic-bezier(0.55, 0.1, 0.35, 1) 0.2s;
}

/* ---------- About: crossword SOphie x REne = SORE ---------- */
.crossword-wrap { margin: 1.5rem 0 0; }
.crossword {
  --cell: clamp(22px, 3.3vw, 44px);
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, var(--cell));
  grid-template-rows: repeat(9, var(--cell));
  width: max-content;
  margin: 0 auto 2rem 0;
}
.cw-cell {
  position: relative;
  border: 2px solid var(--text);
  margin: -1px 0 0 -1px;   /* shared borders */
  background: var(--white);
  display: grid;
  place-items: center;
}
.cw-cell sup {
  position: absolute;
  top: 1px;
  left: 3px;
  font-size: clamp(0.45rem, 0.8vw, 0.6rem);
  font-weight: 600;
  line-height: 1;
}
.cw-letter {
  font-family: var(--font-hand);
  font-size: calc(var(--cell) * 0.72);
  line-height: 1;
  text-transform: uppercase;
}
.cw-letter.blue { color: var(--blue); }
.cw-letter.green { color: #2c8a3a; }
.cw-letter.black { color: var(--text); }
.cw-letter.red { color: var(--marker); }
/* letters are written in one by one */
.js .cw-letter { clip-path: inset(0 100% 0 0); }
.js .crossword.is-visible .cw-letter {
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.35s ease-out calc(var(--i) * 0.11s);
}
/* hand-drawn circles around SO and RE */
.cw-doodles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.cw-doodles path {
  fill: none;
  stroke: var(--marker);
  stroke-width: 2.5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.js .cw-doodles path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .crossword.is-visible .cw-doodles path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.9s ease-in-out calc(2.4s + var(--d, 0s));
}

.clues {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  font-size: 0.85rem;
}
.clues h3 {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 0.6rem;
}
.clues ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.clues b { display: inline-block; min-width: 1.4em; }
.clues .hand { font-size: 1.05em; }
@media (max-width: 480px) { .clues { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .js .write,
  .slide .hand,
  .js .cw-letter { clip-path: none; }
  .js .cw-doodles path { stroke-dashoffset: 0; }
}

/* ---------- Shirts: tiny grainy drop shadow (a blurred, speckled copy of the photo) ---------- */
.shirt { position: relative; height: min(54vh, 580px); margin: 1rem 0 1.5rem; }
.shirt img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
}
.shirt .shirt-shadow {
  filter: brightness(0) blur(9px);
  opacity: 0.2;
  translate: 8px 16px;
  -webkit-mask-image: var(--grain-mask);
  mask-image: var(--grain-mask);
  -webkit-mask-size: 160px;
  mask-size: 160px;
}
:root {
  --grain-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.8 0 0 0 -0.35'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.slide .shirt { transition: scale 0.5s ease, opacity 0.5s ease; }
.slide:not(.is-active) .shirt { scale: 0.9; opacity: 0.55; }
.slide.is-active .shirt { animation: float 5s ease-in-out infinite; }
.slide.is-active { cursor: pointer; }
.cell.product .shirt { height: 100%; margin: 0; }
.cell.product .shirt img { padding: 8%; object-fit: contain; }
.cell.product .shirt .shirt-shadow { translate: 6px 12px; }

/* ---------- Doodle stickers ---------- */
.sticker { position: absolute; pointer-events: none; height: auto; }
.page-intro { position: relative; }
.page-intro .sticker-stars { width: clamp(110px, 16vw, 200px); right: var(--gutter); top: 50%; translate: 0 -50%; rotate: -4deg; }
.slide .sticker-star { width: clamp(70px, 9vw, 120px); height: auto; margin: 0; top: 6%; left: 8%; rotate: -12deg; z-index: 1; }
.js .pop { scale: 0.6; opacity: 0; transition: scale 0.6s cubic-bezier(0.3, 1.6, 0.5, 1), opacity 0.4s; }
.js .pop.is-visible { scale: 1; opacity: 1; }

/* ---------- About: a little desktop with draggable icons, placed at random ---------- */
.desktop {
  position: relative;
  height: clamp(170px, 24vh, 230px);
  margin-bottom: 0.5rem;
  overflow: hidden;
  user-select: none;
}
/* the homepage has the desktop on top, so the shirts get a little less height */
.showcase { justify-content: center; padding: 0.5rem 0; }
.showcase .shirt,
.showcase .mosaic-wrap { height: min(56vh, 640px); }
.desktop .dt-item.big { width: clamp(100px, 11vw, 150px); }
.desktop .dt-item.big img { height: clamp(60px, 8vw, 100px); }
@media (max-width: 720px) {
  .desktop { height: 260px; }
  .dt-item { width: 84px; font-size: 0.68rem; }
}
.desktop-hint { position: absolute; top: 1rem; left: var(--gutter); z-index: 1; }
.dt-item {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  width: 110px;
  padding: 0.4rem;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 0.75rem;
  text-align: center;
  text-decoration: none;
  cursor: grab;
  touch-action: none;
}
.dt-item:hover .dt-label { background: var(--blue); color: var(--white); }
.dt-item.dragging { cursor: grabbing; z-index: 5; }
.dt-label { padding: 0.05rem 0.35rem; border-radius: 4px; line-height: 1.3; }
.dt-item img { width: 100%; height: 64px; object-fit: contain; pointer-events: none; }
.dt-item.big { width: 170px; }
.dt-item.big img { height: 110px; }
/* mac-style folder icon */
.folder {
  position: relative;
  width: 64px;
  height: 48px;
  margin-top: 10px;
  border-radius: 4px;
  background: linear-gradient(#7fc6f7, #52a9ea);
}
.folder::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  width: 26px;
  height: 12px;
  border-radius: 4px 4px 0 0;
  background: #6bb8f1;
}
/* text file icon */
.doc {
  width: 46px;
  height: 58px;
  border: 1px solid #bdbdbd;
  background:
    repeating-linear-gradient(#fff 0 6px, #cfcfcf 6px 7px) 7px 10px / 32px 38px no-repeat,
    #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
/* googly eyes that follow the cursor */
.eyes { display: flex; gap: 4px; }
.eye {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--text);
}
.eye i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 13px;
  height: 13px;
  margin: -6.5px 0 0 -6.5px;
  border-radius: 50%;
  background: var(--text);
}
/* the "About Me.txt" window */
.mac-window {
  width: min(420px, calc(100% - 32px));
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}
.mac-window::backdrop { background: rgba(17, 17, 17, 0.2); }
.mac-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.55rem 0.75rem;
  background: #e8e8e8;
  border-bottom: 1px solid #cfcfcf;
  font-size: 0.8rem;
  font-weight: 600;
}
.mac-titlebar span { flex: 1; text-align: center; margin-right: 50px; }
.dot-btn { width: 12px; height: 12px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; }
.dot-btn.red { background: #ff5f57; }
.dot-btn.yellow { background: #febc2e; }
.dot-btn.green { background: #28c840; }
.mac-body { padding: 1.25rem 1.25rem 1.5rem; font-size: 0.9rem; line-height: 1.6; }
.mac-body p { margin: 0 0 0.8rem; }

@media (prefers-reduced-motion: reduce) {
  .slide.is-active .shirt { animation: none; }
  .js .pop { scale: 1; opacity: 1; transition: none; }
}

/* ---------- Small desktop strips (homepage above/below the carousel, About) ---------- */
.desktop.small { height: clamp(84px, 11vh, 110px); margin: 0; }
.desktop:not(.small) { height: 150px; }
.old-ig { width: 54px; height: 54px; margin-top: 4px; border-radius: 12px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); }
@media (max-width: 720px) {
  .desktop.small { height: 110px; }
}

/* ---------- Worn by: grid of photos with thin lines ---------- */
.page-intro .hand { display: block; margin-top: 1rem; }
.people-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
@media (max-width: 900px) { .people-grid { grid-template-columns: repeat(2, 1fr); } }
.person {
  margin: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(0.5rem, 1vw, 0.75rem);
  overflow: hidden;
}
.person .ph,
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: scale 0.6s ease; }
.person:hover img { scale: 1.03; }
.person figcaption { font-size: 0.7rem; color: var(--muted); padding-top: 0.5rem; }

/* ---------- Contact (part of the About page) ---------- */
#contact { border-top: 1px solid var(--line); scroll-margin-top: var(--header); }
.contact-title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(1.3rem, 3vw, 2rem);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.contact-intro { color: var(--muted); max-width: 52ch; margin: 0 0 2rem; }

/* hidden anti-spam field in the forms */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* red "Only a few left!" label */
.few-left {
  margin: 0.4rem 0 0;
  color: var(--marker);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.few-left[hidden] { display: none; }
.drop-head .few-left { margin: 0; }

.person-you .ph { text-align: center; padding: 1rem; text-transform: none; letter-spacing: 0; }
.person-you .hand { line-height: 1.3; }

/* ==========================================================
   About: Mac-style collage (ref: inspiration/about us.jpg)
   ========================================================== */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.js .pop { transition-delay: var(--pop-delay, 0s); }

.about-collage {
  position: relative;
  height: 1020px;
  margin-top: 2rem;
}
.about-collage > * { position: absolute; }

/* shared mac window */
.mac-win {
  background: #f4f4f4;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 22px 50px rgba(0, 0, 0, 0.18);
}
.mac-bar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  height: 48px;
  padding: 0 1rem;
  background: #ededed;
  border-bottom: 1px solid #d9d9d9;
  font-size: 0.85rem;
  font-weight: 600;
  color: #3a3a3a;
}
.lights { display: flex; gap: 7px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.mac-title { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-tools { display: flex; gap: 0.9rem; }
.tb-icon { width: 18px; height: 18px; fill: none; stroke: #6b6b6b; stroke-width: 1.6; stroke-linecap: round; flex: none; }

.win-preview { left: 17%; top: 70px; width: 50%; z-index: 1; }
.win-preview img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }

/* selected folder with blue label */
.folder-tile {
  left: 62%; top: 20px; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 0.9rem;
  text-decoration: none;
}
.folder-box {
  display: grid; place-items: center;
  width: 128px; height: 120px;
  background: #e9e9e9; border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}
.folder.big { width: 104px; height: 74px; margin-top: 14px; border-radius: 7px; }
.folder.big::before { top: -11px; width: 42px; height: 15px; border-radius: 7px 7px 0 0; }
.folder-name {
  padding: 0.2rem 0.6rem; border-radius: 6px;
  background: #1d63e4; color: var(--white);
  font-size: 1.05rem; font-weight: 500;
}
.folder-tile:hover .folder-box { background: #dedede; }

/* dark "Face Card" tile */
.face-tile {
  left: 3%; top: 330px; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.9rem;
  width: 210px; height: 210px; border-radius: 22px;
  background: #262626; color: #e9e9e9;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
  text-decoration: none; font-size: 1.3rem; font-weight: 500;
}
.face-tile svg { width: 86px; height: 86px; fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }

/* right-click menu */
.ctx-menu {
  left: 4%; top: 560px; z-index: 2;
  display: flex; flex-direction: column;
  width: 250px; padding: 0.5rem 0;
  background: rgba(238, 238, 238, 0.9);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 18px 40px rgba(0, 0, 0, 0.2);
  font-size: 0.85rem;
}
.ctx-menu a,
.ctx-menu span { padding: 0.22rem 0.9rem; color: var(--text); text-decoration: none; }
.ctx-menu a:hover { background: #1d63e4; color: var(--white); }
.ctx-menu .muted { color: #8a8a8a; }
.ctx-menu hr,
.share-sheet hr { border: 0; border-top: 1px solid rgba(0, 0, 0, 0.12); margin: 0.4rem 1.1rem; }
.tags { display: flex; gap: 0.55rem; padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.tags i { width: 13px; height: 13px; border-radius: 50%; background: var(--c); }

/* share sheet */
.share-sheet {
  left: 60%; top: 640px; z-index: 2;
  display: flex; flex-direction: column;
  width: 265px; padding: 0.7rem 0 0.55rem;
  background: rgba(238, 238, 238, 0.92);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 18px 40px rgba(0, 0, 0, 0.2);
}
.share-sheet::before {
  content: ""; position: absolute; top: -9px; left: 110px;
  border: 9px solid transparent; border-top: 0; border-bottom-color: rgba(238, 238, 238, 0.92);
}
.share-head { display: flex; align-items: center; gap: 0.8rem; padding: 0 1.1rem 0.4rem; }
.share-head img { width: 34px; height: 42px; object-fit: cover; border: 3px solid var(--white); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); }
.share-head b { display: block; font-size: 0.85rem; }
.share-head small { color: #6b6b6b; font-size: 0.72rem; }
.share-sheet a,
.share-sheet button {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.28rem 0.9rem;
  border: 0; background: none; font: inherit; font-size: 0.85rem; text-align: left;
  color: var(--text); text-decoration: none; cursor: pointer;
}
.share-sheet a:hover,
.share-sheet button:hover { background: #1d63e4; color: var(--white); }
.app {
  display: grid; place-items: center;
  width: 18px; height: 18px; border-radius: 5px;
  background: var(--c); color: var(--white);
  font-style: normal; font-size: 0.65rem; line-height: 1;
}

/* story window with the crossword */
.win-notes { max-width: 820px; margin: 0 auto; }
.notes-body { padding: clamp(1.25rem, 3vw, 2.25rem); background: var(--white); }
.notes-body .hand { display: block; margin-bottom: 0.5rem; }
.notes-body h2 {
  font-family: var(--font-title); font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.3rem, 3vw, 2rem); margin-bottom: 0.75rem;
}
.notes-body p { color: var(--muted); max-width: 52ch; }
.notes-body .crossword { margin-bottom: 0; }
#story { scroll-margin-top: calc(var(--header) + 1rem); margin-bottom: 2rem; }

/* smaller screens: the collage becomes a stack with small overlaps */
@media (max-width: 900px) {
  .about-collage { height: auto; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
  .about-collage > * { position: relative; left: auto; top: auto; }
  .win-preview { width: 100%; max-width: 520px; order: 1; }
  .folder-tile { order: 0; }
  .share-sheet { order: 3; width: 100%; max-width: 280px; margin-top: -3rem; align-self: flex-end; }
  .share-sheet::before { display: none; }
  .ctx-menu { order: 4; width: 100%; max-width: 250px; margin-top: -2rem; align-self: flex-start; }
}

/* everything floats a little, each at its own pace */
.float { animation: drift var(--float-dur, 6s) ease-in-out var(--float-delay, 0s) infinite; }
@keyframes drift {
  0%, 100% { translate: 0 0; }
  50% { translate: var(--float-x, 0px) var(--float-y, -9px); }
}
/* .reveal also uses translate while fading in; let the float take over once visible */
.js .reveal.float:not(.is-visible) { animation: none; }

/* ---------- Contact: Mail window + Contacts card ---------- */
.contact-mac { border-top: 1px solid var(--line); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.mail-win { display: flex; flex-direction: column; background: var(--white); }
.send-btn {
  display: grid; place-items: center;
  width: 34px; height: 30px; margin-left: auto;
  border: 0; border-radius: 7px; background: none; color: #6b6b6b; cursor: pointer;
}
.send-btn:hover { background: rgba(0, 0, 0, 0.07); color: #1d63e4; }
.send-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.mail-row {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.55rem 1.1rem;
  border-bottom: 1px solid #e6e6e6;
  font-size: 0.9rem;
}
.mail-row > span:first-child { color: #8a8a8a; min-width: 4.2rem; }
.mail-row input {
  flex: 1; min-width: 0;
  border: 0; outline: none; background: none;
  font: inherit; color: var(--text);
}
.to-chip { padding: 0.05rem 0.55rem; border-radius: 999px; background: #dfe9fb; color: #1d63e4; }
.mail-win textarea {
  min-height: 260px; resize: vertical;
  padding: 1rem 1.1rem;
  border: 0; outline: none;
  font: inherit; font-size: 0.95rem; line-height: 1.6; color: var(--text);
}
.mail-sent { padding: 2.5rem 1.25rem; text-align: center; color: var(--muted); }

.card-win { background: var(--white); }
.card-body { display: flex; flex-direction: column; align-items: center; padding: 1.75rem 1.5rem 1.5rem; text-align: center; }
.avatar {
  display: grid; place-items: center;
  width: 84px; height: 84px; margin-bottom: 0.8rem;
  border-radius: 50%; background: #ececec;
}
.avatar img { width: 58px; height: auto; }
.card-body b { font-size: 1.15rem; }
.card-body small { color: var(--muted); margin-bottom: 1.25rem; }
.card-body dl {
  display: grid; grid-template-columns: auto 1fr; gap: 0.55rem 1rem;
  width: 100%; margin: 0; padding-top: 1rem;
  border-top: 1px solid #e6e6e6;
  text-align: left; font-size: 0.88rem;
}
.card-body dt { color: #8a8a8a; text-align: right; }
.card-body dd { margin: 0; }
.card-body a,
.linkish { color: #1d63e4; text-decoration: none; }
.linkish { border: 0; background: none; padding: 0; font: inherit; cursor: pointer; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { .float { animation: none; } }

/* collection: the shirt links back to the homepage carousel */
.cell-link { display: block; width: 100%; height: 100%; }
.cell-link.mosaic-wrap { display: grid; }

/* About collage: draggable pieces */
.about-collage .drag { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.about-collage .drag.dragging { cursor: grabbing; }
.about-collage .drag.dragging.float { animation-play-state: paused; }
.about-collage .drag,
.about-collage .drag * { -webkit-user-drag: none; }

/* toolbar (i) button */
.tb-btn { display: grid; place-items: center; padding: 0; border: 0; background: none; cursor: pointer; }
.tb-btn:hover .tb-icon { stroke: #1d63e4; }

/* menu buttons look like the menu links */
.ctx-menu button {
  padding: 0.22rem 0.9rem;
  border: 0; background: none;
  font: inherit; text-align: left; color: var(--text);
  cursor: pointer;
}
.ctx-menu button:hover { background: #1d63e4; color: var(--white); }

/* ---------- TextEdit "About us" ---------- */
.textedit {
  left: 26%; top: 150px; z-index: 8;
  width: min(440px, 90vw);
  --gs-bg: #f4f4f4;
}
.textedit[hidden] { display: none; }
.textedit.is-open { animation: te-open 0.35s cubic-bezier(0.3, 1.4, 0.5, 1); }
@keyframes te-open { from { scale: 0.85; opacity: 0; } }
.light-close { width: 12px; height: 12px; padding: 0; border: 0; border-radius: 50%; background: #ff5f57; cursor: pointer; }
.light-close:hover { background: #e0443e; }
.te-toolbar {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.45rem 0.9rem;
  background: #ededed;
  border-bottom: 1px solid #d9d9d9;
  font-size: 0.75rem; color: #555;
}
.te-select { padding: 0.1rem 0.5rem; border: 1px solid #cfcfcf; border-radius: 5px; background: #fff; }
.te-select::after { content: " ▾"; color: #999; }
.te-sep { width: 1px; height: 16px; background: #cfcfcf; }
.te-page {
  padding: 1.5rem 1.5rem 2rem;
  background: var(--white);
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.92rem;
  line-height: 1.6;
  max-height: 60vh;
  overflow: auto;
}
.te-page h2 { font-family: inherit; font-size: 1.3rem; font-weight: 700; margin: 0 0 0.75rem; text-transform: none; }
.te-page p { margin: 0 0 0.75rem; color: #333; }
@media (max-width: 900px) {
  .textedit { position: fixed !important; left: 50% !important; top: 50% !important; translate: -50% -50%; width: calc(100% - 32px); z-index: 50; }
}

/* ---------- About: photo window + cutouts (plant, Sophie) as separate floating layers ---------- */
.photo-stack { left: 17%; top: 70px; width: 50%; z-index: 1; }
.photo-stack .win-preview { position: relative; left: auto; top: auto; width: 100%; }
.cutout {
  position: absolute;
  left: 0;
  top: 48px;               /* just below the window's title bar, lined up with the photo */
  width: 100%;
  aspect-ratio: 3 / 4;
  pointer-events: none;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.18));
}
@media (max-width: 900px) {
  .photo-stack { order: 1; width: 100%; max-width: 520px; }
}

/* cutouts always in front of the photo window (also on phones, where dragging is off) */
.cutout-plant { z-index: 3; }
.cutout-rene { z-index: 4; }
.cutout-sophie { z-index: 5; }
