:root {
  color-scheme: dark;
  --deep: #052d39;
  --deepest: #04232e;
  --sea: #127d84;
  --mint: #80dcd2;
  --gold: #dcbf83;
  --paper: #f6f8f6;
  --muted: #afd0d1;
}

* { box-sizing: border-box; }
html { height: 100%; }
body { margin: 0; min-height: 100%; background: var(--deepest); color: var(--paper); font-family: 'Public Sans', Arial, sans-serif; }
button, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid #fff1aa; outline-offset: 4px; }
button:disabled { cursor: not-allowed; }

.ceremony { position: relative; width: 100%; min-height: 100svh; overflow: hidden; isolation: isolate; background: radial-gradient(ellipse at 68% 43%, #125667 0, transparent 42%), linear-gradient(132deg, #092d3a 0%, #073641 49%, #042a35 100%); }
.ambient { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.ambient::before { content: ''; position: absolute; top: -29vw; right: -25vw; width: 80vw; aspect-ratio: 1; border: 1px solid #a2dad319; border-radius: 50%; box-shadow: 0 0 0 8vw #a2dad305, 0 0 0 16vw #a2dad303; }
.ambient::after { content: ''; position: absolute; inset: 0; opacity: .24; background-image: linear-gradient(#a4eeef10 1px, transparent 1px), linear-gradient(90deg, #a4eeef10 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(90deg, transparent, black 85%); }
.ambient-glow { position: absolute; width: 65vw; aspect-ratio: 1; filter: blur(80px); border-radius: 50%; opacity: .2; }
.ambient-glow--one { background: #13b1ad; top: 50%; right: -26%; }
.ambient-glow--two { background: #04677b; left: -40%; top: -20%; }

.ceremony { --sea-h: clamp(190px, 33vh, 360px); }

.sea { position: absolute; inset: 0; }

/* Travelling swell: each band is a repeating wave drawn two screens wide (2880 units)
   and scrolled left by exactly one screen (1440 units), so the loop is seamless.
   Different wavelengths, speeds and one reversed band give crossing, living crests. */
.wave-lines { position: absolute; left: 0; bottom: 0; width: 100%; height: calc(var(--sea-h) * 1.5); overflow: hidden; }
.wave-lines .wave { stroke: none; will-change: transform; animation: wave-travel linear infinite; }
.wave-lines .wave-1 { animation-duration: 16s; }
.wave-lines .wave-2 { animation-duration: 24s; animation-direction: reverse; }
.wave-lines .wave-3 { animation-duration: 34s; }
@keyframes wave-travel { from { transform: translateX(0); } to { transform: translateX(-1440px); } }

.masthead { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 7; padding: clamp(20px, 3vw, 38px) clamp(28px, 4.2vw, 76px); gap: 22px; }
.brand { display: flex; gap: 15px; align-items: center; }
.brand-mark { width: 42px; height: 42px; border: 1.5px solid var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; gap: 3px; transform: rotate(-14deg); }
.brand-mark span { width: 4px; height: 16px; border-radius: 50%; background: var(--gold); transform: skewY(-35deg); }
.brand-mark span:nth-child(2) { height: 24px; }
.brand-mark span:nth-child(3) { height: 12px; }
.brand-text { display: flex; flex-direction: column; gap: 3px; }
.brand-text strong { font-size: 20px; letter-spacing: .24em; font-weight: 700; }
.brand-text small { font-size: 10px; color: #bed7dc; letter-spacing: .15em; font-weight: 700; }
.masthead-right { display: flex; align-items: center; gap: 14px; color: #b9d5d7; font-size: 10px; font-weight: 700; letter-spacing: .2em; white-space: nowrap; }
.small-line { width: 40px; height: 1px; background: var(--gold); }
.year { margin-left: 14px; color: var(--gold); font-size: 14px; }

.scene { position: absolute; top: clamp(100px, 11.2vh, 136px); bottom: clamp(85px, 10vh, 105px); left: clamp(28px, 5.2vw, 95px); right: clamp(28px, 5.2vw, 95px); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(15px); transition: opacity .75s ease, transform .75s ease, visibility .75s; }
.scene.is-active { opacity: 1; visibility: visible; pointer-events: auto; transform: none; z-index: 2; }
.scene--ready { display: grid; grid-template-columns: minmax(0, 1.13fr) minmax(300px, .87fr); gap: clamp(14px, 4vw, 70px); align-items: center; }
.ready-copy { max-width: 850px; }
.eyebrow { color: var(--gold); font-size: clamp(11px, .84vw, 15px); letter-spacing: .27em; font-weight: 700; display: flex; align-items: center; gap: 15px; }
.eyebrow-line { display: inline-block; width: clamp(28px, 3.2vw, 53px); height: 1px; flex: none; background: var(--gold); }
.ready-copy h1 { font-size: clamp(37px, 4.15vw, 79px); line-height: 1.04; margin: clamp(16px, 2vh, 30px) 0 22px; letter-spacing: -.049em; font-weight: 800; text-wrap: balance; }
.ready-copy h1 em { font-style: normal; color: var(--mint); }
.ready-copy h1 span { color: var(--mint); display: block; }
.date-pill { display: flex; align-items: center; gap: 15px; font-size: 22px; letter-spacing: .19em; color: var(--gold); font-family: 'Source Serif 4', Georgia, serif; }
.date-line { width: 60px; height: 2px; background: var(--gold); }
.date-dash { color: #a5d7d5; }
.ready-intro { font-size: clamp(15px, 1.16vw, 19px); line-height: 1.6; max-width: 630px; color: #c6dfe0; margin: 23px 0 clamp(28px, 4vh, 47px); }
.minister-intro { border-left: 2px solid var(--gold); padding-left: 25px; }
.minister-tag { display: block; color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .17em; margin-bottom: 10px; }
.minister-intro strong { font-size: clamp(14px, .98vw, 17px); font-weight: 500; line-height: 1.5; color: #f1f4f1; }
.minister-name { font-family: 'Source Serif 4', Georgia, serif; font-size: clamp(21px, 1.65vw, 31px); line-height: 1.25; margin-top: 7px; color: #fff; }

.launch-area { position: relative; min-height: 430px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.launch-halo { position: absolute; width: clamp(310px, 31vw, 535px); height: clamp(310px, 31vw, 535px); border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%, -55%); background: radial-gradient(circle, #2fd8c41b 5%, #30e8c512 32%, transparent 65%); }
.orbit { position: absolute; border: 1px solid #1c2a8a1f; inset: 1%; border-radius: 50%; }
.orbit-two { inset: 9%; border-color: #1c2a8a14; }
.launch-button { position: relative; z-index: 2; border: 0; width: clamp(220px, 19vw, 300px); aspect-ratio: 1; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.launch-icon { width: 38px; height: 38px; margin-bottom: 16px; fill: none; stroke: #e9ecff; stroke-width: 2.2px; stroke-linecap: round; }
.launch-button-main { font-size: clamp(18px, 1.5vw, 24px); line-height: 1.18; letter-spacing: .16em; font-weight: 600; }
.launch-button-sub { color: #c7fbef; font-size: clamp(10px, .69vw, 12px); letter-spacing: .14em; margin-top: 21px; font-weight: 700; }
.button-caption { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .14em; color: #bde5dc; font-size: clamp(10px, .7vw, 13px); margin-top: 40px; }
.caption-dot { height: 7px; width: 7px; background: #91e5b6; border-radius: 50%; box-shadow: 0 0 18px #91e5b6; }
.countdown-caption { margin-top: 16px; color: #b0cfd0; text-transform: uppercase; letter-spacing: .1em; font-size: 11px; }
.caption-rule { display: inline-block; vertical-align: middle; width: 23px; height: 1px; margin: 0 9px; background: #a0c4c4; }

.scene--countdown { display: grid; place-items: center; text-align: center; }
.countdown-frame { position: relative; width: min(900px, 100%); display: flex; flex-direction: column; align-items: center; }
.eyebrow--center { justify-content: center; }
.scene--countdown h2 { color: #d6e9e6; letter-spacing: .25em; font-size: clamp(16px, 1.2vw, 23px); font-weight: 500; margin: clamp(18px, 3.5vh, 32px) 0 0; }
.number-orbit { position: absolute; width: min(38vw, 510px); aspect-ratio: 1; border-radius: 50%; top: 47%; left: 50%; transform: translate(-50%, -50%); pointer-events: none; }
/* Same water ripple as the launch button: rings spread from behind the number, one after another. */
.number-orbit span {
  position: absolute; inset: 0; border-radius: 50%; opacity: 0;
  border: 1px solid #1c2a8a4d;
  box-shadow: inset 0 0 0 4px #1c2a8a0d;
  animation: dial-ripple 3.6s cubic-bezier(.22, .61, .36, 1) infinite;
}
.number-orbit span:nth-child(2) { animation-delay: 1.2s; }
.number-orbit span:nth-child(3) { animation-delay: 2.4s; }
@keyframes dial-ripple {
  0%   { transform: scale(.45); opacity: 0; }
  14%  { opacity: 1; }
  100% { transform: scale(1.05); opacity: 0; }
}
.countdown-number { font-family: 'Source Serif 4', Georgia, serif; font-weight: 400; font-size: clamp(180px, 24vw, 380px); letter-spacing: -.07em; min-height: clamp(240px, 31vw, 470px); line-height: 1.1; display: flex; align-items: center; justify-content: center; z-index: 1; font-variant-numeric: lining-nums tabular-nums; color: #fff; text-shadow: 0 0 36px #69d7c65c, 0 0 100px #2cc1b02f; }
.number-enter { animation: number-pulse 1.5s cubic-bezier(.18,.8,.4,1) both; }
.progress-pips { display: flex; align-items: center; gap: 13px; position: relative; z-index: 2; }
.progress-pips span { display: block; width: clamp(20px, 2.8vw, 41px); height: 4px; border-radius: 3px; background: #d1e4dd42; transition: background .25s ease, box-shadow .25s ease; }
.progress-pips span.is-lit { background: var(--gold); box-shadow: 0 0 15px #dfc68b6b; }
.countdown-message { text-align: center; color: #c6dddd; letter-spacing: .025em; font-size: clamp(15px, 1.14vw, 18px); margin: 30px 0 0; }

.scene--revealed { display: grid; place-items: center; }
.reveal-aura { position: absolute; z-index: 0; inset: -20%; opacity: .6; background: radial-gradient(circle at 71% 50%, #3eaeae67, transparent 42%), radial-gradient(circle at 38% 90%, #e3c47c25, transparent 42%); animation: reveal-light 2.8s ease-out both; pointer-events: none; }
.reveal-content { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); align-items: center; gap: clamp(30px, 6vw, 110px); position: relative; width: 100%; z-index: 2; }
.reveal-message { animation: message-arrive 1.3s .7s backwards ease-out; }
.reveal-message h2 { margin: clamp(14px, 2.8vh, 24px) 0 8px; font-family: 'Source Serif 4', Georgia, serif; font-size: clamp(48px, 5.9vw, 99px); letter-spacing: -.04em; line-height: .97; font-weight: 500; }
.reveal-message h2 span { color: var(--gold); }
.reveal-rule { width: 78px; height: 3px; background: var(--gold); margin: 20px 0; }
.reveal-message h3 { font-size: clamp(19px, 1.8vw, 28px); line-height: 1.3; letter-spacing: .055em; max-width: 780px; margin: 0; }
.reveal-period { font-size: 22px; font-family: 'Source Serif 4', Georgia, serif; color: var(--gold); margin-top: 10px; letter-spacing: .15em; }
.reveal-message p { font-size: clamp(14px, .95vw, 17px); line-height: 1.5; max-width: 580px; color: #c6dddd; margin: 18px 0 24px; }
.launched-by { border-left: 2px solid var(--gold); padding-left: 18px; color: var(--gold); letter-spacing: .12em; font-size: 11px; font-weight: 700; line-height: 1.7; }
.launched-by strong { display: block; color: #fff; font-family: 'Source Serif 4', Georgia, serif; letter-spacing: 0; font-size: clamp(18px, 1.4vw, 24px); margin-top: 3px; font-weight: 500; }
.launched-by span { display: block; color: #d0e3e3; letter-spacing: 0; font-size: 13px; font-weight: 400; }
.document-links { display: flex; gap: 13px; margin-top: 28px; align-items: center; flex-wrap: wrap; }
.document-link, .download-link { display: inline-flex; text-decoration: none; min-height: 45px; align-items: center; justify-content: center; padding: 13px 21px; font-size: 12px; font-weight: 700; letter-spacing: .09em; transition: transform .2s, background .2s; }
.document-link { background: var(--gold); color: #123940; gap: 16px; }
.download-link { color: #e2efea; border: 1px solid #9bd1c77d; }
.document-link:hover, .download-link:hover { transform: translateY(-2px); }
.download-link:hover { background: #ffffff14; }
.cover-presentation { position: relative; height: min(65vh, 700px); display: flex; align-items: center; justify-content: center; animation: cover-arrive 1.7s .6s backwards cubic-bezier(.17,.78,.3,1); }
.cover-glow { position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: #81e4dc77; filter: blur(74px); }
.cover-shadow { position: relative; height: 100%; max-width: 100%; aspect-ratio: 612 / 792; border: 1px solid #ffffff7d; border-radius: 3px; overflow: hidden; box-shadow: 0 29px 80px #001820b5, 0 0 0 13px #dcfffc12; transform: rotate(2deg); }
.cover-shadow img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ribbon-stage { position: fixed; inset: 0; z-index: 8; pointer-events: none; }
.ribbon { position: absolute; top: calc(50% - 8px); height: 16px; width: 52vw; background: linear-gradient(#f2da9e, #cda85b 45%, #b8914f 65%, #efdbac); box-shadow: 0 0 0 1px #ffeab799, 0 0 38px #e7c88177; }
.ribbon::after { content: ''; position: absolute; top: 15px; left: 0; width: 100%; height: 4px; background: #ffffff60; }
.ribbon-left { left: 0; animation: ribbon-left 1.6s .4s both cubic-bezier(.16,.7,.25,1); }
.ribbon-right { right: 0; animation: ribbon-right 1.6s .4s both cubic-bezier(.16,.7,.25,1); }
.ribbon-seal { position: absolute; left: 50%; top: 50%; width: 66px; height: 66px; transform: translate(-50%, -50%); background: radial-gradient(circle at 36% 27%, #fff0bf, #c99c48); color: #fff6d0; border: 3px solid #f3dfa5; box-shadow: 0 0 28px #dfbf80af; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 29px; animation: seal-away 1s .45s both ease-out; }
.particles { position: fixed; inset: 0; pointer-events: none; z-index: 1; }
.particles i { position: absolute; left: var(--x); top: -10vh; background: var(--color); width: 6px; height: 16px; border-radius: 1px; opacity: .7; animation: confetti var(--duration) var(--delay) both ease-in; }

.ceremony-footer { position: absolute; bottom: 0; left: 0; right: 0; z-index: 7; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: clamp(18px, 2.7vw, 36px) clamp(28px, 4.2vw, 76px); }
.footer-signature { display: flex; align-items: center; gap: 12px; white-space: nowrap; color: #a5c3c5; font-size: 10px; letter-spacing: .22em; font-weight: 700; }
.footer-ornament { display: block; width: 29px; height: 10px; border-top: 2px solid var(--gold); border-radius: 50%; transform: rotate(-6deg); }
.footer-divider { color: var(--gold); }
.footer-actions { display: flex; gap: 20px; }
.utility-button { border: 0; background: none; color: #bbd4d4; font-size: 11px; letter-spacing: .12em; font-weight: 700; padding: 8px 0; }
.utility-button:hover { color: #fff; }

.settings-panel { position: fixed; z-index: 11; bottom: 70px; right: clamp(20px, 4vw, 70px); background: #f4f8f6; color: #103741; width: min(380px, calc(100vw - 40px)); border: 1px solid #b9ddd6; border-radius: 14px; box-shadow: 0 20px 70px #001b2599; padding: 22px; }
.settings-panel[hidden] { display: none; }
.settings-header { display: flex; justify-content: space-between; align-items: center; font-size: 20px; }
.settings-header button { font-size: 28px; line-height: 1; border: 0; background: transparent; color: #214b50; }
.settings-panel p { color: #466066; font-size: 14px; line-height: 1.55; }
.settings-panel label { display: block; margin: 18px 0 8px; font-size: 14px; font-weight: 700; }
.settings-panel select { width: 100%; color: #153a43; background: #fff; border: 1px solid #9cbfbc; border-radius: 6px; padding: 12px 10px; font-size: 14px; }
.settings-panel .checkline { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.settings-panel input { width: 17px; height: 17px; accent-color: #127d84; }
.settings-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin: 21px 0; }
.settings-buttons button { border: 1px solid #0c6571; color: #0c4c59; padding: 11px; background: #fff; border-radius: 6px; font-size: 12px; font-weight: 700; }
.settings-buttons button:first-child { background: #0a6570; color: #fff; }
.settings-panel small { display: block; font-size: 12px; color: #5b6d70; line-height: 1.55; }

@keyframes breathe { 0%, 100% { transform: scale(1); opacity: .5; } 50% { transform: scale(1.035); opacity: .95; } }
@keyframes gentle-rotate { to { transform: rotate(360deg); } }
@keyframes number-pulse { 0% { opacity: 0; transform: scale(.86); } 22% { opacity: 1; transform: scale(1.05); } 65% { transform: scale(1); } 100% { opacity: 1; transform: scale(1); } }
@keyframes ribbon-left { 0% { transform: translateX(0); } 22% { transform: translateX(-1vw); } 100% { transform: translateX(-110%); opacity: 0; } }
@keyframes ribbon-right { 0% { transform: translateX(0); } 22% { transform: translateX(1vw); } 100% { transform: translateX(110%); opacity: 0; } }
@keyframes seal-away { 0% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.8) rotate(45deg); } }
@keyframes confetti { 0% { transform: translate(0,0) rotate(0); opacity: 0; } 12% { opacity: .8; } 100% { transform: translate(var(--drift), 115vh) rotate(var(--rotate)); opacity: 0; } }
@keyframes cover-arrive { 0% { opacity: 0; transform: translateY(60px) scale(.88) rotate(-6deg); filter: blur(9px); } 100% { opacity: 1; transform: none; filter: none; } }
@keyframes message-arrive { 0% { opacity: 0; transform: translateX(-35px); } 100% { opacity: 1; transform: none; } }
@keyframes reveal-light { 0% { opacity: 0; transform: scale(.7); } 100% { opacity: .6; transform: scale(1); } }

@media (max-height: 760px) and (min-width: 800px) {
  .scene { top: 95px; bottom: 72px; }
  .ready-copy h1 { font-size: clamp(37px, 3.6vw, 59px); margin: 12px 0; }
  .ready-intro { margin: 12px 0 20px; }
  .launch-button { width: clamp(220px, 20vw, 310px); }
  .button-caption { margin-top: 25px; }
  .launch-area { min-height: 340px; }
  .cover-presentation { height: 64vh; }
  .reveal-message h2 { font-size: clamp(49px, 5vw, 75px); }
  .reveal-message p { margin: 10px 0; }
  .document-links { margin-top: 15px; }
}

@media (max-width: 900px) {
  .masthead { padding: 22px 25px; }
  .masthead-right { font-size: 9px; }
  .masthead-right .small-line, .masthead-right .year { display: none; }
  .scene { left: 30px; right: 30px; top: 100px; bottom: 82px; }
  .scene--ready { grid-template-columns: 1fr .72fr; gap: 20px; }
  .ready-copy h1 { font-size: clamp(32px, 5vw, 52px); }
  .launch-button { width: clamp(210px, 27vw, 270px); }
  .launch-halo { width: 300px; height: 300px; }
  .launch-area { min-height: 340px; }
  .launch-icon { width: 35px; height: 35px; margin-bottom: 10px; }
  .launch-button-main { font-size: 23px; }
  .launch-button-sub { font-size: 9px; margin-top: 12px; }
  .reveal-content { gap: 35px; }
  .reveal-message h2 { font-size: clamp(42px, 6vw, 60px); }
}

@media (max-width: 700px) {
  .ceremony { min-height: 100svh; }
  .masthead { padding: 18px 19px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-text strong { font-size: 16px; }
  .brand-text small { font-size: 8px; max-width: 160px; line-height: 1.3; }
  .masthead-right { display: none; }
  .scene { left: 20px; right: 20px; top: 87px; bottom: 73px; overflow-y: auto; overscroll-behavior: contain; }
  .scene--ready { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 30px; }
  .ready-copy h1 { font-size: clamp(30px, 8vw, 52px); margin: 17px 0; }
  .date-pill { font-size: 20px; }
  .ready-intro { margin: 16px 0 20px; font-size: 15px; }
  .minister-intro { padding-left: 17px; }
  .minister-name { font-size: 23px; }
  .launch-area { min-height: 310px; padding: 20px 0 26px; }
  .launch-button { width: 205px; }
  .launch-halo { width: 280px; height: 280px; }
  .button-caption { margin-top: 23px; font-size: 9px; }
  .countdown-caption { font-size: 10px; }
  .scene--countdown { display: grid; }
  .countdown-number { font-size: clamp(150px, 39vw, 240px); min-height: 250px; }
  .number-orbit { width: min(70vw, 360px); }
  .scene--countdown h2 { font-size: 14px; letter-spacing: .13em; }
  .progress-pips { gap: 6px; }
  .progress-pips span { width: 18px; }
  .countdown-message { font-size: 14px; }
  .scene--revealed { display: block; }
  .reveal-content { display: flex; flex-direction: column-reverse; align-items: stretch; gap: 28px; padding: 8px 0 30px; }
  .cover-presentation { height: min(39vh, 330px); min-height: 220px; }
  .reveal-message h2 { font-size: clamp(43px, 9vw, 66px); }
  .reveal-message h3 { font-size: 18px; }
  .reveal-message p { font-size: 14px; }
  .document-links { margin-top: 20px; }
  .document-link, .download-link { min-height: 42px; font-size: 11px; }
  .ceremony-footer { padding: 14px 19px; }
  .footer-signature { display: none; }
  .footer-actions { width: 100%; justify-content: space-between; }
  .utility-button { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
