:root {
  --bg: #f5f1ea;
  --bg-secondary: #fbf8f3;
  --surface: rgba(255, 253, 249, 0.92);
  --surface-strong: #fffdf9;
  --ink: #1f2937;
  --ink-soft: #526172;
  --line: rgba(36, 48, 66, 0.12);
  --accent: #1a7f73;
  --accent-strong: #0f6b61;
  --yellow: #ffe9a8;
  --mint: #c8f1d8;
  --peach: #ffd8c8;
  --blue: #d5e9ff;
  --pink: #ffd9eb;
  --shadow: 0 20px 40px rgba(46, 56, 77, 0.14);
  --shadow-soft: 0 12px 24px rgba(46, 56, 77, 0.1);
  --radius: 28px;
  --max-width: 1180px;
  --nav-height: 84px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 12px);
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 22px 22px, rgba(44, 58, 82, 0.15) 1.2px, transparent 1.2px) 0 0 / 28px 28px,
    #f5f5f5;
  line-height: 1.65;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body::before {
  display: none;
}

body.nav-open {
  overflow: hidden;
}

.workspace-glow {
  display: none;
  position: fixed;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  filter: blur(24px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.workspace-glow-left {
  top: 8rem;
  left: -10rem;
  background: rgba(255, 226, 145, 0.8);
}

.workspace-glow-right {
  right: -8rem;
  bottom: 4rem;
  background: rgba(186, 222, 255, 0.86);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 50;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  background: rgba(248, 244, 237, 0.84);
  border-bottom: 1px solid rgba(36, 48, 66, 0.08);
}

.topbar-inner {
  width: min(calc(100% - 2rem), var(--max-width));
  min-height: var(--nav-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--yellow), #fff4ce);
  border: 1px solid rgba(31, 41, 55, 0.08);
  box-shadow: var(--shadow-soft);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-copy {
  display: grid;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 0.98rem;
}

.brand-copy span {
  font-size: 0.76rem;
  color: var(--ink-soft);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.site-nav a {
  position: relative;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  font-size: 0.94rem;
  color: var(--ink-soft);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="true"] {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.25rem;
  cursor: pointer;
}

.nav-toggle span {
  width: 1.2rem;
  height: 2px;
  background: var(--ink);
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

main {
  position: relative;
  z-index: 1;
}

.board-zone {
  position: relative;
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 4.5rem 1.8rem;
}

.board-zone::before {
  content: "";
  position: absolute;
  inset: 2rem 0 0 0;
  border: 1px dashed rgba(86, 87, 89, 0.5);
  border-radius: 34px;
  pointer-events: none;
}

.zone-label {
  position: absolute;
  top: 1.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.zone-label-left {
  left: 0;
}

.zone-label-right {
  right: 0;
}

.hero {
  padding-top: 3.4rem;
}

.hero-grid,
.contact-panel,
.recruiter-grid {
  display: grid;
  gap: 1.5rem;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.95fr);
  align-items: start;
  margin-top: 1.8rem;
}

.hero-card,
.whiteboard-card,
.paper-card,
.thinking-card,
.writing-card,
.journey-strip article,
.contact-card,
.sticky-shell-inner {
  position: relative;
  background: var(--surface);
  border: 1px solid rgba(31, 41, 55, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card,
.paper-card,
.whiteboard-card,
.thinking-card,
.writing-card,
.contact-card,
.sticky-shell-inner {
  padding: 1.55rem;
}

.hero-card::after,
.paper-card::after,
.whiteboard-card::after,
.thinking-card::after,
.writing-card::after,
.contact-card::after,
.sticky-shell-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.35), transparent 32%),
    linear-gradient(180deg, transparent 70%, rgba(255, 255, 255, 0.28));
}

/* Tilts removed for a straighter, structured grid */

.eyebrow,
.section-kicker,
.card-label,
.sticky-tag,
.writing-type {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(31, 41, 55, 0.08);
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.eyebrow::before,
.section-kicker::before,
.card-label::before,
.sticky-tag::before,
.writing-type::before {
  content: "";
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.36;
}

h1,
h2,
h3,
h4 {
  line-height: 1.1;
  margin: 0;
}

h1 {
  font-size: clamp(2.9rem, 5.6vw, 5rem);
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(2rem, 3.9vw, 3.2rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.85rem;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  margin-bottom: 0.7rem;
}

h4 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-bottom: 0.45rem;
}

p {
  margin: 0;
  color: var(--ink-soft);
}

.hero-profile {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 1.5rem;
  margin-top: 1.2rem;
  margin-bottom: 0.5rem;
  min-width: 0;
}

.hero-profile h1 {
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  min-width: 0;
  word-break: break-word;
}

.profile-img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 8px 16px rgba(46, 56, 77, 0.08);
  border: 1px solid rgba(31, 41, 55, 0.06);
  flex-shrink: 0;
}

.hero-title {
  margin-top: 1rem;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  color: var(--ink);
  font-weight: 600;
}

.hero-copy {
  margin-top: 1rem;
  max-width: 64ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.4rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(46, 56, 77, 0.14);
}

.button-primary {
  background: var(--accent);
  color: #fff;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-strong);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  border: 1px solid rgba(31, 41, 55, 0.08);
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

.quick-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(31, 41, 55, 0.08);
  color: var(--ink);
  font-size: 0.92rem;
}

.micro-note {
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 233, 168, 0.7), rgba(255, 255, 255, 0.88));
  border: 1px dashed rgba(31, 41, 55, 0.12);
  color: var(--ink);
}

.micro-note-label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.sticky-cluster {
  display: grid;
  gap: 1rem;
}

.sticky-cluster h2 {
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.55rem;
}

.sticky-note {
  position: relative;
  padding: 1.3rem 1.3rem 1.4rem;
  border-radius: 26px;
  border: 1px solid rgba(31, 41, 55, 0.08);
  box-shadow: var(--shadow);
}

.sticky-note::before {
  content: "";
  position: absolute;
  top: -0.55rem;
  left: 50%;
  width: 4.2rem;
  height: 1.2rem;
  transform: translateX(-50%);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 4px 10px rgba(31, 41, 55, 0.06);
}

.note-yellow {
  background: linear-gradient(180deg, rgba(255, 233, 168, 0.95), rgba(255, 243, 202, 0.98));
}

.note-mint {
  background: linear-gradient(180deg, rgba(200, 241, 216, 0.96), rgba(233, 252, 240, 0.99));
}

.note-peach {
  background: linear-gradient(180deg, rgba(255, 216, 200, 0.97), rgba(255, 239, 232, 0.99));
}

.note-blue {
  background: linear-gradient(180deg, rgba(213, 233, 255, 0.97), rgba(238, 246, 255, 0.99));
}

.metrics-board {
  margin-top: 1.2rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.93)),
    repeating-linear-gradient(
      180deg,
      transparent 0 38px,
      rgba(26, 127, 115, 0.08) 38px 39px
    );
}

