/* ==========================================================================
   Little Tiptoe · Academic and Creative Art Studio
   ========================================================================== */

/* Self-hosted variable fonts (latin subsets) */
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/PlayfairDisplay.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/PlayfairDisplay-italic.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/DMSans.woff2") format("woff2");
}
@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/Caveat.woff2") format("woff2");
}

:root {
  --ivory: #FFFDFC;
  --cream: #FFF7F3;
  --blush-50: #FCEAE7;
  --blush-100: #F9DDD9;
  --blush-200: #F4C6C4;
  --blush-300: #F2B5B5;
  --coral-400: #EE8F92;
  --coral-500: #E27B80;
  --rose-600: #D96F78;
  --butter-100: #FBF3DC;
  --butter-300: #F0D9A2;
  --sky-100: #EEF4F6;
  --sky-300: #B9CFD8;
  --sage-300: #C9D8C5;
  --ink: #363131;
  --ink-soft: #575050;
  --grey: #8D8686;
  --grey-light: #B5AEAC;

  --font-serif: "Playfair Display", "Georgia", serif;
  --font-sans: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --font-hand: "Caveat", cursive;

  --container: 1240px;
  --pad: clamp(20px, 5vw, 48px);
  --section-gap: clamp(76px, 11vw, 140px);
  --radius-lg: 28px;
  --radius-md: 20px;

  --shadow-soft: 0 20px 50px -24px rgba(120, 80, 82, 0.28);
  --shadow-paper: 0 10px 30px -12px rgba(120, 80, 82, 0.22);
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; line-height: 1.12; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.2rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -0.005em; }
h2 em, h1 em { font-style: italic; font-weight: 500; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
p { margin: 0 0 1em; }
a { color: inherit; }
button { font: inherit; color: inherit; }
figure { margin: 0; }
ul, ol { margin: 0; padding: 0; }

::selection { background: var(--blush-200); color: var(--ink); }

/* subtle paper grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--pad); }
.container-wide { max-width: 1440px; margin-inline: auto; padding-inline: clamp(12px, 2.5vw, 32px); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 3000;
  background: var(--ink); color: var(--ivory);
  padding: 10px 18px; border-radius: 999px; font-size: 0.9rem;
  transform: translateY(-64px); transition: transform 0.2s;
}
.skip-link:focus-visible { transform: translateY(0); }

:focus-visible {
  outline: 2.5px solid var(--rose-600);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- logo ----------
   The mark is a <symbol> cloned via <use>; context selectors cannot reach
   into the use shadow tree, so recolouring happens through custom props. */
.lg-dots { stroke: var(--logo-dots, var(--grey-light)); }
.lg-little, .lg-tiptoe {
  font-family: var(--font-serif);
  fill: var(--logo-text, var(--ink));
}
.lg-little { font-size: 33px; letter-spacing: 0.02em; }
.lg-tiptoe { font-size: 54px; font-weight: 500; letter-spacing: 0.01em; }
.lg-heart { fill: url(#lg-heart-grad); }
.lg-tagline {
  font-family: var(--font-serif);
  font-size: 13.5px;
  letter-spacing: 0.06em;
  fill: var(--logo-tag, var(--coral-500));
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), background-color 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.btn-arrow { display: inline-block; transition: transform 0.25s var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn-primary {
  background: var(--ink);
  color: var(--ivory);
  box-shadow: 0 14px 28px -14px rgba(54, 49, 49, 0.5);
}
.btn-primary:hover { transform: translateY(-2px); background: #241f1f; }
.btn-outline {
  border-color: rgba(54, 49, 49, 0.35);
  color: var(--ink);
  background: transparent;
}
.btn-outline:hover { transform: translateY(-2px); background: var(--blush-50); border-color: var(--coral-400); }
.btn-light {
  background: var(--ivory);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}
.btn-light:hover { transform: translateY(-2px); }
.btn-sm { padding: 11px 22px; font-size: 0.92rem; }
.btn-wide { justify-content: center; width: 100%; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--rose-600);
  text-decoration: none;
  border-bottom: 1.5px solid var(--blush-200);
  padding-bottom: 2px;
  transition: border-color 0.2s, gap 0.25s var(--ease-out);
}
.text-link:hover { border-color: var(--rose-600); gap: 11px; }
.text-link-light { color: var(--blush-200); border-color: rgba(244, 198, 196, 0.35); }
.text-link-light:hover { border-color: var(--blush-200); }

/* ---------- eyebrow / heads ---------- */
.eyebrow {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  max-width: 100%;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose-600);
  margin-bottom: 18px;
}
.eyebrow-heart { flex: none; align-self: center; }
@media (max-width: 480px) {
  .eyebrow { font-size: 0.7rem; letter-spacing: 0.18em; }
}
.eyebrow-heart { width: 15px; height: 14px; color: var(--coral-400); }

.section { padding-block: calc(var(--section-gap) / 2); }
.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-lede { color: var(--ink-soft); font-size: 1.06rem; max-width: 56ch; }

.hand {
  font-family: var(--font-hand);
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--rose-600);
  font-weight: 500;
}

/* underline + circle doodles on headings */
.underlined { position: relative; white-space: nowrap; font-style: italic; }
.underlined .wave {
  position: absolute; left: 0; bottom: -0.18em;
  width: 100%; height: 0.16em;
  color: var(--coral-400);
  overflow: visible;
}
.js .wave-path { stroke-dasharray: 240; stroke-dashoffset: 240; }
.is-in .wave-path, .no-io .wave-path { animation: draw 1.1s 0.5s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.circled { position: relative; display: inline-block; }
.circled .circle-doodle {
  position: absolute; left: -12%; top: -18%;
  width: 124%; height: 136%;
  color: var(--coral-400);
  overflow: visible;
  pointer-events: none;
}
.js .circle-path { stroke-dasharray: 560; stroke-dashoffset: 560; }
.is-in .circle-path, .no-io .circle-path { animation: draw 1.3s 0.4s var(--ease-out) forwards; }

/* ---------- reveal animations (hidden state only applies when JS runs) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.no-io .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .wave-path, .circle-path { stroke-dashoffset: 0; animation: none; }
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255, 253, 252, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background-color 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--blush-100); background: rgba(255, 253, 252, 0.92); }

.header-inner {
  display: flex; align-items: center; gap: 28px;
  min-height: 76px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand-mark { width: 58px; height: 58px; flex: none; }
.brand-word { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-serif); font-size: 1.28rem; font-weight: 500; letter-spacing: 0.01em; }
.brand-sub { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--grey); }

.site-nav ul { display: flex; gap: clamp(14px, 2vw, 26px); list-style: none; }
.site-nav a {
  font-size: 0.92rem; font-weight: 500; text-decoration: none; color: var(--ink-soft);
  padding: 6px 2px; position: relative;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--coral-400); border-radius: 2px;
  transition: right 0.25s var(--ease-out);
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { right: 0; }

.nav-toggle {
  display: none;
  background: none; border: none; padding: 10px; margin: -10px;
  cursor: pointer;
}
.nav-toggle-box { display: block; width: 26px; height: 16px; position: relative; }
.nav-toggle-box span {
  position: absolute; left: 0; width: 100%; height: 2.4px;
  background: var(--ink); border-radius: 2px;
  transition: transform 0.3s var(--ease-out), top 0.3s var(--ease-out), width 0.3s;
}
.nav-toggle-box span:first-child { top: 1px; }
.nav-toggle-box span:last-child { top: 12px; width: 70%; }
.nav-toggle[aria-expanded="true"] .nav-toggle-box span:first-child { top: 7px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-box span:last-child { top: 7px; width: 100%; transform: rotate(-45deg); }

/* mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 900;
  background: var(--ivory);
  padding-top: 100px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s var(--ease-out), visibility 0.3s;
  overflow-y: auto;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu-inner {
  min-height: calc(100% - 100px);
  display: flex; flex-direction: column;
  padding: 4vh var(--pad) 40px;
  position: relative;
}
.mobile-menu-heart {
  position: absolute; top: 2vh; right: 8vw;
  width: 46px; height: 44px; color: var(--blush-200);
  transform: rotate(12deg);
}
.mobile-menu ol { list-style: none; counter-reset: menuitem; }
.mobile-menu li { counter-increment: menuitem; border-bottom: 1px solid var(--blush-100); }
.mobile-menu li a {
  display: flex; align-items: baseline; gap: 18px;
  font-family: var(--font-serif); font-size: clamp(1.7rem, 6.5vw, 2.2rem);
  padding: 18px 4px; text-decoration: none;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.mobile-menu li a::before {
  content: "0" counter(menuitem);
  font-family: var(--font-sans); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.12em; color: var(--coral-400);
}
.mobile-menu.open li a { opacity: 1; transform: none; }
.mobile-menu.open li:nth-child(1) a { transition-delay: 0.06s; }
.mobile-menu.open li:nth-child(2) a { transition-delay: 0.11s; }
.mobile-menu.open li:nth-child(3) a { transition-delay: 0.16s; }
.mobile-menu.open li:nth-child(4) a { transition-delay: 0.21s; }
.mobile-menu.open li:nth-child(5) a { transition-delay: 0.26s; }
.mobile-menu.open li:nth-child(6) a { transition-delay: 0.31s; }
.mobile-menu-cta { margin-top: auto; justify-content: center; margin-top: 40px; }
body.menu-open { overflow: hidden; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding-block: clamp(40px, 6vw, 90px) calc(var(--section-gap) / 2); position: relative; }
.hero::before {
  /* soft blush arch behind the artwork side */
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: min(46vw, 640px); height: 88%;
  background: linear-gradient(180deg, var(--blush-50), var(--cream) 80%);
  border-bottom-left-radius: 48% 30%;
  z-index: -1;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: center;
}
.hero-copy .lede {
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  color: var(--ink-soft);
  max-width: 50ch;
  margin-bottom: 34px;
}
.hero h1 { margin-bottom: 26px; }
.fullstop { color: var(--rose-600); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-art { position: relative; }
.hero-dotring {
  position: absolute; top: -34px; right: -20px;
  width: 150px; height: 150px;
  border-radius: 50%;
  border: 2.5px dotted var(--blush-300);
  z-index: 0;
}
.hero-main-img {
  position: relative; z-index: 1;
  width: min(100%, 470px);
  margin-left: auto;
  border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 8px solid var(--ivory);
  outline: 1px solid var(--blush-100);
}
.hero-main-img img { aspect-ratio: 4 / 4.6; object-fit: cover; object-position: center 62%; width: 100%; height: auto; }
.hero-float-card {
  position: absolute; z-index: 2;
  left: clamp(-8px, 1vw, 30px); bottom: -34px;
  width: clamp(130px, 12.5vw, 180px);
  background: var(--ivory);
  padding: 9px 9px 6px;
  border-radius: 16px;
  box-shadow: var(--shadow-paper);
  transform: rotate(-6deg);
}
.hero-float-card img { border-radius: 10px; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: center 20%; }
.hero-float-card figcaption { text-align: center; padding-top: 4px; font-size: 1.15rem; }
.hero-spark { position: absolute; color: var(--coral-400); }
.spark-1 { width: 26px; height: 26px; top: -12px; left: 12%; transform: rotate(-14deg); }
.spark-2 { width: 17px; height: 17px; bottom: 16%; right: -26px; color: var(--butter-300); }
.hero-heart {
  position: absolute; width: 34px; height: 32px;
  top: 20%; left: -6px; color: var(--coral-400);
  transform: rotate(-16deg);
}

/* ==========================================================================
   School ECAs
   ========================================================================== */
.eca-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.4vw, 30px);
}
.eca-tile {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ivory);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.eca-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); }

