/* ==========================================================================
   Novelty Service — base, layout and shared components
   ========================================================================== */

/* ---- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr-h) + 1rem); }
body { margin: 0; background: var(--c-ink); color: var(--c-white); font-family: var(--f-body); font-size: var(--t-body); line-height: 1.65; font-feature-settings: "cv11", "ss03"; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, picture, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }
.sec--light :focus-visible, .sec--paper :focus-visible { outline-color: var(--c-teal-ink); }
::selection { background: var(--c-teal); color: #fff; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---- Typography ----------------------------------------------------------- */
.d { font-family: var(--f-display); font-weight: 500; line-height: 1.06; letter-spacing: -0.028em; text-wrap: balance; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 10 4 4; }
.d--hero { font-size: var(--t-hero); line-height: 1.02; letter-spacing: -0.035em; }
.d--xxl { font-size: var(--t-xxl); line-height: 1.03; letter-spacing: -0.033em; }
.d--xl { font-size: var(--t-xl); }
.d--lg { font-size: var(--t-lg); line-height: 1.12; }
.d--md { font-size: var(--t-md); line-height: 1.2; letter-spacing: -0.015em; }
.d em { font-style: normal; font-weight: 400; color: var(--c-accent); }
.sec--light .d em, .sec--paper .d em { color: var(--c-teal); }
.lead { font-size: var(--t-lead); line-height: 1.55; font-weight: 400; max-width: 46ch; text-wrap: pretty; }
.body { max-width: 62ch; text-wrap: pretty; }
.body + .body { margin-top: 1.1em; }
.muted { color: var(--c-silver); }
.sec--light .muted, .sec--paper .muted { color: #47606d; }
.mono { font-family: var(--f-mono); font-size: var(--t-mono); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; }
.num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }

