/* ============================================================
   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: fixed;
    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 — fixed top-right pill */
  .nav-contact {
    position: fixed;
    right: 1.75rem;
    top: calc(var(--nav-height) / 2);
    transform: translateY(-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);
  }
  
  .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;
  }
  
  .nav-contact-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 1.1rem;
    color: var(--dark);
    text-decoration: none;
    border-radius: 999px;
    transition: background 0.2s;
  }
  .nav-contact-link svg {
    width: 18px;
    height: 18px;
  }
  .nav-contact-link:hover {
    background: rgba(162, 210, 255, 0.45);
  }
  
  /* ── 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;
  }
  
  @media (hover: hover) {
    .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;
  }
  
  @media (hover: hover) {
    .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;
  }
  
  @media (hover: hover) {
    .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: 340px; }
  
  /* Card 3 — bottom right */
  .project-card--short-right {
    grid-column: 2;
    grid-row: 2;
  }
  .project-card--short-right .project-thumb { height: 340px; }
  
  /* ── 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;
    margin-bottom: 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;
  }
  
  @media (hover: hover) {
    .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;
  }
  
  @media (hover: hover) {
    .project-full-thumb[data-link]:not([data-link=""]):hover .project-thumb-cta {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .project-full-img {
    position: absolute;
    inset: 0;
    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.5rem, 2.4vw, 2rem);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.05;
  }
  
  .project-full-desc {
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    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  { order: 1; padding: 2.5rem 1.5rem; }
    .project-full-thumb { order: 2; 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;
    object-position: center 75%;
    display: block;
    transform: scale(1.35);
    transform-origin: center 75%;
  }
  
  /* ── 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;
  }

  .flow-content--accent {
    background: #7db8d8;
  }

  /* Dragee Keksi custom cursor */
  a[href*="drageekeksi"]:hover {
    cursor: url('assets/dragee-cursor.png') 22 32, auto;
  }

  /* ── Photo strip scroll hint (mobile only) ── */
  .strip-scroll-hint {
    display: none;
  }

  /* ── Spotify embed ── */
  .spotify-embed {
    margin-top: 2rem;
  }

  /* ── Spotify link (fallback, kept for reference) ── */
  .spotify-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
    margin-left: 0.6em;
    color: #1DB954;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
  }
  .spotify-link:hover { opacity: 0.75; }
  .spotify-icon {
    width: 1.2em;
    height: 1.2em;
    flex-shrink: 0;
  }

  .flow-content--centered {
    text-align: center;
    padding: 5rem 12%;
  }

  .flow-intro-block--centered {
    max-width: 680px;
    margin: 1.5rem auto 0;
  }
  
  /* Two-column row: large title left, paragraphs right */
  .flow-zu-mir-row {
    display: grid;
    grid-template-columns: 1fr 2.2fr;
    gap: 4rem;
    align-items: start;
    max-width: 1280px;
    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);
    line-height: 1.05;
    letter-spacing: -0.01em;
  }
  
  /* 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.7; }
  .photo-strip .strip-photo:hover { flex: 2; }
  
  .strip-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    pointer-events: none;
    transform-origin: center center;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* Counter-scale: when strip collapses, image expands to keep apparent zoom constant */
  .photo-strip:hover .strip-photo:not(:hover) .strip-img {
    transform: scale(1.35);
  }

  /* Portrait images (3 & 7): no zoom effect — accordion opens without image scaling */
  .photo-strip:hover .strip-photo:nth-child(3) .strip-img,
  .photo-strip:hover .strip-photo:nth-child(7) .strip-img,
  .photo-strip .strip-photo:nth-child(3):hover .strip-img,
  .photo-strip .strip-photo:nth-child(7):hover .strip-img {
    transform: scale(1);
  }
  
  /* 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: 300px;
    top: 0;
    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;
    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);
    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;
    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: 300px;
    min-width: 300px;
    cursor: default;
    transition: transform 0.18s, box-shadow 0.18s;
    position: relative;
  }

  .tl-card-logo-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
  }

  .tl-logo {
    height: 32px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    flex-shrink: 0;
    align-self: flex-start;
  }
  
  .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;
  }
  
  /* ── BURGER BUTTON (always in DOM, hidden on desktop) ── */
  .nav-burger {
    display: none;
    position: fixed;
    top: calc(var(--nav-height) / 2);
    right: 1.25rem;
    transform: translateY(-50%);
    z-index: 200;
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: none;
    border-radius: 999px;
    padding: 0.45rem 0.75rem;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  }

  .nav-burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
  }

  /* X animation when open */
  .nav-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-burger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .nav-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* ── MOBILE OVERLAY ── */
  .nav-mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 150;
    background: var(--sky-main);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .nav-mobile-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-mobile-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 1rem 2.5rem;
    text-decoration: none;
    color: var(--dark);
    border-radius: 999px;
    transition: background 0.2s;
    width: fit-content;
    text-align: center;
  }

  .nav-mobile-link:hover,
  .nav-mobile-link.active {
    background: rgba(255,255,255,0.45);
  }

  .nav-mobile-primary {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(1.8rem, 8vw, 2.8rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1;
  }

  .nav-mobile-secondary {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    opacity: 0.55;
    letter-spacing: 0.08em;
  }

  .nav-mobile-contact {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
  }

  .nav-mobile-contact-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    color: var(--dark);
    text-decoration: none;
    transition: background 0.2s;
  }

  .nav-mobile-contact-link:hover {
    background: rgba(255,255,255,0.6);
  }

  .nav-mobile-contact-link svg {
    width: 20px;
    height: 20px;
  }

  /* Prevent body scroll when menu open */
  body.nav-open { overflow: hidden; }

  /* ── TOUCH DEVICES only ── */
  @media (hover: none) {
    /* Disable all transitions + pointer events on overlays so iOS
       never sees a hover state and navigates on the first tap */
    .project-thumb,
    .project-thumb-hover,
    .project-thumb-title {
      transition: none !important;
      pointer-events: none;
    }

    /* projects.html: "↗ Projekt ansehen" immer sichtbar */
    .project-thumb-cta {
      opacity: 1;
      transform: translateY(0);
    }
    .project-thumb-overlay {
      background: transparent;
    }

    /* index.html: Pfeil permanent in der Ecke */
    .project-thumb-hover::after {
      content: '↗ Mehr';
      position: absolute;
      bottom: 0.9rem;
      right: 0.9rem;
      font-family: 'JetBrains Mono', monospace;
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.06em;
      color: #fff;
      text-shadow: 0 1px 6px rgba(0,0,0,0.6);
      pointer-events: none;
    }
    /* Gradient für index.html Karten */
    .project-thumb-hover {
      background: linear-gradient(to top, rgba(0,0,0,0.35) 0%, transparent 50%) !important;
    }

    /* Timeline popups — disable hover, use tap toggle instead */
    .tl-card-wrap:hover .tl-popup        { opacity: 0; pointer-events: none; }
    .tl-card-wrap:hover .tl-popup--right { transform: translateX(6px); }
    .tl-card-wrap:hover .tl-popup--left  { transform: translateX(-6px); }
  }

  /* ── MOBILE ── */
  @media (max-width: 768px) {

    /* Hide desktop nav elements, show burger + overlay */
    .nav-links  { display: none; }
    .nav-contact { display: none; }
    .nav-name { display: none; }
    .nav-burger { display: flex; }
    .nav-mobile-overlay { display: flex; }


    /* Hero — index */
    .hero-photo-wrap { height: 90vh; }

    /* Intro block */
    .flow-zu-mir-row {
      grid-template-columns: 1fr;
      gap: 1.5rem;
    }
    .flow-zu-mir-title {
      font-size: clamp(2rem, 10vw, 3rem);
    }
    .flow-content {
      padding: 3rem 6%;
    }

    /* Projects grid — index */
    .projects-grid {
      grid-template-columns: 1fr;
      grid-template-rows: auto;
    }
    .project-card--tall,
    .project-card--short,
    .project-card--short-right {
      grid-column: 1;
      grid-row: auto;
    }
    .project-card--tall .project-thumb { min-height: 60vw; }
    .project-card--short .project-thumb,
    .project-card--short-right .project-thumb { height: 60vw; }

    /* Projects full — projects.html */
    .projects-full {
      overflow-x: hidden;
      width: 100%;
    }
    .project-full-card,
    .project-full-card--reverse {
      display: flex !important;
      flex-direction: column !important;
      width: 100% !important;
      max-width: 100vw !important;
      min-height: unset;
    }
    /* Always: info first, image second — on all card types */
    .project-full-info  { order: 1; width: 100%; }
    .project-full-thumb { order: 2; min-height: 55vw; width: 100%; max-width: 100%; overflow: hidden; flex-shrink: 0; }
    .project-full-info { padding: 2rem 1.25rem; }
    /* First project: extra top padding to clear the floating burger button */
    .project-full-card:first-child .project-full-info { padding-top: calc(var(--nav-height) + 1rem); }

    /* About video */
    .about-video-section {
      height: 56vw;
      min-height: 220px;
    }

    /* Photo strip scroll hint */
    .strip-scroll-hint {
      display: block;
      text-align: right;
      font-family: 'JetBrains Mono', monospace;
      font-size: 0.7rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      color: var(--dark);
      opacity: 0.45;
      padding: 0 1rem 0.4rem;
    }

    /* Photo strip — scrollable on mobile */
    .photo-strip {
      height: 300px;
      overflow-x: auto;
      overflow-y: hidden;
      gap: 0;
      padding: 0;
      scroll-snap-type: none;
      align-items: stretch;
      /* Prevent the desktop hover rules from breaking mobile layout */
      cursor: default;
    }
    .strip-photo {
      width: 225px !important;
      min-width: 225px !important;
      max-width: 225px !important;
      flex: 0 0 225px !important;
      height: 300px;
    }
    /* Disable desktop accordion/zoom hover on narrow windows */
    .photo-strip:hover .strip-photo,
    .photo-strip .strip-photo:hover {
      flex: 0 0 225px !important;
      transition: none !important;
    }

    /* Timeline — centered vertical line on mobile */
    #flowSvg { display: none; }

    .tl-wrap {
      padding: 2.5rem 1.25rem 0;
      position: relative;
    }

    /* The center line + 1998 dot drawn as background gradient */
    .tl-wrap::before {
      content: '';
      position: absolute;
      top: -8rem;
      bottom: -20rem;
      left: 50%;
      transform: translateX(-50%);
      width: 10px;
      background:
        /* 1998 dot on top — first = uppermost layer */
        radial-gradient(circle 5px at center, rgba(17,17,17,0.8) 100%, transparent 101%)
          center top / 10px 10px no-repeat,
        /* line behind the dot */
        linear-gradient(rgba(47,143,223,0.4), rgba(47,143,223,0.4))
          center / 2px 100% no-repeat;
      z-index: 0;
    }

    /* 1998 year label — text only, centred above the dot */
    .tl-wrap::after {
      content: '1998';
      position: absolute;
      top: -9.2rem;
      left: 50%;
      transform: translateX(-50%);
      font-family: 'JetBrains Mono', monospace;
      font-weight: 700;
      font-size: 0.72rem;
      letter-spacing: 0.1em;
      color: var(--dark);
      opacity: 0.65;
      white-space: nowrap;
      z-index: 2;
    }

    .tl-year {
      display: flex;
      flex-direction: column;
      align-items: stretch;
      gap: 0.75rem;
      margin-bottom: 2rem;
      padding-left: 0;
      border-left: none;
      position: relative;
      z-index: 1;
    }

    /* Year axis — relative container for absolute dot placement */
    .tl-axis {
      order: 0;
      display: block;
      position: relative;
      height: 2rem;
    }

    /* Dot: pinned exactly to the center line */
    .tl-dot {
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      display: block;
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: var(--dark);
      opacity: 0.8;
      z-index: 2;
    }

    /* Year text: to the right of the dot */
    .tl-dot::after {
      content: attr(data-year);
      position: absolute;
      left: calc(100% + 8px);
      top: 50%;
      transform: translateY(-50%);
      font-family: 'JetBrains Mono', monospace;
      font-weight: 700;
      font-size: 0.72rem;
      letter-spacing: 0.1em;
      color: var(--dark);
      opacity: 0.65;
      white-space: nowrap;
    }

    /* Cards — left and right stacked in full width */
    .tl-cards-left {
      order: 1;
      display: flex;
      flex-direction: column;
      align-items: stretch;
      gap: 0.75rem;
    }
    .tl-cards-right {
      order: 2;
      display: flex;
      flex-direction: column;
      align-items: stretch;
      gap: 0.75rem;
    }

    .tl-card-wrap {
      width: 100%;
      display: flex;
      flex-direction: column;
      align-items: stretch;
    }
    /* Card always above, popup always below — regardless of HTML order */
    .tl-card  { order: 1; width: 100%; min-width: unset; max-width: unset; cursor: pointer; }
    .tl-popup { order: 2; }

    /* Disable hover effect at ≤768px — inline layout makes it look wrong */
    .tl-card-wrap:hover .tl-popup        { opacity: 0; pointer-events: none; }
    .tl-card-wrap:hover .tl-popup--right { transform: none; }
    .tl-card-wrap:hover .tl-popup--left  { transform: none; }
    .tl-card-wrap:hover .tl-card         { transform: none; box-shadow: none; }

    .tl-popup {
      position: static;
      width: 100%;
      opacity: 0;
      pointer-events: none;
      transform: none !important;
      border-radius: 10px;
      margin-top: 0.5rem;
      max-height: 0;
      overflow: hidden;
      transition: opacity 0.25s, max-height 0.3s ease;
      box-shadow: none;
      translate: none;
    }
    .tl-card-wrap.is-open .tl-popup {
      opacity: 1;
      pointer-events: auto;
      max-height: 800px;
    }

    /* Footer */
    .footer {
      grid-template-columns: 1fr;
      text-align: center;
      gap: 0.75rem;
      padding: 2rem 1.5rem;
    }
    .footer-text  { order: 1; justify-self: center; }
    .footer-phone { order: 2; justify-self: center; }
    .footer-icons { order: 3; justify-content: center; }

  }