.eca-tile-img { border: 1px solid var(--blush-100); }
.eca-media { overflow: hidden; }
.eca-media img {
  width: 100%; aspect-ratio: 5 / 4.4; object-fit: cover; object-position: center 30%;
  transition: transform 0.6s var(--ease-out);
}
.eca-tile:hover .eca-media img { transform: scale(1.045); }
.eca-media img.pos-top { object-position: center 12%; }
.eca-body { padding: 22px 26px 26px; }
.eca-body p:last-child { margin-bottom: 0; color: var(--ink-soft); font-size: 0.97rem; }

.tile-label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--rose-600);
  margin-bottom: 10px;
}
.eca-tile h3 { margin-bottom: 8px; }

.eca-tile-type {
  padding: 30px 26px 28px;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 300px;
  position: relative;
}
.eca-tile-type p:last-child { margin-bottom: 0; color: var(--ink-soft); font-size: 0.97rem; }
.tile-doodle {
  width: 62px; height: 62px;
  color: var(--ink);
  opacity: 0.85;
  margin-bottom: auto;
}
.tint-blush { background: var(--blush-50); }
.tint-butter { background: var(--butter-100); }
.tint-sky { background: var(--sky-100); }

.eca-cta {
  margin-top: clamp(36px, 5vw, 56px);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.eca-cta-note { display: flex; align-items: flex-end; gap: 6px; margin-bottom: 8px; transform: rotate(-2deg); }
.eca-cta-note .hand { font-size: 1.45rem; }
.note-arrow { width: 44px; height: 30px; color: var(--coral-400); transform: scaleX(-1) rotate(-58deg); margin-bottom: -14px; }

/* ==========================================================================
   Trust strip
   ========================================================================== */
.trust {
  background: var(--cream);
  padding-block: clamp(56px, 8vw, 96px);
  text-align: center;
}
.trust-heading { margin-bottom: 30px; }
.trust-heading em { color: var(--rose-600); }
.trust-list {
  list-style: none;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px 0;
  max-width: 860px; margin-inline: auto;
  font-weight: 500; font-size: 0.98rem; color: var(--ink-soft);
}
.trust-list li { display: inline-flex; align-items: center; }
.trust-list li + li::before {
  content: "";
  width: 11px; height: 10px; margin-inline: 16px;
  background-color: var(--coral-400);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 38'%3E%3Cpath d='M20 34.5C14 28 3.2 21.5 2.6 12.9 2.2 6.9 6.8 2.6 11.7 2.9c3.6.2 6.5 2.4 8.1 5.6 1.8-3.1 4.9-5.1 8.5-5 4.9.2 9 4.8 8.3 10.8-1 8.5-10.8 14-16.6 20.2Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 38'%3E%3Cpath d='M20 34.5C14 28 3.2 21.5 2.6 12.9 2.2 6.9 6.8 2.6 11.7 2.9c3.6.2 6.5 2.4 8.1 5.6 1.8-3.1 4.9-5.1 8.5-5 4.9.2 9 4.8 8.3 10.8-1 8.5-10.8 14-16.6 20.2Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.trust-note { margin: 26px 0 0; color: var(--grey); font-size: 0.92rem; }

/* ==========================================================================
   Studio intro
   ========================================================================== */
.studio {
  background: var(--blush-50);
  position: relative;
  padding-top: 0;
  padding-bottom: clamp(70px, 9vw, 120px);
  margin-top: clamp(50px, 7vw, 90px);
}
.studio-curve {
  color: var(--blush-50);
  transform: translateY(-99%);
  position: absolute; top: 1px; left: 0; right: 0;
  line-height: 0;
}
.studio-curve svg { width: 100%; height: clamp(34px, 5vw, 80px); display: block; }

.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
  padding-top: clamp(30px, 4vw, 60px);
}

.studio-collage { position: relative; min-height: 480px; }
.collage-piece {
  position: absolute;
  background: var(--ivory);
  padding: 10px 10px 8px;
  border-radius: 18px;
  box-shadow: var(--shadow-paper);
}
.collage-piece img { border-radius: 12px; object-fit: cover; }
.piece-a { width: 52%; top: 0; left: 0; transform: rotate(-5deg); z-index: 2; }
.piece-a img { aspect-ratio: 4 / 5; }
.piece-b { width: 46%; top: 12%; right: 2%; transform: rotate(4deg); z-index: 1; }
.piece-b img { aspect-ratio: 4 / 4.5; }
.piece-c { width: 44%; bottom: 0; left: 22%; transform: rotate(-2deg); z-index: 3; }
.piece-c img { aspect-ratio: 4 / 4; object-position: center 30%; }
.piece-c figcaption { text-align: center; padding-top: 5px; }
.collage-spark { position: absolute; width: 30px; height: 30px; top: -18px; right: 18%; color: var(--coral-400); }

.studio-index { list-style: none; margin-top: 34px; }
.studio-index li { border-bottom: 1px solid var(--blush-200); }
.studio-index a {
  display: flex; align-items: baseline; gap: 20px;
  text-decoration: none;
  padding: 16px 6px;
  transition: background-color 0.25s, padding-left 0.25s var(--ease-out);
  border-radius: 10px 10px 0 0;
}
.studio-index a:hover { background: rgba(255, 253, 252, 0.65); padding-left: 14px; }
.index-num { font-family: var(--font-serif); font-size: 1.5rem; font-style: italic; color: var(--rose-600); min-width: 44px; }
.index-name { font-family: var(--font-serif); font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
.index-arrow { margin-left: auto; color: var(--rose-600); font-size: 1.15rem; transition: transform 0.25s var(--ease-out); }
.studio-index a:hover .index-arrow { transform: translateX(5px); }

/* ==========================================================================
   Workshops
   ========================================================================== */
.ws-toggle {
  display: flex; align-items: center; gap: 22px;
  margin-bottom: clamp(30px, 4vw, 44px);
}
.ws-tab {
  background: none; border: none; padding: 4px 2px 8px; cursor: pointer;
  font-family: var(--font-serif); font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  color: var(--grey);
  position: relative;
  transition: color 0.25s;
}
.ws-tab::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px; border-radius: 3px;
  background: var(--coral-400);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.ws-tab.is-active { color: var(--ink); }
.ws-tab.is-active::after { transform: scaleX(1); }
.ws-tab:hover { color: var(--ink); }
.ws-toggle-heart svg { width: 17px; height: 16px; color: var(--blush-300); display: block; }

.ws-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.4vw, 30px);
}
.ws-grid-2 { grid-template-columns: repeat(2, 1fr); max-width: 850px; }

