/* ============================================================
   Fullscreen Columns — minimal premium
   ============================================================ */

:root {
  --bg: #0c0c0b;
  --surface: #141413;
  --surface-2: #1a1a18;
  --text: #f2f0ea;
  --text-soft: rgba(242, 240, 234, 0.68);
  --text-muted: rgba(242, 240, 234, 0.42);
  --line: rgba(242, 240, 234, 0.1);
  --accent: #c4b49a;
  --accent-soft: rgba(196, 180, 154, 0.16);
  --header-h: 56px;
  --font: "Inter", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
}

body {
  font-family: var(--font);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  font-weight: 400;
}

img {
  display: block;
  max-width: 100%;
  user-select: none;
  -webkit-user-drag: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 3vw, 2rem);
  pointer-events: none;
}

.site-header__brand {
  pointer-events: auto;
}

.site-header__name {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
}

.site-header__hint {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: opacity 0.4s var(--ease);
}

body.is-expanded .site-header__hint {
  opacity: 0;
}

/* ---------- stage ---------- */
.bl-main {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
}

/*
  Columns are positioned entirely by JS (pixel geometry).
  Default styles only establish stacking context.
*/
.bl-section {
  position: absolute;
  top: 0;
  left: 0;
  width: 25%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  /* Never let transform-origin / scale shrink a “full” panel */
  transform-origin: 50% 50%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.bl-section.is-expanded {
  z-index: 30;
}

.bl-section.is-open {
  z-index: 30;
}

.bl-section.is-dimmed {
  pointer-events: none;
  z-index: 1;
}

/* hairline dividers via box edge */
.bl-section:not(.is-expanded):not(.is-dimmed) {
  box-shadow: 1px 0 0 var(--line);
}

.bl-section:last-of-type {
  box-shadow: none;
}

/* ---------- face ---------- */
.bl-box {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.25rem, 2.4vw, 1.75rem);
  cursor: pointer;
  outline: none;
  overflow: hidden;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
}

.bl-box:focus-visible {
  box-shadow: inset 0 0 0 1px var(--accent);
}

.bl-box__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--surface);
}

.bl-box__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* subtle desaturate for premium minimal look */
  filter: saturate(0.55) contrast(1.02) brightness(0.92);
  transform: scale(1.06);
  will-change: transform;
}

.bl-box__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(12, 12, 11, 0.15) 0%,
    rgba(12, 12, 11, 0.35) 45%,
    rgba(12, 12, 11, 0.88) 100%
  );
}

.bl-box__meta {
  position: relative;
  z-index: 2;
  margin-bottom: auto;
  padding-top: calc(var(--header-h) + 0.35rem);
}

.bl-box__index {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.bl-box__title {
  position: relative;
  z-index: 2;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* ---------- content (true full area of expanded section) ---------- */
.bl-content {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
  background: var(--bg);
}

.bl-section.is-open .bl-content {
  pointer-events: auto;
}

.bl-content__inner {
  width: 100%;
  max-width: 720px;
  height: 100%;
  margin: 0;
  padding: calc(var(--header-h) + 2.5rem) clamp(1.5rem, 6vw, 5rem)
    clamp(2rem, 5vh, 3rem);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(242, 240, 234, 0.12) transparent;
  -webkit-overflow-scrolling: touch;
}

/* Work uses the full open panel width */
.bl-section[data-work-section] .bl-content__inner {
  max-width: none;
  width: 100%;
}

.bl-content__inner--contact {
  max-width: 560px;
}

.bl-close {
  position: absolute;
  top: calc(var(--header-h) + 0.5rem);
  right: clamp(1.25rem, 3vw, 2rem);
  z-index: 20;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--text-soft);
  background: transparent;
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.bl-close:hover {
  color: var(--text);
  border-color: rgba(242, 240, 234, 0.28);
  background: rgba(242, 240, 234, 0.04);
}

.bl-content__eyebrow {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.bl-content__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.2vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 1.35rem;
  max-width: 12ch;
  color: var(--text);
}

.bl-content__title .char {
  display: inline-block;
}

.bl-content__title .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.08em;
}

.bl-content__lead {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-soft);
  max-width: 36ch;
  margin-bottom: 2.75rem;
}

.bl-content__body {
  font-size: 0.98rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 42ch;
}

