/* ==========================================================================
   Ricky Navarro — Product Designer Portfolio
   Strava-profile-inspired: dark canvas, big stat tiles, activity-style cards.
   ========================================================================== */

:root {
  --bg: #0a0a0b;
  --bg-alt: #101012;
  --bg-card: #17171a;
  --bg-card-hover: #1d1d21;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #f3f2ed;
  --text-dim: #a5a4a0;
  --text-faint: #6f6e6c;

  --lime: #fc4c02;
  --lime-soft: #ff8a50;
  --lime-deep: #3a1400;
  --lime-deep-2: #2a0e00;

  --radius-s: 0px;
  --radius-m: 0px;
  --radius-l: 0px;

  --font-serif: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1180px;

  --header-h: 60px;
}

/* ---------------------------------- reset --------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body, h1, h2, h3, h4, h5, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
sup { font-size: 0.55em; top: -0.6em; }

body {
  background: var(--bg-card);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01" 1;
  overflow-x: hidden;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

@media (min-width: 720px) {
  .wrap { padding-inline: 40px; }
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--lime);
  color: #0a0a0b;
  padding: 10px 16px;
  z-index: 999;
}
.skip-link:focus { left: 0; }

/* --------------------------------- type ----------------------------------- */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime);
  font-weight: 600;
}

h1, h2, h3, .brand { font-family: var(--font-serif); font-weight: 500; letter-spacing: -0.01em; }

h2 {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  line-height: 1.08;
  margin-top: 14px;
  color: var(--text);
}

.accent-text { color: var(--lime); font-style: italic; }

/* ------------------------------- page loader ------------------------------- */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background-color: var(--bg);
  background-image: linear-gradient(rgba(252, 76, 2, 0.16), rgba(252, 76, 2, 0.16));
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}
.page-loader.is-loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.page-loader-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(252, 76, 2, 0.55);
}
.page-loader-count {
  font-family: var(--font-serif);
  font-size: clamp(3.4rem, 16vw, 11rem);
  font-weight: 600;
  line-height: 1;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
}

/* -------------------------------- progress -------------------------------- */
.progress-rail {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 1000;
  background: transparent;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--lime), var(--lime-soft));
  transform-origin: left;
}

/* --------------------------------- header ---------------------------------- */
.site-header {
  position: sticky;
  top: 12px;
  z-index: 900;
  height: var(--header-h);
  margin: 12px 6px 0;
  border-radius: 999px;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 45%), rgba(23, 23, 26, 0.36);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: background 0.4s var(--ease), height 0.3s var(--ease);
}
@media (min-width: 720px) {
  .site-header { margin: 16px 22px 0; }
}
.site-header.scrolled {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 45%), rgba(23, 23, 26, 0.58);
}

