/* ============================================================
   Atelier Azimut — site-wide styles
   ============================================================ */

:root {
  --bg:        #121212;
  --bg-2:      #1a1a1a;
  --bg-3:      #1f1f1f;
  --ink:       #ece8e0;
  --ink-2:     #c6c0b5;
  --ink-3:     #8a857b;
  --line:      rgba(236, 232, 224, 0.10);
  --line-2:    rgba(236, 232, 224, 0.18);
  --accent:    #c9a96a;
  --accent-rgb: 201, 169, 106;
  --serif:     'Fraunces', 'Cormorant Garamond', Georgia, serif; /* fallback only; we use Montserrat */
  --sans:      'Montserrat', ui-sans-serif, system-ui, sans-serif;
  --mono:      'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --max:       1440px;
  --pad:       clamp(24px, 5vw, 72px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-weight: 300; -webkit-font-smoothing: antialiased; text-rendering: geometricPrecision; }

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

::selection { background: var(--accent); color: #111; }

/* ---------- Header ---------- */
.az-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px var(--pad);
  background: linear-gradient(to bottom, rgba(18,18,18,.85), rgba(18,18,18,0));
  backdrop-filter: blur(0px);
  transition: background .35s ease, backdrop-filter .35s ease, padding .35s ease;
}
.az-header.is-scrolled {
  background: rgba(18,18,18,.92);
  backdrop-filter: blur(10px);
  padding: 14px var(--pad);
  border-bottom: 1px solid var(--line);
}

.az-nav-left { display: flex; gap: 28px; align-items: center; }
.az-burger { display: none; }
.az-nav-right { display: flex; gap: 14px; align-items: center; justify-content: flex-end; }
.az-nav-center { display: flex; justify-content: center; }

.az-nav-link {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-2);
  position: relative;
  padding: 4px 2px;
  transition: color .25s ease;
}
.az-nav-link:hover { color: var(--ink); }
.az-nav-link::after {
  content: ""; position: absolute; left: 2px; right: 2px; bottom: -4px;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.az-nav-link.is-current::after,
.az-nav-link:hover::after { transform: scaleX(1); }
.az-nav-link.is-current { color: var(--ink); }

.az-logo { color: var(--ink); display: inline-flex; }

.az-lang {
  font-size: 11px; letter-spacing: 0.14em; font-weight: 500; color: var(--ink-3); padding: 4px 2px;
  transition: color .2s;
}
.az-lang.on { color: var(--ink); }
.az-lang:hover { color: var(--ink); }
.az-lang-sep { color: var(--ink-3); font-size: 11px; }
.az-social {
  font-size: 12px; letter-spacing: 0.1em; color: var(--ink-2); padding: 4px 6px;
  transition: color .2s;
}
.az-social:hover { color: var(--accent); }
.az-social-sep {
  width: 1px; height: 14px; background: var(--line-2); margin: 0 6px;
}

/* ---------- Main layout ---------- */
.az-page { padding-top: 96px; }
.az-container { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

.az-mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.az-kicker {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: 10px;
}
.az-kicker::before { content: ""; width: 24px; height: 1px; background: var(--accent); display: inline-block; }

/* ---------- Hero variants (home) ---------- */
.az-hero { position: relative; min-height: calc(100vh - 96px); display: flex; flex-direction: column; justify-content: center; }

/* Editorial (default) */
.hero-editorial .hero-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: end;
  padding: 60px 0 40px;
}
.hero-editorial .hero-title {
  font-family: var(--sans);
  font-weight: 200;
  font-size: clamp(48px, 8vw, 128px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 24px 0 0;
}
.hero-editorial .hero-title .t-accent {
  font-style: italic; font-weight: 300; color: var(--accent);
}
.hero-editorial .hero-image {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid var(--line);
}
.hero-editorial .hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-editorial .hero-meta {
  display: flex; justify-content: space-between; border-top: 1px solid var(--line-2); padding-top: 24px; margin-top: 40px;
  font-size: 12px; letter-spacing: 0.08em; color: var(--ink-2); text-transform: uppercase;
}
.hero-editorial .hero-intro { max-width: 52ch; color: var(--ink-2); line-height: 1.7; font-size: 15px; margin-top: 32px; }
.hero-editorial .hero-cta { margin-top: 28px; }

/* Full-bleed */
.hero-fullbleed { position: relative; min-height: calc(100vh - 96px); padding: 0; overflow: hidden; }
.hero-fullbleed::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,.72)); pointer-events: none; }
.hero-fullbleed .fb-img { position: absolute; inset: 0; }
.hero-fullbleed .fb-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); }
.hero-fullbleed .fb-inner { position: relative; z-index: 2; padding: 120px var(--pad) 80px; min-height: calc(100vh - 96px); display: flex; flex-direction: column; justify-content: flex-end; }
.hero-fullbleed .fb-title {
  font-size: clamp(56px, 10vw, 160px); font-weight: 200; letter-spacing: -0.035em; line-height: .94; max-width: 12ch;
}
.hero-fullbleed .fb-title .t-accent { font-style: italic; color: var(--accent); font-weight: 300; }
.hero-fullbleed .fb-intro { max-width: 48ch; color: var(--ink-2); line-height: 1.7; margin: 24px 0 36px; font-size: 15px; }
.hero-fullbleed .fb-coords { position: absolute; left: var(--pad); top: 120px; z-index: 3; }
.hero-fullbleed .fb-scroll { position: absolute; right: var(--pad); bottom: 48px; z-index: 3; transform: rotate(-90deg); transform-origin: right bottom; color: var(--ink-3); }

