/* ═══════════════════════════════════════════════════════════════
   Below & Beyond · Education Consultancy
   Bauhaus-inspired: warm paper, primary red / yellow / blue, ink,
   geometric shapes and label bars. Geometric sans (Jost).
   Logical properties throughout so an Arabic (RTL) version can
   reuse this file.
   ═══════════════════════════════════════════════════════════════ */
@font-face { font-family: 'Jost'; src: url('fonts/Jost-latin.woff2') format('woff2'); font-weight: 300 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Jost'; src: url('fonts/Jost-italic-latin.woff2') format('woff2'); font-weight: 300 800; font-style: italic; font-display: swap; }

:root {
  color-scheme: only light;
  --paper: #F5E4CF;
  --paper-2: #EFD7BC;
  --white: #FFFDF9;
  --ink: #161412;
  --ink-2: #3E3832;
  --red: #E4463A;
  --yellow: #F6C445;
  --amber: #F2A71B;
  --blue: #3B87C4;
  --line: rgba(22,20,18,.16);
  --font: 'Jost', 'Futura', 'Century Gothic', 'Avenir Next', system-ui, sans-serif;
  --wrap: 1200px;
  --gut: clamp(20px, 5vw, 48px);
  --sec: clamp(72px, 10vw, 136px);
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.05; letter-spacing: -0.01em; }
h1 { font-size: clamp(42px, 6.4vw, 88px); }
h2 { font-size: clamp(32px, 4.4vw, 58px); }
h3 { font-size: clamp(20px, 1.7vw, 24px); line-height: 1.2; font-weight: 600; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
::selection { background: var(--yellow); color: var(--ink); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: var(--sec); position: relative; }
.skip { position: absolute; inset-inline-start: -9999px; }
.skip:focus { inset-inline-start: 16px; top: 16px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 16px; }

.lead { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.5; color: var(--ink-2); }
.muted { color: var(--ink-2); }

/* ── label bars: the white strip a heading sits on, bleeding off the edge ── */
.bar {
  display: inline-block;
  position: relative;
  background: var(--white);
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 500;
  font-size: clamp(13px, 1.1vw, 15px);
  line-height: 1;
  padding: .75em 1em .7em;
  margin-block-end: 22px;
}
.bar--bleed { box-shadow: -100vw 0 0 0 var(--white); clip-path: inset(0 0 0 -100vw); }
.bar--blue { background: var(--blue); color: var(--white); }
.bar--blue.bar--bleed { box-shadow: -100vw 0 0 0 var(--blue); }
.bar--red { background: var(--red); color: var(--white); }
.bar--red.bar--bleed { box-shadow: -100vw 0 0 0 var(--red); }
.bar--ink { background: var(--ink); color: var(--paper); }
.bar--yellow { background: var(--yellow); }
.hl { position: relative; white-space: nowrap; }
.hl::after { content: ''; position: absolute; inset-inline: -.06em; bottom: .06em; height: .26em; background: var(--yellow); z-index: -1; }
.hl--red::after { background: var(--red); opacity: .85; }
.hl--blue::after { background: var(--blue); opacity: .75; }

/* ── buttons: flat, square, an offset shadow on hover ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 500 16px/1 var(--font);
  letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none;
  padding: 18px 26px;
  border: 2px solid var(--ink);
  background: transparent; color: var(--ink);
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s;
}
.btn svg { width: 20px; height: 20px; }
.btn:hover { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--ink); }
.btn--red { background: var(--red); border-color: var(--red); color: var(--white); }
.btn--red:hover { box-shadow: 5px 5px 0 var(--ink); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { box-shadow: 5px 5px 0 var(--red); }
.btn--paper { background: var(--paper); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-block-start: 34px; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 500; text-transform: uppercase; letter-spacing: .05em; font-size: 15px;
  text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 3px;
}
.link-arrow::after { content: '→'; transition: transform .2s var(--ease); }
[dir="rtl"] .link-arrow::after { content: '←'; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ── geometric primitives ── */
.shape { position: absolute; display: block; }
.circle { border-radius: 50%; }
.half-top { border-radius: 999px 999px 0 0; }
.half-left { border-radius: 999px 0 0 999px; }
.tri { clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.tri-r { clip-path: polygon(0 0, 100% 50%, 0 100%); }
.dashed { border: 3px dashed var(--ink); border-radius: 50%; background: none !important; }
.bg-red { background: var(--red); } .bg-yellow { background: var(--yellow); } .bg-amber { background: var(--amber); }
.bg-blue { background: var(--blue); } .bg-ink { background: var(--ink); } .bg-white { background: var(--white); }

/* ── header ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 2px 0 var(--ink); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; margin-inline-end: auto; }
.brand img { height: 36px; width: auto; }
.brand-sub {
  border-inline-start: 2px solid var(--ink);
  padding-inline-start: 14px;
  font-size: 12px; line-height: 1.25; letter-spacing: .16em; text-transform: uppercase; font-weight: 500;
}
.header-cta { padding: 14px 20px !important; font-size: 14px !important; }
.m-space { width: 48px; height: 48px; flex: 0 0 auto; }

/* ── menu: the main site's slide-in panel, in yellow ── */
.m-btn {
  position: fixed; z-index: 3000;
  top: 18px; inset-inline-end: calc(max(0px, (100vw - var(--wrap)) / 2) + var(--gut));
  width: 48px; height: 48px; padding: 0 8px;
  display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 6px;
  background: none; border: 0; cursor: pointer;
}
.m-bar { display: block; height: 2.5px; background: var(--ink); transform-origin: right center;
  transition: width .4s cubic-bezier(.77,0,.175,1), transform .4s cubic-bezier(.77,0,.175,1), opacity .3s ease, background .3s ease; }
.m-bar-1 { width: 32px; } .m-bar-2 { width: 22px; } .m-bar-3 { width: 28px; }
.m-open .m-bar-1 { width: 30px; transform: translateY(8.5px) rotate(-45deg); background: var(--yellow); }
.m-open .m-bar-2 { opacity: 0; width: 0; }
.m-open .m-bar-3 { width: 30px; transform: translateY(-8.5px) rotate(45deg); background: var(--yellow); }
#m-overlay { position: fixed; inset: 0; z-index: 1500; background: rgba(0,0,0,0); pointer-events: none; transition: background .5s ease; }
.m-open #m-overlay { background: rgba(0,0,0,.55); pointer-events: auto; }
.m-open body { overflow: hidden; }
#m-canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2500; }
#m-panel {
  position: fixed; top: 0; inset-inline-end: 0; z-index: 2000;
  width: 50%; height: 100%; background: #080808; color: var(--paper);
  transform: translateX(100%); transition: transform .65s cubic-bezier(.77,0,.175,1);
  display: flex; flex-direction: column; justify-content: center; padding: 96px 8% 130px;
  overflow-y: auto;
}
[dir="rtl"] #m-panel { transform: translateX(-100%); }
.m-open #m-panel { transform: none; }
.m-logo-wrap { margin-block-end: 2.6rem; }
#m-logo { display: block; width: clamp(170px, 18vw, 250px); height: auto; opacity: 0; transition: opacity .5s ease; }
#m-logo.show { opacity: 1; }
.m-sub { display: block; margin-block-start: 14px; color: var(--yellow); font-weight: 600; font-size: 12px; letter-spacing: .42em; text-transform: uppercase; opacity: 0; transition: opacity .5s ease .1s; }
#m-logo.show + .m-sub { opacity: 1; }
.m-nav { list-style: none; }
.m-item { overflow: hidden; border-bottom: 1px solid #1c1c1c; }
.m-item:first-child { border-top: 1px solid #1c1c1c; }
.m-link {
  display: flex; align-items: baseline; gap: 18px;
  padding: 1.15rem 0; font-size: clamp(1.2rem, 2.2vw, 1.7rem); font-weight: 400; letter-spacing: .01em;
  color: var(--paper); text-decoration: none;
  transform: translateY(110%); opacity: 0;
  transition: color .3s ease, padding .3s ease;
}
.m-link small { font-size: 12px; color: var(--yellow); letter-spacing: .1em; font-weight: 500; }
.m-link:hover, .m-link[aria-current="page"] { color: var(--yellow); padding-inline-start: .6rem; }
.m-open .m-link { transform: none; opacity: 1; }
.m-open .m-item:nth-child(1) .m-link { transition: transform .5s cubic-bezier(.77,0,.175,1) 0.30s, opacity .5s ease 0.30s, color .3s ease, padding .3s ease; }
.m-open .m-item:nth-child(2) .m-link { transition: transform .5s cubic-bezier(.77,0,.175,1) 0.37s, opacity .5s ease 0.37s, color .3s ease, padding .3s ease; }
.m-open .m-item:nth-child(3) .m-link { transition: transform .5s cubic-bezier(.77,0,.175,1) 0.44s, opacity .5s ease 0.44s, color .3s ease, padding .3s ease; }
.m-open .m-item:nth-child(4) .m-link { transition: transform .5s cubic-bezier(.77,0,.175,1) 0.51s, opacity .5s ease 0.51s, color .3s ease, padding .3s ease; }
.m-open .m-item:nth-child(5) .m-link { transition: transform .5s cubic-bezier(.77,0,.175,1) 0.58s, opacity .5s ease 0.58s, color .3s ease, padding .3s ease; }
.m-open .m-item:nth-child(6) .m-link { transition: transform .5s cubic-bezier(.77,0,.175,1) 0.65s, opacity .5s ease 0.65s, color .3s ease, padding .3s ease; }
.m-cta { margin-block-start: 2rem; align-self: flex-start; opacity: 0; transform: translateY(8px); transition: opacity .5s ease .7s, transform .5s ease .7s, box-shadow .2s, background .2s; }
.m-cta.btn { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.m-cta.btn:hover { box-shadow: 5px 5px 0 var(--red); }
.m-open .m-cta { opacity: 1; transform: none; }
.m-foot { position: absolute; bottom: 1.5rem; inset-inline: 8%; display: flex; justify-content: space-between; gap: 16px; opacity: 0; transition: opacity .5s ease .75s; }
.m-open .m-foot { opacity: 1; }
.m-foot span, .m-foot a { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #6b6b6b; text-decoration: none; }
.m-foot a { color: var(--yellow); }

@media (max-width: 960px) {
  .header-cta { display: none !important; }
}
@media (max-width: 768px) {
  #m-panel { width: 88%; padding: 80px 10% 90px; justify-content: flex-start; }
  .m-foot { inset-inline: 10%; }
  .m-logo-wrap { margin-block: 2vh 2rem; }
}
@media (max-width: 520px) {
  .brand img { height: 30px; }
  .brand-sub { font-size: 10px; letter-spacing: .12em; padding-inline-start: 10px; }
  .header-row { min-height: 72px; gap: 12px; }
  .m-btn { top: 12px; }
  .m-space { width: 40px; }
}

/* ── home hero ── */
.hero { padding-block: clamp(40px, 6vw, 80px) clamp(72px, 9vw, 120px); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-block-end: 26px; }
.hero .lead { max-width: 34ch; }
.comp { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 560px; margin-inline: auto; }
.comp .shape { transition: transform 1s var(--ease), opacity .6s ease; }
.hero-comp .s1 { width: 44%; height: 44%; inset-block-start: 4%; inset-inline-start: 0; }          /* red half circle */
.hero-comp .s2 { width: 66%; height: 66%; inset-block-start: 12%; inset-inline-end: 0; }           /* yellow circle */
.hero-comp .s3 { width: 30%; height: 30%; inset-block-end: 4%; inset-inline-start: 10%; }          /* blue square */
.hero-comp .s4 { width: 16%; height: 16%; inset-block-end: 12%; inset-inline-end: 8%; }            /* ink triangle */
.hero-comp .s5 { width: 92%; height: 92%; inset-block-start: 4%; inset-inline-start: 4%; clip-path: inset(0 0 52% 50%); } /* dashed arc */
.hero-comp .s6 { width: 8%; height: 8%; inset-block-start: 6%; inset-inline-end: 22%; }            /* small blue dot */
.comp-type { position: absolute; font-weight: 600; line-height: .9; letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.hero-comp .t1 { font-size: clamp(40px, 5vw, 74px); inset-block-start: 20%; inset-inline-start: 8%; }
.hero-comp .t2 { font-size: clamp(40px, 5vw, 74px); inset-block-start: 45%; inset-inline-start: 16%; }
.hero-comp .cap { position: absolute; inset-block-end: 0; inset-inline-end: 0; max-width: 58%; }
.hero-comp .cap .bar { margin: 0; font-size: 12px; line-height: 1.35; letter-spacing: .08em; padding: .8em 1em; }
/* entrance once the intro has played */
.intro-wait .hero-comp .shape { transform: scale(.2) rotate(-30deg); opacity: 0; }
.intro-wait .hero-comp .comp-type, .intro-wait .hero-comp .cap { opacity: 0; transform: translateY(14px); }
.hero-comp .comp-type, .hero-comp .cap { transition: opacity .7s ease, transform .9s var(--ease); }
.hero-comp .s2 { transition-delay: .05s; } .hero-comp .s1 { transition-delay: .15s; } .hero-comp .s3 { transition-delay: .25s; }
.hero-comp .s4 { transition-delay: .35s; } .hero-comp .s5 { transition-delay: .3s; } .hero-comp .s6 { transition-delay: .45s; }
.hero-comp .t1 { transition-delay: .5s; } .hero-comp .t2 { transition-delay: .62s; } .hero-comp .cap { transition-delay: .75s; }

/* ── "from the inside": stripes block + text (architecture slide) ── */
.inside { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.stripes {
  position: relative; aspect-ratio: 4 / 5;
  background: repeating-linear-gradient(90deg, var(--blue) 0 44px, #E9A777 44px 58px);
}
.stripes::after { /* the "windows" band */
  content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 34%;
  background:
    repeating-linear-gradient(90deg, transparent 0 46px, var(--ink) 46px 50px),
    linear-gradient(var(--white) 0 8%, #D8D3CC 8% 46%, var(--white) 46% 54%, #CFC9C1 54% 92%, var(--white) 92%);
}
.stripes .shape.circle { width: 34%; aspect-ratio: 1; inset-block-start: -8%; inset-inline-end: -8%; }
.inside h2 { margin-block-end: 26px; }

/* ── services grid: numbered shapes (principles slide) ── */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-block-end: clamp(40px, 6vw, 72px); }
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(36px, 4vw, 56px) clamp(20px, 3vw, 40px); }
.principle { text-decoration: none; display: flex; flex-direction: column; align-items: center; text-align: center; }
.principle h3 { margin-block: 22px 10px; }
.principle p { font-size: 16px; line-height: 1.5; color: var(--ink-2); margin: 0 0 16px; max-width: 28ch; }
.principle .link-arrow { margin-block-start: auto; font-size: 13px; }
.glyph { position: relative; width: 96px; height: 96px; transition: transform .4s var(--ease); }
.principle:hover .glyph { transform: rotate(-8deg) scale(1.06); }
.glyph .shape { position: absolute; }
.glyph b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 46px; font-weight: 600; line-height: 1; z-index: 3; }
/* eight small compositions */
.g1 .a { inset: 12% 0 0 22%; background: var(--red); } .g1 .b { width: 52%; height: 52%; top: 4%; left: 0; background: var(--ink); clip-path: polygon(0 0, 100% 30%, 20% 100%); z-index: 2; } .g1 b { color: var(--amber); padding: 18% 0 0 26%; }
.g2 .a { inset: 8%; border-radius: 50%; background: var(--blue); } .g2 .b { width: 30%; height: 30%; top: 0; right: 0; background: var(--red); } .g2 b { color: var(--yellow); }
.g3 .a { inset: 4% 4% 10%; background: var(--ink); clip-path: polygon(50% 0, 100% 100%, 0 100%); } .g3 .b { width: 34%; height: 30%; bottom: 0; left: 0; background: var(--yellow); } .g3 b { color: var(--yellow); padding-top: 34%; font-size: 34px; }
.g4 .a { inset: 4% 14% 14% 4%; border-radius: 50%; background: var(--blue); } .g4 .b { width: 52%; height: 52%; right: 0; bottom: 0; border-radius: 50%; background: var(--yellow); mix-blend-mode: multiply; } .g4 b { color: var(--white); padding: 0 12% 12% 0; }
.g5 .a { inset: 0 0 18% 18%; background: var(--white); } .g5 .b { width: 70%; height: 46%; left: 0; bottom: 0; border-left: 14px solid var(--ink); border-bottom: 14px solid var(--ink); } .g5 b { color: var(--amber); padding: 0 0 16% 18%; }
.g6 .a { inset: 10% 0 0 10%; border-radius: 50%; background: var(--blue); } .g6 .b { width: 34%; height: 34%; top: 0; left: 0; border-radius: 50%; background: var(--yellow); } .g6 b { color: var(--amber); padding: 10% 0 0 10%; }
.g7 .a { inset: 0 6% 8% 0; background: var(--white); clip-path: polygon(0 0, 100% 0, 30% 100%); } .g7 .b { width: 60%; height: 64%; right: 0; bottom: 0; background: var(--ink); clip-path: polygon(100% 0, 100% 100%, 0 100%); } .g7 b { color: var(--amber); }
.g8 .a { inset: 14% 0 0 0; border-radius: 50%; background: var(--red); } .g8 .b { width: 32%; height: 32%; top: 0; left: 34%; border-radius: 50%; background: var(--blue); } .g8 b { color: var(--yellow); padding-top: 14%; }

/* ── why us: four columns under colour blocks ── */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 40px); }
.why-item { border-top: 2px solid var(--ink); padding-top: 22px; position: relative; }
.why-item .shape { position: static; width: 44px; height: 44px; margin-block-end: 20px; }
.why-item h3 { margin-block-end: 10px; }
.why-item p { font-size: 16px; color: var(--ink-2); margin: 0; }

/* ── how we work: blue frame, yellow circle, ring diagram ── */
.framed { position: relative; padding-block-start: 8px; }
.framed::before { /* blue frame line coming down the right side */
  content: ''; position: absolute; inset-inline-end: 0; top: 22px; bottom: 0; width: 18px; background: var(--blue);
}
.framed .bar--blue { margin-block-end: 0; }
.how { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; padding-block: clamp(40px, 6vw, 72px) 0; padding-inline-end: clamp(36px, 5vw, 72px); }
.sun { aspect-ratio: 1; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; text-align: center; padding: 16%; max-width: 460px; width: 100%; margin-inline: auto; }
.sun p { margin: 0; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.45; }
.sun strong { display: block; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; margin-block-end: 14px; }
.rings { max-width: 460px; width: 100%; margin-inline: auto; }
.rings text { font-family: var(--font); text-transform: uppercase; letter-spacing: .14em; fill: var(--ink); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); margin-block-start: clamp(40px, 6vw, 64px); padding-inline-end: clamp(36px, 5vw, 72px); }
.step { position: relative; padding-inline-start: 64px; }
.step-num { position: absolute; inset-inline-start: 0; top: 0; width: 46px; height: 46px; display: grid; place-items: center; font-weight: 600; font-size: 22px; color: var(--white); }
.step:nth-child(1) .step-num { background: var(--red); border-radius: 50%; }
.step:nth-child(2) .step-num { background: var(--blue); }
.step:nth-child(3) .step-num { background: var(--ink); clip-path: polygon(50% 0, 100% 100%, 0 100%); padding-top: 12px; font-size: 18px; color: var(--yellow); }
.step h3 { margin-block-end: 8px; }
.step p { font-size: 16px; color: var(--ink-2); margin: 0; }
.note { margin-block-start: 40px; font-style: italic; color: var(--ink-2); }

/* ── call to action band (yellow) ── */
.cta-band { background: var(--yellow); overflow: hidden; }
.cta-band .wrap { position: relative; z-index: 1; }
.cta-band h2 { max-width: 17ch; margin-block-end: 20px; }
.cta-band .lead { color: var(--ink); max-width: 40ch; }
.cta-band .shape { z-index: 0; }
.cta-band .c1 { width: clamp(220px, 34vw, 460px); aspect-ratio: 1; border-radius: 50%; background: var(--red); inset-inline-end: -6%; top: 50%; transform: translateY(-50%); }
.cta-band .c2 { width: clamp(90px, 12vw, 160px); aspect-ratio: 1; background: var(--blue); inset-inline-end: 22%; bottom: 10%; }
.cta-band .c3 { width: clamp(70px, 9vw, 120px); aspect-ratio: 1; background: var(--ink); clip-path: polygon(50% 0, 100% 100%, 0 100%); inset-inline-end: 6%; top: 10%; }
.cta-band .c4 { width: clamp(260px, 40vw, 560px); aspect-ratio: 1; inset-inline-end: -14%; top: -30%; }
@media (max-width: 760px) {
  .cta-band .c1 { opacity: .9; inset-inline-end: -40%; top: auto; bottom: -26%; transform: none; }
  .cta-band .c2 { inset-inline-end: 8%; bottom: 6%; }
  .cta-band .c3, .cta-band .c4 { display: none; }
  .cta-band .btn-row { position: relative; z-index: 2; }
  .cta-band { padding-block-end: 180px; }
}

/* ── footer ── */
.site-footer { background: var(--ink); color: var(--paper); padding-block: 0 32px; font-size: 16px; }
.footer-stripe { display: grid; grid-template-columns: 3fr 2fr 1fr 1fr; height: 14px; }
.footer-stripe span:nth-child(1) { background: var(--red); } .footer-stripe span:nth-child(2) { background: var(--blue); }
.footer-stripe span:nth-child(3) { background: var(--paper); } .footer-stripe span:nth-child(4) { background: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.3fr 1.3fr; gap: 40px; padding-block: clamp(56px, 7vw, 88px) 48px; }
.footer-brand img { height: 46px; width: auto; margin-block-end: 18px; }
.footer-brand p { color: rgba(245,228,207,.75); max-width: 34ch; }
.site-footer h4 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: var(--yellow); margin-block-end: 16px; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; color: var(--paper); }
.site-footer a:hover { color: var(--yellow); }
.legal { border-top: 1px solid rgba(245,228,207,.2); padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: rgba(245,228,207,.6); }

/* WhatsApp button */
.wa-fab { position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 40; width: 60px; height: 60px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 4px 4px 0 var(--ink); transition: transform .2s var(--ease); }
.wa-fab:hover { transform: translate(-2px,-2px); }
.wa-fab svg { width: 30px; height: 30px; }

/* ── inner page hero ── */
.page-hero { padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 104px); position: relative; overflow: hidden; }
.page-hero h1 { max-width: 15ch; margin-block-end: 24px; }
.page-hero .lead { max-width: 46ch; }
.page-hero .deco { position: absolute; inset-inline-end: max(var(--gut), calc((100vw - var(--wrap)) / 2 + var(--gut))); top: 50%; transform: translateY(-50%); width: clamp(180px, 26vw, 360px); aspect-ratio: 1; }
.deco .shape { position: absolute; }
.deco .d1 { inset: 0 0 auto auto; width: 70%; height: 70%; border-radius: 50%; background: var(--blue); }
.deco .d2 { inset: auto auto 0 0; width: 56%; height: 56%; background: var(--red); }
.deco .d3 { inset: 30% auto auto 30%; width: 34%; height: 34%; background: var(--yellow); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.deco .d4 { inset: -12%; border: 3px dashed var(--ink); border-radius: 50%; clip-path: inset(0 0 50% 50%); }
@media (max-width: 900px) { .page-hero .deco { position: relative; inset: auto; transform: none; width: 160px; margin-block-start: 40px; } }

/* services page */
.chips { position: sticky; top: 84px; z-index: 30; background: var(--paper); border-block: 2px solid var(--ink); }
.chips-row { display: flex; gap: 8px; overflow-x: auto; padding-block: 12px; scrollbar-width: none; }
.chips-row::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; text-decoration: none; font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; padding: 10px 14px; border: 2px solid transparent; display: inline-flex; align-items: center; gap: 8px; }
.chip::before { content: ''; width: 10px; height: 10px; background: var(--c, var(--red)); }
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); color: var(--paper); }
@media (max-width: 520px) { .chips { top: 72px; } }
.service { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); padding-block: clamp(64px, 8vw, 104px); border-bottom: 2px solid var(--ink); align-items: start; }
.service:last-child { border-bottom: 0; }
.service-head { position: relative; padding-inline-start: clamp(84px, 9vw, 120px); }
.service-num { position: absolute; inset-inline-start: 0; top: 0; width: clamp(64px, 7vw, 92px); aspect-ratio: 1; display: grid; place-items: center; font-weight: 600; font-size: clamp(26px, 2.8vw, 36px); background: var(--c, var(--red)); color: var(--white); }
.service-num.is-circle { border-radius: 50%; }
.service-num.is-tri { clip-path: polygon(50% 0, 100% 100%, 0 100%); place-items: end center; padding-bottom: 10%; font-size: clamp(20px, 2.2vw, 28px); }
.service h2 { font-size: clamp(28px, 3vw, 40px); margin-block-end: 18px; }
.ticks { list-style: none; display: grid; gap: 14px; margin-block-end: 28px; }
.ticks li { position: relative; padding-inline-start: 30px; }
.ticks li::before { content: ''; position: absolute; inset-inline-start: 0; top: .5em; width: 12px; height: 12px; background: var(--c, var(--red)); }
.service:nth-of-type(3n+2) .ticks li::before { border-radius: 50%; }