.site-header .wrap {
  max-width: none;
  padding-inline: 18px;
}
@media (min-width: 720px) {
  .site-header .wrap { padding-inline: 18px; }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.brand-badge {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 32px;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand-badge-shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.brand-badge-text {
  position: relative;
  z-index: 1;
  padding-bottom: 2px;
}

.brand-text {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-size: 15px;
}
.brand-text strong {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--text);
}
.brand-sub {
  color: var(--text-faint);
  font-size: 13.5px;
  font-weight: 400;
}
@media (max-width: 520px) {
  .brand-sub { display: none; }
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.primary-nav {
  position: relative;
  display: none;
  align-items: center;
  gap: 0;
}
@media (min-width: 900px) {
  .primary-nav { display: flex; }
}
.primary-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding-inline: 16px;
  box-sizing: border-box;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  transition: color 0.25s ease, background 0.25s ease;
  z-index: 2;
}
.primary-nav a.active {
  color: var(--lime);
  background: rgba(255, 255, 255, 0.14);
}

.nav-indicator { display: none; }
.nav-indicator-legacy {
  position: absolute;
  top: 3px;
  height: calc(100% - 6px);
  border-radius: 0;
  background: var(--lime);
  z-index: 1;
  transition: transform 0.45s var(--ease), width 0.45s var(--ease), opacity 0.3s ease;
  opacity: 0;
  left: 0;
  width: 0;
}
.nav-indicator.visible { opacity: 1; }

.header-cta.btn { display: none; border-radius: 10px; }
@media (min-width: 900px) { .header-cta.btn { display: inline-flex; } }
.header-cta.btn-primary {
  height: 36px;
  padding: 0 18px;
  box-sizing: border-box;
  border-radius: 999px;
  background: var(--lime);
  border: none;
}
.header-cta.btn-primary:hover {
  box-shadow: 0 10px 30px -8px rgba(252, 76, 2, 0.55);
}

/* mobile menu toggle */
.menu-toggle {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
}
@media (min-width: 900px) { .menu-toggle { display: none; } }
.menu-toggle-icon {
  position: absolute;
  width: 20px;
  height: 20px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.menu-toggle-dots {
  fill: var(--lime);
  opacity: 1;
  transform: scale(1) rotate(0deg);
}
.menu-toggle-close {
  fill: none;
  stroke: var(--lime);
  stroke-width: 2.2;
  stroke-linecap: round;
  opacity: 0;
  transform: scale(0.6) rotate(-45deg);
}
.menu-toggle[aria-expanded="true"] .menu-toggle-dots { opacity: 0; transform: scale(0.6) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-close { opacity: 1; transform: scale(1) rotate(0deg); }

.mobile-nav {
  position: fixed;
  top: calc(var(--header-h) + 24px);
  left: 6px;
  right: 6px;
  max-height: calc(100vh - var(--header-h) - 48px);
  overflow-y: auto;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 45%), rgba(23, 23, 26, 0.86);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  z-index: 800;
  display: flex;
  flex-direction: column;
  padding: 12px 24px 28px;
  gap: 4px;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
@media (min-width: 720px) {
  .mobile-nav { left: 22px; right: 22px; }
}
.mobile-nav.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-nav a {
  padding: 16px 4px;
  font-size: 22px;
  font-family: var(--font-serif);
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.mobile-nav a.btn {
  padding: 13px 26px;
  font-size: 14.5px;
  font-family: var(--font-sans);
  border-bottom: none;
  color: var(--text);
}
.mobile-nav .btn { margin-top: 20px; align-self: flex-start; border-radius: 999px; }
@media (min-width: 900px) { .mobile-nav { display: none; } }

/* --------------------------------- buttons --------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 0;
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--lime);
  color: var(--text);
  box-shadow: 0 0 0 0 rgba(252, 76, 2, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -8px rgba(252, 76, 2, 0.55);
}
.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--lime);
  color: var(--lime);
  transform: translateY(-2px);
}
.btn-small { padding: 9px 18px; font-size: 13px; }
.btn-large { padding: 18px 38px; font-size: 16px; }

/* --------------------------------- hero ------------------------------------ */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  padding-block: 64px;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 90%);
}

.hero-glow {
  position: absolute;
  top: -220px;
  left: 50%;
  width: 900px;
  height: 700px;
  background: radial-gradient(closest-side, rgba(252, 76, 2, 0.16), transparent 72%);
  transform: translateX(-50%);
  animation: drift 16s ease-in-out infinite alternate;
}
@keyframes drift {
  0% { transform: translate(-54%, 0) scale(1); }
  100% { transform: translate(-46%, 40px) scale(1.08); }
}

.hero-3d {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  mix-blend-mode: screen;
  opacity: 0.8;
  mask-image: radial-gradient(ellipse 620px 400px at 34% 48%, transparent 30%, black 78%);
  -webkit-mask-image: radial-gradient(ellipse 620px 400px at 34% 48%, transparent 30%, black 78%);
}
@media (max-width: 760px) {
  .hero-3d {
    opacity: 0.6;
    mask-image: radial-gradient(ellipse 70% 34% at 50% 42%, transparent 30%, black 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 34% at 50% 42%, transparent 30%, black 80%);
  }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.hero-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 36px;
  z-index: 2;
  transform: translateX(-50%);
  width: 22px;
  height: 36px;
  border: 1.5px solid var(--border-strong);
  border-radius: 0;
  display: flex;
  justify-content: center;
  padding-top: 7px;
}
.hero-scroll-cue span {
  width: 3px;
  height: 8px;
  border-radius: 0;
  background: var(--lime);
  animation: scroll-cue 1.8s ease-in-out infinite;
}
@keyframes scroll-cue {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 0; transform: translateY(10px); }
}
@media (max-width: 720px) {
  .hero-scroll-cue { display: none; }
}

.hero-title {
  font-size: clamp(3rem, 9vw, 6rem);
  line-height: 0.98;
  margin-top: 22px;
  color: var(--text);
}

.hero-lede {
  margin-top: 26px;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.65;
  color: var(--text-dim);
  max-width: 520px;
  margin-inline: auto;
}

.hero-actions {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* ------------------------------- reveal anim -------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--delay, 0s);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------------------- stat type -------------------------------- */
.stat-number {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--lime);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.4;
}

