/* Pilcrow Rounded by the Indian Type Foundry (Fontshare), hosted with the site */
@font-face {
  font-family: "Pilcrow Rounded";
  src: url("../assets/fonts/pilcrow-rounded-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Pilcrow Rounded";
  src: url("../assets/fonts/pilcrow-rounded-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Pilcrow Rounded";
  src: url("../assets/fonts/pilcrow-rounded-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* TalkTheTalk: colours taken from the logo. Ink is the logo's outline. */
:root {
  --ground: #f8f3ed;
  --cream-deep: #efe6d8;
  --ink: #1d1c17;
  --ink-soft: #4a463c;
  --yellow: #f9bd29;
  --orange: #f07b1d;
  --teal: #29ad85;
  --green: #99b731;
  --whatsapp: #25d366;

  --font: "Pilcrow Rounded", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;

  --step-small: 0.9375rem;
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --step-sub: clamp(1.5rem, 1rem + 1.6vw, 2.375rem);
  --step-head: clamp(2.25rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(4rem, 10vw, 10.5rem);

  --margin: clamp(20px, 3.4vw, 48px);
  --gap: clamp(16px, 2vw, 28px);
  --section: clamp(104px, 13vw, 200px);
  --radius: 22px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2 {
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
}
h2 { font-size: var(--step-head); }
h3 { font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }

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

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--yellow); color: var(--ink); }

/* Buttons: one shape, fully round */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  border-radius: 999px;
  background: var(--ink); color: var(--ground);
  font-weight: 500; text-decoration: none;
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
}
.btn:hover { background: #000; }
.btn:active { transform: scale(0.97); }
.btn-accent { background: var(--yellow); color: var(--ink); }
.btn-accent:hover { background: #ffcb45; }
.btn-small { min-height: 44px; padding: 0 20px; }

/* ---------- Hero: dark ground, folder stack ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  background: var(--ink);
  color: var(--ground);
  overflow: hidden;
  display: flex; flex-direction: column;
}

.topbar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 20px var(--margin) 0;
}
.topbar-link { font-size: var(--step-small); text-decoration: none; opacity: 0.85; transition: opacity 160ms ease; }
.topbar-link:hover { opacity: 1; }
.topbar-cta { justify-self: end; }
.topbar-logo img { width: 64px; height: 64px; transition: transform 300ms var(--ease-out); }
.topbar-logo:hover img { transform: rotate(-6deg); }

.hero-text { text-align: center; padding: clamp(40px, 7vh, 80px) var(--margin) 0; }
.hero h1 { font-size: var(--step-display); line-height: 0.9; }
.hero-lead {
  max-width: 46ch; margin: 36px auto 0;
  font-size: var(--step-lead);
  color: var(--ground);
}

.folders {
  position: relative;
  flex: 1;
  min-height: max(46svh, 580px);
  margin: 56px auto 0;
  width: 86%;
}
.folder {
  --tab-w: clamp(160px, 16vw, 220px);
  position: absolute; left: 0; right: 0; bottom: 0;
  border-radius: 0 var(--radius) 0 0;
  text-decoration: none; color: var(--ink);
}
/* The tab overlaps its folder by 12px so no seam shows, even while it lifts */
.folder-tab {
  position: absolute; top: -40px; height: 52px;
  width: var(--tab-w);
  display: flex; align-items: flex-start; justify-content: center; padding-top: 9px;
  background: inherit; color: var(--ink);
  font-size: var(--step-body); font-weight: 500; text-decoration: none;
  clip-path: polygon(12% 0, 88% 0, 100% 100%, 0 100%);
  border-radius: 10px 10px 0 0;
  transition: transform 240ms var(--ease-out);
}
.folder:hover .folder-tab, .folder-tab:hover, .folder-tab:focus-visible { transform: translateY(-6px); }
.f1 { top: 40px;  background: var(--green); }
.f2 { top: 96px;  background: var(--teal); }
.f3 { top: 152px; background: var(--orange); }
.f4 { top: 208px; background: var(--yellow); border-radius: 0; }
.f1 .folder-tab { left: 42%; }
.f2 .folder-tab { left: 28%; }
.f3 .folder-tab { left: 14%; }
.f4 .folder-tab { left: 0; }

.folder-body { padding: 36px 32px; max-width: 52%; }
.folder-note { font-size: var(--step-body); max-width: 36ch; margin-bottom: 24px; }

/* Photos tucked into the front folder, like prints in a file */
.prints { position: absolute; right: 3%; top: -36px; width: 44%; height: 420px; }
.print {
  position: absolute; top: 0;
  width: 40%; aspect-ratio: 3 / 4; height: auto; object-fit: cover;
  padding: 8px; background: var(--ground); border-radius: 6px;
  transition: transform 400ms var(--ease-out);
}
.pr1 { left: 0;   transform: rotate(-7deg) translateY(36px); }
.pr2 { left: 30%; transform: rotate(3deg); z-index: 1; }
.pr3 { left: 60%; transform: rotate(-2deg) translateY(54px); aspect-ratio: 1; }
.print:hover { transform: rotate(0) translateY(-14px); z-index: 2; }

/* ---------- Approach: yellow field carried out of the front folder ---------- */
.approach {
  background: var(--yellow);
  padding: clamp(72px, 9vw, 140px) var(--margin) var(--section);
}
.statement {
  max-width: 38ch; margin: 0 auto;
  text-align: center;
  font-size: min(var(--step-sub), 2.25rem);
  font-weight: 500; line-height: 1.18; letter-spacing: -0.015em;
}
.thumb {
  display: inline-block; width: 1.1em; height: 0.95em;
  vertical-align: -0.12em; margin: 0 0.12em;
  clip-path: url(#bubble); background: var(--ink);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: screen; opacity: 0.9; }

.ps {
  margin-top: var(--section);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap);
}
.ps-head { grid-column: 1 / 6; }
.ps-head p { margin-top: 20px; max-width: 34ch; }
.ps-diagram { grid-column: 1 / -1; margin-top: 56px; }
.diag { width: 100%; height: auto; display: block; fill: var(--ink); }
.diag-v { display: none; }
.d-a { fill: #fff3cc; }
.d-b { fill: var(--orange); }
.d-c { fill: var(--ink); opacity: 0.55; }
.d-d { fill: var(--ink); }
.ps-steps {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap);
  margin-top: 40px;
}
.ps-steps h3 { font-size: var(--step-lead); }
.ps-steps p { margin-top: 8px; max-width: 32ch; }

/* ---------- Who we teach: specimens on colour tiles ---------- */
.who {
  padding: var(--section) var(--margin);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap);
}
.who-head { grid-column: 1 / 4; }
.who-head p { margin-top: 20px; max-width: 30ch; }
.who-result { font-weight: 500; }
.who-result:empty { display: none; }
.who-result a { color: var(--ink); }

.tiles {
  grid-column: 4 / -1;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  row-gap: 32px;
}
.tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 0; border: 0; background: none; text-align: left;
  font: inherit; color: inherit; cursor: pointer;
}
.tile-wide { grid-column: span 2; }
.tile-img {
  width: 100%; aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  display: grid; place-items: center; overflow: hidden;
  margin-bottom: 12px;
  transition: transform 220ms var(--ease-out);
}
.tile-wide .tile-img { aspect-ratio: 8 / 5; }
.tile-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 600ms var(--ease-out);
}
/* Each tile keeps one brand colour, carried by the bubble beside its name */
.tile:nth-child(1) { --c: var(--teal); }
.tile:nth-child(2) { --c: var(--yellow); }
.tile:nth-child(3) { --c: var(--orange); }
.tile:nth-child(4) { --c: var(--green); }
.tile:nth-child(5) { --c: var(--teal); }
.tile-name { display: flex; align-items: center; gap: 10px; }
.tile-name::before {
  content: ""; flex: none; width: 18px; height: 18px;
  background: var(--c); clip-path: url(#bubble);
}
.tile-fact { padding-left: 28px; }
.t-yellow { background: var(--yellow); }
.t-orange { background: var(--orange); }
.t-teal { background: var(--teal); }
.t-green { background: var(--green); }
.tile-name { font-size: var(--step-lead); font-weight: 500; line-height: 1.2; }
.tile-fact { font-size: var(--step-small); color: var(--ink-soft); max-width: 30ch; }
.tile:hover .tile-img img { transform: scale(1.06); }
.tile:active .tile-img { transform: scale(0.98); }
.tile[aria-pressed="true"] .tile-img { outline: 4px solid var(--ink); outline-offset: 4px; }

/* ---------- Programmes: index with preview ---------- */
.programmes {
  padding: var(--section) var(--margin);
  background: var(--cream-deep);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap);
}
.prog-list { grid-column: 1 / 9; }
.prog-preview { grid-column: 9 / -1; }
.preview-wrap {
  --c: var(--yellow);
  position: sticky; top: 12vh;
  width: 100%; aspect-ratio: 1;
}
/* A brand-coloured bubble sits behind the photo, offset so a crescent of colour shows */
.preview-back {
  position: absolute; inset: 0; width: 100%; height: 100%;
  fill: var(--c); transform: translate(5%, 4%);
  transition: fill 300ms ease;
}
.preview-frame {
  position: absolute; inset: 0;
  clip-path: url(#bubble);
  background: var(--ink);
}
.preview-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06);
  transition: opacity 320ms ease, transform 900ms var(--ease-out);
}
.preview-img.is-on { opacity: 1; transform: none; }

.cat { margin-top: 96px; transition: opacity 240ms ease; }
.prog-list h2 + .cat { margin-top: 64px; }
.cat-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
}
.cat-head h3 { font-size: var(--step-sub); letter-spacing: -0.03em; line-height: 1; }
.cat-count { font-size: var(--step-small); white-space: nowrap; color: var(--ink-soft); }
.cat-desc { margin-top: 16px; max-width: 52ch; }
.cat-thumb { display: none; }
.items {
  margin-top: 28px;
  columns: 2; column-gap: 64px;
}
.items li {
  display: flex; align-items: baseline; gap: 14px;
  break-inside: avoid; padding-bottom: 14px;
  font-weight: 500;
}
.items li::before {
  content: ""; flex: none;
  width: 16px; height: 16px; transform: translateY(2px);
  background: var(--c);
  clip-path: url(#bubble);
}
.programmes.is-filtered .cat:not(.is-fit) { opacity: 0.4; }
.cat.is-active .cat-head h3 { color: var(--ink); }
.prog-list:hover .cat:not(:hover) { opacity: 0.55; }
.programmes.is-filtered .prog-list:hover .cat:not(:hover) { opacity: 0.4; }

/* ---------- About: dark inset panel, bubble portrait ---------- */
.about { padding: 20px 20px 0; }
.about-panel {
  position: relative;
  min-height: 100svh;
  background: var(--ink); color: var(--ground);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr;
  padding: 56px clamp(28px, 4vw, 56px) 0;
}
.about-left { display: flex; flex-direction: column; }
.about h2 { font-size: var(--step-head); }
.about-photo {
  margin-top: auto; padding-top: 56px;
  width: min(38vw, 560px);
  transform: translateY(20%);
}
.about-photo img {
  width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: center 30%;
  clip-path: url(#bubble);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.06); } }
.about-right {
  padding-left: 26%;
  display: flex; flex-direction: column; gap: 64px; align-items: flex-start;
}
.about-right h3 { font-size: var(--step-lead); color: var(--yellow); }
.about-right p { margin-top: 10px; max-width: 34ch; }
.about-right .btn { margin-top: -24px; }

/* ---------- FAQ: tabbed index cards ---------- */
.faq {
  padding: var(--section) var(--margin) 0;
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap);
}
.faq h2 { grid-column: 3 / 11; }
.cards { grid-column: 3 / 11; margin-top: 88px; }
.card:last-child { padding-bottom: 6px; }
.card {
  position: relative; z-index: var(--i);
  background: var(--c);
  border-radius: 0 var(--radius) var(--radius) var(--radius);
  margin-top: -6px;
  padding-bottom: 46px;
}
.card:first-child { margin-top: 0; }
.card h3 { font: inherit; }
.card-head {
  display: block; width: 100%; text-align: left;
  padding: 28px 32px 22px; min-height: 82px;
  border: 0; background: none; font: inherit; color: var(--ink); cursor: pointer;
}
.card-tab {
  position: absolute; top: -40px; left: calc(var(--i) * min(150px, 13%));
  width: 200px; height: 41px;
  display: flex; align-items: center; justify-content: center;
  background: var(--c); font-size: var(--step-small); font-weight: 500;
  clip-path: polygon(12% 0, 88% 0, 100% 100%, 0 100%);
  border-radius: 10px 10px 0 0;
  transition: transform 200ms var(--ease-out);
}
.card-head:hover .card-tab { transform: translateY(-4px); }
.card-q { display: block; font-size: var(--step-lead); font-weight: 500; }
.card-a { padding: 0 32px 26px; }
.card-a p { max-width: 50ch; font-size: var(--step-body); }
.js .card-a:not([hidden]) { animation: open 280ms var(--ease-out); }
@keyframes open { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Enquiry: the coupon ---------- */
.enquiry { padding: var(--section) var(--margin); display: grid; grid-template-columns: repeat(12, 1fr); overflow-x: clip; }
.coupon {
  --notch: 28px;
  grid-column: 2 / 12;
  position: relative;
  display: grid; grid-template-columns: 46% 54%;
  background: var(--green);
  border-radius: var(--radius);
}
.coupon::before, .coupon::after {
  content: ""; position: absolute; left: 46%;
  width: var(--notch); height: var(--notch); margin-left: calc(var(--notch) / -2);
  border-radius: 50%; background: var(--ground);
}
.coupon::before { top: calc(var(--notch) / -2); }
.coupon::after { bottom: calc(var(--notch) / -2); }
.coupon-left {
  padding: 48px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
}
.coupon h2 { font-size: var(--step-sub); max-width: 10ch; }
.coupon-left p { max-width: 32ch; }
.coupon-form {
  padding: 48px;
  border-left: 5px dotted var(--ground);
  display: flex; flex-direction: column; gap: 10px;
}
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px;
  padding: 14px 18px;
  border: 0; border-radius: 14px;
  background: rgba(255, 255, 255, 0.45);
  font: inherit; font-size: var(--step-small); color: var(--ink);
  transition: background-color 160ms ease;
}
.field textarea { resize: vertical; min-height: 76px; }
.field select { appearance: none; cursor: pointer; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-soft); opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus { background: rgba(255, 255, 255, 0.75); outline: 3px solid var(--ink); outline-offset: 0; }
.submit {
  min-height: 56px; margin-top: 6px;
  border: 0; border-radius: 999px;
  background: var(--ink); color: var(--ground);
  font: inherit; font-weight: 500; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
}
.submit:hover { background: #000; }
.submit:active { transform: scale(0.98); }
.field [aria-invalid="true"] { background: rgba(255, 255, 255, 0.75); box-shadow: inset 0 0 0 3px var(--orange); }
.form-error { color: var(--ink); font-weight: 500; }
.form-note { font-size: var(--step-small); }
.field-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer: the mark, built large ---------- */
.footer {
  background: var(--ink); color: var(--ground);
  padding: clamp(64px, 8vw, 120px) var(--margin) 96px;
}
.mark { display: block; text-decoration: none; }
.mark-svg { display: block; width: 100%; height: auto; }
.mark-svg text { fill: var(--ink); font-family: var(--font); font-weight: 700; font-size: 120px; }
.mark-svg rect { transform-box: fill-box; transform-origin: bottom; transition: transform 320ms var(--ease-out); }
.mark:hover rect:nth-of-type(odd) { transform: scaleY(0.92); }
.mark-phone { display: none; }

.footer-cols {
  margin-top: 56px;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--gap);
}
.footer-cols h2 { font-size: var(--step-small); letter-spacing: 0; text-transform: none; color: var(--yellow); font-weight: 500; line-height: 1.4; }
.footer-cols ul, .footer-cols p { margin-top: 10px; font-size: var(--step-small); }
.footer-cols li + li { margin-top: 6px; }
.footer-cols a { text-decoration: none; opacity: 0.85; transition: opacity 160ms ease; }
.footer-cols a:hover { opacity: 1; text-decoration: underline; }
.footer-last {
  margin-top: 64px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: var(--step-small);
}
.footer .btn-small { background: var(--yellow); color: var(--ink); }
.legal-links { display: flex; gap: 20px; margin-left: auto; }
.legal-links a { opacity: 0.85; }
.legal-links a:hover { opacity: 1; }
.credits { margin-top: 24px; font-size: var(--step-small); opacity: 0.7; max-width: 75ch; }

/* ---------- Floating WhatsApp button ---------- */
.whatsapp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  /* Ink glyph: white on WhatsApp green is under 2:1 */
  background: var(--whatsapp); color: var(--ink);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25); /* taste-skill-ignore: floats over the page */
  transition: transform 200ms var(--ease-out);
}
.whatsapp-float:hover { transform: scale(1.06); }
.whatsapp-float:active { transform: scale(0.95); }

/* ---------- Entrances ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; transition: opacity 300ms ease; }
  .about-photo img { animation: none; }
  .reel-track { animation: none; }
  .book, .book *, .preloader-word { animation-duration: 1ms !important; animation-delay: 0ms !important; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* ---------- From our classes ---------- */
.moments {
  padding: var(--section) var(--margin) 0;
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap);
  align-items: start;
}
.moment-poster { grid-column: 1 / 8; }
.moment-poster img, .moment-photo img { width: 100%; height: auto; border-radius: var(--radius); }
.moments figcaption { margin-top: 12px; font-size: var(--step-small); color: var(--ink-soft); max-width: 46ch; }
.moment-side { grid-column: 9 / -1; padding-top: 24px; }
.moment-side > p { margin-top: 20px; max-width: 30ch; }
.moment-photo { margin-top: 48px; }
.moment-photo img { aspect-ratio: 4 / 5; object-fit: cover; }

