/* Wayun.org — company site
   Brand rules (wayun/brand/README.md): bright teal stage #00B4DC (never dark),
   gradient wordmark is the ONLY gradient element, Poppins display + Nunito Sans body. */

@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("/assets/fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("/assets/fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url("/assets/fonts/poppins-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 200 1000; font-display: swap; src: url("/assets/fonts/nunito-sans-latin-wght-normal.woff2") format("woff2-variations"); }

:root {
  --stage: #00B4DC;
  --stage-deep: #00A5CC;
  --ink: #103840;
  --ink-soft: #3d5c63;
  --muted: #5f7a80;
  --line: #dbe7ea;
  --tint: #f2fafc;
  --white: #fff;
  --teal-text: #007d99;
  --magenta: #C42B5C;
  --magenta-deep: #9C2149;
  --amber: #F0A742;
  --display: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --body: "Nunito Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1160px;
  --r: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1.0625rem/1.65 var(--body); color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
.nowrap { white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 10px 16px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

/* ── Wordmark halo (the brand's white "sticker" outline on teal) ── */
.mark { filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff); }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font: 600 1rem/1 var(--display); padding: 1.05em 1.7em; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--white { background: var(--white); color: var(--ink); box-shadow: 0 10px 28px -10px rgba(16,56,64,.45); }
.btn--white:hover { box-shadow: 0 16px 34px -10px rgba(16,56,64,.5); }
.btn--accent { background: var(--magenta); color: var(--white); box-shadow: 0 10px 24px -12px rgba(196,43,92,.7); }
.btn--accent:hover { background: var(--magenta-deep); }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--sm { padding: .8em 1.3em; font-size: .9rem; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.link-arrow { font: 600 1rem var(--display); color: var(--ink); text-decoration: none; border-bottom: 2px solid rgba(16,56,64,.35); padding-bottom: 3px; transition: border-color .18s; }
.link-arrow:hover { border-color: var(--ink); }

/* ── Nav ── */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background-color .25s ease, box-shadow .25s ease; }
.nav__in { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav__brand img { height: 34px; width: auto; }
.nav__links { display: flex; align-items: center; gap: clamp(14px, 2.6vw, 34px); }
.nav__links a:not(.btn) { font: 600 .95rem var(--display); text-decoration: none; color: var(--ink); opacity: .85; transition: opacity .15s; }
.nav__links a:not(.btn):hover { opacity: 1; }
.nav.is-scrolled { background: rgba(255,255,255,.9); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav.is-scrolled .mark { filter: none; }

/* ── Hero ── */
.hero { position: relative; overflow: hidden; background: var(--stage); min-height: min(860px, 100svh); display: flex; align-items: center; padding: 150px 0 170px; isolation: isolate; }
/* Stage texture: squared exercise-book paper (fine + major rules) with a soft light behind the tiles */
.hero::before, .contact::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.2) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px);
  background-size: 140px 140px, 140px 140px, 28px 28px, 28px 28px;
  background-position: center top;
  -webkit-mask-image: linear-gradient(100deg, rgba(0,0,0,.45) 0%, #000 65%); mask-image: linear-gradient(100deg, rgba(0,0,0,.45) 0%, #000 65%);
}
.hero::after, .contact::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 70% at 74% 44%, rgba(255,255,255,.24), rgba(255,255,255,0) 70%);
}
.contact::before { -webkit-mask-image: linear-gradient(260deg, rgba(0,0,0,.45) 0%, #000 65%); mask-image: linear-gradient(260deg, rgba(0,0,0,.45) 0%, #000 65%); }
.contact::after { background: radial-gradient(55% 70% at 20% 60%, rgba(255,255,255,.2), rgba(255,255,255,0) 70%); }
.hero__in { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 64px); align-items: center; }

/* ── Hero composition: white tiles on the stage ── */
.art { --u: clamp(11px, 1.18vw, 16px); position: relative; font-size: var(--u); width: 33em; height: 33em; justify-self: end; font-family: var(--display); color: #1d2a36; line-height: 1.3; }
.art__panel { position: absolute; left: 4.5em; top: 2em; width: 25em; height: 28em; border-radius: 2.4em; background: rgba(255,255,255,.17); border: 1px solid rgba(255,255,255,.45); rotate: 6deg; }
.tile { position: absolute; background: #fff; border-radius: 1.25em; box-shadow: 0 .1em .2em rgba(16,56,64,.08), 0 2.2em 3.6em -1.6em rgba(16,56,64,.55); animation: tile-in .9s cubic-bezier(.2,.7,.2,1) both, tile-float 8s ease-in-out infinite; animation-delay: var(--in, 0s), calc(var(--in, 0s) + .9s); }
@keyframes tile-in { from { opacity: 0; scale: .94; translate: 0 1.6em; } to { opacity: 1; scale: 1; translate: 0 0; } }
@keyframes tile-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 var(--drift, -.5em); } }
.tile__label { font-size: .72em; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-text); }
.tile__big { font-size: 1em; font-weight: 600; margin-top: .2em; }

.tile--quiz { left: 0; top: 5em; width: 21.5em; padding: 1.5em; rotate: -2.5deg; --in: .05s; }
.pill { display: inline-block; font-size: .72em; font-weight: 600; letter-spacing: .06em; color: var(--teal-text); background: #e6f6fa; padding: .45em .9em; border-radius: 99em; }
.tile__q { font-size: 1.28em; font-weight: 600; letter-spacing: -.01em; margin: .75em 0 .9em; }
.choices { list-style: none; margin: 0; padding: 0; display: grid; gap: .55em; }
.choices li { display: flex; align-items: center; gap: .8em; font: 600 .95em var(--body); padding: .55em .7em; border: 1.5px solid #dfe8eb; border-radius: .85em; }
.choices b { flex: none; display: grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 50%; background: var(--stage); color: #fff; font: 600 .85em var(--display); }
.choices .is-right { border-color: #23a26d; background: #effaf4; }
.choices .is-right b { background: #23a26d; }
.choices svg { margin-left: auto; width: 1.4em; height: 1.4em; fill: none; stroke: #23a26d; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }

.tile--progress { right: 0; top: 0; width: 12.5em; padding: 1.2em 1.25em 1em; rotate: 3deg; --in: .2s; --drift: .55em; animation-duration: .9s, 9.5s; }
.bars { display: flex; align-items: flex-end; gap: .55em; height: 5.2em; margin-top: .9em; }
.bars i { flex: 1; height: var(--h); border-radius: .35em .35em .15em .15em; background: #bfeaf5; }
.bars .is-now { background: var(--amber); }
.bars__x { display: flex; gap: .55em; margin-top: .4em; font-size: .68em; font-weight: 600; color: var(--muted); }
.bars__x span { flex: 1; text-align: center; }

.tile--audio { right: .2em; top: 13.6em; width: 12.6em; padding: .95em 1.1em; display: flex; align-items: center; gap: .85em; rotate: -3deg; --in: .32s; --drift: -.6em; animation-duration: .9s, 7s; }
.play { flex: none; display: grid; place-items: center; width: 2.7em; height: 2.7em; border-radius: 50%; background: var(--magenta); }
.play svg { width: 1.3em; height: 1.3em; fill: #fff; }
.wave { display: flex; align-items: center; gap: .22em; height: 1.7em; margin-top: .3em; }
.wave i { width: .22em; border-radius: 1em; background: #c9d6da; height: 40%; }
.wave i:nth-child(-n+6) { background: var(--magenta); }
.wave i:nth-child(3n+1) { height: 85%; } .wave i:nth-child(3n+2) { height: 55%; } .wave i:nth-child(4n) { height: 100%; } .wave i:nth-child(7n) { height: 30%; }

.tile--chip { right: 1.2em; top: 21.8em; padding: .6em 1.1em .6em .65em; border-radius: 99em; display: flex; align-items: center; gap: .7em; font: 500 .9em var(--body); rotate: 2deg; --in: .45s; --drift: .45em; animation-duration: .9s, 8.5s; }
.tile--chip strong { font: 600 1em var(--display); }
.faces { display: flex; }
.faces i { width: 1.75em; height: 1.75em; border-radius: 50%; border: .16em solid #fff; margin-left: -.5em; }
.faces i:first-child { margin-left: 0; background: var(--amber); }
.faces i:nth-child(2) { background: #E8633C; } .faces i:nth-child(3) { background: var(--magenta); } .faces i:nth-child(4) { background: #6B2D7B; }

.tile--review { left: 9.5em; top: 26.2em; width: 16.5em; padding: 1em 1.2em; display: flex; align-items: center; gap: 1em; rotate: 1.5deg; --in: .55s; --drift: -.45em; animation-duration: .9s, 10s; }
.ring { flex: none; width: 2.9em; height: 2.9em; rotate: -90deg; fill: none; stroke-width: 5; stroke-linecap: round; }
.ring circle:first-child { stroke: #e3eef1; }
.ring circle:last-child { stroke: var(--stage); }

.eyebrow { font: 600 .82rem/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--teal-text); margin-bottom: 18px; }
.eyebrow--stage { color: var(--ink); display: inline-flex; align-items: center; gap: 12px; }
.eyebrow--stage::before { content: ""; width: 28px; height: 2px; background: var(--ink); }
.hero h1 { font-size: clamp(2.6rem, 5.2vw, 4.5rem); font-weight: 700; line-height: 1.03; color: var(--white); max-width: 11.5em; text-shadow: 0 2px 3px rgba(16,56,64,.22); }
.hero__kicker { color: var(--ink); margin-bottom: 20px; }
/* headline flashcard: fixed size, word centred, flips to the next word */
.h1__stack { display: inline-grid; }
.flip { display: block; width: 76%; justify-self: center; font-size: .9em; height: 1.42em; margin-top: .24em; perspective: 12em; rotate: -1.5deg; text-shadow: none; }
.flip__card { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.5,0,.2,1); }
.flip__face { position: absolute; inset: 0; display: grid; place-items: center; padding-bottom: .06em; background: #fff; color: var(--magenta); border-radius: .2em; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 .02em .05em rgba(16,56,64,.1), 0 .3em .5em -.24em rgba(16,56,64,.5); }
.flip__face--back { transform: rotateX(180deg); }
.hero__lede { margin-top: 28px; max-width: 34em; font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.55; color: var(--ink); font-weight: 500; }
.hero__cta { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 22px 30px; }
.hero__edge { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(40px, 6vw, 80px); }

/* ── Sections ── */
.section { padding: clamp(80px, 10vw, 136px) 0; }
.section--tint { background: var(--tint); }
.head { max-width: 46rem; margin-bottom: clamp(40px, 5vw, 64px); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 700; line-height: 1.12; }
.head__sub { margin-top: 20px; font-size: 1.15rem; color: var(--ink-soft); max-width: 38rem; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { position: relative; padding: 36px 32px 34px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.card::after { content: ""; position: absolute; left: 32px; right: 32px; top: -1px; height: 3px; border-radius: 0 0 3px 3px; background: var(--stage); transform: scaleX(.18); transform-origin: left; transition: transform .35s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(16,56,64,.35); border-color: #c5dde3; }
.card:hover::after { transform: scaleX(1); }
.card__icon { width: 48px; height: 48px; fill: none; stroke: var(--stage-deep); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 26px; }
.card__icon .fill { fill: var(--stage-deep); stroke: none; }
.card h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 12px; }
.card p { color: var(--ink-soft); }
.card ul { list-style: none; margin: 24px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: .98rem; }
.card li { position: relative; padding-left: 22px; }
.card li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 2px; background: var(--stage); }

/* principles */
.principles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(32px, 6vw, 88px); }
.principles li { padding: 34px 0 38px; border-top: 1px solid #cfe3e8; display: grid; grid-template-columns: 64px 1fr; column-gap: 8px; }
.principles .num { grid-row: span 2; font: 500 .95rem/1.9 var(--display); color: var(--teal-text); letter-spacing: .06em; }
.principles h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 10px; }
.principles p { color: var(--ink-soft); max-width: 30em; }

/* company */
.company { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 7vw, 104px); align-items: start; }
.company__text p:not(.eyebrow) { margin-top: 22px; font-size: 1.12rem; color: var(--ink-soft); max-width: 36em; }
.company__text .btn { margin-top: 36px; }
.facts { margin: 0; border-top: 2px solid var(--ink); }
.facts div { padding: 22px 0; border-bottom: 1px solid var(--line); }
.facts dt { font: 600 .78rem var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--teal-text); margin-bottom: 6px; }
.facts dd { margin: 0; font: 500 1.15rem/1.4 var(--display); letter-spacing: -.01em; }

/* ── Contact (stage) ── */
.contact { position: relative; overflow: hidden; background: var(--stage); padding: clamp(80px, 10vw, 128px) 0; isolation: isolate; }
.contact__in { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.contact h2 { color: var(--white); text-shadow: 0 2px 3px rgba(16,56,64,.2); }
.contact__intro > p:not(.eyebrow) { margin-top: 20px; font-size: 1.15rem; font-weight: 500; max-width: 26em; }
.addr { margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(16,56,64,.3); font-style: normal; font-weight: 600; line-height: 1.6; }
.addr__label { display: block; font: 600 .78rem var(--display); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; opacity: .8; }

.form { background: var(--white); border-radius: 24px; padding: clamp(26px, 3.4vw, 42px); box-shadow: 0 40px 80px -40px rgba(16,56,64,.55); display: grid; gap: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field > span { font: 600 .88rem var(--display); }
.field em { font-style: normal; font-weight: 500; color: var(--muted); }
.field input, .field textarea { width: 100%; font: 400 1.02rem/1.5 var(--body); color: var(--ink); padding: 13px 15px; border: 1.5px solid #c9dade; border-radius: 12px; background: #fbfdfe; transition: border-color .15s, box-shadow .15s, background-color .15s; }
.field textarea { resize: vertical; min-height: 132px; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--stage-deep); background: var(--white); box-shadow: 0 0 0 4px rgba(0,180,220,.2); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--magenta); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 4px; }
.form__note { font-size: .9rem; color: var(--muted); }
.form__note a { color: var(--teal-text); }
.form__status { font-weight: 600; min-height: 0; }
.form__status:empty { display: none; }
.form__status.is-error { color: var(--magenta-deep); }
.form.is-sent > :not(.form__status) { display: none; }
.form.is-sent .form__status { font: 600 1.35rem/1.35 var(--display); padding: 34px 0; color: var(--ink); }
.form.is-sent .form__status::before { content: ""; display: block; width: 46px; height: 46px; margin-bottom: 18px; border-radius: 50%; background: var(--stage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center/26px no-repeat; }

/* ── Footer ── */
.foot { padding: 34px 0; border-top: 1px solid var(--line); font-size: .93rem; color: var(--muted); }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; }
.foot__mark { height: 26px; width: auto; }
.foot nav { margin-left: auto; display: flex; gap: 26px; }
.foot a { text-decoration: none; color: var(--ink-soft); }
.foot a:hover { color: var(--ink); text-decoration: underline; }

/* ── Plain page (privacy) ── */
.page { padding: 150px 0 96px; }
.page .wrap { max-width: 720px; }
.page h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 12px; }
.page h2 { font-size: 1.3rem; margin: 40px 0 10px; }
.page p, .page li { color: var(--ink-soft); }
.page p + p { margin-top: 14px; }
.page a { color: var(--teal-text); }
.nav--solid { background: var(--white); box-shadow: 0 1px 0 var(--line); }
.nav--solid .mark { filter: none; }

/* ── Reveal on scroll (only when JS has opted in) ── */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ── Responsive ── */
@media (max-width: 980px) {
  .cards { grid-template-columns: 1fr; }
  .company, .contact__in { grid-template-columns: 1fr; }
  .hero__in { grid-template-columns: 1fr; gap: 56px; }
  .art { --u: clamp(9.5px, 2.75vw, 15px); justify-self: center; }
}
@media (max-width: 720px) {
  body { font-size: 1rem; }
  .wrap { width: min(100% - 36px, var(--wrap)); }
  .nav__in { height: 64px; }
  .nav__brand img { height: 28px; }
  .nav__links a:not(.btn) { display: none; }
  .hero { padding: 120px 0 120px; min-height: 0; }
  .principles { grid-template-columns: 1fr; }
  .principles li { grid-template-columns: 48px 1fr; padding: 26px 0 28px; }
  .form__row { grid-template-columns: 1fr; }
  .foot nav { margin-left: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}
