/* Beil Tech site styles, ported from reference/homepage-mock.html.
   Print look: rough ink edges are a static SVG filter (#rough); the paper holes are a texture overlay whose frame JS swaps. */
:root { --paper: #F4C4BC; --navy: #14213D; --gold: #EFA91B; --ocker: #A25E00; --soft: #3A4566; --grain-frame: url(/assets/grain/g0.png); }
* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--navy); font: 400 18px/1.6 'Bitter', Georgia, serif; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.final :focus-visible { outline-color: var(--gold); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.display { font-family: 'Londrina Solid', Impact, sans-serif; font-weight: 900; text-transform: uppercase; letter-spacing: .01em; line-height: .95; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.defs { position: absolute; width: 0; height: 0; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 50; background: var(--navy); color: var(--paper); padding: 8px 14px; border-radius: 4px; text-decoration: none; }
.skip:focus { top: 12px; }

.inked { position: relative; isolation: isolate; }
.inked::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--ink, var(--navy)); filter: url(#rough); }
.inked::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--grain-frame) 0 0 / 220px 220px; will-change: transform; }
.ink { filter: url(#rough); }

/* header: sticky, gains a carved edge once you scroll */
.bar { position: sticky; top: 0; z-index: 20; background: var(--paper); }
.bar::after { content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 4px; background: var(--navy); filter: url(#rough); transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.bar.scrolled::after { transform: scaleX(1); }
header.wrap { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; font-size: 25px; text-decoration: none; }
.lang { display: flex; gap: 4px; font-family: 'Londrina Solid', Impact, sans-serif; font-weight: 900; font-size: 18px; }
.lang a { text-decoration: none; padding: 4px 10px; border-radius: 3px; transition: background .2s, color .2s; }
.lang a:hover { background: rgba(20,33,61,.12); }
.lang a[aria-current="page"] { background: var(--navy); color: var(--paper); }

/* logo: Kerbe + the span as the i dot (size M, tilted roof); ocker on light, gold on navy */
.lockup { position: relative; display: inline-flex; align-items: center; gap: .4em; color: var(--navy); --chip: var(--ocker); text-decoration: none; }
.lockup.on-navy { color: var(--paper); --chip: var(--gold); }
.lockup .mk { height: 1.3em; width: auto; flex: none; fill: currentColor; }
.lockup .wm { font-family: 'Archivo', Arial, sans-serif; font-weight: 760; font-stretch: 104%; letter-spacing: -.025em; line-height: 1; white-space: nowrap; }
.lockup .idot { position: relative; margin-right: .05em; }
.lockup .dot { position: absolute; left: 50%; top: -.074em; width: .335em; height: .274em; translate: -50% 0; fill: var(--chip); overflow: visible; transition: translate .35s cubic-bezier(.3,1.6,.5,1), rotate .35s cubic-bezier(.3,1.6,.5,1); }
.brand:hover .dot { translate: -30% -18%; rotate: -14deg; }
.flyer { position: absolute; pointer-events: none; overflow: visible; transform-origin: 50% 50%; }

/* hero */
.hero { position: relative; padding-top: 10px; }
.hero svg { display: block; width: 100%; height: auto; overflow: visible; }
.hero .hit { cursor: pointer; }
.hero .L-gold, .hero .L-navy, .hero .line, .hero .chip { transform-box: fill-box; transform-origin: center; }
.hero .L-gold, .hero .L-navy, .hero .L-axe { mix-blend-mode: multiply; }
.hero .ring { transform-box: view-box; }
.hero .axe { transform-box: fill-box; transform-origin: 28% 96%; }
.hero-grain { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: var(--grain-frame) 0 0 / 220px 220px; will-change: transform; }
.hero-brand { position: absolute; z-index: 2; display: none; }
.hero.ready .hero-brand { display: inline-flex; }
.hero-fallback { margin: 20px 40px 0; padding: 48px 40px; color: var(--paper); }
.hero-fallback p { font-size: clamp(48px, 9vw, 120px); margin: 0; }

/* intro */
.intro { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; padding-top: 40px; padding-bottom: 96px; align-items: start; }
.intro .lead { font-size: 34px; line-height: 1.22; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.intro p { margin: 6px 0 0; color: var(--soft); }
.intro .lead .sw { display: block; font-size: 64px; line-height: 1; margin-bottom: 14px; color: var(--navy); }
.intro .lead .hl { display: inline-block; position: relative; isolation: isolate; }
.intro .lead .hl::after { content: ''; position: absolute; z-index: -1; left: -6px; right: -8px; bottom: 2px; height: 42%; background: var(--gold); filter: url(#rough); }
.kicker { --ink: var(--navy); display: inline-block; font-size: 18px; letter-spacing: .06em; margin-bottom: 14px; padding: 3px 10px 1px; color: var(--paper); }

section.block { padding-bottom: 104px; }
.label { font-size: 56px; margin: 0 0 30px; display: flex; align-items: center; gap: 16px; }
.label svg { width: 34px; height: 34px; flex: none; transform-origin: 20% 90%; }

/* Edunizer: a guest brand poster pasted across the full width, slightly askew */
.bleed { width: 100vw; margin-left: calc(50% - 50vw); }
.poster-clip { overflow-x: clip; padding: 46px 0 70px; }
.poster { --ink: #059669; color: #fff; width: 104%; margin-left: -2%; rotate: -2deg; padding: 54px 0 74px; transition: rotate .5s cubic-bezier(.3,1.5,.5,1); }
.poster:hover { rotate: -1.3deg; }
.poster-in { padding-left: calc(var(--bl, 40px) + 2%); padding-right: calc(var(--br, 40px) + 2%); }
.poster .ewm { margin: 6px 0 30px; line-height: 0; }
.poster .ewm svg { width: min(58%, 680px); height: auto; }
.poster p { margin: 0; max-width: 44ch; font-size: 21px; }
.poster .sticker { position: absolute; width: clamp(150px, 19vw, 250px); height: auto; right: calc(var(--br, 40px) + 9%); top: 50%; translate: 0 -58%; rotate: 7deg; filter: drop-shadow(8px 8px 0 var(--navy)); transition: rotate .45s cubic-bezier(.3,1.6,.5,1); }
.poster:hover .sticker { rotate: -2deg; }
.poster .go { position: absolute; right: calc(var(--br, 40px) + 3%); bottom: -30px; rotate: 2deg; }
.go { --ink: var(--navy); display: inline-block; color: var(--paper); text-decoration: none; font-family: 'Londrina Solid', Impact, sans-serif; font-weight: 900; font-size: 24px; padding: 14px 24px 12px; text-transform: uppercase; white-space: nowrap; filter: drop-shadow(6px 6px 0 #F4C4BC); transition: filter .18s, translate .18s; }
.go:hover { filter: drop-shadow(1px 1px 0 #F4C4BC); translate: 5px 5px; }
.go:active { filter: none; translate: 6px 6px; }
.go .arr { display: inline-block; transition: translate .25s cubic-bezier(.3,1.6,.5,1); }
.go:hover .arr { translate: 5px 0; }

/* people */
.peopletext { margin: -10px 0 34px; color: var(--soft); max-width: 56ch; }
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 900px; }
.person { display: flex; gap: 22px; align-items: center; }
.stamp { --ink: var(--navy); width: 96px; height: 96px; flex: none; display: grid; place-items: center; color: var(--paper); font-size: 58px; padding-top: 6px; transition: rotate .4s cubic-bezier(.3,1.6,.5,1); }
.stamp::before, .stamp::after { border-radius: 50%; }
.person:hover .stamp { rotate: -12deg; }
.person b { display: block; font-size: 24px; line-height: 1.25; }
.person span { color: var(--soft); }

/* closing print: contact and footer on one navy block */
.final { --ink: var(--navy); color: var(--paper); margin-top: 40px; padding-top: 96px; }
.final::before { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='118' height='48'%3E%3Cpath d='M6 9 q14 -3 27 0 M66 20 q11 -2 22 1 M24 38 q12 -3 24 0' stroke='%23F4C4BC' stroke-opacity='.55' stroke-width='2.2' fill='none' stroke-linecap='round' transform='rotate(-9 59 24)'/%3E%3C/svg%3E"), var(--navy); }
.final .label { color: var(--paper); }
.final section.block { padding-bottom: 88px; }
.final--short { margin-top: 0; padding-top: 0; }
.final--short footer .wrap { border-top: 0; }
.contact { display: grid; grid-template-columns: 1fr auto; row-gap: 26px; column-gap: 48px; align-items: end; }
.contact > div { grid-column: 1 / -1; }
.contact p { margin: 0 0 14px; color: var(--paper); opacity: .8; }
.mail { position: relative; isolation: isolate; font-size: clamp(40px, 7.4vw, 100px); text-decoration: none; display: inline-block; line-height: 1.05; padding: 4px 6px 8px; margin-left: -6px; }
.mail .nw { white-space: nowrap; }
.mail:hover { color: var(--navy); }
.mail .ul { position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 7px; background: var(--gold); filter: url(#rough); transform-origin: left; transition: height .3s cubic-bezier(.2,.8,.2,1); }
.mail:hover .ul { height: 100%; }
address { font-style: normal; line-height: 1.55; color: var(--paper); opacity: .85; }

footer .wrap { border-top: 2px solid rgba(244,196,188,.22); display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-top: 34px; padding-bottom: 38px; font-size: 15px; line-height: 1.6; }
footer .lockup { font-size: 22px; display: flex; width: max-content; margin-bottom: 10px; }
footer nav { display: flex; gap: 22px; font-family: 'Londrina Solid', Impact, sans-serif; font-weight: 900; font-size: 20px; text-transform: uppercase; }
footer nav a { text-decoration: none; background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 3px no-repeat; transition: background-size .3s; padding-bottom: 2px; }
footer nav a:hover { background-size: 100% 3px; }
footer .hand { opacity: .7; font-style: italic; }

/* legal pages */
.legal { overflow-wrap: break-word; max-width: 860px; padding-top: 40px; padding-bottom: 96px; }
.legal h1 { font-size: clamp(48px, 8vw, 88px); margin: 0 0 28px; }
.legal h2 { font: 700 21px/1.3 'Bitter', Georgia, serif; margin: 34px 0 8px; }
.legal p { margin: 0 0 14px; }
.legal .note { color: var(--soft); font-style: italic; }
.legal .go { margin-top: 18px; }

/* before a reveal runs, revealed things wait invisible (only when motion is allowed and JS runs) */
html.motion [data-reveal]:not(.shown) { opacity: 0; }

@media (max-width: 760px) {
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  header.wrap { padding-top: 18px; padding-bottom: 14px; }
  .hero-fallback { margin: 12px 0 0; padding: 36px 16px; }
  .intro { grid-template-columns: 1fr; gap: 18px; padding-top: 26px; padding-bottom: 72px; }
  .intro .lead { font-size: 26px; }
  .intro .lead .sw { font-size: 44px; }
  section.block { padding-bottom: 80px; }
  .label { font-size: 40px; margin-bottom: 22px; }
  .poster-clip { padding: 30px 0 40px; }
  .poster { padding: 40px 0 44px; rotate: -2.5deg; }
  .poster .ewm svg { width: 78%; }
  .poster .sticker { width: 92px; top: -26px; right: 22px; translate: none; filter: drop-shadow(5px 5px 0 var(--navy)); }
  .poster p { font-size: 18px; }
  .poster .go { position: static; display: inline-block; margin-top: 26px; rotate: none; }
  .final { padding-top: 64px; }
  .people { grid-template-columns: 1fr; gap: 24px; }
  .stamp { width: 76px; height: 76px; font-size: 46px; }
  .contact { grid-template-columns: 1fr; gap: 28px; }
  .mail .ul { height: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
