/* Florian Kazimirski – Redaktion trifft Galerie */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "DM Mono";
  src: url("fonts/dmmono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "DM Mono";
  src: url("fonts/dmmono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --paper: #edefec;
  --paper-2: #e3e6e3;
  --ink: #14161a;
  --graphite: #5b616a;
  --rule: #c6cacd;
  --sky: #bcd4e6;
  --marker: #e0362c;
  --darkroom: #0f1012;
  --darkroom-2: #1a1c20;
  --film-ink: #d9dcd8;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(17px, 1.05vw + 10px, 20px);
  line-height: 1.55;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--sky); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--marker);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--ink); color: var(--paper); padding: 10px 14px;
  font-family: var(--mono); font-size: 13px; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Utility type */
.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--graphite);
  margin: 0 0 18px;
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.topbar.is-scrolled { border-bottom-color: var(--rule); }
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: 56px;
}
.topbar__name {
  font-family: var(--display); font-weight: 650; font-stretch: 88%;
  font-size: 16px; letter-spacing: -0.01em; text-decoration: none;
}
.topbar nav { display: flex; gap: clamp(14px, 2.2vw, 32px); }
.topbar nav a {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; text-decoration: none; color: var(--graphite);
  padding: 6px 0; position: relative;
}
.topbar nav a:hover { color: var(--ink); }
.topbar__clock { font-family: var(--mono); font-size: 12px; color: var(--graphite); white-space: nowrap; }
.topbar__clock b { font-weight: 500; color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(56px, 8vw, 112px); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}
.hero__words {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(64px, 9.8vw, 164px);
  line-height: 0.84;
  letter-spacing: -0.035em;
  text-transform: none;
}
.hero__words .w { display: block; white-space: nowrap; }
.w--medien  { font-stretch: 62%;  font-weight: 860; }
.w--tech    { font-stretch: 125%; font-weight: 230; letter-spacing: -0.05em; }
.w--menschen{ font-stretch: 100%; font-weight: 620; position: relative; display: inline-block !important; }

.w--menschen .underline {
  position: absolute; left: -2%; right: -4%; bottom: -0.16em; height: 0.28em;
  width: 106%; overflow: visible; pointer-events: none;
}
.underline path {
  fill: none; stroke: var(--marker); stroke-width: 7; stroke-linecap: round;
  stroke-dasharray: 1200; stroke-dashoffset: 1200;
  animation: draw 1.1s cubic-bezier(.6,.05,.25,1) 1.25s forwards;
}

.js .w--medien { animation: squeeze 1.3s cubic-bezier(.2,.8,.2,1) .1s both; }
.js .w--tech   { animation: stretch 1.3s cubic-bezier(.2,.8,.2,1) .3s both; }
.js .w--menschen { animation: settle 1.1s cubic-bezier(.2,.8,.2,1) .55s both; }

@keyframes squeeze { from { font-stretch: 125%; font-weight: 300; opacity: 0; } to { font-stretch: 62%; font-weight: 860; opacity: 1; } }
@keyframes stretch { from { font-stretch: 62%; font-weight: 860; opacity: 0; } to { font-stretch: 125%; font-weight: 230; opacity: 1; } }
@keyframes settle  { from { opacity: 0; transform: translateY(0.12em); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero__photo { margin: 0; position: relative; }
.hero__photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 28%;
  filter: saturate(.92) contrast(1.02);
}
.caption {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: 10px; font-family: var(--mono); font-size: 11.5px;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--graphite);
}

.hero__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  margin-top: clamp(36px, 5vw, 72px);
  padding-top: 22px;
  border-top: 1px solid var(--ink);
}
.hero__lede {
  margin: 0; font-size: clamp(22px, 2.1vw + 8px, 38px); line-height: 1.22;
  font-weight: 380; letter-spacing: -0.01em; max-width: 28ch;
}
.hero__lede em { font-style: italic; }
.hero__aside { font-size: 16px; color: var(--graphite); align-self: end; }
.hero__aside p { margin: 0 0 6px; }
.hero__aside strong { color: var(--ink); font-weight: 500; }

/* ---------- Section frame ---------- */
.section { padding: clamp(72px, 10vw, 152px) 0; }
.section__head {
  display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px); margin-bottom: clamp(36px, 5vw, 72px);
  align-items: end;
}
.section__title {
  margin: 0; font-family: var(--display); font-weight: 700; font-stretch: 78%;
  font-size: clamp(44px, 6.2vw, 104px); line-height: 0.9; letter-spacing: -0.03em;
}
.section__sub { margin: 0; max-width: 46ch; color: var(--graphite); }

