/* 6th, Look E3: white, night-navy ink, one band of light from the highway photograph. */
/* Schibsted Grotesk (SIL Open Font License), self-hosted: one variable file, weights 400 to 600, Latin subset */
@font-face { font-family: "Schibsted Grotesk"; src: url(fonts/schibsted-grotesk-latin.woff2) format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
:root {
  --bg: #ffffff;
  --surface: #f2f3f6;
  --ink: #12172b;       /* the dusk sky of the photograph, nearly black */
  --soft: #4b526b;      /* secondary text, 8:1 on white */
  --quiet: #868ca2;     /* unrevealed text, 3.3:1 on white */
  --idle: #6a7088;     /* plays not yet opened, 4.9:1 */
  --focus: #2f5bb0;
  /* the band: a car passing in the long exposure. Headlight amber leads, tail-light red follows, the dusk closes behind */
  --amber: #d98613;
  --red: #e0442b;
  --dusk: #2f5bb0;
  --ahead: var(--quiet);

  --m: clamp(20px, 3.4vw, 56px);
  --gap: clamp(16px, 2vw, 28px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --display: clamp(2.05rem, 0.9rem + 6.2vw, 6.5rem);
  --head: clamp(1.9rem, 1.1rem + 3.2vw, 4.25rem);
  --lead: clamp(1.25rem, 1.08rem + 0.6vw, 1.625rem);
  --body: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);
  --small: 0.875rem;
}
.night {
  --bg: #0e1222; --ink: #eef0f6; --soft: #b7bdd0; --quiet: #646b88;
  --amber: #ffb548; --red: #ff5a3c; --dusk: #7fa2f5; --focus: #9db8ff;
  background: var(--bg); color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: var(--body); line-height: 1.55; letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: var(--m); top: -100px; background: var(--ink); color: var(--bg); padding: 10px 14px; z-index: 10; }
.skip:focus { top: 12px; }

.frame { padding-inline: var(--m); max-width: 1680px; margin-inline: auto; }

/* type */
.display { font-size: var(--display); font-weight: 500; line-height: 0.98; letter-spacing: -0.04em; text-wrap: balance; }
.head { font-size: var(--head); font-weight: 500; line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance; }
.lead, .lead-head { font-size: var(--lead); line-height: 1.38; letter-spacing: -0.015em; font-weight: 400; }
.lead-head { font-weight: 500; }
h3 { font-size: var(--body); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }

/* controls */
.btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px;
  background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 500; border-radius: 999px;
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: var(--dusk); }
.btn:active { transform: scale(0.97); }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 1.0625rem; }
.btn-light { background: var(--ink); color: #0e1222; }
.btn-light:hover { background: #fff; }
.more { font-weight: 500; text-decoration: underline; text-decoration-color: var(--quiet); transition: text-decoration-color .2s; }
.more:hover { text-decoration-color: currentColor; }

/* bar */
.bar { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.logo { display: block; width: 46px; height: 40px; background: var(--ink); -webkit-mask: url(assets/6th_logo.svg) no-repeat left center / contain; mask: url(assets/6th_logo.svg) no-repeat left center / contain; }
.bar nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 36px); font-weight: 500; }
.bar nav a:not(.btn) { text-decoration: none; }
.bar nav a:not(.btn):hover { text-decoration: underline; }

/* hero */
.hero .copy { padding-top: clamp(28px, 7vh, 84px); }
.hero .display { max-width: 14.5em; }
.hero-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; margin-top: clamp(24px, 4vh, 44px); }
.hero-foot .lead { max-width: 31ch; color: var(--soft); }

