:root {
  --paper: #f2f0eb;
  --paper-2: #e8e5de;
  --card: #fbfaf7;
  --ink: #121212;
  --ink-2: #3d3b38;
  --muted: #84807a;
  --line: rgba(18, 18, 18, 0.12);
  --accent: #e2401c;

  --dark: #111110;
  --dark-line: rgba(242, 240, 235, 0.14);
  --dark-muted: #8f8b84;

  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 3.2vw, 48px);
  --nav-h: 76px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.js:not(.intro-seen):not(.intro-complete) { overflow: hidden; scrollbar-width: none; }
html.js:not(.intro-seen):not(.intro-complete)::-webkit-scrollbar { display: none; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.035em; line-height: 1; }
button { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

.wrap { width: 100%; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.dark { background: var(--dark); color: var(--paper); }
.dark .muted { color: var(--dark-muted); }
.skip { position: fixed; left: -999px; top: 12px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; }
.skip:focus { left: 12px; }

.label {
  font-size: 14px; color: var(--muted);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 32px;
}
.label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.dark .label { color: var(--dark-muted); }

/* ---------- Links & buttons ---------- */
.u-link {
  background: linear-gradient(currentColor, currentColor) no-repeat 100% 100% / 0 1px;
  transition: background-size .5s var(--ease);
  padding-bottom: 2px;
}
.u-link:hover { background-position: 0 100%; background-size: 100% 1px; }

.pill {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 24px;
  border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-size: 15px; font-weight: 500;
  will-change: transform;
}
.pill--light { background: var(--paper); color: var(--ink); }
.pill--outline { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1px var(--dark-line); }
.roll { display: inline-grid; overflow: hidden; height: 1.3em; line-height: 1.3em; }
.roll > span { grid-area: 1 / 1; transition: transform .55s var(--ease); }
.roll > span:last-child { transform: translateY(110%); }
.pill:hover .roll > span:first-child { transform: translateY(-110%); }
.pill:hover .roll > span:last-child { transform: translateY(0); }

/* ---------- Loader ---------- */
.loader { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: 150;
  display: flex; align-items: flex-end;
  width: 100vw; height: 100vh; height: 100svh;
  padding: var(--gutter);
  background: var(--ink); color: var(--paper);
}
.js.intro-seen .loader { display: none; }
.loader__inner { position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: flex-end; width: 100%; }
.loader__name, .loader__count { position: relative; z-index: 1; }
.loader__stage {
  position: absolute; left: 50%; bottom: 1svh; z-index: 1;
  width: min(94vw, 64svh, 550px); aspect-ratio: 1086 / 1448;
  isolation: isolate;
  transform: translateX(-50%);
}
.loader__photo, .loader__glow { position: absolute; display: block; opacity: 0; will-change: transform, opacity, filter; }
.loader__glow { z-index: 0; left: -10%; top: -10%; width: 120%; height: 143%; max-width: none; }
.loader__photo { z-index: 2; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
.fx { display: none; }
.js .fx { display: block; position: fixed; inset: 0; z-index: 155; pointer-events: none; }
.loader__name { font-size: 12px; color: var(--dark-muted); }
.loader__count { font-size: clamp(64px, 9.5vw, 150px); font-weight: 600; letter-spacing: -0.05em; line-height: .8; font-variant-numeric: tabular-nums; }
@media (max-width: 700px) {
  .loader__stage {
    width: min(120vw, calc(77svh * .75), 500px);
  }
  .loader__count { font-size: clamp(36px, 9.5vw, 72px); }
}

/* ---------- Cursor ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .js .cursor {
    display: grid; place-items: center;
    position: fixed; left: 0; top: 0; z-index: 120;
    /* No dot by default; the circle only grows in over elements with a label (Play, Visit, ...) */
    width: 0; height: 0; margin: 0;
    border-radius: 50%;
    background: var(--accent);
    pointer-events: none;
    transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background-color .3s;
  }
  .cursor.is-label {
    width: 88px; height: 88px; margin: -44px 0 0 -44px;
  }
  .cursor__label { font-size: 13px; font-weight: 500; color: #fff; opacity: 0; transform: scale(.6); transition: opacity .3s, transform .45s var(--ease); white-space: nowrap; }
  .cursor.is-label .cursor__label { opacity: 1; transform: none; }
  .cursor.is-hidden { width: 0; height: 0; margin: 0; }
}

/* ---------- Cursor trail ---------- */
.trail { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 110; pointer-events: none; overflow: visible; transition: opacity .2s ease; }
.trail.is-off { opacity: 0; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--nav-h); padding: 0 var(--gutter);
  mix-blend-mode: difference; color: #fff;
  transition: transform .6s var(--ease);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__brand { font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.nav__links { display: flex; gap: 32px; font-size: 15px; margin-left: auto; }
.nav__cta { height: 42px; padding: 0 20px; background: #fff; color: #000; }
.nav__menu { display: none; }

@media (max-width: 820px) {
  .nav__links, .nav__cta { display: none; }
  .nav__menu {
    display: inline-flex; align-items: center;
    height: 42px; padding: 0 18px; border-radius: 999px;
    background: #fff; color: #000; border: 0; font-size: 15px; font-weight: 500; cursor: pointer;
  }
}

.menu {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--nav-h) + 24px) var(--gutter) var(--gutter);
  background: var(--ink); color: var(--paper);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path .8s var(--ease), visibility 0s .8s;
}
.menu.is-open { clip-path: inset(0); visibility: visible; transition: clip-path .8s var(--ease); }
.menu__links { display: grid; gap: 4px; }
.menu__links a { display: block; overflow: hidden; font-size: clamp(44px, 13vw, 72px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.08; }
.menu__links a span { display: block; transform: translateY(105%); transition: transform .8s var(--ease); }
.menu.is-open .menu__links a span { transform: none; }
.menu.is-open .menu__links a:nth-child(2) span { transition-delay: .05s; }
.menu.is-open .menu__links a:nth-child(3) span { transition-delay: .1s; }
.menu.is-open .menu__links a:nth-child(4) span { transition-delay: .15s; }
.menu.is-open .menu__links a:nth-child(5) span { transition-delay: .2s; }
.menu__foot { display: flex; gap: 24px; color: var(--dark-muted); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--nav-h) + 24px) var(--gutter) 32px;
  overflow: hidden;
}
.hero__top { display: flex; justify-content: space-between; gap: 24px; font-size: 15px; line-height: 1.45; }
.hero__time { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hero__name {
  display: flex; flex-direction: column;
  font-size: clamp(76px, 18.6vw, 340px);
  font-weight: 600; letter-spacing: -0.065em; line-height: .84;
  margin: 6vh 0 4vh -0.04em;
  will-change: transform;
}
/* Mask for rising text. Padding gives tightly-spaced glyphs room so their edges aren't clipped;
   the matching negative margin keeps the layout where it was. */
.line { display: block; overflow: hidden; padding: 0 .1em .14em .05em; margin: 0 -.1em -.1em -.05em; }
.hero__name .line { padding: 0 .06em .14em 0; margin: 0 0 -.1em 0; }
.line--right { align-self: flex-end; }
.hl { position: relative; display: inline-block; color: var(--paper); }
.hl__bg {
  position: absolute; z-index: -1;
  top: -0.04em; bottom: -0.1em; left: -0.02em; right: -0.04em;
  background: var(--ink);
  transform-origin: 0% 50%;
}
.hl .char { position: relative; }
.char { display: inline-block; will-change: transform; }
.hero__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.hero__intro { max-width: 440px; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.4; color: var(--ink-2); }
.hero__scroll { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--muted); }
.hero__scroll-line { position: relative; width: 64px; height: 1px; background: var(--line); overflow: hidden; }
.hero__scroll-line::after {
  content: ""; position: absolute; inset: 0; background: var(--ink);
  animation: scrollLine 2.4s var(--ease) infinite;
}
@keyframes scrollLine { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

/* ---------- Statement ---------- */
.statement { padding: clamp(96px, 16vw, 220px) 0 clamp(80px, 10vw, 140px); }
.statement__text {
  max-width: 1280px;
  font-size: clamp(28px, 4.3vw, 64px);
  font-weight: 500; letter-spacing: -0.035em; line-height: 1.12;
}
.word { display: inline-block; }
.numbers {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 var(--gutter);
  margin: clamp(80px, 10vw, 140px) 0 0;
}
.numbers__item { display: flex; flex-direction: column; padding-top: 20px; border-top: 1px solid var(--line); }
.numbers__item dd { order: -1; margin: 0; font-size: clamp(44px, 5.6vw, 88px); font-weight: 600; letter-spacing: -0.055em; line-height: 1; font-variant-numeric: tabular-nums; }
.numbers__item dt { margin-top: 12px; font-size: 15px; color: var(--muted); max-width: 220px; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 26px 0; }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group { display: flex; align-items: center; gap: clamp(28px, 4vw, 56px); padding-right: clamp(28px, 4vw, 56px); flex-shrink: 0; }
.marquee__group > * { font-size: clamp(32px, 5vw, 72px); font-weight: 600; letter-spacing: -0.045em; white-space: nowrap; line-height: 1.1; }
.marquee__group > span:first-child { color: var(--muted); font-weight: 500; }
.marquee__group a { transition: color .3s; }
.marquee__group a:hover { color: var(--accent); }
.marquee__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* ---------- Section heads ---------- */
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px;
  margin-bottom: clamp(48px, 6vw, 88px);
}
.section-title { font-size: clamp(64px, 12vw, 200px); letter-spacing: -0.065em; line-height: .86; }
.section-side { max-width: 340px; font-size: 17px; color: var(--muted); padding-bottom: 1.2em; }
.dark .section-side { color: var(--dark-muted); }

/* ---------- Ventures (stacking cards) ---------- */
.ventures { padding: clamp(96px, 12vw, 180px) 0 clamp(80px, 10vw, 140px); }
.stack { display: grid; gap: 24px; }
.card {
  position: sticky;
  top: calc(var(--nav-h) + var(--i, 0) * 14px);
  height: min(calc(100svh - var(--nav-h) - 40px), 760px);
  min-height: 560px;
  background: var(--card);
  border-radius: 28px;
  box-shadow: 0 0 0 1px var(--line), 0 -8px 40px rgba(0, 0, 0, .04);
  transform-origin: 50% 0;
  will-change: transform;
}
.card--dark { background: var(--ink); color: var(--paper); box-shadow: none; }
.card__inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: clamp(20px, 3vw, 48px);
  height: 100%; padding: clamp(16px, 1.6vw, 24px);
}
.card__text { display: flex; flex-direction: column; padding: clamp(8px, 1.6vw, 24px); min-width: 0; }
.card__top { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); }
.card--dark .card__top, .card--dark .card__body, .card--dark dt { color: var(--dark-muted); }
.card h3 { margin-top: auto; font-size: clamp(44px, 5.4vw, 92px); letter-spacing: -0.06em; line-height: .92; }
.card__lede { margin-top: 18px; font-size: clamp(19px, 1.5vw, 23px); line-height: 1.3; letter-spacing: -0.015em; font-weight: 500; }
.card__body { margin-top: 14px; font-size: 15.5px; color: var(--ink-2); max-width: 520px; }
.card__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.card--dark .card__facts { border-color: var(--dark-line); }
.card__facts dt { font-size: 13px; color: var(--muted); }
.card__facts dd { margin: 2px 0 0; font-size: 15.5px; font-weight: 500; }
.card__link { align-self: flex-start; margin-top: 20px; font-weight: 500; }
.card__media {
  position: relative; display: block;
  border-radius: 18px; overflow: hidden;
  background: var(--paper-2);
  min-height: 0;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transform: scale(1.04); transition: transform 1.2s var(--ease); }