/* Split */
.hero-split { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 96px); }
.hero-split .split-left { padding: 120px var(--pad) 60px; display: flex; flex-direction: column; justify-content: center; }
.hero-split .split-right { position: relative; overflow: hidden; border-left: 1px solid var(--line); }
.hero-split .split-right img { width: 100%; height: 100%; object-fit: cover; }
.hero-split .split-title { font-size: clamp(44px, 6.5vw, 92px); font-weight: 200; letter-spacing: -0.03em; line-height: .98; margin-top: 20px; }
.hero-split .split-title .t-accent { font-style: italic; color: var(--accent); font-weight: 300; }
.hero-split .split-intro { max-width: 44ch; color: var(--ink-2); line-height: 1.7; margin: 28px 0 32px; font-size: 15px; }
.hero-split .split-caption { position: absolute; bottom: 24px; left: 24px; right: 24px; display: flex; justify-content: space-between; color: var(--ink); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; z-index: 2; text-shadow: 0 1px 2px rgba(0,0,0,.6); }

/* Grid hero */
.hero-grid-v { padding: 80px 0 60px; }
.hero-grid-v .g-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: end; margin-bottom: 48px; }
.hero-grid-v .g-title { font-size: clamp(44px, 6.5vw, 108px); font-weight: 200; letter-spacing: -0.03em; line-height: .98; margin-top: 16px; }
.hero-grid-v .g-title .t-accent { font-style: italic; color: var(--accent); font-weight: 300; }
.hero-grid-v .g-intro { color: var(--ink-2); line-height: 1.7; font-size: 14px; }
.hero-grid-v .g-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.hero-grid-v .g-cell { aspect-ratio: 3 / 4; overflow: hidden; position: relative; }
.hero-grid-v .g-cell img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.hero-grid-v .g-cell:hover img { transform: scale(1.05); }
.hero-grid-v .g-cell:nth-child(2) { grid-row: span 1; transform: translateY(40px); }
.hero-grid-v .g-cell:nth-child(4) { transform: translateY(40px); }
.hero-grid-v .g-cell-label { position: absolute; bottom: 10px; left: 10px; color: #fff; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- Buttons ---------- */
.az-btn {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 500;
  padding: 14px 24px; border: 1px solid var(--line-2);
  transition: background .3s ease, border-color .3s ease, color .3s ease, padding .3s ease;
  color: var(--ink);
}
.az-btn .arrow { width: 22px; height: 1px; background: currentColor; position: relative; transition: width .3s ease; }
.az-btn .arrow::after {
  content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-right: 1px solid currentColor; border-top: 1px solid currentColor; transform: rotate(45deg);
}
.az-btn:hover { background: var(--accent); color: #111; border-color: var(--accent); padding-right: 32px; }
.az-btn:hover .arrow { background: #111; width: 30px; }

.az-btn-ghost {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 500;
  color: var(--ink-2); border-bottom: 1px solid var(--line-2); padding: 10px 2px;
  transition: color .3s, border-color .3s;
}
.az-btn-ghost:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Sections ---------- */
.az-section { padding: 120px 0; border-top: 1px solid var(--line); }
.az-section-head {
  display: grid; grid-template-columns: 1fr auto; align-items: end; margin-bottom: 64px; gap: 40px;
}
.az-section-title { font-size: clamp(32px, 4.5vw, 64px); font-weight: 200; letter-spacing: -0.02em; line-height: 1.04; margin: 16px 0 0; }
.az-section-title .t-accent { font-style: italic; color: var(--accent); font-weight: 300; }

/* ---------- Featured (home) ---------- */
.az-featured { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.az-featured-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.az-featured-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s cubic-bezier(.2,.7,.2,1); }
.az-featured-media:hover img { transform: scale(1.04); }
.az-featured-meta { display: flex; gap: 32px; flex-wrap: wrap; color: var(--ink-3); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 20px; }
.az-featured-meta b { color: var(--ink-2); font-weight: 500; display: block; margin-top: 3px; font-size: 13px; text-transform: none; letter-spacing: 0; }
.az-featured h3 { font-size: clamp(32px, 3.5vw, 54px); font-weight: 200; letter-spacing: -0.02em; line-height: 1.04; margin: 0 0 18px; }
.az-featured p { color: var(--ink-2); line-height: 1.8; font-size: 15px; max-width: 50ch; margin: 0 0 28px; }

/* ---------- Project grid ---------- */
.az-proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 20px; }
.az-proj-card { display: block; position: relative; }
.az-proj-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-2); }
.az-proj-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1), filter .6s ease;
  filter: saturate(.9);
}
.az-proj-card:hover .az-proj-media img { transform: scale(1.06); filter: saturate(1.02); }
.az-proj-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 45%);
  opacity: 0; transition: opacity .4s ease;
}
.az-proj-card:hover .az-proj-media::after { opacity: 1; }

