/*
Theme Name: Ben Yang Atelier
Theme URI: https://benyanglighting.com
Author: Ben Yang Lighting
Description: Architectural & documentary workshop theme inspired by Montreal lighting ateliers — measured optical/electrical verdicts, material studies, and custom engineering.
Version: 3.0.0
Text Domain: benyang-atelier
*/

@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-garamond-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #FAF8F5;
  --bg-stone: #F2EFE9;
  --bg-umber: #3D2118;
  --ink: #2B1E1E;
  --ink-soft: rgba(43, 30, 30, 0.74);
  --ink-muted: rgba(43, 30, 30, 0.50);
  --rule: rgba(43, 30, 30, 0.13);
  --rule-strong: rgba(43, 30, 30, 0.28);
  --light: #FAF8F5;
  --light-soft: rgba(250, 248, 245, 0.78);
  --light-rule: rgba(250, 248, 245, 0.20);
  --gutter: clamp(1.25rem, 3vw, 2.75rem);
  --max: 1640px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: opacity 0.2s ease, color 0.2s ease;
}

a:hover {
  opacity: 0.65;
}

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  margin: 0;
}

p {
  margin: 0 0 1.15rem;
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--bg-stone);
  padding: 2px 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--light);
  padding: 10px 18px;
  font-size: 13px;
  text-decoration: none;
  z-index: 9999;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* Fluid Architectural Container & 16-Column Grid */
.by-container {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.lf-grid {
  display: grid;
  grid-template-columns: repeat(16, minmax(0, 1fr));
  column-gap: clamp(12px, 1.4vw, 22px);
  row-gap: 32px;
}

.lf-align-start { align-items: start; }
.lf-align-center { align-items: center; }

/* Micro Labels & Directional Links */
.lf-micro {
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 14px;
  display: block;
}

.lf-micro-light {
  color: rgba(250, 248, 245, 0.62);
}

.lf-arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}
.lf-arrow-link span {
  transition: transform 0.22s ease;
}
.lf-arrow-link:hover {
  opacity: 0.7;
}
.lf-arrow-link:hover span {
  transform: translateX(4px);
}

.lf-arrow-light {
  color: var(--light);
}

.lf-inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 22px;
}

/* Sharp 0px Architectural Buttons */
.by-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--light);
  border: 1px solid var(--ink);
  padding: 13px 28px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}
.by-btn:hover {
  background: transparent;
  color: var(--ink);
  opacity: 1;
}

.by-btn-light {
  background: var(--light);
  color: var(--ink);
  border-color: var(--light);
}
.by-btn-light:hover {
  background: transparent;
  color: var(--light);
}

/* ==========================================================================
   Sticky 3-Zone Lambert & Fils Header + Slide-Over Navigation Drawer
   ========================================================================== */
.lf-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(250, 248, 245, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.lf-header.is-scrolled {
  border-bottom-color: var(--rule);
}

.lf-header-bar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 68px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.lf-header-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.lf-header-center {
  text-align: center;
}

.lf-header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}

.lf-nav-btn,
.lf-top-link {
  appearance: none;
  background: none;
  border: 0;
  padding: 6px 0;
  margin: 0;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}
.lf-nav-btn:hover,
.lf-top-link:hover {
  opacity: 0.6;
}

.lf-brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(23px, 2vw, 28px);
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  text-transform: lowercase;
}
.lf-brand:hover {
  opacity: 0.75;
}

/* Slide-over Drawer */
.lf-backdrop {
  position: fixed;
  inset: 0;
  height: 100dvh;
  background: rgba(43, 30, 30, 0.34);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 600;
}

.lf-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  height: 100dvh;
  width: min(540px, 100vw);
  background: var(--bg);
  border-right: 1px solid var(--rule);
  padding: 0 var(--gutter) 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.35s ease;
  z-index: 700;
}

body.menu-open .lf-backdrop {
  opacity: 1;
  visibility: visible;
}

body.menu-open .lf-drawer {
  transform: translateX(0);
  visibility: visible;
}

.lf-drawer-top {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--rule);
  flex-shrink: 0;
}

