/* talentfound.de
   Colors are locked to brand assets/brand.md. Reference the custom properties,
   never a literal hex, anywhere below the token block. */

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/montserrat-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/hanken-grotesk-latin.woff2') format('woff2');
}

:root {
  /* Brand palette */
  --color-primary: #303030;
  --color-secondary: #dbdbdb;
  --color-accent: #32a1da;
  --color-background: #ffffff;
  --color-text: #000000;
  /* The same three as channels, for tinted shadows and washes */
  --rgb-primary: 48 48 48;
  --rgb-secondary: 219 219 219;
  --rgb-accent: 50 161 218;

  /* Surfaces: base, elevated, floating */
  --surface-base: var(--color-background);
  --surface-tint: color-mix(in srgb, var(--color-secondary) 32%, var(--color-background));
  --shadow-elevated: 0 1px 2px rgb(var(--rgb-primary) / 0.06), 0 14px 28px -10px rgb(var(--rgb-primary) / 0.16),
    0 40px 72px -28px rgb(var(--rgb-accent) / 0.28);
  --shadow-floating: 0 1px 0 rgb(var(--rgb-primary) / 0.06), 0 10px 30px -12px rgb(var(--rgb-primary) / 0.18);

  /* Type */
  --font-display: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Hanken Grotesk', system-ui, 'Segoe UI', sans-serif;
  --text-hero: clamp(2.125rem, 1.3rem + 3.4vw, 3.75rem);
  --text-h2: clamp(1.875rem, 1.4rem + 1.8vw, 2.75rem);
  --text-lead: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem);

  /* Spacing */
  --gutter: clamp(1.25rem, 0.5rem + 3.4vw, 3.5rem);
  --section: clamp(4.5rem, 2.5rem + 8vw, 9.5rem);
  --stack: 1.5rem;
  --header-h: 5.25rem;
  /* Width of one honeycomb cell in the footer cluster. */
  --cell: clamp(4.75rem, 3rem + 5.5vw, 8.5rem);

  --ease-spring: cubic-bezier(0.34, 1.4, 0.44, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--surface-base);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* Decorative cells may reach past the viewport edge without widening the page. */
html {
  overflow-x: clip;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
  border-radius: 2px;
}

.wrap {
  width: min(100% - 2 * var(--gutter), 78rem);
  margin-inline: auto;
}
.skip {
  position: absolute;
  left: var(--gutter);
  top: 0.75rem;
  z-index: 60;
  padding: 0.5rem 1rem;
  background: var(--color-primary);
  color: var(--color-background);
  transform: translateY(-300%);
}
.skip:focus {
  transform: none;
}

/* ---------- Type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-primary);
  text-wrap: balance;
  margin: 0;
}
h1.display {
  font-size: var(--text-hero);
  line-height: 1.08;
}
h2.display {
  font-size: var(--text-h2);
  line-height: 1.1;
}
.sub {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 1.25rem 0 0;
}
.copy {
  max-width: 34rem;
}
.copy p {
  margin: var(--stack) 0 0;
}
.lead {
  font-size: var(--text-lead);
  line-height: 1.6;
}

/* Underlined text link: the line is a brand accent, the text stays black. */
.link {
  position: relative;
  text-decoration: none;
  padding-bottom: 0.15em;
}
.link::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: var(--color-accent);
  transform-origin: left;
  transition: transform 0.45s var(--ease-spring);
}
.link:hover::after {
  transform: scaleX(0.4);
}
.link:active::after {
  transform: scaleX(0.15);
}

/* ---------- Header (floating surface) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--color-background) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}
.site-header::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  box-shadow: var(--shadow-floating);
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
  pointer-events: none;
}
.site-header.is-stuck::after {
  opacity: 1;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}
.brand {
  display: grid;
  gap: 0.3rem;
  text-decoration: none;
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-spring);
}
.brand img {
  height: 1.75rem;
  width: auto;
}
.brand span {
  font-size: 0.75rem;
  line-height: 1.2;
  color: var(--color-primary);
}
.brand:hover {
  opacity: 0.7;
}
.brand:active {
  transform: scale(0.98);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.4vw, 2.5rem);
}
.nav-links,
.nav-meta,
.lang,
.social {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links {
  gap: clamp(1.25rem, 2.4vw, 2.5rem);
}
.nav-meta {
  gap: 1.25rem;
}
.nav-link {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}
.nav-link::after {
  content: '';
  position: absolute;
  inset: auto 0 0.25rem 0;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-spring);
}
.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
}
.nav-link:active::after {
  transform: scaleX(0.6);
}

.lang {
  gap: 0.15rem;
  font-size: 0.8125rem;
  font-weight: 600;
}
.lang a {
  display: inline-block;
  padding: 0.35rem 0.5rem;
  border-radius: 999px;
  text-decoration: none;
  opacity: 0.5;
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-spring);
}
.lang a:hover {
  opacity: 1;
}
.lang a:active {
  transform: scale(0.94);
}
.lang a[aria-current='true'] {
  opacity: 1;
  background: var(--surface-tint);
}

.social {
  gap: 0.35rem;
  isolation: isolate;
}
.social a {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  color: var(--color-background);
  transition: transform 0.35s var(--ease-spring), opacity 0.25s var(--ease-out);
}
/* The same flat topped cell as on the office wall. */
.social a::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--color-primary);
  clip-path: polygon(25% 6.7%, 75% 6.7%, 100% 50%, 75% 93.3%, 25% 93.3%, 0 50%);
}
.social a:hover {
  transform: translateY(-3px);
}
.social a:active {
  transform: translateY(0) scale(0.94);
  opacity: 0.8;
}
.social svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
}