/* ---------- Show & Tell: a pile of prints on a dark desk, two photo ribbons ---------- */
.show {
  padding: var(--section) 20px clamp(120px, 13vw, 190px);
  /* The ribbons run past the screen edges; clip them so phones don't widen the page */
  overflow-x: clip;
}
.show-panel {
  position: relative;
  background: var(--ink); color: var(--ground);
  border-radius: var(--radius);
  padding: clamp(40px, 5vw, 72px) clamp(24px, 4vw, 56px) clamp(120px, 12vw, 180px);
  /* Faint dot grid, like a cutting mat */
  background-image: radial-gradient(rgba(248, 243, 237, 0.09) 1.2px, transparent 1.4px);
  background-size: 28px 28px;
}
.show-head {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px 48px;
}
.show h2 { font-size: var(--step-display); line-height: 0.88; }
.show-side { max-width: 40ch; }
.show-side p { font-size: var(--step-body); }
.show-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.btn-line {
  background: transparent; color: var(--ground);
  box-shadow: inset 0 0 0 2px rgba(248, 243, 237, 0.4); /* taste-skill-ignore: outline button, not a shadow */
  border: 0; font: inherit; font-weight: 500; cursor: pointer;
}
.btn-line:hover { background: rgba(248, 243, 237, 0.1); }
.btn-line[aria-pressed="true"] { background: var(--ground); color: var(--ink); }
.show-tools .btn-accent { border: 0; font: inherit; font-weight: 500; cursor: pointer; }

