/* Rukhsar Khundmiri, next: a visual exploration (branch only, not the live site).
   One calm canvas, like Ramp's; a cobalt stage the work plays on (the /blank-page palette: cobalt, white dotted line,
   pink, chartreuse, deep navy); Geist for type and Geist Mono for the slash-command labels. */
:root {
  --paper: #f3f2ee; --paper-2: #e9e7e1; --ink: #0b0d12; --ink-2: #3d4049; --muted: #7c7f88; --line: rgba(11, 13, 18, .1);
  --cobalt: #001a78; /* (Ru, Nov 6: "slightly darken the blue", then "darken the blue a bit"; was #00249c, then #001f8a) */ --cobalt-2: #1b3fc0; --navy: #000c3c; --pink: #f0c0cc; --chart: #f7b8c9; /* the accent: petal (Ru, Nov 5: "I like petal"); no project uses pink, so it never fights IOU's greens or ADID's reds */ --white: #fff;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r: 18px; --gap: 10px; --gut: clamp(16px, 2.6vw, 36px);
  --ease: cubic-bezier(.2, .8, .2, 1); --snap: cubic-bezier(.65, 0, .35, 1);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, figure { margin: 0; }
img, video, canvas { display: block; }
::selection { background: var(--cobalt); color: var(--white); }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 6px; }

/* ---------- type ---------- */
.mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: .02em; }
.display { font: 450 clamp(44px, 7.4vw, 112px)/.96 var(--sans); letter-spacing: -0.055em; }
.h2 { font: 450 clamp(30px, 3.6vw, 52px)/1.02 var(--sans); letter-spacing: -0.045em; }
.h3 { font: 450 clamp(22px, 2vw, 30px)/1.12 var(--sans); letter-spacing: -0.035em; }
.lede { font: 400 clamp(18px, 1.45vw, 22px)/1.42 var(--sans); letter-spacing: -0.015em; color: var(--ink-2); text-wrap: pretty; }
.small { font-size: 14px; color: var(--muted); }

/* a mono pill, as on the OnRamp tiles */
.pill { display: inline-flex; align-items: center; gap: 6px; width: max-content; padding: 5px 10px 4px; border-radius: 999px; font: 500 11px/1.1 var(--mono); letter-spacing: .06em; text-transform: uppercase;
  background: color-mix(in srgb, currentColor 12%, transparent); }
.pill.solid { background: var(--ink); color: var(--paper); }
.arrow { display: inline-block; transition: translate .35s var(--ease); }
a:hover .arrow, button:hover .arrow { translate: 3px -3px; }

/* ---------- one page to the next (Ru, Nov 10: "when I click the logo from any other page I want it to seamlessly go back
   home, not stagger"): a short, calm crossfade, with the bar held still across it. A browser without cross-page view
   transitions changes page as before; with Reduce Motion on, the page changes at once. ---------- */
@media (prefers-reduced-motion: no-preference) { @view-transition { navigation: auto; } }
.bar { view-transition-name: nx-bar; }
::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation-duration: .28s; animation-timing-function: cubic-bezier(.4, 0, .2, 1); }

/* ---------- the top bar ---------- */
.bar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 20px; padding: 14px var(--gut); background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); }
.bar .me { display: inline-flex; align-items: center; gap: 5px;   /* the mark sits close to the name (Ru, Nov 6: "have this sit a bit more closely"); the leaf already leaves ~3px inside its own box */ font: 500 15px/1 var(--sans); letter-spacing: -0.02em; }
.bar .me canvas { width: 22px; height: 22px; }
.bar .me .mk { display: grid; }
.bar nav:not(.cnav) { margin-left: auto; display: flex; gap: 4px; }
.bar nav:not(.cnav) a { padding: 8px 10px; border-radius: 10px; font: 400 13px/1 var(--mono); color: var(--ink-2); transition: background-color .2s ease, color .2s ease; }
.bar nav:not(.cnav) a:hover, .bar nav:not(.cnav) a[aria-current] { background: rgba(11, 13, 18, .06); color: var(--ink); }

