/* BESSED DREST — overhaul. Blue and white, drawn like graph paper; Assistant as on the live Dawn theme. */

@font-face {
  font-family: Assistant;
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("../assets/assistant-400.woff2") format("woff2");
}
@font-face {
  font-family: Assistant;
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("../assets/assistant-700.woff2") format("woff2");
}

:root {
  --bg: #ffffff;
  --sky: #8ec2f0;        /* the blue: nav bar, graph lines */
  --sky-soft: #e9f4fe;   /* tint for bands and card backs */
  --sky-deep: #3382cc;   /* stronger blue: shadows, accents */
  --fg: #154a86;         /* all text is blue: deep enough to read on the sky bars and on white */
  --fg-muted: rgba(21, 74, 134, 0.8);
  --side-w: 24rem;       /* width of the logo title's corner cell in the top bar */
  --topbar-h: 5.2rem;    /* kept in step with the real bar height by js/shell.js */
  --line: rgba(61, 143, 214, 0.22);
  --font: Assistant, system-ui, sans-serif;

  /* wall knobs */
  --row-size: 4.6rem;   /* base glyph size per row; fonts scale off this */
  --row-gap: 3.8rem;    /* space between words in a row */
  --row-overlap: -0.8rem; /* rows tuck into each other a little, like the artwork */
}
@media (max-width: 749px) {
  :root { --row-size: 3rem; --row-gap: 2.2rem; --row-overlap: -0.4rem; }
}

* { box-sizing: border-box; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1.5rem/1.5 var(--font);
  letter-spacing: 0.06rem;
}
a { color: inherit; text-decoration: none; }
img { display: block; }

/* ---------- Shell: the top bar, ruled like graph paper ---------- */

/* The bar is sky blue, ruled in white, and its cells light up white on hover. */
.topbar { --rule: #fff; --lit: #fff; background: var(--sky); color: var(--fg); }
.topbar :focus-visible { outline: 2px solid var(--fg); outline-offset: -2px; }

/* one slim row: logo title | nav | icons */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: var(--side-w) auto 1fr;
  grid-template-areas: "logo nav icons";
  min-height: 5.2rem;
  border-bottom: 1px solid var(--rule);
}

/* the logo title sits in the top-left corner cell */
.topbar__logo {
  grid-area: logo;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  border-right: 1px solid var(--rule);
}

/* nav: one ruled cell per link, full height of the bar */
.topbar__nav { grid-area: nav; display: flex; }
.site-nav { display: flex; flex-wrap: nowrap; margin: 0; padding: 0; list-style: none; }
.site-nav li { display: flex; border-right: 1px solid var(--rule); }
.site-nav a {
  display: flex;
  align-items: center;
  padding: 0 2.2rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--fg);
  transition: background-color 0.15s;
}
.site-nav a:hover { background: var(--lit); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 #fff; }

/* icons: ruled cells at the far end */
.topbar__icons { grid-area: icons; justify-self: end; display: flex; }
.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5.2rem;
  border: 0; border-left: 1px solid var(--rule);
  background: none;
  color: var(--fg); cursor: pointer;
  transition: background-color 0.15s;
}
.icon-btn:hover { background: var(--lit); }
.icon-btn svg { width: 18px; height: 18px; }
/* Dawn's cart glyph sits inside a 40-unit box, so it needs double the size to match. */
.icon-btn svg.icon-cart { width: 36px; height: 36px; }

/* Page under the bar, full width, on graph paper.
   Fine lines every 2rem and a stronger line every fifth one. The ticker paints
   over it in plain white; everything else sits on the paper. */