/* photograph behind reeded glass */
.pane { position: relative; overflow: hidden; background: #0e1222; }
.pane-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.glass { position: absolute; inset: 0; pointer-events: none; }
.glass i { position: absolute; top: 0; bottom: 0; background-repeat: no-repeat; transition: clip-path .9s var(--ease); clip-path: inset(0 0 0 0); }
.glass i::after { /* the curve of each rib: a light edge, a shaded edge */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.14), rgba(255,255,255,0) 30%, rgba(0,0,0,0) 62%, rgba(0,0,0,.32)); /* taste-skill-ignore: rib shading of the glass */
}
/* the hero pane clears in a vertical band wherever the sweep, or the cursor, is */
.hero .glass {
  --gx: -999px; --gw: clamp(90px, 12vw, 200px);
  -webkit-mask-image: linear-gradient(90deg, #000 calc(var(--gx) - var(--gw)), transparent calc(var(--gx) - var(--gw) * 0.3), transparent calc(var(--gx) + var(--gw) * 0.3), #000 calc(var(--gx) + var(--gw)));
  mask-image: linear-gradient(90deg, #000 calc(var(--gx) - var(--gw)), transparent calc(var(--gx) - var(--gw) * 0.3), transparent calc(var(--gx) + var(--gw) * 0.3), #000 calc(var(--gx) + var(--gw)));
}

/* results */
.results { padding-top: clamp(120px, 16vh, 200px); }
.figs { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: clamp(28px, 4vh, 48px); }
.fig { font-size: clamp(2.6rem, 1rem + 4.6vw, 5.5rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1; margin-bottom: 20px; }
.figs li > p:last-child { max-width: 34ch; }

/* beliefs: three rows, title left, reason right */
.beliefs { padding-top: clamp(120px, 18vh, 220px); display: grid; gap: clamp(56px, 9vh, 104px); }
.belief { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: start; }
.belief h2 { grid-column: 1 / span 7; }
.belief p { grid-column: 9 / span 4; padding-top: .5em; }

/* practices: one tone step, four columns */
.practices { background: var(--surface); padding-block: clamp(96px, 14vh, 168px); }
.mid { padding-bottom: clamp(120px, 18vh, 220px); }
.practices h2 { max-width: 12em; }
html:not(.sw) .hero { padding-bottom: clamp(56px, 9vh, 112px); }
.areas { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(28px, 3vw, 48px) var(--gap); margin-top: clamp(48px, 8vh, 96px); }
.area { display: flex; flex-direction: column; gap: 14px; }
.area .word { font-size: var(--lead); font-weight: 500; letter-spacing: -0.02em; }
.area h3 { color: var(--soft); font-weight: 500; }
.area h3 + p { margin-bottom: 6px; }
.area ul { color: var(--soft); font-size: 1rem; line-height: 1.75; }
.area .more { margin-top: auto; padding-top: 14px; align-self: flex-start; }

/* practices as an index: the word at display size, the detail beside it; a mouse brings the band across the word */
.areas { grid-template-columns: 1fr; gap: 0; border-bottom: 1px solid rgba(18, 23, 43, .14); }
.area { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: 12px; align-content: start; padding-block: clamp(36px, 6vh, 64px); border-top: 1px solid rgba(18, 23, 43, .14); }
.area .word { grid-column: 1 / span 6; grid-row: 1 / span 5; font-size: clamp(3rem, 1rem + 5.4vw, 6rem); line-height: .92; letter-spacing: -0.04em; }
.area > :not(.word) { grid-column: 8 / span 5; }
.area ul { columns: 2; column-gap: var(--gap); }
.area .more { margin-top: 6px; padding-top: 0; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .area .word {
    width: fit-content; color: transparent; -webkit-background-clip: text; background-clip: text; background-repeat: no-repeat;
    background-image: linear-gradient(90deg, var(--ink) 0 41.6%, var(--dusk) 46%, var(--red) 51%, var(--amber) 55.5%, var(--ink) 58.4% 100%); /* taste-skill-ignore: the sweep band */
    background-size: 240% 100%; background-position: 100% 0; transition: background-position 1.3s cubic-bezier(.45, 0, .2, 1);
  }
  .area:hover .word, .area:focus-within .word { background-position: 0% 0; }
}

/* plays */
.plays { padding-top: clamp(120px, 18vh, 220px); }
.plays-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: end; margin-bottom: clamp(40px, 7vh, 72px); }
.plays-head h2 { grid-column: 1 / span 7; }
.plays-intro { grid-column: 9 / span 4; display: grid; gap: 16px; justify-items: start; }
.sheet { height: clamp(320px, 54vh, 600px); }
.sheet .pane-img { object-position: 50% 45%; }
/* mirrored so the red tail lights sit under the first plays; the glass is mirrored with it */
.sheet .pane-img, .sheet .glass { transform: scaleX(-1); }
.sheet .glass i { filter: grayscale(.3) brightness(.85); }
.sheet .glass i.clear { clip-path: inset(0 100% 0 0); } /* mirrored: wipes left to right on screen */
.kinds { display: grid; grid-template-columns: repeat(8, 1fr); margin-top: 14px; font-size: var(--small); color: var(--soft); }
.kinds span { grid-column: var(--from) / span var(--span); padding-right: 12px; }
.play-list { position: relative; }
.play-list.tabs { display: grid; grid-template-columns: repeat(8, 1fr); column-gap: 0; }
.play-tab {
  all: unset; box-sizing: border-box; display: block; width: 100%; cursor: pointer;
  font-size: 1rem; font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; color: var(--idle);
  transition: color .25s var(--ease);
}
.play-tab:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.tabs .play-tab { padding: 18px 14px 0 0; min-height: 88px; }
.tabs .play-tab:hover, .play.open .play-tab { color: var(--ink); }
.tabs .kind { display: none; }
.tabs .play dl { display: none; }
.tabs .play { display: contents; }
.tabs .play-name { grid-row: 1; }
.tabs .play.open dl {
  grid-row: 2; grid-column: 1 / -1;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); padding-top: clamp(28px, 4vh, 44px);
}
/* without script every play is open, set as a plain four-column index */
.play-list:not(.tabs):not(.accordion) { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 48px var(--gap); margin-top: 36px; }
.play-list:not(.tabs):not(.accordion) .play-tab { color: var(--ink); font-weight: 600; cursor: auto; }
.play-list:not(.tabs):not(.accordion) .kind { font-size: var(--small); color: var(--soft); margin: 2px 0 14px; }
.play-list:not(.tabs):not(.accordion) dl { display: grid; gap: 12px; font-size: 1rem; }
dt { font-weight: 600; margin-bottom: 6px; }
dd { color: var(--soft); max-width: 34ch; }
.accordion .play { padding-block: 4px; }
.accordion .play-tab { padding: 14px 0; font-size: 1.0625rem; color: var(--ink); }
.accordion .play-tab::after { content: " +"; color: var(--quiet); }
.accordion .play.open .play-tab::after { content: " −"; }
.accordion .kind { font-size: var(--small); color: var(--soft); margin-top: -10px; }
.accordion .play dl { display: none; }
.accordion .play.open dl { display: grid; gap: 14px; padding: 14px 0 18px; }

/* partner */
.partner { padding-top: clamp(120px, 18vh, 220px); padding-bottom: clamp(120px, 18vh, 220px); display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); row-gap: clamp(48px, 8vh, 88px); }
.partner-head { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: end; }
.partner-head h2 { grid-column: 1 / span 7; }
.partner-head .lead { grid-column: 9 / span 4; color: var(--soft); }
.partner-photo { grid-column: 1 / span 5; aspect-ratio: 4 / 5; overflow: hidden; }
.partner-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 42% 50%; }
.ways { grid-column: 7 / span 6; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vh, 64px) var(--gap); align-content: start; }
.ways h3 { margin-bottom: 8px; }