.menu-btn {
  display: none;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.25rem;
  border: 0;
  background: none;
  color: var(--color-text);
  font: 500 0.9375rem/1 var(--font-body);
  cursor: pointer;
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-spring);
}
.menu-btn:hover {
  opacity: 0.65;
}
.menu-btn:active {
  transform: scale(0.96);
}
.menu-btn i {
  position: relative;
  width: 1.4rem;
  height: 0.6rem;
}
.menu-btn i::before,
.menu-btn i::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 0.4s var(--ease-spring);
}
.menu-btn i::before {
  top: 0;
}
.menu-btn i::after {
  bottom: 0;
}
.menu-btn[aria-expanded='true'] i::before {
  transform: translateY(0.25rem) rotate(45deg);
}
.menu-btn[aria-expanded='true'] i::after {
  transform: translateY(-0.25rem) rotate(-45deg);
}

@media (max-width: 60rem) {
  :root {
    --header-h: 4.5rem;
  }
  .menu-btn {
    display: inline-flex;
  }
  .nav {
    position: absolute;
    inset: 100% 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem var(--gutter) 2rem;
    background: var(--color-background);
    box-shadow: var(--shadow-floating);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-0.75rem);
    transition: opacity 0.3s var(--ease-out), transform 0.4s var(--ease-spring), visibility 0s 0.4s;
  }
  .nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition-delay: 0s;
  }
  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  .nav-link {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
  }
}

/* ---------- Hero ---------- */
/* Full banner, as on the original site: the photo fills the section and the
   text sits on its soft, out of focus left half. */
.hero {
  position: relative;
  z-index: 1;
  isolation: isolate;
}
.hero-media {
  position: relative;
  aspect-ratio: 4 / 3;
  max-height: 26rem;
  width: 100%;
  background: var(--color-secondary);
}
.hero-clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-clip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 100% 100%;
}
/* Brand color treatment over the photo. */
.hero-media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-accent);
  mix-blend-mode: multiply;
  opacity: 0.08;
  pointer-events: none;
}
.hero .wrap {
  padding-block: clamp(2.5rem, 7vw, 4rem) var(--section);
}
.hero .copy {
  max-width: 36rem;
}
.hero .copy p:first-of-type {
  margin-top: 1.75rem;
}
@media (min-width: 68rem) {
  .hero {
    display: grid;
    align-items: center;
    /* A little flatter than the photo (829 of 1920): 28px are trimmed off the
       top and 110px off the bottom, which keeps the whole head in view. */
    height: calc(var(--banner-w) * 691 / 1920);
    /* The photo is never drawn narrower than this, so on smaller desktop
       windows the banner keeps enough height for the text. */
    --banner-w: max(100vw, 75rem);
  }
  .hero-media .hero-fit {
    position: absolute;
    right: 0;
    top: calc(var(--banner-w) * -28 / 1920);
    width: var(--banner-w);
    max-width: none;
    height: auto;
    aspect-ratio: 1920 / 829;
    object-fit: fill;
  }
  .hero-media {
    position: absolute;
    inset: 0;
    z-index: -1;
    aspect-ratio: auto;
    max-height: none;
  }
  /* A wash of the page color keeps the text crisp on the blurred backdrop. */
  .hero-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, color-mix(in srgb, var(--color-background) 62%, transparent), transparent 48%);
    pointer-events: none;
  }
  .hero .wrap {
    padding-block: 1.5rem;
  }
  .hero .copy {
    max-width: min(38rem, 40vw);
  }
  /* Sized to the column, so the longest word never reaches the portrait. */
  .hero h1.display {
    font-size: min(var(--text-hero), 3.9vw);
  }
}

