/* Home v5 (draft, 2026-10-27): structure and motion after pensatori-irrazionali.com, with Nikhil's own words, work and
   logos. A pale page, dark grey type, a big script (Ballet) against a big grotesque, small "(label)" captions, numbered
   disciplines with a coloured ticker each, a manifesto in mixed type and a giant serif wordmark to close. */
/* self-hosted type: Helvetica Neue for text, Ballet for the script, Sometype Mono for coordinates (Latin subsets) */
@font-face { font-family: "HN"; src: url("fonts/HelveticaNeue-Light.woff") format("woff"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "HN"; src: url("fonts/HelveticaNeue-Roman.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "HN"; src: url("fonts/HelveticaNeue-Italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "HN"; src: url("fonts/HelveticaNeue-Medium.woff") format("woff"); font-weight: 500 600; font-style: normal; font-display: swap; }
@font-face { font-family: "HN"; src: url("fonts/HelveticaNeue-Bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Ballet"; src: url("fonts/Ballet-opsz.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Sometype Mono"; src: url("fonts/SometypeMono-wght.woff") format("woff"); font-weight: 400 700; font-display: swap; }
:root {
  --bg: #f4f4f3; --ink: #1d1d1b; --grey: #3b3b39; --soft: #8a8a86; --line: rgba(29, 29, 27, .14); --mid: #5e5e5e; --card: #ebebe9;
  --pad: 48px; --sans: "HN", "Helvetica Neue", Helvetica, Arial, sans-serif; --script: "Ballet", cursive; --mono: "Sometype Mono", ui-monospace, monospace;
  --serif: "DM Serif Display", "Times New Roman", serif; --ease: cubic-bezier(.22, 1, .36, 1);
}
html[data-theme="dark"] { --bg: #121211; --ink: #f0f0ee; --grey: #e4e4e1; --soft: #8f8f8b; --line: rgba(240, 240, 238, .14); --mid: #a6a6a2; --card: #1c1c1b; }
* { margin: 0; padding: 0; box-sizing: border-box; }
html { background: var(--bg); overflow-x: clip; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: clip; transition: background-color .5s, color .5s; }
body.is-loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.logo { font-family: "Outfit", var(--sans); font-weight: 800; letter-spacing: -.05em; }
.logo i { font-style: normal; color: #D92D20; }   /* the one red: the logo's full stop */
.lbl { font-size: 11px; letter-spacing: .01em; color: var(--soft); }
.lbl::before { content: "+ "; }
.sm { font-size: 11px; color: var(--soft); }
.big-p .w, .ds-stmt .w { display: inline-block; }
.big-p { font-size: 36px; line-height: 1; letter-spacing: -.025em; font-weight: 400; color: var(--grey); max-width: 680px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; background: var(--ink); color: var(--bg); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; border-radius: 2px; transition: opacity .3s; }
.btn:hover { opacity: .8; }
.btn-lg { padding: 10px 18px; font-size: 12px; }

/* ---------- loader ---------- */
.loader { position: fixed; inset: 0; z-index: 200; background: #111; display: grid; place-items: center; }
.loader-card { position: absolute; inset: 0; background: #f4f4f3; color: #1d1d1b; display: flex; flex-direction: column; justify-content: space-between; padding: 22px var(--pad) 26px; }   /* full screen: one big line, like v3 */
.ld-row { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; letter-spacing: .02em; color: #5e5e5e; }
.ld-count { font-variant-numeric: tabular-nums; }
.ld-mid { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 6vh; padding-bottom: 3vh; }
.loader .logo { font-size: clamp(56px, 7vw, 104px); line-height: 1; color: #1d1d1b; }
.ld-role { margin-top: 14px; font-size: 15px; letter-spacing: -.02em; color: #5e5e5e; }
.ld-quote { font-size: clamp(48px, 7.4vw, 172px); line-height: .96; letter-spacing: -.06em; color: #b3b3b0; text-wrap: pretty; }   /* words turn dark in turn (v5.js) */
.ld-quote .w { display: inline-block; }
.enter { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.enter[hidden] { display: none; }
.enter-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.enter button { height: 48px; padding: 0 22px; display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; cursor: pointer; font-family: var(--mono); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; transition: transform .3s var(--ease), background-color .3s, color .3s, border-color .3s; }
.enter-on { border: 1px solid #1d1d1b; background: #1d1d1b; color: #f4f4f3; }
.enter-off { border: 1px solid rgba(29, 29, 27, .25); background: none; color: #1d1d1b; }
.enter button:hover { transform: translateY(-2px); }
.enter-on:hover { background: #3b3b39; }
.enter-off:hover { border-color: #1d1d1b; }
.enter button:focus { outline: none; }
.enter button:focus-visible { outline: 2px solid #1d1d1b; outline-offset: 3px; }   /* keyboard only */
.enter-wave { width: 22px; height: 16px; color: #f4f4f3; }
.enter-note { max-width: 420px; text-align: left; font-size: 13px; line-height: 1.4; letter-spacing: -.02em; color: #8a8a86; }
@media (max-width: 760px) {
  .loader-card { inset: 0; padding: 16px 16px 20px; }
  .ld-quote { font-size: 13vw; }
  .ld-mid { gap: 4vh; }
  .ld-row { font-size: 11px; }
  .enter-btns { flex-direction: column; width: 100%; }
  .enter { width: 100%; }
  .enter button { justify-content: center; }
}
.loader.is-done { pointer-events: none; }

/* ---------- header: logo left, two small square buttons right ---------- */
.hd { position: fixed; z-index: 100; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 18px var(--pad); pointer-events: none; }
.hd > * { pointer-events: auto; }
.hd-logo { font-size: 26px; color: var(--ink); }
.hd-btns { display: flex; gap: 6px; }
.hd-btn { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 8px; background: var(--grey); color: var(--bg); cursor: pointer; transition: transform .3s var(--ease); }
.hd-btn:hover { transform: scale(1.08); }
.hd-btn svg { width: 16px; height: 16px; }
.hd-btns { align-items: center; }
.hd-btn canvas { width: 16px; height: 16px; display: block; color: var(--bg); }
/* menu: the page dims and blurs; a dark glass panel grows out of the menu button */
.menu-dim { position: fixed; z-index: 80; inset: 0; background: rgba(0, 0, 0, .28); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .45s var(--ease); }
/* menu (2026-10-30, after the reference): recent case studies in cards on the left, the links panel on the right,
   both dark glass; the page link you're on is white with ↘, the rest are dimmed; header buttons step aside for a close button */
.menu { position: fixed; z-index: 110; top: 12px; right: 12px; bottom: 12px; display: flex; gap: 12px; align-items: stretch; color: #f0f0ee; opacity: 0; transform: translateX(24px); filter: blur(10px); transition: opacity .4s var(--ease), transform .55s var(--ease), filter .45s var(--ease); }
.menu-dim[hidden], .menu[hidden] { display: none; }
.menu.is-open, .menu-dim.is-open { opacity: 1; }
.menu.is-open { transform: none; filter: none; }
.menu-panel, .mf-card { background: rgba(28, 28, 27, .86); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-radius: 4px; }
.menu-panel { position: relative; width: min(560px, calc(100vw - 24px)); display: flex; flex-direction: column; justify-content: space-between; padding: 56px 32px 32px; }
.menu-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid rgba(240, 240, 238, .25); border-radius: 2px; background: none; color: inherit; cursor: pointer; transition: border-color .3s, transform .3s var(--ease); }
.menu-close:hover { border-color: #f0f0ee; transform: rotate(90deg); }
.menu-close svg { width: 16px; height: 16px; }
.menu-links a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 0 10px; border-bottom: 1px solid rgba(240, 240, 238, .14); font-size: clamp(36px, 3.4vw, 54px); line-height: 1.1; letter-spacing: -.05em; color: #7d7d79; opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .6s var(--ease), color .3s; }
.menu.is-open .menu-links a { opacity: 1; transform: none; transition-delay: calc(.08s + var(--i, 0) * .045s); }
.menu-links a[aria-current] { color: #f0f0ee; }
.menu-links a svg { flex: none; width: 18px; height: 14px; opacity: .6; transition: transform .3s var(--ease), opacity .3s; }
.menu-links a[aria-current] svg { transform: rotate(45deg); opacity: 1; }
.menu-links a:hover { color: #f0f0ee; }
.menu-links a:not([aria-current]):hover svg { transform: translateX(6px); opacity: 1; }
.menu-media { display: flex; flex-direction: column; gap: 4px; font-size: 16px; letter-spacing: -.03em; }
.menu-lbl { margin-bottom: 8px; color: #8f8f8b; }
.menu-media a { color: inherit; width: fit-content; }
html[data-theme="dark"] .menu-panel, html[data-theme="dark"] .mf-card { background: rgba(48, 48, 46, .88); }
.is-menu .hd-btns { opacity: 0; pointer-events: none; }
.hd-btns { transition: opacity .3s; }
/* recent case studies: name → what it was, one line, a (label), and the client's mark on its colour */
.menu-feed { width: 460px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; scrollbar-width: none; }
.menu-feed::-webkit-scrollbar { display: none; }
.mf-card { flex: none; display: flex; justify-content: space-between; gap: 16px; padding: 14px; color: inherit; opacity: 0; transform: translateX(16px); transition: opacity .5s var(--ease), transform .6s var(--ease), background-color .3s; }
.menu.is-open .mf-card { opacity: 1; transform: none; transition-delay: calc(.12s + var(--i, 0) * .05s); }
.mf-card:hover { background: rgba(40, 40, 38, .92); }
.mf-txt { display: flex; flex-direction: column; min-width: 0; }
.mf-head { font-size: 17px; letter-spacing: -.03em; color: #c9c9c5; }
.mf-head b { font-weight: 500; color: #f0f0ee; }
.mf-line { margin-top: 4px; font-size: 13px; line-height: 1.35; letter-spacing: -.02em; color: #a6a6a2; max-width: 260px; }
.mf-lbl { margin-top: auto; padding-top: 18px; font-size: 12px; color: #7d7d79; }
.mf-tile { flex: none; width: 104px; aspect-ratio: 1; display: grid; place-items: center; padding: 18px; border-radius: 3px; background: var(--tile); }
.mf-tile img { width: 100%; height: 100%; object-fit: contain; filter: brightness(0) invert(1); }   /* the mark, whole, in white */
.mf-tile.is-light { background: #f0f0ee; }
.mf-tile.is-light img { filter: none; }
.mf-tile b { font-size: 19px; font-weight: 500; letter-spacing: -.04em; color: #f0f0ee; }
.mf-more { flex: none; display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 4px; background: #f0f0ee; color: #1d1d1b; font-size: 15px; letter-spacing: -.02em; opacity: 0; transition: opacity .5s var(--ease) .45s; }
.menu.is-open .mf-more { opacity: 1; }
.mf-more svg { width: 16px; height: 12px; }
@media (max-width: 1100px) { .menu-feed { display: none; } }
@media (max-width: 760px) { .menu-panel { padding: 56px 24px 28px; } }

/* ---------- hero: a fan of real project covers, the statement bottom left ---------- */
.hero { position: relative; height: 100svh; min-height: 640px; padding: 0 var(--pad) 48px; display: flex; align-items: flex-end; overflow: hidden; }
/* a wall of work laid on a plane seen at an angle: it slides slowly and tilts toward the pointer (v5.js) */
.wl { position: absolute; inset: 0; perspective: 1400px; overflow: hidden; }
.wl-plane { position: absolute; left: 50%; top: 40%; width: 150vw; transform-style: preserve-3d; transform: translate(-30%, -50%) rotateX(52deg) rotateZ(-28deg); }
.wl-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.2vw; animation: wlslide 60s linear infinite; }
.wl-grid img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; background: var(--card); border-radius: 4px; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .35); }
@keyframes wlslide { to { transform: translateY(-50%); } }   /* the grid holds two copies, so half its height is one full loop */
.wl-fade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(20deg, var(--bg) 22%, transparent 55%); }   /* keeps the intro readable */
.hero-txt { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 10px; }
.hero h1 { max-width: 640px; }

/* ---------- title rows: one running line, "By Nikhil Rathi — Works(01) [object]", over a hairline, off both edges ---------- */
.title-row { position: relative; padding: 150px 0 110px; overflow: hidden; }   /* room above and below for the script's swashes */
.title-row::after { content: ""; position: absolute; left: 0; right: 0; top: 52%; height: 1px; background: var(--line); }
.tr-track { display: flex; width: max-content; will-change: transform; }
.tr-unit { display: flex; align-items: center; flex: none; }
.tr-by { font-size: clamp(110px, 12.5vw, 210px); line-height: 1; letter-spacing: -.055em; color: var(--grey); white-space: nowrap; padding: 0 .12em 0 .2em; position: relative; z-index: 1; }
.tr-dash { width: clamp(50px, 5vw, 90px); height: clamp(6px, .6vw, 10px); background: var(--grey); margin: 0 1.6vw 0 .4vw; position: relative; z-index: 1; transform: translateY(.1em); }
.script { font-family: var(--script); font-weight: 400; font-size: clamp(170px, 20vw, 340px); line-height: 1.2; color: var(--grey); white-space: nowrap; position: relative; z-index: 1; padding-right: .08em; }
.script sup { font-family: var(--sans); font-style: italic; font-size: clamp(14px, 1.4vw, 22px); color: var(--soft); vertical-align: top; position: relative; top: 2.4em; margin-left: .2em; }
.title-img { width: clamp(220px, 22vw, 400px); height: auto; flex: none; margin: 0 1vw; position: relative; z-index: 2; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .12)); }

/* ---------- client list: three rows a column; each row a band between two hairlines, the big name crossing them,
   then (where), category, the brand's own logo and an arrow ---------- */
.clients { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; padding: 10px var(--pad) 0; }
.cl-col { display: flex; flex-direction: column; gap: 32px; min-width: 0; }
/* name on the left; the right half is five equal columns: category, logo (two), and the arrow pinned right.
   Wide screens add the studio label in front, as the reference does at 1536px and up. */
.cl-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) repeat(5, 10%); align-items: center; height: 46px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cl-name { position: relative; grid-column: 1; font-size: var(--cl-fs, 3.8rem); line-height: .75; letter-spacing: -.05em; color: var(--grey); white-space: nowrap; }
.nm-ghost { visibility: hidden; }
.nm-live { position: absolute; left: 0; top: 0; white-space: pre; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cl-meta { font-size: 14px; line-height: 20px; letter-spacing: -.05em; color: var(--mid); white-space: nowrap; }
.cl-studio { display: none; }
.cl-meta:not(.cl-studio) { grid-column: 2; }
.cl-logo { grid-column: 3 / 5; height: 44px; display: flex; align-items: center; justify-content: center; min-width: 0; }
.cl-logo img { height: var(--lh, 44px); max-width: 100%; width: auto; object-fit: contain; }   /* --lh: each logo sized by its shape, so wide and square marks carry similar weight */
.cl-logo img { filter: grayscale(1) contrast(1.1); opacity: .85; transition: filter .4s var(--ease), opacity .4s var(--ease); }   /* logos in black and white, also on hover */
.cl-row:hover .cl-logo img { opacity: 1; }   /* stays black and white; only comes up to full strength */
html[data-theme="dark"] .cl-logo img { filter: grayscale(1) invert(1) contrast(1.1); }
.cl-arrow { position: absolute; right: 0; top: 50%; width: 12px; height: 9px; margin-top: -4.5px; overflow: hidden; color: var(--mid); }
.cl-arrow svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform 0s ease-out; }
.cl-arrow svg + svg { transform: translateX(-120%); }
.cl-row:hover .cl-arrow svg { transform: translateX(120%); transition-duration: .2s; }
.cl-row:hover .cl-arrow svg + svg { transform: translateX(0); }
@media (min-width: 1536px) {
  .cl-studio { display: block; grid-column: 2 / 4; }
  .cl-meta:not(.cl-studio) { grid-column: 4; }
  .cl-logo { grid-column: 5 / 7; padding-right: 20px; }
}

/* ---------- trusted ---------- */
.trusted { position: relative; z-index: 2; padding: 160px var(--pad) 0; display: flex; flex-direction: column; gap: 16px; }
.trusted .lbl { font-size: 14px; line-height: 20px; letter-spacing: -.05em; color: var(--grey); }   /* above the maps that rise behind the last row */
.logo-grid { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; margin-top: 32px; }
.logo-grid li { position: relative; aspect-ratio: 357 / 200; border: 1px solid var(--line); overflow: hidden; background: var(--bg); transition: background-color .5s; }   /* solid, so the maps pass behind the cells */
.logo-grid img { position: absolute; left: 19%; top: 23%; width: 62%; height: 54%; object-fit: contain; }   /* the whole logo, on its own transparent background */
/* tools: a typed monogram in a square, the tool and what it's for; hover fills the square */
.logo-grid.tools { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tl { display: flex; flex-direction: column; justify-content: space-between; height: 100%; padding: 18px 20px; color: var(--grey); }
.tl-mark { width: 52px; height: 52px; display: grid; place-items: center; border: 1.5px solid currentColor; border-radius: 10px; font-family: var(--mono); font-size: 19px; font-style: normal; letter-spacing: -.02em; transition: background-color .3s, color .3s; }
.tl b { display: block; font-weight: 400; font-size: 24px; line-height: 1; letter-spacing: -.04em; }
.tl span { display: block; margin-top: 6px; font-size: 14px; line-height: 18px; letter-spacing: -.03em; color: var(--mid); }
.logo-grid li:hover .tl-mark { background: var(--grey); color: var(--bg); }
.tl.open .tl-mark { border-style: dashed; }

/* ---------- from / to: a map at each edge, a globe between them ---------- */
.where { position: relative; height: max(720px, 92vh); margin-top: -12vw; overflow: hidden; }   /* pulled up so the maps sit behind the last row of logos */
/* centre: a dotted globe with Gurgaon pinned (globe.js) */
.where-globe { position: absolute; left: 50%; top: 56%; transform: translate(-50%, -50%); text-align: center; color: var(--grey); pointer-events: none; }
.glb { display: block; width: min(320px, 24vw); aspect-ratio: 1; }
.glb-cap { margin-top: 8px; font-family: var(--mono); font-size: clamp(12px, 1.05vw, 16px); letter-spacing: -.02em; }
.where-map { position: absolute; pointer-events: none; }
.where-map-a { left: -15vw; top: 4%; height: 52%; width: auto; }
.where-map-b { right: -16vw; top: 12%; height: 56%; width: auto; }   /* the same Gurugram map, entering from the right */
.where-a { position: absolute; left: var(--pad); bottom: 14%; }
.where-b { position: absolute; right: var(--pad); bottom: 8%; text-align: right; }
.where-xy { font-family: var(--mono); }
.where-big { font-size: clamp(34px, 3.4vw, 60px); line-height: .98; letter-spacing: -.045em; color: var(--grey); }
.where-xy { margin-top: 18px; font-size: clamp(12px, 1.05vw, 16px); letter-spacing: -.02em; color: var(--grey); }
html[data-theme="dark"] .where-map { filter: invert(.85); }

/* ---------- disciplines ---------- */
.ds { padding: 48px 0 0; overflow: hidden; }
.ds-head { display: grid; grid-template-columns: 1fr 1fr; margin: 0 var(--pad); padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 24px; letter-spacing: -.025em; color: var(--grey); }
.ds-top { display: grid; grid-template-columns: 1fr 1fr; padding: 96px var(--pad) 0; }
.ds-num { font-family: var(--script); font-size: var(--num-fs, 484px); line-height: 0; height: 177px; color: var(--grey); }
.ds-num span { display: block; transform: translateY(var(--num-y, 88px)); }
.ds-spec { display: flex; flex-direction: column; }
.ds .lbl, .ds-lbl { font-size: 16px; line-height: 24px; letter-spacing: -.025em; color: var(--grey); }
.ds-name { display: flex; align-items: center; gap: 8px; margin-top: 24px; font-size: 30px; line-height: 36px; font-weight: 400; letter-spacing: -.025em; color: var(--grey); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.ds-name .dot { width: 20px; height: 20px; }
.ds-tbl { list-style: none; margin: 24px 0 32px; border-top: 1px solid var(--line); }
.ds-tbl li { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 24px; letter-spacing: -.025em; color: var(--grey); }
.ds-tbl li span + span { color: var(--soft); text-align: right; }
.ds .btn { align-self: flex-start; font-size: 12px; padding: 5px 12px; }
.ds-lbl { padding: 190px var(--pad) 0; }
.ds-stmt { margin-top: 16px; padding: 0 var(--pad); font-size: 30px; line-height: 1; letter-spacing: -.025em; color: var(--grey); max-width: calc(480px + var(--pad)); }
.ds-strip { display: flex; gap: 10px; margin-top: 48px; padding-left: var(--pad); width: max-content; }
.ds-strip img { height: 23.7vw; width: auto; border-radius: 0; }
.ticker { display: flex; overflow: hidden; margin-top: 104px; background: var(--c); color: #111; white-space: nowrap; }
.ticker div { flex: none; padding: 4px 0; font-size: 14px; line-height: 20px; font-weight: 400; animation: tick 30s linear infinite; }
.ticker i { font-style: normal; }
@keyframes tick { to { transform: translateX(-100%); } }

/* ---------- the idea: big caps and script in one sentence ---------- */
.idea { position: relative; padding: 160px var(--pad) 40px; }
.idea-l { display: flex; align-items: baseline; gap: 18px; line-height: .86; }
.idea-l.in { padding-left: 4vw; }
.caps { font-size: clamp(72px, 10vw, 150px); text-transform: uppercase; letter-spacing: -.06em; color: var(--grey); font-weight: 500; }
.scr { font-family: var(--script); font-size: clamp(30px, 3.4vw, 52px); color: var(--grey); }
.idea-img { width: min(560px, 46vw); margin: 70px auto 0; border-radius: 6px; }

/* ---------- contact ---------- */
.row-meta { display: flex; justify-content: space-between; font-size: 16px; line-height: 24px; letter-spacing: -.025em; color: var(--grey); padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.contact { padding: 64px var(--pad) 256px; display: flex; flex-direction: column; }
/* six copies of the word stacked on page-coloured plates; scrolling shrinks them toward the
   baseline so only slices of the ones behind show. The front copy's I is the Hire me bar. */
.cta { position: relative; margin-top: 36px; color: var(--grey); }
.cta-item { position: absolute; left: 0; top: 0; width: 100%; transform-origin: 50% 100%; }
.cta-item svg, .cta-space { display: block; width: 100%; height: auto; }
.cta-item svg { position: relative; z-index: 1; }
.cta-space { opacity: 0; }
.cta-plate { position: absolute; z-index: 0; left: 50%; top: 50%; width: 103%; height: 115%; transform: translate(-50%, -48%); background: var(--bg); }
.cta-btn { position: absolute; z-index: 2; top: 0; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--grey); color: var(--bg); pointer-events: none; transition: background-color .3s; }
.cta-btn span { display: block; white-space: nowrap; transform: rotate(-90deg); font-size: 24px; letter-spacing: -.02em; text-transform: uppercase; opacity: 0; }
.cta.is-down .cta-btn { pointer-events: auto; }
.cta-btn:hover { background: var(--ink); }
.cta-btn:focus-visible { outline: 2px solid var(--grey); outline-offset: 4px; }

/* ---------- imagery ---------- */
.imagery { padding: 100px var(--pad) 40px; display: flex; flex-direction: column; gap: 30px; }
.gallery { display: flex; flex-direction: column; gap: 12px; margin: 50px calc(var(--pad) * -1) 0; overflow: hidden; }
.g-row { display: flex; gap: 12px; width: max-content; }
.g-row-1 { align-items: flex-end; margin-left: -4vw; }
.g-row-2 { align-items: flex-start; margin-left: -9vw; }
.gallery img { width: auto; max-width: none; border-radius: 2px; }
.g-row-1 .g0, .g-row-1 .g3 { height: 13vw; } .g-row-1 .g1 { height: 21vw; } .g-row-1 .g2 { height: 15vw; } .g-row-1 .g4 { height: 17vw; } .g-row-1 .g5 { height: 14vw; }
.g-row-2 .g0, .g-row-2 .g4 { height: 13vw; } .g-row-2 .g1 { height: 15vw; } .g-row-2 .g2 { height: 21vw; } .g-row-2 .g3 { height: 14vw; } .g-row-2 .g5 { height: 17vw; }

/* ---------- footer: giant serif wordmark over a script ---------- */
/* footer (2026-10-30, after the reference): the nikhil. logo edge to edge over "Rathi" in script, a bar under it,
   then Menu / Contact / Back to top and a small line at the bottom. Red only on the logo's full stop. */
.ft { padding: 140px 0 32px; overflow: hidden; }
.ft-mark { position: relative; display: flex; flex-direction: column; align-items: center; }
.ft-serif { position: relative; z-index: 2; display: block; font-size: calc(100vw / 2.45); line-height: .76; letter-spacing: -.065em; color: var(--grey); white-space: nowrap; padding-right: .04em; }   /* sized so nikhil. runs edge to edge */
.ft-serif i { font-style: normal; color: #D92D20; }
.ft-script { position: absolute; z-index: 1; left: 24vw; top: 46%; font-family: var(--script); font-size: 30vw; line-height: 1; color: color-mix(in srgb, var(--grey) 22%, transparent); white-space: nowrap; pointer-events: none; }   /* big, behind and below the logo, like Irrazionali */
.ft-bar { position: relative; z-index: 2; display: block; width: 100%; height: max(4px, .4vw); margin-top: .9vw; background: var(--grey); }
.ft-cols { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; padding: 9vw var(--pad) 0; color: var(--grey); }
.ft-cols a { width: fit-content; transition: color .3s; }
.ft-cols a:hover { color: var(--soft); }
.ft-lbl { margin-bottom: 40px; font-size: 18px; letter-spacing: -.03em; color: var(--ink); }
.ft-menu { display: flex; flex-direction: column; }
.ft-menu a { font-size: clamp(26px, 2.1vw, 36px); line-height: 1.12; letter-spacing: -.05em; }
.ft-contact { font-size: 16px; line-height: 1.4; letter-spacing: -.02em; }
.ft-contact a { display: inline-block; margin-right: 14px; }
.ft-sub { margin-top: 28px; color: var(--soft); }
.ft-end { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; text-align: right; }
.ft-top { font-size: 18px; letter-spacing: -.03em; }
.ft-legal { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 28px; font-size: 14px; letter-spacing: -.02em; color: var(--mid); }
@media (max-width: 760px) {
  .ft { padding-top: 90px; }
  .ft-bar { height: 3px; margin-top: 8px; }
  .ft-cols { grid-template-columns: 1fr 1fr; row-gap: 48px; padding-top: 64px; }
  .ft-end { grid-column: 1 / -1; align-items: flex-start; text-align: left; gap: 28px; }
  .ft-legal { justify-content: flex-start; }
  .ft-lbl { margin-bottom: 20px; }
}

/* ---------- phones ---------- */
@media (max-width: 860px) {
  :root { --pad: 20px; }
  .big-p { font-size: 26px; }
  .wl-plane { width: 260vw; }
  .title-row { padding: 70px 0 40px; }
  .clients { grid-template-columns: 1fr; }
  .clients { gap: 6vw; }
  .cl-col { gap: 22px; }
  .cl-row { grid-template-columns: minmax(0, 1fr) auto; height: 34px; }
  .cl-row .cl-meta { display: none; }
  .cl-logo { grid-column: 2; height: 24px; margin-right: 20px; justify-content: flex-end; }
  .cl-logo img { height: calc(var(--lh, 40px) * .75); }
  .cl-name { font-size: 2rem; }
  .logo-grid, .logo-grid.tools { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .logo-grid.tools li { aspect-ratio: auto; min-height: 150px; }
  .tl { padding: 12px; gap: 16px; }
  .tl b { font-size: 18px; }
  .tl span { font-size: 12px; line-height: 15px; }
  .tl-mark { width: 38px; height: 38px; font-size: 14px; border-radius: 8px; }
  .where { height: 800px; margin-top: -60px; }
  .where-map-a { left: -40vw; height: 285px; }
  .where-map-b { right: -40vw; top: 4%; height: 285px; }
  .where-b { right: var(--pad); text-align: right; }
  .where-globe { top: 56%; }
  .glb { width: 40vw; }
  .contact { padding-bottom: 208px; }
  .ds-top { grid-template-columns: 1fr; padding-top: 40px; }
  .ds-num { --num-fs: 260px; --num-y: 47px; height: 100px; margin-bottom: 28px; }
  .ds-name { font-size: 26px; }
  .ds-tbl li { font-size: 14px; }
  .ds-lbl { padding-top: 90px; }
  .ds-stmt { font-size: 24px; }
  .ds-strip img { height: 46vw; }
  .ticker { margin-top: 60px; }
  .idea-l { flex-wrap: wrap; gap: 6px 12px; }
  .idea-img { width: 100%; }
  .gallery img { height: 34vw !important; }
  .g-row-1 .g1, .g-row-2 .g2 { height: 46vw !important; }
  .ft-cols { grid-template-columns: 1fr 1fr; }
  .ft-end { grid-column: 1 / -1; align-items: flex-start; text-align: left; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { .ticker div, .wl-grid { animation: none; } .cta-btn { pointer-events: auto; } .cta-btn span { opacity: 1; } }

/* ---------- page to page (2026-10-30): cross-page view transition, animated by transition.js ---------- */
@media (prefers-reduced-motion: no-preference) { @view-transition { navigation: auto; } }
::view-transition { background-color: #111; }
::view-transition-old(root), ::view-transition-new(root) { animation: none !important; transform-origin: 50% center; overflow: hidden; }
::view-transition-old(root) { z-index: 100; }
::view-transition-group(root) { z-index: auto !important; }
::view-transition-image-pair(root) { isolation: isolate; will-change: transform; z-index: 1; }
::view-transition-new(root) { transform: translateY(100%) scale(0.85); }

/* ---------- phones: a one-time note that the site is best on a bigger screen (chrome.js) ---------- */
.dv-hint { position: fixed; z-index: 120; left: 12px; right: 12px; bottom: 12px; padding: 20px 20px 16px; border-radius: 6px; background: rgba(28, 28, 27, .9); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); color: #f0f0ee; transform: translateY(calc(100% + 24px)); transition: transform .6s var(--ease); }
.dv-hint.is-in { transform: none; }
.dv-hint[hidden] { display: none; }
.dv-lbl { font-size: 12px; color: #8f8f8b; }
.dv-title { margin-top: 6px; font-size: 26px; line-height: 1.05; letter-spacing: -.045em; }
.dv-text { margin-top: 8px; font-size: 14px; line-height: 1.4; letter-spacing: -.02em; color: #c9c9c5; }
.dv-btns { display: flex; gap: 8px; margin-top: 16px; }
.dv-btns button { flex: 1; height: 42px; border-radius: 2px; border: 1px solid rgba(240, 240, 238, .3); background: none; color: inherit; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
.dv-btns .dv-ok { background: #f0f0ee; border-color: #f0f0ee; color: #1d1d1b; }
