/* ============ Skills reel ============ */

.skills-reel {
  /* 8 items × 120px scroll per item, plus one viewport to land on first/last */
  height: calc(100vh + 8 * 120px);
  position: relative;
}
.skills-reel__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 22%,
    black 78%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 22%,
    black 78%,
    transparent 100%
  );
}
.skills-reel__eyebrow {
  position: absolute;
  top: clamp(40px, 6vw, 72px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  color: var(--muted);
}
.skills-reel__track {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  will-change: transform;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.skills-reel__item {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(28px, 5vw, 72px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--ink);
  padding: 10px 0;
  opacity: 0.12;
  transform: scale(0.88);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), color 0.35s var(--ease);
  cursor: default;
  text-align: center;
}
.skills-reel__item.is-active {
  opacity: 1;
  transform: scale(1);
  color: #fff;
}
.skills-reel__item.is-near {
  opacity: 0.3;
  transform: scale(0.94);
}

/* ============ Mobile nav ============ */

.nav-mobile-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--pill);
  background: transparent;
  cursor: pointer;
}
.nav-mobile-btn span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  transition: transform var(--ease) 200ms, opacity 160ms;
}
.nav-mobile-btn[aria-expanded="true"] span:first-child { transform: translateY(6.5px) rotate(45deg); }
.nav-mobile-btn[aria-expanded="true"] span:last-child  { transform: translateY(-6.5px) rotate(-45deg); }
@media (max-width: 880px) { .nav-mobile-btn { display: flex; } }

.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 80px var(--gutter) var(--gutter);
  gap: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms var(--ease);
}
.nav-mobile.open {
  opacity: 1;
  pointer-events: all;
}
.nav-mobile__links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nav-mobile__links a {
  font-family: var(--f-display);
  font-size: clamp(28px, 7vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink-2);
  transition: color var(--ease) 180ms;
}
.nav-mobile__links a:hover { color: var(--ink); }

/* ============ About CV link ============ */

.about__cv-link { margin-top: 32px; }

/* ============ Hero (homepage) — background image ============ */

.hero--bg {
  position: relative;
  overflow: hidden;
  min-height: calc(100dvh - 77px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid var(--line);
}
.hero-bg__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.hero-bg__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8,8,8,0.50) 0%,
    rgba(8,8,8,0.65) 40%,
    rgba(8,8,8,0.80) 70%,
    rgba(8,8,8,0.92) 100%
  );
}
.hero-bg__content {
  position: relative;
  z-index: 1;
  padding-top: clamp(40px, 5vw, 64px);
  padding-bottom: clamp(40px, 5vw, 64px);
}
/* Override split-grid when hero-a__inner is inside background hero */
.hero--bg .hero-a__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  max-width: 760px;
  margin: 0 auto;
}
.hero--bg .hero-a__title {
  color: #fff;
  margin: 0;
  font-size: clamp(36px, 5vw, 72px);
}
.hero--bg .hero-a__lede {
  color: rgba(255,255,255,0.75);
  max-width: 52ch;
  margin: 0;
}
.hero--bg .hero-a__cta { justify-content: center; margin: 0; }
.hero--bg .status { color: rgba(255,255,255,0.6); }
.hero--bg .status .dot { background: #4ade80; }

.hero-a__title {
  margin: 22px 0 0;
  font-size: clamp(40px, 6.4vw, 100px);
}

/* ============ Back link ============ */

.backlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--ease) 200ms;
}
.backlink:hover { color: var(--ink); }
.backlink svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ============ CV page hero ============ */

