/* ═══════════════════════════════════════════════════════
   UTKARSH TIWARI — Portfolio v3
   Warm editorial · Light cream base · Ink accents
   Unique header pill + typographic footer
   ═══════════════════════════════════════════════════════ */

/* ── TOKENS ─────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --cream:     #f0ece4;
  --cream2:    #e8e3d8;
  --white:     #fafaf8;
  --ink:       #1e2535;
  --ink2:      #263040;
  --ink3:      #2e3a4a;

  /* Text */
  --text-dark:  #1a1a2e;
  --text-mid:   #5a5648;
  --text-light: #666053;
  --text-inv:   #f0ece4;
  --text-inv2:  #a8b4c0;

  /* Accent — terracotta/rust */
  --ac:         #c0392b;
  --ac-light:   rgba(192,57,43,0.1);
  --ac-mid:     rgba(192,57,43,0.25);

  /* Greens */
  --green:      #27ae60;
  --green-dim:  rgba(39,174,96,0.15);

  /* Borders */
  --bdr:        rgba(17,16,8,0.1);
  --bdr2:       rgba(17,16,8,0.18);
  --bdr-inv:    rgba(240,236,228,0.1);
  --bdr-inv2:   rgba(240,236,228,0.18);

  --sans:  'DM Sans', 'Syne', system-ui, sans-serif;
  --serif: 'DM Serif Display', Georgia, serif;
  --wide:  'Syne', 'DM Sans', system-ui, sans-serif;

  --r:   8px;
  --r2:  16px;
  --r3:  999px;

  --ease:  cubic-bezier(0.22, 1, 0.36, 1);
  --ease2: cubic-bezier(0.65, 0, 0.35, 1);

  --max: 1200px;
}

/* ── RESET ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--white);
  color: var(--text-dark);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { border: none; background: none; font-family: inherit; }
::selection { background: var(--ac); color: #fff; }
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--ac); }

/* ── LOADER ──────────────────────────────────────────── */
#loader {
  position: fixed; inset: 0;
  background: #1a2030;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
#loader.gone { opacity: 0; visibility: hidden; pointer-events: none; }

.ld-inner { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }

.ld-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 5rem;
  color: var(--cream);
  letter-spacing: -0.02em;
  animation: ldName 0.6s var(--ease) both;
}

.ld-progress {
  width: 180px; height: 1px;
  background: rgba(240,236,228,0.15);
}

.ld-bar {
  height: 100%;
  background: var(--ac);
  width: 0;
  animation: ldFill 1.5s var(--ease2) 0.3s both;
}

@keyframes ldName  { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:none; } }
@keyframes ldFill  { from { width:0%; } to { width:100%; } }
@keyframes fadeIn  { from { opacity:0; } to { opacity:1; } }
@keyframes slideUp { from { opacity:0; transform:translateY(100%); } to { opacity:1; transform:none; } }
@keyframes slideRight { from { opacity:0; transform:translateX(-20px); } to { opacity:1; transform:none; } }

/* ── LAYOUT HELPERS ──────────────────────────────────── */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2.5rem;
}

section { padding: 120px 0; }

.sec-cream { background: var(--cream); }
.sec-white { background: var(--white); }
.sec-ink   { background: #353b4d; }

.sec-label {
  font-family: var(--wide);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.8rem;
}

.sec-label.inv { color: rgba(168,180,192,0.6); }

.sec-heading {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text-dark);
  margin-bottom: 4rem;
}

.sec-heading.inv { color: var(--text-inv); }
.sec-heading em  { font-style: italic; color: var(--ac); }
.sec-heading.inv em { color: #e8935a; }

/* ── HEADER ──────────────────────────────────────────── */
#hdr {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 800;
  padding: 1.2rem 0;
  transition: padding 0.4s var(--ease);
}

#hdr.scrolled { padding: 0.7rem 0; }

.hdr-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Logo */
.hdr-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.logo-box {
  width: 36px; height: 36px;
  background: #1e2535;
  color: var(--cream);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background 0.3s;
}

.hdr-logo:hover .logo-box { background: var(--ac); }

