@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: normal;
  font-display: swap;
  src: url("fonts/instrument-sans-0.ttf") format('truetype');
}

@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: normal;
  font-display: swap;
  src: url("fonts/instrument-sans-1.ttf") format('truetype');
}

@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: normal;
  font-display: swap;
  src: url("fonts/instrument-sans-2.ttf") format('truetype');
}

@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 700;
  font-stretch: normal;
  font-display: swap;
  src: url("fonts/instrument-sans-3.ttf") format('truetype');
}

:root {
    color-scheme: light;
    --teal: #00675a;
    --deep-teal: #064743;
    --turquoise: #1aafa9;
    --orange: #ff980f;
    --orange-light: #ffb13d;
    --ink: #102033;
    --text: #405463;
    --muted: #57716d;
    --border: #dce9e6;
    --ease-out: cubic-bezier(.22, 1, .36, 1);
    --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
    /* Pointer position (-1 to 1) and scroll offset, written by motion.js. */
    --px: 0;
    --py: 0;
    --sy: 0;
    font-family: "Instrument Sans", "Segoe UI", Arial, sans-serif;
    color: var(--deep-teal);
    background: #f8fbfa;
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; }
img, svg { display: block; }
p, h1, h2, figure { margin: 0; }
svg { stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.page { width: min(100% - 96px, 1224px); margin-inline: auto; }

/* Decorative background: morphing shapes, a faint dot grid and a soft glow under the pointer. */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.backdrop::before { content: ""; position: absolute; inset: -40px; background-image: radial-gradient(rgb(0 103 90 / 14%) 1px, transparent 1.4px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(55% 60% at 88% 0%, #000, transparent 72%); mask-image: radial-gradient(55% 60% at 88% 0%, #000, transparent 72%); transform: translate3d(calc(var(--px) * -8px), calc(var(--py) * -6px + var(--sy) * -.05px), 0); }
.blob, .blob-ring { position: absolute; display: block; aspect-ratio: 1; border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; animation: morph 22s ease-in-out infinite alternate, turn 90s linear infinite; }
.blob-teal { top: -280px; right: -150px; width: 600px; background: linear-gradient(135deg, rgb(26 175 169 / 20%), rgb(0 103 90 / 8%)); transform: translate3d(calc(var(--px) * -26px), calc(var(--py) * -18px + var(--sy) * -.15px), 0); }
.blob-turquoise { bottom: -320px; left: -220px; width: 560px; background: linear-gradient(45deg, rgb(0 103 90 / 11%), rgb(26 175 169 / 15%)); animation-duration: 26s, 110s; animation-direction: alternate-reverse, reverse; transform: translate3d(calc(var(--px) * 22px), calc(var(--py) * 16px + var(--sy) * -.08px), 0); }
.blob-orange { top: 38%; right: -80px; width: 210px; background: linear-gradient(160deg, rgb(255 152 15 / 24%), rgb(255 180 95 / 6%)); animation-duration: 17s, 70s; transform: translate3d(calc(var(--px) * -40px), calc(var(--py) * -30px + var(--sy) * -.25px), 0); }
.blob-ring { top: -150px; right: 40px; width: 420px; border: 1.5px solid rgb(0 103 90 / 13%); animation-duration: 15s, 120s; animation-direction: alternate-reverse, reverse; transform: translate3d(calc(var(--px) * -44px), calc(var(--py) * -32px + var(--sy) * -.2px), 0); }
.cursor-glow { position: absolute; top: 0; left: 0; width: 640px; height: 640px; margin: -320px 0 0 -320px; border-radius: 50%; background: radial-gradient(closest-side, rgb(26 175 169 / 12%), rgb(26 175 169 / 4%) 55%, transparent); opacity: 0; transition: opacity .6s ease; will-change: transform; }
.cursor-glow.is-visible { opacity: 1; }

/* Header */
.site-header { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 96px; }
.site-header::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: linear-gradient(90deg, transparent, rgb(26 175 169 / 80%), transparent) no-repeat, var(--border); background-size: 24% 100%, auto; background-position: -40% 0, 0 0; }
.brand-logo { width: 198px; height: auto; object-fit: contain; }

/* Welcome */
.welcome { position: relative; padding: 27px 0 26px; }
.welcome-copy { position: relative; z-index: 1; max-width: calc(100% - 340px); }
.eyebrow { display: flex; align-items: center; gap: 10px; color: #0b756a; font-size: 11px; font-weight: 700; letter-spacing: 1.7px; line-height: 1.5; margin-bottom: 10px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; flex-shrink: 0; border-radius: 2px; background: linear-gradient(90deg, var(--orange), var(--turquoise)); }
h1 { font-size: clamp(30px, 3.2vw, 43px); letter-spacing: -1.4px; font-weight: 700; line-height: 1.18; text-wrap: balance; }
h1 .accent { position: relative; white-space: nowrap; background: linear-gradient(100deg, var(--teal) 0%, #0b8f84 30%, var(--teal) 60%, #0b8f84 90%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
h1 .accent::after { content: ""; position: absolute; left: -2%; right: 4%; bottom: -.1em; height: .2em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M3 9C48 3 120 1 197 5' fill='none' stroke='%23ff980f' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%; }
.welcome-description { max-width: 960px; margin-top: 12px; color: var(--text); font-size: 17px; line-height: 1.6; }

/* Decorative 3D scene next to the welcome. */
.hero-scene { position: absolute; top: 50%; right: 0; width: 330px; height: 190px; translate: 0 -44%; perspective: 900px; pointer-events: none; }
.scene-stage { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(calc(14deg - var(--py) * 10deg)) rotateY(calc(-18deg + var(--px) * 20deg)); }
.scene-blob { position: absolute; top: 10px; left: 70px; width: 190px; aspect-ratio: 1; border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; background: linear-gradient(140deg, rgb(26 175 169 / 22%), rgb(0 103 90 / 6%)); transform: translateZ(-70px); animation: morph 12s ease-in-out infinite alternate; }
.scene-orbit { position: absolute; top: 15px; left: 25px; width: 280px; height: 280px; border: 1.5px dashed rgb(0 103 90 / 38%); border-radius: 50%; transform: translateY(-20px) rotateX(74deg); transform-style: preserve-3d; }
.scene-satellite { position: absolute; inset: 0; border-radius: 50%; animation: turn 14s linear infinite; }
.scene-satellite::after { content: ""; position: absolute; top: -6px; left: calc(50% - 6px); width: 12px; height: 12px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgb(255 152 15 / 20%); }
.scene-tile { position: absolute; display: grid; place-items: center; width: var(--size); height: var(--size); border-radius: 30%; background: linear-gradient(150deg, #fff, #e9f5f1); box-shadow: 0 22px 34px -20px rgb(6 71 67 / 60%), inset 0 1px 0 #fff; color: var(--teal); transform: translateZ(var(--z)); transform-style: preserve-3d; animation: bob 7s ease-in-out infinite; }
.scene-tile::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #b5d6cc; transform: translateZ(-9px); }
.scene-tile svg { width: 48%; height: 48%; stroke-width: 1.9; }
.tile-sheet { --size: 78px; --z: 40px; top: 66px; left: 122px; background: linear-gradient(150deg, #0a8a7c, var(--teal) 55%, var(--deep-teal)); color: #fff; }
.tile-sheet::before { background: #043a36; }
.tile-doc { --size: 60px; --z: 0px; top: 46px; left: 36px; color: #0c7671; animation-delay: -2.5s; }
.tile-code { --size: 62px; --z: -14px; top: 104px; left: 226px; background: linear-gradient(150deg, #0b5a55, var(--deep-teal)); color: #c4f1e3; animation-delay: -4.5s; }
.tile-code::before { background: #032e2b; }
.tile-ai { --size: 50px; --z: 30px; top: 34px; left: 238px; background: linear-gradient(150deg, #fff7ec, #ffe6c4); color: #ac5900; animation-delay: -1.2s; animation-duration: 6s; }
.tile-ai::before { background: #f1c58a; }
.scene-shadow { position: absolute; top: 158px; left: 60px; width: 220px; height: 34px; border-radius: 50%; background: radial-gradient(closest-side, rgb(6 71 67 / 18%), transparent); transform: translateZ(-30px); }

/* Activity cards with a 3D tilt that follows the pointer. */
.modules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
[data-tilt] { --rx: 0deg; --ry: 0deg; --tx: 0; --ty: 0; transform-style: preserve-3d; transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .8s var(--ease-out), box-shadow .6s var(--ease-out), border-color .3s ease; }
[data-tilt].is-tilting { transition: transform .15s linear, box-shadow .3s ease, border-color .3s ease; }
.module-card { position: relative; display: flex; flex-direction: column; min-height: 265px; padding: 24px; border: 1px solid var(--border); border-radius: 24px; background: white; box-shadow: calc(var(--tx) * -16px) calc(18px - var(--ty) * 12px) 44px -30px rgb(6 71 67 / 34%), 0 2px 6px rgb(6 71 67 / 4%); }
.module-card:hover { border-color: #b4dbd0; box-shadow: calc(var(--tx) * -22px) calc(30px - var(--ty) * 16px) 60px -34px rgb(6 71 67 / 45%), 0 2px 6px rgb(6 71 67 / 5%); }
.module-card > :not(.card-surface, .card-glare, .module-number, .card-link) { position: relative; pointer-events: none; }
.module-card > :not(.card-surface, .card-glare, .card-link) { transition: transform .8s var(--ease-out); }
.module-card.is-tilting .card-top { transform: translateZ(38px); }
.module-card.is-tilting h2 { transform: translateZ(30px); }
.module-card.is-tilting .module-description { transform: translateZ(20px); }
.module-card.is-tilting .module-status { transform: translateZ(16px); }
.module-card.is-tilting .module-number { transform: translateZ(12px); }
.card-surface { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; pointer-events: none; }
.card-glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s ease; background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgb(26 175 169 / 10%), transparent 60%); }
.card-glare::before { content: ""; position: absolute; inset: -1px; padding: 1px; border-radius: inherit; background: radial-gradient(260px circle at var(--gx, 50%) var(--gy, 50%), rgb(26 175 169 / 90%), transparent 70%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.is-pointer > .card-glare { opacity: 1; }
.card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 17px; padding-right: 64px; }
.module-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 46px; height: 46px; border-radius: 14px; color: var(--teal); background: #e8f5f0; transition: border-radius .9s var(--ease-out), transform .6s var(--ease-spring), background-color .3s ease; }
.module-icon svg { width: 30px; height: 30px; overflow: visible; }
.module-card:hover .module-icon, .quiz-card:hover .module-icon { border-radius: 44% 56% 62% 38% / 46% 40% 60% 54%; transform: rotate(-6deg) scale(1.06); }
.module-number { position: absolute; top: 14px; right: 22px; color: transparent; -webkit-text-stroke: 1.2px rgb(0 103 90 / 26%); font-size: 46px; font-weight: 700; letter-spacing: -1px; line-height: 1; transition: transform .8s var(--ease-out), -webkit-text-stroke-color .3s ease; }
.module-card:hover .module-number { -webkit-text-stroke-color: rgb(0 103 90 / 45%); }
.module-title { display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 100px; background: #edf8f6; box-shadow: inset 0 0 0 1px #c8e5df; color: var(--deep-teal); font-size: 11px; font-weight: 700; letter-spacing: 1.3px; line-height: 1.4; text-transform: uppercase; white-space: nowrap; }
.module-card h2 { font-size: clamp(21px, 1.8vw, 25px); letter-spacing: -.5px; font-weight: 600; line-height: 1.22; max-width: 330px; text-wrap: balance; }
.module-description { color: var(--text); font-size: 15px; line-height: 1.55; margin: 11px 0 20px; }
.module-status { margin-top: auto; padding-top: 12px; border-top: 1px solid #e4efeb; display: flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 500; line-height: 1.5; color: var(--muted); }
.module-status span { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--turquoise); }
.module-status span::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; }

/* Small icon animations on hover. */
.module-icon svg path, .module-icon svg circle { transform-box: view-box; transform-origin: 50% 50%; }
.icon-check { stroke-dasharray: 9; stroke-dashoffset: 0; }
.icon-needle { transition: transform .9s var(--ease-spring); }
.module-card:hover .icon-needle { transform: rotate(200deg); }
.module-card:hover .icon-check { animation: draw-check .7s var(--ease-out) both; }

/* IT testy: the one available activity, styled like the dark hero on macrosoft.sk. */
.module-it { border-color: transparent; background: linear-gradient(150deg, #00796c 0%, var(--teal) 42%, var(--deep-teal) 100%); color: white; box-shadow: calc(var(--tx) * -16px) calc(22px - var(--ty) * 12px) 46px -26px rgb(6 71 67 / 62%), inset 0 1px 0 rgb(255 255 255 / 16%); }
.module-it:hover { border-color: transparent; box-shadow: calc(var(--tx) * -24px) calc(34px - var(--ty) * 16px) 64px -30px rgb(6 71 67 / 70%), inset 0 1px 0 rgb(255 255 255 / 16%); }
.module-it .card-surface::before { content: ""; position: absolute; top: -130px; right: -110px; width: 300px; aspect-ratio: 1; border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; background: linear-gradient(160deg, rgb(26 175 169 / 55%), rgb(26 175 169 / 4%)); animation: morph 13s ease-in-out infinite alternate; }
.module-it .card-surface::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgb(255 255 255 / 15%) 1px, transparent 1.4px); background-size: 18px 18px; -webkit-mask-image: linear-gradient(200deg, transparent 45%, #000); mask-image: linear-gradient(200deg, transparent 45%, #000); }
.module-it .card-glare { background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgb(255 255 255 / 13%), transparent 60%); }
.module-it .card-glare::before { background: radial-gradient(260px circle at var(--gx, 50%) var(--gy, 50%), rgb(150 240 225 / 95%), transparent 70%); }
.module-it .module-icon { background: rgb(255 255 255 / 14%); box-shadow: inset 0 1px 0 rgb(255 255 255 / 22%); color: white; }
.module-it .module-number { -webkit-text-stroke-color: rgb(255 255 255 / 28%); }
.module-it:hover .module-number { -webkit-text-stroke-color: rgb(255 255 255 / 50%); }
.module-it .module-title { background: rgb(255 255 255 / 12%); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 22%); color: white; }
.module-it .module-description { color: #dcf1ea; }
.module-it .module-action { border-top-color: rgb(255 255 255 / 18%); color: white; }
.module-career .module-icon { background: #e1f5f4; color: #0c7671; }
.module-career .module-title { background: #e8f7f6; box-shadow: inset 0 0 0 1px #c3e7e4; color: #0b5a56; }
.module-ai .module-icon { background: #fff2df; color: #ac5900; }
.module-ai .module-title { background: #fff6ea; box-shadow: inset 0 0 0 1px #f4d5ac; color: #7a3700; }
.module-ai .module-number { -webkit-text-stroke-color: rgb(172 89 0 / 24%); }
.module-ai:hover .module-number { -webkit-text-stroke-color: rgb(172 89 0 / 42%); }
.module-ai .module-status span { background: var(--orange); }
.module-ai .card-glare { background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgb(255 152 15 / 9%), transparent 60%); }
.module-ai .card-glare::before { background: radial-gradient(260px circle at var(--gx, 50%) var(--gy, 50%), rgb(255 152 15 / 85%), transparent 70%); }
.module-ai .icon-spark { transform-box: fill-box; }
.module-ai:hover .icon-spark { animation: twinkle 1.1s ease-in-out infinite; }
.module-ai:hover .icon-spark + .icon-spark { animation-delay: .35s; }

/* Typewriter. The full text stays in the document; only the reveal is animated. */
.tw-rest { visibility: hidden; }
.tw-caret { position: relative; }
.tw-caret::after { content: ""; position: absolute; top: .1em; bottom: .02em; left: .04em; width: max(2px, .07em); border-radius: 2px; background: var(--orange); }
.is-typed .tw-caret::after { animation: caret-blink 1s steps(1) infinite; }

/* Funding panel */
.funding-panel { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) 300px 118px; column-gap: 18px; row-gap: 10px; align-items: center; margin-top: 22px; padding: 23px 26px; border: 1px solid #d3e7df; border-radius: 20px; background: linear-gradient(105deg, rgb(232 244 239 / 92%), rgb(243 249 246 / 92%)); box-shadow: 0 24px 50px -44px rgb(6 71 67 / 55%); }
.funding-panel > :not(.card-glare) { position: relative; }
.funding-icon { display: grid; place-items: center; width: 44px; height: 44px; background: #d8ece3; border-radius: 12px; transition: border-radius .9s var(--ease-out), transform .6s var(--ease-spring); }
.funding-icon svg { width: 29px; height: 29px; }
.funding-panel:hover .funding-icon { border-radius: 44% 56% 62% 38% / 46% 40% 60% 54%; transform: rotate(-6deg) scale(1.06); }
.funding-copy { grid-column: 2; grid-row: 1; }
.funding-copy h2 { font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: -.4px; }
.funding-copy > p:not(.funding-disclaimer) { max-width: 730px; margin-top: 6px; color: var(--text); font-size: 14px; line-height: 1.55; }
.funding-cta { display: inline-flex; align-items: center; justify-content: center; gap: 12px; grid-column: 3; grid-row: 1; margin-top: 0; padding: 12px 20px; min-height: 46px; border-radius: 100px; background: var(--teal); color: white; text-decoration: none; font-size: 13px; font-weight: 700; line-height: 1.35; box-shadow: 0 14px 26px -16px rgb(0 103 90 / 85%); transition: background-color .2s ease, box-shadow .3s ease, translate .5s var(--ease-out); }
.funding-cta svg { width: 18px; height: 18px; flex-shrink: 0; stroke-width: 2; transition: transform .45s var(--ease-spring); }
.funding-cta:hover { background: var(--deep-teal); box-shadow: 0 18px 30px -16px rgb(6 71 67 / 90%); }
.funding-cta:hover svg { transform: translate(2px, -2px); }
.funding-cta:focus-visible { outline: 3px solid var(--deep-teal); outline-offset: 4px; }
.funding-disclaimer { grid-column: 2 / 4; grid-row: 2; margin-top: 0; color: #526963; font-size: 12px; line-height: 1.5; }
.funding-qr { grid-column: 4; grid-row: 1 / 3; display: flex; align-items: center; flex-direction: column; justify-self: end; align-self: center; padding-left: 16px; border-left: 1px solid #d0e4db; }
.funding-qr img { width: 104px; height: 104px; background: white; border-radius: 9px; box-shadow: 0 12px 22px -16px rgb(6 71 67 / 55%); transition: transform .5s var(--ease-spring), box-shadow .4s ease; }
.funding-qr:hover img { transform: translateY(-3px) scale(1.04); box-shadow: 0 18px 30px -18px rgb(6 71 67 / 60%); }
.funding-qr figcaption { margin-top: 8px; font-size: 11px; line-height: 1.4; font-weight: 500; color: var(--muted); text-align: center; }

/* Footer */
.site-footer { min-height: 66px; padding: 20px 0; display: flex; justify-content: space-between; align-items: center; gap: 18px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.footer-invitation { display: flex; align-items: center; gap: 9px; }
.footer-invitation svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--teal); }
.site-footer strong { color: var(--deep-teal); font-weight: 700; }
.site-footer a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.site-footer a:hover { color: var(--teal); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Available activity card: the action link covers the whole card. */
.module-card.is-available { cursor: pointer; }
.card-link { color: inherit; text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.card-link:focus-visible { outline: none; }
.card-link:focus-visible::after { outline: 3px solid var(--deep-teal); outline-offset: 3px; }
.module-action { margin-top: auto; padding-top: 12px; border-top: 1px solid #e4efeb; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 15px; font-weight: 700; line-height: 1.5; color: var(--teal); }
.action-arrow { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 100px; background: var(--orange); color: var(--ink); box-shadow: 0 10px 20px -10px rgb(255 152 15 / 90%); transition: width .5s var(--ease-spring), background-color .2s ease; }
.action-arrow svg { width: 18px; height: 18px; flex-shrink: 0; stroke-width: 2.2; transition: transform .5s var(--ease-spring); }
.module-card.is-available:hover .action-arrow { width: 54px; background: var(--orange-light); }
.module-card.is-available:hover .action-arrow svg { transform: translateX(4px); }
.module-action > svg { width: 20px; height: 20px; flex-shrink: 0; stroke-width: 2; transition: transform .5s var(--ease-spring); }
.module-card.is-available:hover .module-action > svg { transform: translateX(4px); }

/* Shared components for the test and admin pages. */
.brand-link { display: inline-block; border-radius: 8px; }
.brand-link:focus-visible, .back-link:focus-visible, .button-primary:focus-visible, .button-secondary:focus-visible, .button-link:focus-visible { outline: 3px solid var(--deep-teal); outline-offset: 3px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; padding: 6px 2px; border-radius: 6px; color: var(--teal); font-size: 14px; font-weight: 600; text-decoration: none; }
.back-link svg { width: 18px; height: 18px; stroke-width: 2; transition: transform .4s var(--ease-spring); }
.back-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.back-link:hover svg { transform: translateX(-3px); }
.button-primary, .button-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 24px; border-radius: 100px; font: inherit; font-size: 15px; font-weight: 700; line-height: 1.3; text-decoration: none; cursor: pointer; transition: background-color .2s ease, border-color .2s ease, box-shadow .3s ease, translate .5s var(--ease-out); }
.button-primary { border: 1px solid var(--teal); background: var(--teal); color: white; box-shadow: 0 14px 26px -18px rgb(0 103 90 / 90%); }
.button-primary:hover { border-color: var(--deep-teal); background: var(--deep-teal); }
.button-primary:disabled { opacity: .7; cursor: progress; }
.button-secondary { border: 1px solid #b9d9cf; background: white; color: var(--deep-teal); }
.button-secondary:hover { border-color: var(--teal); background: #f1f8f5; }
.button-primary svg, .button-secondary svg { width: 18px; height: 18px; flex-shrink: 0; stroke-width: 2; transition: transform .45s var(--ease-spring); }
.button-primary:hover svg, .button-secondary:hover svg { transform: translateX(3px); }
.button-link { padding: 0; border: 0; border-radius: 4px; background: none; color: var(--teal); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label { color: var(--deep-teal); font-size: 14px; font-weight: 600; line-height: 1.4; }
.field .required { color: #b54708; }
.field .optional { color: var(--muted); font-weight: 400; }
.field input, .field select { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid #b9cfc8; border-radius: 12px; background: white; color: var(--deep-teal); font: inherit; font-size: 16px; transition: border-color .2s ease, box-shadow .3s ease; }
.field input:hover, .field select:hover { border-color: #8fc2b5; }
.field input:focus, .field select:focus { border-color: var(--teal); outline: 3px solid rgb(26 175 169 / 35%); outline-offset: 0; box-shadow: 0 10px 24px -18px rgb(0 103 90 / 70%); }
.field.has-error input { border-color: #b42318; background: #fffafa; }
.field-error { color: #b42318; font-size: 13px; line-height: 1.45; }
.error-summary { padding: 14px 16px; border: 1px solid #f3c5bf; border-left: 4px solid #b42318; border-radius: 10px; background: #fff6f5; color: #7a1a12; font-size: 14px; line-height: 1.5; }
.error-summary p + p, .error-summary ul { margin-top: 6px; }
.error-summary ul { margin-bottom: 0; padding-left: 18px; }
.error-summary a { color: inherit; font-weight: 600; }
.notice { padding: 12px 16px; border-radius: 10px; background: #e8f5f0; color: var(--deep-teal); font-size: 14px; line-height: 1.5; }
.page-intro { padding: 16px 0 24px; }
.error-page { padding: 56px 0 64px; }
.error-page .welcome-description { margin: 12px 0 26px; }

/* Typewriter fallback: if the script never runs, the text appears after a moment. */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
    [data-typewriter]:not(.is-typing, .is-typed) { visibility: hidden; animation: reveal-failsafe 0s 3s forwards; }
    h1[data-typewriter]:not(.is-typed) .accent::after { clip-path: inset(0 100% 0 0); }
    h1.is-typed .accent::after { animation: underline-draw .9s var(--ease-out) both; }
}

/* Motion. Everything below is skipped when reduced motion is requested. */
@media (prefers-reduced-motion: no-preference) {
    .site-header { animation: rise .7s var(--ease-out) both; }
    .site-header::after { animation: line-sweep 8s ease-in-out 1s infinite; }
    .welcome .eyebrow { animation: rise .7s var(--ease-out) .05s both; }
    .welcome-description { animation: rise .8s var(--ease-out) .3s both; }
    h1 .accent { animation: accent-shift 7s ease-in-out infinite alternate; }
    .hero-scene { animation: scene-in 1.3s var(--ease-out) .15s both; }
    .module-card { animation: card-in .9s var(--ease-out) both; }
    .module-card:nth-child(1) { animation-delay: .2s; }
    .module-card:nth-child(2) { animation-delay: .3s; }
    .module-card:nth-child(3) { animation-delay: .4s; }
    .module-status span::after { animation: ping 2.6s var(--ease-out) infinite; }
    .module-ai .module-status span::after { animation-delay: 1.3s; }
    .funding-panel { animation: rise .9s var(--ease-out) .55s both; }
    .site-footer { animation: fade 1s ease .8s both; }
}

@keyframes morph {
    0% { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; }
    33% { border-radius: 63% 37% 45% 55% / 55% 62% 38% 45%; }
    66% { border-radius: 38% 62% 35% 65% / 62% 38% 62% 38%; }
    100% { border-radius: 55% 45% 58% 42% / 38% 55% 45% 62%; }
}
@keyframes turn { to { rotate: 360deg; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
@keyframes rise { from { opacity: 0; translate: 0 16px; } }
@keyframes fade { from { opacity: 0; } }
@keyframes card-in { from { opacity: 0; translate: 0 34px; scale: .96; } }
@keyframes scene-in { from { opacity: 0; scale: .85; } }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(3); opacity: 0; } }
@keyframes line-sweep { 0% { background-position: -40% 0, 0 0; } 55%, 100% { background-position: 140% 0, 0 0; } }
@keyframes accent-shift { to { background-position: 100% 0; } }
@keyframes underline-draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes caret-blink { 50% { opacity: 0; } }
@keyframes reveal-failsafe { to { visibility: visible; } }
@keyframes draw-check { from { stroke-dashoffset: 9; } }
@keyframes twinkle { 50% { transform: scale(.4) rotate(45deg); opacity: .5; } }

@media (min-width: 1000px) and (max-height: 800px) {
    .site-header { min-height: 83px; }
    .brand-logo { width: 181px; }
    .welcome { padding: 18px 0 21px; }
    h1 { font-size: 39px; }
    .welcome-description { margin-top: 10px; font-size: 16px; }
    .hero-scene { height: 170px; scale: .92; }
    .module-card { min-height: 250px; padding: 18px 22px; }
    .module-icon { width: 38px; height: 38px; border-radius: 12px; }
    .module-icon svg { width: 26px; height: 26px; }
    .module-number { font-size: 40px; }
    .module-card h2 { font-size: 22px; }
    .module-description { font-size: 14.5px; line-height: 1.5; margin: 10px 0 16px; }
    .module-status, .module-action { padding-top: 10px; }
    .card-top { margin-bottom: 14px; }
    .funding-panel { margin-top: 20px; padding: 20px 24px; }
    .site-footer { min-height: 60px; padding: 17px 0; }
}

@media (max-width: 1050px) {
    .page { width: calc(100% - 56px); }
    .modules { gap: 15px; }
    .module-card { padding-inline: 20px; }
    .module-description { font-size: 14px; }
    .module-number { font-size: 36px; right: 18px; }
    .card-top { padding-right: 48px; }
    .funding-panel { grid-template-columns: 40px minmax(0, 1fr) 126px; column-gap: 16px; padding-inline: 20px; }
    .funding-cta { grid-column: 2; grid-row: 2; justify-self: start; margin-top: 4px; }
    .funding-disclaimer { grid-column: 2; grid-row: 3; }
    .funding-qr { grid-column: 3; grid-row: 1 / 4; }
    h1 { letter-spacing: -1px; }
    .welcome-copy { max-width: calc(100% - 250px); }
    .hero-scene { right: -20px; scale: .72; }
}

@media (max-width: 900px) {
    .welcome-copy { max-width: none; }
    .hero-scene { display: none; }
    .card-top { flex-wrap: wrap; gap: 10px; }
}

@media (max-width: 760px) {
    .page { width: calc(100% - 40px); }
    .site-header { min-height: 84px; }
    .brand-logo { width: 162px; }
    .welcome { padding: 28px 0 25px; }
    .eyebrow { font-size: 10px; letter-spacing: 1px; }
    h1 { font-size: 33px; line-height: 1.18; }
    .welcome-description { font-size: 16px; line-height: 1.55; }
    .modules { grid-template-columns: 1fr; gap: 14px; }
    .module-card { min-height: 0; padding: 23px; }
    .module-card h2 { max-width: none; font-size: 24px; text-wrap: auto; }
    .module-description { font-size: 15px; }
    .card-top { margin-bottom: 15px; flex-wrap: nowrap; }
    .funding-panel { grid-template-columns: 1fr; padding: 25px 23px; row-gap: 14px; margin-top: 24px; }
    .funding-copy, .funding-cta, .funding-disclaimer, .funding-qr { grid-column: auto; grid-row: auto; }
    .funding-copy h2 { font-size: 24px; }
    .funding-copy > p:not(.funding-disclaimer) { font-size: 15px; }
    .funding-cta { gap: 8px; padding: 12px 18px; font-size: 13px; }
    .funding-disclaimer { font-size: 12px; margin-top: 0; }
    .funding-qr { border-left: 0; border-top: 1px solid #d0e4db; padding: 20px 0 0; margin-top: 5px; justify-self: stretch; }
    .funding-qr img { width: 112px; height: 112px; }
    .funding-qr figcaption { font-size: 12px; }
    .site-footer { flex-direction: column; align-items: flex-start; gap: 7px; padding: 22px 0; }
    .blob-teal { width: 420px; top: -240px; right: -200px; }
    .blob-ring { width: 300px; right: -60px; }
    .blob-orange { display: none; }
}

@media (min-width: 1100px) and (max-height: 740px) {
    .site-header { min-height: 76px; }
    .welcome { padding-top: 16px; padding-bottom: 18px; }
    .funding-panel { padding-block: 18px; margin-top: 18px; }
    .site-footer { min-height: 55px; padding-block: 15px; }
}

/* Laptops with a visible browser toolbar, e.g. 1366 × 768 or 1280 × 720 screens:
   logo, welcome, all three cards and the funding panel fit without scrolling. */
@media (min-width: 1000px) and (max-height: 700px) {
    .site-header { min-height: 74px; }
    .brand-logo { width: 162px; }
    .welcome { padding: 12px 0 14px; }
    .eyebrow { margin-bottom: 6px; }
    h1 { font-size: 35px; }
    .welcome-description { margin-top: 6px; font-size: 16px; }
    .hero-scene { scale: .7; }
    .modules { gap: 16px; }
    .module-card { min-height: 0; padding: 15px 20px 14px; }
    .card-top { margin-bottom: 11px; }
    .module-icon { width: 34px; height: 34px; border-radius: 11px; }
    .module-icon svg { width: 24px; height: 24px; }
    .module-number { top: 12px; font-size: 34px; }
    .module-card h2 { max-width: none; font-size: 21px; }
    .module-description { margin: 7px 0 12px; font-size: 14.5px; }
    .module-status, .module-action { padding-top: 9px; }
    .action-arrow { width: 30px; height: 30px; }
    .module-card.is-available:hover .action-arrow { width: 48px; }
    .funding-panel { margin-top: 14px; padding: 14px 22px; row-gap: 6px; }
    .funding-copy h2 { font-size: 20px; }
    .funding-copy > p:not(.funding-disclaimer) { margin-top: 4px; }
    .funding-qr img { width: 86px; height: 86px; }
    .funding-qr figcaption { margin-top: 5px; }
    .site-footer { min-height: 46px; padding: 11px 0; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    [data-tilt] { transform: none; }
    .module-card:hover .module-icon, .quiz-card:hover .module-icon, .funding-panel:hover .funding-icon, .funding-qr:hover img { transform: none; }
    .module-card:hover .icon-needle { transform: none; }
    .button-primary:hover svg, .button-secondary:hover svg, .funding-cta:hover svg, .back-link:hover svg, .module-card.is-available:hover .action-arrow svg { transform: none; }
    .cursor-glow { display: none; }
}
