/* FINALE — Portal Journey × Energy Flow, then 06 · Over Burak and 07 · Let's Connect as one open notebook (css/notebook.css).
   Default (no JavaScript, phones, reduced motion): everything in reading order, nothing pinned.
   html.fin-3d (desktop, motion allowed, set by js/chapters/finale.js): one pinned stage where the cards share a 3D space. */
.finale { --dawn: radial-gradient(120% 90% at 77% 30%, #fff3e4 0%, #f8dcc0 34%, #f3e2d2 62%, #efe4d8 100%);
  position: relative; z-index: 4; color: var(--ink); background: var(--dawn); }
.fin-pin { position: relative; }

/* ---------- the journey: The Summit — the approved composition (visual proof v2), driven by the scroll ---------- */
.journey { position: relative; height: 78vh; height: 78svh; min-height: 420px; overflow: hidden; background: #070a16; isolation: isolate; }
.journey > * { position: absolute; }
.sm > canvas { inset: 0; width: 100%; height: 100%; display: block; }
.sm-fx { pointer-events: none; }   /* the walker is drawn here: normal blending (the embers add their light themselves) */
.sm-still { inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 64% 55%; display: none; }
html.sm-nogl .sm-still, html:not(.js) .sm-still { display: block; }
html.sm-nogl .sm > canvas, html:not(.js) .sm > canvas { display: none; }
/* the needs: bold display type set into the world. A soft pool of shadow behind each (no box, no edge) keeps it
   readable over bright cloud and lit rock; the number is the quiet part, the words carry the weight. */
.sm-needs { inset: 0; margin: 0; list-style: none; padding: 0; pointer-events: none; }
.sm-need { position: absolute; left: 0; top: 0; opacity: 0; will-change: transform, opacity; display: grid; gap: 8px; isolation: isolate; color: #fbf4ea;
  text-shadow: 0 1px 2px rgba(4, 5, 12, .95), 0 3px 18px rgba(4, 5, 12, .85), 0 0 42px rgba(4, 5, 12, .6); }
.sm-need::before { content: ""; position: absolute; z-index: -1; inset: -34% -22% -38% -18%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(5, 6, 14, .62), rgba(5, 6, 14, .38) 55%, rgba(5, 6, 14, 0)); filter: blur(6px); }
.sm-need .n { display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: clamp(12px, .85vw, 14px); font-weight: 500; letter-spacing: .2em; color: #ffb36e; }
.sm-need .n::after { content: ""; width: 28px; height: 1.5px; background: linear-gradient(90deg, #ff9a40, rgba(255, 154, 64, .1)); }
.sm-need .t { font-family: var(--f-display); font-weight: 750; font-size: clamp(19px, 1.95vw, 36px); line-height: .98; letter-spacing: .015em; text-transform: uppercase; color: #fbf4ea; font-variation-settings: "opsz" 48; }
.sm-need .t span { display: block; }
@media (max-width: 700px) {
  .sm-need { gap: 5px; }
  .sm-need .n { font-size: 11px; gap: 8px; } .sm-need .n::after { width: 18px; }
  .sm-need .t { font-size: clamp(16px, 4.6vw, 20px); line-height: 1; }
}
/* the five words in the world are no longer shown: the pop-ups tell the services. They stay in the page (hidden) as the anchors that
   the scene moves with the camera; without WebGL or JavaScript they are not needed at all */
.journey .sm-needs { visibility: hidden; }
html.sm-nogl .sm-needs, html:not(.js) .sm-needs { display: none; }
.jr-light { inset: 0; background: var(--dawn); opacity: 0; pointer-events: none; }

/* ---------- the cards ---------- */
.cards { display: grid; gap: 24px; padding: 48px max(16px, env(safe-area-inset-right, 0px), var(--gutter)) 24px max(16px, env(safe-area-inset-left, 0px), var(--gutter)); }
.card { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 72px); align-items: stretch;
  width: 100%; max-width: 1320px; margin-inline: auto; padding: clamp(28px, 4vw, 60px); border-radius: 28px; outline: none;
  background: #fbf7f1; border: 1px solid rgba(12, 11, 18, .07); box-shadow: 0 50px 120px -50px rgba(90, 45, 10, .38), 0 2px 0 rgba(255, 255, 255, .7) inset; }
.card .eyebrow { color: var(--bone-muted); }
.card-copy { display: grid; align-content: center; gap: clamp(18px, 3.2vh, 32px); min-width: 0; }

/* 06 · Over Burak + 07 · Let's Connect: the open notebook — css/notebook.css */

@media (max-width: 899px) {
  .journey { height: 70svh; min-height: 380px; }
  .card { grid-template-columns: 1fr; border-radius: 22px; }
}
.cx-mail-m { display: none; }
@media (max-width: 899px) {
  .cx-mail-m { display: block; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--bone-line); white-space: nowrap; font-size: clamp(12.5px, 3.45vw, 14.5px); color: var(--bone-muted); }
  .cx-mail-m a { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; }
}

/* phones (motion allowed): a full-screen journey, and the notebook rises out of its light while it ends */
html.fin-lite .journey { height: 100vh; height: 100svh; }
html.fin-lite .cards { position: relative; z-index: 2; margin-top: -30svh; padding-top: 0; }

/* ---------- desktop: one pinned stage, the cards in one 3D space ---------- */
html.fin-3d .fin-pin { height: 100vh; height: 100svh; overflow: hidden; }
html.fin-3d .journey { position: absolute; inset: 0; height: auto; min-height: 0; z-index: 1; }
html.fin-3d .cards { position: absolute; inset: 0; z-index: 2; padding: 0; display: block; perspective: 1500px; perspective-origin: 50% 40%; pointer-events: none; }
html.fin-3d .cards .card { position: absolute; top: 104px; bottom: 32px; left: max(var(--gutter), calc((100% - 1320px) / 2)); right: max(var(--gutter), calc((100% - 1320px) / 2));
  width: auto; margin: 0; will-change: transform, opacity; backface-visibility: hidden; transform-origin: 50% 50%;
  /* the card follows the screen height up to the designed proportions (1440 x 900 gives 764px); on taller screens it stops
     growing and sits centred in the same space, instead of stretching into empty card and an empty photo frame */
  max-height: 800px; margin-block: auto; }
html.fin-3d .cards .card.is-active { pointer-events: auto; }
/* a soft veil darkens the card that steps back */
html.fin-3d .cards .card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #2a1a10; opacity: var(--veil, 0); pointer-events: none; }


/* ---------- 05 · Ontmoet de maker: the heading in the scene ----------
   Left, over the night sky (as in the reference), clear of the portal on the right. It comes in with the world and leaves
   as the camera nears the portal (js/chapters/finale.js). */
.fin-intro { position: absolute; z-index: 2; left: max(16px, env(safe-area-inset-left, 0px), var(--gutter)); top: clamp(120px, 21svh, 230px); width: min(36rem, 38vw);   /* the hero's own left edge; the portal keeps the right */
  transform-origin: 0 30%;
  display: grid; gap: clamp(14px, 1.6svh, 20px); color: #fbf4ea; pointer-events: none; text-shadow: 0 2px 22px rgba(4, 6, 16, .65); }
.fin-intro::before { content: ""; position: absolute; z-index: -1; inset: -32% -18% -38% -14%; pointer-events: none;   /* keeps the heading readable as the portal's light grows */
  background: radial-gradient(closest-side, rgba(10, 8, 16, .58), rgba(10, 8, 16, .32) 58%, rgba(10, 8, 16, 0)); filter: blur(8px); }
.fin-intro .eyebrow { margin: 0; display: flex; align-items: center; gap: 12px; color: #ff9a40; }
.fin-intro .eyebrow::before, .fin-intro .eyebrow::after { content: ""; width: 28px; height: 1.5px; background: #fe6a00; }
.fin-title { margin: 0; font-family: var(--f-display); font-weight: 760; font-size: clamp(34px, 3.7vw, 62px); line-height: 1.02; letter-spacing: -.035em; color: #fbf4ea; text-wrap: balance; }
.fin-title em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; color: #ff7a1a; }
.fin-sub { margin: 0; font-size: clamp(16px, 1.25vw, 20px); line-height: 1.5; color: #e9dfd2; }
.journey .jr-light { z-index: 3; }
/* entering the portal world: the last of the services' warm sky lies over its top edge and fades as the world comes up
   (js/chapters/finale.js), so there is no band or edge between the two */
.jr-dusk { position: absolute; left: 0; right: 0; top: -1px; height: 48%; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, #F0C8A8 0%, #EDC3A2 7%, rgba(214, 164, 136, .9) 20%, rgba(134, 100, 104, .62) 42%, rgba(44, 38, 60, .3) 68%, rgba(7, 10, 22, 0) 100%); }
/* the scroll cue under the heading: the same small mouse, word and line as on the hero */
.fin-cue { margin: clamp(10px, 2svh, 22px) 0 0; display: grid; gap: 12px; justify-items: start; font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #e9dfd2; }
.fin-cue .mouse { width: 20px; height: 30px; border: 1.5px solid currentColor; border-radius: 10px; position: relative; opacity: .9; }
.fin-cue .mouse::after { content: ""; position: absolute; left: 50%; top: 6px; width: 2px; height: 6px; margin-left: -1px; border-radius: 2px; background: currentColor; animation: vh-wheel 2.2s ease-in-out infinite; }
.fin-cue .line { width: 1px; height: 26px; background: linear-gradient(currentColor, transparent); transform-origin: top; animation: vh-line 2.2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .fin-cue .mouse::after, .fin-cue .line { animation: none; } }
html:not(.js) .jr-dusk, html.sm-nogl .jr-dusk { display: none; }
/* the same night as the services' darkened sky (--to-portal), so the two worlds meet without an edge */
.jr-dusk::after { content: ""; position: absolute; inset: 0; opacity: calc(var(--to-portal, 0) * .92);
  background: linear-gradient(180deg, #070A16 0%, #070A16 7%, rgba(7, 10, 22, .9) 20%, rgba(7, 10, 22, .62) 42%, rgba(7, 10, 22, .3) 68%, rgba(7, 10, 22, 0) 100%); }
@media (max-width: 899px) {
  .fin-intro { width: auto; left: var(--gutter); right: var(--gutter); top: clamp(92px, 13svh, 130px); }
  /* on a phone the portal fills the width: a soft band of night behind the heading keeps it readable */
  .fin-intro::before { content: ""; position: absolute; z-index: -1; left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter)); top: -140px; bottom: -70px;
    background: linear-gradient(180deg, rgba(5, 7, 16, .82) 0%, rgba(5, 7, 16, .66) 62%, rgba(5, 7, 16, 0) 100%); pointer-events: none; }
  .fin-title { font-size: clamp(28px, 8vw, 36px); } .fin-sub { font-size: 16px; }
}

/* keyboard focus on the FAQ questions */
.faq-q summary:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; border-radius: 4px; }

/* ---------- 06 · Goed om te weten ---------- */
.faq { --faq-line: rgba(12, 11, 18, .16); position: relative; z-index: 4; background: #EFE4D8; color: var(--ink);
  padding: clamp(40px, 6svh, 72px) max(16px, var(--gutter)) clamp(56px, 9svh, 100px); }   /* close after the notebook: no long empty stretch */
.faq-in { max-width: 1240px; margin-inline: auto; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.faq-head { display: grid; gap: 18px; padding-top: 10px; }
.faq-head .eyebrow { color: var(--bone-muted); display: flex; align-items: center; gap: 12px; }
.faq-head .eyebrow::before { content: ""; width: 28px; height: 1.5px; background: var(--orange-deep); }
.faq-title { font-family: var(--f-display); font-weight: 800; font-size: clamp(40px, 4.6vw, 76px); line-height: .94; letter-spacing: -.045em; }
.faq-title em { display: block; font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; color: var(--orange-deep); }
.faq-list { border-top: 1px solid var(--faq-line); }
.faq-q { border-bottom: 1px solid var(--faq-line); }
.faq-q summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; }
.faq-q summary::-webkit-details-marker { display: none; }
.faq-q h3 { font-family: var(--f-display); font-weight: 650; font-size: clamp(19px, 1.5vw, 23px); line-height: 1.25; letter-spacing: -.02em; transition: color .2s; }
.faq-q summary:hover h3 { color: var(--orange-deep); }
.faq-i { position: relative; flex: none; width: 18px; height: 18px; }
.faq-i::before, .faq-i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: var(--orange-deep); transition: transform .35s var(--ease-out); }
.faq-i::after { transform: rotate(90deg); }
.faq-q[open] .faq-i::after { transform: rotate(0deg); }
.faq-a p { max-width: 60ch; padding: 0 0 26px; font-size: 16px; line-height: 1.65; color: #3b3846; text-wrap: pretty; }
@media (max-width: 899px) {
  .faq { padding-block: clamp(36px, 5svh, 56px) 40px; }
  .faq-in { grid-template-columns: 1fr; gap: 28px; }
  .faq-head { padding-top: 0; gap: 12px; }
  .faq-q summary { padding: 18px 0; }
  .faq-q h3 { font-size: 18px; }
  .faq-a p { font-size: 15.5px; }
}
