/* =========================================================
   Sangkuriang Internasional — Careers landing page
   Brand: royal blue #0060c7 · terracotta orange · navy
   ========================================================= */

:root {
  --blue: #0060c7;
  --blue-2: #0a74e6;
  --blue-3: #4a90e2;
  --blue-deep: #003c8a;
  --navy: #061a3d;
  --navy-2: #0a2a5e;
  --orange: #d2712f;
  --orange-2: #e8863f;
  --ink: #0b1530;
  --muted: #55627d;
  --sky: #eaf2fd;
  --cream: #f4f8ff;
  --white: #fff;
  --green: #11a36a;

  --font-display: "Bowlby One", "Arial Black", Impact, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 24px;
  --shadow-sm: 0 4px 14px rgb(6 26 61 / .08);
  --shadow-md: 0 18px 40px -12px rgb(6 26 61 / .22);
  --shadow-lg: 0 30px 70px -20px rgb(0 40 110 / .45);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; cursor: pointer; }
address { font-style: normal; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.display { font-family: var(--font-display); font-weight: 400; line-height: 1.02; letter-spacing: .01em; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--orange); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--orange-2); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  --_bg: var(--orange); --_fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; border: 2px solid transparent;
  background: var(--_bg); color: var(--_fg);
  font-weight: 800; font-size: 1rem; text-decoration: none; letter-spacing: .01em;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .25s, color .25s;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }
