/* =========================================================
   FONTS (self-hosted Google Fonts, never loaded from Google)
   ========================================================= */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

/* =========================================================
   DESIGN TOKENS: every colour, font and spacing lives here
   ========================================================= */
:root {
  /* colours */
  --cream: #fbf5ea;
  --paper: #fffdf8;
  --espresso: #3b2418;
  --espresso-soft: #6b4f40;
  --sky: #8fcdf6;          /* iOS folder blue */
  --sky-light: #b7e0fb;    /* folder front highlight */
  --sky-soft: #e4f2fc;     /* blue background */
  --sky-deep: #1b5e96;     /* blue that is dark enough for text */
  --lime: #c9e752;         /* Tano Media green */
  --lime-line: #b2d23a;
  --lime-soft: #eef7cc;    /* see-through green for tags */
  --latte: #efe3d3;        /* light brown for the bullet-journal background */
  --latte-dot: #d9c6ae;
  --green-deep: #3d5a12;   /* dark green, readable as text on the green and on cream */
  --butter: #fbefc4;
  --butter-deep: #f3dc8a;
  --tape-sky: rgb(143 205 246 / 0.7);
  --tape-butter: rgb(243 220 138 / 0.8);
  --line: #e7dac7;
  --desk-dot: #cfe3f2;
  --clip-metal: #a89a8c;
  --notes-accent: #8a5a12;
  --notes-yellow: #f5c542;  /* iPhone Notes yellow (decoration only, not text) */
  --ph-bg: #efe4d3;
  --ph-mark: #fde58a;
  --white: #ffffff;
  --overlay: rgb(59 36 24 / 0.72);
  --header-bg: rgb(251 245 234 / 0.92);
  --footer-line: rgb(251 245 234 / 0.15);
  --shadow: 0 10px 30px rgb(59 36 24 / 0.12);
  --shadow-small: 0 6px 14px rgb(59 36 24 / 0.15);
  --shadow-dark: 0 4px 16px rgb(0 0 0 / 0.25);
  --dot-red: #ff5f57;
  --dot-yellow: #febc2e;
  --dot-green: #28c840;

  /* fonts */
  --font-heading: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-accent: "Instrument Serif", Georgia, serif; /* elegant italic accents */

  /* type sizes (scale smoothly between phone and laptop) */
  --fs-small: 0.875rem;
  --fs-body: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --fs-lead: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  --fs-h3: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --fs-h2: clamp(2rem, 1.5rem + 2vw, 3.2rem);
  --fs-h1: clamp(2.5rem, 1.9rem + 2.8vw, 4.2rem);

  /* spacing */
  --section-space: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);
  --gap: clamp(1rem, 0.8rem + 0.8vw, 1.5rem);
  --radius: 22px;
  --radius-small: 12px;

  /* widths */
  --wrap: 1180px;
  --gutter: max(1.25rem, env(safe-area-inset-left));
  --card-w: clamp(200px, 56vw, 230px);
  --header-h: 64px;
}

/* =========================================================
   BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--espresso);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 0.5em;
  font-variation-settings: "SOFT" 50;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: 1.05rem; margin-top: 1.25em; }
p { margin: 0 0 1em; }
a { color: inherit; }
ul, ol { padding: 0; margin: 0; }
button { font: inherit; color: inherit; }
figure { margin: 0; }

:focus-visible { outline: 3px solid var(--sky-deep); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--espresso); color: var(--cream); padding: 0.6rem 1rem; border-radius: 999px;
}
.skip-link:focus { top: 1rem; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter) max(1.25rem, env(safe-area-inset-right));
}
.section { padding-block: var(--section-space); }
/* two neighbouring sections on the same plain background share one gap instead of two */
.section:not([class*="tint-"]) + .section:not([class*="tint-"]) { padding-top: calc(var(--section-space) * 0.3); }
.brands { padding-block: calc(var(--section-space) * 0.6); }
.center { text-align: center; }
.accent { font-family: var(--font-accent); font-style: italic; font-weight: 400; }
.small { font-size: var(--fs-small); color: var(--espresso-soft); }
.eyebrow {
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 600; color: var(--sky-deep); margin-bottom: 0.75rem;
}