.card__media:hover img { transform: scale(1); }
.card__media--logo {
  display: grid; place-items: center;
  background: radial-gradient(70% 70% at 50% 50%, #26231f, #161514);
}
.card__media--logo img { width: min(62%, 420px); height: auto; object-fit: contain; transform: none; }
.card__media--logo:hover img { transform: none; }
.card__media--paper img { object-position: center 30%; }

/* ---------- Investors ---------- */
.investors { padding: clamp(96px, 12vw, 180px) 0; border-radius: 28px 28px 0 0; }
.video {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 9; border-radius: 24px; background: #000;
  cursor: pointer;
}
.video video { width: 100%; height: 100%; object-fit: cover; }
.video__play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  display: grid; place-items: center;
  width: 96px; height: 96px; border-radius: 50%; border: 0;
  background: var(--paper); color: var(--ink); cursor: pointer;
  transition: transform .6s var(--ease), opacity .4s;
}
.video__play svg { margin-left: 3px; }
.video:hover .video__play { transform: scale(1.08); }
.video.is-playing { cursor: auto; }
.video.is-playing .video__play { opacity: 0; pointer-events: none; transform: scale(.6); }
.video__caption { display: flex; justify-content: space-between; gap: 24px; margin-top: 20px; font-size: 15px; }
.video__caption p:first-child { max-width: 640px; }
.video__caption strong { font-weight: 600; }

