/* ==========================================================================
   OLINO UNIFORMS — "Weaving the Uniformity"
   Single-page marketing site + "Some of the schools we supply" page
   --------------------------------------------------------------------------
   1 Tokens   2 Base   3 Type   4 Layout   5 Buttons   6 Header & menu
   7 Intro    8 Hero   9 Home sections   10 Clients page   11 Form
   12 Footer & mobile bar   13 Motion   14 Responsive
   ========================================================================== */

/* 1. TOKENS ---------------------------------------------------------------- */
:root {
  --plum-950: #170819;
  --plum-900: #210b25;
  --plum-800: #39143f;
  --plum:     #68256c;   /* brochure cover / logo */
  --lilac:    #9b89a4;   /* logo tie */
  --lilac-300:#cbbbda;   /* icon tie */
  --lilac-100:#efe9f2;

  --paper: #fcfaf7;
  --ivory: #f6f2ec;
  --linen: #ece5dc;
  --ink:   #1d1420;
  --text:  #4a4150;
  --muted: #6c6273;
  --line:        rgba(29, 20, 32, .13);
  --line-strong: rgba(29, 20, 32, .28);
  --line-light:  rgba(255, 255, 255, .14);

  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans:  "Jost", "Futura", "Century Gothic", "Helvetica Neue", Arial, sans-serif;

  --fs-hero: clamp(3.4rem, 1.4rem + 6.4vw, 8rem);
  --fs-h1:   clamp(2.9rem, 1.6rem + 4.4vw, 6rem);
  --fs-h2:   clamp(2.3rem, 1.5rem + 2.7vw, 4.25rem);
  --fs-lead: clamp(1.125rem, 1.05rem + .35vw, 1.3rem);

  --maxw: 1320px;
  --gutter: clamp(20px, 5vw, 64px);
  --edge: max(var(--gutter), (100vw - var(--maxw)) / 2);
  --section: clamp(96px, 11vw, 176px);
  --hdr-h: 96px;

  --ease: cubic-bezier(.22, .61, .21, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --twill: repeating-linear-gradient(-45deg, rgba(255,255,255,.028) 0 1px, transparent 1px 4px);
}

/* 2. BASE ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.75; color: var(--text);
  background: var(--paper); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip;
}
body::after {   /* paper grain */
  content: ""; position: fixed; transform: translateZ(0); inset: 0; pointer-events: none; z-index: 600; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
figure, blockquote, dl, dd { margin: 0; }
p { margin: 0 0 1.25em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { margin: 0; color: var(--ink); font-family: var(--serif); font-weight: 400; line-height: 1.04; letter-spacing: -.012em; }
address { font-style: normal; }
::selection { background: var(--plum); color: #fff; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
.skip { position: fixed; top: 12px; left: 12px; z-index: 700; padding: 12px 20px; background: var(--ink); color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; transform: translateY(-160%); transition: transform .3s var(--ease); }
.skip:focus { transform: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Smooth scrolling (Lenis) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* 3. TYPE ------------------------------------------------------------------ */
.eyebrow { display: inline-flex; align-items: center; gap: 14px; margin: 0 0 28px; font-size: .72rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; line-height: 1.4; color: var(--plum); }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .7; flex: none; }
.eyebrow--light, .on-dark .eyebrow { color: var(--lilac-300); }
.eyebrow--center { display: flex; justify-content: center; }
.eyebrow--center::after { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .7; }
.h1, .h2 { font-family: var(--serif); font-weight: 300; color: var(--ink); line-height: 1.04; letter-spacing: -.012em; }
.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); }
.h1 em, .h2 em, .hero__title em, .panel__title em, .house__statement em { font-style: italic; color: var(--plum); }
.on-dark { color: rgba(255,255,255,.72); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark .h1, .on-dark .h2 { color: #fbf8fc; }
.on-dark .h1 em, .on-dark .h2 em, .on-dark em { color: var(--lilac-300); }
.lead { font-size: var(--fs-lead); line-height: 1.7; font-weight: 300; }
.on-dark .lead { color: rgba(255,255,255,.76); }
.num { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--plum); }
.on-dark .num { color: var(--lilac-300); }
.ornament { display: flex; align-items: center; justify-content: center; gap: 18px; color: var(--lilac); }
.ornament::before, .ornament::after { content: ""; width: 64px; height: 1px; background: currentColor; opacity: .55; }
.ornament svg { width: 10px; fill: currentColor; }
.dropcap::first-letter { float: left; font-family: var(--serif); font-size: 5em; line-height: .82; padding: 6px 14px 0 0; color: var(--plum); }

/* Words split for reveals (see main.js) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .07em .16em 0; margin: 0 -.07em -.16em 0; }
.wi { display: inline-block; }

/* 4. LAYOUT ---------------------------------------------------------------- */
.container { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: calc(880px + var(--gutter) * 2); }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: clamp(80px, 9vw, 130px); }
.bg-paper { background: var(--paper); }
.bg-ivory { background: var(--ivory); }
.bg-dark { background-color: var(--plum-900); background-image: var(--twill), radial-gradient(120% 90% at 85% 0%, rgba(104,37,108,.55), transparent 60%); }
.bg-brand { background-color: var(--plum); background-image: var(--twill), radial-gradient(90% 120% at 100% 50%, rgba(255,255,255,.07), transparent 60%); }
.section-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px 64px; margin-bottom: clamp(56px, 7vw, 96px); }
.section-head .h2 { max-width: 15ch; }
.section-head__aside { max-width: 380px; margin: 0; }
.section-head--center { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.section-head--center .h2 { max-width: 22ch; }

/* 5. BUTTONS & LINKS ------------------------------------------------------- */
.btn {
  --b: var(--plum); --f: #fff;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 56px; padding: 0 34px;
  font-size: .74rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; line-height: 1;
  color: var(--f); background: var(--b); border: 1px solid var(--b);
  transition: color .5s var(--ease), border-color .5s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: scaleY(0); transform-origin: 50% 100%; transition: transform .55s var(--ease-out); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleY(1); }
.btn:hover { border-color: var(--ink); }
.btn--light { --b: var(--ivory); --f: var(--plum-900); }
.btn--light::before { background: var(--lilac-300); }
.btn--light:hover { border-color: var(--lilac-300); }
.btn--line { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--line:hover { color: #fff; }
.btn svg { width: 16px; height: 16px; flex: none; transition: transform .5s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.link { display: inline-flex; align-items: center; gap: 16px; font-size: .74rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--ink); padding: 8px 0; }
.link__line { position: relative; width: 42px; height: 1px; background: currentColor; transition: width .5s var(--ease); }
.link__line::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.link:hover .link__line { width: 64px; }
.link--light, .on-dark .link { color: #fff; }

/* 6. HEADER & MENU (centered logo) ---------------------------------------- */
.hdr { will-change: transform; position: fixed; inset: 0 0 auto; z-index: 100; height: var(--hdr-h); color: #fff; transition: background-color .5s var(--ease), color .5s var(--ease), height .5s var(--ease), box-shadow .5s var(--ease), transform .6s var(--ease); }
.hdr__bar { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px; }
.hdr__list { display: flex; gap: clamp(22px, 2.6vw, 44px); }
.hdr__list a { position: relative; display: block; padding: 10px 0; font-size: .72rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; opacity: .86; transition: opacity .3s; }
.hdr__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.hdr__list a:hover, .hdr__list a.is-current, .hdr__list a[aria-current] { opacity: 1; }
.hdr__list a:hover::after, .hdr__list a.is-current::after, .hdr__list a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.hdr__logo { position: relative; display: block; width: 156px; transition: width .5s var(--ease); }
.hdr__logo img { width: 100%; transition: opacity .45s var(--ease); }
.hdr__logo-dark { position: absolute; inset: 0; opacity: 0; }
.hdr__right { display: flex; align-items: center; justify-content: flex-end; gap: clamp(22px, 2.6vw, 44px); }
.hdr__cta { min-height: 44px; padding: 0 22px; font-size: .66rem; color: #fff; border-color: rgba(255,255,255,.4); background: transparent; }
.hdr__cta::before { background: #fff; }
.hdr__cta:hover { color: var(--plum-900); border-color: #fff; }
.hdr__call, .hdr__toggle { display: none; }
.hdr__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; opacity: 0; transition: opacity .4s; }
.hdr__progress span { display: block; height: 100%; background: var(--plum); transform: scaleX(var(--p, 0)); transform-origin: left; }

.hdr.is-solid { --hdr-h: 74px; color: var(--ink); background: rgba(252, 250, 247, .9); -webkit-backdrop-filter: saturate(1.3) blur(10px); backdrop-filter: saturate(1.3) blur(10px); box-shadow: 0 1px 0 var(--line); }
.hdr.is-solid .hdr__logo { width: 128px; }
.hdr.is-solid .hdr__logo-light { opacity: 0; }
.hdr.is-solid .hdr__logo-dark { opacity: 1; }
.hdr.is-solid .hdr__cta { color: #fff; border-color: var(--plum); background: var(--plum); }
.hdr.is-solid .hdr__cta::before { background: var(--ink); }
.hdr.is-solid .hdr__progress { opacity: 1; }
.hdr.is-hidden { transform: translateY(-100%); }

.hdr__toggle { position: relative; width: 44px; height: 44px; justify-self: end; margin-right: -10px; }
.hdr__toggle span { position: absolute; left: 10px; right: 10px; height: 1px; background: currentColor; transition: transform .45s var(--ease), top .45s var(--ease), right .45s var(--ease); }
.hdr__toggle span:nth-child(1) { top: 18px; }
.hdr__toggle span:nth-child(2) { top: 26px; right: 16px; }
.hdr__call { width: 44px; height: 44px; margin-left: -10px; place-items: center; }
.hdr__call svg { width: 19px; height: 19px; }

.menu { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; justify-content: space-between; padding: calc(var(--hdr-h) + 32px) var(--gutter) 36px; color: #fff; background-color: var(--plum-950); background-image: var(--twill), radial-gradient(100% 60% at 100% 0%, rgba(104,37,108,.6), transparent 70%); clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .75s var(--ease-out), visibility 0s linear .75s; overflow-y: auto; }
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .75s var(--ease-out), visibility 0s; }
.menu__list li { border-bottom: 1px solid var(--line-light); overflow: hidden; }
.menu__list a { display: flex; align-items: baseline; gap: 18px; padding: 16px 0; font-family: var(--serif); font-size: clamp(2.1rem, 9vw, 3.2rem); font-weight: 300; line-height: 1.1; transform: translateY(100%); transition: transform .8s var(--ease-out); }
.menu__list a span { font-family: var(--sans); font-size: .7rem; letter-spacing: .2em; color: var(--lilac-300); }
.menu-open .menu__list a { transform: none; }
.menu-open .menu__list li:nth-child(2) a { transition-delay: .05s; }
.menu-open .menu__list li:nth-child(3) a { transition-delay: .1s; }
.menu-open .menu__list li:nth-child(4) a { transition-delay: .15s; }
.menu-open .menu__list li:nth-child(5) a { transition-delay: .2s; }
.menu-open .menu__list li:nth-child(6) a { transition-delay: .25s; }
.menu__foot { display: grid; gap: 8px; margin-top: 40px; font-size: .9rem; color: rgba(255,255,255,.65); }
.menu__foot a:not(.btn) { color: #fff; }
.menu__foot .btn { margin-top: 18px; }
.menu-open { overflow: hidden; }
.menu-open .hdr { color: #fff; background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; transform: none; }
.menu-open .hdr .hdr__logo-light { opacity: 1; }
.menu-open .hdr .hdr__logo-dark { opacity: 0; }
.menu-open .hdr__progress { opacity: 0; }
.menu-open .hdr__toggle span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-open .hdr__toggle span:nth-child(2) { top: 22px; right: 10px; transform: rotate(-45deg); }

/* 7. INTRO CURTAIN (once per visit; pure CSS so it always clears) --------- */
.curtain { display: none; }
.intro .curtain {
  position: fixed; inset: 0; z-index: 500; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 34px;
  background-color: var(--plum-950); background-image: var(--twill), radial-gradient(70% 60% at 50% 40%, rgba(104,37,108,.55), transparent 70%);
  clip-path: inset(0 0 0 0);
  animation: curtain-up 1.1s var(--ease-out) 1.75s forwards;
}
.curtain svg { width: 44px; overflow: visible; }
.curtain path { fill: rgba(203,187,218,0); stroke: var(--lilac-300); stroke-width: 2.5; stroke-dasharray: 1; stroke-dashoffset: 1; animation: tie-draw 1.2s var(--ease) .15s forwards, tie-fill .6s ease 1.05s forwards; }
.curtain img { width: 150px; opacity: 0; transform: translateY(12px); animation: fade-up .9s var(--ease-out) .75s forwards; }
@keyframes tie-draw { to { stroke-dashoffset: 0; } }
@keyframes tie-fill { to { fill: rgba(203,187,218,1); } }
@keyframes fade-up { to { opacity: 1; transform: none; } }
@keyframes curtain-up { to { clip-path: inset(0 0 100% 0); visibility: hidden; } }

/* 8. HERO ------------------------------------------------------------------ */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 54fr) minmax(0, 46fr); min-height: max(700px, min(100svh, 1080px)); color: #fff; background-color: var(--plum-900); background-image: var(--twill), radial-gradient(80% 70% at 15% 100%, rgba(104,37,108,.55), transparent 70%); overflow: hidden; }
.hero__copy { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--hdr-h) + 48px) clamp(32px, 5vw, 96px) 56px; padding-left: max(var(--gutter), (100% / .54 - var(--maxw)) / 2); }
.hero__title { font-size: var(--fs-hero); font-weight: 300; line-height: .95; letter-spacing: -.02em; color: #fbf8fc; margin-bottom: 36px; }
.hero__title .line { display: block; overflow: hidden; padding: .02em .08em .16em 0; margin-bottom: -.1em; }
.hero__title .line > * { display: inline-block; }
.hero__title em { color: var(--lilac-300); }
.hero__lead { max-width: 30rem; font-size: var(--fs-lead); font-weight: 300; line-height: 1.7; color: rgba(255,255,255,.76); margin-bottom: 44px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 36px; }
.hero__notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: clamp(56px, 8vh, 96px); padding-top: 28px; border-top: 1px solid var(--line-light); max-width: 620px; }
.hero__notes dt { font-size: .66rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--lilac-300); margin-bottom: 8px; }
.hero__notes dd { font-family: var(--serif); font-size: 1.12rem; line-height: 1.35; color: rgba(255,255,255,.88); }
.hero__media { position: relative; overflow: hidden; }
.hero__media img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; object-position: 58% 22%; will-change: transform; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(33,11,37,.6) 0%, rgba(33,11,37,0) 18%), linear-gradient(90deg, rgba(33,11,37,.55) 0%, rgba(33,11,37,0) 22%), linear-gradient(0deg, rgba(23,8,25,.5) 0%, rgba(23,8,25,0) 30%); }
.hero__caption { position: absolute; z-index: 2; right: var(--gutter); bottom: 36px; display: flex; align-items: center; gap: 14px; font-size: .66rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.hero__caption::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.seal { position: absolute; z-index: 3; left: 54%; bottom: 13%; width: 148px; height: 148px; margin-left: -74px; border-radius: 50%; background: var(--plum-900); box-shadow: 0 0 0 1px rgba(203,187,218,.25), 0 24px 60px -20px rgba(0,0,0,.6); display: grid; place-items: center; }
.seal__ring { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); fill: var(--lilac-300); animation: spin 38s linear infinite; }
.seal__ring text { font-family: var(--sans); font-size: 8.4px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; }
.seal__tie { width: 15px; fill: var(--lilac-300); }
@keyframes spin { to { transform: rotate(360deg); } }

/* 9. HOME SECTIONS --------------------------------------------------------- */

/* Garment ticker */
.ticker { overflow: hidden; padding: clamp(28px, 3.6vw, 48px) 0; background: var(--paper); border-bottom: 1px solid var(--line); }
.ticker__track { display: flex; width: max-content; will-change: transform; }
.ticker__set { display: flex; align-items: center; gap: clamp(28px, 3vw, 56px); padding-right: clamp(28px, 3vw, 56px); }
.ticker span { font-family: var(--serif); font-weight: 300; font-size: clamp(2.6rem, 1.6rem + 4vw, 5.8rem); line-height: 1.05; color: var(--ink); white-space: nowrap; letter-spacing: -.01em; }
.ticker span.o { font-style: italic; color: var(--plum); }
@supports (-webkit-text-stroke: 1px black) { .ticker span.o { color: transparent; -webkit-text-stroke: 1px var(--plum); } }
.ticker svg { width: clamp(12px, 1.1vw, 18px); fill: var(--lilac); flex: none; }

/* The House */
.house { overflow: hidden; text-align: center; }
.house .container { position: relative; z-index: 1; }
.house__statement { max-width: 17ch; margin: 0 auto clamp(56px, 6vw, 88px); font-weight: 300; font-size: clamp(2.6rem, 1.3rem + 4.4vw, 6.2rem); line-height: 1.02; }
.house__cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); max-width: 940px; margin: 0 auto; text-align: left; }
.house .ornament { margin-top: clamp(56px, 6vw, 88px); }
.house__float { position: absolute; z-index: 0; pointer-events: none; }
.house__float--a { left: max(3vw, (100vw - 1560px) / 2); top: 13%; width: clamp(150px, 12.5vw, 230px); }
.house__float--b { right: max(3vw, (100vw - 1560px) / 2); bottom: 7%; width: clamp(160px, 13.5vw, 250px); }
@media (min-width: 1181px) { .house__cols { max-width: min(900px, 67vw - 90px); } }   /* keep text clear of the detail circles */
.house__orb { position: relative; will-change: transform; }
.house__pic { position: relative; aspect-ratio: 1; }
.house__pic img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; box-shadow: 0 30px 60px -28px rgba(29,20,32,.5); }
/* a slowly turning "stitch line" around each detail */
.house__pic::before { content: ""; position: absolute; inset: -13px; border-radius: 50%; border: 1px dashed rgba(104,37,108,.5); animation: spin 70s linear infinite; }
.house__float--b .house__pic::before { animation-direction: reverse; }
.house__cap { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 30px; font-size: .6rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.house__cap::before { content: ""; width: 18px; height: 1px; background: var(--plum); opacity: .6; }

/* Collections: tabs + panels */
.tabs { position: relative; display: flex; gap: clamp(24px, 3.2vw, 56px); border-bottom: 1px solid var(--line); margin-bottom: clamp(48px, 6vw, 88px); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; flex: none; display: inline-flex; align-items: baseline; gap: 10px; padding: 0 0 20px; font-family: var(--serif); font-size: clamp(1.2rem, 1rem + .7vw, 1.65rem); color: var(--muted); transition: color .4s; }
.tab .num { font-size: .8rem; color: var(--lilac); transition: color .4s; }
.tab:hover, .tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"] .num { color: var(--plum); }
.tabs__ink { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--plum); transition: transform .7s var(--ease-out), width .7s var(--ease-out); }
.panel { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(40px, 7vw, 120px); align-items: center; }
.panel[hidden] { display: none; }
.panel__media { position: relative; }
.panel__frame { aspect-ratio: 4 / 5; overflow: hidden; background: var(--linen); }
.panel__frame img, .panel__inset img { width: 100%; height: 100%; object-fit: cover; }
.panel__inset { position: absolute; right: -28px; bottom: -36px; width: 58%; aspect-ratio: 16 / 10; overflow: hidden; outline: 10px solid var(--ivory); box-shadow: 0 40px 70px -40px rgba(29,20,32,.55); }
.panel__title { font-weight: 300; font-size: clamp(2.2rem, 1.5rem + 2.2vw, 3.6rem); margin-bottom: 26px; }
.tagline { margin: 0 0 26px; padding-left: 22px; border-left: 1px solid var(--plum); font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 1.12rem + .45vw, 1.55rem); line-height: 1.4; color: var(--ink); }
.pieces { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; margin: 30px 0 38px; border-top: 1px solid var(--line); }
.pieces--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pieces li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 1.22rem; color: var(--ink); }
.pieces li::before { content: ""; width: 5px; height: 5px; border: 1px solid var(--plum); transform: rotate(45deg); flex: none; }
.minis { display: flex; align-items: center; gap: 16px; margin: -6px 0 36px; }
.minis img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line), 0 0 0 4px var(--ivory), 0 0 0 5px var(--line); }
.minis__label { font-size: .66rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); line-height: 1.7; margin-left: 4px; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: -6px 0 36px; }
.tiles figure { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--linen); }
.tiles img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.tiles figure:hover img { transform: scale(1.08); }
.tiles figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 10px 8px; background: linear-gradient(0deg, rgba(23,8,25,.7), rgba(23,8,25,0)); font-family: var(--serif); font-style: italic; font-size: 1rem; color: #fff; }

