/* EduCrafters — catalogue-style education layout. One stylesheet, no external fonts.
   Brand colours are exact. Gold appears only on navy. Motion switches off for reduced-motion users. */
:root {
  --navy: #082D5A;
  --navy-2: #0B3B75;
  --gold: #F9CB3C;
  --cream: #FCF5E2;
  --cream-2: #F6ECD2;
  --ink: #20242B;
  --grey: #5C6470;
  --line: #E6DCC2;
  --white: #FFFFFF;
  --mist: #DCE4EE;
  --tint: #E8EEF6;
  /* Accent colours added at the client's request (beyond the original brief).
     Bright saffron carries navy text; deep saffron and green carry white text. All pass 4.5:1. */
  --saffron: #F28C28;
  --saffron-d: #B4500A;
  --saffron-t: #FDE8D4;
  --green: #1E7B4B;
  --green-d: #16653D;
  --green-t: #DDEFE4;
  --serif: Georgia, "Times New Roman", "Noto Serif Tamil", "Tamil Sangam MN", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans Tamil", "Nirmala UI", "Latha", sans-serif;
  --wrap: 1200px;
  --r: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --lift: 0 22px 44px -22px rgba(8, 45, 90, .38);
  interpolate-size: allow-keywords;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 17px/1.6 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.navy :focus-visible, .site-footer :focus-visible, .topbar :focus-visible { outline-color: var(--gold); }
h1, h2, h3 { text-wrap: balance; font-family: var(--serif); font-weight: 700; color: var(--navy); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.7rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); margin: 0 0 .8em; display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--navy); }
.navy .eyebrow::before { background: var(--gold); }
.lead { font-size: 1.14rem; max-width: 40em; }
.muted { color: var(--grey); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: var(--white); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 999px; font: 600 1rem/1.3 var(--sans); text-decoration: none; border: 2px solid var(--navy); cursor: pointer; transition: background .25s, color .25s, transform .25s var(--ease), box-shadow .25s; }
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: .95rem; }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-2); box-shadow: var(--lift); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--white); }
.navy .btn-primary { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.navy .btn-primary:hover { background: #FFD95E; }
.navy .btn-ghost { color: var(--white); border-color: rgba(255,255,255,.7); }
.arr { display: inline-block; transition: transform .3s var(--ease); }
a:hover .arr, .course:hover .arr, .windows a:hover .arr { transform: translateX(5px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.more { font-weight: 600; text-decoration: none; }

/* Top bar + header */
.topbar { background: var(--navy); color: var(--mist); font-size: .88rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 38px; }
.topbar p { margin: 0; }
.topbar strong { color: var(--gold); }
.topbar ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
.topbar a { color: var(--white); text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
@media (max-width: 760px) { .topbar ul { display: none; } .topbar .wrap { justify-content: center; text-align: center; padding: 6px 0; } }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(252, 245, 226, .95); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
.site-header.scrolled { box-shadow: 0 10px 26px -18px rgba(8,45,90,.45); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; transition: min-height .3s; }
.site-header.scrolled .wrap { min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: 46px; height: auto; }
.brand span { font-family: var(--serif); font-weight: 700; font-size: 1.32rem; color: var(--navy); }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav a { position: relative; display: block; padding: 8px 14px; text-decoration: none; color: var(--ink); font-weight: 500; }
.nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--navy); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--navy); font-weight: 600; }
.menu { display: none; }
@media (max-width: 900px) {
  .nav, .head-cta { display: none; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; cursor: pointer; padding: 9px 18px; border: 2px solid var(--navy); border-radius: 999px; font-weight: 600; color: var(--navy); }
  .menu summary::-webkit-details-marker { display: none; }
  .menu[open] summary { background: var(--navy); color: var(--white); }
  .menu ul { position: absolute; right: 0; top: calc(100% + 10px); width: min(84vw, 290px); background: var(--white); border: 1px solid var(--line); border-radius: var(--r); list-style: none; margin: 0; padding: 8px; box-shadow: var(--lift); }
  .menu[open] ul { animation: drop .25s var(--ease); }
  .menu a { display: block; padding: 12px 14px; text-decoration: none; color: var(--ink); font-weight: 500; border-radius: 8px; }
  .menu a:hover { background: var(--cream); }
  .menu a[aria-current="page"] { background: var(--cream); color: var(--navy); font-weight: 700; }
}
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

/* Sections */
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section-tight { padding: clamp(36px, 5vw, 56px) 0; }
.section-white { background: var(--white); }
.navy { background: var(--navy); color: var(--white); position: relative; overflow: hidden; isolation: isolate; }
.navy h1, .navy h2, .navy h3 { color: var(--white); }
.navy a { color: var(--white); }
.navy .muted, .navy .eyebrow { color: #C9D4E3; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 14px 40px; margin-bottom: 36px; }
.section-head h2 { margin: 0; }
.section-head > p { margin: 0; max-width: 34em; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.section-head.center > p { max-width: 38em; }

/* Kolam: the pack's rosette, drawn line by line at low opacity */
.kolam { position: absolute; z-index: -1; pointer-events: none; color: var(--navy); opacity: .09; }
.navy .kolam, .site-footer .kolam { color: var(--white); opacity: .12; }
.kolam circle, .kolam path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .kolam circle, .js .kolam path { stroke-dashoffset: 1; animation: draw 2.6s var(--ease) forwards; }
.js .kolam :nth-child(3n+1) { animation-delay: .1s; }
.js .kolam :nth-child(3n+2) { animation-delay: .45s; }
.js .kolam :nth-child(3n) { animation-delay: .8s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
.kolam-hero { width: 720px; left: -260px; top: -200px; animation: spin 160s linear infinite; }
.kolam-quote { width: 460px; right: -140px; bottom: -180px; }
.kolam-cta { width: 360px; right: -80px; top: -120px; }
.kolam-foot { width: 420px; left: -140px; bottom: -200px; opacity: .07 !important; }
.page-head .kolam { width: 420px; right: -60px; top: -100px; }

/* Hero */
.hero { position: relative; overflow: hidden; isolation: isolate; padding: clamp(40px, 6vw, 84px) 0 clamp(56px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero .hl { font-style: normal; position: relative; white-space: nowrap; }
.hero .hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .11em; background: var(--navy); opacity: .9; border-radius: 2px; transform-origin: left; }
.js .hero .hl::after { transform: scaleX(0); animation: grow .9s .9s var(--ease) forwards; }
@keyframes grow { to { transform: scaleX(1); } }
.js .hero-text > * { opacity: 0; transform: translateY(18px); animation: rise .8s var(--ease) forwards; }
.js .hero-text > :nth-child(2) { animation-delay: .12s; }
.js .hero-text > :nth-child(3) { animation-delay: .26s; }
.js .hero-text > :nth-child(4) { animation-delay: .42s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.finder-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px 20px; box-shadow: var(--lift); margin-top: 8px; max-width: 620px; }
.finder-title { font-family: var(--serif); font-weight: 700; color: var(--navy); font-size: 1.12rem; margin: 0 0 10px; }
.finder-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
.finder-row label span { display: block; font-size: .85rem; font-weight: 600; color: var(--grey); margin-bottom: 4px; }
.finder-row select { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); padding: 11px 36px 11px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23082D5A' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center; appearance: none; cursor: pointer; }
.finder-row select:hover, .finder-row select:focus { border-color: var(--navy); }
@media (max-width: 560px) { .finder-row { grid-template-columns: 1fr; } }

.hero-art { margin: 0; position: relative; padding: 0 0 0 24px; }
.arch { border-radius: 999px 999px var(--r) var(--r); overflow: hidden; position: relative; background: var(--navy); }
.arch img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hero-art .arch { outline: 2px solid var(--navy); outline-offset: 10px; }
.js .hero-art .arch { animation: photo 1.1s .2s var(--ease) both; }
@keyframes photo { from { opacity: 0; transform: translateY(30px) scale(.97); } }
.chip-float { position: absolute; margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; font-size: .9rem; line-height: 1.3; color: var(--ink); box-shadow: var(--lift); }
.chip-float strong { display: block; font-family: var(--serif); font-size: 1.7rem; color: var(--navy); line-height: 1.05; }
.chip-float.c1 { left: -10px; bottom: 54px; z-index: 3; }
.chip-float.c2 { z-index: 3; right: -14px; top: 64px; background: var(--navy); color: var(--mist); border-color: var(--navy); }
.chip-float.c2 strong { color: var(--gold); }
.js .chip-float.c1 { animation: rise .8s .9s var(--ease) both, bob 6s 2s ease-in-out infinite; opacity: 0; transform: translateY(14px); }
.js .chip-float.c2 { animation: rise .8s 1.1s var(--ease) both, bob 7s 2.4s ease-in-out infinite; opacity: 0; transform: translateY(14px); }
@keyframes bob { 50% { transform: translateY(-7px); } }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 440px; margin: 10px auto 0; padding: 0; }
  .arch img { aspect-ratio: 1 / 1; }
  .chip-float.c1 { left: -6px; } .chip-float.c2 { right: -6px; }
}

/* Trust strip */
.trust { background: var(--navy); color: var(--mist); }
.trust ul { list-style: none; margin: 0; padding: 26px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.trust li { display: flex; flex-direction: column; padding-left: 18px; border-left: 2px solid rgba(249, 203, 60, .55); }
.trust strong { font-family: var(--serif); font-size: clamp(1.8rem, 3.6vw, 2.5rem); color: var(--gold); line-height: 1.05; font-variant-numeric: tabular-nums; }
.trust span { font-size: .93rem; }
@media (max-width: 760px) { .trust ul { grid-template-columns: repeat(2, 1fr); row-gap: 22px; } }

/* Reveal on scroll (JS only; nothing is hidden without it) */
.js [data-reveal], .js [data-stagger] > * { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-reveal].in, .js [data-stagger].in > * { opacity: 1; transform: none; }

/* Family tiles: full photo cards */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile { position: relative; display: block; height: 100%; min-height: 280px; border-radius: var(--r); overflow: hidden; text-decoration: none; background: var(--navy); isolation: isolate; transition: transform .4s var(--ease), box-shadow .4s; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform .9s var(--ease); }
.tile:hover { transform: translateY(-6px); box-shadow: var(--lift); }
.tile:hover img { transform: scale(1.08); }
.tile-label { position: absolute; left: 10px; right: 10px; bottom: 10px; background: var(--navy); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; transition: background .3s; }
.tile:hover .tile-label { background: var(--navy-2); }
.tile-name { font-family: var(--serif); font-weight: 700; color: var(--white); line-height: 1.2; font-size: 1rem; }
.tile-count { font-size: .84rem; color: var(--gold); margin-top: 3px; font-weight: 600; }
@media (max-width: 1060px) { .tiles { grid-template-columns: repeat(3, 1fr); } .tile { min-height: 240px; } }
@media (max-width: 560px) { .tiles { grid-template-columns: repeat(2, 1fr); gap: 12px; } .tile { min-height: 200px; } }

/* Photo mosaic */
.mosaic { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 14px; grid-auto-flow: dense; }
.mosaic li { position: relative; border-radius: var(--r); overflow: hidden; }
.mosaic .m-big { grid-column: span 2; grid-row: span 2; }
.mosaic .m-wide { grid-column: span 2; }
.mosaic a { display: block; height: 100%; text-decoration: none; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.mosaic a:hover img { transform: scale(1.07); }
.mosaic span { position: absolute; left: 10px; bottom: 10px; background: var(--navy); color: var(--white); font-size: .84rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; transform: translateY(4px); opacity: .95; transition: transform .3s var(--ease); }
.mosaic a:hover span { transform: none; }
@media (max-width: 860px) { .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; } }

/* Hero photo bubbles */
.bubble { position: absolute; width: 96px; height: 96px; border-radius: 50%; overflow: hidden; border: 5px solid var(--white); box-shadow: var(--lift); z-index: 2; }
.bubble img { width: 100%; height: 100%; object-fit: cover; }
.bubble.b1 { left: -36px; top: 22%; width: 108px; height: 108px; }
.bubble.b2 { right: -30px; bottom: 26%; }
.bubble.b3 { left: 34%; top: -26px; width: 78px; height: 78px; }
.js .bubble { animation: pop .7s var(--ease) both, bob 7s ease-in-out infinite; }
.js .bubble.b1 { animation-delay: .6s, 1.6s; }
.js .bubble.b2 { animation-delay: .8s, 2.2s; }
.js .bubble.b3 { animation-delay: 1s, 2.8s; }
@keyframes pop { from { opacity: 0; transform: scale(.4); } }
@media (max-width: 900px) { .bubble.b1 { left: -14px; width: 84px; height: 84px; } .bubble.b2 { right: -10px; width: 76px; height: 76px; } .bubble.b3 { display: none; } }

/* Colour photo behind a navy section, toned down so text stays readable */
.bg-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .3; }

/* Tilted photos in page headers */
.fan { position: absolute; right: max(20px, calc((100% - var(--wrap)) / 2)); top: 50%; width: 330px; height: 240px; transform: translateY(-50%); }
.fan img { position: absolute; width: 150px; height: 150px; object-fit: cover; border-radius: 12px; border: 5px solid var(--white); box-shadow: 0 18px 36px -16px rgba(0,0,0,.55); transition: transform .5s var(--ease); }
.fan .f1 { left: 0; top: 46px; transform: rotate(-8deg); }
.fan .f2 { left: 92px; top: 0; transform: rotate(3deg); z-index: 1; width: 160px; height: 160px; }
.fan .f3 { left: 180px; top: 70px; transform: rotate(9deg); }
.page-head:hover .fan .f1 { transform: rotate(-12deg) translateX(-8px); }
.page-head:hover .fan .f3 { transform: rotate(13deg) translateX(8px); }
.js .fan img { animation: pop .7s var(--ease) both; }
.js .fan .f2 { animation-delay: .15s; } .js .fan .f3 { animation-delay: .3s; }
.page-head .wrap > * { max-width: min(620px, 100%); }
@media (max-width: 1000px) { .fan { display: none; } }

/* Course cards */
.courses { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.course { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s, border-color .3s; }
.course:hover { transform: translateY(-6px); box-shadow: var(--lift); border-color: var(--navy); }
.course-img { position: relative; overflow: hidden; }
.course-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .9s var(--ease); }
.course:hover .course-img img { transform: scale(1.07); }
.badge { position: absolute; left: 12px; top: 12px; background: var(--navy); color: var(--white); font-size: .8rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.course-body { padding: 18px 20px 0; display: flex; flex-direction: column; flex: 1; }
.course-level { font-size: .85rem; font-weight: 600; color: var(--navy); background: var(--tint); align-self: flex-start; padding: 2px 10px; border-radius: 999px; margin-bottom: 10px; }
.course h3 { font-size: 1.22rem; margin-bottom: 8px; }
.course h3 a { text-decoration: none; }
.course h3 a::after { content: ""; position: absolute; inset: 0; }
.course-body > p:not(.course-level):not(.course-foot) { color: var(--ink); font-size: .98rem; }
.course-foot { margin: auto -20px 0; padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; font-size: .9rem; color: var(--grey); }
.course-foot .go { color: var(--navy); font-weight: 600; }
@media (max-width: 960px) { .courses { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .courses { grid-template-columns: 1fr; } }

/* Founder */
.founder-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.arch-sm img { aspect-ratio: 4 / 5; }
.founder .arch { outline: 2px solid var(--navy); outline-offset: 10px; max-width: 420px; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 12px; }
.ticks.two { grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 12px; height: 7px; border-left: 2.5px solid var(--navy); border-bottom: 2.5px solid var(--navy); transform: rotate(-45deg); }
.navy .ticks li::before { border-color: var(--gold); }
@media (max-width: 860px) { .founder-grid { grid-template-columns: 1fr; } .founder .arch { max-width: 320px; margin: 0 auto; } .ticks.two { grid-template-columns: 1fr; } }

/* Plan by window */
.windows { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.windows a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 22px; border: 1px solid rgba(255,255,255,.2); border-radius: var(--r); text-decoration: none; background: rgba(255,255,255,.04); transition: background .3s, transform .4s var(--ease), border-color .3s; }
.windows a:hover { background: rgba(255,255,255,.09); border-color: var(--gold); transform: translateY(-5px); }
.windows strong { font-family: var(--serif); font-size: 1.3rem; color: var(--white); }
.windows span { color: var(--mist); font-size: .97rem; }
.windows em { font-style: normal; font-weight: 600; color: var(--gold); margin-top: auto; padding-top: 10px; }
@media (max-width: 960px) { .windows { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .windows { grid-template-columns: 1fr; } }

/* Steps */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; }
.steps li { counter-increment: step; position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 20px 20px; transition: transform .4s var(--ease), box-shadow .4s, border-color .3s; }
.steps li:hover { transform: translateY(-4px); box-shadow: var(--lift); border-color: var(--navy); }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--gold); font-family: var(--serif); font-weight: 700; font-size: 1.15rem; margin-bottom: 12px; position: relative; z-index: 1; outline: 6px solid var(--cream); }
.section-white .steps li::before { outline-color: var(--white); }
.steps-line::before { content: ""; position: absolute; left: 42px; right: 42px; top: 44px; height: 2px; background: var(--navy); opacity: .25; transform-origin: left; transition: transform 1.4s .3s var(--ease); }
.js .steps-line::before { transform: scaleX(0); }
.js .steps-line.in::before { transform: scaleX(1); }
.steps h3 { font-size: 1.12rem; margin-bottom: 4px; }
.steps p { margin: 0; font-size: .97rem; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } .steps-line::before { display: none; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Quote + photos */
.quote { padding: clamp(56px, 7vw, 96px) 0; }
.quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.quote blockquote { margin: 0 0 28px; }
.quote blockquote p { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.35; color: var(--navy); margin: 0; }
.quote blockquote p::before { content: "“"; display: block; font-size: 3.4em; line-height: .55; color: var(--navy); opacity: .25; }
.photo-stack { position: relative; padding: 0 0 48px; }
.photo-stack > img:first-child { border-radius: var(--r); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-stack .inset { position: absolute; width: 48%; right: -14px; bottom: 0; border-radius: var(--r); border: 6px solid var(--white); box-shadow: var(--lift); aspect-ratio: 16 / 10; object-fit: cover; transition: transform .6s var(--ease); }
.photo-stack:hover .inset { transform: translateY(-6px) rotate(-1.5deg); }
.points { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.points li { padding-left: 20px; border-left: 3px solid var(--navy); }
.points strong { display: block; font-family: var(--serif); font-size: 1.14rem; color: var(--navy); margin-bottom: 2px; }
@media (max-width: 860px) { .quote-grid { grid-template-columns: 1fr; } .photo-stack .inset { right: 8px; } }

/* Split blocks (inner pages) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split.flip > :first-child { order: 2; }
.split img { border-radius: var(--r); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }

.calendar { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.calendar li { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--navy); border-radius: var(--r); padding: 18px 20px; transition: transform .4s var(--ease), box-shadow .4s; }
.calendar li:hover { transform: translateY(-4px); box-shadow: var(--lift); }
.calendar strong { display: block; font-family: var(--serif); color: var(--navy); font-size: 1.15rem; }
.calendar a { font-weight: 600; font-size: .95rem; }
@media (max-width: 640px) { .calendar { grid-template-columns: 1fr; } }

.beliefs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; list-style: none; margin: 0; padding: 0; }
.beliefs li { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: var(--r); padding: 22px; transition: transform .4s var(--ease), box-shadow .4s; }
.beliefs li:hover { transform: translateY(-4px); box-shadow: var(--lift); }
.beliefs h3 { margin-bottom: 6px; }
.beliefs p { margin: 0; }
@media (max-width: 860px) { .beliefs { grid-template-columns: 1fr; } }

.cta-band { padding: clamp(44px, 6vw, 68px) 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.cta-band h2 { margin: 0 0 4px; }
.cta-band p { margin: 0; color: var(--mist); max-width: 36em; }

/* Page header */
.page-head { padding: clamp(40px, 5vw, 72px) 0 clamp(44px, 5vw, 72px); }
.page-head h1 { max-width: 18em; }
.page-head .lead { color: var(--mist); margin-bottom: 0; }
.crumbs { font-size: .9rem; color: #C9D4E3; margin: 0 0 12px; }
.crumbs a { color: var(--white); }
.js .page-head .wrap > * { opacity: 0; transform: translateY(16px); animation: rise .8s var(--ease) forwards; }
.js .page-head .wrap > :nth-child(2) { animation-delay: .1s; }
.js .page-head .wrap > :nth-child(3) { animation-delay: .22s; }

/* Programmes catalogue */
.catalogue { display: grid; grid-template-columns: 270px 1fr; gap: 36px; align-items: start; padding: 36px 0 72px; }
.catalogue:has(.sidebar[hidden]) { grid-template-columns: 1fr; }
.sidebar { position: sticky; top: 88px; }
.filters { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--lift); }
.filters > summary { list-style: none; padding: 16px 20px; font-family: var(--serif); font-weight: 700; color: var(--navy); font-size: 1.15rem; border-bottom: 1px solid var(--line); }
.filters > summary::-webkit-details-marker { display: none; }
.filters form { padding: 6px 20px 16px; max-height: calc(100vh - 170px); overflow: auto; }
.filters fieldset { border: 0; padding: 12px 0 8px; margin: 0; border-bottom: 1px solid var(--line); }
.filters fieldset:last-child { border-bottom: 0; }
.filters legend { font-weight: 700; font-size: .9rem; padding: 12px 0 6px; color: var(--ink); float: left; width: 100%; }
.opt { display: flex; align-items: center; gap: 10px; padding: 6px 8px; margin: 0 -8px; border-radius: 8px; cursor: pointer; font-size: .96rem; clear: both; transition: background .2s; }
.opt:hover { background: var(--cream); }
.opt input { accent-color: var(--navy); width: 17px; height: 17px; margin: 0; flex: none; }
.opt span { flex: 1; }
.opt b { font-weight: 600; font-size: .8rem; color: var(--grey); background: var(--cream); border-radius: 999px; padding: 1px 8px; }
.opt:has(input:checked) { background: var(--tint); color: var(--navy); font-weight: 600; }
@media (max-width: 900px) {
  .catalogue { grid-template-columns: 1fr; gap: 18px; padding-top: 0; }
  .sidebar { position: relative; top: auto; margin-top: -26px; z-index: 2; }
  .filters > summary { cursor: pointer; display: flex; justify-content: space-between; }
  .filters > summary::after { content: "+"; font-family: var(--sans); font-weight: 400; transition: transform .3s; }
  .filters[open] > summary::after { transform: rotate(45deg); }
  .filters form { max-height: none; }
}
.results-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 8px; }
.results-bar p { margin: 0; font-weight: 600; }
.bump { animation: bump .4s var(--ease); }
@keyframes bump { 40% { transform: scale(1.05); } }
.linkbtn { font: inherit; background: none; border: 0; color: var(--navy); text-decoration: underline; cursor: pointer; padding: 4px; }
.js .nojs-only { display: none; }
.jump { list-style: none; margin: 8px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: .95rem; }
.jump a { display: inline-block; padding: 6px 14px; border: 1px solid var(--line); background: var(--white); border-radius: 999px; font-weight: 600; text-decoration: none; }
.jump span { color: var(--grey); font-weight: 400; }

.family { padding-top: 26px; }
.family-head { display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: center; margin-bottom: 16px; }
.family-head img { border-radius: var(--r); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.family-head h2 { margin-bottom: 4px; font-size: clamp(1.45rem, 3vw, 1.9rem); }
.family-head p { margin: 0; }
@media (max-width: 600px) { .family-head { grid-template-columns: 84px 1fr; gap: 14px; } .family-head p { font-size: .94rem; } }

.prog { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 10px; transition: border-color .25s, box-shadow .3s; }
.prog:hover, .prog[open] { border-color: var(--navy); }
.prog[open] { box-shadow: var(--lift); }
.prog.show { animation: rise .45s var(--ease); }
.prog > summary { list-style: none; cursor: pointer; padding: 16px 58px 16px 20px; position: relative; border-radius: var(--r); }
.prog > summary::-webkit-details-marker { display: none; }
.prog > summary::after { content: "+"; position: absolute; right: 18px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; background: var(--cream); color: var(--navy); display: grid; place-items: center; font-size: 1.35rem; line-height: 1; transition: transform .3s var(--ease), background-color .3s, color .3s; }
.prog > summary:hover::after { background: var(--navy); color: var(--white); }
.prog[open] > summary::after { transform: rotate(135deg); background: var(--navy); color: var(--white); }
.prog h3 { display: block; margin: 0 0 6px; font-size: 1.14rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; }
.tag { padding: 2px 10px; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); color: var(--ink); }
.tag-level { background: var(--tint); border-color: #CBD7E7; color: var(--navy); font-weight: 600; }
.prog::details-content { block-size: 0; overflow: hidden; transition: block-size .45s var(--ease), content-visibility .45s allow-discrete; }
.prog[open]::details-content { block-size: auto; }
.prog-body { padding: 4px 20px 22px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 220px; gap: 26px; }
.prog-body.no-img { grid-template-columns: 1fr; }
.prog-body img { border-radius: var(--r); aspect-ratio: 4 / 3; object-fit: cover; margin-top: 18px; }
.prog-body h4 { font-family: var(--sans); font-size: .95rem; margin: 1em 0 .4em; color: var(--navy); }
.prog-body p { margin-top: 1em; }
.prog-body ul { margin: 0 0 1em; padding-left: 1.2em; }
.prog-body li { margin-bottom: 6px; }
.prog-body .level { font-weight: 600; }
@media (max-width: 700px) { .prog-body { grid-template-columns: 1fr; } .prog-body img { order: -1; max-width: 320px; } }
.empty { background: var(--white); border: 1px dashed var(--grey); border-radius: var(--r); padding: 18px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
.form-frame { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 8px; box-shadow: var(--lift); }
.form-frame iframe { width: 100%; height: 1100px; border: 0; display: block; }
.asking { background: var(--tint); border-left: 4px solid var(--navy); padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; animation: rise .5s var(--ease); }
.direct { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.direct dl { margin: 0; display: grid; gap: 14px; }
.direct dt { font-size: .88rem; font-weight: 600; color: var(--grey); }
.direct dd { margin: 0; font-size: 1.1rem; }
.note { background: var(--navy); color: var(--white); border-radius: var(--r); padding: 20px 22px; margin-top: 16px; }
.note strong { color: var(--gold); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } .form-frame iframe { height: 1250px; } }

/* Footer */
.site-footer { position: relative; overflow: hidden; isolation: isolate; background: var(--navy); color: var(--mist); padding: 56px 0 28px; font-size: .97rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.1fr 1.3fr 1fr 1fr; gap: 28px; }
.site-footer img { width: 92px; margin-bottom: 12px; }
.site-footer h2 { font-family: var(--sans); font-size: .95rem; color: var(--white); margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.site-footer a { color: var(--mist); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.tagline { color: var(--gold); font-weight: 600; letter-spacing: .12em; font-size: .82rem; margin: 0; }
.legal { border-top: 1px solid rgba(255,255,255,.18); margin-top: 32px; padding-top: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; font-size: .9rem; }
@media (max-width: 900px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } .site-footer .cols > :first-child { grid-column: 1 / -1; } }

@media print {
  .topbar, .site-header, .site-footer, .sidebar, .cta-band, .prog-ask, .skip, .kolam { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .navy { background: #fff; color: #000; }
  .navy h1, .navy h2 { color: var(--navy); }
  .catalogue { display: block; }
  .prog { break-inside: avoid; border: 0; border-bottom: 1px solid #ccc; box-shadow: none; }
  .prog-body img { display: none; }
  [data-reveal], [data-stagger] > * { opacity: 1 !important; transform: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal], .js [data-stagger] > *, .js .hero-text > *, .js .page-head .wrap > *, .js .chip-float, .js .hero-art .arch, .js .bubble, .js .fan img { opacity: 1 !important; transform: none !important; }
  .js .kolam circle, .js .kolam path { stroke-dashoffset: 0; }
  .js .hero .hl::after, .js .steps-line::before { transform: none; }
}

/* ---------- Colour accents: saffron and green ---------- */
.fam-festival { --acc: var(--saffron); --acc-ink: var(--navy); }
.fam-language-media { --acc: var(--navy-2); --acc-ink: var(--white); }
.fam-craft { --acc: var(--green); --acc-ink: var(--white); }
.fam-culture { --acc: var(--saffron-d); --acc-ink: var(--white); }
.fam-journeys { --acc: var(--green-d); --acc-ink: var(--white); }
.fam-camps, .fam-navy { --acc: var(--navy); --acc-ink: var(--white); }

.tile-label { background: var(--acc, var(--navy)); }
.tile:hover .tile-label { background: var(--acc, var(--navy-2)); filter: brightness(1.08); }
.tile-name, .tile-count { color: var(--acc-ink, var(--white)); }
.fam-camps .tile-count, .fam-language-media .tile-count { color: var(--gold); }
.course { border-top: 5px solid var(--acc, var(--navy)); }
.course .badge { background: var(--acc, var(--navy)); color: var(--acc-ink, var(--white)); }
.mosaic li span { background: var(--acc, var(--navy)); color: var(--acc-ink, var(--white)); }
.family-head h2 { display: inline-block; padding-bottom: 4px; border-bottom: 4px solid var(--acc, var(--navy)); }
.family-head img { outline: 3px solid var(--acc, var(--navy)); outline-offset: 3px; }
.family .prog { border-left: 5px solid var(--acc, var(--navy)); }
.family .prog:hover, .family .prog[open] { border-color: var(--acc); border-left-color: var(--acc); }

.eyebrow::before { background: var(--saffron); height: 3px; }
.hero .hl::after { background: var(--saffron); opacity: 1; }
.quote blockquote p::before { color: var(--saffron); opacity: 1; }
.points li { border-left-color: var(--green); }
.points li:nth-child(2n) { border-left-color: var(--saffron); }
.ticks li::before { border-color: var(--green); }
.trust { border-bottom: 5px solid var(--saffron); }
.trust li:nth-child(4n+1) { border-left-color: var(--saffron); }
.trust li:nth-child(4n+2) { border-left-color: #4FB57F; }
.trust li:nth-child(4n+3) { border-left-color: var(--gold); }
.trust li:nth-child(4n+4) { border-left-color: var(--saffron); }

.steps li:nth-child(4n+1)::before { background: var(--saffron); color: var(--navy); }
.steps li:nth-child(4n+2)::before { background: var(--green); color: var(--white); }
.steps li:nth-child(4n+3)::before { background: var(--navy); color: var(--gold); }
.steps li:nth-child(4n+4)::before { background: var(--saffron-d); color: var(--white); }
.steps-line::before { background: var(--saffron); opacity: .5; }

.windows li:nth-child(2n+1) a { border-top: 4px solid var(--saffron); }
.windows li:nth-child(2n) a { border-top: 4px solid #4FB57F; }
.calendar li:nth-child(2n+1) { border-left-color: var(--saffron); }
.calendar li:nth-child(2n) { border-left-color: var(--green); }
.beliefs li:nth-child(3n+1) { border-top-color: var(--saffron); }
.beliefs li:nth-child(3n+2) { border-top-color: var(--green); }

.tag-fest { background: var(--saffron-t); border-color: #F6C9A0; color: #8A3D06; font-weight: 600; }
.tag-mtl { background: var(--green-t); border-color: #B6DBC4; color: var(--green-d); font-weight: 600; }
.tag-post { background: var(--tint); border-color: #CBD7E7; color: var(--navy); }
.course-level { background: var(--green-t); color: var(--green-d); }

.chip-float.c1 { border-top: 4px solid var(--green); }
.chip-float.c1 strong { color: var(--green); }
.bubble.b1 { border-color: var(--saffron); }
.bubble.b2 { border-color: var(--green); }
.bubble.b3 { border-color: var(--white); }
.finder-box { border-top: 5px solid var(--saffron); }
.finder-row .btn-primary { background: var(--green); border-color: var(--green); }
.finder-row .btn-primary:hover { background: var(--green-d); border-color: var(--green-d); }
.filters { border-top: 5px solid var(--green); }
.opt input { accent-color: var(--green); }
.opt:has(input:checked) { background: var(--green-t); color: var(--green-d); }
.results-bar { border-left: 5px solid var(--saffron); }
.fan .f1 { border-color: var(--saffron); }
.fan .f3 { border-color: #4FB57F; }
.asking { background: var(--saffron-t); border-left-color: var(--saffron); }
.direct { border-top: 5px solid var(--green); }
.site-footer { border-top: 5px solid var(--saffron); }
.prog-ask .btn-primary { background: var(--green); border-color: var(--green); }
.prog-ask .btn-primary:hover { background: var(--green-d); border-color: var(--green-d); }
.head-cta.btn-primary:hover { background: var(--green); border-color: var(--green); }
.nav a::after { background: var(--saffron); height: 3px; }

/* ---------- About page ---------- */
.bio-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.bio-art { padding: 0; max-width: 440px; justify-self: center; }
.arch-saffron { outline: 3px solid var(--saffron) !important; outline-offset: 10px; }
.bio-art .arch img { aspect-ratio: 4 / 5; }
.bio-art .chip-float.c1 { left: -24px; bottom: 40px; }
.bio-art .bubble.b1 { top: 12%; left: -40px; }
.bio-art .bubble.b2 { right: -26px; bottom: 30%; }
.pull { font-family: var(--serif); font-size: 1.2rem; color: var(--navy); border-left: 5px solid var(--saffron); padding: 6px 0 6px 18px; background: var(--saffron-t); border-radius: 0 10px 10px 0; }
@media (max-width: 860px) { .bio-grid { grid-template-columns: 1fr; } .bio-art { margin-top: 20px; } }

.record-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.record-photo img { border-radius: var(--r); aspect-ratio: 4 / 5; object-fit: cover; outline: 3px solid var(--gold); outline-offset: 8px; }
.creds { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.creds li { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 12px; transition: transform .35s var(--ease); }
.creds li:hover { transform: translateX(6px); }
.creds b { font-family: var(--serif); font-size: 1.5rem; line-height: 1; flex: none; width: 40px; }
.creds .cc1 { background: var(--saffron); color: var(--navy); }
.creds .cc2 { background: var(--green); color: var(--white); }
.creds .cc3 { background: var(--white); color: var(--navy); }
.creds .cc4 { background: var(--saffron-d); color: var(--white); }
.creds .cc5 { background: #2A5C99; color: var(--white); }
.creds .cc3 b { color: var(--saffron-d); }
@media (max-width: 860px) { .record-grid { grid-template-columns: 1fr; } .record-photo { max-width: 420px; } }

.belief-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.belief-cards li { border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: transform .4s var(--ease), box-shadow .4s; }
.belief-cards li:hover { transform: translateY(-6px); box-shadow: var(--lift); }
.belief-cards img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.belief-cards div { padding: 22px; flex: 1; }
.belief-cards h3 { font-size: 1.35rem; margin-bottom: 8px; }
.belief-cards p { margin: 0; }
.bc1 { background: var(--saffron); color: var(--navy); }
.bc1 h3 { color: var(--navy); }
.bc2 { background: var(--green); color: var(--white); }
.bc2 h3 { color: var(--white); }
.bc3 { background: var(--navy); color: var(--mist); }
.bc3 h3 { color: var(--gold); }
@media (max-width: 860px) { .belief-cards { grid-template-columns: 1fr; } }

.strip-sec { padding: 0; }
.strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); }
.strip li { overflow: hidden; border-bottom: 6px solid var(--acc, var(--navy)); }
.strip a { display: block; }
.strip img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .8s var(--ease); }
.strip a:hover img { transform: scale(1.1); }
@media (max-width: 700px) { .strip { grid-template-columns: repeat(3, 1fr); } }

/* ---------- For schools page ---------- */
.steps-colour li:nth-child(4n+1) { background: var(--saffron-t); border-color: #F6C9A0; }
.steps-colour li:nth-child(4n+2) { background: var(--green-t); border-color: #B6DBC4; }
.steps-colour li:nth-child(4n+3) { background: var(--tint); border-color: #CBD7E7; }
.steps-colour li:nth-child(4n+4) { background: #F9DFC9; border-color: #EDBE98; }
.green-band { background: var(--green-t); }
.green-band .eyebrow { color: var(--green-d); }
.needs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.needs li { display: flex; align-items: center; gap: 14px; background: var(--white); border-radius: 12px; padding: 14px 16px; border: 1px solid #B6DBC4; transition: transform .35s var(--ease); }
.needs li:hover { transform: translateX(6px); }
.needs b { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; font-family: var(--serif); font-size: 1.1rem; }
.needs .nd1 b { background: var(--saffron); color: var(--navy); }
.needs .nd2 b { background: var(--green); color: var(--white); }
.needs .nd3 b { background: var(--navy); color: var(--gold); }
.needs .nd4 b { background: var(--saffron-d); color: var(--white); }
.photo-stack .inset.sq { aspect-ratio: 1; width: 38%; }

.cal-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cal-cards a { display: flex; flex-direction: column; height: 100%; border-radius: var(--r); overflow: hidden; text-decoration: none; transition: transform .4s var(--ease), box-shadow .4s; }
.cal-cards a:hover { transform: translateY(-6px); box-shadow: var(--lift); }
.cal-cards img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s var(--ease); }
.cal-cards a:hover img { transform: scale(1.06); }
.cal-cards div { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.cal-cards strong { font-family: var(--serif); font-size: 1.3rem; }
.cal-cards em { font-style: normal; font-weight: 700; margin-top: auto; padding-top: 8px; }
.cal-mtl a { background: var(--green); color: var(--white); }
.cal-mtl em { color: var(--white); }
.cal-fest a { background: var(--saffron); color: var(--navy); }
.cal-post a { background: var(--navy); color: var(--mist); }
.cal-post strong { color: var(--white); }
.cal-post em { color: var(--gold); }
.cal-any a { background: var(--saffron-d); color: var(--white); }
@media (max-width: 1000px) { .cal-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cal-cards { grid-template-columns: 1fr; } }

.day-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.day-photos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.day-photos .d-big { grid-column: span 2; }
.day-photos img { width: 100%; border-radius: var(--r); object-fit: cover; aspect-ratio: 1; }
.day-photos .d-big img { aspect-ratio: 16 / 9; }
.day-photos li:nth-child(2) img { outline: 3px solid var(--saffron); outline-offset: -3px; }
.day-photos li:nth-child(3) img { outline: 3px solid #4FB57F; outline-offset: -3px; }
@media (max-width: 860px) { .day-grid { grid-template-columns: 1fr; } }

/* ---------- Contact page ---------- */
.contact-sec { background: var(--saffron-t); }
.contact-sec .form-frame { border-top: 6px solid var(--saffron); }
.asking { background: var(--green-t); border-left: 5px solid var(--green); color: var(--ink); padding: 12px 16px; border-radius: 0 10px 10px 0; }
.reach-h { font-size: 1.3rem; margin-bottom: 14px; }
.reach { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.reach li { border-radius: 14px; padding: 16px 20px; display: grid; gap: 2px; transition: transform .35s var(--ease); }
.reach li:hover { transform: translateX(6px); }
.reach span { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.reach a, .reach b { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; color: inherit; text-decoration-thickness: 2px; text-underline-offset: 4px; overflow-wrap: anywhere; }
.r-mail { background: var(--saffron); color: var(--navy); }
.r-tel { background: var(--green); color: var(--white); }
.r-uen { background: var(--navy); color: var(--white); }
.r-uen span { color: var(--gold); opacity: 1; }
.note-card { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; background: var(--green-d); color: var(--white); border-radius: 14px; padding: 14px; }
.note-card img { width: 96px; height: 96px; border-radius: 10px; object-fit: cover; }
.note-card p { margin: 0; font-size: .95rem; }
.note-card strong { color: var(--gold); }
.reach-photos { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.reach-photos li { border-radius: 12px; overflow: hidden; border-bottom: 5px solid var(--acc, var(--navy)); }
.reach-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; transition: transform .8s var(--ease); }
.reach-photos li:hover img { transform: scale(1.08); }
section { overflow-x: clip; }
@media (max-width: 860px) { .reach-side { order: -1; } }

/* ---------- Programmes page colour ---------- */
.fam-festival { --acc-t: var(--saffron-t); }
.fam-language-media, .fam-camps { --acc-t: var(--tint); }
.fam-craft, .fam-journeys { --acc-t: var(--green-t); }
.fam-culture { --acc-t: #FBE3D2; }

.fam-jump { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.fam-jump a { display: flex; flex-direction: column; height: 100%; border-radius: 14px; overflow: hidden; text-decoration: none; background: var(--acc); color: var(--acc-ink); transition: transform .35s var(--ease), box-shadow .35s; }
.fam-jump a:hover { transform: translateY(-4px); box-shadow: var(--lift); }
.fam-jump a.on { outline: 3px solid var(--ink); outline-offset: 3px; }
.fam-jump img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.fam-jump span { padding: 8px 10px 10px; display: flex; flex-direction: column; flex: 1; gap: 2px; }
.fam-jump strong { font-size: .86rem; line-height: 1.25; }
.fam-jump em { font-style: normal; font-family: var(--serif); font-weight: 700; font-size: 1.25rem; margin-top: auto; }
.fam-language-media .fam-jump em, .fam-jump .fam-language-media em, .fam-jump .fam-camps em { color: var(--gold); }
@media (max-width: 1100px) { .fam-jump { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .fam-jump img { aspect-ratio: 16 / 9; } }

.results-bar { background: var(--saffron); border-color: var(--saffron); color: var(--navy); }
.results-bar .linkbtn { color: var(--navy); }

.filters > summary { background: var(--navy); color: var(--gold); border-radius: var(--r) var(--r) 0 0; border-bottom: 0; }
.filters:not([open]) > summary { border-radius: var(--r); }
.filters fieldset:nth-child(1) legend { color: var(--saffron-d); }
.filters fieldset:nth-child(2) legend { color: var(--green-d); }
.filters fieldset:nth-child(3) legend { color: var(--navy); }
.opt .dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--acc); }
.opt:has(input:checked) { background: var(--saffron-t); }
.opt input { accent-color: var(--saffron-d); }

.family-head { background: var(--acc); color: var(--acc-ink); border-radius: var(--r); padding: 14px; }
.family-head h2 { color: var(--acc-ink); border-bottom-color: currentColor; }
.family-head .muted { color: inherit; opacity: .85; }
.family-head img { outline-color: var(--acc-ink); outline-offset: -3px; }
.fam-language-media .family-head h2, .fam-camps .family-head h2 { color: var(--gold); }

.prog > summary { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; padding-left: 14px; }
.prog .thumb { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.prog:hover > summary, .prog[open] > summary { background: var(--acc-t, var(--cream)); }
.prog[open] > summary { border-radius: var(--r) var(--r) 0 0; }
.family .prog > summary::after { background: var(--acc-t, var(--cream)); }
.family .prog > summary:hover::after, .family .prog[open] > summary::after { background: var(--acc); color: var(--acc-ink); }
.prog-body h4 { color: var(--acc-ink-text, var(--navy)); }
.prog-body ul li::marker { color: var(--acc); }
@media (max-width: 600px) { .prog > summary { grid-template-columns: 48px 1fr; gap: 12px; } .prog .thumb { width: 48px; height: 48px; } }
@media print { .fam-jump, .prog .thumb { display: none !important; } }