/* tinted surfaces set their own text colour */
.tint-butter { background: var(--butter); color: var(--espresso); }
.tint-lime { background: var(--lime); color: var(--espresso); }
.tint-sky { background: var(--sky-soft); color: var(--espresso); }
.tint-espresso { background: var(--espresso); color: var(--cream); }
.tint-espresso .small { color: var(--cream); }

/* =========================================================
   PLACEHOLDERS (removed before launch)
   ========================================================= */
.ph-text { background: var(--ph-mark); color: var(--espresso); padding: 0 0.25em; border-radius: 4px; }
.ph {
  display: grid; place-items: center; text-align: center;
  background: var(--ph-bg); color: var(--espresso-soft);
  border: 2px dashed var(--espresso-soft);
  border-radius: var(--radius-small);
  font-size: var(--fs-small); font-weight: 600;
  min-height: 80px;
}

/* =========================================================
   BUTTONS & LINKS
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4em;
  min-height: 48px; padding: 0.7rem 1.5rem;
  border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.btn-primary { background: var(--espresso); color: var(--cream); }
.btn-primary:hover { background: var(--sky-deep); }
.btn-small { min-height: 44px; padding: 0.5rem 1.1rem; font-size: 0.95rem; }
.text-link { font-weight: 600; text-underline-offset: 4px; }

/* =========================================================
   SHARED DECORATIONS: paper, notebook, paper clip, folder
   ========================================================= */
.paper {
  position: relative;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
/* lined notebook page with spiral rings on the left */
.notebook {
  position: relative;
  background-color: var(--paper);
  background-image: repeating-linear-gradient(to bottom, transparent 0 31px, var(--line) 31px 32px);
  border-radius: 6px var(--radius) var(--radius) 6px;
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 1rem + 2vw, 2.75rem);
  padding-left: calc(clamp(1.5rem, 1rem + 2vw, 2.75rem) + 22px);
}
.notebook::before {
  content: ""; position: absolute; left: -12px; top: 18px; bottom: 18px; width: 30px;
  background-image:
    radial-gradient(circle at 24px 50%, var(--espresso) 0 3.5px, transparent 4px),
    linear-gradient(to bottom, var(--clip-metal) 0 5px, transparent 5px);
  background-size: 30px 26px, 26px 26px;
  background-repeat: repeat-y;
}
/* paper clip */
.clip {
  position: absolute; top: -18px; right: 22%; z-index: 3;
  width: 22px; height: 64px;
  border: 3px solid var(--clip-metal); border-radius: 12px;
  rotate: 8deg;
}
.clip::after {
  content: ""; position: absolute; inset: 8px 4px 14px;
  border: 3px solid var(--clip-metal); border-radius: 8px; border-bottom: 0;
}
/* iOS-style folder */
.folder-icon {
  position: relative; display: block; width: 84px; height: 62px;
  background: linear-gradient(to bottom, var(--sky-light), var(--sky));
  border-radius: 6px 10px 10px 10px;
  box-shadow: var(--shadow-small);
}
.folder-icon::before {
  content: ""; position: absolute; left: 0; top: -9px;
  width: 36px; height: 12px; border-radius: 6px 6px 0 0; background: var(--sky);
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: var(--gap); }
.logo { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--font-accent); font-style: italic; font-size: 1.85rem; text-decoration: none; line-height: 1; }
.menu-toggle {
  min-height: 44px; padding: 0.4rem 1rem; border-radius: 999px;
  border: 2px solid var(--espresso); background: transparent; font-weight: 600; cursor: pointer;
}
.site-nav {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  flex-direction: column; gap: 0.25rem;
  padding: 0.75rem 1.25rem 1.25rem;
  background: var(--cream); border-bottom: 1px solid var(--line);
}
.site-nav.is-open { display: flex; }
.site-nav a:not(.btn) { padding: 0.65rem 0; text-decoration: none; font-weight: 500; }
.site-nav .btn { margin-top: 0.5rem; align-self: flex-start; }

@media (min-width: 860px) {
  .menu-toggle { display: none; }
  .site-nav {
    display: flex; position: static; flex-direction: row; align-items: center;
    gap: 1.75rem; padding: 0; background: none; border: 0;
  }
  .site-nav .btn { margin-top: 0; }
}

/* =========================================================
   HERO: a little "desktop" with a notebook, phone and folders
   ========================================================= */