.ws-card {
  background: var(--ivory);
  border: 1px solid var(--blush-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.ws-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); }
.ws-media { overflow: hidden; position: relative; }
.ws-media img {
  width: 100%; aspect-ratio: 5 / 4.1; object-fit: cover; object-position: center 25%;
  transition: transform 0.6s var(--ease-out);
}
.ws-card:hover .ws-media img { transform: scale(1.045); }
.ws-media-zoom img { object-position: 62% 38%; transform: scale(1.25); transform-origin: 62% 40%; }
.ws-card:hover .ws-media-zoom img { transform: scale(1.29); }
.ws-body { padding: 22px 26px 26px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.ws-body h3 { margin-bottom: 6px; }
.ws-body p { color: var(--ink-soft); font-size: 0.97rem; margin-bottom: 14px; }
.ws-body .text-link { margin-top: auto; }

.ws-media-type {
  aspect-ratio: 5 / 4.1;
  display: grid; place-items: center;
  position: relative;
}
.ws-type-word {
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(2.4rem, 4.5vw, 3.2rem);
  line-height: 1.05; text-align: center;
  color: var(--rose-600);
}
.ws-type-spark { position: absolute; width: 24px; height: 24px; top: 20%; right: 22%; color: var(--coral-400); }

.ws-note { margin-top: clamp(28px, 4vw, 40px); color: var(--grey); font-size: 0.95rem; max-width: 62ch; }

/* ==========================================================================
   Portfolio
   ========================================================================== */
.portfolio { background: var(--cream); padding-block: clamp(70px, 9vw, 120px); }
.portfolio-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.chip-list {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 30px;
}
.chip-list li {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--ivory);
  border: 1px solid var(--blush-200);
  font-size: 0.88rem; font-weight: 500;
  color: var(--ink-soft);
}

