/* ==========================================================================
   Personal Brand — 2026
   Design tokens extracted from Figma (light + dark mode)
   ========================================================================== */

:root {
  /* type system: Inter across every role (display and body), variable
     weight axis carries the hierarchy — see per-role font-weight values */
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  /* base surfaces */
  --bg: #191919;
  --bg-raised: #1f1f21;
  --bg-card: #212123;
  --text: #f5f5f7;
  --text-secondary: #9a9aa0;
  --text-tertiary: #838388;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --watermark: rgba(255, 255, 255, 0.035);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);

  /* accents (decorative use: bars, logos, underlines — not text) */
  --blue: #389efe;
  --gold: #f5c518;
  --pink: #ff00b7;
  --purple: #a800e0;
  --red: #ef1436;
  --teal: #17b8c4;
  --orange: #e07800;
  --royal: #2b46e8;
  --leaf-a: #4ade9e;
  --leaf-b: #35b0e0;

  /* text-safe accent variants — tuned to hold >=4.5:1 against
     --bg/--bg-card in this theme; use for link/badge/label text only */
  --teal-text: var(--teal);
  --purple-text: #d147ff;
  --gold-text: var(--gold);
  --orange-text: var(--orange);
  --royal-text: #7082ef;
  --red-text: #f34d67;

  /* per-company badge colors — sampled from each timeline logo's own
     dominant hex, then nudged to hold >=4.5:1 against --bg in this theme */
  --verizon-text: #f73448;
  --simplywell-text: #55b39d;
  --roberthalf-text: #f43658;
  --moneygram-text: #ff2424;

  --maxw: 1000px;
  --pad: clamp(1.0rem, 4vw, 3rem);
  --radius: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

:root[data-theme='light'] {
  --bg: #ffffff;
  --bg-raised: #f6f6f8;
  --bg-card: #ffffff;
  --text: #17171a;
  --text-secondary: #5c5c63;
  --text-tertiary: #74747a;
  --border: rgba(0, 0, 0, 0.09);
  --border-strong: rgba(0, 0, 0, 0.14);
  --watermark: rgba(0, 0, 0, 0.035);
  --shadow: 0 20px 50px rgba(20, 20, 30, 0.08);
  --gold: #d9a800;

  --teal-text: #108089;
  --purple-text: var(--purple);
  --gold-text: #927100;
  --orange-text: #b25f00;
  --royal-text: var(--royal);
  --red-text: #e71031;

  --verizon-text: #e90921;
  --simplywell-text: #39806f;
  --roberthalf-text: #a70925;
  --moneygram-text: #ea0000;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) {
    --bg: #ffffff;
    --bg-raised: #f6f6f8;
    --bg-card: #ffffff;
    --text: #17171a;
    --text-secondary: #5c5c63;
    --text-tertiary: #74747a;
    --border: rgba(0, 0, 0, 0.09);
    --border-strong: rgba(0, 0, 0, 0.14);
    --watermark: rgba(0, 0, 0, 0.035);
    --shadow: 0 20px 50px rgba(20, 20, 30, 0.08);
    --gold: #d9a800;

    --teal-text: #108089;
    --purple-text: var(--purple);
    --gold-text: #927100;
    --orange-text: #b25f00;
    --royal-text: var(--royal);
    --red-text: #e71031;

    --verizon-text: #e90921;
    --simplywell-text: #39806f;
    --roberthalf-text: #a70925;
    --moneygram-text: #ea0000;
  }
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 1.5rem var(--pad);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.4s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--border); }

.nav-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: var(--maxw);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
  position: relative;
  padding-bottom: 2px;
}
.nav-links a.muted { color: var(--text-secondary); font-weight: 600; }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: -3px;
  height: 2px;
  background: var(--blue);
  transition: right 0.3s var(--ease);
}
.nav-links a:hover::after { right: 0; }

