/* SALAR SHAHNA — Lumière */

:root {
  --bg: #faf9f6;
  --ink: #16150f;
  --ink-2: rgba(22, 21, 15, 0.62);
  --ink-3: rgba(22, 21, 15, 0.38);
  --hair: rgba(22, 21, 15, 0.1);
  --accent: #e07a3f;
  --sans: "Inter Tight", -apple-system, "PingFang SC", "Noto Sans SC", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --pad: clamp(20px, 6vw, 96px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--ink); color: var(--bg); }

#aurora {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  z-index: 0; pointer-events: none;
}
main, header, footer { position: relative; z-index: 2; }

/* — top bar — */
#topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--pad);
}
.wordmark { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.langs { display: flex; gap: 2px; background: rgba(22,21,15,0.05); border-radius: 999px; padding: 3px; backdrop-filter: blur(12px); }
.langs button {
  background: none; border: none; border-radius: 999px;
  color: var(--ink-2); font: 500 12px/1 var(--sans);
  padding: 8px 13px; cursor: pointer; transition: all 0.25s;
}
.langs button.on { color: var(--ink); background: var(--bg); box-shadow: 0 1px 4px rgba(0,0,0,0.08); }

/* — hero — */
#hero {
  min-height: 72svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 14vh var(--pad) 6vh;
}
#hero-name {
  font-size: clamp(60px, 15vw, 220px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.94;
}
.hero-tagline {
  margin-top: 4.5vh; max-width: 34ch;
  font-size: clamp(17px, 2vw, 24px);
  font-weight: 500; letter-spacing: -0.015em; line-height: 1.4;
  color: var(--ink-2);
}
.hero-places {
  margin-top: 2vh;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em;
  color: var(--ink-3); text-transform: uppercase;
}