.metrics-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.scribble {
  font-family: "Caveat", cursive;
  font-size: 2rem;
  color: var(--accent-strong);
}

.pin {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: #ff6c5c;
  box-shadow: 0 0 0 6px rgba(255, 108, 92, 0.12);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.metrics-grid article {
  display: grid;
  gap: 0.3rem;
  padding: 0.95rem;
  border-radius: 20px;
  background: rgba(249, 251, 252, 0.9);
  border: 1px solid rgba(31, 41, 55, 0.06);
}

.metrics-grid strong {
  font-size: 1.25rem;
  color: var(--ink);
}

.connector {
  position: absolute;
  pointer-events: none;
  overflow: visible;
}

.connector path {
  fill: none;
  stroke: rgba(31, 41, 55, 0.22);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 0.08 0.04;
}

.connector .arrowhead {
  stroke-dasharray: none;
}

.connector-hero {
  right: 6%;
  bottom: -2.4rem;
  width: min(34vw, 460px);
}

.section-heading {
  max-width: 52rem;
  margin-bottom: 1.8rem;
}

.section-heading p:last-child {
  font-size: 1.02rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
  align-items: start;
}

.check-list,
.scan-list {
  display: grid;
  gap: 0.8rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.check-list li,
.scan-list li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--ink-soft);
}