/* ---------------------------------- section ---------------------------------- */
.section { padding-block: 96px; position: relative; }
#work { background: var(--bg); padding-top: 0; padding-bottom: 0; }
#work .wrap { max-width: none; padding-inline: 24px; }
@media (min-width: 720px) {
  #work .wrap { padding-inline: 40px; }
}
#experience { background: var(--bg-alt); padding-top: 0; }
#contact { background: var(--bg-alt); }

.section-head { max-width: 700px; }
.section-lede {
  margin-top: 20px;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-dim);
}

#experience > .wrap { max-width: none; padding-inline: 0; }

/* ----------------------------------- bio hero ----------------------------------- */
.bio-hero { margin-bottom: 24px; }

.bio-card {
  background: var(--bg-card-hover);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 24px;
}
@media (min-width: 720px) { .bio-card { padding: 28px 32px; } }
.bio-card-in-apps {
  background: none;
  border: none;
  padding: 0;
}
.apps-row {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 24px;
}
@media (min-width: 900px) {
  .apps-row { grid-template-columns: 1fr 1fr; }
}

.bio-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 20px;
}

.bio-avatar {
  position: relative;
  flex-shrink: 0;
  width: 76px;
  height: 82px;
}
.bio-avatar-shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bio-head-text { flex: 1 1 220px; min-width: 0; }
.bio-name {
  font-size: 1.5rem;
  color: var(--text);
}
.bio-meta {
  margin-top: 0;
  font-size: 14.5px;
  color: var(--text-faint);
}
.bio-meta strong { color: var(--text); font-weight: 600; font-size: 15px; }

.bio-tag { flex-shrink: 0; }

.bio-copy {
  margin-top: 20px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 720px;
}
.bio-copy strong { color: var(--text); font-weight: 600; }
.bio-copy:last-of-type { padding-bottom: 26px; }
@media (max-width: 899px) {
  .bio-copy:last-of-type { padding-bottom: 0; }
}

.bio-headline-band {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 26px 24px 20px;
}
@media (min-width: 720px) {
  .bio-headline-band { padding-inline: 40px; }
}

.bio-headline {
  margin: 0;
  max-width: 760px;
  font-size: 1.25rem;
  line-height: 1.2;
}

/* -------------------------------- elevation chart -------------------------------- */
.elevation-card {
  background: var(--bg-card);
  border: none;
  border-radius: var(--radius-m);
  margin-top: 0;
  margin-bottom: 0;
  overflow: hidden;
}

.elevation-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding-inline: 6px;
}
@media (min-width: 720px) {
  .elevation-stats { padding-inline: 22px; }
}
@media (min-width: 780px) {
  .elevation-stats { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 779px) {
  .elevation-stats > div:nth-child(5) { display: none; }
}
.elevation-stats > div {
  position: relative;
  background: transparent;
  padding: 22px 18px;
}
.elevation-stats > div:nth-child(even)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  bottom: 22px;
  width: 1px;
  background: var(--border);
}
@media (min-width: 780px) {
  .elevation-stats > div:nth-child(even)::before { content: none; }
  .elevation-stats > div:not(:first-child)::before {
    content: "";
    position: absolute;
    left: 0;
    top: 22px;
    bottom: 22px;
    width: 1px;
    background: var(--border);
  }
}
.elevation-stats span {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.elevation-stats small {
  display: block;
  margin-top: 8px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-faint);
  line-height: 1.4;
}

.elevation-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 26px 24px 20px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
@media (min-width: 720px) {
  .elevation-chart-head { padding-inline: 40px; }
}
.elevation-chart-head .side-card-label { margin-bottom: 0; padding-bottom: 0; border-bottom: none; color: var(--text-faint); }
.elevation-status {
  font-size: 12px;
  color: var(--text-faint);
}
.elevation-status em { font-style: normal; color: var(--lime); font-weight: 600; }