/* — the garden (home mosaic) — */
#garden { padding: 4vh var(--pad) 10vh; }
.garden-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 96px;
  grid-auto-flow: dense;
  gap: clamp(10px, 1.6vw, 22px);
}
.tile {
  position: relative; display: block;
  transform: rotate(var(--rot, 0deg));
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.tile:hover { transform: rotate(0deg) scale(1.02); z-index: 2; }
.tile-in {
  position: relative; width: 100%; height: 100%;
  border-radius: 20px; overflow: hidden;
  background: rgba(22, 21, 15, 0.04);
  animation: bob 9s ease-in-out infinite;
  animation-delay: var(--float-delay, 0s);
}
@keyframes bob { 50% { transform: translateY(-6px); } }
.tile-in img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 8, 0.62), rgba(10, 10, 8, 0) 55%);
}
.tile-meta {
  position: absolute; left: 16px; right: 16px; bottom: 14px;
  display: flex; flex-direction: column; gap: 2px;
  color: #faf9f6;
}
.tile-in.wash .tile-shade { display: none; }
.tile-in.wash .tile-meta { color: var(--ink); }
.tile-years { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; opacity: 0.8; }
.tile-title { font-size: clamp(17px, 1.9vw, 26px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.wash-ink {
  display: flex; align-items: flex-end; padding: 16px;
  background: var(--ink);
}
.wash-ink .tile-title { color: var(--bg); }
/* spans */
.s1 { grid-column: span 1; grid-row: span 2; }
.s2 { grid-column: span 2; grid-row: span 2; }
.s3 { grid-column: span 2; grid-row: span 3; }
.s4 { grid-column: span 3; grid-row: span 3; }
@media (max-width: 860px) {
  .garden-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 84px; }
  .s1 { grid-column: span 1; grid-row: span 2; }
  .s2, .s3 { grid-column: span 1; grid-row: span 2; }
  .s4 { grid-column: span 2; grid-row: span 3; }
}

/* — inner pages — */
.page { padding: 16vh var(--pad) 8vh; min-height: 80svh; }
.back {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em;
  color: var(--ink-2); display: inline-block; margin-bottom: 5vh;
}
.back:hover { color: var(--ink); }
.era-head { margin-bottom: 6vh; }

/* — gallery — */
.gallery { columns: 3 260px; column-gap: 22px; margin: 4vh 0 6vh; }
.shot {
  break-inside: avoid; margin: 0 0 26px;
  transform: rotate(var(--rot, 0deg));
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.shot:hover { transform: rotate(0deg) scale(1.015); }
.shot img {
  width: 100%; display: block; border-radius: 16px;
  box-shadow: 0 10px 32px rgba(22, 21, 15, 0.12);
}
.shot figcaption {
  margin-top: 9px; padding: 0 4px;
  font-family: "Instrument Serif", serif; font-style: italic;
  font-size: 15.5px; color: var(--ink-2);
}
.shot .credit { font-family: var(--mono); font-style: normal; font-size: 9.5px; color: var(--ink-3); margin-left: 6px; }

/* — era prev/next — */
.era-nav {
  display: flex; justify-content: space-between; gap: 16px;
  margin-top: 10vh; padding-top: 4vh; border-top: 1px solid var(--hair);
}
.era-link { display: flex; gap: 10px; align-items: baseline; font-size: clamp(17px, 2vw, 24px); letter-spacing: -0.015em; color: var(--ink-2); transition: color 0.25s; }
.era-link:hover { color: var(--ink); }
.era-link b { font-weight: 600; }

/* — acts — */
.act { padding: 18vh var(--pad) 6vh; }
.act-years {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em;
  color: var(--ink-3); margin-bottom: 18px;
}
.act-title {
  font-size: clamp(44px, 8vw, 112px);
  font-weight: 700; letter-spacing: -0.04em; line-height: 1;
}
.act-essay {
  margin-top: 3.5vh; max-width: 58ch;
  font-size: clamp(16px, 1.6vw, 20px); line-height: 1.6;
  color: var(--ink-2);
}
.act-quote {
  margin-top: 4vh; max-width: 30ch;
  font-size: clamp(22px, 3vw, 34px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.25;
}
.act-quote cite {
  display: block; margin-top: 12px;
  font-family: var(--mono); font-style: normal; font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3);
}
.act-works { margin-top: 7vh; }
.work {
  display: grid; grid-template-columns: 110px 1fr; gap: 20px;
  padding: 26px 0; border-top: 1px solid var(--hair);
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.work.in { opacity: 1; transform: none; }
.work-year { font-family: var(--mono); font-size: 12px; color: var(--ink-3); padding-top: 7px; }
.work-title { font-size: clamp(20px, 2.4vw, 30px); font-weight: 600; letter-spacing: -0.02em; }
.work-role { font-size: 13px; font-weight: 500; color: var(--accent); margin-top: 2px; transition: color 0.6s; }
.work-desc { margin-top: 7px; font-size: 15px; color: var(--ink-2); max-width: 56ch; }

/* — panels — */
.panel { padding: 16vh var(--pad) 8vh; }
.kicker {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 5vh;
}

/* — atlas — */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(20px, 3vw, 48px);
}
.stat b {
  display: block; font-size: clamp(48px, 6vw, 88px);
  font-weight: 700; letter-spacing: -0.04em; line-height: 1;
}
.stat span { display: block; margin-top: 10px; font-size: 14px; color: var(--ink-2); max-width: 24ch; }
.cities {
  margin-top: 9vh; max-width: 72ch;
  font-size: clamp(18px, 2.4vw, 30px); font-weight: 500; letter-spacing: -0.02em;
  line-height: 1.5; color: var(--ink-3);
}
.cities b { color: var(--ink); font-weight: 600; }

/* — press — */
.press-note { max-width: 52ch; font-size: clamp(16px, 1.6vw, 20px); color: var(--ink-2); }
.press-era { margin-top: 7vh; }
.press-era-title {
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  color: var(--ink-3); margin-bottom: 12px;
}
.press-row {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: baseline;
  padding: 14px 0; border-top: 1px solid var(--hair);
  transition: opacity 0.2s;
}
.press-row:hover { opacity: 0.55; }
.press-year { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.press-main b { font-weight: 600; font-size: 15px; }
.press-title { display: block; font-size: 14px; color: var(--ink-2); margin-top: 1px; }
.press-chip {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3); border: 1px solid var(--hair); border-radius: 999px; padding: 4px 9px;
  align-self: center;
}
.profiles { margin-top: 8vh; font-size: 14px; color: var(--ink-3); }
.profiles a { color: var(--ink-2); border-bottom: 1px solid var(--hair); }
.profiles a:hover { color: var(--ink); }

/* — archives — */
.archives {
  margin-top: 6vh;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.arch {
  border: 1px solid var(--hair); border-radius: 16px;
  padding: 20px; min-height: 128px;
  display: flex; flex-direction: column; gap: 4px;
  transition: transform 0.2s, border-color 0.2s;
}
.arch:hover { transform: translateY(-3px); border-color: var(--accent); }
.arch-year { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.arch-label { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; margin-top: auto; }
.arch-note { font-size: 13px; color: var(--ink-2); }

/* — now — */
.roles { list-style: none; }
.roles li {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 20px 0; border-top: 1px solid var(--hair);
  font-size: clamp(17px, 2vw, 24px); letter-spacing: -0.015em;
}
.roles b { font-weight: 600; }
.roles span { color: var(--ink-2); font-size: 0.8em; align-self: center; }
.now-line { margin-top: 5vh; max-width: 44ch; font-size: clamp(16px, 1.6vw, 20px); color: var(--ink-2); }
.now-contact { margin-top: 4.5vh; display: flex; gap: 10px; flex-wrap: wrap; }
.cta {
  display: inline-block; padding: 14px 28px; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font-size: 14px; font-weight: 500;
  transition: transform 0.2s;
}
.cta:hover { transform: translateY(-2px); }
.cta.ghost { background: transparent; color: var(--ink); border: 1px solid var(--hair); }

footer {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 30px var(--pad) 40px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-3);
}

@media (max-width: 720px) {
  .work { grid-template-columns: 1fr; gap: 6px; }
  .work-year { padding-top: 0; }
  .press-row { grid-template-columns: 44px 1fr; }
  .press-chip { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .work { transition: none; }
}