.nav-actions { display: flex; align-items: center; gap: 0.6rem; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.icon-btn:hover { background: var(--bg-raised); border-color: var(--border-strong); transform: translateY(-1px); }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn .moon { display: none; }
:root[data-theme='light'] .icon-btn .sun { display: none; }
:root[data-theme='light'] .icon-btn .moon { display: block; }

/* ---------- section shell ---------- */
section { position: relative; padding: clamp(3.5rem, 5vw, 7rem) 0; }

.kicker {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 800; }

/* ---------- hero ---------- */
.hero { display: flex; align-items: center; padding-top: clamp(2rem, 6vw, 4rem); min-height: clamp(360px, 46vh, 480px); overflow: hidden; border-bottom: 1px solid var(--border); }
.hero-copy { position: relative; z-index: 1; max-width: 560px; }
.hero-title {
  font-size: clamp(2.1rem, 5.4vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.06em;
}
.hero-title .highlight {
  position: relative;
  display: inline-block;
  color: var(--blue);
}
.circle-img {
  position: absolute;
  left: -10%;
  top: -38%;
  width: 127%;
  height: auto;
  pointer-events: none;
  user-select: none;
}
.underline-svg {
  display: block;
  width: clamp(220px, 30vw, 340px);
  margin-top: -0.3em;
  margin-left: 0.05em;
}
.underline-svg path { fill: none; stroke: var(--gold); stroke-width: 5; stroke-linecap: round; }

/* personal.html hero: no photo/quote, just centered "coming soon" copy */
.page-personal .hero {
  justify-content: center;
  text-align: center;
  /* half the default hero's min-height/padding-top — this page has no
     photo or quote to fill the space, just the one line of copy */
  min-height: clamp(180px, 23vh, 240px);
  padding-top: clamp(1rem, 3vw, 2rem);
  border-bottom: none;
}
.page-personal .hero-copy { margin: 0 auto; }
.page-personal .hero-title {
  /* var(--text), not a fixed #fff: dark theme's --text is already
     near-white, and this keeps the title legible if someone switches
     to light theme instead of vanishing against a white page */
  color: var(--text);
}
.hero-subtitle {
  margin-top: 0.6rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--blue);
}

/* private_works/index.html only — ~25% shorter hero than the shared
   .page-personal sizing above (personal.html keeps its own height) */
.page-private .hero {
  min-height: clamp(135px, 17vh, 180px);
  padding-top: clamp(0.75rem, 2.25vw, 1.5rem);
}

.request-access-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.1rem;
  border: 1px solid currentColor;
  border-radius: 0.4rem;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.request-access-button:hover,
.request-access-button:focus-visible {
  /* Fixed dark fill (not currentColor) so the white label stays readable
     in dark mode too — currentColor would resolve to this same rule's
     white text color and the button would vanish against its own fill. */
  background: #17171a;
  border-color: #17171a;
  color: #ffffff;
  transform: translateY(-1px);
}

.request-access-button:focus-visible {
  outline: 3px solid rgba(55, 95, 145, 0.45);
  outline-offset: 3px;
}

.request-access-button:active {
  transform: translateY(0);
}

.hero-quote-attr {
  margin-top: 0.8rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--pink);
}
.hero-quote-attr strong { font-weight: 800; }

.arrow-anim {
  display: inline-block;
  width: 52px;
  height: 14px;
  margin-left: 0.4em;
  vertical-align: middle;
  overflow: visible;
  animation: arrow-nudge 1.6s ease-in-out infinite;
}
.arrow-anim .arrow-line,
.arrow-anim .arrow-head {
  fill: none;
  stroke: var(--pink);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@keyframes arrow-nudge {
  0%, 100% { transform: translateX(0); opacity: 1; }
  50% { transform: translateX(8px); opacity: 0.7; }
}
@media (prefers-reduced-motion: reduce) {
  .arrow-anim { animation: none; }
}

.hero-caption {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: clamp(2rem, 6vw, 3.4rem);
  color: var(--text-tertiary);
  font-size: 0.85rem;
  font-style: italic;
}
.hero-caption .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--pink), transparent);
}