.logo-text {
  font-family: var(--wide);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-dark);
}

/* Nav pill */
.hdr-nav {
  display: flex;
  align-items: center;
  position: relative;
  background: #1e2535;
  border-radius: 100px;
  padding: 0.35rem;
  gap: 0.1rem;
  width: fit-content;
  box-shadow: 0 4px 24px rgba(17,16,8,0.12), 0 1px 4px rgba(17,16,8,0.08);
}

.hn-link {
  position: relative;
  z-index: 1;
  font-family: var(--wide);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(240,236,228,0.55);
  padding: 0.5rem 1.1rem;
  border-radius: 100px;
  transition: color 0.3s;
}

.hn-link:hover,
.hn-link.active { color: var(--ink); }

.hn-indicator {
  position: absolute;
  height: calc(100% - 0.7rem);
  top: 0.35rem;
  background: var(--cream);
  border-radius: 100px;
  z-index: 0;
  transition: left 0.4s var(--ease), width 0.4s var(--ease);
  pointer-events: none;
}

/* Right side */
.hdr-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: flex-end;
}

.hdr-icon {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bdr2);
  border-radius: 8px;
  color: var(--text-mid);
  transition: color 0.3s, border-color 0.3s;
}

.hdr-icon:hover { color: var(--text-dark); border-color: var(--text-dark); }

.hdr-cta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--wide);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--ac);
  color: #fff;
  padding: 0.55rem 1.2rem;
  border-radius: 8px;
  transition: background 0.3s, transform 0.3s var(--ease);
}

.hdr-cta:hover { background: var(--ink); transform: translateY(-2px); }

.hdr-burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 4px;
}

.hdr-burger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--text-dark);
  transform-origin: center;
  transition: transform 0.35s var(--ease), opacity 0.3s;
}

.hdr-burger.open span:first-child { transform: translateY(3.75px) rotate(45deg); }
.hdr-burger.open span:last-child  { transform: translateY(-3.75px) rotate(-45deg); }

/* Mobile nav */
.mob-nav {
  position: fixed;
  inset: 0;
  background: #1e2535;
  z-index: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

.mob-nav.open { opacity: 1; pointer-events: all; }

.mob-link {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.5rem;
  color: rgba(240,236,228,0.5);
  transition: color 0.3s;
}

.mob-link:hover { color: var(--cream); }

.hri-link  { color: #e8a87c; transition: color 0.3s; }
.hri-link:hover { color: var(--cream); }

.mob-foot {
  position: absolute;
  bottom: 3rem;
  display: flex;
  gap: 2rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(240,236,228,0.3);
}

.mob-foot a:hover { color: var(--cream); }

/* ── HERO ─────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 55% 45%;
  margin-top: 0;
}

/* LEFT — cream panel */
.hero-left {
  background: var(--cream);
  padding: 9rem 4rem 6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeIn 0.6s 1.8s both;
}

.h-pulse {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 0 var(--green);
  animation: pulse-green 2.5s ease-in-out infinite, fadeIn 0.6s 1.8s both;
  flex-shrink: 0;
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 rgba(39,174,96,0.6); }
  50%       { box-shadow: 0 0 0 8px rgba(39,174,96,0); }
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

.ht-row { overflow: hidden; display: block; }
.ht-row-accent { margin-top: 0.08em; }
.ht-row-accent em { color: var(--ac); }

.slide-in { display: inline-block; animation: slideUp 0.9s var(--ease) both; }
.slide-in       { animation-delay: 1.85s; }
.slide-in.delay-1 { animation-delay: 2.0s; }

/* Role rotator */
.hero-role-wrap {
  height: 2rem;
  overflow: hidden;
  margin-bottom: 1.8rem;
  opacity: 0;
  animation: fadeIn 0.6s 2.3s both;
}

.role-track {
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: transform 0.6s var(--ease);
}

.role-slide {
  display: block;
  height: 2rem;
  line-height: 2rem;
  font-family: var(--wide);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ac);
  white-space: nowrap;
}

.hero-bio {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.8;
  max-width: 440px;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeIn 0.8s 2.4s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeIn 0.8s 2.55s both;
}

.btn-fill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 2rem;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--wide);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--r);
  transition: background 0.3s, transform 0.3s var(--ease);
}