.az-proj-caption {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 2px 2px;
  border-top: 1px solid transparent;
}
.az-proj-card:hover .az-proj-caption { border-color: var(--accent); }
.az-proj-title { font-size: 16px; font-weight: 400; letter-spacing: -0.005em; color: var(--ink); }
.az-proj-type { color: var(--ink-3); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.az-proj-year { color: var(--ink-3); font-size: 11px; letter-spacing: .1em; font-family: var(--mono); }

.az-proj-index { padding-left: 4px; color: var(--accent); font-family: var(--mono); font-size: 11px; margin-right: 10px; letter-spacing: .08em; }

/* ---------- Services ---------- */
.az-svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.az-svc-item { border-top: 1px solid var(--line-2); padding-top: 28px; }
.az-svc-num { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--accent); }
.az-svc-h { font-size: 24px; font-weight: 300; margin: 14px 0 12px; letter-spacing: -0.01em; }
.az-svc-p { color: var(--ink-2); line-height: 1.75; font-size: 14px; max-width: 40ch; }

/* ---------- Collaborators ---------- */
.az-collab { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; border-top: 1px solid var(--line); }
.az-collab-cell {
  aspect-ratio: 2 / 1; display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
  color: var(--ink-3); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: color .3s ease, background .3s ease, opacity .3s ease;
  opacity: .72; padding: 28px;
}
.az-collab-cell:hover { color: var(--accent); background: rgba(255,255,255,.02); opacity: 1; }
.az-collab-logo { max-width: min(65%, 170px); max-height: 56px; width: auto; height: auto; object-fit: contain; filter: brightness(1.1); transition: transform .4s ease; }
.az-collab-cell:hover .az-collab-logo { transform: scale(1.05); }

