/* ========================================================================== 
   resume.css - vertical resume page using the portfolio's existing system
   ========================================================================== */

html { scroll-behavior: smooth; }
body { overflow-x: hidden; background: var(--near-black); color: var(--off-white); }
.resume-page { position: relative; z-index: 1; }
.resume-section { position: relative; width: 100%; border-bottom: 1px solid rgba(240,239,232,.12); }
.resume-shell { width: 100%; max-width: 1800px; margin: 0 auto; padding: 11vh var(--gutter) 13vh; }

/* Exact homepage editorial headline language */
.section-title {
  font-family: var(--display);
  font-size: clamp(56px, 9vw, 134px);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: var(--off-white);
}

/* Intro aligns to every other section */
.resume-intro { min-height: 64svh; display: flex; align-items: flex-end; }
.intro-shell { padding-bottom: 9vh; }
.intro-content { width: 100%; }
.intro-content h1 { max-width: 1250px; }
.intro-content p {
  max-width: 1280px;
  margin-top: 24px;
  font-family: var(--display);
  font-size: clamp(20px, 1.7vw, 31px);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -.015em;
  color: rgba(240,239,232,.72);
}

.section-head { padding-bottom: 20px; border-bottom: 1px solid rgba(240,239,232,.22); }

/* Experience accordion */
.experience-item { border-bottom: 1px solid rgba(240,239,232,.18); }
.experience-trigger {
  width: 100%; appearance: none; border: 0; background: transparent; color: inherit;
  cursor: pointer; display: grid;
  grid-template-columns: 56px minmax(260px,1.5fr) minmax(220px,1fr) 170px 24px;
  gap: 18px; align-items: center; padding: 25px 0; text-align: left;
}
.exp-index, .exp-role, .exp-date { font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.exp-index, .exp-date { font-size: 9px; color: rgba(240,239,232,.42); }
.exp-agency { font-family: var(--display); font-size: clamp(22px,2vw,35px); font-weight: 500; line-height: 1; }
.exp-role { font-size: 9px; line-height: 1.4; color: rgba(240,239,232,.64); }
.exp-toggle { font-family: var(--display); font-size: 26px; line-height: 1; color: var(--accent); transition: transform .35s var(--ease-expo); }
.experience-trigger:is(:hover,:focus-visible) .exp-agency { color: var(--accent); }
.experience-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease-expo); }
.panel-content { overflow: hidden; max-width: 900px; margin-left: 74px; opacity: 0; transform: translateY(-7px); transition: opacity .28s ease, transform .45s var(--ease-expo), padding .45s var(--ease-expo); }
.panel-content p { margin-bottom: 12px; font-family: var(--display); font-size: clamp(17px,1.35vw,23px); line-height: 1.35; color: rgba(240,239,232,.68); }
.experience-item.is-open .experience-panel { grid-template-rows: 1fr; }
.experience-item.is-open .panel-content { opacity: 1; transform: none; padding: 8px 0 36px; }
.experience-item.is-open .exp-toggle { transform: rotate(45deg); }

/* Brand wall */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-left: 1px solid rgba(240,239,232,.15);
}
.brand-logo-cell {
  min-height: 150px;
  display: grid;
  place-items: center;
  padding: clamp(22px, 2.5vw, 40px);
  border-right: 1px solid rgba(240,239,232,.15);
  border-bottom: 1px solid rgba(240,239,232,.15);
  overflow: hidden;
  transition: background .3s ease;
}
.brand-logo-cell img {
  display: block;
  width: auto;
  height: auto;
  max-width: 72%;
  max-height: 62px;
  object-fit: contain;
  filter: grayscale(1) brightness(0) invert(1);
  opacity: .48;
  transition: opacity .3s ease, filter .3s ease, transform .3s ease;
}
.brand-logo-cell:hover { background: var(--accent); }
.brand-logo-cell:hover img {
  filter: grayscale(1) brightness(0);
  opacity: 1;
  transform: scale(1.04);
}