.btn-fill:hover { background: var(--ac); transform: translateY(-2px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 2rem;
  border: 1.5px solid var(--bdr2);
  color: var(--text-dark);
  font-family: var(--wide);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--r);
  transition: border-color 0.3s, color 0.3s, transform 0.3s var(--ease);
}

.btn-ghost:hover { border-color: var(--ac); color: var(--ac); transform: translateY(-2px); }

.hero-meta {
  display: flex;
  align-items: center;
  gap: 2rem;
  opacity: 0;
  animation: fadeIn 0.8s 2.7s both;
}

.hm-item { display: flex; flex-direction: column; gap: 0.2rem; }
.hm-n { font-family: var(--serif); font-size: 1.8rem; font-weight: 400; color: var(--text-dark); line-height: 1; }
.hm-l { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-light); }
.hm-divider { width: 1px; height: 40px; background: var(--bdr2); }

/* RIGHT — ink panel */
.hero-right {
  background: #1d2333;
  padding: 5rem 3.5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2.2rem;
  position: relative;
  opacity: 0;
  animation: fadeIn 1s 2.0s both;
}

/* Decorative left accent line */
.hero-right::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(192,57,43,0.5) 40%, rgba(192,57,43,0.5) 60%, transparent);
}

.hero-avatar-wrap {
  position: relative;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  border-radius: var(--r2);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}

.hero-avatar {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(0.2) contrast(1.1);
  transition: transform 0.6s var(--ease);
  display: block;
}

.hero-avatar-wrap:hover .hero-avatar { transform: scale(1.03); }

.hero-right-info {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r2);
  overflow: hidden;
}

.hri-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  gap: 1rem;
}
.hri-item:last-child { border-bottom: none; }
.hri-label { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #7f8a9e; flex-shrink: 0; }
.hri-val   { font-size: 0.85rem; font-weight: 500; color: #fff; text-align: right; }

.hero-socials {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
}

.hs-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(240,236,228,0.5);
  transition: color 0.3s, border-color 0.3s, background 0.3s, transform 0.3s;
}

.hs-circle svg {
  width: 16px;
  height: 16px;
}

.hs-circle:hover {
  color: var(--cream);
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.05);
  transform: translateY(-2px);
}

/* ── TICKER ──────────────────────────────────────────── */
.ticker-wrap {
  background: #1e2535;
  overflow: hidden;
  padding: 1rem 0;
}

.ticker-inner { overflow: hidden; }

.ticker-tape {
  display: flex;
  width: max-content;
  gap: 1.5rem;
  align-items: center;
  animation: tape 32s linear infinite;
  font-family: var(--wide);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(240,236,228,0.3);
}

.ticker-tape span { white-space: nowrap; }
.ticker-tape i { color: var(--ac); font-style: normal; font-size: 0.5rem; }

@keyframes tape { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── ABOUT ───────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 3rem;
}

.ag-statement {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.ag-statement p {
  font-size: 1.1rem;
  color: var(--text-mid);
  line-height: 1.85;
}

.ag-cards {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ag-card {
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--bdr);
  border-radius: var(--r2);
  transition: border-color 0.3s, transform 0.3s var(--ease);
}

.ag-card:hover { border-color: var(--ac); transform: translateX(4px); }

.agc-icon { font-size: 1.3rem; margin-bottom: 0.6rem; }
.agc-title { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-light); margin-bottom: 0.3rem; }
.agc-val   { font-family: var(--serif); font-size: 1.1rem; color: var(--text-dark); margin-bottom: 0.2rem; }
.agc-sub   { font-size: 0.78rem; color: var(--text-light); }

