/* ============================================================
   Tjakrabirawa Portfolio Theme — main.css
   Atlus-inspired: soft gradient bg, rounded cards, airy layout
   ============================================================ */

/* ─── 0. CSS Custom Properties ─────────────────────────────── */
:root {
  /* Brand */
  --color-accent:      #CF0B28;
  --color-accent-dark: #A00920;
  --color-accent-light:#FDEDEF;

  /* Background — soft multi-stop gradient (Atlus-style) */
  --color-bg-start:    #CDDFF0;   /* soft blue corner */
  --color-bg-mid:      #F4F8FC;   /* near-white center */
  --color-bg-end:      #F0E8EC;   /* soft blush corner */

  /* Surfaces */
  --color-surface:     #FFFFFF;
  --color-surface-alt: rgba(255,255,255,0.72);

  /* Text */
  --color-text:        #0D0D0D;
  --color-text-muted:  #606060;
  --color-text-light:  #9A9A9A;

  /* Borders */
  --color-border:      rgba(0,0,0,0.07);
  --color-border-md:   rgba(0,0,0,0.11);

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-jp:   'Noto Serif JP', serif;

  /* Layout */
  --container: 1200px;
  --gutter:    clamp(1.25rem, 4vw, 2rem);
  --header-h:  72px;

  /* Diagonal clip-path token — fixed px so angle is consistent regardless of element width.
     All interactive parallelograms use: polygon(var(--clip-x) 0%, 100% 0%, calc(100% - var(--clip-x)) 100%, 0% 100%)
     Large decorative panels use percentage-based values (scaled to panel height separately). */
  --clip-x: 8px;

  /* Radii — boxy, sharp corners */
  --radius-sm:  0px;
  --radius-md:  0px;
  --radius-lg:  0px;
  --radius-xl:  0px;
  --radius-pill:0px;

  /* Shadows — crisp, directional */
  --shadow-xs: 0 1px 3px rgba(0,0,0,.07), 0 2px 8px rgba(0,0,0,.05);
  --shadow-sm: 0 2px 6px rgba(0,0,0,.06), 0 6px 20px rgba(0,0,0,.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,.07), 0 16px 40px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 24px rgba(0,0,0,.08), 0 32px 72px rgba(0,0,0,.13);

  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── 1. Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden; /* must be on html+body together or fixed positioning breaks */
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-mid);
  background-image:
    /* Soft corner gradients */
    radial-gradient(ellipse 80% 60% at 0% 0%,   #CDDFF0 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 100% 100%, #EDD8DF 0%, transparent 60%),
    /* Memphis diagonal stripe — site-wide subtle texture */
    repeating-linear-gradient(
      45deg,
      transparent 0px, transparent 22px,
      rgba(207,11,40,.024) 22px, rgba(207,11,40,.024) 24px
    );
  background-attachment: fixed;
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1; /* grows to fill viewport — footer always stays at bottom */
}

/* WordPress admin bar offset */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

body.menu-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ─── 2. Typography ─────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.5rem); }
h4 { font-size: 1.0625rem; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.jp-text, .jp-subtitle {
  font-family: var(--font-jp);
  font-weight: 300;
  letter-spacing: 0.12em;
}

/* ─── 3. Layout Utilities ───────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 800px; }
.container--wide   { max-width: 1400px; }

.flex-center { display: flex; align-items: center; justify-content: center; }
.text-center { text-align: center; }

section { padding-block: clamp(4rem, 8vw, 6rem); }

/* ─── 4. Buttons — parallelogram ────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.875rem;
  border-radius: 0;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  /* Explicit transitions — filter must be listed for drop-shadow to animate */
  transition: background 0.22s cubic-bezier(0.16,1,0.3,1),
              border-color 0.22s cubic-bezier(0.16,1,0.3,1),
              color 0.22s cubic-bezier(0.16,1,0.3,1),
              filter 0.22s cubic-bezier(0.16,1,0.3,1),
              transform 0.22s cubic-bezier(0.16,1,0.3,1);
  white-space: nowrap;
  clip-path: polygon(var(--clip-x) 0%, 100% 0%, calc(100% - var(--clip-x)) 100%, 0% 100%);
  cursor: pointer;
}
.btn:active {
  transform: scale(0.96) translateY(1px) !important;
  filter: brightness(0.9) !important;
  transition-duration: 0.08s !important;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  filter: drop-shadow(0 4px 14px rgba(207,11,40,.28));
}
.btn-primary:hover {
  background: #fff;
  color: var(--color-accent);
  filter: drop-shadow(0 8px 24px rgba(207,11,40,.22));
  transform: translateY(-2px);
}

.btn-outline {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1.5px solid var(--color-border-md);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.06));
}
.btn-outline:hover {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
  filter: drop-shadow(0 6px 18px rgba(207,11,40,.32));
  transform: translateY(-2px);
}

.btn-ghost {
  background: #fff;
  color: var(--color-accent);
  padding-inline: 0.875rem;
  clip-path: polygon(var(--clip-x) 0%, 100% 0%, calc(100% - var(--clip-x)) 100%, 0% 100%);
  border: none;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.08));
}
.btn-ghost:hover {
  background: var(--color-accent);
  color: #fff;
  filter: drop-shadow(0 4px 12px rgba(207,11,40,.28));
  text-decoration: none;
}

.btn-sm  { padding: 0.5rem 1.375rem; font-size: 0.875rem; clip-path: polygon(var(--clip-x) 0%, 100% 0%, calc(100% - var(--clip-x)) 100%, 0% 100%); }
.btn-lg  { padding: 0.9375rem 2.5rem; font-size: 1.0625rem; }
.btn-icon { width: 18px; height: 18px; flex-shrink: 0; }

.btn-white {
  background: #fff;
  color: var(--color-accent);
  font-weight: 700;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,.14));
}
.btn-white:hover {
  background: var(--color-accent);
  color: #fff;
  transform: translateY(-2px);
  filter: drop-shadow(0 8px 24px rgba(207,11,40,.36));
}

/* ─── 5. Section Header ─────────────────────────────────────── */
.section-header { margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-header.centered { text-align: center; }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.625rem;
}
.section-eyebrow::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--color-accent);
  flex-shrink: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s 0.25s ease;
}
.section-header.revealed .section-eyebrow::before { transform: scaleX(1); }

.section-title { margin-bottom: 0.375rem; font-weight: 800; }
.section-jp {
  font-family: var(--font-jp);
  font-size: 0.875rem;
  color: var(--color-text-light);
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
}
.section-subtitle {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  max-width: 500px;
  margin-top: 0.5rem;
}
.section-header.centered .section-subtitle { margin-inline: auto; }

/* ─── 6. Site Header / Navigation ───────────────────────────── */

/* Atlus-style: always transparent — shadow lives on the nav group, not the header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: transparent;
  overflow: visible; /* let clip-path diagonals bleed past container edges */
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container);
  margin-inline: auto;
  /* Extra inline padding so parallelogram diagonals have room to breathe */
  padding-inline: var(--gutter) calc(var(--gutter) + 0.5rem);
  gap: 1.5rem;
  overflow: visible;
}

/* ── Logo — floats free, no box ── */
.site-branding {
  flex-shrink: 0;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.14));
}

.brand-link,
.custom-logo-link {
  display: flex;
  align-items: center;
  transition: opacity 0.2s;
  text-decoration: none;
}
.brand-link:hover,
.custom-logo-link:hover { opacity: 0.75; }

.custom-logo-link img,
.brand-link img {
  height: 34px;
  width: auto;
  display: block;
}

/* Fallback: icon + wordmark */
.brand-fallback { display: flex; align-items: center; gap: 0.625rem; }
.brand-icon { width: 32px; height: 32px; flex-shrink: 0; }
.brand-wordmark { display: flex; flex-direction: column; line-height: 1; }
.brand-wordmark-main {
  font-weight: 900;
  font-size: 0.9375rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text);
}
.brand-wordmark-jp {
  font-family: var(--font-jp);
  font-size: 0.575rem;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
  margin-top: 2px;
}

/* ── Nav group: pills-wrap + CTA button — exactly like Atlus ── */
.nav-group {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
  /* Inset padding so parallelogram diagonals aren't flush against edges */
  padding-inline: 6px;
  overflow: visible;
  /* Subtle directional shadow — just enough to see the gap, like the logo treatment */
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.14));
}

/* ONE white pill container wrapping all nav links */
.nav-pills-wrap {
  position: relative;
  border-radius: 0;
  padding: 6px 28px;
  display: flex;
  align-items: center;
  /* box-shadow is clipped by clip-path, so we use a pseudo-element trick */
}

/* Frosted glass background + shadow on ::before so they don't conflict */
.nav-pills-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  clip-path: inherit; /* match the parallelogram */
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.20), 0 1px 6px rgba(0, 0, 0, 0.10);
  transition: background 0.3s ease, box-shadow 0.3s ease;
  z-index: -1;
}

/* Stronger shadow + fully opaque when scrolled */
.scrolled .nav-pills-wrap::before {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.26), 0 2px 8px rgba(0, 0, 0, 0.12);
}
.scrolled .nav-group .btn-primary {
  filter: drop-shadow(0 4px 18px rgba(207, 11, 40, 0.40));
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-menu li a {
  display: block;
  padding: 0.45rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
  border-radius: 0;
  /* No clip-path here — the outer pill defines the diagonal shape.
     Individual link highlights stay rectangular inside that context. */
  position: relative;
  transition: color 0.18s;
  white-space: nowrap;
}
/* Hover: subtle underline grows from center */
.nav-menu li a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: calc(100% - 1.5rem);
  height: 2px;
  background: var(--color-accent);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
}
.nav-menu li a:hover { color: var(--color-text); }
.nav-menu li a:hover::after { transform: translateX(-50%) scaleX(1); }

/* Active / current page: accent underline always visible, bold */
.nav-menu li.current-menu-item > a,
.nav-menu li.current_page_item > a {
  font-weight: 700;
  color: var(--color-accent);
}
.nav-menu li.current-menu-item > a::after,
.nav-menu li.current_page_item > a::after {
  transform: translateX(-50%) scaleX(1);
}