/* ---------- Felder (Arbeit) ---------- */
.fields {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 40px);
}
.field { display: flex; flex-direction: column; }
.field__img {
  position: relative; overflow: hidden; background: var(--paper-2);
  aspect-ratio: 4 / 5;
}
.field__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2,.8,.2,1), filter .6s;
  filter: grayscale(.25);
}
.field:hover .field__img img { transform: scale(1.035); filter: grayscale(0); }
.field__tag {
  position: absolute; left: 12px; top: 12px;
  background: var(--paper); color: var(--ink);
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 8px;
}
.field__tag--main { background: var(--ink); color: var(--paper); }
.field h3 {
  margin: 20px 0 4px; font-family: var(--display); font-weight: 680;
  font-stretch: 90%; font-size: clamp(28px, 2.3vw, 38px); letter-spacing: -0.02em; line-height: 1;
}
.field__role { margin: 0 0 14px; font-style: italic; color: var(--graphite); }
.field p { margin: 0 0 16px; }
.field__link {
  margin-top: auto; align-self: flex-start;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 3px;
}
.field__link:hover { color: var(--marker); border-color: var(--marker); }

/* ---------- Kontaktbogen (Person) ---------- */
.darkroom { background: var(--darkroom); color: var(--film-ink); }
.darkroom .eyebrow, .darkroom .section__sub { color: #8d939b; }
.darkroom .section__title { color: #f1f2ef; }

.sheet-layout {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 72px); align-items: start;
}
.sheet {
  background: #050506;
  padding: 18px 14px 14px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px #24262a inset;
}
.sheet__edge {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: #c9a34a; opacity: .85; margin: 0 4px 10px;
}
.sheet__grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 10px; list-style: none; margin: 0; padding: 0;
}
.frame { position: relative; }
.frame__no {
  display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .1em;
  color: #c9a34a; opacity: .8; margin: 0 0 4px 2px;
}
.frame button {
  all: unset; display: block; width: 100%; cursor: pointer; position: relative;
  aspect-ratio: 2 / 3; background: #222;
}
.frame button:focus-visible { outline: 2px solid var(--marker); outline-offset: 4px; }
.frame img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08) brightness(.92); transition: filter .35s; }
.frame button:hover img, .frame.is-picked img { filter: grayscale(0) contrast(1) brightness(1); }

.marker {
  position: absolute; left: -9%; top: -7%; width: 118%; height: 114%;
  pointer-events: none; overflow: visible; z-index: 2;
}
.marker path {
  fill: none; stroke: var(--marker); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 900; stroke-dashoffset: 900;
}
.marker.is-drawn path { animation: draw .7s cubic-bezier(.6,.05,.25,1) forwards; }

