@font-face {
  font-family: Montserrat;
  src: url('./assets/fonts/montserrat-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Anuphan;
  src: url('./assets/fonts/anuphan-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
}
:root {
  --blue: #0060a8;
  --dark-blue: #084b7e;
  --orange: #ca4b0c;
  --header-height: 90px;
  color: #313030;
  font-family: Montserrat, Arial, Helvetica, sans-serif;
  font-weight: 500;
  line-height: 1.5;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}
* { box-sizing: border-box; }
body { margin: 0; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }
button:disabled { cursor: default; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid #f26924; outline-offset: 5px; }
.skip-link {
  position: fixed;
  z-index: 20;
  top: 8px;
  left: 8px;
  padding: 12px;
  background: white;
  color: var(--blue);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 14px 28px;
  background: var(--blue);
  color: white;
}
.logo { z-index: 1; background: none; border: 0; padding: 0; }
.logo img { width: 70px; height: auto; }
.navigation {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
}
.menu-item {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 12px;
  position: relative;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.menu-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: white;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .3s;
}
.menu-item:hover::after, .menu-item:focus-visible::after { transform: scaleY(1); }
.more-menu summary { list-style: none; cursor: pointer; gap: 8px; }
.more-menu summary::-webkit-details-marker { display: none; }
.castle-toggle { width: 18px; height: 16px; position: relative; border-top: 5px solid white; border-radius: 3px 3px 0 0; }
.castle-toggle::before, .castle-toggle::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: white;
  top: 3px;
  transition: transform .3s;
}
.castle-toggle::after { top: 9px; }
.more-menu[open] summary { background: var(--dark-blue); }
.more-menu[open] .castle-toggle { border-color: transparent; }
.more-menu[open] .castle-toggle::before { top: 3px; transform: rotate(45deg); }
.more-menu[open] .castle-toggle::after { top: 3px; transform: rotate(-45deg); }
.more-links {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: min(880px, 90vw);
  padding: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  background: var(--dark-blue);
}
.more-links a { display: flex; align-items: center; min-height: 44px; font-weight: 700; text-decoration: none; }
.more-links a:hover, .more-links a:focus-visible { text-decoration: underline; text-underline-offset: 5px; }
.header-actions { z-index: 1; display: flex; gap: 6px; }
.header-actions a {
  border: 2px solid white;
  border-radius: 8px;
  padding: 6px 20px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  transition: color .3s, background-color .3s;
}
.header-actions a:hover, .header-actions a:focus-visible { background: white; color: black; }
.promo {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-start;
  min-height: 100vh;
  min-height: 100svh;
  background: #0b1b50;
  color: white;
  padding: 140px 50px 72px;
}
.promo-photo { position: absolute; inset: 0; z-index: -2; }
.promo-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.promo-content { width: 100%; max-width: 600px; text-align: center; }
h1, h2 { margin: 0; font-weight: 900; font-size: clamp(32px, 3.85vw, 72px); line-height: 1.03; text-transform: uppercase; }
.hero h1 { font-size: clamp(32px, 3vw, 54px); }
.hero-name { display: block; font-size: clamp(54px, 5vw, 72px); }
.promo-content .birthday-line { font-size: clamp(28px, 2.2vw, 36px); font-weight: 800; margin: 16px 0 12px; line-height: 1.1; }
.hero-description { font-family: Anuphan, Arial, sans-serif; font-weight: 500; margin: 0; text-shadow: 0 1px 4px #000; }
.hero .site-button { margin-top: 32px; }
.site-button {
  display: inline-block;
  margin-top: 48px;
  border: 0;
  border-radius: 4px;
  padding: 13px 24px;
  background: white;
  color: black;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .3s, transform .3s;
}
.site-button:hover, .site-button:focus-visible { background: #e6e6e6; transform: translateY(-3px); }
.blue-button { background: var(--blue); color: white; }
.blue-button:hover, .blue-button:focus-visible { background: var(--dark-blue); }
.next-section {
  position: absolute;
  bottom: 0;
  left: calc(50% - 25px);
  width: 50px;
  height: 28px;
  border-radius: 6px 6px 0 0;
  background: white;
  transform-origin: bottom;
  transition: transform .3s;
}
.next-section::after { content: ''; position: absolute; width: 16px; height: 10px; left: 17px; top: 6px; border-right: 4px solid var(--blue); border-bottom: 4px solid var(--blue); transform: rotate(45deg); }
.next-section:hover { transform: scale(1.2); }
.combo, .backup, .careers { align-items: center; }
.combo .promo-content { max-width: 550px; }
.promo-content p { font-size: 18px; }
.promo-content .promo-tagline { font-family: Anuphan, Arial, sans-serif; font-size: 24px; line-height: 1.25; font-weight: 600; }
.backup { color: #361b0c; background: #f0ddcf; }
.backup .promo-content { max-width: 570px; }
.careers::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #000b, #0006 65%, #0006); }
.careers .promo-content { text-align: left; }
.careers .job-posting { font-size: 24px; font-weight: 700; }
.careers .site-button { margin-top: 24px; }
#assigned-castle { font-family: Anuphan, Arial, sans-serif; }
.footer-cta-strip { background: #f8f8f8; padding: 90px 24px 24px; }
.footer-tiles { max-width: 1180px; margin: auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; }
.footer-tile { position: relative; isolation: isolate; overflow: hidden; min-height: 210px; display: flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; text-transform: uppercase; padding: 24px; font-weight: 800; transition: filter .3s; }
.footer-tile:hover { filter: brightness(.9); }
.join-tile { background: var(--dark-blue); color: white; }
.join-tile > img { position: absolute; z-index: -1; opacity: .05; filter: invert(1); width: 100%; height: 150%; }
.join-tile > span { display: flex; align-items: center; gap: 12px; font-size: 88px; line-height: 1; }
.join-tile > span > span { font-size: 38px; text-align: left; }
.employee-tile { flex-direction: column; gap: 12px; background: var(--orange); color: white; font-size: 20px; line-height: 1.1; }
.employee-tile img { filter: brightness(0) invert(1); }
.perks-tile { background: #ddd; color: var(--dark-blue); font-size: 32px; line-height: 1.1; }
.perks-tile img { position: absolute; z-index: -1; width: 120%; height: auto; right: -40px; opacity: .1; transform: rotate(-20deg); }
.perks-tile strong { font-size: 48px; font-weight: 900; }
.footer-bottom { max-width: 1180px; margin: auto; padding: 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--blue); font-size: 14px; }
.footer-bottom > a { flex-shrink: 0; }
.footer-info p { margin: 0 0 12px; }
.footer-info nav { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.footer-info a { text-decoration: none; }
.footer-info a:hover { text-decoration: underline; }
.footer-birthday { font-weight: 800; text-transform: uppercase; }
.back-top { display: block; width: fit-content; margin: 32px auto; padding: 12px; color: var(--blue); font-size: 14px; font-weight: 600; text-transform: uppercase; text-underline-offset: 5px; }
dialog { border: 0; border-top: 8px solid #f26924; border-radius: 8px; padding: 64px 36px 36px; width: min(560px, calc(100% - 40px)); max-height: calc(100svh - 40px); overflow-y: auto; background: white; color: var(--dark-blue); text-align: center; }
dialog::backdrop { background: #00162dcc; }
dialog h2 { font-size: clamp(28px, 4vw, 40px); }
.dialog-close { position: absolute; right: 8px; top: 8px; background: none; border: 0; color: var(--blue); width: 44px; height: 44px; font-size: 36px; line-height: 1; }
body:has(dialog[open]) { overflow: hidden; }
.confetti { position: fixed; inset: 0; z-index: 10; pointer-events: none; overflow: hidden; }
.confetti-piece { position: absolute; left: var(--x); top: -24px; width: 10px; height: 18px; background: var(--color); animation: confetti-fall 1.8s var(--delay) ease-in forwards; }
@keyframes confetti-fall { to { transform: translate(var(--drift), 110vh) rotate(720deg); } }
@media (max-width: 1200px) {
  .header-actions a { padding: 8px 10px; font-size: 12px; }
  .menu-item { font-size: 14px; padding-inline: 10px; }
  .promo-content { max-width: 48%; }
  .combo .promo-content, .backup .promo-content { max-width: 45%; }
}
@media (max-width: 1024px) {
  .logo img { width: 49px; }
  .promo { padding-inline: 25px; }
  .join-tile > span { font-size: 64px; }
  .join-tile > span > span { font-size: 28px; }
  .perks-tile { font-size: 24px; }
  .perks-tile strong { font-size: 36px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-info nav { justify-content: center; }
}
@media (max-width: 845px) { .header-actions .perks-link { display: none; } }
@media (max-width: 768px) {
  :root { --header-height: 106px; }
  .site-header { display: grid; grid-template-columns: 1fr auto 1fr; grid-template-rows: 56px 44px; padding: 3px 8px; }
  .logo { grid-column: 2; grid-row: 1; }
  .navigation { position: static; transform: none; grid-column: 1 / -1; grid-row: 2; width: 100%; justify-content: center; }
  .menu-item { font-size: 13px; padding: 12px; }
  .header-actions { grid-column: 3; grid-row: 1; justify-self: end; }
  .header-actions a { width: 108px; min-height: 44px; display: flex; align-items: center; justify-content: center; padding: 5px 6px; font-size: 11px; text-align: center; }
  .more-links { top: 100%; width: 100%; transform: none; left: 0; padding: 16px 24px; grid-template-columns: 1fr 1fr; max-height: calc(100svh - var(--header-height)); overflow-y: auto; font-size: 14px; }
  .promo { padding: calc(var(--header-height) + 24px) 32px 60px; align-items: flex-start; }
  .promo .promo-content { max-width: 100%; }
  h1, h2, .hero h1 { font-size: clamp(32px, 6vw, 46px); }
  .hero-name { font-size: 54px; }
  .promo-content .birthday-line { font-size: 28px; margin: 16px 0 10px; }
  .promo-content p { font-size: 16px; }
  .promo-content .promo-tagline { font-size: 20px; }
  .site-button { width: 100%; margin-top: 28px; font-size: 16px; line-height: 1.2; min-height: 44px; }
  .hero { min-height: max(100svh, 850px); }
  .hero .promo-photo { top: 200px; mask-image: linear-gradient(transparent, black 48px); }
  .hero .promo-photo img { object-position: center top; }
  .combo { min-height: max(100svh, 900px); }
  .backup { min-height: max(100svh, 820px); }
  .careers { min-height: max(100svh, 850px); }
  .careers::before { background: #0009; }
  .careers .promo-content { text-align: center; padding-top: 24px; }
  .careers .job-posting { font-size: 22px; }
  .footer-cta-strip { padding: 48px 24px 24px; }
  .footer-tiles { grid-template-columns: 1fr 1fr; }
  .join-tile { grid-column: 1 / -1; }
  .footer-tile { min-height: 180px; }
  .footer-info a, .back-top { min-height: 44px; display: inline-flex; align-items: center; }
  .back-top { display: flex; }
  .next-section { height: 44px; }
  .next-section::after { top: 12px; }
}
@media (max-width: 480px) {
  .promo { padding-inline: 24px; }
  .footer-tiles { grid-template-columns: 1fr; }
  .footer-tile { grid-column: auto; }
}
@media (min-width: 481px) and (max-width: 768px) and (orientation: portrait) {
  .hero .promo-photo img { object-position: center 40%; }
}
@media (max-width: 768px) and (orientation: landscape) {
  .promo { padding-top: calc(var(--header-height) + 24px); padding-bottom: 52px; min-height: 700px; }
  .promo-photo img { object-position: center bottom; }
  .hero .promo-photo { top: 0; mask-image: none; }
  .promo::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(#0b1b50 0%, #0b1b50dd 48%, transparent 80%); }
  .backup::before { background: linear-gradient(#f0ddcf 0%, #f0ddcfdd 48%, transparent 80%); }
  .careers::before { background: #000a; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