.hero { padding-block: clamp(1.25rem, 0.75rem + 2vw, 2.5rem) 0; }
.hero-media .clip { right: auto; left: 18%; }
.desktop {
  display: grid; gap: calc(var(--gap) * 1.75);
  padding: clamp(1.25rem, 0.75rem + 2vw, 2.5rem);
  border-radius: calc(var(--radius) + 8px);
  background-color: var(--sky-soft);
  background-image: radial-gradient(var(--desk-dot) 1.2px, transparent 1.2px);
  background-size: 18px 18px;
}
@media (max-width: 859px) {
  .hero .wrap { padding-inline: 0.75rem; }
  .desktop { padding: 0.75rem 0.6rem 1.25rem 1.25rem; }
  .notebook { padding: 1.5rem 0.6rem 1.5rem 1.75rem; }
}
.hero-hi { display: block; font-size: 0.72em; color: var(--sky-deep); line-height: 1; margin-bottom: 0.1em; }
.lead { font-size: var(--fs-lead); max-width: 30ch; margin-bottom: 0.75rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.chips li {
  font-size: var(--fs-small); font-weight: 500;
  padding: 0.3rem 0.85rem; border-radius: 999px;
  background: var(--sky-soft); border: 1px solid var(--sky);
}
.social-icons { list-style: none; display: flex; gap: 0.5rem; margin-top: 1rem; }
.social-icons a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--espresso); color: var(--cream);
}
.social-icons a:hover { background: var(--sky-deep); }
.social-icons svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.chips-green { margin-bottom: 0.5rem; }
.chips-green li { background: var(--lime-soft); border-color: var(--lime-line); }
/* the two brown buttons are compact so they fit side by side */
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.hero-actions .btn { min-height: 44px; padding: 0.5rem 1rem; font-size: 0.95rem; white-space: nowrap; gap: 0.35em; }
@media (max-width: 480px) {
  .hero-actions { gap: 0.35rem; }
  .hero-actions .btn { padding: 0.45rem 0.55rem; font-size: 0.75rem; gap: 0.25em; }
}

.hero-media { position: relative; justify-self: center; width: min(76vw, 300px); }
.phone {
  padding: 10px; border-radius: 34px;
  background: var(--espresso); box-shadow: var(--shadow);
  rotate: 2deg;
}
.phone .player { border-radius: 26px; }

.desk-folders { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.desk-folders a {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  min-height: 44px; padding: 0.5rem 0.25rem; border-radius: var(--radius-small);
  text-decoration: none; font-size: var(--fs-small); font-weight: 600; text-align: center;
}
.desk-folders a:hover { background: var(--sky-light); }
.desk-folders .folder-icon { width: 60px; height: 44px; margin-top: 8px; }
.desk-folders .folder-icon::before { width: 26px; height: 9px; top: -7px; }

@media (min-width: 860px) {
  .desktop { grid-template-columns: minmax(0, 1fr) 280px 112px; align-items: center; }
  .hero-media { width: 100%; }
  .desk-folders { grid-template-columns: 1fr; gap: 1rem; }
  .desk-folders .folder-icon { width: 72px; height: 54px; }
  .desk-folders .folder-icon::before { width: 30px; height: 10px; top: -8px; }
}

/* =========================================================
   VIDEO PLAYER (shared)
   ========================================================= */
.player {
  position: relative; overflow: hidden;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  background: var(--espresso);
}
.player-video { width: 100%; height: 100%; object-fit: cover; }
.player-play {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; background: transparent; cursor: pointer;
}
.player-play::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 64px; height: 64px; translate: -50% -50%;
  border-radius: 50%; background: var(--overlay);
  box-shadow: var(--shadow-dark);
}
.player-play::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  translate: -35% -50%;
  border-style: solid; border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent var(--cream);
}
.player.is-playing .player-play { display: none; }
.player.is-hero.is-playing .player-play { display: block; }
.player.is-hero.is-playing .player-play::before,
.player.is-hero.is-playing .player-play::after { display: none; }
.player-sound {
  position: absolute; right: 12px; top: 12px; z-index: 2;
  min-height: 44px; padding: 0.35rem 0.9rem; border-radius: 999px; border: 0;
  background: var(--overlay); color: var(--cream);
  font-size: 0.85rem; font-weight: 600; cursor: pointer;
}

