/* ==================================================
   Apramey — personal site
   Deep forest + warm gold + burgundy
   Cream cards · brand icons on skills
   ================================================== */

:root {
  /* Deep forest green background — NOT black, has real color */
  --bg:            #162620;
  --bg-alt:        #1d2f27;
  --bg-deep:       #0e1a15;

  /* Cream paper cards */
  --card:          #f5ebd6;
  --card-alt:      #ede0c2;
  --card-hover:    #faf1dd;

  /* Text on forest bg */
  --text-light:    #f5ebd6;
  --text-light-2:  rgba(245, 235, 214, 0.82);
  --text-light-3:  rgba(245, 235, 214, 0.70);
  --text-light-4:  rgba(245, 235, 214, 0.48);

  /* Text on cream cards */
  --text-dark:     #1a140e;
  --text-dark-2:   rgba(26, 20, 14, 0.76);
  --text-dark-3:   rgba(26, 20, 14, 0.62);
  --text-dark-4:   rgba(26, 20, 14, 0.40);

  --border-light:  rgba(245, 235, 214, 0.14);
  --border-dark:   rgba(26, 20, 14, 0.12);

  /* Primary: warm gold */
  --accent:        #d4a859;
  --accent-soft:   #e6c07b;
  --accent-deep:   #a87a3a;
  --accent-dim:    rgba(212, 168, 89, 0.32);

  /* Secondary: burgundy (still in the mix) */
  --accent-2:      #c25562;
  --accent-2-soft: #d47080;
  --accent-2-deep: #8a2e3a;
  --accent-2-dim:  rgba(194, 85, 98, 0.3);

  /* Skill dot palette */
  --cat-lang:      #c25562;
  --cat-tool:      #d4a859;
  --cat-product:   #a68ac4;
  --cat-data:      #6fa895;

  --serif:  "Shippori Mincho", Georgia, serif;
  --sans:   "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono:   "JetBrains Mono", ui-monospace, monospace;

  --max:         1240px;
  --content-max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text-light);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv11";
}

/* Warm grain overlay for subtle film texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.42;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.45  0 0 0 0 0.3  0 0 0 0 0.15  0 0 0 0.08 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

::selection { background: var(--accent); color: var(--bg); }

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

/* === Scroll reveal (cards, pills fade up as they enter viewport) === */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.75s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* Stagger reveal for sibling cards in a grid */
.reveal:nth-child(2) { transition-delay: 60ms; }
.reveal:nth-child(3) { transition-delay: 120ms; }
.reveal:nth-child(4) { transition-delay: 180ms; }
.reveal:nth-child(5) { transition-delay: 240ms; }
.reveal:nth-child(6) { transition-delay: 300ms; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
}

/* ==================== NAV ==================== */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 14px 24px;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, backdrop-filter 0.35s ease, border-color 0.35s ease;
}

.nav.scrolled {
  background: rgba(22, 38, 32, 0.88);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: var(--border-light);
}

.nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

.nav ul a {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13.5px;
  color: var(--text-light-2);
  padding: 6px 2px;
  position: relative;
  transition: color 0.25s ease;
}

.nav ul a::after {
  content: "";
  position: absolute;
  bottom: -2px; left: 0;
  width: 100%; height: 1.5px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav ul a:hover { color: var(--text-light); }
.nav ul a:hover::after { transform: scaleX(1); }

/* ==================== HERO ==================== */

.hero {
  position: relative;
  width: 100%;
  min-height: 74vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 104px 48px 64px;
  background: var(--bg);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 85% 20%, rgba(212, 168, 89, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 15% 80%, rgba(194, 85, 98, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 110%, rgba(212, 168, 89, 0.12) 0%, transparent 40%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(245, 235, 214, 0.05) 1px, transparent 0);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at 55% 45%, black 12%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 55% 45%, black 12%, transparent 75%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(260px, 320px) 1fr;
  gap: 56px;
  align-items: center;
}

.hero-portrait {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #2a3a30;
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(245, 235, 214, 0.1),
    0 0 0 6px rgba(212, 168, 89, 0.1);
  border-radius: 2px;
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transition: transform 0.6s ease, filter 0.4s ease;
}

.hero-portrait:hover img { transform: scale(1.03); filter: saturate(1.08); }

.hero-greeting {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-soft);
  margin-bottom: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(48px, 6.4vw, 80px);
  line-height: 0.96;
  letter-spacing: -0.028em;
  color: var(--text-light);
  margin-bottom: 18px;
}

.hero-intro {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  color: var(--text-light-2);
  margin-bottom: 12px;
  max-width: 540px;
}

.hero-intro strong { color: var(--text-light); font-weight: 600; }

.hero-intro-sub {
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-light-3);
  margin-bottom: 28px;
  max-width: 520px;
}

