:root {
  --background: #080b10;
  --background-soft: #0d121a;
  --surface: #111923;
  --surface-light: #151f2c;

  --text-primary: #f4f7fa;
  --text-secondary: #a8b6c8;
  --text-muted: #8494aa;

  --accent: #3b82f6;
  --accent-light: #60a5fa;
  --accent-dark: #1d4ed8;

  --success: #22c55e;
  --warning: #f59e0b;

  --border: rgba(148, 163, 184, 0.15);
  --border-strong: rgba(96, 165, 250, 0.35);

  --header-height: 76px;
  --page-width: 1180px;

  --radius-small: 12px;
  --radius-medium: 18px;
  --radius-large: 28px;

  --heading-font: "Space Grotesk", sans-serif;
  --body-font: "Inter", sans-serif;
  --mono-font: "JetBrains Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;

  background:
    radial-gradient(
      circle at 15% 5%,
      rgba(59, 130, 246, 0.08),
      transparent 28rem
    ),
    var(--background);

  color: var(--text-primary);

  font-family: var(--body-font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

svg {
  width: 1.25rem;
  height: 1.25rem;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 9999;

  padding: 0.7rem 1rem;
  border-radius: var(--radius-small);

  background: var(--accent);
  color: white;

  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;

  height: var(--header-height);

  background: rgba(8, 11, 16, 0.68);
  border-bottom: 1px solid transparent;

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  transition:
    background 220ms ease,
    border-color 220ms ease;
}

.site-header.scrolled {
  background: rgba(8, 11, 16, 0.92);
  border-color: var(--border);
}

.nav-container {
  width: min(calc(100% - 3rem), var(--page-width));
  height: 100%;
  margin-inline: auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  position: relative;
  z-index: 1002;

  font-family: var(--heading-font);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand::after {
  content: "";

  position: absolute;
  right: -0.45rem;
  bottom: 0.12rem;

  width: 0.28rem;
  height: 0.28rem;
  border-radius: 50%;

  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
}

.primary-navigation {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  position: relative;
  padding-block: 0.6rem;

  color: var(--text-secondary);

  font-size: 0.84rem;
  font-weight: 500;

  transition: color 180ms ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link::after {
  content: "";

  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  height: 2px;
  border-radius: 999px;

  background: var(--accent);

  transform: scaleX(0);
  transform-origin: right;

  transition: transform 220ms ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-socials {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.header-socials a {
  width: 2.35rem;
  height: 2.35rem;

  display: grid;
  place-items: center;

  border: 1px solid transparent;
  border-radius: 50%;

  color: var(--text-secondary);

  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.header-socials a:hover {
  color: var(--accent-light);
  border-color: var(--border-strong);
  background: rgba(59, 130, 246, 0.08);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  position: relative;
  z-index: 1002;

  width: 2.75rem;
  height: 2.75rem;

  border: 0;
  background: transparent;
  color: var(--text-primary);

  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  left: 0.55rem;

  width: 1.65rem;
  height: 1px;

  background: currentColor;

  transition:
    transform 220ms ease,
    top 220ms ease;
}

.menu-toggle span:first-child {
  top: 1rem;
}

.menu-toggle span:last-child {
  top: 1.65rem;
}

.menu-toggle.open span:first-child {
  top: 1.35rem;
  transform: rotate(45deg);
}

.menu-toggle.open span:last-child {
  top: 1.35rem;
  transform: rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;

  display: flex;
  align-items: center;

  padding:
    calc(var(--header-height) + 4rem)
    0
    5rem;

  border-bottom: 1px solid var(--border);
}

.network-canvas {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  opacity: 0.58;
  pointer-events: none;
}

.hero::before {
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(8, 11, 16, 0.98) 0%,
      rgba(8, 11, 16, 0.88) 37%,
      rgba(8, 11, 16, 0.22) 72%,
      rgba(8, 11, 16, 0.65) 100%
    );

  pointer-events: none;
}

.hero-glow {
  position: absolute;

  width: 32rem;
  height: 32rem;
  border-radius: 50%;

  filter: blur(110px);
  opacity: 0.16;
  pointer-events: none;
}

.hero-glow-one {
  top: 12%;
  right: 10%;
  background: var(--accent);
}

.hero-glow-two {
  bottom: -18rem;
  left: 20%;
  background: var(--accent-dark);
}

.hero-container {
  position: relative;
  z-index: 2;

  width: min(calc(100% - 3rem), var(--page-width));
  margin-inline: auto;

  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  align-items: center;
  gap: 4.5rem;
}

.hero-content {
  max-width: 42rem;

  animation: content-entry 800ms ease both;
}

.eyebrow {
  margin: 0 0 1rem;

  color: var(--accent-light);

  font-family: var(--mono-font);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-eyebrow {
  margin-bottom: 1.2rem;
}

.hero-name {
  margin: 0;

  display: flex;
  flex-direction: column;
  row-gap: 0.065em;

  font-family: var(--heading-font);
  font-size: clamp(4.2rem, 8vw, 7.4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.81;
  text-transform: uppercase;
}

.accent-text {
  color: var(--accent);
}

.hero-role {
  margin: 2rem 0 0.8rem;

  color: var(--text-primary);

  font-family: var(--heading-font);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 500;
}

.hero-introduction {
  max-width: 39rem;
  margin: 0;

  color: var(--text-secondary);

  font-size: 0.98rem;
  line-height: 1.78;
}

.hero-actions {
  margin-top: 2rem;

  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.button {
  min-height: 3.15rem;
  padding: 0.75rem 1.25rem;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;

  border: 1px solid transparent;
  border-radius: var(--radius-small);

  font-size: 0.86rem;
  font-weight: 600;

  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button-primary {
  background: var(--accent);
  color: white;

  box-shadow: 0 14px 36px rgba(59, 130, 246, 0.22);
}

.button-primary:hover {
  background: var(--accent-light);
  box-shadow: 0 18px 42px rgba(59, 130, 246, 0.3);
}

.button-secondary {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-primary);
}

.button-secondary:hover {
  border-color: var(--border-strong);
  background: rgba(59, 130, 246, 0.07);
}

.hero-status {
  margin-top: 1.65rem;

  display: flex;
  align-items: center;
  gap: 0.65rem;

  color: var(--text-muted);

  font-family: var(--mono-font);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

.status-dot {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;

  background: var(--success);

  box-shadow:
    0 0 0 5px rgba(34, 197, 94, 0.08),
    0 0 15px rgba(34, 197, 94, 0.5);
}

.hero-visual {
  position: relative;
  z-index: 3;

  animation: portrait-entry 900ms 120ms ease both;
}

.portrait-frame {
  position: relative;

  width: 100%;
  max-width: 31rem;
  min-height: 39rem;
  margin-left: auto;

  border-radius: 18rem 18rem 2rem 2rem;
  overflow: visible;

  background: var(--surface);

  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(96, 165, 250, 0.05);

  isolation: isolate;
}

.portrait-frame::after {
  content: "";

  position: absolute;
  inset: 0;
  z-index: 2;

  border: 1px solid var(--border);
  border-radius: inherit;

  box-shadow: inset 0 0 50px rgba(8, 11, 16, 0.16);

  pointer-events: none;
}

.portrait-grid {
  position: absolute;
  inset: 0;
  z-index: -1;

  background-image:
    linear-gradient(rgba(96, 165, 250, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, 0.05) 1px, transparent 1px);

  background-size: 44px 44px;

  border-radius: inherit;
  overflow: hidden;

  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.hero-portrait {
  position: absolute;
  inset: 0;
  z-index: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center 12%;

  border-radius: inherit;

  filter: contrast(1.04) saturate(0.88);
}

.portrait-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;

  border-radius: inherit;

  background:
    linear-gradient(
      to bottom,
      transparent 48%,
      rgba(8, 11, 16, 0.92) 100%
    ),
    linear-gradient(
      90deg,
      rgba(8, 11, 16, 0.45),
      transparent 35%,
      transparent 70%,
      rgba(8, 11, 16, 0.25)
    );

  pointer-events: none;
}

.floating-label {
  position: absolute;
  z-index: 3;

  padding: 0.8rem 1rem;

  display: flex;
  flex-direction: column;

  border: 1px solid var(--border);
  border-radius: var(--radius-small);

  background: rgba(8, 11, 16, 0.9);

  box-shadow:
    0 20px 55px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(96, 165, 250, 0.08);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.floating-label span {
  color: var(--accent-light);

  font-family: var(--mono-font);
  font-size: 0.61rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.floating-label strong {
  margin-top: 0.15rem;

  color: var(--text-primary);

  font-size: 0.78rem;
  font-weight: 600;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.8);
}

.floating-label-top {
  top: 16%;
  left: 0;
}

.floating-label-bottom {
  right: 0;
  bottom: 14%;
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  z-index: 5;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;

  color: var(--text-muted);

  font-family: var(--mono-font);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;

  transform: translateX(-50%);
}

.scroll-indicator svg {
  animation: scroll-bounce 1.8s ease-in-out infinite;
}

.content-section {
  position: relative;

  padding: 8rem 0;

  border-bottom: 1px solid var(--border);
}

.alternate-section {
  background:
    linear-gradient(
      180deg,
      rgba(13, 18, 26, 0.65),
      rgba(13, 18, 26, 0.25)
    );
}

.section-container {
  width: min(calc(100% - 3rem), var(--page-width));
  margin-inline: auto;
}

.section-container h2 {
  max-width: 47rem;
  margin: 0;

  font-family: var(--heading-font);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.section-preview {
  max-width: 47rem;
  margin: 1.5rem 0 0;

  color: var(--text-secondary);

  font-size: 1rem;
  line-height: 1.8;
}


.about-section {
  padding: 4.75rem 0 4.5rem;
}

.about-section .section-container > h2 {
  max-width: 60rem;

  font-size: clamp(2.35rem, 4vw, 3.3rem);
  line-height: 1.02;
}

.about-layout {
  margin-top: 2.25rem;

  display: grid;
  grid-template-columns: minmax(18rem, 20.5rem) minmax(0, 1fr);
  align-items: start;
  gap: clamp(2.25rem, 4vw, 3.5rem);
}

.about-visual {
  position: relative;
  width: 100%;
  max-width: 20.5rem;
}

.about-visual::before {
  content: "";

  position: absolute;
  inset: 14% -10% -8% 18%;
  z-index: -1;

  border-radius: 50%;
  background: rgba(59, 130, 246, 0.14);
  filter: blur(62px);
}

.about-image-frame {
  position: relative;
  height: 27.5rem;
  overflow: hidden;
  isolation: isolate;

  border: 1px solid var(--border);
  border-radius: var(--radius-large);

  background:
    linear-gradient(145deg, rgba(21, 31, 44, 0.92), rgba(8, 11, 16, 0.98));

  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.015);
}

.about-image-frame::after {
  content: "";

  position: absolute;
  inset: 0;
  z-index: 4;

  border: 1px solid rgba(96, 165, 250, 0.12);
  border-radius: inherit;

  pointer-events: none;
}

.about-image-grid {
  position: absolute;
  inset: 0;
  z-index: 0;

  background-image:
    linear-gradient(rgba(96, 165, 250, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, 0.04) 1px, transparent 1px);
  background-size: 38px 38px;

  opacity: 0.5;
  mask-image: linear-gradient(to bottom, black, transparent 84%);
}

.about-portrait {
  position: absolute;
  inset: 0;
  z-index: 1;

  width: 100%;
  height: 100%;
  max-width: none;

  object-fit: cover;
  object-position: 50% 37%;

  filter: contrast(1.03) saturate(0.8) brightness(0.9);
}

.about-image-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;

  background:
    linear-gradient(
      to bottom,
      rgba(8, 11, 16, 0.02) 42%,
      rgba(8, 11, 16, 0.22) 67%,
      rgba(8, 11, 16, 0.93) 100%
    ),
    linear-gradient(
      90deg,
      rgba(8, 11, 16, 0.08),
      transparent 52%,
      rgba(8, 11, 16, 0.14)
    );

  pointer-events: none;
}

.about-image-marker {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;

  padding: 0.42rem 0.58rem;

  display: flex;
  align-items: center;
  gap: 0.42rem;

  color: #dbe7f5;
  background: rgba(8, 11, 16, 0.76);
  border: 1px solid rgba(96, 165, 250, 0.24);
  border-radius: 999px;
  box-shadow: 0 0.55rem 1.5rem rgba(0, 0, 0, 0.26);

  font-family: var(--mono-font);
  font-size: 0.54rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.about-image-marker span:first-child {
  color: var(--accent-light);
}

.about-image-caption {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 3;

  padding-top: 0.8rem;

  display: flex;
  flex-direction: column;
  gap: 0.15rem;

  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.about-image-caption span {
  color: var(--accent-light);

  font-family: var(--mono-font);
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.about-image-caption strong {
  color: var(--text-primary);

  font-family: var(--heading-font);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.about-content {
  min-width: 0;
  padding-top: 0.15rem;
}

.about-introduction {
  max-width: 51rem;
  margin: 0;

  color: var(--text-secondary);

  font-size: clamp(0.96rem, 1.35vw, 1.08rem);
  line-height: 1.7;
}

.about-introduction-lead {
  color: var(--accent-light);
  font-weight: 650;
}

.about-principles {
  margin-top: 1.65rem;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.about-principle {
  min-height: 8.15rem;
  padding: 0.9rem;

  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 0.55rem;

  border: 1px solid var(--border);
  border-radius: var(--radius-medium);

  background:
    linear-gradient(
      145deg,
      rgba(21, 31, 44, 0.72),
      rgba(13, 18, 26, 0.45)
    );

  transition:
    transform 200ms ease,
    border-color 200ms ease,
    background 200ms ease;
}

.about-principle:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background:
    linear-gradient(
      145deg,
      rgba(21, 31, 44, 0.94),
      rgba(13, 18, 26, 0.68)
    );
}

.about-principle-number {
  color: var(--accent-light);

  font-family: var(--mono-font);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

.about-principle h3 {
  margin: 0;

  font-family: var(--heading-font);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.about-principle p {
  margin: 0;

  color: var(--text-secondary);

  font-size: 0.73rem;
  line-height: 1.55;
}

.about-interests {
  margin-top: 0.9rem;
  padding: 0.75rem 0;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;

  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-interests-label {
  color: var(--text-primary);

  font-family: var(--heading-font);
  font-size: 0.82rem;
  font-weight: 600;
}

.about-interests p {
  margin: 0.12rem 0 0;

  color: var(--text-muted);

  font-size: 0.66rem;
}

.interest-list {
  margin: 0;
  padding: 0;

  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;

  list-style: none;
}

.interest-list li {
  padding: 0.34rem 0.55rem;

  border: 1px solid var(--border);
  border-radius: 999px;

  background: rgba(59, 130, 246, 0.045);
  color: var(--text-secondary);

  font-family: var(--mono-font);
  font-size: 0.54rem;
  letter-spacing: 0.03em;
}


/* Interactive professional experience timeline */
.experience-section {
  padding: 5.25rem 0 5.5rem;
  overflow: hidden;
}

.experience-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(20rem, 0.68fr);
  align-items: end;
  gap: clamp(2rem, 5vw, 5rem);
}

.experience-heading h2 {
  max-width: 46rem;
  font-size: clamp(2.35rem, 4vw, 3.35rem);
  line-height: 1.03;
}

.experience-introduction {
  max-width: 31rem;
  margin: 0 0 0.2rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.75;
}

.experience-layout {
  margin-top: 2.6rem;
  display: grid;
  grid-template-columns: minmax(18rem, 0.72fr) minmax(0, 1.35fr);
  align-items: stretch;
  gap: 1.25rem;
}

.experience-timeline {
  position: relative;
  padding: 0.35rem 0;
  display: grid;
  align-content: start;
  gap: 0.55rem;
}

.experience-timeline::before {
  content: "";
  position: absolute;
  top: 1.8rem;
  bottom: 1.8rem;
  left: 1.17rem;
  width: 1px;
  background: linear-gradient(
    to bottom,
    rgba(96, 165, 250, 0.48),
    rgba(96, 165, 250, 0.12)
  );
}

.experience-tab {
  position: relative;
  width: 100%;
  min-height: 7.15rem;
  padding: 1rem 1rem 1rem 3rem;
  display: block;
  border: 1px solid transparent;
  border-radius: var(--radius-medium);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 200ms ease,
    background 200ms ease,
    transform 200ms ease,
    box-shadow 200ms ease;
}

.experience-tab:hover {
  transform: translateX(0.3rem);
  border-color: rgba(148, 163, 184, 0.12);
  background: rgba(17, 25, 35, 0.52);
}

.experience-tab:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
}

.experience-tab.is-active {
  border-color: rgba(96, 165, 250, 0.28);
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.12), transparent 70%),
    rgba(17, 25, 35, 0.86);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.012);
}

.experience-node {
  position: absolute;
  top: 1.35rem;
  left: 0.77rem;
  z-index: 2;
  width: 0.82rem;
  height: 0.82rem;
  border: 2px solid #334155;
  border-radius: 50%;
  background: var(--background-soft);
  box-shadow: 0 0 0 0.3rem var(--background-soft);
  transition:
    border-color 200ms ease,
    background 200ms ease,
    box-shadow 200ms ease;
}

.experience-tab.placement .experience-node {
  border-color: rgba(34, 211, 238, 0.74);
  background: rgba(34, 211, 238, 0.2);
}

.experience-tab.is-active .experience-node {
  border-color: var(--accent-light);
  background: var(--accent);
  box-shadow:
    0 0 0 0.3rem var(--background-soft),
    0 0 1.25rem rgba(59, 130, 246, 0.65);
}

.experience-tab-content {
  display: flex;
  flex-direction: column;
}

.experience-tab-topline {
  min-height: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.experience-year {
  color: var(--accent-light);
  font-family: var(--mono-font);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.experience-tab-status,
.experience-panel-label {
  width: fit-content;
  padding: 0.27rem 0.45rem;
  border: 1px solid rgba(96, 165, 250, 0.19);
  border-radius: 999px;
  color: #bfdbfe;
  background: rgba(59, 130, 246, 0.08);
  font-family: var(--mono-font);
  font-size: 0.48rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.1;
  text-transform: uppercase;
}

.experience-tab-status.placement,
.experience-panel-label.placement {
  color: #a5f3fc;
  border-color: rgba(34, 211, 238, 0.2);
  background: rgba(34, 211, 238, 0.07);
}

.experience-tab-status.completed,
.experience-panel-label.completed {
  color: var(--text-muted);
  border-color: var(--border);
  background: rgba(100, 116, 139, 0.06);
}

.experience-tab strong {
  margin-top: 0.55rem;
  color: var(--text-primary);
  font-family: var(--heading-font);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.experience-tab-content > span:last-child {
  margin-top: 0.1rem;
  color: var(--text-secondary);
  font-size: 0.7rem;
}

.experience-details {
  min-width: 0;
  min-height: 25.25rem;
}

.experience-panel {
  min-height: 100%;
  padding: clamp(1.35rem, 2.7vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  background:
    linear-gradient(145deg, rgba(21, 31, 44, 0.9), rgba(13, 18, 26, 0.75));
  box-shadow:
    0 28px 68px rgba(0, 0, 0, 0.27),
    inset 0 0 0 1px rgba(255, 255, 255, 0.012);
}

.experience-panel.is-active {
  animation: experience-panel-entry 320ms ease both;
}

.experience-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.experience-panel-label {
  display: inline-flex;
}

.experience-panel h3 {
  margin: 0.8rem 0 0;
  font-family: var(--heading-font);
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.experience-company {
  margin: 0.3rem 0 0;
  color: var(--accent-light);
  font-family: var(--heading-font);
  font-size: 0.98rem;
  font-weight: 600;
}

.experience-meta {
  padding-top: 0.15rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  color: var(--text-muted);
  font-family: var(--mono-font);
  font-size: 0.55rem;
  letter-spacing: 0.035em;
  text-align: right;
  text-transform: uppercase;
}

.experience-summary {
  max-width: 46rem;
  margin: 1.35rem 0 0;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.72;
}

.experience-context-note {
  margin-top: 1.15rem;
  padding: 0.72rem 0.85rem;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  border: 1px solid rgba(96, 165, 250, 0.17);
  border-radius: var(--radius-small);
  background: rgba(59, 130, 246, 0.055);
  color: #b7c6d9;
  font-size: 0.7rem;
  line-height: 1.55;
}

.experience-context-note span {
  flex: 0 0 auto;
  width: 0.42rem;
  height: 0.42rem;
  margin-top: 0.33rem;
  border-radius: 50%;
  background: var(--accent-light);
  box-shadow: 0 0 0.8rem rgba(96, 165, 250, 0.6);
}

.experience-focus {
  margin-top: 1.3rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border);
}

.experience-focus-label {
  margin: 0;
  color: var(--text-primary);
  font-family: var(--mono-font);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.experience-responsibilities {
  margin: 0.9rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 1.1rem;
  list-style: none;
}

.experience-responsibilities li {
  position: relative;
  padding-left: 1rem;
  color: var(--text-secondary);
  font-size: 0.7rem;
  line-height: 1.55;
}

.experience-responsibilities li::before {
  content: "";
  position: absolute;
  top: 0.48rem;
  left: 0;
  width: 0.34rem;
  height: 0.34rem;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 0.65rem rgba(59, 130, 246, 0.4);
}

.experience-responsibilities.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@keyframes experience-panel-entry {
  from {
    opacity: 0;
    transform: translateY(0.45rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Education progression and certification */
.education-section {
  position: relative;
  padding: 5.25rem 0 5.5rem;
  overflow: hidden;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  background:
    radial-gradient(
      circle at 82% 42%,
      rgba(59, 130, 246, 0.065),
      transparent 25rem
    ),
    var(--background);
}

.education-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(20rem, 0.68fr);
  align-items: end;
  gap: clamp(2rem, 5vw, 5rem);
}

.education-heading h2 {
  max-width: 48rem;
  font-size: clamp(2.35rem, 4vw, 3.35rem);
  line-height: 1.03;
}

.education-introduction {
  max-width: 31rem;
  margin: 0 0 0.2rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.75;
}

.education-layout {
  margin-top: 2.6rem;
  display: grid;
  grid-template-columns: minmax(0, 2.6fr) minmax(15rem, 0.78fr);
  align-items: stretch;
  gap: 1.25rem;
}

.education-path {
  position: relative;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  list-style: none;
}

.education-path::before {
  content: "";
  position: absolute;
  top: 1.45rem;
  left: 1.35rem;
  right: 1.35rem;
  z-index: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    rgba(96, 165, 250, 0.1),
    rgba(96, 165, 250, 0.58),
    rgba(96, 165, 250, 0.28)
  );
}

.education-stage {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 16.75rem;
  padding: 2.75rem 1.15rem 1.1rem;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  background:
    linear-gradient(145deg, rgba(17, 25, 35, 0.9), rgba(13, 18, 26, 0.76));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
  transition:
    border-color 200ms ease,
    transform 200ms ease,
    box-shadow 200ms ease;
}

.education-stage:hover {
  transform: translateY(-0.25rem);
  border-color: rgba(96, 165, 250, 0.25);
  box-shadow: 0 23px 48px rgba(0, 0, 0, 0.25);
}

.education-stage.current {
  border-color: rgba(96, 165, 250, 0.38);
  background:
    linear-gradient(145deg, rgba(59, 130, 246, 0.16), transparent 70%),
    linear-gradient(145deg, rgba(17, 25, 35, 0.96), rgba(13, 18, 26, 0.82));
}

.education-node {
  position: absolute;
  top: 1.08rem;
  left: 1.15rem;
  width: 0.78rem;
  height: 0.78rem;
  border: 2px solid #475569;
  border-radius: 50%;
  background: var(--background-soft);
  box-shadow: 0 0 0 0.28rem var(--background);
}

.education-stage.current .education-node {
  border-color: var(--accent-light);
  background: var(--accent);
  box-shadow:
    0 0 0 0.28rem var(--background),
    0 0 1.2rem rgba(59, 130, 246, 0.65);
}

.education-stage-topline {
  min-height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.education-step {
  color: var(--accent-light);
  font-family: var(--mono-font);
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.education-status {
  padding: 0.27rem 0.43rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  background: rgba(100, 116, 139, 0.06);
  font-family: var(--mono-font);
  font-size: 0.46rem;
  font-weight: 600;
  letter-spacing: 0.045em;
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
}

.education-status.current {
  color: #bfdbfe;
  border-color: rgba(96, 165, 250, 0.25);
  background: rgba(59, 130, 246, 0.11);
}

.education-stage h3 {
  margin: 1.25rem 0 0;
  color: var(--text-primary);
  font-family: var(--heading-font);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.education-course {
  margin: 0.36rem 0 0;
  color: #bdc9d8;
  font-size: 0.72rem;
  line-height: 1.5;
}

.education-institution {
  margin: 0.48rem 0 0;
  color: var(--accent-light);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.45;
}

.education-stage-footer {
  margin-top: auto;
  padding-top: 1rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--mono-font);
  font-size: 0.51rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.education-stage-footer span:last-child {
  text-align: right;
}

.certification-card {
  position: relative;
  min-height: 16.75rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: var(--radius-large);
  background:
    radial-gradient(circle at 90% 5%, rgba(34, 211, 238, 0.14), transparent 8rem),
    linear-gradient(145deg, rgba(17, 25, 35, 0.96), rgba(13, 18, 26, 0.78));
  box-shadow:
    0 24px 55px rgba(0, 0, 0, 0.24),
    inset 0 0 0 1px rgba(255, 255, 255, 0.012);
}

.certification-visual {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 4.2rem;
  height: 3.2rem;
  opacity: 0.62;
}

.certification-visual::before,
.certification-visual::after {
  content: "";
  position: absolute;
  height: 1px;
  background: rgba(96, 165, 250, 0.46);
  transform-origin: left;
}

.certification-visual::before {
  top: 0.85rem;
  left: 0.6rem;
  width: 2.8rem;
  transform: rotate(18deg);
}

.certification-visual::after {
  top: 2.15rem;
  left: 0.55rem;
  width: 2.9rem;
  transform: rotate(-15deg);
}

.certification-visual span {
  position: absolute;
  width: 0.38rem;
  height: 0.38rem;
  border: 1px solid var(--accent-light);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 0 0.65rem rgba(59, 130, 246, 0.58);
}

.certification-visual span:nth-child(1) { top: 0.55rem; left: 0.35rem; }
.certification-visual span:nth-child(2) { top: 1.2rem; right: 0.45rem; }
.certification-visual span:nth-child(3) { bottom: 0.45rem; left: 0.3rem; }
.certification-visual span:nth-child(4) { bottom: 0.2rem; right: 0.55rem; }

.certification-label {
  display: inline-flex;
  width: fit-content;
  padding: 0.28rem 0.48rem;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 999px;
  color: #a5f3fc;
  background: rgba(34, 211, 238, 0.07);
  font-family: var(--mono-font);
  font-size: 0.46rem;
  font-weight: 600;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.certification-code {
  margin: 1.55rem 0 0;
  color: var(--accent-light);
  font-family: var(--mono-font);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.certification-card h3 {
  max-width: 14rem;
  margin: 0.38rem 0 0;
  font-family: var(--heading-font);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.18;
}

.certification-description {
  margin: 0.75rem 0 0;
  color: var(--text-secondary);
  font-size: 0.68rem;
  line-height: 1.55;
}

.certification-footer {
  margin-top: auto;
  padding-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--mono-font);
  font-size: 0.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}


.tool-preview {
  margin-top: 3rem;

  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.tool-preview span {
  padding: 0.72rem 1rem;

  border: 1px solid var(--border);
  border-radius: 999px;

  background: var(--surface);
  color: var(--text-secondary);

  font-size: 0.78rem;

  transition:
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.tool-preview span:hover {
  color: var(--accent-light);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.project-preview-grid {
  margin-top: 3rem;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.project-preview-card {
  min-height: 13rem;
  padding: 1.5rem;

  border: 1px solid var(--border);
  border-radius: var(--radius-medium);

  background:
    linear-gradient(
      145deg,
      rgba(21, 31, 44, 0.88),
      rgba(13, 18, 26, 0.75)
    );

  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.project-preview-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);

  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.3);
}

.project-preview-card h3 {
  margin: 2.7rem 0 0.4rem;

  font-family: var(--heading-font);
  font-size: 1.45rem;
}

.project-preview-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.86rem;
}

.project-status {
  display: inline-flex;

  padding: 0.36rem 0.58rem;

  border-radius: 999px;

  font-family: var(--mono-font);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-status.completed {
  color: #86efac;
  background: rgba(34, 197, 94, 0.09);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.project-status.in-progress {
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.09);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.contact-section {
  padding-bottom: 7rem;
}

.contact-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.65fr);
  align-items: end;
  gap: 4rem;
}

.contact-links {
  display: grid;
  gap: 0.8rem;
}

.contact-links a {
  min-height: 5.2rem;
  padding: 1rem 1.15rem;

  display: flex;
  align-items: center;
  gap: 1rem;

  border: 1px solid var(--border);
  border-radius: var(--radius-medium);

  background: var(--surface);

  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.contact-links a:hover {
  transform: translateX(5px);
  border-color: var(--border-strong);
  background: var(--surface-light);
}

.contact-links svg {
  width: 1.55rem;
  height: 1.55rem;
  color: var(--accent-light);
}

.contact-links span {
  display: flex;
  flex-direction: column;

  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.contact-links small {
  margin-bottom: 0.15rem;

  color: var(--text-muted);

  font-family: var(--mono-font);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer {
  padding: 1.6rem 0;

  color: var(--text-muted);
  border-top: 1px solid var(--border);

  font-size: 0.72rem;
}

.footer-container {
  width: min(calc(100% - 3rem), var(--page-width));
  margin-inline: auto;

  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.reveal-section {
  opacity: 0;
  transform: translateY(44px);

  transition:
    opacity 800ms ease,
    transform 800ms ease;
}

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

@keyframes content-entry {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes portrait-entry {
  from {
    opacity: 0;
    transform: translateX(40px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes scroll-bounce {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(6px);
  }
}

@media (max-width: 980px) {
  .primary-navigation {
    gap: 1.25rem;
  }

  .header-socials {
    display: none;
  }

  .hero-container {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.75fr);
    gap: 2rem;
  }

  .portrait-frame {
    min-height: 33rem;
  }

  .about-layout {
    grid-template-columns: minmax(16rem, 18rem) minmax(0, 1fr);
    gap: 2.25rem;
  }

  .about-visual {
    max-width: 18rem;
  }

  .about-image-frame {
    height: 25.5rem;
  }

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

  .about-principle {
    min-height: 0;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
  }

  .about-principle p {
    margin-top: 0.25rem;
  }

  .about-interests {
    align-items: flex-start;
    flex-direction: column;
  }

  .interest-list {
    justify-content: flex-start;
  }

  .experience-heading {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .experience-introduction {
    max-width: 46rem;
  }

  .experience-layout {
    grid-template-columns: minmax(16.5rem, 0.72fr) minmax(0, 1.2fr);
  }

  .experience-tab-status {
    display: none;
  }

  .experience-responsibilities,
  .experience-responsibilities.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .education-heading {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .education-introduction {
    max-width: 46rem;
  }

  .education-layout {
    grid-template-columns: 1fr;
  }

  .certification-card {
    min-height: 13.5rem;
  }

  .certification-card h3 {
    max-width: 24rem;
  }


  .project-preview-grid {
    grid-template-columns: 1fr;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  :root {
    --header-height: 68px;
  }

  .nav-container,
  .hero-container,
  .section-container,
  .footer-container {
    width: min(calc(100% - 2rem), var(--page-width));
  }

  .menu-toggle {
    display: block;
  }

  body.menu-open .site-header {
    background: transparent;
    border-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .primary-navigation {
    position: fixed;
    inset: 0;
    z-index: 1001;

    padding: 7rem 1.5rem 2rem;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;

    width: 100vw;
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;

    overflow-y: auto;
    overscroll-behavior: contain;

    background: #080b10;
    isolation: isolate;

    visibility: hidden;
    opacity: 0;

    transform: translateY(-1rem);

    transition:
      opacity 220ms ease,
      visibility 220ms ease,
      transform 220ms ease;
  }

  .primary-navigation.open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .nav-link {
    width: 100%;
    padding: 0.75rem 0;

    font-family: var(--heading-font);
    font-size: clamp(1.7rem, 9vw, 2.5rem);
    font-weight: 600;
    line-height: 1.05;
  }

  .nav-link::after {
    display: none;
  }

  .hero {
    min-height: auto;

    padding:
      calc(var(--header-height) + 3.5rem)
      0
      5rem;
  }

  .hero::before {
    background:
      linear-gradient(
        to bottom,
        rgba(8, 11, 16, 0.93) 0%,
        rgba(8, 11, 16, 0.76) 44%,
        rgba(8, 11, 16, 0.96) 100%
      );
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 2.6rem;
  }

  .hero-content {
    max-width: none;
  }

  .hero-name {
    font-size: clamp(3.65rem, 18vw, 5.3rem);
  }

  .hero-role {
    max-width: 18rem;
  }

  .hero-introduction {
    font-size: 0.92rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .hero-status {
    align-items: flex-start;
  }

  .portrait-frame {
    max-width: 25rem;
    min-height: 32rem;
    margin-inline: auto;

    border-radius: 12rem 12rem 1.5rem 1.5rem;
  }

  .floating-label-top {
    top: 12%;
  }

  .floating-label-bottom {
    bottom: 10%;
  }

  .scroll-indicator {
    display: none;
  }

  .content-section {
    padding: 6rem 0;
  }

  .about-section {
    padding: 5rem 0;
  }

  .about-section .section-container > h2 {
    font-size: clamp(2.1rem, 10vw, 3.2rem);
  }

  .about-layout {
    margin-top: 2.25rem;
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .about-visual {
    max-width: 22rem;
    margin-inline: auto;
  }

  .about-image-frame {
    height: 30rem;
  }

  .about-introduction {
    font-size: 0.98rem;
    line-height: 1.72;
  }

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

  .about-principle {
    min-height: 0;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .about-principle:hover {
    transform: none;
  }

  .experience-section {
    padding: 5rem 0;
  }

  .experience-heading h2 {
    font-size: clamp(2.1rem, 10vw, 3.2rem);
  }

  .experience-layout {
    margin-top: 2rem;
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .experience-timeline {
    gap: 0.4rem;
  }

  .experience-tab {
    min-height: 6.5rem;
    padding-right: 0.8rem;
  }

  .experience-tab:hover {
    transform: none;
  }

  .experience-tab-status {
    display: inline-flex;
  }

  .experience-details {
    min-height: 0;
  }

  .experience-panel {
    padding: 1.25rem;
    border-radius: var(--radius-medium);
  }

  .experience-panel-header {
    flex-direction: column;
    gap: 0.8rem;
  }

  .experience-meta {
    align-items: flex-start;
    text-align: left;
  }

  .experience-responsibilities,
  .experience-responsibilities.compact {
    grid-template-columns: 1fr;
  }

  .education-section {
    padding: 5rem 0;
  }

  .education-heading h2 {
    font-size: clamp(2.1rem, 10vw, 3.2rem);
  }

  .education-layout {
    margin-top: 2rem;
  }

  .education-path {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .education-path::before {
    top: 1.35rem;
    bottom: 1.35rem;
    left: 1.45rem;
    right: auto;
    width: 1px;
    height: auto;
    background: linear-gradient(
      to bottom,
      rgba(96, 165, 250, 0.18),
      rgba(96, 165, 250, 0.5),
      rgba(96, 165, 250, 0.14)
    );
  }

  .education-stage {
    min-height: 14.5rem;
    padding-left: 3.15rem;
  }

  .education-stage:hover {
    transform: none;
  }

  .education-node {
    left: 1.08rem;
  }

  .certification-card {
    min-height: 15rem;
    border-radius: var(--radius-medium);
  }


  .section-container h2 {
    font-size: clamp(2.1rem, 11vw, 3.4rem);
  }

  .project-preview-grid {
    grid-template-columns: 1fr;
  }

  .contact-links {
    grid-template-columns: 1fr;
  }

  .footer-container {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .education-stage-topline,
  .education-stage-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .education-stage-footer span:last-child {
    text-align: left;
  }
}

@media (max-width: 420px) {
  .hero-name {
    font-size: clamp(3.25rem, 17vw, 4.4rem);
  }

  .portrait-frame {
    min-height: 28rem;
  }

  .about-image-frame {
    height: 27rem;
  }

  .about-image-caption {
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
  }

  .about-principle {
    padding: 1rem;
  }

  .about-interests {
    padding-inline: 0;
  }


  .floating-label {
    padding: 0.65rem 0.75rem;
  }

  .floating-label-top {
    left: 0.25rem;
  }

  .floating-label-bottom {
    right: 0.25rem;
  }
}

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

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

  .reveal-section {
    opacity: 1;
    transform: none;
  }
}
/* =========================================================
   Site-wide typography readability pass
   Keeps the existing Dark Premium Tech identity while making
   technical labels, metadata and supporting text easier to read.
   ========================================================= */

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
}

.hero-status {
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.025em;
}

.floating-label span {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.075em;
}

.floating-label strong {
  font-size: 0.86rem;
}

.scroll-indicator {
  color: var(--text-muted);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.075em;
}

.about-image-marker {
  font-size: 0.65rem;
  letter-spacing: 0.075em;
}

.about-image-caption span {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.about-image-caption strong {
  font-size: 1rem;
}

.about-principle-number {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.055em;
}

.about-principle p {
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.55;
}

.about-interests p {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.interest-list li {
  color: #b5c1d2;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.015em;
}

.experience-year {
  font-size: 0.69rem;
  letter-spacing: 0.04em;
}

.experience-tab-status,
.experience-panel-label {
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.experience-tab-content > span:last-child {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.experience-meta {
  color: #8fa0b6;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.experience-summary {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

.experience-context-note {
  color: #c3cedc;
  font-size: 0.8rem;
  line-height: 1.55;
}

.experience-focus-label {
  font-size: 0.68rem;
  letter-spacing: 0.065em;
}

.experience-responsibilities li {
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.48;
}

.education-step {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.education-status {
  color: #a5b4c8;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.025em;
}

.education-course,
.education-institution {
  font-size: 0.82rem;
  line-height: 1.42;
}

.education-stage-footer {
  color: #9eacc0;
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.018em;
}

.certification-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.certification-code {
  font-size: 0.79rem;
  letter-spacing: 0.1em;
}

.certification-description {
  color: var(--text-secondary);
  font-size: 0.78rem;
  line-height: 1.52;
}

.certification-footer {
  color: #9eacc0;
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.018em;
}

.project-status {
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.035em;
}

.contact-links small {
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.site-footer {
  color: var(--text-muted);
  font-size: 0.78rem;
}

@media (max-width: 720px) {
  .education-stage-footer,
  .certification-footer {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.45rem 0.8rem;
  }

  .education-stage-footer span:last-child,
  .certification-footer span:last-child {
    text-align: left;
  }
}
/* =========================================================
   Interactive Technical Toolkit
   ========================================================= */

.toolkit-section {
  padding: 6.25rem 0 6.5rem;
  overflow: hidden;
}

.toolkit-section::before {
  content: "";

  position: absolute;
  top: 8rem;
  right: -10rem;

  width: 28rem;
  height: 28rem;

  border-radius: 50%;

  background: rgba(59, 130, 246, 0.07);
  filter: blur(95px);

  pointer-events: none;
}

.toolkit-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(20rem, 0.65fr);
  align-items: end;
  gap: clamp(2.5rem, 6vw, 6.5rem);
}

.toolkit-heading h2 {
  max-width: 48rem;
}

.toolkit-introduction {
  max-width: 29rem;
  margin: 0 0 0.3rem;

  color: var(--text-secondary);

  font-size: 0.96rem;
  line-height: 1.72;
}

.toolkit-layout {
  margin-top: 3rem;

  display: grid;
  grid-template-columns: minmax(17rem, 0.72fr) minmax(0, 1.85fr);
  align-items: stretch;
  gap: 1rem;
}

.toolkit-tabs {
  position: relative;

  padding: 0.55rem;

  display: grid;
  align-content: start;
  gap: 0.45rem;

  border: 1px solid var(--border);
  border-radius: calc(var(--radius-large) + 0.15rem);

  background:
    linear-gradient(
      155deg,
      rgba(18, 26, 36, 0.9),
      rgba(8, 11, 16, 0.78)
    );
}

.toolkit-tabs::before {
  content: "";

  position: absolute;
  top: 1.7rem;
  bottom: 1.7rem;
  left: 1.42rem;

  width: 1px;

  background:
    linear-gradient(
      to bottom,
      transparent,
      rgba(96, 165, 250, 0.25) 12%,
      rgba(96, 165, 250, 0.16) 88%,
      transparent
    );

  pointer-events: none;
}

.toolkit-tab {
  position: relative;
  z-index: 1;

  width: 100%;
  min-height: 6.2rem;
  padding: 1rem 0.95rem;

  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) 1.2rem;
  align-items: center;
  gap: 0.75rem;

  border: 1px solid transparent;
  border-radius: var(--radius-medium);

  background: transparent;
  color: var(--text-secondary);

  text-align: left;
  cursor: pointer;

  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.toolkit-tab:hover {
  color: var(--text-primary);
  background: rgba(59, 130, 246, 0.055);
}

.toolkit-tab:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 2px;
}

.toolkit-tab.is-active {
  color: var(--text-primary);
  border-color: rgba(96, 165, 250, 0.28);

  background:
    linear-gradient(
      135deg,
      rgba(59, 130, 246, 0.15),
      rgba(18, 26, 36, 0.83)
    );

  box-shadow:
    inset 3px 0 0 var(--accent-primary),
    0 0.9rem 2.5rem rgba(0, 0, 0, 0.17);
}

.toolkit-tab-index {
  position: relative;

  display: grid;
  place-items: center;

  width: 1.75rem;
  height: 1.75rem;

  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 50%;

  background: #080b10;
  color: var(--text-muted);

  font-family: var(--mono-font);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.025em;

  transition:
    color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.toolkit-tab.is-active .toolkit-tab-index {
  color: #dbeafe;
  border-color: rgba(96, 165, 250, 0.62);

  box-shadow:
    0 0 0 0.3rem rgba(59, 130, 246, 0.12),
    0 0 1.2rem rgba(59, 130, 246, 0.2);
}

.toolkit-tab-copy {
  min-width: 0;

  display: grid;
  gap: 0.27rem;
}

.toolkit-tab-copy strong {
  color: inherit;

  font-family: var(--heading-font);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.022em;
}

.toolkit-tab-copy small {
  overflow: hidden;

  color: var(--text-muted);

  font-family: var(--mono-font);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toolkit-tab svg {
  width: 1rem;
  height: 1rem;

  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;

  opacity: 0.38;

  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toolkit-tab.is-active svg {
  color: var(--accent-light);
  opacity: 1;
  transform: translateX(2px);
}

.toolkit-panels {
  min-width: 0;
}

.toolkit-panel {
  min-height: 100%;
  padding: clamp(1.5rem, 2.4vw, 2rem);

  border: 1px solid var(--border);
  border-radius: calc(var(--radius-large) + 0.15rem);

  background:
    radial-gradient(
      circle at 88% 5%,
      rgba(59, 130, 246, 0.13),
      transparent 28%
    ),
    linear-gradient(
      145deg,
      rgba(18, 26, 36, 0.94),
      rgba(8, 11, 16, 0.88)
    );

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025),
    0 1.5rem 4rem rgba(0, 0, 0, 0.18);
}

.toolkit-panel[hidden] {
  display: none;
}

.toolkit-panel.is-active {
  animation: toolkit-panel-in 240ms ease both;
}

.toolkit-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.toolkit-panel-kicker {
  color: var(--accent-light);

  font-family: var(--mono-font);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.toolkit-panel h3 {
  margin: 0.45rem 0 0;

  font-family: var(--heading-font);
  font-size: clamp(1.65rem, 2.7vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.toolkit-panel-context {
  flex: 0 0 auto;

  padding: 0.43rem 0.64rem;

  border: 1px solid rgba(96, 165, 250, 0.23);
  border-radius: 999px;

  background: rgba(59, 130, 246, 0.07);
  color: #a9cbf8;

  font-family: var(--mono-font);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.toolkit-panel-introduction {
  max-width: 48rem;
  margin: 1rem 0 0;
  padding-bottom: 1.25rem;

  border-bottom: 1px solid var(--border);

  color: var(--text-secondary);

  font-size: 0.87rem;
  line-height: 1.65;
}

.toolkit-items-grid {
  margin-top: 1rem;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.toolkit-item {
  min-height: 7.35rem;
  padding: 0.95rem;

  display: grid;
  grid-template-columns: 2.55rem minmax(0, 1fr);
  align-items: start;
  gap: 0.8rem;

  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: var(--radius-medium);

  background: rgba(8, 11, 16, 0.38);

  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.toolkit-item:hover {
  transform: translateY(-3px);
  border-color: rgba(96, 165, 250, 0.28);
  background: rgba(18, 26, 36, 0.66);
}

.toolkit-item-code {
  display: grid;
  place-items: center;

  min-width: 2.55rem;
  min-height: 2.55rem;
  padding: 0.25rem;

  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 0.72rem;

  background: rgba(59, 130, 246, 0.075);
  color: var(--accent-light);

  font-family: var(--mono-font);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
}

.toolkit-item h4 {
  margin: 0.03rem 0 0;

  font-family: var(--heading-font);
  font-size: 0.91rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.toolkit-item p {
  margin: 0.33rem 0 0;

  color: var(--text-secondary);

  font-size: 0.74rem;
  line-height: 1.48;
}

@keyframes toolkit-panel-in {
  from {
    opacity: 0;
    transform: translateY(0.45rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1040px) {
  .toolkit-heading {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .toolkit-introduction {
    max-width: 48rem;
  }

  .toolkit-layout {
    grid-template-columns: 1fr;
  }

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

  .toolkit-tabs::before {
    display: none;
  }

  .toolkit-tab {
    min-height: 5.6rem;
  }
}

@media (max-width: 720px) {
  .toolkit-section {
    padding: 5.5rem 0;
  }

  .toolkit-layout {
    margin-top: 2.2rem;
  }

  .toolkit-tabs {
    grid-template-columns: 1fr;
  }

  .toolkit-tab {
    min-height: 5.2rem;
  }

  .toolkit-panel {
    padding: 1.2rem;
  }

  .toolkit-panel-header {
    display: grid;
    gap: 0.9rem;
  }

  .toolkit-panel-context {
    width: fit-content;
  }

  .toolkit-items-grid {
    grid-template-columns: 1fr;
  }

  .toolkit-item {
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .toolkit-panel.is-active {
    animation: none;
  }

  .toolkit-tab,
  .toolkit-tab svg,
  .toolkit-item {
    transition: none;
  }
}
/* =========================================================
   Toolkit laptop fit + uniform panel sizing
   ========================================================= */

.toolkit-section {
  padding-top: 5.4rem;
  padding-bottom: 5.6rem;
}

.toolkit-layout {
  margin-top: 2.45rem;
}

.toolkit-panels {
  display: grid;
  min-height: 27.5rem;
}

.toolkit-panel {
  width: 100%;
  height: 100%;
  min-height: 27.5rem;
  padding: 1.55rem;
}

.toolkit-panel-introduction {
  margin-top: 0.8rem;
  padding-bottom: 0.95rem;
}

.toolkit-items-grid {
  margin-top: 0.8rem;
}

.toolkit-item {
  min-height: 6.55rem;
  padding: 0.82rem;
}

.toolkit-item p {
  margin-top: 0.26rem;
  line-height: 1.42;
}

.toolkit-tab-copy small {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

/* Panels with more tools use three columns so they remain two rows tall. */
@media (min-width: 1181px) {
  [data-toolkit-panel="systems"] .toolkit-items-grid,
  [data-toolkit-panel="development"] .toolkit-items-grid,
  [data-toolkit-panel="strengths"] .toolkit-items-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  [data-toolkit-panel="systems"] .toolkit-item,
  [data-toolkit-panel="development"] .toolkit-item,
  [data-toolkit-panel="strengths"] .toolkit-item {
    grid-template-columns: 2.35rem minmax(0, 1fr);
    gap: 0.68rem;
  }

  [data-toolkit-panel="systems"] .toolkit-item-code,
  [data-toolkit-panel="development"] .toolkit-item-code,
  [data-toolkit-panel="strengths"] .toolkit-item-code {
    min-width: 2.35rem;
    min-height: 2.35rem;
  }

  [data-toolkit-panel="systems"] .toolkit-item h4,
  [data-toolkit-panel="development"] .toolkit-item h4,
  [data-toolkit-panel="strengths"] .toolkit-item h4 {
    font-size: 0.86rem;
  }

  [data-toolkit-panel="systems"] .toolkit-item p,
  [data-toolkit-panel="development"] .toolkit-item p,
  [data-toolkit-panel="strengths"] .toolkit-item p {
    font-size: 0.7rem;
  }
}

/* Move to the stacked tablet layout slightly earlier instead of squeezing it. */
@media (max-width: 1180px) {
  .toolkit-heading {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .toolkit-introduction {
    max-width: 48rem;
  }

  .toolkit-layout {
    grid-template-columns: 1fr;
  }

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

  .toolkit-tabs::before {
    display: none;
  }

  .toolkit-tab {
    min-height: 5.6rem;
  }

  .toolkit-panels,
  .toolkit-panel {
    min-height: auto;
    height: auto;
  }
}

@media (max-width: 720px) {
  .toolkit-tabs {
    grid-template-columns: 1fr;
  }

  .toolkit-panel {
    padding: 1.2rem;
  }

  .toolkit-items-grid {
    grid-template-columns: 1fr;
  }
}
/* =========================================================
   Final toolkit consistency fix
   - Locks every left-side category to the same height.
   - Gives Systems its own direct compact-grid rule.
   ========================================================= */

@media (min-width: 1181px) {
  .toolkit-tabs {
    grid-template-rows: repeat(4, 1fr);
  }

  .toolkit-tab {
    height: 100%;
    min-height: 0;
  }

  #toolkit-panel-systems .toolkit-items-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }

  #toolkit-panel-systems .toolkit-item {
    min-height: 0;
    grid-template-columns: 2.35rem minmax(0, 1fr) !important;
    gap: 0.68rem;
  }

  #toolkit-panel-systems .toolkit-item-code {
    min-width: 2.35rem;
    min-height: 2.35rem;
  }

  #toolkit-panel-systems .toolkit-item h4 {
    font-size: 0.86rem;
  }

  #toolkit-panel-systems .toolkit-item p {
    font-size: 0.7rem;
    line-height: 1.4;
  }
}

/* When the toolkit is stacked, keep Systems compact but readable. */
@media (min-width: 760px) and (max-width: 1180px) {
  #toolkit-panel-systems .toolkit-items-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #toolkit-panel-systems .toolkit-item {
    grid-template-columns: 2.35rem minmax(0, 1fr);
    gap: 0.68rem;
  }
}

/* =========================================================
   Featured Digital Work
   ========================================================= */

.featured-work-section {
  position: relative;
  padding: 5.8rem 0 6.2rem;
  overflow: hidden;
}

.featured-work-section::before {
  content: "";
  position: absolute;
  top: 11rem;
  right: -10rem;
  width: 30rem;
  height: 30rem;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.07);
  filter: blur(105px);
  pointer-events: none;
}

.featured-work-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(20rem, 0.68fr);
  align-items: end;
  gap: clamp(2.5rem, 6vw, 6.5rem);
}

.featured-work-heading h2 {
  max-width: 49rem;
}

.featured-work-introduction {
  max-width: 30rem;
  margin: 0 0 0.3rem;
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.72;
}

.featured-work-shell {
  margin-top: 2.8rem;
  display: grid;
  grid-template-columns: minmax(16.5rem, 0.62fr) minmax(0, 1.9fr);
  gap: 1rem;
  align-items: stretch;
}

.project-selector {
  padding: 0.52rem;
  display: grid;
  align-content: start;
  gap: 0.5rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius-large) + 0.15rem);
  background: linear-gradient(155deg, rgba(18, 26, 36, 0.92), rgba(8, 11, 16, 0.82));
}

.project-selector-button {
  width: 100%;
  min-height: 8rem;
  padding: 1rem 0.9rem;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) 1rem;
  align-items: center;
  gap: 0.72rem;
  border: 1px solid transparent;
  border-radius: var(--radius-medium);
  background: transparent;
  color: var(--text-secondary);
  text-align: left;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.project-selector-button:hover {
  color: var(--text-primary);
  background: rgba(59, 130, 246, 0.055);
}

.project-selector-button:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 2px;
}

.project-selector-button.is-active {
  color: var(--text-primary);
  border-color: rgba(96, 165, 250, 0.3);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(18, 26, 36, 0.86));
  box-shadow: inset 3px 0 0 var(--accent-primary), 0 1rem 2.5rem rgba(0, 0, 0, 0.18);
}

.project-selector-index {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 50%;
  background: #080b10;
  color: var(--text-muted);
  font-family: var(--mono-font);
  font-size: 0.65rem;
  font-weight: 700;
}

.project-selector-button.is-active .project-selector-index {
  color: #dbeafe;
  border-color: rgba(96, 165, 250, 0.65);
  box-shadow: 0 0 0 0.28rem rgba(59, 130, 246, 0.1), 0 0 1.1rem rgba(59, 130, 246, 0.2);
}

.project-selector-copy {
  min-width: 0;
  display: grid;
  gap: 0.22rem;
}

.project-selector-copy small {
  color: var(--accent-light);
  font-family: var(--mono-font);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  line-height: 1.3;
  text-transform: uppercase;
}

.project-selector-copy strong {
  font-family: var(--heading-font);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.project-selector-copy > span {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.project-selector-button > svg,
.primary-button svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.project-selector-button > svg {
  opacity: 0.4;
}

.project-selector-button.is-active > svg {
  color: var(--accent-light);
  opacity: 1;
}

.featured-project-panels {
  min-width: 0;
  display: grid;
}

.featured-project-panel {
  min-height: 38rem;
  padding: clamp(1.35rem, 2.2vw, 1.8rem);
  display: grid;
  grid-template-columns: minmax(18rem, 0.86fr) minmax(23rem, 1.14fr);
  align-items: center;
  gap: clamp(1.4rem, 3vw, 2.6rem);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius-large) + 0.15rem);
  background:
    radial-gradient(circle at 88% 5%, rgba(59, 130, 246, 0.13), transparent 29%),
    linear-gradient(145deg, rgba(18, 26, 36, 0.95), rgba(8, 11, 16, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025), 0 1.5rem 4rem rgba(0, 0, 0, 0.18);
}

.featured-project-panel[hidden] {
  display: none;
}

.featured-project-panel.is-active {
  animation: featured-project-in 240ms ease both;
}

.featured-project-copy {
  min-width: 0;
}

.featured-project-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.featured-project-number,
.featured-project-label,
.featured-project-demo-note,
.featured-project-progress-note {
  font-family: var(--mono-font);
}

.featured-project-number {
  color: var(--text-muted);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.featured-project-label {
  margin: 1.35rem 0 0;
  color: var(--accent-light);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.featured-project-panel h3 {
  margin: 0.35rem 0 0;
  font-family: var(--heading-font);
  font-size: clamp(2.4rem, 4vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.featured-project-description {
  max-width: 37rem;
  margin: 1.15rem 0 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
}

.featured-project-highlights {
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.62rem;
  list-style: none;
}

.featured-project-highlights li {
  position: relative;
  padding-left: 1.15rem;
  color: #c1ccda;
  font-size: 0.78rem;
  line-height: 1.45;
}

.featured-project-highlights li::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  left: 0;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 0.75rem rgba(59, 130, 246, 0.4);
}

.featured-project-tools {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.43rem;
}

.featured-project-tools span {
  padding: 0.39rem 0.58rem;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 999px;
  background: rgba(8, 11, 16, 0.42);
  color: #b5c3d5;
  font-family: var(--mono-font);
  font-size: 0.59rem;
  font-weight: 600;
}

.featured-project-actions {
  margin-top: 1.35rem;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 0.55rem;
}

.button-link {
  width: 100%;
  min-width: 0;
  min-height: 2.85rem;
  padding: 0.72rem 0.68rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 0.8rem;
  font-family: var(--body-font);
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button-link:hover {
  transform: translateY(-2px);
}

.primary-button {
  border: 1px solid var(--accent-primary);
  background: var(--accent-primary);
  color: white;
}

.secondary-button {
  border: 1px solid var(--border);
  background: rgba(8, 11, 16, 0.45);
  color: var(--text-primary);
}

.featured-project-demo-note,
.featured-project-progress-note {
  margin: 0.85rem 0 0;
  color: var(--text-muted);
  font-size: 0.61rem;
  font-weight: 600;
  line-height: 1.5;
}

.spendly-showcase {
  position: relative;
  min-height: 33rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.spendly-showcase::before {
  content: "";
  position: absolute;
  inset: 10% 5%;
  border-radius: 50%;
  background: rgba(95, 226, 139, 0.08);
  filter: blur(60px);
  pointer-events: none;
}

.spendly-phone {
  position: relative;
  z-index: 1;
  margin: 0;
}

.spendly-phone::before {
  content: "";
  position: absolute;
  inset: -0.34rem;
  z-index: -1;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 1.65rem;
  background: #090b0f;
  box-shadow: 0 1.5rem 3.5rem rgba(0, 0, 0, 0.38);
}

.spendly-phone img {
  width: 100%;
  display: block;
  border-radius: 1.35rem;
}

.spendly-phone figcaption {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  padding: 0.34rem 0.48rem;
  border: 1px solid rgba(126, 231, 156, 0.2);
  border-radius: 999px;
  background: rgba(8, 11, 16, 0.78);
  color: #9fe5b4;
  font-family: var(--mono-font);
  font-size: 0.48rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.spendly-phone-main {
  width: clamp(11.2rem, 18vw, 13.4rem);
  transform: rotate(-2deg);
}

.spendly-secondary-screens {
  display: grid;
  gap: 1.25rem;
}

.spendly-phone-small {
  width: clamp(7.3rem, 11vw, 8.6rem);
}

.spendly-phone-small.insights {
  transform: rotate(2.5deg);
}

.spendly-phone-small.store {
  transform: rotate(1deg) translateX(0.55rem);
}

.project-media-placeholder {
  min-height: 29rem;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: calc(var(--radius-large) - 0.1rem);
  overflow: hidden;
}

.travel-hub-placeholder {
  background:
    linear-gradient(180deg, transparent 25%, rgba(8, 11, 16, 0.92)),
    radial-gradient(circle at 72% 18%, rgba(96, 165, 250, 0.2), transparent 28%),
    linear-gradient(135deg, #111827, #080b10 68%);
}

.discover-placeholder {
  background:
    linear-gradient(180deg, transparent 25%, rgba(8, 11, 16, 0.94)),
    radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.18), transparent 30%),
    linear-gradient(145deg, #101923, #080b10 70%);
}

.project-placeholder-kicker {
  color: var(--accent-light);
  font-family: var(--mono-font);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-media-placeholder strong {
  max-width: 26rem;
  margin-top: 0.65rem;
  font-family: var(--heading-font);
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.project-media-placeholder small {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.7rem;
  line-height: 1.5;
}

.travel-placeholder-days,
.discover-placeholder-route {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.55rem;
}

.travel-placeholder-days {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.discover-placeholder-route {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.travel-placeholder-days span,
.discover-placeholder-route span {
  min-height: 4rem;
  padding: 0.65rem;
  display: grid;
  place-items: end start;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 0.75rem;
  background: rgba(8, 11, 16, 0.36);
  color: #c4cfdd;
  font-family: var(--mono-font);
  font-size: 0.58rem;
  font-weight: 700;
}

.project-story-modal[hidden] {
  display: none;
}

.project-story-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 1.2rem;
}

.project-story-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 5, 9, 0.82);
  backdrop-filter: blur(14px);
}

.project-story-dialog {
  position: relative;
  z-index: 1;
  width: min(67rem, 100%);
  max-height: min(48rem, calc(100dvh - 2.4rem));
  overflow: auto;
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: calc(var(--radius-large) + 0.2rem);
  background: linear-gradient(145deg, #111923, #080b10 72%);
  box-shadow: 0 2rem 7rem rgba(0, 0, 0, 0.58);
}

.project-story-header {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 1.35rem 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 11, 16, 0.93);
  backdrop-filter: blur(16px);
}

.project-story-header span,
.project-story-body article > span {
  color: var(--accent-light);
  font-family: var(--mono-font);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-story-header h2 {
  max-width: 46rem;
  margin: 0.4rem 0 0;
  font-size: clamp(1.6rem, 3vw, 2.7rem);
}

.project-story-close {
  flex: 0 0 auto;
  width: 2.65rem;
  height: 2.65rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(18, 26, 36, 0.8);
  color: var(--text-primary);
  cursor: pointer;
}

.project-story-close svg {
  width: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.7;
}

.project-story-body {
  padding: 1.25rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.project-story-body article {
  padding: 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  background: rgba(18, 26, 36, 0.5);
}

.project-story-body article:last-child {
  grid-column: 1 / -1;
}

.project-story-body h3 {
  margin: 0.55rem 0 0;
  font-family: var(--heading-font);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.project-story-body p {
  margin: 0.55rem 0 0;
  color: var(--text-secondary);
  font-size: 0.76rem;
  line-height: 1.55;
}

.project-story-footer {
  padding: 1rem 1.5rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--border);
}

.project-story-footer span {
  color: var(--text-muted);
  font-family: var(--mono-font);
  font-size: 0.62rem;
  font-weight: 600;
}

.project-story-footer a {
  color: var(--accent-light);
  font-size: 0.74rem;
  font-weight: 700;
}

body.project-story-open {
  overflow: hidden;
}

@keyframes featured-project-in {
  from { opacity: 0; transform: translateY(0.45rem); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1120px) {
  .featured-work-heading {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .featured-work-introduction {
    max-width: 48rem;
  }

  .featured-work-shell {
    grid-template-columns: 1fr;
  }

  .project-selector {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .project-selector-button {
    min-height: 7.2rem;
  }

  .featured-project-panel {
    grid-template-columns: minmax(18rem, 0.9fr) minmax(20rem, 1.1fr);
  }
}

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

  .project-selector-button {
    min-height: 5.8rem;
  }

  .featured-project-panel {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .spendly-showcase {
    min-height: 30rem;
  }

  .project-story-body {
    grid-template-columns: 1fr;
  }

  .project-story-body article:last-child {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .featured-work-section {
    padding: 5.3rem 0;
  }

  .featured-project-topline,
  .project-story-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .featured-project-actions {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .button-link {
    width: 100%;
  }

  .spendly-showcase {
    min-height: 27rem;
    gap: 0.55rem;
  }

  .spendly-phone-main {
    width: 10.7rem;
  }

  .spendly-phone-small {
    width: 6.4rem;
  }

  .travel-placeholder-days,
  .discover-placeholder-route {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-story-modal {
    padding: 0;
  }

  .project-story-dialog {
    width: 100%;
    max-height: 100dvh;
    border-radius: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .featured-project-panel.is-active {
    animation: none;
  }

  .project-selector-button,
  .button-link {
    transition: none;
  }
}
/* =========================================================
   Spendly real screenshot story media
   ========================================================= */

.project-story-media {
  margin: 0 1.25rem 1.25rem;
  padding: 1rem 1rem 1rem 1.15rem;

  display: grid;
  grid-template-columns: minmax(0, 1fr) 10.5rem;
  align-items: center;
  gap: 1.2rem;

  border: 1px solid rgba(126, 231, 156, 0.16);
  border-radius: var(--radius-medium);

  background:
    radial-gradient(
      circle at 88% 10%,
      rgba(95, 226, 139, 0.1),
      transparent 35%
    ),
    rgba(18, 26, 36, 0.48);
}

.project-story-media-copy span {
  color: #8fe8aa;

  font-family: var(--mono-font);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.project-story-media-copy h3 {
  margin: 0.6rem 0 0;

  font-family: var(--heading-font);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.project-story-media-copy p {
  margin: 0.6rem 0 0;
  max-width: 34rem;

  color: var(--text-secondary);

  font-size: 0.78rem;
  line-height: 1.58;
}

.project-story-media-phone {
  position: relative;

  width: 100%;

  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1.35rem;

  background: #06090b;

  box-shadow: 0 1.2rem 2.8rem rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.project-story-media-phone img {
  width: 100%;
  display: block;
}

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

  .project-story-media-phone {
    width: min(12rem, 100%);
    margin-inline: auto;
  }
}
/* =========================================================
   Spendly showcase final polish
   ========================================================= */

.spendly-phone figcaption {
  right: 0.55rem;
  bottom: 0.55rem;

  padding: 0.43rem 0.62rem;

  border: 1px solid rgba(126, 231, 156, 0.48);
  border-radius: 999px;

  background: rgba(5, 10, 8, 0.94);
  color: #8ff0aa;

  box-shadow:
    0 0.65rem 1.6rem rgba(0, 0, 0, 0.48),
    0 0 1.15rem rgba(95, 226, 139, 0.12);

  font-family: var(--mono-font);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.012em;
  line-height: 1;
  white-space: nowrap;

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.featured-project-demo-note {
  color: #8797aa;
  font-size: 0.66rem;
}

.project-story-modal:not([hidden]) {
  display: grid;
}

.project-story-dialog {
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.project-story-close,
[data-open-project-story] {
  touch-action: manipulation;
}

@media (max-width: 560px) {
  .spendly-phone figcaption {
    padding: 0.38rem 0.5rem;
    font-size: 0.49rem;
  }
}
/* =========================================================
   Spendly preview clarity + inline project story
   ========================================================= */

.spendly-showcase {
  min-height: 34rem;
  display: grid;
  grid-template-columns: minmax(13rem, 1.08fr) minmax(10rem, 0.92fr);
  align-items: center;
  gap: 1rem;
}

.spendly-screen-link {
  display: block;
  color: inherit;
  border-radius: inherit;
}

.spendly-screen-link:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 0.48rem;
}

.spendly-preview-viewport {
  display: block;
  border-radius: 1.35rem;
  overflow: hidden;
}

.spendly-phone-main {
  width: min(100%, 14.7rem);
  justify-self: end;
  transform: rotate(-1.8deg);
}

.spendly-secondary-screens {
  width: 100%;
  display: grid;
  justify-items: start;
  gap: 1rem;
}

.spendly-phone-small {
  width: min(100%, 11.4rem);
}

.spendly-phone-small.insights {
  transform: rotate(2.2deg) translateX(-0.2rem);
}

.spendly-phone-small.store {
  transform: rotate(-1.4deg) translateX(0.45rem);
}

.spendly-phone-small.store .spendly-preview-viewport {
  aspect-ratio: 0.79;
}

.spendly-phone-small.store img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.spendly-phone figcaption {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;

  border-color: rgba(96, 165, 250, 0.5);
  background: rgba(7, 12, 19, 0.95);
  color: #f4f7fa;

  box-shadow:
    0 0.65rem 1.7rem rgba(0, 0, 0, 0.5),
    0 0 1.2rem rgba(59, 130, 246, 0.14);
}

.spendly-phone figcaption > span {
  width: 0.38rem;
  height: 0.38rem;
  flex: 0 0 auto;

  border-radius: 50%;

  background: var(--accent-light);
  box-shadow: 0 0 0.7rem rgba(96, 165, 250, 0.75);
}

.inline-project-story {
  grid-column: 1 / -1;

  margin-top: 0.15rem;
  padding: 1.25rem;

  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: var(--radius-large);

  background:
    radial-gradient(
      circle at 92% 0%,
      rgba(59, 130, 246, 0.12),
      transparent 30%
    ),
    rgba(8, 11, 16, 0.55);

  animation: inline-project-story-in 240ms ease both;
}

.inline-project-story[hidden] {
  display: none;
}

.inline-project-story-header {
  padding-bottom: 1rem;

  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;

  border-bottom: 1px solid var(--border);
}

.inline-project-story-header span {
  color: var(--accent-light);

  font-family: var(--mono-font);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.inline-project-story-header h3 {
  max-width: 43rem;
  margin: 0.48rem 0 0;

  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.inline-project-story-close {
  min-height: 2.45rem;
  padding: 0.62rem 0.75rem;

  border: 1px solid var(--border);
  border-radius: 0.72rem;

  background: rgba(18, 26, 36, 0.72);
  color: var(--text-primary);

  font: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
}

.inline-project-story .project-story-body {
  padding: 1rem 0 0;
}

.inline-project-story .project-story-media {
  margin: 1rem 0 0;
}

.inline-project-story .project-story-footer {
  margin-top: 1rem;
  padding: 1rem 0 0;
}

.project-story-media-phone {
  transition:
    transform 180ms ease,
    border-color 180ms ease;
}

.project-story-media-phone:hover {
  transform: translateY(-3px);
  border-color: rgba(96, 165, 250, 0.34);
}

@keyframes inline-project-story-in {
  from {
    opacity: 0;
    transform: translateY(0.55rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1120px) {
  .spendly-showcase {
    grid-template-columns: minmax(12rem, 1fr) minmax(10rem, 0.82fr);
  }
}

@media (max-width: 820px) {
  .spendly-showcase {
    min-height: 31rem;
    grid-template-columns: minmax(12rem, 1.1fr) minmax(9.5rem, 0.9fr);
  }

  .spendly-phone-main {
    width: min(100%, 14rem);
  }

  .spendly-phone-small {
    width: min(100%, 10.6rem);
  }
}

@media (max-width: 560px) {
  .spendly-showcase {
    min-height: auto;
    grid-template-columns: minmax(10.5rem, 1fr) minmax(7.4rem, 0.72fr);
    align-items: center;
    gap: 0.7rem;
  }

  .spendly-phone-main {
    width: min(100%, 11.3rem);
  }

  .spendly-phone-small {
    width: min(100%, 7.7rem);
  }

  .spendly-phone-small.insights {
    transform: rotate(2deg);
  }

  .spendly-phone-small.store {
    transform: rotate(-1deg) translateX(0.15rem);
  }

  .spendly-phone figcaption {
    right: 0.34rem;
    bottom: 0.34rem;
    gap: 0.28rem;
    font-size: 0.44rem;
  }

  .inline-project-story {
    padding: 1rem;
  }

  .inline-project-story-header {
    display: grid;
  }

  .inline-project-story-close {
    width: fit-content;
  }
}

@media (prefers-reduced-motion: reduce) {
  .inline-project-story {
    animation: none;
  }

  .project-story-media-phone {
    transition: none;
  }
}
/* =========================================================
   Spendly screenshot gallery + premium project story modal
   ========================================================= */

body.portfolio-overlay-open {
  overflow: hidden;
}

.spendly-screen-link {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  appearance: none;
}

.spendly-screen-link:hover .spendly-preview-viewport img {
  transform: scale(1.018);
}

.spendly-screen-link .spendly-preview-viewport img {
  transition: transform 220ms ease;
}

.screenshot-gallery[hidden],
.spendly-story-overlay[hidden] {
  display: none;
}

.screenshot-gallery,
.spendly-story-overlay {
  position: fixed;
  inset: 0;
  z-index: 4000;
  padding: clamp(0.7rem, 2vw, 1.5rem);
  display: grid;
  place-items: center;
}

.screenshot-gallery {
  z-index: 4100;
}

.overlay-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(2, 5, 9, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  cursor: default;
}

.screenshot-gallery-dialog,
.spendly-story-dialog {
  position: relative;
  z-index: 1;
  width: min(96vw, 72rem);
  max-height: min(92dvh, 56rem);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at 88% -5%, rgba(59, 130, 246, 0.13), transparent 30%),
    linear-gradient(145deg, rgba(18, 26, 36, 0.99), rgba(8, 11, 16, 0.99));
  box-shadow: 0 2.5rem 8rem rgba(0, 0, 0, 0.58);
  overflow: hidden;
  animation: portfolio-overlay-in 220ms ease both;
}

.screenshot-gallery-dialog {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.overlay-header,
.spendly-story-header {
  min-height: 5.4rem;
  padding: 1rem 1.15rem 1rem 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 11, 16, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.overlay-kicker,
.story-stage-label {
  color: var(--accent-light);
  font-family: var(--mono-font);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.overlay-header h2,
.spendly-story-header h2 {
  margin: 0.34rem 0 0;
  font-family: var(--heading-font);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.overlay-header h2 {
  font-size: 1.45rem;
}

.spendly-story-header h2 {
  max-width: 48rem;
  font-size: clamp(1.45rem, 2.5vw, 2.25rem);
}

.overlay-close {
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.85rem;
  background: rgba(18, 26, 36, 0.8);
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.overlay-close:hover {
  color: var(--text-primary);
  border-color: rgba(96, 165, 250, 0.42);
  background: rgba(59, 130, 246, 0.09);
}

.overlay-close svg,
.gallery-arrow svg,
.spendly-story-footer svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.screenshot-gallery-stage {
  min-height: 0;
  padding: 1rem;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) 3rem;
  align-items: center;
  gap: 0.8rem;
  overflow: hidden;
}

.gallery-arrow {
  width: 3rem;
  height: 3rem;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 50%;
  background: rgba(8, 11, 16, 0.7);
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.gallery-arrow:hover {
  color: var(--text-primary);
  border-color: rgba(96, 165, 250, 0.42);
  transform: scale(1.04);
}

.screenshot-gallery-figure {
  min-width: 0;
  min-height: 0;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.42fr);
  align-items: center;
  gap: 1.25rem;
}

.screenshot-gallery-image-wrap {
  min-height: 0;
  height: min(68dvh, 43rem);
  display: grid;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 1.15rem;
  background:
    radial-gradient(circle at center, rgba(59, 130, 246, 0.08), transparent 60%),
    #05080b;
  overflow: hidden;
}

.screenshot-gallery-image-wrap img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 1.2rem 2.6rem rgba(0, 0, 0, 0.38));
}

.screenshot-gallery-figure figcaption {
  padding-right: 0.4rem;
}

.screenshot-gallery-figure figcaption > div {
  display: grid;
  gap: 0.55rem;
}

.screenshot-gallery-figure figcaption span {
  color: var(--accent-light);
  font-family: var(--mono-font);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.screenshot-gallery-figure figcaption strong {
  color: var(--text-primary);
  font-family: var(--heading-font);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.screenshot-gallery-figure figcaption p {
  margin: 0.8rem 0 0;
  color: var(--text-secondary);
  font-size: 0.86rem;
  line-height: 1.65;
}

.screenshot-gallery-thumbnails {
  padding: 0.8rem 1rem 1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  border-top: 1px solid var(--border);
  background: rgba(8, 11, 16, 0.7);
}

.screenshot-gallery-thumbnails button {
  min-width: 0;
  padding: 0.48rem;
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  align-items: center;
  gap: 0.6rem;
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 0.8rem;
  background: rgba(18, 26, 36, 0.52);
  color: var(--text-muted);
  text-align: left;
  cursor: pointer;
}

.screenshot-gallery-thumbnails button.is-active {
  border-color: rgba(96, 165, 250, 0.48);
  background: rgba(59, 130, 246, 0.1);
  color: var(--text-primary);
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.08);
}

.screenshot-gallery-thumbnails img {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.5rem;
  object-fit: cover;
  object-position: top;
}

.screenshot-gallery-thumbnails span {
  overflow: hidden;
  font-size: 0.72rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spendly-story-dialog {
  height: min(90dvh, 52rem);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.spendly-story-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: 13.5rem minmax(0, 1fr);
  overflow: hidden;
}

.spendly-story-tabs {
  min-height: 0;
  padding: 0.9rem;
  display: grid;
  align-content: start;
  gap: 0.42rem;
  border-right: 1px solid var(--border);
  background: rgba(8, 11, 16, 0.56);
  overflow-y: auto;
}

.spendly-story-tabs button {
  width: 100%;
  min-height: 3.7rem;
  padding: 0.7rem 0.75rem;
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr);
  align-items: center;
  gap: 0.65rem;
  border: 1px solid transparent;
  border-radius: 0.85rem;
  background: transparent;
  color: var(--text-muted);
  text-align: left;
  cursor: pointer;
}

.spendly-story-tabs button:hover {
  color: var(--text-primary);
  background: rgba(59, 130, 246, 0.05);
}

.spendly-story-tabs button.is-active {
  border-color: rgba(96, 165, 250, 0.32);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.14), rgba(18, 26, 36, 0.74));
  color: var(--text-primary);
  box-shadow: inset 3px 0 0 var(--accent-primary);
}

.spendly-story-tabs span {
  color: var(--accent-light);
  font-family: var(--mono-font);
  font-size: 0.63rem;
  font-weight: 700;
}

.spendly-story-tabs strong {
  font-size: 0.76rem;
  line-height: 1.25;
}

.spendly-story-panels {
  min-width: 0;
  min-height: 0;
  padding: clamp(1.35rem, 3vw, 2.5rem);
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.spendly-story-panel[hidden] {
  display: none;
}

.spendly-story-panel.is-active {
  animation: story-panel-in 200ms ease both;
}

.spendly-story-panel h3 {
  max-width: 46rem;
  margin: 0.75rem 0 0;
  font-family: var(--heading-font);
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.spendly-story-panel > p {
  max-width: 46rem;
  margin: 1rem 0 0;
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.72;
}

.story-insight-grid {
  max-width: 46rem;
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.story-insight-grid div,
.story-decision-list div {
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 1rem;
  background: rgba(8, 11, 16, 0.42);
}

.story-insight-grid small {
  display: block;
  color: var(--text-muted);
  font-family: var(--mono-font);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.story-insight-grid strong {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.88rem;
  line-height: 1.35;
}

.story-point-list {
  max-width: 45rem;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
  list-style: none;
}

.story-point-list li {
  position: relative;
  padding: 0.8rem 0.9rem 0.8rem 2.1rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 0.85rem;
  color: var(--text-secondary);
  background: rgba(8, 11, 16, 0.34);
  font-size: 0.84rem;
  line-height: 1.5;
}

.story-point-list li::before {
  content: "";
  position: absolute;
  top: 1.16rem;
  left: 0.95rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 0.8rem rgba(59, 130, 246, 0.48);
}

.story-decision-list {
  max-width: 46rem;
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.story-decision-list span {
  color: var(--accent-light);
  font-family: var(--mono-font);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
}

.story-decision-list p {
  margin: 0.55rem 0 0;
  color: var(--text-secondary);
  font-size: 0.76rem;
  line-height: 1.5;
}

.story-product-preview {
  max-width: 41rem;
  margin-top: 1.4rem;
  padding: 0.8rem;
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 1rem;
  background: rgba(8, 11, 16, 0.48);
  color: var(--text-primary);
  text-align: left;
  cursor: zoom-in;
}

.story-product-preview:hover {
  border-color: rgba(96, 165, 250, 0.48);
  background: rgba(59, 130, 246, 0.07);
}

.story-product-preview img {
  width: 6.5rem;
  height: 7.4rem;
  border-radius: 0.7rem;
  object-fit: cover;
  object-position: top;
}

.story-product-preview span {
  display: grid;
  gap: 0.45rem;
}

.story-product-preview small {
  color: var(--accent-light);
  font-family: var(--mono-font);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
}

.story-product-preview strong {
  font-family: var(--heading-font);
  font-size: 1.05rem;
  font-weight: 600;
}

.spendly-story-panel blockquote {
  max-width: 44rem;
  margin: 1.5rem 0 0;
  padding: 1.2rem 1.35rem;
  border-left: 3px solid var(--accent-primary);
  border-radius: 0 1rem 1rem 0;
  background: rgba(59, 130, 246, 0.06);
  color: #c8d5e5;
  font-size: 0.94rem;
  line-height: 1.65;
}

.spendly-story-footer {
  min-height: 4.4rem;
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--border);
  background: rgba(8, 11, 16, 0.8);
}

.spendly-story-footer > span {
  color: var(--text-muted);
  font-family: var(--mono-font);
  font-size: 0.62rem;
  font-weight: 600;
}

.spendly-story-footer a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-primary);
  font-size: 0.75rem;
  font-weight: 700;
}

@keyframes portfolio-overlay-in {
  from { opacity: 0; transform: translateY(0.7rem) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes story-panel-in {
  from { opacity: 0; transform: translateY(0.35rem); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 860px) {
  .screenshot-gallery-figure {
    grid-template-columns: 1fr;
  }

  .screenshot-gallery-image-wrap {
    height: min(61dvh, 36rem);
  }

  .screenshot-gallery-figure figcaption {
    padding: 0 0.25rem;
  }

  .spendly-story-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .spendly-story-tabs {
    padding: 0.65rem;
    grid-template-columns: repeat(5, minmax(8.5rem, 1fr));
    grid-auto-flow: column;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    overflow-y: hidden;
  }

  .spendly-story-tabs button {
    min-height: 3.25rem;
  }

  .story-decision-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .screenshot-gallery,
  .spendly-story-overlay {
    padding: 0;
  }

  .screenshot-gallery-dialog,
  .spendly-story-dialog {
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .overlay-header,
  .spendly-story-header {
    min-height: 4.7rem;
    padding: 0.8rem 0.9rem;
  }

  .overlay-header h2 {
    font-size: 1.2rem;
  }

  .spendly-story-header h2 {
    max-width: calc(100vw - 5rem);
    font-size: 1.25rem;
  }

  .screenshot-gallery-stage {
    padding: 0.7rem;
    grid-template-columns: 2.5rem minmax(0, 1fr) 2.5rem;
    gap: 0.35rem;
  }

  .gallery-arrow {
    width: 2.45rem;
    height: 2.45rem;
  }

  .screenshot-gallery-image-wrap {
    height: min(64dvh, 34rem);
  }

  .screenshot-gallery-thumbnails {
    padding: 0.6rem;
    gap: 0.4rem;
  }

  .screenshot-gallery-thumbnails button {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 0.4rem 0.25rem;
  }

  .screenshot-gallery-thumbnails img {
    width: 2rem;
    height: 2rem;
  }

  .screenshot-gallery-thumbnails span {
    font-size: 0.58rem;
  }

  .spendly-story-tabs {
    grid-template-columns: repeat(5, minmax(7.4rem, 1fr));
  }

  .spendly-story-panels {
    padding: 1.15rem;
  }

  .spendly-story-panel h3 {
    font-size: 1.8rem;
  }

  .story-insight-grid {
    grid-template-columns: 1fr;
  }

  .spendly-story-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .screenshot-gallery-dialog,
  .spendly-story-dialog,
  .spendly-story-panel.is-active {
    animation: none;
  }

  .spendly-screen-link .spendly-preview-viewport img {
    transition: none;
  }
}
/* =========================================================
   Spendly concise story + compact screenshot gallery
   ========================================================= */

.screenshot-gallery-dialog {
  width: min(94vw, 66rem);
  max-height: min(88dvh, 46rem);
}

.screenshot-gallery-stage {
  padding: 0.75rem;
  grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem;
  gap: 0.65rem;
}

.gallery-arrow {
  width: 2.75rem;
  height: 2.75rem;
}

.screenshot-gallery-figure {
  grid-template-columns: minmax(0, 1fr) minmax(13.5rem, 0.34fr);
  gap: 1rem;
}

.screenshot-gallery-image-wrap {
  height: min(54dvh, 31rem);
  padding: 0.75rem;
}

.screenshot-gallery-image-wrap img {
  width: auto;
  height: auto;
  max-width: min(100%, 28rem);
  max-height: 100%;
  object-fit: contain;
}

.screenshot-gallery-figure figcaption strong {
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
}

.screenshot-gallery-figure figcaption p {
  margin-top: 0.65rem;
  font-size: 0.8rem;
  line-height: 1.55;
}

.screenshot-gallery-thumbnails {
  padding: 0.65rem 0.8rem 0.8rem;
}

.spendly-story-dialog-simple {
  width: min(94vw, 68rem);
  height: auto;
  max-height: min(88dvh, 44rem);
  display: grid;
  grid-template-rows: auto auto auto auto;
  overflow: hidden;
}

.spendly-story-dialog-simple .spendly-story-header {
  min-height: 4.8rem;
  padding-block: 0.85rem;
}

.spendly-story-dialog-simple .spendly-story-header h2 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.spendly-story-simple {
  padding: 1rem 1.15rem 0.8rem;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.spendly-story-simple article {
  min-width: 0;
  padding: 1rem;

  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 1rem;

  background:
    linear-gradient(
      145deg,
      rgba(18, 26, 36, 0.78),
      rgba(8, 11, 16, 0.58)
    );
}

.spendly-story-simple article > span,
.spendly-story-takeaway > span {
  color: var(--accent-light);

  font-family: var(--mono-font);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.spendly-story-simple h3 {
  margin: 0.58rem 0 0;

  font-family: var(--heading-font);
  font-size: clamp(1rem, 1.55vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.spendly-story-simple p {
  margin: 0.65rem 0 0;

  color: var(--text-secondary);

  font-size: 0.76rem;
  line-height: 1.56;
}

.spendly-story-takeaway {
  margin: 0 1.15rem 0.9rem;
  padding: 0.82rem 1rem;

  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  align-items: center;
  gap: 0.8rem;

  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 0.9rem;

  background: rgba(59, 130, 246, 0.06);
}

.spendly-story-takeaway p {
  margin: 0;

  color: #c2cfdf;

  font-size: 0.8rem;
  line-height: 1.5;
}

.spendly-story-dialog-simple .spendly-story-footer {
  min-height: 3.8rem;
  padding-block: 0.68rem;
}

@media (max-width: 860px) {
  .screenshot-gallery-dialog {
    max-height: min(92dvh, 48rem);
  }

  .screenshot-gallery-figure {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .screenshot-gallery-image-wrap {
    height: min(55dvh, 30rem);
  }

  .screenshot-gallery-figure figcaption {
    max-width: 38rem;
    margin-inline: auto;
    padding-inline: 0.5rem;
  }

  .spendly-story-dialog-simple {
    max-height: 92dvh;
    overflow-y: auto;
  }

  .spendly-story-simple {
    grid-template-columns: 1fr;
  }

  .spendly-story-takeaway {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .screenshot-gallery-dialog,
  .spendly-story-dialog-simple {
    width: 100vw;
    max-height: 100dvh;
  }

  .screenshot-gallery-stage {
    grid-template-columns: 2.35rem minmax(0, 1fr) 2.35rem;
    padding: 0.55rem;
  }

  .gallery-arrow {
    width: 2.3rem;
    height: 2.3rem;
  }

  .screenshot-gallery-image-wrap {
    height: min(58dvh, 31rem);
    padding: 0.45rem;
  }

  .screenshot-gallery-figure figcaption p {
    font-size: 0.74rem;
  }

  .spendly-story-simple {
    padding: 0.85rem;
  }

  .spendly-story-takeaway {
    margin: 0 0.85rem 0.85rem;
  }
}
/* =========================================================
   Final compact Spendly interactions
   ========================================================= */

/* ---------- Compact screenshot gallery ---------- */

.screenshot-gallery-dialog {
  width: min(88vw, 54rem);
  height: auto;
  max-height: min(78dvh, 35rem);
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.screenshot-gallery-dialog .overlay-header {
  min-height: 4rem;
  padding: 0.65rem 0.9rem;
}

.screenshot-gallery-dialog .overlay-header h2 {
  font-size: 1.15rem;
}

.screenshot-gallery-stage {
  min-height: 0;
  padding: 0.65rem;

  grid-template-columns: 2.35rem minmax(0, 1fr) 2.35rem;
  gap: 0.55rem;
}

.gallery-arrow {
  width: 2.3rem;
  height: 2.3rem;
}

.screenshot-gallery-figure {
  min-height: 0;

  grid-template-columns: minmax(0, 1fr) 11.5rem;
  align-items: center;
  gap: 0.85rem;
}

.screenshot-gallery-image-wrap {
  height: clamp(16rem, 34dvh, 20rem);
  min-height: 0;
  padding: 0.65rem;
}

.screenshot-gallery-image-wrap img {
  width: auto;
  height: auto;
  max-width: min(100%, 18rem);
  max-height: 100%;
  object-fit: contain;
}

.screenshot-gallery-figure figcaption {
  padding: 0.25rem;
}

.screenshot-gallery-figure figcaption span {
  font-size: 0.58rem;
}

.screenshot-gallery-figure figcaption strong {
  margin-top: 0.55rem;
  font-size: 1.1rem;
  line-height: 1.12;
}

.screenshot-gallery-figure figcaption p {
  margin-top: 0.55rem;
  font-size: 0.72rem;
  line-height: 1.48;
}

.screenshot-gallery-thumbnails {
  padding: 0.5rem 0.65rem 0.65rem;
  gap: 0.45rem;
}

.screenshot-gallery-thumbnails button {
  min-height: 2.85rem;
  padding: 0.38rem 0.5rem;
}

.screenshot-gallery-thumbnails img {
  width: 2rem;
  height: 2rem;
}

.screenshot-gallery-thumbnails span {
  font-size: 0.6rem;
}

/* ---------- One-stage-at-a-time project story ---------- */

.spendly-story-dialog-simple {
  width: min(88vw, 49rem);
  max-height: min(78dvh, 31rem);

  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
}

.spendly-story-dialog-simple .spendly-story-header {
  min-height: 4rem;
  padding: 0.65rem 0.9rem;
}

.spendly-story-dialog-simple .spendly-story-header h2 {
  font-size: 1.35rem;
}

.spendly-story-steps {
  padding: 0.65rem 0.85rem;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;

  border-bottom: 1px solid var(--border);
  background: rgba(8, 11, 16, 0.58);
}

.spendly-story-steps button {
  min-height: 2.75rem;
  padding: 0.55rem 0.6rem;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;

  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 0.75rem;

  background: rgba(18, 26, 36, 0.45);
  color: var(--text-secondary);

  font: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;

  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.spendly-story-steps button span {
  color: var(--accent-light);

  font-family: var(--mono-font);
  font-size: 0.58rem;
}

.spendly-story-steps button:hover {
  color: var(--text-primary);
  border-color: rgba(96, 165, 250, 0.28);
}

.spendly-story-steps button.is-active {
  color: var(--text-primary);
  border-color: rgba(96, 165, 250, 0.5);
  background:
    linear-gradient(
      135deg,
      rgba(59, 130, 246, 0.16),
      rgba(18, 26, 36, 0.74)
    );
}

.spendly-story-steps button:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 2px;
}

.spendly-story-stage {
  min-height: 0;
  padding: 0.9rem;

  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.spendly-story-stage-panel {
  min-height: 10rem;
  padding: 1rem 1.05rem;

  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 0.95rem;

  background:
    radial-gradient(
      circle at 92% 0%,
      rgba(59, 130, 246, 0.11),
      transparent 32%
    ),
    rgba(13, 18, 26, 0.7);
}

.spendly-story-stage-panel[hidden] {
  display: none;
}

.spendly-story-stage-panel.is-active {
  animation: spendly-story-stage-in 200ms ease both;
}

.spendly-story-stage-panel > span {
  color: var(--accent-light);

  font-family: var(--mono-font);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.spendly-story-stage-panel h3 {
  max-width: 34rem;
  margin: 0.65rem 0 0;

  font-family: var(--heading-font);
  font-size: clamp(1.35rem, 2.3vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.spendly-story-stage-panel p {
  max-width: 39rem;
  margin: 0.75rem 0 0;

  color: var(--text-secondary);

  font-size: 0.8rem;
  line-height: 1.58;
}

.spendly-story-stage-footer {
  padding-top: 0.65rem;

  display: grid;
  grid-template-columns: 5.5rem 1fr 5.5rem;
  align-items: center;
  gap: 0.55rem;
}

.spendly-story-stage-footer button {
  min-height: 2.35rem;
  padding: 0.5rem 0.7rem;

  border: 1px solid var(--border);
  border-radius: 0.7rem;

  background: rgba(18, 26, 36, 0.68);
  color: var(--text-primary);

  font: inherit;
  font-size: 0.67rem;
  font-weight: 700;
  cursor: pointer;
}

.spendly-story-stage-footer button:last-child {
  border-color: rgba(96, 165, 250, 0.35);
  background: rgba(59, 130, 246, 0.1);
}

.spendly-story-stage-footer button:disabled {
  opacity: 0.34;
  cursor: not-allowed;
}

.spendly-story-stage-footer > span {
  color: var(--text-muted);

  font-family: var(--mono-font);
  font-size: 0.61rem;
  font-weight: 700;
  text-align: center;
}

.spendly-story-takeaway {
  margin: 0 0.9rem 0.7rem;
  padding: 0.68rem 0.8rem;

  grid-template-columns: 7rem minmax(0, 1fr);
}

.spendly-story-takeaway p {
  font-size: 0.72rem;
}

.spendly-story-dialog-simple .spendly-story-footer {
  min-height: 3.3rem;
  padding: 0.55rem 0.9rem;
}

.spendly-story-dialog-simple .spendly-story-footer > span {
  font-size: 0.55rem;
}

.spendly-story-dialog-simple .spendly-story-footer a {
  font-size: 0.67rem;
}

@keyframes spendly-story-stage-in {
  from {
    opacity: 0;
    transform: translateY(0.3rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .screenshot-gallery-dialog {
    width: min(94vw, 40rem);
    max-height: 88dvh;
  }

  .screenshot-gallery-figure {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .screenshot-gallery-image-wrap {
    height: clamp(15rem, 46dvh, 21rem);
  }

  .screenshot-gallery-figure figcaption {
    max-width: 28rem;
    margin-inline: auto;
  }

  .spendly-story-dialog-simple {
    width: min(94vw, 40rem);
    max-height: 88dvh;
  }

  .spendly-story-steps {
    grid-template-columns: 1fr;
  }

  .spendly-story-steps button {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .screenshot-gallery-dialog,
  .spendly-story-dialog-simple {
    width: 100vw;
    max-height: 100dvh;
  }

  .screenshot-gallery-stage {
    grid-template-columns: 2.1rem minmax(0, 1fr) 2.1rem;
    gap: 0.25rem;
  }

  .gallery-arrow {
    width: 2.05rem;
    height: 2.05rem;
  }

  .screenshot-gallery-image-wrap {
    height: min(48dvh, 19rem);
    padding: 0.35rem;
  }

  .screenshot-gallery-thumbnails button {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .spendly-story-dialog-simple {
    overflow-y: auto;
  }

  .spendly-story-stage-panel {
    min-height: 11rem;
  }

  .spendly-story-stage-footer {
    grid-template-columns: 4.8rem 1fr 4.8rem;
  }

  .spendly-story-takeaway {
    grid-template-columns: 1fr;
  }

  .spendly-story-dialog-simple .spendly-story-footer {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .spendly-story-stage-panel.is-active {
    animation: none;
  }

  .spendly-story-steps button {
    transition: none;
  }
}
/* =========================================================
   Spendly static previews + final story layout
   ========================================================= */

.spendly-screen-static {
  cursor: default;
  user-select: none;
  pointer-events: none;
}

.spendly-screen-static:focus,
.spendly-screen-static:focus-visible {
  outline: none;
}

/* The story modal uses natural document flow. No paragraph, control or
   footer is allowed to overlap another row. */
.spendly-story-dialog-simple {
  width: min(90vw, 50rem);
  height: auto;
  max-height: none;

  grid-template-rows: auto auto auto auto auto;
  overflow: hidden;
}

.spendly-story-stage {
  min-height: 0;
  padding: 0.9rem;

  display: block;
}

.spendly-story-stage-panel {
  width: 100%;
  min-height: 0;
  height: auto;
  padding: 1rem 1.05rem;

  overflow: visible;
}

.spendly-story-stage-panel h3,
.spendly-story-stage-panel p {
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: normal;
}

.spendly-story-stage-panel p {
  margin-bottom: 0;
}

.spendly-story-stage-footer {
  position: static;
  width: 100%;
  margin-top: 0.75rem;
  padding-top: 0;

  align-self: auto;
}

.spendly-story-takeaway {
  position: static;
  margin-top: 0;
}

.spendly-story-dialog-simple .spendly-story-footer {
  position: static;
}

@media (max-width: 760px) {
  .spendly-story-dialog-simple {
    width: min(94vw, 42rem);
    max-height: calc(100dvh - 1.5rem);
    overflow-y: auto;
  }
}

@media (max-width: 620px) {
  .spendly-story-dialog-simple {
    width: 100vw;
    max-height: 100dvh;
  }

  .spendly-story-stage-panel {
    padding: 0.95rem;
  }
}
/* =========================================================
   Spendly feature rows + subtle preview motion
   ========================================================= */

.featured-project-features {
  margin-top: 1.15rem;

  display: grid;
  gap: 0;
}

.featured-project-feature {
  position: relative;

  min-height: 3.15rem;
  padding: 0.62rem 0;

  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  align-items: center;
  gap: 0.7rem;

  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.featured-project-feature:first-child {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.featured-project-feature > span {
  display: grid;
  place-items: center;

  width: 1.65rem;
  height: 1.65rem;

  border: 1px solid rgba(96, 165, 250, 0.25);
  border-radius: 0.55rem;

  background: rgba(59, 130, 246, 0.07);
  color: var(--accent-light);

  font-family: var(--mono-font);
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.featured-project-feature div {
  min-width: 0;
}

.featured-project-feature strong {
  display: block;

  color: var(--text-primary);

  font-family: var(--heading-font);
  font-size: 0.79rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.featured-project-feature p {
  margin: 0.16rem 0 0;

  color: var(--text-muted);

  font-size: 0.66rem;
  line-height: 1.35;
}

.spendly-showcase::before {
  inset: 7% 1%;

  background:
    radial-gradient(
      circle at 36% 52%,
      rgba(59, 130, 246, 0.13),
      transparent 38%
    ),
    radial-gradient(
      circle at 74% 45%,
      rgba(95, 226, 139, 0.07),
      transparent 35%
    );

  filter: blur(48px);
}

@media (min-width: 721px) {
  .spendly-phone-main {
    animation: spendly-float-main 6.4s ease-in-out infinite;
    will-change: transform;
  }

  .spendly-phone-small.insights {
    animation: spendly-float-insights 7.2s ease-in-out 0.5s infinite;
    will-change: transform;
  }

  .spendly-phone-small.store {
    animation: spendly-float-store 7.8s ease-in-out 1s infinite;
    will-change: transform;
  }
}

@keyframes spendly-float-main {
  0%,
  100% {
    transform: rotate(-1.8deg) translateY(0);
  }

  50% {
    transform: rotate(-1.8deg) translateY(-0.34rem);
  }
}

@keyframes spendly-float-insights {
  0%,
  100% {
    transform: rotate(2.2deg) translate(-0.2rem, 0);
  }

  50% {
    transform: rotate(2.2deg) translate(-0.2rem, 0.28rem);
  }
}

@keyframes spendly-float-store {
  0%,
  100% {
    transform: rotate(-1.4deg) translateX(0.45rem);
  }

  50% {
    transform: rotate(-1.4deg) translateX(0.68rem);
  }
}

@media (max-width: 560px) {
  .featured-project-feature {
    grid-template-columns: 1.85rem minmax(0, 1fr);
    gap: 0.58rem;
  }

  .featured-project-feature > span {
    width: 1.5rem;
    height: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .spendly-phone-main,
  .spendly-phone-small.insights,
  .spendly-phone-small.store {
    animation: none;
  }
}
/* =========================================================
   Spendly hover-only preview interaction
   Replaces the previous continuous floating animations.
   ========================================================= */

.spendly-phone-main,
.spendly-phone-small.insights,
.spendly-phone-small.store {
  animation: none !important;
  will-change: auto;

  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    filter 220ms ease;
}

.spendly-phone figcaption {
  transition:
    color 220ms ease,
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

@media (hover: hover) and (pointer: fine) and (min-width: 721px) {
  .spendly-phone-main:hover {
    transform: rotate(-0.45deg) translateY(-0.42rem) scale(1.018);

    border-color: rgba(96, 165, 250, 0.34);

    box-shadow:
      0 1.6rem 3.8rem rgba(0, 0, 0, 0.44),
      0 0 2.4rem rgba(59, 130, 246, 0.13);
  }

  .spendly-phone-small.insights:hover {
    transform: rotate(0.8deg) translate(-0.2rem, -0.34rem) scale(1.025);

    border-color: rgba(96, 165, 250, 0.34);

    box-shadow:
      0 1.35rem 3rem rgba(0, 0, 0, 0.4),
      0 0 2rem rgba(59, 130, 246, 0.12);
  }

  .spendly-phone-small.store:hover {
    transform: rotate(-0.55deg) translate(0.55rem, -0.3rem) scale(1.025);

    border-color: rgba(126, 231, 156, 0.3);

    box-shadow:
      0 1.35rem 3rem rgba(0, 0, 0, 0.4),
      0 0 2rem rgba(95, 226, 139, 0.1);
  }

  .spendly-phone:hover figcaption {
    color: #ffffff;
    border-color: rgba(96, 165, 250, 0.72);
    background: rgba(8, 14, 24, 0.98);

    box-shadow:
      0 0.75rem 1.8rem rgba(0, 0, 0, 0.54),
      0 0 1.35rem rgba(59, 130, 246, 0.2);

    transform: translateY(-0.08rem);
  }

  .spendly-phone-small.store:hover figcaption {
    border-color: rgba(126, 231, 156, 0.62);

    box-shadow:
      0 0.75rem 1.8rem rgba(0, 0, 0, 0.54),
      0 0 1.35rem rgba(95, 226, 139, 0.16);
  }
}

@media (hover: none), (pointer: coarse) {
  .spendly-phone-main,
  .spendly-phone-small.insights,
  .spendly-phone-small.store,
  .spendly-phone figcaption {
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .spendly-phone-main,
  .spendly-phone-small.insights,
  .spendly-phone-small.store,
  .spendly-phone figcaption {
    animation: none !important;
    transition: none !important;
  }
}
/* =========================================================
   Travel Hub featured project
   ========================================================= */

.travel-hub-showcase {
  position: relative;

  min-height: 33rem;

  display: grid;
  grid-template-columns: minmax(13rem, 1.08fr) minmax(10rem, 0.92fr);
  align-items: center;
  gap: 0.9rem;
}

.travel-hub-showcase::before {
  content: "";

  position: absolute;
  inset: 7% 2%;

  border-radius: 50%;

  background:
    radial-gradient(
      circle at 35% 52%,
      rgba(77, 209, 239, 0.14),
      transparent 40%
    ),
    radial-gradient(
      circle at 78% 42%,
      rgba(96, 165, 250, 0.1),
      transparent 36%
    );

  filter: blur(50px);
  pointer-events: none;
}

.travel-phone {
  position: relative;
  z-index: 1;

  margin: 0;

  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 1.45rem;

  background: #05080d;

  box-shadow: 0 1.35rem 3.2rem rgba(0, 0, 0, 0.38);
  overflow: visible;

  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.travel-screen-static {
  display: block;

  border-radius: inherit;

  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

.travel-screen-static img {
  width: 100%;
  display: block;
}

.travel-phone-main {
  width: min(100%, 14.4rem);
  justify-self: end;

  transform: rotate(-1.7deg);
}

.travel-secondary-screens {
  width: 100%;

  display: grid;
  justify-items: start;
  gap: 0.95rem;
}

.travel-phone-small {
  width: min(100%, 10.9rem);
}

.travel-phone-small.journal {
  transform: rotate(2deg) translateX(-0.1rem);
}

.travel-phone-small.gallery {
  transform: rotate(-1.15deg) translateX(0.4rem);
}

.travel-phone-small.gallery .travel-gallery-crop {
  aspect-ratio: 0.77;
}

.travel-phone-small.gallery img {
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.travel-phone figcaption {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;

  padding: 0.42rem 0.58rem;

  display: inline-flex;
  align-items: center;
  gap: 0.36rem;

  border: 1px solid rgba(77, 209, 239, 0.48);
  border-radius: 999px;

  background: rgba(6, 12, 18, 0.95);
  color: #f6f8fb;

  box-shadow:
    0 0.65rem 1.6rem rgba(0, 0, 0, 0.5),
    0 0 1.1rem rgba(77, 209, 239, 0.13);

  font-family: var(--mono-font);
  font-size: 0.54rem;
  font-weight: 800;
  white-space: nowrap;

  transition:
    border-color 220ms ease,
    color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.travel-phone figcaption span {
  width: 0.36rem;
  height: 0.36rem;

  border-radius: 50%;

  background: #4dd1ef;
  box-shadow: 0 0 0.7rem rgba(77, 209, 239, 0.7);
}

@media (hover: hover) and (pointer: fine) and (min-width: 721px) {
  .travel-phone-main:hover {
    transform: rotate(-0.45deg) translateY(-0.4rem) scale(1.018);
    border-color: rgba(77, 209, 239, 0.36);

    box-shadow:
      0 1.7rem 3.9rem rgba(0, 0, 0, 0.45),
      0 0 2.4rem rgba(77, 209, 239, 0.12);
  }

  .travel-phone-small.journal:hover {
    transform: rotate(0.65deg) translate(-0.1rem, -0.32rem) scale(1.025);
    border-color: rgba(96, 165, 250, 0.35);
  }

  .travel-phone-small.gallery:hover {
    transform: rotate(-0.4deg) translate(0.45rem, -0.28rem) scale(1.025);
    border-color: rgba(77, 209, 239, 0.33);
  }

  .travel-phone:hover figcaption {
    color: #ffffff;
    border-color: rgba(77, 209, 239, 0.75);
    transform: translateY(-0.08rem);
  }
}

.travel-story-overlay {
  z-index: 4050;
}

.travel-story-dialog {
  width: min(90vw, 50rem);
  height: auto;
  max-height: min(88dvh, 42rem);

  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
}

.travel-story-stage {
  min-height: 0;
}

.travel-story-comparison {
  margin-top: 0.85rem;

  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.8rem minmax(0, 1fr);
  align-items: center;
  gap: 0.55rem;
}

.travel-story-comparison > span {
  color: var(--accent-light);

  font-size: 1.3rem;
  text-align: center;
}

.travel-story-comparison figure {
  min-width: 0;
  margin: 0;
  padding: 0.48rem;

  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 0.85rem;

  background: rgba(8, 11, 16, 0.48);
}

.travel-story-comparison img {
  width: 100%;
  height: 8.7rem;

  display: block;

  border-radius: 0.6rem;

  object-fit: cover;
  object-position: top center;
}

.travel-story-comparison figcaption {
  margin-top: 0.45rem;

  color: #b9c6d6;

  font-family: var(--mono-font);
  font-size: 0.56rem;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 820px) {
  .travel-hub-showcase {
    min-height: 31rem;
    grid-template-columns: minmax(12rem, 1.1fr) minmax(9.5rem, 0.9fr);
  }

  .travel-phone-main {
    width: min(100%, 13.8rem);
  }

  .travel-phone-small {
    width: min(100%, 10.4rem);
  }
}

@media (max-width: 620px) {
  .travel-hub-showcase {
    min-height: auto;
    grid-template-columns: minmax(10.5rem, 1fr) minmax(7.4rem, 0.72fr);
    gap: 0.65rem;
  }

  .travel-phone-main {
    width: min(100%, 11.1rem);
  }

  .travel-phone-small {
    width: min(100%, 7.6rem);
  }

  .travel-phone figcaption {
    right: 0.32rem;
    bottom: 0.32rem;
    padding: 0.34rem 0.44rem;
    font-size: 0.42rem;
  }

  .travel-story-dialog {
    width: 100vw;
    max-height: 100dvh;
    overflow-y: auto;
  }

  .travel-story-comparison {
    grid-template-columns: 1fr;
  }

  .travel-story-comparison > span {
    transform: rotate(90deg);
  }

  .travel-story-comparison img {
    height: 10rem;
  }
}

@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .travel-phone,
  .travel-phone figcaption {
    transition: none;
  }
}
/* =========================================================
   Travel Hub story comparison final layout fix
   ========================================================= */

.travel-story-dialog {
  width: min(95vw, 68rem);
  height: auto;
  max-height: min(94dvh, 52rem);

  grid-template-rows: auto auto auto auto auto;
  overflow-y: auto;
  overflow-x: hidden;

  scrollbar-width: thin;
  scrollbar-color: rgba(96, 165, 250, 0.34) transparent;
}

.travel-story-dialog::-webkit-scrollbar {
  width: 7px;
}

.travel-story-dialog::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.3);
}

.travel-story-dialog .spendly-story-stage {
  min-height: 0;
  padding: 1rem 1.1rem 0.85rem;

  display: block;
}

.travel-story-dialog .spendly-story-stage-panel {
  width: 100%;
  min-height: 0;
  height: auto;
  padding: 1.15rem 1.2rem;

  overflow: visible;
}

.travel-story-dialog .spendly-story-stage-panel h3 {
  max-width: 54rem;
}

.travel-story-dialog .spendly-story-stage-panel p {
  max-width: 56rem;
  margin-bottom: 0;
}

.travel-story-comparison {
  width: 100%;
  margin-top: 1rem;

  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.5rem minmax(0, 1fr);
  align-items: stretch;
  gap: 0.9rem;
}

.travel-story-comparison > span {
  display: grid;
  place-items: center;

  color: var(--accent-light);

  font-size: 1.55rem;
}

.travel-story-comparison figure {
  min-width: 0;
  min-height: 19rem;
  margin: 0;
  padding: 0.7rem;

  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0.55rem;

  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 1rem;

  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(59, 130, 246, 0.09),
      transparent 40%
    ),
    rgba(8, 11, 16, 0.62);
}

.travel-story-comparison img {
  width: 100%;
  height: 17rem;

  display: block;

  border-radius: 0.72rem;

  background: #05080d;

  object-fit: contain;
  object-position: center;
}

.travel-story-comparison figcaption {
  margin: 0;

  font-size: 0.62rem;
}

.travel-story-dialog .spendly-story-stage-footer {
  position: static;
  width: 100%;
  margin-top: 0.85rem;
  padding-top: 0;

  grid-template-columns: 6rem minmax(0, 1fr) 6rem;
}

.travel-story-dialog .spendly-story-takeaway {
  position: static;
  margin: 0 1.1rem 0.85rem;
}

.travel-story-dialog .spendly-story-footer {
  position: static;
}

@media (max-width: 820px) {
  .travel-story-dialog {
    width: min(96vw, 48rem);
    max-height: 94dvh;
  }

  .travel-story-comparison {
    grid-template-columns: 1fr;
  }

  .travel-story-comparison > span {
    min-height: 2rem;
    transform: rotate(90deg);
  }

  .travel-story-comparison figure {
    min-height: 16rem;
  }

  .travel-story-comparison img {
    height: 14rem;
  }
}

@media (max-width: 620px) {
  .travel-story-dialog {
    width: 100vw;
    max-height: 100dvh;
  }

  .travel-story-dialog .spendly-story-stage {
    padding: 0.8rem;
  }

  .travel-story-dialog .spendly-story-stage-panel {
    padding: 1rem;
  }

  .travel-story-dialog .spendly-story-stage-footer {
    grid-template-columns: 5rem minmax(0, 1fr) 5rem;
  }

  .travel-story-dialog .spendly-story-takeaway {
    margin-inline: 0.8rem;
  }
}
/* =========================================================
   Travel Hub full-width evolution comparison
   ========================================================= */

.travel-story-dialog {
  width: min(97vw, 78rem);
  max-height: 96dvh;
}

.travel-story-dialog .spendly-story-stage-panel {
  padding: 1.2rem;
}

.travel-story-dialog .spendly-story-stage-panel h3 {
  max-width: 62rem;
}

.travel-story-dialog .spendly-story-stage-panel p {
  max-width: 64rem;
}

.travel-story-comparison-large {
  width: 100%;
  margin-top: 1.15rem;

  grid-template-columns: minmax(0, 1fr) 3.2rem minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
}

.travel-comparison-card {
  min-width: 0;
  min-height: 0;
  padding: 0.8rem;

  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.7rem;

  border: 1px solid rgba(148, 163, 184, 0.17);
  border-radius: 1.1rem;

  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(59, 130, 246, 0.12),
      transparent 42%
    ),
    rgba(7, 10, 15, 0.72);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025),
    0 1rem 2.6rem rgba(0, 0, 0, 0.2);

  transition:
    transform 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease;
}

.travel-comparison-card figcaption {
  margin: 0;
  padding: 0.1rem 0.1rem 0;

  display: flex;
  align-items: baseline;
  gap: 0.55rem;

  text-align: left;
}

.travel-comparison-card figcaption span {
  color: var(--accent-light);

  font-family: var(--mono-font);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.travel-comparison-card figcaption strong {
  color: var(--text-primary);

  font-family: var(--heading-font);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.travel-comparison-screen {
  width: 100%;
  height: clamp(25rem, 58dvh, 38rem);
  padding: 0.75rem;

  display: grid;
  place-items: center;

  border: 1px solid rgba(148, 163, 184, 0.11);
  border-radius: 0.85rem;

  background:
    radial-gradient(
      circle at 50% 18%,
      rgba(77, 209, 239, 0.06),
      transparent 34%
    ),
    #030609;

  overflow: hidden;
}

.travel-comparison-screen img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;

  display: block;

  border-radius: 0.62rem;

  object-fit: contain;
  object-position: center;

  box-shadow: 0 1.25rem 2.8rem rgba(0, 0, 0, 0.36);
}

.travel-comparison-arrow {
  width: 3.1rem;
  height: 3.1rem;

  display: grid;
  place-items: center;

  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 50%;

  background: rgba(59, 130, 246, 0.08);
  color: var(--accent-light);

  font-size: 1.55rem;

  box-shadow:
    0 0 1.6rem rgba(59, 130, 246, 0.13),
    inset 0 0 0 0.3rem rgba(59, 130, 246, 0.025);

  animation: travel-comparison-arrow-pulse 2.4s ease-in-out infinite;
}

.travel-story-dialog .spendly-story-stage-footer {
  margin-top: 1rem;
}

@media (hover: hover) and (pointer: fine) {
  .travel-comparison-card:hover {
    transform: translateY(-0.25rem);

    border-color: rgba(77, 209, 239, 0.32);

    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.035),
      0 1.35rem 3rem rgba(0, 0, 0, 0.3),
      0 0 2rem rgba(77, 209, 239, 0.08);
  }
}

@keyframes travel-comparison-arrow-pulse {
  0%,
  100% {
    transform: translateX(0);
    box-shadow:
      0 0 1.2rem rgba(59, 130, 246, 0.1),
      inset 0 0 0 0.3rem rgba(59, 130, 246, 0.025);
  }

  50% {
    transform: translateX(0.18rem);
    box-shadow:
      0 0 2rem rgba(59, 130, 246, 0.2),
      inset 0 0 0 0.3rem rgba(59, 130, 246, 0.045);
  }
}

@media (max-width: 900px) {
  .travel-story-dialog {
    width: min(98vw, 54rem);
  }

  .travel-story-comparison-large {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .travel-comparison-arrow {
    margin-inline: auto;
    transform: rotate(90deg);
    animation: travel-comparison-arrow-pulse-mobile 2.4s ease-in-out infinite;
  }

  .travel-comparison-screen {
    height: min(66dvh, 38rem);
  }
}

@keyframes travel-comparison-arrow-pulse-mobile {
  0%,
  100% {
    transform: rotate(90deg) translateX(0);
  }

  50% {
    transform: rotate(90deg) translateX(0.16rem);
  }
}

@media (max-width: 620px) {
  .travel-story-dialog {
    width: 100vw;
    max-height: 100dvh;
  }

  .travel-story-dialog .spendly-story-stage-panel {
    padding: 0.95rem;
  }

  .travel-comparison-card {
    padding: 0.65rem;
    border-radius: 0.95rem;
  }

  .travel-comparison-card figcaption {
    display: grid;
    gap: 0.25rem;
  }

  .travel-comparison-card figcaption strong {
    font-size: 0.92rem;
  }

  .travel-comparison-screen {
    height: min(68dvh, 34rem);
    padding: 0.55rem;
  }

  .travel-comparison-arrow {
    width: 2.7rem;
    height: 2.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .travel-comparison-arrow {
    animation: none;
  }

  .travel-comparison-card {
    transition: none;
  }
}
/* =========================================================
   Travel Hub compact comparison cards
   Keeps full screenshots visible without oversized portrait
   presentation inside wide landscape boxes.
   ========================================================= */

.travel-story-dialog {
  width: min(94vw, 70rem);
  max-height: min(92dvh, 46rem);
}

.travel-story-dialog .spendly-story-stage {
  padding: 0.9rem 1rem 0.8rem;
}

.travel-story-dialog .spendly-story-stage-panel {
  padding: 1rem 1.05rem;
}

.travel-story-dialog .spendly-story-stage-panel h3 {
  max-width: 52rem;
}

.travel-story-dialog .spendly-story-stage-panel p {
  max-width: 55rem;
}

.travel-story-comparison-large {
  width: min(100%, 39rem);
  margin: 1rem auto 0;

  grid-template-columns: minmax(0, 17rem) 2.8rem minmax(0, 17rem);
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
}

.travel-comparison-card {
  min-width: 0;
  padding: 0.72rem;

  display: grid;
  grid-template-rows: auto auto;
  gap: 0.62rem;

  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 1rem;

  background: rgba(8, 11, 16, 0.76);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025),
    0 0.9rem 2.2rem rgba(0, 0, 0, 0.22);

  transition:
    transform 210ms ease,
    border-color 210ms ease,
    box-shadow 210ms ease;
}

.travel-comparison-card figcaption {
  margin: 0;
  padding: 0.05rem 0.05rem 0;

  display: flex;
  align-items: baseline;
  gap: 0.5rem;

  text-align: left;
}

.travel-comparison-card figcaption span {
  color: var(--accent-light);

  font-family: var(--mono-font);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.travel-comparison-card figcaption strong {
  color: var(--text-primary);

  font-family: var(--heading-font);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.018em;
}

.travel-comparison-screen {
  width: 100%;
  padding: 0;

  border: 0;
  border-radius: 0.78rem;

  background: transparent;

  overflow: hidden;
}

.travel-comparison-screen img {
  width: 100%;
  height: auto;
  max-width: 100%;

  display: block;

  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 0.7rem;

  box-shadow: 0 1rem 2.3rem rgba(0, 0, 0, 0.34);

  transition:
    transform 210ms ease,
    filter 210ms ease;
}

.travel-comparison-arrow {
  width: 2.7rem;
  height: 2.7rem;

  display: grid;
  place-items: center;

  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: 50%;

  background: rgba(59, 130, 246, 0.075);
  color: var(--accent-light);

  font-size: 1.3rem;

  box-shadow:
    0 0 1.35rem rgba(59, 130, 246, 0.11),
    inset 0 0 0 0.26rem rgba(59, 130, 246, 0.022);

  animation: none;
  transition:
    transform 210ms ease,
    border-color 210ms ease,
    box-shadow 210ms ease;
}

.travel-story-dialog .spendly-story-stage-footer {
  margin-top: 0.8rem;
}

@media (hover: hover) and (pointer: fine) and (min-width: 821px) {
  .travel-comparison-card:hover {
    transform: translateY(-0.28rem);

    border-color: rgba(77, 209, 239, 0.38);

    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.035),
      0 1.25rem 2.8rem rgba(0, 0, 0, 0.3),
      0 0 1.8rem rgba(77, 209, 239, 0.09);
  }

  .travel-comparison-card:hover .travel-comparison-screen img {
    transform: scale(1.018);
    filter: brightness(1.04);
  }

  .travel-comparison-card:hover figcaption span {
    color: #7fe8ff;
  }

  .travel-comparison-arrow:hover {
    transform: translateX(0.12rem);

    border-color: rgba(96, 165, 250, 0.5);

    box-shadow:
      0 0 1.8rem rgba(59, 130, 246, 0.18),
      inset 0 0 0 0.26rem rgba(59, 130, 246, 0.035);
  }
}

@media (max-width: 900px) {
  .travel-story-dialog {
    width: min(96vw, 46rem);
    max-height: 94dvh;
  }

  .travel-story-comparison-large {
    width: min(100%, 18rem);

    grid-template-columns: 1fr;
    gap: 0.72rem;
  }

  .travel-comparison-arrow {
    margin-inline: auto;
    transform: rotate(90deg);
  }

}

@media (max-width: 620px) {
  .travel-story-dialog {
    width: 100vw;
    max-height: 100dvh;
  }

  .travel-story-dialog .spendly-story-stage {
    padding: 0.75rem;
  }

  .travel-story-dialog .spendly-story-stage-panel {
    padding: 0.9rem;
  }

  .travel-comparison-card {
    padding: 0.62rem;
    border-radius: 0.9rem;
  }

  .travel-comparison-card figcaption {
    display: grid;
    gap: 0.22rem;
  }

  .travel-comparison-card figcaption strong {
    font-size: 0.9rem;
  }


  .travel-comparison-arrow {
    width: 2.45rem;
    height: 2.45rem;
  }
}

@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .travel-comparison-card,
  .travel-comparison-screen img,
  .travel-comparison-arrow {
    animation: none !important;
    transition: none !important;
  }
}

/* =========================================================
   Travel Hub stage 02 viewport fit
   Compacts only the evolution stage on laptop screens so the
   full comparison and story controls remain visible together.
   ========================================================= */

@media (min-width: 901px) {
  .travel-story-dialog:has(#travel-story-panel-evolution.is-active) {
    width: min(92vw, 65rem);
    max-height: calc(100dvh - 0.25rem);
  }

  .travel-story-dialog:has(#travel-story-panel-evolution.is-active)
    .spendly-story-header {
    min-height: 2.8rem;
    padding: 0.4rem 0.75rem;
  }

  .travel-story-dialog:has(#travel-story-panel-evolution.is-active)
    .spendly-story-header
    .overlay-kicker {
    font-size: 0.52rem;
  }

  .travel-story-dialog:has(#travel-story-panel-evolution.is-active)
    .spendly-story-header
    h2 {
    margin-top: 0.14rem;
    font-size: 1.1rem;
  }

  .travel-story-dialog:has(#travel-story-panel-evolution.is-active)
    .overlay-close {
    width: 2.05rem;
    height: 2.05rem;
  }

  .travel-story-dialog:has(#travel-story-panel-evolution.is-active)
    .spendly-story-steps {
    padding: 0.38rem 0.7rem;
    gap: 0.38rem;
  }

  .travel-story-dialog:has(#travel-story-panel-evolution.is-active)
    .spendly-story-steps
    button {
    min-height: 2.05rem;
    padding: 0.34rem 0.48rem;
    font-size: 0.63rem;
  }

  .travel-story-dialog:has(#travel-story-panel-evolution.is-active)
    .spendly-story-stage {
    padding: 0.48rem 0.7rem 0.42rem;
  }

  #travel-story-panel-evolution {
    padding: 0.65rem 0.8rem;
  }

  #travel-story-panel-evolution > span {
    font-size: 0.54rem;
  }

  #travel-story-panel-evolution h3 {
    margin-top: 0.34rem;
    font-size: 1.45rem;
    line-height: 1.04;
  }

  #travel-story-panel-evolution > p {
    margin-top: 0.42rem;
    font-size: 0.72rem;
    line-height: 1.4;
  }

  #travel-story-panel-evolution .travel-story-comparison-large {
    width: min(100%, 27rem);
    margin-top: 0.55rem;

    grid-template-columns:
      minmax(0, 11rem)
      2.1rem
      minmax(0, 11rem);
    gap: 0.6rem;
  }

  #travel-story-panel-evolution .travel-comparison-card {
    padding: 0.46rem;
    gap: 0.36rem;
    border-radius: 0.8rem;
  }

  #travel-story-panel-evolution .travel-comparison-card figcaption {
    gap: 0.34rem;
  }

  #travel-story-panel-evolution .travel-comparison-card figcaption span {
    font-size: 0.5rem;
  }

  #travel-story-panel-evolution .travel-comparison-card figcaption strong {
    font-size: 0.76rem;
  }

  #travel-story-panel-evolution .travel-comparison-screen {
    height: auto;
  }

  #travel-story-panel-evolution .travel-comparison-screen img {
    height: auto;
    max-height: none;
    border-radius: 0.58rem;
  }

  #travel-story-panel-evolution .travel-comparison-arrow {
    width: 2.1rem;
    height: 2.1rem;
    font-size: 1.03rem;
  }

  .travel-story-dialog:has(#travel-story-panel-evolution.is-active)
    .spendly-story-stage-footer {
    min-height: 1.95rem;
    margin-top: 0.35rem;
  }

  .travel-story-dialog:has(#travel-story-panel-evolution.is-active)
    .spendly-story-stage-footer
    button {
    min-height: 1.95rem;
    padding: 0.32rem 0.52rem;
    font-size: 0.63rem;
  }

  .travel-story-dialog:has(#travel-story-panel-evolution.is-active)
    .spendly-story-takeaway {
    margin: 0 0.7rem 0.35rem;
    padding: 0.42rem 0.58rem;

    grid-template-columns: 6.2rem minmax(0, 1fr);
  }

  .travel-story-dialog:has(#travel-story-panel-evolution.is-active)
    .spendly-story-takeaway
    > span {
    font-size: 0.53rem;
  }

  .travel-story-dialog:has(#travel-story-panel-evolution.is-active)
    .spendly-story-takeaway
    p {
    font-size: 0.64rem;
    line-height: 1.36;
  }

  .travel-story-dialog:has(#travel-story-panel-evolution.is-active)
    .spendly-story-footer {
    min-height: 2.4rem;
    padding: 0.34rem 0.7rem;
  }

  .travel-story-dialog:has(#travel-story-panel-evolution.is-active)
    .spendly-story-footer
    > span {
    font-size: 0.51rem;
  }

  .travel-story-dialog:has(#travel-story-panel-evolution.is-active)
    .spendly-story-footer
    a {
    font-size: 0.62rem;
  }
}


/* =========================================================
   Discover Corralejo — early-development blueprint
   Image-free presentation until project media is approved.
   ========================================================= */

.discover-project-panel {
  grid-template-columns: minmax(18rem, 0.88fr) minmax(25rem, 1.12fr);
}

.discover-project-features {
  margin-top: 1.05rem;
}

.discover-project-status {
  margin-top: 1rem;
  padding: 0.78rem 0.85rem;

  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.68rem;

  border: 1px solid rgba(96, 165, 250, 0.16);
  border-radius: 0.85rem;

  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.07), rgba(8, 11, 16, 0.28));
}

.discover-status-indicator {
  width: 0.58rem;
  height: 0.58rem;
  margin-top: 0.25rem;

  border: 2px solid rgba(147, 197, 253, 0.9);
  border-radius: 50%;

  background: rgba(59, 130, 246, 0.35);
  box-shadow: 0 0 0 0.26rem rgba(59, 130, 246, 0.08);
}

.discover-project-status strong {
  display: block;

  color: var(--text-primary);

  font-family: var(--heading-font);
  font-size: 0.72rem;
  font-weight: 600;
}

.discover-project-status p {
  margin: 0.2rem 0 0;

  color: var(--text-muted);

  font-size: 0.61rem;
  line-height: 1.45;
}

.discover-blueprint {
  position: relative;

  min-height: 31rem;
  padding: 1rem;

  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0.9rem;

  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: calc(var(--radius-large) - 0.1rem);
  overflow: hidden;

  background:
    linear-gradient(rgba(96, 165, 250, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 22% 18%, rgba(59, 130, 246, 0.16), transparent 31%),
    radial-gradient(circle at 82% 78%, rgba(34, 211, 238, 0.07), transparent 30%),
    linear-gradient(145deg, rgba(16, 25, 35, 0.98), rgba(7, 11, 16, 0.96));
  background-size: 1.35rem 1.35rem, 1.35rem 1.35rem, auto, auto, auto;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 1.4rem 3rem rgba(0, 0, 0, 0.2);
}

.discover-blueprint::before,
.discover-blueprint::after {
  content: "";
  position: absolute;
  z-index: 0;

  width: 0.32rem;
  height: 0.32rem;

  border-radius: 50%;
  background: rgba(96, 165, 250, 0.7);
  box-shadow:
    2.2rem 1.4rem 0 rgba(96, 165, 250, 0.18),
    4.8rem -0.5rem 0 rgba(34, 211, 238, 0.18),
    7.4rem 1.1rem 0 rgba(96, 165, 250, 0.12);
}

.discover-blueprint::before {
  top: 4.9rem;
  right: 7.5rem;
}

.discover-blueprint::after {
  right: 3rem;
  bottom: 4.7rem;
  transform: rotate(180deg);
}

.discover-blueprint > * {
  position: relative;
  z-index: 1;
}

.discover-blueprint-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.discover-blueprint-header > div {
  display: grid;
  gap: 0.2rem;
}

.discover-blueprint-header > div > span {
  color: var(--accent-light);

  font-family: var(--mono-font);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.discover-blueprint-header strong {
  color: var(--text-primary);

  font-family: var(--heading-font);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.discover-blueprint-status {
  padding: 0.36rem 0.52rem;

  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 999px;

  background: rgba(59, 130, 246, 0.08);
  color: #bfdbfe;

  font-family: var(--mono-font);
  font-size: 0.49rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.discover-blueprint-body {
  min-height: 0;

  display: grid;
  grid-template-columns: 1.6rem minmax(12rem, 0.88fr) minmax(10.5rem, 1.12fr);
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.25rem);
}

.discover-route-rail {
  height: 17.5rem;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.discover-route-stop {
  flex: 0 0 auto;

  width: 1.45rem;
  height: 1.45rem;

  display: grid;
  place-items: center;

  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 50%;

  background: #080c12;
  color: var(--text-muted);
}

.discover-route-stop small {
  font-family: var(--mono-font);
  font-size: 0.48rem;
  font-weight: 700;
}

.discover-route-stop.is-current {
  border-color: rgba(96, 165, 250, 0.72);
  background: rgba(59, 130, 246, 0.18);
  color: #dbeafe;

  box-shadow:
    0 0 0 0.28rem rgba(59, 130, 246, 0.08),
    0 0 1rem rgba(59, 130, 246, 0.18);
}

.discover-route-line {
  width: 1px;
  flex: 1 1 auto;
  min-height: 2rem;

  background: linear-gradient(rgba(96, 165, 250, 0.12), rgba(96, 165, 250, 0.55), rgba(96, 165, 250, 0.12));
}

.discover-phone-wireframe {
  width: 100%;
  max-width: 14.5rem;
  min-height: 22rem;
  padding: 0.58rem;

  justify-self: center;

  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 1.45rem;

  background: #070a0f;
  box-shadow:
    inset 0 0 0 0.28rem rgba(255, 255, 255, 0.018),
    0 1.5rem 3rem rgba(0, 0, 0, 0.32);

  transform: rotate(-1deg);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.discover-wireframe-top {
  padding: 0.25rem 0.35rem 0.48rem;

  display: flex;
  align-items: center;
  justify-content: space-between;

  color: var(--text-muted);

  font-family: var(--mono-font);
  font-size: 0.48rem;
  font-weight: 700;
}

.discover-wireframe-hero {
  position: relative;

  min-height: 7.8rem;
  padding: 0.75rem;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  border: 1px solid rgba(96, 165, 250, 0.13);
  border-radius: 1rem;
  overflow: hidden;

  background:
    linear-gradient(180deg, transparent 18%, rgba(7, 10, 15, 0.92)),
    radial-gradient(circle at 74% 28%, rgba(96, 165, 250, 0.18), transparent 30%),
    linear-gradient(145deg, #172333, #0a1018 72%);
}

.discover-wireframe-hero > span {
  position: absolute;
  width: 3.5rem;
  height: 3.5rem;
  border: 1px solid rgba(96, 165, 250, 0.1);
  border-radius: 50%;
}

.discover-wireframe-hero strong {
  color: var(--text-primary);

  font-family: var(--heading-font);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.discover-wireframe-hero small {
  margin-top: 0.13rem;

  color: var(--text-muted);

  font-size: 0.48rem;
}

.discover-wireframe-module {
  margin-top: 0.48rem;
  padding: 0.56rem;

  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.48rem;

  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 0.78rem;

  background: rgba(18, 26, 36, 0.68);
}

.discover-wireframe-icon {
  width: 1.45rem;
  height: 1.45rem;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background: rgba(59, 130, 246, 0.18);
  color: #bfdbfe;

  font-size: 0.48rem;
}

.discover-wireframe-module strong,
.discover-wireframe-module span {
  display: block;
}

.discover-wireframe-module strong {
  color: var(--text-primary);
  font-size: 0.58rem;
  font-weight: 700;
}

.discover-wireframe-module span,
.discover-wireframe-module small {
  margin-top: 0.08rem;

  color: var(--text-muted);

  font-size: 0.44rem;
}

.discover-wireframe-grid,
.discover-wireframe-actions {
  margin-top: 0.48rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.42rem;
}

.discover-wireframe-grid span {
  min-height: 3.1rem;
  padding: 0.5rem;

  display: flex;
  align-items: flex-end;

  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 0.72rem;

  background:
    radial-gradient(circle at 68% 30%, rgba(96, 165, 250, 0.12), transparent 34%),
    rgba(18, 26, 36, 0.62);
  color: #cbd5e1;

  font-family: var(--mono-font);
  font-size: 0.45rem;
  font-weight: 700;
}

.discover-wireframe-actions span {
  min-height: 2rem;
  padding: 0.4rem;

  display: grid;
  place-items: center;

  border: 1px solid rgba(96, 165, 250, 0.18);
  border-radius: 0.65rem;

  color: #bfdbfe;

  font-size: 0.45rem;
  font-weight: 700;
}

.discover-wireframe-actions span:last-child {
  border-color: rgba(59, 130, 246, 0.55);
  background: rgba(59, 130, 246, 0.16);
  color: #eff6ff;
}

.discover-system-flow {
  display: grid;
  align-content: center;
  gap: 0;
}

.discover-system-step {
  padding: 0.72rem;

  display: grid;
  grid-template-columns: 1.55rem minmax(0, 1fr);
  align-items: center;
  gap: 0.55rem;

  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 0.78rem;

  background: rgba(8, 12, 18, 0.7);
  backdrop-filter: blur(8px);
}

.discover-system-step > span {
  display: grid;
  place-items: center;

  width: 1.4rem;
  height: 1.4rem;

  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 0.48rem;

  background: rgba(59, 130, 246, 0.08);
  color: var(--accent-light);

  font-family: var(--mono-font);
  font-size: 0.48rem;
  font-weight: 700;
}

.discover-system-step strong,
.discover-system-step small {
  display: block;
}

.discover-system-step strong {
  color: var(--text-primary);

  font-family: var(--heading-font);
  font-size: 0.67rem;
  font-weight: 600;
}

.discover-system-step small {
  margin-top: 0.12rem;

  color: var(--text-muted);

  font-size: 0.47rem;
  line-height: 1.35;
}

.discover-system-connector {
  width: 1px;
  height: 1.2rem;
  margin-left: 1.42rem;

  background: linear-gradient(rgba(96, 165, 250, 0.12), rgba(96, 165, 250, 0.48));
}

.discover-blueprint-footer {
  padding-top: 0.75rem;

  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;

  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.discover-blueprint-footer span {
  padding: 0.32rem 0.48rem;

  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 999px;

  background: rgba(8, 11, 16, 0.48);
  color: var(--text-muted);

  font-family: var(--mono-font);
  font-size: 0.47rem;
  font-weight: 700;
}

@media (hover: hover) and (pointer: fine) {
  .discover-blueprint:hover .discover-phone-wireframe {
    border-color: rgba(96, 165, 250, 0.4);
    box-shadow:
      inset 0 0 0 0.28rem rgba(255, 255, 255, 0.018),
      0 1.7rem 3.4rem rgba(0, 0, 0, 0.38),
      0 0 1.4rem rgba(59, 130, 246, 0.09);
    transform: rotate(-1deg) translateY(-0.18rem);
  }
}

@media (max-width: 1120px) {
  .discover-project-panel {
    grid-template-columns: minmax(18rem, 0.9fr) minmax(24rem, 1.1fr);
  }
}

@media (max-width: 820px) {
  .discover-project-panel {
    grid-template-columns: 1fr;
  }

  .discover-blueprint {
    min-height: 29rem;
  }

  .discover-blueprint-body {
    grid-template-columns: 1.5rem minmax(12rem, 0.92fr) minmax(10rem, 1.08fr);
  }
}

@media (max-width: 620px) {
  .discover-blueprint {
    min-height: auto;
    padding: 0.85rem;
  }

  .discover-blueprint-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.6rem;
  }

  .discover-blueprint-body {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .discover-route-rail {
    height: auto;
    flex-direction: row;
  }

  .discover-route-line {
    width: auto;
    height: 1px;
    min-width: 2rem;
    min-height: 1px;
  }

  .discover-phone-wireframe {
    max-width: 15.5rem;
    transform: none;
  }

  .discover-system-flow {
    grid-template-columns: 1fr;
  }

  .discover-system-connector {
    height: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .discover-phone-wireframe {
    transition: none;
  }
}


/* =========================================================
   Discover Corralejo text-led project story
   ========================================================= */

.discover-project-actions {
  grid-template-columns: minmax(0, 12.5rem);
}

.discover-story-dialog {
  width: min(90vw, 52rem);
}

.discover-story-stage-panel {
  background:
    radial-gradient(
      circle at 92% 0%,
      rgba(59, 130, 246, 0.13),
      transparent 34%
    ),
    linear-gradient(145deg, rgba(13, 18, 26, 0.86), rgba(7, 11, 17, 0.82));
}

.discover-story-flow {
  margin-top: 1rem;

  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.55rem;
}

.discover-story-flow > div {
  min-height: 5.6rem;
  padding: 0.75rem;

  display: grid;
  align-content: center;
  gap: 0.2rem;

  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 0.82rem;

  background: rgba(8, 12, 18, 0.66);
}

.discover-story-flow > div > span,
.discover-story-grid span {
  color: var(--accent-light);

  font-family: var(--mono-font);
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.discover-story-flow strong {
  color: var(--text-primary);

  font-family: var(--heading-font);
  font-size: 0.8rem;
  font-weight: 600;
}

.discover-story-flow small {
  color: var(--text-muted);
  font-size: 0.62rem;
  line-height: 1.35;
}

.discover-story-flow > b {
  color: rgba(96, 165, 250, 0.72);
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
}

.discover-story-grid {
  margin-top: 1rem;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.discover-story-grid > div {
  min-height: 4.7rem;
  padding: 0.72rem 0.78rem;

  display: grid;
  align-content: center;
  gap: 0.28rem;

  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 0.78rem;

  background: rgba(8, 12, 18, 0.64);
}

.discover-story-grid strong {
  color: #dce6f3;

  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.38;
}

.discover-story-status-card {
  margin-top: 1rem;
  padding: 0.8rem 0.85rem;

  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.65rem;

  border: 1px solid rgba(245, 183, 64, 0.2);
  border-radius: 0.82rem;

  background: rgba(245, 183, 64, 0.055);
}

.discover-story-status-card strong {
  color: #f6d883;
  font-size: 0.75rem;
  font-weight: 700;
}

.discover-story-status-card p {
  margin: 0.25rem 0 0;
  color: var(--text-muted);
  font-size: 0.65rem;
  line-height: 1.45;
}

.discover-story-takeaway {
  border-color: rgba(96, 165, 250, 0.16);
  background: rgba(59, 130, 246, 0.045);
}

.discover-story-footer {
  justify-content: flex-start;
}

@media (max-width: 620px) {
  .discover-project-actions {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .discover-story-flow,
  .discover-story-grid {
    grid-template-columns: 1fr;
  }

  .discover-story-flow > b {
    transform: rotate(90deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .discover-story-flow > b {
    transition: none;
  }
}

/* =========================================================
   Discover Corralejo — compact desktop presentation
   Keeps Project 03 aligned with the established project-card height.
   ========================================================= */

@media (min-width: 821px) {
  .discover-project-panel {
    min-height: 38rem;
    padding: 1.2rem 1.4rem;
    gap: clamp(1.25rem, 2.2vw, 1.8rem);
  }

  .discover-project-panel .featured-project-label {
    margin-top: 0.72rem;
  }

  .discover-project-panel h3 {
    margin-top: 0.26rem;
    font-size: clamp(2.65rem, 3.65vw, 3.45rem);
    line-height: 0.9;
  }

  .discover-project-panel .featured-project-description {
    margin-top: 0.72rem;
    font-size: 0.8rem;
    line-height: 1.48;
  }

  .discover-project-features {
    margin-top: 0.7rem;
  }

  .discover-project-panel .featured-project-feature {
    min-height: 2.62rem;
    padding: 0.4rem 0;
    grid-template-columns: 1.75rem minmax(0, 1fr);
    gap: 0.58rem;
  }

  .discover-project-panel .featured-project-feature > span {
    width: 1.48rem;
    height: 1.48rem;
    border-radius: 0.48rem;
    font-size: 0.52rem;
  }

  .discover-project-panel .featured-project-feature strong {
    font-size: 0.72rem;
  }

  .discover-project-panel .featured-project-feature p {
    margin-top: 0.1rem;
    font-size: 0.59rem;
    line-height: 1.28;
  }

  .discover-project-panel .featured-project-tools {
    margin-top: 0.68rem;
    flex-wrap: nowrap;
    gap: 0.3rem;
  }

  .discover-project-panel .featured-project-tools span {
    padding: 0.3rem 0.42rem;
    font-size: 0.5rem;
    white-space: nowrap;
  }

  .discover-project-actions {
    margin-top: 0.72rem;
  }

  .discover-project-actions .button-link {
    min-height: 2.48rem;
    padding: 0.55rem 0.62rem;
    font-size: 0.66rem;
  }

  .discover-project-status {
    margin-top: 0.58rem;
    padding: 0.48rem 0.62rem;
    gap: 0.52rem;
    border-radius: 0.72rem;
  }

  .discover-status-indicator {
    width: 0.5rem;
    height: 0.5rem;
    margin-top: 0.18rem;
  }

  .discover-project-status strong {
    font-size: 0.64rem;
  }

  .discover-project-status p {
    margin-top: 0.1rem;
    font-size: 0.53rem;
    line-height: 1.32;
  }

  .discover-blueprint {
    min-height: 27rem;
    padding: 0.78rem;
    gap: 0.62rem;
  }

  .discover-blueprint-header > div {
    gap: 0.12rem;
  }

  .discover-blueprint-header > div > span {
    font-size: 0.49rem;
  }

  .discover-blueprint-header strong {
    font-size: 0.88rem;
  }

  .discover-blueprint-status {
    padding: 0.3rem 0.44rem;
    font-size: 0.43rem;
  }

  .discover-blueprint-body {
    grid-template-columns: 1.35rem minmax(10.6rem, 0.9fr) minmax(9.5rem, 1.1fr);
    gap: clamp(0.58rem, 1.35vw, 0.85rem);
  }

  .discover-route-rail {
    height: 14.5rem;
  }

  .discover-route-stop {
    width: 1.28rem;
    height: 1.28rem;
  }

  .discover-route-stop small {
    font-size: 0.43rem;
  }

  .discover-phone-wireframe {
    max-width: 12.4rem;
    min-height: 18.75rem;
    padding: 0.48rem;
    border-radius: 1.25rem;
  }

  .discover-wireframe-top {
    padding: 0.18rem 0.28rem 0.38rem;
    font-size: 0.42rem;
  }

  .discover-wireframe-hero {
    min-height: 6.35rem;
    padding: 0.62rem;
    border-radius: 0.82rem;
  }

  .discover-wireframe-hero strong {
    font-size: 0.78rem;
  }

  .discover-wireframe-hero small {
    font-size: 0.42rem;
  }

  .discover-wireframe-module {
    margin-top: 0.38rem;
    padding: 0.44rem;
    gap: 0.38rem;
    border-radius: 0.68rem;
  }

  .discover-wireframe-icon {
    width: 1.25rem;
    height: 1.25rem;
    font-size: 0.42rem;
  }

  .discover-wireframe-module strong {
    font-size: 0.51rem;
  }

  .discover-wireframe-module span,
  .discover-wireframe-module small {
    font-size: 0.39rem;
  }

  .discover-wireframe-grid,
  .discover-wireframe-actions {
    margin-top: 0.38rem;
    gap: 0.34rem;
  }

  .discover-wireframe-grid span {
    min-height: 2.55rem;
    padding: 0.42rem;
    border-radius: 0.62rem;
    font-size: 0.4rem;
  }

  .discover-wireframe-actions span {
    min-height: 1.72rem;
    padding: 0.32rem;
    border-radius: 0.56rem;
    font-size: 0.39rem;
  }

  .discover-system-step {
    padding: 0.55rem;
    grid-template-columns: 1.38rem minmax(0, 1fr);
    gap: 0.44rem;
    border-radius: 0.68rem;
  }

  .discover-system-step > span {
    width: 1.22rem;
    height: 1.22rem;
    font-size: 0.42rem;
  }

  .discover-system-step strong {
    font-size: 0.59rem;
  }

  .discover-system-step small {
    margin-top: 0.08rem;
    font-size: 0.41rem;
  }

  .discover-system-connector {
    height: 0.78rem;
    margin-left: 1.16rem;
  }

  .discover-blueprint-footer {
    padding-top: 0.52rem;
    gap: 0.32rem;
  }

  .discover-blueprint-footer span {
    padding: 0.25rem 0.38rem;
    font-size: 0.41rem;
  }
}

/* =========================================================
   Responsive consistency audit — compact laptop + mobile containment
   ========================================================= */

html,
body {
  overflow-x: clip;
}

@media (min-width: 981px) and (max-height: 700px) {
  .featured-project-panel,
  .discover-project-panel {
    min-height: 35rem;
    padding: 1rem 1.2rem;
    gap: 1.15rem;
  }

  .project-selector-button {
    min-height: 6.75rem;
    padding-block: 0.75rem;
  }

  .featured-project-label,
  .discover-project-panel .featured-project-label {
    margin-top: 0.7rem;
  }

  .featured-project-panel h3,
  .discover-project-panel h3 {
    margin-top: 0.25rem;
    font-size: clamp(2.45rem, 3.55vw, 3.15rem);
    line-height: 0.92;
  }

  .featured-project-description,
  .discover-project-panel .featured-project-description {
    margin-top: 0.68rem;
    font-size: 0.78rem;
    line-height: 1.48;
  }

  .featured-project-features,
  .discover-project-features {
    margin-top: 0.62rem;
  }

  .featured-project-feature,
  .discover-project-panel .featured-project-feature {
    min-height: 2.45rem;
    padding-block: 0.34rem;
  }

  .featured-project-feature strong,
  .discover-project-panel .featured-project-feature strong {
    font-size: 0.7rem;
  }

  .featured-project-feature p,
  .discover-project-panel .featured-project-feature p {
    font-size: 0.58rem;
  }

  .featured-project-tools,
  .discover-project-panel .featured-project-tools {
    margin-top: 0.62rem;
  }

  .featured-project-tools span,
  .discover-project-panel .featured-project-tools span {
    padding: 0.3rem 0.44rem;
    font-size: 0.52rem;
  }

  .featured-project-actions,
  .discover-project-actions {
    margin-top: 0.7rem;
  }

  .button-link,
  .discover-project-actions .button-link {
    min-height: 2.45rem;
    padding-block: 0.52rem;
    font-size: 0.65rem;
  }

  .featured-project-demo-note {
    margin-top: 0.5rem;
    font-size: 0.56rem;
  }

  .spendly-showcase,
  .travel-hub-showcase {
    min-height: 27.5rem;
    transform: scale(0.88);
    transform-origin: center;
  }

  .discover-blueprint {
    min-height: 24.5rem;
  }

  .discover-project-status {
    margin-top: 0.48rem;
  }
}

@media (max-width: 760px) {
  .hero-glow {
    width: 24rem;
    height: 24rem;
    filter: blur(90px);
  }

  .discover-story-dialog {
    width: 100vw;
    max-width: none;
  }
}

@media (min-width: 981px) and (max-height: 700px) {
  .travel-phone-main {
    width: min(100%, 13.6rem);
  }

  .travel-phone-small {
    width: min(100%, 10rem);
  }

  .travel-secondary-screens {
    gap: 0.72rem;
  }
}


/* =========================================================
   Premium motion and finish pass
   Restrained one-time reveals, a staggered hero entrance and
   hover-led detail without continuous decorative movement.
   ========================================================= */

.reveal-section {
  transform: translateY(28px);

  transition:
    opacity 650ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.motion-item {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(2px);

  transition:
    opacity 520ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 520ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--motion-delay, 0ms);
}

.motion-item.is-motion-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.hero-content {
  animation: none;
}

.hero-eyebrow,
.hero-name,
.hero-role,
.hero-introduction,
.hero-actions,
.hero-status {
  opacity: 0;
  animation: hero-detail-entry 680ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-eyebrow {
  animation-delay: 40ms;
}

.hero-name {
  animation-delay: 100ms;
}

.hero-role {
  animation-delay: 170ms;
}

.hero-introduction {
  animation-delay: 230ms;
}

.hero-actions {
  animation-delay: 300ms;
}

.hero-status {
  animation-delay: 360ms;
}

@keyframes hero-detail-entry {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-indicator svg {
  animation: none;
  transition: transform 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .scroll-indicator:hover svg {
    transform: translateY(0.22rem);
  }

  .about-principle,
  .education-stage,
  .certification-card,
  .experience-tab,
  .toolkit-tab,
  .project-selector-button,
  .contact-links a {
    transition-duration: 220ms;
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion-item,
  .motion-item.is-motion-visible,
  .hero-eyebrow,
  .hero-name,
  .hero-role,
  .hero-introduction,
  .hero-actions,
  .hero-status {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none !important;
    transition: none !important;
  }
}

/* Accessibility and keyboard interaction finish */
:where(
  a[href],
  button,
  [role="tab"],
  [tabindex]:not([tabindex="-1"])
):focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 3px;
}

.skip-link:focus-visible {
  outline-color: #ffffff;
  outline-offset: 3px;
}

[role="tabpanel"]:focus-visible {
  border-radius: var(--radius-small);
}

@media (forced-colors: active) {
  :where(a[href], button, [role="tab"]):focus-visible {
    outline: 2px solid Highlight;
  }

  .nav-link.active::after,
  .brand::after,
  .status-dot,
  .discover-status-indicator {
    forced-color-adjust: none;
    background: Highlight;
  }
}