.layout {
  --grid-minor: rgba(142, 194, 240, 0.2);    /* light enough to read text over */
  --grid-major: rgba(142, 194, 240, 0.42);   /* still weaker than the product grid's own rules */
  position: relative;
  z-index: 0;
  background-color: var(--bg);
  background-image:
    linear-gradient(to right,  var(--grid-major) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-major) 1px, transparent 1px),
    linear-gradient(to right,  var(--grid-minor) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-minor) 1px, transparent 1px);
  background-size: 10rem 10rem, 10rem 10rem, 2rem 2rem, 2rem 2rem;
}
/* the paper always reaches the bottom of the screen, even when the page is short;
   the footer then sits at the foot of it */
.layout { min-height: calc(100vh - var(--topbar-h)); min-height: calc(100dvh - var(--topbar-h)); }
.main {
  position: relative; z-index: 1; min-width: 0;
  container-type: inline-size; container-name: main;
  display: flex; flex-direction: column;
  min-height: calc(100vh - var(--topbar-h)); min-height: calc(100dvh - var(--topbar-h));
}
.main > .site-footer { margin-top: auto; }

/* ---------- Load-in: the graph paper materialises, then the page lands on it ---------- */

/* js/intro.js draws the paper on this full-screen canvas while it builds, then the CSS
   paper above takes over. The canvas sits under the bars and the content. */
.intro-canvas { position: fixed; left: 0; z-index: 0; pointer-events: none; }
.intro-grid .layout { background-image: none; }
/* content is held back, then each section lands in turn (a small overshoot, like the
   balls popping into the earth00 cube) */
/* the top bar waits too, so the paper builds across a clear screen; it fades in part-way through */
.topbar { transition: opacity 0.18s ease; }
.intro-bars .topbar { opacity: 0; pointer-events: none; }
.intro-hold .main > * { opacity: 0; transform: translateY(1.6rem) scale(0.985); }
.intro-land .main > * {
  transition: opacity 0.24s ease, transform 0.32s cubic-bezier(0.2, 1.5, 0.4, 1);
  transition-delay: calc(var(--land-i, 0) * 45ms);
}

/* ---------- Splash: the ticker fills the screen, then cross-fades into the site ---------- */

/* a plain white cover from the very first paint, until js/intro.js has the splash in place */
.splash-on body::before { content: ""; position: fixed; inset: 0; z-index: 40; background: var(--bg); }
.splash {
  position: fixed; inset: 0; z-index: 41;
  overflow: hidden;
  background: var(--bg);
  color: #121212;                       /* black lettering, like the ticker */
  transition: opacity 0.3s ease;        /* the lettering's fade; js sets the exact duration */
}
/* leaving: the white backing goes at once and only the lettering fades, so the grid
   building underneath is visible for the whole of its run */
.splash.is-leaving { background: transparent; opacity: 0; pointer-events: none; }
.splash.is-replay { animation: splash-in 0.25s ease both; }
@keyframes splash-in { from { opacity: 0; } to { opacity: 1; } }
/* the rows are the ticker's own rows, spread evenly down the screen; they appear once the fonts are in */
.splash__rows {
  display: flex; flex-direction: column; justify-content: space-between;
  height: 100%;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.splash.is-in .splash__rows { opacity: 1; }
.splash .wall__row { flex: none; margin-top: 0; }

/* ---------- Shell at middle widths (tablets, narrow windows) ---------- */

@media (max-width: 989px) {
  /* same single row, tightened so logo, nav and icons still fit side by side */
  :root { --side-w: 20rem; }
  .topbar { min-height: 4.8rem; }
  .topbar__logo { padding: 0 1.6rem; }
  .topbar .sway__mark { width: 15.6rem; }
  .site-nav a { padding: 0 1rem; font-size: 1.1rem; letter-spacing: 0.12em; }
  .icon-btn { width: 4.4rem; }
}

/* ---------- Shell on phones ---------- */

@media (max-width: 599px) {
  /* bar: logo and icon cells on top, the nav as a ruled row under them */
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "logo icons" "nav nav";
    min-height: 0;
  }
  .topbar__logo { height: 5rem; border-right: 0; }
  .topbar .sway__mark { width: min(19rem, 46vw); }
  .topbar__icons { height: 5rem; }
  .icon-btn { width: 5rem; }
  .topbar__nav { border-top: 1px solid var(--rule); }
  .site-nav a { height: 3.2rem; padding: 0 1.6rem; }
}
@media (max-width: 749px) { .small-hide { display: none; } }