.cv-page-hero {
  padding: clamp(64px, 10vw, 128px) 0 clamp(48px, 7vw, 96px);
  border-bottom: 1px solid var(--line);
}
.cv-page-hero .backlink {
  margin-bottom: clamp(32px, 5vw, 56px);
}
.cv-page-hero__inner {
  max-width: 820px;
}
.cv-page-hero__grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(24px, 4vw, 64px); align-items: end;
}
.cv-page-hero__portrait { display: flex; justify-content: flex-end; }
.cv-page-hero__portrait img {
  width: min(100%, 360px); height: auto;
  filter: drop-shadow(0 24px 50px rgba(16,21,33,0.25));
}
@media (max-width: 820px) {
  .cv-page-hero__grid { grid-template-columns: 1fr; }
  .cv-page-hero__portrait { justify-content: flex-start; margin-top: 4px; }
  .cv-page-hero__portrait img { width: min(60%, 260px); }
}
.cv-page-hero__title {
  margin: 20px 0 0;
  font-size: clamp(44px, 7vw, 104px);
}
.cv-page-hero__lede {
  margin: 24px 0 0;
  max-width: 58ch;
}
.cv-page-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--line);
}
@media (max-width: 760px) {
  .cv-page-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .cv-page-stats { grid-template-columns: 1fr 1fr; }
}

/* ============ CTA band (cv page) ============ */

.cta-band { background: var(--accent); color: #fff; padding: clamp(72px, 11vw, 150px) 0; position: relative; overflow: hidden; }
.cta-band__inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 26px; position: relative; }
.cta-band__title { max-width: 18ch; margin: 0; font-size: clamp(32px, 4.8vw, 72px); line-height: 1.02; }
.cta-band__sub { max-width: 52ch; color: rgba(255,255,255,0.86); margin: 0; }

/* ============ Homepage layout ============ */

/* ---- Hero A : split ---- */
.hero--a { padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 9vw, 120px); }
.hero-a__inner { display: grid; grid-template-columns: minmax(0, 1fr) clamp(320px, 34%, 440px); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-a__copy { min-width: 0; }
.hero-a__title { margin: 22px 0 0; font-size: clamp(44px, 6.6vw, 104px); }
.hero-a__lede { margin: 26px 0 34px; }
.hero-a__cta { display: flex; gap: var(--s-4); flex-wrap: wrap; }
.hero-a__frame { aspect-ratio: 4 / 5; box-shadow: 0 40px 120px -40px rgba(0,0,0,0.8); }
.hero-a__caption { margin-top: 14px; color: var(--soft); }
@media (max-width: 900px) {
  .hero-a__inner { grid-template-columns: 1fr; }
  .hero-a__frame { aspect-ratio: 16 / 11; }
}

/* ---- Hero B : poster ---- */
.hero--b { position: relative; min-height: clamp(620px, 92vh, 940px); display: flex; align-items: center; overflow: hidden; }
.hero-b__bg { position: absolute; inset: 0; }
.hero-b__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-b__scrim { position: absolute; inset: 0; background:
  radial-gradient(120% 90% at 70% 30%, rgba(8,9,12,0.2), rgba(8,9,12,0.86) 70%),
  linear-gradient(180deg, rgba(8,9,12,0.5), rgba(8,9,12,0.4) 40%, var(--bg)); }
.hero-b__inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 26px; padding: 120px 0; }
.hero-b__title { margin: 8px 0 4px; }
.hero-b__lede { text-align: center; max-width: 56ch; }
.hero-b__cta { display: flex; gap: var(--s-4); flex-wrap: wrap; justify-content: center; margin-top: 8px; }

/* ---- About ---- */
.about__grid { display: grid; grid-template-columns: 220px 1fr; gap: clamp(24px, 5vw, 72px); }
.about__lead { margin: 0; max-width: 22ch; }
.about__p { margin: 28px 0 0; max-width: 62ch; }
.about__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); margin-top: 56px; border-top: 1px solid var(--line); padding-top: 40px; }
.stat__n { font-size: clamp(26px, 3vw, 40px); color: var(--ink); font-weight: 500; }
.stat__l { margin-top: 6px; }
@media (max-width: 860px) { .about__grid { grid-template-columns: 1fr; } .about__stats { grid-template-columns: 1fr 1fr; } }

/* ---- Row head (shared) ---- */
.row-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.row-head__title { margin: 20px 0 0; }
.row-head__sub { margin: 24px 0 0; }

/* ---- Skills ---- */
.skills__chips .chip { font-size: 16px; padding: 13px 22px; }