.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }

/* === PRIMARY button: slide-fill from left, shimmer, letter-spacing pop === */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 30px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: var(--bg);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  border: 1.5px solid var(--accent-deep);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  z-index: 0;
  cursor: pointer;
  transition:
    transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
    letter-spacing 0.3s ease,
    box-shadow 0.3s ease,
    color 0.3s ease;
  box-shadow:
    0 10px 22px -8px rgba(212, 168, 89, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Slide-fill layer: burgundy gradient sweeps in from left */
.btn-primary::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--accent-2) 0%, var(--accent-2-deep) 100%);
  transform: translateX(-101%);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: -1;
}

/* Shimmer pulse that fires across on hover */
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
  transition: left 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 0;
  pointer-events: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  color: var(--card);
  letter-spacing: 0.04em;
  box-shadow:
    0 18px 34px -8px rgba(194, 85, 98, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover::before { transform: translateX(0); }
.btn-primary:hover::after { left: 120%; }

.btn-primary .arrow {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative; z-index: 1;
}
.btn-primary:hover .arrow { transform: translateX(6px); }

/* === GHOST button: slide-up fill from bottom === */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 13px 26px;
  background: transparent;
  color: var(--text-light);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  border: 1.5px solid var(--accent-dim);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  z-index: 0;
  cursor: pointer;
  transition:
    color 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
    letter-spacing 0.3s ease;
}

.btn-ghost::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--accent) 100%);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: -1;
}

.btn-ghost:hover {
  color: var(--bg);
  border-color: var(--accent);
  letter-spacing: 0.03em;
  transform: translateY(-2px);
}

.btn-ghost:hover::before { transform: scaleY(1); }

.hero-socials { display: flex; gap: 20px; flex-wrap: wrap; }

.hero-socials a {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light-3);
  padding-bottom: 2px;
  position: relative;
  transition: color 0.2s ease;
}

.hero-socials a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-socials a:hover { color: var(--accent-soft); }
.hero-socials a:hover::after { transform: scaleX(1); }
.hero-socials a.dim { color: var(--text-light-4); font-style: italic; }

/* ==================== SECTIONS ==================== */

.section {
  background: var(--bg);
  padding: 56px 0;
  position: relative;
}

.section:first-of-type { padding-top: 72px; }

/* Gentle bg shift on Entrepreneurship + Skills (2nd and 4th content sections) for rhythm */
.section#ventures,
.section#skills {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 50%, var(--bg) 100%);
}

.section-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 40px;
}

.section-head { text-align: center; margin-bottom: 36px; }

.section-head h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(30px, 3.6vw, 42px);
  color: var(--text-light);
  letter-spacing: -0.028em;
  margin-bottom: 12px;
  line-height: 1;
}

.section-bar {
  width: 56px;
  height: 2.5px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  margin: 0 auto;
  border-radius: 2px;
}

/* ==================== CARDS ==================== */

.card {
  color: var(--text-dark);
  padding: 24px 26px 22px;
  border-radius: 10px;
  /* Layered background: top gradient bar + subtle paper grain + cream base */
  background-color: var(--card);
  background-image:
    linear-gradient(90deg, var(--accent), var(--accent-2)),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.45  0 0 0 0 0.3  0 0 0 0 0.15  0 0 0 0.12 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-repeat: no-repeat, repeat;
  background-size: 100% 3px, 160px 160px;
  background-position: top, center;
  background-blend-mode: normal, multiply;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 0 0 1px rgba(245, 235, 214, 0.06),
    0 20px 40px -16px rgba(0, 0, 0, 0.6),
    0 6px 14px -6px rgba(212, 168, 89, 0.12);
  transition:
    transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.4s ease;
  cursor: default;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

/* Corner mark — rotating "+" in top-right */
.card::before {
  content: "+";
  position: absolute;
  top: 14px;
  right: 16px;
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  color: var(--accent-deep);
  opacity: 0.55;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.3s ease, opacity 0.3s ease;
  z-index: 2;
  pointer-events: none;
}

/* Hover warm sweep overlay */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212, 168, 89, 0) 0%, rgba(212, 168, 89, 0.06) 40%, rgba(194, 85, 98, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.34s ease;
  pointer-events: none;
  z-index: -1;
}