/* =========================================================
   WORK SLIDER (full width)
   ========================================================= */
.work-head h2,
.big-heading { margin: 0; text-align: center; font-size: calc(var(--fs-h2) * 1.15); }

/* arrows sit on the left and right edge of the video row */
.slider-stage { position: relative; }
.slider-arrow {
  position: absolute; z-index: 5;
  top: calc(2rem + var(--card-w) * 8 / 9); translate: 0 -50%;
  width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--cream); cursor: pointer;
  background: var(--espresso); color: var(--cream); font-size: 1.3rem;
  box-shadow: var(--shadow-dark);
}
.slider-arrow.prev { left: max(10px, env(safe-area-inset-left)); }
.slider-arrow.next { right: max(10px, env(safe-area-inset-right)); }
.slider-arrow:hover { background: var(--sky-deep); }
.slider-arrow:disabled { opacity: 0.3; cursor: default; }

.filter-rows { display: grid; gap: 0.9rem; margin: 1.5rem 0 0.5rem; }
.filter-row { display: grid; gap: 0.4rem; }
.filter-label {
  margin: 0; text-align: center;
  font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--sky-deep);
}
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
.filter {
  min-height: 44px; padding: 0.45rem 1.1rem; border-radius: 999px; cursor: pointer;
  background: var(--paper); border: 1.5px solid var(--espresso); font-weight: 500;
}
.filter.is-active { background: var(--espresso); color: var(--cream); }
/* phone: filters become one swipeable row */
@media (max-width: 859px) {
  .filter-label { text-align: left; }
  .filters {
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto;
    margin-inline: calc(-1 * var(--gutter));
    padding: 0.25rem var(--gutter);
    scrollbar-width: none;
  }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: 0 0 auto; }
}

.slider-track {
  list-style: none;
  display: flex; align-items: flex-start; gap: calc(var(--gap) * 0.6);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 2rem var(--gutter) 1rem;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.slider-track::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 var(--card-w);
  scroll-snap-align: center;
  text-align: center;
}
.slide[hidden] { display: none; }
.slide .player {
  scale: 0.86; opacity: 0.8; transform-origin: center center;
  transition: scale 0.3s ease, opacity 0.3s ease;
  box-shadow: var(--shadow);
}
.slide.is-center .player { scale: 1.08; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .slide .player { transition: none; } }
/* Paid / Gifted / Spec label on each video (hidden while it plays) */
.badge {
  position: absolute; left: 10px; top: 10px; z-index: 2; pointer-events: none;
  padding: 0.2rem 0.65rem; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em;
  background: var(--paper); color: var(--espresso); box-shadow: var(--shadow-small);
}
.badge-paid { background: var(--sky); }
.badge-gifted { background: var(--lime); }
.badge-spec { background: var(--butter); }
.player.is-playing .badge { display: none; }
.slide-title { font-size: 1.1rem; margin: 1.75rem 0 0.2rem; }
.slide-meta { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--espresso-soft); margin: 0; }
.hint { font-size: var(--fs-small); color: var(--espresso-soft); margin-top: 0.5rem; }

/* =========================================================
   CASE STUDIES (folders)
   ========================================================= */
.folders {
  display: flex; gap: var(--gap); justify-content: center; flex-wrap: wrap;
  margin: 1.5rem 0 2rem;
}
.folder {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  min-width: 110px; padding: 0.5rem; border: 0; background: none; cursor: pointer; font-weight: 600;
}
.folder .folder-icon { opacity: 0.6; }
.folder.is-open .folder-icon { opacity: 1; translate: 0 -4px; }

