@font-face {
  font-family: 'Barlow Condensed';
  src: url('assets/fonts/barlow-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Barlow Condensed';
  src: url('assets/fonts/barlow-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Barlow Condensed';
  src: url('assets/fonts/barlow-900.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/*

  · lwand.com · lorenza wand · 2026 ·
  wenn du das liest: hallo auch von hier.

*/

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

:root {
  --bg:     #ffffff;
  --bg-2:   #e8f0ff;
  --text:   #0057FF;
  --muted:  #0057FF;
  --accent: #0057FF;
  --line:   #0057FF;

  --sans:   'Barlow Condensed', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 900;
  font-size: 1rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  height: 100svh;
  overflow: hidden;
}

/* · header ──────────────────────────────────── */

#site-header {
  grid-area: hdr;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0.07rem clamp(1.1rem, 1.8vw, 1.8rem);
}

.logo {
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.2s, color 0.2s;
}

.logo::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--text);
  border-radius: 50%;
}

.logo:hover {
  border-color: var(--text);
}

.lang-toggle {
  background: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}

.lang-toggle:hover {
  border-color: var(--text);
  color: var(--text);
}

/* · bento grid ──────────────────────────────── */

.bento-grid {
  height: 100svh;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: minmax(0, 0.25fr) minmax(0, 1.5fr) minmax(0, 1.5fr) minmax(0, 1.5fr) minmax(0, 0.25fr) minmax(0, 0.25fr);
  grid-template-areas:
    "hdr   hdr   hdr   hdr"
    "hero  hero  proj  edu1"
    "hero  hero  edu2  edu3"
    "about about cont  cont"
    "links links cont  cont"
    "ftr   ftr   ftr   ftr";
  gap: 1px;
  padding: 1px;
  background: var(--line);
}

/* · tile base ───────────────────────────────── */

.tile {
  border: none;
  border-radius: 0;
  padding: clamp(1.1rem, 1.8vw, 1.8rem);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.tile-eyebrow {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: var(--muted);
  margin-bottom: 0.65rem;
  flex-shrink: 0;
}

.tile-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}


/* · hero ────────────────────────────────────── */

.tile--hero {
  grid-area: hero;
}

.tile--hero .tile-body {
  justify-content: flex-end;
  padding-bottom: 1rem;
}

.hero-name-wrap {
  position: relative;
  margin-bottom: clamp(0.8rem, 1.5vw, 1.8rem);
}

h1 {
  position: absolute;
  bottom: 0;
  left: 0;
  line-height: 0.95;
  letter-spacing: -0.22em;
  color: var(--bg-2);
  pointer-events: none;
  margin-bottom: 0;
}

.hero-name-fg {
  position: relative;
  z-index: 1;
  line-height: 0.95;
  letter-spacing: -0.12em;
  color: var(--text);
  font-weight: 900;
  font-family: var(--sans);
}

.hero-name-fg .h1-a,
.hero-name-fg .h1-b {
  font-size: clamp(2rem, 4vw, 5rem);
}

.hero-name-fg .h1-b {
  padding-left: clamp(0.8rem, 2vw, 2.5rem);
}

.h1-a {
  display: block;
  font-size: clamp(3rem, 8vw, 11rem);
}

.h1-b {
  display: block;
  font-size: clamp(3rem, 8vw, 11rem);
  padding-left: clamp(0.8rem, 2vw, 2.5rem);
}

.tagline {
  font-size: clamp(1.4rem, 2.2vw, 2.6rem);
  color: var(--accent);
  margin-bottom: 0.45rem;
}

.hero-sub {
  font-size: clamp(0.82rem, 1.2vw, 1.05rem);
  color: var(--muted);
  white-space: nowrap;
}

/* · projekt ─────────────────────────────────── */

.tile--project {
  grid-area: proj;
  background: var(--bg-2);
  text-decoration: none;
  color: var(--text);
  transition: background 0.2s, color 0.2s;
}

.tile--project:hover {
  background: var(--text);
  color: #ffffff;
}

.tile--project:hover .tile-eyebrow,
.tile--project:hover .project-desc {
  color: #ffffff;
}

.project-name {
  font-size: clamp(1.4rem, 2.2vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: 0.65rem;
}

.project-desc {
  font-size: clamp(0.82rem, 1.2vw, 1.05rem);
  color: var(--muted);
  flex: 1;
}

/* · expertise ───────────────────────────────── */

.tile--exp {
  gap: 0.35rem;
}

.tile--exp:nth-child(4) { grid-area: edu1; }
.tile--exp:nth-child(5) { grid-area: edu2; }
.tile--exp:nth-child(6) { grid-area: edu3; }

.tile--exp h3 {
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  flex-shrink: 0;
}

.tile--exp p {
  font-size: clamp(0.82rem, 1.2vw, 1.05rem);
  color: var(--muted);
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
}

/* · über ────────────────────────────────────── */

.tile--about {
  grid-area: about;
}

.tile--about p {
  font-size: clamp(0.9rem, 1.4vw, 1.2rem);
}

/* · kontakt ─────────────────────────────────── */

.tile--contact {
  grid-area: cont;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.tile--contact:hover {
  background: var(--bg-2);
  color: var(--text);
}

.tile--contact:hover .tile-eyebrow,
.tile--contact:hover .contact-note,
.tile--contact:hover .contact-email {
  color: var(--text);
}

.tile--contact .tile-eyebrow {
  color: #ffffff;
}

.tile--contact .tile-body {
  justify-content: flex-end;
}

.contact-email {
  display: block;
  font-size: clamp(0.9rem, 1.6vw, 1.5rem);
  color: var(--bg);
  text-decoration: none;
  transition: color 0.2s;
  margin-bottom: 0.65rem;
}


.contact-note {
  font-size: clamp(0.82rem, 1.2vw, 1.05rem);
  color: #ffffff;
}

/* · links ───────────────────────────────────── */

.tile--links {
  grid-area: links;
  justify-content: center;
  padding: 0 clamp(1.1rem, 1.8vw, 1.8rem);
}

.link-stack {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  width: 100%;
}

.link-stack a {
  font-family: var(--sans);
  font-size: clamp(0.82rem, 1.3vw, 1rem);
  letter-spacing: 0.02em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.link-stack a:hover { color: var(--bg-2); }

/* · footer ──────────────────────────────────── */

.tile--footer {
  grid-area: ftr;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.1rem, 1.8vw, 1.8rem);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

.footer-links {
  display: flex;
  gap: 1.2rem;
}

footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  text-transform: lowercase;
}

footer a:hover { color: var(--bg-2); }

/* · impressum ───────────────────────────────── */

#imp-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  overflow-y: auto;
  padding: 5rem 0 4rem;
  opacity: 0;
  transition: opacity 0.35s ease;
}

#imp-overlay:not([hidden]) {
  opacity: 1;
}

.imp-inner {
  max-width: 560px;
  margin: 0 auto;
}

.imp-close {
  position: fixed;
  top: 1.2rem;
  right: 1.5rem;
  background: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--muted);
  transition: border-color 0.2s, color 0.2s;
  line-height: 1;
  padding: 0;
  padding-bottom: 0.1em;
}

