/* Funn UI kit, shared by the home page, /vendors and /internships.
   Pressable buttons, ticket CTAs, ticket cards, pills, the phone menu and the scroll reveal.
   Motion is calm: soft ease-outs, small distances, nothing bounces, and all of it stops for prefers-reduced-motion. */

@property --d { syntax: '<length>'; inherits: true; initial-value: 5px; }

:root {
  --soft-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --press: 5px;
}

/* ---------- never wider than the screen ----------
   Every section clips its own decorations (rotating wheel, tilted cards, cards sliding in), so nothing can pan the page sideways
   on a phone. clip, not hidden: it makes no scroll box, so position: sticky inside keeps working. html/body clip is only the net. */
@supports (overflow: clip) {
  html, body { overflow-x: clip; }
  main > section, .foot { overflow-x: clip; }
}

/* ---------- icons ---------- */
.i { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -0.18em; }

/* ---------- pressable buttons ---------- */
.btn {
  --bb: var(--btn-bg, var(--sun));
  --bf: var(--btn-fg, var(--ink));
  --be: var(--btn-edge, var(--ink));
  --bs: var(--btn-shadow, var(--ink));
  --d: var(--press);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 11px 22px;
  border: 3px solid var(--be);
  border-radius: 999px;
  background: var(--bb);
  color: var(--bf);
  font-family: var(--body);
  font-weight: 900;
  font-size: 16px;
  line-height: 1.15;
  letter-spacing: 0.005em;
  text-align: center;
  text-decoration: none;
  text-wrap: balance;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  box-shadow: 0 var(--d) 0 var(--bs);
  transform: translateY(0);
  transition: transform 0.28s var(--soft-ease), box-shadow 0.28s var(--soft-ease), --d 0.28s var(--soft-ease), background-color 0.2s, color 0.2s;
}
.btn:hover { --d: calc(var(--press) + 2px); transform: translateY(-2px); }
.btn:active { --d: 0px; transform: translateY(var(--press)); transition-duration: 0.07s; }
.btn:focus-visible { outline: 3px solid var(--focus, var(--volt)); outline-offset: 5px; }
.btn[disabled] { cursor: progress; opacity: 0.75; }
.btn .i { width: 1.2em; height: 1.2em; }
.btn .i--end { transition: translate 0.28s var(--soft-ease); }
.btn:hover .i--end { translate: 3px 0; }