.portfolio-collage {
  position: relative;
  min-height: 500px;
}
.pf-piece {
  position: absolute;
  background: var(--ivory);
  padding: 9px 9px 6px;
  border-radius: 16px;
  box-shadow: var(--shadow-paper);
}
.pf-piece img { border-radius: 10px; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 28%; }
.pf-piece figcaption { text-align: center; padding-top: 4px; }
/* stacked like papers: earlier steps sit on top so their captions stay readable */
.pf-1 { width: 36%; top: 0; left: 0; transform: rotate(-5deg); z-index: 3; }
.pf-2 { width: 38%; top: 24%; left: 24%; transform: rotate(2.5deg); z-index: 2; }
.pf-3 { width: 42%; top: 45%; right: 0; transform: rotate(-2deg); z-index: 1; }
.pf-arrow {
  position: absolute; width: 58px; height: 40px;
  top: 6%; right: 14%;
  color: var(--coral-400);
  transform: rotate(24deg);
}

/* ==========================================================================
   Tutoring
   ========================================================================== */
.tutor-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: clamp(18px, 2.4vw, 30px);
  align-items: stretch;
}
.tutor-block {
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3vw, 36px);
  display: flex; flex-direction: column;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.tutor-block:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); }
.tutor-block h3 { margin-bottom: 8px; }
.tutor-block p { color: var(--ink-soft); font-size: 0.98rem; }
.tutor-doodle { width: 46px; height: 46px; margin-bottom: 20px; color: var(--ink); opacity: 0.85; }