/* Without JS the prints sit in a plain grid */
.board {
  margin-top: 56px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px;
}
.snap {
  --pw: clamp(150px, 15vw, 232px);
  position: relative; display: block; padding: 9px 9px 0;
  border: 0; border-radius: 6px;
  background: var(--ground); color: var(--ink);
  font: inherit; text-align: left; cursor: zoom-in;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45); /* taste-skill-ignore: prints lie on a desk */
}
.snap img {
  width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 3px; pointer-events: none; user-select: none;
}
.snap-tall img { aspect-ratio: 3 / 4; }
/* Laid out in rows, every print takes the same shape */
.board.is-tidy .snap-tall img { aspect-ratio: 4 / 3; }
.snap-cap {
  display: block; padding: 10px 2px 13px;
  font-size: 0.875rem; font-weight: 500; line-height: 1.25;
}
/* A strip of tape on every other print */
.snap:nth-child(3n+1)::before, .snap:nth-child(3n+2)::before {
  content: ""; position: absolute; top: -10px; left: 50%;
  width: 72px; height: 22px; margin-left: -36px;
  background: rgba(249, 189, 41, 0.78); rotate: -4deg; border-radius: 2px;
}
.snap:nth-child(3n+2)::before { background: rgba(41, 173, 133, 0.75); rotate: 5deg; left: 30%; }