/* ---------- The wordmark, swaying on its vertical axis like a hanging sign ---------- */

.sway {
  position: relative;
  display: block;
  padding: 0.5rem 0 0.9rem;
  perspective: 60rem;          /* how deep the turn looks */
}
.sway__turn {
  display: block;
  transform-style: preserve-3d;
  animation: sway-turn 5.5s ease-in-out infinite alternate;
  will-change: transform, filter;
}
/* the mark is the logo PNG used as a mask, so it can be white */
.sway__mark {
  display: block;
  width: 19rem;
  aspect-ratio: 1746 / 207;
  background: #fff;
  -webkit-mask: url("../assets/wordmark-mask.png") center / contain no-repeat;
          mask: url("../assets/wordmark-mask.png") center / contain no-repeat;
}
/* turn one way, then the other. The stacked 1px shadows give the letters an edge
   that flips sides with the turn; the last one is the soft cast shadow. */
@keyframes sway-turn {
  from {
    transform: rotateY(-36deg) rotateZ(-1.5deg);
    filter: drop-shadow(1px 1px 0 var(--sky-deep)) drop-shadow(1px 1px 0 var(--sky-deep)) drop-shadow(1px 1px 0 var(--sky-deep)) drop-shadow(7px 9px 6px rgba(14, 42, 71, 0.28));
  }
  to {
    transform: rotateY(36deg) rotateZ(1.5deg);
    filter: drop-shadow(-1px 1px 0 var(--sky-deep)) drop-shadow(-1px 1px 0 var(--sky-deep)) drop-shadow(-1px 1px 0 var(--sky-deep)) drop-shadow(-7px 9px 6px rgba(14, 42, 71, 0.28));
  }
}
/* ground shadow under the sign: widest face-on, narrow at each end of the turn */
.sway__shadow {
  position: absolute;
  left: 12%; right: 12%; bottom: 0.3rem;
  height: 0.8rem;
  border-radius: 50%;
  background: rgba(14, 42, 71, 0.3);
  filter: blur(5px);
  animation: sway-shadow 2.75s ease-in infinite alternate;
}
@keyframes sway-shadow {
  from { transform: scaleX(0.7); opacity: 0.55; }
  to   { transform: scaleX(1);   opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .sway__turn { animation: none; filter: drop-shadow(1px 1px 0 var(--sky-deep)) drop-shadow(1px 1px 0 var(--sky-deep)) drop-shadow(0 8px 6px rgba(14, 42, 71, 0.25)); }
  .sway__shadow { animation: none; }
}

/* ---------- The wall: the banner's lettering, now scrolling ---------- */

.wall {
  overflow: hidden;
  padding: 1.4rem 0 1.6rem;
  background: var(--bg);
  color: #121212;          /* the banner stays black on white, like the original artwork */
}
.wall__row {
  overflow: hidden;
  margin-top: var(--row-overlap);
  font-size: calc(var(--row-size) * var(--size, 1)); /* per-row size, set inline */
  /* soften the hard clip at both edges */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
}
.wall__row:first-child { margin-top: 0; }
.wall__track {
  display: flex;
  width: max-content;
  animation: wall-ltr var(--speed, 40s) linear infinite;
  will-change: transform;
}
.wall:hover .wall__track { animation-play-state: paused; }

.wall__group {
  display: flex;
  align-items: center;
  flex: none;
  gap: var(--row-gap);
  padding-right: var(--row-gap); /* group N ends exactly where group N+1 begins */
}
.wall__word {
  flex: none;
  white-space: nowrap;
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0.02em;
}
/* the real logo, tinted by using the PNG as a mask (--logo can be overridden inline) */
.wall__logo {
  flex: none;
  height: 0.72em;
  aspect-ratio: var(--logo-ratio, 1746 / 207);
  background: currentColor;
  -webkit-mask: var(--logo, url("../assets/wordmark-mask.png")) center / contain no-repeat;
          mask: var(--logo, url("../assets/wordmark-mask.png")) center / contain no-repeat;
}

/* every row runs left: 0 → -50%, which loops seamlessly on two identical groups */
@keyframes wall-ltr { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }

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

/* one class per lettering style; the scale evens out optical size between fonts */
.f-0 { font-family: 'Anton', sans-serif; text-transform: uppercase; font-size: 1.0em; }
.f-1 { font-family: 'Yellowtail', cursive; text-transform: uppercase; font-size: 1.1em; }
.f-2 { font-family: 'Pirata One', cursive; text-transform: uppercase; font-size: 1.05em; }
.f-3 { font-family: 'Bungee', cursive; text-transform: uppercase; font-size: 0.85em; }
.f-4 { font-family: 'Creepster', cursive; text-transform: uppercase; font-size: 1.05em; }
.f-5 { font-family: 'Permanent Marker', cursive; text-transform: uppercase; font-size: 0.95em; }
.f-6 { font-family: 'Rye', cursive; text-transform: uppercase; font-size: 0.9em; }
.f-7 { font-family: 'Tangerine', cursive; text-transform: uppercase; font-size: 1.55em; }
.f-8 { font-family: 'Bungee Outline', cursive; text-transform: uppercase; font-size: 0.85em; }
.f-9 { font-family: 'Abril Fatface', serif; text-transform: uppercase; font-size: 0.95em; }
.f-10 { font-family: 'Black Ops One', cursive; text-transform: uppercase; font-size: 0.9em; }
.f-11 { font-family: 'Rock Salt', cursive; text-transform: uppercase; font-size: 0.7em; }
.f-12 { font-family: 'Metal Mania', cursive; text-transform: uppercase; font-size: 1.05em; }
.f-13 { font-family: 'Press Start 2P', cursive; text-transform: uppercase; font-size: 0.55em; }
.f-14 { font-family: 'Titan One', cursive; text-transform: uppercase; font-size: 0.9em; }
.f-15 { font-family: 'Monoton', cursive; text-transform: uppercase; font-size: 0.9em; }
.f-16 { font-family: 'Caveat', cursive; text-transform: uppercase; font-size: 1.25em; }
.f-17 { font-family: 'UnifrakturMaguntia', cursive; text-transform: none; font-size: 1.05em; }
.f-18 { font-family: 'Bebas Neue', sans-serif; text-transform: uppercase; font-size: 1.1em; }
.f-19 { font-family: 'Kaushan Script', cursive; text-transform: uppercase; font-size: 1.0em; }
.f-20 { font-family: 'Playfair Display', serif; text-transform: uppercase; font-size: 0.9em; }
.f-21 { font-family: 'Luckiest Guy', cursive; text-transform: uppercase; font-size: 0.95em; }
.f-7  { font-weight: 700; }          /* Tangerine is hairline at 400 */
.f-20 { font-style: italic; }        /* Playfair, italic only */

/* ---------- Products: a ruled grid, like graph paper ---------- */

.shop { --rule: var(--sky); border-top: 1px solid var(--rule); overflow: hidden; }
.graph {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 1fr;           /* every row as tall as the product row, so empty squares match */
  margin: 0 -1px 0 0;            /* tuck the last column's right rule off the edge */
  padding: 0; list-style: none;
}
.graph__cell {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 1.4rem;
  min-width: 0;
}
/* The grid sizes itself to the width of the main area:
   2 squares across when narrow, then 3, then 4. Empty squares fill out two rows. */
.graph__cell--empty:nth-child(n+5) { display: none; }
@container main (min-width: 640px) {
  .graph { grid-template-columns: repeat(3, 1fr); }
  .graph__cell { padding: 2.4rem; }
  .graph__cell--empty:nth-child(-n+6) { display: block; }
}
@container main (min-width: 1100px) {
  .graph { grid-template-columns: repeat(4, 1fr); }
  .graph__cell--empty:nth-child(-n+8) { display: block; }
}

/* a product square: the shirt, then its title and price. The whole square is one link
   to the product's own page. */
.product { display: block; height: 100%; }
.card__media { background: var(--sky-soft); aspect-ratio: 1 / 1; }
.product__body { min-width: 0; padding-top: 1.4rem; }
.card__title {
  margin: 0 0 0.2rem; font-size: 1.4rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: underline transparent; text-underline-offset: 0.3rem; transition: text-decoration-color 0.15s;
}
.product--card:hover .card__title { text-decoration-color: var(--fg); }
.card__price { font-size: 1.4rem; color: var(--fg-muted); }

/* the shirt turns softly on its vertical axis all the time, a few degrees each way */
.flip { position: relative; perspective: 110rem; cursor: pointer; }
.flip__sway {
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  animation: shirt-sway 7s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes shirt-sway {
  from { transform: rotateY(-17deg) rotateZ(-0.6deg); }
  to   { transform: rotateY(17deg)  rotateZ(0.6deg); }
}
/* soft ground shadow: widest face-on, a little narrower at each end of the turn */
.flip__shadow {
  position: absolute;
  left: 20%; right: 20%; bottom: 9%;
  height: 4%;
  border-radius: 50%;
  background: rgba(14, 42, 71, 0.22);
  filter: blur(9px);
  animation: shirt-shadow 3.5s ease-in infinite alternate;
}
@keyframes shirt-shadow {
  from { transform: scaleX(0.82); opacity: 0.6; }
  to   { transform: scaleX(1);    opacity: 1; }
}

/* and it turns right over: front on one face, back on the other */
.flip__inner {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.flip__face {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; padding: 6%;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  filter: drop-shadow(0 0.8rem 0.8rem rgba(14, 42, 71, 0.14));
}
.flip__face--back { transform: rotateY(180deg); }
.flip.is-flipped .flip__inner { transform: rotateY(180deg); }
@media (hover: hover) {
  .flip:hover .flip__inner, .product--card:hover .flip__inner { transform: rotateY(180deg); }
  .flip.is-flipped:hover .flip__inner { transform: rotateY(0deg); }
}
@media (prefers-reduced-motion: reduce) { .flip__inner { transition: none; } .flip__sway, .flip__shadow { animation: none; } }

#shirt { scroll-margin-top: var(--topbar-h); }   /* clear the sticky bar when jumped to */

/* ---------- Catalog: photos from Instagram ---------- */

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* a photo square: the picture fills it, cropped to a tall frame */
.look { display: block; height: 100%; }
.look__media { height: 100%; aspect-ratio: 4 / 5; overflow: hidden; background: var(--sky-soft); }
.look__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; transition: transform 0.5s ease; }
.look:hover .look__media img { transform: scale(1.04); }
/* photos fade up as they scroll into view */
.reveal .look__media { opacity: 0; transform: translateY(1.6rem); transition: opacity 0.36s ease, transform 0.36s ease; transition-delay: calc(var(--i, 0) * 0.045s); }
.reveal.is-in .look__media { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal .look__media { opacity: 1; transform: none; transition: none; } .look__media img { transition: none; } }
.no-js .reveal .look__media { opacity: 1; transform: none; }

/* ---------- About page: the brand's own words beside a photo ---------- */

.about { --rule: var(--sky); display: grid; border-bottom: 1px solid var(--rule); }
.about__media { background: var(--sky-soft); }
.about__media img { width: 100%; height: 100%; max-height: 64rem; object-fit: cover; object-position: 50% 30%; }
.about__body { padding: 3.2rem 1.6rem 4rem; }
.about__label { margin: 0 0 1.8rem; font-size: 1.2rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sky-deep); }
.about__body p { margin: 0 0 1.4rem; max-width: 54ch; font-size: 1.6rem; line-height: 1.6; letter-spacing: 0.02em; color: var(--fg-muted); }
.about__body .about__lead { font-size: 2rem; line-height: 1.45; color: var(--fg); }
.about__body p:last-child { margin-bottom: 0; }
@container main (min-width: 720px) {
  .about { grid-template-columns: 1fr 1fr; }      /* the split sits on the page's centre line */
  .about__media { border-right: 1px solid var(--rule); }
  .about__media img { max-height: none; }       /* side by side, the photo fills its half top to bottom */
  .about__body { padding: 5rem; align-self: center; }
  .about__body .about__lead { font-size: 2.3rem; }
}

/* ---------- Contact page: a title and Instagram on one side, the form on the other ---------- */

.contact { --rule: var(--sky); display: grid; border-bottom: 1px solid var(--rule); }
.contact__side { padding: 3.2rem 1.6rem 2.4rem; background: var(--sky); }
.contact__title { margin: 0; font-size: 3.2rem; font-weight: 700; line-height: 1.1; letter-spacing: 0.08em; text-transform: uppercase; }
.contact__line { margin: 2.4rem 0 0; }
.contact__label { display: block; margin-bottom: 0.4rem; font-size: 1.1rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; }
.contact__link { font-size: 1.8rem; border-bottom: 2px solid #fff; padding-bottom: 0.2rem; transition: border-color 0.15s; }
.contact__link:hover { border-bottom-color: var(--fg); }

.contact__form { padding: 2.4rem 1.6rem 3.2rem; }
.field { margin-bottom: 1.8rem; }
.field label { display: block; margin-bottom: 0.6rem; font-size: 1.1rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.field input, .field textarea {
  display: block; width: 100%; max-width: 56rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--sky); border-radius: 0;
  background: var(--bg); color: var(--fg);
  font: 400 1.6rem/1.4 var(--font); letter-spacing: 0.02em;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { resize: vertical; min-height: 12rem; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--fg); box-shadow: 0 0 0 2px var(--sky); }
.field input.is-missing { border-color: #b3261e; }
.contact__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 2rem; }
.contact__send {
  min-width: 14rem; height: 4.8rem; padding: 0 2.4rem;
  border: 0; background: var(--sky); color: var(--fg); cursor: pointer;
  font: 700 1.3rem/1 var(--font); letter-spacing: 0.16em; text-transform: uppercase;
  transition: background-color 0.15s, color 0.15s;
}
.contact__send:hover, .contact__send:focus-visible { background: var(--fg); color: #fff; outline: 0; }
.contact__status { margin: 0; font-size: 1.4rem; color: var(--fg-muted); }
@container main (min-width: 720px) {
  .contact { grid-template-columns: 1fr 1fr; }     /* the split sits on the page's centre line */
  .contact__side { padding: 5rem; border-right: 1px solid var(--rule); }
  .contact__title { font-size: 4.4rem; }
  .contact__form { padding: 5rem; }
}

/* ---------- Product page: the shirt on one side, its words on the other ---------- */

.pdp { --rule: var(--sky); display: grid; border-bottom: 1px solid var(--rule); }
.pdp__media { padding: 1.6rem; }
.pdp__media .card__media { max-width: 62rem; margin: 0 auto; }
.pdp__body { padding: 2.4rem 1.6rem 4rem; }
.pdp__back {
  display: inline-block; padding-bottom: 0.3rem; border-bottom: 2px solid var(--sky);
  font-size: 1.2rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  transition: border-color 0.15s;
}
.pdp__back:hover { border-bottom-color: var(--sky-deep); }
.pdp .card__title { margin: 2.4rem 0 0.4rem; font-size: 2.6rem; line-height: 1.15; text-decoration: none; }
.pdp .card__price { font-size: 1.8rem; }
.pdp__label { margin: 3.2rem 0 1rem; font-size: 1.2rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sky-deep); }
.product__desc { margin: 0; max-width: 52ch; font-size: 1.6rem; line-height: 1.6; letter-spacing: 0.02em; color: var(--fg-muted); }
@container main (min-width: 720px) {
  .pdp { grid-template-columns: 1fr 1fr; }      /* the split sits on the page's centre line */
  .pdp__media { padding: 4rem; border-right: 1px solid var(--rule); }
  .pdp__body { padding: 5rem; align-self: center; }
  .pdp .card__title { font-size: 3.2rem; }
}

/* ---------- Pulse ring: a point of light traces the image edge with a long tail each side ---------- */

@property --pulse-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
.card__media { position: relative; overflow: visible; }
.card__media::before,
.card__media::after {
  content: "";
  position: absolute;
  inset: 0;                  /* ring traces the edge of the photo itself */
  padding: 1px;              /* line thickness: the outermost pixel of the photo */
  pointer-events: none;
  background: conic-gradient(
    from var(--pulse-angle),
    transparent 0deg,
    rgba(51, 130, 204, 0.55) 45deg,
    var(--sky-deep) 65deg,         /* the head, a tail fading out on each side */
    rgba(51, 130, 204, 0.55) 85deg,
    transparent 140deg,
    transparent 360deg
  );
  /* keep only the ring: paint everything, then cut out the content box */
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  animation: pulse-ring 4.5s linear infinite;
  animation-play-state: paused;
}
.card__media::before {
  padding: 4px;              /* tight halo just inside the line */
  filter: blur(2px);
}
.reveal.is-in .card__media::before,
.reveal.is-in .card__media::after {
  opacity: 1;
  transition: opacity 0.4s ease 0.5s;
  animation-play-state: running;
  animation-delay: calc(var(--i, 0) * -0.9s); /* cards in a row start at different points */
}
.reveal.is-in .card__media::before { opacity: 0.5; } /* halo stays soft */
@keyframes pulse-ring { to { --pulse-angle: 360deg; } }

@media (prefers-reduced-motion: reduce) {
  .card__media::after { display: none; }
}

/* ---------- Product reveal: fade in on scroll, then print title and price ---------- */

/* cards further along a row wait a little longer (--i set per card) */
.reveal .card__media {
  opacity: 0;
  transform: translateY(1.6rem);
  transition: opacity 0.4s ease, transform 0.4s ease;
  transition-delay: calc(var(--i, 0) * 0.07s);
}
.reveal.is-in .card__media { opacity: 1; transform: none; }

/* title and price "print" left to right once the image has landed */
.print { display: inline-block; }
.reveal .print {
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.15s linear;
}
.reveal.is-in .card__title .print { opacity: 1; clip-path: inset(0 0 0 0); transition-delay: calc(0.3s + var(--i, 0) * 0.07s); }
.reveal.is-in .card__price .print { opacity: 1; clip-path: inset(0 0 0 0); transition-delay: calc(0.42s + var(--i, 0) * 0.07s); }
/* the description follows the price */
.reveal .product__desc { opacity: 0; transition: opacity 0.35s ease; }
.reveal.is-in .product__desc { opacity: 1; transition-delay: calc(0.55s + var(--i, 0) * 0.07s); }

@media (prefers-reduced-motion: reduce) {
  .reveal .card__media, .reveal .print, .reveal .product__desc { opacity: 1; transform: none; clip-path: none; transition: none; }
}
/* no JS: show everything */
.no-js .reveal .card__media, .no-js .reveal .print, .no-js .reveal .product__desc { opacity: 1; transform: none; clip-path: none; }

.site-footer { padding: 3rem 1.6rem; font-size: 1.2rem; color: var(--fg-muted); text-align: center; }
