/* ==========================================================================
   KJ TINSLEY — 1988 White AKIRA Poster + Ultra-Minimal Vertical-Line Resume
   Screen 1 untouched · Screen 2 whisper-clean vertical line with entries on
   each side + calm sticky sitting-on-bike illustration on the right
   ========================================================================== */

:root {
  --poster-white: #eef2f2;
  --stripe-fill: #f8f8f2;
  --stripe-edge: rgba(110, 132, 146, 0.34);

  --ink-black: #0e1014;
  --ink-body: #2c323b;
  --ink-muted: #6c7582;
  --akira-crimson: #c61d17;

  --line-subtle: rgba(14, 16, 20, 0.14);

  --font-serif: 'EB Garamond', 'Georgia', 'Times New Roman', serif;
  --font-jp: 'Shippori Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', Georgia, serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;

  --poster-h: 93vh;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--poster-white);
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--poster-white);
  color: var(--ink-black);
  font-family: var(--font-serif);
  line-height: 1.48;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   1. Continuous Pixel-Matched Road Center Stripe & Subtle 1988 Paper Grain
   ========================================================================== */

.road-centerline {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(16px, calc(var(--poster-h) * 0.6709 * 0.0424), 29px);
  background: var(--stripe-fill);
  border-left: 1px solid var(--stripe-edge);
  border-right: 1px solid var(--stripe-edge);
  z-index: 1;
  pointer-events: none;
  opacity: 0.55;
}

.poster-grain {
  position: fixed;
  inset: 0;
  z-index: 25;
  pointer-events: none;
  opacity: 0.034;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)' opacity='1'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* ==========================================================================
   2. Whisper-Minimal Floating Top Bar
   ========================================================================== */

.top-chrome {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 26px;
  pointer-events: none;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.top-chrome.is-scrolled {
  background: rgba(238, 242, 242, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(12, 13, 17, 0.07);
}

.top-brand {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(12, 13, 17, 0.85);
  text-decoration: none;
}

.pill-mark {
  display: inline-flex;
  width: 19px;
  height: 9px;
  border-radius: 999px;
  overflow: hidden;
  border: 1.5px solid #0c0d11;
}

.pill-r {
  flex: 1;
  background: #d82219;
  display: block;
}

.pill-b {
  flex: 1;
  background: #3a84cc;
  display: block;
}

.top-links {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.top-link {
  appearance: none;
  background: none;
  border: none;
  padding: 2px 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(12, 13, 17, 0.82);
  text-decoration: none;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: color 0.14s ease, border-color 0.14s ease;
}

.top-link:hover {
  color: var(--akira-crimson);
  border-bottom-color: var(--akira-crimson);
}

.top-link--red {
  color: var(--akira-crimson);
  font-weight: 600;
}

/* ==========================================================================
   3. SCREEN 1: EXACT 2:3 WHITE 1988 AKIRA POSTER HERO (100vh — UNTOUCHED)
   ========================================================================== */

.poster-hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    #aad1e3 0%,
    #b6d7e8 9%,
    #c4deeb 14%,
    #d1e3f0 19%,
    #e4ecf3 26%,
    #eef2f3 34%,
    #f1f3f1 44%,
    #f5f5f2 66%,
    #eff2f2 82%,
    #e2eced 93%,
    #e5eeee 100%
  );
}

.poster-stage {
  position: relative;
  z-index: 2;
  height: var(--poster-h);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  will-change: transform, opacity;
}

.poster-art-img {
  height: 100%;
  width: auto;
  max-width: 100vw;
  display: block;
  object-fit: contain;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%),
    linear-gradient(180deg, #000 0%, #000 95%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%),
    linear-gradient(180deg, #000 0%, #000 95%, transparent 100%);
  mask-composite: intersect;
}

.scroll-cue {
  position: relative;
  z-index: 4;
  margin-top: -6px;
  padding: 6px 14px 10px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: var(--ink-black);
  opacity: 0.78;
  transition: opacity 0.2s ease, transform 0.2s ease;
  will-change: transform, opacity;
}

.scroll-cue:hover {
  opacity: 1;
  transform: translateY(2px);
}

.scroll-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: #20242a;
}

.scroll-line {
  width: 1.5px;
  height: 22px;
  background: linear-gradient(180deg, var(--akira-crimson) 0%, rgba(198, 29, 23, 0.1) 100%);
  animation: scrollPulse 1.9s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% {
    transform: scaleY(0.75) translateY(0);
    opacity: 0.5;
  }
  50% {
    transform: scaleY(1.12) translateY(4px);
    opacity: 1;
  }
}

/* ==========================================================================
   4. SCREEN 2: ULTRA-MINIMAL VERTICAL-LINE RESUME (LEFT) + CALM BIKE (RIGHT)
   ========================================================================== */

.work-stage {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 84px clamp(24px, 4vw, 64px) 76px;
  background: linear-gradient(180deg, #e5eeee 0%, #eff2f2 8%, #f1f3f1 100%);
}

.work-layout {
  width: 100%;
  max-width: 1360px;
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(260px, 0.72fr);
  gap: clamp(36px, 4.5vw, 72px);
  align-items: start;
}

.reveal-block {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.56s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.64s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--stagger, 0) * 90ms);
}

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