/* ---- The rising reveal, after the Framer "Scroll Gradient Reveal" ----
   A second world rises through the page as an ellipse that flattens as it climbs, its edge carrying the band.
   Layer a is the page; layer b is the same words in the other world, clipped to the ellipse.
   Without motion each reveal is layer a alone, and the hero keeps its photograph as a plate. */
.reveal .stage { position: relative; overflow: clip; }
.layer { position: relative; isolation: isolate; }
.layer.b, .rim, .grain { display: none; }
.layer.b .pane { position: absolute; inset: 0; z-index: -1; }
.hero .layer.b .pane::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 18, 34, .84) 0%, rgba(14, 18, 34, .72) 45%, rgba(14, 18, 34, .35) 100%); } /* taste-skill-ignore: scrim so the night copy reads over the photograph */
html:not(.sw) .hero .layer.b { display: block; height: clamp(300px, 46vh, 560px); margin: clamp(32px, 6vh, 64px) var(--m) 0; }
html:not(.sw) .hero .layer.b .copy { display: none; }
.close .layer.a { background: var(--bg); }
.close .copy { padding-block: clamp(120px, 20vh, 220px) clamp(64px, 10vh, 112px); display: flex; align-items: flex-end; justify-content: space-between; gap: 32px 48px; flex-wrap: wrap; }
.close .display { max-width: 11.5em; }