/* founder page */
.founder { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.portrait { position: relative; aspect-ratio: 4 / 5; position: sticky; top: 110px; }
.portrait .p-circle { position: absolute; width: 86%; aspect-ratio: 1; border-radius: 50%; background: var(--blue); inset-block-start: 0; inset-inline-start: 0; }
.portrait .p-square { position: absolute; width: 34%; aspect-ratio: 1; background: var(--yellow); inset-block-end: 4%; inset-inline-end: 0; }
.portrait .p-photo { position: absolute; inset: 10% 8% 0 8%; display: grid; place-items: center; overflow: hidden; }
.portrait .p-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.portrait-placeholder { width: 100%; height: 100%; background: var(--white); display: grid; place-content: center; text-align: center; gap: 8px; border: 2px solid var(--ink); }
.portrait-placeholder .initials { font-size: clamp(56px, 7vw, 96px); font-weight: 600; line-height: 1; }
.portrait-placeholder small { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: var(--ink-2); }
.portrait .p-arc { position: absolute; width: 110%; aspect-ratio: 1; inset-block-start: -8%; inset-inline-start: -14%; border: 3px dashed var(--ink); border-radius: 50%; clip-path: inset(0 50% 50% 0); }
.role { text-transform: uppercase; letter-spacing: .1em; font-weight: 500; font-size: 15px; margin-block: 14px 26px; display: inline-block; background: var(--red); color: var(--white); padding: .55em .9em; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: var(--ink); border: 2px solid var(--ink); margin-block: 36px; }
.fact { background: var(--paper); padding: 22px; position: relative; overflow: hidden; }
.fact strong { display: block; font-size: clamp(30px, 3vw, 42px); font-weight: 600; line-height: 1; margin-block-end: 8px; position: relative; z-index: 1; }
.fact span { font-size: 15px; color: var(--ink-2); position: relative; z-index: 1; }
.fact::after { content: ''; position: absolute; width: 44px; height: 44px; inset-inline-end: -16px; top: -16px; background: var(--c); border-radius: var(--r, 0); }
.fact:nth-child(1) { --c: var(--yellow); --r: 50%; } .fact:nth-child(2) { --c: var(--blue); } .fact:nth-child(3) { --c: var(--red); --r: 50%; } .fact:nth-child(4) { --c: var(--amber); }
blockquote { margin: 40px 0; position: relative; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.3; font-weight: 500; padding: 34px 0 34px clamp(24px, 4vw, 48px); z-index: 0; }
blockquote::before { content: ''; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 8px; background: var(--ink); }
blockquote::after { content: ''; position: absolute; width: 140px; height: 70px; border-radius: 999px 999px 0 0; background: var(--yellow); inset-inline-end: 0; top: -70px; }
.creds { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-block: 8px 8px; }
.creds li { border: 2px solid var(--ink); padding: 8px 12px; font-size: 14px; font-weight: 500; }

/* contact page */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.contact-list { list-style: none; display: grid; gap: 0; margin-block-start: 36px; border-top: 2px solid var(--ink); }
.contact-list li { padding-block: 18px; border-bottom: 2px solid var(--ink); display: grid; gap: 4px; }
.contact-list small { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 500; color: var(--ink-2); }
.contact-list a { font-size: 20px; font-weight: 500; text-decoration: none; }
.contact-list a:hover { color: var(--red); }
.form-card { background: var(--white); border: 2px solid var(--ink); box-shadow: 12px 12px 0 var(--blue); padding: clamp(24px, 4vw, 44px); position: relative; }
.form-card::before { content: ''; position: absolute; width: 64px; height: 64px; border-radius: 50%; background: var(--red); top: -32px; inset-inline-end: 36px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; position: relative; }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; padding: 0; }
.opt { text-transform: none; letter-spacing: 0; color: var(--ink-2); font-weight: 400; }
.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%; font: 400 17px/1.4 var(--font); color: var(--ink);
  background: var(--paper); border: 0; border-bottom: 2px solid var(--ink); border-radius: 0;
  padding: 13px 14px; appearance: none; -webkit-appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background-color: #FFF4D6; border-bottom-color: var(--blue); }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin-block-start: 6px; }
