@import url('../fonts/fonts.css');

/* ========== TOKENS ========== */
:root {
  --bg: #0a0a0a;
  --bg-alt: #111111;
  --bg-elevated: #161616;
  --cream: #f5f1ea;
  --cream-dim: rgba(245, 241, 234, 0.7);
  --cream-faint: rgba(245, 241, 234, 0.45);
  --line: rgba(245, 241, 234, 0.12);
  --sage: #a8a594;
  --gold: #c8a878;
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --container: 1280px;
  --section: clamp(80px, 10vw, 140px);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
}

/* ========== RESET ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { background: none; border: none; color: inherit; cursor: pointer; font: inherit; }

/* ========== TYPO ========== */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.05; letter-spacing: -0.01em; }
h1 { font-size: clamp(3.5rem, 9vw, 8rem); font-weight: 500; }
h2 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h3 { font-size: clamp(1.6rem, 2.5vw, 2.2rem); }
h4 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); font-weight: 600; }
.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--sage);
}
.lead {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  line-height: 1.5;
  font-weight: 500;
  color: var(--cream-dim);
  font-style: italic;
}

/* ========== LAYOUT ========== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(1.5rem, 4vw, 3rem); }
section { padding: var(--section) 0; }

/* ========== NAV ========== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem 0;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease);
}
.nav.scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.nav.scrolled:has(.nav-links.open) {
  backdrop-filter: none;
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}
.brand {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.brand span { color: var(--sage); }
.nav-links { display: flex; gap: 2.5rem; align-items: center; }
.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream-dim);
  transition: color 0.3s var(--ease);
  position: relative;
}
.nav-links a:hover { color: var(--cream); }
.nav-links a.active { color: var(--cream); }
.nav-links a.cta {
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--cream-faint);
  border-radius: 999px;
  color: var(--cream);
  transition: all 0.3s var(--ease);
}
.nav-links a.cta:hover { background: var(--cream); color: var(--bg); border-color: var(--cream); }

.menu-toggle {
  display: none;
  width: 32px; height: 32px;
  position: relative;
  z-index: 110;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--cream);
  margin: 6px auto;
  transition: all 0.3s var(--ease);
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 8rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.35;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.6) contrast(1.1);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.4) 0%, rgba(10,10,10,0.7) 50%, var(--bg) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
}
.hero h1 {
  margin-bottom: 2rem;
}
.hero h1 .accent {
  font-style: italic;
  font-weight: 500;
  color: var(--sage);
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line span { display: inline-block; }
.hero-meta {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.hero-meta-item strong { display: block; color: var(--cream); font-weight: 500; margin-bottom: 0.3rem; font-size: 0.75rem; }
.hero-scroll {
  position: absolute;
  bottom: 1.5rem;
  right: clamp(1.5rem, 4vw, 3rem);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cream-faint);
  z-index: 3;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--cream-faint), transparent);
  margin: 0.8rem auto 0;
  animation: scrollLine 2s ease-in-out infinite;
}
@media (max-width: 768px) {
  .hero-scroll { display: none; }
}
@keyframes scrollLine {
  0%, 100% { transform: scaleY(0.5); transform-origin: top; }
  50% { transform: scaleY(1); }
}

/* ========== SPLIT SECTION ========== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}
.split-image {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
}
.split-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.4);
  transition: transform 1.2s var(--ease-out);
}
.split-image:hover img { transform: scale(1.05); }
.split-content h2 { margin-bottom: 2rem; }
.split-content p { margin-bottom: 1.5rem; color: var(--cream-dim); font-size: 1.05rem; line-height: 1.8; }
.split-content .signature {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--sage);
}

/* ========== STYLE-SECTION ========== */
.styles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 4rem;
}
.style-card {
  background: var(--bg);
  padding: 3rem 2.5rem;
  transition: background 0.5s var(--ease);
}
.style-card:hover { background: var(--bg-elevated); }
.style-card .icon {
  width: 48px; height: 48px;
  margin-bottom: 1.5rem;
  color: var(--sage);
}
.style-card h3 { margin-bottom: 1rem; font-weight: 500; }
.style-card p { color: var(--cream-dim); font-size: 0.95rem; line-height: 1.7; }

/* ========== GALLERY ========== */
.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 4rem;
  flex-wrap: wrap;
  gap: 2rem;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.gallery-grid.masonry .gallery-item:nth-child(3n+1) { aspect-ratio: 4/5; }
.gallery-grid.masonry .gallery-item:nth-child(3n+2) { aspect-ratio: 1/1; }
.gallery-grid.masonry .gallery-item:nth-child(3n+3) { aspect-ratio: 4/5; }
.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-elevated);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out), filter 0.5s var(--ease);
  filter: grayscale(0.2);
}
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10,10,10,0.7));
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}
.gallery-item .gallery-label {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 2;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.5s var(--ease);
}
.gallery-item:hover img { transform: scale(1.08); filter: grayscale(0); }
.gallery-item:hover::after { opacity: 1; }
.gallery-item:hover .gallery-label { opacity: 1; transform: translateY(0); }

/* ========== PROCESS ========== */
.process {
  background: var(--bg-alt);
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
  margin-top: 5rem;
  position: relative;
}
.process-grid::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--line);
  z-index: 0;
}
.process-step {
  position: relative;
  z-index: 1;
}
.step-num {
  width: 60px; height: 60px;
  border: 1px solid var(--sage);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg-alt);
  margin-bottom: 2rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--sage);
}
.process-step h3 { margin-bottom: 1rem; font-weight: 500; }
.process-step p { color: var(--cream-dim); line-height: 1.7; font-size: 0.95rem; }