.sw .reveal { height: 190svh; }
.sw .hero.reveal { height: 200svh; }
.sw .reveal .stage { position: sticky; top: 0; height: 100svh; }
.sw .layer { position: absolute; inset: 0; display: flex; flex-direction: column; }
.sw .close .layer { justify-content: center; }
.sw .close .copy { padding-block: 0; }
.sw .layer .copy { width: 100%; }
.sw .layer.b { display: flex; clip-path: ellipse(var(--rx, 0px) var(--ry, 0px) at 50% var(--cy, 300%)); }
.sw .hero .layer.a { background: var(--bg); }
.sw .rim, .sw .grain { display: block; position: absolute; pointer-events: none; border-radius: 50%; }
/* the edge: a thin dusk line, then red, orange and amber falling off into a pale gold haze */
.sw .rim {
  left: calc(50% - var(--rx, 0px)); top: calc(var(--cy, 300%) - var(--ry, 0px)); width: calc(var(--rx, 0px) * 2); height: calc(var(--ry, 0px) * 2);
  box-shadow: 0 0 0 2px #2f5bb0, 0 0 10px 5px rgba(224, 68, 43, .95), 0 0 30px 14px rgba(232, 98, 32, .72), 0 0 72px 30px rgba(217, 134, 19, .5), 0 0 150px 64px rgba(242, 178, 92, .26); /* taste-skill-ignore: the band, as the glow of the rising night */
}
/* grain over the glow only: a noise tile, masked to fade out from the edge */
.sw .grain {
  --g: 150px;
  left: calc(50% - var(--rx, 0px) - var(--g)); top: calc(var(--cy, 300%) - var(--ry, 0px) - var(--g));
  width: calc((var(--rx, 0px) + var(--g)) * 2); height: calc((var(--ry, 0px) + var(--g)) * 2);
  background: url(img/grain.png) 0 0 / 128px 128px; opacity: .55;
  -webkit-mask-image: radial-gradient(closest-side, #000 calc(var(--gf, 90) * 1%), transparent 100%);
  mask-image: radial-gradient(closest-side, #000 calc(var(--gf, 90) * 1%), transparent 100%);
}
.foot { padding-block: 40px 48px; }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 28px; flex-wrap: wrap; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }
.credits { margin-top: 28px; font-size: var(--small); color: var(--soft); }

/* ---- The horizontal gradient reveal ----
   Each line carries one gradient three-ish times its width: final ink, the band, the quiet tone ahead.
   Moving the background from right to left carries the band across the line. */
.sw [data-sweep] { color: var(--quiet); }
.sw .ln {
  display: block; width: fit-content;
  color: transparent; -webkit-background-clip: text; background-clip: text;
  background-repeat: no-repeat;
  background-image: linear-gradient(90deg, var(--ink) 0 41.6%, var(--dusk) 46%, var(--red) 51%, var(--amber) 55.5%, var(--ahead) 58.4% 100%); /* taste-skill-ignore: the sweep band, the page's one gradient */
  background-size: 240% 100%;
  background-position: 100% 0;
}
/* scroll-driven: each line runs its own sweep as it climbs from the lower fifth to the middle of the screen */
@keyframes sweep { from { background-position: 100% 0; } to { background-position: 0% 0; } }
@supports (animation-timeline: view()) {
  .sw:not(.sw-js) [data-sweep]:not([data-sweep="hero"]):not([data-sweep="close"]) .ln {
    animation: sweep linear both;
    animation-timeline: view();
    animation-range: cover calc(12% + var(--k, 0) * 5%) cover calc(44% + var(--k, 0) * 5%);
  }
}
/* the hero is moved by script in pixels, so every line shares one vertical band (and the glass under it) */
.sw [data-sweep="hero"] .ln { background-size: calc(var(--hw, 1000px) * 2.4) 100%; background-position: calc(var(--x, -200px) - var(--hw, 1000px) * 1.2) 0; }

/* entrances: from an already-visible default, only when script marks a block below the fold */
.rise { opacity: 0; transform: translateY(20px); }
.rise.in { opacity: 1; transform: none; transition: opacity .9s var(--ease) var(--d, 0ms), transform .9s var(--ease) var(--d, 0ms); }

/* ---- smaller screens ---- */
@media (max-width: 1100px) {
    .belief h2 { grid-column: 1 / span 12; }
  .belief p { grid-column: 1 / span 9; padding-top: 0; }
  .plays-head h2, .partner-head h2 { grid-column: 1 / -1; }
  .plays-intro, .partner-head .lead { grid-column: 1 / span 9; }
  .ways { grid-column: 7 / -1; grid-template-columns: 1fr; }
  .partner-photo { grid-column: 1 / span 6; }
}
@media (max-width: 899px) {
  .kinds { display: none; }
  .sheet { height: 280px; }
  .play-list { margin-top: 20px; }
}
@media (max-width: 720px) {
  :root { --display: clamp(2.2rem, 9.9vw, 3.4rem); } /* phone headline at about 39px */
  .bar { height: 68px; }
  .hero .display { text-wrap: wrap; }
  .bar nav a:not(.btn):first-child { display: none; }
  .hero-foot { flex-direction: column; align-items: flex-start; }
  .figs { grid-template-columns: 1fr; row-gap: 44px; }
  .area { grid-template-columns: 1fr; row-gap: 14px; }
  .area > * { grid-column: 1 !important; }
  .area .word { grid-row: auto; margin-bottom: 8px; }
  .area ul { columns: 1; }
  .belief p, .plays-intro, .partner-head .lead { grid-column: 1 / -1; }
  .partner-photo, .ways { grid-column: 1 / -1; }
  .partner-photo { aspect-ratio: 4 / 3; }
  .ways { grid-template-columns: 1fr; }
  .close .copy { flex-direction: column; align-items: flex-start; }
}