.field .check, .consent { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.35; cursor: pointer; text-transform: none; letter-spacing: 0; font-weight: 400; }
.check input, .consent input { appearance: none; -webkit-appearance: none; flex: 0 0 auto; width: 20px; height: 20px; border: 2px solid var(--ink); background: var(--white); margin: 0; cursor: pointer; position: relative; }
.check input:checked, .consent input:checked { background: var(--red); border-color: var(--red); }
.check input:checked::after, .consent input:checked::after { content: ''; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid var(--white); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.form-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form-status { margin: 0; font-size: 15px; }
.form-status.ok { color: #1F6B3A; } .form-status.err { color: var(--red); }
@media (max-width: 640px) { .form-grid, .checks { grid-template-columns: 1fr; } .form-card { box-shadow: 8px 8px 0 var(--blue); } }

/* ── responsive ── */
@media (max-width: 1080px) {
  .principles { grid-template-columns: repeat(2, 1fr); }
  .why { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-grid, .inside, .how, .founder, .contact, .service { grid-template-columns: 1fr; }
  .comp { max-width: 440px; }
  .stripes { aspect-ratio: 16 / 10; }
  .steps { grid-template-columns: 1fr; }
  .portrait { position: relative; top: 0; max-width: 380px; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .principles { grid-template-columns: 1fr 1fr; gap: 40px 16px; }
  .principle p { font-size: 15px; }
  .glyph { width: 80px; height: 80px; }
  .glyph b { font-size: 38px; }
  .why { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .framed::before { width: 10px; }
  .how, .steps { padding-inline-end: 26px; }
}

/* ── scroll reveal ── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; } .reveal-delay-2 { transition-delay: .2s; } .reveal-delay-3 { transition-delay: .3s; }
.no-js .reveal { opacity: 1; transform: none; }
.rings .ring { transform-origin: 50% 50%; transition: transform 1.4s var(--ease), opacity 1s ease; }
.rings:not(.is-in) .ring { transform: rotate(-40deg) scale(.9); opacity: 0; }
.rings .ring:nth-child(2) { transition-delay: .15s; } .rings .ring:nth-child(3) { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ═══ intro loader: the main site's line-and-logo intro, in yellow ═══ */
#edu-loader { display: none; }
.edu-intro #edu-loader {
  display: flex; position: fixed; inset: 0; z-index: 9999;
  background: #000; align-items: center; justify-content: center;
}
.edu-intro body { overflow: hidden; }
#edu-loader canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.edu-loader-mark { display: flex; flex-direction: column; align-items: center; }
#edu-loader-logo { width: clamp(150px, 22vw, 240px); height: auto; opacity: 0; transform: translateY(-10px); }
#edu-loader-sub {
  margin-block-start: clamp(18px, 2.4vw, 26px);
  color: var(--yellow); font: 600 clamp(12px, 1.45vw, 17px)/1 var(--font);
  letter-spacing: .5em; text-transform: uppercase; opacity: 0; white-space: nowrap;
  padding-inline-start: .5em; /* balances the trailing letter-spacing */
}

/* menu layout: logo/links centred in the free space, footer always below them
   (never on top), the panel scrolls if a short screen can't fit it all */
#m-panel { justify-content: flex-start !important; padding-block: 96px 26px !important; }
#m-panel > .m-logo-wrap { margin-block-start: auto; }
#m-panel > .m-foot { position: static; margin-block-start: auto; padding-block-start: 28px; inset: auto; }
@media (max-height: 920px) and (min-width: 769px) {
  #m-panel { padding-block-start: 84px !important; }
  .m-logo-wrap { margin-block-end: 1.4rem; }
  #m-logo { width: clamp(150px, 14vw, 200px); }
  .m-link { padding-block: .8rem; }
  .m-cta { margin-block-start: 1.3rem; }
}
@media (max-width: 768px) { #m-panel { padding-block: 84px 26px !important; } }

/* WhatsApp: hidden unless a number is set in config.js */
html:not(.has-wa) [data-wa], html:not(.has-wa) .wa-only { display: none !important; }

/* careers */
.careers-strip { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: 28px 48px; align-items: end; padding: clamp(32px, 5vw, 64px); background: var(--white); border: 2px solid var(--ink); }
.careers-strip h2 { font-size: clamp(28px, 3.4vw, 44px); max-width: 20ch; margin-block-end: 14px; }
.careers-strip .lead { margin: 0; max-width: 46ch; }
.careers-strip > div, .careers-strip > .btn { position: relative; z-index: 1; }
.careers-strip .circle { width: 160px; height: 160px; inset-inline-end: -50px; top: -60px; }
.careers-strip .tri { width: 70px; height: 70px; inset-inline-end: 110px; top: 18px; }
@media (max-width: 760px) { .careers-strip { grid-template-columns: 1fr; } .careers-strip .tri { display: none; } }
.cv-who { margin-block: 30px 6px; }
.cv-who h3, .cv-steps h3 { margin-block-end: 12px; }
.cv-steps { grid-template-columns: 1fr; padding-inline-end: 0; margin-block-start: 26px; gap: 20px; }
.cv-sent h2 { font-size: clamp(28px, 3vw, 40px); margin-block: 6px 16px; }
.field input[type="file"] { padding: 12px; font-size: 15px; cursor: pointer; }
.field input[type="file"]::file-selector-button { font: 500 13px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; background: var(--ink); color: var(--paper); border: 0; padding: 11px 14px; margin-inline-end: 14px; cursor: pointer; }

/* ═══ Phase 1 additions ═══ */
/* header: both markets, equal weight */
.markets { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.markets i { width: 8px; height: 8px; background: var(--red); border-radius: 50%; }
@media (max-width: 1100px) { .markets { display: none; } }
.based { display: flex; align-items: center; gap: 12px; margin-block-start: 26px; font-size: 16px; }
.based .shape { position: static; width: 14px; height: 14px; }
.m-open .m-item:nth-child(7) .m-link { transition: transform .5s cubic-bezier(.77,0,.175,1) .72s, opacity .5s ease .72s, color .3s ease, padding .3s ease; }
.m-open .m-item:nth-child(8) .m-link { transition: transform .5s cubic-bezier(.77,0,.175,1) .79s, opacity .5s ease .79s, color .3s ease, padding .3s ease; }
@media (max-height: 920px) and (min-width: 769px) { .m-link { padding-block: .62rem; font-size: clamp(1.05rem, 1.8vw, 1.4rem); } }

/* three pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--ink); border: 2px solid var(--ink); }
.pillar { background: var(--paper); padding: clamp(26px, 3.4vw, 44px); }
.pillar .shape { position: static; width: 56px; height: 56px; margin-block-end: 24px; }
.pillar h3 { font-size: clamp(30px, 3vw, 42px); margin-block-end: 12px; }
.pillar p { margin: 0; color: var(--ink-2); }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }

/* who we work with */
.clients { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.client { background: var(--white); border: 2px solid var(--ink); padding: 24px 22px; text-decoration: none; display: flex; flex-direction: column; }
.client .shape { position: static; width: 38px; height: 38px; margin-block-end: 18px; }
.client .half-top { height: 19px; margin-block-start: 19px; }
.client h3 { margin-block-end: 8px; }
.client p { margin: 0; font-size: 16px; color: var(--ink-2); }
.client--cta { background: var(--yellow); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.client--cta:hover { transform: translate(-3px,-3px); box-shadow: 6px 6px 0 var(--ink); }
.client--cta .link-arrow { margin-block-start: auto; padding-top: 14px; font-size: 13px; align-self: flex-start; }
@media (max-width: 1080px) { .clients { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .clients { grid-template-columns: 1fr; } }

/* expertise grid with 9 + 1 */
@media (min-width: 1181px) { .principles--10 { grid-template-columns: repeat(5, 1fr); } }
.g9 .a { inset: 6% 6% 14% 6%; background: var(--yellow); } .g9 .b { width: 46%; height: 46%; right: 0; bottom: 0; border-radius: 50%; background: var(--ink); } .g9 b { color: var(--red); padding: 0 16% 18% 0; }
.g10 .a { inset: 14% 0 0 0; border-radius: 50%; background: var(--red); } .g10 .b { width: 32%; height: 32%; top: 0; left: 34%; border-radius: 50%; background: var(--blue); } .g10 b { color: var(--yellow); padding-top: 14%; }

/* achievements */
.achieve { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: var(--ink); border: 2px solid var(--ink); }
.ach { background: var(--white); padding: 24px 22px; position: relative; overflow: hidden; }
.ach strong { display: block; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.05; font-weight: 600; margin-block-end: 8px; position: relative; z-index: 1; }
.ach span { font-size: 15px; color: var(--ink-2); position: relative; z-index: 1; }
.ach::after { content: ''; position: absolute; width: 40px; height: 40px; inset-inline-end: -14px; top: -14px; background: var(--c, var(--yellow)); border-radius: var(--r, 50%); }
.ach:nth-child(4n+2) { --c: var(--blue); --r: 0; } .ach:nth-child(4n+3) { --c: var(--red); } .ach:nth-child(4n+4) { --c: var(--amber); --r: 0; }
@media (max-width: 1080px) { .achieve { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .achieve { grid-template-columns: 1fr; } }

/* employers / candidates */
.rec-options { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.rec-options--top { margin-block-start: 36px; max-width: 900px; }
.rec-card { position: relative; overflow: hidden; background: var(--white); border: 2px solid var(--ink); padding: clamp(26px, 3.4vw, 40px); text-decoration: none; display: flex; flex-direction: column; align-items: flex-start; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.rec-card:hover { transform: translate(-3px,-3px); box-shadow: 7px 7px 0 var(--ink); }
.rec-card .shape { width: 120px; height: 120px; inset-inline-end: -36px; top: -36px; }
.rec-card .bar { margin-block-end: 18px; }
.rec-card h3 { font-size: clamp(26px, 2.6vw, 34px); margin-block-end: 10px; }
.rec-card p { color: var(--ink-2); margin: 0 0 20px; max-width: 40ch; }
.rec-card .link-arrow { margin-block-start: auto; }
@media (max-width: 760px) { .rec-options { grid-template-columns: 1fr; } }
.vacancies { border: 2px solid var(--ink); background: var(--white); padding: clamp(24px, 3.4vw, 40px); }
.vacancies h2 { font-size: clamp(26px, 2.6vw, 34px); margin-block-end: 10px; }
.vacancies .lead { margin: 0; }
.vacancy-list { list-style: none; display: grid; gap: 10px; }
.small-print { font-size: 14px; color: var(--ink-2); margin-block-start: 26px; }

/* about */
.about-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.about-split h2 { margin-block-end: 18px; }
@media (max-width: 900px) { .about-split { grid-template-columns: 1fr; } }
.markets-block { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--ink); border: 2px solid var(--ink); margin-block: 28px 8px; }
.mk { background: var(--white); padding: 22px; }
.mk .shape { position: static; width: 30px; height: 30px; margin-block-end: 14px; }
.mk h3 { margin-block-end: 6px; }
.mk p { margin: 0; font-size: 15px; color: var(--ink-2); }
@media (max-width: 520px) { .markets-block { grid-template-columns: 1fr; } }
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 20px; }
.team-card { display: grid; grid-template-columns: 160px 1fr; background: var(--white); border: 2px solid var(--ink); text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.team-card:hover { transform: translate(-3px,-3px); box-shadow: 7px 7px 0 var(--blue); }
.team-photo { background: var(--blue); overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.team-body { padding: 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.team-body .bar { margin: 0 0 6px; }
.team-body p { margin: 0 0 8px; font-size: 15px; color: var(--ink-2); }
@media (max-width: 520px) { .team-card { grid-template-columns: 110px 1fr; } }
.founder-h { font-size: clamp(24px, 2.4vw, 32px); margin-block: 34px 12px; }
.founder-h3 { margin-block: 26px 12px; }
.ticks li strong { font-weight: 600; }

/* legal pages */
.prose { max-width: 760px; margin-block-start: 30px; }
.prose h2 { font-size: clamp(24px, 2.2vw, 30px); margin-block: 36px 12px; }
.prose ul { padding-inline-start: 22px; display: grid; gap: 8px; margin-block-end: 1em; }
.prose a, .consent a, .small-print a { text-decoration: underline; }
.legal a { color: inherit; }
.footer-markets { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-markets span { border: 1px solid rgba(245,228,207,.4); padding: 4px 10px; font-size: 13px; letter-spacing: .06em; }
.footer-brand strong { color: var(--paper); font-weight: 500; }
.consent { line-height: 1.45; }
/* Phase 1 hero: longer headline; keep the composition at full size */
.hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.hero h1 { font-size: clamp(40px, 5.2vw, 76px); }
.hero .hl { white-space: normal; background: linear-gradient(transparent 68%, var(--yellow) 68% 92%, transparent 92%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero .hl::after { display: none; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* How we work: the ring diagram turns with the scroll (outer, middle and inner
   rings at different speeds and directions); fades in when it reaches view */
.rings .ring { transform: rotate(var(--rot, 0deg)); transform-origin: 50% 50%; transition: opacity 1s ease; will-change: transform; }
.rings:not(.is-in) .ring { transform: rotate(var(--rot, 0deg)); opacity: 0; }
.rings .ring-center { transform: rotate(calc(var(--rot, 0deg) * -1)); transform-origin: 50% 50%; }

/* ── hero composition drifts apart on scroll and settles back (--p: 0 → 1, set by site.js) ── */
.hero-comp { --p: 0; --d: 1; }
.hero-comp .t1 { translate: calc(var(--p) * var(--d) * -130px) calc(var(--p) * var(--d) * -70px); rotate: calc(var(--p) * -8deg); }
.hero-comp .t2 { translate: calc(var(--p) * var(--d) * 150px) calc(var(--p) * var(--d) * 50px); rotate: calc(var(--p) * 6deg); }
.hero-comp .s1 { translate: calc(var(--p) * var(--d) * -90px) calc(var(--p) * var(--d) * 30px); rotate: calc(var(--p) * -28deg); }
.hero-comp .s2 { translate: calc(var(--p) * var(--d) * 60px) calc(var(--p) * var(--d) * -50px); scale: calc(1 + var(--p) * .12); }
.hero-comp .s3 { translate: calc(var(--p) * var(--d) * -50px) calc(var(--p) * var(--d) * 100px); rotate: calc(var(--p) * 38deg); }
.hero-comp .s4 { translate: calc(var(--p) * var(--d) * 80px) calc(var(--p) * var(--d) * 70px); rotate: calc(var(--p) * 130deg); }
.hero-comp .s5 { rotate: calc(var(--p) * 100deg); }
.hero-comp .s6 { translate: calc(var(--p) * var(--d) * 90px) calc(var(--p) * var(--d) * -90px); }
.hero-comp .cap { translate: 0 calc(var(--p) * var(--d) * 50px); }

/* ── "from the inside" stripes: build when in view, take themselves apart as
   they leave, rebuild when you come back. --o (set by site.js) makes them grow
   and collapse toward the side they enter or leave from. ── */
.stripes--build { background: none; display: flex; }
.stripes--build::after { display: none; }
.stripes--build .st { flex: 1; background: var(--blue); box-shadow: inset -14px 0 0 #E9A777; transform-origin: 50% var(--o, 100%); transform: scaleY(0); transition: transform .42s cubic-bezier(.6,0,.4,1); }
.stripes--build .win {
  position: absolute; inset-inline: 0; bottom: 0; height: 34%;
  background:
    repeating-linear-gradient(90deg, transparent 0 46px, var(--ink) 46px 50px),
    linear-gradient(var(--white) 0 8%, #D8D3CC 8% 46%, var(--white) 46% 54%, #CFC9C1 54% 92%, var(--white) 92%);
  clip-path: inset(0 100% 0 0); transition: clip-path .4s cubic-bezier(.7,0,.2,1) .06s;
}
.stripes--build .shape.circle { transform: scale(0); transition: transform .28s ease-in 0s; }
/* taking apart: circle first, then the band, then the stripes from the last one back */
.stripes--build .st:nth-child(9) { transition-delay: .14s; } .stripes--build .st:nth-child(8) { transition-delay: .17s; }
.stripes--build .st:nth-child(7) { transition-delay: .2s; }  .stripes--build .st:nth-child(6) { transition-delay: .23s; }
.stripes--build .st:nth-child(5) { transition-delay: .26s; } .stripes--build .st:nth-child(4) { transition-delay: .29s; }
.stripes--build .st:nth-child(3) { transition-delay: .32s; } .stripes--build .st:nth-child(2) { transition-delay: .35s; }
.stripes--build .st:nth-child(1) { transition-delay: .38s; }
/* building: stripes left to right, then the band, then the circle (faster than before) */
.stripes--build.built .st { transform: scaleY(1); transition: transform .55s cubic-bezier(.2,.8,.2,1); }
.stripes--build.built .st:nth-child(1) { transition-delay: 0s; }    .stripes--build.built .st:nth-child(2) { transition-delay: .045s; }
.stripes--build.built .st:nth-child(3) { transition-delay: .09s; }  .stripes--build.built .st:nth-child(4) { transition-delay: .135s; }
.stripes--build.built .st:nth-child(5) { transition-delay: .18s; }  .stripes--build.built .st:nth-child(6) { transition-delay: .225s; }
.stripes--build.built .st:nth-child(7) { transition-delay: .27s; }  .stripes--build.built .st:nth-child(8) { transition-delay: .315s; }
.stripes--build.built .st:nth-child(9) { transition-delay: .36s; }
.stripes--build.built .win { clip-path: inset(0 0 0 0); transition: clip-path .6s cubic-bezier(.7,0,.2,1) .45s; }
.stripes--build.built .shape.circle { transform: scale(1); transition: transform .6s cubic-bezier(.3,1.6,.5,1) .85s; }

/* ── headline builds word by word, then the highlight sweeps in ── */
.build-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.build-words .w > span { display: inline-block; transform: translateY(105%) rotate(5deg); transform-origin: 0 100%; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.build-words.built .w > span { transform: none; }
html.intro-wait .build-words .w > span { transform: translateY(105%) rotate(5deg); }
.build-words .hl { background-size: 0% 100%; background-repeat: no-repeat; transition: background-size .9s cubic-bezier(.7,0,.2,1); }
.build-words.built .hl { background-size: 100% 100%; }
html.intro-wait .build-words .hl { background-size: 0% 100%; }
.cta-band .build-words { position: relative; }
@media (prefers-reduced-motion: reduce) {
  .hero-comp { --p: 0 !important; }
  .build-words .w > span, html.intro-wait .build-words .w > span { transform: none !important; }
  .build-words .hl, html.intro-wait .build-words .hl { background-size: 100% 100% !important; }
  .stripes--build .st, .stripes--build .shape.circle { transform: none !important; } .stripes--build .win { clip-path: none !important; }
}

/* smooth scrolling (Lenis): let it own the scroll position */
html.lenis, html.lenis body { scroll-behavior: auto !important; }

/* ── menu always fits on one screen (no scrolling): a smaller logo and spacing
   that scales with the screen height ── */
#m-panel { padding-block: clamp(64px, 9vh, 96px) clamp(14px, 2.5vh, 26px) !important; }
#m-logo { width: clamp(84px, min(11vw, 13vh), 150px); }
.m-logo-wrap { margin-block-end: clamp(.6rem, 2.2vh, 1.6rem) !important; }
.m-sub { margin-block-start: 6px; font-size: clamp(9px, 1.3vh, 12px); }
.m-link { padding-block: clamp(.3rem, 1.15vh, .85rem); font-size: clamp(1rem, min(2.2vw, 2.7vh), 1.55rem); line-height: 1.25; }
.m-link small { font-size: 11px; }
.m-cta { margin-block-start: clamp(.7rem, 2.2vh, 1.6rem); padding: clamp(10px, 1.6vh, 16px) 20px; }
#m-panel > .m-foot { padding-block-start: clamp(10px, 2vh, 26px); }

/* ── the page can never slide sideways ──
   Moving shapes are cut off at the screen edge instead of widening the page.
   "clip" (unlike "hidden") keeps the sticky header and sticky parts working. */
@supports (overflow-x: clip) {
  html, body, main, .site-footer { overflow-x: clip; }
}
@media (max-width: 900px) { .hero-comp { --d: .3; } }
/* the closed menu is fully out of the layout, not parked beside the screen */
#m-panel { visibility: hidden; transition: transform .65s cubic-bezier(.77,0,.175,1), visibility 0s linear .65s; }
.m-open #m-panel { visibility: visible; transition: transform .65s cubic-bezier(.77,0,.175,1), visibility 0s; }
/* page behind the open menu or the intro stays put */
html.m-open, html.edu-intro { overflow: hidden; }

/* ── same light design on phones set to dark ──
   Browsers leave a page alone when it says it has its own dark version. Ours
   says so, and that "dark version" is the light design, unchanged. */
:root { color-scheme: only light; }
@media (prefers-color-scheme: dark) { :root { color-scheme: dark; } }
body { color-scheme: only light; }
html { background-color: #F5E4CF; }

.field[hidden] { display: none !important; }