.elevation-chart {
  position: relative;
  padding: 64px 24px 24px;
}
@media (min-width: 720px) {
  .elevation-chart { padding-inline: 40px; }
}
.elevation-chart svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.elev-highlight { fill: rgba(252, 76, 2, 0.07); }
.elev-baseline { stroke: var(--border); stroke-width: 1.5; }
.elev-tick { stroke: var(--border); stroke-width: 1.5; }
.elev-tick-current { stroke: rgba(252, 76, 2, 0.35); }
.elev-area { fill: url(#elevFill); }
.elev-line {
  fill: none;
  stroke: var(--lime);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke-dashoffset 1.8s var(--ease);
}
.elev-dot {
  fill: var(--bg-card);
  stroke: var(--text-faint);
  stroke-width: 2.5;
}
.elev-dot-current {
  fill: var(--lime);
  stroke: var(--bg-card);
  stroke-width: 3;
}
.elev-dot-ping {
  fill: none;
  stroke: var(--lime);
  stroke-width: 1.5;
  transform-origin: 1150px 50px;
  animation: dot-ping 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.elev-labels {
  position: absolute;
  top: 28px;
  left: 24px;
  right: 24px;
  height: 34px;
  pointer-events: none;
}
@media (min-width: 720px) {
  .elev-labels { left: 40px; right: 40px; }
}
.elev-labels > div {
  position: absolute;
  top: 0;
  left: 4.17%;
  transform: translateX(-50%);
  text-align: center;
  white-space: nowrap;
}
.elev-labels > div:first-child { left: 0; transform: none; text-align: left; }
.elev-labels > div.current { left: auto; right: 0; transform: none; text-align: right; }
.elev-labels strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.elev-labels div.current strong { color: var(--lime); }
.elev-labels small {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  color: var(--text-faint);
}
@media (max-width: 640px) {
  .elev-labels strong { font-size: 11px; }
  .elev-labels small { display: none; }
}

/* -------------------------------- experience segments -------------------------------- */
.experience-columns {
}

.segments {
  margin-top: 0;
  padding-inline: 24px;
}
@media (min-width: 720px) {
  .segments { padding-inline: 40px; }
}

.segments-head {
  padding-block: 16px;
  padding-inline: 24px;
  margin-inline: -24px;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 720px) {
  .segments-head { padding-inline: 40px; margin-inline: -40px; }
}
.segments-head span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.segment-row {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  padding-block: 26px;
  border-bottom: 1px solid var(--border);
}
.segment-row:last-child { border-bottom: none; }

.segment-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(252, 76, 2, 0.4);
  background: rgba(252, 76, 2, 0.1);
  color: var(--lime);
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 600;
  border-radius: 50%;
}

.segment-body {
  flex: 1 1 380px;
  min-width: 0;
}
.segment-body h3 {
  font-size: 1.25rem;
  line-height: 1.2;
}
.segment-body p {
  margin-top: 8px;
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 62ch;
}
.segment-meta {
  display: block;
  margin-top: 10px;
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-faint);
}
.meta-break { display: none; }

.segment-tags {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  margin-left: auto;
}
.segment-tag {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-faint);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 5px 12px;
  white-space: nowrap;
}
.segment-tag-current {
  color: var(--lime);
  border-color: rgba(252, 76, 2, 0.4);
  background: rgba(252, 76, 2, 0.1);
}

@media (max-width: 680px) {
  .segment-row {
    display: grid;
    grid-template-columns: 32px 1fr;
    align-items: center;
    column-gap: 14px;
    row-gap: 16px;
  }
  .segment-num { grid-column: 1; grid-row: 1; }
  .segment-body { display: contents; }
  .segment-body h3 { grid-column: 2; grid-row: 1; }
  .segment-body p { grid-column: 1 / -1; grid-row: 2; margin-top: 0; }
  .segment-meta { grid-column: 1 / -1; grid-row: 3; margin-top: 0; }
  .segment-tags { display: none; }
  .meta-sep { display: none; }
  .meta-break { display: block; }
  .bio-meta .meta-sep { display: inline; }
  .ride-card-stats .meta-sep { display: inline; }
}

.competencies {
  margin-top: 40px;
  padding-inline: 24px;
}
@media (min-width: 720px) {
  .competencies { padding-inline: 40px; }
}

