/* Personal site — Retell-inspired craft (navy + electric blue, motion-forward)
   Distinct from company Phase 6 shell. No teal. */

:root {
  --navy: #00122e;
  --navy-2: #1a1b45;
  --blue: #3e6aef;
  --blue-hover: #2f56d4;
  --blue-soft: rgba(62, 106, 239, 0.12);
  --blue-glow: rgba(62, 106, 239, 0.35);
  --bg: #f5f5fa;
  --bg-elevated: #ffffff;
  --ink: #0b1220;
  --text: #2a3142;
  --muted: #5b6478;
  --faint: #8b93a7;
  --line: rgba(26, 27, 69, 0.1);
  --line-strong: rgba(26, 27, 69, 0.16);
  --radius: 18px;
  --radius-sm: 12px;
  --shell: 70rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --font: Inter, system-ui, -apple-system, sans-serif;
  --topbar-h: 4.1rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

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

a {
  color: var(--blue);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--blue-hover);
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
}

.skip-link:focus {
  top: 1rem;
}

/* Scroll progress */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 60;
  background: transparent;
  pointer-events: none;
}

.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), #7aa2ff);
  box-shadow: 0 0 12px var(--blue-glow);
  transition: width 0.05s linear;
}

/* Atmosphere orbs */

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  will-change: transform;
}

.orb--a {
  width: min(48vw, 28rem);
  height: min(48vw, 28rem);
  top: -6%;
  right: -4%;
  background: radial-gradient(circle, rgba(62, 106, 239, 0.45), transparent 70%);
  animation: float-a 14s var(--ease) infinite alternate;
}

.orb--b {
  width: min(42vw, 24rem);
  height: min(42vw, 24rem);
  top: 38%;
  left: -10%;
  background: radial-gradient(circle, rgba(26, 27, 69, 0.18), transparent 70%);
  animation: float-b 18s var(--ease) infinite alternate;
}

.orb--c {
  width: min(36vw, 20rem);
  height: min(36vw, 20rem);
  bottom: 5%;
  right: 15%;
  background: radial-gradient(circle, rgba(122, 162, 255, 0.28), transparent 70%);
  animation: float-c 16s var(--ease) infinite alternate;
}

@keyframes float-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-4%, 8%, 0) scale(1.08); }
}

@keyframes float-b {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(6%, -6%, 0) scale(1.06); }
}

@keyframes float-c {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-8%, -4%, 0); }
}

.shell {
  width: min(100% - 2rem, var(--shell));
  margin-inline: auto;
}

/* Top bar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  background: rgba(245, 245, 250, 0.78);
  border-bottom: 1px solid transparent;
  transition:
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.topbar.is-scrolled {
  background: rgba(255, 255, 255, 0.86);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(0, 18, 46, 0.06);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2rem, var(--shell));
}

.topbar__mark {
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-decoration: none;
}

.topbar__nav {
  display: none;
  gap: 1.2rem;
}

.topbar__nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s var(--ease);
}

.topbar__nav a:hover {
  color: var(--navy);
}

.topbar__cta {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--navy);
  color: #fff !important;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  transition:
    background 0.15s var(--ease),
    transform 0.15s var(--ease),
    box-shadow 0.15s var(--ease);
}

.topbar__cta:hover {
  background: var(--blue);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px var(--blue-glow);
}

@media (min-width: 900px) {
  .topbar__nav {
    display: flex;
  }
}

/* Hero */

.hero {
  display: grid;
  gap: 2.75rem;
  padding: 3.5rem 0 4rem;
  align-items: center;
  min-height: min(78vh, 46rem);
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.2fr 0.9fr;
    gap: 3.5rem;
    padding: 4.75rem 0 5rem;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.95rem;
}

.hero__title {
  font-size: clamp(2.6rem, 7vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

.title-line {
  display: block;
  overflow: hidden;
}

.title-line__inner {
  display: inline-block;
}

.lede {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text);
  max-width: 34rem;
  line-height: 1.7;
}

.lede + .lede {
  margin-top: 0.85rem;
}

.lede--soft {
  font-size: 1rem;
  color: var(--muted);
}

.lede--soft a {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(62, 106, 239, 0.35);
}

.lede--soft a:hover {
  border-bottom-color: currentColor;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.85rem;
}

/* Buttons */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  overflow: hidden;
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 28px var(--blue-glow);
}

.btn--primary:hover {
  background: var(--blue-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px var(--blue-glow);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.55);
  color: var(--navy);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: #fff;
  transform: translateY(-2px);
}