.tutor-academic { background: var(--blush-50); }
.exam-labels {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: auto; padding-top: 14px;
}
.exam-labels li {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em;
  padding: 6px 13px; border-radius: 999px;
  background: var(--ivory); color: var(--rose-600);
  border: 1px solid var(--blush-200);
}

.tutor-art { background: var(--ivory); border: 1px solid var(--blush-100); padding-top: 0; overflow: hidden; }
.tutor-media { margin: 0 calc(clamp(26px, 3vw, 36px) * -1) 22px; overflow: hidden; }
.tutor-media img { aspect-ratio: 5 / 4; object-fit: cover; object-position: center 35%; width: 100%; }

.tutor-tech { background: var(--sky-100); }

/* ==========================================================================
   Why
   ========================================================================== */
.why .section-head { margin-inline: auto; text-align: center; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2.4vw, 30px);
  max-width: 1120px;
  margin-inline: auto;
}
.why-item { text-align: center; padding: 10px 8px; }
.why-doodle { width: 46px; height: 44px; color: var(--coral-400); margin-bottom: 16px; }
.why-item h3 { font-size: 1.22rem; margin-bottom: 6px; }
.why-item p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery-wrap { position: relative; }
.gallery-grid {
  columns: 4;
  column-gap: clamp(10px, 1.4vw, 18px);
}
.g-item {
  break-inside: avoid;
  margin-bottom: clamp(10px, 1.4vw, 18px);
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}
.g-item img {
  width: 100%;
  transition: transform 0.6s var(--ease-out);
}
.g-item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 70%, rgba(54, 49, 49, 0.12));
  opacity: 0; transition: opacity 0.4s;
  pointer-events: none;
}
.g-item:hover img { transform: scale(1.04); }
.g-item:hover::after { opacity: 1; }
/* vary crop heights for editorial rhythm; square tiles anchor to the top so
   the artwork's caption banners are either fully shown or fully cropped */