/* ── Mobile toggle ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1010;
}
.nav-toggle .toggle-bar {
  width: 22px; height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}
.nav-toggle.active .toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active .toggle-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active .toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile overlay ── */
.mobile-menu {
  position: fixed; inset: 0;
  background: rgba(240, 246, 252, 0.97);
  backdrop-filter: blur(20px);
  z-index: 999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu-inner { text-align: center; }
.mobile-nav-menu { display: flex; flex-direction: column; gap: 0.375rem; margin-bottom: 2.5rem; }
.mobile-nav-menu li a {
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 700;
  display: block;
  padding: 0.5rem 2rem;
  border-radius: var(--radius-pill);
  transition: var(--transition);
}
.mobile-nav-menu li a:hover { background: var(--color-accent-light); color: var(--color-accent); }
.mobile-social { display: flex; align-items: center; justify-content: center; gap: 1rem; }

/* ─── 7. Social Links — diamond / parallelogram ──────────────── */
.social-link {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 0;
  background: var(--color-surface);
  color: var(--color-text-muted);
  transition: var(--transition);
  clip-path: polygon(var(--clip-x) 0%, 100% 0%, calc(100% - var(--clip-x)) 100%, 0% 100%);
}
.social-link svg { width: 17px; height: 17px; }
.social-link:hover {
  background: var(--color-accent);
  color: #fff;
  filter: drop-shadow(0 4px 12px rgba(207,11,40,.36));
  transform: translateY(-2px);
}

/* ─── 8. Hero Section ────────────────────────────────────────── */
.hero-section {
  min-height: 100svh;
  padding-top: var(--header-h);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Large white parallelogram — both edges angled (Memphis-style) */
.hero-section::before {
  content: '';
  position: absolute;
  right: -2%; top: 0; bottom: 0;
  width: 56%;
  background: rgba(255,255,255,0.44);
  clip-path: polygon(12% 0%, 100% 0%, 88% 100%, 0% 100%); /* true parallelogram */
  pointer-events: none;
}

/* Floating red rhombus accent — Memphis geometric */
.hero-section::after {
  content: '';
  position: absolute;
  right: 4%; top: 8%;
  width: 22%; height: 55%;
  background: rgba(207,11,40,.07);
  clip-path: polygon(50% 0%, 100% 35%, 50% 100%, 0% 65%); /* rhombus */
  pointer-events: none;
}

/* Memphis patterns on hero — dots + grid */
.hero-section {
  background-image:
    radial-gradient(circle, rgba(207,11,40,.055) 1.5px, transparent 1.5px),
    linear-gradient(rgba(207,11,40,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(207,11,40,.022) 1px, transparent 1px);
  background-size: 28px 28px, 56px 56px, 56px 56px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr; /* visual col slightly wider for photo */
  gap: clamp(1rem, 3vw, 3rem);
  align-items: end; /* both cols align to bottom so photo is grounded */
  width: 100%;
  padding-inline: clamp(2rem, 6vw, 5rem);
  padding-block: clamp(3rem, 6vw, 5rem);
  padding-bottom: 0; /* let photo bleed to bottom edge */
  position: relative;
  z-index: 1;
}
/* Hero content col: restore vertical centering internally */
.hero-content { padding-bottom: clamp(3rem, 6vw, 5rem); }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1.25rem;
  background: var(--color-accent-light);
  padding: 0.375rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(207,11,40,.15);
}

.hero-name {
  font-size: clamp(2.75rem, 6.5vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.92;
  margin-bottom: 0.625rem;
}

.hero-name-jp {
  font-family: var(--font-jp);
  font-size: clamp(0.875rem, 1.5vw, 1.125rem);
  font-weight: 300;
  letter-spacing: 0.22em;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  display: block;
}

.hero-tagline {
  font-size: clamp(1rem, 1.75vw, 1.1875rem);
  color: var(--color-text-muted);
  max-width: 440px;
  margin-bottom: 2rem;
  line-height: 1.65;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 0.875rem; margin-bottom: 2.5rem; }

.hero-social { display: flex; align-items: center; gap: 0.625rem; }

/* Hero photo */
.hero-visual {
  display: flex;
  justify-content: flex-end; /* photo pushes toward right edge */
  align-items: flex-end;     /* photo sits at bottom of hero */
  position: relative;
  overflow: visible;
}

.hero-photo-wrap {
  position: relative;
  width: clamp(360px, 52vw, 580px);
  margin-right: -1rem; /* slight bleed to right edge for full-bleed feel */
}

/* Accent slab — diagonal platform behind the lower photo */
.hero-photo-wrap::before {
  content: '';
  display: block;
  position: absolute;
  bottom: 0; left: -5%; right: -5%;
  height: 42%;
  background: var(--color-accent);
  opacity: 0.07;
  clip-path: polygon(4% 0%, 100% 0%, 100% 100%, 0% 100%);
  z-index: 0;
  pointer-events: none;
}

/* Ground glow — radial accent at feet */
.hero-photo-wrap::after {
  content: '';
  position: absolute;
  bottom: -8px; left: 15%; right: 15%;
  height: 48px;
  background: radial-gradient(ellipse at center, rgba(207,11,40,0.18) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.hero-photo-wrap img {
  width: 100%;
  object-fit: contain;   /* contain, not cover — preserves transparent edges */
  aspect-ratio: auto;    /* let the PNG define its own ratio */
  border-radius: 0;      /* no clipping — PNG shape is the frame */
  position: relative;
  z-index: 1;
  /* Deeper multi-layer shadow for more presence */
  filter:
    drop-shadow(0 48px 72px rgba(0,0,0,0.22))
    drop-shadow(0 12px 28px rgba(0,0,0,0.14))
    drop-shadow(0 2px 6px rgba(0,0,0,0.08));
}

/* Fallback placeholder — dashed outline, no solid frame */
.hero-photo-placeholder {
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  border: 2px dashed rgba(207,11,40,.20);
  background: rgba(255,255,255,0.25);
}
.hero-photo-placeholder-text {
  font-size: 5rem;
  font-weight: 900;
  color: rgba(207,11,40,.10);
  user-select: none;
  letter-spacing: -0.04em;
}

.hero-badge {
  position: absolute;
  bottom: -1rem;
  right: -1.5rem;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 0.875rem 1.125rem;
  box-shadow: var(--shadow-md);
  z-index: 2;
  text-align: center;
}
.hero-badge-value {
  font-size: 1.375rem;
  font-weight: 900;
  color: var(--color-accent);
  line-height: 1;
}
.hero-badge-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* ─── 9. Stats Strip ─────────────────────────────────────────── */
.stats-section {
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
}

.stats-wrap {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  position: relative;
  border-left: 4px solid var(--color-accent);
}

/* Diagonal decorative stripe inside stats */
.stats-wrap::before {
  content: '';
  position: absolute;
  top: 0; right: 5%; bottom: 0;
  width: 22%;
  background: linear-gradient(to bottom, rgba(207,11,40,.03), transparent);
  transform: skewX(-14deg);
  pointer-events: none;
}

.stats-grid {
  display: grid;
  /* auto-fit: wraps gracefully for any number of stats */
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.stat-item {
  text-align: center;
  padding: 1.75rem 1.25rem;
  border-right: 1px solid var(--color-border);
  position: relative;
}
.stat-item:last-child { border-right: none; }

.stat-number {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 900;
  color: var(--color-accent);
  line-height: 1;
  display: block;
  margin-bottom: 0.375rem;
  letter-spacing: -0.03em;
}
.stat-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* ─── 10. Projects ───────────────────────────────────────────── */
.featured-projects-section,
.projects-section { background: transparent; }

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  flex-wrap: wrap;
}

.projects-grid,
.projects-full-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Project Card — floating, rounded */
.project-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1),
              filter 0.3s cubic-bezier(0.16,1,0.3,1);
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  transform: translateY(-6px);
}

.project-card-image {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: linear-gradient(135deg, #E8EFF8, #F5E8EC);
}
.project-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.project-card:hover .project-card-image img { transform: scale(1.06); }

.project-card-body {
  padding: 1.375rem 1.5rem 1.5rem;
  display: flex; flex-direction: column; flex: 1;
}

.project-card-tags { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-bottom: 0.75rem; }

.tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
}
.tag-accent { background: var(--color-accent-light); color: var(--color-accent); }
.tag-neutral { background: rgba(0,0,0,.06); color: var(--color-text-muted); }

/* ── Project Type badge colours ─────────────────────────────────────────────
   Each type gets its own hue so projects are visually scannable at a glance.
   Colours are intentionally muted to stay readable on both light/dark cards. */
.tag-type-game    { background: #e8f0fe; color: #1a56db; } /* blue  — game */
.tag-type-event   { background: #fef3c7; color: #92400e; } /* amber — event */
.tag-type-website { background: #d1fae5; color: #065f46; } /* green — web/app */
.tag-type-device  { background: #ede9fe; color: #5b21b6; } /* violet — IoT */
.tag-type-org     { background: #fce7f3; color: #9d174d; } /* pink  — org transformation */
.tag-type-default { background: rgba(0,0,0,.06); color: var(--color-text-muted); }

/* ── Fix 3: full-card click via stretch link ──────────────────────── */
.project-card { position: relative; }
.project-card-stretch-link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}
/* Tags, recog, year stay above the overlay so they're still visible */
.project-card-tags,
.project-card-recog,
.project-card-footer { position: relative; z-index: 2; }

.project-card-title { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.375rem; line-height: 1.35; }
.project-card-title a { color: var(--color-text); transition: color 0.2s; }
.project-card-title a:hover { color: var(--color-accent); }

.project-card-role { font-size: 0.875rem; color: var(--color-text-muted); margin-bottom: 0.875rem; }

.project-card-spacer {
  flex: 1; /* grows to fill all remaining space, pushing footer to bottom */
  display: flex;
  align-items: flex-end;
  padding-bottom: 0.75rem;
}
.project-card-recog {
  font-size: 0.8rem;
  color: var(--color-accent);
  font-weight: 600;
  background: var(--color-accent-light);
  padding: 0.3rem 0.625rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin: 0;
}

.project-card-footer {
  /* no margin-top: auto — spacer handles the push */
  display: flex; align-items: center; justify-content: space-between;
}
.project-card-year { font-size: 0.8125rem; font-weight: 600; color: var(--color-text-light); }

/* Type-section divider row inside the single-project sidebar */
.project-meta-divider { border-top: 1px solid var(--color-border); padding-top: .625rem; margin-top: .25rem; }

/* ─── 11. About Teaser ───────────────────────────────────────── */
.about-teaser-section {
  background: transparent;
}
.about-teaser-card {
  background-color: var(--color-surface);
  /* Memphis dot-grid pattern — subtle, no frosted overlay */
  background-image:
    radial-gradient(circle, rgba(207,11,40,.055) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  border-top: 3px solid var(--color-accent);
  padding: clamp(2rem, 4vw, 3.5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.about-quote {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  padding-left: 1.5rem;
  border-left: 4px solid var(--color-accent);
}
.about-quote span { color: var(--color-accent); }

.about-bio-text { font-size: 1rem; color: var(--color-text-muted); line-height: 1.75; margin-bottom: 1.5rem; }

.about-roles { display: flex; flex-direction: column; gap: 0.625rem; margin-bottom: 1.75rem; }
.about-role-item { display: flex; align-items: center; gap: 0.75rem; }
.about-role-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}
.about-role-text { font-size: 0.9375rem; font-weight: 500; }

/* ─── 12. Experience Timeline ────────────────────────────────── */
.experience-section { background: transparent; }

/* Single-column stack — each card full width */
.experience-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.experience-item {
  display: block;
  position: relative;
}
.experience-item:not(:last-child)::before { display: none; }
.experience-dot { display: none; }
.experience-dot-inner { display: none; }

/* ── Card: horizontal split — meta left, content right ── */
.experience-card {
  background: var(--color-surface);
  box-shadow: var(--shadow-xs);
  display: grid;
  grid-template-columns: 200px 1fr;
  border-left: 4px solid var(--color-accent);
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.16,1,0.3,1), box-shadow 0.25s;
}
.experience-item:hover .experience-card {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

/* Left column: duration + location */
.experience-meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.75rem 1.5rem 1.75rem 1.5rem;
  border-right: 1px solid var(--color-border);
  background: rgba(207,11,40,.025);
  justify-content: flex-start;
}
.experience-duration {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.02em;
}
.experience-location {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.experience-location::before {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  background: var(--color-text-light);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%); /* diamond */
  flex-shrink: 0;
}

/* Right column: title, company, desc, achievements */
.experience-body {
  padding: 1.75rem 2rem;
}
.experience-header {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 0.75rem;
}
.experience-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
}
.experience-company {
  font-size: 0.9375rem;
  color: var(--color-accent);
  font-weight: 600;
}
.experience-company a { color: inherit; text-decoration: none; }
.experience-company a:hover { text-decoration: underline; }
.experience-desc { font-size: 0.9375rem; color: var(--color-text-muted); line-height: 1.65; }

/* Achievements list */
.experience-achievements {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.875rem;
  border-top: 1px solid var(--color-border);
}
.achievement-item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}
.achievement-item::before {
  content: '';
  width: 6px; height: 10px;
  background: var(--color-accent);
  opacity: 0.6;
  clip-path: polygon(var(--clip-x) 0%, 100% 0%, calc(100% - var(--clip-x)) 100%, 0% 100%);
  flex-shrink: 0;
  margin-top: 3px;
}

/* ─── 13. CTA Banner ─────────────────────────────────────────── */
.cta-banner {
  background: var(--color-accent);
  color: #fff;
  padding-block: clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}

/* Diagonal stripe overlays inside the CTA banner — skew defined in section 23 at -14deg */
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  width: 50%;
  left: 30%;
  background: rgba(255,255,255,.05);
  transform: skewX(-14deg);
  pointer-events: none;
}
.cta-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 30%;
  left: 62%;
  background: rgba(255,255,255,.04);
  transform: skewX(-14deg);
  pointer-events: none;
}


.cta-inner { position: relative; z-index: 1; text-align: center; max-width: 600px; margin-inline: auto; padding-inline: var(--gutter); }
.cta-jp { font-family: var(--font-jp); font-size: 0.875rem; opacity: 0.6; margin-bottom: 0.75rem; letter-spacing: 0.12em; }
.cta-title { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 900; color: #fff; margin-bottom: 0.875rem; letter-spacing: -0.025em; }
.cta-subtitle { opacity: 0.85; font-size: 1.0625rem; margin-bottom: 2rem; }

/* ─── 14. Page Heroes ────────────────────────────────────────── */
.page-hero {
  padding-top: calc(var(--header-h) + clamp(2.5rem, 5vw, 4rem));
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
  position: relative;
  overflow: hidden;
}

/* Diagonal panel on right of every page hero — overridden by section 23 with symmetric parallelogram */
.page-hero::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 38%;
  background: rgba(255,255,255,0.40);
  clip-path: polygon(14% 0%, 100% 0%, 86% 100%, 0% 100%);
  pointer-events: none;
  z-index: 0;
}
.page-hero-inner { position: relative; z-index: 1; text-align: center; }
.page-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--color-accent);
  margin-bottom: 0.75rem;
  background: var(--color-accent-light);
  padding: 0.3rem 0.875rem;
  border-radius: var(--radius-pill);
}
.page-hero-title { font-size: clamp(2.5rem, 5vw, 3.75rem); font-weight: 900; letter-spacing: -0.03em; margin-bottom: 0.375rem; }
.page-hero-jp { font-family: var(--font-jp); font-size: 0.9375rem; color: var(--color-text-light); letter-spacing: 0.14em; margin-bottom: 0.875rem; }
.page-hero-desc { font-size: 1.0625rem; color: var(--color-text-muted); max-width: 560px; margin-inline: auto; }

.page-hero-simple {
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: 3rem;
}
.page-hero-simple .page-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; }

/* ─── 15. Filter Tabs ────────────────────────────────────────── */
/* ─── Projects controls bar ──────────────────────────────────── */
.projects-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

/* Left side — type filter pills */
.pf-type-wrap {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex: 1;
  min-width: 0;
  overflow: visible;
}
.pf-pills {
  display: flex;
  align-items: center;
  gap: .375rem;
  flex-wrap: wrap;
}

/* Diagonal parallelogram filter buttons — match the site's .btn system */
.pf-pill {
  display: inline-flex;
  align-items: center;
  padding: .4rem 1.25rem;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  background: var(--color-surface);
  color: var(--color-text-muted);
  clip-path: polygon(var(--clip-x) 0%, 100% 0%, calc(100% - var(--clip-x)) 100%, 0% 100%);
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.06));
  transition: background 0.2s, color 0.2s, filter 0.2s;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.pf-pill::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s cubic-bezier(0.16,1,0.3,1);
}
.pf-pill:hover::before { transform: scaleX(1); }
.pf-pill:hover { color: #fff; filter: drop-shadow(0 4px 12px rgba(207,11,40,.2)); }
.pf-pill span { position: relative; z-index: 1; }
.pf-pill.active {
  background: var(--color-accent);
  color: #fff;
  filter: drop-shadow(0 4px 14px rgba(207,11,40,.28));
}
.pf-pill.active::before { transform: scaleX(1); }

/* More overflow dropdown — same shape */
.pf-more-wrap { position: relative; flex-shrink: 0; }
.pf-more-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .4rem 1.25rem;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  background: var(--color-surface);
  color: var(--color-text-muted);
  clip-path: polygon(var(--clip-x) 0%, 100% 0%, calc(100% - var(--clip-x)) 100%, 0% 100%);
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.06));
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.pf-more-btn:hover,
.pf-more-btn.has-active { background: var(--color-accent-light); color: var(--color-accent); }
.pf-more-arrow { font-size: .65rem; }
.pf-more-menu {
  position: absolute;
  top: calc(100% + .625rem);
  left: 0;
  min-width: 180px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 2px solid var(--color-accent);
  box-shadow: var(--shadow-md);
  padding: .375rem 0;
  list-style: none;
  margin: 0;
  z-index: 200;
}
.pf-more-item {
  padding: .5rem 1.125rem;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.pf-more-item:hover { background: var(--color-accent-light); color: var(--color-accent); }
.pf-more-item.active { color: var(--color-accent); }

/* Right side — sort only */
.pf-right {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.06));
}