.lf-drawer-tag {
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.lf-drawer-nav {
  padding: 28px 0;
  flex: 1 0 auto;
}

.lf-drawer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lf-drawer-list li {
  border-bottom: 1px solid var(--rule);
}

.lf-drawer-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.2;
  text-decoration: none;
  color: var(--ink);
}
.lf-drawer-list a::after {
  content: "→";
  font-size: 1.1rem;
  opacity: 0.45;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.lf-drawer-list a:hover::after {
  transform: translateX(4px);
  opacity: 1;
}

.lf-drawer-secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

.lf-drawer-subcol ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.lf-drawer-subcol li {
  margin-bottom: 8px;
}
.lf-drawer-subcol a {
  font-size: 13.5px;
  color: var(--ink-soft);
  text-decoration: none;
}
.lf-drawer-subcol a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* ==========================================================================
   Homepage 16mm Full-Bleed Hero & Monumental Editorial Statement
   ========================================================================== */
.lf-hero-bleed {
  width: 100%;
  overflow: hidden;
}

.lf-hero-media {
  position: relative;
  width: 100%;
  height: clamp(440px, 66vh, 760px);
  background: #1E1614;
}

.lf-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 44%;
}

.lf-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(24, 15, 12, 0.72) 0%,
    rgba(24, 15, 12, 0.26) 45%,
    rgba(24, 15, 12, 0.06) 100%
  );
  pointer-events: none;
}

.lf-hero-caption {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(28px, 4.5vw, 56px);
  max-width: 560px;
  color: #FFFFFF;
  z-index: 2;
}