/* ---------- Projects page ---------- */
.projects-head { padding: 60px 0 40px; }
.projects-filters { display: flex; gap: 4px; align-items: center; margin: 48px 0 40px; flex-wrap: wrap; }
.projects-filter {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; padding: 10px 18px;
  border: 1px solid var(--line-2); color: var(--ink-2); transition: .25s;
}
.projects-filter.on { background: var(--accent); color: #111; border-color: var(--accent); }
.projects-filter:hover:not(.on) { color: var(--ink); border-color: var(--ink-3); }
.projects-count { margin-left: auto; }

/* ---------- Project detail ---------- */
.proj-hero { padding-top: 30px; padding-bottom: 40px; }
.proj-hero-meta { display: grid; grid-template-columns: 2fr 3fr; gap: 80px; align-items: end; padding: 40px 0 60px; border-bottom: 1px solid var(--line); }
.proj-hero-title { font-size: clamp(40px, 6vw, 88px); font-weight: 200; letter-spacing: -0.03em; line-height: 1; margin: 12px 0 0; }
.proj-hero-title .t-accent { font-style: italic; color: var(--accent); font-weight: 300; }
.proj-blurb { color: var(--ink-2); line-height: 1.8; font-size: 16px; max-width: 52ch; }

.proj-meta-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 30px; padding: 28px 0 40px; border-bottom: 1px solid var(--line); }
.proj-meta-cell .k { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.proj-meta-cell .v { font-size: 15px; color: var(--ink); }

/* Hero image at top of project detail */
.proj-hero-image { width: 100%; aspect-ratio: 16 / 8; overflow: hidden; background: var(--bg-2); margin-bottom: 48px; position: relative; }
.proj-hero-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 2s cubic-bezier(.2,.7,.2,1); }
.proj-hero-image:hover img { transform: scale(1.03); }
.proj-hero-image .phi-caption { position: absolute; left: 24px; bottom: 20px; color: #fff; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.proj-hero-image .phi-index { position: absolute; right: 24px; bottom: 20px; color: #fff; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-shadow: 0 1px 3px rgba(0,0,0,.6); }

.proj-gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; padding: 60px 0; }
.proj-gallery .cell { overflow: hidden; background: var(--bg-2); width: 100%; position: relative; }
.proj-gallery .cell img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.4s cubic-bezier(.2,.7,.2,1); }
.proj-gallery .cell:hover img { transform: scale(1.04); }
.proj-gallery .g1 { grid-column: span 12; height: clamp(420px, 60vh, 820px); }
.proj-gallery .g2 { grid-column: span 7; height: clamp(380px, 55vh, 720px); }
.proj-gallery .g3 { grid-column: span 5; height: clamp(380px, 55vh, 720px); }
.proj-gallery .g4 { grid-column: span 12; height: clamp(420px, 60vh, 820px); }
.proj-gallery .g5 { grid-column: span 6; height: clamp(360px, 50vh, 640px); }
.proj-gallery .g6 { grid-column: span 6; height: clamp(360px, 50vh, 640px); }
.proj-gallery .cell-caption {
  position: absolute; bottom: 14px; left: 16px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: #fff; opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease;
  text-shadow: 0 1px 3px rgba(0,0,0,.6);
}
.proj-gallery .cell:hover .cell-caption { opacity: 1; transform: translateY(0); }

.proj-prose { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; padding: 60px 0; border-top: 1px solid var(--line); }
.proj-prose-h { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); font-family: var(--mono); }
.proj-prose-body p { color: var(--ink-2); line-height: 1.85; font-size: 16px; margin: 0 0 20px; max-width: 62ch; }
.proj-prose-body p:first-child::first-letter {
  font-size: 56px; float: left; line-height: .9; margin: 6px 10px 0 0;
  color: var(--accent); font-weight: 300;
}

.mat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 40px 0 80px; }
.mat-cell { border: 1px solid var(--line); padding: 22px 18px; }
.mat-cell .n { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--accent); }
.mat-cell .m { font-size: 18px; font-weight: 300; margin: 10px 0 8px; }
.mat-cell .d { color: var(--ink-3); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }

.proj-next { border-top: 1px solid var(--line); padding: 60px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.proj-next-img { aspect-ratio: 16 / 9; overflow: hidden; }
.proj-next-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.proj-next a:hover .proj-next-img img { transform: scale(1.04); }
.proj-next .k { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.proj-next h3 { font-size: clamp(32px, 4vw, 56px); font-weight: 200; letter-spacing: -0.02em; margin: 0; }

/* ---------- About page ---------- */
.about-hero { padding: 60px 0 40px; }
.about-intro { display: grid; grid-template-columns: 1fr 2fr; gap: 80px; padding: 40px 0 80px; border-bottom: 1px solid var(--line); }
.about-intro h1 { font-size: clamp(44px, 6vw, 96px); font-weight: 200; letter-spacing: -0.03em; line-height: .98; margin: 16px 0 0; }
.about-intro h1 .t-accent { font-style: italic; color: var(--accent); font-weight: 300; }
.about-intro p { color: var(--ink-2); line-height: 1.85; font-size: 16px; margin: 0 0 20px; max-width: 55ch; }

.about-method { padding: 80px 0; display: grid; grid-template-columns: 1fr 2fr; gap: 80px; border-bottom: 1px solid var(--line); }
.method-steps { display: flex; flex-direction: column; gap: 2px; }
.method-step { border-top: 1px solid var(--line-2); padding: 28px 0 28px; display: grid; grid-template-columns: 1fr 2fr; gap: 32px; align-items: start; }
.method-step:last-child { border-bottom: 1px solid var(--line-2); }
.method-step h4 { font-size: 22px; font-weight: 300; margin: 0; letter-spacing: -0.01em; }
.method-step p { color: var(--ink-2); line-height: 1.8; font-size: 15px; margin: 0; }

.team-section { padding: 80px 0; }
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; margin-top: 48px; }
.team-grid-past { grid-template-columns: repeat(2, 1fr); gap: 40px; max-width: 800px; margin-top: 48px; }
.team-card .tc-photo { aspect-ratio: 3 / 4; overflow: hidden; background: var(--bg-2); }
.team-card .tc-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%) contrast(1.02); transition: filter .6s ease, transform 1.2s ease; }
.team-card:hover .tc-photo img { filter: grayscale(0%) contrast(1); transform: scale(1.03); }
.team-card .tc-meta { padding-top: 20px; display: flex; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 20px; }
.team-card .tc-name { font-size: 22px; font-weight: 300; letter-spacing: -0.01em; margin: 0; }
.team-card .tc-role { color: var(--ink-3); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; text-align: right; line-height: 1.5; }
.team-card .tc-bio { color: var(--ink-2); line-height: 1.75; font-size: 14px; margin: 16px 0 0; max-width: 38ch; }