/* Sort button — left half of a split parallelogram pair */
.pf-sort-btn {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .4rem 1.375rem .4rem 1.125rem;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  background: var(--color-surface);
  color: var(--color-text-muted);
  clip-path: polygon(var(--clip-x) 0%, 100% 0%, calc(100% - var(--clip-x)) 100%, 0% 100%);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
  margin-right: -8px; /* overlap to merge with year select */
}
.pf-sort-btn:hover { background: var(--color-accent-light); color: var(--color-accent); }
.pf-sort-icon { font-size: .85rem; display: inline-block; transition: transform .2s; }
.pf-sort-btn[data-order="asc"] .pf-sort-icon { transform: rotate(180deg); }

/* Year jump select — right half of the pair */

/* Scrolling year indicator — fixed side ticker */
#pf-year-ticker {
  position: fixed;
  right: 1.75rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: .6rem;
  pointer-events: none;
}
#pf-year-ticker.visible { display: flex; }
.pf-ticker-year {
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  opacity: .1;
  filter: blur(1.5px);
  transform: scale(0.92) translateX(4px);
  transition: opacity .5s cubic-bezier(0.16,1,0.3,1),
              color .5s cubic-bezier(0.16,1,0.3,1),
              font-size .5s cubic-bezier(0.16,1,0.3,1),
              filter .5s cubic-bezier(0.16,1,0.3,1),
              transform .5s cubic-bezier(0.16,1,0.3,1),
              letter-spacing .5s cubic-bezier(0.16,1,0.3,1);
  pointer-events: none;
  line-height: 1;
}
.pf-ticker-year.nearby {
  opacity: .3;
  filter: blur(0.8px);
  transform: scale(0.96) translateX(2px);
}
.pf-ticker-year.current {
  font-size: 2rem;
  letter-spacing: .03em;
  color: var(--color-accent);
  opacity: 1;
  filter: none;
  transform: translateX(-10px);
}
.pf-ticker-year.far {
  opacity: .1;
  filter: blur(1.5px);
  transform: scale(0.92) translateX(4px);
}

/* Year group headings injected by JS */
.pf-year-heading {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  margin-bottom: -.125rem;
  scroll-margin-top: 110px;
}
.pf-year-heading-text {
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  white-space: nowrap;
  /* no background, no clip-path — just a quiet label */
}
.pf-year-heading-line {
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

/* Empty state */
.pf-empty-msg {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--color-text-muted);
  padding: 3rem 0;
  font-size: .9375rem;
}

/* Keep legacy .filter-tabs/.filter-tab working if used elsewhere */
.filter-tabs { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.filter-tab {
  padding: 0.4rem 1.25rem;
  font-size: .8125rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  clip-path: polygon(var(--clip-x) 0%, 100% 0%, calc(100% - var(--clip-x)) 100%, 0% 100%);
  background: var(--color-surface);
  color: var(--color-text-muted);
  border: none; cursor: pointer;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.06));
  transition: background .2s, color .2s;
}
.filter-tab:hover { background: var(--color-accent-light); color: var(--color-accent); }
.filter-tab.active { background: var(--color-accent); color: #fff; filter: drop-shadow(0 4px 14px rgba(207,11,40,.28)); }

/* ─── 16. Single Project ─────────────────────────────────────── */
/* Hero bleeds up to the very top behind the fixed nav */
.single-project-wrap { padding-top: 0; }
.project-hero-wrap {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin-top: 0; /* no gap — image starts at top of page behind nav */
}

.project-hero-img {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  display: block;
  border-radius: 0;
  aspect-ratio: 21/8;
  object-fit: cover;
  object-position: center top;
  margin-top: 0;
}

/* Layout: sidebar sticks only as tall as the content column allows */
.project-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  align-items: start; /* never stretch sidebar taller than content */
}