.g-item:nth-child(3n) img { aspect-ratio: 1 / 1; object-fit: cover; object-position: center 12%; }
.g-item:nth-child(4n+1) img { aspect-ratio: 4 / 5; object-fit: cover; }

.gallery-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.gallery-overlay .btn { pointer-events: auto; }
.gallery-overlay.done { position: static; margin-top: 26px; }

/* ==========================================================================
   Enquire
   ========================================================================== */
.enquire { padding-bottom: clamp(80px, 10vw, 140px); }
.enquire-card {
  position: relative;
  background: linear-gradient(160deg, var(--blush-50), var(--blush-100));
  border-radius: 58px 44px 60px 42px / 48px 56px 42px 60px;
  padding: clamp(36px, 6vw, 80px);
}
.enquire-heart {
  position: absolute; top: -22px; right: clamp(30px, 8vw, 90px);
  width: 52px; height: 50px;
  color: var(--coral-400);
  transform: rotate(10deg);
}
.enquire-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}
.enquire-copy { position: relative; }
.enquire-copy h2 { margin-bottom: 18px; }
.enquire-copy p { color: var(--ink-soft); max-width: 44ch; }
.enquire-soft { font-size: 0.92rem; color: var(--grey); }
.enquire-arrow {
  width: 62px; height: 44px;
  color: var(--rose-600);
  transform: rotate(30deg);
  margin-top: 10px;
}