/* Section label: number — hairline — name */
.label { display: flex; align-items: center; gap: 0.9rem; font-family: var(--f-mono); font-size: var(--t-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-silver); }
.label::before { content: attr(data-no); color: var(--c-accent); }
.label::after { content: ""; order: -1; display: none; }
.label i { display: block; width: clamp(1.75rem, 4vw, 3.5rem); height: 1px; background: currentColor; opacity: 0.6; }
.sec--light .label, .sec--paper .label { color: #47606d; }
.sec--light .label::before, .sec--paper .label::before { color: var(--c-teal-ink); }

/* ---- Layout --------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sec { position: relative; padding-block: var(--sec); }
/* Section surfaces: never flat. Each carries a soft directional wash so text blocks sit in light, like the footage. */
.sec--ink { color: var(--c-white); background: radial-gradient(90% 70% at 100% 0%, rgba(8, 126, 145, 0.2) 0%, rgba(8, 126, 145, 0) 62%), radial-gradient(70% 60% at 0% 100%, rgba(18, 74, 104, 0.34) 0%, rgba(18, 74, 104, 0) 65%), linear-gradient(180deg, #061824 0%, #082030 100%); }
.sec--deep { color: var(--c-white); background: radial-gradient(85% 75% at 0% 0%, rgba(18, 74, 104, 0.62) 0%, rgba(18, 74, 104, 0) 64%), radial-gradient(60% 55% at 100% 100%, rgba(8, 126, 145, 0.2) 0%, rgba(8, 126, 145, 0) 68%), linear-gradient(180deg, #0b2a3c 0%, #061824 100%); }
.sec--light { color: var(--c-ink); background: radial-gradient(80% 70% at 100% 0%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 60%), radial-gradient(70% 60% at 0% 100%, rgba(8, 126, 145, 0.1) 0%, rgba(8, 126, 145, 0) 66%), linear-gradient(180deg, #edf3f5 0%, #dde8ec 100%); }
.sec--paper { color: var(--c-ink); background: radial-gradient(75% 65% at 0% 0%, #ffffff 0%, rgba(255, 255, 255, 0) 62%), radial-gradient(70% 60% at 100% 100%, rgba(18, 74, 104, 0.09) 0%, rgba(18, 74, 104, 0) 66%), linear-gradient(180deg, #f6f9fa 0%, #e8f0f2 100%); }
.sec--flush { padding-block: 0; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, 2vw, 2.5rem); }
.head { display: grid; gap: clamp(1.25rem, 2.2vw, 2.25rem); margin-bottom: clamp(2.5rem, 5vw, 5.5rem); }
.head .lead { margin-top: 0.25rem; }
.head--split { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, 2vw, 2.5rem); align-items: end; }
.head--split > .label { grid-column: 1 / -1; }
.head--split > .d { grid-column: 1 / span 8; }
.head--split > .lead, .head--split > .head__aside { grid-column: 9 / -1; justify-self: end; }
@media (max-width: 1020px) {
  .head--split > .d, .head--split > .lead, .head--split > .head__aside { grid-column: 1 / -1; justify-self: start; }
}
/* fine technical grid lines behind dark sections */
.gridlines { position: absolute; inset: 0; pointer-events: none; z-index: 0; display: grid; grid-template-columns: repeat(4, 1fr); max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.gridlines i { border-left: 1px solid var(--line-dark); opacity: 0.55; }
.gridlines i:last-child { border-right: 1px solid var(--line-dark); }
.sec--light .gridlines i, .sec--paper .gridlines i { border-color: var(--line-light); }
.sec > .wrap { position: relative; z-index: 1; }
@media (max-width: 760px) { .gridlines { grid-template-columns: repeat(2, 1fr); } .gridlines i:nth-child(n+3) { display: none; } .gridlines i:nth-child(2) { border-right: 1px solid var(--line-dark); } }

/* ---- Buttons & links ------------------------------------------------------ */
.btn { --bg: var(--c-white); --fg: var(--c-ink); position: relative; display: inline-flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 3.5rem; padding: 0.95rem 1.4rem 0.95rem 1.6rem; background: var(--bg); color: var(--fg); font-family: var(--f-mono); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.2; isolation: isolate; overflow: hidden; transition: color var(--d-fast) ease; will-change: transform; }
.btn::before { content: ""; position: absolute; inset: 0; background: var(--c-brand-cyan); transform: translateY(101%); transition: transform 0.5s var(--ease-out); z-index: -1; }
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn:hover, .btn:focus-visible { color: var(--c-ink); }
.btn .arr { flex: none; }
.btn--ghost { --bg: transparent; --fg: var(--c-white); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45); }
.btn--dark { --bg: var(--c-ink); --fg: var(--c-white); }
.btn--line { --bg: transparent; --fg: var(--c-ink); box-shadow: inset 0 0 0 1px rgba(6, 24, 36, 0.4); }
.btn--sm { min-height: 2.75rem; padding: 0.6rem 1rem 0.6rem 1.15rem; gap: 0.9rem; font-size: 0.7rem; }
.btns { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.arr { display: inline-block; width: 1.15rem; height: 0.7rem; overflow: hidden; position: relative; }
.arr::before, .arr::after { content: ""; position: absolute; inset: 0; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 11'%3E%3Cpath d='M12 0l-1 1 3.8 3.8H0v1.4h14.8L11 10l1 1 5.5-5.5z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 11'%3E%3Cpath d='M12 0l-1 1 3.8 3.8H0v1.4h14.8L11 10l1 1 5.5-5.5z'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform 0.5s var(--ease-out); }
.arr::after { transform: translateX(-140%); }
a:hover > .arr::before, button:hover > .arr::before, a:focus-visible > .arr::before, .hov:hover .arr::before { transform: translateX(140%); }
a:hover > .arr::after, button:hover > .arr::after, a:focus-visible > .arr::after, .hov:hover .arr::after { transform: none; }
.arr--down { transform: rotate(90deg); }
.link { display: inline-flex; align-items: center; gap: 0.75rem; font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; padding-block: 0.6rem; border-bottom: 1px solid currentColor; transition: color var(--d-fast) ease, gap 0.4s var(--ease-out); }
.link:hover { color: var(--c-accent); gap: 1.1rem; }
.sec--light .link:hover, .sec--paper .link:hover { color: var(--c-teal-ink); }
.textlink { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.textlink:hover { color: var(--c-accent); }
.sec--light .textlink:hover, .sec--paper .textlink:hover { color: var(--c-teal-ink); }
.tag { display: inline-flex; align-items: center; height: 1.75rem; padding-inline: 0.65rem; border: 1px solid currentColor; font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; }
.tag--fill { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-ink); }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* ---- Intro screen (first visit of a session) ------------------------------- */
.pre { display: none; }
.pre-on .pre { position: fixed; inset: 0; z-index: 200; display: block; overflow: hidden; color: #fff; transition: visibility 0s linear 1.6s; }
.pre-on.pre-done .pre { visibility: hidden; pointer-events: none; }
.pre-on:not(.pre-done) { overflow: hidden; }
/* Five shutters carry the background and lift one after another on exit. */
.pre__cols { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.pre__cols i { width: calc(100% + 1px); background: linear-gradient(180deg, #092437 0%, #061824 100%); transition: transform 0.95s var(--ease-io); transition-delay: calc(var(--i) * 70ms + 0.18s); will-change: transform; }
.pre-done .pre__cols i { transform: translate3d(0, -101%, 0); }
.pre__fx { position: absolute; inset: 0; transition: opacity 0.32s ease; }
.pre-done .pre__fx { opacity: 0; }
.pre__fx::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 100% 0%, rgba(8, 126, 145, 0.3) 0%, rgba(8, 126, 145, 0) 60%), radial-gradient(60% 60% at 0% 100%, rgba(18, 74, 104, 0.5) 0%, rgba(18, 74, 104, 0) 62%); }
.pre__grid { position: absolute; inset: -72px; background-image: linear-gradient(rgba(158, 175, 184, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(158, 175, 184, 0.07) 1px, transparent 1px); background-size: 72px 72px; -webkit-mask-image: radial-gradient(60% 60% at 50% 50%, #000 0%, transparent 100%); mask-image: radial-gradient(60% 60% at 50% 50%, #000 0%, transparent 100%); animation: preGrid 6s linear infinite, preFade 1s ease both; }
/* Radar: range rings, crosshair and a rotating sweep behind the logo. */
.pre__radar { position: absolute; left: 50%; top: 50%; width: min(78vmin, 620px); aspect-ratio: 1; margin: calc(min(78vmin, 620px) / -2) 0 0 calc(min(78vmin, 620px) / -2); border-radius: 50%; overflow: hidden; border: 1px solid rgba(62, 195, 226, 0.22); animation: preRadar 1.2s var(--ease-out) both; }
.pre__radar::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(62, 195, 226, 0.14), rgba(62, 195, 226, 0.14)) 50% 0 / 1px 100% no-repeat, linear-gradient(rgba(62, 195, 226, 0.14), rgba(62, 195, 226, 0.14)) 0 50% / 100% 1px no-repeat, repeating-radial-gradient(circle at 50% 50%, transparent 0 calc(16.66% - 1px), rgba(62, 195, 226, 0.13) calc(16.66% - 1px) 16.66%); }
.pre__radar i { position: absolute; inset: 0; background: conic-gradient(from 0deg, rgba(62, 195, 226, 0) 0deg 285deg, rgba(62, 195, 226, 0.05) 310deg, rgba(62, 195, 226, 0.34) 360deg); animation: preSweep 2.6s linear infinite; }
.pre__radar b { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--c-accent); box-shadow: 0 0 10px 2px rgba(62, 195, 226, 0.7); opacity: 0; animation: preBlip 2.6s linear infinite; }
/* Bearing ticks outside the radar, a live bearing readout, and fine scanlines over everything. */
.pre__ticks { position: absolute; left: 50%; top: 50%; width: calc(min(78vmin, 620px) + 26px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: repeating-conic-gradient(from -0.4deg, rgba(62, 195, 226, 0.55) 0deg 0.8deg, transparent 0.8deg 10deg); -webkit-mask-image: radial-gradient(closest-side, transparent calc(100% - 9px), #000 calc(100% - 8px)); mask-image: radial-gradient(closest-side, transparent calc(100% - 9px), #000 calc(100% - 8px)); animation: preTicks 1.4s var(--ease-out) both; }
.pre__brg { position: absolute; left: 50%; top: calc(50% + min(78vmin, 620px) / 4.2); transform: translateX(-50%); font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.18em; color: var(--c-accent); font-variant-numeric: tabular-nums; white-space: nowrap; animation: preFade 0.8s ease 0.6s both; }
.pre__fx::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 3px); pointer-events: none; }
.pre.is-full .pre__n { color: var(--c-accent); text-shadow: 0 0 32px rgba(62, 195, 226, 0.55); transition: color 0.2s ease, text-shadow 0.2s ease; }
.pre.is-full .pre__logo { filter: drop-shadow(0 0 18px rgba(62, 195, 226, 0.75)); transition: filter 0.25s ease; }
.pre.is-full .pre__radar { border-color: rgba(62, 195, 226, 0.7); transition: border-color 0.2s ease; }
.pre__radar b:nth-of-type(1) { left: 71%; top: 27%; animation-delay: 0.33s; }
.pre__radar b:nth-of-type(2) { left: 24%; top: 66%; animation-delay: 1.72s; }
.pre__radar b:nth-of-type(3) { left: 63%; top: 78%; animation-delay: 1.1s; }
.pre__c { position: absolute; width: 22px; height: 22px; border: 0 solid rgba(62, 195, 226, 0.75); animation: preFade 0.6s ease 0.3s both; }
.pre__c--tl { left: var(--gutter); top: var(--gutter); border-width: 1px 0 0 1px; }
.pre__c--tr { right: var(--gutter); top: var(--gutter); border-width: 1px 1px 0 0; }
.pre__c--bl { left: var(--gutter); bottom: var(--gutter); border-width: 0 0 1px 1px; }
.pre__c--br { right: var(--gutter); bottom: var(--gutter); border-width: 0 1px 1px 0; }
.pre__mark { position: absolute; left: 50%; top: 50%; width: clamp(160px, 44vw, 260px); transform: translate(-50%, -50%); }
.pre__logo { display: block; width: 100%; height: auto; animation: preLogo 1.15s var(--ease-io) 0.25s both; }
.pre__mark::after { content: ""; position: absolute; top: -18%; bottom: -18%; left: 0; width: 1px; background: var(--c-accent); box-shadow: 0 0 14px 2px rgba(62, 195, 226, 0.85); animation: preScan 1.15s var(--ease-io) 0.25s both; }
.pre__hud { position: absolute; left: calc(var(--gutter) + 1.25rem); right: calc(var(--gutter) + 1.25rem); display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-silver); font-variant-numeric: tabular-nums; animation: preFade 0.8s ease 0.35s both; }
.pre__hud--top { top: calc(var(--gutter) + 1.1rem); align-items: flex-start; }
.pre__hud--bot { bottom: calc(var(--gutter) + 2.6rem); }
.pre__live { display: inline-flex; align-items: center; gap: 0.6rem; }
.pre__live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c-accent); box-shadow: 0 0 8px rgba(62, 195, 226, 0.9); animation: preBlink 1s steps(2, jump-none) infinite; }
.pre__n { font-family: var(--f-display); font-weight: 500; font-size: clamp(3.6rem, 2rem + 9vw, 8.5rem); line-height: 0.8; letter-spacing: -0.045em; color: #fff; }
.pre__n sup { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.14em; color: var(--c-accent); vertical-align: top; margin-left: 0.4em; position: relative; top: 0.5em; }
.pre__bar { position: absolute; left: calc(var(--gutter) + 1.25rem); right: calc(var(--gutter) + 1.25rem); bottom: calc(var(--gutter) + 1.1rem); height: 3px; background: rgba(255, 255, 255, 0.12); overflow: hidden; -webkit-mask-image: repeating-linear-gradient(90deg, #000 0 6px, transparent 6px 9px); mask-image: repeating-linear-gradient(90deg, #000 0 6px, transparent 6px 9px); animation: preFade 0.8s ease 0.35s both; }
.pre__bar i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--c-teal), var(--c-accent)); transform: scaleX(0); transform-origin: left; }
@keyframes preLogo { from { clip-path: inset(-20% 100% -20% 0); } to { clip-path: inset(-20% 0 -20% 0); } }
@keyframes preScan { 0% { left: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@keyframes preFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes preGrid { to { transform: translate3d(72px, 72px, 0); } }
@keyframes preRadar { from { opacity: 0; transform: scale(0.82); } to { opacity: 1; transform: none; } }
@keyframes preTicks { from { opacity: 0; transform: translate(-50%, -50%) rotate(-40deg) scale(0.9); } to { opacity: 1; transform: translate(-50%, -50%); } }
@keyframes preSweep { to { transform: rotate(360deg); } }
@keyframes preBlip { 0% { opacity: 0; transform: scale(0.4); } 4% { opacity: 1; transform: scale(1.5); } 45% { opacity: 0; transform: scale(1); } 100% { opacity: 0; } }
@keyframes preBlink { 0% { opacity: 1; } 100% { opacity: 0.25; } }
@media (max-width: 560px) { .pre__hud--top [data-pre-clock] { display: none; } .pre__hud { left: calc(var(--gutter) + 0.9rem); right: calc(var(--gutter) + 0.9rem); } .pre__bar { left: calc(var(--gutter) + 0.9rem); right: calc(var(--gutter) + 0.9rem); } }

/* ---- Page transition cover ---------------------------------------------------- */
.pt { display: none; }
/* Page transition: the same five shutters as the intro. They rise to cover on leaving and lift away on arrival. */
.motion .pt { position: fixed; inset: 0; z-index: 190; display: block; overflow: hidden; pointer-events: none; visibility: hidden; color: #fff; }
.pt__cols { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.pt__cols i { position: relative; width: calc(100% + 1px); background: linear-gradient(180deg, #092437 0%, #061824 100%); transform: translate3d(0, 102%, 0); will-change: transform; }
.pt__cols i::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--c-accent); box-shadow: 0 0 16px 1px rgba(62, 195, 226, 0.9); }
.pt__fx { position: absolute; inset: 0; opacity: 0; }
.pt__fx::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 100% 0%, rgba(8, 126, 145, 0.3) 0%, rgba(8, 126, 145, 0) 60%), radial-gradient(60% 60% at 0% 100%, rgba(18, 74, 104, 0.5) 0%, rgba(18, 74, 104, 0) 62%); }
.pt__mark { position: absolute; left: 50%; top: 50%; width: clamp(130px, 32vw, 200px); transform: translate(-50%, -50%); }
.pt__mark img { display: block; width: 100%; height: auto; }
.pt__mark::after { content: ""; position: absolute; top: -18%; bottom: -18%; left: 0; width: 1px; background: var(--c-accent); box-shadow: 0 0 14px 2px rgba(62, 195, 226, 0.85); opacity: 0; }
.pt__hud { position: absolute; left: calc(var(--gutter) + 1.25rem); right: calc(var(--gutter) + 1.25rem); bottom: calc(var(--gutter) + 2.1rem); display: flex; justify-content: space-between; gap: 1rem; font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-silver); }
.pt__hud span:last-child { color: var(--c-accent); }
.pt__bar { position: absolute; left: calc(var(--gutter) + 1.25rem); right: calc(var(--gutter) + 1.25rem); bottom: calc(var(--gutter) + 1.1rem); height: 3px; background: rgba(255, 255, 255, 0.12); overflow: hidden; -webkit-mask-image: repeating-linear-gradient(90deg, #000 0 6px, transparent 6px 9px); mask-image: repeating-linear-gradient(90deg, #000 0 6px, transparent 6px 9px); }
.pt__bar i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--c-teal), var(--c-accent)); transform: scaleX(0); transform-origin: left; }
.is-leaving .pt { visibility: visible; pointer-events: auto; }
.is-leaving .pt__cols i { transform: none; transition: transform 0.52s var(--ease-io); transition-delay: calc(var(--i) * 50ms); }
.is-leaving .pt__fx { opacity: 1; transition: opacity 0.25s ease 0.34s; }
.is-leaving .pt__mark img { animation: preLogo 0.5s var(--ease-io) 0.34s both; }
.is-leaving .pt__mark::after { animation: preScan 0.5s var(--ease-io) 0.34s both; }
.is-leaving .pt__bar i { transform: scaleX(0.62); transition: transform 0.6s var(--ease-out) 0.3s; }
.pt-enter .pt { visibility: visible; }
.pt-enter .pt__cols i { transform: none; }
.pt-enter .pt__cols i::before { top: auto; bottom: -1px; }
.pt-enter .pt__fx { opacity: 1; }
.pt-enter .pt__bar i { transform: scaleX(0.62); }
.pt-enter.pt-enter-done .pt { visibility: hidden; transition: visibility 0s linear 1.3s; }
.pt-enter.pt-enter-done .pt__cols i { transform: translate3d(0, -102%, 0); transition: transform 0.8s var(--ease-io); transition-delay: calc(var(--i) * 60ms + 0.2s); }
.pt-enter.pt-enter-done .pt__fx { opacity: 0; transition: opacity 0.25s ease 0.12s; }
.pt-enter.pt-enter-done .pt__bar i { transform: scaleX(1); transition: transform 0.22s ease-out; }
@media (max-width: 560px) { .pt__hud, .pt__bar { left: calc(var(--gutter) + 0.9rem); right: calc(var(--gutter) + 0.9rem); } }

/* ---- Skip link ------------------------------------------------------------ */
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 100; padding: 0.75rem 1rem; background: var(--c-white); color: var(--c-ink); font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; transition: top 0.2s ease; }
.skip:focus { top: 1rem; }

/* ---- Header --------------------------------------------------------------- */
.hdr { position: fixed; inset: 0 0 auto 0; z-index: var(--z-hdr); height: var(--hdr-h); display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 3rem); padding-inline: var(--gutter); color: var(--c-white); transition: background-color 0.5s ease, height 0.5s var(--ease-out), transform 0.5s var(--ease-out), box-shadow 0.5s ease; }
.hdr::before { content: ""; position: absolute; inset: 0 0 -3rem 0; background: linear-gradient(180deg, rgba(6, 24, 36, 0.72), rgba(6, 24, 36, 0)); pointer-events: none; z-index: -1; transition: opacity 0.5s ease; }
.hdr.is-solid { background: rgba(6, 24, 36, 0.86); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); box-shadow: 0 1px 0 var(--line-dark); height: calc(var(--hdr-h) - 14px); }
.hdr.is-solid::before { opacity: 0; }
.hdr.is-hidden { transform: translateY(-101%); }
.hdr__logo { flex: none; display: block; margin-right: auto; }
.hdr__logo img { width: clamp(118px, 9.5vw, 156px); height: auto; }
.hdr__nav ul { display: flex; gap: clamp(1rem, 1.9vw, 2.4rem); }
.hdr__nav a { position: relative; display: block; padding-block: 0.6rem; font-size: 0.9rem; font-weight: 450; letter-spacing: 0.01em; white-space: nowrap; opacity: 0.86; transition: opacity var(--d-fast) ease; }
.hdr__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.2rem; height: 1px; background: var(--c-accent); transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease-out); }
.hdr__nav a:hover, .hdr__nav a[aria-current] { opacity: 1; }
.hdr__nav a:hover::after, .hdr__nav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.lang { display: flex; align-items: center; gap: 0.15rem; font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.12em; }
.lang a { display: grid; place-items: center; min-width: 2.1rem; height: 2.1rem; opacity: 0.6; transition: opacity var(--d-fast) ease, color var(--d-fast) ease; }
.lang a:hover { opacity: 1; }
.lang a[aria-current] { opacity: 1; color: var(--c-accent); }
.lang a + a { position: relative; }
.lang a + a::before { content: ""; position: absolute; left: -0.1rem; top: 0.7rem; bottom: 0.7rem; width: 1px; background: currentColor; opacity: 0.35; }
.hdr__burger { display: none; width: 2.75rem; height: 2.75rem; position: relative; margin-right: -0.5rem; }
.hdr__burger span { position: absolute; left: 0.6rem; right: 0.6rem; height: 1.5px; background: currentColor; transition: transform 0.5s var(--ease-out), opacity 0.3s ease; }
.hdr__burger span:nth-child(1) { top: 1.05rem; }
.hdr__burger span:nth-child(2) { top: 1.65rem; }
.hdr__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(0.3rem) rotate(45deg); }
.hdr__burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-0.3rem) rotate(-45deg); }
@media (max-width: 1280px) {
  .hdr__nav, .hdr > .lang, .hdr__cta { display: none; }
  .hdr__burger { display: block; }
}

/* ---- Full-screen menu ----------------------------------------------------- */
.menu { position: fixed; inset: 0; z-index: var(--z-menu); background: radial-gradient(90% 70% at 100% 0%, rgba(8, 126, 145, 0.28) 0%, rgba(8, 126, 145, 0) 62%), linear-gradient(180deg, #082030 0%, #061824 100%); color: var(--c-white); display: grid; grid-template-rows: 1fr auto; padding: calc(var(--hdr-h) + 1.5rem) var(--gutter) 1.75rem; overflow-y: auto; overscroll-behavior: contain; visibility: hidden; clip-path: inset(0 0 100% 0); transition: clip-path 0.75s var(--ease-out), visibility 0s linear 0.75s; }
.menu.is-open { visibility: visible; clip-path: inset(0); transition: clip-path 0.75s var(--ease-out), visibility 0s; }
.menu__list { align-self: center; display: grid; counter-reset: m; }
.menu__list a { display: flex; align-items: baseline; gap: 1rem; padding-block: clamp(0.5rem, 1.6vh, 0.9rem); border-bottom: 1px solid var(--line-dark); font-family: var(--f-display); font-size: clamp(1.5rem, 6vw, 2.25rem); font-weight: 500; line-height: 1.15; letter-spacing: -0.025em; }
.menu__list a::before { counter-increment: m; content: "0" counter(m); font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.12em; color: var(--c-accent); min-width: 1.6rem; }
.menu__list a[aria-current] { color: var(--c-accent); }
.menu__list li { opacity: 0; transform: translateY(1.5rem); transition: opacity 0.5s ease, transform 0.7s var(--ease-out); }
.menu.is-open .menu__list li { opacity: 1; transform: none; transition-delay: calc(0.12s + var(--i) * 45ms); }
.menu__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; }
.menu__foot .lang a { min-width: 2.75rem; height: 2.75rem; font-size: 0.78rem; }
.is-menu-open .hdr { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; z-index: calc(var(--z-menu) + 1); transform: none; }
.is-menu-open .hdr::before { opacity: 0; }
html.is-menu-open { overflow: hidden; }

/* ---- Managed video slot --------------------------------------------------- */
.vid { position: relative; overflow: hidden; background: var(--c-deep); }
.vid picture, .vid video, .vid__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vid video { opacity: 0; transition: opacity 1.1s ease; }
.vid.is-playing video { opacity: 1; }
.vid__toggle { position: absolute; right: 1rem; bottom: 1rem; z-index: 3; width: 2.75rem; height: 2.75rem; display: grid; place-items: center; background: rgba(6, 24, 36, 0.55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0.75; transition: opacity var(--d-fast) ease, background-color var(--d-fast) ease; }
.vid__toggle:hover, .vid__toggle:focus-visible { opacity: 1; background: rgba(6, 24, 36, 0.85); }
.vid__toggle span { width: 0.6rem; height: 0.7rem; border-inline: 0.2rem solid currentColor; }
.vid__toggle[aria-pressed="true"] span { width: 0; height: 0; border: 0.4rem solid transparent; border-left: 0.65rem solid currentColor; border-right: 0; margin-left: 0.15rem; }
.cover { position: absolute; inset: 0; }
.cover picture, .cover img { width: 100%; height: 100%; object-fit: cover; }
.shade { position: absolute; inset: 0; pointer-events: none; }
.shade--full { background: linear-gradient(180deg, rgba(6, 24, 36, 0.5) 0%, rgba(6, 24, 36, 0) 26%, rgba(6, 24, 36, 0.08) 48%, rgba(6, 24, 36, 0.82) 100%), linear-gradient(90deg, rgba(6, 24, 36, 0.36) 0%, rgba(6, 24, 36, 0) 55%); }
.shade--even { background: rgba(6, 24, 36, 0.46); }
.shade--left { background: linear-gradient(90deg, rgba(6, 24, 36, 0.74) 0%, rgba(6, 24, 36, 0.3) 46%, rgba(6, 24, 36, 0) 100%), linear-gradient(0deg, rgba(6, 24, 36, 0.62), rgba(6, 24, 36, 0) 42%); }

/* ---- Motion: reveal system (only when html.motion is set) ------------------ */
.motion [data-reveal] { opacity: 0; transform: translate3d(0, 2rem, 0); transition: opacity 0.9s ease, transform 1.2s var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
.motion [data-reveal].is-in { opacity: 1; transform: none; }
.motion [data-reveal="fade"] { transform: none; }
.motion [data-reveal="line"] { opacity: 1; transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease-out); }
/* The clip is applied to the child so the observed element keeps its full box. */
.motion [data-clip] > * { clip-path: inset(0 0 100% 0); transform: scale(1.12); transition: clip-path 1.5s var(--ease-out), transform 2.1s var(--ease-out); transition-delay: calc(var(--i, 0) * 100ms); }
.motion [data-clip="left"] > * { clip-path: inset(0 100% 0 0); }
.motion [data-clip].is-in > * { clip-path: inset(0); transform: none; }
/* Photographic grade: a soft sea-toned wash and a darker foot so stills sit in the same world as the footage. */
[data-clip] { position: relative; }
[data-clip]:not(.film__frame)::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(6, 24, 36, 0.2) 0%, rgba(6, 24, 36, 0) 30%, rgba(6, 24, 36, 0) 52%, rgba(6, 24, 36, 0.58) 100%), linear-gradient(125deg, rgba(8, 126, 145, 0.2) 0%, rgba(0, 37, 119, 0.14) 100%); box-shadow: inset 0 0 0 1px rgba(6, 24, 36, 0.08); transition: opacity 1.2s ease 0.3s; }
.motion [data-clip]:not(.is-in)::after { opacity: 0; }
[data-clip] .vid__toggle { z-index: 4; }
.cap { position: absolute; left: clamp(0.9rem, 1.6vw, 1.5rem); right: clamp(0.9rem, 1.6vw, 1.5rem); bottom: clamp(0.8rem, 1.4vw, 1.25rem); z-index: 3; display: flex; align-items: center; gap: 0.75rem; color: rgba(255, 255, 255, 0.92); font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; pointer-events: none; }
.cap::before { content: ""; width: 1.75rem; height: 1px; background: var(--c-accent); flex: none; }
.motion [data-split]:not(.is-split) { visibility: hidden; }
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
[data-split] .wi { display: inline-block; }
.motion [data-split] .wi { transform: translate3d(0, 108%, 0); transition: transform 1.15s var(--ease-out); transition-delay: calc(var(--i) * 38ms + var(--delay, 0ms)); }
.motion [data-split].is-in .wi { transform: none; }

/* ---- Page hero (internal pages) ------------------------------------------- */
.phero { position: relative; min-height: min(100svh, 62rem); display: grid; align-items: end; padding: calc(var(--hdr-h) + 4rem) 0 clamp(2.5rem, 5vw, 5rem); color: #fff; background: var(--c-ink); overflow: hidden; isolation: isolate; }
.phero--short { min-height: clamp(26rem, 62svh, 44rem); }
.phero--compact { min-height: 0; padding-top: calc(var(--hdr-h) + clamp(4rem, 9vw, 8rem)); padding-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.phero__media { position: absolute; inset: 0; z-index: -2; }
.phero__media > * { position: absolute; inset: -6% 0; height: 112%; }
.phero__media picture, .phero__media img { width: 100%; height: 100%; object-fit: cover; }
.phero .shade { z-index: -1; }
.phero__in { display: grid; gap: clamp(1.25rem, 2.4vw, 2.25rem); }
.phero__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-top: clamp(1.25rem, 2.4vw, 2rem); margin-top: clamp(0.5rem, 2vw, 2rem); border-top: 1px solid rgba(255, 255, 255, 0.28); }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.6rem; font-family: var(--f-mono); font-size: var(--t-mono); letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72); }
.crumbs li + li::before { content: "/"; margin-right: 0.6rem; opacity: 0.5; }
.crumbs a:hover { color: #fff; }
.crumbs [aria-current] { color: #fff; }

/* ---- Fact / stat rows ----------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); border-top: 1px solid var(--line-dark); }
.sec--light .stats, .sec--paper .stats { border-color: var(--line-light); }
.stat { padding: clamp(1.25rem, 2.2vw, 2rem) clamp(1rem, 2vw, 2rem) clamp(1.25rem, 2.2vw, 2rem) 0; border-bottom: 1px solid var(--line-dark); display: grid; gap: 0.6rem; align-content: start; }
.sec--light .stat, .sec--paper .stat { border-color: var(--line-light); }
.stat__v { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.8rem, 1.2rem + 1.9vw, 3.25rem); line-height: 1.05; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.stat__v small { font-family: var(--f-mono); font-size: 0.28em; letter-spacing: 0.08em; margin-left: 0.35em; font-weight: 500; vertical-align: 0.9em; color: var(--c-accent); text-transform: none; }
.sec--light .stat__v small, .sec--paper .stat__v small { color: var(--c-teal-ink); }
.stat__l { font-family: var(--f-mono); font-size: var(--t-mono); letter-spacing: 0.13em; text-transform: uppercase; color: var(--c-silver); max-width: 22ch; line-height: 1.5; }
.sec--light .stat__l, .sec--paper .stat__l { color: #47606d; }

/* ---- Numbered list rows ---------------------------------------------------- */
.rows { border-top: 1px solid var(--line-dark); counter-reset: r; }
.sec--light .rows, .sec--paper .rows { border-color: var(--line-light); }
.rows > li { display: grid; grid-template-columns: 3.25rem 1fr; gap: 0.5rem 1rem; padding-block: clamp(1rem, 1.8vw, 1.5rem); border-bottom: 1px solid var(--line-dark); align-items: baseline; }
.sec--light .rows > li, .sec--paper .rows > li { border-color: var(--line-light); }
.rows > li::before { counter-increment: r; content: counter(r, decimal-leading-zero); font-family: var(--f-mono); font-size: var(--t-mono); letter-spacing: 0.12em; color: var(--c-accent); }
.sec--light .rows > li::before, .sec--paper .rows > li::before { color: var(--c-teal-ink); }
.rows--plain > li { grid-template-columns: 1fr; }
.rows--plain > li::before { content: none; }
.rows--plain p { grid-column: 1; }
.rows h3 { font-family: var(--f-display); font-weight: 500; font-size: var(--t-md); line-height: 1.25; letter-spacing: -0.015em; }
.rows p { grid-column: 2; color: var(--c-silver); max-width: 58ch; }
.sec--light .rows p, .sec--paper .rows p { color: #3c5462; }

/* ---- CTA band -------------------------------------------------------------- */
.cta { position: relative; padding-block: clamp(6rem, 14vw, 13rem); color: #fff; overflow: hidden; isolation: isolate; background: var(--c-ink); }
.cta__media { position: absolute; inset: -8% 0; z-index: -2; }
.cta__media picture, .cta__media img { width: 100%; height: 100%; object-fit: cover; }
.cta .shade { z-index: -1; background: linear-gradient(180deg, var(--c-ink) 0%, rgba(6, 24, 36, 0.66) 30%, rgba(6, 24, 36, 0.7) 70%, var(--c-ink) 100%); }
.cta__in { display: grid; gap: clamp(1.75rem, 3vw, 3rem); max-width: 68rem; }
.cta__contact { display: flex; flex-wrap: wrap; gap: 0.75rem 2.5rem; padding-top: 1.75rem; border-top: 1px solid rgba(255, 255, 255, 0.28); font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.08em; }

/* ---- Footer ---------------------------------------------------------------- */
.ftr { background: radial-gradient(70% 90% at 0% 0%, rgba(18, 74, 104, 0.4) 0%, rgba(18, 74, 104, 0) 62%), linear-gradient(180deg, #061824 0%, #04111a 100%); color: var(--c-white); padding-top: clamp(3.5rem, 6vw, 6rem); border-top: 1px solid var(--line-dark); }
.ftr__top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 3rem clamp(1.5rem, 3vw, 4rem); padding-bottom: clamp(3rem, 5vw, 5rem); }
.ftr__brand img { width: 172px; height: auto; }
.ftr__brand p { margin-top: 1.5rem; color: var(--c-silver); max-width: 26ch; font-size: var(--t-lead); line-height: 1.4; }
.ftr h2 { font-family: var(--f-mono); font-size: var(--t-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-silver); font-weight: 500; margin-bottom: 1.25rem; }
.ftr__col li + li { margin-top: 0.15rem; }
.ftr__col a { display: inline-block; padding-block: 0.35rem; opacity: 0.88; transition: opacity var(--d-fast) ease, color var(--d-fast) ease; }
.ftr__col a:hover { opacity: 1; color: var(--c-accent); }
.ftr__col address { font-style: normal; color: var(--c-silver); margin-top: 0.6rem; max-width: 24ch; }
.ftr__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 2rem; padding-block: 1.5rem; border-top: 1px solid var(--line-dark); font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-silver); }
.ftr__bar a:hover { color: #fff; }
.ftr__bar ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }
@media (max-width: 1020px) { .ftr__top { grid-template-columns: 1fr 1fr; } .ftr__brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .ftr__top { grid-template-columns: 1fr; gap: 2.25rem; } }

/* ---- Dialog (certificate viewer / lightbox) -------------------------------- */
.dlg { width: min(100vw, 78rem); max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: auto; padding: 0; border: 0; background: transparent; color: #fff; overflow: hidden; }
.dlg::backdrop { background: rgba(3, 14, 22, 0.94); }
.dlg__in { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; padding: 1rem var(--gutter) 1.25rem; gap: 1rem; }
.dlg__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.dlg__title { font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; }
.dlg__x { width: 2.75rem; height: 2.75rem; position: relative; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); flex: none; }
.dlg__x::before, .dlg__x::after { content: ""; position: absolute; left: 0.8rem; right: 0.8rem; top: 50%; height: 1.5px; background: currentColor; transform: rotate(45deg); }
.dlg__x::after { transform: rotate(-45deg); }
.dlg__x:hover { background: #fff; color: var(--c-ink); }
.dlg__stage { min-height: 0; position: relative; overflow: hidden; }
.dlg__stage img { position: absolute; inset: 0; margin: auto; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; background: #fff; }
.dlg__stage.is-photo img { background: none; }
.dlg__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; }
.dlg__nav { display: flex; gap: 0.5rem; }
.dlg__nav button { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); }
.dlg__nav button:hover { background: #fff; color: var(--c-ink); }
.dlg__nav button:first-child .arr { transform: rotate(180deg); }
.dlg__cap { color: var(--c-silver); font-size: var(--t-sm); }

/* ---- Prose (legal) --------------------------------------------------------- */
.prose { max-width: 46rem; }
.prose h2 { font-family: var(--f-display); font-weight: 500; font-size: var(--t-md); margin: 2.75rem 0 0.75rem; }
.prose p { color: #2c4350; }
.prose .mono { color: var(--c-teal-ink); }

/* ---- Notices ---------------------------------------------------------------- */
.note { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.06em; line-height: 1.7; color: var(--c-silver); max-width: 70ch; }
.sec--light .note, .sec--paper .note { color: #47606d; }

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