/* ==========================================================================
   Jay R. Thakor — portfolio
   Palette: ink black · bone white · ash grey · one red accent
   Type:    Bodoni Moda (display) · Manrope (text and labels)
   ========================================================================== */

:root {
  --ink: #0b0b0c;
  --coal: #101012;
  --ash: #19191c;
  --line: rgba(244, 241, 235, 0.13);
  --line-strong: rgba(244, 241, 235, 0.28);
  --smoke: #8d8d93;
  --fog: #c4c2bd;
  --bone: #f4f1eb;
  --red: #d8231a;
  --ember: #ff5a1f;

  --f-display: "Bodoni Moda", "Didot", "Bodoni 72", "Playfair Display", Georgia, serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-deva: "Tiro Devanagari Sanskrit", "Kohinoor Devanagari", "Noto Serif Devanagari", serif;

  --gutter: clamp(20px, 5vw, 72px);
  --nav-h: 72px;
  --max: 1440px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-loading, body.is-locked { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol, dl, dd, figure, blockquote, h1, h2, p { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--red); color: var(--bone); }
:focus-visible { outline: 1px solid var(--bone); outline-offset: 4px; }

/* Small uppercase label used across the site */
.label {
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--smoke);
}
.deva { font-family: var(--f-deva); letter-spacing: 0; text-transform: none; font-weight: 400; }

/* Loader ------------------------------------------------------------------ */
.loader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-content: center; justify-items: center; gap: 20px;
  background: var(--ink);
  transition: opacity .7s var(--ease), visibility 0s .7s;
}
.loader__name { font-family: var(--f-display); font-size: 26px; letter-spacing: .14em; text-transform: uppercase; }
.loader__bar { width: 160px; height: 1px; background: var(--line); overflow: hidden; }
.loader__bar i { display: block; width: 100%; height: 100%; background: var(--bone); transform: scaleX(0); transform-origin: left; }
body:not(.is-loading) .loader { opacity: 0; visibility: hidden; }