.competencies-head {
  padding-block: 16px;
  padding-inline: 24px;
  margin-inline: -24px;
  margin-bottom: 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
@media (min-width: 720px) {
  .competencies-head { padding-inline: 40px; margin-inline: -40px; }
}
.competencies-head span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.apps-grid-head {
  display: block;
  margin-top: 41px;
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}
@media (max-width: 899px) {
  .apps-grid-col { padding-bottom: 26px; }
}

.competency-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 640px) {
  .competency-grid { grid-template-columns: repeat(2, 1fr); }
}

.competency-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  background: var(--bg-card-hover);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.competency-dot {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
}

.competency-card span:last-child {
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.35;
}

.timeline-footnote {
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-faint);
  font-style: italic;
}

/* ----------------------------------- projects ----------------------------------- */
.work .section-head { margin-bottom: 8px; }

.project { padding-block: 72px; border-top: 1px solid var(--border); }
.project-dark { background: var(--bg-alt); }

.project-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
}
.project-head-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.project-head-title-row {
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.project-head-text h3 {
  font-size: 1.25rem;
  max-width: 680px;
  line-height: 1.2;
}
@media (max-width: 680px) {
  .project-head-title-row {
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: space-between;
  }
  .project-head-title-row h3 { flex: 1; min-width: 0; }
  .project-head-title-row .segment-tag { flex-shrink: 0; }
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 40px;
  row-gap: 48px;
  margin-bottom: 48px;
}
@media (min-width: 960px) {
  .project-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}

.project-left {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.project-grid .project-visual {
  margin-inline: 0;
  max-width: none;
  padding-inline: 0;
  margin-bottom: 0;
}

.project-copy { max-width: 700px; }

.project-copy h4 {
  font-family: var(--font-sans);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  font-weight: 600;
  margin-top: 44px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.project-copy h4:first-child { margin-top: 0; }
.project-copy p { color: var(--text-dim); line-height: 1.7; font-size: 15.5px; }

.insight-list { display: flex; flex-direction: column; gap: 14px; }
.insight-list li {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-dim);
  padding-left: 18px;
  position: relative;
}
.insight-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
}
.insight-list strong { color: var(--text); font-weight: 600; }

.side-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 28px;
}
.side-card-dark { background: #0d0d0f; }

.side-card-label {
  display: inline-block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  font-weight: 600;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

/* ------------------------------ design timeline ------------------------------ */
.tl-head {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 960px) {
  .tl-head { grid-template-columns: 1fr 1fr; gap: 40px; }
}
.tl-head .side-card-label { display: block; max-width: 700px; padding-bottom: 12px; margin-bottom: 0; }
.tl-head + .wrap .tl-carousel { margin-top: 0; padding-top: 12px; }

.tl-body {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 960px) {
  .tl-body { grid-template-columns: 1fr 1fr; gap: 40px; }
}

.tl-carousel {
  position: relative;
  max-width: 700px;
  margin-top: 28px;
  margin-bottom: 12px;
  padding-block: 10px 4px;
}
.project-left > .tl-carousel {
  margin-top: -28px;
  margin-bottom: 0;
  padding-block: 0;
}

.tl-duration {
  max-width: 700px;
}
.tl-body-col {
  max-width: 700px;
}
.tl-duration .side-card-label { display: block; margin-bottom: 20px; }
.tl-duration-bar {
  display: flex;
  gap: 12px;
  height: 44px;
}
.tl-duration-group {
  display: flex;
  gap: 2px;
}
.tl-duration-tick {
  flex: 1;
  border-radius: 2px;
}
.tl-duration-tick-research { background: rgba(252, 76, 2, 0.4); }
.tl-duration-tick-design { background: rgba(252, 76, 2, 0.6); }
.tl-duration-tick-approval { background: rgba(252, 76, 2, 0.8); }
.tl-duration-tick-development { background: var(--lime); }
.tl-duration-labels {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}
.tl-duration-labels > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.tl-duration-labels strong {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text);
}
.tl-duration-labels span {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.tl-track {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.tl-item {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.tl-when {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}

.tl-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg-alt);
  border-radius: 4px;
  overflow: hidden;
}
.project-dark .tl-card {
  background: var(--bg-card-hover);
}
.tl-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.tl-card-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(252, 76, 2, 0.4);
  background: rgba(252, 76, 2, 0.1);
  border-radius: 50%;
  color: var(--lime);
  font-family: var(--font-serif);
  font-size: 12px;
  font-weight: 600;
}
.tl-card-title {
  flex: 1;
  font-family: var(--font-sans);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--text);
}
.tl-card-body {
  padding: 16px 18px 18px 56px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
}
@media (max-width: 680px) {
  .tl-card-body { padding-left: 28px; }
}
.tl-card-body p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-dim);
  padding-left: 16px;
  position: relative;
}
.tl-card-body p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
}

