/* ---------- Tokens ---------- */
:root {
  /* Black side: the creative work */
  --ink: #050505;
  --ink-2: #121212;        /* contact sheet strip */
  --cream: #f3f3ef;        /* text on black */
  --cream-dim: #8c918d;
  --accent: #2fd17c;       /* green on black */
  /* Green side: entrepreneur + menu */
  --green: #0b3d2c;        /* deep forest */
  --green-2: #0f4a36;
  --green-ink: #f3f3ef;
  --green-accent: #7ef0b0; /* mint on forest */
  /* White side: entrepreneur */
  --paper: #f7f7f4;
  --paper-ink: #050505;
  --paper-accent: #0b7a4b; /* green that reads on white */
  --line: rgba(243, 243, 239, .14);
  --rail: 58px;
  --gutter: clamp(16px, 2.4vw, 36px);
  --sans: "Archivo", system-ui, sans-serif;
  --script: "Allura", cursive;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-right: var(--rail);
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--accent); color: var(--ink); }

/* Narrow sans labels (contact-sheet markings, nav, meta) */
.mono, .rail, .menu__close, .project__back, .vrow__meta, .vrow__n, .menu__list a span, .media.is-placeholder::before {
  font-family: var(--sans);
  font-variation-settings: "wdth" 72;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .09em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.mono b { color: var(--accent); font-weight: 700; }

/* Wide, heavy display caps */
.wordmark, .hero__name, .section-head h2, .vlist__name, .project__title, .bigmail, .menu__list a {
  font-variation-settings: "wdth" 125;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.01em;
}

/* Script: used sparingly, always in green */
.script {
  font-family: var(--script); font-weight: 400; font-variation-settings: normal;
  text-transform: none; letter-spacing: 0; color: var(--accent); line-height: 1;
}
.note { display: inline-block; font-size: .5em; margin-left: .25em; transform: translateY(.18em) rotate(-7deg); white-space: nowrap; }

/* ---------- Film grain ---------- */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(4) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 25%{transform:translate(-3%,2%)} 50%{transform:translate(2%,-3%)} 75%{transform:translate(-2%,-1%)} }

