/* Dive Festival Bern – "Abtauchen"
   Layout: one continuous dive; each page sits at its own depth, glass panels float in the water column. */
:root {
  --ink: #0B3A5E;
  --ink-2: #1D5C94;
  --foam: #F2FBFB;
  --teal: #4EC7B6;
  --teal-hi: #9BE6DA;
  --sun: #F9AE33;
  --deep: #041A2C;
  --text: #FFFFFF;
  --text-2: #CFE6EF;
  --display: 'Unbounded', 'Lexend', system-ui, sans-serif;
  --body: 'Lexend', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --gutter-l: max(24px, env(safe-area-inset-left, 0px));
  --gutter-r: max(24px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #0E5280;
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 80; background: rgba(4,26,44,.6); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-hi); }
a:hover { color: #FFFFFF; }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }

/* Language */
:root[data-lang="fr"] .de { display: none !important; }
:root:not([data-lang="fr"]) .fr { display: none !important; }

/* Atmosphere layers */
#ocean { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.vignette { position: fixed; inset: 0; z-index: 3; pointer-events: none; background: radial-gradient(ellipse 120% 90% at 50% 40%, transparent 55%, rgba(1,8,18,.55) 100%); }
.grain { position: fixed; inset: -50%; z-index: 4; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-3%)} 60%{transform:translate(-2%,-1%)} 80%{transform:translate(3%,3%)} 100%{transform:translate(0,0)} }

.page { position: relative; z-index: 5; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }

/* Curtain for page changes */
.curtain { position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0; background: radial-gradient(ellipse at 50% 120%, #0E5A8A 0%, #052238 60%, #010A14 100%); transition: opacity .55s ease; }
.entering .curtain, .leaving .curtain { opacity: 1; }
.curtain::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 80%, rgba(255,255,255,.25) 0 3px, transparent 4px), radial-gradient(circle at 62% 70%, rgba(255,255,255,.2) 0 5px, transparent 6px), radial-gradient(circle at 48% 90%, rgba(255,255,255,.3) 0 2px, transparent 3px); }

