/* ==========================================================================
   Arshi Kohli — Portfolio
   ========================================================================== */
:root {
  --f-sans: "AK Sans", "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-serif: "AK Serif", "Instrument Serif", "Times New Roman", serif;

  --ink: #1b1a1a;
  --paper: #ffffff;
  --fg: var(--ink);
  --scene-pink: #e8c9c4;
  --dark: #0e0e0e;

  --gutter: clamp(16px, 2vw, 40px);
  --btn: clamp(36px, 2.75vw, 54px);        /* round buttons */
  --pill-h: clamp(32px, 2.35vw, 48px);
  --pill-f: clamp(13px, .98vw, 19px);
  --ui-f: clamp(14px, 1.2vw, 23px);        /* nav, footer */
  --ease: cubic-bezier(.22, .8, .2, 1);
}

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

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--scene-pink);
  color: var(--fg);
  font-family: var(--f-sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body[data-view="work"] { --fg: #fff; background: var(--dark); }
body[data-view="projects"] { background: #e6e6e6; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; }

.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; }

/* ---------- Layers ---------- */
#gl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
#app { position: fixed; inset: 0; z-index: 2; }
/* particles sit between the background scene and the page content,
   so butterflies fly behind the project cards */
#petals { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.hdr, .ftr { z-index: 5; }
#blob { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 8; pointer-events: none; }
.ring { z-index: 9; }
.grain { z-index: 10; }
.loader { z-index: 20; }

/* ---------- Views ---------- */
.view {
  position: absolute; inset: 0;
  visibility: hidden; opacity: 0;
  pointer-events: none;
}
.view.is-active { visibility: visible; opacity: 1; pointer-events: auto; }

/* ---------- Pills & arrows ---------- */
.arrow { width: .62em; height: .62em; fill: none; stroke: currentColor; stroke-width: 1.3; flex: none; transition: transform .5s var(--ease); }
.pill {
  --h: var(--pill-h);
  display: inline-flex; align-items: center; gap: .55em;
  height: var(--h); padding: 0 1.3em;
  border-radius: 999px;
  font-size: var(--pill-f); letter-spacing: -.01em; line-height: 1; white-space: nowrap;
  transition: background-color .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease), transform .45s var(--ease);
}
.pill:hover .arrow { transform: translate(2px, 2px); }
.pill--light { background: #fff; color: var(--ink); box-shadow: 0 6px 22px rgba(80, 30, 40, .08); }
.pill--light:hover { background: var(--ink); color: #fff; }
.pill--ghost { border: 1.2px solid currentColor; }
.pill--ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill--outline { border: 1.5px solid rgba(255, 255, 255, .9); color: #fff; padding: 0 1.45em; }
.pill--outline:hover { background: #fff; color: var(--ink); }
.pill--dark { background: var(--ink); color: #fff; }
.pill--dark:hover { background: #fff; color: var(--ink); }

/* ==========================================================================
   Header
   ========================================================================== */
.hdr {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(var(--gutter) * .75) var(--gutter) 0;
  pointer-events: none;
  color: var(--fg);
  transition: color .6s var(--ease);
}
.hdr > * { pointer-events: auto; }
.hdr__logo { display: block; width: clamp(34px, 2.6vw, 50px); color: var(--fg); transition: opacity .3s; }
.hdr__logo svg { width: 100%; height: auto; display: block; fill: currentColor; }
.hdr__logo:hover { opacity: .7; }

.nav { display: flex; align-items: center; gap: .35em; font-size: var(--ui-f); letter-spacing: -.01em; }
.nav__link {
  position: relative; display: inline-grid; place-items: center;
  height: 1.85em; padding: 0 .62em; border-radius: 999px;
}
.nav__link::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  border: 1.1px solid currentColor;
  opacity: 0; transform: scale(.82, .6);
  transition: opacity .35s var(--ease), transform .5s var(--ease);
}
.nav__s, .nav__i { grid-area: 1 / 1; transition: opacity .3s var(--ease), transform .45s var(--ease), filter .35s; }
.nav__i { font-family: var(--f-serif); font-style: italic; font-size: 1.14em; opacity: 0; transform: translateY(35%); filter: blur(2px); }
.nav__link:hover::before { opacity: 1; transform: none; }
.nav__link:hover .nav__s { opacity: 0; transform: translateY(-35%); filter: blur(2px); }
.nav__link:hover .nav__i { opacity: 1; transform: none; filter: none; }

.dots {
  width: var(--btn); height: var(--btn); margin-left: .5em; border-radius: 50%;
  background: #fff; display: inline-flex; align-items: center; justify-content: center; gap: calc(var(--btn) * .11);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
  transition: transform .5s var(--ease);
}
.dots i { width: calc(var(--btn) * .11); height: calc(var(--btn) * .11); border-radius: 50%; background: var(--ink); transition: transform .5s var(--ease), width .5s var(--ease), border-radius .5s; }
.dots:hover { transform: scale(1.08); }
.dots[aria-expanded="true"] i { width: calc(var(--btn) * .38); height: 1.6px; border-radius: 1px; }
.dots[aria-expanded="true"] i:first-child { transform: translateX(4px) rotate(45deg); }
.dots[aria-expanded="true"] i:last-child { transform: translateX(-4px) rotate(-45deg); }

.menu {
  position: absolute; top: calc(var(--gutter) * .75 + var(--btn) + 10px); right: var(--gutter);
  width: 300px; padding: 16px;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
  border-radius: 18px; color: var(--ink);
  box-shadow: 0 20px 60px rgba(40, 10, 20, .14);
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.97); transform-origin: top right;
  transition: opacity .4s var(--ease), transform .5s var(--ease), visibility 0s .5s;
}
.menu.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.menu__me { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(0, 0, 0, .1); }
.menu__me img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.menu__me strong { display: block; font-weight: 500; font-size: 16px; }
.menu__me span { font-family: var(--f-serif); font-style: italic; font-size: 16px; opacity: .7; }
.menu__list { list-style: none; margin: 8px 0 0; padding: 0; }
.menu__list a { display: flex; justify-content: space-between; align-items: center; padding: 10px 4px; font-size: 16px; border-bottom: 1px solid rgba(0, 0, 0, .06); transition: padding .4s var(--ease); }
.menu__list li:last-child a { border-bottom: 0; }
.menu__list a:hover { padding-left: 10px; font-family: var(--f-serif); font-style: italic; font-size: 19px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.ftr {
  position: fixed; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter) calc(var(--gutter) * .75);
  pointer-events: none; color: var(--fg);
}
.ftr > * { pointer-events: auto; }
.ftr__l { display: flex; align-items: center; gap: calc(var(--btn) * .45); flex: 1; }
.ftr__copy { flex: 1; text-align: right; font-size: var(--pill-f); color: #fff; transition: opacity .5s; }
.ftr__pill, .world-btn, .ftr__copy { transition: opacity .5s var(--ease), visibility .5s; }
body[data-view="projects"] .ftr__pill,
body[data-view="projects"] .world-btn,
body[data-view="projects"] .ftr__copy,
body[data-view="work"] .ftr__pill { opacity: 0; visibility: hidden; }

.sound {
  width: var(--btn); height: var(--btn); border-radius: 50%; background: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: calc(var(--btn) * .05);
  transition: transform .5s var(--ease);
}
.sound:hover { transform: scale(1.08); }
.sound i { width: 2px; height: calc(var(--btn) * .3); background: var(--ink); border-radius: 1px; transform-origin: 50% 100%; transform: scaleY(.45); transition: transform .4s; }
.sound i:nth-child(2) { transform: scaleY(.7); }
.sound i:nth-child(3) { transform: scaleY(.9); }
.sound i:nth-child(4) { transform: scaleY(.6); }
.sound.is-on i { animation: bars 1.1s ease-in-out infinite alternate; }
.sound.is-on i:nth-child(2) { animation-delay: -.3s; animation-duration: .9s; }
.sound.is-on i:nth-child(3) { animation-delay: -.6s; animation-duration: 1.3s; }
.sound.is-on i:nth-child(4) { animation-delay: -.2s; animation-duration: .8s; }
.sound.is-on i:nth-child(5) { animation-delay: -.8s; animation-duration: 1.2s; }
@keyframes bars { from { transform: scaleY(.25); } to { transform: scaleY(1); } }

.world-btn {
  position: absolute; left: 50%; bottom: calc(var(--gutter) * .75);
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
  font-size: clamp(10px, .75vw, 14px); letter-spacing: .02em; color: var(--fg);
}
.world-btn__c {
  width: var(--btn); height: var(--btn); border-radius: 50%; background: #fff; color: var(--ink);
  display: grid; place-items: center;
  transition: transform .6s var(--ease), background-color .5s, color .5s;
}
.world-btn__c .icon-globe { width: 50%; }
.world-btn__l, .world-btn__r { opacity: 0; transition: opacity .4s var(--ease), transform .6s var(--ease); width: 4.5em; }
.world-btn__l { text-align: right; transform: translateX(12px); }
.world-btn__r { transform: translateX(-12px); font-family: var(--f-serif); font-style: italic; font-size: 1.3em; }
.world-btn:hover .world-btn__l, .world-btn:hover .world-btn__r { opacity: 1; transform: none; }
.world-btn:hover .world-btn__c { transform: scale(1.12); background: var(--ink); color: #fff; }
body[data-view="work"] .world-btn:hover .world-btn__c { background: #fff; color: var(--ink); }

.icon-globe { width: 22px; height: auto; fill: none; stroke: currentColor; stroke-width: 1.3; }

/* ==========================================================================
   Home
   ========================================================================== */
.hero {
  position: absolute; left: 50%; top: 34.5vh;
  transform: translateX(-52%);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  color: var(--ink);
}
.hero__eyebrow {
  margin: 0 0 1.1vw; font-size: clamp(12px, 1.3vw, 26px); letter-spacing: -.02em; text-transform: uppercase; letter-spacing: -.005em;
}
.hero__title { margin: 0; font-weight: 400; display: flex; flex-direction: column; align-items: center; }
.hero__line { display: block; white-space: nowrap; }
.hero__line--serif { font-family: var(--f-serif); font-style: italic; font-size: clamp(58px, 7.7vw, 190px); line-height: .9; letter-spacing: -.035em; transform: translateX(-2%); }
.hero__line--sans { font-size: clamp(58px, 7.4vw, 185px); line-height: .86; letter-spacing: -.045em; margin-top: .14em; }  /* clear of the serif line's descenders */
.hero__cta { margin-top: 1.9vw; opacity: 0; transform: translateY(8px); }
.hero.cta-in .hero__cta { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease), background-color .45s, color .45s; }
/* when WebGL draws the text, the DOM copy only stays for layout + accessibility */
.gl-text [data-gl-text] { color: transparent; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
  position: absolute; left: 50%; top: 33vh;
  display: grid; grid-template-columns: auto auto; column-gap: clamp(14px, 1.3vw, 22px); row-gap: .5vw;
  align-items: end; color: var(--ink);
}
.contact__title {
  margin: 0; grid-column: 1; grid-row: 1; justify-self: end;
  font-family: var(--f-serif); font-style: italic; font-weight: 400;
  font-size: clamp(52px, 5.4vw, 112px); line-height: .9; letter-spacing: -.035em;
}
.contact__btns { grid-column: 2; grid-row: 1; display: flex; gap: 10px; align-self: center; }

.contact__note { grid-column: 1; grid-row: 2; justify-self: end; text-align: right; margin: 0; font-size: clamp(10px, .9vw, 17px); line-height: 1.12; text-transform: uppercase; align-self: start; padding-top: .45em; }
.contact__email { grid-column: 2; grid-row: 2; align-self: start; font-size: clamp(20px, 2vw, 40px); letter-spacing: -.03em; line-height: 1.1; position: relative; }
.contact__email::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.contact__email:hover::after { transform: scaleX(1); transform-origin: left; }
.contact > * { opacity: 0; transform: translateY(14px); }
.view--contact.is-in .contact > * { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1s var(--ease); }
.view--contact.is-in .contact > :nth-child(2) { transition-delay: .08s; }
.view--contact.is-in .contact > :nth-child(3) { transition-delay: .16s; }
.view--contact.is-in .contact > :nth-child(4) { transition-delay: .22s; }

/* ==========================================================================
   Projects
   ========================================================================== */
.view--projects { overflow: hidden; }
body.no-gl .view--projects { background: #e6e6e6 url("../assets/img/projects-bg.jpg") center / cover no-repeat; }
.pj-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; z-index: 1; }
.pj-scroll { position: absolute; inset: 0; overflow: hidden; z-index: 2; touch-action: none; }
.pj-inner { padding: 22vh 0 16vh; will-change: transform; }
.pj-title {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3; margin: 0; padding-top: calc(var(--gutter) + 6px);
  text-align: center; pointer-events: none;
  font-weight: 400; font-size: clamp(36px, 3.4vw, 70px); letter-spacing: -.045em; line-height: 1;
}
.pj-filters {
  position: absolute; left: 0; right: 0; z-index: 4; top: calc(var(--gutter) + 6px + clamp(36px, 3.4vw, 70px) + 18px);
  display: flex; justify-content: center; gap: 8px; pointer-events: none;
}
.pj-filter {
  pointer-events: auto; font-size: var(--pill-f); letter-spacing: -.01em; color: var(--ink);
  height: var(--pill-h); padding: 0 1.15em; border-radius: 999px; border: 1.2px solid rgba(27, 26, 26, .28);
  background: rgba(255, 255, 255, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  display: inline-flex; align-items: center; gap: .35em;
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.pj-filter sup { font-size: .62em; opacity: .55; transform: translateY(-.35em); }
.pj-filter:hover { border-color: var(--ink); }
.pj-filter.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.pj-card.is-filtered { display: none; }
.pj-inner { padding-top: 27vh !important; }

.pj-grid {
  width: min(84vw, 1280px); margin: 0 auto;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.1vw; row-gap: 3.2vw;
}
.pj-card { display: block; color: var(--ink); }
.pj-card.has-case { cursor: pointer; }
.pj-media { position: relative; aspect-ratio: 1.94; overflow: hidden; background: #cfcfcf; }
.pj-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.pj-card:hover .pj-media img { transform: scale(1.05); }
.gl-projects .pj-media { background: transparent; }
.gl-projects .pj-media img { opacity: 0; }
.pj-meta {
  display: flex; justify-content: space-between; align-items: flex-end;
  padding: .7vw 0 .7vw; border-bottom: 1.2px solid var(--ink);
  font-size: clamp(13px, 1.05vw, 21px); line-height: 1.15; letter-spacing: -.015em;
  transform-origin: 50% 0;
}
.pj-meta strong { display: block; font-weight: 500; }
.pj-meta .arrow { width: .75em; height: .75em; margin-bottom: 3px; }
.pj-card:hover .pj-meta .arrow { transform: translate(2px, 2px); }
.pj-card:hover .pj-meta strong { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 1.18em; line-height: 1; }
.pj-cta {
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  margin-top: clamp(140px, 30vh, 320px);
  font-size: clamp(12px, .95vw, 18px); letter-spacing: -.01em; font-weight: 500; gap: .9em;
}
.pj-cta p { margin: 0; }
.pj-cta .pill { font-weight: 400; }

/* ==========================================================================
   Unseen World
   ========================================================================== */
@property --tint { syntax: '<color>'; inherits: true; initial-value: #2a2a2a; }
.view--work { transition: --tint 1.1s var(--ease); }
/* the whole page takes on the colour of the photo in focus */
.view--work::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, color-mix(in srgb, var(--tint) 22%, transparent), transparent 75%),
    color-mix(in srgb, var(--tint) 9%, #0e0e0e);
  transition: opacity .8s var(--ease);
}
.view--work.is-focus::before { opacity: 1; }
.wk-focus__main.is-glitch img { animation: mainGlitch .42s steps(1) both; }
@keyframes mainGlitch {
  0%   { clip-path: inset(12% 0 58% 0); transform: translateX(-14px); filter: drop-shadow(4px 0 rgba(255,40,80,.8)) drop-shadow(-4px 0 rgba(40,200,255,.8)); }
  20%  { clip-path: inset(55% 0 18% 0); transform: translateX(12px); }
  40%  { clip-path: inset(0 0 72% 0); transform: translateX(-6px); filter: drop-shadow(2px 0 rgba(255,40,80,.7)) drop-shadow(-2px 0 rgba(40,200,255,.7)); }
  60%  { clip-path: inset(30% 0 30% 0); transform: translateX(8px); }
  80%  { clip-path: inset(0); transform: none; filter: drop-shadow(1px 0 rgba(255,40,80,.5)) drop-shadow(-1px 0 rgba(40,200,255,.5)); }
  100% { clip-path: inset(0); transform: none; filter: none; }
}
.view--work { background: var(--dark); color: #fff; overflow: hidden; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.view--work.is-dragging { cursor: grabbing; }
/* photos are clickable: show a hand cursor on hover (but keep grabbing while dragging) */
.view--work .wk-tile, .view--work .wk-tile * { cursor: pointer; }
.view--work.is-dragging .wk-tile, .view--work.is-dragging .wk-tile * { cursor: grabbing; }
.wk-focus__side, .wk-focus__side * { cursor: pointer; }
.wk-globe { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.wk-intro { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.wk-intro > * { grid-area: 1 / 1; }
.wk-title {
  margin: 0; font-weight: 400; display: flex; align-items: baseline; white-space: nowrap;
  font-size: clamp(60px, 10.4vw, 220px); line-height: 1; letter-spacing: -.05em; position: relative;
}
.wk-title__serif { font-family: var(--f-serif); font-style: italic; letter-spacing: -.02em; font-size: 1.08em; }
.wk-hint {
  margin-top: clamp(150px, 15vw, 290px);
  display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: clamp(12px, .9vw, 17px); opacity: .9;
}
.wk-hint .icon-globe { width: 26px; animation: spin 6s linear infinite; }
@keyframes spin { 50% { transform: rotateY(180deg); } }

/* glitch */
.glitch { isolation: isolate; }
.glitch__layer {
  position: absolute; inset: 0; display: flex; align-items: baseline; pointer-events: none;
  mix-blend-mode: screen;
}
.glitch__layer--r { color: #ff2a4a; transform: translateX(-2px); }
.glitch__layer--b { color: #2ad4ff; transform: translateX(2px); }
.glitch__layer--r, .glitch__layer--b { opacity: 0; }
.glitch.is-glitching .glitch__layer--r, .glitch.is-glitching .glitch__layer--b { opacity: .9; }
.wk-title .ch { display: inline-block; }

/* field of tiles */
.wk-field { position: absolute; inset: 0; perspective: 1100px; pointer-events: none; opacity: 0; transition: opacity .9s var(--ease); }
.view--work.is-exploring .wk-field { opacity: 1; }
.wk-tile {
  position: absolute; left: 0; top: 0; will-change: transform;
  background: #1a1a1a; box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
  transform-origin: 50% 50%; cursor: pointer; pointer-events: auto;
  transition: filter .6s var(--ease);
}
.wk-tile img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.wk-tile--polaroid { background: #f4f2ee; }
.wk-tile--polaroid .wk-tile__cap {
  position: absolute; left: 0; right: 0; bottom: 4%; text-align: center; color: #111;
  font-family: var(--f-serif); font-style: italic; font-size: clamp(11px, 1vw, 18px); letter-spacing: -.01em; line-height: 1;
}
.wk-tile img { transition: filter .6s var(--ease); }
.wk-tile::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: var(--tint, #000);
  mix-blend-mode: multiply; transition: opacity .6s var(--ease);
}
.wk-tile::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .38) 0 1px, transparent 1px 3px);
  transition: opacity .6s var(--ease);
}
.view--work.is-focus .wk-tile img { filter: grayscale(1) contrast(1.25) brightness(1.05); }
.view--work.is-focus .wk-tile { filter: brightness(.62); }
.view--work.is-focus .wk-tile::after, .view--work.is-focus .wk-tile::before { opacity: 1; }

/* focus mode */
.wk-focus { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility 0s .5s; }
.view--work.is-focus .wk-focus { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
.wk-focus__title {
  margin: 0 0 1.2vw; font-weight: 500; text-transform: uppercase; letter-spacing: -.04em;
  font-size: clamp(28px, 2.9vw, 58px); color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .55);
}
.wk-focus__stage { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 40px); }
.wk-focus__main { --ratio: .7; margin: 0; width: min(36vw, calc(58vh / var(--ratio))); position: relative; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.wk-focus__main img { width: 100%; aspect-ratio: 1 / var(--ratio); object-fit: cover; }
.wk-focus__main.is-polaroid { background: #f4f2ee; padding: min(1.3vw, 2.4vh) min(1.3vw, 2.4vh) min(5vw, 9vh); width: min(26vw, calc(46vh / var(--ratio))); }

.wk-focus__main figcaption { position: absolute; left: 0; right: 0; bottom: 4.5%; text-align: center; color: #111; font-family: var(--f-serif); font-style: italic; font-size: clamp(16px, 1.8vw, 30px); }
.wk-focus__side { display: flex; align-items: center; gap: clamp(10px, 1.2vw, 20px); opacity: .9; transition: opacity .3s, transform .5s var(--ease); }
.wk-focus__side:hover { opacity: 1; }
.wk-focus__side--prev:hover { transform: translateX(-6px); }
.wk-focus__side--next:hover { transform: translateX(6px); }
.wk-focus__thumb {
  display: block; width: min(9vw, 140px); aspect-ratio: .85; position: relative;
  background: var(--img) center / cover no-repeat, var(--tint, #333);
  background-blend-mode: luminosity; filter: contrast(1.15);
}
.wk-focus__thumb::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .4) 0 1px, transparent 1px 3px); }
.wk-focus__caption { margin: 1.4vw 0 0; font-size: var(--pill-f); letter-spacing: -.01em; text-transform: uppercase; }
.wk-focus__caption em { font-family: var(--f-serif); font-size: 1.2em; text-transform: none; margin-right: .3em; }

.hand { display: block; width: clamp(26px, 2.2vw, 40px); aspect-ratio: 19 / 13; background: center / contain no-repeat; image-rendering: pixelated; }

/* ==========================================================================
   Cursor ring, grain, loader
   ========================================================================== */
.ring {
  --r: clamp(24px, 2.2vw, 42px);
  position: fixed; left: 0; top: 0; width: var(--r); height: var(--r); margin: calc(var(--r) / -2) 0 0 calc(var(--r) / -2);
  border: 1.5px solid var(--fg); border-radius: 50%;
  pointer-events: none; opacity: 0; transition: opacity .4s, border-color .6s;
  will-change: transform;
}
.ring.is-visible { opacity: .9; }
.ring.is-hidden { opacity: 0; }
@media (hover: none) { .ring { display: none; } }

.grain {
  position: fixed; inset: -50%; width: 200%; height: 200%; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
body[data-view="work"] .grain { opacity: .09; }
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-5%, 3%); } 40% { transform: translate(4%, -6%); }
  60% { transform: translate(-3%, 7%); } 80% { transform: translate(6%, 2%); } 100% { transform: translate(0, 0); }
}

/* ---------- Intro (after the loader) ---------- */
.intro {
  position: fixed; inset: 0; z-index: 19; background: #efe2df; color: #3a3534;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 0 24px;
  visibility: hidden; opacity: 0;
}
body.is-intro .intro { visibility: visible; opacity: 1; }
.intro__eyes { width: clamp(110px, 8.2vw, 170px); height: auto; overflow: visible; margin-bottom: clamp(26px, 2.6vw, 48px); }
.eye__white { fill: url(#eyePearl); stroke: none; }
.eye__pupil ellipse { fill: url(#pupilMetal); }
.eye__glint { fill: #fff; }
.eye__heart { fill: url(#heartGloss); }
.eye__lid { fill: url(#lidChrome); }
.eye__lid-edge { fill: none; stroke: url(#chromeStroke); stroke-width: 4.2; stroke-linecap: round; }
.eye__rim { fill: none; stroke: url(#chromeStroke); stroke-width: 5; }
.eye__shine { fill: #fff; opacity: .78; }
.intro__eyes { filter: drop-shadow(0 7px 10px rgba(120, 40, 85, .28)) drop-shadow(0 1px 1px rgba(80, 20, 50, .35)); }
.intro__name { margin: 0 0 .55em; font-size: clamp(16px, 1.15vw, 24px); letter-spacing: -.02em; }
.intro__text { margin: 0; max-width: 23em; font-size: clamp(15px, 1.05vw, 22px); line-height: 1.18; letter-spacing: -.02em; }
.intro__enter { margin-top: clamp(26px, 2.1vw, 42px); --h: clamp(40px, 2.5vw, 52px); font-size: clamp(16px, 1.08vw, 22px); padding: 0 1.4em; box-shadow: none; }
.intro__enter.is-entered, .intro__enter:hover { background: var(--ink); color: #fff; }
.intro__mute {
  position: absolute; bottom: clamp(48px, 7.5vh, 90px); left: 50%; transform: translateX(-50%);
  font-size: clamp(11px, .72vw, 14px); text-transform: uppercase; letter-spacing: -.005em; color: #1b1a1a;
  padding-bottom: 2px; border-bottom: 1px solid currentColor; transition: opacity .3s;
}
.intro__mute:hover { opacity: .6; }

.loader {
  position: fixed; inset: 0; background: #c995b9; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  transition: opacity 1s var(--ease), visibility 0s 1s;
}
/* image loader: sky + the chrome script name written on letter by letter */
.loader__stage {
  position: absolute; left: 50%; top: 50%; width: max(100vw, 177.68vh); aspect-ratio: 1672 / 941;
  transform: translate(-50%, -50%);
}
.loader__sky { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.loader__name {
  position: absolute; left: 28.947%; top: 41.445%; width: 39.055%; height: 19.235%; display: block;
  --p: -3%;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(var(--p) - 3%), transparent calc(var(--p) + 3%));
          mask-image: linear-gradient(90deg, #000 calc(var(--p) - 3%), transparent calc(var(--p) + 3%));
}
/* once loading is done the loader fades out and stops catching clicks */
body:not(.is-loading) .loader { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes breathe { 50% { opacity: .45; transform: scale(.96); } }

/* No-WebGL fallback */
.no-gl #gl { display: none; }
.no-gl body, body.no-gl { background: var(--scene-pink) url("../assets/img/index.jpg") center / cover no-repeat; }
body.no-gl[data-view="contact"] { background-image: url("../assets/img/contact.jpg"); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 760px) {
  .nav__link { padding: 0 7px; }
  .hero { top: 24vh; width: 100%; transform: translateX(-50%); }
  .pj-grid { grid-template-columns: minmax(0, 1fr); width: calc(100vw - 32px); row-gap: 28px; }
  .pj-meta { padding: 8px 0; }
  .pj-inner { padding-top: 15vh; }
  .contact { grid-template-columns: 1fr; justify-items: center; text-align: center; row-gap: 12px; top: 22vh; width: calc(100vw - 32px); }
  .contact > * { grid-column: 1 !important; grid-row: auto !important; justify-self: center !important; text-align: center !important; }
  .ftr__pill { display: none; }
  .world-btn__l, .world-btn__r { display: none; }
  .wk-focus__main { width: 64vw; }
  .wk-focus__main.is-polaroid { width: 56vw; }
  .wk-focus__thumb { width: 14vw; }
  .menu { width: calc(100vw - 32px); }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .wk-hint .icon-globe { animation: none; }
}