.project-content h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 900; margin-bottom: 1rem; line-height: 1.15; }

/* Short content: entry-content gets a min-height so layout doesn't collapse */
.entry-content {
  min-height: 12rem;
  line-height: 1.75;
}
.entry-content p:last-child { margin-bottom: 0; }

.project-back-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.875rem; font-weight: 600; color: var(--color-text-muted);
  margin-bottom: 1.5rem; transition: var(--transition);
  background: var(--color-surface);
  padding: 0.4rem 1rem;
  /* clip-path defined in section 25 at 3% */
}
.project-back-link:hover { color: var(--color-accent); background: var(--color-accent-light); }
.project-back-link svg { width: 15px; height: 15px; }

.project-meta-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  height: fit-content;
  overflow: visible; /* let clip-path diagonals bleed past container edges */
}

.project-meta-card {
  background: var(--color-surface);
  filter: drop-shadow(0 2px 12px rgba(0,0,0,.08));
  padding: 1.75rem 2.25rem 1.75rem 2.25rem;
  border-top: 3px solid var(--color-accent);
  /* Cut top-right corner diagonally — same language as project cards */
  clip-path: polygon(0% 0%, calc(100% - 40px) 0%, 100% 40px, 100% 100%, 0% 100%);
  position: relative;
}
.project-meta-title { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-accent); margin-bottom: 1.25rem; }
.project-meta-list { display: flex; flex-direction: column; gap: 0.75rem; }
.project-meta-row { display: flex; flex-direction: column; gap: 0.1rem; }
.meta-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-text-light); }
.meta-value { font-size: 0.9375rem; font-weight: 500; }
.project-recognition {
  margin-top: 1.25rem;
  background: var(--color-accent-light);
  padding: 0.75rem 1rem;
  font-size: 0.875rem; font-weight: 600; color: var(--color-accent);
  clip-path: polygon(var(--clip-x) 0%, 100% 0%, calc(100% - var(--clip-x)) 100%, 0% 100%);
}
.project-demo-btn { margin-top: 1.25rem; width: 100%; justify-content: center; }

/* ── Section scaffold (gallery / people / outcome) ───────────── */
.project-gallery-section,
.project-people-section,
.project-outcome-section {
  padding-block: clamp(2rem, 4vw, 3.5rem);
  border-top: 1px solid var(--color-border);
}

.project-section-title {
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--color-text-muted);
}
.project-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

/* ── Mosaic gallery ──────────────────────────────────────────── */
.project-gallery-mosaic {
  display: grid;
  gap: .625rem;
  /* Default: 3-col grid */
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
}

/* 1 image: full width */
.project-gallery-mosaic[data-count="1"] { grid-template-columns: 1fr; grid-auto-rows: 420px; }

/* 2 images: two equal columns */
.project-gallery-mosaic[data-count="2"] { grid-template-columns: 1fr 1fr; grid-auto-rows: 340px; }

/* 4 images: 2x2 */
.project-gallery-mosaic[data-count="4"] { grid-template-columns: 1fr 1fr; grid-auto-rows: 260px; }

/* First item always spans 2 columns on 3+ images */
.project-gallery-mosaic[data-count="3"] .project-mosaic-featured,
.project-gallery-mosaic[data-count="5"] .project-mosaic-featured,
.project-gallery-mosaic[data-count="6"] .project-mosaic-featured { grid-column: span 2; }

.project-mosaic-item {
  position: relative;
  overflow: hidden;
  display: block;
  background: var(--color-surface);
}
.project-mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s cubic-bezier(0.16,1,0.3,1);
}
.project-mosaic-item:hover img { transform: scale(1.07); }

/* Overlay: accent diagonal + expand icon */
.project-mosaic-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(207,11,40,.72) 0%, rgba(0,0,0,.55) 100%);
  opacity: 0;
  transition: opacity .3s;
  color: #fff;
}
.project-mosaic-item:hover .project-mosaic-overlay { opacity: 1; }

/* ── People / behind-the-project photo ──────────────────────── */
.project-people-wrap { position: relative; overflow: hidden; }
.project-people-photo {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}
/* Diagonal accent strip over bottom of image */
.project-people-wrap::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--color-accent);
}

/* ── Outcome / Remarks ───────────────────────────────────────── */
.project-outcome-body {
  max-width: 72ch;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text);
  padding-left: 1.5rem;
  border-left: 3px solid var(--color-accent);
}
.project-outcome-body p { margin-bottom: .875rem; }
.project-outcome-body p:last-child { margin-bottom: 0; }

/* Responsive */
@media (max-width: 860px) {
  .project-layout { grid-template-columns: 1fr; }
  .project-meta-sidebar { position: static; }
  .project-gallery-mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .project-gallery-mosaic[data-count="1"] { grid-auto-rows: 260px; }
}

/* ─── 17. About Page ─────────────────────────────────────────── */
.skills-section { background: transparent; }
.skills-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: clamp(2rem, 3vw, 3rem);
}
.skills-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
.skill-group-title {
  font-size: 0.8125rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-accent); margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.skill-group-title::before { content: ''; width: 14px; height: 2px; background: var(--color-accent); }
.skills-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.skill-tag {
  font-size: 0.875rem; font-weight: 500;
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-pill);
  background: rgba(0,0,0,.05);
  color: var(--color-text);
  transition: var(--transition);
}
.skill-tag:hover { background: var(--color-accent-light); color: var(--color-accent); }

/* Awards */
.awards-section { background: transparent; }
.awards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.award-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1),
              filter 0.3s cubic-bezier(0.16,1,0.3,1);
}
.award-card:hover { transform: translateY(-4px); }
.award-icon { font-size: 1.5rem; margin-bottom: 0.875rem; }
.award-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.375rem; }
.award-quote { font-size: 0.875rem; color: var(--color-text-muted); font-style: italic; line-height: 1.6; }

/* Other experience */
.other-skills-section { background: transparent; }
.other-skills-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: clamp(2rem, 3vw, 3rem);
}
.other-skills-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem; }
.other-skill-group h3 { font-size: 1.0625rem; font-weight: 700; margin-bottom: 1.125rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--color-border); }
.other-skill-list { display: flex; flex-direction: column; gap: 0.625rem; }
.other-skill-item { font-size: 0.9rem; color: var(--color-text-muted); padding-left: 1rem; position: relative; }
.other-skill-item::before { content: ''; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--color-accent); }

/* ─── 18. Activities ─────────────────────────────────────────── */
.activities-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.activity-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  padding: 1.5rem;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1),
              filter 0.3s cubic-bezier(0.16,1,0.3,1);
  border-top: 3px solid transparent;
}
.activity-card:hover { transform: translateY(-4px); border-top-color: var(--color-accent); }
.activity-card-period { font-size: 0.8rem; font-weight: 700; color: var(--color-accent); letter-spacing: 0.06em; margin-bottom: 0.5rem; }
.activity-card-title { font-size: 1.0625rem; font-weight: 700; margin-bottom: 0.35rem; line-height: 1.3; }
.activity-card-role { font-size: 0.875rem; font-weight: 500; color: var(--color-text-muted); margin-bottom: 0.75rem; }
.activity-card-desc { font-size: 0.9rem; color: var(--color-text-muted); line-height: 1.6; }

/* ─── 19. Contact Page ───────────────────────────────────────── */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.contact-intro { font-size: 1.0625rem; color: var(--color-text-muted); line-height: 1.75; margin-bottom: 2rem; }
.contact-channels { display: flex; flex-direction: column; gap: 0.875rem; margin-bottom: 2rem; }
.contact-channel {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
  color: var(--color-text);
}
.contact-channel:hover { box-shadow: var(--shadow-sm); transform: translateX(4px); }
.contact-channel-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--color-accent-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-accent); flex-shrink: 0;
}
.contact-channel-icon svg { width: 18px; height: 18px; }
.contact-channel-label { font-size: 0.8rem; color: var(--color-text-light); }
.contact-channel-value { font-size: 0.9375rem; font-weight: 600; }