/* stats */
.bl-stats {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 2.75rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.bl-stat strong {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.bl-stat span {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* works — full width of open panel */
.bl-works {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  width: 100%;
  max-width: none;
}

@media (max-width: 1100px) {
  .bl-works {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.bl-work-card {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.bl-work-card:hover {
  border-color: rgba(242, 240, 234, 0.22);
}

.bl-work-card__img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-2);
}

.bl-work-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.6);
  transition: transform 0.7s var(--ease), filter 0.4s ease;
}

.bl-work-card:hover .bl-work-card__img img {
  transform: scale(1.04);
  filter: saturate(0.75);
}

.bl-work-card__info {
  padding: 0.9rem 1rem 1.05rem;
  display: grid;
  gap: 0.15rem;
}

.bl-work-card__info span {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.bl-work-card__info h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.bl-work-card__info p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* journal */
.bl-articles {
  max-width: 480px;
}

.bl-article {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.bl-article:last-child {
  border-bottom: 1px solid var(--line);
}

.bl-article time {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.bl-article h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: -0.015em;
  margin-bottom: 0.45rem;
}

.bl-article p {
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.6;
}

/* contact */
.bl-contact {
  margin-bottom: 2.5rem;
  max-width: 400px;
}

.bl-contact__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.bl-contact__row:last-child {
  border-bottom: 1px solid var(--line);
}

a.bl-contact__row:hover .bl-contact__value {
  color: var(--accent);
}

.bl-contact__label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.bl-contact__value {
  font-size: 0.95rem;
  font-weight: 400;
  transition: color 0.25s ease;
}

.bl-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  max-width: 480px;
}

.bl-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.bl-form__field--full {
  grid-column: 1 / -1;
}

.bl-form__field span {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.bl-form__field input,
.bl-form__field textarea {
  width: 100%;
  padding: 0.85rem 0;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  outline: none;
  transition: border-color 0.25s ease;
  resize: vertical;
}

.bl-form__field input::placeholder,
.bl-form__field textarea::placeholder {
  color: rgba(242, 240, 234, 0.25);
}

.bl-form__field input:focus,
.bl-form__field textarea:focus {
  border-bottom-color: var(--accent);
}

.bl-form__submit {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 0.75rem;
  padding: 0.85rem 1.75rem;
  border: 1px solid var(--text);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--text);
  transition:
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

.bl-form__submit:hover {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}

/* ---------- panels (cover open work section) ---------- */
.bl-panels {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 50;
  pointer-events: none;
  visibility: hidden;
}

.bl-panels.is-open {
  pointer-events: auto;
  visibility: visible;
}

.bl-panels__track {
  position: absolute;
  inset: 0;
}

.bl-panel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
}

.bl-panel.is-active {
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

.bl-panel__media {
  overflow: hidden;
  min-height: 0;
  background: var(--surface);
}

.bl-panel__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.65);
}

.bl-panel__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 3.5rem);
  overflow-y: auto;
  background: var(--bg);
  border-left: 1px solid var(--line);
}

.bl-panel__num {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.bl-panel__copy h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1.15rem;
}

.bl-panel__copy p {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-soft);
  max-width: 32ch;
}

.bl-panels__nav {
  position: absolute;
  top: calc(var(--header-h) + 0.5rem);
  right: clamp(1.25rem, 3vw, 2rem);
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
}

.bl-panels__btn {
  height: 44px;
  padding: 0 1.1rem;
  border: 1px solid var(--line);
  background: rgba(12, 12, 11, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  transition:
    color 0.25s ease,
    border-color 0.25s ease;
}

.bl-panels__btn:hover {
  color: var(--text);
  border-color: rgba(242, 240, 234, 0.28);
}

.bl-panels__btn--close {
  width: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.bl-panels__btn--next {
  border-radius: 999px;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .bl-box {
    justify-content: center;
    padding: 1rem 1.25rem;
  }

  .bl-box__meta {
    position: absolute;
    top: 0.75rem;
    left: 1.25rem;
    margin: 0;
    padding: 0;
  }

  .bl-box__title {
    font-size: clamp(1.5rem, 5.5vw, 1.85rem);
  }

  .bl-works {
    grid-template-columns: 1fr 1fr;
  }

  .bl-panel {
    grid-template-columns: 1fr;
  }

  .bl-panel__media {
    max-height: 38vh;
  }

  .bl-panel__copy {
    border-left: none;
    border-top: 1px solid var(--line);
  }

  .bl-form {
    grid-template-columns: 1fr;
  }

  .bl-stats {
    gap: 1.5rem;
  }

  .site-header__hint {
    display: none;
  }
}

@media (max-width: 520px) {
  .bl-works {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