/* Why Olino: stacking cards */
.stack { display: grid; gap: 28px; }
.card {
  will-change: transform;
  position: sticky; top: calc(100px + var(--i) * 26px);
  display: grid; grid-template-columns: clamp(80px, 9vw, 140px) minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px clamp(28px, 4.5vw, 72px); align-items: start;
  min-height: clamp(300px, 40vh, 420px); padding: clamp(36px, 5vw, 72px);
  background: var(--ivory); border: 1px solid var(--line);
  transform-origin: 50% 0; box-shadow: 0 -24px 60px -48px rgba(29,20,32,.45);
}
.card > * { opacity: calc(1 - var(--dim, 0) * .55); }
.card--lilac { background: var(--lilac-100); }
.card--plum { background-color: var(--plum); background-image: var(--twill); border-color: transparent; }
.card--dark { background-color: var(--plum-900); background-image: var(--twill); border-color: transparent; }
.card__num { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(3.4rem, 2.4rem + 3vw, 6rem); line-height: .8; color: var(--lilac); }
.on-dark .card__num { color: var(--lilac-300); }
.card h3 { font-weight: 300; font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.8rem); margin-bottom: 18px; }
.card p { color: var(--muted); max-width: 34ch; }
.card.on-dark p { color: rgba(255,255,255,.72); }
.card blockquote { align-self: end; padding-top: 22px; border-top: 1px solid var(--line-strong); font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.7rem); line-height: 1.35; color: var(--plum); }
.card.on-dark blockquote { color: var(--lilac-300); border-color: rgba(255,255,255,.22); }

