/* ============================================================
   ROADCOACH (Tesla Coaching) — Card-style case study
   Palette: warm yellow card · black type
   ============================================================
   Simplified system — 3 colors, 3 type sizes:
     Colors: --tc-ink (headings/emphasis) · --tc-ink-soft (body/labetc) · --tc-line (borders)
     Type:   Title (hero h1) · Label (uppercase eyebrows) · Body (everything etce)
   ============================================================ */

:root {
  --tc-card:      rgb(255, 200, 87);
  --tc-ink:       rgb(0, 0, 0);
  --tc-ink-soft:  rgba(0, 0, 0, 0.60);
  --tc-line:      rgba(0, 0, 0, 0.60);
}

/* ---- Page base ---- */
body {
  background: var(--outer);
  color: var(--tc-ink);
  min-height: 100vh;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;

  background-image: url(../assets/World/texture.png);
  background-repeat: repeat;
  opacity: 0.05;
}

/* ============================================================
   OUTER NAV
   ============================================================ */

.outer-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0.75rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 200;
}

.close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--close-button);
  color: var(--close-button-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}

.close:hover {
  background: var(--close-hover-button-bg);
  color: var(--close-hover-button-text);
}

/* ============================================================
   MAIN WRAPPER
   ============================================================ */

.tc-main {
  padding: 0 1.25rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tc-hero-card,
.tc-content-card {
  background: var(--tc-card);
}

.tc-hero-card    { border-radius: 20px 20px 0 0; overflow: hidden; }
.tc-content-card { border-radius: 0 0 20px 20px; overflow: hidden; }

/* ============================================================
   PROJECT NAVIGATION STACK
   ============================================================ */

.tc-stack {
  position: relative;
  height: calc(100vh - 64px);
}

.tc-stack .tc-hero-card {
  position: absolute;
  top: 80px;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: unset;
  z-index: 4;
  will-change: transform;
  transition: transform 200ms ease-out;
}

.tc-peek-card {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 20px 20px 0 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 4px;
  text-decoration: none;
  cursor: pointer;
  will-change: transform;
  transition: transform 200ms ease-out;
}

.tc-peek-card:nth-child(1) { top: 0;    z-index: 1; }
.tc-peek-card:nth-child(2) { top: 20px; z-index: 2; }
.tc-peek-card:nth-child(3) { top: 40px; z-index: 3; }
.tc-peek-card:nth-child(4) { top: 60px; z-index: 4; }

.tc-peek-card--livespace { background: var(--background-tc-card); }
.tc-peek-card--jeon      { background: var(--background-js-card); }
.tc-peek-card--seoul     { background: var(--background-sf-card); }
.tc-peek-card--forgotten { background: var(--background-fp-card); }

.tc-peek-card:hover ~ .tc-peek-card,
.tc-peek-card:hover ~ .tc-hero-card {
  transform: translateY(7px);
}

.tc-peek-card__label {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 150ms ease-out;
}

.tc-peek-card--livespace .tc-peek-card__label { color: var(--font-color-tc); }
.tc-peek-card--jeon      .tc-peek-card__label { color: var(--font-color-js); }
.tc-peek-card--seoul     .tc-peek-card__label { color: var(--font-color-sf); }
.tc-peek-card--forgotten .tc-peek-card__label { color: var(--font-color-fp); }

.tc-peek-card:hover .tc-peek-card__label { opacity: 1; }

/* ============================================================
   TYPE SYSTEM
   ============================================================
   Label — small uppercase eyebrow (section labetc, tags, meta)
   Title — the one large display size (hero h1 only)
   Everything etce uses var(--font-size-base) ("Body"), varying
   only by weight (400 default / 600 emphasis) and color.
   ============================================================ */

.tc-card-brand,
.tc-tagline__tags,
.tc-section-label,
.tc-persona__role,
.tc-loop-step__index,
.tc-next-label,
.tc-table th {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tc-ink-soft);
}

.tc-section-label,
.tc-persona__role,
.tc-loop-step__index,
.tc-next-label {
  display: block;
}

/* ============================================================
   HERO CARD — copy left, art right
   ============================================================ */

.tc-hero-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  min-height: calc(100vh - 64px);
  padding: 2.5rem 0rem 3rem 12rem;
  position: relative;
}

.tc-card-brand {
  position: absolute;
  top: 2rem;
  left: 8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tc-brand-mark { color: var(--tc-ink-soft); }

.tc-hero-inner {
  padding-left: 0rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 62ch;
  min-width: 0;
}

.tc-hero-art {
  flex-shrink: 0;
  width: min(100vw, 700px);
}

.tc-hero-art__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
}

.tc-ack-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tc-ack-list {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 0.5rem 2rem;
  margin: 0;
}

.tc-ack-list dt {
  font-size: var(--font-size-base);
  color: var(--tc-label);
  /* font-weight: 400; */
}

.tc-ack-list dd {
  font-size: var(--font-size-base);
  color: var(--tc-text);
  /* font-weight: 400; */
  margin: 0;
}

.tc-title {
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  font-weight: 400;
  line-height: 1.24;
  color: var(--tc-ink);
  letter-spacing: -0.015em;
  margin: 0;
}

.tc-tagline__quote {
  font-style: italic;
  font-size: var(--font-size-base);
  font-weight: 600;
  line-height: 1.6;
  color: var(--tc-ink);
  margin: 0;
}

/* ============================================================
   CONTENT SECTIONS
   ============================================================ */

