/* Beil Tech site styles. Design reference: reference/polish-mocks.html (print look, plain disc).
   Print look: rough ink edges are a static SVG filter (#rough); the paper holes are a texture overlay
   whose frame JS swaps only while the page prints in. */
:root {
  --paper: #F4C4BC; --navy: #14213D; --gold: #EFA91B; --ocker: #A25E00; --soft: #3A4566;
  --grain-frame: url(/assets/grain/g0.png);
  --marks: 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");
}
* { 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; }

/* small interface text is set in the wordmark face; the display face is kept for the big statements */
.lang, .go, .kicker, footer nav { font-family: 'Archivo', Arial, sans-serif; font-weight: 760; font-stretch: 104%; letter-spacing: .08em; text-transform: uppercase; }

.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; }
/* carving marks: only along the edges of a print, never behind the text */
.marks { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--marks); }

/* 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: -2px; height: 3px; 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: 24px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; font-size: 25px; text-decoration: none; }
.lang { display: flex; gap: 4px; font-size: 13px; }
.lang a { text-decoration: none; padding: 5px 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; 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; }

/* hero: the navy block carries the logo's notch and bleeds off the left page edge; the gold disc overprints it */
.hero { position: relative; padding-top: 10px; overflow-x: clip; }
.hero-in { position: relative; display: flex; align-items: stretch; }
.block { flex: 0 0 61%; padding: 70px 100px 74px 0; color: var(--paper); }
.block.inked::before, .block.inked::after, .block .marks { left: -50vw; }
.block .marks { -webkit-mask-image: linear-gradient(to top, #000 22px, transparent 120px), linear-gradient(to left, #000 18px, transparent 110px); mask-image: linear-gradient(to top, #000 22px, transparent 120px), linear-gradient(to left, #000 18px, transparent 110px); }
.slogan { margin: 0; }
.slogan .line { display: block; width: max-content; max-width: 100%; line-height: .86; white-space: nowrap; font-size: clamp(48px, 10.5vw, 150px); }
.slogan .mark { color: var(--gold); }
/* the full stop is the chip cut from the notch */
.slogan .dot { position: relative; display: inline-block; color: transparent; }
.chip { position: absolute; left: -.02em; bottom: .055em; width: .2em; height: .215em; rotate: -14deg; }
.chip i, .notch i { display: block; width: 100%; height: 100%; clip-path: polygon(100% 0, 0 50%, 100% 100%); }
.chip i { background: var(--gold); }
.notch { position: absolute; right: -8px; top: 50%; width: 80px; height: 84px; margin-top: -42px; filter: url(#rough); }
.notch i { background: var(--paper); }
.sealbox { flex: 1; display: grid; align-items: center; justify-items: start; margin-left: -82px; }
.disc { width: min(100%, 400px); aspect-ratio: 1; border-radius: 50%; background: var(--gold); filter: url(#rough); mix-blend-mode: multiply; }
.reg { position: absolute; right: 26px; top: 10px; width: 30px; height: 30px; opacity: .45; }
html.motion body:not([data-ready]) .hero-in > * { opacity: 0; }

/* intro */
.intro { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; padding-top: 88px; padding-bottom: 120px; align-items: start; }
.intro h2 { font-size: 68px; margin: 0; }
.hl { display: inline-block; position: relative; isolation: isolate; }
.hl::after { content: ''; position: absolute; z-index: -1; left: -6px; right: -8px; bottom: 2px; height: 40%; background: var(--gold); filter: url(#rough); }
.intro .lead { font-size: 29px; line-height: 1.3; font-weight: 500; margin: 4px 0 22px; letter-spacing: -.01em; }
.intro .body { margin: 0; color: var(--soft); max-width: 60ch; }

section.block-s { padding-bottom: 120px; }
.label { font-size: 50px; margin: 0 0 34px; display: flex; align-items: center; gap: 16px; }
.wedge { width: .42em; height: .46em; flex: none; background: var(--ocker); clip-path: polygon(100% 0, 0 50%, 100% 100%); rotate: -14deg; margin-top: -.08em; }
.final .wedge { background: var(--gold); }

/* Edunizer: a guest brand poster across the full width */
.poster { --ink: #059669; color: #fff; padding: 68px 0 72px; }
.poster-in { display: grid; grid-template-columns: 1fr auto; gap: 56px; align-items: center; }
.kicker { display: block; font-size: 13px; opacity: .9; margin-bottom: 18px; }
.ewm { margin: 0 0 26px; line-height: 0; }
.ewm svg { width: min(100%, 600px); height: auto; }
.poster p { margin: 0; max-width: 46ch; font-size: 21px; line-height: 1.5; }
.tile { width: clamp(150px, 18vw, 232px); height: auto; rotate: 6deg; margin-right: 4%; filter: drop-shadow(7px 8px 0 rgba(3,80,60,.75)); }
.go { --ink: var(--navy); display: inline-block; color: var(--paper); text-decoration: none; font-size: 16px; padding: 17px 24px 16px; white-space: nowrap; }
.poster .go { margin-top: 34px; color: #fff; }
.go .arr { display: inline-block; margin-left: .35em; transition: translate .3s cubic-bezier(.2,.8,.2,1); }
.go:hover .arr { translate: 6px 0; }

/* people */
.peoplegrid { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: center; }
.peopletext { margin: 0; font-size: 24px; line-height: 1.35; font-weight: 500; max-width: 22ch; }
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.person { display: flex; gap: 20px; align-items: center; }
.stamp { --ink: var(--navy); width: 88px; height: 88px; flex: none; display: grid; place-items: center; color: var(--paper); font-size: 52px; padding-top: 5px; }
.stamp::before, .stamp::after { border-radius: 50%; }
.person b { display: block; font-size: 23px; 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); padding-top: 112px; }
.final .marks { -webkit-mask-image: linear-gradient(to bottom, #000 18px, transparent 140px); mask-image: linear-gradient(to bottom, #000 18px, transparent 140px); }
.final .label { color: var(--paper); }
.final section.block-s { padding-bottom: 96px; }
.final--short { padding-top: 0; }
.final--short footer .wrap { border-top: 0; padding-top: 64px; }
.contact { display: grid; grid-template-columns: 1fr auto; column-gap: 56px; align-items: end; }
.contact p { margin: 0 0 12px; opacity: .8; }
.mail { position: relative; isolation: isolate; font-size: clamp(34px, 5.7vw, 78px); text-decoration: none; display: inline-block; line-height: 1.05; padding: 4px 6px 12px; margin-left: -6px; transition: color .25s; }
.mail .nw { white-space: nowrap; }
.mail:hover { color: var(--navy); }
.mail .ul { position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 6px; background: var(--gold); filter: url(#rough); transition: height .35s cubic-bezier(.2,.8,.2,1); }
.mail:hover .ul { height: 100%; }
address { font-style: normal; line-height: 1.6; opacity: .85; padding-bottom: 10px; }

footer .wrap { border-top: 2px solid rgba(244,196,188,.2); display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; padding-top: 34px; padding-bottom: 40px; 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: 24px; font-size: 14px; }
footer nav a { text-decoration: none; background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 2px no-repeat; transition: background-size .3s; padding-bottom: 3px; }
footer nav a:hover { background-size: 100% 2px; }
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-in { flex-direction: column; }
  .block { flex: none; width: 100%; padding: 44px 42px 72px 0; }
  .block.inked::before, .block.inked::after, .block .marks { right: -16px; }
  .notch { right: -24px; width: 46px; height: 48px; margin-top: -24px; }
  .sealbox { margin-left: 0; margin-top: -46px; justify-items: end; }
  .disc { width: 92%; }
  .reg { display: none; }
  .intro, .peoplegrid { grid-template-columns: 1fr; gap: 20px; }
  .intro { padding-top: 56px; padding-bottom: 80px; }
  .intro h2 { font-size: 46px; }
  .intro .lead { font-size: 23px; }
  section.block-s { padding-bottom: 84px; }
  .label { font-size: 38px; margin-bottom: 22px; }
  .poster { padding: 44px 0 48px; }
  .poster-in { grid-template-columns: 1fr; gap: 0; }
  .tile { width: 84px; grid-row: 1; margin: 0 0 22px; }
  .poster p { font-size: 18px; }
  .people { grid-template-columns: 1fr; gap: 22px; }
  .peopletext { font-size: 21px; max-width: none; margin-bottom: 8px; }
  .final { padding-top: 72px; }
  .final--short { padding-top: 0; }
  .contact { grid-template-columns: 1fr; row-gap: 26px; }
  .mail .ul { height: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