/* Navigation -------------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding: 0 var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background .4s, border-color .4s, transform .5s var(--ease);
}
.nav.is-solid { background: rgba(11, 11, 12, .82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }

.nav__brand { display: inline-flex; align-items: baseline; gap: 14px; justify-self: start; }
.nav__name { font-family: var(--f-display); font-size: 21px; letter-spacing: .04em; line-height: 1; }
.nav__brand .label { padding-left: 14px; border-left: 1px solid var(--line-strong); font-size: 10px; }

.nav__links { display: flex; gap: clamp(22px, 3vw, 44px); }
.nav__links a {
  position: relative; padding: 8px 0;
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--fog);
  transition: color .3s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--bone); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }

.nav__cta {
  justify-self: end; display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 20px; border: 1px solid var(--line-strong);
  font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  transition: background .3s, border-color .3s, color .3s;
}
.nav__cta i { width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.nav__cta:hover { background: var(--bone); border-color: var(--bone); color: var(--ink); }

.nav__toggle { display: none; justify-self: end; width: 44px; height: 44px; position: relative; }
.nav__toggle span { position: absolute; left: 10px; right: 10px; height: 1px; background: var(--bone); transition: transform .4s var(--ease), top .4s var(--ease); }
.nav__toggle span:first-child { top: 18px; }
.nav__toggle span:last-child { top: 26px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 95;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--nav-h) + 28px) var(--gutter) max(28px, env(safe-area-inset-bottom));
  background: var(--ink);
  opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s .4s;
}
.menu.is-open { opacity: 1; visibility: visible; transition: opacity .4s; }
.menu__links a {
  display: flex; align-items: baseline; gap: 18px; padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--f-display); font-size: clamp(34px, 10vw, 52px); line-height: 1.1;
  transform: translateY(14px); opacity: 0; transition: transform .6s var(--ease), opacity .6s;
}
.menu__links a:first-child { border-top: 1px solid var(--line); }
.menu.is-open .menu__links a { transform: none; opacity: 1; }
.menu.is-open .menu__links a:nth-child(2) { transition-delay: .05s; }
.menu.is-open .menu__links a:nth-child(3) { transition-delay: .1s; }
.menu.is-open .menu__links a:nth-child(4) { transition-delay: .15s; }
.menu__links em { font-style: normal; color: var(--red); }
.menu__foot { display: flex; justify-content: space-between; gap: 16px; }

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 22px;
  padding: 17px 26px; background: var(--bone); color: var(--ink); border: 1px solid var(--bone);
  font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  transition: background .3s, color .3s, border-color .3s;
}
.btn i { font-style: normal; transition: transform .4s var(--ease); }
.btn:hover { background: var(--red); border-color: var(--red); color: var(--bone); }
.btn:hover i { transform: translateX(5px); }
.btn--ghost { background: transparent; color: var(--bone); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--bone); border-color: var(--bone); color: var(--ink); }

/* Hero -------------------------------------------------------------------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); grid-template-rows: minmax(0, 1fr) auto;
  column-gap: clamp(28px, 5vw, 88px);
  padding: calc(var(--nav-h) + clamp(16px, 3vh, 40px)) var(--gutter) 0;
  max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto;
}
.hero__text { align-self: center; padding-block: 24px; min-width: 0; }
.hero__kicker { display: inline-flex; align-items: center; gap: 12px; color: var(--fog); margin-bottom: clamp(20px, 3.4vh, 40px); }
.hero__kicker i { width: 6px; height: 6px; border-radius: 50%; background: var(--red); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

.hero__name {
  font-family: var(--f-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(60px, min(9.4vw, 17.5vh), 160px); line-height: .96; letter-spacing: .005em;
}
.hero__name span { display: block; }
.hero__name span + span { padding-left: .5em; }

.hero__roles {
  margin-top: clamp(22px, 3.6vh, 40px); padding-top: clamp(18px, 2.6vh, 28px); border-top: 1px solid var(--line);
  font-size: clamp(13px, 1vw, 15px); font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--bone);
}
.hero__alias { margin-top: 12px; }
.hero__alias .deva { font-size: 15px; color: var(--fog); margin-left: 4px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(26px, 4.4vh, 48px); }

.hero__frame {
  position: relative; align-self: center; justify-self: end;
  height: clamp(380px, calc(100svh - var(--nav-h) - 176px), 780px); aspect-ratio: 2 / 3; max-width: 100%;
  background: var(--ash); overflow: hidden;
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.8s var(--ease) .2s; }
body:not(.is-loading) .hero__frame img { transform: scale(1); }
.hero__frame figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 12px;
  padding: 48px 18px 16px; background: linear-gradient(transparent, rgba(0, 0, 0, .6)); color: var(--bone); font-size: 10px;
}

.hero__facts {
  grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(20px, 3vh, 36px); border-top: 1px solid var(--line);
}
.hero__facts div { padding: 20px 24px 22px 0; }
.hero__facts div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.hero__facts dt { font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--smoke); margin-bottom: 6px; }
.hero__facts dd { font-family: var(--f-display); font-size: clamp(19px, 1.7vw, 26px); line-height: 1.2; }

.hero__text > *, .hero__facts { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
body:not(.is-loading) .hero__text > *, body:not(.is-loading) .hero__facts { opacity: 1; transform: none; }
body:not(.is-loading) .hero__text > :nth-child(2) { transition-delay: .08s; }
body:not(.is-loading) .hero__text > :nth-child(3) { transition-delay: .16s; }
body:not(.is-loading) .hero__text > :nth-child(4) { transition-delay: .22s; }
body:not(.is-loading) .hero__text > :nth-child(5) { transition-delay: .28s; }
body:not(.is-loading) .hero__facts { transition-delay: .36s; }

/* Sections ---------------------------------------------------------------- */
.section { padding: clamp(60px, 7.5vw, 116px) var(--gutter); max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; position: relative; }
.band { background: var(--coal); border-block: 1px solid var(--line); }

