/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --bg:             #E8E4DF;
  --text:           #111111;
  --caption:        #333333;
  --fineprint:      #888888;
  --accent:         #C0122C;
  --accent-gradient: linear-gradient(135deg, #9e0e24 0%, #d63352 60%, #e85070 100%);
  --white:          #ffffff;
  --black:          #111111;
  --max-w:          860px;
  --pad-x:          24px;
  --section-gap:    72px;
  --font-head:      'Oswald', sans-serif;
  --font-body:      'Inter', sans-serif;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ============================================================
   SKIP LINK
   ============================================================ */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  background: var(--accent);
  color: var(--white);
  padding: 8px 16px;
  font-family: var(--font-body);
  font-weight: 600;
  z-index: 9999;
}
.skip-link:focus { left: 12px; }

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.t-headline {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: 0.02em;
}
.t-subhead {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.4rem;
  line-height: 1.2;
}
.t-caption {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--caption);
  line-height: 1.5;
}
.t-fineprint {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--fineprint);
  line-height: 1.4;
  font-style: italic;
}
.t-accent { color: var(--accent); }
.t-upper  { text-transform: uppercase; }

/* Red rule underline */
.red-rule {
  display: block;
  width: 100px;
  height: 3px;
  background: var(--accent);
  margin: 8px auto 0;
}

/* ============================================================
   SECTION BASE
   ============================================================ */
section {
  padding: var(--section-gap) var(--pad-x);
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ============================================================
   FRAMES
   ============================================================ */
.frame-gallery {
  display: inline-block;
  padding: 14px;
  background: var(--white);
  box-shadow: 0 0 0 14px var(--black);
  margin: 0 auto;
  max-width: 100%;
}
.frame-gallery img { display: block; }

.frame-product {
  border: 3px solid var(--accent);
  display: block;
  overflow: hidden;
}
.frame-product img { display: block; width: 100%; }

/* ============================================================
   SECTION TEMPLATES
   ============================================================ */

/* section-hero */
.section-hero {
  max-width: 100%;
  padding: 0;
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #111;
}
.section-hero::before {
  content: '';
  position: absolute;
  inset: -40px;
  background: url('../images/artwork/page-01.webp') center / cover no-repeat;
  filter: blur(28px) brightness(0.25);
  z-index: 0;
}
.section-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  z-index: 1;
}
.section-hero__overlay {
  position: relative;
  z-index: 2;
  background: rgba(0,0,0,0.52);
  padding: 48px 32px;
  text-align: center;
  max-width: 720px;
}
.section-hero__title {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  color: var(--white);
  line-height: 1.0;
  letter-spacing: 0.04em;
}
.section-hero__sub {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: rgba(255,255,255,0.88);
  margin-top: 12px;
  font-style: italic;
}
.section-hero__cta {
  display: inline-block;
  margin-top: 28px;
  background: var(--accent-gradient);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 14px 32px;
  font-size: 1rem;
  transition: opacity 0.2s;
}
.section-hero__cta:hover { opacity: 0.85; }

/* section-gallery */
.section-gallery { text-align: center; }
.section-gallery__headline {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 40px;
}
.section-gallery__rule { margin-bottom: 32px; }
.section-gallery__frame { margin: 0 auto; }
.section-gallery__caption {
  margin-top: 28px;
  font-size: 1.05rem;
  font-style: italic;
}

/* section-mixed */
.section-mixed { text-align: center; }
.section-mixed__headline { font-size: clamp(2rem, 5vw, 3.2rem); }
.section-mixed__subhead  { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-top: 4px; }
.section-mixed__rule     { margin: 14px auto 28px; }
.section-mixed__img      { margin: 0 auto 28px; max-width: 420px; }
.section-mixed__list-head {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--accent);
  text-align: left;
  margin-bottom: 12px;
}
.section-mixed__list {
  list-style: none;
  text-align: left;
  max-width: 680px;
  margin: 0 auto;
}
.section-mixed__list li {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--caption);
  padding: 6px 0 6px 24px;
  position: relative;
  line-height: 1.5;
}
.section-mixed__list li::before {
  content: '•';
  color: var(--accent);
  position: absolute;
  left: 4px;
}

/* section-text */
.section-text { max-width: var(--max-w); }
.section-text__list { list-style: none; margin-top: 24px; }
.section-text__list li {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--caption);
  padding: 6px 0 6px 24px;
  position: relative;
  line-height: 1.5;
}
.section-text__list li::before {
  content: '•';
  color: var(--accent);
  position: absolute;
  left: 4px;
}
.section-text__divider {
  border: none;
  border-top: 2px solid var(--black);
  margin: 32px 0;
  width: 200px;
}

/* section-product */
.section-product { text-align: center; }
.section-product__headline {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 20px;
}
.section-product__frame { margin: 0 auto; }
.section-product__caption { margin-top: 20px; font-size: 1.8rem; }
.section-product__caption::before { content: '• '; color: var(--accent); }
.section-product__fineprint { margin-top: 8px; font-size: 1.25rem; font-style: italic; color: var(--fineprint); }