.ag-stats {
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: linear-gradient(135deg, #1e2535 0%, #263040 100%);
  border-radius: var(--r2);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}

.ags-item {
  padding: 2.5rem 2rem;
  border-right: 1px solid rgba(240,236,228,0.07);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-align: center;
  transition: background 0.3s;
}

.ags-item:last-child { border-right: none; }
.ags-item:hover { background: var(--ink2); }

.ags-num  { font-family: var(--serif); font-size: 3.5rem; font-weight: 400; color: var(--cream); line-height: 1; }
.ags-unit { font-family: var(--wide); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: #e8935a; margin: 0.3rem 0 0.6rem; }
.ags-label { font-size: 0.78rem; color: var(--text-inv2); line-height: 1.4; }

/* ── JOURNEY ─────────────────────────────────────────── */
.journey-layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 4rem;
}

.jl-left {
  position: sticky;
  top: 120px;
  height: fit-content;
}

.jl-scroll-hint {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  padding: 1rem 0;
  border-left: 2px solid var(--bdr2);
  display: none; /* shown on mobile */
}

.jl-right { display: flex; flex-direction: column; }

.jl-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 2rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--bdr);
  position: relative;
}

.jl-item:first-child { border-top: 1px solid var(--bdr); }
.jl-item:last-child  { border-bottom: none; }

.jl-num {
  font-family: var(--wide);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text-light);
  padding-top: 0.3rem;
  text-align: right;
  transition: color 0.3s;
}

.jl-item:hover .jl-num { color: var(--ac); }

.jl-item::before {
  content: '';
  position: absolute;
  left: 72px;
  top: 50%;
  transform: translateY(-50%);
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--bdr2);
  transition: background 0.3s;
}

.jl-item:hover::before { background: var(--ac); }

.jl-item::after {
  content: '';
  position: absolute;
  left: 75px;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--bdr);
}

.jl-item:last-child::after { display: none; }

.jl-content { padding-left: 1rem; }

.jl-year { font-family: var(--wide); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ac); margin-bottom: 0.5rem; }

.jl-title { font-family: var(--serif); font-size: 1.45rem; font-weight: 400; color: var(--text-dark); margin-bottom: 0.7rem; }

.jl-body { font-size: 0.92rem; color: var(--text-mid); line-height: 1.75; margin-bottom: 1rem; }

.jl-tag {
  display: inline-block;
  font-family: var(--wide);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--bdr2);
  border-radius: 100px;
  color: var(--text-light);
}

.jl-future .jl-title { color: var(--ac); font-style: italic; }
.jl-future .jl-tag { border-color: var(--ac-mid); color: var(--ac); }

/* ── EXPERIENCE ──────────────────────────────────────── */
.exp-list { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 1rem; }

.exp-card {
  display: grid;
  grid-template-columns: 1fr auto 80px;
  gap: 2rem;
  align-items: start;
  padding: 2.5rem;
  background: var(--white);
  border: 1px solid var(--bdr);
  border-radius: var(--r2);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}

.exp-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--bdr2);
  transition: background 0.3s;
}

.exp-card:hover { border-color: var(--bdr2); transform: translateY(-3px); }
.exp-card:hover::before { background: var(--ac); }
.exp-active::before { background: var(--green) !important; }

.ec-meta { display: flex; flex-direction: column; gap: 0.6rem; padding-top: 0.2rem; }
.ec-period { font-size: 0.8rem; font-weight: 500; color: var(--text-light); }

.ec-badge {
  font-family: var(--wide);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.28rem 0.75rem;
  border: 1px solid var(--bdr2);
  border-radius: 100px;
  color: var(--text-light);
  width: fit-content;
}

.ec-live {
  color: var(--green);
  border-color: rgba(39,174,96,0.3);
  background: var(--green-dim);
}

.ec-role { font-family: var(--serif); font-size: 1.8rem; font-weight: 400; color: var(--text-dark); margin-bottom: 0.25rem; line-height: 1.15; }
.ec-co   { font-size: 0.88rem; font-weight: 500; color: var(--text-light); margin-bottom: 1rem; }
.ec-co a { color: var(--ac); transition: color 0.3s; }
.ec-co a:hover { color: var(--text-dark); }

.ec-desc { font-size: 0.92rem; color: var(--text-mid); line-height: 1.75; margin-bottom: 1.2rem; }