.project-designs { margin-bottom: 28px; }
.project-designs h4 {
  font-family: var(--font-sans);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  font-weight: 600;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.designs-copy { max-width: 720px; color: var(--text-dim); line-height: 1.7; font-size: 15.5px; }

.project-visual {
  margin-inline: auto;
  max-width: 1240px;
  padding-inline: 24px;
  margin-bottom: 64px;
}
@media (min-width: 720px) { .project-visual { padding-inline: 40px; } }

.project-visual img {
  width: 100%;
  border-radius: var(--radius-l);
  border: 1px solid var(--border);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,0.6);
}
.project-visual-plain img { border: none; box-shadow: none; }
.project-visual-photo img { border-radius: 16px; }

/* ------------------------------- results / achievement tiles ------------------------------- */
.results-block {
  margin-top: 8px;
  padding-top: 8px;
}
.tl-body-single .results-block { margin-top: 0; padding-top: 0; }
.tl-body-single .result-tile:first-child { padding-left: 0; }
@media (min-width: 720px) {
  .tl-body-single .result-tile:nth-child(3) { padding-left: 0; }
}
@media (min-width: 720px) {
  .tl-body-single .results-grid { grid-template-columns: repeat(2, 1fr); }
  .tl-body-single .result-tile:nth-child(3) { border-left: none; }
  .tl-body-single .result-tile:nth-child(3)::before { display: none; }
  .tl-body-single .result-tile::before { transform: none; }
}
.tl-body-col .side-card-label {
  display: block;
}
.results-block h4 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin-top: 8px;
  margin-bottom: 28px;
  max-width: 560px;
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--border);
}
.results-grid-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) {
  .results-grid { grid-template-columns: repeat(3, 1fr); }
  .results-grid-stack { grid-template-columns: repeat(2, 1fr); }
  .results-grid-stack .result-tile-text {
    grid-column: 1 / -1;
    border-left: none;
    border-top: 1px solid var(--border);
  }
}

.result-tile {
  background: transparent;
  color: var(--text);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  min-height: 168px;
  border-bottom: 1px solid var(--border);
  transition: background 0.4s ease;
}
@media (max-width: 680px) {
  .result-tile { justify-content: flex-start; }
  .tl-body-single .result-tile { padding-left: 0; min-height: 0; padding-top: 20px; padding-bottom: 20px; }
}
@media (min-width: 720px) {
  .result-tile { border-left: 1px solid var(--border); }
  .result-tile:first-child { border-left: none; }
}
.result-tile:hover { background: var(--bg-card); }
.tl-body-col .results-grid { border-top: none; }
.tl-body-col .result-tile {
  border-top: none;
  border-bottom: none;
}
.tl-body-col .result-tile:hover { background: transparent; }
.tl-body-col .results-grid-stack .result-tile:first-child { padding-left: 0; padding-right: 0; }
@media (min-width: 720px) {
  .tl-body-col .result-tile:not(:first-child) {
    border-left: none;
    position: relative;
  }
  .tl-body-col .result-tile:not(:first-child)::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border);
    transform: skewX(-6deg);
  }
}

