/* Dirgh Gohil — portfolio
   Built 1:1 from the Figma file. Every value below is in Figma pixels on a
   1350px-wide frame; --u scales them so desktop matches Figma exactly. */

@font-face {
  font-family: "Roboto"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(../fonts/roboto-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Roboto"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(../fonts/roboto-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: only light;
  --red: #e3120b;                /* hover palette: red / blue */
       /* stay light even when the phone is in dark mode */
  --blue: #0205c8;               /* Figma hover colour */
  --grey: #797979;               /* back to top */
  --cap: #4e4e4e;                /* captions */
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: #fff; }
body {
  margin: 0;
  background: #fff;
  color: #000;
  font-family: "Roboto", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p, h1, h2 { margin: 0; font-weight: inherit; }

/* ---------- the Figma frame ---------- */
.canvas {
  position: relative;
  width: 100%;
  max-width: 1350px;
  margin: 0;
  container-type: inline-size;
  min-width: 0;
}
.canvas > * { --u: calc(100cqw / 1350); }
.el {
  position: absolute;
  left: calc(var(--x) * var(--u));
  top: calc(var(--y) * var(--u));
  width: calc(var(--w) * var(--u));
}
.f { font-size: calc(var(--fs) * var(--u)); }
/* text sits above images (e.g. the Yankee title over its hero image) and gets a
   little breathing room, since browsers set Roboto a touch wider than Figma */
.el.txt { z-index: 2; }
.el.txt.c { margin-left: calc(var(--w) * var(--u) * -.03); width: calc(var(--w) * var(--u) * 1.06); }
.el.txt.l { width: calc(var(--w) * var(--u) * 1.08); }
.el.txt.fit { width: calc(var(--w) * var(--u)); }   /* stays inside the image column */
.c { text-align: center; }
.el img { width: 100%; }
/* the 1px Figma outline is part of the exported images (Lil Man hero, Yankee parts) */
figure.el { margin: 0; }

/* ---------- side index — spacing, size and weight taken from shashwathsantosh.com ---------- */
@font-face { font-family: "Geist"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(../fonts/geist-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(../fonts/geist-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
body { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); --side: clamp(240px, 24.7vw, 420px); }
.side {
  position: sticky; top: 0; align-self: start;
  height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column;
  padding: 21px 20px 21px 21px;
  font-family: "Geist", "Roboto", Arial, sans-serif;
  font-size: 12.6px; line-height: 16.4px; font-weight: 510; letter-spacing: .01em;
  color: rgba(0, 0, 0, .85);
}
.side a { display: inline-block; transition: color .2s; }
.side a:hover, .side a:focus-visible { color: var(--hc, var(--blue)); }
.side a[aria-current="page"], .side a.side-name:hover, .side a.side-name:focus-visible { color: var(--blue); }
.side-head { margin: 0 0 56px; }          /* intro ends ~54px, list starts at 110px */
.side-foot { margin-top: auto; padding-top: 32px; display: flex; align-items: center; gap: 14px; }
.side-ico { display: inline-flex; color: rgba(0, 0, 0, .85); }
.side-ico svg { width: 13px; height: 13px; display: block; }
.side-ico:hover, .side-ico:focus-visible { color: var(--hc, var(--blue)); }
.side-cv { line-height: 1; }
.side nav { display: flex; flex-direction: column; gap: 32.8px; }   /* two empty lines between groups */
.side ol, .side ul { list-style: none; margin: 0; padding: 0; }
.side li { margin: 0; }
.side .num { color: rgba(0, 0, 0, .85); }        /* numbers never take the hover colour */

/* about: body text set exactly like the index */
.about-t { font-family: "Geist", "Roboto", Arial, sans-serif; font-size: 12.6px; line-height: 16.4px; font-weight: 510; letter-spacing: .01em; color: rgba(0, 0, 0, .85); }
.about-t { display: flex; flex-direction: column; justify-content: space-between; }   /* last line sits on the photo's bottom edge */
.about-t p { margin: 0 0 16.4px; }
.about-top p:last-child, .about-bottom p { margin: 0; }
.about-bottom { display: flex; gap: 64px; align-items: flex-end; }
.about-photo img { border: .8px solid #000; border-radius: 10px; }

/* ---------- home: project rows like the reference ---------- */
.home {
  font-family: "Geist", "Roboto", Arial, sans-serif;
  font-size: 12.6px; line-height: 15.1px; font-weight: 500; letter-spacing: .01em;
  color: rgba(0, 0, 0, .85);
  padding: 21px 21px 120px 0;
}
.rows { display: flex; flex-direction: column; gap: 55px; }
.row { display: grid; grid-template-columns: minmax(0, 352fr) minmax(0, 725fr); column-gap: 21px; }
.row h2 { font: inherit; line-height: 16.4px; margin: 0 0 16px; }
.row p { margin: 0 0 15px; max-width: 352px; }
.row a { transition: color .2s; }
.row a:hover, .row a:focus-visible { color: var(--hc, var(--blue)); }
.row-cat { margin: 0 0 16px !important; max-width: none !important; line-height: 16.4px; }
.row-img { display: block; }
.row-more { display: inline-flex; align-items: center; gap: 8px; }
.row-more .pn-arrow { width: 23px; height: 12px; }
.row-more .pn-arrow path { stroke-width: 1.7; }
.row-img img { width: 100%; aspect-ratio: 725 / 408; object-fit: cover; border: .8px solid #000; border-radius: 10px; display: block; transition: border-color .2s; }
/* hovering a project: its links and the cover's stroke take the same colour */
.row:has(a:hover) .row-img img, .row:focus-within .row-img img { border-color: var(--hc, var(--blue)); }


/* ---------- home + about: one screen, centred, no scrolling ---------- */
.canvas.fit { aspect-ratio: auto; height: 100vh; }
.canvas.fit > * { --u: min(calc(100cqw / 1350), calc(100vh / var(--fh))); }

/* ---------- Prev / Next (drawn arrows from Figma) ---------- */
.pn-line {
  position: absolute; left: calc(43 * var(--u)); top: calc(var(--y) * var(--u));
  width: calc(1265 * var(--u)); border-top: max(.5px, calc(.5 * var(--u))) solid #000;
}
.pn {
  position: absolute; left: calc(90 * var(--u)); top: calc(var(--y) * var(--u));
  width: calc(1180 * var(--u));
  display: flex; justify-content: space-between; align-items: center;
  font-size: calc(16 * var(--u)); line-height: normal;
}
.pn a { display: inline-flex; align-items: center; transition: color .2s; }
.pn-prev { gap: calc(4 * var(--u)); }
.pn-next { gap: calc(11 * var(--u)); }
.pn a:hover, .pn a:focus-visible { color: var(--hc, var(--blue)); }
.pn-prev .pn-arrow { width: calc(35 * var(--u)); height: calc(13 * var(--u)); }
.pn-next .pn-arrow { width: calc(29 * var(--u)); height: calc(15 * var(--u)); }

/* ---------- home folders (Component 2 → Variant2 on hover) ---------- */
.folder {
  position: absolute;
  left: calc(var(--x) * var(--u));
  top: calc(var(--y) * var(--u));
  width: calc(298 * var(--u));
  aspect-ratio: 298 / 301;
  container-type: inline-size;
  display: block;
}
.folder .back {
  position: absolute; left: 0; right: 0; top: 19.27%; bottom: 1%;
  background: #282828; border-radius: 6.711cqw;
  transition: top .45s ease, bottom .45s ease;
}
.folder .item {
  position: absolute; left: 3.36%; right: 3.36%;
  top: 3.356cqw;                         /* 10px */
  aspect-ratio: 1;
  transition: top .45s ease;
  pointer-events: none;
}
.folder .item img { width: 100%; height: 100%; }
.folder .tab, .folder .front {
  position: absolute; background: #303030; opacity: .98; border-radius: 6.711cqw;
  box-shadow: 0 -6.711cqw 12.28cqw rgba(0, 0, 0, .25);
}
.folder .tab { left: 0; right: 59.06%; top: 42.52%; bottom: 0; }
.folder .front { left: 0; right: 0; top: 51.5%; bottom: 0; }
.folder .label {
  position: absolute; left: 8.72cqw; top: 87.25cqw;
  color: #fff; font-size: 5.369cqw; line-height: normal; white-space: nowrap;
}
a.folder:hover .back, a.folder:focus-visible .back { top: 13.29%; bottom: 6.98%; }
a.folder:hover .item, a.folder:focus-visible .item { top: -40.94cqw; }   /* -122px */
/* Lil Comp Track is a tall board: rise less so about half stays in the folder */
a.folder.f-lilcomp:hover .item, a.folder.f-lilcomp:focus-visible .item { top: -15.1cqw; }
.folder:focus-visible { outline: none; }

/* ---------- back to top (Component 1) ---------- */
.totop {
  position: absolute;
  left: calc(675 * var(--u) - var(--w) * var(--u) / 2);
  top: calc(var(--y) * var(--u));
  width: calc(var(--w) * var(--u));
  display: flex; flex-direction: column; align-items: center;
  color: var(--grey); font-weight: 500; font-size: calc(15.0035 * var(--u));
  line-height: normal; text-align: center; cursor: pointer;
  transition: color .2s;
}
.totop svg { width: calc(22.5 * var(--u)); height: calc(22.5 * var(--u)); }
.totop svg path { fill: currentColor; }
.totop:hover, .totop:focus-visible { color: var(--blue); }

/* about: the greeting is the way back home */
.home-link { display: block; transition: color .2s; }
.home-link:hover, .home-link:focus-visible { color: var(--blue); }

/* about: CV sits with the icons */
.about-icons a.cv-link { width: auto; display: flex; align-items: center; font-size: calc(18 * var(--u)); font-weight: 500; }

/* about icons */
.about-icons a { position: absolute; display: block; color: var(--blue); transition: color .2s, opacity .2s; }
.about-icons a:hover { opacity: .65; }
.about-icons svg { display: block; width: 100%; height: 100%; }

/* ---------- phones: same elements, stacked ---------- */
@media (max-width: 760px) {
  .canvas { height: auto !important; aspect-ratio: auto !important; padding: 0 20px 48px; }
  .canvas > *, .canvas.fit > * { --u: 1px; }
  .canvas.fit { height: auto; }
  .pn { position: static; width: auto; margin-top: 64px; font-size: 14px; }
  .el, .totop { position: static; }
  body { display: block; }
  .side { position: static; height: auto; padding: 20px 20px 0; }
  .home { padding: 40px 20px 60px; }
  .about-t { height: auto !important; gap: 24px; }
  .about-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
  .row { grid-template-columns: 1fr; row-gap: 14px; }
  .row-text { order: 2; }
  .rows { gap: 56px; }
  .side-head { margin-bottom: 14px; }
  .side-foot { margin-top: 0; padding-top: 14px; }
  .pn-line { position: static; width: auto; margin-top: 64px; }
  .pn-line + .pn { margin-top: 24px; }
  .side nav { gap: 10px; }
  .side ol, .side ul { display: flex; flex-wrap: wrap; gap: 4px 16px; }
  .folder { position: relative; left: auto; top: auto; }
  figure.el { margin: clamp(18px, calc(var(--gap) * .32px), 90px) auto 0; }
  .el {
    width: min(100%, calc(var(--w) * 100% / 1350 * 2.2));
    margin: clamp(18px, calc(var(--gap) * .32px), 90px) auto 0;
  }
  .el.wide { width: calc(100% + 40px); margin-left: -20px; margin-right: -20px; }
  .el.txt, .el.txt.c, .el.txt.l { width: 100%; margin-left: 0; margin-right: 0; }
  .el.txt.l { text-align: left; }
  .f { font-size: max(12px, calc(var(--fs) * .62px)); }
  .f.cap { font-size: 12px; }
  .f[style*="--fs:16;"] { font-size: 12px; }          /* 16px desktop text is 12px on phones */
  .folder .label { font-size: 12px; }
  br.d { display: none; }

  .folders { display: grid; grid-template-columns: 1fr 1fr; gap: 76px 16px; padding-top: 100px; }
  .folder { width: auto; }

  .totop { width: auto; margin: 72px auto 0; font-size: 14px; }
  .totop svg { width: 22px; height: 22px; }

  .about-icons { position: static !important; display: flex; justify-content: flex-start; gap: 36px; margin-top: 24px; height: auto !important; }
  .el.about-photo { width: 78%; margin-left: 0; }
  .about-icons a { position: static; width: 27px !important; height: 27px !important; }
  .about-icons a.cv-link { width: auto !important; font-size: 16px; }
}

/* ---------- circle cursor (from anushkashinde.framer.website) ----------
   a white disc with "difference" blending: on the white page it reads black,
   over images and text it shows their colours inverted */
@media (hover: hover) and (pointer: fine) {
  html.has-cursor, html.has-cursor * { cursor: none !important; }
  .cursor {
    position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none;
    width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
    background: #fff; mix-blend-mode: difference;
    transition: width .25s ease, height .25s ease, margin .25s ease, opacity .2s ease;
    opacity: 0; will-change: transform;
  }
  .cursor.on { opacity: 1; }
  .cursor.big { width: 20px; height: 20px; margin: -10px 0 0 -10px; }
}
@media not ((hover: hover) and (pointer: fine)) { .cursor { display: none; } }

/* thin divider used on the WAVE page (meta line, credits) */
.rule { border-top: max(.5px, calc(.5 * var(--u))) solid #000; }
/* photos with the site's outline: thin black stroke, rounded corners (same as the home covers) */
.el.img.round img { border: .8px solid #000; border-radius: 10px; display: block; }

/* videos */
.vid { position: relative; }
.vid video { width: 100%; display: block; border: .8px solid #000; border-radius: 10px; background: #000; }
.vid[data-hover] { cursor: pointer; }
.vid-hint { position: absolute; left: 12px; bottom: 12px; padding: 5px 10px; border-radius: 20px; background: rgba(0,0,0,.6); color: #fff;
  font: 500 12px/1 "Geist", "Roboto", Arial, sans-serif; pointer-events: none; transition: opacity .2s; }
.vid-hint::before { content: "Hover to play with sound"; }
.vid.touch .vid-hint::before { content: "Tap to play with sound"; }
.vid.playing .vid-hint { opacity: 0; }
.vid.playing.needs-click .vid-hint { opacity: 1; }
.vid.needs-click .vid-hint::before { content: "Click for sound"; }

/* home cover that is a looping video with the project name on it */
@font-face { font-family: "Roboto Mono"; font-style: normal; font-display: swap; font-weight: 100 700;
  src: url(../fonts/roboto-mono-latin-wght-normal.woff2) format("woff2"); }
.row-img { position: relative; container-type: inline-size; }
.row-img video { width: 100%; aspect-ratio: 725 / 408; object-fit: cover; border: .8px solid #000; border-radius: 10px; display: block; transition: border-color .2s; background: #000; }
.row:has(a:hover) .row-img video, .row:focus-within .row-img video { border-color: var(--hc, var(--blue)); }
.row-title { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none;
  font: 700 7.7cqw/1 "Roboto Mono", ui-monospace, monospace; color: #fff !important; white-space: nowrap; }