.photos { display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--gutter); margin-top: clamp(64px, 8vw, 120px); align-items: start; }
.photos .photo:nth-child(2) { margin-top: clamp(40px, 10vw, 160px); }
.photo { margin: 0; }
.photo__img { overflow: hidden; border-radius: 20px; aspect-ratio: 4 / 3; }
.photo__img img { width: 100%; height: 116%; object-fit: cover; margin-top: -8%; }
.photo figcaption { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; font-size: 15px; }
.photo figcaption span:first-child { font-weight: 500; white-space: nowrap; }
.photo figcaption .muted { text-align: right; }

/* ---------- Journey ---------- */
.journey { padding: clamp(96px, 12vw, 180px) 0; }
.rows { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.row {
  position: relative;
  display: grid; grid-template-columns: 80px minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: start;
  padding: 30px 0;
}
.row__line { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); transform-origin: 0 50%; }
.row__n { padding-top: .5em; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.row h3 { margin-bottom: 12px; font-size: clamp(22px, 2.4vw, 34px); letter-spacing: -0.035em; line-height: 1.1; transition: transform .6s var(--ease); }
.row p { padding-top: .3em; color: var(--muted); font-size: 16px; max-width: 460px; }
.row:hover h3 { transform: translateX(12px); }
.row--now .row__n { color: var(--accent); }
.row--now h3::after { content: ""; display: inline-block; width: 10px; height: 10px; margin-left: 14px; border-radius: 50%; background: var(--accent); vertical-align: middle; animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* ---------- Teaching ---------- */
.teaching { padding: 0 0 clamp(96px, 12vw, 180px); }
.teaching__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.teaching__img { overflow: hidden; border-radius: 24px; aspect-ratio: 4 / 5; background: #1a1a1a; }
.teaching__img img { width: 100%; height: 118%; object-fit: cover; object-position: left top; margin-top: -9%; }
.teaching__title { font-size: clamp(38px, 4.6vw, 72px); letter-spacing: -0.05em; line-height: .98; }
.teaching__stats { display: grid; gap: 32px; margin-top: clamp(40px, 5vw, 64px); }
.teaching__stats > div { padding-top: 20px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 140px 1fr; gap: 20px; align-items: baseline; }
.teaching__num { font-size: clamp(44px, 4.6vw, 64px); font-weight: 600; letter-spacing: -0.055em; line-height: 1; }
.teaching__stats p:last-child { color: var(--muted); font-size: 16px; }

/* ---------- Contact ---------- */
.contact { padding: clamp(96px, 12vw, 180px) 0 0; border-radius: 28px 28px 0 0; }
.contact__big {
  display: flex; flex-direction: column;
  font-size: clamp(56px, 11.5vw, 210px);
  font-weight: 600; letter-spacing: -0.065em; line-height: .88;
}
.contact__big .line:last-child { color: var(--dark-muted); transition: color .6s var(--ease); }
.contact__big:hover .line:last-child { color: var(--accent); }
.contact__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(40px, 5vw, 64px); }
.footer {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 32px;
  margin-top: clamp(96px, 12vw, 180px);
  padding-top: 28px; padding-bottom: 28px;
  border-top: 1px solid var(--dark-line);
  font-size: 14px; color: var(--dark-muted);
}
.footer a { color: var(--paper); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .card__inner { grid-template-columns: 1fr 1.1fr; }
  .card__body { display: none; }
}
@media (max-height: 720px) and (min-width: 901px) {
  .card { min-height: 0; }
  .card__body { display: none; }
}
@media (max-width: 900px) {
  .card { position: relative; top: 0; height: auto; min-height: 0; }
  .card__inner { grid-template-columns: 1fr; }
  .card__media { order: -1; aspect-ratio: 16 / 10; }
  .card__body { display: block; }
  .card h3 { margin-top: 20px; }
  .numbers { grid-template-columns: 1fr 1fr; gap: 40px var(--gutter); }
  .section-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .section-side { padding-bottom: 0; }
  .photos { grid-template-columns: 1fr; gap: 40px; }
  .photos .photo:nth-child(2) { margin-top: 0; }
  .row { grid-template-columns: 48px 1fr; }
  .row p { grid-column: 2; }
  .teaching__grid { grid-template-columns: 1fr; }
  .teaching__img { aspect-ratio: 4 / 3; }
  .video__caption { flex-direction: column; gap: 6px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero__top { font-size: 13px; }
  .hero__name { margin-top: 10vh; }
  .hero__bottom { flex-direction: column; align-items: flex-start; gap: 28px; }
  .hero__scroll { display: none; }
  .card { border-radius: 22px; }
  .card__facts { grid-template-columns: 1fr; gap: 10px; }
  .video { border-radius: 16px; }
  .video__play { width: 72px; height: 72px; }
  .photo figcaption { flex-direction: column; gap: 2px; }
  .photo figcaption .muted { text-align: left; }
  .teaching__stats > div { grid-template-columns: 1fr; gap: 8px; }
  .row { gap: 12px; padding: 24px 0; }
  .marquee { padding: 18px 0; }
  .marquee__dot { width: 8px; height: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .card { position: relative; top: 0; }
}

/* ---------- Krishna's portfolio content ---------- */
.personal-details {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px var(--gutter);
  margin: clamp(56px, 8vw, 100px) 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.personal-details > div { min-width: 0; }
.personal-details dt { color: var(--muted); font-size: 13px; }
.personal-details dd { margin: 4px 0 0; overflow-wrap: anywhere; font-size: 15px; }
.personal-details a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }

.skills-section { padding: clamp(96px, 12vw, 180px) 0; }
.skills-section .section-head { margin-bottom: clamp(48px, 6vw, 88px); }
.skills-list { border-top: 1px solid var(--dark-line); }
.skill-row {
  display: grid;
  grid-template-columns: minmax(160px, .8fr) minmax(0, 1.2fr) minmax(180px, .8fr);
  align-items: center;
  gap: 28px;
  padding: 24px 0;
  border-bottom: 1px solid var(--dark-line);
  font-size: 15px;
}
.skill-row h3 { margin: 0; font-size: 16px; line-height: 1.3; }
.skill-row p { margin: 0; color: var(--dark-muted); line-height: 1.55; }
.skill-progress { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.skill-progress > span { min-width: 72px; color: var(--accent); font-size: 12px; text-align: right; }
.skill-track { height: 5px; overflow: hidden; border-radius: 999px; background: var(--dark-line); }
.skill-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #9cbe55, var(--accent)); box-shadow: 0 0 12px rgba(200, 236, 99, .28); }
.skills-note { margin-top: 16px; color: var(--dark-muted); font-size: 12px; }

.work-section { padding-bottom: clamp(96px, 12vw, 180px); }
.project-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 32px; }
.filter {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 14px;
  cursor: pointer;
  transition: color .25s ease, background .25s ease, border-color .25s ease;
}
.filter:hover, .filter.is-active { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 20px; }
.project-tile[hidden] { display: none; }
.project-reveal { animation: projectReveal .55s var(--ease) both; }
@keyframes projectReveal {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.project-art {
  position: relative;
  display: grid;
  min-height: clamp(220px, 25vw, 360px);
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(226, 64, 28, .2), transparent 55%),
    var(--ink);
  color: var(--paper);
}
.project-tile:nth-child(3n + 2) .project-art { background: var(--paper-2); color: var(--ink); }
.project-tile:nth-child(3n) .project-art { background: #d7d2ca; color: var(--ink); }
.project-art::before, .project-art::after, .project-art i {
  position: absolute;
  width: 68%;
  aspect-ratio: 1;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "";
  opacity: .14;
  transition: transform 1s var(--ease);
  z-index: 1;
}
.project-art::after { width: 48%; }
.project-art i { width: 28%; }
.project-art > img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.62) saturate(.78);
  transition: filter .8s var(--ease), transform 1s var(--ease);
}
.project-tile:hover .project-art > img { filter: brightness(.78) saturate(.92); transform: scale(1.045); }
.project-tile:hover .project-art::before { transform: scale(1.13); }
.project-tile:hover .project-art::after { transform: scale(.88); }
.project-art > span { position: absolute; z-index: 2; top: 18px; left: 18px; color: var(--paper); font-size: 12px; letter-spacing: .08em; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.project-art strong { display: none; }
.project-tile[data-category="Books"] .project-art { background: #fff; }
.project-tile[data-category="Books"] .project-art > img { object-fit: contain; filter: none; }
.project-tile[data-category="Books"] .project-art > span { color: var(--ink); text-shadow: none; }
.project-tile[data-category="Books"]:hover .project-art > img { filter: none; }
.project-caption { display: flex; justify-content: space-between; gap: 20px; padding-top: 14px; }
.project-caption h3 { font-size: 20px; }
.project-caption p, .project-caption > span { margin-top: 5px; color: var(--muted); font-size: 14px; }
.project-note { margin-top: 28px; color: var(--muted); font-size: 14px; }

.services-section, .testimonials-section { padding: clamp(96px, 12vw, 180px) 0; }
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card { display: flex; min-height: 290px; flex-direction: column; align-items: flex-start; padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service-card > span { color: var(--muted); font-size: 14px; }
.service-card h3 { margin-top: 48px; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.05; }
.service-card p { margin-top: 14px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.service-card a { margin-top: auto; padding-top: 24px; font-size: 14px; }

.testimonials-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--dark-line); }
.testimonial-card { position: relative; display: flex; min-height: 310px; flex-direction: column; margin: 0; padding: clamp(24px, 3vw, 40px); background: var(--dark); }
.quote-mark { color: var(--accent); font-size: 52px; line-height: .8; }
.testimonial-card > p { max-width: 620px; margin: 22px 0 32px; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.5; }
.testimonial-card footer { display: flex; gap: 18px; align-items: flex-start; margin-top: auto; color: var(--dark-muted); font-size: 13px; }
.testimonial-card footer > span:first-child { color: var(--accent); }
.testimonial-card footer strong, .testimonial-card footer small { display: block; }
.testimonial-card footer strong { color: var(--paper); font-size: 14px; font-weight: 500; }
.testimonial-card footer small { margin-top: 3px; }

.contact__layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: clamp(48px, 8vw, 120px); align-items: start; }
.contact__big { font-size: clamp(48px, 8.5vw, 140px); }
.contact__big .line:last-child { color: var(--dark-muted); transition: color .6s var(--ease); }
.contact__big:hover .line:last-child { color: var(--accent); }
.contact__intro { max-width: 500px; margin-top: 28px; color: var(--dark-muted); font-size: 16px; }
.contact__details { display: grid; justify-items: start; gap: 10px; margin-top: 28px; color: var(--paper); font-size: 15px; font-style: normal; }
.contact__details a { overflow-wrap: anywhere; }
.contact__links { gap: 10px; }
.contact-form { display: grid; gap: 10px; }
.contact-form label { margin-top: 8px; color: var(--dark-muted); font-size: 14px; }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--dark-line);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--paper);
  font: inherit;
  font-size: 16px;
  resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); }