/* ========== STUDIO ========== */
.studio-info {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: stretch;
}
.studio-image {
  position: relative;
  min-height: 400px;
  overflow: hidden;
}
.studio-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.5);
}
.studio-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.studio-list { list-style: none; margin-top: 3rem; }
.studio-list li {
  display: flex;
  justify-content: space-between;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.studio-list li strong {
  font-weight: 500;
  color: var(--cream-dim);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.75rem;
  align-self: center;
}
.studio-list li span { color: var(--cream); font-family: var(--serif); font-size: 1.2rem; }

/* ========== CTA SECTION ========== */
.cta {
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.15;
}
.cta-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) blur(2px);
}
.cta-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.cta h2 { margin-bottom: 2rem; font-style: italic; }
.cta .lead { margin-bottom: 3rem; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1.1rem 2.2rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid var(--cream);
  background: var(--cream);
  color: var(--bg);
  border-radius: 999px;
  transition: all 0.4s var(--ease);
  cursor: pointer;
}
.btn:hover { background: transparent; color: var(--cream); }
.btn.outline { background: transparent; color: var(--cream); border-color: var(--cream-faint); }
.btn.outline:hover { background: var(--cream); color: var(--bg); border-color: var(--cream); }
.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.btn .arrow {
  display: inline-block;
  transition: transform 0.4s var(--ease);
}
.btn:hover .arrow { transform: translateX(4px); }

/* ========== FOOTER ========== */
.footer {
  background: var(--bg-alt);
  padding: 6rem 0 3rem;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}
.footer-brand { font-family: var(--serif); font-size: 2rem; font-weight: 600; margin-bottom: 1rem; }
.footer-tagline { color: var(--cream-dim); font-style: italic; font-family: var(--serif); font-size: 1.2rem; max-width: 320px; }
.footer h4 {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1.5rem;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 0.8rem; }
.footer ul a { color: var(--cream-dim); font-size: 0.95rem; transition: color 0.3s var(--ease); }
.footer ul a:hover { color: var(--cream); }
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--cream-faint);
}

/* ========== LIGHTBOX ========== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.97);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  backdrop-filter: blur(20px);
  cursor: zoom-out;
}
.lightbox.open { display: flex; animation: fadeIn 0.3s var(--ease); }
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: transparent;
  color: var(--cream);
  font-size: 1.5rem;
  width: 50px; height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid var(--cream-faint);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.lightbox-close { top: 2rem; right: 2rem; }
.lightbox-prev { left: 2rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 2rem; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
  background: var(--cream);
  color: var(--bg);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ========== ANIMATIONS ========== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.3s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.4s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.5s; }

/* ========== TERMIN PAGE ========== */
.termin-hero {
  padding: 12rem 0 4rem;
  text-align: center;
}
.termin-hero h1 { font-style: italic; margin-bottom: 1.5rem; }
.termin-hero .lead { max-width: 600px; margin: 0 auto; }

.contact-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 4rem auto 6rem;
}
.contact-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  padding: 3rem 2rem;
  text-align: center;
  transition: all 0.4s var(--ease);
}
.contact-card:hover {
  border-color: var(--sage);
  transform: translateY(-5px);
}
.contact-card .icon {
  width: 48px; height: 48px;
  margin: 0 auto 1.5rem;
  color: var(--sage);
}
.contact-card h3 { font-weight: 500; margin-bottom: 0.5rem; }
.contact-card p { color: var(--cream-dim); margin-bottom: 1.5rem; font-size: 0.95rem; }
.contact-card .btn { font-size: 0.75rem; padding: 0.9rem 1.8rem; }

.form-section {
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 6rem;
}
.form-section h2 { text-align: center; margin-bottom: 1rem; font-style: italic; }
.form-section .lead { text-align: center; margin-bottom: 4rem; }
.form-grid { display: grid; gap: 2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.field { display: flex; flex-direction: column; }
.field label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.7rem;
  font-weight: 500;
}
.field input, .field textarea, .field select {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
  color: var(--cream);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  transition: border-color 0.3s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-bottom-color: var(--cream);
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23a8a594' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.5rem center; padding-right: 2rem; }
.field select option { background: var(--bg); color: var(--cream); }
.form-submit { margin-top: 1rem; justify-self: start; }
.form-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--cream-faint);
  margin-top: 1.5rem;
}

/* ========== GALERIE PAGE ========== */
.galerie-hero {
  padding: 12rem 0 4rem;
  text-align: center;
}
.galerie-hero h1 { font-style: italic; }
.gallery-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  padding-bottom: 6rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .nav-links { display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; height: 100dvh; background: var(--bg); flex-direction: column; justify-content: center; align-items: center; gap: 2.5rem; padding: 4rem 2rem; }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1rem; }
  .menu-toggle { display: block; }
  .split, .studio-info { grid-template-columns: 1fr; }
  .gallery-grid, .gallery-page-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .process-grid { grid-template-columns: 1fr; gap: 3rem; }
  .process-grid::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .gallery-grid, .gallery-page-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-meta { gap: 1.5rem; }
  .lightbox-prev, .lightbox-next { display: none; }
}

/* ========== A11Y ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
}
::selection { background: var(--sage); color: var(--bg); }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 4px; }