.contact-availability { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: #16a34a; font-weight: 600; }
.availability-dot { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; animation: pulse-green 2s infinite; }
@keyframes pulse-green { 0%,100%{box-shadow:0 0 0 0 rgba(22,163,74,.4)} 50%{box-shadow:0 0 0 5px rgba(22,163,74,0)} }

.contact-form-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border-top: 3px solid var(--color-accent);
}
.contact-form-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.25rem; }
.contact-form-sub { font-size: 0.9375rem; color: var(--color-text-muted); margin-bottom: 1.75rem; }
.form-group { margin-bottom: 1.125rem; }
.form-label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.425rem; }
.form-input, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-border-md);
  border-radius: var(--radius-md);
  font-size: 0.9375rem; font-family: var(--font-body);
  background: rgba(0,0,0,.025);
  color: var(--color-text);
  transition: border-color 0.2s, background 0.2s;
  outline: none;
}
.form-input:focus, .form-textarea:focus { border-color: var(--color-accent); background: #fff; }
.form-textarea { resize: vertical; min-height: 130px; }

/* ─── 20. Footer ─────────────────────────────────────────────── */
.site-footer {
  background: #000;
  color: rgba(255,255,255,.65);
  border-top: 3px solid var(--color-accent);
  margin-top: 4rem;
}

.footer-bottom {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-block: 1.25rem;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-brand-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.2s;
}
.footer-brand-link:hover { opacity: 1; }
.footer-brand-link img { height: 22px; width: auto; filter: brightness(0) invert(1); }
.footer-brand-link .brand-wordmark-main { color: #fff; letter-spacing: 0.08em; }
.copyright { font-size: 0.8125rem; color: rgba(255,255,255,.4); }
.footer-credit { font-size: 0.75rem; color: rgba(255,255,255,.25); font-style: italic; }

/* ─── 21. 404 ────────────────────────────────────────────────── */
.error-404-section { min-height: 80vh; display: flex; align-items: center; justify-content: center; padding-top: var(--header-h); }
.error-404-content { text-align: center; }
.error-eyebrow { font-size: clamp(6rem, 15vw, 10rem); font-weight: 900; color: var(--color-border-md); line-height: 1; display: block; margin-bottom: 0.5rem; opacity: 0.4; }
.error-title { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 0.375rem; }
.error-desc { color: var(--color-text-muted); margin-bottom: 2rem; }

/* ─── 22. Entry Content ──────────────────────────────────────── */
.entry-content { max-width: 700px; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin-block: 1.75rem 0.75rem; }
.entry-content p { margin-bottom: 1.25rem; color: var(--color-text-muted); }
.entry-content a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 3px; }
.entry-content img { border-radius: var(--radius-md); margin-block: 1.5rem; box-shadow: var(--shadow-sm); }
.entry-content ul, .entry-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.entry-content li { margin-bottom: 0.375rem; color: var(--color-text-muted); }
.no-content { text-align: center; padding: 4rem; color: var(--color-text-muted); }

.main-content { padding-top: 0; }
.page-content { padding-top: var(--header-h); }

/* ─── 23. Memphis Geometric Shapes ──────────────────────────── */
/* All panels use true parallelograms (both edges angled) or     */
/* rhombus / triangle shapes — no plain right-trapezoids.        */

/* ── Page heroes: parallelogram right panel ─────────────────── */
.page-hero::after {
  content: '';
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 40%;
  background: rgba(255,255,255,0.40);
  clip-path: polygon(14% 0%, 100% 0%, 86% 100%, 0% 100%); /* parallelogram */
  pointer-events: none; z-index: 0;
}
.page-hero-inner { position: relative; z-index: 1; }

/* ── Eyebrow badges: parallelogram clip ──────────────────────── */
.hero-eyebrow,
.page-hero-eyebrow {
  clip-path: polygon(var(--clip-x) 0%, 100% 0%, calc(100% - var(--clip-x)) 100%, 0% 100%);
}

/* ── Section panels: right-side parallelogram ───────────────── */
.skills-section,
.experience-section,
.activities-section { position: relative; overflow: hidden; }

.skills-section::after,
.experience-section::before,
.activities-section::after {
  content: '';
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 32%;
  background: rgba(255,255,255,0.38);
  clip-path: polygon(14% 0%, 100% 0%, 86% 100%, 0% 100%); /* parallelogram */
  pointer-events: none; z-index: 0;
}

/* ── Left-side red parallelogram on awards & other-skills ────── */
.awards-section,
.other-skills-section { position: relative; overflow: hidden; }

.awards-section::before,
.other-skills-section::before {
  content: '';
  position: absolute; top: 0; left: 0; bottom: 0;
  width: 28%;
  background: rgba(207,11,40,.04);
  clip-path: polygon(0% 0%, 100% 0%, 86% 100%, 0% 100%); /* parallelogram */
  pointer-events: none; z-index: 0;
}

/* ── Red rhombus accent on experience section ───────────────── */
.experience-section::after {
  content: '';
  position: absolute; left: 1%; top: 15%;
  width: 180px; height: 240px;
  background: rgba(207,11,40,.05);
  clip-path: polygon(50% 0%, 100% 35%, 50% 100%, 0% 65%); /* rhombus */
  pointer-events: none; z-index: 0;
}

/* Make inner containers sit above shapes */
.skills-section > .container,
.experience-section > .container,
.activities-section > .container,
.awards-section > .container,
.other-skills-section > .container { position: relative; z-index: 1; }

/* ── Contact section: parallelogram ─────────────────────────── */
.contact-section { position: relative; overflow: hidden; }
.contact-section::before {
  content: '';
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 36%;
  background: rgba(255,255,255,0.34);
  clip-path: polygon(14% 0%, 100% 0%, 86% 100%, 0% 100%); /* parallelogram */
  pointer-events: none;
}
.contact-section > .container { position: relative; z-index: 1; }

/* ── Featured-experience: red rhombus + parallelogram ────────── */
.featured-experience-section { position: relative; overflow: hidden; }
.featured-experience-section::before {
  content: '';
  position: absolute; right: 2%; top: 5%;
  width: 140px; height: 200px;
  background: rgba(207,11,40,.055);
  clip-path: polygon(50% 0%, 100% 35%, 50% 100%, 0% 65%); /* rhombus */
  pointer-events: none;
}
.featured-experience-section::after {
  content: '';
  position: absolute; top: 0; left: 0; bottom: 0;
  width: 20%;
  background: rgba(207,11,40,.03);
  clip-path: polygon(0% 0%, 100% 0%, 86% 100%, 0% 100%); /* parallelogram — 14% cut, matches other left panels */
  pointer-events: none;
}
.featured-experience-section > .container { position: relative; z-index: 1; }

/* ── Project card: large corner triangle ────────────────────── */
.project-card { position: relative; overflow: hidden; }
.project-card::after {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 44px 44px 0; /* bigger spike */
  border-color: transparent rgba(207,11,40,.18) transparent transparent;
  transition: border-color 0.25s;
}
.project-card:hover::after {
  border-color: transparent var(--color-accent) transparent transparent;
}

/* ── Activity card: corner triangle ─────────────────────────── */
.activity-card { position: relative; overflow: hidden; }
.activity-card::after {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 32px 32px 0;
  border-color: transparent rgba(207,11,40,.15) transparent transparent;
  transition: border-color 0.25s;
}
.activity-card:hover::after {
  border-color: transparent rgba(207,11,40,.55) transparent transparent;
}

/* ── Award card: diagonal reveal bar ────────────────────────── */
.award-card { position: relative; overflow: hidden; }
.award-card::before {
  content: '';
  position: absolute; bottom: 0; right: 0; left: 0;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--color-accent));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.32s cubic-bezier(0.16,1,0.3,1);
}
.award-card:hover::before { transform: scaleX(1); }

/* ── About teaser card: no pseudo-element overlay needed ─────── */
.about-teaser-card { position: relative; }
.about-teaser-card::after {
  display: none;
  content: '';
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 50%;
  background: rgba(207,11,40,.028);
  clip-path: polygon(16% 0%, 100% 0%, 84% 100%, 0% 100%); /* parallelogram */
  pointer-events: none;
}

/* ── Skills card: parallelogram inner accent ─────────────────── */
.skills-card { position: relative; overflow: hidden; }
.skills-card::after {
  content: '';
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 36%;
  background: rgba(207,11,40,.025);
  clip-path: polygon(20% 0%, 100% 0%, 80% 100%, 0% 100%); /* parallelogram */
  pointer-events: none;
}

/* ── CTA banner: spike top edge ─────────────────────────────── */
.cta-banner {
  clip-path: polygon(0 8%, 100% 0%, 100% 100%, 0% 100%);
  padding-top: calc(clamp(3rem, 6vw, 5rem) + 3rem);
  margin-top: -1rem;
}


/* ── Memphis patterns — distinct per section ─────────────────── */

/* Skills: zigzag/chevron */
.skills-section {
  background-image:
    linear-gradient(135deg, rgba(207,11,40,.042) 25%, transparent 25%),
    linear-gradient(225deg, rgba(207,11,40,.042) 25%, transparent 25%),
    linear-gradient(315deg, rgba(207,11,40,.042) 25%, transparent 25%),
    linear-gradient(45deg,  rgba(207,11,40,.042) 25%, transparent 25%);
  background-size: 16px 16px;
}

/* Experience: large dot grid */
.experience-section {
  background-image: radial-gradient(circle, rgba(207,11,40,.06) 2px, transparent 2px);
  background-size: 36px 36px;
}

/* Awards: cross/plus grid */
.awards-section {
  background-image:
    linear-gradient(rgba(207,11,40,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(207,11,40,.04) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Activities: diagonal stripes (opposite direction from body) */
.activities-section {
  background-image: repeating-linear-gradient(
    -45deg,
    transparent 0px, transparent 18px,
    rgba(207,11,40,.035) 18px, rgba(207,11,40,.035) 20px
  );
}

/* Other skills: small dots */
.other-skills-section {
  background-image: radial-gradient(circle, rgba(207,11,40,.05) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
}

/* Featured experience: diagonal stripes */
.featured-experience-section {
  background-image: repeating-linear-gradient(
    45deg,
    transparent 0px, transparent 20px,
    rgba(207,11,40,.028) 20px, rgba(207,11,40,.028) 22px
  );
}

/* ─── 24. Chamfered Cards — diagonal IS the card shape ──────── */
/*
   All cards cut their top-right corner diagonally.
   This makes the diagonal integral (not floating on top).
   box-shadow is replaced by filter: drop-shadow so it
   follows the chamfer outline instead of a bounding rect.
*/

.project-card,
.activity-card,
.award-card,
.skills-card,
.about-teaser-card,
.other-skills-card {
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 4px 18px rgba(0,0,0,.08));
}
/* Experience card: no chamfer clip — left-border accent design */
.experience-card {
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,.07));
}
.project-card:hover,
.activity-card:hover,
.award-card:hover,
.experience-card:hover,
.contact-channel:hover {
  filter: drop-shadow(0 12px 32px rgba(0,0,0,.13));
}

/* Red top-border accent — leads right up to the chamfer cut */
.project-card,
.activity-card {
  border-top: 3px solid var(--color-accent);
}
/* Experience card uses border-left accent instead (horizontal layout) */

/* Stats bar — shape defined in section 25 */
.stats-wrap {
  box-shadow: none;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,.07));
}

/* Remove old ::after corner triangle — chamfer replaces it */
.project-card::after,
.activity-card::after { display: none; }

/* ─── 25. Parallelogram / Angular UI Elements ───────────────── */
/* Everything that was a plain rectangle gets an angled edge.    */

/* ── Nav pill container: parallelogram matching btn angle ────── */
.nav-pills-wrap {
  clip-path: polygon(var(--clip-x) 0%, 100% 0%, calc(100% - var(--clip-x)) 100%, 0% 100%);
}

/* ── Nav CTA: same height as pill so angle is identical ─────── */
/* btn-sm is ~36px tall; pill is ~47px → same --clip-x gives     */
/* different angles. Boosting padding-block equalises the height.*/
.nav-group .btn-sm {
  padding-block: 0.875rem;
}

/* ── Tags and chips: parallelogram ──────────────────────────── */
.tag,
.skill-tag {
  clip-path: polygon(var(--clip-x) 0%, 100% 0%, calc(100% - var(--clip-x)) 100%, 0% 100%);
  border-radius: 0;
}

/* ── Filter tabs: parallelogram ─────────────────────────────── */
.filter-tab {
  clip-path: polygon(var(--clip-x) 0%, 100% 0%, calc(100% - var(--clip-x)) 100%, 0% 100%);
  border-radius: 0;
}

/* ── Hero eyebrow badge: parallelogram ───────────────────────── */
/* (also set in Memphis section — this ensures it applies) */
.hero-eyebrow {
  clip-path: polygon(var(--clip-x) 0%, 100% 0%, calc(100% - var(--clip-x)) 100%, 0% 100%);
  border-radius: 0;
}