.card:hover {
  transform: translateY(-6px) scale(1.006);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 0 0 1px rgba(212, 168, 89, 0.28),
    0 40px 64px -20px rgba(0, 0, 0, 0.78),
    0 20px 36px -10px rgba(212, 168, 89, 0.34);
}

.card:hover::before {
  transform: rotate(90deg);
  color: var(--accent-2-deep);
  opacity: 0.9;
}

.card:hover::after { opacity: 1; }

.card-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18px;
  color: var(--text-dark);
  text-align: center;
  letter-spacing: -0.012em;
  margin-bottom: 10px;
  padding-top: 4px;
}

.side-bar {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  margin: 0 auto 18px;
  border-radius: 2px;
}

/* ==================== ABOUT ==================== */

.about-row {
  display: grid;
  grid-template-columns: 2.3fr 1fr;
  gap: 14px;
  align-items: stretch;
}

.card-about { padding: 26px 28px; display: block; }

.card-about-wide .about-body p {
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--text-dark);
  margin-bottom: 14px;
  max-width: 68ch;
}

.card-about-wide .about-body p:last-child { margin-bottom: 0; }

.card-side {
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
}

.side-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.side-list li {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(26, 20, 14, 0.1);
}

.side-list li:last-child { border-bottom: none; padding-bottom: 0; }

.side-label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 600;
  margin-bottom: 5px;
}

.side-list li p {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-dark);
}

.side-list li p a {
  transition: color 160ms ease;
}

.side-list li p a:hover {
  color: var(--accent);
}

.side-list li p strong { font-weight: 600; }
.side-list li p em { color: var(--text-dark-3); font-style: italic; }

/* ==================== GRIDS ==================== */

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ==================== WORK ==================== */

.card-exp { padding: 24px 22px; }

.exp-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.exp-top h3, .proj-head h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 21px;
  color: var(--text-dark);
  letter-spacing: -0.012em;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.exp-date {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-dark-3);
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

.exp-role, .proj-role {
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--accent-deep);
  font-weight: 600;
  margin-top: 6px;
  margin-bottom: 2px;
}

.proj-role { margin-bottom: 10px; }

.exp-loc {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-dark-3);
  margin-bottom: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.exp-desc {
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 14px;
}

.card-exp .proj-stack { margin-top: 0; }

/* ==================== PROJECTS ==================== */

.card-proj { padding: 24px 22px; }

.proj-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.proj-tag {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-dark-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.proj-desc {
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 12px;
}

.proj-stack { display: flex; flex-wrap: wrap; gap: 6px; }

.proj-stack span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px 5px 9px;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-dark-2);
  background: linear-gradient(135deg, rgba(26, 20, 14, 0.03) 0%, rgba(26, 20, 14, 0.08) 100%);
  border: 1px solid rgba(26, 20, 14, 0.12);
  border-radius: 999px;
  letter-spacing: 0.005em;
  cursor: default;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.proj-stack span::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px rgba(26, 20, 14, 0.1);
  flex-shrink: 0;
  transition: transform 0.3s ease, background 0.3s ease;
}

.proj-stack span:hover {
  transform: translateY(-2px);
  color: var(--text-dark);
  background: linear-gradient(135deg, rgba(212, 168, 89, 0.08) 0%, rgba(194, 85, 98, 0.1) 100%);
  border-color: var(--accent);
  box-shadow:
    0 8px 16px -6px rgba(212, 168, 89, 0.3),
    0 0 0 3px rgba(212, 168, 89, 0.08);
}

.proj-stack span:hover::before {
  background: var(--accent-2);
  transform: scale(1.3);
}

/* === Project link buttons (GitHub / Live Demo) === */
.proj-links {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.proj-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-deep);
  background: transparent;
  border: 1px solid var(--accent-dim);
  border-radius: 999px;
  letter-spacing: 0.02em;
  align-self: flex-start;
  position: relative;
  overflow: hidden;
  z-index: 0;
  transition: color 0.3s ease, border-color 0.3s ease, transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Standalone proj-link (when no .proj-links wrapper) keeps its own margin */
.card-proj > .proj-link { margin-top: 14px; }

.proj-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: -1;
  border-radius: 999px;
}

.proj-link:hover {
  color: var(--bg);
  border-color: var(--accent-deep);
  transform: translateY(-2px);
}

.proj-link:hover::before { transform: scaleX(1); }

