/* ─────────────────────────────────────────
   HEADER
   grid: [left-nav] [brand] [right-nav] [cart]
───────────────────────────────────────── */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: flex-start;
  padding: 100px 100px 0;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    transform    0.45s cubic-bezier(0.16, 1, 0.3, 1),
    background   0.8s  cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.8s  cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── hidden: slides up out of view ── */
.header--hidden {
  transform: translateY(-100%);
}

/* ── scrolled state ── */
.header--scrolled {
  background: #F2F2F2;
  border-bottom-color: #DEDEDE;
}
.header--scrolled .header__nav a       { color: rgba(48,48,48,0.6); }
.header--scrolled .header__nav a:hover { color: #303030; }
.header--scrolled .nav-line::before    { background: #303030; }
.header--scrolled .header__brand-line  { color: rgba(48,48,48,0.7); }
.header--scrolled .header__cart        { color: rgba(48,48,48,0.55); }
.header--scrolled .header__cart:hover  { color: #303030; }

/* ── left nav (column 1) ── */
.header__nav {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
}
.header__nav--left {
  justify-content: flex-start;
}
.header__nav--right {
  justify-content: flex-end;
}

/* ── nav links ── */
.header__nav a {
  position: relative;
  font-family: var(--font-ui);
  font-size: 1.125rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  color: rgba(242,242,242,0.7);
  transition: color 0.4s cubic-bezier(0.16,1,0.3,1);
  padding-top: 7px;
  line-height: 1;
}
.header__nav a:hover { color: rgba(242,242,242,1); }

/* ── animated top line (only on .nav-line) ── */
.nav-line::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(242,242,242,0.9);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s cubic-bezier(0.16,1,0.3,1);
}
.nav-line:hover::before { transform: scaleX(1); }

/* ── active nav item (current page) — mirrors hover visuals, persists until navigation ── */
.nav-line--active::before                       { transform: scaleX(1); }
.nav-line--active                               { color: rgba(242,242,242,1) !important; }
.header--scrolled .nav-line--active             { color: #303030 !important; }

/* ── brand (column 2) ── */
.header__brand {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  transform: translateY(-16px);
}
.header__brand-line {
  font-family: var(--font-ui);
  font-size: 2.25rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: rgba(242,242,242,0.75);
  display: block;
  transition: color 0.4s cubic-bezier(0.16,1,0.3,1);
}
.header__brand:hover .header__brand-line { color: rgba(242,242,242,1); }
.header--scrolled .header__brand:hover .header__brand-line { color: #303030; }
.header__brand-line:last-child {
  padding-left: 1.4em;
}

/* ── cart: own row above the nav line, right edge flush with "media" ── */
.header__cart-wrap {
  position: absolute;
  top: 40px;
  right: 100px;
}
.header__cart {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: rgba(242,242,242,0.55);
  cursor: pointer;
  transition: color 0.4s cubic-bezier(0.16,1,0.3,1);
}
.header__cart:hover { color: rgba(242,242,242,1); }

/* ─────────────────────────────────────────
   PAGE
───────────────────────────────────────── */
.page        { padding-top: 0; }
.page--offset { padding-top: 80px; }

/* ─────────────────────────────────────────
   BUTTONS
───────────────────────────────────────── */
.btn-ghost {
  display: inline-block;
  padding: 0.65rem 2rem;
  border: 1px solid var(--ink);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.10em;
  color: var(--ink);
  transition: background 0.25s ease, color 0.25s ease;
  cursor: pointer;
}
.btn-ghost:hover { background: var(--ink); color: var(--light); }

.btn-primary {
  display: block;
  width: 100%;
  padding: 1rem;
  background: var(--ink);
  border: 1px solid var(--ink);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.10em;
  color: var(--light);
  transition: background 0.25s ease;
  cursor: pointer;
}
.btn-primary:hover { background: var(--muted); border-color: var(--muted); }

/* ─────────────────────────────────────────
   PILL (indicator)
───────────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 1rem;
  border: 1px solid var(--hairline);
  border-radius: 50px;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--inactive);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}
.pill:hover, .pill.active { border-color: var(--ink); color: var(--ink); }
.pill.active { background: var(--ink); color: var(--light); }

/* ─────────────────────────────────────────
   PHOTO ITEM
───────────────────────────────────────── */
.photo-item {
  position: relative;
  overflow: hidden;
  background: var(--surface);
}
.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.photo-item:hover img { transform: scale(1.04); }

/* ─────────────────────────────────────────
   MICRO LABEL
───────────────────────────────────────── */
.micro-label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--inactive);
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.footer {
  padding: var(--space-2xl) var(--section-px);
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer__brand { font-family: var(--font-ui); font-size: 0.95rem; }
.footer__links { display: flex; gap: var(--space-xl); }
.footer__links a {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--inactive);
  transition: color 0.25s ease;
}
.footer__links a:hover { color: var(--ink); }
.footer__copy {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--inactive);
}
