/* 6TEN Ventures. Colours and type come from the brand guide. */
@font-face { font-family: "Archivo"; src: url("/fonts/archivo-var.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --black: #0B0B0C; --ivory: #F3F1EC; --teal: #0A91B1; --teal-bright: #16B4D9; --teal-deep: #07728B;
  --stone: #D9D6CF; --grey: #4A4945; --grey-dark: #C9C7C1; --grey-mid: #B9B7B1;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "Courier New", monospace;
  --gutter: clamp(20px, 4vw, 56px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--black); }
body { margin: 0; background: var(--black); color: var(--ivory); font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.mono { font-family: var(--mono); }
.wrap { padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 12px 16px; background: var(--ivory); color: var(--black); font-family: var(--mono); }
.skip:focus { top: 12px; }
.dot-stop { display: inline-block; width: 0.16em; height: 0.16em; margin-left: 0.04em; border-radius: 50%; background: var(--teal); }
.nowrap { white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font-family: var(--mono); font-weight: 500; font-size: 15px; text-decoration: none; transition: background .25s, border-color .25s, color .25s, transform .25s; }
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-teal { background: var(--teal); color: var(--black); }
.btn-teal:hover { background: var(--teal-bright); }
.btn-ghost { border: 1px solid rgba(243, 241, 236, .35); color: var(--ivory); background: var(--black); }
.btn-ghost:hover { border-color: var(--ivory); }
.btn-ink { background: var(--black); color: var(--ivory); }
.btn-ink:hover { background: var(--teal-deep); }
.btn-line { border: 1px solid var(--black); color: var(--black); }
.btn-line:hover { border-color: var(--teal-deep); color: var(--teal-deep); }

/* Header */
.site-header { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: calc(28px + env(safe-area-inset-top, 0px)); padding-bottom: 28px; }
.site-header .logo { display: flex; }
.site-header .logo svg { height: 26px; width: auto; }
.nav { display: flex; gap: 28px; font-family: var(--mono); font-size: 14px; }
.nav a { color: var(--grey-mid); text-decoration: none; transition: color .2s; }
.nav a:hover { color: var(--ivory); }
.menu-btn { display: none; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(243, 241, 236, .3); background: transparent; color: var(--ivory); font: 500 14px var(--mono); cursor: pointer; }
.menu-panel { display: none; }

/* Hero */
.hero { position: sticky; top: 0; z-index: 1; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; display: flex; flex-direction: column; background: var(--black); }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-main { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; justify-content: center; padding-bottom: clamp(36px, 5vw, 72px); pointer-events: none; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; max-width: min(620px, 46vw); pointer-events: auto; }
.hero h1 { margin: 0; font-weight: 800; font-stretch: 112%; font-size: clamp(60px, 8.4vw, 136px); line-height: .9; letter-spacing: -.045em; padding-bottom: .06em; }
.hero h1 span.line { display: block; }
.hero-sub { margin: 0; max-width: 40ch; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.5; color: var(--grey-dark); }
.hero-sub > span { display: block; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.fade { opacity: 0; transform: translateY(14px); }
.go .fade { animation: fade .9s ease forwards; }
.go .f0 { animation-delay: .1s; } .go .f1 { animation-delay: 1.9s; } .go .f2 { animation-delay: 2.05s; }
@keyframes fade { to { opacity: 1; transform: translateY(0); } }

/* Story panels: headline top left, what we do on the right. JS gives all three the same height. */
.panel { position: sticky; top: 0; z-index: 2; overflow: hidden; scroll-margin-top: 0; }
.panel-inner { box-sizing: border-box; min-height: var(--panel-h, auto); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; column-gap: clamp(32px, 5vw, 96px); padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(40px, 6vw, 88px); transform-origin: bottom left; will-change: transform; }
.panel h2 { margin: 0; font-weight: 800; font-stretch: 112%; font-size: clamp(56px, 9vw, 150px); line-height: .9; letter-spacing: -.045em; }
.panel h2 .row { display: block; overflow: hidden; padding-bottom: .16em; margin-bottom: -.1em; }
.panel h2 .ch { display: inline-block; transform: translateY(105%); }
.p-body { display: flex; flex-direction: column; gap: clamp(16px, 1.5vw, 22px); max-width: 560px; }
.p-intro { margin: 0; font-weight: 600; font-size: clamp(21px, 1.9vw, 28px); line-height: 1.3; letter-spacing: -.01em; text-wrap: balance; }
.p-points { margin: 0; padding: 0; list-style: none; }
.p-points li { padding: 13px 0; border-top: 1px solid var(--rule); font-size: clamp(16px, 1.25vw, 19px); line-height: 1.5; color: var(--soft); text-wrap: pretty; }
.p-points strong { font-weight: 700; color: var(--fg); }
.p-points a { color: var(--fg); white-space: nowrap; }
.p-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }
.p-ivory .panel-inner { --fg: var(--black); --soft: var(--grey); --rule: rgba(11, 11, 12, .16); background: var(--ivory); color: var(--black); }
.p-teal .panel-inner { --fg: var(--black); --soft: var(--black); --rule: rgba(11, 11, 12, .22); background: var(--teal); color: var(--black); }
.p-teal .dot-stop { background: var(--ivory); }
.p-black .panel-inner { --fg: var(--ivory); --soft: var(--grey-dark); --rule: rgba(243, 241, 236, .16); background: var(--black); color: var(--ivory); }

/* Ivory sections */
.light { position: relative; z-index: 10; background: var(--ivory); color: var(--black); }
.ways { padding-top: clamp(64px, 10vw, 140px); padding-bottom: clamp(56px, 8vw, 112px); }
.ways > h2 { margin: 0 0 clamp(40px, 5vw, 72px); max-width: 16ch; font-weight: 800; font-stretch: 112%; font-size: clamp(44px, 6vw, 96px); line-height: .92; letter-spacing: -.045em; text-wrap: balance; }
.ways-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: clamp(32px, 4vw, 56px); align-items: stretch; }
.way { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding-top: 28px; border-top: 2px solid var(--black); scroll-margin-top: 24px; }
.way > div { display: flex; flex-direction: column; gap: 16px; }
.way h3 { margin: 0; font-weight: 800; font-stretch: 112%; font-size: clamp(36px, 3.8vw, 60px); line-height: .95; letter-spacing: -.04em; }
.way p, .events p.small { margin: 0; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.5; color: var(--grey); text-wrap: pretty; }
.way p a { color: var(--black); white-space: nowrap; }
.events { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-top: clamp(56px, 7vw, 96px); padding: clamp(28px, 3vw, 40px) 0; border-top: 1px solid var(--stone); border-bottom: 1px solid var(--stone); scroll-margin-top: 24px; }
.events h2 { margin: 0; font-weight: 800; font-stretch: 112%; font-size: clamp(26px, 2.6vw, 40px); letter-spacing: -.03em; text-wrap: balance; }

/* Footer */
.site-footer { position: relative; z-index: 10; background: var(--black); color: var(--ivory); padding-top: clamp(48px, 7vw, 96px); overflow: hidden; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; align-items: flex-start; font-family: var(--mono); font-size: 14px; }
.foot-row nav { display: flex; flex-wrap: wrap; gap: 28px; }
.foot-row a { color: var(--grey-mid); text-decoration: none; }
.foot-row a:hover { color: var(--ivory); }
.foot-meta { display: flex; flex-direction: column; gap: 8px; color: var(--grey-mid); }
.foot-meta .email { user-select: all; }
.foot-mark { display: block; width: 100%; height: auto; margin-top: clamp(40px, 6vw, 80px); margin-bottom: -4%; }

/* Intro (first visit) */
.intro { display: none; }
.js .intro { display: block; position: fixed; inset: 0; z-index: 100; background: var(--black); cursor: pointer; transition: opacity .6s ease; }
.js .intro canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.no-intro .intro, .intro.gone { display: none !important; }
.intro.out { opacity: 0; pointer-events: none; }
.intro-skip { position: absolute; right: max(20px, env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); min-height: 44px; padding: 0 16px; border: 0; background: transparent; color: var(--grey-mid); font: 400 13px var(--mono); cursor: pointer; }

/* Cursor dot (mouse only) */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .has-cursor, .has-cursor a, .has-cursor button { cursor: none; }
  .has-cursor .cursor { display: block; position: fixed; left: 0; top: 0; z-index: 150; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: var(--teal); box-shadow: inset 0 0 0 0 var(--ivory); pointer-events: none; opacity: 0; transform: translate(-100px, -100px) scale(.35); transition: transform .2s cubic-bezier(.2, .7, .2, 1), opacity .2s, background .2s, box-shadow .2s; }
  .has-cursor .cursor.on { opacity: 1; }
  .has-cursor .cursor.big { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ring, var(--ivory)); }
}

/* Phones */
@media (max-width: 760px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .menu-panel.open { display: flex; position: absolute; z-index: 4; left: 0; right: 0; top: 84px; flex-direction: column; gap: 4px; padding-top: 8px; padding-bottom: 20px; background: var(--black); font-family: var(--mono); font-size: 18px; }
  .menu-panel a { display: flex; align-items: center; min-height: 48px; color: var(--ivory); text-decoration: none; }
  .hero { height: auto; min-height: 100svh; }
  .hero-main { justify-content: flex-end; padding-top: 40vh; }
  .hero-copy { max-width: 100%; }
  .panel-inner { display: flex; flex-direction: column; gap: 32px; }
  .panel h2 { font-size: min(17vw, 96px); }
}
@media (prefers-reduced-motion: reduce) {
  .fade, .go .fade { animation: none; opacity: 1; transform: none; }
  .panel h2 .ch { transform: none; }
  .panel-inner { transform: none !important; }
  .js .intro { display: none; }
}