/* ==========================================================================
   5. LEFT: MINIMAL HEADER + RAZOR-THIN VERTICAL LINE WITH ENTRIES EACH SIDE
   ========================================================================== */

.resume-wrap {
  min-width: 0;
}

.resume-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding-bottom: 18px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--line-subtle);
}

.resume-id {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 14px;
}

.resume-name {
  margin: 0;
  font-family: var(--font-jp);
  font-size: clamp(1.5rem, 2.2vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-black);
  line-height: 1.1;
}

.resume-role {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.06rem;
  font-style: italic;
  color: var(--ink-muted);
}

.resume-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 9px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ink-muted);
}

.cv-link {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--ink-muted);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.14s ease;
}

.cv-link:hover {
  color: var(--ink-black);
}

.dot-sep {
  opacity: 0.45;
  user-select: none;
}

/* Pure Minimal Vertical Line with Entries Interleaved on Each Side */
.vtimeline {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
  grid-auto-rows: minmax(76px, auto);
  row-gap: 18px;
  padding: 4px 0 8px;
}

/* Single Razor-Thin 1px Vertical Center Line */
.vt-axis {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  background: var(--line-subtle);
  pointer-events: none;
  z-index: 1;
}

/* Interleaved Chronological Placement */
.vt-entry {
  position: relative;
  align-self: start;
  padding-bottom: 14px;
  z-index: 2;
}

.vt-left {
  grid-column: 1;
}

.vt-right {
  grid-column: 3;
}

.vt-r1 { grid-row: 1 / span 2; }
.vt-r2 { grid-row: 2 / span 2; }
.vt-r3 { grid-row: 3 / span 2; }
.vt-r4 { grid-row: 4 / span 2; }
.vt-r5 { grid-row: 5 / span 2; }
.vt-r6 { grid-row: 6 / span 2; }

/* Minimal 5px Dot Directly on the 1px Vertical Line */
.vt-dot {
  position: absolute;
  top: 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(14, 16, 20, 0.42);
  box-shadow: 0 0 0 4px #eff2f2;
  transition: background 0.18s ease, transform 0.18s ease;
}

.vt-left .vt-dot {
  right: -32px;
  transform: translateX(50%);
}

.vt-right .vt-dot {
  left: -32px;
  transform: translateX(-50%);
}

.vt-dot--now {
  width: 6px;
  height: 6px;
  background: var(--akira-crimson);
}

.vt-entry:hover .vt-dot {
  background: var(--akira-crimson);
}

/* Serene Editorial Typography — Zero Borders, Zero Noise */
.vt-date {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

.vt-date--now {
  color: var(--akira-crimson);
}

.vt-org {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink-black);
  letter-spacing: 0.005em;
}

.vt-org-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.14s ease;
}

.vt-org-link:hover {
  color: var(--akira-crimson);
}

.ext-arrow {
  display: inline-block;
  margin-left: 4px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--ink-muted);
  opacity: 0.6;
  transition: opacity 0.14s ease, color 0.14s ease, transform 0.14s ease;
}

.vt-org-link:hover .ext-arrow {
  opacity: 1;
  color: var(--akira-crimson);
  transform: translate(1.5px, -1.5px);
}

.vt-role {
  margin: 2px 0 9px;
  font-family: var(--font-serif);
  font-size: 0.96rem;
  font-style: italic;
  color: var(--ink-muted);
  line-height: 1.3;
}

.vt-bullets {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-serif);
  font-size: 0.94rem;
  line-height: 1.48;
  color: var(--ink-body);
}

.vt-bullets li {
  position: relative;
  padding-left: 12px;
}

.vt-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(14, 16, 20, 0.28);
}

.vt-bullets strong {
  color: var(--ink-black);
  font-weight: 600;
}

.vt-edu-note {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 0.94rem;
  color: var(--ink-body);
}

/* Minimal Technical Skills Footer */
.skills-band {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line-subtle);
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: baseline;
  gap: 6px 18px;
}

.skills-heading {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.skills-list {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-body);
}

/* ==========================================================================
   6. RIGHT: Calm KJ Sitting on Akira Bike (Sticky, Clean, Unframed)
   ========================================================================== */

.bike-side {
  position: sticky;
  top: clamp(82px, 16vh, 174px);
  margin: 0;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  user-select: none;
}