.section__head {
  display: flex; align-items: baseline; gap: clamp(16px, 2.2vw, 32px);
  padding-bottom: clamp(18px, 2vw, 28px); margin-bottom: clamp(30px, 3.8vw, 56px);
  border-bottom: 1px solid var(--line);
}
.section__num { font-size: 11px; font-weight: 600; letter-spacing: .2em; color: var(--red); }
.section__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(38px, 5.2vw, 76px); line-height: 1.02; letter-spacing: -.005em; }
.section__note { margin-left: auto; white-space: nowrap; }

/* Reveal ------------------------------------------------------------------ */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.is-in { opacity: 1; transform: none; }
/* The clip sits on the image, not the frame, so the frame stays observable. */
.rv-img:not(.is-in) { background-color: transparent; }
.rv-img img { clip-path: inset(0 0 100% 0); transform: scale(1.08); transition: clip-path 1.1s var(--ease-io), transform 1.5s var(--ease), filter .5s; }
.rv-img.is-in img { clip-path: inset(0); transform: scale(1); }

/* Placeholder (only while a photo is missing) */
.ph { background: var(--ash); display: grid; place-items: center; }
.ph::after { content: attr(data-ph); font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--smoke); }
.ph img { display: none; }

/* Profile ----------------------------------------------------------------- */
.profile__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 7vw, 112px); align-items: start; }
.profile__photo { position: sticky; top: calc(var(--nav-h) + 28px); aspect-ratio: 4 / 5; background: var(--ash); overflow: hidden; }
.profile__photo img { width: 100%; height: 100%; object-fit: cover; }

.profile__kicker { color: var(--red); margin-bottom: 22px; }
.profile__sanskrit { font-family: var(--f-deva); font-size: clamp(19px, 1.7vw, 25px); line-height: 1.5; color: var(--fog); margin-bottom: 14px; }
.profile__intro {
  font-family: var(--f-display); font-style: italic; font-weight: 400;
  font-size: clamp(26px, 2.9vw, 44px); line-height: 1.22; letter-spacing: -.005em; text-wrap: balance;
  padding-bottom: clamp(28px, 3.4vw, 44px); margin-bottom: clamp(28px, 3.4vw, 44px); border-bottom: 1px solid var(--line);
}
.profile__bio { display: grid; gap: 1.15em; max-width: 60ch; color: var(--fog); font-size: clamp(15px, 1.05vw, 16.5px); line-height: 1.8; margin-bottom: clamp(36px, 4vw, 56px); }
.profile__bio p:first-child { color: var(--bone); }
.profile__more { display: grid; gap: 1.15em; }
.profile__more[hidden] { display: none; }

.textlink {
  justify-self: start; display: inline-block; padding: 4px 0;
  font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--bone);
  background: linear-gradient(var(--red), var(--red)) 0 100% / 100% 1px no-repeat;
  transition: color .3s;
}
.textlink:hover { color: var(--red); }

.comp { border: 1px solid var(--line); }
.comp__head { display: flex; justify-content: space-between; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); background: var(--coal); }
.comp__head .label:first-child { color: var(--bone); }
.comp__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.comp__grid > div { padding: 22px 22px 24px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); min-width: 0; }
.comp__grid > div:nth-child(-n + 3) { border-top: 0; }
.comp__grid > div:nth-child(3n + 1) { border-left: 0; }
.comp__grid > .is-wide { grid-column: 1 / -1; border-left: 0; }
.comp__grid dt { font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--smoke); margin-bottom: 8px; }
.comp__grid dd { font-family: var(--f-display); font-size: clamp(20px, 1.8vw, 26px); line-height: 1.25; overflow-wrap: anywhere; }
.comp__grid dd small { font-family: var(--f-body); font-size: 12px; letter-spacing: .04em; color: var(--smoke); margin-left: 8px; }

