/* ==========================================================================
   Persona — Freelancer vCard / personal portfolio template
   Design layer (custom). Bootstrap 5 handles reset + grid only.
   Palette: deep forest ink + warm marigold accent on warm paper.
   Type:  Bricolage Grotesque (display) / Hanken Grotesk (body).
   ========================================================================== */

:root {
  /* --- palette --- */
  --ink:        #14231C;   /* deepest — footer, hero name */
  --forest:     #1C3A2E;   /* dark sections */
  --forest-2:   #244A3A;   /* card surface on dark */
  --forest-line:#33604C;   /* hairlines on dark */
  --paper:      #F4F1E8;   /* main light bg */
  --paper-2:    #ECE7D9;   /* alt light bg / cards */
  --paper-line: #DCD6C6;   /* hairlines on light */
  --marigold:   #E6A017;   /* accent — backgrounds, icons, borders, on-dark text only */
  --marigold-d: #C0810A;   /* accent hover / darker — same usage rule as above */
  --marigold-t: #F6E4B4;   /* accent tint */
  --marigold-text: #8A600D; /* accent as TEXT on light backgrounds — meets 4.5:1 on --paper/--paper-2 (marigold/marigold-d don't) */
  --clay:       #B0512C;   /* rare secondary warm accent */
  --sage:       #58685F;   /* muted green-grey text (light bg) — darkened from #6E8377 to meet 4.5:1 on --paper */
  --sage-d:     #A9BBAF;   /* muted text on dark bg */

  --ink-on-light: #22322A;
  --soft-on-dark: #E7E3D4;

  /* --- type --- */
  --f-display: "Bricolage Grotesque", ui-serif, Georgia, serif;
  --f-body:    "Hanken Grotesk", system-ui, -apple-system, sans-serif;

  /* --- shape --- */
  --r:    10px;
  --r-sm: 6px;
  --r-lg: 18px;
  --shadow: 0 18px 50px -22px rgba(20, 35, 28, .45);
  --shadow-sm: 0 8px 24px -14px rgba(20, 35, 28, .40);

  /* --- rhythm --- */
  --sp-section: clamp(4.5rem, 9vw, 8rem);
  --wrap: 1200px;
}

/* --------------------------------------------------------------- base --- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--f-body);
  background: var(--paper);
  color: var(--ink-on-light);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }

img {
  max-width: 100%;
  display: block;
  -webkit-touch-callout: none; /* blocks the iOS long-press "Save Image" menu */
  -webkit-user-select: none;
  user-select: none;
}

ul { margin: 0; padding: 0; list-style: none; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.75rem);
}

/* accessibility -------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 2000;
  background: var(--marigold);
  color: var(--ink);
  font-weight: 700;
  padding: .7rem 1.1rem;
  border-radius: var(--r-sm);
  transition: top .2s ease;
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 3px solid var(--marigold);
  outline-offset: 3px;
  border-radius: 3px;
}

/* --------------------------------------------------------- typography --- */
.eyebrow {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--marigold-text);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--marigold);
  display: inline-block;
}
.on-dark .eyebrow { color: var(--marigold); }

