@font-face { font-family: 'Jost'; font-style: normal; font-display: swap; font-weight: 200; src: url(fonts/jost-latin-200-normal.woff2) format('woff2'); }
@font-face { font-family: 'Jost'; font-style: normal; font-display: swap; font-weight: 300; src: url(fonts/jost-latin-300-normal.woff2) format('woff2'); }
@font-face { font-family: 'Jost'; font-style: normal; font-display: swap; font-weight: 400; src: url(fonts/jost-latin-400-normal.woff2) format('woff2'); }

:root {
  --ink: #020204;
  --text: #e8eef5;
  --soft: #b4c2cc;
  --ice: #dbe8f8;
  --blue: #4fc8ff;
  --hair: rgba(219, 232, 248, .2);
  --gutter: max(20px, env(safe-area-inset-left));
  --font: 'Jost', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: transparent; color: var(--text); font: 300 18px/1.55 var(--font); overflow-x: hidden; }
#field { position: fixed; z-index: -1; inset: 0; width: 100%; height: 100%; display: block; transition: opacity .8s; }
main, .foot { position: relative; }
body.exploring { overflow: hidden; }
img { display: block; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; }
.kick { font: 400 15px/1.3 var(--font); letter-spacing: .24em; text-indent: .24em; text-transform: uppercase; color: var(--soft); }