.ec-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.ec-tags span {
  font-family: var(--wide);
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--bdr);
  border-radius: 100px;
  color: var(--text-light);
  transition: border-color 0.3s, color 0.3s;
}
.exp-card:hover .ec-tags span { border-color: var(--bdr2); color: var(--text-mid); }

.ec-num {
  font-family: var(--serif);
  font-size: 4rem;
  font-weight: 400;
  color: var(--bdr2);
  line-height: 1;
  transition: color 0.3s;
  align-self: center;
}

.exp-card:hover .ec-num { color: var(--cream2); }

/* Education pill */
.edu-pill {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  border: 1px solid var(--bdr);
  border-radius: 100px;
  background: var(--white);
  flex-wrap: wrap;
}

.edu-emoji { font-size: 1.5rem; }

.edu-pill-info { flex: 1; }
.edu-pill-info strong { display: block; font-family: var(--serif); font-size: 1.05rem; font-weight: 400; color: var(--text-dark); }
.edu-pill-info span  { font-size: 0.8rem; color: var(--text-light); }

.edu-pill-stats { display: flex; gap: 2rem; }
.edu-pill-stats span { font-size: 0.8rem; color: var(--text-mid); display: flex; flex-direction: column; align-items: center; gap: 0.1rem; }
.edu-pill-stats strong { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; color: var(--text-dark); }

/* ── PROJECTS ────────────────────────────────────────── */
#projects { padding: 120px 0 0; }
#projects > .wrap { padding-bottom: 80px; }

.proj-feed { display: flex; flex-direction: column; }

.pf-item {
  border-top: 1px solid rgba(0,0,0,0.15);
  padding: 5rem 0;
  transition: background 0.4s;
  position: relative;
}

.pf-item:hover { background: rgba(255,255,255,0.02); }

.pf-item::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  height: 2px; width: 0%;
  background: var(--ac);
  transition: width 0.6s var(--ease);
}

.pf-item:hover::after { width: 100%; }

.pf-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
}

.pf-index {
  font-family: var(--serif);
  font-size: 5rem;
  font-weight: 400;
  color: rgba(240,236,228,0.06);
  line-height: 1;
  margin-bottom: 1.2rem;
  transition: color 0.3s;
}

.pf-item:hover .pf-index { color: rgba(240,236,228,0.1); }

.pf-cat {
  font-family: var(--wide);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(192,57,43,0.7);
  margin-bottom: 0.8rem;
}

.pf-name {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
  color: var(--text-inv);
  line-height: 1.15;
  margin-bottom: 1.2rem;
}

.pf-badge {
  display: inline-block;
  font-family: var(--wide);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  border: 1px solid;
}

