/* Hero in the Portfolio Wall product template's layout ("Kavya"): top bar, copy, giant name,
   over a plain photo in a dark palette, with a work switcher. Scoped to .kh. */
@font-face { font-family: 'Syne'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../fonts/syne-latin-var.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/ibmplexmono-latin-400.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/ibmplexmono-latin-500.woff2) format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 200 800; font-display: swap; src: url(../fonts/newsreader-italic-latin-var.woff2) format('woff2'); }

.kh {
  --k-paper: #ffffff; --k-ink: #15171c; --k-panel: rgba(235,235,234, .82); --k-hl: #15171c; --k-line: rgba(235,235,234, .18);
  --k-display: 'Syne', 'Inter', system-ui, sans-serif; --k-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace; --k-serif: 'Newsreader', Georgia, serif;
  --k-gut: clamp(18px, 3.4vw, 56px); --k-ease: cubic-bezier(.2, .7, .1, 1);
  height: 100svh; min-height: 680px; position: relative; overflow: hidden; background: var(--k-ink); color: var(--k-paper); isolation: isolate;
  font-family: 'Inter', system-ui, sans-serif;
}
.kh .mono { font-family: var(--k-mono); text-transform: uppercase; letter-spacing: .06em; }

/* the photo: sharp, just toned down to sit in the dark palette */
.kh { background: radial-gradient(120% 90% at 48% 30%, #2a2a2a 0%, #15171c 45%, #0a0a0a 100%); }
.kh .kh-photo { position: absolute; top: 0; left: 52%; transform: translateX(-50%); height: 100%; width: auto; max-width: none; object-fit: cover;
  filter: brightness(.86) contrast(1.04) saturate(.95);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 84%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 84%, transparent 100%); }
.kh .hero-scrim { position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(180deg, rgba(235,235,234,.45) 0%, rgba(235,235,234,0) 14%, rgba(235,235,234,0) 50%, rgba(235,235,234,.92) 100%); }

/* top bar */
.kh .kh-nav { position: absolute; left: 0; right: 0; top: 0; z-index: 6; display: flex; align-items: center; gap: 30px; padding: 22px var(--k-gut) 0; }
.kh .kh-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.kh .kh-mark { width: 36px; height: 36px; display: grid; place-content: center; border: 1.5px solid var(--k-paper); font-size: 11px; font-weight: 500; letter-spacing: 0; }
.kh .kh-bname { font: 700 19px/1 var(--k-display); letter-spacing: -.02em; }
.kh .kh-links { display: flex; gap: 30px; font-size: 13px; }
.kh .kh-links a { color: inherit; text-decoration: none; opacity: .85; }
.kh .kh-links a:hover { opacity: 1; color: var(--k-hl); }
.kh .kh-r { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: 12px; }
.kh .kh-avail { display: inline-flex; align-items: center; gap: 8px; }
.kh .kh-clock b { font-weight: 500; }
.kh .dot-live { width: 8px; height: 8px; border-radius: 50%; background: #3ad07a; display: inline-block; box-shadow: 0 0 0 0 rgba(58,208,122,.6); animation: kh-pulse 2s infinite; }
@keyframes kh-pulse { 70% { box-shadow: 0 0 0 8px rgba(58,208,122,0); } 100% { box-shadow: 0 0 0 0 rgba(58,208,122,0); } }

/* buttons */
.kh .pill { display: inline-flex; align-items: center; gap: .6em; height: 52px; padding: 0 24px; border-radius: 999px; font: 500 15px/1 'Inter', system-ui, sans-serif; text-decoration: none; border: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer; transition: background .3s, color .3s, border-color .3s; white-space: nowrap; }
.kh .pill-solid { background: var(--k-hl); color: var(--k-ink); border-color: var(--k-hl); }
.kh .pill-solid:hover { background: var(--k-paper); border-color: var(--k-paper); }
.kh .pill-ghost { color: var(--k-paper); border-color: rgba(235,235,234,.45); }
.kh .pill-ghost:hover { background: rgba(235,235,234,.12); }
.kh .kh-cta { height: 46px; padding: 0 22px; font-family: var(--k-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.kh .arr { transition: transform .4s var(--k-ease); }
.kh a:hover .arr { transform: translateX(4px); }
.kh :focus-visible { outline: 2px solid var(--k-hl); outline-offset: 3px; }

/* layout */
.kh .hero-in { position: absolute; inset: 0; z-index: 4; padding: 112px var(--k-gut) 26px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); grid-template-rows: auto 1fr auto auto; column-gap: 40px; }
.kh .hero-in > * { min-width: 0; }
.kh .hero-copy { grid-column: 1; grid-row: 1; max-width: 440px; }
.kh .hero-sub { margin: 0; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.42; font-weight: 450; letter-spacing: -.01em; text-wrap: balance; }
.kh .hero-for { margin: 14px 0 0; font-size: 14px; color: rgba(235,235,234,.8); border-left: 2px solid var(--k-hl); padding-left: 12px; }
.kh .hero-cta { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.kh .hero-name { grid-column: 1; grid-row: 3; align-self: end; margin: 0 0 6px -.04em; font-family: var(--k-display); font-weight: 800; font-size: 12vw; line-height: .82; letter-spacing: -.055em; color: var(--k-paper); white-space: nowrap; }
.kh .hero-name .nl { display: block; width: max-content; }
.kh .hero-name .nl + .nl { padding-left: 1.1em; margin-top: -.06em; }
.kh .hero-name em { font-family: var(--k-serif); font-weight: 300; font-style: italic; letter-spacing: -.045em; }

/* the work card */
.kh .kw-card { grid-column: 2; grid-row: 1 / 4; align-self: center; background: var(--k-panel); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid var(--k-line); border-radius: 18px; padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 10px; }
.kh .kw-top { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; color: rgba(235,235,234,.7); }
.kh .kw-big { font: 800 clamp(56px, 6vw, 88px)/.9 var(--k-display); letter-spacing: -.04em; color: var(--k-hl); margin-top: 6px; }
.kh .kw-what { margin: 0; font: 400 12px/1.4 var(--k-mono); text-transform: uppercase; letter-spacing: .06em; color: rgba(235,235,234,.85); }
.kh .kw-title { margin: 8px 0 0; font: 700 19px/1.25 var(--k-display); letter-spacing: -.01em; text-wrap: balance; }
.kh .kw-res { margin: 0; font-size: 14px; line-height: 1.5; color: rgba(235,235,234,.82); }
.kh .kw-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--k-line); }
.kh .kw-chip { font-size: 10px; padding: 5px 9px; border: 1px solid var(--k-line); border-radius: 999px; color: rgba(235,235,234,.8); }
.kh .kw-link { color: var(--k-hl); text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; }

/* project tabs */
.kh .kw-tabs { grid-column: 1 / -1; grid-row: 4; display: grid; grid-template-columns: repeat(var(--kw-n, 7), minmax(0, 1fr)); border-top: 1px solid var(--k-line); }
.kh .kw-tabs button { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 12px 4px 0; border: 0; background: none; color: rgba(235,235,234,.6); font: inherit; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; text-align: left; cursor: pointer; transition: color .25s; }
.kh .kw-tabs button b { font-weight: 500; color: rgba(235,235,234,.45); }
.kh .kw-tabs button span { display: block; line-height: 1.35; }
.kh .kw-tabs button:hover, .kh .kw-tabs button[aria-selected="true"] { color: var(--k-paper); }
.kh .kw-tabs button[aria-selected="true"] b { color: var(--k-hl); }
.kh .kw-tabs button i { position: absolute; left: 0; right: 12px; top: -1px; height: 2px; background: var(--k-hl); transform-origin: left; transform: scaleX(0); }
.kh .kw-tabs button[aria-selected="true"] i { transform: scaleX(var(--kw-p, 1)); }
.kh.kw-manual .kw-tabs button[aria-selected="true"] i { transform: scaleX(1); }

@media (max-width: 1100px) { .kh .kh-links, .kh .kh-avail { display: none; } }
@media (max-width: 820px), (orientation: portrait) and (max-width: 1100px) {
  .kh { height: auto; min-height: 100svh; }
  .kh .kh-photo { left: 0; transform: none; width: 100%; height: 72svh; object-position: 50% 15%; -webkit-mask-image: none; mask-image: none; }
  .kh .hero-scrim { height: 72svh; background: linear-gradient(180deg, rgba(235,235,234,.55) 0%, rgba(235,235,234,0) 22%, rgba(235,235,234,.2) 60%, rgba(235,235,234,1) 100%); }
  .kh .kh-clock { display: none; }
  .kh .kh-nav { padding-top: 14px; gap: 12px; }
  .kh .kh-r { gap: 0; }
  .kh .kh-bname { font-size: 16px; }
  .kh .kh-cta { height: 38px; padding: 0 14px; font-size: 11px; }
  .kh .hero-in { position: relative; inset: auto; min-height: 100svh; padding-top: 46svh; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto auto; row-gap: 18px; }
  .kh .hero-name { grid-column: 1; grid-row: 1; margin-bottom: 0; }
  .kh .hero-copy { grid-column: 1; grid-row: 2; }
  .kh .hero-sub { font-size: 17px; }
  .kh .hero-cta { margin-top: 16px; }
  .kh .hero-cta .pill { height: 44px; padding: 0 18px; font-size: 14px; }
  .kh .kw-card { grid-column: 1; grid-row: 3; }
  .kh .kw-tabs { grid-row: 4; display: flex; overflow-x: auto; scrollbar-width: none; gap: 18px; }
  .kh .kw-tabs button { flex: none; max-width: 150px; }
}
@media (prefers-reduced-motion: reduce) { .kh .dot-live { animation: none; } }

/* links in the work card */
.kh .kw-links { display: inline-flex; gap: 14px; align-items: center; }
.kh .kw-visit { color: var(--k-paper); text-decoration: none; font-size: 13px; font-weight: 500; opacity: .85; white-space: nowrap; }
.kh .kw-visit:hover { opacity: 1; color: var(--k-hl); }

@media (min-width: 1101px), (min-width: 821px) and (orientation: landscape) { .kh .kw-card { grid-row: 2 / 4; align-self: end; width: min(340px, 100%); justify-self: end; margin-bottom: 8px; } .kh .hero-in { grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); } }