/* an open folder: blue folder with a tab, paper sheet inside */
.case {
  position: relative; margin-top: 36px;
  background: var(--sky);
  border-radius: 0 var(--radius) var(--radius) var(--radius);
  padding: clamp(8px, 0.4rem + 0.6vw, 14px);
  box-shadow: var(--shadow);
}
.case-tab {
  position: absolute; left: 0; top: -34px; margin: 0;
  height: 36px; min-width: 150px; padding: 0 1.5rem;
  display: flex; align-items: center;
  background: var(--sky); border-radius: 14px 14px 0 0;
  font-weight: 700; font-size: 0.95rem;
}
.case-sheet {
  position: relative;
  background: var(--paper);
  border-radius: calc(var(--radius) - 8px);
  padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem);
  box-shadow: 0 -6px 0 -2px var(--sky-light);
}
/* Keats School folder is green */
#case-keats.case, #case-keats .case-tab { background: var(--lime); }
#case-keats .case-sheet { box-shadow: 0 -6px 0 -2px var(--lime-line); }
#tab-case-keats .folder-icon { background: linear-gradient(to bottom, var(--lime), var(--lime-line)); }
#tab-case-keats .folder-icon::before { background: var(--lime-line); }
.results { list-style: none; display: grid; gap: 0.25rem; }
.results li::before { content: "↗ "; color: var(--sky-deep); font-weight: 700; }
.case-chips { margin: 0.75rem 0 0; }
.case-grid { display: grid; gap: calc(var(--gap) * 1.5); }
.case-videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: var(--gap); }
.case-videos figcaption { font-size: var(--fs-small); color: var(--espresso-soft); text-align: center; margin-top: 0.4rem; }
.ph-video { aspect-ratio: 9 / 16; width: 100%; }
.case-facts { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1rem; margin: 1rem 0; }
.case-facts dt { font-weight: 700; }
.case-facts dd { margin: 0; justify-self: start; }
.hooks { padding-left: 1.25rem; display: grid; gap: 0.35rem; }
.case-photos {
  display: grid; gap: var(--gap); margin-top: calc(var(--gap) * 1.5);
  grid-template-columns: repeat(2, 1fr);
}
.case-photos .ph { aspect-ratio: 4 / 5; }
.case-photos .tall { grid-column: span 2; aspect-ratio: 16 / 9; }
/* five square photos: one big + four small */
.photos-5 { grid-template-columns: repeat(2, 1fr); }
.photos-5 img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-small); }
.photos-5 .big { grid-column: span 2; }
@media (min-width: 860px) {
  .case-photos.photos-5 { grid-template-columns: repeat(4, 1fr); }
  .photos-5 .big { grid-column: 1 / span 2; grid-row: 1 / span 2; }
}

/* vertical phone that links to a YouTube video */
.yt-phone {
  display: flex; flex-direction: column; aspect-ratio: 9 / 16;
  border: 8px solid var(--espresso); border-radius: var(--radius);
  background: var(--white); overflow: hidden; text-decoration: none; color: var(--espresso);
  box-shadow: var(--shadow-small);
}
.yt-thumb { position: relative; display: block; margin-top: 18%; }
.yt-thumb img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.yt-play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 48px; height: 34px; border-radius: 10px; background: var(--dot-red);
}
.yt-play::after {
  content: ""; position: absolute; left: 50%; top: 50%; translate: -35% -50%;
  border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent var(--white);
}
.yt-info { display: flex; flex-direction: column; gap: 0.3rem; padding: 0.75rem; }
.yt-title { font-weight: 700; font-size: 0.85rem; line-height: 1.25; }
.yt-meta { font-size: 0.75rem; color: var(--espresso-soft); }
.yt-btn {
  align-self: flex-start; margin-top: 0.5rem; padding: 0.35rem 0.75rem; border-radius: 999px;
  background: var(--espresso); color: var(--cream); font-size: 0.75rem; font-weight: 600;
}
.yt-phone:hover .yt-btn { background: var(--sky-deep); }

@media (min-width: 860px) {
  .case-grid { grid-template-columns: minmax(0, 440px) 1fr; align-items: start; }
  .case-photos { grid-template-columns: repeat(3, 1fr) 1fr; }
  .case-photos .tall { grid-column: 4; grid-row: 1 / span 2; aspect-ratio: auto; }
}

/* =========================================================
   PHOTOS
   ========================================================= */