.section-head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.section-head h2 { font-size: clamp(2rem, 4.6vw, 3.35rem); }
.section-head p {
  margin-top: 1.1rem;
  color: var(--sage);
  font-size: 1.12rem;
}
.on-dark .section-head p { color: var(--sage-d); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: #FBFAF4; }

.lead {
  font-size: clamp(1.12rem, 2vw, 1.4rem);
  line-height: 1.55;
  color: var(--ink-on-light);
}

/* --------------------------------------------------------------- btns --- */
.btn2 {
  --bg: var(--marigold);
  --fg: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--f-body);
  font-weight: 700;
  font-size: .98rem;
  line-height: 1;
  padding: .95rem 1.55rem;
  border-radius: var(--r-sm);
  border: 2px solid var(--bg);
  background: var(--bg);
  color: var(--fg);
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn2:hover { transform: translateY(-2px); background: var(--marigold-d); border-color: var(--marigold-d); }
.btn2 svg { width: 18px; height: 18px; }

.btn2--ghost {
  --bg: transparent;
  --fg: var(--ink);
  border-color: var(--ink);
}
.btn2--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.on-dark .btn2--ghost { --fg: #FBFAF4; border-color: rgba(255,255,255,.55); }
.on-dark .btn2--ghost:hover { background: #FBFAF4; color: var(--forest); border-color: #FBFAF4; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 2px solid var(--marigold);
  padding-bottom: 2px;
  transition: gap .18s ease, color .18s ease;
}
.text-link:hover { gap: .8rem; color: var(--marigold-d); }
.on-dark .text-link { color: #FBFAF4; }
.on-dark .text-link:hover { color: var(--marigold); }

/* ------------------------------------------------------------- header --- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  transition: background .3s ease, box-shadow .3s ease;
  padding: .55rem 0;
}
.site-header.is-stuck {
  background: rgba(244, 241, 232, .5);
  backdrop-filter: saturate(140%) blur(12px);
  box-shadow: 0 1px 0 var(--paper-line), 0 10px 30px -24px rgba(20,35,28,.5);
}
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--f-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-size: 1.15rem;
}
.brand small {
  display: block;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sage);
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.1rem);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
}
.nav-links a {
  font-weight: 600;
  font-size: .96rem;
  color: var(--ink-on-light);
  position: relative;
  padding: .35rem 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%; height: 2px;
  background: var(--marigold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 2px solid var(--ink);
  border-radius: var(--r-sm);
  background: transparent;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px; height: 2px;
  background: var(--ink);
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle span::before { transform: translateY(-6px); position: absolute; width: 20px; }
.nav-toggle span::after  { transform: translateY(6px);  position: absolute; width: 20px; }
.nav-toggle span { position: relative; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: rotate(-45deg); }

/* ------------------------------------------------------------- layout --- */
main { display: block; }

.section { padding-block: var(--sp-section); position: relative; }
.section--forest { background: var(--forest); color: var(--soft-on-dark); }
.section--forest p { color: var(--sage-d); }
.section--ink { background: var(--ink); color: var(--soft-on-dark); }
.section--paper2 { background: var(--paper-2); }

/* --------------------------------------------------------------- hero --- */
.hero {
  padding-top: clamp(7rem, 13vw, 10.5rem);
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
  position: relative;
  overflow: hidden;
}

/* ambient blobs, layered behind hero content — 5 independently-timed
   circles so their loops never sync up, reads as organic drifting rather
   than a mechanical loop */
.hero-blobs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.hero-blobs span {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}
.hero-blobs .b1 {
  left: -14%; bottom: -22%;
  width: 65vw; height: 65vw;
  max-width: 950px; max-height: 950px;
  background: radial-gradient(circle at center, rgba(230,160,23,.32), transparent 68%);
  filter: blur(50px);
  animation: heroFloat1 34s cubic-bezier(.45,.05,.55,.95) infinite;
}
.hero-blobs .b2 {
  top: -18%; right: -14%;
  width: 60vw; height: 60vw;
  max-width: 800px; max-height: 800px;
  background: radial-gradient(circle at 35% 35%, rgba(246,228,180,.78), transparent 70%);
  filter: blur(46px);
  animation: heroFloat2 40s ease-in-out infinite 2s;
}
.hero-blobs .b3 {
  top: 44%; left: 40%;
  width: 39vw; height: 39vw;
  max-width: 525px; max-height: 525px;
  background: radial-gradient(circle at 50% 50%, rgba(206,110,20,.46), transparent 70%);
  filter: blur(38px);
  animation: heroFloat3 27s cubic-bezier(.37,0,.63,1) infinite 1s;
}
.hero-blobs .b4 {
  top: 4%; left: 15%;
  width: 34vw; height: 34vw;
  max-width: 450px; max-height: 450px;
  background: radial-gradient(circle at 50% 50%, rgba(192,129,10,.4), transparent 70%);
  filter: blur(34px);
  animation: heroFloat4 23s ease-in-out infinite 4s;
}
.hero-blobs .b5 {
  bottom: 0%; right: 10%;
  width: 36vw; height: 36vw;
  max-width: 500px; max-height: 500px;
  background: radial-gradient(circle at 50% 50%, rgba(216,124,24,.42), transparent 70%);
  filter: blur(36px);
  animation: heroFloat5 37s cubic-bezier(.42,0,.58,1) infinite 6s;
}
.hero-copy, .hero-figure { position: relative; z-index: 1; }

/* each blob wanders through 7-8 irregularly-spaced waypoints (translate +
   scale, several with a slight rotate) using viewport units so the travel
   spans the whole section; the uneven timing, varied magnitudes/signs, and
   distinct durations/delays/easings keep every loop from ever reading as a
   simple back-and-forth or lining up with the others */
@keyframes heroFloat1 {
  0%   { transform: translate(0, 0) scale(1) rotate(0deg); }
  14%  { transform: translate(9vw, -19vh) scale(1.08) rotate(4deg); }
  29%  { transform: translate(27vw, -6vh) scale(0.93) rotate(-3deg); }
  41%  { transform: translate(19vw, 17vh) scale(1.15); }
  58%  { transform: translate(-4vw, 24vh) scale(0.88) rotate(6deg); }
  73%  { transform: translate(-14vw, 4vh) scale(1.05) rotate(-5deg); }
  89%  { transform: translate(-6vw, -13vh) scale(0.95); }
  100% { transform: translate(0, 0) scale(1) rotate(0deg); }
}
@keyframes heroFloat2 {
  0%   { transform: translate(0, 0) scale(1); }
  17%  { transform: translate(-14vw, 11vh) scale(1.1); }
  33%  { transform: translate(-27vw, -4vh) scale(0.9) rotate(-4deg); }
  47%  { transform: translate(-18vw, -21vh) scale(1.05); }
  63%  { transform: translate(3vw, -16vh) scale(0.92) rotate(5deg); }
  78%  { transform: translate(11vw, 2vh) scale(1.12); }
  92%  { transform: translate(-3vw, 13vh) scale(0.96); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes heroFloat3 {
  0%   { transform: translate(0, 0) scale(1) rotate(0deg); }
  19%  { transform: translate(-10vw, -17vh) scale(1.12) rotate(-7deg); }
  34%  { transform: translate(6vw, -22vh) scale(0.88); }
  52%  { transform: translate(19vw, -7vh) scale(1.08) rotate(5deg); }
  68%  { transform: translate(14vw, 13vh) scale(0.9); }
  84%  { transform: translate(-5vw, 17vh) scale(1.06) rotate(-4deg); }
  100% { transform: translate(0, 0) scale(1) rotate(0deg); }
}
@keyframes heroFloat4 {
  0%   { transform: translate(0, 0) scale(1); }
  16%  { transform: translate(11vw, 9vh) scale(0.92); }
  31%  { transform: translate(21vw, -6vh) scale(1.14); }
  49%  { transform: translate(9vw, -19vh) scale(0.9) rotate(6deg); }
  66%  { transform: translate(-8vw, -11vh) scale(1.08); }
  83%  { transform: translate(-3vw, 7vh) scale(0.95) rotate(-5deg); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes heroFloat5 {
  0%   { transform: translate(0, 0) scale(1); }
  13%  { transform: translate(-8vw, -14vh) scale(1.1); }
  27%  { transform: translate(-19vw, -2vh) scale(0.9) rotate(-6deg); }
  44%  { transform: translate(-13vw, 15vh) scale(1.12); }
  61%  { transform: translate(4vw, 20vh) scale(0.88) rotate(4deg); }
  77%  { transform: translate(13vw, 6vh) scale(1.05); }
  90%  { transform: translate(6vw, -9vh) scale(0.94); }
  100% { transform: translate(0, 0) scale(1); }
}

@media (max-width: 640px) {
  .hero-blobs .b4, .hero-blobs .b5 { display: none; }
  .hero-blobs .b1 { filter: blur(30px); }
  .hero-blobs .b2 { filter: blur(28px); }
  .hero-blobs .b3 { filter: blur(24px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-blobs span { animation: none; }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: var(--paper-2);
  border: 1px solid var(--paper-line);
  color: var(--ink-on-light);
  font-weight: 600;
  font-size: .84rem;
  padding: .4rem .85rem;
  border-radius: 100px;
  margin-bottom: 1.6rem;
}
.hero-badge .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #37a06b;
  box-shadow: 0 0 0 4px rgba(55,160,107,.18);
}
.hero h1 {
  font-size: clamp(3rem, 8.6vw, 6.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 0 0 1.3rem;
}
.hero h1 .accent { color: var(--marigold); }
.hero .role {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1.05rem, 2.3vw, 1.5rem);
  color: var(--sage);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}
.hero .intro { max-width: 30rem; margin-bottom: 2rem; color: #3c4a41; }

.hero-cta { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 2.2rem; }

.socials { display: flex; align-items: center; gap: .65rem; }
.socials a {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1.5px solid var(--paper-line);
  border-radius: var(--r-sm);
  color: var(--ink);
  background: var(--paper);
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.socials a:hover { background: var(--ink); color: var(--marigold); border-color: var(--ink); transform: translateY(-3px); }
.socials svg { width: 20px; height: 20px; }

/* hero portrait */
.hero-figure { position: relative; justify-self: end; width: 100%; max-width: 460px; }
.hero-figure .frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow);
  z-index: 2;
  background: var(--marigold);
}
.hero-figure .frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-figure::before {
  /* offset marigold block behind portrait */
  content: "";
  position: absolute;
  right: -18px; top: -18px;
  width: 62%; height: 58%;
  background: var(--marigold);
  border-radius: var(--r-lg);
  z-index: 1;
}
.hero-figure::after {
  content: "";
  position: absolute;
  left: -22px; bottom: 26px;
  width: 90px; height: 90px;
  border: 2px solid var(--forest);
  border-radius: 50%;
  z-index: 1;
}
.hero-chip {
  position: absolute;
  left: -26px; bottom: -22px;
  z-index: 3;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r);
  padding: .85rem 1.1rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: .8rem;
}
.hero-chip .num {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--marigold);
  line-height: 1;
}
.hero-chip .lbl { font-size: .78rem; line-height: 1.25; color: var(--sage-d); }

/* --------------------------------------------------------- marquee/logos --- */
.logos-band {
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  background: var(--paper);
  overflow: hidden;
}
.logos-label {
  text-align: center;
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1.5rem !important;
}
.logos-band .marquee-track { animation-duration: 30s; }
.logo-chip {
  display: inline-flex;
  align-items: center;
  height: clamp(2.2rem, 4vw, 2.8rem);
  margin-right: clamp(2.5rem, 5vw, 4rem);
  flex: none;
}
.logo-chip img {
  height: 100%;
  width: auto;
  display: block;
}

.tools-band {
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--paper-line);
  border-bottom: 1px solid var(--paper-line);
  background: var(--paper-2);
  overflow: hidden;
}
.tools-label {
  text-align: center;
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1.5rem !important;
}
.marquee { position: relative; width: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
/* There are three identical chip sets. Every chip owns its trailing gap, so
   each set has the exact same width and the loop can advance by one third. */
@keyframes marquee { to { transform: translateX(-33.333333%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
}
.tool-chip {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .7rem 1.15rem;
  background: var(--paper);
  border: 1px solid var(--paper-line);
  border-radius: 100px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink-on-light);
  white-space: nowrap;
  margin-right: 1rem;
}
.tool-chip svg { width: 18px; height: 18px; color: var(--marigold-d); }

/* -------------------------------------------------------------- about --- */
.about-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.about-figure { position: relative; }
.about-figure img {
  width: 100%;
  border-radius: var(--r-lg);
  aspect-ratio: 4/5;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.about-figure .tag {
  position: absolute;
  right: -14px; bottom: 28px;
  background: var(--marigold);
  color: var(--ink);
  font-family: var(--f-display);
  font-weight: 700;
  padding: .7rem 1.1rem;
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-sm);
  font-size: .95rem;
  line-height: 1.2;
}
.about-body h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 1.3rem; }
.about-body .lead { margin-bottom: 1.2rem; }
.about-body p { color: #3c4a41; }

/* ---------------------------------------------------------- experience --- */
.timeline { position: relative; max-width: 54rem; }

.tl-item {
  display: grid;
  grid-template-columns: 22px 1fr;
  column-gap: 1.5rem;
  padding-bottom: clamp(2.25rem, 4.5vw, 3.25rem);
}
.tl-item:last-child { padding-bottom: 0; }

.tl-rail { position: relative; display: flex; justify-content: center; }
.tl-rail::before {
  content: "";
  position: absolute;
  top: 24px;
  bottom: calc(-1 * clamp(2.25rem, 4.5vw, 3.25rem));
  left: 50%;
  width: 1px;
  background: rgba(255, 255, 255, .16);
  transform: translateX(-50%);
}
.tl-item:last-child .tl-rail::before { display: none; }
.tl-dot {
  width: 20px; height: 20px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--paper);
  border: 2.5px solid var(--marigold);
  flex-shrink: 0;
}

.tl-body { display: flex; gap: clamp(1rem, 3vw, 2rem); flex-wrap: wrap; }
.tl-date {
  flex: 0 0 130px;
  padding-top: 5px;
  font-weight: 700;
  font-size: .95rem;
  color: var(--soft-on-dark);
  white-space: nowrap;
}
.tl-duration {
  display: block;
  margin-top: .3rem;
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--sage-d);
}
.tl-content { flex: 1 1 320px; min-width: 0; }
.tl-content h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin: 0 0 .3rem; color: var(--marigold); }
.tl-meta { color: #ffffff !important; font-weight: 600; font-size: .95rem; margin: 0 0 .75rem; }
.tl-meta a { color: inherit; }
.tl-meta a:hover { text-decoration: underline; }
.tl-content > p:not(.tl-meta):not(.tl-range) {
  color: var(--sage-d);
  margin: 0 0 .6rem;
  max-width: 42rem;
  /* hard cap at 3 lines regardless of viewport width */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tl-range { font-family: var(--f-display); font-style: italic; font-size: .88rem; color: var(--marigold); margin: 0; }

@media (max-width: 480px) {
  .tl-item { grid-template-columns: 18px 1fr; column-gap: 1rem; }
  .tl-dot { width: 16px; height: 16px; }
  .tl-body { flex-direction: column; gap: .3rem; }
  .tl-date { flex-basis: auto; }
}

/* ------------------------------------------------ leadership & recognition --- */
.lead-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
}
.lead-col h3 { font-size: 1.3rem; margin: 0 0 1rem; }
.lead-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .9rem; }
.lead-col li {
  position: relative;
  padding-left: 1.35rem;
  font-size: .96rem;
  line-height: 1.6;
  color: var(--ink-on-light);
}
.lead-col li::before {
  content: "";
  position: absolute;
  left: 0; top: .5rem;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--marigold);
}
.lead-col li strong { color: var(--ink); }

@media (max-width: 767px) {
  .lead-grid { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------- quantifiable impact --- */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}
.impact-card {
  background: var(--forest-2);
  border: 1px solid var(--forest-line);
  border-radius: var(--r);
  padding: 1.75rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  transition: transform .22s ease, border-color .22s ease;
}
.impact-card:hover { transform: translateY(-4px); border-color: var(--marigold); }
.impact-num {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  color: var(--marigold);
  letter-spacing: -0.02em;
}
.impact-card p { font-size: .92rem; color: var(--sage-d); margin: 0; flex: 1; }
.impact-link {
  font-weight: 600;
  font-size: .86rem;
  color: var(--marigold-t);
}
.impact-link:hover { color: #fff; }

/* ---------------------------------------------------------- portfolio --- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: 2.25rem;
}
.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.filter-btn {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: .92rem;
  padding: .5rem 1.1rem;
  border-radius: 100px;
  border: 1.5px solid var(--paper-line);
  background: transparent;
  color: var(--sage);
  cursor: pointer;
  transition: all .18s ease;
}
.filter-btn:hover { color: var(--ink); border-color: var(--ink); }
.filter-btn.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.filter-bar .btn2 {
  padding: .55rem 1.2rem;
  font-size: .92rem;
  flex-shrink: 0;
}
@media (max-width: 560px) {
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-bar .btn2 { justify-content: center; }
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}
.work-card {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--paper-2);
  box-shadow: var(--shadow-sm);
}
.work-card.is-hidden { display: none; }
.work-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.work-card:hover img { transform: scale(1.07); }
.work-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,35,28,.92) 0%, rgba(20,35,28,.35) 45%, transparent 78%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.4rem;
  opacity: 0;
  transition: opacity .3s ease;
}
.work-card:hover .work-overlay,
.work-card:focus-within .work-overlay { opacity: 1; }
.work-overlay .cat {
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--marigold);
  font-weight: 700;
  transform: translateY(10px);
  transition: transform .3s ease .04s;
}
.work-overlay h3 {
  color: #fff;
  font-size: 1.35rem;
  margin-top: .3rem;
  transform: translateY(12px);
  transition: transform .3s ease .07s;
}
.work-card:hover .work-overlay .cat,
.work-card:hover .work-overlay h3,
.work-card:focus-within .work-overlay .cat,
.work-card:focus-within .work-overlay h3 { transform: translateY(0); }
.work-overlay .arrow {
  position: absolute;
  top: 1.2rem; right: 1.2rem;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--marigold);
  color: var(--ink);
  display: grid; place-items: center;
  transform: scale(0) rotate(-30deg);
  transition: transform .3s ease;
}
.work-card:hover .work-overlay .arrow,
.work-card:focus-within .work-overlay .arrow { transform: scale(1) rotate(0); }
.work-overlay .arrow svg { width: 18px; height: 18px; }
.work-card > a { position: absolute; inset: 0; z-index: 3; }

/* Touch devices have no hover state, so show the overlay info by default.
   Desktop (and any pointer:fine/hover:hover device) keeps the hover-only behavior above. */
@media (hover: none) and (pointer: coarse) {
  .work-overlay { opacity: 1; }
  .work-overlay .cat,
  .work-overlay h3 { transform: translateY(0); }
  .work-overlay .arrow { transform: scale(1) rotate(0); }
}

/* --------------------------------------------------------- photography --- */
.photography-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: 60px;
  grid-auto-flow: dense;
  gap: 1.1rem;
}
.photography-card {
  position: relative;
  margin: 0;
  grid-row: span 2;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.photography-card--tall { grid-row: span 4; }
.photography-card--wide { grid-column: span 2; }
.photography-card .photo-trigger {
  all: unset;
  display: block;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}
.photography-card .photo-trigger:focus-visible {
  outline: 3px solid var(--marigold);
  outline-offset: -3px;
}
.photography-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.photography-card:hover img { transform: scale(1.04); }
.photography-card figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 2rem 1rem 1rem;
  margin: 0;
  color: #fff;
  font-family: var(--f-display);
  font-size: .95rem;
  font-weight: 600;
  pointer-events: none;
  background: linear-gradient(to top, rgba(20,35,28,.8), transparent);
}

/* ------------------------------------------------------------- lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 5vw, 3rem);
  background: rgba(20, 35, 28, .92);
}
.lightbox.is-open { display: flex; flex-direction: column; }
.lightbox-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  max-height: 100%;
}
.lightbox-img {
  max-width: 88vw;
  max-height: 78vh;
  width: auto;
  height: auto;
  border-radius: var(--r);
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.6);
  background: var(--paper-2);
}
.lightbox-caption {
  margin-top: 1rem;
  color: var(--sage-d);
  font-size: .92rem;
  text-align: center;
  max-width: 60ch;
}
.lightbox-close,
.lightbox-nav {
  all: unset;
  position: fixed;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff;
  cursor: pointer;
  transition: background .18s ease;
}
.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(255,255,255,.24); }
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; }
.lightbox-close { top: clamp(1rem, 4vw, 2rem); right: clamp(1rem, 4vw, 2rem); }
.lightbox-prev { left: clamp(.5rem, 3vw, 2rem); top: 50%; transform: translateY(-50%); }
.lightbox-next { right: clamp(.5rem, 3vw, 2rem); top: 50%; transform: translateY(-50%); }
.lightbox-nav[hidden] { display: none; }
.lightbox-close svg { width: 18px; height: 18px; }
.lightbox-nav svg { width: 20px; height: 20px; }

/* ------------------------------------------------------------ contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.contact-intro h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: 1.2rem; }
.contact-intro p { color: #3c4a41; margin-bottom: 2rem; }
.contact-list { display: flex; flex-direction: column; gap: 1.1rem; margin-bottom: 2rem; }
.contact-list li { display: flex; align-items: center; gap: .95rem; font-weight: 500; }
.contact-list .ico {
  width: 46px; height: 46px; flex: none;
  display: grid; place-items: center;
  background: var(--paper-2);
  border: 1px solid var(--paper-line);
  border-radius: var(--r-sm);
  color: var(--marigold-d);
}
.contact-list .ico svg { width: 20px; height: 20px; }
.contact-list a:hover { color: var(--marigold-d); }
.contact-list small { display: block; color: var(--sage); font-weight: 600; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; }

.map-card {
  position: relative;
  background: var(--paper-2);
  border: 1px solid var(--paper-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.map-card #chennaiMap {
  width: 100%;
  height: clamp(320px, 38vw, 460px);
  background: var(--paper-2);
  pointer-events: none;
  z-index: 0;
}
.map-card .map-pin-tag { z-index: 1; }
.map-card .leaflet-control-attribution {
  font-size: .68rem;
  background: rgba(244,241,232,.85);
  color: var(--sage);
}
.map-card .leaflet-control-attribution a { color: var(--sage); }
.map-card .map-pin-tag {
  position: absolute;
  top: 1.1rem;
  left: 1.1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--paper);
  border: 1px solid var(--paper-line);
  border-radius: var(--r-sm);
  padding: .55rem .9rem;
  font-weight: 700;
  font-size: .88rem;
  color: var(--ink-on-light);
  box-shadow: var(--shadow-sm);
}
.map-card .map-pin-tag svg { width: 18px; height: 18px; color: var(--marigold-d); flex: none; }

/* ------------------------------------------------------------- footer --- */
.site-footer { background: var(--ink); color: var(--sage-d); padding-block: clamp(3.5rem, 6vw, 5rem) 2rem; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.footer-brand .brand { color: #fff; margin-bottom: 1.1rem; }
.footer-brand .brand small { color: var(--sage-d); }
.footer-brand p { max-width: 24rem; color: var(--sage-d); font-size: .98rem; }
.footer-brand .socials { margin-top: 1.5rem; }
.footer-brand .socials a { background: transparent; border-color: rgba(255,255,255,.16); color: #fff; }
.footer-brand .socials a:hover { background: var(--marigold); color: var(--ink); border-color: var(--marigold); }
.footer-col h4 { color: #fff; font-family: var(--f-body); font-weight: 700; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer-col a { display: block; padding: .35rem 0; color: var(--sage-d); font-size: .96rem; transition: color .16s ease; }
.footer-col a:hover { color: var(--marigold); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.75rem;
  font-size: .88rem;
}
.footer-bottom a { color: var(--marigold); font-weight: 600; }

/* ------------------------------------------------------- scroll reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* --------------------------------------------------------- responsive --- */
@media (max-width: 991px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { justify-self: start; margin-top: 1rem; grid-row: 1; max-width: 380px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-figure { max-width: 420px; }
  .contact-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .photography-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 65px; }
  .footer-top { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .impact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photography-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 70px; }
  .nav-toggle { display: inline-flex; }
  .nav-links, .nav .btn2 { display: none; }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .35rem;
    position: absolute;
    top: calc(100% + .5rem);
    right: clamp(1.25rem, 4vw, 2.75rem);
    left: clamp(1.25rem, 4vw, 2.75rem);
    background: var(--paper);
    border: 1px solid var(--paper-line);
    border-radius: var(--r);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow);
  }
  .nav.open .nav-links a { display: flex; align-items: center; width: 100%; min-height: 48px; padding: .9rem 0; border-bottom: 1px solid var(--paper-line); }
  .nav.open .nav-links a:last-child { border-bottom: 0; }
  .nav.open .btn2 { display: inline-flex; margin-top: .6rem; }
  .site-header.is-stuck, .site-header { position: fixed; }
}

@media (max-width: 640px) {
  .work-grid { grid-template-columns: 1fr; }
  .impact-grid { grid-template-columns: 1fr; }
  .photography-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 70px; }
  .lightbox-close { width: 40px; height: 40px; }
  .lightbox-nav { width: 38px; height: 38px; }
  .lightbox-img { max-width: 74vw; }
  .lightbox-prev { left: .5rem; }
  .lightbox-next { right: .5rem; }
  .hero-chip { left: 0; }
  .about-figure .tag { right: 0; }
  .hero-cta { width: 100%; }
  .hero-cta .btn2 { flex: 1 1 auto; justify-content: center; }
}