.btn--on-dark {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.btn--on-dark:hover {
  background: #eef2ff;
  color: var(--navy);
  transform: translateY(-2px);
}

.btn__arrow {
  transition: transform 0.2s var(--ease);
}

.btn:hover .btn__arrow {
  transform: translateX(3px);
}

/* Shine sweep on primary-style buttons */
.btn--shine::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 20%,
    rgba(255, 255, 255, 0.35) 45%,
    transparent 70%
  );
  transform: translateX(-120%);
  transition: transform 0.65s var(--ease-out);
}

.btn--shine:hover::after {
  transform: translateX(120%);
}

/* Photo card + tilt */

.hero__visual {
  justify-self: center;
  width: min(100%, 22rem);
  perspective: 1000px;
}

@media (min-width: 900px) {
  .hero__visual {
    justify-self: end;
  }
}

.photo-card {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.15s linear;
}

.photo-card__glow {
  position: absolute;
  inset: -12%;
  background: radial-gradient(circle at 50% 40%, var(--blue-glow), transparent 65%);
  filter: blur(18px);
  opacity: 0.75;
  animation: pulse-glow 4.5s var(--ease) infinite alternate;
  z-index: 0;
}

@keyframes pulse-glow {
  from { opacity: 0.45; transform: scale(0.96); }
  to { opacity: 0.9; transform: scale(1.04); }
}

.photo-card__frame {
  position: relative;
  z-index: 1;
  border-radius: 28px;
  padding: 4px;
  background: linear-gradient(145deg, #7aa2ff, var(--blue) 40%, var(--navy-2));
  box-shadow:
    0 24px 60px rgba(0, 18, 46, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.4) inset;
}

.photo-card__frame img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 24px;
  background: #e8eaf3;
}

.photo-card__badge {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0, 18, 46, 0.08);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--muted);
  backdrop-filter: blur(10px);
}

.live-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  animation: live-pulse 2s ease infinite;
}

@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Blocks */

.block {
  padding: 3.25rem 0;
  border-top: 1px solid var(--line);
}

.block__head {
  margin-bottom: 1.4rem;
  max-width: 40rem;
}

.block__head h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--navy);
  line-height: 1.15;
}

.prose {
  max-width: 40rem;
}

.prose p + p {
  margin-top: 1rem;
}

.prose strong {
  color: var(--navy);
  font-weight: 650;
}

/* Timeline */

.timeline {
  list-style: none;
  max-width: 44rem;
  display: grid;
  gap: 0.85rem;
}

.timeline__item {
  display: grid;
  grid-template-columns: 1.35rem 1fr;
  gap: 1rem;
  position: relative;
}

.timeline__item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 1.35rem;
  bottom: -0.85rem;
  width: 2px;
  background: linear-gradient(var(--blue), rgba(62, 106, 239, 0.08));
  border-radius: 2px;
}

.timeline__marker {
  width: 0.85rem;
  height: 0.85rem;
  margin-top: 1.15rem;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--blue);
  box-shadow: 0 0 0 5px var(--blue-soft);
  z-index: 1;
}

.timeline__card {
  padding: 1.05rem 1.15rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 18, 46, 0.04);
  backdrop-filter: blur(8px);
  transition:
    transform 0.25s var(--ease),
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.timeline__card:hover {
  transform: translateY(-2px);
  border-color: rgba(62, 106, 239, 0.28);
  box-shadow: 0 16px 36px rgba(0, 18, 46, 0.08);
}

.timeline__card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
}

.timeline__card p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

/* Journey narrative */

.journey {
  max-width: 42rem;
  display: grid;
  gap: 2rem;
  margin-top: 0.5rem;
}

.journey__chapter {
  padding: 1.35rem 1.4rem 1.45rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(0, 18, 46, 0.04);
  border-left: 3px solid var(--blue);
}

.journey__when {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.45rem;
}