/* Portfolio --------------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px clamp(20px, 2.6vw, 40px); margin-bottom: clamp(28px, 3.4vw, 48px); }
.filters:empty { display: none; }
.filters button {
  position: relative; padding: 8px 0;
  font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--smoke);
  transition: color .3s;
}
.filters button sup { font-size: 9px; letter-spacing: .08em; margin-left: 6px; color: var(--smoke); }
.filters button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.filters button:hover { color: var(--bone); }
.filters button[aria-selected="true"] { color: var(--bone); }
.filters button[aria-selected="true"]::after { transform: scaleX(1); }

.gallery { columns: 4; column-gap: clamp(10px, 1.3vw, 20px); }
/* Only the first photos show until "View all" (or a category) is chosen. */
.gallery:not(.is-expanded):not(.is-filtered) .shot.is-more { display: none; }
.gallery__more { display: flex; justify-content: center; margin-top: clamp(24px, 3vw, 44px); }
.gallery__more[hidden] { display: none; }
.gallery__more .btn { min-width: 280px; }
.shot { position: relative; display: block; width: 100%; break-inside: avoid; margin: 0 0 clamp(10px, 1.3vw, 20px); background: var(--ash); overflow: hidden; cursor: zoom-in; }
.shot.is-off { display: none; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, .7)); opacity: 0; transition: opacity .5s; }
.shot__cap {
  position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2;
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  opacity: 0; transform: translateY(8px); transition: opacity .45s, transform .45s var(--ease);
}
.shot__cap b { font-weight: 600; color: var(--bone); }
.shot__cap span { color: var(--fog); text-align: right; }
@media (hover: hover) {
  .shot:hover img { transform: scale(1.035); }
  .shot:hover::before, .shot:hover .shot__cap { opacity: 1; transform: none; }
}
.shot:focus-visible::before, .shot:focus-visible .shot__cap { opacity: 1; transform: none; }

/* Feature ----------------------------------------------------------------- */
.feature { position: relative; height: min(72vh, 44vw + 160px); min-height: 400px; overflow: hidden; display: grid; place-items: end start; }
.feature.is-empty { display: none; }
.feature__img { position: absolute; inset: -10% 0; background-size: cover; background-position: center 30%; filter: grayscale(1) contrast(1.08) brightness(.8); will-change: transform; }
.feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 11, 12, .35), rgba(11, 11, 12, .1) 40%, rgba(11, 11, 12, .92)); }
.feature__quote {
  position: relative; z-index: 2; width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto;
  padding: 0 var(--gutter) clamp(40px, 6vw, 88px);
  font-family: var(--f-display); font-style: italic; font-size: clamp(28px, 3.9vw, 60px); line-height: 1.16;
}
.feature__quote span { display: block; max-width: 22ch; }

/* Craft ------------------------------------------------------------------- */
.craft .section__head { margin-bottom: 0; }
.craft__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.craft__list li { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(24px, 2.6vw, 36px) clamp(18px, 2vw, 32px) clamp(26px, 2.8vw, 40px); border-left: 1px solid var(--line); }
.craft__list li:first-child { padding-left: 0; border-left: 0; }
.craft__num { font-size: 11px; font-weight: 600; letter-spacing: .2em; color: var(--red); margin-bottom: clamp(18px, 2vw, 28px); }
.craft__title { margin: 0 0 12px; font-family: var(--f-display); font-weight: 400; font-size: clamp(28px, 2.8vw, 42px); line-height: 1.05; }
.craft__note { font-size: 15px; line-height: 1.7; color: var(--fog); }
.craft__list .textlink { margin-top: auto; transform: translateY(0); }
.craft__note + .textlink { margin-top: 18px; }

.craft__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); margin-top: clamp(36px, 4.4vw, 64px); }
.craft__label { margin-bottom: 16px; }
.craft__label span { margin-left: 6px; }
.craft__langs, .craft__places { display: flex; flex-wrap: wrap; font-family: var(--f-display); font-size: clamp(21px, 2.1vw, 32px); line-height: 1.4; }
.craft__langs li:not(:last-child)::after, .craft__places li:not(:last-child)::after { content: "·"; color: var(--red); margin: 0 .4em; }

/* Contact ----------------------------------------------------------------- */
.contact__big { display: block; font-family: var(--f-display); font-weight: 400; font-size: clamp(38px, 5.6vw, 92px); line-height: 1.04; letter-spacing: -.01em; margin-bottom: clamp(36px, 4.4vw, 64px); }
.contact__big em { font-style: italic; }
.contact__big i { font-style: normal; color: var(--red); }

.contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 7vw, 112px); align-items: start; }
.contact__list li { border-top: 1px solid var(--line); padding: 20px 0 22px; }
.contact__list li:last-child { border-bottom: 1px solid var(--line); }
.contact__list small { display: block; font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--smoke); margin-bottom: 8px; }
.contact__list a, .contact__list span { font-family: var(--f-display); font-size: clamp(21px, 2vw, 30px); line-height: 1.2; overflow-wrap: anywhere; }
.contact__list a { background: linear-gradient(var(--red), var(--red)) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); padding-bottom: 2px; }
.contact__list a:hover { background-size: 100% 1px; }
.contact__list em { display: block; margin-top: 8px; font-style: normal; font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--fog); }

.form { display: grid; gap: 22px; padding: clamp(24px, 3.2vw, 44px); border: 1px solid var(--line); background: var(--ink); }
.form__title { color: var(--bone); padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form label { display: grid; gap: 6px; font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--smoke); }
.form input, .form select, .form textarea {
  width: 100%; padding: 12px 0; background: transparent; color: var(--bone);
  border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0;
  font-family: var(--f-body); font-size: 16px; font-weight: 400; letter-spacing: 0; text-transform: none;
  transition: border-color .3s; appearance: none; -webkit-appearance: none;
}
.form select { background: linear-gradient(45deg, transparent 50%, var(--fog) 50%) calc(100% - 9px) 55% / 5px 5px no-repeat, linear-gradient(-45deg, transparent 50%, var(--fog) 50%) calc(100% - 4px) 55% / 5px 5px no-repeat; }
.form select option { background: var(--ash); color: var(--bone); }
.form textarea { resize: vertical; min-height: 104px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--bone); }
.form input::placeholder { color: #5d5d64; }
.form .btn { justify-self: start; min-width: 240px; }
.form__hint { font-size: 12px; color: var(--smoke); }
.form__hint.is-error { color: var(--ember); }

/* Footer ------------------------------------------------------------------ */
.footer { border-top: 1px solid var(--line); padding: clamp(36px, 4.5vw, 64px) var(--gutter) max(28px, env(safe-area-inset-bottom)); }
.footer__inner { max-width: var(--max); margin-inline: auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 24px; }
.footer__name { font-family: var(--f-display); font-size: clamp(24px, 2.4vw, 34px); letter-spacing: .04em; line-height: 1.1; }
.footer__name + .label { margin-top: 10px; display: block; }
.footer__mid { text-align: center; }
.footer__top { justify-self: end; transition: color .3s; }
.footer__top:hover { color: var(--bone); }

/* Lightbox ---------------------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 150; background: rgba(8, 8, 9, .97);
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 64px clamp(12px, 2.4vw, 40px) 24px;
  opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s .4s;
}
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity .4s; }
.lightbox__fig { display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; gap: 14px; height: 100%; min-height: 0; }
.lightbox__fig img { max-width: 100%; max-height: 100%; min-height: 0; object-fit: contain; align-self: center; transition: opacity .3s; }
.lightbox__fig img.is-swap { opacity: 0; }
.lightbox__fig figcaption { display: flex; gap: 22px; }
.lightbox__fig figcaption span:first-child { color: var(--bone); }
.lightbox__close { position: absolute; top: 20px; right: clamp(16px, 2.4vw, 40px); padding: 10px 0; color: var(--fog); transition: color .3s; }
.lightbox__close:hover { color: var(--bone); }
.lightbox__nav { width: 48px; height: 48px; border: 1px solid var(--line-strong); border-radius: 50%; font-size: 16px; transition: background .3s, border-color .3s, color .3s; }
.lightbox__nav:hover { background: var(--bone); border-color: var(--bone); color: var(--ink); }

/* Responsive -------------------------------------------------------------- */
/* Short laptop screens: tighten the hero so it still fits in one view. */
@media (min-width: 861px) and (max-height: 760px) {
  .hero { padding-top: calc(var(--nav-h) + 8px); }
  .hero__text { padding-block: 8px; }
  .hero__facts { margin-top: 14px; }
  .hero__facts div { padding-block: 14px 16px; }
  .btn { padding-block: 14px; }
}

@media (max-width: 1100px) {
  .nav__brand .label { display: none; }
}

@media (max-width: 1200px) {
  .gallery { columns: 3; }
}

@media (max-width: 1024px) {
  .gallery { columns: 2; }
  .craft__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .craft__list li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .craft__list li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .comp__grid { grid-template-columns: repeat(2, 1fr); }
  .comp__grid > div:nth-child(-n + 3) { border-top: 1px solid var(--line); }
  .comp__grid > div:nth-child(-n + 2) { border-top: 0; }
  .comp__grid > div:nth-child(3n + 1) { border-left: 1px solid var(--line); }
  .comp__grid > div:nth-child(2n + 1), .comp__grid > .is-wide { border-left: 0; }
}

@media (max-width: 860px) {
  :root { --nav-h: 64px; }
  .nav { grid-template-columns: 1fr auto; }
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .nav.menu-open { background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; transform: none; }

  .hero { grid-template-columns: 1fr; grid-template-rows: auto; min-height: 0; padding-top: calc(var(--nav-h) + 8px); }
  .hero__frame { order: -1; justify-self: stretch; width: 100%; height: auto; max-height: none; aspect-ratio: 4 / 5; }
  .hero__frame::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, var(--ink)); }
  .hero__frame figcaption { display: none; }
  .hero__text { position: relative; z-index: 2; margin-top: clamp(-96px, -17vw, -56px); padding-block: 0 8px; }
  .hero__name { font-size: clamp(56px, 18.4vw, 132px); line-height: .94; }
  .hero__name span + span { padding-left: 0; }
  .hero__roles { font-size: 12px; letter-spacing: .18em; line-height: 1.9; }
  .hero__cta .btn { flex: 1 1 140px; justify-content: center; padding-inline: 14px; letter-spacing: .16em; white-space: nowrap; }
  .hero__cta .btn i { display: none; }
  .hero__facts { grid-template-columns: 1fr 1fr; margin-top: 32px; }
  .hero__facts div { padding: 16px 12px 18px 0; }
  .hero__facts div + div { padding-left: 0; border-left: 0; }
  .hero__facts div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .hero__facts div:nth-child(n + 3) { border-top: 1px solid var(--line); }

  .profile__grid, .contact__grid, .craft__grid { grid-template-columns: 1fr; }
  .profile__photo { position: relative; top: 0; }
  .section__note { display: none; }

  .gallery:not(.is-expanded):not(.is-filtered) .shot.is-more-m { display: none; }
  .gallery__more .btn { min-width: 0; width: 100%; }

  .footer__inner { grid-template-columns: 1fr; align-items: start; gap: 18px; }
  .footer__mid { text-align: left; }
  .footer__top { justify-self: start; }

  .lightbox { grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr) auto; padding: 64px 14px 18px; }
  .lightbox__fig { grid-column: 1 / -1; grid-row: 1; }
  .lightbox__nav { grid-row: 2; }
  .lightbox__nav--prev { justify-self: start; }
  .lightbox__nav--next { justify-self: end; }
}

@media (max-width: 520px) {
  .craft__list { grid-template-columns: 1fr; }
  .craft__list li, .craft__list li:nth-child(odd) { padding: 22px 0 24px; border-left: 0; }
  .craft__list li + li { border-top: 1px solid var(--line); }
  .craft__num { margin-bottom: 10px; }
  .form__row { grid-template-columns: 1fr; }
  .form .btn { justify-self: stretch; }
  .shot__cap { display: none; }
  .filters { flex-wrap: nowrap; gap: 0 26px; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { flex: none; }
  .comp__head .label:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .rv, .rv-img, .rv-img img { opacity: 1; transform: none; clip-path: none; }
}

@media print {
  .nav, .menu, .loader, .form, .lightbox, .filters { display: none !important; }
  body { background: #fff; color: #000; }
}