.accent-heading {
  font-family: var(--font-accent); font-style: italic; font-weight: 400;
  font-size: calc(var(--fs-h2) * 1.35);
  color: var(--sky-deep);
}
.photos .accent-heading { color: var(--espresso); }
/* mosaic of Instagram-post (4:5) photos; the big one covers 2 x 2 spots */
.photo-grid {
  display: grid; gap: var(--gap); margin-top: 1.5rem;
  grid-template-columns: repeat(2, 1fr);
}
.photo-grid img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius-small); }
.photo-grid .focus-left { object-position: 30% 50%; }
.photo-grid .pos-low { object-position: 50% 62%; }
.photo-grid .big { position: relative; grid-column: span 2; grid-row: span 2; }
.photo-grid .big img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
@media (max-width: 859px) { .photo-grid .big { aspect-ratio: 4 / 5; } } /* on phones nothing sits beside it, so it needs its own height */
@media (min-width: 860px) {
  .photo-grid { grid-template-columns: repeat(4, 1fr); }
}

/* =========================================================
   ABOUT + PROOF (bento of desk items)
   ========================================================= */
.bento { display: grid; gap: var(--gap); margin-top: 1.5rem; }
.card { position: relative; background: var(--paper); border-radius: var(--radius); padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); box-shadow: var(--shadow); }
.about-card { display: grid; gap: calc(var(--gap) * 1.25); }
.polaroid { background: var(--white); padding: 10px 10px 34px; box-shadow: var(--shadow-small); rotate: -2deg; max-width: 260px; }
.ph-portrait { aspect-ratio: 4 / 5; border-radius: 4px; }
.portrait { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: 2px; }
.about-more { grid-column: 1 / -1; padding-inline: clamp(0.5rem, 0.2rem + 1.5vw, 1.75rem); } /* facts and interests use the full card width, under the photo */
.about-more .facts { margin-bottom: 0.5rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.facts-title { color: var(--espresso-soft); margin: 1.25rem 0 0.75rem; }
.facts { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; }
.inline-icon { width: 18px; height: 18px; vertical-align: -3px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.facts li { display: flex; align-items: flex-start; gap: 0.75rem; line-height: 1.3; }
.facts small { display: block; font-size: 0.78rem; color: var(--espresso-soft); }
.icon {
  flex: 0 0 auto; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%; background: var(--sky-soft);
}
.icon svg { width: 20px; height: 20px; fill: none; stroke: var(--espresso); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.facts li > span:last-child { font-size: 0.95rem; }
.loves { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.6rem 1rem; }
.loves li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.95rem; }
.loves svg { flex: 0 0 auto; width: 20px; height: 20px; fill: none; stroke: var(--sky-deep); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* testimonial styled like an iPhone Notes page */
.card.ios-note {
  background: var(--white);
  border-top: 10px solid var(--notes-yellow);
}
.ios-note-bar { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; color: var(--notes-accent); margin-bottom: 1rem; }
.ios-note-bar h3 { margin: 0; font-family: var(--font-body); font-size: 1rem; font-weight: 700; color: var(--notes-accent); }
.ios-note-title { font-size: 1.15rem; margin-bottom: 0.75rem; }
.note-quote { margin: 0 0 1rem; }
.note-quote blockquote { margin: 0 0 0.25rem; }
.note-quote .quote { font-size: 1.3rem; }
.note-ps { font-size: 0.9rem; margin: 0.5rem 0 0; padding-top: 0.75rem; border-top: 1px dashed var(--line); }
.stats { display: grid; gap: 0.75rem; margin: 1rem 0; }
.stats p { display: flex; flex-direction: column; margin: 0; padding-bottom: 0.75rem; border-bottom: 1px solid var(--line); }
.stats strong { font-family: var(--font-heading); font-size: 2rem; line-height: 1.1; }

.window-dots { display: flex; gap: 6px; margin-bottom: 1rem; }
.window-dots span { width: 11px; height: 11px; border-radius: 50%; background: var(--dot-red); }
.window-dots span:nth-child(2) { background: var(--dot-yellow); }
.window-dots span:nth-child(3) { background: var(--dot-green); }
.quote { font-family: var(--font-accent); font-style: italic; font-size: 1.5rem; line-height: 1.3; }
.duo-card .clip { right: 12%; }
.small-video { max-width: 150px; }
.duo-photo { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-small); box-shadow: var(--shadow-small); }

@media (min-width: 860px) {
  .bento { grid-template-columns: repeat(3, 1fr); }
  .about-card { grid-column: span 2; grid-template-columns: 220px 1fr; align-items: start; }
  .stats-card { grid-row: span 2; }
}

/* =========================================================
   SERVICES
   ========================================================= */
.service-grid { display: grid; gap: calc(var(--gap) * 1.5) var(--gap); margin-top: 2rem; }
@media (min-width: 860px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }

/* the section is a light brown dot-grid bullet-journal page */
.tint-latte {
  background-color: var(--latte);
  background-image: radial-gradient(var(--latte-dot) 1.3px, transparent 1.4px);
  background-size: 22px 22px;
}
/* each package is a coloured folder with a tab, holding a paper sheet */
.service-folder { position: relative; display: flex; flex-direction: column; padding-top: 34px; }
.service-tab {
  position: absolute; top: 0; left: 0; margin: 0;
  height: 36px; padding: 0 1.2rem; display: flex; align-items: center;
  border-radius: 14px 14px 0 0;
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--espresso);
}
.service-folder > .card {
  flex: 1; display: flex; flex-direction: column;
  border-radius: 0 var(--radius) var(--radius) var(--radius);
  border: 10px solid; background: var(--paper); box-shadow: var(--shadow);
}
.f-sky .service-tab { background: var(--sky); }
.f-sky > .card { border-color: var(--sky); }
.f-lime .service-tab { background: var(--lime); }
.f-lime > .card { border-color: var(--lime); }
.f-butter .service-tab { background: var(--notes-yellow); }
.f-butter > .card { border-color: var(--notes-yellow); }
.service-img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 30%; border-radius: 6px; margin-bottom: 1rem; box-shadow: var(--shadow-small); }
.ticks { list-style: none; display: grid; gap: 0.35rem; margin: 0 0 1.5rem; font-size: 0.95rem; }
.ticks li { position: relative; padding-left: 1.6rem; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--green-deep); font-weight: 700; }
.service-btn { margin-top: auto; align-self: flex-start; padding-inline: 1.1rem; white-space: nowrap; font-size: 0.95rem; }