.imp-close:hover {
  border-color: var(--text);
  color: var(--text);
}

.imp-heading {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.imp-heading--privacy {
  margin-top: 3rem;
}

#imp-data {
  font-size: 0.95rem;
  line-height: 2;
  color: var(--text);
  margin-bottom: 0.5rem;
}

#imp-data a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s, border-color 0.2s;
}

#imp-data a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.imp-ustid {
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.imp-privacy {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.8;
  max-width: 52ch;
}

/* · cursor ──────────────────────────────────── */

@media (hover: hover) {
  body, a, button { cursor: none; }

  #cursor-dot {
    position: fixed;
    top: 0; left: 0;
    width: 7px; height: 7px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.2s, transform 0.2s;
  }

  #cursor-ring {
    position: fixed;
    top: 0; left: 0;
    width: 34px; height: 34px;
    border: 1px solid var(--muted);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, opacity 0.2s;
  }

  body.cursor-hover #cursor-dot {
    background: var(--text);
  }

  body.cursor-hover #cursor-ring {
    width: 18px; height: 18px;
    border-color: var(--accent);
  }

  body:has(.tile--project:hover) #cursor-dot {
    background: #fff;
  }

  body:has(.tile--project:hover) #cursor-ring {
    border-color: #fff;
  }

  @media (prefers-reduced-motion: reduce) {
    body, a, button { cursor: auto; }
    #cursor-dot, #cursor-ring { display: none; }
  }

  body.cursor-hidden #cursor-dot,
  body.cursor-hidden #cursor-ring {
    opacity: 0;
  }
}

@media (hover: none) {
  #cursor-dot, #cursor-ring { display: none; }
}

/* · animationen ─────────────────────────────── */

.fade-in {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity  0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

.bento-grid .tile:nth-child(2)  { transition-delay: 0s;    }
.bento-grid .tile:nth-child(3)  { transition-delay: 0.06s; }
.bento-grid .tile:nth-child(4)  { transition-delay: 0.12s; }
.bento-grid .tile:nth-child(5)  { transition-delay: 0.08s; }
.bento-grid .tile:nth-child(6)  { transition-delay: 0.14s; }
.bento-grid .tile:nth-child(7)  { transition-delay: 0.10s; }
.bento-grid .tile:nth-child(8)  { transition-delay: 0.16s; }
.bento-grid .tile:nth-child(9)  { transition-delay: 0.18s; }

/* · responsive · tablet ─────────────────────── */

@media (max-width: 960px) {
  body {
    height: auto;
    overflow: auto;
  }

  .tile--hero {
    min-height: 35vh;
  }

  .tile--links,
  .tile--footer {
    min-height: 2rem;
  }


  .bento-grid {
    height: auto;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    grid-template-areas:
      "hdr   hdr"
      "hero  hero"
      "proj  edu1"
      "edu2  edu3"
      "about about"
      "cont  cont"
      "links links"
      "ftr   ftr";
  }

}

/* · responsive · mobil ──────────────────────── */

@media (max-width: 580px) {
  body {
    height: auto;
    overflow: auto;
  }

  .tile--hero {
    min-height: 30vh;
  }

  .bento-grid {
    height: auto;
    grid-template-columns: 1fr;
    grid-template-areas:
      "hdr"
      "hero"
      "proj"
      "edu1"
      "edu2"
      "edu3"
      "about"
      "cont"
      "links"
      "ftr";
  }

  .tile--exp:nth-child(4),
  .tile--exp:nth-child(5),
  .tile--exp:nth-child(6) { grid-area: unset; }

  .tile--exp p {
    -webkit-line-clamp: unset;
    line-clamp: unset;
  }

  .footer-links { justify-content: center; }
}
