/*
Theme Name: Tarun Poddar
Theme URI: https://tarunpoddar.com/
Author: Foxhog
Description: A cinematic, animated personal website for Tarun Poddar, CEO of Foxhog.
Version: 3.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: tarun-poddar
*/

:root {
  --ink: #08090c;
  --ink-2: #11141a;
  --paper: #f6f6f4;
  --muted: #a9adb7;
  --line: rgba(255, 255, 255, 0.14);
  --red: #e31e2b;
  --red-deep: #8d0710;
  --gold: #f14b55;
  --display: "Cormorant Garamond", Georgia, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: #fff;
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 8% 12%, rgba(227, 30, 43, .18), transparent 25%),
    radial-gradient(circle at 88% 35%, rgba(227, 30, 43, .08), transparent 24%),
    linear-gradient(135deg, #040506, #111318 55%, #050506);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }

.site-shell { min-height: 100vh; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.section-title {
  max-width: 820px;
  margin: 20px 0 26px;
  font-family: var(--display);
  font-size: clamp(42px, 6vw, 78px);
  font-weight: 500;
  line-height: .96;
  letter-spacing: -.03em;
}
.section-copy { max-width: 690px; color: var(--muted); font-size: 17px; }
.section { padding: 120px 0; position: relative; }
.section::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: min(180px, 18vw);
  height: 1px;
  background: linear-gradient(90deg, var(--red), transparent);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
}
.site-header.scrolled {
  background: rgba(8, 9, 12, .78);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}
.nav {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand-mark {
  width: 30px; height: 30px;
  background: var(--red);
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
  filter: drop-shadow(0 0 14px rgba(226, 46, 50, .45));
}
.brand-name { font-family: var(--display); font-size: 26px; letter-spacing: .01em; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 13px; color: #d7d9df; }
.nav-links a { position: relative; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -7px;
  height: 1px; background: var(--red);
  transition: right .25s ease;
}
.nav-links a:hover::after { right: 0; }
.menu-button { display: none; background: none; color: #fff; border: 0; font-size: 24px; }

.hero {
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: 140px 0 72px;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: 53% 30%;
  filter: saturate(.58) contrast(1.1) brightness(.48);
  transform: scale(1.04);
  animation: cinematicZoom 14s ease-out both;
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(4,5,6,.96), rgba(8,9,12,.66) 46%, rgba(141,7,16,.20)),
    linear-gradient(0deg, var(--ink) 0, transparent 42%),
    linear-gradient(180deg, rgba(8,9,12,.65), transparent 35%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: end; }
.hero h1 {
  max-width: 850px;
  margin: 22px 0 22px;
  font-family: var(--display);
  font-size: clamp(70px, 11vw, 150px);
  font-weight: 500;
  line-height: .76;
  letter-spacing: -.055em;
}
.hero h1 span { display: block; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.68); }
.hero-lead { max-width: 630px; color: #d3d5db; font-size: clamp(16px, 1.8vw, 21px); }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px;
  border: 1px solid var(--line);
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}
.button:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.45); }
.button-primary {
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  border-color: var(--red);
  box-shadow: 0 14px 44px rgba(227, 30, 43, .24);
}
.hero-note {
  border-left: 1px solid rgba(255,255,255,.4);
  padding: 12px 0 12px 28px;
  color: #c7cad2;
  font-family: var(--display);
  font-size: 23px;
  font-style: italic;
}
.scroll-cue {
  position: absolute; right: 36px; bottom: 44px;
  display: flex; align-items: center; gap: 12px;
  color: var(--muted); font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  writing-mode: vertical-rl;
}
.scroll-cue i { display: block; width: 1px; height: 72px; background: linear-gradient(#fff, transparent); }

.ticker { overflow: hidden; border-block: 1px solid var(--line); background: rgba(255,255,255,.025); }
.ticker-track { display: flex; width: max-content; animation: ticker 28s linear infinite; }
.ticker-item {
  padding: 21px 28px;
  color: #d5d7dd;
  font-family: var(--display);
  font-size: 22px;
  white-space: nowrap;
}
.ticker-item::after { content: "◆"; margin-left: 54px; color: var(--red); font-size: 10px; }

.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: start; }
.portrait-card { position: sticky; top: 120px; }
.portrait-frame { position: relative; overflow: hidden; aspect-ratio: 4/5; background: var(--ink-2); }
.portrait-frame img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 20%;
  filter: saturate(.62) contrast(1.08) brightness(.8);
  transition: transform .7s cubic-bezier(.2,.7,.2,1);
}
.portrait-frame:hover img { transform: scale(1.035); }
.portrait-frame::before, .portrait-frame::after {
  content: ""; position: absolute; z-index: 2; pointer-events: none;
}
.portrait-frame::before { inset: 18px; border: 1px solid rgba(255,255,255,.25); }
.portrait-frame::after {
  width: 100px; height: 100px; top: 0; right: 0;
  background: var(--red); clip-path: polygon(100% 0, 0 0, 100% 100%);
}
.caption { margin-top: 14px; display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.bio p { color: #c0c3cb; font-size: 18px; }
.bio p:first-of-type::first-letter {
  float: left; margin: 8px 10px 0 0;
  color: var(--gold); font-family: var(--display); font-size: 74px; line-height: .62;
}
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 58px; background: var(--line); border: 1px solid var(--line); }
.stat { min-height: 150px; padding: 28px; background: var(--ink); }
.stat strong { display: block; color: var(--paper); font-family: var(--display); font-size: 42px; font-weight: 500; }
.stat span { color: var(--muted); font-size: 12px; letter-spacing: .11em; text-transform: uppercase; }

.recognition {
  background:
    radial-gradient(circle at 88% 18%, rgba(227,30,43,.12), transparent 28%),
    linear-gradient(135deg, #090a0d, #111319);
  color: #fff;
  overflow: hidden;
}
.recognition .eyebrow { color: var(--red); }
.recognition .section-copy { color: var(--muted); }
.award-list { margin-top: 70px; border-top: 1px solid var(--line); }
.award {
  display: grid; grid-template-columns: 90px 1fr 260px;
  gap: 28px; align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left .3s ease, background .3s ease;
}
.award:hover { padding-left: 18px; background: rgba(227,30,43,.055); }
.award-year { color: #8f939d; font-size: 13px; }
.award-title { font-family: var(--display); font-size: clamp(27px, 4vw, 46px); line-height: 1; }
.award-body { color: var(--muted); font-size: 14px; }
.award-badge {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
}

.vision-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.vision-image { min-height: 650px; position: relative; overflow: hidden; }
.vision-image img { width: 100%; height: 100%; position: absolute; object-fit: cover; filter: grayscale(1) contrast(1.1); }
.vision-image::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px var(--line); }
.principles { display: grid; gap: 24px; margin-top: 45px; }
.principle { display: grid; grid-template-columns: 46px 1fr; gap: 18px; padding-top: 22px; border-top: 1px solid var(--line); }
.principle-number { color: var(--red); font-family: var(--display); font-size: 25px; }
.principle h3 { margin: 0 0 8px; font-family: var(--display); font-size: 29px; font-weight: 500; }
.principle p { margin: 0; color: var(--muted); font-size: 15px; }

.journey {
  background:
    linear-gradient(90deg, rgba(227,30,43,.035) 1px, transparent 1px),
    #0d0f14;
  background-size: 80px 100%;
}
.timeline { margin-top: 70px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 18px; top: 8px; bottom: 0; width: 1px; background: var(--line); }
.timeline-item { position: relative; padding: 0 0 48px 72px; }
.timeline-dot { position: absolute; left: 11px; top: 6px; width: 15px; height: 15px; border: 3px solid var(--ink-2); border-radius: 50%; background: var(--red); box-shadow: 0 0 0 1px var(--red); }
.timeline-year { color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.timeline-item h3 { margin: 7px 0 8px; font-family: var(--display); font-size: 34px; font-weight: 500; }
.timeline-item p { margin: 0; max-width: 700px; color: var(--muted); }

.quote-section { padding: 140px 0; text-align: center; }
.quote-mark { color: var(--red); font-family: var(--display); font-size: 86px; line-height: .5; }
.quote {
  max-width: 1000px; margin: 20px auto 0;
  font-family: var(--display); font-size: clamp(40px, 6.4vw, 84px); line-height: 1; font-weight: 500;
}
.quote-source { margin-top: 26px; color: var(--muted); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }

.site-footer {
  padding: 34px 0;
  color: #828691;
  font-size: 12px;
  border-top: 1px solid var(--line);
  background: #050607;
}
.footer-row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.source-note { max-width: 720px; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: none; }

@keyframes cinematicZoom { from { transform: scale(1.09); } to { transform: scale(1.02); } }
@keyframes ticker { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
@media (max-width: 900px) {
  .nav-links {
    position: absolute; top: 86px; left: 20px; right: 20px;
    display: none; padding: 22px; flex-direction: column; align-items: flex-start;
    background: rgba(8,9,12,.96); border: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .menu-button { display: block; }
  .hero-grid, .about-grid, .vision-grid { grid-template-columns: 1fr; }
  .hero-note { display: none; }
  .about-grid { gap: 58px; }
  .portrait-card { position: static; }
  .award { grid-template-columns: 64px 1fr; }
  .award-body { grid-column: 2; }
  .vision-image { min-height: 500px; order: 2; }
}
@media (max-width: 620px) {
  .container { width: min(100% - 28px, 1180px); }
  .section { padding: 86px 0; }
  .hero { padding-bottom: 42px; }
  .hero h1 { font-size: clamp(64px, 26vw, 104px); }
  .hero-media img { object-position: 54% 28%; }
  .hero-media::after { background: linear-gradient(0deg, var(--ink) 8%, rgba(8,9,12,.42) 82%); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .stats { grid-template-columns: 1fr; }
  .award { grid-template-columns: 54px 1fr; gap: 16px; }
  .scroll-cue { display: none; }
}