/* iPhone-style widgets under the packages */
.widgets { display: grid; gap: var(--gap); margin-top: calc(var(--gap) * 2); align-items: start; }
@media (min-width: 860px) { .widgets { grid-template-columns: 1fr 1fr; } }
.widget {
  background: var(--white); border-radius: 30px; box-shadow: var(--shadow);
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
}
.widget h3 { font-size: 1.35rem; margin-bottom: 0.6rem; }
.widget-label {
  display: flex; align-items: center; gap: 0.45rem; margin-bottom: 0.6rem;
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--espresso-soft);
}
.widget-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sky); }
.widget-dot.dot-lime { background: var(--lime-line); }
.app-icons { list-style: none; display: flex; gap: 1.25rem; margin-top: 1rem; }
.app-icons a { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; font-size: 0.8rem; text-decoration: none; color: var(--espresso); }
.app {
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 16px;
  box-shadow: var(--shadow-small); transition: translate 0.2s;
}
.app svg { width: 28px; height: 28px; fill: none; stroke: var(--cream); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.app-icons a:hover .app { translate: 0 -3px; }
.a-sky, .a-lime, .a-butter { background: var(--espresso); }
/* Reminders-style list */
.reminders { list-style: none; margin: 0 0 1rem; }
.reminders li {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.55rem 0; border-bottom: 1px solid var(--line); font-size: 0.95rem;
}
.reminders li::before {
  content: ""; flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--sky);
}
.reminders li:nth-child(3n+2)::before { border-color: var(--lime-line); }
.reminders li:nth-child(3n)::before { border-color: var(--notes-yellow); }
@media (prefers-reduced-motion: reduce) { .app { transition: none; } }
/* =========================================================
   BRANDS
   ========================================================= */
.brand-row { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); margin: 1.5rem 0 1rem; }
.brand-sticker {
  display: grid; place-items: center; text-align: center;
  width: clamp(110px, 26vw, 150px); aspect-ratio: 1; border-radius: 50%; padding: 0.75rem;
  font-family: var(--font-heading); font-weight: 600; font-size: clamp(1rem, 0.9rem + 0.4vw, 1.2rem); line-height: 1.15;
  box-shadow: var(--shadow-small);
}
/* real logos: always shown whole (contain), never cropped, all in the same round white sticker */
.brand-sticker.logo-wide,
.brand-sticker.logo-round { background: var(--white); overflow: hidden; }
.brand-sticker img { width: 100%; height: 100%; object-fit: contain; }
.logo-wide { padding: 1.4rem; }
.logo-round { padding: 0; }
.logo-round img { border-radius: 50%; } /* round logos: only their square background corners are hidden */
.s-lime { background: var(--lime); color: var(--espresso); }
.s-sky { background: var(--sky-soft); color: var(--espresso); }
.s-white { background: var(--paper); color: var(--espresso); }
.s-butter { background: var(--butter); color: var(--espresso); }