/* ---------- Wordmark ---------- */
.wordmark { position: fixed; z-index: 40; left: var(--gutter); top: var(--gutter); font-size: 14px; mix-blend-mode: difference; color: #fff; display: flex; align-items: center; gap: 10px; }
.wordmark__logo { height: 22px; width: auto; display: block; }

/* ---------- Right-edge rail ---------- */
.rail {
  position: fixed; z-index: 45; top: 0; right: 0; bottom: 0; width: var(--rail);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 22px 0; background: var(--ink); border-left: 1px solid var(--line); letter-spacing: .14em;
}
.rail__menu { writing-mode: vertical-rl; font-weight: 700; color: var(--accent); }
.rail__links { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.rail__links a { writing-mode: vertical-rl; transform: rotate(180deg); color: var(--cream-dim); transition: color .25s; position: relative; }
.rail__links a:hover, .rail__links a.is-active { color: var(--cream); }
.rail__links a.is-active::after { content: ""; position: absolute; left: -10px; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); transform: translateY(-50%); }
.rail__loc { writing-mode: vertical-rl; transform: rotate(180deg); color: var(--cream-dim); }
.mobile-menu { display: none; }

/* ---------- Menu: page greys out, green panel slides in from the right ---------- */
#page, .wordmark, .rail { transition: filter .6s var(--ease), transform .6s var(--ease); }
body.menu-open #page { filter: grayscale(1) brightness(.4); transform: translateX(-3vw); }
body.menu-open .wordmark, body.menu-open .rail { filter: grayscale(1) brightness(.4); }
.menu { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.menu__scrim { position: absolute; inset: 0; }
.menu__panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(460px, 100%);
  background: var(--green); color: var(--green-ink);
  padding: var(--gutter); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .6s var(--ease);
}
body.menu-open .menu { pointer-events: auto; }
body.menu-open .menu__panel { transform: none; }
.menu__close { align-self: flex-end; color: var(--green-accent); }
.menu__list { margin-top: auto; }
/* sized from the panel width so the longest word (ENTREPRENEUR, ~10.8em wide) always fits */
.menu__panel { container-type: inline-size; }
.menu__list a { display: flex; align-items: baseline; gap: 14px; font-size: min(52px, calc((100cqw - 44px) / 11)); line-height: 1.05; padding: 6px 0; transition: transform .4s var(--ease), color .25s; }
.menu__list a span { color: var(--green-accent); }
.menu__list a:hover { transform: translateX(-10px); color: var(--green-accent); }
.menu__foot { margin-top: 40px; display: flex; justify-content: space-between; font-size: 13px; border-top: 1px solid rgba(243,243,239,.18); padding-top: 14px; }

/* ---------- Hero: Moving / Still ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; display: flex; flex-direction: column; }
.split { flex: 1; display: flex; gap: 6px; padding: 64px var(--gutter) 0; }
.half { position: relative; flex: 1; transition: flex-grow .8s var(--ease); overflow: hidden; }
.half .media { position: absolute; inset: 0; transition: transform 1.2s var(--ease), filter .6s; filter: saturate(.85); }
.split:hover .half { flex-grow: .7; }
.split .half:hover { flex-grow: 1.5; }
.split .half:hover .media { transform: scale(1.04); filter: saturate(1); }
/* A 16:9 Vimeo loop that covers its box like object-fit: cover */
.half .media { container-type: size; }
.media iframe.bg-embed {
  inset: auto; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: max(100cqw, 177.78cqh); height: max(100cqh, 56.25cqw); pointer-events: none;
}
.half__tag { position: absolute; top: 14px; z-index: 2; color: var(--cream); }
.half--film .half__tag { left: 14px; }
.half--photo .half__tag { right: 14px; }
.hero__name {
  position: absolute; left: 0; right: 0; bottom: 118px; z-index: 3; pointer-events: none;
  display: flex; justify-content: space-between; padding: 0 var(--gutter);
  font-size: clamp(44px, 7.2vw, 150px); line-height: .8; color: var(--cream); mix-blend-mode: difference;
}
.hero__name span { display: block; opacity: 0; transform: translateY(30%); animation: rise 1.1s var(--ease) forwards; }
.hero__name span + span { animation-delay: .12s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.hero__line { height: 118px; display: flex; align-items: center; flex-wrap: wrap; gap: .35em; padding: 0 var(--gutter); font-size: clamp(16px, 1.5vw, 21px); font-weight: 300; color: var(--cream-dim); }
.hero__line .amp { font-size: 2.3em; margin: 0 .05em; transform: translateY(.08em); }
/* the two featured titles */
.hero__line .role {
  color: var(--cream); font-size: 1.32em; font-weight: 800; font-variation-settings: "wdth" 125;
  text-transform: uppercase; letter-spacing: -.005em; line-height: 1;
  border-bottom: 2px solid var(--accent); padding-bottom: 2px; transition: color .25s;
}
.hero__line .role:hover { color: var(--accent); }

/* ---------- Media + placeholders ---------- */
.media { position: relative; overflow: hidden; background: var(--tone, #1a1a1a); }
.media img, .media video, .media iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
.media .still { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s var(--ease); overflow: hidden; }
.media .still.is-on { opacity: 1; }
.media .still img.still__fill { object-fit: cover; filter: blur(28px) brightness(.55); transform: scale(1.15); }
.media .still img.still__photo { object-fit: contain; }
.media.is-placeholder {
  background:
    radial-gradient(120% 90% at 30% 20%, color-mix(in srgb, var(--tone) 70%, #fff 14%), transparent 60%),
    radial-gradient(90% 90% at 80% 90%, color-mix(in srgb, var(--tone) 80%, #000 45%), transparent 70%),
    var(--tone);
}
.media.is-placeholder::before { content: attr(data-label); position: absolute; left: 12px; bottom: 10px; color: rgba(255,255,255,.5); font-size: 10px; }
.media .preview { opacity: 0; transition: opacity .35s; }
.frame:hover .media .preview { opacity: 1; }

/* ---------- Latest work ---------- */
.latest { padding: 14vh var(--gutter) 18vh; }
.latest__bar { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 10px; color: var(--cream-dim); }
.latest__bar span:first-child { color: var(--accent); }
.latest__play { color: var(--accent); cursor: pointer; white-space: nowrap; }
.latest__frame { aspect-ratio: 16 / 9; width: 100%; cursor: pointer; }
.latest__frame:not(:has(iframe))::after {
  content: "▶"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 84px; height: 84px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--accent); background: rgba(5, 5, 5, .45); backdrop-filter: blur(6px);
  color: var(--cream); font-size: 22px; transition: background .3s, color .3s;
}
.latest__frame:hover:not(:has(iframe))::after { background: var(--accent); color: var(--ink); }
.latest__info { display: grid; grid-template-columns: 7fr 5fr; gap: 6vw; align-items: end; margin-top: 4vh; }
.latest__title {
  font-size: clamp(36px, 6.4vw, 120px); line-height: .9; font-weight: 800; text-transform: uppercase;
  font-variation-settings: "wdth" 125; letter-spacing: -.01em;
}
.latest__blurb { font-size: clamp(16px, 1.3vw, 20px); line-height: 1.45; color: var(--cream); margin-bottom: 18px; }
.latest__more { color: var(--accent); }
.latest__more:hover { color: var(--cream); }

/* ---------- Section heads ---------- */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; padding: 0 var(--gutter) 6vh; }
.section-head h2 { font-size: clamp(36px, 7vw, 112px); line-height: .9; }
/* When the menu jumps to a section, leave room for the fixed logo so the heading isn't hidden */
#latest, #work, #entrepreneur, #info, #contact { scroll-margin-top: 64px; }

/* Pinned filter bar for the work grid */
.work__bar {
  position: sticky; top: 0; z-index: 30; display: flex; justify-content: flex-end;
  padding: 20px var(--gutter) 14px; background: rgba(5, 5, 5, .9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.filters { display: flex; gap: 22px; }
.filters a { color: var(--cream-dim); transition: color .25s; padding-bottom: 2px; }
.filters a.is-active, .filters a:hover { color: var(--cream); }
.filters a.is-active { border-bottom: 1px solid var(--accent); }
.kicker { font-size: clamp(15px, 1.3vw, 18px); font-weight: 300; max-width: 46ch; }
.work__intro { margin-top: 1.6em; color: var(--cream-dim); }

/* ---------- Work: contact sheet ---------- */
.work { padding-bottom: 20vh; }
.sheet {
  margin: 0 var(--gutter); background-color: var(--ink-2); padding: 34px 18px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 46px 14px; position: relative;
  /* sprocket holes along top and bottom edges */
  background-image:
    repeating-linear-gradient(90deg, var(--ink) 0 12px, transparent 12px 30px),
    repeating-linear-gradient(90deg, var(--ink) 0 12px, transparent 12px 30px);
  background-size: 100% 9px, 100% 9px;
  background-position: 0 12px, 0 calc(100% - 12px);
  background-repeat: no-repeat;
}
/* Wear and tear: scratches, dust and hairs over the whole sheet, plus darker, handled edges */
.sheet::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: url(assets/sheet-wear.svg) 0 0 / 700px 1000px repeat;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, .55), inset 0 0 6px rgba(0, 0, 0, .6);
}
/* Grease-pencil marks */
.frame__pen { position: absolute; z-index: 3; pointer-events: none; overflow: visible; fill: none; stroke-linecap: round; stroke-linejoin: round; filter: url(#grease); opacity: .88; }
.pen--check { width: 46px; right: -12px; top: 14px; transform: rotate(4deg); }
.pen--circle { width: 72px; left: -12px; top: -11px; }
.pen--star { width: 34px; right: 12px; bottom: 44px; transform: rotate(-8deg); }
.pen--underline { width: 58%; height: 12px; left: -2px; bottom: -10px; }
.pen--arrow { width: 42px; left: -22px; top: 32%; transform: rotate(-6deg); }
.pen--yes { width: 78px; right: -14px; top: -16px; transform: rotate(-9deg); }
.pen--yes text { font-family: var(--script); font-size: 38px; stroke: none; }
.frame { position: relative; display: block; }
.frame.is-hidden { display: none; }
.frame__edge { display: flex; justify-content: space-between; color: var(--accent); margin-bottom: 6px; opacity: .9; }
.frame .media { aspect-ratio: 3 / 2; }
.frame__cap { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; color: var(--cream-dim); }
.frame__cap span:first-child { color: var(--cream); }
/* grease-pencil mark on hover */
.frame__mark {
  position: absolute; inset: 10px -10px -14px -10px; pointer-events: none;
  border: 2.5px solid var(--accent);
  border-radius: 46% 54% 42% 58% / 58% 40% 60% 42%;
  transform: rotate(-2deg) scale(.96); opacity: 0;
  transition: opacity .25s, transform .45s var(--ease);
}
.frame:hover .frame__mark { opacity: .95; transform: rotate(-1deg) scale(1); }
.frame:nth-child(even) .frame__mark { border-radius: 58% 42% 55% 45% / 45% 60% 40% 55%; transform: rotate(2deg) scale(.96); }
.frame:nth-child(even):hover .frame__mark { transform: rotate(1deg) scale(1); }
.frame:hover .media { filter: brightness(1.08); }

/* ---------- Entrepreneur: the white side ---------- */
.ventures { --line-w: rgba(5,5,5,.16); background: var(--paper); color: var(--paper-ink); padding: 16vh 0 18vh; position: relative; }
.ventures .section-head { padding-bottom: 9vh; }
.ventures h2 { position: relative; }
/* script line runs into the heading */
.ventures .note {
  position: absolute; right: -.55em; bottom: -.3em; margin: 0; white-space: nowrap; pointer-events: none;
  font-size: .78em; color: var(--paper-accent); transform: rotate(-7deg); transform-origin: right bottom;
}
/* the sentence sits under the heading, below where the script line hangs */
.ventures .section-head { flex-direction: column; align-items: flex-start; }
.ventures .kicker { color: rgba(5,5,5,.65); margin-top: calc(clamp(36px, 7vw, 112px) * 1.2); }
.vlist { border-top: 1px solid var(--line-w); margin: 0 var(--gutter); }
/* Each row takes on that business's own brand colours on hover */
.vrow { display: grid; grid-template-columns: 60px 1fr 260px 150px 40px; gap: 20px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line-w); cursor: default;
  transition: padding .4s var(--ease), background-color .35s, color .35s; }
.vrow[href] { cursor: pointer; }
.vrow:hover { padding-left: 18px; padding-right: 18px; background: var(--v-bg); color: var(--v-ink); }
.vrow:hover .vrow__n, .vrow:hover .vrow__arrow, .vrow:hover .pill { color: var(--v-accent); }
.vrow__n { color: var(--paper-accent); }
.vlist__name { font-size: clamp(26px, 4.6vw, 72px); line-height: .95; }
.vrow__what { font-size: 13px; font-weight: 300; line-height: 1.45; opacity: .85; }
.vrow__sw { display: flex; gap: 4px; margin-top: 8px; }
.vrow__sw i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(5,5,5,.2); }
.vrow__meta { font-size: 10px; line-height: 1.7; }
.pill { display: inline-block; border: 1px solid currentColor; border-radius: 99px; padding: 0 8px; margin-top: 4px; color: var(--paper-accent); }
.pill.is-soon { opacity: .5; color: inherit; }
.vrow__arrow { font-size: 22px; justify-self: end; transition: transform .4s var(--ease); }
.vrow:hover .vrow__arrow { transform: translateX(6px) rotate(-45deg); }
.vpeek { position: fixed; z-index: 5; width: 260px; aspect-ratio: 4 / 3; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.9); transition: opacity .3s, transform .4s var(--ease); left: 0; top: 0; }
.vpeek.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* ---------- Info / bio ---------- */
.info { padding: 18vh 0 0; }
.about { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 90px); padding: 0 var(--gutter); }
.about__mark { position: sticky; top: 14vh; align-self: start; }
.about__logo { width: 100%; max-width: 520px; display: block; }
.about__sig { margin-top: 22px; color: var(--cream-dim); line-height: 1.7; border-top: 1px solid var(--line); padding-top: 14px; max-width: 520px; }
.about__eyebrow { color: var(--accent); margin-bottom: 18px; }
.about__tagline {
  font-size: clamp(36px, 5.2vw, 84px); line-height: .92; font-weight: 800; font-variation-settings: "wdth" 125;
  text-transform: uppercase; letter-spacing: -.015em; margin-bottom: 7vh;
}
.about__tagline .script { font-size: 1.05em; text-transform: none; display: inline-block; transform: rotate(-5deg) translateY(.08em); margin: 0 .05em; }
.about__text { columns: 2; column-gap: clamp(24px, 3vw, 48px); }
.about__text p { font-size: 15px; font-weight: 300; line-height: 1.7; color: var(--cream-dim); margin-bottom: 1.2em; break-inside: avoid; }
.about__text p:first-child { column-span: all; font-size: clamp(20px, 1.8vw, 27px); line-height: 1.35; color: var(--cream); letter-spacing: -.01em; margin-bottom: 1.4em; }
.about__text a { color: var(--cream); font-weight: 500; border-bottom: 1px solid var(--accent); }
.about__text a:hover { color: var(--accent); }
.hl { font-weight: 700; color: var(--cream); border-bottom: 2px solid var(--accent); }
.about__quote {
  margin: 7vh 0; padding: 4vh 0 4vh 28px; border-left: 3px solid var(--accent);
  font-size: clamp(22px, 2.4vw, 38px); line-height: 1.15; font-weight: 700; font-variation-settings: "wdth" 110; letter-spacing: -.01em;
}
.about__quote::before { content: "\201C"; color: var(--accent); }
.about__quote::after { content: "\201D"; color: var(--accent); }
.about__lists { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); border-top: 1px solid var(--line); padding-top: 22px; }
.about__lists h3 { color: var(--accent); margin-bottom: 10px; }
.about__lists li { font-size: 14px; font-weight: 300; color: var(--cream-dim); }
.about__lists a:hover { color: var(--accent); }
.js-roles li:nth-child(-n+2) { font-weight: 700; color: var(--cream); }

/* Clients marquee */
.clients { margin-top: 16vh; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0 22px; overflow: hidden; }
.clients__label { padding: 0 var(--gutter) 12px; color: var(--accent); }
.clients__track { overflow: hidden; }
.clients__row { display: flex; width: max-content; align-items: center; animation: marquee 38s linear infinite; }
.clients__row .dup { display: contents; }
.clients__row span { font-size: clamp(30px, 4.4vw, 70px); font-weight: 800; font-variation-settings: "wdth" 125; text-transform: uppercase; white-space: nowrap; line-height: 1.05;
  color: transparent; -webkit-text-stroke: 1.2px var(--cream); transition: color .3s; }
.clients__row span:hover { color: var(--cream); }
.clients__row i { font-style: normal; color: var(--accent); font-size: clamp(16px, 2vw, 30px); margin: 0 .9em; }
.clients:hover .clients__row { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Connect */
.connect { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 18vh var(--gutter) 10vh; }
.connect__line { display: flex; align-items: baseline; gap: .25em; font-size: clamp(30px, 4vw, 60px); line-height: 1; margin-bottom: 2vh; }
.connect__word { font-weight: 300; text-transform: uppercase; letter-spacing: .06em; }
.connect__with { font-size: 1.25em; }
.connect__logo { width: min(440px, 70vw); display: block; margin-bottom: 6vh; }
.connect__mail { font-size: clamp(17px, 2.6vw, 40px); font-weight: 800; font-variation-settings: "wdth" 125; text-transform: uppercase; border-bottom: 2px solid var(--accent); padding-bottom: 4px; transition: color .25s; overflow-wrap: anywhere; }
.connect__mail:hover { color: var(--accent); }
.foot { display: flex; justify-content: space-between; padding: 40px var(--gutter) var(--gutter); color: var(--cream-dim); }

/* ---------- Project page ---------- */
.project { position: fixed; inset: 0; right: var(--rail); z-index: 50; background: var(--ink); overflow-y: auto; transform: translateY(100%); transition: transform .8s var(--ease); }
body.project-open .project { transform: none; }
body.project-open { overflow: hidden; }
.project__inner { padding: 16vh var(--gutter) 10vh; }
/* A solid pill so it reads over any photo or video */
.project__back {
  position: fixed; z-index: 2; left: var(--gutter); bottom: var(--gutter);
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px 14px 18px; border-radius: 999px;
  background: var(--accent); color: var(--ink); font-size: 14px; font-weight: 800; letter-spacing: .12em;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .45); transition: background .25s, transform .25s var(--ease);
}
.project__back:hover { background: var(--cream); transform: translateX(-3px); }
.project__kicker { margin-bottom: 14px; color: var(--accent); }
.project__title { font-size: clamp(40px, 9vw, 150px); line-height: .88; margin-bottom: 7vh; }
.project__hero { aspect-ratio: 16 / 9; margin-bottom: 8vh; }
.project__hero.is-photo { aspect-ratio: 3 / 2; }
.project__body { display: grid; grid-template-columns: 1fr 2fr; gap: var(--gutter); margin-bottom: 12vh; }
.project__credits dt { color: var(--accent); }
.project__credits dd { margin-bottom: 14px; font-size: 14px; font-weight: 300; }
.project__blurb { font-size: clamp(20px, 2.2vw, 32px); font-weight: 300; line-height: 1.25; letter-spacing: -.01em; }
.project__gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 16vh; }
.project__gallery .media { aspect-ratio: 3 / 2; }
.project__gallery .media:nth-child(3n+1) { grid-column: 1 / -1; aspect-ratio: 2.39 / 1; }
.project__next { display: block; border-top: 1px solid var(--line); padding-top: 20px; }
.project__next .mono { color: var(--cream-dim); }
.project__next .project__title { margin: 6px 0 0; transition: color .3s; }
.project__next:hover .project__title { color: var(--accent); }

/* ---------- Floating "Work with me" ---------- */
.cta-float {
  position: fixed; z-index: 44; right: calc(var(--rail) + var(--gutter)); bottom: var(--gutter);
  padding: 13px 18px; border-radius: 999px; background: var(--accent); color: var(--ink);
  font-weight: 700; letter-spacing: .12em; box-shadow: 0 8px 30px rgba(0, 0, 0, .35);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease), background .25s;
}
.cta-float.is-on { opacity: 1; transform: none; pointer-events: auto; }
.cta-float:hover { background: var(--cream); }
body.menu-open .cta-float, body.project-open .cta-float, html.intro-on .cta-float { opacity: 0; pointer-events: none; }

/* ---------- Tablet ---------- */
@media (max-width: 1000px) {
  .sheet { grid-template-columns: repeat(2, 1fr); }
  .vrow { grid-template-columns: 50px 1fr 220px 30px; }
  .vrow__meta { display: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  body { padding-right: 0; }
  .rail { display: none; }
  .mobile-menu { display: block; position: fixed; z-index: 45; right: var(--gutter); top: var(--gutter); font-variation-settings: "wdth" 72; font-size: 11px; letter-spacing: .1em; font-weight: 700; text-transform: uppercase; color: var(--accent); }
  .split { flex-direction: column; padding-top: 56px; }
  .split:hover .half, .split .half:hover { flex-grow: 1; }
  .hero__name { flex-direction: column; justify-content: center; top: 0; bottom: 176px; align-items: flex-start; font-size: 13.5vw; }
  .hero__name span + span { align-self: flex-end; }
  .hero__line { height: 176px; font-size: 17px; align-content: center; row-gap: 0; line-height: 1.3; }
  .section-head h2 { font-size: 7.6vw; }
  .note { display: block; margin: .2em 0 0; font-size: 26px; }
  .ventures .note { display: inline-block; margin: 0; font-size: 1em; bottom: -.45em; right: -.2em; }
  .latest__info { grid-template-columns: 1fr; gap: 18px; }
  .latest__bar span:nth-child(2) { display: none; }
  .sheet { grid-template-columns: 1fr; padding: 32px 12px; gap: 36px; }
  .pen--arrow { left: -14px; }
  /* on phones the pinned bar also gives the logo and Menu a solid strip to sit on */
  .work__bar { justify-content: flex-start; padding-top: 58px; margin-top: -44px; }
  .cta-float { right: var(--gutter); bottom: 14px; }
  .vrow { grid-template-columns: 36px 1fr 24px; gap: 12px; row-gap: 6px; }
  .vrow__what { grid-column: 2 / 3; }
  .vrow__meta { display: block; grid-column: 2 / 3; }
  .vrow__arrow { grid-row: 1; grid-column: 3; }
  .vpeek { display: none; }
  .about { grid-template-columns: 1fr; }
  .about__mark { position: static; display: flex; align-items: flex-end; gap: 16px; }
  .about__logo { width: 46%; }
  .about__sig { margin: 0; border: 0; padding: 0; }
  .about__text { columns: 1; }
  .about__lists { grid-template-columns: 1fr; }
  .project { right: 0; }
  .project__body { grid-template-columns: 1fr; }
  .project__gallery { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero__name span { opacity: 1; transform: none; }
}

/* ---------- Intro: 3D brain → lightning on the creative side → dive in → blueprints build the site ---------- */
.intro {
  position: fixed; inset: 0; z-index: 1000; overflow: hidden;
  background: var(--ink);
  --bp: #2fd17c;                     /* blueprint line colour */
  --bp-bg: #03120c;                  /* blueprint paper */
}
.intro__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transition: opacity .35s ease; }
.intro__flash {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 58% 42%, rgba(201, 255, 224, .55), rgba(47, 209, 124, .18) 35%, transparent 70%);
}
.intro__grid {
  position: absolute; inset: 0; opacity: 0; transition: opacity .45s ease;
  background-color: var(--bp-bg);
  background-image:
    linear-gradient(rgba(47, 209, 124, .16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 209, 124, .16) 1px, transparent 1px),
    linear-gradient(rgba(47, 209, 124, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 209, 124, .06) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
}
.intro__bp { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; transition: opacity .5s ease; }
.intro__bp .r, .intro__bp .c, .intro__bp .x {
  fill: none; stroke: var(--bp); stroke-width: 1.2; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 1; animation: bpDraw .65s var(--d, 0s) cubic-bezier(.5, 0, .2, 1) forwards;
}
.intro__bp .c { stroke-width: 1; opacity: .45; animation-duration: .9s; }
.intro__bp .x { stroke-width: 1.4; }
.intro__bp .f { fill: rgba(47, 209, 124, .07); opacity: 0; animation: bpFade .5s calc(var(--d, 0s) + .45s) ease forwards; }
.intro__bp text {
  fill: var(--bp); font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: .14em;
  font-variation-settings: "wdth" 72; text-transform: uppercase;
  opacity: 0; animation: bpFade .35s calc(var(--d, 0s) + .35s) ease forwards;
}
.intro__bp text.dim { opacity: 0; font-weight: 500; letter-spacing: .08em; }
.intro__bp text.o { fill: none; stroke: var(--bp); stroke-width: 1; animation-duration: .6s; }
.intro__bp text.dim { animation-name: bpDim; }
@keyframes bpDraw { to { stroke-dashoffset: 0; } }
@keyframes bpFade { to { opacity: 1; } }
@keyframes bpDim { to { opacity: .6; } }
.intro__scan {
  position: absolute; left: 0; right: 0; top: 0; height: 2px; opacity: 0;
  background: var(--bp); box-shadow: 0 0 18px 3px rgba(47, 209, 124, .7);
}
.intro__cap, .intro__skip {
  position: absolute; font-family: var(--sans); font-size: 11px; font-weight: 600;
  font-variation-settings: "wdth" 72; letter-spacing: .22em; text-transform: uppercase; color: var(--cream-dim);
}
.intro__cap { bottom: 7vh; left: 0; right: 0; text-align: center; opacity: 0; transition: opacity .4s ease; }
.intro__cap.is-on { opacity: 1; }
.intro__skip { bottom: 18px; right: 22px; background: none; border: 0; cursor: pointer; padding: 6px; z-index: 2; }
.intro__skip:hover { color: var(--accent); }
.intro.is-skipping { transition: opacity .35s ease; opacity: 0; }

/* The site waits behind the intro, then is "printed" top to bottom out of the blueprint */
html.intro-on, html.intro-on body { overflow: hidden; }
html.intro-on #page { clip-path: inset(0 0 100% 0); }
html.intro-on .wordmark, html.intro-on .rail, html.intro-on .mobile-menu { opacity: 0; }
html.intro-on .hero__name span { animation-play-state: paused; }
html.intro-reveal .wordmark, html.intro-reveal .rail, html.intro-reveal .mobile-menu { opacity: 1; transition: opacity .6s .3s ease; }
html.intro-reveal .hero__name span { animation-play-state: running; }

@media (max-width: 760px) {
  .intro__skip { bottom: 12px; right: 12px; }
  .intro__grid { background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px; }
}

/* ---------- Project page: play button, film list, photo grid ---------- */
.project__hero { cursor: pointer; }
.project__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  padding: 14px 22px; border: 1px solid var(--accent); color: var(--cream);
  background: rgba(5, 5, 5, .55); backdrop-filter: blur(6px); letter-spacing: .2em;
  transition: background .3s, color .3s;
}
.project__hero:hover .project__play { background: var(--accent); color: var(--ink); }
.project__films { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 28px; margin: -5vh 0 8vh; }
.project__films button {
  width: 100%; display: flex; gap: 14px; align-items: baseline; text-align: left;
  padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); background: none;
  color: var(--cream-dim); font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer;
}
.project__films button span { color: var(--accent); }
.project__films button:hover, .project__films button.is-on { color: var(--cream); }
.project__films button.is-on { border-bottom-color: var(--accent); }
.project__photos { columns: 3 280px; column-gap: 14px; margin-bottom: 16vh; }
.project__photos img { width: 100%; display: block; margin-bottom: 14px; break-inside: avoid; background: var(--ink-2); }
.project__spacer { height: 8vh; }