.lf-hero-line1 {
  font-size: clamp(1.2rem, 1.7vw, 1.55rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.28;
  margin: 0;
  color: #FFFFFF;
}

.lf-hero-line2 {
  font-size: clamp(1.2rem, 1.7vw, 1.55rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.28;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
}

.lf-hero-cta {
  margin: 0;
}

.lf-hero-cta a {
  color: #FFFFFF;
  font-size: clamp(1.1rem, 1.45vw, 1.35rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}

/* Monumental Statement Block (mirrors Lambert & Fils "The latest collaboration") */
.lf-statement {
  padding-top: clamp(72px, 9vw, 138px);
  padding-bottom: clamp(56px, 7vw, 104px);
}

.lf-statement-col {
  grid-column: 1 / 15;
}

.lf-statement h1 {
  font-size: clamp(2.85rem, 6.2vw, 5.75rem);
  font-weight: 400;
  letter-spacing: -0.036em;
  line-height: 1.02;
  margin: 0 0 clamp(24px, 2.8vw, 36px);
}

/* GEO Answer Line: Pure editorial lead paragraph directly under H1 (no SaaS box/border) */
.by-answer {
  font-size: clamp(1.18rem, 1.55vw, 1.45rem);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.012em;
  color: var(--ink);
  max-width: 44ch;
  margin: 0 0 26px;
}

.lf-arrow-row {
  margin: 0;
}

/* ==========================================================================
   Homepage Editorial Sections, Scoreboard Ledger, Triptych & Bespoke Split
   ========================================================================== */
.lf-section {
  padding-top: clamp(56px, 7vw, 108px);
  padding-bottom: clamp(56px, 7vw, 108px);
}

.lf-section-lined {
  border-top: 1px solid var(--rule);
}

.lf-section h2,
.lf-sub-section h2 {
  font-size: clamp(1.9rem, 3.3vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 22px;
}

.lf-lead-prose {
  font-size: clamp(1rem, 1.15vw, 1.12rem);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 0 36px;
}

.lf-col-narrative {
  grid-column: 1 / 9;
}

.lf-col-plate {
  grid-column: 10 / 17;
  margin: 0;
}

.lf-plate {
  margin: 0;
}
.lf-plate img {
  width: 100%;
  height: auto;
  background: var(--bg-stone);
}
.lf-plate figcaption {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-muted);
  margin-top: 12px;
}

/* Architectural Scoreboard Ledger (Replaces 4 SaaS Boxes) */
.by-score {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 32px 0 28px;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.by-score > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.by-score dd {
  margin: 0;
  font-size: clamp(2.25rem, 3.6vw, 3.35rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--ink);
}

.by-score dt {
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.01em;
}

.by-empty-note {
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 15px;
  max-width: 56ch;
}
.by-empty-note p {
  margin: 0;
}

/* Section Headers */
.lf-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(32px, 4vw, 52px);
}
.lf-section-head h2 {
  margin-bottom: 0;
}

/* 3-Column Flush Studio Triptych */
.lf-triptych {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 28px);
}

.lf-study-card {
  display: flex;
  flex-direction: column;
}

.lf-study-img {
  display: block;
  overflow: hidden;
  background: var(--bg-stone);
  margin-bottom: 18px;
}
.lf-study-img img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.lf-study-img:hover {
  opacity: 1;
}
.lf-study-img:hover img {
  transform: scale(1.025);
}

.lf-study-card .lf-micro {
  margin-bottom: 8px;
}

.lf-study-card h3 {
  font-size: clamp(1.25rem, 1.6vw, 1.55rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.22;
  margin: 0 0 10px;
}
.lf-study-card h3 a {
  text-decoration: none;
}
.lf-study-card h3 a:hover {
  text-decoration: underline;
}

.lf-study-card p:last-child {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

/* Hairline Reference Index Ledger */
.lf-index-block {
  margin-top: clamp(48px, 6vw, 84px);
}

.lf-ledger-list {
  border-top: 1px solid var(--rule);
}

.lf-ledger-item {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  align-items: baseline;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}

.lf-ledger-item-media {
  align-items: center;
  grid-template-columns: 120px 1fr auto;
}

.lf-ledger-thumb {
  display: block;
  background: var(--bg-stone);
  overflow: hidden;
}
.lf-ledger-thumb img {
  width: 120px;
  height: 150px;
  object-fit: cover;
}

.lf-ledger-meta {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.lf-ledger-main h2,
.lf-ledger-main h3 {
  font-size: clamp(1.2rem, 1.55vw, 1.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 6px;
}
.lf-ledger-main h2 a,
.lf-ledger-main h3 a {
  text-decoration: none;
}
.lf-ledger-main h2 a:hover,
.lf-ledger-main h3 a:hover {
  text-decoration: underline;
}

.lf-ledger-main p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-soft);
  max-width: 68ch;
}

/* Bespoke Atelier Asymmetric Split */
.lf-col-bespoke-img {
  grid-column: 1 / 10;
}

.lf-col-bespoke-copy {
  grid-column: 11 / 17;
}

.lf-steps {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.lf-steps li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.lf-steps li strong {
  color: var(--ink);
  font-weight: 500;
}

.lf-step-num {
  font-size: 12px;
  color: var(--ink-muted);
  padding-top: 2px;
}

.lf-cta-pair {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 28px;
}

/* ==========================================================================
   Inner Pages, Breadcrumbs, Split Headers & Prose Typography
   ========================================================================== */
.lf-main {
  padding-top: clamp(32px, 4vw, 56px);
  padding-bottom: clamp(64px, 8vw, 116px);
}

.by-breadcrumb {
  margin-bottom: clamp(24px, 3vw, 40px);
}
.by-breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.by-breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  opacity: 0.45;
}
.by-breadcrumb a {
  color: var(--ink-muted);
  text-decoration: none;
}
.by-breadcrumb a:hover {
  color: var(--ink);
}

.lf-page-head {
  padding-bottom: clamp(32px, 4vw, 52px);
  margin-bottom: clamp(36px, 4.5vw, 60px);
  border-bottom: 1px solid var(--rule);
}

.lf-page-head h1 {
  font-size: clamp(2.35rem, 4.6vw, 4.5rem);
  font-weight: 400;
  letter-spacing: -0.034em;
  line-height: 1.04;
  margin: 0 0 24px;
  max-width: 20ch;
}

.lf-page-head-split {
  display: grid;
  grid-template-columns: repeat(16, minmax(0, 1fr));
  gap: clamp(24px, 2.5vw, 40px);
  align-items: start;
}
.lf-page-head-split .lf-page-head-copy {
  grid-column: 1 / 10;
}
.lf-page-head-split .lf-page-head-plate {
  grid-column: 11 / 17;
}

.lf-meta-bar {
  margin-top: 24px;
  font-size: 13px;
  color: var(--ink-muted);
}
.by-dates,
.by-meta {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--ink-muted);
}

/* Editorial Prose */
.by-prose {
  font-size: 16.5px;
  line-height: 1.68;
  color: var(--ink);
}

.lf-prose-block > p,
.lf-prose-block > ul,
.lf-prose-block > ol,
.lf-prose-block > blockquote,
.lf-prose-block > h2,
.lf-prose-block > h3,
.lf-prose-block > h4 {
  max-width: 68ch;
}

.by-prose h2 {
  font-size: clamp(1.65rem, 2.5vw, 2.35rem);
  font-weight: 400;
  letter-spacing: -0.026em;
  line-height: 1.14;
  margin: 3rem 0 1.1rem;
}
.by-prose h2:first-child {
  margin-top: 0;
}

.by-prose h3 {
  font-size: clamp(1.25rem, 1.7vw, 1.55rem);
  font-weight: 400;
  letter-spacing: -0.018em;
  line-height: 1.25;
  margin: 2.2rem 0 0.75rem;
}

.by-prose ul,
.by-prose ol {
  padding-left: 1.35rem;
  margin: 0 0 1.4rem;
}
.by-prose li {
  margin-bottom: 0.55rem;
}
.by-prose strong {
  font-weight: 600;
}

.lf-sub-section {
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: clamp(36px, 4.5vw, 56px);
  border-top: 1px solid var(--rule);
}

/* About Page People Rows & Facts Ledger */
.lf-people-list {
  margin-bottom: clamp(48px, 6vw, 80px);
}

.lf-person-row {
  display: grid;
  grid-template-columns: repeat(16, minmax(0, 1fr));
  gap: 24px;
  padding: 36px 0;
  border-bottom: 1px solid var(--rule);
  align-items: center;
}

.lf-person-plate {
  grid-column: 1 / 5;
  margin: 0;
}
.lf-person-plate img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.lf-person-plate figcaption {
  display: none;
}

.lf-person-copy {
  grid-column: 6 / 15;
}
.lf-person-copy h2 {
  font-size: clamp(1.85rem, 2.8vw, 2.65rem);
  letter-spacing: -0.028em;
  margin: 0 0 14px;
}
.lf-zh-name {
  font-weight: 400;
  color: var(--ink-muted);
  font-size: 0.75em;
}
.lf-person-copy p {
  font-size: 16.5px;
  color: var(--ink-soft);
  max-width: 58ch;
}

.lf-inline-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  gap: 20px;
}

.by-facts,
.by-verdict {
  display: grid;
  grid-template-columns: minmax(160px, 240px) 1fr;
  margin: 24px 0 0;
  border-top: 1px solid var(--rule);
}
.by-facts dt,
.by-facts dd,
.by-verdict > div {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  margin: 0;
}
.by-facts dt {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
}
.by-verdict {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.by-verdict dt {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin-bottom: 6px;
}
.by-verdict dd {
  margin: 0;
  font-size: 15px;
}

/* ==========================================================================
   Clean Architectural Data Tables (Zero vertical borders, crisp hairlines)
   ========================================================================== */
.lf-table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 14.5px;
  line-height: 1.5;
}

caption {
  text-align: left;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 12px;
}

thead th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--ink);
}