.btn-orange { box-shadow: 0 10px 24px -8px rgb(210 113 47 / .7); }
.btn-orange:hover { --_bg: var(--orange-2); box-shadow: 0 16px 30px -8px rgb(210 113 47 / .75); }
.btn-ghost { --_bg: rgb(255 255 255 / .1); border-color: rgb(255 255 255 / .6); backdrop-filter: blur(6px); }
.btn-ghost:hover { --_bg: #fff; --_fg: var(--blue); }
.btn-outline { --_bg: transparent; --_fg: var(--blue); border-color: var(--blue); }
.btn-outline:hover { --_bg: var(--blue); --_fg: #fff; }
.btn-sm { padding: 10px 20px; font-size: .92rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: #cfe3ff;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--orange); }
.eyebrow-dark { color: var(--blue); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--blue);               /* matches the logo artwork background exactly */
  height: var(--header-h);
  box-shadow: 0 1px 0 rgb(255 255 255 / .1);
}
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 46px; width: auto; }
.brand { display: block; line-height: 0; }
.nav-menu { display: flex; align-items: center; gap: 6px; }
.nav-menu a:not(.btn) {
  color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: 10px 16px; border-radius: 999px; transition: background .2s;
}
.nav-menu a:not(.btn):hover { background: rgb(255 255 255 / .14); }
.nav-menu .btn { margin-left: 8px; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 14px; border: 0;
  background: rgb(255 255 255 / .14); position: relative;
}
.nav-toggle span {
  position: absolute; left: 12px; right: 12px; height: 2.5px; border-radius: 2px; background: #fff;
  transition: transform .3s, opacity .2s, top .3s;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 29px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; color: #fff;
  background:
    radial-gradient(900px 500px at 85% 10%, rgb(74 144 226 / .55), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgb(0 60 138 / .8), transparent 60%),
    var(--blue);
  padding: 56px 0 110px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.circuit { position: absolute; inset: 0; width: 100%; height: 100%; color: rgb(255 255 255 / .13); }
.orb { position: absolute; border-radius: 50%; filter: blur(2px); }
.orb-1 { width: 520px; height: 520px; right: -140px; top: -120px; border: 60px solid rgb(255 255 255 / .06); }
.orb-2 { width: 300px; height: 300px; left: -100px; bottom: 40px; border: 40px solid rgb(255 255 255 / .06); }

.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }

.hero-title { margin-top: 22px; font-size: clamp(3.4rem, 9vw, 7.4rem); color: #fff; text-shadow: 0 6px 0 var(--blue-deep), 0 14px 30px rgb(0 20 70 / .35); }
.hero-line { display: block; }
.hero-line-2 { position: relative; display: inline-block; }
.megaphone {
  position: absolute; right: -0.55em; top: -0.62em; width: .72em; height: .72em; rotate: 14deg;
  filter: drop-shadow(0 8px 10px rgb(0 20 70 / .4));
  animation: wobble 3.6s ease-in-out infinite;
}
.megaphone em {
  position: absolute; left: 50%; top: 56%; translate: -10% 0;
  font: 800 .14em/1 var(--font-body); font-style: normal; letter-spacing: .08em;
  color: #fff; background: var(--orange); padding: .5em .8em; border-radius: 99px; text-shadow: none;
  rotate: -14deg;
}
@keyframes wobble { 0%, 100% { rotate: 14deg; } 50% { rotate: 6deg; translate: 0 -6px; } }

.hero-lead { margin-top: 28px; max-width: 54ch; font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: #e4efff; }
.hero-lead strong { color: #fff; }

.role-chips { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; max-width: 640px; }
.role-chips a {
  display: grid; place-items: center; text-align: center;
  min-height: 58px; padding: 8px 22px; border-radius: 999px;
  background: var(--orange); color: #fff; text-decoration: none;
  font-weight: 800; font-size: .78rem; line-height: 1.15; text-transform: uppercase; letter-spacing: .03em;
  box-shadow: 0 6px 0 #a5521b, 0 12px 20px -6px rgb(0 0 0 / .3);
  transition: transform .2s, box-shadow .2s;
}
.role-chips a:hover { transform: translateY(3px); box-shadow: 0 3px 0 #a5521b, 0 8px 14px -6px rgb(0 0 0 / .3); }
.hero-cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }

/* hero visual */
.hero-visual { position: relative; margin: 0; padding: 24px; }
.mascot-card {
  position: relative; border-radius: 40px; overflow: hidden; rotate: 2.5deg;
  border: 8px solid #fff; box-shadow: var(--shadow-lg);
  background: #1a56c8;
  animation: float 6s ease-in-out infinite;
}
.mascot-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }

.float-badge {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: #fff; color: var(--ink); border-radius: 18px; padding: 12px 18px;
  font-weight: 800; font-size: .88rem; line-height: 1.2; box-shadow: var(--shadow-md);
}
.float-badge svg { color: var(--green); flex: none; }
.fb-1 { left: -6px; top: 14%; flex-direction: row; background: var(--orange); color: #fff; padding: 14px 20px; animation: float 5s ease-in-out -1s infinite; }
.fb-1 strong { font: 400 2.2rem/1 var(--font-display); }
.fb-1 span { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.fb-2 { right: -2px; bottom: 26%; animation: float 5.5s ease-in-out -2.5s infinite; }
.fb-3 { left: 8%; bottom: 3%; animation: float 6.5s ease-in-out -.5s infinite; }
.fb-3 svg { color: var(--blue); }

/* ---------- Marquee ---------- */
.marquee {
  position: relative; z-index: 2; margin-top: -42px; rotate: -1.4deg; width: 104%; margin-left: -2%;
  background: var(--orange); color: #fff; overflow: hidden; padding: 16px 0;
  box-shadow: 0 14px 30px -10px rgb(0 0 0 / .35);
}
.marquee-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font: 400 1.25rem/1 var(--font-display); text-transform: uppercase; white-space: nowrap; letter-spacing: .02em; }
.marquee i { width: 14px; height: 14px; background: #fff; clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%); flex: none; opacity: .9; }
@keyframes marquee { to { translate: -50% 0; } }

/* ---------- Sections ---------- */
.section { padding: 110px 0; position: relative; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head-left { text-align: left; margin: 0 0 36px; }
.section-head h2 { font-size: clamp(2.3rem, 5.2vw, 4rem); margin-top: 14px; color: var(--blue); }
.section-head h2 span { color: var(--orange); }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 1.08rem; }

/* ---------- Positions ---------- */
.positions { background: var(--cream); padding-top: 140px; }
.positions::before {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: radial-gradient(rgb(0 96 199 / .12) 1.5px, transparent 1.5px); background-size: 28px 28px;
  mask-image: linear-gradient(#000, transparent 70%);
}
.positions .container { position: relative; }

.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.filter {
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 20px; border-radius: 999px;
  background: #fff; color: var(--blue); border: 2px solid rgb(0 96 199 / .18); font-weight: 700; font-size: .95rem;
  transition: all .2s;
}
.filter b { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 99px; background: var(--sky); font-size: .78rem; transition: all .2s; }
.filter:hover { border-color: var(--blue); }
.filter.is-active { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: 0 10px 22px -8px rgb(0 96 199 / .6); }
.filter.is-active b { background: var(--orange); color: #fff; }

.job-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.job-card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  background: #fff; border-radius: var(--radius); padding: 28px;
  border: 1px solid rgb(0 96 199 / .1); box-shadow: var(--shadow-sm);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s, opacity .3s;
  overflow: hidden; cursor: pointer;
}
.job-card::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgb(74 144 226 / .22), transparent 70%); transition: transform .5s;
}
.job-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: rgb(0 96 199 / .35); }
.job-card:hover::after { transform: scale(2.2); }
.job-card[hidden] { display: none; }

.job-icon {
  width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--blue-2), var(--blue-deep)); color: #fff;
  box-shadow: 0 10px 20px -8px rgb(0 96 199 / .7); transition: rotate .35s, scale .35s;
}
.job-icon svg { width: 30px; height: 30px; }
.job-card:hover .job-icon { rotate: -6deg; scale: 1.08; }

.job-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 5px 11px; border-radius: 99px; background: var(--sky); color: var(--blue); }
.tag-orange { background: #fdeadc; color: #b25a1e; }
.tag-sky { background: #e3f1ff; color: #0a6fb8; }
.tag-green { background: #dcf6ea; color: #0b7a4f; }

.job-card h3 { font-size: 1.55rem; color: var(--navy); }
.job-summary { color: var(--muted); font-size: .98rem; }
.skills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 4px; }
.skills li { font-size: .8rem; font-weight: 600; padding: 5px 12px; border-radius: 10px; border: 1px dashed rgb(0 96 199 / .35); color: var(--navy-2); }

.job-more {
  align-self: flex-start; margin-top: 6px; padding: 0; border: 0; background: none;
  color: var(--blue); font-weight: 800; font-size: .98rem; display: inline-flex; gap: 8px;
}
.job-more span { transition: translate .25s; }
.job-card:hover .job-more span, .job-more:focus-visible span { translate: 6px 0; }
.job-more::before { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* whole card clickable */

/* ---------- Dialog ---------- */
dialog {
  width: min(860px, 100% - 28px); max-height: min(88vh, 820px); padding: 0; border: 0; border-radius: 28px;
  background: #fff; color: var(--ink); overflow: hidden; box-shadow: 0 40px 90px -20px rgb(0 0 0 / .55);
  opacity: 0; translate: 0 24px; scale: .97;
  transition: opacity .3s, translate .35s cubic-bezier(.2,.8,.2,1), scale .35s cubic-bezier(.2,.8,.2,1), overlay .3s allow-discrete, display .3s allow-discrete;
}
dialog[open] { opacity: 1; translate: 0 0; scale: 1; display: flex; flex-direction: column; }
@starting-style { dialog[open] { opacity: 0; translate: 0 24px; scale: .97; } }
dialog::backdrop { background: rgb(4 18 48 / .6); backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s, overlay .3s allow-discrete, display .3s allow-discrete; }
dialog[open]::backdrop { opacity: 1; }
@starting-style { dialog[open]::backdrop { opacity: 0; } }

.dialog-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding: 30px 32px 26px; color: #fff;
  background: radial-gradient(500px 200px at 100% 0, rgb(74 144 226 / .6), transparent 70%), var(--blue);
}
.dialog-head h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); margin-top: 10px; text-shadow: 0 3px 0 var(--blue-deep); }
.dialog-close { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .18); color: #fff; display: grid; place-items: center; transition: background .2s, rotate .3s; }
.dialog-close:hover { background: var(--orange); rotate: 90deg; }