/* ---------- tiles ---------- */
.tile { position: relative; overflow: hidden; border-radius: var(--r); background: var(--paper-2); isolation: isolate; }
.tile.cobalt { background: var(--cobalt); color: var(--white); } .tile.navy { background: var(--navy); color: var(--white); }
.tile.pink { background: var(--pink); color: var(--navy); } .tile.chart { background: var(--chart); color: var(--navy); } .tile.ink { background: var(--ink); color: var(--paper); }
.tile.white { background: var(--white); }
/* a project's own world: its deep, mid and pale (set as --t-* on the page or the tile) */
.tile.deep { background: var(--t-deep, var(--navy)); color: var(--white); } .tile.mid { background: var(--t-mid, var(--cobalt)); color: var(--white); }
.tile.pale { background: var(--t-pale, var(--pink)); color: var(--t-deep, var(--navy)); }
.tile > video, .tile > img.fill { width: 100%; height: 100%; object-fit: cover; }
.tile .media { position: absolute; inset: 0; } .tile .media > * { width: 100%; height: 100%; object-fit: cover; }
.tile.label { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: clamp(18px, 2vw, 28px); }
a.tile { transition: translate .45s var(--ease), box-shadow .45s var(--ease); }
a.tile:hover { translate: 0 -3px; box-shadow: 0 18px 40px -24px rgba(0, 12, 60, .55); }
.go { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 8px; border-radius: 999px; background: var(--chart); color: var(--navy); font: 500 12.5px/1 var(--mono); letter-spacing: .02em; }

/* film frames: the work playing on the cobalt stage, its own colour behind it */
.frame { position: relative; overflow: hidden; border-radius: 12px; background: var(--f, var(--navy)); }
.frame video { width: 100%; height: 100%; object-fit: var(--fit, cover); }

/* reveal on arrival */
.rise { opacity: 0; translate: 0 14px; transition: opacity .7s var(--ease), translate .7s var(--ease); transition-delay: var(--d, 0ms); }
.rise.in { opacity: 1; translate: none; }

/* the pixel mark's ripple: each ring of pixels dims and returns, from the centre out */
.pxm.ripple > * { animation: px-ripple .5s steps(3) both; animation-delay: calc(var(--r) * 70ms); }
@keyframes px-ripple { 40% { opacity: .15; } 100% { opacity: 1; } }
/* the typing caret */
.caret { display: inline-block; width: max(2px, .055em); height: .86em; margin-left: .07em; background: currentColor; vertical-align: -0.06em; animation: caret 1.05s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
/* the pixel dissolve that carries you into a case study; a page arriving through one starts covered */
html.arriving body::after { content: ""; position: fixed; inset: 0; z-index: 99; background: var(--navy); }
html.arriving.arr-butterfly body::after, html.arriving.arr-bloom body::after { background: var(--chart); } html.arriving.arr-vines body::after { background: var(--cobalt); }
.dissolve { position: fixed; inset: 0; z-index: 100; width: 100vw; height: 100vh; pointer-events: none; }

footer.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 36px var(--gut) 40px; color: var(--muted); font: 400 13px/1.5 var(--mono); }
footer.foot nav { display: flex; gap: 18px; } footer.foot a:hover { color: var(--ink); }