.check-list li::before,
.scan-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(26, 127, 115, 0.12);
}

.journey-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.7rem;
}

.journey-strip article {
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.74);
}

.journey-date {
  display: inline-flex;
  margin-bottom: 0.65rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(213, 233, 255, 0.72);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
}

.case-study-list {
  display: grid;
  gap: 1.5rem;
}

.case-study h3 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
}

.case-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.project-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(26, 127, 115, 0.12);
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-meta {
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 600;
}

.case-context {
  margin-bottom: 1.2rem;
  font-size: 1rem;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 1.2rem;
}

.case-grid > div {
  padding: 1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(31, 41, 55, 0.06);
}

.sticky-shell {
  background: transparent;
  box-shadow: none;
  border: 0;
  padding-top: 0.35rem;
}

.sticky-shell-inner {
  overflow: hidden;
}

.thinking-grid,
.writing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.thinking-card {
  min-height: 15rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(253, 249, 241, 0.96)),
    repeating-linear-gradient(
      180deg,
      transparent 0 34px,
      rgba(44, 58, 82, 0.06) 34px 35px
    );
}

.writing-card {
  display: grid;
  gap: 0.9rem;
  align-content: start;
  min-height: 18rem;
  background: rgba(255, 255, 255, 0.8);
}

.writing-card a {
  display: inline-flex;
  width: fit-content;
  margin-top: auto;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(26, 127, 115, 0.1);
  color: var(--accent-strong);
  font-weight: 700;
}

.recruiter-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.recruiter-card {
  min-height: 100%;
}

.contact-panel {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: stretch;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  margin-top: 0.8rem;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(31, 41, 55, 0.08);
  color: var(--ink);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.site-footer {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 1.2rem 0 3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* ── Vertical Timeline ───────────────────────────── */

.tl-wrapper {
  position: relative;
  margin-top: 1rem;
  padding: 0.5rem 0 2rem;
}

/* The centre spine */
.tl-wrapper::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    transparent,
    rgba(26, 127, 115, 0.25) 6%,
    rgba(26, 127, 115, 0.25) 94%,
    transparent
  );
}

/* Each row */
.tl-entry {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 0 2rem;
  margin-bottom: 3rem;
}

/* The node column (centre) */
.tl-node {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  z-index: 2;
}

/* Glowing dot */
.tl-dot {
  display: block;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(26, 127, 115, 0.15), 0 0 0 10px rgba(26, 127, 115, 0.06);
  flex-shrink: 0;
  margin-top: 1.4rem;
}

.tl-dot-blue {
  background: #3b82f6;
  box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.15), 0 0 0 10px rgba(59, 130, 246, 0.06);
}

.tl-dot-yellow {
  background: #d97706;
  box-shadow: 0 0 0 5px rgba(217, 119, 6, 0.15), 0 0 0 10px rgba(217, 119, 6, 0.06);
}

/* Date + place stamp below the dot */
.tl-stamp {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-align: center;
  padding: 0.5rem 0.75rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(31, 41, 55, 0.08);
  box-shadow: 0 4px 12px rgba(31, 41, 55, 0.07);
  min-width: 9rem;
}