/* ---------- stats ---------- */
.stats-title { position: relative; z-index: 1; margin-bottom: 2.2rem; letter-spacing: -0.04em;}
.stats-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.stat-logo { height: 34px; margin-bottom: 0.9rem; display: flex; align-items: center; }
.stat-logo img { height: 100%; width: auto; object-fit: contain; }
.stat-rule { width: 60px; height: 1px; background: var(--border-strong); margin-bottom: 0.9rem; }
.stat-num { font-family: var(--font-display); font-variant-numeric: tabular-nums; font-size: clamp(4.0rem, 4vw, 6.0rem); font-weight: 800; letter-spacing: -0.05em; }
.stat-label { font-weight: 700; margin-top: 0.5rem; font-size: 0.95rem; }
.stat-desc { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.5; margin-top: 2rem; }

/* ---------- watermark images (DESIGN. / BE BOLD.) ---------- */
.watermark-img {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  filter: invert(1);
}
:root[data-theme='light'] .watermark-img { filter: none; }
.watermark-design {
  right: -6%;
  bottom: -1%;
  /*width: clamp(280px, 34vw, 560px);*/
  height: auto;
}
.watermark-bebold {
  left: -6%;
  bottom: -1%;
  width: clamp(458px, 75vw, 803px);
  height: auto;
 
}
.watermark-profile-pic {
  bottom: -1%;
  right: 0.5%;
  width: clamp(360px, 44vw, 640px);
  height: auto;
}
.watermark-img.watermark-profile-pic { filter: none; }
.watermark-work {
  right: -6%;
  bottom: -1%;
  width: clamp(458px, 75vw, 803px);
  height: auto;
}
.watermark-disrupt {
  left: -6%;
  bottom: -1%;
  height: auto;
}

/* ---------- about ---------- */
.about-grid { position: relative; z-index: 1; max-width: 100%; }
.about-lead { max-width: 90%; font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--text); margin-top: 1.1rem; line-height: 1.5; font-weight: 500; }
.about-body { max-width: 100%; color: var(--text-secondary); font-size: 0.98rem; line-height: 1.75; margin-top: 1.4rem; }

/* ---------- timeline ---------- */
.timeline-title { position: relative; z-index: 1; margin-bottom: clamp(2rem, 5vw, 3.5rem); letter-spacing: -0.04em;}
.timeline-item {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(2rem, 4vw, 3rem) 0;
  /*border-top: 1px solid var(--border);*/
}
.timeline-item:last-child, first-child { border-bottom: 0px solid var(--border); }
.timeline-item.reverse .tl-logo { order: 2; }
.timeline-item.reverse .tl-copy { order: 1; }

.tl-logo { display: flex; align-items: center; justify-content: center; }
.tl-logo img { width: auto; height: 180px; object-fit: contain; }

.tl-badge { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.7rem; }
.tl-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.tl-company { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; }
.tl-dates { font-variant-numeric: tabular-nums; font-size: 0.8rem; color: var(--text-tertiary); font-style: normal; white-space: nowrap; }
.tl-role { font-weight: 700; margin-top: 0.3rem; font-size: 1.02rem; }
.tl-bullets { margin: 0.8rem 0 0; padding: 0; list-style: none; color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }
.tl-bullets li { position: relative; padding-left: 1.1rem; margin-bottom: 0.35rem; }
.tl-bullets li::before {
  content: '';
  position: absolute; left: 0; top: 0.55em;
  width: 5px; height: 5px; border-radius: 50%;
  background: currentColor; opacity: 0.5;
}

/* ---------- logo cloud ---------- */
/* To add a logo: drop the image in assets/otherLogos/, then add one
   entry to the LOGOS array at the top of js/main.js. That's it — the
   marquee, the duplication for the seamless loop, and the fade-out
   edges are all handled automatically. */