.enquire-form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; }
.field input, .field select, .field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--ivory);
  border: 1.5px solid rgba(217, 111, 120, 0.25);
  border-radius: 14px;
  padding: 13px 16px;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--rose-600);
  box-shadow: 0 0 0 3px rgba(238, 143, 146, 0.2);
}
.form-note { font-size: 0.85rem; color: var(--grey); text-align: center; margin: 4px 0 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--ink);
  color: var(--blush-50);
  padding-block: clamp(56px, 7vw, 90px) 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(36px, 6vw, 90px);
  align-items: start;
  padding-bottom: 46px;
}
.footer-mark {
  width: 130px; height: 130px;
  --logo-dots: rgba(252, 234, 231, 0.4);
  --logo-text: var(--ivory);
  --logo-tag: var(--coral-400);
}
.footer-tag { margin: 16px 0 0; font-size: 0.85rem; letter-spacing: 0.06em; color: var(--grey-light); line-height: 1.7; }

.footer-nav ul {
  list-style: none;
  display: grid; grid-template-columns: repeat(2, minmax(120px, 160px)); gap: 10px 30px;
}
.footer-nav a {
  text-decoration: none; color: var(--blush-100); font-size: 0.95rem;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--ivory); }

.footer-note { max-width: 300px; }
.footer-note p { color: var(--grey-light); font-size: 0.95rem; }

.footer-base {
  border-top: 1px solid rgba(252, 234, 231, 0.14);
  padding-top: 24px;
}
.footer-base p {
  margin: 0; font-size: 0.85rem; color: var(--grey-light);
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.footer-heart { width: 13px; height: 12px; color: var(--coral-400); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); max-width: 700px; gap: 36px 40px; }
  .gallery-grid { columns: 3; }
}

@media (max-width: 940px) {
  .site-nav { display: none; }
  .header-cta { display: none; }
  .nav-toggle { display: block; }

  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero::before { width: 100%; height: 40%; top: auto; bottom: -6%; border-radius: 48% 52% 0 0 / 18% 22% 0 0; }
  .hero-copy { text-align: center; }
  .hero-copy .lede { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-art { max-width: 480px; margin-inline: auto; width: 100%; }
  .hero-main-img { margin-inline: auto; }
  .spark-2 { right: 2px; }
  .hero-dotring { right: 0; }

  .eca-grid { grid-template-columns: repeat(2, 1fr); }

  .studio-grid { grid-template-columns: 1fr; gap: 60px; }
  .studio-collage { min-height: 0; aspect-ratio: 10 / 9; max-width: 560px; margin-inline: auto; width: 100%; }

  .ws-grid { grid-template-columns: repeat(2, 1fr); }
  .ws-grid-2 { max-width: none; }

  .portfolio-grid { grid-template-columns: 1fr; gap: 56px; }
  .portfolio-collage { min-height: 0; aspect-ratio: 10 / 8.4; max-width: 560px; margin-inline: auto; width: 100%; }

  .tutor-grid { grid-template-columns: 1fr 1fr; }
  .tutor-academic { grid-column: 1 / -1; }

  .enquire-grid { grid-template-columns: 1fr; gap: 40px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-note { grid-column: 1 / -1; max-width: none; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .brand-mark { width: 50px; height: 50px; }
  .brand-name { font-size: 1.15rem; }
  .brand-sub { font-size: 0.56rem; }

  .hero { padding-top: 26px; }
  .hero-float-card { bottom: -26px; }

  .eca-grid { grid-template-columns: 1fr; }
  .eca-tile-type { min-height: 0; padding: 26px 24px; }
  .tile-doodle { margin-bottom: 18px; }

  .ws-grid, .ws-grid-2 { grid-template-columns: 1fr; }

  .tutor-grid { grid-template-columns: 1fr; }
  .tutor-academic { grid-column: auto; }

  .why-grid { grid-template-columns: 1fr; gap: 34px; max-width: 400px; }

  .gallery-grid { columns: 2; }

  .trust-list { flex-direction: column; gap: 12px; }
  .trust-list li { justify-content: center; }
  .trust-list li + li::before { display: none; }

  .enquire-card { border-radius: 38px 30px 40px 28px / 32px 38px 28px 40px; }

  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-nav ul { grid-template-columns: repeat(2, 1fr); }
}