.tl-date {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.tl-place {
  font-size: 0.75rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* Card placement */
.tl-card {
  padding: 1.6rem 1.8rem;
  border-radius: var(--radius);
}

/* Right entries: card goes to col 3, node in col 2, col 1 is empty */
.tl-right .tl-node  { grid-column: 2; grid-row: 1; }
.tl-right .tl-card  { grid-column: 3; grid-row: 1; }

/* Left entries: card goes to col 1, node in col 2, col 3 is empty */
.tl-left .tl-node   { grid-column: 2; grid-row: 1; }
.tl-left .tl-card   { grid-column: 1; grid-row: 1; }

/* Connector horizontal line from node to card */
.tl-right .tl-node::after,
.tl-left .tl-node::after {
  content: "";
  position: absolute;
  top: calc(1.4rem + 0.55rem); /* aligns with dot centre */
  height: 2px;
  width: 2rem;
  background: rgba(26, 127, 115, 0.2);
}

.tl-right .tl-node::after {
  left: calc(50% + 0.55rem);
}

.tl-left .tl-node::after {
  right: calc(50% + 0.55rem);
}

/* ── End Vertical Timeline ───────────────────────── */

/* Shared card-content styles */
.exp-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(26, 127, 115, 0.12);
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.85rem;
}

.exp-chip-blue {
  background: rgba(213, 233, 255, 0.8);
  color: #2563a8;
}

.exp-chip-yellow {
  background: rgba(255, 233, 168, 0.7);
  color: #92640a;
}

.exp-role {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  margin-bottom: 0.2rem;
  letter-spacing: -0.02em;
}

.exp-company {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
}

.exp-points {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: grid;
  gap: 0.65rem;
}

.exp-points li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.6;
}

.exp-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
}

.exp-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.exp-skills span {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(31, 41, 55, 0.09);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  transition:
    opacity 0.65s ease,
    transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

[data-tilt].reveal {
  transform: translateY(28px) scale(0.985) rotate(calc(var(--tilt, 0) * 1deg));
}

[data-tilt].reveal.is-visible {
  transform: translateY(0) scale(1) rotate(calc(var(--tilt, 0) * 1deg));
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(26, 127, 115, 0.36);
  outline-offset: 4px;
}

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .about-grid,
  .thinking-grid,
  .writing-grid,
  .recruiter-grid,
  .contact-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading,
  .contact-panel > :last-child {
    grid-column: 1 / -1;
  }

  .featured-work .case-study {
    grid-column: 1 / -1;
  }

  .journey-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.7rem);
    right: 1rem;
    width: min(20rem, calc(100vw - 2rem));
    padding: 0.9rem;
    border-radius: 24px;
    background: rgba(255, 253, 249, 0.98);
    box-shadow: var(--shadow);
    border: 1px solid rgba(31, 41, 55, 0.08);
    display: grid;
    gap: 0.3rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .topbar.nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .topbar.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .topbar.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .topbar.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .board-zone {
    padding: 4rem 1.5rem;
  }

  .connector-hero {
    display: none;
  }
}