.logos { padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.logos-kicker {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 2rem;
}
.logos-marquee-frame {
  position: relative;
  overflow: hidden;
  /* Edge fade used to be a -webkit-mask-image gradient on this frame.
     iOS WebKit (Safari AND Chrome-for-iOS — both are WebKit under the
     hood) has a long-standing bug where masking a container freezes a
     transform-animated descendant on its first frame instead of
     compositing every tick: https://bugs.webkit.org/show_bug.cgi?id=207019
     Two gradient overlays fade the edges without masking, sidestepping
     the bug entirely. */
}
.logos-marquee-frame::before,
.logos-marquee-frame::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(2rem, 8vw, 5rem);
  z-index: 1;
  pointer-events: none;
}
.logos-marquee-frame::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg) 0%, transparent 100%);
}
.logos-marquee-frame::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg) 0%, transparent 100%);
}
.logos-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: clamp(2rem, 4vw, 3.5rem);
  animation: logos-marquee var(--marquee-duration, 32s) linear infinite;
  /* force its own GPU compositing layer so iOS WebKit keeps repainting
     every animation frame instead of occasionally sticking on one */
  will-change: transform;
  -webkit-transform: translateZ(0);
          transform: translateZ(0);
}
/* scoped to real pointer/hover devices only — touchscreens (iOS
   included) can apply a "sticky" :hover after a tap that never clears
   until the user taps elsewhere, which would leave the marquee stuck
   paused after the first touch */
@media (hover: hover) and (pointer: fine) {
  .logos-marquee-frame:hover .logos-track { animation-play-state: paused; }
}
.logo-chip {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 88px;
  padding: 0 1.6rem;
  background: #ffffff;
  /* fixed light-gray border (not the theme --border token): the chip
     stays solid white in both themes, so it needs a border that's
     visible against white in light mode and still reads intentionally
     against the dark page in dark mode — a theme-reactive border would
     go white-on-white and vanish here. */
  border: 1px solid #e4e4e8;
  border-radius: 10px;
}
.logo-chip img { max-height: 44px; width: auto; object-fit: contain; display: block; }

/* art tiles (Off The Grid) reuse the .logos-marquee-frame/.logos-track
   mechanics above, but the tile itself is the photo — no white card,
   since art shouldn't get matted like a logo mark. */
.art-tile {
  flex: 0 0 auto;
  display: block;
  height: 220px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-raised);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.art-tile:hover { transform: translateY(-4px); }
.art-tile img { height: 100%; width: auto; object-fit: cover; display: block; }

@keyframes logos-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .logos-track { animation: none; }
}

/* ---------- gallery (personal.html) ----------
   A bento-style grid: fixed-height rows, tiles span 1-2 columns/rows
   depending on the size class main.js assigns each image, and dense
   packing fills any gaps left by the taller/wider tiles. Every tile
   opens the shared #lightbox on click. */