/* Atelier: horizontal gallery. Static (swipe) by default; JS pins it on desktop */
.hs { --H: min(62vh, 580px); position: relative; }
.hs__pin { padding-block: var(--section); overflow: hidden; }
.hs__track { position: relative; display: flex; gap: clamp(18px, 2vw, 32px); padding-inline: var(--edge); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hs__track::-webkit-scrollbar { display: none; }
.hs__card { flex: none; scroll-snap-align: start; scroll-margin-left: var(--edge); }
.hs__intro { width: min(460px, 84vw); display: flex; flex-direction: column; justify-content: center; padding-right: 3vw; }
.hs__intro .h2 { margin-bottom: 28px; }
.hs__hint { display: inline-flex; align-items: center; gap: 16px; margin-top: 36px; font-size: .68rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--lilac-300); }
.hs__photo { width: min(82vw, 760px); }
.hs__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--plum-800); }
.hs__photo figcaption { display: flex; justify-content: space-between; padding-top: 14px; font-size: .66rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.hs__text { width: min(320px, 74vw); display: flex; flex-direction: column; justify-content: center; padding-top: 28px; border-top: 1px solid rgba(203,187,218,.3); align-self: center; }
.hs__text .num { margin-bottom: 26px; font-size: 1.4rem; }
.hs__text h3 { font-weight: 300; font-size: 2rem; margin-bottom: 16px; }
.hs__text p { font-size: .97rem; color: rgba(255,255,255,.66); }
.hs__quote { width: min(480px, 84vw); display: flex; flex-direction: column; justify-content: center; text-align: center; padding-inline: 2vw; }
.hs__quote .ornament { margin-bottom: 32px; }
.hs__quote p { font-family: var(--serif); font-weight: 300; font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.5rem); line-height: 1.25; color: #fbf8fc; }
.hs__bar { height: 1px; margin: 48px var(--edge) 0; background: var(--line-light); }
.hs__bar span { display: block; height: 100%; background: var(--lilac-300); transform: scaleX(var(--p, 0)); transform-origin: left; }
.hs.is-pinned .hs__pin { position: sticky; top: 0; height: 100vh; height: 100svh; padding-block: 0; display: flex; flex-direction: column; justify-content: center; }
.hs.is-pinned .hs__track { overflow: visible; scroll-snap-type: none; will-change: transform; }
.hs.is-pinned .hs__card { height: var(--H); }
.hs.is-pinned .hs__photo { width: auto; }
.hs.is-pinned .hs__photo img { width: auto; height: calc(var(--H) - 40px); }
.hs.is-pinned .hs__text { height: auto; }

/* Process */
.process { --p: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: relative; }
.process li { position: relative; padding-right: clamp(16px, 2vw, 32px); }
/* the line that draws itself as you scroll: first dot to last dot */
.process li.process__line { position: absolute; left: 27px; top: 27px; width: 80%; height: 1px; padding: 0; background: var(--line); }
.process__line span { display: block; height: 100%; background: var(--plum); transform: scaleX(var(--p)); transform-origin: left; }
.process__dot { z-index: 1; }
.process__dot { position: relative; width: 55px; height: 55px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--plum); background: var(--paper); font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--plum); margin-bottom: 30px; transition: background-color .5s, color .5s; }
.process li:hover .process__dot { background: var(--plum); color: #fff; }
.process h3 { font-size: 1.6rem; margin-bottom: 12px; }
.process p { font-size: .95rem; line-height: 1.7; color: var(--muted); }

/* Trust: the route through Kerala */
.route { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); height: 150px; margin: clamp(24px, 4vw, 56px) 0 clamp(40px, 5vw, 72px); }
.route::before { content: ""; position: absolute; top: 50%; left: calc(100% / 14); right: calc(100% / 14); height: 1px; background: var(--plum); opacity: .45; transform-origin: left; }
.route li { position: relative; }
.route li::before { content: ""; position: absolute; top: 50%; left: 50%; width: 15px; height: 15px; margin: -7.5px 0 0 -7.5px; border-radius: 50%; border: 1px solid var(--plum); background: var(--ivory); }
.route li::after { content: ""; position: absolute; top: 50%; left: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: var(--plum); }
.route span { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; font-family: var(--serif); font-size: clamp(1.1rem, .9rem + .6vw, 1.5rem); color: var(--ink); }
.route li:nth-child(odd) span { top: calc(50% + 22px); }
.route li:nth-child(even) span { bottom: calc(50% + 22px); }
.trust__foot { display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.trust__foot p { max-width: 34rem; color: var(--muted); font-size: .97rem; }

/* CTA band — the brochure cover: buttons riding on fabric strips */
.cta { position: relative; overflow: hidden; color: #fff; }
.cta__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; min-height: 460px; }
.cta .h2 { max-width: 12ch; margin-bottom: 28px; }
.cta .lead { max-width: 28rem; margin-bottom: 44px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.cta__phone { font-family: var(--serif); font-size: 1.5rem; color: #fff; border-bottom: 1px solid rgba(255,255,255,.3); padding-bottom: 2px; transition: border-color .3s; }
.cta__phone:hover { border-color: #fff; }
.strips { position: absolute; top: 50%; right: 0; width: 46%; transform: translateY(-50%); display: grid; gap: 14px; }
.strip { --c: #a48cb0; --o: 0px; position: relative; height: 88px; margin-left: var(--o); border-radius: 44px 0 0 44px; background-color: var(--c); background-image: repeating-linear-gradient(-45deg, rgba(255,255,255,.07) 0 1px, transparent 1px 3px), repeating-linear-gradient(45deg, rgba(0,0,0,.06) 0 1px, transparent 1px 5px); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.strip:nth-child(1) { --c: #a58fb2; --o: 70px; }
.strip:nth-child(2) { --c: #8c6d9c; --o: 140px; }
.strip:nth-child(3) { --c: #7a3f86; --o: 0px; }
.strip:nth-child(4) { --c: #5a1d61; --o: 170px; }
.strip i { position: absolute; left: 0; top: 50%; width: 104px; height: 104px; margin-top: -52px; margin-left: -8px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.35), rgba(255,255,255,0) 60%), var(--c); box-shadow: inset 0 0 0 7px rgba(255,255,255,.1), inset 0 0 0 8px rgba(0,0,0,.08), 0 10px 26px -8px rgba(0,0,0,.45); filter: brightness(1.12); }
.strip i::before, .strip i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; border-radius: 50%; background: rgba(40,8,44,.55); box-shadow: 16px 0 0 rgba(40,8,44,.55); transform: translate(-50%, -50%) translate(-8px, -8px); }
.strip i::after { transform: translate(-50%, -50%) translate(-8px, 8px); }

/* Enquiry */
.enquire { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); gap: 56px clamp(56px, 8vw, 140px); align-items: start; }
.enquire__aside .h2 { margin-bottom: 28px; max-width: 11ch; }
.direct { margin-top: 40px; border-top: 1px solid var(--line); }
.direct li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.direct span { display: block; font-size: .66rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.direct a { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); transition: color .3s; word-break: break-word; }
.direct a:hover { color: var(--plum); }
.direct address { font-family: var(--serif); font-size: 1.2rem; line-height: 1.45; color: var(--ink); }
.map { aspect-ratio: 16 / 10; margin: 28px 0 14px; border: 1px solid var(--line); background: var(--linen); overflow: hidden; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05) sepia(.12); transition: filter .6s; }
.map:hover iframe { filter: none; }

/* 10. CLIENTS PAGE --------------------------------------------------------- */
.page-hero { position: relative; color: #fff; padding: calc(var(--hdr-h) + clamp(72px, 9vw, 132px)) 0 clamp(150px, 16vw, 230px); }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 40px clamp(40px, 6vw, 110px); align-items: end; }
.page-hero .h1 { max-width: 13ch; }
.page-hero .lead { max-width: 30rem; margin-bottom: 8px; }
.crumbs { display: flex; gap: 12px; margin-bottom: 44px; font-size: .68rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.crumbs a:hover { color: #fff; }
.crumbs li + li::before { content: "/"; margin-right: 12px; opacity: .5; }
.crumbs [aria-current] { color: var(--lilac-300); }
.banner { position: relative; z-index: 2; margin-top: calc(clamp(150px, 16vw, 230px) * -1 + 40px); }
.banner__frame { position: relative; overflow: hidden; aspect-ratio: 16 / 7; background: var(--plum-800); }
.banner__frame img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; }
.compass { display: flex; justify-content: space-between; padding: 0 0 16px; font-size: .66rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.districts { border-top: 1px solid var(--line); }
.district { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px 12px; padding: 38px 0 34px; border-bottom: 1px solid var(--line); }
.district::before { content: ""; position: absolute; left: 5px; top: 0; bottom: 0; width: 1px; background: rgba(104,37,108,.25); }
.district:first-child::before { top: 53px; }
.district:last-child::before { bottom: auto; height: 53px; }
.district__pin { position: relative; z-index: 1; padding-top: 10px; }
.district__pin::before { content: ""; display: block; width: 11px; height: 11px; border-radius: 50%; border: 1px solid var(--plum); background: var(--paper); transition: background-color .4s; }
.district:hover .district__pin::before { background: var(--plum); }
.district__name { font-weight: 300; font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.6rem); overflow-wrap: anywhere; }
.district__schools { grid-column: 2; }
.district__schools li { padding: 9px 0; font-family: var(--serif); font-size: 1.28rem; line-height: 1.35; color: var(--ink); border-bottom: 1px dashed var(--line); }
.district__schools li:last-child { border-bottom: 0; }
.district__schools small { display: block; font-family: var(--sans); font-size: .82rem; letter-spacing: .04em; color: var(--muted); }
.mills { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; row-gap: 6px; padding: 30px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mills li { position: relative; padding: 8px clamp(16px, 1.8vw, 28px); font-family: var(--serif); font-size: clamp(1.3rem, 1rem + .6vw, 1.6rem); color: var(--ink); white-space: nowrap; transition: color .4s; }
.mills li + li::before { content: ""; position: absolute; left: -3px; top: 50%; width: 6px; height: 6px; border: 1px solid var(--lilac); transform: translateY(-50%) rotate(45deg); }
.mills li:hover { color: var(--plum); }
.lost { min-height: 100svh; display: grid; place-items: center; text-align: center; color: #fff; padding: 120px var(--gutter); }
.lost .h1 { max-width: 14ch; margin: 0 auto 28px; }
.lost .lead { max-width: 32rem; margin: 0 auto 44px; }

/* 11. FORM ----------------------------------------------------------------- */
.form { background: var(--paper); border: 1px solid var(--line); padding: clamp(28px, 4.5vw, 64px); box-shadow: 0 50px 100px -70px rgba(29,20,32,.35); }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 32px; }
.field { position: relative; display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-size: .66rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; padding: 0; }
.field label b, .field legend b { color: var(--plum); font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; padding: 10px 0 12px; font: inherit; font-size: 1.1rem; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; transition: border-color .35s; -webkit-appearance: none; appearance: none; }
.field textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2368256c'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 2px center; padding-right: 28px; cursor: pointer; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--plum); }
.field::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--plum); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.field:focus-within::after { transform: scaleX(1); }
.field--chips::after { display: none; }
.field input::placeholder, .field textarea::placeholder { color: #a39aa8; }
.field.has-error input, .field.has-error select { border-bottom-color: #a3324a; }
.field__err { display: none; margin-top: 8px; font-size: .8rem; color: #a3324a; }
.field.has-error .field__err { display: block; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.chip { position: relative; }
.field .chip { margin: 0; font-size: .9rem; font-weight: 400; letter-spacing: .02em; text-transform: none; color: var(--text); }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 10px 18px; border: 1px solid var(--line-strong); transition: background-color .3s, color .3s, border-color .3s; }
.chip input:checked + span { background: var(--plum); border-color: var(--plum); color: #fff; }
.chip input:focus-visible + span { outline: 1px solid var(--plum); outline-offset: 3px; }
.chip:hover span { border-color: var(--plum); }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--line); }
.form__note { max-width: 30ch; font-size: .85rem; line-height: 1.6; color: var(--muted); margin: 0; }
.form__status { margin-top: 20px; padding: 16px 20px; border-left: 2px solid var(--plum); background: var(--lilac-100); font-size: .95rem; color: var(--ink); display: none; }
.form__status.is-shown { display: block; }

/* 12. FOOTER & MOBILE BAR -------------------------------------------------- */
.ftr { position: relative; overflow: hidden; color: rgba(255,255,255,.66); background-color: var(--plum-950); background-image: var(--twill); padding-top: clamp(88px, 10vw, 140px); }
.ftr__tie { position: absolute; top: -2px; right: clamp(-40px, 6vw, 140px); width: clamp(140px, 16vw, 230px); fill: rgba(203,187,218,.055); pointer-events: none; }
.ftr__top { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 48px clamp(32px, 4vw, 72px); padding-bottom: clamp(64px, 8vw, 110px); }
.ftr__brand img { width: 170px; margin-bottom: 30px; }
.ftr__brand p { max-width: 30ch; font-size: .95rem; }
.ftr__tag { font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: #fff; margin-bottom: 14px !important; }
.ftr h2 { font-family: var(--sans); font-size: .68rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--lilac-300); margin-bottom: 24px; }
.ftr ul li { margin-bottom: 10px; }
.ftr a { color: rgba(255,255,255,.86); transition: color .3s; }
.ftr a:hover { color: #fff; }
.ftr address { font-size: .95rem; line-height: 1.75; }
.ftr__phone { display: inline-block; font-family: var(--serif); font-size: 1.4rem; margin-bottom: 6px; }
.ftr .link { margin-top: 10px; }
.ftr__bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; padding: 30px 0 34px; border-top: 1px solid var(--line-light); font-size: .78rem; letter-spacing: .06em; }
.ftr__top-link { display: inline-flex; align-items: center; gap: 10px; font-size: .68rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; }
.ftr__top-link svg { width: 12px; height: 12px; transition: transform .4s var(--ease); }
.ftr__top-link:hover svg { transform: translateY(-3px); }
.mbar { display: none; }

/* Enquiry — compact layout */
.enquire { grid-template-columns: minmax(0, .82fr) minmax(0, 1.3fr); align-items: center; }
.enquire__aside .h2 { margin-bottom: 22px; max-width: none; }
.direct--compact { margin-top: 32px; }
.direct--compact li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 0; }
.direct--compact span { margin: 0; }
.direct--compact a { font-size: 1.25rem; text-align: right; }
.visit { margin-top: 26px; }
.map--small { aspect-ratio: 2.6 / 1; margin: 0 0 14px; }
.visit__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.visit__row address { font-size: .9rem; line-height: 1.55; color: var(--muted); }
.visit__row .link { flex: none; padding: 0; }
.form { padding: clamp(28px, 3.6vw, 52px); }
.form__lead { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 30px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.form__lead span:first-child { font-family: var(--serif); font-size: 1.6rem; color: var(--ink); }
.form__lead span:last-child { font-size: .64rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--plum); }
.form__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 28px; }
.field legend i, .more__toggle em { font-style: normal; text-transform: none; letter-spacing: .02em; color: #a39aa8; }
.chips { gap: 8px; }
.chip span { padding: 8px 12px; font-size: .85rem; }
.more { margin-top: 28px; border-top: 1px solid var(--line); }
.more__toggle { display: flex; width: 100%; align-items: center; gap: 10px; padding: 18px 0; font-size: .68rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--ink); text-align: left; }
.more__toggle em { font-size: .8rem; }
.more__toggle i { position: relative; width: 26px; height: 26px; margin-left: auto; border: 1px solid var(--line-strong); border-radius: 50%; transition: transform .5s var(--ease-out), background-color .3s, border-color .3s; }
.more__toggle i::before, .more__toggle i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1px; margin: -.5px 0 0 -5px; background: currentColor; }
.more__toggle i::after { transform: rotate(90deg); }
.more__toggle:hover i { border-color: var(--plum); }
.more.is-open .more__toggle i { transform: rotate(45deg); background: var(--plum); border-color: var(--plum); color: #fff; }
.js .more__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease-out); }
.js .more.is-open .more__body { grid-template-rows: 1fr; }
.more__inner { overflow: hidden; min-height: 0; }
.more__inner .form__grid { padding: 4px 0 6px; }
.js .more__inner { opacity: 0; transition: opacity .4s var(--ease); }
.js .more.is-open .more__inner { opacity: 1; transition-delay: .15s; }
.form__foot { flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 26px; padding-top: 26px; }
.form__note { max-width: none; font-size: .82rem; }

/* WhatsApp */
.cta__wa { display: inline-flex; align-items: center; gap: 10px; font-size: .74rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: #fff; border-bottom: 1px solid rgba(255,255,255,.3); padding-bottom: 4px; transition: border-color .3s; }
.cta__wa:hover { border-color: #fff; }
.cta__wa svg, .btn--wa svg { width: 18px; height: 18px; }
.form__send { display: flex; flex-wrap: wrap; gap: 12px; }
.btn--wa { --b: var(--plum); --f: #fff; }
.wa-float {
  position: fixed; right: 28px; bottom: 28px; z-index: 85;
  display: flex; align-items: center; gap: 0; height: 58px; padding: 0 18px; border-radius: 29px;
  color: #fff; background: var(--plum-900); box-shadow: 0 0 0 1px rgba(203,187,218,.3), 0 18px 40px -14px rgba(23,8,25,.6);
  transform: translateY(140%); opacity: 0; transition: transform .7s var(--ease-out), opacity .5s, gap .5s var(--ease-out), background-color .4s;
}
.wa-float.is-shown { transform: none; opacity: 1; }
.wa-float svg { width: 22px; height: 22px; flex: none; }
.wa-float span { max-width: 0; overflow: hidden; white-space: nowrap; font-size: .68rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; transition: max-width .6s var(--ease-out); }
.wa-float:hover, .wa-float:focus-visible { gap: 12px; background: var(--plum); }
.wa-float:hover span, .wa-float:focus-visible span { max-width: 220px; }

/* 13. MOTION --------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity 1.1s var(--ease), transform 1.2s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-img { clip-path: inset(12% 0 0 0); transition: clip-path 1.5s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal-img img { transform: scale(1.12); transition: transform 2s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal-img.is-in { clip-path: inset(0 0 0 0); }
.js .reveal-img.is-in img { transform: none; }
.js .panel .reveal-img { clip-path: inset(0 100% 0 0); }
.js .panel .reveal-img.is-in { clip-path: inset(0 0 0 0); }
.js .banner .reveal-img img { transform: none; transition: none; }

/* Word-by-word headings */
.js [data-split].is-split .wi { transform: translateY(108%); transition: transform 1.15s var(--ease-out); transition-delay: calc(var(--i) * 55ms + var(--d, 0s)); }
.js [data-split].is-split.is-in .wi { transform: none; }

/* Hero entrance */
.js .hero .eyebrow, .js .hero__lead, .js .hero__actions, .js .hero__notes, .js .seal { opacity: 0; transform: translateY(24px); transition: opacity 1.2s var(--ease), transform 1.3s var(--ease-out); }
.js .hero__title .line > * { transform: translateY(108%); transition: transform 1.3s var(--ease-out); }
.js .hero__media { clip-path: inset(0 0 0 100%); transition: clip-path 1.7s var(--ease-out) .1s; }
.js .page-hero .crumbs, .js .page-hero .eyebrow, .js .page-hero .h1, .js .page-hero .lead { opacity: 0; transform: translateY(26px); transition: opacity 1.1s var(--ease), transform 1.3s var(--ease-out); }
.is-loaded .hero .eyebrow, .is-loaded .hero__lead, .is-loaded .hero__actions, .is-loaded .hero__notes, .is-loaded .seal,
.is-loaded .page-hero .crumbs, .is-loaded .page-hero .eyebrow, .is-loaded .page-hero .h1, .is-loaded .page-hero .lead { opacity: 1; transform: none; }
.is-loaded .hero__title .line > * { transform: none; }
.is-loaded .hero__media { clip-path: inset(0 0 0 0); }
.is-loaded .hero .eyebrow { transition-delay: .15s; }
.is-loaded .hero__title .line:nth-child(1) > * { transition-delay: .25s; }
.is-loaded .hero__title .line:nth-child(2) > * { transition-delay: .38s; }
.is-loaded .hero__lead { transition-delay: .6s; }
.is-loaded .hero__actions { transition-delay: .72s; }
.is-loaded .hero__notes { transition-delay: .9s; }
.is-loaded .seal { transition-delay: 1.15s; }
.is-loaded .page-hero .eyebrow { transition-delay: .1s; }
.is-loaded .page-hero .h1 { transition-delay: .2s; }
.is-loaded .page-hero .lead { transition-delay: .4s; }

/* Process line draws, steps follow */
/* How It Works: steps light up as the scroll-drawn line reaches them */
.js .process li:not(.process__line) > :not(.process__dot) { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform 1s var(--ease-out); }
.js .process li:not(.process__line) > p { transition-delay: .08s; }
.js .process__dot { transform: scale(.7); opacity: .35; transition: transform .8s var(--ease-out), opacity .6s, background-color .5s, color .5s, box-shadow .8s; }
.js .process li.is-on > :not(.process__dot) { opacity: 1; transform: none; }
.js .process li.is-on .process__dot { transform: none; opacity: 1; background: var(--plum); color: #fff; box-shadow: 0 0 0 8px rgba(104,37,108,.1); }
.proc.is-pinned { padding-block: 0; }
.proc.is-pinned .proc__pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; }
.proc.is-pinned .proc__pin > .container { width: 100%; }
.proc__count { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--plum); }

/* Route line draws north to south, districts light up in turn */
.js .route::before { transform: scaleX(0); transition: transform 2.4s var(--ease-out) .2s; }
.js .route.is-in::before { transform: scaleX(1); }
.js .route li::after { transform: scale(0); transition: transform .6s var(--ease-out); transition-delay: calc(.45s + var(--i) * .28s); }
.js .route.is-in li::after { transform: scale(1); }
.js .route span { opacity: 0; transition: opacity .9s var(--ease); transition-delay: calc(.5s + var(--i) * .28s); }
.js .route.is-in span { opacity: 1; }

/* Fabric strips slide in, buttons roll */
.js .strip { transform: translateX(110%); transition: transform 1.6s var(--ease-out); }
.js .strip i { transform: rotate(-220deg); transition: transform 1.8s var(--ease-out); }
.js .strips.is-in .strip, .js .strips.is-in .strip i { transform: none; }
.js .strips.is-in .strip:nth-child(2), .js .strips.is-in .strip:nth-child(2) i { transition-delay: .12s; }
.js .strips.is-in .strip:nth-child(3), .js .strips.is-in .strip:nth-child(3) i { transition-delay: .24s; }
.js .strips.is-in .strip:nth-child(4), .js .strips.is-in .strip:nth-child(4) i { transition-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .seal__ring { animation: none; }
}

/* 14. RESPONSIVE ----------------------------------------------------------- */
@media (max-width: 1180px) {
  .hdr__list { gap: 22px; }
  .hdr__cta { display: none; }
  .hero__notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__notes > div:nth-child(3) { display: none; }
  .house__float { display: none; }
  .pieces--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process { grid-template-columns: 1fr; row-gap: 44px; max-width: 640px; }
  .process li { display: grid; grid-template-columns: 55px 1fr; column-gap: 26px; padding-right: 0; }
  .process__dot { grid-row: span 2; margin-bottom: 0; }
  .process li.process__line { display: block; overflow: hidden; left: 27px; top: 27px; bottom: 27px; width: 1px; height: auto; }
  .process__line span { height: 100%; width: 100%; transform: scaleY(var(--p)); transform-origin: top; }
  .ftr__top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ftr__brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  :root { --hdr-h: 72px; }
  .hdr.is-solid { --hdr-h: 64px; }
  .hdr__bar { grid-template-columns: 44px 1fr 44px; gap: 12px; }
  .hdr__list, .hdr__right { display: none; }
  .hdr__call { display: grid; }
  .hdr__toggle { display: block; }
  .hdr__logo { justify-self: center; width: 130px; }
  .hdr.is-solid .hdr__logo { width: 112px; }

  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__media { position: absolute; inset: 0; }
  .hero__media img { object-position: 62% 18%; }
  .hero__media::after { background: linear-gradient(0deg, rgba(23,8,25,.97) 6%, rgba(23,8,25,.82) 38%, rgba(23,8,25,.15) 66%, rgba(23,8,25,.35) 100%); }
  .hero__copy { min-height: max(100svh, 640px); justify-content: flex-end; padding: calc(var(--hdr-h) + 40vh) var(--gutter) 44px; }
  .hero__caption, .hero__notes { display: none; }
  .seal { left: auto; right: var(--gutter); bottom: auto; top: calc(var(--hdr-h) + 20px); margin: 0; width: 108px; height: 108px; }
  .js:not(.is-loaded) .hero__media { clip-path: inset(0 0 100% 0); }

  .section-head { grid-template-columns: 1fr; }
  .house__cols { grid-template-columns: 1fr; gap: 0; }
  .house__cols p + p { margin-top: 1.25em; }
  .panel { grid-template-columns: 1fr; gap: 48px; }
  .panel__media { max-width: 560px; }
  .panel__inset { right: -10px; bottom: -28px; }
  .tabs { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .card { grid-template-columns: 1fr; top: calc(84px + var(--i) * 16px); min-height: 0; gap: 18px; }
  .card__num { font-size: 3rem; }
  .route { grid-template-columns: 1fr; height: auto; margin-left: 8px; }
  .route::before { top: 10px; bottom: 10px; left: 7px; right: auto; width: 1px; height: auto; transform-origin: top; }
  .js .route::before { transform: scaleY(0); }
  .js .route.is-in::before { transform: scaleY(1); }
  .route li { padding: 8px 0 8px 40px; }
  .route li::before, .route li::after { left: 7px; }
  .route span, .route li:nth-child(odd) span, .route li:nth-child(even) span { position: static; transform: none; font-size: 1.35rem; }
  .cta__grid { grid-template-columns: 1fr; min-height: 0; padding-bottom: 290px; }
  .strips { top: auto; bottom: 48px; transform: none; width: 88%; gap: 10px; }
  .strip { height: 56px; border-radius: 28px 0 0 28px; }
  .strip i { width: 68px; height: 68px; margin-top: -34px; }
  .strip i::before, .strip i::after { width: 6px; height: 6px; box-shadow: 11px 0 0 rgba(40,8,44,.55); transform: translate(-50%, -50%) translate(-5.5px, -5.5px); }
  .strip i::after { transform: translate(-50%, -50%) translate(-5.5px, 5.5px); }
  .strip:nth-child(1) { --o: 40px; } .strip:nth-child(2) { --o: 90px; } .strip:nth-child(4) { --o: 110px; }
  .enquire { grid-template-columns: 1fr; gap: 36px; }
  .enquire__aside { display: contents; }   /* phones: heading, then the form, then other ways to reach us */
  .enquire__intro { order: 1; }
  .enquire .form { order: 2; }
  .direct--compact { order: 3; margin-top: 8px; }
  .visit { order: 4; margin-top: 0; }
  .page-hero__grid { grid-template-columns: 1fr; }
  .banner__frame { aspect-ratio: 4 / 3; }

  .wa-float { display: none; }
  .mbar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 85; display: grid; grid-template-columns: 54px 1fr 1fr; box-shadow: 0 18px 40px -12px rgba(23,8,25,.55); transform: translateY(160%); transition: transform .6s var(--ease-out); }
  .mbar.is-shown { transform: none; }
  .menu-open .mbar { transform: translateY(160%); }
  .mbar a { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; font-size: .7rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: #fff; background: var(--plum-900); }
  .mbar a:nth-child(2) { background: var(--plum); border-left: 1px solid rgba(255,255,255,.12); }
  .mbar a:nth-child(3) { background: var(--ivory); color: var(--plum-900); }
  .mbar svg { width: 18px; height: 18px; }
  .ftr__bottom { padding-bottom: 96px; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .hero__actions .btn { width: 100%; }
  .trust__foot .btn { letter-spacing: .14em; padding: 0 22px; }
  .hero__actions { gap: 14px; }
  .pieces, .pieces--3 { column-gap: 18px; }
  .pieces li { font-size: 1.1rem; gap: 10px; }
  .tiles { gap: 6px; }
  .tiles figcaption { font-size: .85rem; padding: 18px 6px 5px; }
  .minis img { width: 64px; height: 64px; }
  .process { row-gap: 36px; }
  .process li { column-gap: 20px; }
  .form__grid, .form__grid--3 { grid-template-columns: 1fr; gap: 24px; }
  .form__lead span:last-child { display: none; }
  .visit__row { flex-direction: column; align-items: flex-start; }
  .form { padding: 28px 20px 32px; border-left: 0; border-right: 0; margin-inline: calc(var(--gutter) * -1); }
  .form__foot .btn, .form__send { width: 100%; }
  .ftr__top { grid-template-columns: 1fr; }
  .mills { display: grid; grid-template-columns: 1fr 1fr; padding: 0; row-gap: 0; }
  .mills li { padding: 20px 8px; text-align: center; font-size: 1.22rem; }
  .mills li + li::before { display: none; }
  .mills li:nth-child(even) { border-left: 1px solid var(--line); }
  .mills li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .mills li:last-child { grid-column: 1 / -1; border-left: 0; }
  .district { grid-template-columns: 28px minmax(0, 1fr); }
  .district__schools li { font-size: 1.15rem; }
}
