@font-face { font-family: Parceh; src: url("assets/home-nov19/Parceh.otf"); font-display: swap; }
@font-face { font-family: "Neue Montreal"; src: url("assets/NeueMontreal-Regular.otf"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Neue Montreal"; src: url("assets/NeueMontreal-Medium.otf"); font-weight: 500; font-display: swap; }
@font-face { font-family: Instrument; src: url("assets/InstrumentSans-Medium.ttf"); font-weight: 500; font-display: swap; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: white; color: black; font-family: "Neue Montreal", sans-serif; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid #47676c; outline-offset: 5px; }
/* --hero-drop moves the name, board and portrait (and the line below) down together, clear of the top edge. */
.home-intro { --hero-drop: 4.5vw; position: relative; height: calc(100.66vw + var(--hero-drop)); overflow: hidden; }
.home-intro h1 { margin: 0; font: 400 19.8413vw/normal Parceh, serif; letter-spacing: .3968vw; }
.home-intro h1 span { position: absolute; white-space: nowrap; }
.first-name { right: 11.8386%; top: calc(-8.201vw + var(--hero-drop)); }
.last-name { right: 5.6878%; top: calc(31.746vw + var(--hero-drop)); }
.metal-panel { position: absolute; left: 11.1111%; top: calc(9.3254vw + var(--hero-drop)); width: 77.7116%; height: 37.3677vw; overflow: hidden; }
.metal-panel img { position: absolute; width: 128.61%; height: 134.81%; left: -14.35%; top: -15.02%; }
.home-portrait { position: absolute; left: 70.0397%; top: calc(23.1481vw + var(--hero-drop)); width: 12.3677%; height: 10.582vw; overflow: hidden; border: 1px solid black; box-shadow: inset 4px 5px 4.8px #0004; }
.home-portrait img { position: absolute; width: 100%; height: 208.02%; top: -53.92%; }
.home-portrait::after { content: ""; position: absolute; inset: 0; box-shadow: inset 4px 5px 4.8px #0004; }
.home-tagline { position: absolute; top: calc(77.6455vw + var(--hero-drop)); left: 0; right: 0; margin: 0; text-align: center; font-size: 1.7196vw; }
/* Thinker / Maker / Tinkerer: a one-line window where the word rolls up and out as the next rolls up into place
   (the text-roll from twishapatni.com's nav). */
.word-picker { position: relative; display: inline-block; width: 8em; height: 1.4em; margin: 0; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; line-height: 1.4; cursor: pointer; user-select: none; touch-action: pan-y; overflow: hidden; vertical-align: top; }
.word-picker:focus-visible { outline: none; }
.word-picker:focus-visible::after { content: ""; position: absolute; bottom: 0; left: 30%; right: 30%; height: 2px; background: #47676c; }
.picker-word { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; transform: translateY(105%); transition: transform .34s cubic-bezier(.3, 0, .2, 1); }
.picker-word.is-current { transform: translateY(0); }
.picker-word.is-leaving { transform: translateY(-105%); }
.picker-word.no-anim { transition: none; }
@media (prefers-reduced-motion: reduce) { .picker-word { transition: none; } }
/* Reference WORK grid: full-width, 1.7 units at the edges, 1.25 between columns. */
.selected-work { --work-unit: clamp(10px, calc(3.456px + .63vw), 20px); width: 100%; max-width: 100%; padding-inline: calc(var(--work-unit) * 1.7); margin: 0 auto; container-type: inline-size; }
.work-header { display: flex; align-items: flex-start; padding-block: clamp(24px, 3cqi, 48px); justify-content: space-between; }
.work-header h2 { font-size: clamp(24px, 2.2cqi, 40px); line-height: 1.2; font-weight: 500; margin: 0; }
.homepage main { position: relative; }
.home-navigation { position: absolute; top: 2.38vw; right: 3%; z-index: 3; display: flex; flex-direction: column; align-items: flex-end; gap: .65vw; font-size: clamp(14px, 1.071vw, 24px); line-height: 1.4; letter-spacing: .0214vw; color: #4a4a4a; }
.home-navigation a {
  --primary: #F4FF2B;
  --secondary: #4a4a4a;
  --surface: #E2F1F2;
  --bink: var(--secondary);
  --bsurf: var(--surface);
  position: relative;
  isolation: isolate;
  display: inline-block;
  color: var(--bink);
  text-decoration: none;
  white-space: nowrap;
}
.home-navigation a::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--bink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s cubic-bezier(.22, 1, .36, 1), opacity .4s ease;
  pointer-events: none;
}
.home-navigation a:is(:hover, :focus-visible, [data-preview])::before { transform: scaleX(1); }
.home-navigation a:focus-visible { outline: 2px solid var(--bink); outline-offset: 5px; }
@media (prefers-reduced-motion: reduce) {
  .home-navigation a, .home-navigation a *,
  .home-navigation a::before, .home-navigation a::after,
  .home-navigation a *::before, .home-navigation a *::after {
    animation: none !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
}
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: calc(var(--work-unit) * 1.25); row-gap: calc(var(--work-unit) * 5); }
.home-project { min-width: 0; }
.home-project.wide { grid-column: 1 / -1; }
.home-project > a { text-decoration: none; display: block; }
.project-image { position: relative; overflow: hidden; border-radius: 6px; aspect-ratio: 532/493; }
.project-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-project.wide .project-image { aspect-ratio: 1381/767; }
.home-project.wide:nth-child(4) .project-image { aspect-ratio: 2048/1161; }
.home-project.fold .project-image, .home-project.humyn .project-image, .home-project.kfc .project-image, .home-project.meta .project-image { aspect-ratio: 1; }
.home-project.cred .project-image { aspect-ratio: 1; }
.home-project.fold .project-image img { position: absolute; left: -.5%; top: -20.38%; width: 100.88%; height: 136.14%; }
.home-project h3 { font-size: clamp(20px, 1.65cqi, 32px); line-height: 1.2; font-weight: 400; margin: calc(var(--work-unit) * .7 + 16px) 0 0; }
.home-project p { font-size: clamp(14px, 1cqi, 18px); line-height: 1.5; margin: calc(var(--work-unit) * .5) 0 0; max-width: 70ch; }
.more-work { display: block; width: max-content; margin: clamp(48px, 6cqi, 100px) auto 0; font-size: clamp(18px, 1.5cqi, 26px); font-weight: 500; }
.homepage .site-shared-footer { margin-top: 0; }
@media (max-width: 680px) {
  .selected-work { padding-inline: max(10px, 2.72vw); }
  .home-intro { height: calc(105vw + var(--hero-drop)); }
  .home-tagline { font-size: 14px; }
  .home-navigation { position: relative; top: auto; right: auto; width: max-content; margin: 16px 6% 20px auto; font-size: 14px; gap: 6px; }
  .work-grid { grid-template-columns: minmax(0, 1fr); row-gap: 48px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.beetle-magnets { position: absolute; inset: 3%; pointer-events: none; }   /* no z-index: magnets stack with the paper slips */
.beetle-magnet { position: absolute; width: 12%; aspect-ratio: 1; padding: 0; border: 0; background: transparent; overflow: hidden; cursor: grab; pointer-events: auto; touch-action: none; user-select: none; transform: rotate(var(--tilt)); filter: drop-shadow(2px 4px 2px #0006); transition: filter .18s, transform .18s; }
.beetle-magnet img { position: absolute; width: 300%; height: 100%; max-width: none; top: 0; pointer-events: none; }
.beetle-magnet.dragging { cursor: grabbing; transform: rotate(var(--tilt)) scale(1.035); filter: drop-shadow(7px 12px 6px #0005); }

/* Ultraviolette reveal: the image grows edge to edge on scroll and the page turns black until the footer. */
body.homepage { transition: background-color .2s ease-out, color .2s ease-out; }
body.homepage.is-dark { background: #000; color: #fff; }
.homepage .attic-landing { background: transparent; }
.home-project.uv-reveal { --uv: 0; }
.home-project.uv-reveal .project-image {
  margin-inline: calc(var(--work-unit) * -1.7);
  border-radius: 0;
  clip-path: inset(calc(var(--hov) * var(--hov-in)) calc(var(--work-unit) * 1.7 * (1 - var(--uv)) + var(--hov) * var(--hov-in)) round calc(6px * (1 - var(--uv)) + var(--hov) * var(--hov-r)));
  will-change: clip-path;
}
@media (max-width: 680px) {
  .home-project.uv-reveal .project-image { margin-inline: calc(max(10px, 2.72vw) * -1); clip-path: inset(calc(var(--hov) * var(--hov-in)) calc(max(10px, 2.72vw) * (1 - var(--uv)) + var(--hov) * var(--hov-in)) round calc(6px * (1 - var(--uv)) + var(--hov) * var(--hov-r))); }
}
@media (prefers-reduced-motion: reduce) { body.homepage { transition: none; } }

/* Cursor pencil trail on the landing area; sits behind the content and never blocks clicks. */
.pencil-trail { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }

/* Live London clock, top-left of the homepage, styled to match the navigation. */
.home-clock { position: absolute; top: 2.38vw; left: 3%; z-index: 3; margin: 0; font-size: clamp(14px, 1.071vw, 24px); line-height: 1.4; letter-spacing: .0214vw; color: #4a4a4a; white-space: nowrap; }
.home-clock-time { font-variant-numeric: tabular-nums; color: #000; }
@media (max-width: 680px) { .home-clock { top: 16px; left: 6%; font-size: 14px; } }

/* Chrome pins: one cut-out image each, shown whole. */
.beetle-magnet.pin-magnet { overflow: visible; filter: drop-shadow(1px 2px 1px #0005) drop-shadow(3px 5px 4px #0003); }
.beetle-magnet.pin-magnet img { width: 100%; height: 100%; left: 0; }
.beetle-magnet.pin-magnet.dragging { filter: drop-shadow(7px 12px 6px #0004); }

/* The steel board hangs on the wall: a soft contact shadow plus a wider, faint one below. */
.metal-panel { overflow: visible; }
.metal-panel > img {
  filter: drop-shadow(0 1px 1.5px rgba(0,0,0,.22))
          drop-shadow(0 8px 12px rgba(0,0,0,.13))
          drop-shadow(0 22px 34px rgba(0,0,0,.09));
}

/* Nudge "Anushka" right so the foot of the A stays tucked behind the board. */
.first-name { right: calc(11.8386% - 6px); }

/* Room between the last project row and the attic photo, for a ticker. */
.homepage .attic-browser { margin-top: clamp(110px, 14vw, 230px); }
.homepage .attic-browser { margin-bottom: clamp(64px, 8vw, 140px); }

/* How to Drape a Saree: the Vimeo film plays over the still while the card is on screen. */
/* The film has a black frame baked in (about 2000x1180 around a 1970x1117 picture), so the player is oversized and offset to crop it off. */
.saree-card .saree-cover-video { position: absolute; left: -1.75%; top: -2.8%; width: 103.5%; height: auto; aspect-ratio: 2000/1180; border: 0; background: #000; pointer-events: none; opacity: 0; transition: opacity .6s ease; }
.saree-card .saree-cover-video.is-playing { opacity: 1; }

/* The menu reappears, pinned top-right, whenever you scroll up (nav-reveal.js). */
.home-navigation.is-floating {
  position: fixed;
  top: 2.38vw;
  right: 3%;
  z-index: 60;
  margin: 0;
  padding: .7em .9em;
  border-radius: 10px;
  background: #ffffffe6;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateY(calc(-100% - 2.38vw - 8px));
  transition: transform .35s cubic-bezier(.3, 0, .2, 1);
}
.home-navigation.is-floating.is-shown { transform: none; }
body.homepage.is-dark .home-navigation.is-floating { background: #000000cc; }
body.homepage.is-dark .home-navigation.is-floating a { --bink: #fff; }
@media (prefers-reduced-motion: reduce) { .home-navigation.is-floating { transition: none; } }

/* The homepage menu in one horizontal line at the top right, the same as on the case studies
   (desktop; phones keep their own layout). The floating scroll-up panel is a single row too. */
@media (min-width: 761px) {
  .home-navigation { flex-direction: row; align-items: baseline; gap: clamp(18px, 1.9vw, 34px); top: 2.5vw; }
  .home-navigation.is-floating { padding: .55em 1em; }
}

/* Project covers (Ultraviolette to Meta): on hover the frame draws in by a few pixels and its
   corners round a little more. Done with clip-path, so nothing around the cover moves; one
   registered number (--hov, 0 → 1) carries the change so it eases, and Ultraviolette's
   scroll-driven reveal (which writes the same clip-path) keeps working underneath it. */
@property --hov { syntax: "<number>"; inherits: true; initial-value: 0; }
.project-image {
  --hov: 0;
  --hov-in: 6px;          /* how far the frame draws in on each side */
  --hov-r: 8px;           /* how much rounder the corners get */
  clip-path: inset(calc(var(--hov) * var(--hov-in)) round calc(6px + var(--hov) * var(--hov-r)));
  transition: --hov .45s cubic-bezier(.2, .7, .2, 1);
}
@media (hover: hover) {
  .home-project > a:hover .project-image { --hov: 1; }
}
.home-project > a:focus-visible .project-image { --hov: 1; }
@media (prefers-reduced-motion: reduce) { .project-image { transition: none; } }

/* Hover flash (project-flash.js): pictures from inside Ultraviolette, Fold and Humyn Labs cut in
   one at a time over the cover while it's hovered. Hard cuts, no fades, so it reads as a flash. */
.project-flash { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.home-project .project-image .project-flash :is(img, video) {
  position: absolute; inset: 0; left: 0; top: 0;
  width: 100%; height: 100%; object-fit: cover;
  visibility: hidden;
}
.home-project .project-image .project-flash .is-on { visibility: visible; }

/* Desktop: lift the hero so "Tendolkar" isn't cut off at the bottom of wide windows.
   The board, portrait, last name and tagline rise 4vw; "Anushka" rises 2vw so its top stays on screen. */
@media (min-width: 681px) {
  .home-intro { --hero-drop: .5vw; }
  .first-name { top: calc(-8.201vw + var(--hero-drop) + 2vw); }
}