/* ---------- Contact ---------- */
.contact-hero { padding: 60px 0 40px; }
.contact-h1 { font-size: clamp(44px, 6vw, 96px); font-weight: 200; letter-spacing: -0.03em; line-height: .98; margin: 16px 0 24px; }
.contact-h1 .t-accent { font-style: italic; color: var(--accent); font-weight: 300; }
.contact-intro { color: var(--ink-2); line-height: 1.85; font-size: 16px; max-width: 52ch; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 100px; padding: 60px 0 80px; border-top: 1px solid var(--line); }

.contact-left { display: flex; flex-direction: column; gap: 40px; }
.contact-info { border-top: 1px solid var(--line-2); padding-top: 24px; }
.contact-info .k { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.contact-info .v { color: var(--ink); font-size: 16px; line-height: 1.7; }
.contact-info .s { color: var(--ink-2); font-size: 14px; line-height: 1.7; margin-top: 8px; }

.contact-aside-photo { position: relative; aspect-ratio: 3 / 4; overflow: hidden; margin-top: 12px; }
.contact-aside-photo img { width: 100%; height: 100%; object-fit: cover; }
.contact-aside-photo::after { content: ""; position: absolute; inset: 0; background: rgba(18,18,18,.28); }

.az-form { display: flex; flex-direction: column; gap: 30px; }
.az-field { display: flex; flex-direction: column; gap: 10px; }
.az-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.az-label { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); display: flex; justify-content: space-between; }
.az-label .req { color: var(--ink-3); font-style: italic; letter-spacing: .06em; text-transform: none; font-family: var(--mono); font-size: 10px; }
.az-input, .az-select, .az-textarea {
  font: inherit; font-size: 15px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  padding: 12px 0;
  transition: border-color .3s ease, color .3s ease;
  outline: none;
  width: 100%;
  font-weight: 300;
}
.az-textarea { min-height: 120px; resize: vertical; border: 1px solid var(--line-2); padding: 14px; }
.az-input:focus, .az-select:focus, .az-textarea:focus { border-color: var(--accent); }
/* dropdown-ul nativ al selectului se randează pe tema închisă (altfel: text deschis pe fundal alb) */
.az-select { color-scheme: dark; }
.az-select option { background-color: #181818; color: var(--ink); }
.az-input::placeholder, .az-textarea::placeholder { color: var(--ink-3); font-weight: 300; }

.az-field.has-error .az-input,
.az-field.has-error .az-textarea,
.az-field.has-error .az-select { border-color: #d96555; }
.az-field-err { color: #d96555; font-size: 11px; font-family: var(--mono); letter-spacing: .06em; }

.az-radio-row { display: flex; gap: 8px; flex-wrap: wrap; }
.az-radio {
  padding: 10px 18px; border: 1px solid var(--line-2); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-2); transition: .2s; cursor: pointer;
}
.az-radio.on { background: var(--accent); color: #111; border-color: var(--accent); }
.az-radio:hover:not(.on) { color: var(--ink); border-color: var(--ink-3); }

/* ---------- Calculator ---------- */
.calc-hero { padding: 60px 0 40px; }
.calc-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; padding: 40px 0 100px; border-top: 1px solid var(--line); align-items: start; }
.calc-form { display: flex; flex-direction: column; gap: 48px; }
.calc-step { }
.calc-step-h { margin-bottom: 4px; }
.calc-rate { color: var(--ink-3); font-family: var(--mono); font-size: 10px; margin-left: 6px; letter-spacing: .06em; text-transform: none; }

.calc-area-row { display: flex; align-items: center; gap: 24px; margin-top: 20px; }
.calc-slider { flex: 1; }
.calc-area-val { display: flex; align-items: baseline; gap: 6px; color: var(--accent); font-family: var(--mono); min-width: 120px; justify-content: flex-end; }
.calc-area-input {
  background: transparent; border: 0; border-bottom: 1px solid var(--line-2);
  color: var(--accent); font: inherit; font-family: var(--mono); font-size: 28px; font-weight: 400;
  width: 100px; text-align: right; outline: none; padding: 4px 0;
}
.calc-area-input:focus { border-color: var(--accent); }
.calc-area-val > span { color: var(--ink-3); font-size: 14px; letter-spacing: .06em; }

.calc-finish-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.calc-finish {
  text-align: left; padding: 22px 20px; border: 1px solid var(--line-2);
  display: flex; flex-direction: column; gap: 8px; transition: .25s;
  background: transparent; cursor: pointer; color: var(--ink);
}
.calc-finish:hover { border-color: var(--ink-3); }
.calc-finish.on { border-color: var(--accent); background: rgba(var(--accent-rgb), .06); }
.calc-finish .cf-h { font-size: 18px; font-weight: 300; letter-spacing: -0.01em; }
.calc-finish .cf-mult { font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: .08em; }
.calc-finish .cf-desc { color: var(--ink-3); font-size: 12px; line-height: 1.5; margin-top: 4px; }

.calc-addons { display: flex; flex-direction: column; gap: 4px; margin-top: 20px; }
.calc-addon {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px;
  border: 1px solid var(--line-2); cursor: pointer; transition: .2s;
}
.calc-addon:hover { border-color: var(--ink-3); }
.calc-addon.on { border-color: var(--accent); background: rgba(var(--accent-rgb), .05); }
.calc-addon input { accent-color: var(--accent); width: 16px; height: 16px; }
.calc-addon .ca-name { flex: 1; font-size: 14px; }
.calc-addon .ca-price { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: .06em; }

.calc-summary { position: sticky; top: 120px; }
.calc-summary-inner { border: 1px solid var(--line-2); padding: 36px 32px; background: #141414; }
.calc-total { display: flex; align-items: baseline; gap: 12px; margin: 18px 0 8px; flex-wrap: wrap; }
.calc-total-big { font-size: clamp(28px, 3.4vw, 44px); font-weight: 200; letter-spacing: -0.02em; color: var(--accent); }
.calc-total-dash { color: var(--ink-3); font-size: 20px; }
.calc-total-sub { margin-bottom: 28px; }

.calc-breakdown { border-top: 1px solid var(--line); padding-top: 22px; margin-bottom: 24px; }
.calc-bd-h { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); font-family: var(--mono); margin-bottom: 14px; }
.calc-bd-row { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; color: var(--ink-2); font-size: 13px; border-bottom: 1px dashed var(--line); }
.calc-bd-row:last-child { border-bottom: 0; }
.calc-bd-total { color: var(--ink); font-weight: 500; padding-top: 14px; margin-top: 6px; border-top: 1px solid var(--line-2); border-bottom: 0; font-size: 15px; }

.calc-duration { display: flex; justify-content: space-between; align-items: baseline; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.calc-duration-val { font-size: 26px; font-weight: 200; color: var(--ink); letter-spacing: -0.01em; }
.calc-duration-val span { font-size: 13px; color: var(--ink-3); margin-left: 6px; letter-spacing: .04em; }

.calc-cta { width: 100%; justify-content: center; }
.calc-note { color: var(--ink-3); font-size: 11px; line-height: 1.6; margin-top: 20px; letter-spacing: .02em; }

@media (max-width: 900px) {
  .calc-grid { grid-template-columns: 1fr; gap: 40px; }
  .calc-summary { position: static; }
  .calc-finish-grid { grid-template-columns: 1fr; }
}

.az-slider-row { display: flex; align-items: center; gap: 18px; padding: 12px 0 6px; }
.az-slider { flex: 1; -webkit-appearance: none; appearance: none; height: 2px; background: var(--line-2); outline: none; }
.az-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); cursor: pointer; border: 2px solid var(--bg); }
.az-slider::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); cursor: pointer; border: 2px solid var(--bg); }
.az-slider-val { font-family: var(--mono); font-size: 13px; color: var(--accent); min-width: 100px; text-align: right; }

