/* Homepage compositions. Header, cinematic journey and footer keep their own styles. */
#main { display: flex; flex-direction: column; }
.home-section { --section-ink: var(--kak-dark); --section-muted: #696969; padding: clamp(90px, 8vw, 150px) 0; background: #fff; color: var(--section-ink); }
.home-section h2 { font-family: var(--font-display); font-size: clamp(36px,4.68vw,82px); font-weight: 400; line-height: 1.1; letter-spacing: -.055em; text-wrap: balance; }
.home-section h2.display-heading { font-family: var(--font-display); }
.home-section :is(h3,dt) { text-wrap: balance; }
.home-section p { text-wrap: pretty; }
.home-subline { position: relative; display: flex; align-items: center; min-height: 24px; margin: 0 0 24px; padding-left: 16px; color: var(--kak-dark); font-size: 14px; font-weight: 500; line-height: 1; letter-spacing: 0; text-transform: none; }
.home-subline::before { content: ''; position: absolute; left: 0; top: 50%; width: 2px; height: 24px; background: var(--kak-red); transform: translateY(-50%); }
.home-subline::after { display: none; }
.home-section__heading { display: grid; grid-template-columns: 1.6fr 1fr; align-items: end; gap: 60px; margin-bottom: 56px; }
.home-section__intro { justify-self: end; max-width: 390px; padding-bottom: 5px; color: var(--section-muted); font-size: 17px; font-weight: 300; line-height: 1.65; }
.home-text-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 44px; font-size: 13px; font-weight: 500; padding: 10px 0; }
.home-text-link > span { font-size: 24px; line-height: 1; transition: transform .3s; }
a.home-text-link:hover > span, a:hover .home-text-link > span { transform: translate(4px, -4px); }
.home-section a:focus-visible { outline: 2px solid var(--kak-red); outline-offset: 6px; }

/* Shared home h3 scale. The school-day slogan keeps its own desktop size. */
:root { --home-h3-size: 30px; }
@media (min-width:1440px) { :root { --home-h3-size: 31px; } }
@media (min-width:1600px) { :root { --home-h3-size: 34px; } }
@media (min-width:1800px) { :root { --home-h3-size: 39px; } }
@media (min-width:1920px) { :root { --home-h3-size: 41px; } }

