/* ============================================================
   JORDI PORTFOLIO – style.css
   Fonts: Poppins Black (JORDI), Soleil Bold via Adobe Typekit (Japanese),
          JetBrains Mono (labels), Syne (headings)
   Typekit loaded in HTML: https://use.typekit.net/zix7yss.css
   ============================================================ */

   :root {
    --sky-light:   #A2D2FF;   /* gradient top */
    --sky-mid:     #c8e4ff;
    --sky-main:    #A2D2FF;   /* nav bg */
    --sky-bottom:  #F8FBFD;   /* gradient bottom */
    --blue-card:   #3a9fd9;   /* project card fill */
    --white:       #ffffff;
    --dark:        #111111;
    --nav-height:  58px;
  }
  
  /* ── RESET ── */
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  
  body {
    background: linear-gradient(180deg, #A2D2FF 0%, #F8FBFD 100%);
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    overflow-x: hidden;
  }
  
  /* ── NAV ── */
  .nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-height);
    pointer-events: none;
  }
  
  .nav > * { pointer-events: auto; }
  
  /* Name — absolute top-left */
  .nav-name {
    position: absolute;
    left: 1.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--dark);
    opacity: 0.7;
    white-space: nowrap;
  }
  
  /* Pill — fixed, always centred in viewport */
  .nav-links {
    position: fixed;
    top: calc(var(--nav-height) / 2);
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 101;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 999px;
    padding: 5px 6px;
    gap: 2px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  }
  
  /* Contact — absolute top-right */
  .nav-contact {
    position: absolute;
    right: 1.75rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 1.25rem;
  }
  
  .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 1.1rem;
    text-decoration: none;
    color: var(--dark);
    border-radius: 999px;
    transition: background 0.2s;
    line-height: 1.2;
  }
  
  .nav-link:hover {
    background: rgba(162, 210, 255, 0.45);
  }
  
  .nav-link.active {
    background: #A2D2FF;
  }
  
  .nav-primary {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  
  .nav-secondary {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    opacity: 0.6;
    letter-spacing: 0.04em;
  }
  
  /* Right: contact links */
  .nav-contact {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.25rem;
  }
  
  .nav-contact-link {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--dark);
    opacity: 0.6;
    text-decoration: none;
    text-transform: uppercase;
    transition: opacity 0.2s;
  }
  .nav-contact-link:hover { opacity: 1; }
  
  /* ── HERO ── */
  .hero {
    position: relative;
    background: transparent;
    overflow: hidden;
  }
  
  /* Name block — equal visual space above and below JORDI.
     Top adds nav-height so the floating pill doesn't overlap. */
  .hero-name-block {
    background: transparent;
    padding: calc(var(--nav-height) + 3rem) 0 3rem;
    text-align: center;
    overflow: hidden;
  }
  
  /* Wrapper — sized exactly to JORDI's rendered box */
  .hero-name-wrap {
    position: relative;
    display: inline-block;   /* shrink-wraps to JORDI text width */
    line-height: 1;
    /* stretch to full viewport width so JP can fill it */
    width: 100%;
  }
  
  /* JORDI — Poppins Black, full white */
  .hero-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-size: clamp(6rem, 28vw, 16rem);
    color: var(--white);
    opacity: 1;
    letter-spacing: -0.02em;
    line-height: 1;
    position: relative;
    z-index: 2;
    display: block;
    white-space: nowrap;
  }
  
  /* ジョルディ — Soleil Bold, 70% opacity, auto-scaled to fit behind JORDI */
  .hero-name-jp {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Soleil', 'Poppins', sans-serif;
    font-weight: 700;
    /* font-size set by JS to fit exactly — fallback below */
    font-size: clamp(4rem, 20vw, 11rem);
    line-height: 1;
    letter-spacing: 0em;
    color: #2d3f5c;
    opacity: 0.7;
    z-index: 1;
    pointer-events: none;
    white-space: nowrap;
    /* prevent any overflow past the JORDI box */
    max-width: 100%;
    overflow: hidden;
  }
  
  /* Photo block — 5px gap from name block */
  .hero-photo-wrap {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 500px;
    margin-top: 0;
  }
  
  .hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
  }
  
  /* Full name overlay — wave animation via JS spans */
  .hero-fullname {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem 1.5rem 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 100%);
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(1.4rem, 6vw, 3rem);
    color: var(--white);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    display: flex;
    align-items: baseline;
    justify-content: center;
    cursor: default;
    user-select: none;
  }
  
  /* ── TICKER ── */
  .ticker {
    width: 100%;
    overflow: hidden;
    padding: 0.5rem 0;
    border-top: 1px solid rgba(0,0,0,0.08);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    background: transparent;
  }
  
  .ticker-track {
    display: flex;
    gap: 0.6rem;
    width: max-content;
    animation: ticker-scroll 18s linear infinite;
  }
  
  .ticker-track span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--dark);
    white-space: nowrap;
    opacity: 0.65;
  }
  
  @keyframes ticker-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
  }
  
  /* ── PROJECTS SECTION (homepage) ── */
  .projects {
    padding: 0;
  }
  
  .projects-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.75rem;
  }
  
  .projects-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dark);
    opacity: 0.7;
  }
  
  /* 3-card grid: left col tall, right col two stacked */
  .projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 0;
  }
  
  .project-card {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
  }
  
  .project-thumb {
    width: 100%;
    background: var(--blue-card);
    border-radius: 0;
    overflow: hidden;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  
  /* Hover only on the image thumbnail */
  .project-card:hover .project-thumb {
    transform: none;
    box-shadow: none;
  }
  
  .project-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    color: var(--dark);
    opacity: 0.75;
  }
  
  /* Hover overlay with centred project title */
  .project-thumb-hover {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
  }
  
  .project-card:hover .project-thumb-hover {
    background: rgba(0, 0, 0, 0.45);
  }
  
  .project-thumb-title {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(1rem, 2.5vw, 1.8rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    text-align: center;
    padding: 0 1.5rem;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  
  .project-card:hover .project-thumb-title {
    opacity: 1;
    transform: translateY(0);
  }
  
  .project-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  
  /* Card 1 — tall, spans both rows on the left */
  .project-card--tall {
    grid-column: 1;
    grid-row: 1 / 3;
  }
  .project-card--tall .project-thumb {
    flex: 1;
    min-height: 600px;
  }
  
  /* Card 2 — top right */
  .project-card--short {
    grid-column: 2;
    grid-row: 1;
  }
  .project-card--short .project-thumb { height: 285px; }
  
  /* Card 3 — bottom right */
  .project-card--short-right {
    grid-column: 2;
    grid-row: 2;
  }
  .project-card--short-right .project-thumb { height: 390px; }
  
  /* ── HOMEPAGE INTRO SENTENCE ── */
  .home-intro {
    padding: 2.5rem 1.5rem 2rem;
    max-width: 900px;
    margin: 0 auto;
  }
  
  .home-intro-text {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 400;
    line-height: 1.6;
    color: var(--dark);
    opacity: 0.7;
  }
  
  /* ── HOMEPAGE CTA ── */
  .home-cta {
    padding: 3rem 1.5rem 3rem;
    text-align: center;
  }
  
  .home-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--dark);
    text-decoration: none;
    letter-spacing: -0.01em;
    transition: gap 0.25s;
  }
  
  .home-cta-link:hover { gap: 1.25rem; }
  
  .home-cta-arrow {
    font-size: 0.8em;
    opacity: 0.5;
    transition: opacity 0.25s, transform 0.25s;
  }
  
  .home-cta-link:hover .home-cta-arrow {
    opacity: 1;
    transform: translateX(4px);
  }
  
  /* ── SPACER ── */
  .spacer {
    height: 120px;
  }
  
  /* ── FOOTER ── */
  .footer {
    background: var(--sky-main);
    border-top: none;
    position: relative;
    z-index: 10;
    padding: 1.25rem 3rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
  }
  
  .footer-phone {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--white);
    opacity: 0.85;
  }
  
  .footer-text {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--white);
    opacity: 0.9;
    text-align: center;
    animation: footerBounce 2.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) infinite;
    display: inline-block;
  }
  
  @keyframes footerBounce {
    0%, 100%  { transform: translateY(0);    }
    10%       { transform: translateY(-6px); }
    20%       { transform: translateY(0);    }
    30%       { transform: translateY(-3px); }
    40%       { transform: translateY(0);    }
  }
  
  .footer-icons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
  }
  
  .footer-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    color: var(--white);
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
  }
  .footer-icon:hover {
    background: rgba(255,255,255,0.35);
    transform: translateY(-2px);
  }
  .footer-icon svg {
    width: 18px;
    height: 18px;
    fill: var(--white);
  }
  
  /* ── INNER PAGE HERO ── */
  .page-hero {
    padding: 3rem 1.5rem 1.5rem;
    background: transparent;
  }
  
  .page-title {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(3.5rem, 16vw, 7rem);
    color: var(--white);
    line-height: 0.92;
    letter-spacing: -0.02em;
    text-transform: uppercase;
  }
  
  /* ── PROJECTS FULL PAGE ── */
  .projects-full {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  
  .project-full-card {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    align-items: stretch;
    min-height: 60vh;
  }
  
  /* Reversed: image left, info right */
  .project-full-card--reverse {
    grid-template-columns: 1.4fr 1fr;
  }
  
  .project-full-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    padding: 4rem 5rem;
  }
  
  .project-full-thumb {
    width: 100%;
    height: 100%;
    min-height: 50vh;
    background: var(--blue-card);
    border-radius: 0;
    overflow: hidden;
    transition: none;
    position: relative;
  }
  .project-full-card:hover .project-full-thumb { transform: none; }
  
  /* Hover overlay — only shows when data-link is present (cursor:pointer set by JS) */
  .project-thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 1rem 1.2rem;
    transition: background 0.25s;
    pointer-events: none;
  }
  
  .project-full-thumb[data-link]:not([data-link=""]):hover .project-thumb-overlay {
    background: rgba(0,0,0,0.35);
  }
  
  .project-thumb-cta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #fff;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.25s, transform 0.25s;
  }
  
  .project-full-thumb[data-link]:not([data-link=""]):hover .project-thumb-cta {
    opacity: 1;
    transform: translateY(0);
  }
  
  .project-full-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  
  /* no target highlight */
  .project-full-card:target { outline: none; }
  
  .project-full-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    opacity: 0.55;
    letter-spacing: 0.1em;
  }
  
  .project-full-name {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.05;
  }
  
  .project-full-desc {
    font-family: 'Poppins', sans-serif;
    font-size: 0.92rem;
    line-height: 1.7;
    opacity: 0.7;
    margin-top: 0.5rem;
  }
  
  @media (max-width: 680px) {
    .project-full-card,
    .project-full-card--reverse {
      grid-template-columns: 1fr;
      min-height: auto;
    }
    .project-full-info { padding: 2.5rem 1.5rem; }
    .project-full-thumb { min-height: 55vw; }
  }
  
  /* ── ABOUT PAGE ── */
  
  .about-video-section {
    width: 100%;
    height: 70vw;
    min-height: 400px;
    max-height: 720px;
    overflow: hidden;
    background: var(--dark);
  }
  
  .about-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  
  /* ── FLOW SECTION ─────────────────────────────────────
     position:relative makes this the offsetParent for all
     children, so offsetTop gives section-relative coords. */
  .flow-section {
    position: relative;
    width: 100%;
    overflow: visible;  /* pills on right edge must not be clipped */
  }
  
  #flowSvg {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: visible;
    z-index: 0;
  }
  
  /* ZU MIR section — full width, generous padding */
  .flow-content {
    position: relative;
    z-index: 1;
    padding: 6rem 8% 5rem;
  }
  
  /* Two-column row: large title left, paragraphs right */
  .flow-zu-mir-row {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 4rem;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
  }
  
  .flow-zu-mir-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--dark);
    opacity: 0.15;
    line-height: 1.05;
    letter-spacing: -0.01em;
    position: sticky;
    top: 6rem;
  }
  
  /* Right column: stacked paragraphs */
  .flow-intro-block {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .flow-intro {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(0.95rem, 1.6vw, 1.1rem);
    line-height: 1.8;
    color: var(--dark);
    opacity: 0.72;
  }
  
  .flow-facts {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-width: 560px;
  }
  
  .flow-facts li {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(0.62rem, 1.2vw, 0.78rem);
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--dark);
    line-height: 1.55;
    padding-left: 1.1em;
    position: relative;
  }
  
  .flow-facts li::before {
    content: '•';
    position: absolute;
    left: 0;
  }
  
  .about-link {
    color: var(--dark);
    text-decoration: underline;
    text-underline-offset: 2px;
  }
  
  .about-link--highlight {
    color: #e05a2b;
    text-decoration: none;
  }
  
  /* ── PHOTO FILMSTRIP ────────────────────────────────────────
     Fotos nebeneinander, hover klappt ein Foto auf.
     Ersetze assets/strip-1.jpg etc. mit deinen eigenen Fotos.
  ─────────────────────────────────────────────────────────── */
  .photo-strip {
    display: flex;
    height: 580px;
    overflow: hidden;
    cursor: pointer;
  }
  
  .strip-photo {
    flex: 1 1 0;         /* flex-basis 0 forces truly equal widths */
    position: relative;
    overflow: hidden;
    transition: flex 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    background: #5a8ab0;
    min-width: 0;
  }
  
  .strip-photo:nth-child(1) { background: #7aaac8; }
  .strip-photo:nth-child(2) { background: #5a8ab0; }
  .strip-photo:nth-child(3) { background: #4a7a9b; }
  .strip-photo:nth-child(4) { background: #3a6a8a; }
  .strip-photo:nth-child(5) { background: #4a7a9b; }
  .strip-photo:nth-child(6) { background: #5a8ab0; }
  
  .photo-strip:hover .strip-photo { flex: 0.4; }
  .photo-strip .strip-photo:hover { flex: 3; }
  
  .strip-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    pointer-events: none;
    transform: scale(1.0);   /* no extra zoom */
  }
  
  /* Caption fades in on hover */
  .strip-caption {
    position: absolute;
    bottom: 1.25rem;
    left: 1.25rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s 0.15s, transform 0.3s 0.15s;
    white-space: nowrap;
    pointer-events: none;
  }
  
  .strip-photo:hover .strip-caption {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Line above caption */
  .strip-caption::before {
    content: '';
    display: block;
    width: 24px;
    height: 1.5px;
    background: rgba(255,255,255,0.6);
    margin-bottom: 0.4rem;
  }
  
  /* Line passes ABOVE the top of this element */
  .flow-einfluesse {
    position: relative;
    z-index: 1;
    margin-top: 5rem;
    padding: 0 2rem 0 5%;
  }
  
  .flow-heading-left {
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    color: var(--dark);
    line-height: 1;
  }
  
  
  /* ── VERTICAL TIMELINE ─────────────────────────────────────────
     Three-column grid per row:
     [left cards] [axis: dot + year] [right cards]
     Axis is always centred. Cards fill left OR right column.
  ─────────────────────────────────────────────────────────────── */
  
  .tl-wrap {
    position: relative;
    padding: 2rem 0 3rem;
    max-width: 860px;
    margin: 0 auto;
  }
  
  /* Three-column grid: left cards | axis | right cards */
  .tl-year {
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    align-items: center;
    gap: 0 1.5rem;
    margin-bottom: 3rem;
  }
  
  /* Axis: just the dot, centred in its column */
  .tl-axis {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
  }
  
  .tl-dot {
    display: block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
    /* Dot rendered by SVG — this element is just a position anchor */
  }
  
  /* Year label now rendered in SVG — hide DOM label if leftover */
  .tl-year-label {
    display: none;
  }
  
  /* Left cards column — right-aligned toward the axis */
  .tl-cards-left {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
  }
  
  /* Right cards column — left-aligned toward the axis */
  .tl-cards-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  /* Card + popup wrapper */
  .tl-card-wrap {
    position: relative;
    display: flex;
    align-items: center;
  }
  
  /* Popup base */
  .tl-popup {
    position: absolute;
    width: 240px;
    background: #fff;
    border: 0.5px solid rgba(0,0,0,0.15);
    border-radius: 14px;
    padding: 0.85rem 1.1rem;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-6px);
    transition: opacity 0.2s, transform 0.2s;
    z-index: 10;
    box-shadow: 0 6px 24px rgba(0,0,0,0.1);
  }
  
  /* Show on card hover */
  .tl-card-wrap:hover .tl-popup {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
  }
  
  /* Right popup — appears to the right of card */
  .tl-popup--right {
    left: calc(100% + 12px);
    top: 50%;
    translate: 0 -50%;
    transform: translateX(6px);
  }
  .tl-card-wrap:hover .tl-popup--right { transform: translateX(0); }
  
  /* Left popup — appears to the left of card */
  .tl-popup--left {
    right: calc(100% + 12px);
    left: auto;
    top: 50%;
    translate: 0 -50%;
    transform: translateX(-6px);
  }
  .tl-card-wrap:hover .tl-popup--left { transform: translateX(0); }
  
  .tl-popup-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: #111;
    margin-bottom: 0.4rem;
    line-height: 1.3;
  }
  
  .tl-popup-desc {
    font-family: 'Poppins', sans-serif;
    font-size: 0.78rem;
    line-height: 1.65;
    color: #444;
  }
  
  .tl-popup-tag {
    display: inline-block;
    margin-top: 0.6rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    background: rgba(0,0,0,0.06);
    color: #555;
  }
  
  /* Single card — fixed width so all cards in same column are equal */
  .tl-card {
    background: #87CEEB;
    border-radius: 14px;
    padding: 0.65rem 1rem 0.7rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    width: 240px;       /* fixed width — all cards identical */
    min-width: 240px;
    cursor: default;
    transition: transform 0.18s, box-shadow 0.18s;
  }
  
  .tl-card-wrap:hover .tl-card {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  }
  
  .tl-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: clamp(0.82rem, 1.5vw, 0.95rem);
    color: var(--dark);
    line-height: 1.25;
  }
  
  .tl-period {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(0.62rem, 1.1vw, 0.72rem);
    color: var(--dark);
    opacity: 0.55;
    letter-spacing: 0.05em;
  }
  
  /* "und heute" bottom right */
  .flow-heading-right {
    position: relative;
    z-index: 1;
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    color: var(--dark);
    text-align: right;
    padding: 1rem 2rem 4rem 0;
  }
  
  /* ── RESPONSIVE ── */
  @media (max-width: 600px) {
    .nav-link { padding: 0 1rem; }
    .nav-primary { font-size: 0.8rem; }
    .hero-name { font-size: 18vw; }
    .projects { padding: 1rem 0.75rem; }
    .flow-content { padding-left: 22%; }
    .tl-year { grid-template-columns: 1fr 60px 1fr; gap: 0 0.75rem; }
    .tl-card { max-width: 200px; }
  }