tbody th,
tbody td {
  text-align: left;
  vertical-align: top;
  padding: 15px 16px 15px 0;
  border-bottom: 1px solid var(--rule);
  font-weight: 400;
}

tbody th {
  color: var(--ink);
  font-weight: 500;
}

table.by-sortable th button {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  color: inherit;
  cursor: pointer;
}
table.by-sortable th[aria-sort="ascending"] button::after { content: " ↑"; }
table.by-sortable th[aria-sort="descending"] button::after { content: " ↓"; }

/* ==========================================================================
   Video Player, Click-to-Load Facade, Chapters & Changelog
   ========================================================================== */
.by-video-wrap {
  margin: 32px 0;
}
.by-video-wrap figcaption {
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 10px;
}

.by-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #141010;
}
.by-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.by-facade {
  position: relative;
  display: block;
  max-width: 860px;
  aspect-ratio: 16 / 9;
  background: #141010;
  overflow: hidden;
  text-decoration: none;
}
.by-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.86;
}
.by-facade-play {
  position: absolute;
  left: 24px;
  bottom: 24px;
  background: var(--bg);
  color: var(--ink);
  padding: 10px 20px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.by-chapters {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--rule);
}
.by-chapters li {
  border-bottom: 1px solid var(--rule);
  padding: 12px 0;
}
.by-chapters a {
  text-decoration: none;
  display: flex;
  gap: 18px;
}
.by-chapters time {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-muted);
  min-width: 56px;
}

.by-prompt,
.lf-quote-fig blockquote {
  margin: 16px 0;
  padding: 16px 24px;
  background: var(--bg-stone);
  border-left: 1px solid var(--ink);
}

details {
  border-top: 1px solid var(--rule);
  padding: 16px 0;
}
details:last-of-type {
  border-bottom: 1px solid var(--rule);
}
summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
}
.by-transcript {
  padding-top: 16px;
}

.by-changelog {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  color: var(--ink-soft);
}
.by-changelog h2 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

/* ==========================================================================
   Minimalist Architectural RFQ Form (/custom/brief/)
   ========================================================================== */
.by-alert {
  padding: 16px 20px;
  background: var(--bg-stone);
  border-left: 2px solid var(--ink);
  margin-bottom: 28px;
  font-size: 14.5px;
}

.by-form {
  max-width: 880px;
  margin-top: 24px;
}

.by-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 28px;
}

.by-form-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.by-form p {
  margin: 0 0 22px;
}

.by-form label {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.by-form input[type="text"],
.by-form input[type="email"],
.by-form input:not([type]),
.by-form select,
.by-form textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule-strong);
  padding: 11px 0;
  font-family: var(--sans);
  font-size: 15.5px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease;
}