@media (max-width: 720px) {
  .topbar-inner,
  .board-zone,
  .site-footer {
    width: min(calc(100% - 1.2rem), var(--max-width));
  }

  .hero-grid,
  .about-grid,
  .case-grid,
  .thinking-grid,
  .writing-grid,
  .recruiter-grid,
  .contact-panel,
  .metrics-grid,
  .journey-strip {
    grid-template-columns: 1fr;
  }

  /* Timeline collapses to single column */
  .tl-wrapper::before { left: 1.2rem; transform: none; }
  .tl-entry { grid-template-columns: auto 1fr; gap: 0 1rem; }
  .tl-right .tl-node,
  .tl-left .tl-node  { grid-column: 1; grid-row: 1; }
  .tl-right .tl-card,
  .tl-left .tl-card  { grid-column: 2; grid-row: 1; }
  .tl-right .tl-node::after,
  .tl-left .tl-node::after { display: none; }
  .tl-stamp { min-width: auto; }

  /* Stack profile image and name vertically on mobile */
  .hero-profile {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .hero-profile h1 {
    font-size: clamp(2.4rem, 10vw, 3.2rem);
  }

  .profile-img {
    width: 130px;
    height: 130px;
    border-radius: 18px;
  }

  .zone-label {
    position: static;
    display: inline-flex;
    margin-bottom: 1rem;
  }

  .board-zone::before {
    inset: 1.8rem 0 0 0;
  }

  .hero-card,
  .hero-side,
  .sticky-note,
  .metrics-board,
  .thinking-card,
  .writing-card,
  .recruiter-card,
  .contact-card,
  .journey-strip article,
  .case-study {
    transform: none;
  }

  h1 {
    font-size: clamp(2.2rem, 10vw, 3rem);
  }

  h2 {
    font-size: clamp(1.7rem, 7vw, 2.4rem);
  }

  .hero-card,
  .paper-card,
  .whiteboard-card,
  .thinking-card,
  .writing-card,
  .contact-card,
  .sticky-shell-inner {
    padding: 1.25rem;
  }

  .site-footer {
    padding-bottom: 2.2rem;
    flex-direction: column;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

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

/* --- NEW LAYOUT STYLES --- */

.section-heading.centered {
  text-align: center;
  margin: 0 auto 2.5rem;
  max-width: 48rem;
}

.section-heading.centered h2 {
  margin-bottom: 0.5rem;
}

/* Hero Centered */
.hero-centered {
  display: flex;
  justify-content: center;
  text-align: center;
  padding-top: 4rem;
}

.hero-content {
  max-width: 48rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-img-large {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 12px 24px rgba(46, 56, 77, 0.12);
  border: 4px solid #fff;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.hero-actions-centered {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.social-links-centered {
  display: flex;
  gap: 1.2rem;
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  justify-content: center;
}

.social-links-centered a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(31, 41, 55, 0.08);
  color: var(--ink-soft);
  transition: all 0.2s ease;
}

.social-links-centered a:hover {
  background: var(--ink);
  color: #fff;
  transform: translateY(-2px);
}

.hero-bio {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 1.05rem;
  text-align: justify;
}

/* Strengths Grid */
.strengths-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}

.strengths-grid .paper-card {
  padding: 1.5rem 1.2rem;
}

.card-title-centered {
  text-align: center;
  margin-bottom: 1.2rem;
  font-size: 1.15rem;
  color: var(--ink);
  border-bottom: 1px solid rgba(31, 41, 55, 0.08);
  padding-bottom: 0.8rem;
}

.tools-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.tool-badge {
  padding: 0.5rem 1.2rem;
  background: #fff;
  border: 1px solid rgba(31, 41, 55, 0.08);
  border-radius: 999px;
  font-weight: 600;
  color: var(--ink-soft);
  box-shadow: 0 4px 10px rgba(46, 56, 77, 0.05);
}

/* Wide Cards */
.wide-card-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.wide-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  gap: 1.5rem;
}

.wide-card-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0;
}

@media (min-width: 768px) {
  .wide-card {
    flex-direction: row;
    gap: 2rem;
    padding: 2rem;
  }
  .wide-card-info {
    flex-direction: row;
    gap: 1.5rem;
  }
}

/* Carousel & Right Column Styles */
.wide-card-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-shrink: 0;
  width: 100%;
  max-width: 400px;
  align-self: flex-start;
}

@media (min-width: 768px) {
  .wide-card-right {
    width: 38%;
  }
}

.wide-card-carousel {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(31, 41, 55, 0.08);
  box-shadow: 0 8px 16px rgba(46, 56, 77, 0.08);
  display: flex;
  flex-direction: column;
  transition: height 0.4s ease;
}

.project-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.project-actions .button {
  flex: 1 1 auto;
  min-height: 2.5rem;
  padding: 0.6rem 0.85rem;
  font-size: 0.9rem;
  white-space: nowrap;
  text-align: center;
}