.pf-badge.ongoing { color: #e8935a; border-color: rgba(232,147,90,0.4); background: rgba(232,147,90,0.1); }
.pf-badge.near    { color: #7eb8e2; border-color: rgba(126,184,226,0.4); background: rgba(126,184,226,0.08); }
.pf-badge.done    { color: #5ec68a; border-color: rgba(94,198,138,0.4); background: rgba(94,198,138,0.08); }

.pf-desc {
  font-size: 1rem;
  color: var(--text-inv2);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.pf-row-detail { display: flex; flex-direction: column; gap: 1.2rem; margin-bottom: 1.5rem; }

.pf-detail { display: flex; flex-direction: column; gap: 0.25rem; }
.pfd-l { font-family: var(--wide); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(240,236,228,0.3); }
.pfd-v { font-size: 0.9rem; color: rgba(240,236,228,0.6); }

.pf-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pf-pills span {
  font-family: var(--wide);
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border: 1px solid rgba(240,236,228,0.1);
  border-radius: 100px;
  color: rgba(240,236,228,0.4);
}

/* Client strip */
.client-strip {
  background: #2a3040;
  border-top: 1px solid rgba(0,0,0,0.15);
  padding: 4rem 0;
}

.cs-label {
  font-family: var(--wide);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(240,236,228,0.25);
  margin-bottom: 2rem;
}

.cs-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5px; background: rgba(0,0,0,0.2); border-radius: var(--r2); overflow: hidden; }

.cs-card {
  background: #2a3040;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: background 0.3s;
  position: relative;
}

.cs-card:hover { background: #2e3a4a; }

.csc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }

.csc-num {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  color: rgba(240,236,228,0.15);
  transition: color 0.3s;
}

.cs-card:hover .csc-num { color: rgba(240,236,228,0.35); }

.csc-arrow {
  font-size: 1.3rem;
  color: rgba(240,236,228,0.2);
  transition: color 0.3s, transform 0.3s var(--ease);
}

.cs-card:hover .csc-arrow { color: #e8935a; transform: translate(3px,-3px); }

.csc-name { font-family: var(--serif); font-size: 1.4rem; font-weight: 400; color: var(--text-inv); }
.csc-type { font-size: 0.8rem; color: var(--text-inv2); }

/* ── SKILLS ──────────────────────────────────────────── */
.skills-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
}

.sk-group {}

.skg-title {
  font-family: var(--wide);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 1.8rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--bdr);
}

.skg-bars { display: flex; flex-direction: column; gap: 1.5rem; }

.skb {}

.skb-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.skb-info span:first-child { font-size: 0.9rem; font-weight: 500; color: var(--text-dark); }
.skb-info span:last-child  { font-size: 0.75rem; font-weight: 600; color: var(--text-light); }

.skb-track {
  height: 3px;
  background: var(--bdr2);
  border-radius: 100px;
  overflow: hidden;
}

.skb-fill {
  height: 100%;
  background: var(--ac);
  border-radius: 100px;
  width: 0%;
  transition: width 1.3s var(--ease);
}

.sk-tools {
  grid-column: 1 / -1;
  border-top: 1px solid var(--bdr);
  padding-top: 2.5rem;
}

.tool-grid { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1rem; }

.tool-chip {
  font-family: var(--wide);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.65rem 1.2rem;
  border: 1px solid var(--bdr2);
  border-radius: var(--r);
  color: var(--text-mid);
  background: var(--cream);
  transition: border-color 0.3s, color 0.3s, background 0.3s, transform 0.3s var(--ease);
  cursor: default;
}

.tool-chip:hover {
  border-color: var(--ac);
  color: var(--ac);
  background: var(--ac-light);
  transform: translateY(-2px);
}

/* ── CONTACT ─────────────────────────────────────────── */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 6rem;
  align-items: start;
}

.ct-heading {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 400;
  line-height: 0.95;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  margin: 1.5rem 0 2.5rem;
}

.ct-heading em { font-style: italic; color: var(--ac); }

.ct-info { display: flex; flex-direction: column; gap: 1.5rem; }

.ct-email {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ac);
  position: relative;
  width: fit-content;
  transition: color 0.3s;
}

.ct-email::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 100%; height: 1.5px;
  background: var(--ac);
  transform: scaleX(0.3);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.ct-email:hover { color: var(--text-dark); }
.ct-email:hover::after { transform: scaleX(1); }

.ct-links { display: flex; gap: 1rem; }

.ct-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-mid);
  border: 1px solid var(--bdr2);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: color 0.3s, border-color 0.3s;
}

.ct-link:hover { color: var(--text-dark); border-color: var(--text-dark); }

/* Contact form */
.ct-form { display: flex; flex-direction: column; gap: 1.8rem; }

.ctf-group { display: flex; flex-direction: column; gap: 0.5rem; }

.ctf-group label {
  font-family: var(--wide);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-light);
}

.ctf-group input,
.ctf-group textarea {
  background: var(--white);
  border: 1.5px solid var(--bdr2);
  border-radius: var(--r);
  padding: 0.9rem 1.1rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--text-dark);
  width: 100%;
  resize: vertical;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.ctf-group input::placeholder,
.ctf-group textarea::placeholder { color: var(--text-light); }

.ctf-group input:focus,
.ctf-group textarea:focus {
  border-color: var(--ac);
  box-shadow: 0 0 0 3px rgba(192,57,43,0.08);
}

.ctf-send {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  align-self: flex-start;
  font-family: var(--wide);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--cream);
  padding: 1rem 2rem;
  border-radius: var(--r);
  transition: background 0.3s, transform 0.3s var(--ease);
}