.js .board {
  display: block; position: relative;
  height: clamp(600px, 52vw, 780px);
}
.js .snap {
  position: absolute; left: 0; top: 0; width: var(--pw);
  translate: 0 0;
  transition: translate 900ms var(--ease-out), rotate 700ms var(--ease-out), scale 220ms var(--ease-out);
  touch-action: manipulation;
}
@media (hover: hover) and (pointer: fine) {
  .js .snap { cursor: grab; }
  .js .snap:hover { scale: 1.04; }
}
.js .snap.is-held {
  cursor: grabbing; scale: 1.08; rotate: 0deg !important;
  transition: rotate 200ms var(--ease-out), scale 200ms var(--ease-out);
}

/* Two ribbons of photos cross the bottom edge of the panel, running opposite ways */
.reel {
  position: relative; z-index: 1;
  margin: clamp(-150px, -11vw, -96px) -40px 0;
  display: grid;
  pointer-events: none;
}
.reel-row {
  grid-area: 1 / 1;
  padding: 12px 0;
  overflow: hidden;
  rotate: -2.5deg;
  background: var(--yellow);
  pointer-events: auto;
}
.reel-row + .reel-row {
  rotate: 2deg; translate: 0 clamp(96px, 11vw, 160px);
  background: var(--teal);
}
.reel-track {
  display: flex; align-items: center; gap: 18px;
  width: max-content;
  animation: reel 70s linear infinite;
}
.reel-row + .reel-row .reel-track { animation-direction: reverse; animation-duration: 80s; }
.reel-row:hover .reel-track { animation-play-state: paused; }
@keyframes reel { to { transform: translateX(-50%); } }
.reel-img {
  height: clamp(96px, 10vw, 150px); width: auto; aspect-ratio: 4 / 3;
  object-fit: cover; border-radius: 12px;
}
.reel-bubble { aspect-ratio: 1; border-radius: 0; clip-path: url(#bubble); }
.reel-dot { width: 22px; height: 22px; flex: none; fill: var(--ink); }

/* Viewer: one photo, large */
.viewer {
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: transparent; color: var(--ground);
  overflow: hidden;
}
.viewer::backdrop { background: rgba(29, 28, 23, 0.92); }
.viewer[open] { display: grid; place-items: center; animation: viewer-in 320ms var(--ease-out); }
@keyframes viewer-in { from { opacity: 0; transform: scale(0.97); } }
.viewer-fig { width: 100%; display: grid; justify-items: center; gap: 16px; padding: 72px 96px 32px; }
.viewer-img {
  max-width: min(1100px, 100%); max-height: calc(100svh - 190px); min-width: 0;
  width: auto; height: auto; border-radius: 14px;
}
.viewer figcaption { display: flex; gap: 20px; align-items: baseline; font-size: var(--step-body); font-weight: 500; }
.viewer-count { font-size: var(--step-small); opacity: 0.6; font-variant-numeric: tabular-nums; }
.viewer-btn {
  position: fixed; top: 50%; translate: 0 -50%;
  width: 56px; height: 56px; border: 0; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ground); color: var(--ink); cursor: pointer;
  transition: scale 160ms var(--ease-out), background-color 160ms ease;
}
.viewer-btn:hover { background: var(--yellow); }
.viewer-btn:active { scale: 0.94; }
.viewer-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.viewer-prev { left: 24px; }
.viewer-next { right: 24px; }
.viewer-close { top: 24px; right: 24px; translate: none; }

/* ---------- Preloader: a book opens, then the curtain lifts ---------- */
.preloader { display: none; }
.js .preloader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; align-content: center; gap: 40px;
  background: var(--ink); color: var(--ground);
  transition: transform 1000ms cubic-bezier(0.76, 0, 0.24, 1);
}
.js.is-loading { overflow: hidden; }
.preloader.is-done { transform: translateY(-100%); }
.preloader.is-done .book-stage { transform: translateY(-60px); opacity: 0; transition: transform 700ms var(--ease-out), opacity 500ms ease; }