.sheet__hint { margin: 14px 4px 0; font-family: var(--mono); font-size: 11.5px; letter-spacing: .05em; color: #8d939b; }

.print { margin: 0; }
.print__img { position: relative; background: #1d1f22; aspect-ratio: 2 / 3; overflow: hidden; }
.print__img img { width: 100%; height: 100%; object-fit: cover; transition: opacity .45s; }
.print__img img.is-fading { opacity: 0; }
.print .caption { color: #8d939b; }

.story {
  margin-top: clamp(48px, 6vw, 96px);
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 72px); align-items: start;
}
.story p { margin: 0 0 18px; max-width: 40ch; font-size: clamp(18px, .6vw + 14px, 22px); line-height: 1.5; }
.story .quote {
  font-family: var(--serif); font-style: italic; font-weight: 340;
  font-size: clamp(28px, 2.6vw + 8px, 48px); line-height: 1.12; letter-spacing: -0.015em;
  color: #f1f2ef; max-width: 18ch; margin: 0 0 30px;
}
.story .quote::before { content: "„"; }
.story .quote::after { content: "“"; }
.story__facts {
  display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 26px 0 0;
}
.story__facts li {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid #3a3d42; padding: 6px 10px; color: var(--film-ink);
}

/* ---------- Können ---------- */
.skills {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}
.skill { padding: 22px clamp(12px, 1.6vw, 24px) 28px 0; }
.skill + .skill { padding-left: clamp(12px, 1.6vw, 24px); border-left: 1px solid var(--rule); }
.skill h3 {
  margin: 0 0 14px; font-family: var(--display); font-weight: 700; font-stretch: 85%;
  font-size: 24px; letter-spacing: -0.01em;
}
.skill ul { list-style: none; margin: 0; padding: 0; }
.skill li { padding: 7px 0; border-bottom: 1px solid var(--rule); font-size: 17px; line-height: 1.35; }
.skill li:last-child { border-bottom: 0; }
.skill .proof { margin: 16px 0 0; font-size: 15px; font-style: italic; color: var(--graphite); }

.stations { margin-top: clamp(64px, 8vw, 120px); }
.stations h3 {
  margin: 0 0 18px; font-family: var(--display); font-weight: 700; font-stretch: 85%; font-size: 24px;
}
.stations ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.stations li {
  display: grid; grid-template-columns: 9.5em minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); align-items: baseline;
}
.stations .yr { font-family: var(--mono); font-size: 13px; color: var(--graphite); }
.stations .role { font-family: var(--display); font-weight: 600; font-stretch: 92%; font-size: 19px; letter-spacing: -0.01em; }
.stations .org { color: var(--graphite); font-size: 17px; }
.stations li.is-now .yr { color: var(--marker); }

/* ---------- Kontakt ---------- */
.contact { position: relative; overflow: hidden; background: var(--sky); }
.contact__bg {
  position: absolute; inset: 0; z-index: 0;
}
.contact__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .38; mix-blend-mode: multiply; filter: grayscale(.4); }
.contact .wrap { position: relative; z-index: 1; }
.contact__lead { margin: 0 0 18px; font-size: clamp(22px, 1.6vw + 10px, 34px); line-height: 1.25; max-width: 30ch; }
.contact__mail {
  display: inline-block; font-family: var(--display); font-weight: 760; font-stretch: 70%;
  font-size: clamp(38px, 9.4vw, 168px); line-height: .95; letter-spacing: -0.035em;
  text-decoration: none; word-break: break-word; margin: 8px 0 36px;
  background-image: linear-gradient(var(--marker), var(--marker));
  background-size: 0% 6px; background-repeat: no-repeat; background-position: 0 92%;
  transition: background-size .5s cubic-bezier(.2,.8,.2,1);
}
.contact__mail:hover, .contact__mail:focus-visible { background-size: 100% 6px; }
.contact__links { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.contact__links a {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 3px;
}
.contact__links a:hover { color: var(--marker); border-color: var(--marker); }

/* ---------- Footer ---------- */
.footer { padding: 26px 0 34px; border-top: 1px solid var(--rule); }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer p, .footer a { margin: 0; font-family: var(--mono); font-size: 12px; color: var(--graphite); text-decoration: none; letter-spacing: .04em; }
.footer nav { display: flex; gap: 22px; }
.footer a:hover { color: var(--ink); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Legal pages ---------- */
.legal { padding: clamp(40px, 6vw, 96px) 0 clamp(72px, 8vw, 120px); }
.legal h1 {
  margin: 0 0 clamp(28px, 4vw, 56px); font-family: var(--display); font-weight: 720; font-stretch: 75%;
  font-size: clamp(48px, 8vw, 120px); line-height: .9; letter-spacing: -0.03em;
}
.legal__body { max-width: 68ch; }
.legal__body h2 { font-family: var(--display); font-weight: 680; font-stretch: 90%; font-size: 22px; margin: 40px 0 10px; }
.legal__body p, .legal__body li { font-size: 17px; }
.legal__body address { font-style: normal; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .fields { grid-template-columns: 1fr 1fr; }
  .fields .field:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(20px, 2.6vw, 40px); }
  .fields .field:last-child .field__img { grid-row: 1 / span 5; }
  .fields .field:last-child h3 { margin-top: 0; }
  .skills { grid-template-columns: 1fr 1fr; }
  .skill:nth-child(3) { border-left: 0; padding-left: 0; }
  .skill:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .sheet-layout, .story { grid-template-columns: 1fr; }
  .print { max-width: 520px; }
}

@media (max-width: 760px) {
  .topbar nav { display: none; }
  .hero__grid, .hero__intro, .section__head { grid-template-columns: 1fr; }
  .hero__photo { max-width: 420px; }
  .hero__words { font-size: clamp(52px, 18.5vw, 120px); }
  .fields { grid-template-columns: 1fr; }
  .fields .field:last-child { display: flex; }
  .fields .field:last-child h3 { margin-top: 20px; }
  .skills { grid-template-columns: 1fr; }
  .skill, .skill + .skill { padding-left: 0; border-left: 0; }
  .skill + .skill { border-top: 1px solid var(--rule); }
  .sheet__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 8px; }
  .stations li { grid-template-columns: 1fr; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  .js .w--medien, .js .w--tech, .js .w--menschen { animation: none; }
  .underline path, .marker path { animation: none !important; stroke-dashoffset: 0; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .field__img img, .contact__mail { transition: none; }
}
