/* =========================================================
   Landing page (Brittany Chiang-style layout)
   Loaded after style.css on index.html only — reuses design
   tokens (colors, spacing) from style.css, but typography scale,
   accent color, and layout proportions here are tuned to match
   the reference site's actual measurements, not guessed.
   ========================================================= */

body.landing-page {
  overflow-x: hidden;
  /* Teal accent + Inter-style sans everywhere on this page only —
     the rest of the site keeps its own blue/Playfair identity. */
  --accent: #5eead4;
  --accent-hover: #2dd4bf;
  --accent-soft: rgba(45, 212, 191, 0.1);
  --accent-border: rgba(94, 234, 212, 0.4);
  font-family: var(--font-body);
}

.landing-page h1,
.landing-page h2,
.landing-page h3,
.landing-page h4 {
  font-family: var(--font-body);
}

.landing-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(40px, 6vw, 90px);
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 64px);
  position: relative;
  z-index: 1;
}

/* Cursor-following spotlight: a soft radial glow that tracks mouse
   position, updated via JS-set CSS custom properties (landing.js).
   Fixed + pointer-events:none so it never blocks clicks/hover below it. */

.cursor-spotlight {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    600px at var(--spot-x, 50%) var(--spot-y, 20%),
    rgba(94, 234, 212, 0.07),
    transparent 80%
  );
}

@media (hover: none) {
  .cursor-spotlight {
    display: none;
  }
}

/* ---------- Sidebar ---------- */
/* Two flex children (.side-top / .side-social) pinned to the
   top and bottom of the viewport via justify-content: space-between —
   this is how the reference site keeps social icons anchored low
   instead of trailing right after the nav links. */

.side-panel {
  position: sticky;
  top: 0;
  flex: 0 0 clamp(280px, 27vw, 440px);
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 96px 0 56px;
}

.side-name {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 12px;
}

.side-name a {
  color: var(--text);
  text-decoration: none;
}

.side-tagline {
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--text-muted);
  margin: 0 0 16px;
}

.side-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-faint);
  max-width: 320px;
  margin-bottom: 40px;
}

.side-links {
  display: flex;
  flex-direction: column;
}

.side-link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 0;
  color: var(--text-faint);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  transition: color 150ms ease, padding-left 150ms ease;
}

.side-link .side-num {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.side-link:hover,
.side-link.is-active {
  color: var(--text);
  padding-left: 6px;
}

/* Bottom-anchored social row: plain larger glyphs, no pill background,
   matching the reference site's simple icon-row treatment. */

.side-social {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.side-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  text-decoration: none;
  transition: color 150ms ease, transform 150ms ease;
}

.side-social a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

.side-social i {
  font-size: 1.4rem;
  width: 24px;
  text-align: center;
}

.side-social .side-social-text {
  font-size: 0.8rem;
  font-weight: 700;
}

/* ---------- Content column ---------- */

.content-panel {
  flex: 1 1 auto;
  max-width: 720px;
  min-width: 0;
  padding: 96px 0 60px;
}

.content-block {
  margin-bottom: 90px;
  scroll-margin-top: 40px;
}

.content-block:last-child {
  margin-bottom: 40px;
}

.content-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  white-space: nowrap;
}

.content-heading .heading-num {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.content-heading h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.content-heading::after {
  content: "";
  display: block;
  height: 1px;
  width: 100%;
  max-width: 220px;
  background: var(--border-strong);
  margin-left: 8px;
}

.content-block p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.content-block p strong {
  color: var(--text);
  font-weight: 700;
}

/* ---------- Shared tag pills (About, Experience, Ventures) ---------- */

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.about-tags span {
  font-size: 0.75rem;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
}

/* =========================================================
   Unified entry list — used by Experience, Ventures, Adventures,
   and Archive so every section shares the SAME left-column width,
   grid alignment, and hover behavior top to bottom, instead of
   each section inventing its own card/grid pattern.

   Structure: <ol/ul class="entry-list"> > <li/a class="entry-item">
     > .entry-highlight (hover background, sits behind content)
     > .entry-meta (fixed-width left column: date / logo / icon)
     > .entry-body (flexible right column: heading + text)

   Hover behavior mirrors the reference site: the hovered item gets
   a soft background highlight that bleeds past its own padding, and
   sibling items dim slightly so attention follows the cursor.
   ========================================================= */

.entry-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.entry-item {
  position: relative;
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: start;
  gap: 24px;
  padding: 20px 12px;
  text-decoration: none;
  color: inherit;
  transition: opacity 200ms ease;
}

.entry-list:hover .entry-item:not(:hover) {
  opacity: 0.55;
}

.entry-highlight {
  position: absolute;
  inset: 0 -12px;
  border-radius: var(--radius-md);
  background: transparent;
  box-shadow: none;
  transition: background 200ms ease, box-shadow 200ms ease;
  z-index: 0;
  pointer-events: none;
}

.entry-item:hover .entry-highlight {
  background: var(--surface-alt);
  box-shadow: inset 0 1px 0 0 var(--border-strong), 0 0 0 1px var(--accent-border);
}

.entry-item:hover .entry-body h4 {
  color: var(--accent);
}

.entry-meta {
  position: relative;
  z-index: 1;
  color: var(--text-faint);
  font-size: 0.8rem;
  font-weight: 600;
  padding-top: 3px;
}

.entry-meta img {
  width: 100%;
  max-width: 140px;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  padding: 14px;
  display: block;
}

.entry-meta i {
  color: var(--accent);
  font-size: 1.6rem;
  display: block;
}

.entry-body {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.entry-body h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px;
  transition: color 150ms ease;
}

.entry-link-icon {
  font-size: 0.7em;
  margin-left: 7px;
  color: var(--text-faint);
  vertical-align: -1px;
  transform: translate(0, 0);
  transition: color 150ms ease, transform 150ms ease;
}

.entry-item:hover .entry-link-icon {
  color: var(--accent);
  transform: translate(2px, -2px);
}

.entry-body p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0 0 8px;
}

