/* ==========================================================================
   HUNORNAMENTS — Final Editorial Layout System (v4)
   Typography: DIN 2014 Rounded exclusively · Light-Grey Swiss Grid
   Zero Ornament · Typographic Rhythm · Clean Architectural Hairlines
   ========================================================================== */

@font-face {
  font-family: 'DIN 2014 Rounded';
  src: url('../fonts/DIN 2014 Rounded Extra Light.otf') format('opentype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DIN 2014 Rounded';
  src: url('../fonts/DIN 2014 Rounded Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DIN 2014 Rounded';
  src: url('../fonts/DIN 2014 Rounded.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DIN 2014 Rounded';
  src: url('../fonts/DIN 2014 Rounded Demi.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DIN 2014 Rounded';
  src: url('../fonts/DIN 2014 Rounded Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #eaeae7;
  --bg-frame: #deded9;
  --bg-sheet: #f2f2ef;
  --ink: #27282b;
  --ink-body: #47494e;
  --ink-muted: #787a80;
  --rule: rgba(39, 40, 43, 0.14);
  --rule-strong: rgba(39, 40, 43, 0.32);
  --font: 'DIN 2014 Rounded', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.56;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

button, input, select, textarea {
  font-family: var(--font);
}

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* ==========================================================================
   HEADER (Minimal Hairline Header)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(234, 234, 231, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
  padding: 1.05rem 0;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  width: 32px;
  height: 32px;
}

.brand-wordmark {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-link {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-body);
  padding: 0.2rem 0;
  border-bottom: 1px solid transparent;
}

.nav-link:hover, .nav-link.active {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--ink);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--rule-strong);
}

.lang-btn {
  background: none;
  border: none;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  color: var(--ink-body);
  cursor: pointer;
}

.lang-btn.active {
  background: var(--ink);
  color: var(--bg-sheet);
}

.mobile-btn {
  display: none;
  background: none;
  border: 1px solid var(--rule-strong);
  color: var(--ink);
  padding: 0.3rem 0.6rem;
  font-size: 1rem;
  cursor: pointer;
}

/* ==========================================================================
   12-COLUMN SWISS GRID & LAYOUT PRIMITIVES
   ========================================================================== */
.band {
  padding: 5.5rem 0;
  border-bottom: 1px solid var(--rule);
}

.band-tight {
  padding: 3.75rem 0;
  border-bottom: 1px solid var(--rule);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 2.25rem;
  row-gap: 2.5rem;
  align-items: start;
}

.grid-12.center-y { align-items: center; }

.c-12 { grid-column: span 12; }
.c-8  { grid-column: span 8; }
.c-7  { grid-column: span 7; }
.c-6  { grid-column: span 6; }
.c-5  { grid-column: span 5; }
.c-4  { grid-column: span 4; }
.c-3  { grid-column: span 3; }

/* Hairline Top Rule Block (No boxy enclosure!) */
.ledger-item {
  border-top: 1px solid var(--rule-strong);
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ledger-num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ==========================================================================
   TYPOGRAPHY SCALE
   ========================================================================== */
.kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.9rem;
  display: block;
}

.t-hero {
  font-size: clamp(2.1rem, 3.8vw, 3.3rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 1.35rem;
}

.t-hero strong { font-weight: 600; }

.t-section {
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.t-section strong { font-weight: 600; }

.t-title {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

.t-lead {
  font-size: 1.02rem;
  font-weight: 400;
  color: var(--ink-body);
  max-width: 48ch;
  line-height: 1.62;
}

.t-body {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--ink-body);
  line-height: 1.6;
}

.t-meta {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.band-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

/* ==========================================================================
   CONTROLS / BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.75rem 1.4rem;
  border: 1px solid var(--ink);
  cursor: pointer;
  white-space: nowrap;
}

.btn-sm {
  padding: 0.48rem 0.95rem;
  font-size: 0.68rem;
}

.btn-solid {
  background: var(--ink);
  color: var(--bg-sheet);
}

.btn-solid:hover {
  background: transparent;
  color: var(--ink);
}

.btn-line {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}

.btn-line:hover {
  border-color: var(--ink);
  background: rgba(39, 40, 43, 0.04);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 2px;
  align-self: flex-start;
}

.text-link:hover {
  border-bottom-color: var(--ink);
}

/* ==========================================================================
   CLEAN IMAGE PLACEHOLDER FRAMES (Art Direction / Shot Specs Only)
   ========================================================================== */
.frame {
  background: var(--bg-frame);
  border: 1px solid var(--rule-strong);
  padding: 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
}

.frame.ar-4x5  { aspect-ratio: 4 / 5; }
.frame.ar-16x10 { aspect-ratio: 16 / 10; }
.frame.ar-16x9 { aspect-ratio: 16 / 9; }
.frame.ar-4x3  { aspect-ratio: 4 / 3; }
.frame.ar-3x4  { aspect-ratio: 3 / 4; }
.frame.ar-1x1  { aspect-ratio: 1 / 1; }

.frame-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.frame-caption {
  font-size: 0.84rem;
  font-weight: 400;
  color: var(--ink-body);
  line-height: 1.5;
  max-width: 40ch;
}

.frame-caption strong {
  display: block;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

/* ==========================================================================
   EXHIBITION PLATES & FILTER
   ========================================================================== */
.filter-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.filter-tab {
  background: none;
  border: none;
  border-bottom: 1.5px solid transparent;
  padding: 0.35rem 0;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  cursor: pointer;
}

.filter-tab:hover { color: var(--ink); }
.filter-tab.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.plate-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  cursor: pointer;
}

.plate-card:hover .frame {
  border-color: var(--ink);
}

.plate-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  border-top: 1px solid var(--rule);
  padding-top: 0.65rem;
}

/* ==========================================================================
   TABLES & FORMS (Swiss Sheet Aesthetics)
   ========================================================================== */
.sheet-box {
  background: var(--bg-sheet);
  border: 1px solid var(--rule-strong);
  padding: 2rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.88rem;
  border-top: 1px solid var(--rule-strong);
}

.data-table th, .data-table td {
  padding: 0.8rem 0.6rem;
  text-align: left;
  border-bottom: 1px solid var(--rule);
}

.data-table th {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-body);
  margin-bottom: 0.3rem;
}

.input {
  width: 100%;
  padding: 0.65rem 0.8rem;
  background: #fff;
  border: 1px solid var(--rule-strong);
  color: var(--ink);
  font-size: 0.88rem;
}

.input:focus {
  outline: none;
  border-color: var(--ink);
}

.calc-strip {
  background: var(--bg-frame);
  border: 1px solid var(--rule-strong);
  padding: 0.8rem 1rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.82rem;
}

/* Size Selector */
.size-row {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.size-btn {
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--rule-strong);
  background: transparent;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.size-btn.selected {
  background: var(--ink);
  color: var(--bg-sheet);
  border-color: var(--ink);
}

/* ==========================================================================
   MODALS
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(39, 40, 43, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.active { display: flex; }

.modal-sheet {
  background: var(--bg-sheet);
  border: 1px solid var(--ink);
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.25rem;
  position: relative;
}

.modal-sheet.narrow { max-width: 520px; }

.modal-x {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  background: none;
  border: 1px solid var(--rule-strong);
  color: var(--ink);
  font-size: 1.15rem;
  cursor: pointer;
}

.modal-x:hover {
  background: var(--ink);
  color: var(--bg-sheet);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  padding: 4rem 0 2.5rem;
}

.footer-row {
  display: grid;
  grid-template-columns: 4fr 2.5fr 2.5fr 3fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--rule);
}

.footer-h {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.9rem;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.84rem;
  color: var(--ink-body);
}

.footer-btn {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.footer-list a:hover, .footer-btn:hover {
  color: var(--ink);
  text-decoration: underline;
}

.footer-base {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .c-8, .c-7, .c-6, .c-5, .c-4, .c-3 { grid-column: span 12; }
  .footer-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .wrap { padding: 0 1.25rem; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--rule);
  }
  .nav-links.open { display: flex; }
  .mobile-btn { display: inline-flex; }
  .nav-cta-hide { display: none; }
  .form-2col, .footer-row { grid-template-columns: 1fr; }
}