/* colours: ink text on the bright ones keeps contrast above 4.5:1 (white on pink would be 3.3:1) */
.btn--sun { --btn-bg: var(--sun); --btn-fg: var(--ink); }
.btn--gum { --btn-bg: var(--gum); --btn-fg: var(--ink); }
.btn--mint { --btn-bg: var(--mint); --btn-fg: var(--ink); }
.btn--blush { --btn-bg: var(--blush); --btn-fg: var(--ink); }
.btn--tang { --btn-bg: var(--tang); --btn-fg: var(--ink); }
.btn--volt { --btn-bg: var(--volt); --btn-fg: #fff; }
.btn--paper { --btn-bg: #fff; --btn-fg: var(--ink); }
.btn--ink { --btn-bg: var(--ink); --btn-fg: #fff; --btn-shadow: var(--gum); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); }
.btn--ghost:hover { --btn-bg: rgba(255, 255, 255, 0.55); }

/* sizes (every size is at least 44 px tall) */
.btn--small { min-height: 44px; padding: 8px 16px; font-size: 15px; gap: 8px; --press: 4px; }
.btn--big { min-height: 58px; padding: 14px 30px; font-size: 18px; --press: 6px; }
.btn--block { display: flex; width: 100%; }

/* On dark blocks the ink edge disappears, so the hard shadow turns white and outlines stay ink. */
.on-dark { --btn-shadow: #fff; --focus: var(--sun); }
.on-dark .btn--ghost { --btn-fg: #fff; --btn-edge: #fff; }
.on-dark .btn--ghost:hover { --btn-bg: rgba(255, 255, 255, 0.12); }
.on-dark .btn--ink { --btn-edge: #fff; --btn-shadow: var(--gum); }
/* White cards inside dark blocks (forms, the brochure) go back to ink shadows. */
.on-dark .form, .on-dark .brochure, .on-dark .tk { --btn-shadow: var(--ink); --focus: var(--volt); }

/* ---------- ticket CTA: the Funn ticket's notched sides ----------
   ::before is the ink outline and the hard shadow in one shape (the ticket, plus the same ticket --d lower),
   ::after is the fill, inset by the outline. Masks cut the notches, so any background shows through them. */
.btn--ticket {
  --n: 11px;
  --cr: 16px;
  border: 0;
  border-radius: var(--cr);
  background: transparent;
  box-shadow: none;
  --py: 12px;
  padding: var(--py) 34px;
  isolation: isolate;
}
.btn--ticket.btn--big { --n: 13px; --cr: 18px; --py: 15px; padding-inline: 40px; }
.btn--ticket.btn--small { --n: 9px; --cr: 14px; --py: 8px; padding-inline: 24px; }
.btn--ticket::before,
.btn--ticket::after { content: ''; position: absolute; z-index: -1; pointer-events: none; }
.btn--ticket::before {
  inset: 0 0 calc(var(--d) * -1) 0;
  border-radius: var(--cr);
  background: var(--bs);
  --hole: radial-gradient(circle at 0 50%, #0000 var(--n), #000 calc(var(--n) + 0.5px));
  --hole-r: radial-gradient(circle at 100% 50%, #0000 var(--n), #000 calc(var(--n) + 0.5px));
  -webkit-mask: var(--hole) left top / 51% calc(100% - var(--d)) no-repeat, var(--hole-r) right top / 51% calc(100% - var(--d)) no-repeat, var(--hole) left bottom / 51% calc(100% - var(--d)) no-repeat, var(--hole-r) right bottom / 51% calc(100% - var(--d)) no-repeat;
  mask: var(--hole) left top / 51% calc(100% - var(--d)) no-repeat, var(--hole-r) right top / 51% calc(100% - var(--d)) no-repeat, var(--hole) left bottom / 51% calc(100% - var(--d)) no-repeat, var(--hole-r) right bottom / 51% calc(100% - var(--d)) no-repeat;
}
.btn--ticket::after {
  inset: 3px;
  border-radius: calc(var(--cr) - 3px);
  background: var(--bb);
  --hole: radial-gradient(circle at -3px 50%, #0000 calc(var(--n) + 3px), #000 calc(var(--n) + 3.5px));
  --hole-r: radial-gradient(circle at calc(100% + 3px) 50%, #0000 calc(var(--n) + 3px), #000 calc(var(--n) + 3.5px));
  -webkit-mask: var(--hole) left / 51% 100% no-repeat, var(--hole-r) right / 51% 100% no-repeat;
  mask: var(--hole) left / 51% 100% no-repeat, var(--hole-r) right / 51% 100% no-repeat;
}
.btn--ticket:hover { transform: translateY(-2px) rotate(-1deg); }
.btn--ticket:active { transform: translateY(var(--press)) rotate(0deg); }
.btn--ticket .btn__stub { display: inline-flex; align-items: center; align-self: stretch; margin: calc(var(--py) * -1) 4px calc(var(--py) * -1) -12px; padding: 0 14px 0 0; border-right: 3px dashed currentColor; opacity: 0.9; }
.btn--ticket.btn--small .btn__stub { margin-inline: -8px 2px; padding-right: 10px; border-right-width: 2px; }
.btn__stub .i { width: 1.05em; height: 1.05em; }

/* copied state */
.btn.is-copied { --btn-bg: var(--mint); --btn-fg: var(--ink); }
.btn .btn__label { display: inline-block; }
.btn.is-copied .btn__label { animation: pop-in 0.45s var(--soft-ease); }
@keyframes pop-in { from { transform: translateY(40%); opacity: 0; } }
.copy-burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.copy-burst i { position: absolute; width: 8px; height: 8px; border-radius: 2px; background: var(--c, var(--sun)); animation: burst 0.8s var(--soft-ease) forwards; }
@keyframes burst { from { transform: translate(-50%, -50%) scale(0.4); opacity: 1; } to { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(160deg) scale(1); opacity: 0; } }

/* ---------- pills / chips ---------- */
.pill { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 6px 14px; border: 2px solid var(--pill-edge, var(--ink)); border-radius: 999px; background: var(--pill-bg, #fff); color: var(--pill-fg, var(--ink)); font-weight: 800; font-size: 14px; line-height: 1.2; text-decoration: none; white-space: nowrap; }
.pill .i { width: 1em; height: 1em; }
a.pill, button.pill { min-height: 44px; cursor: pointer; transition: transform 0.25s var(--soft-ease), box-shadow 0.25s var(--soft-ease); box-shadow: 0 3px 0 var(--pill-edge, var(--ink)); }
a.pill:hover, button.pill:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--pill-edge, var(--ink)); }
a.pill:active, button.pill:active { transform: translateY(3px); box-shadow: 0 0 0 var(--pill-edge, var(--ink)); }
a.pill:focus-visible, button.pill:focus-visible { outline: 3px solid var(--focus, var(--volt)); outline-offset: 3px; }
.pill--sun { --pill-bg: var(--sun); } .pill--gum { --pill-bg: var(--gum); } .pill--mint { --pill-bg: var(--mint); } .pill--blush { --pill-bg: var(--blush); } .pill--tang { --pill-bg: var(--tang); }
.pill--ink { --pill-bg: var(--ink); --pill-fg: #fff; }
.pill--soon { --pill-bg: transparent; border-style: dashed; }

/* ---------- ticket cards (internship roles) ----------
   Same build as the ticket CTA: the notches sit on the perforation above the stub that holds the Apply button. */
.tk {
  --role: var(--sun);
  --role-fg: var(--ink);
  --tk-edge: var(--ink);
  --tk-body: #fff;
  --tk-muted: rgba(26, 16, 51, 0.74);
  --tk-fg: var(--ink);
  --n: 14px;
  --r: 26px;
  --stub: 92px;
  --d: 6px;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: var(--tk-fg);
  transition: transform 0.4s var(--soft-ease), --d 0.4s var(--soft-ease);
}
.tk::before,
.tk::after { content: ''; position: absolute; z-index: -1; pointer-events: none; }
.tk::before {
  inset: 0 0 calc(var(--d) * -1) 0;
  border-radius: var(--r);
  background: var(--tk-edge);
  --hole: radial-gradient(circle at 0 calc(100% - var(--stub)), #0000 var(--n), #000 calc(var(--n) + 0.5px));
  --hole-r: radial-gradient(circle at 100% calc(100% - var(--stub)), #0000 var(--n), #000 calc(var(--n) + 0.5px));
  -webkit-mask: var(--hole) left top / 51% calc(100% - var(--d)) no-repeat, var(--hole-r) right top / 51% calc(100% - var(--d)) no-repeat, var(--hole) left bottom / 51% calc(100% - var(--d)) no-repeat, var(--hole-r) right bottom / 51% calc(100% - var(--d)) no-repeat;
  mask: var(--hole) left top / 51% calc(100% - var(--d)) no-repeat, var(--hole-r) right top / 51% calc(100% - var(--d)) no-repeat, var(--hole) left bottom / 51% calc(100% - var(--d)) no-repeat, var(--hole-r) right bottom / 51% calc(100% - var(--d)) no-repeat;
}
.tk::after {
  inset: 3px;
  border-radius: calc(var(--r) - 3px);
  background: var(--tk-body);
  --hole: radial-gradient(circle at -3px calc(100% - var(--stub) + 3px), #0000 calc(var(--n) + 3px), #000 calc(var(--n) + 3.5px));
  --hole-r: radial-gradient(circle at calc(100% + 3px) calc(100% - var(--stub) + 3px), #0000 calc(var(--n) + 3px), #000 calc(var(--n) + 3.5px));
  -webkit-mask: var(--hole) left / 51% 100% no-repeat, var(--hole-r) right / 51% 100% no-repeat;
  mask: var(--hole) left / 51% 100% no-repeat, var(--hole-r) right / 51% 100% no-repeat;
}
@media (hover: hover) { .tk:hover { --d: 10px; transform: translateY(-4px) rotate(-0.6deg); } }
.tk__head { position: relative; margin: 3px 3px 0; padding: 18px 20px 16px; border-radius: calc(var(--r) - 3px) calc(var(--r) - 3px) 0 0; border-bottom: 3px solid var(--tk-edge); background: var(--role); color: var(--role-fg); }
.tk__emoji { position: absolute; right: 14px; top: 12px; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); font-size: 22px; line-height: 1; rotate: 8deg; box-shadow: 0 3px 0 var(--ink); }
.tk__mode { margin: 0 56px 6px 0; font-size: 12px; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; }
.tk__head h3 { margin: 0 56px 0 0; font-family: var(--display); font-weight: 400; font-size: clamp(26px, 2.6vw, 32px); line-height: 1; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.tk__body { flex: 1; display: grid; align-content: start; gap: 10px; padding: 16px 20px 18px; }
.tk__body > p { margin: 0; font-weight: 600; color: var(--tk-muted); }
.tk__hook { color: var(--tk-fg) !important; font-weight: 800 !important; }
.tk__body ul { margin: 0; padding-left: 20px; color: var(--tk-muted); font-weight: 600; }
.tk__body li + li { margin-top: 4px; }
.tk__body li::marker { color: var(--role-mark, var(--tk-fg)); }
.tk__fit b { color: var(--tk-fg); }
.tk__stub { box-sizing: border-box; height: var(--stub); display: flex; align-items: center; margin: 0 22px; padding: 4px 0 6px; border-top: 3px dashed var(--tk-edge); }
.tk__stub .btn { width: 100%; }
.tk--sun { --role: var(--sun); } .tk--mint { --role: var(--mint); } .tk--gum { --role: var(--gum); } .tk--volt { --role: var(--volt); --role-fg: #fff; }
.tk--tang { --role: var(--tang); } .tk--blush { --role: var(--blush); }
.tk .tk__apply { --btn-bg: var(--role); --btn-fg: var(--role-fg); --btn-edge: var(--ink); --btn-shadow: var(--ink); }

/* ---------- brochure card: one big link that downloads the PDF ---------- */
.brochure { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: 'cover text' 'cover go'; align-items: center; gap: 10px 18px; padding: 18px; border-radius: 26px; border: 3px solid var(--ink); background: var(--blush); color: var(--ink); text-decoration: none; box-shadow: 0 7px 0 var(--sun); rotate: 1.2deg; transition: transform 0.35s var(--soft-ease), rotate 0.35s var(--soft-ease), box-shadow 0.35s var(--soft-ease); }
.brochure:hover { rotate: 0deg; transform: translateY(-3px); box-shadow: 0 10px 0 var(--sun); }
.brochure:active { transform: translateY(5px); box-shadow: 0 2px 0 var(--sun); }
.brochure__cover { grid-area: cover; position: relative; display: grid; align-content: space-between; justify-items: start; width: 112px; aspect-ratio: 3 / 4; padding: 10px; border-radius: 14px; border: 3px solid var(--ink); background: var(--sun); box-shadow: 4px 4px 0 var(--ink); rotate: -5deg; transition: rotate 0.35s var(--soft-ease); }
.brochure:hover .brochure__cover { rotate: -9deg; }
.brochure__cover img { width: 40px; height: 40px; border-radius: 10px; }
.brochure__cover b { font-family: var(--display); font-weight: 400; font-size: 17px; line-height: 0.95; }
.brochure__cover i { font-style: normal; font-size: 11px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: var(--ink); color: #fff; }
.brochure__text { grid-area: text; display: grid; gap: 2px; }
.brochure__k { font-size: 12px; font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase; }
.brochure__text b { font-family: var(--display); font-weight: 400; font-size: clamp(20px, 2vw, 26px); line-height: 1.05; }
.brochure__text small { font-weight: 800; font-size: 14px; }
.brochure__go { grid-area: go; justify-self: start; pointer-events: none; }
.brochure:hover .brochure__go { --d: calc(var(--press) + 2px); transform: translateY(-2px); }

/* ---------- highlighted words in big headlines ---------- */
.hl-mark { display: inline-block; background: var(--mark, var(--sun)); color: var(--mark-fg, var(--ink)); line-height: 0.98; padding: 0.04em 0.14em 0.1em; margin: 0.04em -0.02em 0; border-radius: 0.18em; rotate: -1.5deg; }
.hl-mark--gum { --mark: var(--gum); }
.hl-mark--mint { --mark: var(--mint); }
.hl-mark--blush { --mark: var(--blush); }
.hl-mark--sun { --mark: var(--sun); }

/* ---------- sparkles and floaters (decoration only, aria-hidden) ---------- */
.spark { position: absolute; width: var(--s, 34px); height: var(--s, 34px); color: var(--c, var(--sun)); pointer-events: none; filter: drop-shadow(0 2px 0 rgba(26, 16, 51, 0.9)); }
.spark--twinkle { animation: twinkle 4.8s ease-in-out infinite; animation-delay: var(--delay, 0s); }
@keyframes twinkle { 0%, 100% { scale: 1; rotate: 0deg; opacity: 1; } 50% { scale: 0.72; rotate: 25deg; opacity: 0.75; } }
.floaty { animation: floaty var(--t, 11s) ease-in-out infinite alternate; animation-delay: var(--delay, 0s); }
@keyframes floaty { from { translate: 0 0; rotate: var(--r0, -4deg); } to { translate: var(--fx, 6px) var(--fy, -14px); rotate: var(--r1, 4deg); } }

/* ---------- full-bleed colour bands inside a centred column ---------- */
.band { position: relative; border-image: conic-gradient(var(--band) 0 0) fill 0 / / 0 100vw; }

/* ---------- scroll reveal: only moves things, never hides them ---------- */
.rv-on .rv { transition: transform 0.9s var(--soft-ease); transition-delay: var(--rv-delay, 0s); }
.rv-on .rv:not(.is-in) { transform: translateY(26px) rotate(var(--rv-rot, 0deg)); }

/* ---------- phone menu ---------- */
.menu-btn { display: none; }
@media (max-width: 1100px) {
  [data-menu] .menu-btn { display: inline-flex; }
}
.menu-btn { align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; padding: 0; border: 3px solid var(--ink); border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; box-shadow: 0 3px 0 var(--ink); transition: transform 0.25s var(--soft-ease), box-shadow 0.25s var(--soft-ease); -webkit-tap-highlight-color: transparent; }
.menu-btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }
.menu-btn:focus-visible { outline: 3px solid var(--focus, var(--volt)); outline-offset: 3px; }
.menu-btn .i { width: 22px; height: 22px; }
.menu { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; gap: 12px; padding: max(16px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom)); background: var(--ink); color: #fff; overflow-y: auto; overscroll-behavior: contain; opacity: 0; visibility: hidden; transition: opacity 0.3s var(--soft-ease), visibility 0s 0.3s; --btn-shadow: #fff; --focus: var(--sun); }
.menu.is-open { opacity: 1; visibility: visible; transition: opacity 0.3s var(--soft-ease); }
.menu__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; }
.menu__brand { font-family: var(--display); font-size: 30px; line-height: 1; color: var(--sun); text-decoration: none; }
.menu .menu__close { display: inline-flex; }
.menu__close { width: 48px; height: 48px; border-color: #fff; background: var(--sun); box-shadow: 0 3px 0 #fff; }
.menu__links { display: grid; gap: 10px; margin: 8px 0 0; padding: 0; list-style: none; }
.menu__links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 10px 18px; border: 3px solid var(--ink); border-radius: 18px; background: var(--mc, #fff); color: var(--ink); font-family: var(--display); font-size: 24px; line-height: 1.05; text-decoration: none; box-shadow: 0 4px 0 #fff; transform: translateY(14px); transition: transform 0.5s var(--soft-ease), box-shadow 0.2s; transition-delay: calc(var(--k, 0) * 35ms); }
.menu.is-open .menu__links a { transform: none; }
.menu__links a:active { transform: translateY(4px); box-shadow: 0 0 0 #fff; }
.menu__links a:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.menu__links li:nth-child(6n + 1) a { --mc: var(--sun); } .menu__links li:nth-child(6n + 2) a { --mc: var(--gum); } .menu__links li:nth-child(6n + 3) a { --mc: var(--mint); }
.menu__links li:nth-child(6n + 4) a { --mc: var(--blush); } .menu__links li:nth-child(6n + 5) a { --mc: var(--tang); } .menu__links li:nth-child(6n + 6) a { --mc: #fff; }
.menu__cta { margin-top: auto; padding-top: 14px; }
.menu__tag { margin: 6px 0 0; text-align: center; font-family: var(--display); color: var(--gum); font-size: 20px; }
html.menu-open, html.menu-open body { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .btn, .btn--ticket, .tk, .pill, .menu, .menu__links a, .btn .i--end { transition: none !important; }
  .btn:hover, .btn--ticket:hover, .tk:hover { transform: none; }
  .spark--twinkle, .floaty, .btn.is-copied .btn__label, .copy-burst i { animation: none !important; }
  .rv-on .rv:not(.is-in) { transform: none; }
  .menu__links a { transform: none; }
}