.ctf-send:hover { background: var(--ac); transform: translateY(-2px); }

/* ── FOOTER — Compact single bar ───────────────── */
#ftr {
  background: #1e2535;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.ftr-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.8rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.ftr-left {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.ftr-name {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
  color: rgba(240,236,228,0.7);
  font-weight: 400;
}

.ftr-sub {
  font-size: 0.72rem;
  color: rgba(240,236,228,0.25);
  letter-spacing: 0.04em;
}

.ftr-mid .ftr-tagline {
  font-size: 0.8rem;
  color: rgba(240,236,228,0.3);
  letter-spacing: 0.02em;
}

.ftr-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.ftr-links a {
  font-family: var(--wide);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(240,236,228,0.35);
  transition: color 0.3s;
}

.ftr-links a:hover { color: rgba(240,236,228,0.8); }

@media (max-width: 640px) {
  .ftr-inner { flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1.5rem; }
  .ftr-mid   { display: none; }
}

/* ── REVEAL ANIMATION ────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.in { opacity: 1; transform: none; }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; }
  .ag-statement { grid-column: 1; grid-row: 1; }
  .ag-cards     { grid-column: 1; grid-row: 2; flex-direction: row; flex-wrap: wrap; }
  .ag-card      { flex: 1; min-width: 200px; }
  .ag-stats     { grid-column: 1; grid-row: 3; }
  .ags-item     { padding: 2rem 1.5rem; }

  .skills-wrap { grid-template-columns: 1fr 1fr; }
  .sk-tools    { grid-column: 1 / -1; }

  .pf-inner { grid-template-columns: 1fr; gap: 2rem; }
  .pf-index { font-size: 3rem; margin-bottom: 0.6rem; }

  .contact-wrap { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 900px) {
  #hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left  { padding: 9rem 2.5rem 3rem; }
  .hero-right { padding: 3rem 2.5rem 4rem; }

  .hdr-nav    { display: none; }
  .nav-cta    { display: none; }
  .hdr-cta    { display: none; }
  .hdr-burger { display: flex; }

  .exp-card   { grid-template-columns: 1fr; }
  .ec-num     { display: none; }

  .journey-layout { grid-template-columns: 1fr; }
  .jl-left { display: none; }

  .ftr-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 1.5rem; }
  section { padding: 80px 0; }

  .hero-left { padding: 8rem 1.5rem 3rem; }
  .hero-right { padding: 3rem 1.5rem 4rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn-fill, .btn-ghost { justify-content: center; text-align: center; }
  .hero-meta { gap: 1.2rem; }

  .ag-stats { grid-template-columns: 1fr 1fr; }
  .ags-item:nth-child(2) { border-right: none; }

  .skills-wrap { grid-template-columns: 1fr; }
  .sk-tools { grid-column: 1; }

  .cs-row { grid-template-columns: 1fr; }

  .ftr-wordmark { font-size: 4rem; }
  .ftr-top { padding: 50px 1.5rem 40px; }
  .ftr-bottom { padding: 1rem 1.5rem; }
  .ftr-links-row { flex-wrap: wrap; gap: 0.8rem; }
  .ftr-dot { display: none; }

  .edu-pill { flex-direction: column; align-items: flex-start; border-radius: var(--r2); }
  .edu-pill-stats { gap: 1.5rem; }

  .hdr-inner { grid-template-columns: auto 1fr; }
  .hdr-right { gap: 0.7rem; }
}

@media (pointer: coarse) {
  button { cursor: pointer; }
  a     { cursor: pointer; }
}

/* ── ACCESSIBILITY & PREFERENCES ─────────────────────── */
.skip-link {
  position: absolute;
  top: -120px;
  left: 1.5rem;
  z-index: 99999;
  background: var(--ac);
  color: #fff;
  padding: 0.75rem 1.5rem;
  font-family: var(--wide);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--r);
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  transition: top 0.25s var(--ease);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
  outline: 3px solid var(--cream);
  outline-offset: 2px;
}

:focus-visible {
  outline: 2px solid var(--ac);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .ticker-tape {
    animation: none !important;
  }
}
