/* =========================================================
   CLAUDIA FRANK — Abstrakte Malerei
   Design tokens
   ========================================================= */
:root {
  --black:      #111110;
  --ink:        #1a1a18;
  --grey-700:   #4a4a47;
  --grey-500:   #7c7b77;
  --grey-300:   #b8b6b0;
  --grey-150:   #e3e1db;
  --grey-100:   #efeee9;
  --white:      #faf9f6;

  --line:       rgba(17,17,16,0.14);
  --line-soft:  rgba(17,17,16,0.08);

  --font-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-body:    'Archivo', 'Helvetica Neue', Arial, sans-serif;

  --nav-h: 88px;
  --edge: clamp(20px, 5vw, 64px);

  --ease: cubic-bezier(.22,.61,.36,1);
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--white);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--black); color: var(--white); }

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

/* =========================================================
   NAV
   ========================================================= */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 var(--edge);
  color: var(--ink);
  background: rgba(250,249,246,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-nav.is-solid {
  background: rgba(250,249,246,0.92);
  backdrop-filter: blur(10px);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

/* Pages without a hero image start solid immediately */
body.no-hero .site-nav {
  background: rgba(250,249,246,0.92);
  backdrop-filter: blur(10px);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.nav-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transition: right .3s var(--ease);
}

.nav-links a:hover::after,
.nav-links a.selected::after {
  right: 0;
}

.nav-links a.selected { font-weight: 800; }

.nav-toggle {
  display: none;
  width: 34px; height: 24px;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 200;
}

.nav-toggle span {
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 2px; }
.nav-toggle span:nth-child(2) { top: 11px; }
.nav-toggle span:nth-child(3) { top: 20px; }

.nav-open .nav-toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* =========================================================
   HERO (index)
   ========================================================= */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--grey-100);
}

.hero-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 42%;
  transform: scale(1.02);
}

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(250,249,246,0) 0%, rgba(250,249,246,.1) 38%, rgba(250,249,246,.88) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 var(--edge) 72px;
  color: var(--ink);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px 40px;
}

.hero-text {
  flex: 1 1 320px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.hero-eyebrow {
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--grey-700);
  margin: 0 0 18px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(52px, 12vw, 168px);
  line-height: .86;
  letter-spacing: -0.02em;
  margin: 0;
  text-transform: uppercase;
  color: var(--ink);
}

.hero-sub {
  margin: 22px 0 0;
  max-width: 44ch;
  font-size: clamp(15px, 1.6vw, 19px);
  font-weight: 400;
  line-height: 1.55;
  color: var(--grey-700);
}

/* =========================================================
   PAGE HEADER (for non-hero pages)
   ========================================================= */
.page-header {
  padding: calc(var(--nav-h) + 56px) var(--edge) 40px;
  border-bottom: 1px solid var(--line);
}

.page-kicker {
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--grey-500);
  margin: 0 0 12px;
}

.page-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 7vw, 76px);
  line-height: .95;
  letter-spacing: -0.01em;
  margin: 0;
  text-transform: uppercase;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid var(--black);
  transition: background .3s var(--ease), color .3s var(--ease);
}

.btn-solid { background: var(--black); color: var(--white); }
.btn-solid:hover { background: var(--grey-700); border-color: var(--grey-700); }

.btn-outline { background: transparent; color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--white); }

/* =========================================================
   ABOUT PAGE
   ========================================================= */
.about-wrap {
  padding: 72px var(--edge) 40px;
  display: grid;
  grid-template-columns: 0.62fr 1.38fr;
  gap: 56px;
  align-items: start;
}

.about-portrait {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.about-portrait img {
  width: 100%;
  aspect-ratio: 15 / 22;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(1) contrast(1.05);
  background: var(--grey-150);
}

.about-body {
  max-width: 62ch;
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink);
  padding-bottom: 40px;
}

.about-body p {
  margin: 0 0 26px;
}

.about-body p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3.4em;
  line-height: .78;
  float: left;
  padding: 4px 10px 0 0;
}

.pull-quote {
  margin: 48px 0;
  padding: 30px 0 30px 28px;
  border-left: 2px solid var(--black);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.6vw, 27px);
  line-height: 1.4;
  letter-spacing: -0.005em;
}

/* =========================================================
   GALLERY
   ========================================================= */
.gallery-shell {
  padding: 56px var(--edge) 100px;
}

.viewer {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(12px, 3vw, 40px);
  max-width: 980px;
  margin: 0 auto;
}

.viewer-frame {
  position: relative;
  overflow: hidden;
  background: var(--grey-100);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  max-height: 66vh;
}

.viewer-index {
  position: absolute;
  top: 20px; left: 20px;
  z-index: 3;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--white);
  background: rgba(17,17,16,.72);
  padding: 7px 12px;
}

#mainImage {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6%;
}

.viewer-btn {
  width: 52px; height: 52px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  color: var(--ink);
}

.viewer-btn:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

#description {
  max-width: 980px;
  margin: 28px auto 0;
  text-align: right;
  font-size: 17px;
  letter-spacing: .015em;
  color: var(--ink);
  min-height: 24px;
}

.gallery-hint {
  display: none;
  text-align: center;
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--grey-500);
  margin: 8px 0 0;
}

.gallery {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin-top: 56px;
  padding: 6px 2px 18px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.gallery img {
  flex: 0 0 auto;
  width: 92px;
  height: 92px;
  object-fit: cover;
  cursor: pointer;
  filter: grayscale(1);
  border: 1px solid transparent;
  scroll-snap-align: start;
  transition: filter .3s var(--ease), border-color .3s var(--ease), transform .2s var(--ease);
}

.gallery img:hover {
  filter: grayscale(.4);
  transform: translateY(-3px);
}

.gallery img.active {
  filter: grayscale(0);
  border-color: var(--black);
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact-wrap {
  padding: 72px var(--edge) 100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.colophon {
  font-size: 20px;
  line-height: 2;
}

.colophon dt {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--grey-500);
  margin-top: 22px;
}
.colophon dt:first-child { margin-top: 0; }

.colophon dd {
  margin: 2px 0 0;
  font-weight: 500;
}

.colophon a:hover { text-decoration: underline; text-underline-offset: 4px; }

.form-heading {
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--grey-500);
  margin: 0 0 24px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--grey-500);
}

.field input,
.field textarea {
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  padding: 8px 2px;
  resize: vertical;
  transition: border-color .25s var(--ease);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--black);
  outline: none;
}

.contact-form .btn {
  align-self: flex-start;
  margin-top: 6px;
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--black);
  cursor: pointer;
}
.contact-form .btn:hover { background: var(--grey-700); }

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  padding: 30px var(--edge) 40px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--grey-500);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .about-wrap { grid-template-columns: 1fr; }
  .about-portrait { position: static; max-width: 380px; }
  .contact-wrap { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 68px; }

  .nav-toggle { display: block; }

  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 150;
    background: var(--black);
    color: var(--white);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    transform: translateY(-100%);
    transition: transform .45s var(--ease);
  }

  .nav-open .nav-links { transform: translateY(0); }

  .nav-links a { font-size: 18px; }

  .viewer { grid-template-columns: 1fr; }
  .viewer-btn { display: none; }
  .gallery-hint { display: block; }

  .colophon { font-size: 17px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(44px, 16vw, 80px); }
  .about-body p:first-of-type::first-letter { font-size: 2.6em; }
  .viewer-frame { aspect-ratio: 1 / 1; }
  footer { flex-direction: column; gap: 8px; text-align: center; }
}