/* Live Demo variant — filled burgundy, primary action */
.proj-link-demo {
  color: var(--card);
  background: linear-gradient(135deg, var(--accent-2), var(--accent-2-deep));
  border-color: var(--accent-2-deep);
  box-shadow: 0 6px 14px -6px rgba(194, 85, 98, 0.45);
}

.proj-link-demo::before {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
}

.proj-link-demo:hover {
  color: var(--bg);
  border-color: var(--accent-deep);
  box-shadow: 0 10px 20px -6px rgba(212, 168, 89, 0.5);
}

/* === Incoming badge (Microsoft etc.) === */
.badge-upcoming {
  display: inline-block;
  padding: 2px 8px;
  margin-right: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: var(--bg);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 3px;
  vertical-align: middle;
  box-shadow: 0 2px 6px -2px rgba(212, 168, 89, 0.5);
}

.badge-date {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(212, 168, 89, 0.12);
  color: var(--accent-deep);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(212, 168, 89, 0.28);
  border-radius: 999px;
  vertical-align: middle;
}

/* ==================== BRAND LOGOS (card heads) ==================== */

.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #fff;
  border: 1px solid rgba(26, 20, 14, 0.14);
  padding: 3px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
}

.brand-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }

.brand-mono {
  background: var(--accent);
  color: var(--bg);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13px;
  padding: 0;
  border-color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-duo {
  width: auto;
  min-width: 54px;
  padding: 3px 6px;
  gap: 4px;
  background: #fff;
  border: 1px solid rgba(26, 20, 14, 0.14);
}

.brand-duo img { width: 24px; height: 24px; object-fit: contain; display: block; }

/* ==================== SKILLS (filter + pills with icons) ==================== */

.skill-filter-nav {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  padding: 9px 18px;
  background: transparent;
  color: var(--text-light-2);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
  z-index: 0;
  transition:
    color 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.filter-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: -1;
  border-radius: 999px;
}

.filter-btn:hover {
  color: var(--text-light);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.filter-btn:hover::before {
  transform: scaleX(1);
  opacity: 0.18;
}

.filter-btn.is-active {
  color: var(--bg);
  border-color: var(--accent-deep);
  font-weight: 700;
  box-shadow: 0 8px 18px -6px rgba(212, 168, 89, 0.5);
}

.filter-btn.is-active::before {
  transform: scaleX(1);
  opacity: 1;
}

.skills-pool {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 960px;
  margin: 0 auto;
}

.skill-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px 9px 12px;
  background: var(--card);
  border: 1px solid rgba(245, 235, 214, 0.24);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: default;
  transition: all 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
  z-index: 0;
}

/* Warm shimmer sweep on hover */
.skill-pill::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(110deg, transparent 30%, rgba(212, 168, 89, 0.25) 50%, transparent 70%);
  transition: left 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
  z-index: 1;
}

.skill-pill:hover {
  transform: translateY(-3px);
  background: var(--card-hover);
  border-color: var(--accent);
  box-shadow:
    0 14px 28px -12px rgba(0, 0, 0, 0.7),
    0 0 0 3px rgba(212, 168, 89, 0.22);
}

.skill-pill:hover::before { left: 120%; }

.skill-pill.is-hidden { display: none; }

.skill-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(26, 20, 14, 0.14);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.skill-pill:hover .skill-dot {
  transform: scale(1.3);
  box-shadow: 0 0 0 4px rgba(212, 168, 89, 0.25);
}

.skill-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

.skill-pill:hover .skill-icon {
  transform: scale(1.1);
}

.skill-dot-languages { background: var(--cat-lang); }
.skill-dot-tools     { background: var(--cat-tool); }
.skill-dot-product   { background: var(--cat-product); }
.skill-dot-data      { background: var(--cat-data); }

/* ==================== OFF THE CLOCK ==================== */

.life-section .section-inner { max-width: 1200px; }

.life-intro {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--text-light-2);
  text-align: center;
  max-width: 620px;
  margin: 0 auto 24px;
  line-height: 1.55;
}