/* ── Experience badge ("5+ yrs"): parallelogram ─────────────── */
.hero-badge {
  clip-path: polygon(var(--clip-x) 0%, 100% 0%, calc(100% - var(--clip-x)) 100%, 0% 100%);
  border-radius: 0;
}

/* ── Stats bar: parallelogram cut on right end ───────────────── */
.stats-wrap {
  clip-path: polygon(0 0, 100% 0, 97% 100%, 0% 100%);
}

/* ── Experience timeline dot: diamond ───────────────────────── */
.experience-dot {
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  border-radius: 0;
}

/* ── Contact channel rows: parallelogram ────────────────────── */
.contact-channel {
  clip-path: polygon(var(--clip-x) 0%, 100% 0%, calc(100% - var(--clip-x)) 100%, 0% 100%);
  border-radius: 0;
}

/* ── Project back-link: parallelogram ───────────────────────── */
.project-back-link {
  clip-path: polygon(var(--clip-x) 0%, 100% 0%, calc(100% - var(--clip-x)) 100%, 0% 100%);
  border-radius: 0;
}

/* ── Page eyebrow badge ─────────────────────────────────────── */
.page-hero-eyebrow {
  clip-path: polygon(var(--clip-x) 0%, 100% 0%, calc(100% - var(--clip-x)) 100%, 0% 100%);
  border-radius: 0;
}

/* ── Mobile nav links: parallelogram highlight ──────────────── */
.mobile-nav-menu li a {
  clip-path: polygon(var(--clip-x) 0%, 100% 0%, calc(100% - var(--clip-x)) 100%, 0% 100%);
}

/* ── Footer social links: inherit parallelogram ─────────────── */
.footer-social .social-link {
  clip-path: polygon(var(--clip-x) 0%, 100% 0%, calc(100% - var(--clip-x)) 100%, 0% 100%);
  width: auto; height: auto; /* revert from square for footer */
}

@media (max-width: 1100px) {
  .projects-grid, .projects-full-grid { grid-template-columns: repeat(2, 1fr); }
  .awards-grid { grid-template-columns: repeat(2, 1fr); }
  .activities-grid { grid-template-columns: repeat(2, 1fr); }
  .project-layout { grid-template-columns: 1fr; }
  .project-meta-sidebar { position: static; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; align-items: center; padding-bottom: clamp(3rem, 6vw, 5rem); }
  .hero-content { padding-bottom: 0; }
  .hero-visual { display: none; }
  .about-teaser-card { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  /* Even items in a 2-col layout have no right border */
  .stat-item:nth-child(even) { border-right: none; }
  /* Items after row 1 get a top border */
  .stat-item:nth-child(n+3) { border-top: 1px solid var(--color-border); }
  .skills-groups { grid-template-columns: 1fr; }
  .other-skills-cols { grid-template-columns: 1fr; }
  .cta-banner { margin-inline: 0; border-radius: 0; }
  /* Experience: collapse meta above body on medium screens */
  .experience-card { grid-template-columns: 1fr; }
  .experience-meta { border-right: none; border-bottom: 1px solid var(--color-border); padding: 1rem 1.5rem; flex-direction: row; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
  .experience-body { padding: 1.25rem 1.5rem; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .nav-group { display: none; }
  .nav-toggle { display: flex; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .hero-visual { display: flex; }
  .hero-photo-wrap { width: clamp(180px, 55vw, 300px); }
}

@media (max-width: 600px) {
  .projects-grid, .projects-full-grid, .awards-grid, .activities-grid { grid-template-columns: 1fr; }
  .section-header-row { flex-direction: column; align-items: flex-start; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}

/* ─── Gallery Lightbox ────────────────────────────────────────── */
.tjb-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
}
.tjb-lightbox.active { display: flex; }

.tjb-lb-inner {
  position: relative;
  max-width: min(90vw, 1100px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tjb-lb-img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius-md, 6px);
  display: block;
  box-shadow: 0 8px 48px rgba(0,0,0,.6);
}
.tjb-lb-footer {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.75rem;
  padding: 0 0.25rem;
  min-height: 1.5rem;
}
.tjb-lb-caption {
  font-size: 0.9rem;
  color: rgba(255,255,255,.85);
  line-height: 1.5;
  flex: 1;
  text-align: left;
}
.tjb-lb-counter {
  font-size: 0.75rem;
  color: rgba(255,255,255,.45);
  letter-spacing: 0.06em;
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 0.15rem;
}
.tjb-lb-close,
.tjb-lb-prev,
.tjb-lb-next {
  position: fixed;
  background: rgba(255,255,255,.08);
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: background 0.2s;
  line-height: 1;
}
.tjb-lb-close:hover,
.tjb-lb-prev:hover,
.tjb-lb-next:hover { background: var(--color-accent, #cf0b28); }
.tjb-lb-close { top: 1.25rem; right: 1.25rem; font-size: 1.5rem; }
.tjb-lb-prev  { left: 1.25rem; top: 50%; transform: translateY(-50%); }
.tjb-lb-next  { right: 1.25rem; top: 50%; transform: translateY(-50%); }

@media (max-width: 600px) {
  .tjb-lb-prev { left: 0.5rem; }
  .tjb-lb-next { right: 0.5rem; }
}

/* ─── Case Study Narrative (P2) ──────────────────────────────── */
.project-case-study {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.project-case-block {
  padding: 1.5rem 1.75rem;
  position: relative;
  border-left: 3px solid transparent;
  transition: border-color 0.2s;
}

/* Alternating left-border accent per block */
.project-case-challenge    { border-left-color: var(--color-accent); background: var(--color-surface); }
.project-case-contribution { border-left-color: #1a56db;            background: rgba(26,86,219,.04); }
.project-case-process      { border-left-color: #065f46;            background: rgba(6,95,70,.04); }

.project-case-heading {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: .875rem;
}

.project-case-icon {
  font-size: 1rem;
  line-height: 1;
}

.project-case-body p {
  font-size: .9375rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: .75rem;
}
.project-case-body p:last-child { margin-bottom: 0; }

/* Diagonal cut between blocks — same language as the rest of the site */
.project-case-challenge {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
  margin-bottom: 2px;
}

/* ─── Skill Badges (P3) ──────────────────────────────────────── */
.project-meta-skills {
  border-top: 1px solid var(--color-border);
  padding-top: 1.25rem;
  margin-top: 1.25rem;
}

.project-skills-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.project-skill-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .03em;
  padding: .275rem .625rem;
  border-radius: var(--radius-pill);
  background: var(--color-surface-alt, rgba(0,0,0,.05));
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}

.project-skill-badge:hover {
  background: var(--color-accent-light);
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.skill-badge-svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.skill-badge-svg svg {
  width: 13px;
  height: 13px;
}
.skill-badge-emoji {
  font-size: .85rem;
  line-height: 1;
}

/* ─── Priority 1: Hero additions ────────────────────────────── */

/* Open to Work badge — block so it sits on its own line above the role badge */
.hero-open-badge {
  display: flex;          /* block-level flex: forces role badge to next line */
  width: fit-content;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #065f46;
  background: #d1fae5;
  border: 1px solid #6ee7b7;
  padding: .3rem .875rem;
  border-radius: var(--radius-pill);
  margin-bottom: .625rem;
}
.hero-open-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16,185,129,.25);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(16,185,129,.25); }
  50%       { box-shadow: 0 0 0 6px rgba(16,185,129,.10); }
}

/* Specialisation line */
.hero-specialise {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: .625rem;
  margin-top: -.25rem;
}

/* Personal statement */
.hero-statement {
  font-size: clamp(.9375rem, 1.4vw, 1.0625rem);
  color: var(--color-text);
  max-width: 460px;
  line-height: 1.7;
  margin-top: -.5rem;
  margin-bottom: 2rem;
  border-left: 3px solid var(--color-accent);
  padding-left: .875rem;
}

/* LinkedIn primary CTA button */
.btn-linkedin {
  background: #0077b5;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  clip-path: polygon(var(--clip-x) 0%, 100% 0%, calc(100% - var(--clip-x)) 100%, 0% 100%);
  padding-inline: 1.5rem;
}
.btn-linkedin:hover {
  background: #005f94;
  color: #fff;
}

/* ─── Priority 4: Trust Signals Section ─────────────────────── */
.trust-signals-section {
  padding-block: clamp(3.5rem, 7vw, 6rem);
  background: var(--color-bg-mid);
  position: relative;
}

/* Subtle diagonal stripe top border */
.trust-signals-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent) 0%, transparent 60%);
}

/* Testimonial grid */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 3rem;
}

.testimonial-card {
  background: var(--color-surface);
  padding: 1.75rem;
  position: relative;
  clip-path: polygon(0 0, 100% 0, 97% 100%, 0% 100%);
  filter: drop-shadow(0 2px 10px rgba(0,0,0,.07));
  display: flex;
  flex-direction: column;
}

.testimonial-quote-mark {
  font-size: 3.5rem;
  line-height: .8;
  color: var(--color-accent);
  font-weight: 900;
  opacity: .25;
  margin-bottom: .25rem;
  font-family: Georgia, serif;
}

.testimonial-quote {
  font-size: .9375rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  flex: 1;
  margin-bottom: 1.25rem;
  font-style: italic;
}

.testimonial-attribution {
  display: flex;
  align-items: center;
  gap: .75rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
}

.testimonial-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.testimonial-name {
  display: block;
  font-size: .875rem;
  font-weight: 700;
  color: var(--color-text);
}

.testimonial-role {
  display: block;
  font-size: .75rem;
  color: var(--color-text-muted);
  margin-top: .1rem;
}

/* Bottom row: articles + resume */
.trust-bottom-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: start;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.trust-sub-heading {
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.trust-articles-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.trust-article-link {
  display: inline-flex;
  align-items: baseline;
  gap: .375rem;
  font-size: .9375rem;
  color: var(--color-text);
  text-decoration: none;
  transition: color .2s;
}
.trust-article-link:hover { color: var(--color-accent); }
.trust-article-venue {
  font-size: .8125rem;
  color: var(--color-text-muted);
}
.trust-article-link svg { flex-shrink: 0; align-self: center; }
.trust-article-nolink { cursor: default; }

.trust-resume {
  text-align: center;
  min-width: 200px;
}
.trust-resume-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  white-space: nowrap;
}
.trust-resume-hint {
  font-size: .7rem;
  color: var(--color-text-muted);
  margin-top: .625rem;
  opacity: .7;
}

@media (max-width: 640px) {
  .trust-bottom-row {
    grid-template-columns: 1fr;
  }
  .trust-resume { text-align: left; }
}

/* ─── Priority 5: Related Projects ──────────────────────────── */
.project-related-section {
  padding-block: clamp(3rem, 6vw, 5rem);
  background: var(--color-surface);
  margin-top: clamp(2rem, 4vw, 3.5rem);
  position: relative;
}

/* Diagonal top edge — matches site language */
.project-related-section::before {
  content: '';
  position: absolute;
  top: -18px; left: 0; right: 0;
  height: 18px;
  background: var(--color-surface);
  clip-path: polygon(0 100%, 100% 0%, 100% 100%);
}

.project-related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.project-related-cta {
  margin-top: 2rem;
  text-align: center;
}

@media (max-width: 580px) {
  .project-related-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── Projects page: year group spacing + distance opacity ──── */

.projects-full-grid {
  row-gap: 1.75rem;
}

/* Invisible year anchors — large gap creates clear chapter breaks */
.pf-year-heading {
  grid-column: 1 / -1;
  margin-top: 7rem !important;
}
.pf-year-heading:first-child {
  margin-top: 0 !important;
}

/* Card reveal — current year fully vivid, rest buried under fog */
.project-card-wrap {
  transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1),
              filter 0.6s cubic-bezier(0.16,1,0.3,1),
              transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.project-card-wrap.year-current {
  opacity: 1;
  filter: none;
  transform: none;
}
.project-card-wrap.year-nearby {
  opacity: 0.3;
  filter: grayscale(50%) blur(1px);
  transform: scale(0.98);
}
.project-card-wrap.year-far {
  opacity: 0.1;
  filter: grayscale(80%) blur(2px);
  transform: scale(0.97);
}
/* Hovering any card always brings it fully forward */
.project-card-wrap:hover {
  opacity: 1 !important;
  filter: none !important;
  transform: translateY(-6px) !important;
  transition: opacity 0.2s ease, filter 0.2s ease, transform 0.3s cubic-bezier(0.16,1,0.3,1) !important;
}

/* ─── Card image: always rendered for height consistency ─────── */
.project-card-image {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: linear-gradient(135deg, #E8EFF8, #F5E8EC);
  position: relative;
  flex-shrink: 0;
}

/* Placeholder — shown when no thumbnail and/or archived */
.project-card-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  color: var(--color-text-muted);
  opacity: .4;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Archived: desaturated tint */
.is-archived .project-card-image {
  background: linear-gradient(135deg, #e2e8f0, #edf2f7);
}
.is-archived .project-card-image img {
  filter: grayscale(60%) opacity(0.7);
}

/* Archived badge — top-left corner diagonal ribbon */
.project-card-archived-badge {
  position: absolute;
  top: 16px;
  left: -18px;
  background: rgba(100,116,139,.85);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .25rem 2rem;
  transform: rotate(-45deg);
  transform-origin: center;
  width: 90px;
  text-align: center;
}

/* Recognition ribbon — straight square bar at bottom of image, no diagonal */
.project-card-recog-ribbon {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, rgba(207,11,40,.95), rgba(160,8,30,.9));
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: .45rem .875rem;
  display: flex;
  align-items: center;
  gap: .35rem;
  /* No clip-path — straight rectangular bar */
}
.project-card-recog-ribbon span {
  line-height: 1.3;
}

/* Spacer — pure flex push, nothing inside */
.project-card-spacer {
  flex: 1;
}

/* ─── Project detail page: sidebar overflow fix ──────────────── */
.project-layout {
  overflow: visible;
}

/* ═══════════════════════════════════════════════════════════════
   MEMPHIS / GEOMETRIC DECORATION LAYER
   All purely visual — positioned absolute, pointer-events:none
   Uses ::before / ::after on existing section wrappers
   ═══════════════════════════════════════════════════════════════ */

/* ── Body: second diagonal stripe set at opposite angle ─────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      -45deg,
      transparent 0px, transparent 48px,
      rgba(207,11,40,.012) 48px, rgba(207,11,40,.012) 50px
    );
  pointer-events: none;
  z-index: 0;
}

/* ── Page hero: extra geometric shapes ──────────────────────── */
/* Large half-rhombus bottom-left */
.page-hero::before {
  content: '';
  position: absolute;
  left: -3%; bottom: -20px;
  width: 260px; height: 260px;
  background: rgba(207,11,40,.045);
  clip-path: polygon(0% 50%, 50% 0%, 100% 50%, 50% 100%); /* diamond */
  pointer-events: none;
  z-index: 0;
}

/* Floating thin parallelogram top-left */
.page-hero .page-hero-inner::before {
  content: '';
  position: absolute;
  top: -2rem; left: -1rem;
  width: 120px; height: 8px;
  background: var(--color-accent);
  opacity: .18;
  clip-path: polygon(6% 0%, 100% 0%, 94% 100%, 0% 100%);
  pointer-events: none;
}

/* ── Stats section: floating triangle top-right ─────────────── */
.stats-section {
  position: relative;
  overflow: hidden;
}
.stats-section::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 90px 90px 0;
  border-color: transparent rgba(207,11,40,.07) transparent transparent;
  pointer-events: none;
}
.stats-section::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 60px 0 0 60px;
  border-color: transparent transparent transparent rgba(207,11,40,.05);
  pointer-events: none;
}

/* ── Featured projects section: diagonal band ───────────────── */
.featured-projects-section {
  position: relative;
  overflow: hidden;
}
.featured-projects-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 6px;
  background: linear-gradient(to bottom,
    var(--color-accent) 0%,
    transparent 60%
  );
  clip-path: polygon(0 0, 100% 5%, 100% 95%, 0 100%);
  pointer-events: none;
}

/* ── Projects full page: floating rhombus accents ───────────── */
.projects-section,
.projects-full-grid {
  position: relative;
}

/* ── About teaser: cross-hatch geometric corner ─────────────── */
.about-teaser-section {
  position: relative;
  overflow: hidden;
}
.about-teaser-section::before {
  content: '';
  position: absolute;
  right: 0; top: 0;
  width: 220px; height: 220px;
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent 0px, transparent 10px,
      rgba(207,11,40,.06) 10px, rgba(207,11,40,.06) 12px
    );
  clip-path: polygon(100% 0%, 100% 100%, 0% 0%); /* top-right triangle */
  pointer-events: none;
}
.about-teaser-section::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100px; height: 100px;
  background: rgba(207,11,40,.04);
  clip-path: polygon(0% 100%, 100% 100%, 0% 0%); /* bottom-left triangle */
  pointer-events: none;
}

