/* ============================================================
   MUELL — Design System · dark premium editorial
   Font: Science Gothic (display) + Inter (body)
   ============================================================ */

:root {
  --bg: #0A0A0A;
  --bg-elevated: #131313;
  --surface: #181818;
  --border: #2A2A2A;
  --border-soft: #1F1F1F;
  --text: #F5F3EF;
  --text-muted: #9A9A9A;
  --text-dim: #6B6B6B;
  --accent: #C8102E;
  --accent-hover: #A00D26;

  --font-display: 'Science Gothic', 'Archivo', sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-6: 24px; --space-8: 32px; --space-12: 48px; --space-16: 64px;
  --space-24: 96px; --space-32: 128px;

  --radius: 2px;
  --container: 1440px;
  --gutter: clamp(20px, 4vw, 64px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* ---- Layout ---- */
.container { width: min(var(--container), 100% - 2*var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--space-24); }

/* ---- Typography ---- */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -0.01em;
  font-variation-settings: 'wdth' 75;
}
.h1 { font-size: clamp(3rem, 9vw, 8.5rem); }
.h2 { font-size: clamp(2rem, 5vw, 4.5rem); }
.h3 { font-size: clamp(1.25rem, 2.5vw, 2rem); }

.label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-muted);
}
.label--accent { color: var(--accent); }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--text-muted); line-height: 1.65; }
.eyebrow { display: inline-flex; align-items: center; gap: var(--space-3); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-3);
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; font-size: 0.8rem;
  padding: 1.1rem 2.2rem; min-height: 52px;
  border: 1px solid transparent; border-radius: var(--radius);
  transition: background .25s, color .25s, border-color .25s, transform .2s;
  cursor: pointer;
}
.btn--primary { background: var(--text); color: var(--bg); }
.btn--primary:hover { background: #fff; transform: translateY(-1px); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn--ghost { border-color: var(--border); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--text); }
.btn--sm { padding: 0.75rem 1.4rem; min-height: 44px; font-size: 0.72rem; }
.btn--block { width: 100%; }

/* ---- Header ---- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(10,10,10,0.72); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
  transition: background .3s;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: var(--space-8); }
.logo { display: flex; align-items: center; }
.logo img { height: 34px; width: auto; }
.primary-nav { display: flex; gap: clamp(18px, 2.5vw, 36px); align-items: center; }
.primary-nav a {
  font-family: var(--font-display); font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--text-muted);
  transition: color .2s;
}
.primary-nav a:hover, .primary-nav a.is-active { color: var(--text); }
.header-cta { display: flex; align-items: center; gap: var(--space-4); }
.lang-switch {
  font-family: var(--font-display); font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted);
  padding: 0.5rem 0.7rem; border: 1px solid var(--border); border-radius: var(--radius);
}
.lang-switch:hover { color: var(--text); border-color: var(--text); }

/* ---- Hero ---- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.1) 40%, rgba(10,10,10,0.9) 100%);
}
.hero__content { position: relative; z-index: 2; padding-bottom: var(--space-16); width: 100%; }
.hero__content .label { margin-bottom: var(--space-4); }
.hero__title { margin-bottom: var(--space-6); }
.hero__row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-8); flex-wrap: wrap; }
.hero__statement { max-width: 460px; font-size: 1.05rem; color: rgba(245,243,239,0.8); }
.hero__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }

/* ---- Editorial grid (portfolio) ---- */
.editorial-grid {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: var(--space-4) var(--space-6);
}
.editorial-grid .work-card { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.editorial-grid .work-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1), opacity .6s; }
.editorial-grid .work-card:hover img { transform: scale(1.04); }
.work-card__meta {
  position: absolute; inset: auto 0 0 0; padding: var(--space-6);
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.75));
  opacity: 0; transition: opacity .3s; pointer-events: none;
}
.editorial-grid .work-card:hover .work-card__meta { opacity: 1; }
.work-card__meta span { display: block; font-family: var(--font-display); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.14em; }