.az-thanks {
  border: 1px solid var(--accent); padding: 40px 36px; display: flex; flex-direction: column; gap: 12px;
}
.az-thanks h3 { font-size: 32px; font-weight: 200; letter-spacing: -0.02em; margin: 0; color: var(--accent); }
.az-thanks p { color: var(--ink-2); line-height: 1.7; margin: 0; }

/* ---------- Footer ---------- */
.az-footer { border-top: 1px solid var(--line); margin-top: 80px; padding: 80px var(--pad) 40px; background: #0e0e0e; }
.az-footer-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 60px; }
.az-footer-brand { display: flex; gap: 18px; align-items: flex-start; }
.az-footer-wordmark { font-size: 14px; letter-spacing: .32em; font-weight: 500; }
.az-footer-tag { color: var(--ink-3); font-size: 12px; margin-top: 6px; letter-spacing: .05em; max-width: 32ch; line-height: 1.6; }
.az-footer-h { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; color: var(--accent); margin-bottom: 18px; text-transform: uppercase; }
.az-footer-p { color: var(--ink-2); font-size: 13px; line-height: 1.7; margin-bottom: 12px; }
.az-footer-link { display: block; color: var(--ink-2); font-size: 13px; padding: 4px 0; transition: color .2s, padding .2s; }
.az-footer-link:hover { color: var(--accent); padding-left: 8px; }
.az-footer-bottom { max-width: var(--max); margin: 0 auto; padding-top: 30px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--ink-3); font-size: 12px; }