/* Education, skills and languages */
.credentials-grid { display: grid; grid-template-columns: 1.2fr 1fr .8fr; gap: 8vw; padding-top: 38px; }
.credential-column h3 { padding-bottom: 17px; font-family: var(--mono); font-size: 10px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.credential-entry { display: grid; gap: 6px; padding: 19px 0 27px; border-top: 1px solid rgba(240,239,232,.17); }
.credential-entry strong { font-family: var(--display); font-size: 25px; font-weight: 500; }
.credential-entry span, .language { font-family: var(--mono); font-size: 9px; line-height: 1.45; letter-spacing: .08em; text-transform: uppercase; color: rgba(240,239,232,.5); }
.skills { list-style: none; border-top: 1px solid rgba(240,239,232,.17); }
.skills li { padding: 12px 0; border-bottom: 1px solid rgba(240,239,232,.12); font-family: var(--display); font-size: 20px; }
.language { display: flex; justify-content: space-between; gap: 16px; padding: 15px 0; border-top: 1px solid rgba(240,239,232,.17); }
.language b { font-weight: 400; text-align: right; }

/* More about me */
.resume-outro { min-height: 80svh; display: flex; align-items: center; }
.outro-shell { padding-bottom: 18vh; }
.outro-copy { max-width: 680px; margin-top: 30px; font-family: var(--display); font-size: clamp(19px,1.55vw,28px); line-height: 1.3; color: rgba(240,239,232,.68); }
.about-cta { display: inline-flex; gap: 14px; margin-top: 38px; font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .13em; text-transform: uppercase; color: var(--accent); text-decoration: none; }
.about-cta span { transition: transform .3s var(--ease-expo); }
.about-cta:hover span { transform: translate(4px,-4px); }

/* Right-side PTS nav: exact dot-and-segment language, no labels */
.project-nav { position: fixed; z-index: 250; top: 50%; right: calc(var(--frame-size) + 13px); transform: translateY(-50%); }
.resume-dots { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.pt-item { display: block; width: 9px; height: 9px; border: 1px solid rgba(240,239,232,.5); border-radius: 50%; background: rgba(0,0,0,.25); text-decoration: none; transition: background .3s ease, border-color .3s ease, transform .3s ease; }
.pt-item.is-active { background: var(--accent); border-color: var(--accent); transform: scale(1.35); }
.pt-segment { display: block; width: 1px; height: 12px; background: rgba(240,239,232,.12); }

/* Homepage bottom navigation, copied into the resume stylesheet unchanged */
.site-nav { position: fixed; z-index: 200; left: var(--frame-size); right: var(--frame-size); bottom: var(--frame-size); display: flex; align-items: center; justify-content: space-between; padding: 20px var(--gutter); pointer-events: none; }
.nav-timeline { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; width: 60vw; pointer-events: auto; }
.tl-item { flex-shrink: 0; display: block; padding: 2px 8px; text-decoration: none; color: inherit; transition: background .5s var(--ease-smooth), transform .2s ease; }
.tl-label { display: block; height: 1.2em; overflow: hidden; white-space: nowrap; font-family: var(--display); font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: rgba(240,239,232,.4); transition: color .5s var(--ease-smooth); }
.tl-item:is(:hover,:focus-visible) .tl-label { color: var(--off-white); }
.tl-segment { position: relative; flex: 1; height: 1px; margin: 0 4px; overflow: hidden; background: rgba(240,239,232,.12); }

@media (max-width: 900px) {
  .resume-shell { padding: 78px 20px 104px; }
  .resume-intro { min-height: auto; }
  .intro-shell { padding-top: 72px; padding-bottom: 70px; }
  .section-title { font-size: clamp(44px,13vw,68px); }
  .intro-content p { margin-top: 24px; font-size: clamp(19px,5.7vw,27px); }
  .experience-trigger { grid-template-columns: 30px 1fr 26px; grid-template-areas: "index agency toggle" ". role toggle" ". date toggle"; gap: 7px 10px; padding: 23px 0; }
  .exp-index { grid-area:index; } .exp-agency { grid-area:agency; font-size:23px; } .exp-role { grid-area:role; } .exp-date { grid-area:date; } .exp-toggle { grid-area:toggle; }
  .panel-content { margin-left: 40px; }
  .brand-grid { grid-template-columns: repeat(2,1fr); }
  .brand-logo-cell { min-height: 108px; padding: 20px; }
  .brand-logo-cell img { max-width: 74%; max-height: 50px; }
  .credentials-grid { grid-template-columns: 1fr; gap: 58px; }
  .project-nav { display: none; }
  .site-nav { left: var(--frame-size); right: var(--frame-size); bottom: var(--frame-size); padding: 14px 10px; }
  .nav-timeline { width: calc(100% - 20px); }
  .tl-item { padding: 3px 5px; }
  .tl-label { font-size: 9px; letter-spacing: .08em; }
  .tl-segment { margin: 0 2px; }
}


/* Resume headings: exact About headline treatment */
.section-headline {
  margin-bottom: 20px;
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: var(--off-white);
}


/* Final resume heading + download CTA */
.resume-page .section-headline {
  margin-bottom: 20px;
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: var(--off-white);
}

.download-cv {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--off-white);
}
.download-cv::after {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--accent);
  transition: width .45s var(--ease-expo);
}
.download-cv:is(:hover, :focus-visible)::after { width: 52px; }

@media (max-width: 900px) {
  .resume-page .section-headline { font-size: clamp(28px, 9vw, 46px); line-height: 1; }
  .download-cv { margin-top: 24px; }
}


/* ==========================================================================
   NAV PARITY FIXES
   Brings the resume page's bottom nav and right-hand dot nav in line with the
   homepage (home.css) and project pages (hyundai.css), which this page doesn't load.
   ========================================================================== */

/* ── Right-hand dot nav: animated segment fill (from hyundai.css) ─────────── */
.pt-segment { position: relative; overflow: hidden; }
.pt-segment::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .7s var(--ease-expo);
}
.pt-segment.is-filled::after { transform: scaleY(1); }

/* ── Bottom nav: entrance animation (from home.css) ───────────────────────── */
.js .site-nav { animation: nav-in .9s var(--ease-expo) .1s both; }
.js .nav-timeline { animation: fade-in .8s ease .4s both; }

@keyframes nav-in {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Bottom nav: hover / press / focus (from home.css) ────────────────────── */
.tl-item { border-radius: 0; }
.tl-item:hover  { transform: scale(1.08); }
.tl-item:active { transform: scale(.96); }
.tl-item:focus-visible { outline-offset: 1px; }

/* ── Bottom nav: letter-roll hover (needs the .tl-char split in resume.js) ── */
.tl-char {
  position: relative;
  display: inline-block;
  transition: transform .45s var(--ease-expo);
  transition-delay: calc(var(--char-index, 0) * 30ms);
}
.tl-char::after {
  content: attr(data-char);
  position: absolute;
  left: 0;
  top: 100%;
}
.tl-item:is(:hover, :focus-visible) .tl-char { transform: translateY(-100%); }

/* ── Bottom nav: segment fill, active + visited states (from home.css) ────── */
.tl-segment::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .9s var(--ease-expo) var(--seg-delay, 0ms);
}
.tl-segment.is-filled::after { transform: scaleX(1); }
.tl-item.is-visited:not(.is-active) .tl-label { color: rgba(240,239,232,.55); }
.tl-item.is-active { background: var(--accent); }
.tl-item.is-active .tl-label { color: var(--near-black); }