.by-form textarea {
  border: 1px solid var(--rule-strong);
  padding: 12px 14px;
  resize: vertical;
}

.by-form input:focus,
.by-form select:focus,
.by-form textarea:focus {
  border-color: var(--ink);
}

.by-form input[type="file"] {
  font-family: var(--sans);
  font-size: 14px;
  padding: 8px 0;
}

.by-consent label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink-soft);
  cursor: pointer;
}
.by-consent input[type="checkbox"] {
  margin-top: 4px;
  accent-color: var(--ink);
}

.by-form-note {
  font-size: 13.5px;
  color: var(--ink-muted);
  max-width: 62ch;
}

/* ==========================================================================
   Deep Umber Studio Band (#3D2118) + 5-Column Architectural Footer
   ========================================================================== */
.lf-umber-band {
  background: var(--bg-umber);
  color: var(--light);
  padding: clamp(56px, 7vw, 96px) 0;
}

.lf-umber-inner {
  align-items: end;
}

.lf-umber-copy {
  grid-column: 1 / 11;
}

.lf-umber-copy h2 {
  color: var(--light);
  font-size: clamp(1.85rem, 3.2vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.028em;
  line-height: 1.1;
  margin: 0 0 16px;
}

.lf-umber-copy p:last-child {
  color: var(--light-soft);
  font-size: 15.5px;
  line-height: 1.6;
  max-width: 58ch;
  margin: 0;
}

.lf-umber-cta {
  grid-column: 12 / 17;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.lf-footer {
  background: var(--bg-stone);
  color: var(--ink);
  border-top: 1px solid var(--rule);
  padding: clamp(56px, 6.5vw, 88px) 0 44px;
}

.lf-footer-grid {
  padding-bottom: clamp(44px, 5vw, 68px);
}

.lf-footer-brand {
  grid-column: 1 / 6;
  padding-right: 24px;
}
.lf-footer-brand p {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 34ch;
}

.lf-footer-col {
  grid-column: span 3;
}
.lf-footer-col:last-child {
  grid-column: span 2;
}

.lf-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.lf-footer-col li {
  margin-bottom: 9px;
}
.lf-footer-col a {
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: none;
}
.lf-footer-col a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.lf-footer-legal {
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px 32px;
}

.lf-sr-footer-nav {
  display: none;
}

.by-legal {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 92ch;
  margin: 0;
}

.lf-copy {
  font-size: 12.5px;
  color: var(--ink-muted);
  margin: 0;
  white-space: nowrap;
}

/* Pagination */
.navigation.pagination {
  margin-top: 36px;
}
.nav-links {
  display: flex;
  gap: 14px;
  font-size: 14px;
}

/* ==========================================================================
   Responsive Breakpoints (Tablet & Mobile)
   ========================================================================== */
@media (max-width: 1080px) {
  .lf-col-narrative { grid-column: 1 / 10; }
  .lf-col-plate { grid-column: 10 / 17; }
  .lf-col-bespoke-img { grid-column: 1 / 9; }
  .lf-col-bespoke-copy { grid-column: 9 / 17; }
  .lf-umber-copy { grid-column: 1 / 11; }
  .lf-umber-cta { grid-column: 11 / 17; }
  .lf-footer-brand { grid-column: 1 / 17; margin-bottom: 12px; }
  .lf-footer-col,
  .lf-footer-col:last-child { grid-column: span 4; }
}

@media (max-width: 780px) {
  .lf-hide-sm { display: none; }
  .lf-grid,
  .lf-page-head-split,
  .lf-person-row {
    grid-template-columns: 1fr;
    row-gap: 28px;
  }
  .lf-statement-col,
  .lf-col-narrative,
  .lf-col-plate,
  .lf-col-bespoke-img,
  .lf-col-bespoke-copy,
  .lf-page-head-split .lf-page-head-copy,
  .lf-page-head-split .lf-page-head-plate,
  .lf-person-plate,
  .lf-person-copy,
  .lf-umber-copy,
  .lf-umber-cta,
  .lf-footer-brand,
  .lf-footer-col,
  .lf-footer-col:last-child {
    grid-column: 1 / -1;
  }
  .lf-person-plate {
    max-width: 240px;
  }
  .lf-triptych {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .by-score {
    grid-template-columns: 1fr 1fr;
    row-gap: 24px;
  }
  .lf-ledger-item,
  .lf-ledger-item-media {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .lf-section-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .by-facts,
  .by-verdict,
  .by-form-grid,
  .by-form-grid-3,
  .lf-drawer-secondary {
    grid-template-columns: 1fr;
  }
  .lf-hero-media {
    height: 62vh;
    min-height: 400px;
  }
}