.life-intro a {
  color: var(--accent-soft);
  border-bottom: 1px solid var(--accent-dim);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
.life-intro a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.film-strip {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  padding: 4px 0;
  margin-bottom: 40px;
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

.film-strip-track {
  display: flex;
  gap: 10px;
  width: max-content;
  animation: strip-scroll 80s linear infinite;
  will-change: transform;
}

.film-strip:hover .film-strip-track { animation-play-state: paused; }

.film-strip-track img {
  width: 240px;
  height: 135px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
  border: 1px solid rgba(245, 235, 214, 0.08);
  filter: saturate(0.92);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  border-radius: 2px;
}

.film-strip-track img:hover {
  transform: scale(1.06) translateY(-3px);
  filter: saturate(1.15);
  border-color: var(--accent);
  box-shadow: 0 18px 32px -14px rgba(0, 0, 0, 0.7);
  z-index: 1;
}

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

.life-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.life-card {
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
}

.life-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 10px;
}

.side-label { color: var(--accent-deep); }

.life-head {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  color: var(--text-dark);
  letter-spacing: -0.012em;
  margin-bottom: 10px;
  line-height: 1.2;
}

.life-card p {
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 10px;
}

.life-card p em { color: var(--text-dark-3); font-style: italic; }

.life-link {
  margin-top: auto;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent-2-deep);
  position: relative;
  padding: 6px 14px 6px 12px;
  align-self: flex-start;
  border: 1px solid var(--accent-2-dim);
  border-radius: 999px;
  letter-spacing: 0.02em;
  overflow: hidden;
  z-index: 0;
  transition: color 0.3s ease, border-color 0.3s ease, transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.life-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-2), var(--accent-2-deep));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: -1;
  border-radius: 999px;
}

.life-link:hover {
  color: var(--card);
  border-color: var(--accent-2-deep);
  transform: translateY(-1px);
}

.life-link:hover::before { transform: scaleX(1); }

/* ==================== FOOTER ==================== */

.page-footer {
  padding: 26px 48px 34px;
  border-top: 1px solid var(--border-light);
  background: var(--bg-alt);
}

.page-footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 22px;
}

.page-footer-who { font-family: var(--sans); font-size: 13.5px; color: var(--text-light-2); }
.page-footer-who strong { color: var(--text-light); font-weight: 600; }
.page-footer-meta { color: var(--text-light-3); font-style: italic; }

.page-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  font-family: var(--sans);
  font-size: 13px;
}

.page-footer-links a {
  color: var(--text-light);
  padding-bottom: 1px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  font-weight: 500;
}

.page-footer-links a:hover { color: var(--accent-soft); border-bottom-color: var(--accent-soft); }
.page-footer-links a.dim { color: var(--text-light-3); font-style: italic; font-weight: 400; }
.page-footer-links .sep { color: var(--text-light-4); font-size: 12px; }

.page-footer-copy {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--text-light-4);
  letter-spacing: 0.01em;
  font-style: italic;
}

/* ==================== NAV SMALLER ==================== */

@media (max-width: 1080px) {
  .nav ul { gap: 20px; }
  .nav ul a { font-size: 13px; }
}

/* ==================== TABLET (640-900px: keep 2-col grids, stack hero + about) ==================== */

@media (max-width: 900px) {
  .nav { padding: 10px 14px; }
  .nav ul { gap: 16px; }
  .nav ul a { font-size: 12.5px; }

  .hero { padding: 88px 24px 52px; min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; justify-items: center; text-align: center; }
  .hero-portrait { max-width: 260px; }
  .hero-text { max-width: 560px; }
  .hero-intro, .hero-intro-sub { margin-left: auto; margin-right: auto; }
  .hero-socials, .hero-cta-row { justify-content: center; }

  .section { padding: 48px 0; }
  .section-inner { padding: 0 24px; }

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

  .film-strip-track img { width: 200px; height: 112px; }

  .page-footer { padding: 22px 22px 30px; }
  .page-footer-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ==================== MOBILE (<640px: fully stacked) ==================== */

@media (max-width: 639px) {
  .grid-2 { grid-template-columns: 1fr; }
  .life-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hero { padding: 76px 20px 36px; }
  .hero-name { font-size: clamp(40px, 11vw, 60px); }
  .hero-greeting { font-size: 11px; }
  .hero-intro { font-size: 15px; }
  .hero-intro-sub { font-size: 14px; }
  .hero-portrait { max-width: 220px; }

  .section { padding: 44px 0; }
  .section-inner { padding: 0 18px; }

  .card-about, .card-side, .card-exp, .card-proj, .life-card { padding: 18px 16px; padding-top: 22px; }
  .exp-top { flex-direction: column; gap: 2px; }

  .skill-pill { font-size: 12.5px; padding: 7px 14px 7px 10px; }
  .filter-btn { font-size: 11.5px; padding: 7px 13px; }

  .film-strip-track img { width: 176px; height: 99px; }

  .page-footer { padding: 18px; }
  .page-footer-links { gap: 4px 10px; font-size: 12px; }
  .page-footer-links .sep { display: none; }
}