/* section-grid */
.section-grid { text-align: center; }
.section-grid__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.section-grid__grid .frame-product { height: 100%; }
.section-grid__grid .frame-product img { height: 100%; object-fit: cover; }
.section-grid__caption { font-size: 1.8rem; }
.section-grid__caption::before { content: '• '; color: var(--accent); }
.section-grid__fineprint { margin-top: 8px; font-size: 1.25rem; font-style: italic; color: var(--fineprint); }

/* section-resume */
.section-resume__headline {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 4px;
}
.section-resume__name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.3rem;
  margin-bottom: 28px;
}
.section-resume__list { list-style: none; }
.section-resume__list li {
  font-size: 1rem;
  color: var(--caption);
  padding: 8px 0 8px 24px;
  position: relative;
  line-height: 1.5;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.section-resume__list li::before {
  content: '•';
  color: var(--accent);
  position: absolute;
  left: 4px;
}
.section-resume__list strong { color: var(--text); }
.section-resume__list small {
  font-size: 0.88rem;
  color: var(--fineprint);
}
.section-resume__thumb {
  max-width: 220px;
  margin: 32px auto 0;
  border: 3px solid var(--black);
}

/* section-finale */
.section-finale {
  max-width: 100%;
  background: var(--accent-gradient);
  padding: 72px var(--pad-x);
  text-align: center;
}
.section-finale__headline {
  font-size: clamp(2.8rem, 7vw, 5rem);
  color: var(--white);
  letter-spacing: 0.06em;
  margin-bottom: 40px;
}
.section-finale__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.section-finale__grid img { width: 100%; height: auto; display: block; }
.section-finale__grid img:last-child {
  grid-column: 1 / -1;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: rgba(17,17,17,0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.3s;
}
.site-header--scrolled { background: rgba(17,17,17,1); }

.site-header__brand {
  color: var(--white);
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  border: 2px solid transparent;
  display: inline-block;
}
.btn--primary {
  background: var(--accent-gradient);
  color: var(--white);
  border-color: var(--accent);
}
.btn--primary:hover { background: #8c0b1e; border-color: #8c0b1e; }
.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn--ghost:hover { background: var(--white); color: var(--black); }

.site-header__socials {
  display: flex;
  align-items: center;
  gap: 14px;
}
.site-header__socials a {
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
  display: flex;
  align-items: center;
}
.site-header__socials a:hover { color: var(--white); }

.site-header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.site-header__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform 0.2s, opacity 0.2s;
}
.site-header__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-header__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--black);
  color: var(--white);
  padding: 72px 24px;
}
.site-footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
}
.site-footer__col-head {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}

.contact-form { display: flex; flex-direction: column; gap: 12px; }
.contact-form label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  display: block;
  margin-bottom: 4px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 10px 12px;
  border-radius: 4px;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.contact-form textarea { resize: vertical; min-height: 100px; }
.contact-form__success {
  display: none;
  color: #6fcf97;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 0;
}

.footer-domains { list-style: none; }
.footer-domains li {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  line-height: 1.4;
}

.footer-socials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 14px;
  color: rgba(255,255,255,0.7);
  transition: background 0.2s, color 0.2s;
}
.footer-socials a:hover { background: var(--accent); color: var(--white); }
.footer-socials svg { width: 22px; height: 22px; }

.footer-copyright {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  margin-top: 16px;
  text-align: center;
  grid-column: 1 / -1;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  section:not(.section-hero) {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  section.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  :root { --section-gap: 52px; --pad-x: 20px; }
  .section-hero { min-height: 70vh; }
  .section-hero__overlay { padding: 32px 20px; }
  .frame-gallery { box-shadow: 0 0 0 10px var(--black); padding: 10px; }
}

@media (max-width: 700px) {
  .site-header__burger { display: flex; }
  .site-header__nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(17,17,17,0.98);
    padding: 20px 24px;
  }
  .site-header__nav.is-open { display: flex; }
  .site-header__socials { gap: 20px; }
  .site-footer__inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 600px) {
  :root { --section-gap: 40px; --pad-x: 16px; }
  .section-hero { min-height: 60vh; }
  .section-hero__overlay { padding: 24px 16px; }
  .section-gallery__headline,
  .section-mixed__headline,
  .t-headline { font-size: clamp(1.6rem, 7vw, 2.4rem); }
  .frame-gallery { box-shadow: 0 0 0 8px var(--black); padding: 8px; }
  .section-grid__grid { grid-template-columns: 1fr; }
  .section-finale__grid { grid-template-columns: 1fr; }
  .section-finale__grid img:last-child {
    grid-column: auto;
  }
  .section-resume__thumb { max-width: 160px; }
}

/* scroll-to-top button */
.scroll-top-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--accent-gradient);
  color: #000;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 900;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.scroll-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
}
.scroll-top-btn:hover { transform: scale(1.1); }