.book-stage { animation: book-in 600ms var(--ease-out) both; }
@keyframes book-in { from { opacity: 0; transform: translateY(24px); } }

.book {
  --bw: min(520px, 88vw);
  position: relative; width: var(--bw); height: calc(var(--bw) * 0.69);
  perspective: 1400px; transform-style: preserve-3d;
  animation: book-center 900ms 300ms cubic-bezier(0.65, 0, 0.35, 1) both;
}
@keyframes book-center { from { transform: translateX(-25%); } to { transform: none; } }

.book-left, .book-right, .page, .cover {
  position: absolute; top: 0; height: 100%; width: 50%;
}
.book-left { left: 0; background: #e3a516; border-radius: 18px 3px 3px 18px; opacity: 0; animation: show 1ms 700ms forwards; }
.book-right {
  left: 50%; background: var(--ground); border-radius: 3px 18px 18px 3px;
  display: flex; flex-direction: column; align-items: center; padding: calc(var(--bw) * 0.08) calc(var(--bw) * 0.06) 0; gap: calc(var(--bw) * 0.03);
}
@keyframes show { to { opacity: 1; } }

.page, .cover { left: 50%; transform-origin: left center; }
.page { background: var(--ground); border-radius: 3px 18px 18px 3px; }
.p1 { background: #f1e9dd; animation: flip 700ms 750ms cubic-bezier(0.45, 0, 0.2, 1) forwards; }
.p2 { animation: flip 700ms 900ms cubic-bezier(0.45, 0, 0.2, 1) forwards; }
.p3 { background: #f1e9dd; animation: flip 700ms 1050ms cubic-bezier(0.45, 0, 0.2, 1) forwards; }
.cover {
  z-index: 5; background: var(--yellow); border-radius: 3px 18px 18px 3px;
  display: grid; place-items: center;
  animation: flip-cover 900ms 300ms cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
/* Past halfway the cover shows its inside: a deeper yellow with no title */
@keyframes flip-cover {
  49.9% { background: var(--yellow); }
  50% { background: #e3a516; }
  to { transform: rotateY(-180deg); background: #e3a516; border-radius: 18px 3px 3px 18px; }
}
.cover span { animation: hide 1ms 750ms forwards; }
@keyframes hide { to { opacity: 0; } }
.cover span { font-weight: 700; font-size: calc(var(--bw) * 0.085); line-height: 1; text-align: center; color: var(--ink); letter-spacing: -0.02em; }
@keyframes flip { to { transform: rotateY(-180deg); } }

.book-mark { width: calc(var(--bw) * 0.25); height: calc(var(--bw) * 0.25); overflow: visible; }
.book-mark .rays rect { fill: var(--orange); opacity: 0; animation: fade 300ms 1800ms ease forwards; }
.mark-bubble {
  fill: var(--yellow); stroke: var(--ink); stroke-width: 4;
  transform-box: fill-box; transform-origin: 20% 90%; transform: scale(0); /* taste-skill-ignore: the bubble grows from nothing in the preloader */
  animation: pop 500ms 1550ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.mark-smile { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw 500ms 1850ms ease forwards; }
@keyframes pop { to { transform: scale(1); } }
@keyframes fade { to { opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.book-line { display: block; height: calc(var(--bw) * 0.023); border-radius: 99px; background: rgba(29, 28, 23, 0.14); width: 0; animation: line 500ms var(--ease-out) forwards; }
.l1 { animation-delay: 1900ms; --w: 80%; }
.l2 { animation-delay: 2000ms; --w: 62%; }
.l3 { animation-delay: 2100ms; --w: 72%; }
@keyframes line { to { width: var(--w); } }

.preloader-word {
  font-size: var(--step-sub); font-weight: 700; letter-spacing: -0.03em;
  opacity: 0; transform: translateY(12px);
  animation: word 600ms 1950ms var(--ease-out) forwards;
}
@keyframes word { to { opacity: 1; transform: none; } }

/* ---------- Inner pages: privacy, terms, 404 ---------- */
.page-head { background: var(--ink); color: var(--ground); padding-bottom: clamp(56px, 8vw, 104px); }
.page-head .hero-text { text-align: left; max-width: 820px; margin: 0 auto; padding-top: clamp(48px, 8vw, 96px); }
.page-head h1 { font-size: var(--step-head); }
.page-head .hero-lead { margin: 20px 0 0; }
.doc { max-width: 820px; margin: 0 auto; padding: clamp(48px, 7vw, 96px) var(--margin) var(--section); }
.doc h2 { font-size: var(--step-sub); margin-top: 56px; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc ul { margin-top: 16px; max-width: 68ch; }
.doc ul { padding-left: 1.2em; list-style: disc; }
.doc li + li { margin-top: 8px; }
.doc a { text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--orange); }
.page-foot { background: var(--ink); color: var(--ground); padding: 40px var(--margin); }
.page-foot .footer-last { margin-top: 0; }

.lost { min-height: 100svh; }
.lost .hero-text { padding-bottom: 40px; }
.lost h1 { font-size: clamp(5rem, 22vw, 16rem); }
.lost-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.lost-bubble { width: clamp(72px, 10vw, 120px); margin: 0 auto 24px; fill: var(--yellow); }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .who-head { grid-column: 1 / -1; margin-bottom: 40px; }
  .who-head p { max-width: 52ch; }
  .tiles { grid-column: 1 / -1; }
  .prog-list { grid-column: 1 / 8; }
  .prog-preview { grid-column: 8 / -1; }
  .faq h2, .cards { grid-column: 1 / -1; }
  .coupon { grid-column: 1 / -1; }
  .moment-side { grid-column: 8 / -1; padding-top: 0; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
  .about-right { padding-left: 10%; }
  .show-head { grid-template-columns: 1fr; }
}

/* ---------- Phone ---------- */
@media (max-width: 680px) {
  .topbar { padding-top: 16px; }
  .topbar-logo img { width: 52px; height: 52px; }
  .topbar-link { font-size: var(--step-small); }
  .hero-text { padding-top: 64px; }
  .hero h1 { font-size: 17vw; }
  .hero-lead { font-size: var(--step-lead); margin-top: 28px; }
  .folders { width: 100%; min-height: 470px; margin-top: 64px; }
  .folder { --tab-w: 136px; }
  .folder-tab { height: 44px; top: -32px; padding-top: 7px; font-size: var(--step-small); }
  .f1 { top: 32px; } .f2 { top: 80px; } .f3 { top: 128px; } .f4 { top: 176px; }
  .f1 .folder-tab { left: auto; right: 4%; }
  .f2 .folder-tab { left: 4%; }
  .f3 .folder-tab { left: calc(50% - 68px); }
  .f4 .folder-tab { left: 4%; }
  .folder-body { max-width: none; padding: 206px var(--margin) 28px; }
  .folder-note { display: none; }
  .folder-body .btn { width: 100%; }
  .prints { top: 30px; left: var(--margin); right: var(--margin); width: auto; height: 170px; }
  .print { width: 34%; padding: 5px; }
  .pr1 { left: 0; transform: rotate(-6deg) translateY(14px); }
  .pr2 { left: 33%; transform: rotate(3deg); }
  .pr3 { display: block; left: 66%; width: 34%; transform: rotate(-3deg) translateY(22px); }

  .statement { text-align: left; }
  .ps-head { grid-column: 1 / -1; }
  .ps { grid-template-columns: 38fr 62fr; align-items: stretch; }
  .ps-head { grid-column: 1 / -1; }
  .ps-diagram { grid-column: 1; grid-row: 2; margin-top: 40px; }
  .diag-h { display: none; }
  .diag-v { display: block; height: 100%; }
  .ps-steps { grid-column: 2; grid-row: 2; grid-template-columns: 1fr; margin-top: 40px; gap: 28px; align-content: space-between; }
  .ps-steps p { font-size: var(--step-small); }

  .tiles { grid-template-columns: 1fr 1fr; gap: 8px; row-gap: 24px; }
  .tile-wide { grid-column: 1 / -1; order: -1; }
  .tile-name { font-size: var(--step-body); }
  .tile-fact { font-size: var(--step-small); }

  .prog-list { grid-column: 1 / -1; }
  .prog-preview { display: none; }
  .cat { display: grid; grid-template-columns: 1fr 72px; column-gap: 16px; margin-top: 72px; }
  .cat-head { grid-column: 1; }
  .cat-thumb { display: block; grid-column: 2; grid-row: 1; width: 72px; height: 72px; object-fit: cover; clip-path: url(#bubble); }
  .cat-desc, .items { grid-column: 1 / -1; }
  .cat-head { flex-direction: column; gap: 6px; }
  .items { columns: 1; }
  .prog-list:hover .cat:not(:hover) { opacity: 1; }

  .about { padding: var(--section) 10px 0; }
  .about-panel { grid-template-columns: 1fr; padding: 40px 24px 0; min-height: 0; }
  .about-right { padding: 40px 0 0; gap: 36px; }
  .about-right .btn { margin-top: 0; }
  .about-left { display: contents; }
  .about-photo { order: 3; width: 86vw; max-width: none; margin: 48px auto 0; padding-top: 0; transform: translateY(25%); }
  .about-panel { display: flex; flex-direction: column; }

  .cards { margin-top: 72px; }
  .show { padding-left: 10px; padding-right: 10px; }
  .show-panel { padding: 40px 18px 110px; }
  .show h2 { font-size: 19vw; }
  .show-tools .btn { flex: 1; padding: 0 16px; }
  .board { margin-top: 40px; }
  .js .board { height: 760px; }
  .snap { --pw: 40vw; padding: 6px 6px 0; }
  .snap-cap { font-size: 0.8125rem; padding: 8px 2px 10px; }
  .snap:nth-child(3n+1)::before, .snap:nth-child(3n+2)::before { width: 52px; height: 18px; margin-left: -26px; }
  .reel { margin-top: -84px; }
  .reel-row + .reel-row { translate: 0 96px; }
  .reel-img { height: 84px; }
  .viewer-fig { padding: 72px 12px 96px; }
  .viewer-img { max-height: calc(100svh - 230px); }
  .viewer figcaption { flex-direction: column; align-items: center; gap: 4px; text-align: center; }
  .viewer-prev, .viewer-next { top: auto; bottom: 20px; translate: none; }
  .viewer-prev { left: calc(50% - 68px); }
  .viewer-next { right: calc(50% - 68px); }
  .viewer-close { top: 16px; right: 16px; }
  .moments { grid-template-columns: 1fr; row-gap: 40px; }
  .moment-poster, .moment-side { grid-column: 1; }
  .moment-side { grid-row: 1; }
  .moment-photo { margin-top: 32px; }
  .card-tab { width: 120px; left: calc(var(--i) * 40px); font-size: var(--step-small); }
  .card-head { padding: 22px 20px 18px; }
  .card-q { font-size: var(--step-body); }
  .card-a { padding: 0 20px 20px; }
  .card-a p { font-size: var(--step-small); }

  .enquiry { padding-left: 12px; padding-right: 12px; }
  .coupon { grid-template-columns: 1fr; }
  .coupon::before, .coupon::after { left: auto; top: 200px; bottom: auto; margin: 0; }
  .coupon::before { left: calc(var(--notch) / -2); }
  .coupon::after { right: calc(var(--notch) / -2); }
  .coupon-left { padding: 32px 24px; height: 214px; justify-content: flex-start; gap: 16px; }
  .coupon-left p { font-size: var(--step-small); }
  .coupon-form { border-left: 0; border-top: 5px dotted var(--ground); padding: 28px 20px 24px; }
  .field input, .field select { min-height: 54px; }
  .submit { min-height: 54px; }

  .mark-desk { display: none; }
  .mark-phone { display: block; }
  .footer-cols { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .footer-contact { grid-column: 1 / -1; }
  .whatsapp-float { width: 56px; height: 56px; right: 16px; bottom: 16px; }
  .footer-last { flex-wrap: wrap; }
  .legal-links { margin-left: 0; order: 3; width: 100%; }
}