/* Honeycomb cells, taken from the wall panels in the banner photo: sitting
   on the footer's upper edge. */
.cells {
  position: absolute;
  z-index: -1;
  width: calc(var(--w) / 200 * var(--cell));
  height: auto;
  overflow: visible;
  pointer-events: none;
}
.cells polygon {
  fill: var(--color-accent);
}
.cells .soft {
  fill: var(--color-secondary);
}
.cells .paper {
  fill: var(--color-background);
}
.cells .line {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 3;
}
.photo-wrap {
  position: relative;
  isolation: isolate;
}
.cells--footer {
  right: var(--gutter);
  top: calc(var(--cell) * -0.87);
}

/* Phones: tighter rhythm, smaller cells, and room above the footer so the
   cells never reach into the content of the last section. */
@media (max-width: 67.99rem) {
  .hero .wrap {
    padding-bottom: 0;
  }
  .site-footer {
    margin-top: calc(var(--cell) * 0.6);
  }
}
@media (max-width: 47.99rem) {
  :root {
    --section: 3.5rem;
    --cell: 3.5rem;
  }
}

/* ---------- Photos (elevated surface) ---------- */
.photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 3px;
  background: var(--color-secondary);
  box-shadow: var(--shadow-elevated);
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Brand color treatment, then a gradient that grounds the lower edge. */
.photo::before,
.photo::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.photo::before {
  background: var(--color-accent);
  mix-blend-mode: multiply;
  opacity: 0.12;
}

/* ---------- Sections ---------- */
.section {
  padding-block: var(--section);
}
.section--tint {
  position: relative;
  background: var(--surface-tint);
}
.split {
  display: grid;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.split .photo {
  aspect-ratio: 4 / 3;
}
@media (min-width: 60rem) {
  .split {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  }
  .split--text-first {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }
  .split--text-first .photo-wrap {
    order: 2;
  }
}
/* Stacked: the picture always sits above its text. */
@media (max-width: 59.99rem) {
  .split .photo-wrap {
    order: -1;
  }
}

.contact-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--color-primary);
  margin: 2rem 0 0;
}
.contact-role {
  margin: 0.4rem 0 0;
}
.contact-mail {
  margin: 2rem 0 0;
  font-size: clamp(1.0625rem, 0.9rem + 0.8vw, 1.375rem);
  font-weight: 500;
  overflow-wrap: anywhere;
}
.contact-mail small {
  display: block;
  font-size: 0.875rem;
  font-weight: 400;
  margin-bottom: 0.25rem;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  isolation: isolate;
  background: var(--color-secondary);
  padding-block: clamp(3.5rem, 7vw, 6rem) 2rem;
  font-size: 0.9375rem;
}
.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--grain);
  opacity: 0.1;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.footer-logo img {
  height: clamp(2.5rem, 5vw, 3.75rem);
  width: auto;
}
.footer-logo {
  display: inline-block;
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-spring);
}
.footer-logo:hover {
  opacity: 0.7;
}
.footer-logo:active {
  transform: scale(0.98);
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.footer-grid p {
  margin: 0 0 1rem;
  max-width: 26rem;
}
.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
  justify-items: start;
}
@media (min-width: 48rem) {
  .footer-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) auto;
    align-items: start;
  }
}
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgb(var(--rgb-primary) / 0.18);
}
.footer-base ul {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ---------- Legal pages ---------- */
.legal {
  padding-block: clamp(3rem, 1rem + 6vw, 6rem) var(--section);
}
.legal .body {
  max-width: 44rem;
  margin-top: clamp(2rem, 5vw, 3.5rem);
}
.legal .body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--color-primary);
  margin: 3.5rem 0 0;
}
.legal .body h3 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 2.25rem 0 0;
}
.legal .body h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.5rem 0 0;
}
.legal .body p,
.legal .body ul {
  margin: 0.75rem 0 0;
}
.legal .body li {
  margin-top: 0.5rem;
}
.legal .body li::marker {
  color: var(--color-accent);
}
.legal .body a {
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
  transition: opacity 0.25s var(--ease-out);
}
.legal .body a:hover {
  opacity: 0.6;
}
.legal .body a:active {
  opacity: 0.4;
}
/* Data the client still has to supply. Loud on purpose. */
.todo {
  background: var(--color-accent);
  color: var(--color-text);
  padding: 0.05em 0.4em;
  border-radius: 2px;
  font-weight: 600;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Appended after the reduced motion block on purpose: no motion involved. */
.photo::after {
  background: linear-gradient(to top, color-mix(in srgb, var(--color-text) 60%, transparent), transparent 26%);
}