/* ─── THE TOP BAR, once past the wordmark ─────────────────── */
.bar { position: fixed; z-index: 20; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: max(10px, env(safe-area-inset-top)) var(--gutter) 10px;
  opacity: 0; pointer-events: none; transition: opacity .4s; background: rgba(2,2,4,.62); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.bar.on { opacity: 1; pointer-events: auto; }
.barWord { font: 300 17px/1 var(--font); letter-spacing: .34em; text-decoration: none; color: #fff; padding: 12px 0; }
.barLink { font: 400 14px/1 var(--font); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: #fff; padding: 12px 14px; border: 1px solid rgba(255,255,255,.34); background: rgba(2,2,4,.3); }
@media (hover: hover) { .barLink:hover { background: var(--ice); color: var(--ink); } }


/* ─── THE WORDMARK ────────────────────────────────────────── */
.hero { position: relative; height: 190vh; height: 190svh; }
.heroStick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.heroBack { position: absolute; inset: 0; overflow: hidden; }
.heroBack picture { display: block; position: absolute; inset: 0; transform: scale(1.1); }
.heroBack img { width: 100%; height: 100%; object-fit: cover; }
.heroDark { position: absolute; inset: 0; background: radial-gradient(90% 40% at 50% 50%, rgba(2,2,4,.55), rgba(2,2,4,0)), linear-gradient(rgba(2,2,4,.58), rgba(2,2,4,.58)); }
.heroWord { position: relative; z-index: 1; display: grid; justify-items: center; padding: 0 var(--gutter); text-align: center; will-change: transform, opacity; }
.hero h1 { font: 200 clamp(64px, 19vw, 210px)/.9 var(--font); letter-spacing: .13em; padding-left: .13em;
  background: radial-gradient(62% 90% at 46% 42%, #ffffff 0%, #f2f7fd 45%, #dbe8f8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.glow { width: min(560px, 74vw); height: 1px; margin-top: clamp(12px, 2vw, 22px);
  background: linear-gradient(90deg, rgba(2,2,4,0) 0%, rgba(79,200,255,.85) 22%, rgba(255,255,255,.95) 50%, rgba(79,200,255,.85) 78%, rgba(2,2,4,0) 100%); }
.heroWord p { margin-top: clamp(18px, 3vh, 30px); font: 300 clamp(21px, 2.5vw, 32px)/1.3 var(--font); color: #fff; text-wrap: balance; }
.cue { position: absolute; z-index: 1; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); width: 1px; height: 40px;
  background: linear-gradient(#BDDDED, rgba(189,221,237,0)); transform-origin: top; animation: cue 2.4s ease-in-out infinite; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 0; } 30% { opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }


/* ─── THE BIG LINES ───────────────────────────────────────── */
.say { padding: clamp(84px, 17vh, 190px) var(--gutter); text-align: center; }
.say p { max-width: 21em; margin: 0 auto; font: 200 clamp(33px, 4.9vw, 70px)/1.18 var(--font); letter-spacing: -.005em; color: #fff; text-wrap: balance; text-shadow: 0 0 26px rgba(2,2,4,.85); }
.say p span { transition: opacity .25s linear; }
.saySmall p { max-width: 27em; font: 300 clamp(25px, 2.9vw, 40px)/1.34 var(--font); color: var(--text); text-wrap: pretty; }

/* The tiles. The numbers stay big, but never so big that the writing under them looks like a footnote. */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; max-width: 1320px; margin: 0 auto; padding: clamp(40px, 8vh, 90px) var(--gutter); }
.box { position: relative; overflow: hidden; grid-column: span 12; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; min-height: 330px; padding: clamp(22px, 2.6vw, 38px);
  background: rgba(10,15,22,.66); border: 1px solid rgba(255,255,255,.13); box-shadow: inset 0 1px 0 rgba(255,255,255,.34); }
.box p { position: relative; font: 300 clamp(24px, 2.25vw, 33px)/1.26 var(--font); color: #fff; text-wrap: pretty; }
.box .boxBig { font: 200 clamp(92px, 11vw, 168px)/.95 var(--font); letter-spacing: -.015em; }
.box .boxSay { font: 200 clamp(36px, 3.7vw, 56px)/1.1 var(--font); text-wrap: balance; }
.box .boxWord { font-size: clamp(64px, 7.4vw, 112px); white-space: nowrap; transition: opacity .3s, transform .3s; }
.box .boxWord.out { opacity: 0; transform: translateY(10px); }
.boxPic { background: var(--pic) center / cover no-repeat #000; }
.boxPic::before { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(2,2,4,.18), rgba(2,2,4,.84)); }
@media (min-width: 800px) { .box7 { grid-column: span 7; } .box5 { grid-column: span 5; } .box { min-height: clamp(340px, 46vh, 460px); } }
@media (hover: hover) and (min-width: 800px) { .box:not(.boxPic) { background: rgba(10,15,22,.42); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); } }

.about { padding: clamp(84px, 17vh, 190px) var(--gutter); text-align: center; text-shadow: 0 0 22px rgba(2,2,4,.9); }
.about p:not(.kick) { max-width: 25em; margin: 26px auto 0; font: 300 clamp(24px, 2.6vw, 36px)/1.38 var(--font); color: var(--text); text-wrap: pretty; }


/* ─── THE CAROUSEL ────────────────────────────────────────── */
.pin { position: relative; height: 330vh; height: 330svh; }
.pinIn { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(20px, 5vh, 54px); padding: 0 var(--gutter); }
.ring { position: relative; width: 100%; max-width: 1200px; height: clamp(150px, 34vh, 340px); perspective: 1200px; overflow: hidden; }
.ringIn { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.face { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.face span { font: 200 clamp(54px, 16.5vw, 156px)/1 var(--font); letter-spacing: .01em; color: #fff; }
.sum { font: 300 clamp(24px, 3.2vw, 44px)/1.3 var(--font); text-align: center; color: rgba(219,232,248,.5); text-shadow: 0 0 22px rgba(2,2,4,.9); }
.sumPart { display: inline-block; white-space: nowrap; }
.sum b { font-weight: 300; transition: color .4s; }
.sum b.on { color: #fff; }


/* ─── THE GLASS GALLERY ───────────────────────────────────── */
.gallery { --gap: 10px; --card: calc(100vw - 56px); --pic: var(--card);
  min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 72px 0 max(18px, env(safe-area-inset-bottom)); }
.galleryHead { padding: 0 var(--gutter); text-align: center; }
.galleryHead h2 { margin-top: 8px; font: 200 clamp(28px, 4vw, 52px)/1.14 var(--font); color: #fff; text-wrap: balance; }

.feed { display: flex; gap: var(--gap); margin-top: clamp(18px, 3vh, 30px); overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; overscroll-behavior-x: contain; cursor: grab; }
.feed::-webkit-scrollbar { display: none; }
.feed:focus-visible { outline: none; }
.feed.dragging { cursor: grabbing; scroll-snap-type: none; }
.feed::before, .feed::after { content: ''; flex: 0 0 calc((100% - var(--card)) / 2 - var(--gap)); }

.post { flex: 0 0 var(--card); width: var(--card); scroll-snap-align: center; scroll-snap-stop: always; background: rgba(10,15,22,.86); box-shadow: inset 0 1px 0 rgba(255,255,255,.3); opacity: .38; transition: opacity .35s; display: flex; flex-direction: column; }
.post.on { opacity: 1; }
.postHead { display: flex; align-items: center; gap: 12px; padding: 12px; min-height: 92px; }
.postHead h3 { font: 300 22px/1.14 var(--font); color: #fff; text-wrap: balance; }
.postHead p { margin-top: 5px; font: 400 15px/1.2 var(--font); letter-spacing: .2em; text-transform: uppercase; color: var(--blue); }
.postText { display: contents; }
.postHead { order: 0; } .postPic { order: 1; } .postCap { order: 2; }
.tile { flex: 0 0 auto; position: relative; display: grid; place-items: center; width: 56px; height: 56px; overflow: hidden;
  background: linear-gradient(145deg, rgba(255,255,255,.2), rgba(255,255,255,.03) 46%, rgba(79,200,255,.14));
  border: 1px solid rgba(255,255,255,.2); box-shadow: inset 0 1px 0 rgba(255,255,255,.65), 0 0 22px rgba(79,200,255,.14);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.tile::after { content: ''; position: absolute; left: -30%; top: -60%; width: 60%; height: 200%; transform: rotate(24deg); background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.18), rgba(255,255,255,0)); }
.tile svg { width: 36px; height: 36px; fill: none; stroke: url(#ice); stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 4px rgba(79,200,255,.55)); }
.postPic { display: block; width: var(--pic); height: var(--pic); padding: 0; border: 0; background: #000; cursor: pointer; flex: 0 0 auto; -webkit-tap-highlight-color: transparent; }
.postPic img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.postCap { padding: 12px; min-height: 92px; font: 300 18px/1.36 var(--font); color: var(--text); }
.postCap b { display: block; font-weight: 400; color: #fff; }

.ticks { display: flex; justify-content: center; gap: 7px; margin-top: 14px; }
.ticks i { width: 7px; height: 7px; background: rgba(219,232,248,.26); transition: background .3s; }
.ticks i.on { background: var(--blue); }

.controls, .viewerBar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; justify-items: center; width: 100%; max-width: 620px; margin: 10px auto 0; padding: 0 8px; }
.controls button, .viewerBar button { min-height: 50px; min-width: 50px; padding: 0 10px; font: 400 15px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: #fff; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.controls .main, .viewerBar .main { padding: 0 24px; color: var(--ink); background: var(--ice); }
@media (hover: hover) {
  .controls button:not(.main):hover, .viewerBar button:not(.main):hover { color: var(--blue); }
  .controls .main:hover, .viewerBar .main:hover { background: #fff; }
}

/* Laptops and desktops: picture on the left, words on the right, like a post opened up. */
@media (min-width: 900px) and (orientation: landscape) {
  .gallery { --pic: clamp(340px, calc(100svh - 284px), 640px); --panel: clamp(300px, 28vw, 400px); --card: calc(var(--pic) + var(--panel)); --gap: 14px; }
  .post { flex-direction: row; flex-wrap: wrap; height: var(--pic); }
  .postPic { order: -1; }
  .postText { display: flex; flex-direction: column; min-width: 0; width: var(--panel); height: var(--pic); padding: 22px; }
  .postHead { flex-direction: column; align-items: flex-start; gap: 18px; padding: 0; min-height: 0; }
  .postHead h3 { font-size: clamp(30px, 2.9vw, 42px); font-weight: 200; }
  .postHead p { margin-top: 10px; font-size: 15px; }
  .postCap { padding: 0; margin-top: 18px; min-height: 0; font-size: clamp(19px, 1.6vw, 23px); }
}
/* Very short screens: the picture has the room, so the heading closes up. */
@media (max-height: 640px) and (orientation: landscape) { .gallery { padding-top: 56px; } .galleryHead h2 { font-size: 24px; } .galleryHead .kick { display: none; } }


/* ─── EXPLORE SCAN ────────────────────────────────────────── */
.viewer { position: fixed; z-index: 50; inset: 0; display: flex; flex-direction: column; background: #000; }
.viewer[hidden] { display: none; }
.viewerStage { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.viewerStage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #000; }
.viewerLoad { position: absolute; z-index: 1; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 0 var(--gutter); text-align: center; background: #000; font: 200 clamp(26px, 3.4vw, 44px)/1.2 var(--font); color: #fff; transition: opacity .5s; }
.viewerLoad i { display: block; width: 180px; height: 1px; background: linear-gradient(90deg, rgba(2,2,4,0), var(--blue), rgba(2,2,4,0)); animation: load 1.6s ease-in-out infinite; }
.viewerLoad.off { opacity: 0; pointer-events: none; }
@keyframes load { 0%, 100% { opacity: .25; transform: scaleX(.5); } 50% { opacity: 1; transform: scaleX(1); } }
.viewerBar { flex: 0 0 auto; max-width: none; margin: 0; padding: 4px 8px max(4px, env(safe-area-inset-bottom)); background: var(--ink); border-top: 1px solid var(--hair); }
.viewerBar > * { max-width: 100%; }


/* ─── THE HERO SHOT ───────────────────────────────────────── */
.reel { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; display: flex; align-items: flex-end; }
.reelClip { position: absolute; inset: 0; overflow: hidden; background: #000; }
.reelPic { position: absolute; inset: 0; }
.reelPic img, .reelPic video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reelPic img { animation: drift 7s linear forwards; }
@keyframes drift { from { transform: scale(1.02) translate3d(-1.2%, .6%, 0); } to { transform: scale(1.13) translate3d(1.2%, -.8%, 0); } }
.reelBlack { position: absolute; inset: 0; background: #000; opacity: 1; transition: opacity .7s ease-in-out; }
.reelBlack.off { opacity: 0; }
.reelClip::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.05) 25%, rgba(0,0,0,.84) 78%, rgba(0,0,0,.92)); pointer-events: none; }
.reelWords { position: relative; z-index: 1; max-width: 1100px; padding: 0 var(--gutter) clamp(36px, 8vh, 80px); }
.reelWords p { font: 300 clamp(23px, 2.5vw, 34px)/1.32 var(--font); color: #fff; text-wrap: pretty; max-width: 32em; }
.reelWords h2 { margin-top: clamp(14px, 2.4vh, 26px); font: 200 clamp(42px, 7.2vw, 104px)/1.05 var(--font); color: #fff; text-wrap: balance; }


/* ─── CONTACT ─────────────────────────────────────────────── */
.contact { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; display: grid; place-items: center; padding: 64px 16px max(48px, env(safe-area-inset-bottom)); }
.contactBack, .contactBack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.panel { position: relative; width: 100%; max-width: 540px; padding: 28px 22px; display: grid; gap: 16px;
  background: rgba(12,18,26,.48); border: 1px solid rgba(255,255,255,.2); box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
  -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3); }
.panel h2 { font: 200 clamp(32px, 5vw, 44px)/1.14 var(--font); color: #fff; text-wrap: balance; }
.panel > p { color: var(--text); font-size: 19px; font-weight: 400; line-height: 1.42; }
.panel label { display: grid; gap: 6px; font: 400 16px/1.3 var(--font); color: var(--text); }
.panel input, .panel textarea { width: 100%; min-height: 48px; padding: 11px 13px; font: 400 16px/1.35 var(--font); color: #fff; background: rgba(2,2,4,.42); border: 1px solid rgba(255,255,255,.3); border-radius: 0; appearance: none; -webkit-appearance: none; }
.panel textarea { resize: vertical; display: block; }
.panel input:focus, .panel textarea:focus { outline: 2px solid var(--ice); outline-offset: 1px; border-color: transparent; }
.panel button { min-height: 54px; margin-top: 4px; font: 400 15px/1 var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--ink); background: var(--ice); border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
@media (hover: hover) { .panel button:hover { background: #fff; } }
.panel .note { font-size: 16px; font-weight: 400; line-height: 1.4; }
.panel .note a { color: #fff; }
@media (min-width: 600px) { .panel { padding: 38px 36px; } }

.foot { display: flex; text-shadow: 0 0 16px rgba(2,2,4,.9); flex-wrap: wrap; justify-content: center; gap: 8px 26px; padding: 26px var(--gutter) max(26px, env(safe-area-inset-bottom)); font: 300 16px/1.3 var(--font); color: var(--soft); }
.foot a { text-decoration: none; }
.foot span:first-child { letter-spacing: .3em; }


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cue, .viewerLoad i, .reelPic img { animation: none; }
  /* The carousel stops turning and just shows the sum. */
  .pin, .hero { height: auto; }
  .heroStick { position: relative; }
  .say p span { opacity: 1 !important; }
  .pinIn { position: relative; height: auto; padding-top: 80px; padding-bottom: 80px; }
  .ring { display: none; }
  .sum { font: 200 clamp(31px, 4.7vw, 66px)/1.3 var(--font); color: #fff; }
}