.carousel-track {
  display: flex;
  width: 100%;
  align-items: flex-start;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-track img {
  width: 100%;
  flex-shrink: 0;
  height: auto;
}

.carousel-nav {
  position: absolute;
  bottom: 0.8rem;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 5;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(0, 0, 0, 0.2);
  padding: 0;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.carousel-dot.active {
  background: #ffffff;
  transform: scale(1.35);
}

.wide-card-icon {
  flex-shrink: 0;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .wide-card-icon {
    margin-bottom: 0;
    width: 80px;
  }
}

.icon-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: var(--shadow-soft);
}

.project-logo {
  max-width: 65%;
  max-height: 65%;
  object-fit: contain;
}

.bg-blue { background: #d5e9ff; }
.bg-yellow { background: #ffe9a8; }
.bg-mint { background: #c8f1d8; }
.bg-purple { background: #e8d5ff; }

.wide-card-content {
  flex-grow: 1;
}

.wide-card-title {
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
}

.wide-card-subtitle {
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.wide-card-points {
  margin-bottom: 1.5rem;
  padding-left: 1.2rem;
  color: var(--ink-soft);
}

.wide-card-points li {
  margin-bottom: 0.4rem;
}

.wide-card-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(31, 41, 55, 0.08);
}

.footer-meta {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.award-badge {
  background: linear-gradient(135deg, #fff4ce, #ffe9a8);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.8rem;
  color: var(--ink);
  border: 1px solid rgba(31, 41, 55, 0.08);
}

/* Circular Statistics */
.statistics-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 4rem;
}

.stat-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}

.stat-dark {
  background: var(--ink);
  color: #fff;
}

.stat-light {
  background: #e2e8f0;
  color: var(--ink);
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.2rem;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.8;
  text-transform: uppercase;
}

/* Mail Button */
.mail-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background-color: var(--accent);
  color: #FFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(26, 127, 115, 0.3);
  z-index: 100;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.mail-float.mail-float-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: scale(0.7);
}

.mail-float:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(26, 127, 115, 0.4);
}

.mail-float svg {
  width: 32px;
  height: 32px;
}

@media (max-width: 900px) {
  .strengths-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .sticky-note::before {
    display: none;
  }
  .mail-float {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 48px;
    height: 48px;
  }
  .mail-float svg {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 600px) {
  .strengths-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .statistics-row {
    gap: 1rem;
  }
  .stat-circle {
    width: 120px;
    height: 120px;
  }
  .stat-number {
    font-size: 1.8rem;
  }
  .contact-link {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }
  .hero-actions .button {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }
}

/* --- Hierarchical Experience Styles --- */
.exp-group-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.exp-group {
  padding: 2rem;
}

.exp-group-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.exp-org-info h3 {
  font-size: 1.6rem;
  margin-bottom: 0.2rem;
}

.exp-org-meta {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}

.exp-org-location {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.exp-timeline {
  position: relative;
  padding-left: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.exp-role-item:not(:last-child)::before {
  content: '';
  position: absolute;
  top: 15px;
  bottom: calc(-2.5rem - 15px);
  left: calc(-1.5rem + 1px);
  transform: translateX(-50%);
  width: 2px;
  background: rgba(26, 127, 115, 0.2);
}

.exp-role-item {
  position: relative;
}

.exp-role-node {
  position: absolute;
  left: calc(-1.5rem + 1px);
  transform: translateX(-50%);
  top: 15px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(253, 251, 247, 1);
  z-index: 1;
}

.exp-role-title {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.8rem;
}

.cert-thumbnails-wrap {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  max-width: 100%;
}

.cert-icon-btn {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  padding: 0.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.cert-icon-btn:hover {
  transform: scale(1.1);
  background: rgba(31, 41, 55, 0.05);
  color: var(--accent-strong);
}

.exp-role-duration {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.exp-role-desc {
  margin-bottom: 1rem;
}

.exp-role-skills {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(31, 41, 55, 0.1);
}

.exp-role-skills strong {
  color: var(--ink);
}

.exp-role-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .exp-role-layout {
    flex-direction: row;
    gap: 2rem;
  }
  .exp-role-content {
    flex: 1;
    min-width: 0;
  }
  .exp-role-carousel-wrap {
    width: 38%;
    max-width: 350px;
    flex-shrink: 0;
  }
}

.cert-thumbnail-btn {
  padding: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(31, 41, 55, 0.15);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 56px;
  height: 40px;
  flex-shrink: 0;
  margin-left: 0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cert-thumbnail-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.cert-thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Media Thumbnail */
.exp-role-media {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.media-thumb {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 1rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(31, 41, 55, 0.08);
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  max-width: 100%;
}

.media-thumb:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(46, 56, 77, 0.06);
}

.media-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.media-text {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.media-text strong {
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink);
}

.media-text span {
  font-size: 0.75rem;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 600px) {
  .exp-group { padding: 1.5rem; }
  .exp-timeline { padding-left: 2rem; }
  .exp-role-node { left: calc(-1.5rem + 1px); }
}

/* Role Carousel */
.role-carousel {
  margin-top: 1.5rem;
  max-width: 380px;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background: rgba(10, 15, 25, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 2rem;
  box-sizing: border-box;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 900px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 82vh;
  max-height: 82dvh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 16px 36px rgba(0,0,0,0.4);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.lightbox-modal.active .lightbox-content img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: -2.8rem;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover {
  color: var(--accent);
  transform: scale(1.1);
}

/* Lightbox Navigation & Counter */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.88);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
}

.lightbox-nav svg {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

.lightbox-nav:hover {
  background: var(--accent);
  border-color: rgba(255, 255, 255, 0.8);
  color: #ffffff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 12px 32px rgba(26, 127, 115, 0.45);
}

.lightbox-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.lightbox-prev {
  left: -3.8rem;
}

.lightbox-next {
  right: -3.8rem;
}

.lightbox-counter {
  position: absolute;
  bottom: -2.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e2e8f0;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  letter-spacing: 0.05em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .lightbox-modal {
    padding: 4rem 0.8rem 2rem 0.8rem;
  }
  
  .lightbox-close {
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: 42px;
    height: 42px;
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #ffffff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    line-height: 1;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  }

  .lightbox-nav {
    width: 46px;
    height: 46px;
    background: rgba(15, 23, 42, 0.92);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.5);
  }

  .lightbox-prev {
    left: 0.5rem;
  }
  .lightbox-next {
    right: 0.5rem;
  }
}

/* ==========================================================================
   ACHIEVEMENTS HORIZONTAL GRID LAYOUT
   ========================================================================== */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

@media (min-width: 992px) {
  .achievements-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.achievement-card {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  border-radius: 24px;
  background: var(--surface-strong);
  border: 1px solid rgba(31, 41, 55, 0.08);
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.achievement-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

/* Image container with aspect-ratio & carousel support */
.achievement-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  background: #1e293b;
  cursor: pointer;
}

.achievement-img-wrap .carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.achievement-img-wrap .achievement-img {
  min-width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.sih-img-4 {
  object-position: center 20%;
}

.achievement-card:hover .achievement-img {
  transform: scale(1.08);
}

.achievement-img-wrap .carousel-nav {
  display: none !important;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.carousel-dot.active {
  background: #ffffff;
  transform: scale(1.35);
}

/* Hovering badge on top corner */
.achievement-hover-badge {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 2;
}

.achievement-card:hover .achievement-hover-badge {
  transform: translateY(-3px) scale(1.06);
}

.badge-gold {
  background: rgba(255, 244, 206, 0.92);
  color: #855300;
  border-color: rgba(230, 160, 0, 0.4);
}

.badge-blue {
  background: rgba(213, 233, 255, 0.92);
  color: #1e40af;
  border-color: rgba(30, 64, 175, 0.4);
}

.badge-mint {
  background: rgba(200, 241, 216, 0.92);
  color: #065f46;
  border-color: rgba(6, 95, 70, 0.4);
}

.badge-peach {
  background: rgba(255, 216, 200, 0.92);
  color: #9a3412;
  border-color: rgba(154, 52, 18, 0.4);
}

.badge-icon {
  font-size: 0.85rem;
  line-height: 1;
}

/* Card Body Content */
.achievement-card-content {
  padding: 1.1rem 0.3rem 0.3rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.achievement-prize-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.achievement-card-content h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 0.2rem;
  line-height: 1.3;
}

.achievement-sub {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin: 0 0 0.6rem;
}

.achievement-desc {
  font-size: 0.86rem;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0;
}