.gallery { padding-top: clamp(1rem, 4vw, 2rem); padding-bottom: clamp(3rem, 7vw, 5rem); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 150px;
  grid-auto-flow: dense;
  gap: 1rem;
}
.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-raised);
  cursor: pointer;
  padding: 0;
  border: none;
  /* accent ring lives on box-shadow (inset), not border, so it doesn't
     shift layout and still respects the tile's border-radius; color is
     --text so it's white in dark mode, near-black in light mode */
  box-shadow: 0 0 0 0 var(--text) inset;
  transition: box-shadow 0.3s var(--ease);
}
.gallery-item:hover { box-shadow: 0 0 0 3px var(--text) inset; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }
.gallery-item.big { grid-column: span 2; grid-row: span 2; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 11, 0.94);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.active { opacity: 1; }
.lightbox-frame { max-width: 90vw; max-height: 85vh; }
.lightbox-frame img {
  display: block;
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  /* per-image fade, independent of the backdrop's own opacity
     transition above — main.js toggles .loaded on open and on every
     prev/next so both actions share this same 250ms fade-in */
  opacity: 0;
  transition: opacity 250ms var(--ease);
}
.lightbox-frame img.loaded { opacity: 1; }
.lightbox-close,
.lightbox-arrow {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.lightbox-close:hover,
.lightbox-arrow:hover { background: rgba(255, 255, 255, 0.18); }
.lightbox-close {
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
}
.lightbox-close svg { width: 18px; height: 18px; }
.lightbox-arrow {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
}
.lightbox-arrow:hover { transform: translateY(-50%) scale(1.06); }
.lightbox-arrow svg { width: 22px; height: 22px; }
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }
.lightbox-counter {
  margin-top: 0.9rem;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- patents ---------- */
.patents-title { position: relative; z-index: 1; margin-bottom: 2.2rem; letter-spacing: -0.04em;}
.patents-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.patent-card {
  position: relative;
  /*background: var(--bg-card);*/
  padding: 1.5rem 1.5rem 0 0;
  /*padding: 1.4rem 1.3rem 1.5rem;*/
  overflow: hidden;
  /*transition: background-color 0.25s var(--ease);*/
}
/*.patent-card:hover { background: color-mix(in srgb, var(--bg-card) 100%, var(--text) 6%); }*/
.patent-eyebrow { font-size: 0.72rem; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.patent-title { font-weight: 800; font-size: 1.08rem; margin-top: 0.45rem; line-height: 1.3; }
.patent-desc { color: var(--text-secondary); font-size: 0.86rem; line-height: 1.6; margin-top: 0.7rem; }
.patent-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.patent-link svg { width: 13px; height: 13px; transition: transform 0.25s var(--ease); }
.patent-link:hover svg { transform: translateX(3px); }

/* ---------- private works: deck list ---------- */
/* Each .deck-row carries --duo-a / --duo-b (set inline per role, sampled
   from that company's real logo colors). The thumbnail image underneath
   is desaturated via filter, then tinted by the gradient using
   mix-blend-mode: color — so dropping in a real screenshot at
   private_works/assets/deck-refs/<role>.jpg automatically inherits the
   same duotone treatment; nothing else needs to change. */
.deck-list { padding-top: clamp(1rem, 4vw, 2rem); }

.deck-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: stretch;
  padding: clamp(1.6rem, 3vw, 2.2rem) 0;
  border-top: 1px solid var(--border);
}
/* outer edges of the list stay borderless — only the dividers between
   rows remain. :first-of-type, not :first-child: the section's actual
   first child is the <h2> title, so :first-child never matches a row. */
.deck-row:first-of-type { border-top: 0; }

.deck-thumb {
  position: relative;
  border-radius: 0.9rem;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--bg-card);
}
.deck-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
 /* filter: grayscale(1) contrast(1.12) brightness(0.94);*/
}
.deck-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  /*background: linear-gradient(135deg, var(--duo-a), var(--duo-b));*/
  mix-blend-mode: color;
}
.deck-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  /*background: linear-gradient(200deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.4));*/
  mix-blend-mode: multiply;
}
.deck-logo-chip {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 0.75rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}
.deck-logo-chip img { height: 18px; width: auto; object-fit: contain; }

.deck-info { display: flex; flex-direction: column; justify-content: center; }
.deck-badge { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.55rem; }
.deck-company { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; }
.deck-role-title { font-weight: 700; margin-top: 0.3rem; font-size: 1rem; color: var(--text-secondary); }
.deck-dates { font-variant-numeric: tabular-nums; font-size: 0.8rem; color: var(--text-tertiary); margin-top: 0.35rem; }

.deck-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  margin-top: 1.2rem;
  padding: 0.65rem 1rem;
  border: 1.5px solid currentColor;
  border-radius: 0.4rem;
  font-weight: 700;
  font-size: 0.85rem;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}