.sitting-bike-img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  max-width: 400px;
  height: auto;
  filter: drop-shadow(0 16px 22px rgba(14, 18, 24, 0.11));
}

.bike-shadow {
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 1%;
  height: 26px;
  z-index: 1;
  background: radial-gradient(ellipse at center, rgba(16, 20, 28, 0.2) 0%, rgba(16, 20, 28, 0.07) 55%, transparent 78%);
  filter: blur(6px);
  pointer-events: none;
}

/* ==========================================================================
   7. Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1120px) {
  .work-stage {
    min-height: auto;
    padding: 76px 24px 60px;
  }

  .work-layout {
    grid-template-columns: 1fr;
    gap: 44px;
    max-width: 880px;
  }

  .bike-side {
    position: relative;
    top: auto;
  }

  .sitting-bike-img {
    max-width: 350px;
  }
}

@media (max-width: 760px) {
  :root {
    --poster-h: auto;
  }

  .top-chrome {
    padding: 12px 14px;
  }

  .top-brand span:last-child {
    display: none;
  }

  .top-links {
    gap: 11px;
  }

  .top-link {
    font-size: 0.66rem;
  }

  .poster-hero {
    min-height: 100svh;
    justify-content: flex-start;
    padding-top: 0;
  }

  .poster-stage {
    height: auto;
    width: 100%;
    padding-top: 36px;
    background: linear-gradient(180deg, #aad1e3 0%, #aad1e3 40px, transparent 40px);
  }

  .poster-art-img {
    width: 100%;
    height: auto;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 5%, #000 94%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 5%, #000 94%, transparent 100%);
  }

  .road-centerline {
    width: 4.24vw;
  }

  .resume-head {
    margin-bottom: 26px;
  }

  /* Clean left-rail minimal vertical line on mobile */
  .vtimeline {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    row-gap: 22px;
    padding-left: 22px;
  }

  .vt-axis {
    left: 4px;
    transform: none;
  }

  .vt-left,
  .vt-right {
    grid-column: 1;
    grid-row: auto;
    padding-bottom: 2px;
  }

  .vt-left .vt-dot,
  .vt-right .vt-dot {
    left: -18px;
    right: auto;
    transform: translateX(-50%);
  }

  .skills-band {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-line {
    animation: none !important;
  }

  .reveal-block {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   8. Crisp 1-Page Classic Printable Resume (@media print)
   ========================================================================== */

@media print {
  @page {
    margin: 0.45in 0.55in;
  }

  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 10pt !important;
    line-height: 1.32 !important;
  }

  .road-centerline,
  .poster-grain,
  .top-chrome,
  .poster-hero,
  .bike-side,
  .vt-axis,
  .vt-dot,
  .ext-arrow,
  #printResumeBtn2,
  .resume-contact .dot-sep:last-of-type {
    display: none !important;
  }

  .work-stage,
  .work-layout,
  .resume-wrap,
  .vtimeline {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }

  .reveal-block {
    opacity: 1 !important;
    transform: none !important;
  }

  .resume-head {
    display: block !important;
    text-align: center !important;
    padding-bottom: 6pt !important;
    margin-bottom: 10pt !important;
    border-bottom: 1pt solid #000 !important;
  }

  .resume-id {
    justify-content: center !important;
  }

  .resume-name {
    font-size: 17pt !important;
  }

  .resume-role {
    color: #222 !important;
    font-size: 10.5pt !important;
  }

  .resume-contact {
    justify-content: center !important;
    margin-top: 3pt !important;
    font-size: 8.5pt !important;
    color: #000 !important;
  }

  .cv-link {
    color: #000 !important;
  }

  .vt-entry {
    margin-bottom: 8pt !important;
    padding-bottom: 0 !important;
    break-inside: avoid;
  }

  .vt-date {
    float: right;
    color: #222 !important;
    font-size: 8.2pt !important;
    margin-top: 2pt !important;
  }

  .vt-org {
    font-size: 11pt !important;
  }

  .vt-role {
    color: #222 !important;
    font-size: 9.6pt !important;
    margin: 1pt 0 3pt !important;
  }

  .vt-bullets {
    gap: 2pt !important;
    font-size: 9.4pt !important;
    line-height: 1.3 !important;
    color: #111 !important;
  }

  .vt-bullets li {
    padding-left: 10pt !important;
  }

  .vt-bullets li::before {
    background: #000 !important;
  }

  .skills-band {
    display: block !important;
    margin-top: 8pt !important;
    padding-top: 6pt !important;
    border-top: 0.8pt solid #000 !important;
  }

  .skills-heading {
    color: #000 !important;
    margin-bottom: 2pt !important;
  }

  .skills-list {
    font-size: 9pt !important;
    line-height: 1.38 !important;
    color: #111 !important;
  }
}