/* Joby-inspired learning sequence: one fixed visual plane and four reading states. */
.education-approach-section {
  --section-ink: #fff;
  --section-muted: #bcbcbc;
  --approach-copy-width: clamp(300px,23vw,430px);
  --approach-divider-gap: 30px;
  --approach-edge: 30px;
  --approach-media-width: min(56vw,calc(100vw - 2 * var(--page-gutter) - var(--approach-copy-width) - 240px));
  position: relative;
  z-index: 110;
  padding: 90px 0;
  overflow: clip;
  background: var(--kak-dark);
  color: var(--section-ink);
}
.education-approach__stage {
  --section-exit-radius: 0%;
  position: relative;
  isolation: isolate;
  overflow: clip;
  border-bottom-right-radius: var(--section-exit-radius);
  border-bottom-left-radius: var(--section-exit-radius);
  background: var(--kak-dark);
}
/* Cover the visible scene, not the multi-screen scroll container. */
.education-approach__stage::before { content: ''; position: sticky; top: 0; z-index: -1; display: block; height: 100svh; margin-bottom: -100svh; background: var(--section-dark-background); pointer-events: none; }
.education-approach__label { margin: 0 var(--page-gutter); color: #fff; }
.education-approach__divider,.education-approach__progress { display: none; }
.education-approach__slides { display: grid; gap: 90px; margin-top: 60px; }
.education-approach__slide { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(280px,.65fr); align-items: center; gap: 90px; padding: 0 var(--page-gutter); }
.education-approach__media { position: relative; margin: 0; aspect-ratio: 16/10; overflow: hidden; border-radius: var(--radius-lg); background: #171717; }
.education-approach__media img { width: 100%; height: 100%; object-fit: cover; }
.education-approach__copy h2 { max-width: none; margin: 0; color: #fff; font: 400 var(--type-featured-big)/1.15 Outfit,sans-serif; letter-spacing: -.035em; text-wrap: balance; }
.education-approach__accent { color: var(--kak-red); }
.education-approach__detail { margin-top: 60px; }
.education-approach__detail p { max-width: 560px; margin: 0; color: var(--section-muted); font-size: 18px; font-weight: 300; line-height: 1.5; letter-spacing: -.015em; }
.education-approach__detail .kak-button { margin-top: 30px; }
.education-approach__detail .kak-button::before { background: var(--kak-control-bg); }

.education-approach-section.is-motion-ready { padding: 0; }
.education-approach-section.is-motion-ready .education-approach__stage { z-index: 110; height: 100svh; min-height: 620px; overflow: hidden; }
.education-approach-section.is-motion-ready .education-approach__stage::before { position: absolute; inset: 0; height: auto; margin: 0; }
.education-approach-section.is-motion-ready .education-approach__slides { position: absolute; inset: 0; display: block; margin: 0; }
.education-approach-section.is-motion-ready .education-approach__slide { position: absolute; inset: 0; display: block; padding: 0; pointer-events: none; }
.education-approach-section.is-motion-ready .education-approach__media { position: absolute; top: var(--approach-edge); bottom: var(--approach-edge); left: var(--page-gutter); width: var(--approach-media-width); height: auto; aspect-ratio: auto; transform-origin: 50% 0; }
.education-approach-section.is-motion-ready .education-approach__copy { position: absolute; z-index: 12; top: max(var(--approach-edge),calc(var(--header-actions-bottom,100px) + 15px)); right: var(--page-gutter); bottom: var(--approach-edge); display: flex; width: var(--approach-copy-width); flex-direction: column; justify-content: space-between; }
.education-approach-section.is-motion-ready .education-approach__copy h2 { max-width: none; }
/* The copy runs to the column edge; the floating WhatsApp button is hidden while this section is on screen (education-approach.js). */
.education-approach-section.is-motion-ready .education-approach__detail { margin-top: 30px; }
.education-approach-section.is-motion-ready .education-approach__detail .kak-button { pointer-events: auto; }
.education-approach-section.is-motion-ready .education-approach__label { position: absolute; z-index: 20; top: var(--approach-edge); right: calc(var(--page-gutter) + var(--approach-copy-width) + var(--approach-divider-gap) + 30px); margin: 0; white-space: nowrap; }
.education-approach-section.is-motion-ready .education-approach__divider { position: absolute; z-index: 20; top: var(--approach-edge); right: calc(var(--page-gutter) + var(--approach-copy-width) + var(--approach-divider-gap)); bottom: var(--approach-edge); display: block; width: 1px; background: rgb(255 255 255 / 12%); }
.education-approach-section.is-motion-ready .education-approach__progress { position: absolute; z-index: 20; bottom: var(--approach-edge); left: calc((var(--page-gutter) - 44px) / 2); display: flex; flex-direction: column; align-items: center; gap: 0; }
.education-approach__progress button { display: grid; width: 44px; height: 36px; padding: 0; border: 0; place-items: center; color: inherit; background: transparent; cursor: pointer; pointer-events: auto; }
.education-approach__progress button:focus-visible { outline: 1px solid var(--kak-red); outline-offset: -6px; border-radius: 50%; }
.education-approach__progress span { display: block; width: 4px; height: 15px; border-radius: 999px; background: rgb(255 255 255 / 45%); }
.education-approach__progress button[aria-current="step"] span { background: #fff; }
.education-approach-section.is-scene-active :is(.education-approach__media,.education-approach__media img,.education-approach__copy) { will-change: transform,opacity,clip-path; }
@media (max-width: 1200px) {
  .education-approach-section.is-motion-ready .education-approach__copy { bottom: 110px; }
}
@media (max-width: 1200px) {
  .education-approach-section.is-motion-ready .education-approach__copy { bottom: 110px; }
}

/* Magazine structure: one visual story, two concise reading paths. */
.blog-news-section { background: #fff; }
.blog-news__layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 60px; }
.blog-news__featured > a { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: end; height: 100%; min-height: 600px; color: #fff; background: var(--kak-dark); overflow: hidden; border-radius: var(--radius-lg); }
.blog-news__featured img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 47% 35%; transition: transform 1s cubic-bezier(.22,1,.36,1); }
.blog-news__featured > a::after { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(0deg,#000e, #0008 42%,transparent 75%); }
.blog-news__featured > a:hover img { transform: scale(1.04); }
.blog-news__featured-copy { padding: 30px; }
.blog-news__category { display: flex; gap: 12px; align-items: center; color: #696969; font-size: 14px; font-weight: 500; margin-bottom: 18px; }
.blog-news__category::before { content: ''; width: 18px; height: 2px; background: var(--kak-red); }
.blog-news__featured .blog-news__category { color: #fff; }
.blog-news-section h3 { font-size: clamp(29px,2.6vw,42px); font-weight: 400; letter-spacing: -.04em; line-height: 1.12; }
.blog-news-section h3 + p { margin-top: 18px; color: #696969; font-size: var(--type-card-text); line-height: 1.6; font-weight: 300; max-width: 430px; }
.blog-news__featured h3 + p { color: #f1f1f1; }
.blog-news__featured .home-text-link { margin-top: 14px; }
.blog-news__side { display: grid; gap: 0; }
.blog-news__side article { position: relative; border-top: 1px solid #e1e1e1; }
.blog-news__side article > a { display: flex; flex-direction: column; justify-content: center; height: 100%; padding: 30px 0; }
.blog-news__side article:last-child { border-bottom: 1px solid #e1e1e1; }
.blog-news__side .home-text-link { align-self: start; gap: 40px; margin-top: 16px; }
.blog-news__side a:hover h3 { color: var(--kak-red); }
.blog-news__more { display: flex; justify-content: end; margin-top: 28px; }

/* Brand signature: the approved emblem carries a pointer-driven light field without redrawing the mark. */
.logo-reflection-section {
  --pointer-x: 50%;
  --pointer-y: 42%;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --shift-x: 0px;
  --shift-y: 0px;
  --sheen-x: 0px;
  --sheen-y: 0px;
  --depth-x: 0px;
  --depth-y: 10px;
  --sheen-opacity: 0;
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: clamp(560px, 72svh, 780px);
  overflow: hidden;
  background: var(--section-dark-background);
  perspective: 860px;
  contain: layout paint;
}
.logo-reflection-section::before {
  content: '';
  position: absolute;
  inset: -18%;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(circle at var(--pointer-x) var(--pointer-y), #ed1c241e 0, #ed1c2400 25%);
  transform: translate3d(var(--shift-x),var(--shift-y),0);
  transition: opacity .35s;
}
.logo-reflection-section.is-logo-hovered::before { opacity: .24; }
.logo-reflection__interaction {
  position: relative;
  width: min(90vw, 1100px);
  aspect-ratio: 1035 / 579;
  perspective: 860px;
  perspective-origin: var(--pointer-x) var(--pointer-y);
  transform-style: preserve-3d;
}
.logo-reflection__scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transform-style: preserve-3d;
  transform: translate3d(var(--shift-x),var(--shift-y),0) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  will-change: transform;
}
.logo-reflection__fallback,
.logo-reflection__depth,
.logo-reflection__surface,
.logo-reflection__sheen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.logo-reflection__fallback {
  object-fit: contain;
  opacity: .22;
  filter: saturate(.7) brightness(.7) drop-shadow(0 30px 45px #000a);
  transform: translateZ(-18px) translateY(10px);
}
.logo-reflection__depth,
.logo-reflection__surface,
.logo-reflection__sheen {
  -webkit-mask: url('../../media/logo-amblem-motion.png') center / contain no-repeat;
  mask: url('../../media/logo-amblem-motion.png') center / contain no-repeat;
}
.logo-reflection__depth {
  background: linear-gradient(145deg,#230203,#7c090e 58%,#2c0204);
  filter: drop-shadow(0 34px 38px #000c);
  transform: translate3d(var(--depth-x),var(--depth-y),-46px) scale(.992);
}
.logo-reflection__surface {
  background: linear-gradient(125deg,#68070b 5%,#c51017 35%,#ed1c24 58%,#8d080e 88%);
  filter: contrast(1.08) saturate(1.12) drop-shadow(0 0 2px #ff9295) drop-shadow(0 22px 34px #000a);
  transform: translateZ(12px);
}
.logo-reflection__sheen {
  opacity: var(--sheen-opacity);
  background:
    linear-gradient(112deg, transparent 35%, #ffffff20 42%, #fff9 48%, #ffbdbd80 52%, transparent 60%),
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), #fff7 0, #ffb4b53b 3.5%, transparent 9%);
  mix-blend-mode: screen;
  transform: translate3d(var(--sheen-x),var(--sheen-y),24px);
  transition: opacity .28s ease;
}
.logo-reflection-section.is-logo-hovered { --sheen-opacity: .68; }
.logo-reflection__hit-area { position: absolute; z-index: 5; inset: 0; cursor: default; }

/* Motion is progressive enhancement: HTML starts readable, including without JavaScript. */
.home-heading-mask { display: block; overflow: clip; padding-bottom: .075em; margin-bottom: -.075em; }
.home-heading-line { display: block; }
.home-section .motion-picture { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .home-section *, .home-section *::before, .home-section *::after { animation: none !important; transition: none !important; }
  .logo-reflection-section { --pointer-x: 50%; --pointer-y: 42%; --tilt-x: 0deg; --tilt-y: 0deg; --shift-x: 0px; --shift-y: 0px; --sheen-x: 0px; --sheen-y: 0px; --depth-x: 0px; --depth-y: 10px; --sheen-opacity: 0; }
  .logo-reflection__scene { transform: none; will-change: auto; }
}
@media (max-width: 1180px) {
  .education-approach-section { --approach-copy-width: 300px; --approach-media-width: calc(100vw - 2 * var(--page-gutter) - var(--approach-copy-width) - 120px); }
}
@media (max-width: 980px), (max-height: 649px) {
  .education-approach-section { padding: 60px 0; }
  .education-approach__slides { gap: 90px; }
  .education-approach__slide { grid-template-columns: 1fr; gap: 30px; }
  .education-approach__copy h2 { max-width: none; }
  .education-approach__detail { margin-top: 30px; }
}
/* Static layout (no pinned sequence: <=980px or short viewports) is a swipe carousel.
   The section padding moves into the stage so the light rays start at the very top. */
.education-approach-section:not(.is-motion-ready) { padding-block: 0; }
.education-approach-section:not(.is-motion-ready) .education-approach__stage { display: flex; flex-direction: column; padding-block: 60px; border-radius: 0; }
/* Mobile: the same 90px vertical rhythm as the other home sections. */
@media (max-width: 820px) { .education-approach-section:not(.is-motion-ready) .education-approach__stage { padding-block: 90px; } }
.education-approach-section:not(.is-motion-ready) .education-approach__slides { order: 1; }
.education-approach-section:not(.is-motion-ready) .education-approach__progress { display: none; }
/* Carousel arrows: same controls as the home slider, bottom left, 30px under the cards. */
.education-approach__arrows { display: none; }
/* Manual line breaks in slide headings are for the desktop sequence only. */
.education-approach-section:not(.is-motion-ready) .education-approach__copy h2 br { display: none; }
.education-approach-section:not(.is-motion-ready) .education-approach__arrows { order: 2; display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 30px var(--page-gutter) 0; }
.education-approach__arrow-group { display: flex; gap: 15px; }
/* Carousel: the section CTA sits right of the arrows instead of inside the last slide. */
.education-approach-section:not(.is-motion-ready) .education-approach__detail .kak-button { display: none; }
.education-approach__cta::before { background: var(--kak-control-bg); }
.education-approach__arrows .home-slider__direction:disabled { opacity: .35; cursor: default; }
.education-approach__arrows .home-slider__direction:disabled::before { background: var(--kak-control-bg); }
.education-approach-section:not(.is-motion-ready) .education-approach__slides { display: flex; gap: 15px; margin-top: 40px; padding: 0 var(--page-gutter); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--page-gutter); scrollbar-width: none; }
.education-approach-section:not(.is-motion-ready) .education-approach__slides::-webkit-scrollbar { display: none; }
.education-approach-section:not(.is-motion-ready) .education-approach__slide { flex: 0 0 min(calc(100% - 40px), 560px); grid-template-columns: 1fr; align-content: start; gap: 30px; padding: 0; scroll-snap-align: start; }
.education-approach-section:not(.is-motion-ready) .education-approach__copy h2 { font-size: min(var(--type-featured-big), 7.5vw); }
.education-approach-section:not(.is-motion-ready) .education-approach__detail { margin-top: 20px; }
.education-approach-section:not(.is-motion-ready) .education-approach__detail p { font-size: 16px; }
@media (prefers-reduced-motion: reduce) { .education-approach-section:not(.is-motion-ready) .education-approach__slides { scroll-behavior: auto; } }
/* Tablet and mobile: no light rays from above, plain dark surface. */
@media (max-width: 1100px) { .education-approach__stage > .section-light-rays { display: none; } }
@media (max-width: 820px) {
  .home-section { padding: 60px 0; }
  .home-section__heading { grid-template-columns: 1fr; align-items: start; gap: 24px; margin-bottom: 32px; }
  .home-section__intro { max-width: 540px; }
  .blog-news__layout { grid-template-columns: 1fr; gap: 48px; }
  .logo-reflection-section { min-height: clamp(440px,62svh,620px); }
  .logo-reflection__interaction { width: 126vw; }
}
@media (max-width: 560px) {
  .home-section { padding: 60px 0; }
  .home-section h2 { font-size: clamp(34px,9.35vw,42px); }
  .education-approach__slides { gap: 60px; }
  .blog-news__layout { grid-template-columns: 1fr; }
  .blog-news-section h3 { font-size: 28px; }
  .blog-news__side article { padding: 30px 0; }
}