/* ---------- Tweaks panel ---------- */
.az-tweaks {
  position: fixed; right: 20px; bottom: 20px; z-index: 100;
  background: rgba(26,26,26,.95); backdrop-filter: blur(14px);
  border: 1px solid var(--line-2); padding: 20px 22px; min-width: 280px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.az-tweaks-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.az-tweaks-title { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); font-family: var(--mono); }
.az-tweaks-close { color: var(--ink-3); font-size: 20px; line-height: 1; }
.az-tweaks-close:hover { color: var(--ink); }
.az-tweaks-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.az-tweaks-col { flex-direction: column; align-items: flex-start; gap: 10px; }
.az-tweaks-label { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.az-tweaks-swatches { display: flex; gap: 8px; }
.az-swatch { width: 22px; height: 22px; border-radius: 50%; border: 2px solid transparent; transition: .2s; }
.az-swatch.on { border-color: var(--ink); transform: scale(1.15); }
.az-tweaks-accent-name { color: var(--ink-3); font-size: 11px; font-family: var(--mono); letter-spacing: .1em; margin-bottom: 8px; }
.az-tweaks-variants { display: flex; gap: 6px; flex-wrap: wrap; }
.az-variant {
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase; padding: 6px 10px;
  border: 1px solid var(--line-2); color: var(--ink-2); transition: .2s;
}
.az-variant.on { background: var(--accent); color: #111; border-color: var(--accent); }
.az-variant:hover:not(.on) { color: var(--ink); border-color: var(--ink-3); }
.az-tweaks-foot { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 14px; color: var(--ink-3); }

.az-tweaks { max-height: 85vh; overflow-y: auto; }
.az-tweaks-calc { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.az-tweaks-calc-h { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--accent); text-transform: uppercase; margin-bottom: 12px; }
.az-tweaks-calc-grp { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--ink-3); text-transform: uppercase; margin: 16px 0 8px; padding-top: 10px; border-top: 1px dashed var(--line); }
.az-tweaks-calc-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 4px 0; }
.az-tweaks-calc-row label { font-size: 11px; color: var(--ink-2); }
.az-tweaks-calc-input { display: flex; align-items: center; gap: 4px; }
.az-tweaks-calc-input input {
  width: 70px; background: transparent; border: 0; border-bottom: 1px solid var(--line-2);
  color: var(--accent); font-family: var(--mono); font-size: 12px; text-align: right; padding: 3px 4px;
  outline: none;
}
.az-tweaks-calc-input input:focus { border-color: var(--accent); }
.az-tweaks-calc-input span { font-family: var(--mono); font-size: 10px; color: var(--ink-3); width: 12px; }
.az-tweaks-calc-reset {
  width: 100%; margin-top: 16px; padding: 8px; border: 1px solid var(--line-2);
  color: var(--ink-3); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; transition: .2s;
}
.az-tweaks-calc-reset:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Placeholders ---------- */
.ph-img {
  width: 100%; height: 100%;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.02) 0 8px, transparent 8px 16px),
    linear-gradient(180deg, #1c1c1c, #141414);
  display: flex; align-items: center; justify-content: center;
}
.ph-img span { color: var(--ink-3); font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .az-header { grid-template-columns: auto 1fr auto; padding: 14px 16px; }
  .az-nav-left { display: none; }
  .az-nav-right { gap: 8px; }
  .az-header.menu-open { background: rgba(14,14,14,1); }

  /* hamburger */
  .az-burger {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 40px; height: 40px; padding: 9px;
    background: none; border: 0; cursor: pointer;
  }
  .az-burger span {
    display: block; width: 22px; height: 1.5px; background: var(--ink);
    transition: transform .3s ease, opacity .25s ease;
  }
  .az-burger.on span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .az-burger.on span:nth-child(2) { opacity: 0; }
  .az-burger.on span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  /* meniul mobil (sub header) */
  .az-mobile-menu {
    /* headerul are backdrop-filter => devine containing block pentru fixed;
       de aceea dimensiunile viewportului sunt setate explicit */
    position: fixed; left: 0; top: 0;
    width: 100vw; height: 100vh; height: 100dvh;
    padding: 92px 24px 32px;
    background: #0e0e0e;
    z-index: -1; /* sub elementele headerului (logo/burger rămân clicabile) */
    display: flex; flex-direction: column;
    animation: az-menu-in .25s ease both;
  }
  @keyframes az-menu-in { from { opacity: 0 } to { opacity: 1 } }
  .az-mobile-link {
    display: flex; align-items: baseline; gap: 14px;
    font-size: 28px; font-weight: 300; letter-spacing: .01em;
    color: var(--ink-2); padding: 18px 0;
    border-bottom: 1px solid var(--line);
    opacity: 0; transform: translateY(10px);
    animation: az-link-in .45s cubic-bezier(.2,.7,.2,1) both;
  }
  @keyframes az-link-in { to { opacity: 1; transform: translateY(0) } }
  .az-mobile-link.is-current { color: var(--accent); }
  .az-mobile-num { font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: .1em; }
  .az-mobile-foot { margin-top: auto; display: flex; gap: 24px; }
  .az-mobile-foot .az-social { font-size: 13px; }
  .az-proj-grid { grid-template-columns: repeat(2, 1fr); }
  .az-svc-grid { grid-template-columns: 1fr; }
  .az-featured, .hero-split, .hero-editorial .hero-grid, .proj-hero-meta,
  .proj-prose, .about-intro, .about-method, .contact-grid,
  .az-section-head, .hero-grid-v .g-head { grid-template-columns: 1fr; gap: 28px; }
  .hero-grid-v .g-grid { grid-template-columns: repeat(2, 1fr); }
  .proj-gallery .g2, .proj-gallery .g3, .proj-gallery .g5, .proj-gallery .g6 { grid-column: span 12; height: clamp(320px, 45vh, 540px); }
  .proj-gallery .g1, .proj-gallery .g4 { height: clamp(300px, 40vh, 480px); }
  .proj-hero-image { aspect-ratio: 4 / 3; margin-bottom: 32px; }
  .proj-meta-grid { grid-template-columns: repeat(2, 1fr); }
  .mat-grid { grid-template-columns: 1fr 1fr; }
  .team-grid, .team-grid-past { grid-template-columns: 1fr; }
  /* Colaboratori: bandă cu scroll orizontal (swipe), fitted pe lățimea ecranului */
  .az-collab {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    max-width: 100%;
  }
  .az-collab::-webkit-scrollbar { display: none; }
  .az-collab-cell {
    flex: 0 0 42%;
    min-width: 0;
    scroll-snap-align: start;
    padding: 20px 16px;
    border-bottom: none;
  }
  .az-collab-logo { max-width: 100%; max-height: 52px; }
  .az-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  /* brandul și datele de contact ocupă câte un rând întreg — emailul încape pe o singură linie */
  .az-footer-grid > div:nth-child(1),
  .az-footer-grid > div:nth-child(2) { grid-column: 1 / -1; }
  .az-footer-bottom { flex-direction: column; gap: 8px; }
}
