/* TechBoiL Academy v2 */
:root {
  --navy: #283C64; --navy-2: #1E2E4E; --coral: #E4683F; --coral-d: #C9532C;
  --bg: #F7F5F1; --paper: #FFFDFA; --ink: #1B2233; --muted: #5A6275; --line: #E4E0D8; --tint: #FBE7DF;
  --r: 14px; --ease: cubic-bezier(.22, 1, .36, 1);
  --head: "Space Grotesk", system-ui, sans-serif; --sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --pad: clamp(20px, 5vw, 56px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--head); font-weight: 600; color: var(--navy); letter-spacing: -.025em; line-height: 1.1; }
p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--paper); padding: 8px 12px; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 4px; }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.label { font: 600 .75rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--coral-d); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 44ch; }

/* buttons and links */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; background: var(--navy); color: var(--paper); text-decoration: none; font: 600 1rem var(--sans); padding: 12px 22px; border: 0; border-radius: var(--r); cursor: pointer; transition: transform .16s var(--ease), background-color .2s var(--ease); }
.btn:hover { background: var(--navy-2); }
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 42px; padding: 8px 18px; }
.btn-coral { background: var(--coral-d); }
.btn-coral:hover { background: #B44821; }
.btn .ic { width: 18px; height: 18px; transition: transform .2s var(--ease); }
@media (hover: hover) { .btn:hover .ic { transform: translateX(3px); } }
.link { font-weight: 600; text-decoration: none; color: var(--navy); background: linear-gradient(var(--coral), var(--coral)) 0 100% / 100% 2px no-repeat; padding-bottom: 3px; transition: background-size .25s var(--ease); }
@media (hover: hover) { .link:hover { background-size: 40% 2px; } }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(247, 245, 241, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { height: 36px; width: auto; }
.brand-tag { font: 600 .95rem var(--head); color: var(--coral-d); border-left: 1.5px solid var(--line); padding-left: 10px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-list a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--ink); position: relative; }
.nav-list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; background: var(--coral); transform: scaleX(0); transform-origin: right; transition: transform .22s var(--ease); }
.nav-list a:hover::after, .nav-list a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: var(--r); border: 1px solid var(--line); background: transparent; color: var(--navy); align-items: center; justify-content: center; cursor: pointer; transition: transform .16s var(--ease); }
.nav-toggle:active { transform: scale(.94); }
@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 12px; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--pad) 20px; }
  .nav.open { display: flex; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a { width: 100%; font-size: 1.05rem; }
  .nav-list a::after { display: none; }
  .nav-cta { justify-content: center; }
}