/* span sizes for editorial variety */
.c-4 { grid-column: span 4; } .c-5 { grid-column: span 5; }
.c-6 { grid-column: span 6; } .c-7 { grid-column: span 7; }
.c-8 { grid-column: span 8; } .c-12 { grid-column: span 12; }
.r-tall { grid-row: span 2; }

/* ---- Section header ---- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-8); margin-bottom: var(--space-12); flex-wrap: wrap; }
.section-head .display { flex: 1; min-width: 260px; }

/* ---- About ---- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-16); align-items: center; }
.about-portrait { position: relative; }
.about-portrait img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); }
.about-portrait::after {
  content: ""; position: absolute; inset: var(--space-4) auto auto var(--space-4);
  width: 100%; height: 100%; border: 1px solid var(--border); border-radius: var(--radius);
  z-index: -1;
}
.specialty-tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-6); }
.tag {
  font-family: var(--font-display); font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em; padding: 0.55rem 1rem;
  border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-muted);
}

/* ---- Process ---- */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-6); counter-reset: step; }
.process-step { border-top: 1px solid var(--border); padding-top: var(--space-6); position: relative; }
.process-step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: var(--accent);
  display: block; margin-bottom: var(--space-4);
}
.process-step h3 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 1rem; letter-spacing: 0.06em; margin-bottom: var(--space-2); }
.process-step p { font-size: 0.85rem; color: var(--text-muted); }

/* ---- Featured project ---- */
.featured { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--space-12); align-items: stretch; }
.featured__media { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.featured__media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.featured__media .main { aspect-ratio: 3/4; }
.featured__media .detail { aspect-ratio: 3/4; }
.featured__info { display: flex; flex-direction: column; justify-content: center; gap: var(--space-4); }
.spec-row { display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) 0; border-bottom: 1px solid var(--border-soft); }
.spec-row .k { font-family: var(--font-display); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-dim); }
.spec-row .v { font-size: 0.9rem; color: var(--text); text-align: right; }

/* ---- CTA band ---- */
.cta-band { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding-block: var(--space-24); text-align: center; }
.cta-band .display { margin-bottom: var(--space-6); }
.cta-band p { color: var(--text-muted); max-width: 560px; margin: 0 auto var(--space-8); }

/* ---- Studio ---- */
.studio { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-12); align-items: center; }
.studio__card { border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-8); display: flex; flex-direction: column; gap: var(--space-4); }
.studio__card img { height: 44px; width: auto; align-self: flex-start; }

/* ---- FAQ preview ---- */
.faq-item { border-top: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
  padding: var(--space-6) 0; width: 100%; text-align: left;
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 0.95rem; letter-spacing: 0.04em;
}
.faq-q .plus { color: var(--accent); font-size: 1.4rem; font-weight: 300; }
.faq-a { display: none; padding-bottom: var(--space-6); color: var(--text-muted); max-width: 680px; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .plus { transform: rotate(45deg); }
.faq-q .plus { transition: transform .2s; }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--border); padding-block: var(--space-16) var(--space-8); }
.footer-top { display: flex; justify-content: space-between; gap: var(--space-8); flex-wrap: wrap; margin-bottom: var(--space-16); }
.footer-brand .logo img { height: 40px; }
.footer-col h4 { font-family: var(--font-display); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--text-dim); margin-bottom: var(--space-4); }
.footer-col a { display: block; font-size: 0.9rem; color: var(--text-muted); padding-block: 0.3rem; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; padding-top: var(--space-6); border-top: 1px solid var(--border-soft); font-size: 0.8rem; color: var(--text-dim); }

/* ---- Reveal animation (restrained) ---- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .primary-nav { display: none; }
  .about-grid, .studio, .featured { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr 1fr; }
  .c-4,.c-5,.c-6,.c-7,.c-8 { grid-column: span 6; }
}
@media (max-width: 640px) {
  .c-4,.c-5,.c-6,.c-7,.c-8 { grid-column: span 12; }
  .process { grid-template-columns: 1fr; }
  .section { padding-block: var(--space-16); }
  .hero__row { flex-direction: column; align-items: flex-start; }
}