.journey__chapter h3 {
  font-size: 1.2rem;
  font-weight: 750;
  letter-spacing: -0.025em;
  color: var(--navy);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.journey__chapter p {
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.7;
}

.journey__chapter p + p {
  margin-top: 0.85rem;
}

.journey__chapter em {
  font-style: italic;
  color: var(--navy);
}

/* Interests / pattern cards */

.section-lead {
  max-width: 40rem;
  color: var(--muted);
  margin-bottom: 1.35rem;
  font-size: 1.02rem;
}

.interest-grid {
  list-style: none;
  display: grid;
  gap: 0.85rem;
  max-width: 52rem;
}

@media (min-width: 640px) {
  .interest-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.interest-card {
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(0, 18, 46, 0.04);
  backdrop-filter: blur(8px);
  transition:
    transform 0.25s var(--ease),
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.interest-card:hover {
  transform: translateY(-2px);
  border-color: rgba(62, 106, 239, 0.28);
  box-shadow: 0 16px 36px rgba(0, 18, 46, 0.08);
}

.interest-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.interest-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.interest-card a {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(62, 106, 239, 0.35);
}

.interest-card a:hover {
  border-bottom-color: currentColor;
}

/* Now panel */

.now-panel {
  max-width: 44rem;
  padding: 1.5rem 1.5rem 1.35rem;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #fff 0%, #eef2ff 100%);
  border: 1px solid rgba(62, 106, 239, 0.18);
  box-shadow: 0 18px 50px rgba(0, 18, 46, 0.06);
}

.now-panel p + p {
  margin-top: 0.9rem;
}

.now-panel__soft {
  color: var(--muted);
  font-size: 0.98rem;
}

/* Connect */

.link-rows {
  list-style: none;
  max-width: 44rem;
  display: grid;
  gap: 0.7rem;
}

.link-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "label go"
    "desc go";
  column-gap: 1rem;
  align-items: center;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition:
    border-color 0.2s var(--ease),
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    background 0.2s var(--ease);
}

.link-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(90deg, rgba(62, 106, 239, 0.14), transparent);
  transition: width 0.3s var(--ease);
}

.link-row:hover {
  border-color: rgba(62, 106, 239, 0.35);
  transform: translateX(4px);
  box-shadow: 0 14px 34px rgba(0, 18, 46, 0.08);
  background: #fff;
  color: inherit;
}

.link-row:hover::before {
  width: 100%;
}

.link-row__label {
  grid-area: label;
  position: relative;
  font-weight: 700;
  color: var(--navy);
  font-size: 1.02rem;
}

.link-row__desc {
  grid-area: desc;
  position: relative;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.link-row__go {
  grid-area: go;
  position: relative;
  color: var(--blue);
  font-size: 1.25rem;
  font-weight: 700;
  transition: transform 0.2s var(--ease);
}

.link-row:hover .link-row__go {
  transform: translateX(4px);
}

/* Dark CTA band (Retell-style closer) */

.cta-band {
  margin: 1rem 0 2.5rem;
}

.cta-band__inner {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background:
    radial-gradient(circle at 85% 20%, rgba(62, 106, 239, 0.45), transparent 40%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #e8ecf8;
  box-shadow: 0 24px 60px rgba(0, 18, 46, 0.22);
}

.cta-band__kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #9eb6ff;
  margin-bottom: 0.65rem;
}

.cta-band__title {
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 0.55rem;
  max-width: 22ch;
}

.cta-band__text {
  max-width: 36rem;
  color: #c5cdea;
  margin-bottom: 1.35rem;
}

/* Footer */

.footer {
  padding: 1.75rem 0 2.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.9rem;
  color: var(--faint);
}

.footer a {
  color: var(--muted);
  text-decoration: none;
}

.footer a:hover {
  color: var(--blue);
}

/* Reveal system
   Default visible without JS. With .js-ready, hide until .is-in. */

.reveal {
  opacity: 1;
  transform: none;
}

.js-ready .reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  filter: blur(4px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out),
    filter 0.7s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 80ms);
}

.js-ready .reveal.is-in {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

.js-ready .title-line.reveal {
  opacity: 1;
  filter: none;
  transform: none;
}

.js-ready .title-line.reveal .title-line__inner {
  transform: translate3d(0, 110%, 0);
  transition: transform 0.85s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 80ms + 40ms);
}

.js-ready .title-line.reveal.is-in .title-line__inner {
  transform: none;
}

.js-ready .reveal[data-delay="1"] { --d: 1; }
.js-ready .reveal[data-delay="2"] { --d: 2; }
.js-ready .reveal[data-delay="3"] { --d: 3; }
.js-ready .reveal[data-delay="4"] { --d: 4; }

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

  .orb,
  .photo-card__glow,
  .live-dot,
  .scroll-progress__bar {
    animation: none !important;
  }

  .js-ready .reveal,
  .js-ready .title-line.reveal .title-line__inner,
  .btn,
  .link-row,
  .timeline__card,
  .topbar__cta {
    transition: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
  }

  .btn--shine::after {
    display: none;
  }
}

@media (max-width: 420px) {
  body {
    font-size: 1rem;
  }

  .hero {
    padding-top: 2.5rem;
    min-height: 0;
  }
}
