/*
Theme: Kai Lieffering one-page website
Converted to Surlinio-style project structure.
Hero video is set up to cover the full viewport width; add the actual file at static/video/hero.mp4.
*/

:root {
      --ink: #0b0b0b;
      --paper: #fffaf0;
      --sand: #f5ead0;
      --foam: #dff5ee;
      --sky: #dcefff;
      --blue: #2a80ff;
      --mint: #bff2dd;
      --pink: #efd9ed;
      --lime: #d9ff55;
      --radius: 28px;
      --shadow: 0 24px 70px rgba(0, 0, 0, 0.12);
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }

    body {
      margin: 0;
      font-family: "Proza Libre", Arial, sans-serif;
      background: var(--paper);
      color: var(--ink);
      line-height: 1.45;
      overflow-x: hidden;
    }

    a { color: inherit; text-decoration: none; }

    .site-header {
      position: fixed;
      z-index: 50;
      top: 18px;
      left: 50%;
      transform: translateX(-50%);
      width: min(1120px, calc(100% - 32px));
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding: 12px 16px;
      border: 2px solid rgba(0, 0, 0, 0.08);
      border-radius: 999px;
      background: rgba(255, 250, 240, 0.78);
      backdrop-filter: blur(18px);
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    }

    .logo {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      font-size: 15px;
      font-weight: 700;
      letter-spacing: -0.03em;
      white-space: nowrap;
    }

    .logo-mark {
      width: 34px;
      height: 34px;
      display: grid;
      place-items: center;
      border-radius: 50%;
      background: var(--lime);
      border: 2px solid var(--ink);
    }

    .site-nav {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 13px;
      font-weight: 700;
    }

    .site-nav a {
      padding: 9px 12px;
      border-radius: 999px;
      transition: 180ms ease;
    }

    .site-nav a:hover { background: var(--ink); color: white; }

    .cta-small {
      background: var(--ink);
      color: white;
      border-radius: 999px;
      padding: 10px 15px;
      font-size: 13px;
      font-weight: 700;
      white-space: nowrap;
    }

    .hero {
      width: 100%;
      max-width: none;
      min-height: 100vh;
      margin: 0;
      border-radius: 0;
      position: relative;
      display: flex;
      align-items: flex-end;
      isolation: isolate;
      overflow: hidden;
      background: #0f6c8f;
    }

    .hero video,
    .hero .video-fallback {
      position: absolute;
      inset: 0;
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
    }

    .hero .video-fallback {
      z-index: 0;
      background:
        linear-gradient(180deg, rgba(109, 188, 242, 0.65), rgba(0, 43, 66, 0.72)),
        radial-gradient(circle at 70% 35%, rgba(255, 255, 255, 0.9) 0 8%, transparent 10%),
        linear-gradient(155deg, #8bd8ff 0%, #1e9ec6 42%, #066381 43%, #004a6d 66%, #f4dcb3 67% 100%);
    }

    .hero video {
      z-index: 1;
      background: transparent;
    }

    .hero::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.62));
      z-index: 2;
      pointer-events: none;
    }

    .hero-inner {
      position: relative;
      z-index: 3;
      width: min(1180px, calc(100% - 32px));
      margin: 0 auto;
      padding: 160px 0 70px;
      color: white;
    }

    .section-pad { padding: clamp(28px, 5vw, 58px); }

    .grid-2 {
      display: grid;
      grid-template-columns: 0.9fr 1.1fr;
      gap: 24px;
      align-items: center;
    }

    .card {
      border-radius: var(--radius);
      border: 2px solid rgba(0, 0, 0, 0.08);
      box-shadow: var(--shadow);
      overflow: hidden;
    }

    .about { background: var(--sand); }

    .portrait {
      min-height: 430px;
      background:
        linear-gradient(140deg, rgba(0,0,0,0), rgba(0,0,0,.18)),
        url("../img/kai-portrait.jpg") center/cover,
        linear-gradient(135deg, #d7f2ce, #f7cf72 45%, #313131 46% 100%);
      position: relative;
    }

    .portrait::after,
    .image-tile::after {
      content: "replace with Kai image";
      position: absolute;
      left: 16px;
      bottom: 14px;
      padding: 7px 10px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.84);
      font-size: 11px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }

    h2 {
      margin: 0 0 16px;
      font-size: clamp(38px, 6vw, 82px);
      line-height: 0.9;
      letter-spacing: -0.08em;
      text-transform: lowercase;
    }

    .lead { font-size: clamp(18px, 2vw, 25px); font-weight: 600; max-width: 710px; }
    p { margin: 0 0 16px; }

    .magic {
      background: var(--pink);
      display: grid;
      grid-template-columns: 0.8fr 1.2fr;
      gap: 24px;
      align-items: start;
    }

    .timeline {
      display: grid;
      gap: 9px;
      font-weight: 700;
      font-size: 15px;
      color: rgba(0,0,0,.38);
    }

    .timeline .active {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 16px;
      color: var(--ink);
      background: white;
      border: 2px solid var(--ink);
      border-radius: 999px;
      padding: 8px 12px;
      box-shadow: 4px 4px 0 var(--ink);
    }

    .activities { background: white; }

    .activity-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 18px;
    }

    .activity {
      background: var(--sky);
      padding: 14px;
      border-radius: var(--radius);
      border: 2px solid rgba(0, 0, 0, 0.08);
    }

    .activity:nth-child(2) { background: var(--foam); }
    .activity:nth-child(3) { background: var(--pink); }
    .activity:nth-child(4) { background: var(--sand); }

    .activity h3 {
      margin: 0 0 12px;
      font-size: clamp(24px, 3vw, 42px);
      letter-spacing: -0.07em;
      line-height: .9;
      text-transform: lowercase;
    }

    .image-tile {
      min-height: 260px;
      border-radius: 22px;
      background:
        linear-gradient(140deg, rgba(0,0,0,0), rgba(0,0,0,.25)),
        url("../img/kai-kitesurfing.jpg") center/cover,
        linear-gradient(135deg, #96d8ff 0%, #0f85b2 42%, #f4dcb3 43% 100%);
      margin-bottom: 14px;
      position: relative;
      overflow: hidden;
    }

    .events {
      background: var(--foam);
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 24px;
      align-items: center;
    }

    .event-buttons {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px;
    }

    .event-card {
      min-height: 170px;
      border-radius: 24px;
      background: var(--ink);
      color: white;
      padding: 16px;
      display: flex;
      align-items: flex-end;
      font-size: 24px;
      font-weight: 800;
      letter-spacing: -0.05em;
      box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.18);
      overflow: hidden;
      position: relative;
    }

    .event-card::before {
      content: "";
      position: absolute;
      inset: 0;
      opacity: 0.45;
      background: linear-gradient(135deg, transparent, var(--blue));
    }

    .event-card span { position: relative; }

    .sponsors { background: white; text-align: center; }
    .sponsor-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; }
    .sponsor-pill {
      min-width: 170px;
      padding: 17px 20px;
      border: 2px solid var(--ink);
      border-radius: 999px;
      font-weight: 900;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      background: var(--sand);
    }

    .follow {
      background: var(--ink);
      color: white;
      display: grid;
      grid-template-columns: 1fr 1.1fr;
      gap: 24px;
      align-items: center;
    }

    .follow-media {
      min-height: 340px;
      border-radius: 26px;
      background:
        linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.5)),
        url("../img/kai-action.jpg") center/cover,
        linear-gradient(135deg, #384050, #0a95be 45%, #11414e);
      display: flex;
      align-items: flex-end;
      padding: 20px;
      font-weight: 800;
    }

    .latest { background: var(--sand); }
    .latest-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
    .news-card { background: white; border-radius: 24px; padding: 18px; border: 2px solid rgba(0,0,0,.08); }
    .news-card .thumb { height: 150px; border-radius: 18px; background: linear-gradient(135deg, #bae7ff, #0f82a7 55%, #f2d8ad 56%); margin-bottom: 14px; }
    .news-card h3 { margin: 0 0 8px; font-size: 26px; letter-spacing: -0.06em; }

    .contact {
      background: var(--sky);
      display: grid;
      grid-template-columns: 0.85fr 1.1fr 0.85fr;
      gap: 24px;
      align-items: start;
    }

    .contact-list { font-weight: 600; }

    form { display: grid; gap: 10px; }
    input, textarea {
      width: 100%;
      border: 2px solid transparent;
      border-radius: 999px;
      padding: 14px 16px;
      font: inherit;
      background: rgba(255,255,255,.82);
      outline: none;
    }
    textarea { min-height: 120px; border-radius: 24px; resize: vertical; }
    input:focus, textarea:focus { border-color: var(--ink); }
    button { cursor: pointer; font: inherit; }

    .button:focus-visible,
    .cta-small:focus-visible,
    .site-nav a:focus-visible,
    input:focus-visible,
    textarea:focus-visible {
      outline: 3px solid var(--lime);
      outline-offset: 3px;
    }

    .footer {
      width: min(1180px, calc(100% - 32px));
      margin: 24px auto 0;
      display: flex;
      justify-content: space-between;
      gap: 16px;
      font-size: 13px;
      font-weight: 700;
      opacity: 0.75;
    }

    @media (max-width: 900px) {
      .site-nav { display: none; }
      .grid-2, .magic, .events, .follow, .contact { grid-template-columns: 1fr; }
      .activity-grid, .latest-grid { grid-template-columns: 1fr; }
      .hero h1 { font-size: clamp(60px, 18vw, 104px); }
    }

    @media (max-width: 560px) {
      .site-header { top: 10px; width: calc(100% - 18px); }
      .logo span:last-child { display: none; }
      .hero-inner { padding-bottom: 44px; }
      .event-buttons { grid-template-columns: 1fr; }
      .section-pad { padding: 24px; }
      .footer { flex-direction: column; }
    }


/* Hero video */
section.hero {
  width: 100%;
  max-width: none;
  margin: 0;
  border-radius: 0;
}

.hero .video-fallback,
.hero .hero-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero .video-fallback {
  z-index: 0;
}

.hero .hero-video {
  z-index: 1;
  background: transparent;
}

.hero::after {
  z-index: 2;
  pointer-events: none;
}

.hero .hero-inner {
  position: relative;
  z-index: 3;
}