@media (max-width: 760px) {
  .bar nav:not(.cnav) a { padding: 8px 7px; font-size: 12px; }
  .bar .me span { display: none; }
  .bar { padding: 10px var(--gut); } .bar nav:not(.cnav) { gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .rise { opacity: 1; translate: none; transition: none; }
  a.tile, .arrow { transition: none; }
}

/* ---------- petal lead: petal is the main colour, her cobalt the accent ---------- */
html.petal ::selection { background: var(--chart); color: var(--navy); }
html.petal .tile.cobalt { background: var(--chart); color: var(--navy); }
html.petal .go, html.petal .card .arr { background: var(--cobalt); color: var(--white); }
html.petal .tile.navy.skyf { background: var(--cobalt); }

/* ---------- the cursor label ---------- */
.cur-tag { position: fixed; left: 0; top: 0; z-index: 200; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 5px 7px; border-radius: 999px; background: var(--chart); color: var(--navy);
  font: 500 12px/1 var(--mono); letter-spacing: .01em; white-space: nowrap; pointer-events: none; opacity: 0; scale: .6; transform-origin: 0 0; transition: opacity .16s ease, scale .3s var(--ease); box-shadow: 0 6px 16px -8px rgba(0, 12, 60, .45); }
.cur-tag.on { opacity: 1; scale: 1; }
.cur-tag .cur-mk { display: grid; width: 14px; height: 14px; } .cur-tag .cur-mk svg { width: 14px; height: 14px; }
html.petal .cur-tag { background: var(--cobalt); color: var(--white); }
@media (hover: none) { .cur-tag { display: none; } }

/* the forest footer, shared by the home page and the case studies (Ru, Nov 5: "our footer needs to be here") */
.skyf { position: relative; margin: clamp(56px, 8vw, 110px) var(--gut) 0; height: clamp(360px, 46vh, 460px); color: var(--white); cursor: crosshair; }
.skyf canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.skyf .in { position: absolute; left: clamp(22px, 3vw, 44px); bottom: clamp(22px, 3vw, 40px); z-index: 2; display: grid; gap: 18px; }
.skyf .big { display: flex; flex-wrap: wrap; gap: 4px 22px; font: 300 clamp(30px, 3.6vw, 56px)/1.05 var(--sans); letter-spacing: -0.045em; }
.skyf .big a { cursor: pointer; transition: color .2s ease; } .skyf .big a:hover { color: var(--chart); }
.skyf .cred { font: 400 13px/1.5 var(--mono); color: rgba(255, 255, 255, .62); max-width: 52ch; }
.skyf .cred b { font-weight: 500; color: rgba(255, 255, 255, .9); }
@media (max-width: 900px) { .skyf { height: 520px; } .skyf .big { font-size: 34px; } }
.skyf.forest { margin: clamp(56px, 8vw, 110px) 0 0; height: clamp(400px, 50vh, 520px); background: var(--cobalt); overflow: hidden; }
.skyf.forest .made { position: absolute; left: 0; right: 0; bottom: 10px; margin: 0; text-align: center; font: 400 12.5px/1.2 var(--mono); letter-spacing: .02em; color: rgba(255, 255, 255, .72); pointer-events: none; }
@media (max-width: 900px) { .skyf.forest { height: 420px; } }

/* the site bar, quieter (Ru, Nov 6: "revise ... the nav bar", after the Ramp designers' sites, whose navs stay small): her mark
   and name, small mono links with a petal dot on the page you are on, and a hairline only once the page moves */
.bar { padding: 12px var(--gut); transition: box-shadow .3s ease; }
.bar.scrolled { box-shadow: 0 1px 0 var(--line); }
.bar .me { font: 500 14px/1 var(--sans); }
.bar nav:not(.cnav) { gap: 2px; }
.bar nav:not(.cnav) a { padding: 8px 9px; border-radius: 0; font: 400 12.5px/1 var(--mono); color: var(--muted); }
.bar nav:not(.cnav) a:hover, .bar nav:not(.cnav) a[aria-current] { background: none; color: var(--ink); }
.bar nav:not(.cnav) a[aria-current]::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 7px 1px 0; border-radius: 50%; background: var(--chart); vertical-align: middle; }
/* the petal dot follows where you are (Ru, Nov 6: "the pink circle goes next to the section i'm on"): one dot that slides to
   the link for the part of the page in view; every link keeps room for it, so nothing shifts when it moves */
.bar nav:not(.cnav) { position: relative; }
.bar nav:not(.cnav) a[aria-current]::before { content: none; }
.bar nav:not(.cnav) a { padding-left: 17px; }
.bar nav:not(.cnav) .nd { position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--chart); pointer-events: none;
  translate: var(--x, 0) 0; opacity: 0; transition: translate .5s var(--ease), opacity .3s ease; }
.bar nav:not(.cnav) .nd.on { opacity: 1; }
@media (max-width: 760px) { .bar nav:not(.cnav) a { padding-left: 15px; } }
@media (prefers-reduced-motion: reduce) { .bar nav:not(.cnav) .nd { transition: none; } }

/* thumbs: the bar's mark and links keep their look but take a full-size tap on a phone (Ru, Nov 6: the phone pass) */
@media (hover: none), (max-width: 899.98px) {
  .bar .me, .bar nav:not(.cnav) a { position: relative; }
  .bar .me::after, .bar nav:not(.cnav) a::after { content: ""; position: absolute; inset: -9px -2px; }
}

/* a film the phone held back: a petal play button in its middle; a tap starts it, and every other held film on screen */
.vplay { position: absolute !important; inset: auto !important; left: 50% !important; top: 50% !important; z-index: 3; display: grid; place-items: center; width: 48px !important; height: 48px !important; max-width: none !important; margin: -24px 0 0 -24px !important; padding: 0; object-fit: initial;
  border: 0; border-radius: 50%; background: var(--chart, #f7b8c9); color: var(--navy, #000c3c); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .95), 0 8px 22px rgba(0, 12, 60, .28); cursor: pointer; }
.vplay svg { width: 22px; height: 22px; margin-left: 3px; fill: currentColor; }