.result-number-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.result-spark-wrap {
  position: relative;
  flex-shrink: 0;
}
@media (max-width: 680px) {
  .result-spark-wrap { display: none; }
}
.result-spark {
  display: block;
  width: 70px;
  height: 52px;
  overflow: visible;
}
.result-spark-line {
  fill: none;
  stroke: var(--lime);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.result-spark-dot {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px rgba(252, 76, 2, 0.2);
}

.result-pie-wrap { flex-shrink: 0; }
.result-pie {
  width: 52px;
  height: 52px;
  transform: rotate(-90deg);
}
.result-pie-track {
  fill: none;
  stroke: rgba(252, 76, 2, 0.25);
  stroke-width: 4;
}
.result-pie-fill {
  fill: none;
  stroke: var(--lime);
  stroke-width: 4;
  stroke-linecap: butt;
  stroke-dasharray: 81.68;
  stroke-dashoffset: 81.68;
  transition: stroke-dashoffset 1.4s var(--ease);
}
.results-block.in-view .result-pie-fill {
  stroke-dashoffset: 8.17;
}

.result-number {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(2.9rem, 5.4vw, 4rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.result-text {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.8vw, 1.9rem);
  line-height: 1.25;
  color: var(--lime);
}
.result-label {
  font-size: 12.5px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.01em;
  color: var(--text-dim);
}

.results-note {
  margin-top: 16px;
  margin-bottom: 28px;
  max-width: 780px;
  color: var(--text-dim);
  line-height: 1.7;
  font-size: 15px;
}

.results-block-dark .results-note { color: var(--text-dim); }

/* ---------------------------------- learnings ---------------------------------- */
.learnings { margin-top: 44px; }
.learnings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  margin-top: 20px;
}
.learnings-grid h5 {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
}
.learnings-grid ul { display: flex; flex-direction: column; gap: 10px; }
.learnings-grid li {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-dim);
  padding-left: 16px;
  position: relative;
}
.learnings-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
}

/* -------------------------------------- rides -------------------------------------- */
.rides-head { max-width: 560px; }
.rides-head h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-top: 12px;
}

.rides-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 600px) {
  .rides-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .rides-grid { grid-template-columns: repeat(4, 1fr); }
}

.ride-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.ride-card:hover { border-color: rgba(252, 76, 2, 0.5); transform: translateY(-2px); }

.ride-card-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-card-hover);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.ride-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.ride-card:hover .ride-card-photo img { transform: scale(1.05); }
.ride-card-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0) 55%);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.ride-card:hover .ride-card-photo::after { opacity: 1; }

.ride-card-view {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lime);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.ride-card:hover .ride-card-view { opacity: 1; transform: translateY(0); }

.ride-card-body { padding: 16px 18px 20px; }
.ride-card-body h4 { font-size: 15.5px; color: var(--text); }
.ride-card-location {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-faint);
}
.ride-card-stats {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
}

/* ------------------------------------ culture ------------------------------------ */
.culture-grid {
  margin-top: 56px;
  margin-bottom: 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}
@media (min-width: 700px) {
  .culture-grid { grid-template-columns: 1fr 1fr; }
}
.culture-grid-full { grid-column: 1 / -1; margin-top: 0; margin-bottom: 0; }

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

.culture-card {
  background: var(--bg-card);
  padding: 34px 30px;
}

.culture-icon {
  display: inline-flex;
  color: var(--lime);
  margin-bottom: 16px;
}
.culture-icon svg { width: 22px; height: 22px; display: block; }
.culture-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.culture-card p { color: var(--text-dim); font-size: 14.5px; line-height: 1.65; }

/* ------------------------------------ contact ------------------------------------ */
.contact { text-align: center; padding-block: 140px; }
.contact-inner { display: flex; flex-direction: column; align-items: center; }
.contact-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.05;
  margin-top: 20px;
}
.contact-lede {
  margin-top: 22px;
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 460px;
}
.contact-actions { margin-top: 40px; }

/* ------------------------------------- footer ------------------------------------- */
#main { overflow-x: hidden; }
.site-footer { border-top: 1px solid var(--border); padding-block: 28px; overflow-x: hidden; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-faint);
}
.footer-links { display: flex; align-items: center; gap: 24px; }
.footer-links a { transition: color 0.3s ease; }
.footer-links a:hover { color: var(--lime); }

/* ------------------------------------- misc ------------------------------------- */
::selection { background: var(--lime); color: #0a0a0b; }

/* ------------------------------------ kudos toast ------------------------------------ */
.kudos-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  background: linear-gradient(rgba(255,255,255,0.06), rgba(255,255,255,0)) , rgba(23,23,26,0.86);
  border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 24px 50px -24px rgba(0,0,0,0.65);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0s linear 0.35s;
}
.kudos-toast.visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0s linear 0s;
}
.kudos-toast svg { flex-shrink: 0; }
@media (max-width: 480px) {
  .kudos-toast { font-size: 13px; padding: 12px 18px; max-width: calc(100vw - 32px); white-space: normal; }
}