.tc-figma-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.figma-container {
  width: 350px;
  flex-shrink: 0;
  aspect-ratio: 9 / 18;
  border-radius: 56px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.phone-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.figma-container iframe {
  position: absolute;
  top: 54%;
  left: 50%;
  width: 125%;
  height: 130%;
  transform: translate(-50%, -50%);
  border: none;
  display: block;
}

.figma-container-desktop {
  width: 700px;
  flex-shrink: 0;
  aspect-ratio: 16 / 10;
  border-radius: 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  position: relative;
}

.desktop-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.figma-container-desktop iframe {
  position: absolute;
  top: 56%;
  left: 50%;
  width: 129%;
  height: 143%;
  transform: translate(-50%, -50%);
  border: none;
  display: block;
}

.tc-content-card {
  padding: 0;
  min-height: calc(100vh - 64px);
}

.tc-card-section {
  padding: 5rem 5rem 5rem 12rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.tc-card-section--tight { padding-top: 0; }

.tc-desc-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 68ch;
}

.tc-content-card p {
  font-size: var(--font-size-base);
  line-height: 1.75;
  color: var(--tc-ink-soft);
  margin: 0;
}

.tc-content-card strong {
  color: var(--tc-ink);
  font-weight: 600;
}

.tc-lede {
  font-weight: 600;
  color: var(--tc-ink);
}

/* ---- Generic bullet list ---- */
.tc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  max-width: 68ch;
}

.tc-list li {
  font-size: var(--font-size-base);
  line-height: 1.62;
  color: var(--tc-ink-soft);
  padding-left: 1.25em;
  position: relative;
}

.tc-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--tc-ink-soft);
}

.tc-list--themes li strong {
  display: block;
  color: var(--tc-ink);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

/* ---- Personas ---- */
.tc-personas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  max-width: 72ch;
}

.tc-persona {
  border: 1px solid var(--tc-line);
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.tc-persona__name {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--tc-ink);
}

.tc-persona p {
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--tc-ink-soft);
}

/* ---- Design decisions table ---- */
.tc-table {
  width: 100%;
  max-width: 76ch;
  border-collapse: collapse;
  margin-top: 0.5rem;
}

.tc-table th,
.tc-table td {
  text-align: left;
  font-size: var(--font-size-base);
  line-height: 1.55;
  padding: 0.875rem 1.25rem 0.875rem 0;
  border-bottom: 1px solid var(--tc-line);
  vertical-align: top;
}

.tc-table td {
  color: var(--tc-ink-soft);
}

.tc-table td:first-child { color: var(--tc-ink); font-weight: 600; }

/* ---- Before / During / After loop ---- */
.tc-loop {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 78ch;
  margin-top: 0.5rem;
}

.tc-loop-step {
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.tc-loop-step__title {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--tc-ink);
}

.tc-loop-step p {
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--tc-ink-soft);
}

/* ---- What I worked on ---- */
.tc-work-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  max-width: 68ch;
}

.tc-work-item {
  font-size: var(--font-size-base);
  line-height: 1.62;
  color: var(--tc-ink-soft);
  padding-left: 1.25rem;
  border-left: 1px solid var(--tc-line);
}

/* ============================================================
   NEXT PROJECT
   ============================================================ */

.tc-next {
  padding: 1.5rem 8rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

.tc-next-link {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--next-link);
  text-decoration: none;
  transition: color 0.2s;
}

.tc-next-link:hover { color: var(--next-hover-link); }

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */

[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  will-change: transform, opacity;
  transition:
    opacity  820ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 820ms cubic-bezier(0.22, 1, 0.36, 1);
}

[data-animate="fade-only"] {
  opacity: 0;
  transform: none;
  will-change: opacity;
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

[data-animate].revealed,
[data-animate="fade-only"].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .tc-hero-card    { padding: 2.5rem 3rem 3rem 4rem; gap: 2rem; }
  .tc-card-brand   { left: 4rem; }
  .tc-hero-inner   { padding-left: 4rem; }
  .tc-hero-art     { width: min(30vw, 300px); }
  .tc-card-section { padding: 3.5rem 4rem; }
  .tc-personas     { grid-template-columns: 1fr; }
  .tc-loop         { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .tc-stack {
    height: auto;
    display: flex;
    flex-direction: column;
  }

  .tc-peek-card {
    position: relative;
    top: auto; left: auto; right: auto; bottom: auto;
    height: 16px;
    border-radius: 20px 20px 0 0;
    align-items: center;
    flex-shrink: 0;
  }

  .tc-peek-card:nth-child(n+2) { border-radius: 0; }

  .tc-peek-card:hover ~ .tc-peek-card,
  .tc-peek-card:hover ~ .tc-hero-card {
    transform: none;
  }

  .tc-peek-card__label { opacity: 1; }

  .tc-stack .tc-hero-card {
    position: relative;
    top: auto; left: auto; right: auto; bottom: auto;
    min-height: unset;
    z-index: auto;
    flex: 1;
    border-radius: 0;
  }

  .tc-hero-card    { min-height: auto; padding: 2rem 1.5rem; flex-direction: column; align-items: stretch; gap: 1.75rem; }
  .tc-card-brand   { position: static; margin-bottom: 1.5rem; }
  .tc-hero-inner   { padding-left: 0; }
  .tc-hero-art     { width: 70%; align-self: center; }
  .tc-card-section { padding: 2.5rem 1.5rem; }
  .tc-table th, .tc-table td { padding: 0.75rem 0.75rem 0.75rem 0; }
  .tc-figma-row { flex-direction: column; align-items: center; }
  .figma-container-desktop { width: 100%; max-width: 500px; }
}

@media (max-width: 480px) {
  .tc-main         { padding: 0 0.625rem 2rem; }
  .tc-hero-card    { border-radius: 16px 16px 0 0; }
  .tc-peek-card    { border-radius: 16px 16px 0 0; }
  .tc-content-card { border-radius: 0 0 16px 16px; }
  .outer-nav       { padding: 0.625rem 1rem; }
}