/* ---- CV ---- */
.cv { border-top: 1px solid var(--line); }
.cv__row { display: grid; grid-template-columns: 160px 1fr; gap: clamp(16px, 4vw, 56px); padding: clamp(36px, 5vw, 56px) 0; border-bottom: 1px solid var(--line); }
.cv__when { color: var(--muted); padding-top: 6px; }
.cv__role { color: var(--ink-2); font-weight: 500; font-family: var(--f-sans); }
.cv__intro { margin: 14px 0 18px; max-width: 64ch; }
.cv__list { margin: 0 0 22px; padding: 0; list-style: none; display: grid; gap: 9px; max-width: 64ch; }
.cv__list li { position: relative; padding-left: 22px; color: var(--ink-2); }
.cv__list li::before { content: ""; position: absolute; left: 0; top: 11px; width: 8px; height: 1px; background: var(--accent); }
.result { max-width: 64ch; display: block; }
@media (max-width: 720px) { .cv__row { grid-template-columns: 1fr; gap: 12px; } }

/* ---- Work ---- */
.work__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
.work-card { display: block; }
.work-card__media { overflow: hidden; border-radius: var(--radius); aspect-ratio: 3 / 2; }
.work-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.work-card__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 22px 4px 0; }
.work-card__client { color: var(--muted); margin-bottom: 8px; }
.work-card__title { transition: color var(--ease) 240ms; }
.work-card__arrow { width: 26px; height: 26px; margin-top: 6px; color: var(--ink-2); transition: transform var(--ease) 300ms, color var(--ease) 240ms; }
.work-card:hover .work-card__title { color: var(--accent-bright); }
.work-card:hover .work-card__arrow { transform: translateX(8px) rotate(-12deg); color: var(--accent-bright); }
@media (max-width: 760px) { .work__grid { grid-template-columns: 1fr; } }

/* ---- Offers ---- */
.offers { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 32px); }
.offers--three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .offers--three { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .offers--three { grid-template-columns: 1fr; } }
.offer { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 360px; padding: clamp(28px, 4vw, 44px); background: var(--panel); border: 1px solid var(--line); transition: border-color var(--ease) 260ms, background var(--ease) 260ms, transform var(--ease) 260ms; }
.offer:hover { border-color: var(--accent); background: var(--panel-2); transform: translateY(-4px); }
.offer__tag { color: var(--muted); margin-bottom: 16px; }
.offer__title { margin: 0; }
.offer__desc { max-width: 42ch; }
.offer__foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 22px; }
.offer__price { font-size: 17px; color: var(--ink); }
.offer__go { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--accent-bright); }
.offer__go .arrow { width: 17px; height: 17px; transition: transform var(--ease) 280ms; }
.offer:hover .offer__go .arrow { transform: translateX(6px); }
@media (max-width: 760px) { .offers { grid-template-columns: 1fr; } }

/* ---- Contact A : split ---- */
.contact-a__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.contact-a__title { margin: 20px 0 26px; }
.contact-a__right { display: grid; gap: 0; border-top: 1px solid var(--line); }
.contact-line { display: flex; flex-direction: column; gap: 8px; padding: 26px 0; border-bottom: 1px solid var(--line); transition: padding-left var(--ease) 240ms; }
a.contact-line:hover { padding-left: 12px; }
a.contact-line:hover .contact-line__v { color: var(--accent-bright); }
.contact-line__v { transition: color var(--ease) 240ms; }
@media (max-width: 820px) { .contact-a__grid { grid-template-columns: 1fr; } }

/* ---- Contact B : accent band ---- */
.contact--b { background: var(--accent); color: #fff; padding: clamp(72px, 11vw, 150px) 0; }
.contact-b__inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.contact-b__title { max-width: 16ch; margin: 4px 0 6px; font-size: clamp(30px, 4.2vw, 58px); line-height: 1.08; }
.contact-b__cta { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: center; }
.contact-b__inline { font-size: 17px; color: #fff; border-bottom: 1px solid rgba(255,255,255,0.45); padding-bottom: 2px; transition: border-color 200ms; }
.contact-b__inline:hover { border-color: #fff; }


/* ---- Mobile Schriftgroessen (Umbrueche) ---- */
@media (max-width: 720px) {
  .work-card__title { font-size: 24px; }
  .cta-band__title { font-size: clamp(27px, 8vw, 34px); }
  .cv-page-hero__title { font-size: clamp(34px, 9.5vw, 44px); }
}