/* ── CTA banner: extra diagonal shapes ──────────────────────── */
/* Small stacked parallelograms bottom-left */
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  width: 50%;
  left: 28%;
  background: rgba(255,255,255,.06);
  transform: skewX(-14deg);
  pointer-events: none;
}
.cta-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 28%;
  left: 65%;
  background: rgba(255,255,255,.04);
  transform: skewX(-14deg);
  pointer-events: none;
}
/* Third stripe via inner wrapper */
.cta-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  width: 22%;
  left: -8%;
  background: rgba(255,255,255,.03);
  transform: skewX(-14deg);
  pointer-events: none;
  z-index: 0;
}

/* ── Footer: clean solid — no pseudo-element decorations ──────── */
.site-footer {
  position: static;
  overflow: visible;
}

/* ── Single project page: floating diamond watermark ────────── */
.single-project-wrap {
  position: relative;
  overflow: hidden;
}
.single-project-wrap::before {
  content: '';
  position: absolute;
  right: -60px; top: 30%;
  width: 200px; height: 200px;
  background: rgba(207,11,40,.03);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%); /* diamond */
  pointer-events: none;
  z-index: 0;
}

/* ── Section eyebrow: tiny decorative dash before text ──────── */
.section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 18px; height: 2px;
  background: var(--color-accent);
  margin-right: .4rem;
  transform: skewX(-20deg);
  flex-shrink: 0;
}

/* ── Horizontal section divider: clean 1px rule ─────────────── */
.section-divider {
  height: 1px;
  background: var(--color-border);
  margin-block: .5rem;
}

/* ── Project section title: accent slash before label ───────── */
.project-section-title::before {
  content: '';
  display: inline-block;
  width: 12px; height: 14px;
  background: var(--color-accent);
  opacity: .25;
  clip-path: polygon(30% 0%, 100% 0%, 70% 100%, 0% 100%);
  margin-right: .5rem;
  flex-shrink: 0;
}

/* ─── Activities page: projects-style layout ─────────────────── */

/* Full grid — matches projects-full-grid */
.activities-full-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  row-gap: 1.75rem;
}

/* Year anchor spacing — same as projects */
.act-year-anchor {
  grid-column: 1 / -1;
  margin-top: 7rem !important;
}
.act-year-anchor:first-child { margin-top: 0 !important; }

/* Card wrap — fog transitions */
.act-card-wrap {
  transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1),
              filter 0.6s cubic-bezier(0.16,1,0.3,1),
              transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.act-card-wrap.year-current { opacity: 1; filter: none; transform: none; }
.act-card-wrap.year-nearby  { opacity: 0.3; filter: grayscale(50%) blur(1px); transform: scale(0.98); }
.act-card-wrap.year-far     { opacity: 0.1; filter: grayscale(80%) blur(2px); transform: scale(0.97); }
.act-card-wrap:hover {
  opacity: 1 !important; filter: none !important;
  transform: translateY(-4px) !important;
  transition: opacity 0.2s ease, filter 0.2s ease, transform 0.3s cubic-bezier(0.16,1,0.3,1) !important;
}

/* Activity card with photo — image on top */
.activity-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  box-shadow: var(--shadow-xs);
  border-top: 3px solid transparent;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), border-top-color 0.2s;
  cursor: default;
  height: 100%;
}
.activity-card.has-photo { cursor: pointer; }
.activity-card:hover { transform: translateY(-4px); border-top-color: var(--color-accent); }

/* Thumbnail area */
.activity-card-thumb {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: linear-gradient(135deg, #E8EFF8, #F5E8EC);
  flex-shrink: 0;
}
.activity-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}
.activity-card:hover .activity-card-thumb img { transform: scale(1.06); }

/* Expand icon overlay on thumb */
.activity-card-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(207,11,40,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  color: #fff;
}
.activity-card.has-photo:hover .activity-card-thumb-overlay { opacity: 1; }

/* Card body padding */
.activity-card-body {
  padding: 1.25rem 1.375rem 1.375rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Activity ticker — same position as project ticker, offset left so they don't overlap */
#act-year-ticker {
  position: fixed;
  right: 1.75rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: .6rem;
  pointer-events: none;
}
#act-year-ticker.visible { display: flex; }