/* =========================================================
   CONTACT & FOOTER
   ========================================================= */
.contact-hi { font-size: clamp(2rem, 1.5rem + 1.8vw, 3rem); color: var(--sky); margin-bottom: 0.25rem; }
.contact p { max-width: 46ch; margin-inline: auto; }
.big-email {
  display: inline-block; margin: 1rem 0 1.5rem;
  font-family: var(--font-heading); font-size: clamp(1.4rem, 1.1rem + 1.6vw, 2.4rem);
  color: var(--cream); text-underline-offset: 6px; word-break: break-word;
}
.email-box {
  display: inline-flex; align-items: center; gap: 0.5em; margin: 1rem 0 1.5rem; max-width: 100%;
  padding: 0.9rem 1.6rem; border-radius: var(--radius); background: var(--cream); color: var(--espresso);
  font-family: var(--font-heading); font-size: clamp(1.15rem, 0.9rem + 1.3vw, 2rem); text-decoration: none; word-break: break-word;
  box-shadow: var(--shadow-dark); transition: background-color 0.2s;
}
.email-box:hover { background: var(--sky-light); }
.social-icons-light { justify-content: center; }
.social-icons-light a { background: var(--cream); color: var(--espresso); }
.social-icons-light a:hover { background: var(--sky-light); }
.socials { list-style: none; display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
.socials a { display: inline-flex; min-height: 44px; align-items: center; }

.site-footer { background: var(--espresso); color: var(--cream); border-top: 1px solid var(--footer-line); padding-bottom: env(safe-area-inset-bottom); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem 1.5rem; padding-block: 1.5rem; font-size: var(--fs-small); }
.footer-inner p { margin: 0; }
.footer-inner a { display: inline-flex; min-height: 44px; align-items: center; }

/* coloured cards (must come after .card so the colour wins) */
.card.tint-lime { background: var(--lime); }
.card.tint-sky { background: var(--sky-soft); }
.card.tint-butter { background: var(--butter); }

/* results card with tabs */
.total-followers { margin: 0.25rem 0 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--sky); }
.total-followers strong { display: block; font-family: var(--font-heading); font-size: 2.2rem; line-height: 1.1; }
.proof-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.proof-tab {
  min-height: 40px; padding: 0.35rem 0.8rem; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--espresso); background: var(--white); font-size: 0.85rem; font-weight: 600;
}
.proof-tab.is-active { background: var(--espresso); color: var(--cream); }
.proof-title { font-size: 0.85rem; font-weight: 600; color: var(--espresso-soft); margin-bottom: 0.5rem; }
.stats-grid { grid-template-columns: 1fr 1fr; gap: 0.5rem 1rem; margin: 0.5rem 0 1rem; }
.stats-grid p { border-bottom: 0; padding-bottom: 0; }
.stats-grid strong { font-size: 1.6rem; }
.proof-shot {
  width: 100%; height: auto; max-height: 340px; object-fit: cover; object-position: top;
  border-radius: 16px; border: 6px solid var(--espresso); box-shadow: var(--shadow-small); background: var(--white);
}
.proof-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-underline-offset: 4px; }

/* simple line icon at the top of each service card */
.service-icon { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; margin: 0.25rem 0 1.25rem; }
.service-icon svg { width: 56px; height: 56px; fill: none; stroke: var(--espresso); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ico-sky { background: var(--sky-soft); }
.ico-lime { background: var(--lime-soft); }
.ico-butter { background: var(--butter); }

/* legal pages */
.legal { max-width: 720px; }
.legal h1 { font-size: var(--fs-h2); }
.legal h2 { font-size: 1.3rem; margin-top: 2rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; align-items: center; }
.footer-links a { display: inline-flex; min-height: 44px; align-items: center; }