.deck-cta svg { width: 14px; height: 14px; transition: transform 0.25s var(--ease); }
.deck-cta:hover, .deck-cta:focus-visible, .deck-cta:active {
  /* Fixed dark fill + white text — not currentColor. Every role accent
     here (verizon/simplywell/roberthalf/moneygram -text) is a bright,
     saturated color that fails contrast against white when used as the
     fill itself (see the Request Access button fix), so hover/focus/
     click always invert to the same safe dark/white pair instead. */
  background: #17171a;
  border-color: #17171a;
  color: #ffffff;
  transform: translateY(-1px);
}
.deck-cta:hover svg, .deck-cta:active svg { transform: translateX(3px); }

/* ---------- footer ---------- */
.footer { text-align: center; padding-top: clamp(2rem, 5vw, 3.5rem); padding-bottom: clamp(3rem, 8vw, 5rem);  letter-spacing: -0.04em;}
.footer-rule { height: 1px; background: var(--border); margin: 1.6rem auto 2.2rem; max-width: 1000px; }
.social-row { display: flex; justify-content: center; gap: 0.9rem; margin-bottom: 1.8rem; }
.social-btn {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--text);
  border-radius: 8px;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.social-btn svg { width: 20px; height: 20px; }
.social-btn:hover { background: var(--text); color: var(--bg); transform: translateY(-3px); }

.qr-box {
  width: 88px; height: 88px;
  margin: 0 auto 1.2rem;
  border-radius: 6px;
  overflow: hidden;
}
.qr-box img { width: 100%; height: 100%; object-fit: contain; }

.copyright { font-size: 0.78rem; color: var(--text-tertiary); }

/* ---------- reveal animation base state (GSAP controls the rest) ---------- */
.reveal { opacity: 0; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  h2 { text-align: center; letter-spacing: -0.05em; }
  .about-lead { text-align: center; margin-left: auto; margin-right: auto; }
  .tl-role { text-align: center; }
  .tl-head { flex-direction: column; align-items: center; text-align: center; gap: 0.3rem; }
  .patent-eyebrow, .patent-title { text-align: center; }
  .arrow-anim { display: none; }
  .hero { flex-direction: column; align-items: stretch; min-height: 0; padding-bottom: 0rem; }
  .hero-copy { max-width: 100%; order: 1; text-align: center; }
  .watermark-profile-pic {
    position: static;
    order: 2;
    align-self: center;
    transform: none;
    width: min(100%, 520px);
    margin-top: -1rem;
  }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 2.2rem; }
  .timeline-item, .timeline-item.reverse { grid-template-columns: 1fr; text-align: left; padding: 48px 0; }
  .timeline-item .tl-logo, .timeline-item.reverse .tl-logo { order: 1; justify-content: center; margin-bottom: 0.7rem; }
  .timeline-item .tl-copy, .timeline-item.reverse .tl-copy { order: 2; }
  .tl-badge { text-align: center; }
  .patents-grid { grid-template-columns: repeat(2, 1fr); }
  .deck-row { grid-template-columns: 1fr; }
  .deck-info { text-align: center; align-items: center; }
  /* .deck-cta sets its own align-self: flex-start for desktop rows, which
     overrides the parent's align-items: center above — pin it back to
     center here so the button follows the rest of the centered copy */
  .deck-cta { align-self: center; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; }
  .gallery-item.big { grid-column: span 2; grid-row: span 2; }
  .lightbox-arrow { width: 44px; height: 44px; }
  .lightbox-prev { left: 0.6rem; }
  .lightbox-next { right: 0.6rem; }
  .lightbox-close { top: 0.8rem; right: 0.8rem; }
  /* a QR code only earns its space when someone's viewing on a second
     screen to scan with their phone — on a phone-sized viewport itself
     it's dead weight, so hide it below the desktop breakpoint */
  .qr-box { display: none; }
}

@media (max-width: 560px) {
  .nav-links { gap: 1.1rem; }
  .nav-links span.sep { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem 1.2rem; }
  .patents-grid { grid-template-columns: 1fr; }
  .hero-caption { flex-wrap: wrap; }
  section { padding: 3rem 0; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; gap: 0.8rem; }
  .gallery-item.wide, .gallery-item.big { grid-column: span 1; }
}

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