@media (max-width: 900px) {
  .activities-full-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .activities-full-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   ABOUT PAGE — full redesign v1.13
   ═══════════════════════════════════════════════════════════════ */

/* ── Bio section ─────────────────────────────────────────────── */
.about-bio-section {
  padding-block: clamp(3.5rem, 7vw, 6rem);
  background: var(--color-surface);
  position: relative;
  overflow: hidden;
}
.about-bio-section::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 40%;
  height: 100%;
  background: rgba(207,11,40,.025);
  clip-path: polygon(14% 0%, 100% 0%, 100% 100%, 0% 100%); /* 14% cut, matches other right-flush panels */
  pointer-events: none;
}

.about-bio-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1.5fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  position: relative;
  z-index: 1;
}

/* Identity card — left column */
.about-identity {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.about-identity-jp {
  display: block;
  font-family: var(--font-jp);
  font-size: .875rem;
  letter-spacing: .2em;
  color: var(--color-text-muted);
  margin-bottom: .25rem;
}
.about-identity-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin: 0;
}

/* Role pills */
.about-roles {
  display: flex;
  flex-direction: column;
  gap: .625rem;
}
.about-role-item {
  display: flex;
  align-items: center;
  gap: .875rem;
  padding: .75rem 1rem .75rem 1.125rem;
  background: var(--color-bg-mid);
  border-left: 3px solid var(--color-accent);
  clip-path: polygon(0 0, 100% 0, 97% 100%, 0 100%);
  transition: background .2s, filter .2s;
}
.about-role-item:hover {
  background: var(--color-accent-light);
  filter: drop-shadow(0 2px 8px rgba(207,11,40,.12));
}
.about-role-icon { font-size: 1.125rem; flex-shrink: 0; }
.about-role-label { font-weight: 600; font-size: .9375rem; }

/* Center divider — clean 1px vertical rule */
.about-bio-divider {
  width: 1px;
  background: var(--color-border);
  align-self: stretch;
}

/* Bio text */
.about-bio-text p {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}
.about-bio-text p:last-child { margin-bottom: 0; }

/* ── Skills section ──────────────────────────────────────────── */
.skills-card {
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  padding: clamp(2rem, 3vw, 3rem);
  clip-path: polygon(0 0, 100% 0, 98% 100%, 0 100%);
  filter: drop-shadow(0 2px 12px rgba(0,0,0,.07));
  position: relative;
  overflow: hidden;
}
/* Top-right corner cut */
.skills-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 48px 48px 0;
  border-color: transparent rgba(207,11,40,.13) transparent transparent;
  pointer-events: none;
}
.skills-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }

.skill-group-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
}
.skill-group-icon { font-size: 1rem; line-height: 1; }
.skill-group-title {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0;
}
.skills-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.skill-tag {
  font-size: .875rem;
  font-weight: 500;
  padding: .35rem .875rem;
  background: rgba(0,0,0,.05);
  color: var(--color-text);
  clip-path: polygon(var(--clip-x) 0%, 100% 0%, calc(100% - var(--clip-x)) 100%, 0% 100%);
  transition: background .2s, color .2s;
}
.skill-tag:hover { background: var(--color-accent-light); color: var(--color-accent); }

/* ── Experience cards — defined in section 12, no overrides needed ── */

/* ── Awards ──────────────────────────────────────────────────── */
.awards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.award-card {
  background: var(--color-surface);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
  filter: drop-shadow(0 2px 10px rgba(0,0,0,.07));
  transition: transform .3s cubic-bezier(.16,1,.3,1), filter .3s;
}
.award-card:hover {
  transform: translateY(-5px);
  filter: drop-shadow(0 8px 22px rgba(0,0,0,.11));
}
.award-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 28px 28px 0;
  border-color: transparent rgba(207,11,40,.2) transparent transparent;
  pointer-events: none;
}
.award-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.award-icon { font-size: 1.75rem; line-height: 1; }
.award-year {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--color-accent);
  background: var(--color-accent-light);
  padding: .2rem .625rem;
  clip-path: polygon(var(--clip-x) 0%, 100% 0%, calc(100% - var(--clip-x)) 100%, 0% 100%);
}
.award-title { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; line-height: 1.35; }
.award-quote { font-size: .875rem; color: var(--color-text-muted); line-height: 1.65; font-style: italic; }

/* Left border accent bar on award card */
.award-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
}

/* ── Other Experience ────────────────────────────────────────── */
.other-exp-section { background: transparent; padding-block: clamp(3rem, 6vw, 5rem); }
.other-exp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  margin-top: 2.5rem;
}
.other-exp-card {
  background: var(--color-surface);
  padding: 1.75rem 2rem;
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 97% 100%, 0 100%);
  filter: drop-shadow(0 2px 10px rgba(0,0,0,.07));
}
.other-exp-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 36px 36px 0;
  border-color: transparent rgba(207,11,40,.13) transparent transparent;
  pointer-events: none;
}
.other-exp-card-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.375rem;
  padding-bottom: .875rem;
  border-bottom: 1px solid var(--color-border);
}
.other-exp-card-icon { font-size: 1.375rem; line-height: 1; }
.other-exp-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}
.other-exp-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .625rem;
}
.other-exp-item {
  font-size: .9rem;
  color: var(--color-text-muted);
  padding-left: 1.125rem;
  position: relative;
  line-height: 1.55;
}
.other-exp-item::before {
  content: '';
  position: absolute;
  left: 0; top: 7px;
  width: 6px; height: 6px;
  background: var(--color-accent);
  opacity: .5;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%); /* diamond */
}

/* ── About page hero — left-aligned character profile style ─── */
.about-hero .page-hero-inner { text-align: left; }
.about-hero .page-hero-desc {
  margin-inline: 0;
  font-style: italic;
  font-size: 1.125rem;
  border-left: 3px solid var(--color-accent);
  padding-left: 1rem;
  max-width: 600px;
}

/* Stat strip inside the about hero */
.about-hero-stats {
  display: flex;
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border-md);
}
.about-stat { display: flex; flex-direction: column; gap: .2rem; }
.about-stat-value {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 900;
  color: var(--color-accent);
  line-height: 1;
  letter-spacing: -.02em;
}
.about-stat-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* Identity name block — accent underline bar */
.about-identity-name {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border);
  position: relative;
  margin-bottom: .25rem;
}
.about-identity-name::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 3rem; height: 2px;
  background: var(--color-accent);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .about-bio-grid {
    grid-template-columns: 1fr;
  }
  .about-bio-divider { display: none; }
  .skills-groups { grid-template-columns: 1fr; }
  .experience-card { grid-template-columns: 1fr; }
  .experience-meta { border-right: none; border-bottom: 1px solid var(--color-border); padding: 0.875rem 1.25rem; flex-direction: row; flex-wrap: wrap; gap: 0.4rem 1rem; }
  .experience-body { padding: 1.25rem; }
  .awards-grid { grid-template-columns: repeat(2, 1fr); }
  .other-exp-grid { grid-template-columns: 1fr; }
  .about-hero-stats { flex-wrap: wrap; gap: 1.25rem 2rem; }
}
@media (max-width: 480px) {
  .awards-grid { grid-template-columns: 1fr; }
}

/* ─── Know Page: Story Section ───────────────────────────────── */
.about-story-section {
  padding-block: clamp(3.5rem, 7vw, 6rem);
  position: relative;
  overflow: hidden;
}
.about-story-section::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  pointer-events: none;
}

.about-story-header {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  text-align: center;
}
.about-story-eyebrow { display: block; margin-bottom: .75rem; }

.about-drives-quote {
  font-size: clamp(1.375rem, 2.5vw, 2rem);
  font-weight: 900;
  letter-spacing: -.025em;
  line-height: 1.2;
  color: var(--color-text);
  max-width: 760px;
  margin-inline: auto;
  position: relative;
  padding: 0 1.5rem;
}
.about-drives-quote::before,
.about-drives-quote::after {
  content: '"';
  font-size: 4rem;
  line-height: 0;
  color: var(--color-accent);
  opacity: .2;
  position: absolute;
  font-family: Georgia, serif;
}
.about-drives-quote::before { left: 0; top: .6rem; }
.about-drives-quote::after  { right: 0; bottom: -.2rem; content: '"'; }

.about-story-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.about-story-grid:has(.about-story-photo-wrap:only-child),
.about-story-grid:not(:has(.about-story-photo-wrap)) {
  grid-template-columns: 1fr;
}

.about-drives-text p {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}
.about-drives-text p:last-child { margin-bottom: 0; }

.about-story-editor-content {
  margin-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
}

.about-story-photo {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}
.about-story-photo img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 3/4;
  display: block;
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.12));
}
.about-story-photo::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 28px 28px 0;
  border-color: transparent rgba(207,11,40,.18) transparent transparent;
  pointer-events: none;
}
.about-story-photo-caption {
  font-size: .8125rem;
  color: var(--color-text-muted);
  margin-top: .75rem;
  font-style: italic;
  text-align: center;
}

@media (max-width: 768px) {
  .about-story-grid { grid-template-columns: 1fr; }
  .about-story-photo { position: static; }
  .about-story-photo img { aspect-ratio: 16/9; }
}

/* ─── Know Page: Fun Facts Section ───────────────────────────── */
.about-facts-section {
  padding-block: clamp(3rem, 6vw, 5rem);
  background: var(--color-surface);
  position: relative;
  overflow: hidden;
}
.about-facts-section::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 220px; height: 220px;
  background-image: repeating-linear-gradient(
    45deg,
    transparent 0px, transparent 10px,
    rgba(207,11,40,.05) 10px, rgba(207,11,40,.05) 12px
  );
  clip-path: polygon(100% 0%, 100% 100%, 0% 0%);
  pointer-events: none;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.facts-card {
  background: var(--color-bg);
  padding: 1.5rem;
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.06));
  position: relative;
}
.facts-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 24px 24px 0;
  border-color: transparent rgba(207,11,40,.13) transparent transparent;
  pointer-events: none;
}

.facts-card-header {
  display: flex;
  align-items: center;
  gap: .625rem;
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--color-border);
}
.facts-card-icon { font-size: 1.25rem; line-height: 1; }
.facts-card-title {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0;
}

.facts-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .375rem;
}
.facts-pill {
  font-size: .8rem;
  font-weight: 500;
  padding: .25rem .75rem;
  background: var(--color-surface);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  clip-path: polygon(5% 0%, 100% 0%, 95% 100%, 0% 100%);
  transition: background .15s, color .15s, border-color .15s;
}
.facts-pill:hover {
  background: var(--color-accent-light);
  color: var(--color-accent);
  border-color: var(--color-accent);
}