/* Navigation */
.nav { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 14px); left: 50%; transform: translateX(-50%); z-index: 50;
  width: min(1200px, calc(100% - 32px)); display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 8px 8px 20px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(14,70,110,.62), rgba(4,30,52,.62));
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 18px 40px -18px rgba(0,16,32,.6);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: .01em; white-space: nowrap; }
.brand-dot { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFE3A3, var(--sun) 45%, #D8820E 100%); box-shadow: 0 0 18px rgba(249,174,51,.6), inset 0 -2px 4px rgba(0,0,0,.2); }
.nav-links { display: flex; gap: 4px; }
.nav-links a { color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 400; padding: 10px 16px; border-radius: 999px; transition: background .25s, color .25s; }
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.1); }
.nav-links a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.16); box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; padding: 3px; border-radius: 999px; background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.15); }
.lang button { font: 500 13px/1 var(--mono); color: var(--text-2); background: none; border: 0; padding: 10px 11px; border-radius: 999px; cursor: pointer; min-width: 40px; min-height: 36px; }
.lang a { font: 500 13px/1 var(--mono); color: var(--text-2); text-decoration: none; padding: 10px 11px; border-radius: 999px; min-width: 40px; min-height: 36px; display: inline-flex; align-items: center; justify-content: center; }
.lang a:hover { color: #fff; }
.lang a[aria-current="true"] { color: var(--ink); background: linear-gradient(180deg, #fff, #CFEFF0); box-shadow: 0 2px 8px rgba(0,0,0,.25); }

/* Glossy button */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--body); font-weight: 500; font-size: 16px; border-radius: 999px; padding: 15px 26px; cursor: pointer; border: 0; transition: transform .25s ease, box-shadow .25s ease; min-height: 48px; }
.btn::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.65), transparent); transform: skewX(-20deg); transition: left .7s ease; }
.btn:hover::after { left: 130%; }
.btn:hover { transform: translateY(-2px); }
.btn-sun { color: #0B2A44; background: linear-gradient(180deg, #FFD88A 0%, #F9AE33 52%, #E48D14 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.75), inset 0 -3px 8px rgba(150,70,0,.3), 0 14px 30px -10px rgba(249,174,51,.75); }
.btn-sun:hover { color: #0B2A44; }
.btn-glass { color: #fff; background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.06)); border: 1px solid rgba(255,255,255,.35); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 12px 30px -14px rgba(0,16,32,.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn-white { color: var(--ink); background: linear-gradient(180deg, #FFFFFF 0%, #EAF7F8 60%, #CFE9EE 100%); box-shadow: inset 0 1px 0 #fff, inset 0 -3px 8px rgba(11,58,94,.14), 0 12px 28px -12px rgba(255,255,255,.45); font-weight: 600; }
.btn-white:hover { color: var(--ink); }
.brand img { height: 50px; margin-block: -4px; width: auto; display: block; filter: drop-shadow(0 2px 6px rgba(0,16,32,.35)); }
.app-toast { position: fixed; z-index: 70; left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); bottom: calc(env(safe-area-inset-bottom, 0px) + 92px); display: flex; gap: 14px; align-items: center; padding: 14px 14px 14px 18px; border-radius: 22px; background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(225,244,246,.95)); color: var(--ink); box-shadow: 0 20px 40px -14px rgba(0,10,24,.7); transform: translateY(20px); opacity: 0; transition: transform .4s ease, opacity .4s ease; }
.app-toast.show { transform: none; opacity: 1; }
.app-toast img { width: 46px; height: 46px; border-radius: 12px; flex: none; }
.app-toast .tx { flex: 1; min-width: 0; font-size: 14px; line-height: 1.4; }
.app-toast b { display: block; font-weight: 600; font-size: 15px; }
.app-toast .x { background: none; border: 0; color: var(--ink); font-size: 22px; width: 44px; height: 44px; cursor: pointer; flex: none; }
.app-toast .btn { padding: 10px 16px; min-height: 44px; font-size: 14px; }
.btn-ink { color: #fff; background: linear-gradient(180deg, #2A6FAA 0%, #0B3A5E 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 14px 30px -12px rgba(11,58,94,.7); }
.btn-ink:hover, .btn-glass:hover { color: #fff; }
.nav .btn { padding: 11px 20px; font-size: 15px; min-height: 44px; }

/* Type */
.chapter { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--teal-hi); display: flex; align-items: center; gap: 14px; }
.chapter::before { content: ""; width: 44px; height: 1px; background: currentColor; opacity: .7; }
.display { font-family: var(--display); font-weight: 600; letter-spacing: -.035em; line-height: .95; }
.gloss { background: linear-gradient(105deg, #FFFFFF 0%, #D6F4F1 28%, #FFFFFF 42%, #8FD8DC 52%, #FFFFFF 66%, #E9FBF9 100%); background-size: 240% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 9s ease-in-out infinite; filter: drop-shadow(0 8px 40px rgba(78,199,182,.28)); }
.gloss-ink { background: linear-gradient(105deg, #0B3A5E 0%, #1D5C94 30%, #4EC7B6 45%, #1D5C94 58%, #0B3A5E 100%); background-size: 240% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 9s ease-in-out infinite; }
@keyframes sheen { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.lead { font-size: clamp(18px, 2vw, 22px); line-height: 1.55; color: var(--text-2); max-width: 60ch; }
.h2 { font-size: clamp(36px, 5.4vw, 76px); }
.h3 { font-family: var(--display); font-weight: 500; font-size: 22px; letter-spacing: -.01em; line-height: 1.2; }

/* Glass panel */
.glass { position: relative; border-radius: 28px; background: linear-gradient(145deg, rgba(255,255,255,.17) 0%, rgba(255,255,255,.05) 55%, rgba(255,255,255,.09) 100%);
  border: 1px solid rgba(255,255,255,.2); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), inset 0 -1px 0 rgba(255,255,255,.06), 0 30px 60px -28px rgba(0,10,24,.75);
  backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%); overflow: hidden; }
.glass::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(420px circle at var(--mx, 30%) var(--my, 0%), rgba(255,255,255,.18), transparent 60%); opacity: .9; transition: opacity .3s; }
.glass > * { position: relative; }
.tilt { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .4s cubic-bezier(.2,.8,.2,1); will-change: transform; }

.orb { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.95) 0 6%, rgba(155,230,218,.9) 18%, #2A9DB2 55%, #0B3A5E 100%);
  box-shadow: inset 0 -6px 14px rgba(0,30,60,.45), 0 12px 30px -8px rgba(78,199,182,.6); }
.orb svg { width: 32px; height: 32px; stroke: #fff; filter: drop-shadow(0 1px 2px rgba(0,30,60,.5)); }
.orb.sun { background: radial-gradient(circle at 32% 28%, #fff 0 6%, #FFE09A 18%, #F9AE33 55%, #B86A06 100%); box-shadow: inset 0 -6px 14px rgba(120,50,0,.35), 0 12px 30px -8px rgba(249,174,51,.6); }

/* Reveal */
.js .rv { opacity: 0; transform: translateY(46px) scale(.98); filter: blur(10px); transition: opacity 1.1s cubic-bezier(.2,.7,.2,1), transform 1.1s cubic-bezier(.2,.7,.2,1), filter 1.1s ease; transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; filter: none; }

/* Depth gauge */
.gauge { position: fixed; right: max(18px, env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none; }
.gauge-val { font-family: var(--mono); font-weight: 500; font-size: 22px; color: #fff; padding: 6px 12px; border-radius: 12px; background: rgba(4,26,44,.45); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-variant-numeric: tabular-nums; transition: background .6s, color .6s; }
.gauge-rail { position: relative; width: 2px; height: 220px; background: linear-gradient(180deg, rgba(255,255,255,.7), rgba(255,255,255,.12)); margin-right: 18px; }
.gauge-dot { position: absolute; left: -6px; width: 14px; height: 14px; border-radius: 50%; top: var(--g, 0%); background: radial-gradient(circle at 35% 30%, #FFE7B0, var(--sun)); box-shadow: 0 0 14px rgba(249,174,51,.9); transition: top .25s linear; }
.gauge-lbl { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: rgba(255,255,255,.75); }
.surface .gauge-val { color: var(--ink); background: rgba(255,255,255,.7); border-color: rgba(11,58,94,.15); }

/* Sections */
.section { padding-block: clamp(90px, 14vw, 180px); }
.section-head { display: flex; flex-direction: column; gap: 22px; margin-bottom: clamp(40px, 6vw, 72px); }

/* ---------- HOME ---------- */
.letterbox::before, .letterbox::after { content: ""; position: fixed; left: 0; right: 0; height: 12vh; background: #01060C; z-index: 85; animation: bars 1.8s cubic-bezier(.7,0,.2,1) .5s forwards; }
.letterbox::before { top: 0; } .letterbox::after { bottom: 0; }
@keyframes bars { to { height: 0; } }

.hero { position: relative; padding-top: calc(env(safe-area-inset-top, 0px) + 150px); padding-bottom: 60px; color: var(--ink); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero-logo { width: 100%; max-width: 560px; filter: drop-shadow(0 30px 40px rgba(11,58,94,.12)); animation: float 9s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-12px) rotate(-.6deg); } }
.hero-copy { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.hero .chapter { color: #17809A; }
.hero h1 { font-size: clamp(64px, 10vw, 150px); }
.hero .lead { color: #2C4F6B; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.countdown { display: flex; gap: 10px; flex-wrap: wrap; }
.cd { min-width: 82px; padding: 12px 14px; border-radius: 18px; background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(226,246,245,.75)); border: 1px solid rgba(11,58,94,.1); box-shadow: inset 0 1px 0 #fff, 0 10px 24px -14px rgba(11,58,94,.4); text-align: center; }
.cd b { display: block; font-family: var(--display); font-weight: 600; font-size: 30px; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.cd span { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #3C6A86; }
.scroll-cue { margin-top: 70px; display: flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #2E6C8C; }
.scroll-cue i { width: 1px; height: 54px; background: linear-gradient(#2E6C8C, transparent); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; width: 1px; height: 18px; background: var(--ink); animation: drip 2s ease-in infinite; }
@keyframes drip { from { top: -18px; } to { top: 54px; } }

/* Whale scene (scrubbed) */
.scene-whale { position: relative; height: 230vh; }
.scene-whale .stick { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; align-items: flex-end; }
.whale { position: absolute; inset: -6% -4%; width: 108%; height: 112%; object-fit: cover; object-position: 50% 32%;
  transform: scale(calc(1.32 - var(--p, .5) * .3)) translateY(calc(var(--p, .5) * -50px)); opacity: calc(.25 + var(--p, .5) * 1.6);
  -webkit-mask-image: radial-gradient(ellipse 70% 62% at 50% 50%, #000 30%, rgba(0,0,0,.5) 62%, transparent 92%); mask-image: radial-gradient(ellipse 70% 62% at 50% 50%, #000 30%, rgba(0,0,0,.5) 62%, transparent 92%); }
.whale-copy { position: relative; padding-bottom: 12vh; width: 100%; }
.whale-words { font-family: var(--display); font-weight: 600; font-size: clamp(34px, 6vw, 92px); line-height: 1.02; letter-spacing: -.035em; max-width: 13ch; text-shadow: 0 6px 40px rgba(2,24,44,.5); }
.whale-words span { display: inline; opacity: clamp(.12, calc(var(--p, 1) * 9 - var(--i) * 1.1 - 1.4), 1); transition: opacity .2s linear; }
.whale-caption { margin-top: 26px; font-family: var(--mono); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--teal-hi); }

/* Horizontal pinned offer track */
.scene-h { position: relative; height: 340vh; }
.scene-h .stick { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 44px; }
.track { display: flex; gap: 28px; padding-left: var(--gutter-l); padding-right: 30vw; transform: translate3d(var(--x, 0px), 0, 0); will-change: transform; }
.offer { flex: none; width: min(420px, 78vw); min-height: 440px; padding: 36px 32px; display: flex; flex-direction: column; gap: 20px; }
.offer .num { font-family: var(--mono); font-size: 13px; letter-spacing: .14em; color: var(--teal-hi); }
.offer h3 { font-family: var(--display); font-weight: 600; font-size: 32px; letter-spacing: -.02em; line-height: 1.05; }
.offer p { color: var(--text-2); font-size: 17px; }
.offer .tag { margin-top: auto; align-self: flex-start; font-size: 14px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); color: var(--text-2); }
.h-progress { height: 2px; background: rgba(255,255,255,.15); border-radius: 2px; overflow: hidden; }
.h-progress i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: linear-gradient(90deg, var(--teal), var(--sun)); }

/* Portals to subpages */
.portals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.portal { display: flex; flex-direction: column; gap: 18px; padding: 40px; min-height: 300px; text-decoration: none; color: #fff; }
.portal:hover { color: #fff; }
.portal .depth { font-family: var(--mono); font-size: 13px; letter-spacing: .16em; color: var(--teal-hi); display: flex; justify-content: space-between; }
.portal h3 { font-family: var(--display); font-weight: 600; font-size: clamp(34px, 4vw, 54px); letter-spacing: -.035em; line-height: 1; }
.portal p { color: var(--text-2); max-width: 40ch; }
.portal .go { margin-top: auto; display: flex; align-items: center; gap: 12px; font-weight: 500; }
.portal .go svg { transition: transform .35s ease; }
.portal:hover .go svg { transform: translateX(8px); }

/* Tickets */
.tickets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.ticket { position: relative; padding: 36px 34px; border-radius: 26px; display: flex; flex-direction: column; gap: 10px; color: #0B2A44; overflow: hidden;
  -webkit-mask: radial-gradient(circle 18px at 0 62%, transparent 98%, #000) , radial-gradient(circle 18px at 100% 62%, transparent 98%, #000); -webkit-mask-composite: source-in; mask: radial-gradient(circle 18px at 0 62%, transparent 98%, #000) intersect, radial-gradient(circle 18px at 100% 62%, transparent 98%, #000); }
.ticket::after { content: ""; position: absolute; left: 30px; right: 30px; top: 62%; border-top: 2px dashed rgba(11,42,68,.25); }
.ticket::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.55) 45%, transparent 60%); background-size: 250% 100%; animation: sheen 6s ease-in-out infinite; pointer-events: none; }
.ticket > * { position: relative; z-index: 1; }
.ticket.sun { background: linear-gradient(160deg, #FFE1A0, #F9AE33 55%, #EE9620); box-shadow: 0 30px 60px -30px rgba(249,174,51,.8); }
.ticket.teal { background: linear-gradient(160deg, #C7F3EC, #4EC7B6 55%, #2AA294); box-shadow: 0 30px 60px -30px rgba(78,199,182,.8); }
.ticket .kind { font-weight: 500; font-size: 17px; }
.ticket .price { font-family: var(--display); font-weight: 700; font-size: clamp(48px, 5vw, 68px); letter-spacing: -.04em; line-height: 1; }
.ticket .meta { margin-top: 42px; font-size: 15px; }
.ticket .btn { margin-top: 12px; align-self: flex-start; }
.ticket.free { color: #fff; }
.ticket.free::after { border-color: rgba(255,255,255,.25); }

/* Page hero for subpages */
.phero, .quote { overflow: hidden; }
.phero > .wrap, .quote > .wrap { position: relative; z-index: 2; }
.phero { position: relative;padding-top: calc(env(safe-area-inset-top, 0px) + 170px); padding-bottom: clamp(60px, 9vw, 120px); min-height: 640px; display: flex; flex-direction: column; justify-content: flex-end; }
.phero h1 { font-size: clamp(60px, 11vw, 168px); margin-top: 22px; }
.phero .lead { margin-top: 26px; }
.phero .chips { margin-top: 30px; display: flex; gap: 10px; flex-wrap: wrap; }
.chip { font-size: 15px; padding: 10px 16px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); color: var(--text-2); }

/* Creatures */
.creature { position: absolute; pointer-events: none; z-index: 0; }
.manta { width: min(760px, 90vw); top: 120px; left: calc(105% - var(--p, .5) * 120%); transform: rotate(calc(-100deg + var(--p, .5) * 18deg)); filter: drop-shadow(0 0 30px rgba(155,230,218,.35)) blur(.4px); opacity: .9; }
.jelly { filter: drop-shadow(0 0 22px var(--c)); animation: jelly var(--dur, 8s) ease-in-out infinite; animation-delay: var(--dl, 0s); }
.jelly-wrap { transform: translateY(calc((.5 - var(--p, .5)) * var(--f, 200px))); }
@keyframes jelly { 0%,100% { transform: translateY(0) scaleY(1); } 40% { transform: translateY(-26px) scaleY(.93); } 60% { transform: translateY(-30px) scaleY(1.02); } }
.hero-photo { top: 0; right: -6%; width: min(1150px, 92vw); height: 100%; object-fit: cover; object-position: 40% 40%;
  transform: translateY(calc((var(--p, .5) - .5) * -120px)) scale(calc(1.14 - var(--p, .5) * .12)); opacity: .92;
  -webkit-mask-image: radial-gradient(ellipse 62% 66% at 58% 48%, #000 30%, rgba(0,0,0,.55) 60%, transparent 90%); mask-image: radial-gradient(ellipse 62% 66% at 58% 48%, #000 30%, rgba(0,0,0,.55) 60%, transparent 90%);
  animation: drift 14s ease-in-out infinite; }
@keyframes drift { 0%,100% { translate: 0 0; } 50% { translate: 0 -14px; } }
.phero:has(.hero-photo) h1, .phero:has(.hero-photo) .lead { text-shadow: 0 4px 30px rgba(2,20,40,.7); }
@media (max-width: 720px) { .hero-photo { right: -30%; width: 140vw; opacity: .7; } }
.school { width: min(900px, 100vw); left: calc(-30% + var(--p, .5) * 90%); top: 160px; opacity: .7; }
.school use { animation: wiggle 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes wiggle { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.angler { width: min(420px, 70vw); right: 6%; top: 60px; opacity: calc(.2 + var(--p, .6) * 1.1); transform: translateX(calc((.5 - var(--p, .5)) * 160px)); }
.lure { animation: lure 3.4s ease-in-out infinite; }
@keyframes lure { 0%,100% { opacity: .55; } 50% { opacity: 1; } }

/* Program */
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 30px; }
.seg { display: flex; padding: 5px; border-radius: 999px; background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.18); }
.seg button, .fchip { font: 500 16px/1 var(--body); color: var(--text-2); background: none; border: 0; padding: 13px 22px; border-radius: 999px; cursor: pointer; min-height: 46px; }
.seg button[aria-pressed="true"] { color: var(--ink); background: linear-gradient(180deg, #fff, #CFEFF0); box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.fchip { font-size: 14px; border: 1px solid rgba(255,255,255,.25); }
.fchip[aria-pressed="true"] { color: #0B2A44; background: var(--teal); border-color: var(--teal); }
.note { display: inline-flex; gap: 10px; align-items: center; font-size: 14px; color: #0B2A44; background: var(--sun); padding: 8px 14px; border-radius: 999px; font-weight: 500; }
.slots { display: flex; flex-direction: column; gap: 14px; }
.slot { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 26px; align-items: center; padding: 24px 28px; border-radius: 22px; }
.slot time { font-family: var(--mono); font-size: 18px; color: var(--sun); font-variant-numeric: tabular-nums; }
.slot .t { font-family: var(--display); font-weight: 500; font-size: 21px; letter-spacing: -.01em; }
.slot .w { color: var(--text-2); font-size: 15px; }
.slot .room { font-size: 14px; color: var(--teal-hi); padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(155,230,218,.35); white-space: nowrap; }
.rooms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.room-card { padding: 32px; display: flex; flex-direction: column; gap: 8px; }
.room-card .big { font-family: var(--display); font-weight: 600; font-size: 56px; letter-spacing: -.04em; line-height: 1; }
.room-card .lbl { color: var(--text-2); }

/* Exhibitors */
.orgs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.org { padding: 40px; display: flex; flex-direction: column; gap: 14px; }
.org h3 { font-family: var(--display); font-weight: 600; font-size: 34px; letter-spacing: -.03em; }
.org address { font-style: normal; color: var(--text-2); }
.exh { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ex { display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: 22px; text-decoration: none; color: #fff; min-height: 96px; }
.ex:hover { color: #fff; }
.ex .mono { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex: none; font-family: var(--display); font-weight: 600; font-size: 20px; color: #fff; background: linear-gradient(145deg, rgba(255,255,255,.3), rgba(255,255,255,.06)); border: 1px solid rgba(255,255,255,.3); box-shadow: inset 0 1px 0 rgba(255,255,255,.5); }
.ex .n { font-weight: 500; font-size: 17px; line-height: 1.25; }
.ex .u { font-size: 13px; color: var(--text-2); }

/* Travel */
.travel { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.map { position: relative; min-height: 480px; padding: 0; }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.route { stroke-dasharray: 1400; stroke-dashoffset: calc(1400 - var(--p, .6) * 1700); transition: stroke-dashoffset .2s linear; }
.map-legend { position: absolute; left: 22px; bottom: 22px; display: flex; gap: 10px; flex-wrap: wrap; }
.ways { display: flex; flex-direction: column; gap: 16px; }
.way { padding: 26px 28px; display: flex; gap: 18px; align-items: flex-start; }
.way .orb { width: 54px; height: 54px; }
.way .orb svg { width: 24px; height: 24px; }
.way h3 { font-family: var(--display); font-weight: 500; font-size: 20px; margin-bottom: 6px; }
.way p { color: var(--text-2); font-size: 16px; }
.links-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* Infos */
.food { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 24px; }
.food-main { padding: 40px; display: flex; flex-direction: column; gap: 16px; }
.menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.menu .glass { padding: 26px; }
.menu h3 { font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--sun); margin-bottom: 12px; }
.menu ul { margin: 0; padding-left: 18px; color: var(--text-2); font-size: 16px; }
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { border-radius: 22px; padding: 0; }
.faq summary { list-style: none; cursor: pointer; padding: 24px 28px; display: flex; justify-content: space-between; gap: 20px; align-items: center; font-family: var(--display); font-weight: 500; font-size: 19px; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.3); transition: transform .35s ease, background .35s; }
.faq details[open] summary .pm { transform: rotate(45deg); background: rgba(255,255,255,.14); }
.faq .ans { padding: 0 28px 26px; color: var(--text-2); max-width: 75ch; }
.quote { text-align: center; padding-block: clamp(120px, 18vw, 240px); position: relative; }
.quote p { font-family: var(--display); font-weight: 300; font-size: clamp(28px, 4vw, 52px); line-height: 1.2; letter-spacing: -.02em; max-width: 22ch; margin: 0 auto; }
.quote cite { display: block; margin-top: 24px; font-style: normal; font-family: var(--mono); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--teal-hi); }
.downloads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dl { display: flex; align-items: center; gap: 16px; padding: 22px 24px; border-radius: 22px; text-decoration: none; color: #fff; }
.dl:hover { color: #fff; }

/* Footer */
.footer { position: relative; z-index: 5; padding-block: 100px 140px; border-top: 1px solid rgba(255,255,255,.1); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; font-size: 15px; line-height: 1.75; color: var(--text-2); }
.footer h4 { margin: 0 0 10px; font-family: var(--display); font-weight: 500; font-size: 16px; color: #fff; }
.footer .big { font-family: var(--display); font-weight: 600; font-size: 28px; line-height: 1.1; letter-spacing: -.02em; color: #fff; margin-bottom: 18px; }
.footer a { color: var(--text-2); }
.footer a:hover { color: #fff; }

/* Mobile dock */
.dock { display: none; }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero-grid, .travel, .food, .orgs { grid-template-columns: minmax(0, 1fr); }
  .tickets, .rooms, .downloads { grid-template-columns: minmax(0, 1fr); }
  .exh { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dock { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; position: fixed; z-index: 50; left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); bottom: calc(env(safe-area-inset-bottom, 0px) + 12px); padding: 6px; border-radius: 24px;
    background: linear-gradient(180deg, rgba(14,70,110,.72), rgba(4,30,52,.78)); border: 1px solid rgba(255,255,255,.22); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 18px 40px -16px rgba(0,0,0,.6); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
  .dock a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; min-height: 52px; border-radius: 18px; color: var(--text-2); text-decoration: none; font-size: 12px; }
  .dock a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.14); }
  .dock svg { width: 22px; height: 22px; }
  .gauge { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .portals, .menu, .exh, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .scene-h { height: auto; }
  .scene-h .stick { position: relative; height: auto; padding-block: 90px; }
  .track { flex-direction: column; transform: none; padding-right: var(--gutter-r); }
  .offer { width: 100%; min-height: 0; }
  .h-progress { display: none; }
  .slot { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .slot .room { justify-self: start; }
  .brand span { display: none; }
  .nav { padding-left: 12px; }
  .nav .btn { padding: 10px 16px; }
  .portal, .org, .food-main { padding: 28px; }
  .map { min-height: 340px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .rv { opacity: 1; transform: none; filter: none; }
  .letterbox::before, .letterbox::after { display: none; }
}


/* Coming Soon: Inhalte erst nach Team-Login zeigen (bis zum Start) */
html:not(.team):not(.cs) body { visibility: hidden; }
.cs-hero { position: relative; z-index: 5; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-top: calc(env(safe-area-inset-top, 0px) + 130px); padding-bottom: 80px; overflow: hidden; }
.cs-hero .whale { inset: 0; width: 100%; height: 100%; opacity: .55; transform: none; }
.cs-copy { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 26px; }
.cs-date { font-family: var(--display); font-weight: 700; font-size: clamp(56px, 12vw, 180px); letter-spacing: -.045em; line-height: .9; }
.cs-title { font-family: var(--mono); font-size: clamp(14px, 1.6vw, 18px); letter-spacing: .32em; text-transform: uppercase; color: var(--sun); }
.cs-copy .countdown .cd { background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.05)); border-color: rgba(255,255,255,.25); box-shadow: inset 0 1px 0 rgba(255,255,255,.4); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.cs-copy .cd b { color: #fff; }
.cs-copy .cd span { color: var(--teal-hi); }
.login { position: absolute; right: 0; top: calc(100% + 10px); width: min(340px, calc(100vw - 32px)); padding: 22px; display: flex; flex-direction: column; gap: 12px; background: linear-gradient(180deg, rgba(14,70,110,.92), rgba(4,30,52,.94)); }
.login label { font-size: 14px; color: var(--text-2); }
.login input { font: 400 16px/1.2 var(--body); color: #fff; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.3); border-radius: 14px; padding: 14px 16px; min-height: 48px; }
.login input:focus { outline: 2px solid var(--sun); outline-offset: 1px; }
.login .err { font-size: 14px; color: #FFD27A; min-height: 1.2em; }
.nav-right { position: relative; }
.login[hidden] { display: none; }