.dialog-body { overflow-y: auto; padding: 28px 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.dialog-body h4 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.dialog-body h4::after { content: ""; flex: 1; height: 2px; background: var(--sky); }
.dialog-body li { position: relative; padding-left: 28px; margin-bottom: 12px; font-size: .97rem; }
.dialog-body li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: var(--sky);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230060c7' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 11px; background-repeat: no-repeat; background-position: center;
}
.dialog-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 20px 32px; background: var(--cream); border-top: 1px solid rgb(0 96 199 / .1); }
.dialog-foot p { margin-left: auto; font-size: .85rem; color: var(--muted); }

/* ---------- About ---------- */
.about { background: var(--navy); color: #fff; overflow: hidden; }
.about::before { content: ""; position: absolute; width: 700px; height: 700px; left: -250px; top: -250px; border-radius: 50%; background: radial-gradient(circle, rgb(0 96 199 / .55), transparent 70%); }
.about-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.browser-frame { border-radius: 22px; overflow: hidden; background: #0a1228; border: 1px solid rgb(255 255 255 / .15); box-shadow: 0 40px 80px -20px rgb(0 0 0 / .7), 0 0 0 10px rgb(255 255 255 / .04); rotate: -2deg; transition: rotate .5s; }
.browser-frame:hover { rotate: 0deg; }
.browser-bar { display: flex; gap: 7px; padding: 14px 16px; background: #131d3a; }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a4a78; }
.browser-bar i:first-child { background: #ff6159; } .browser-bar i:nth-child(2) { background: #ffbd2e; } .browser-bar i:nth-child(3) { background: #28ca41; }
.browser-frame img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.about-visual { margin: 0; }

.about-title { margin-top: 18px; font-size: clamp(2.4rem, 5vw, 4.2rem); color: #fff; text-shadow: 0 5px 0 var(--blue); }
.about-title small { display: block; font: 700 1.1rem/1.4 var(--font-body); text-shadow: none; color: #bcd7ff; margin: 8px 0; letter-spacing: .02em; }
.about-copy > p { margin-top: 26px; color: #c8d8f2; font-size: 1.08rem; max-width: 52ch; }
.link-arrow { display: inline-flex; gap: 8px; margin-top: 28px; font-weight: 800; color: var(--orange-2); text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 3px; transition: gap .25s; }
.link-arrow:hover { gap: 14px; }

/* ---------- Apply ---------- */
.apply { background: #fff; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; left: 16%; right: 16%; top: 38px; height: 0; border-top: 3px dashed rgb(0 96 199 / .3); }
.step { position: relative; text-align: center; padding: 0 12px; }
.step-no {
  position: relative; display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 22px;
  font: 400 2rem/1 var(--font-display); color: #fff; background: var(--blue);
  clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%);
  transition: background .3s, scale .3s;
}
.step:hover .step-no { background: var(--orange); scale: 1.12; }
.step h3 { font-size: 1.25rem; font-weight: 800; color: var(--navy); margin-bottom: 10px; }
.step p { color: var(--muted); }
.step a { color: var(--blue); font-weight: 700; }

/* ---------- Contact ---------- */
.contact { padding-top: 40px; background: #fff; }
.contact-wrap {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
  padding: clamp(32px, 5vw, 64px); border-radius: 40px; color: #fff;
  background: radial-gradient(600px 400px at 100% 0, rgb(74 144 226 / .6), transparent 70%), linear-gradient(135deg, var(--blue-deep), var(--blue) 70%);
  box-shadow: var(--shadow-lg);
}
.contact-wrap::after { content: ""; position: absolute; right: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; border: 54px solid rgb(255 255 255 / .06); pointer-events: none; }
.contact-main h2 { margin-top: 16px; font-size: clamp(2rem, 4.6vw, 3.6rem); text-shadow: 0 4px 0 var(--navy-2); }
.contact-main h2 span { color: #ffd2ae; }
.contact-main > p { margin-top: 20px; color: #dbe9ff; font-size: 1.1rem; }
.mail-big { display: inline-block; margin-top: 4px; font-weight: 800; color: #fff; font-size: 1.15rem; text-underline-offset: 4px; }
.contact-list { position: relative; z-index: 1; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 16px; align-items: center; padding: 16px 20px; border-radius: 20px; background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .18); backdrop-filter: blur(8px); transition: background .25s, translate .25s; }
.contact-list li:hover { background: rgb(255 255 255 / .18); translate: -6px 0; }
.c-icon { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--orange); }
.c-icon svg { width: 22px; height: 22px; }
.contact-list small { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #a9cbff; }
.contact-list a { color: #fff; font-weight: 700; text-decoration: none; word-break: break-word; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue); color: #dbe9ff; padding: 28px 0; font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-inner .brand img { height: 38px; }
.to-top { color: #fff; font-weight: 700; text-decoration: none; padding: 8px 16px; border-radius: 99px; background: rgb(255 255 255 / .14); transition: background .2s; }
.to-top:hover { background: var(--orange); }

/* ---------- Scroll reveal (scroll-driven animations, progressive enhancement) ---------- */
@keyframes reveal-up { from { opacity: 0; translate: 0 40px; } to { opacity: 1; translate: 0 0; } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: reveal-up linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid, .about-grid, .contact-wrap { grid-template-columns: 1fr; }
  .hero-grid { gap: 20px; }
  .hero-visual { max-width: 460px; margin-inline: auto; }
  .job-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { gap: 48px; }
  .about-visual { max-width: 520px; margin-inline: auto; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute; left: 0; right: 0; top: var(--header-h); flex-direction: column; align-items: stretch; gap: 4px;
    padding: 14px 20px 22px; background: var(--blue); border-top: 1px solid rgb(255 255 255 / .12);
    box-shadow: 0 24px 40px -16px rgb(0 20 70 / .5);
    visibility: hidden; opacity: 0; translate: 0 -10px; transition: opacity .25s, translate .25s, visibility .25s;
  }
  .nav-menu.is-open { visibility: visible; opacity: 1; translate: 0 0; }
  .nav-menu a:not(.btn) { padding: 14px 16px; border-radius: 14px; }
  .nav-menu .btn { margin: 8px 0 0; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .steps::before { display: none; }
  .section { padding: 80px 0; }
  .positions { padding-top: 110px; }
  .dialog-body { grid-template-columns: 1fr; gap: 24px; }
  .dialog-foot p { margin-left: 0; width: 100%; }
}
@media (max-width: 620px) {
  .job-grid { grid-template-columns: 1fr; }
  .hero { padding: 36px 0 90px; }
  .megaphone { right: -.2em; top: -.75em; width: .6em; height: .6em; }
  .role-chips a { min-height: 52px; padding: 6px 16px; font-size: .72rem; }
  .btn { width: 100%; }
  .hero-cta .btn { flex: 1 1 100%; }
  .dialog-head, .dialog-body, .dialog-foot { padding-inline: 20px; }
  .dialog-foot .btn { flex: 1 1 100%; }
  .fb-1 { left: -4px; } .fb-2 { right: -4px; }
  .contact-wrap { border-radius: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mascot-card, .float-badge, .megaphone { animation: none; }
  .marquee-track { animation: none; overflow-x: auto; }
  dialog, dialog::backdrop { transition: none; }
}

/* =========================================================
   Additions for the CMS-driven site (same tokens as above)
   ========================================================= */

.hero-title { text-transform: uppercase; }
.dialog-body .detail-full { grid-column: 1 / -1; color: var(--muted); }
.empty-note { text-align: center; color: var(--muted); font-size: 1.05rem; }
.empty-note a { color: var(--blue); font-weight: 700; }
.site-header .btn { width: auto; }

/* ---------- Event guest book ---------- */
.hero-event { padding: 48px 0 140px; }
.event-title {
  margin-top: 18px; max-width: 16ch;
  font-size: clamp(2.3rem, 7vw, 4.6rem); color: #fff;
  text-shadow: 0 5px 0 var(--blue-deep), 0 14px 30px rgb(0 20 70 / .35);
}
.event-body { background: var(--cream); padding-bottom: 90px; }
.event-container { max-width: 720px; }

.guest-card {
  position: relative; z-index: 2; margin-top: -96px;
  display: grid; gap: 22px;
  padding: clamp(22px, 5vw, 40px); border-radius: 28px;
  background: #fff; border: 1px solid rgb(0 96 199 / .1); box-shadow: var(--shadow-lg);
}
.guest-card:focus { outline: none; }

.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.field > label, .field > legend { display: block; padding: 0; margin-bottom: 8px; font-weight: 800; color: var(--navy); }
.hint { margin: -2px 0 8px; color: var(--muted); font-size: .88rem; }
.field input:not([type="radio"]) {
  width: 100%; min-height: 54px; padding: 12px 18px;
  border: 2px solid rgb(0 96 199 / .18); border-radius: 16px; background: var(--cream);
  font: 500 1.05rem/1.4 var(--font-body); color: var(--ink);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field input:not([type="radio"]):focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgb(0 96 199 / .15); }
.has-error input:not([type="radio"]) { border-color: #c2371b; background: #fff6f3; }
.error { margin-top: 8px; color: #b42318; font-size: .92rem; font-weight: 700; }
.positions-field .error { margin: 0 0 10px; }

.form-alert { padding: 14px 18px; border-radius: 16px; background: #fdeadc; color: #8a3d0f; font-weight: 700; border-left: 5px solid var(--orange); }

.position-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.position {
  position: relative; display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 18px; cursor: pointer;
  background: #fff; border: 2px solid rgb(0 96 199 / .14);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.position:hover { border-color: rgb(0 96 199 / .45); transform: translateY(-2px); }
.position input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.position-icon {
  flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--sky); color: var(--blue); transition: background .2s, color .2s;
}
.position-icon svg { width: 24px; height: 24px; }
.position-text { display: grid; line-height: 1.25; }
.position-title { font-weight: 800; color: var(--navy); }
.position-team { font-size: .82rem; color: var(--muted); font-weight: 600; }
.position:has(input:checked) { border-color: var(--blue); box-shadow: 0 10px 22px -10px rgb(0 96 199 / .6); }
.position:has(input:checked) .position-icon { background: linear-gradient(145deg, var(--blue-2), var(--blue-deep)); color: #fff; }
.position:has(input:focus-visible) { outline: 3px solid var(--orange-2); outline-offset: 3px; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btn-block { width: 100%; padding-block: 18px; font-size: 1.08rem; }
.fineprint { margin-top: -8px; text-align: center; color: var(--muted); font-size: .86rem; }

.thanks { justify-items: start; }
.thanks-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #dcf6ea; color: var(--green); }
.thanks h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); color: var(--blue); }
.thanks p { color: var(--muted); font-size: 1.05rem; }
.thanks strong { color: var(--navy); }
.thanks .hero-cta { margin-top: 4px; }

@media (max-width: 620px) {
  .position-options { grid-template-columns: 1fr; }
  .hero-event { padding: 32px 0 120px; }
  .site-header .btn { padding: 9px 16px; font-size: .85rem; }
}

/* ---------- Mobile fixes ---------- */
/* body's overflow-x is passed to the viewport and ignored by iOS Safari; clip inside main instead
   so the tilted, extra-wide marquee never makes the page scroll sideways. */
main { overflow-x: clip; }
[hidden] { display: none !important; }

@media (max-width: 620px) {
  .contact-wrap { padding: 28px 20px; gap: 32px; }
  .contact-list li { gap: 12px; padding: 14px; }
  .c-icon { width: 40px; height: 40px; border-radius: 12px; }
  .contact-list a { font-size: .95rem; word-break: normal; overflow-wrap: anywhere; }
  .contact-list li > div { min-width: 0; }
  .contact-main h2 { font-size: clamp(1.8rem, 9vw, 2.4rem); }
  .section-head h2 { font-size: clamp(2rem, 11vw, 2.8rem); }
  .job-card { padding: 22px; }
  .job-card h3 { font-size: 1.4rem; }
  .role-chips { gap: 8px; }
  .footer-inner { justify-content: center; text-align: center; }
  .dialog-head h2 { font-size: 1.6rem; }
}