.entry-body .about-tags {
  margin: 0 0 10px;
}

.entry-body .pillar-cta {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}

/* Archive-specific: no meta image/icon needed, just a directional arrow */

.entry-item.entry-item--archive {
  grid-template-columns: 28px 1fr;
}

.entry-item--archive .entry-meta {
  padding-top: 4px;
}

.entry-item--archive .entry-meta i {
  font-size: 0.9rem;
}

.entry-item--archive .entry-body h4 {
  font-size: 0.98rem;
}

.content-block .archive-footnote {
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--text-faint);
}

.archive-footnote a {
  color: var(--text-faint);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.archive-footnote a:hover {
  color: var(--accent);
}

/* ---------- About bio inline links ---------- */

.bio-link {
  color: inherit;
  text-decoration: none;
  transition: color 150ms ease;
}

.bio-link:hover {
  color: var(--accent);
}

/* ---------- Contact ---------- */

.contact-block .content-heading::after {
  max-width: 140px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-layout p {
  margin: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  resize: vertical;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: var(--text-faint);
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.contact-form button[type="submit"] {
  align-self: flex-start;
  margin-top: 4px;
  cursor: pointer;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-border);
  box-shadow: none;
  transition: background 200ms ease, color 200ms ease,
    border-color 200ms ease, box-shadow 200ms ease, transform 150ms ease;
}

.contact-form button[type="submit"]:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  box-shadow: 0 8px 20px var(--accent-soft);
  transform: translateY(-1px);
}

.contact-status {
  font-size: 0.85rem;
  margin-top: 4px;
}

.contact-status.is-success {
  color: #8fd8a4;
}

.contact-status.is-error {
  color: #f2a4a4;
}

.contact-status.is-sending {
  color: var(--text-faint);
}

/* ---------- Responsive ---------- */

/* ---------- Earlier career: text + photo ---------- */

.career-media {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  margin-top: 4px;
}

.career-copy {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
}

.career-photo {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  max-width: 190px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  justify-self: end;
}

@media (max-width: 1000px) {
  .career-media {
    grid-template-columns: 1fr;
  }

  .career-copy,
  .career-photo {
    grid-column: 1;
    grid-row: auto;
  }

  .career-photo {
    max-width: 220px;
    justify-self: start;
  }
}

/* ---------- Flying subsection: text + photo ---------- */

.flying-media {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  align-items: center;
  margin-top: 4px;
}

.flying-copy {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
}

.flying-photo {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

@media (max-width: 1000px) {
  .flying-media {
    grid-template-columns: 1fr;
  }

  .flying-copy,
  .flying-photo {
    grid-column: 1;
    grid-row: auto;
  }
}


@media (max-width: 1000px) {
  .landing-wrap {
    flex-direction: column;
    gap: 0;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .side-panel {
    position: relative;
    height: auto;
    width: 100%;
    flex: none;
    padding: 40px 0 28px;
    gap: 28px;
  }

  .side-desc {
    max-width: none;
  }

  .side-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px 16px;
  }

  .side-link {
    padding: 4px 0;
  }

  .content-panel {
    max-width: none;
    padding: 0 0 50px;
  }

  .entry-item {
    grid-template-columns: 96px 1fr;
    gap: 16px;
  }

  .entry-item.entry-item--archive {
    grid-template-columns: 24px 1fr;
  }
}

@media (max-width: 560px) {
  .side-name {
    font-size: 2.1rem;
  }

  .side-tagline {
    font-size: 1.05rem;
  }

  .entry-item {
    grid-template-columns: 1fr;
  }

  .entry-meta img {
    max-width: 64px;
    margin-bottom: 8px;
  }

  .entry-item.entry-item--archive {
    grid-template-columns: 20px 1fr;
  }
}

/* =========================================================
   Time machine widget — floating icon (bottom-right) that opens
   a full-screen modal listing past versions of the site, mirroring
   the reference site's own "go back in time" feature.
   ========================================================= */

.time-machine-btn {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 20;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  perspective: 400px;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.time-machine-btn:hover {
  border-color: var(--accent-border);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45), 0 0 16px var(--accent-soft);
  transform: translateY(-2px);
}

.compass-icon {
  width: 40px;
  height: 40px;
  overflow: visible;
  filter: drop-shadow(0 0 4px var(--accent-soft));
}

.compass-housing {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: compass-spin 6s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.compass-needle {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: compass-needle-spin 3.2s linear infinite;
}

.compass-shine {
  pointer-events: none;
}

@keyframes compass-spin {
  0% {
    transform: rotateX(14deg) rotateY(0deg);
  }
  50% {
    transform: rotateX(14deg) rotateY(180deg) scale(0.88);
  }
  100% {
    transform: rotateX(14deg) rotateY(360deg);
  }
}

@keyframes compass-needle-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.time-machine-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(10, 12, 16, 0.85);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  perspective: 400px;
  overflow: hidden;
}

/* The "cloudy window" portal effect: five overlapping organic blobs,
   continuously rotating and cycling hue, heavily blurred into a soft
   swirling glow behind the modal content. Adapted from the open
   CodePen "A Portal to Tomorrow" by @jasesmith (credited on the
   reference site), retinted from green to Nicole's teal accent. */

.time-machine-portal {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Big, bright, fully-opaque blobs — no blur filter at all. The crisp
   edge comes from box-shadow (a tight black inset shadow plus a thin
   bright outer glow), matching the reference site's actual technique.
   Blur was the mistake in earlier passes: it smeared away exactly the
   asymmetric-shape detail that makes simple in-place rotation visible. */

.time-machine-portal div {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 62vmin;
  height: 62vmin;
  margin: -31vmin 0 0 -31vmin;
  border-radius: 90% 95% 85% 105%;
  background: #00f5d0;
  opacity: 1;
  mix-blend-mode: screen;
  box-shadow: 0 0 9vmin 3.6vmin #000 inset, 0 0 2.6vmin 0 #fff;
  animation: time-machine-drift linear infinite;
}

.time-machine-portal div:nth-child(1) { --tx: -6%;  --ty: -6%; transform: translate(var(--tx), var(--ty)) rotate(0deg); animation-duration: 5.6s; }
.time-machine-portal div:nth-child(2) { --tx: 4%;   --ty: -3%; transform: translate(var(--tx), var(--ty)) rotate(0deg); animation-duration: 8.7s; }
.time-machine-portal div:nth-child(3) { --tx: 6%;   --ty: 5%;  transform: translate(var(--tx), var(--ty)) rotate(0deg); animation-duration: 6.9s; }
.time-machine-portal div:nth-child(4) { --tx: -4%;  --ty: 6%;  transform: translate(var(--tx), var(--ty)) rotate(0deg); animation-duration: 10.8s; }
.time-machine-portal div:nth-child(5) { --tx: -8%;  --ty: 2%;  transform: translate(var(--tx), var(--ty)) rotate(0deg); animation-duration: 9.3s; }

@keyframes time-machine-drift {
  to {
    transform: translate(var(--tx), var(--ty)) rotate(360deg);
    filter: hue-rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .time-machine-portal div {
    animation: none;
  }
}

.time-machine-overlay[hidden] {
  display: none;
}

.time-machine-close {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 1;
  background: none;
  border: none;
  color: var(--text-faint);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: color 150ms ease;
}

.time-machine-close:hover {
  color: var(--text);
}

.time-machine-inner {
  position: relative;
  z-index: 1;
  max-width: 440px;
  text-align: center;
  transform: rotateX(25deg);
  transform-origin: 50% 100%;
}

@media (prefers-reduced-motion: reduce) {
  .time-machine-inner {
    transform: none;
  }
}

.time-machine-inner h2 {
  display: inline-block;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 24px;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  background: rgba(10, 12, 16, 0.72);
  font-family: var(--font-body);
}

.time-machine-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.time-machine-list a {
  position: relative;
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--border);
  transition: border-color 200ms ease, transform 200ms ease;
}

.time-machine-list a:hover {
  border-color: var(--accent-border);
  transform: translateY(-3px);
}

.time-machine-list img {
  display: block;
  width: 100%;
  height: auto;
}

.time-machine-tag {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(10, 12, 16, 0.75);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

@media (max-width: 640px) {
  .time-machine-list {
    grid-template-columns: 1fr;
  }

  .time-machine-btn {
    right: 18px;
    bottom: 18px;
  }
}
