/* ==========================================================================
   Lorenz Schwarz — Portfolio
   ========================================================================== */

/* --- Fonts (self-hosted Schibsted Grotesk) ------------------------------- */
@font-face {
  font-family: 'Schibsted Grotesk';
  src: url('../fonts/schibsted-grotesk-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  src: url('../fonts/schibsted-grotesk-medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  src: url('../fonts/schibsted-grotesk-semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  src: url('../fonts/schibsted-grotesk-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- Reset / base -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body, #root { height: 100%; }

body {
  font-family: 'Schibsted Grotesk', sans-serif;
  font-weight: 400;
  background: #000;
  color: #F0F0F0;
  font-size: 16px;
  line-height: 1;
}

a { color: #F0F0F0; text-decoration: none; }
a:hover { color: #D85648; }
p { margin: 0 0 1em 0; }
h4 { font-weight: 400; margin: 0 0 0.25em 0; }

/* --- Header -------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  background: #00000060;
  backdrop-filter: blur(2px);
}
.header__inner {
  max-width: 992px;
  margin: 0 auto;
  padding: 1.5em 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header__logo {
  font-weight: 400;
  font-size: 1.8em;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1;
}
.header__logo a { color: #FFFFFF99; }
.header__logo a:hover { color: #D85648; }

.header__nav { text-align: right; }
.header__nav a {
  padding: 0 0 0 1.2em;
  display: inline-block;
  font-size: 0.85em;
  color: #FFFFFF99;
  font-weight: 400;
  text-underline-offset: 0.25em;
  transition: color 0.2s, font-weight 0.2s;
}
.header__nav a:hover { color: #D85648; }
.header__nav a.is-active {
  color: #FFFFFF;
  font-weight: 500;
  text-decoration: underline;
}

/* --- Claim --------------------------------------------------------------- */
.claim { background: #000; }
.claim__spacer { height: 5em; }
.claim__quote {
  margin: 0;
  padding: 10%;
  font-weight: 400;
  font-size: 2em;
  line-height: 1.3;
  quotes: "\201C" "\201D" "\2018" "\2019";
}
.claim__mark {
  font-size: 4em;
  line-height: 0;
  margin-right: 0.2em;
  vertical-align: -0.4em;
  font-family: Georgia, serif;
}

/* --- Section ------------------------------------------------------------- */
.section__spacer { height: 5em; }
.section__inner {
  max-width: 992px;
  margin: 0 auto;
  padding: 0 20px 4em;
}
.section__header { padding: 1.5em 0; }
.section__title {
  font-weight: 700;
  font-size: 2em;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.section__sub {
  font-weight: 400;
  font-size: 1.35em;
  line-height: 1.2;
  margin-top: 0.4em;
  opacity: 0.72;
}
.section__body {
  display: flex;
  margin-top: 1.5em;
  gap: 0;
}
.section__specs {
  width: 33.33%;
  padding-right: 1em;
}
.section__specs ul { margin: 0; padding: 0; line-height: 1.4; }
.section__specs li {
  list-style: disc;
  font-size: 0.9rem;
  margin-left: 1.2em;
  padding-left: 0.2em;
}
.section__desc { width: 66.66%; }

/* --- Slideshow ----------------------------------------------------------- */
.slideshow { position: relative; }
.slideshow__frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}
.slideshow__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.slideshow__frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.slideshow__caption {
  font-size: 0.8rem;
  line-height: 2;
  padding-top: 0.4em;
  color: #bbb;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1em;
}
.slideshow--dark .slideshow__caption { color: #555; }
.slideshow__count {
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  opacity: 0.7;
}

.pill-btn {
  position: absolute;
  top: calc(50% - 1.5em);
  transform: translateY(-50%);
  width: 48px;
  height: 32px;
  border-radius: 24px;
  border: none;
  cursor: pointer;
  background: rgba(128, 128, 128, 0.35);
  backdrop-filter: blur(4px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, box-shadow 0.25s;
  padding: 0;
  flex-shrink: 0;
}
.pill-btn[aria-disabled="true"] {
  cursor: default;
  background: rgba(128, 128, 128, 0.15);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}
.pill-btn--prev { left: 12px; }
.pill-btn--next { right: 12px; }

/* --- Description toggle -------------------------------------------------- */
.desc__short { line-height: 1.4; font-size: 0.9rem; }
.desc__toggle {
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 2;
  display: inline-block;
  transition: color 0.2s;
  color: #FFFFFF99;
}
.desc--dark .desc__toggle { color: #00000099; }
.desc__long-wrap {
  overflow: hidden;
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.35s ease, opacity 0.25s ease;
}
.desc__long-wrap.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
}
.desc__long-inner {
  min-height: 0;
  overflow: hidden;
}
.desc__long {
  line-height: 1.4;
  font-size: 0.9rem;
  padding-top: 0.4em;
}

/* --- Archive ------------------------------------------------------------- */
.archive { background: #000; }
.archive__spacer { height: 4em; }
.archive__inner {
  max-width: 992px;
  margin: 0 auto;
  padding: 0 20px 4em;
}
.archive__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 16px;
}
.archive__item { padding: 0.5em 0.25em; }
.archive__figure { padding-bottom: 0.9em; }
.archive__img {
  width: 70%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #111;
}
.archive__text {
  width: 70%;
  font-size: 0.55rem;
  line-height: 1.5;
  color: #F0F0F0;
}
.archive__title { font-weight: 600; }

/* --- Overlay ------------------------------------------------------------- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 20;
  overflow-y: auto;
  padding: 4em 20px;
}
.overlay__panel {
  max-width: 720px;
  margin: 0 auto;
  background: #000;
  color: #F0F0F0;
  padding: 3em;
  font-size: 0.9rem;
  line-height: 1.5;
  position: relative;
  border: 1px solid #222;
}
.overlay__close {
  position: absolute;
  top: 1em;
  right: 1em;
  background: transparent;
  border: none;
  color: #F0F0F0;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}
.overlay__title {
  font-size: 1.5em;
  font-weight: 400;
  margin-bottom: 1.5em;
}
.overlay h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1.8em;
  margin-bottom: 0.5em;
}
.overlay h3.is-first { margin-top: 1.5em; }
.overlay p { margin: 0 0 0.8em; }
.overlay p.is-tight { margin: 0; }
.overlay p.is-email-line { margin: 0.5em 0 0; }
.overlay p.is-host-link { margin: 0.5em 0 0.8em; }
.overlay a { color: #F0F0F0; text-decoration: underline; }
.overlay ul {
  margin: 0 0 0.8em 1.2em;
  padding: 0;
  line-height: 1.5;
}
.overlay__dateline {
  margin: 2em 0 0;
  color: #F0F0F080;
  font-size: 0.85rem;
}

/* --- Footer -------------------------------------------------------------- */
.footer {
  background: #000;
  border-top: 1px solid #111;
}
.footer__inner {
  max-width: 992px;
  margin: 0 auto;
  padding: 2em 20px;
}
.footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1em;
}
.footer__links {
  display: flex;
  gap: 2em;
  align-items: center;
}
.footer__links a {
  color: #F0F0F0;
  font-size: 0.85rem;
  cursor: pointer;
}
.footer__links a:hover { color: #D85648; }
.footer__sep { color: #333; }
.footer__copy {
  color: #F0F0F066;
  font-size: 0.85rem;
}


/* --- Contact form -------------------------------------------------------- */
.contact__form { margin-top: 1em; }
.contact__field { margin-bottom: 1.2em; }
.contact__label {
  display: block;
  font-size: 0.8rem;
  color: #F0F0F066;
  margin-bottom: 0.4em;
}
.contact__input,
.contact__textarea {
  width: 100%;
  background: #111;
  border: 1px solid #222;
  color: #F0F0F0;
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.6em 0.8em;
  outline: none;
  resize: vertical;
}
.contact__input:focus,
.contact__textarea:focus { border-color: #444; }
.contact__submit {
  background: #F0F0F0;
  color: #000;
  border: none;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.65em 2em;
  cursor: pointer;
  margin-top: 0.4em;
  transition: background 0.2s;
}
.contact__submit:hover { background: #D85648; color: #fff; }
.contact__submit:disabled { opacity: 0.5; cursor: default; }
.contact__success { color: #F0F0F0; margin-top: 1em; }
.contact__error { color: #D85648; font-size: 0.85rem; margin: 0.5em 0; }

.state-loading {
  padding: 4em 2em;
  color: #F0F0F066;
  font-size: 0.85rem;
}
.state-error {
  padding: 4em 2em;
  color: #F0F0F0;
  font-family: monospace;
}
.state-error h2 { margin-bottom: 1em; }
.state-error .hint { margin-top: 1em; opacity: 0.6; }