/* hero */
.hero { padding: clamp(56px, 9vw, 112px) 0 clamp(64px, 9vw, 120px); }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 4.9vw, 4.1rem); margin-top: 16px; }
.hero h1 em { font-style: normal; color: var(--coral); }
.hero .lead { margin: 22px 0 32px; max-width: 42ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; }
.art { position: relative; aspect-ratio: 1 / 1; max-width: 460px; width: 100%; justify-self: end; }
.board { position: absolute; inset: 9% 4% 13% 8%; background: var(--navy); border-radius: 28px; box-shadow: 0 30px 60px -30px rgba(30, 46, 78, .55); padding: 9% 7%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8%; }
.pad { width: clamp(26px, 3.6vw, 38px); aspect-ratio: 1; border-radius: 50%; background: #3A5080; display: grid; place-items: center; font: 700 .8rem var(--head); color: #9FB0D0; }
.leds { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10%; aspect-ratio: 1; }
.led { border-radius: 3px; background: #34497A; transition: background-color .18s var(--ease), box-shadow .18s var(--ease); }
.led.on { background: var(--coral); box-shadow: 0 0 14px rgba(228, 104, 63, .75); }
.block { position: absolute; font: 600 .82rem/1 var(--head); color: var(--paper); padding: 12px 16px; border-radius: 10px; box-shadow: 0 14px 30px -14px rgba(27, 34, 51, .45); white-space: nowrap; }
.b1 { left: 0; bottom: 6%; background: #E9A23B; color: var(--ink); }
.b2 { left: 14%; bottom: -3%; background: var(--coral-d); }
.b3 { right: 0; top: 0; background: var(--paper); color: var(--navy); font-family: ui-monospace, Menlo, monospace; font-weight: 500; border: 1px solid var(--line); }
.b3 span { color: var(--coral-d); }
@media (max-width: 880px) {
  .hero-in { grid-template-columns: 1fr; }
  .art { justify-self: center; max-width: 360px; }
}

/* sections */
.section { padding: clamp(72px, 9vw, 112px) 0; }
.section-flush { padding-top: 0; }
.section-tight { padding-top: 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px 40px; flex-wrap: wrap; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-top: 12px; max-width: 20ch; }
.section-head > p { color: var(--muted); max-width: 42ch; }
.page-hero { padding: clamp(56px, 8vw, 104px) 0 clamp(56px, 7vw, 88px); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); max-width: 18ch; margin: 16px 0 20px; }
.prose { max-width: 65ch; display: grid; gap: 18px; }
.prose p { font-size: 1.08rem; color: var(--muted); }

/* curriculum areas */
.areas { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.area { grid-column: span 4; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; gap: 10px; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
@media (hover: hover) { .area:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -26px rgba(27, 34, 51, .4); } }
.area h3 { font-size: 1.35rem; margin-top: 8px; }
.area > p:not(.strands) { color: var(--muted); }
.area .strands { margin-top: auto; padding-top: 10px; }
.area .ico { width: 48px; height: 48px; border-radius: 12px; background: var(--tint); color: var(--coral-d); display: grid; place-items: center; }
.area-code, .area-chip { grid-column: span 6; }
.area-code { background: var(--navy); border-color: var(--navy); }
.area-code h3 { color: var(--paper); font-size: 1.6rem; }
.area-code > p:not(.strands) { color: #C9D3E6; }
.area-code .ico { background: rgba(255, 255, 255, .1); color: #F2A386; }
.area-code .strands span { background: rgba(255, 255, 255, .1); color: var(--paper); }
.area-chip h3 { font-size: 1.6rem; }
@media (max-width: 960px) { .area, .area-code, .area-chip { grid-column: span 6; } .area-pen { grid-column: span 12; } }
@media (max-width: 640px) { .area, .area-code, .area-chip, .area-pen { grid-column: span 12; } .area { padding: 24px; } }
.strands { display: flex; flex-wrap: wrap; gap: 6px; }
.strands span { font-size: .78rem; font-weight: 600; color: var(--navy); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; }

/* KG to 12 path */
.path { padding-top: 0; }
.why + .path, .why + .section-flush { padding-top: clamp(72px, 9vw, 112px); }
.steps-up { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: start; }
.steps-up li { display: grid; grid-template-rows: 224px auto; align-content: start; }
.steps-up .bar { align-self: end; }
.steps-up .bar { display: flex; align-items: flex-start; height: calc(72px + var(--i) * 44px); background: var(--tint); border-radius: var(--r) var(--r) 4px 4px; padding: 16px 18px; margin-bottom: 20px; }
.steps-up li:last-child .bar { background: var(--navy); }
.steps-up .bar b { font: 700 1.6rem/1 var(--head); color: var(--coral-d); letter-spacing: -.02em; }
.steps-up li:last-child .bar b { color: var(--paper); }
.steps-up .stage { font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.steps-up h3 { font-size: 1.2rem; margin-bottom: 6px; }
.steps-up .stage-text { color: var(--muted); font-size: .95rem; min-height: 4.8em; margin-bottom: 14px; }
.steps-up .strands span { background: var(--paper); }
@media (max-width: 760px) {
  .steps-up { grid-template-columns: 1fr; gap: 14px; }
  .steps-up li { display: grid; grid-template-columns: 92px 1fr; grid-template-rows: none; column-gap: 18px; }
  .steps-up .bar { align-self: stretch; }
  .steps-up .bar { grid-row: span 4; height: auto; min-height: 100%; margin: 0; border-radius: var(--r); align-items: center; justify-content: center; padding: 16px 8px; width: calc(52px + var(--i) * 13px); justify-self: start; }
  .steps-up .bar b { font-size: 1.05rem; text-align: center; }
  .steps-up .stage-text { min-height: 0; margin-bottom: 10px; }
}

/* why */
.why { background: var(--paper); border-block: 1px solid var(--line); }
.why-in { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 96px); }
.why h2, .why-in h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin: 12px 0 20px; }
.why-in > div > p { color: var(--muted); max-width: 40ch; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 24px 0; border-top: 1px solid var(--line); }
.list li:last-child { border-bottom: 1px solid var(--line); }
.list .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--tint); color: var(--coral-d); display: grid; place-items: center; }
.list h3 { font-size: 1.15rem; margin-bottom: 4px; }
.list p { color: var(--muted); font-size: .95rem; }
.values { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.value { grid-column: span 2; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 30px; }
.value-wide { grid-column: span 3; }
.value h3 { font-size: 1.25rem; margin-bottom: 8px; }
.value p { color: var(--muted); }
@media (max-width: 880px) {
  .why-in { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .value, .value-wide { grid-column: auto; }
}

/* ways to learn */
.ways { background: var(--navy); color: #C9D3E6; border-radius: calc(var(--r) + 6px); padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.ways h2 { color: var(--paper); font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin: 12px 0 16px; }
.ways .label { color: #F2A386; }
.ways-head p:not(.label) { max-width: 40ch; margin-bottom: 28px; }
.ways-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ways-list li { background: rgba(255, 255, 255, .06); border-radius: var(--r); padding: 22px; display: grid; gap: 12px; align-content: start; }
.ways-list li:first-child { background: rgba(255, 255, 255, .11); }
.ways-list .ico { width: 44px; height: 44px; border-radius: 12px; background: rgba(228, 104, 63, .16); color: #F2A386; display: grid; place-items: center; }
.ways-list h3 { color: var(--paper); font-size: 1.15rem; margin-bottom: 4px; }
.ways-list p { font-size: .92rem; }
@media (max-width: 960px) { .ways { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .ways-list { grid-template-columns: 1fr; } }

/* how it works */
.rail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; list-style: none; margin: 0; padding: 0; counter-reset: s; position: relative; }
.rail::before { content: ""; position: absolute; top: 22px; left: 22px; right: 22px; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }
.rail li { position: relative; counter-increment: s; }
.rail li::before { content: counter(s); display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--bg); border: 2px solid var(--navy); font: 700 1.05rem var(--head); color: var(--navy); margin-bottom: 22px; position: relative; }
.rail li:last-child::before { background: var(--coral-d); border-color: var(--coral-d); color: var(--paper); }
.rail h3 { font-size: 1.2rem; margin-bottom: 6px; }
.rail p { color: var(--muted); max-width: 30ch; }
@media (max-width: 760px) {
  .rail { grid-template-columns: 1fr; gap: 28px; }
  .rail::before { top: 22px; bottom: 22px; left: 22px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--line) 0 8px, transparent 8px 14px); }
  .rail li { padding-left: 70px; }
  .rail li::before { position: absolute; left: 0; top: 0; margin: 0; }
}

/* contact */
.contact-strip { border: 1px solid var(--line); background: var(--paper); border-radius: var(--r); padding: 28px clamp(24px, 4vw, 40px); display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; }
.contact-strip h2 { font-size: 1.5rem; flex-basis: 100%; }
.contact-strip .btn { margin-left: auto; }
.contact-strip .item { display: flex; align-items: center; gap: 12px; }
.contact-strip .item .ic { color: var(--coral-d); }
.contact-strip small { display: block; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.contact-strip b { font-weight: 600; color: var(--navy); }
.contact-strip b a { text-decoration: none; }
.contact-list { display: grid; gap: 12px; align-content: start; }
.contact-item { display: flex; align-items: center; gap: 16px; padding: 20px 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); transition: border-color .2s var(--ease), transform .16s var(--ease); }
.contact-item:hover { border-color: var(--coral); }
.contact-item:active { transform: scale(.98); }
.contact-item .ic { width: 26px; height: 26px; color: var(--coral-d); }
.contact-item span { display: grid; }
.contact-item strong { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(22px, 4vw, 36px); display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--navy); }
.form input, .form select, .form textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); font: 400 1rem var(--sans); color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .btn { justify-self: start; }
.form-note { padding: 12px 14px; border-radius: var(--r); font-weight: 500; }
.form-note.ok { background: #E3EFE6; color: #1F5B33; }
.form-note.err { background: #F8E3DB; color: #8A2E12; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* footer */
.site-footer { padding: 72px 0 32px; }
.footer-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.footer-in p { color: var(--muted); margin-top: 12px; }
.site-footer .nav-list { display: grid; grid-template-columns: repeat(2, auto); gap: 4px 40px; }
.footer-credit { padding-top: 24px; font-weight: 600; }
.footer-credit a { color: var(--navy); text-decoration-color: var(--coral); text-underline-offset: 3px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .led, .area, .btn, .btn .ic, .link, .nav-list a::after { transition: none; }
}
.footer-credit { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.family { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-weight: 600; padding: 10px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); transition: border-color .2s var(--ease); }
.family:hover { border-color: var(--coral); }
.family img { height: 30px; width: auto; }