.contact-form button { justify-self: start; margin-top: 18px; border: 0; cursor: pointer; }
.form-note { margin: 0; color: var(--dark-muted); font-size: 14px; }

@media (max-width: 900px) {
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .personal-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact__layout { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .personal-details { gap: 20px 16px; }
  .skill-row { grid-template-columns: 1fr; gap: 10px; font-size: 14px; }
  .skill-progress { grid-template-columns: minmax(0, 1fr) auto; margin-top: 4px; }
  .project-grid, .services-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .project-art { min-height: 280px; }
  .service-card { min-height: 240px; }
  .testimonial-card { min-height: 280px; }
  .contact__big { font-size: clamp(46px, 12vw, 76px); }
}

/* Sovereign Krishna's own direction: luminous citron, editorial grid, portrait feature. */
:root {
  --paper: #f3f1e9;
  --paper-2: #e7e5dc;
  --card: #faf9f4;
  --ink: #171815;
  --ink-2: #3b3d35;
  --muted: #777a70;
  --line: rgba(23, 24, 21, .14);
  --accent: #c8ec63;
  --dark: #171914;
  --dark-line: rgba(243, 241, 233, .15);
  --dark-muted: #a4a79a;
}

.nav {
  mix-blend-mode: normal;
  color: var(--ink);
  background: rgba(243, 241, 233, .9);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__brand { display: inline-flex; align-items: center; }
.nav__links { gap: clamp(16px, 2.2vw, 32px); }
.nav__cta { background: var(--accent); color: var(--ink); }
.nav__menu { background: var(--accent); }
.menu__links a:hover { color: var(--accent); }

.hero {
  isolation: isolate;
  min-height: 100svh;
  padding-top: calc(var(--nav-h) + 32px);
  padding-bottom: 30px;
  background:
    linear-gradient(90deg, transparent calc(100% - var(--gutter)), rgba(23, 24, 21, .04) calc(100% - var(--gutter))),
    var(--paper);
}
.hero::before {
  position: absolute;
  top: 0;
  right: max(4.5vw, 52px);
  bottom: 0;
  z-index: -1;
  width: 1px;
  background: var(--line);
  content: "";
}
.hero__top { align-items: start; font-size: 14px; }
.hero__availability { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); }
.hero__availability i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #79a63d;
  box-shadow: 0 0 0 4px rgba(121, 166, 61, .14);
  animation: availabilityPulse 2.4s ease-in-out infinite;
}
@keyframes availabilityPulse { 50% { box-shadow: 0 0 0 8px rgba(121, 166, 61, 0); } }
.hero__content {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(280px, .62fr);
  align-items: center;
  gap: clamp(24px, 4vw, 72px);
  width: min(100%, 1550px);
  margin: clamp(26px, 5vh, 60px) auto;
}
.hero__identity { min-width: 0; }
.hero__eyebrow {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: clamp(24px, 4vh, 48px);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.hero__name {
  margin: 0 0 22px -.045em;
  font-size: clamp(66px, 10.1vw, 156px);
  letter-spacing: -.078em;
  line-height: .79;
}
.hero__name .line { width: max-content; max-width: 100%; }
.hero__name .line--right { align-self: flex-start; }
.hero__name-dot { color: #83a93c; }
.hl { color: var(--paper); }
.hl__bg { background: var(--ink); }
.hero__tagline {
  max-width: 460px;
  margin-top: clamp(26px, 4vh, 48px);
  color: var(--muted);
  font-size: clamp(19px, 2.1vw, 29px);
  letter-spacing: -.035em;
  line-height: 1.25;
}
.hero__tagline span { color: var(--ink); }
.hero__portrait { width: 100%; max-width: 430px; margin: 0 auto; }
.hero__portrait-frame {
  position: relative;
  min-height: clamp(390px, 52vh, 610px);
  overflow: hidden;
  border-radius: 190px 190px 12px 12px;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(200, 236, 99, .32), transparent 58%),
    linear-gradient(160deg, #36392c, #1a1b17 70%);
  box-shadow: 0 28px 80px rgba(23, 24, 21, .16);
}
.hero__portrait-frame::before {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(243, 241, 233, .18);
  border-radius: 180px 180px 7px 7px;
  content: "";
  pointer-events: none;
}
.hero__portrait-frame::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 56%, rgba(15, 16, 13, .36));
  content: "";
  pointer-events: none;
}
.hero__portrait-frame img {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 97%;
  max-width: none;
  object-fit: contain;
  object-position: center bottom;
  filter: contrast(1.04);
  transition: transform 1.2s var(--ease), filter 1.2s var(--ease);
}
.hero__portrait-frame:hover img { transform: scale(1.025); filter: contrast(1.08); }
.hero__portrait-orbit {
  position: absolute;
  top: 21%;
  left: 50%;
  width: 72%;
  aspect-ratio: 1;
  border: 1px solid rgba(200, 236, 99, .44);
  border-radius: 50%;
  transform: translateX(-50%);
  animation: orbitBreath 8s ease-in-out infinite;
}
.hero__portrait-orbit::after {
  position: absolute;
  top: 17%;
  right: 7%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 20px rgba(200, 236, 99, .9);
  content: "";
}
@keyframes orbitBreath { 50% { transform: translateX(-50%) scale(1.06) rotate(9deg); opacity: .6; } }
.hero__portrait-index {
  position: absolute;
  bottom: 25px;
  left: 27px;
  z-index: 3;
  color: var(--paper);
  font-size: 10px;
  letter-spacing: .12em;
  line-height: 1.5;
}
.hero__portrait figcaption {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  color: var(--muted);
  font-size: 11px;
}
.hero__portrait figcaption span:last-child { text-align: right; }
.hero__bottom {
  align-items: flex-end;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.hero__intro { max-width: 530px; font-size: clamp(16px, 1.45vw, 20px); }
.hero__scroll { color: var(--ink); }
.hero__scroll-line { background: var(--line); }
.hero__scroll-line::after { background: #83a93c; }

.statement { padding-top: clamp(110px, 14vw, 190px); }
.statement .label { text-transform: uppercase; letter-spacing: .08em; }
.statement__text { max-width: 1160px; }
.numbers__item { border-top-color: rgba(23, 24, 21, .2); }
.numbers__item dd { color: #788f42; }
.personal-details { row-gap: 30px; }
.personal-details > div { padding-left: 13px; border-left: 2px solid rgba(131, 169, 60, .58); }

.marquee { border-color: var(--line); }
.marquee__dot { background: #92b748; }
.skills-section { background: #20231c; }

.section-title { letter-spacing: -.075em; }
.row__n, .service-card > span, .testimonial-card footer > span:first-child { color: #82a63f; }
.row--now h3::after { background: #92b748; }
.project-art { border-radius: 6px 70px 6px 6px; }
.project-tile:nth-child(3n + 2) .project-art { border-radius: 70px 6px 6px 6px; }
.project-tile:nth-child(3n) .project-art { border-radius: 6px 6px 70px 6px; }
.project-art img { filter: brightness(.68) saturate(.72); }
.project-tile:hover .project-art img { filter: brightness(.84) saturate(.94); }
.filter:hover, .filter.is-active { border-color: #87a945; background: #87a945; color: #14160f; }
.service-card { transition: background .4s var(--ease), transform .5s var(--ease); }
.service-card:hover { z-index: 1; background: rgba(200, 236, 99, .1); transform: translateY(-4px); }
.testimonial-card { background: #1b1e18; }
.quote-mark { color: var(--accent); }
.contact { border-radius: 0; }
.contact__big:hover .line:last-child { color: var(--accent); }
.contact__links .pill--light, .contact-form .pill--light { background: var(--accent); color: var(--ink); }
.cursor { background: #91b44c; }
.loader__glow { mix-blend-mode: screen; }

@media (max-width: 900px) {
  .hero__content { grid-template-columns: minmax(0, 1.1fr) minmax(230px, .9fr); gap: 24px; }
  .hero__name { font-size: clamp(64px, 9.2vw, 100px); }
  .hero__portrait-frame { min-height: clamp(340px, 50vh, 500px); }
}
@media (max-width: 700px) {
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 28px); }
  .hero::before { right: 22px; }
  .hero__top { font-size: 12px; }
  .hero__content { grid-template-columns: 1fr; gap: 34px; margin: 40px 0 36px; }
  .hero__eyebrow { margin-bottom: 25px; font-size: 10px; }
  .hero__name { font-size: clamp(70px, 14vw, 112px); }
  .hero__tagline { margin-top: 25px; font-size: 21px; }
  .hero__portrait { width: min(78%, 360px); }
  .hero__portrait-frame { min-height: clamp(380px, 105vw, 500px); border-radius: 170px 170px 10px 10px; }
  .hero__bottom { flex-direction: row; align-items: flex-end; gap: 18px; }
  .hero__intro { max-width: 290px; font-size: 15px; }
  .hero__scroll { gap: 8px; font-size: 12px; }
  .hero__scroll-line { width: 35px; }
}
@media (max-width: 420px) {
  .hero__time { font-size: 11px; }
  .hero__name { font-size: clamp(62px, 14vw, 82px); }
  .hero__portrait { width: 88%; }
  .hero__bottom { align-items: flex-start; flex-direction: column; }
  .hero__scroll { align-self: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__availability i, .hero__portrait-orbit { animation: none; }
}

/* Keep the reference composition: name first, with no portrait on the front page. */
:root {
  --paper: #f2f0eb;
  --paper-2: #e8e5de;
  --card: #fbfaf7;
  --ink: #121212;
  --ink-2: #3d3b38;
  --muted: #84807a;
  --line: rgba(18, 18, 18, .12);
  --accent: #e2401c;
  --dark: #111110;
  --dark-line: rgba(242, 240, 235, .14);
  --dark-muted: #8f8b84;
}

.nav { mix-blend-mode: difference; background: transparent; color: #fff; box-shadow: none; }
.nav__brand-mark { background: #fff; color: #111; }
.nav__cta, .nav__menu { background: #fff; color: #111; }
.menu__links a:hover { color: var(--accent); }
.hero {
  min-height: 100svh;
  padding: calc(var(--nav-h) + 24px) var(--gutter) 32px;
  background: var(--paper);
}
.hero::before { display: none; }
.hero__top { font-size: 15px; }
.hero__name {
  display: flex;
  flex-direction: column;
  margin: 6vh 0 4vh -.04em;
  font-size: clamp(76px, 18.6vw, 340px);
  font-weight: 600;
  letter-spacing: -.065em;
  line-height: .84;
}
.hero__name .line--right { align-self: flex-end; }
.hero__bottom { border-top: 0; }
.hero__intro { max-width: 380px; font-size: clamp(18px, 1.6vw, 22px); }
.hero__scroll-line::after { background: var(--ink); }

@media (max-width: 700px) {
  .hero { min-height: 100svh; padding: calc(var(--nav-h) + 24px) var(--gutter) 32px; }
  .hero__top { font-size: 13px; }
  .hero__name { margin-top: 10vh; font-size: clamp(54px, 15vw, 100px); }
  .hero__bottom { flex-direction: column; align-items: flex-start; gap: 28px; }
  .hero__scroll { display: none; }
}
