/* ===================================================================
   DONGCHONG — Design System
   Furniture that endures. A quiet-luxury editorial stylesheet.
   Single shared stylesheet for every page. See BRAND.md for spec.
   =================================================================== */

/* -------------------------------------------------------------------
   1. TOKENS
   ------------------------------------------------------------------- */
:root {
  /* Colour */
  --paper: #F6F2EA;
  --paper-2: #FBF8F2;
  --ink: #1B1917;
  --walnut: #3A2E25;
  --espresso: #241C16;
  --brass: #AE8B5C;
  --brass-deep: #8C6D42;
  --stone: #B3A794;
  --celadon: #7E9084;
  --line: #E4DCCE;

  /* Text on dark grounds */
  --on-dark: #F6F2EA;
  --on-dark-2: #EDE6D8;
  --on-dark-line: rgba(237, 230, 216, 0.18);

  /* Fonts */
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display-th: "Noto Serif Thai", "Cormorant Garamond", serif;
  --font-body-th: "IBM Plex Sans Thai", "Sarabun", sans-serif;

  /* Type scale (fluid) */
  --text-hero: clamp(2.75rem, 6vw, 6rem);
  --text-h2: clamp(2rem, 4vw, 3.25rem);
  --text-h3: clamp(1.3rem, 2vw, 1.6rem);
  --text-body: clamp(1rem, 1.05vw, 1.125rem);
  --text-small: 0.9rem;
  --text-eyebrow: 0.72rem;

  /* Spacing scale */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: clamp(3rem, 6vw, 5rem);
  --space-2xl: clamp(4.5rem, 9vw, 8rem);
  --space-3xl: clamp(6rem, 12vw, 11rem);

  /* Layout */
  --container-max: 1240px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --measure: 68ch;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 700ms;
  --rise: 18px;

  /* Misc */
  --radius-sm: 2px;
  --radius-md: 4px;
  --header-h: 84px;
}

/* -------------------------------------------------------------------
   2. RESET / BASE
   ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html.lang-th body,
html.lang-th input,
html.lang-th textarea,
html.lang-th select,
html.lang-th button {
  font-family: var(--font-body-th);
}

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

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

ul, ol { list-style: none; padding: 0; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.01em;
}
html.lang-th h1, html.lang-th h2, html.lang-th h3, html.lang-th h4 {
  font-family: var(--font-display-th);
}

h1 { font-size: var(--text-hero); font-weight: 300; line-height: 1.02; }
h2 { font-size: var(--text-h2); font-weight: 400; }
h3 { font-size: var(--text-h3); font-weight: 500; }

p { max-width: var(--measure); }

/* Focus visibility */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
.site-header :focus-visible,
.mobile-menu :focus-visible {
  outline-color: var(--brass);
}

/* Skip link */
.skip-link {
  position: fixed;
  top: -60px;
  left: var(--space-md);
  z-index: 1000;
  background: var(--espresso);
  color: var(--on-dark);
  padding: 0.85em 1.4em;
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  border-radius: var(--radius-sm);
  transition: top 200ms var(--ease);
}
.skip-link:focus {
  top: var(--space-md);
}

/* Selection */
::selection { background: var(--brass); color: var(--espresso); }

/* -------------------------------------------------------------------
   3. LAYOUT UTILITIES
   ------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.full-bleed {
  width: 100%;
}

section { position: relative; }

.section-pad {
  padding-block: var(--space-2xl);
}
.section-pad-lg {
  padding-block: var(--space-3xl);
}

.section-dark {
  background: var(--walnut);
  color: var(--on-dark-2);
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 {
  color: var(--on-dark);
}
.section-dark a { color: var(--on-dark-2); }
.section-dark .hairline { border-color: var(--on-dark-line); }

.section-espresso {
  background: var(--espresso);
  color: var(--on-dark-2);
}
.section-espresso h1, .section-espresso h2, .section-espresso h3, .section-espresso h4 {
  color: var(--on-dark);
}

/* Editorial grid */
.grid {
  display: grid;
  gap: var(--space-lg);
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1023px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.editorial-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-2xl);
  align-items: center;
}
@media (max-width: 900px) {
  .editorial-split { grid-template-columns: 1fr; gap: var(--space-lg); }
}
.editorial-split--reverse { grid-template-columns: 0.9fr 1.1fr; }
@media (max-width: 900px) {
  .editorial-split--reverse { grid-template-columns: 1fr; }
}
.editorial-split--reverse > *:first-child { order: 2; }
@media (max-width: 900px) {
  .editorial-split--reverse > *:first-child { order: 0; }
}

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

/* -------------------------------------------------------------------
   4. TYPOGRAPHY HELPERS
   ------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.85em;
}
html.lang-th .eyebrow { font-family: var(--font-body-th); letter-spacing: 0.06em; }
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 1.6em;
  height: 1px;
  background: currentColor;
}
.eyebrow--muted { color: var(--stone); }

.section-header {
  max-width: 42rem;
  margin-bottom: var(--space-lg);
}
.section-header .eyebrow { margin-bottom: var(--space-sm); }
.section-header h2 { margin-bottom: var(--space-sm); }
.section-header p {
  color: var(--stone);
  font-size: 1.05rem;
}
.section-dark .section-header p,
.section-espresso .section-header p { color: var(--on-dark-2); opacity: 0.75; }

.section-header--center {
  margin-inline: auto;
  text-align: center;
}

.lede {
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  line-height: 1.6;
  color: var(--walnut);
  font-family: var(--font-display);
  font-weight: 400;
  margin-bottom: 1em;
}
.section-dark .lede, .section-espresso .lede { color: var(--on-dark); }

.text-stone { color: var(--stone); }
.text-brass { color: var(--brass); }

/* -------------------------------------------------------------------
   5. LANGUAGE TOGGLE MECHANISM
   ------------------------------------------------------------------- */
/* Both languages exist in the DOM at all times; CSS shows only the active
   one. `revert` restores each element's natural display (inline for
   <span>, block for <p>/<div>, list-item for <li>) so the same .lang-en/
   .lang-th pair works on any tag without extra per-tag rules. */
/* Scoped to `body` (not a bare `.lang-th` selector) because `js/main.js`
   also toggles a same-named `lang-th` class onto <html> itself to switch
   the active language — an unscoped rule here would match <html class="lang-th">
   too and set display:none on the whole document. */
body .lang-th { display: none; }
html.lang-th .lang-en { display: none; }
html.lang-th .lang-th { display: revert; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.section-dark .lang-toggle, .section-espresso .lang-toggle,
.site-header.is-scrolled .lang-toggle { border-color: var(--on-dark-line); }
.mobile-menu .lang-toggle { border-color: var(--on-dark-line); }

.lang-toggle__btn {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 0.4em 0.75em;
  border-radius: 999px;
  color: inherit;
  opacity: 0.6;
  transition: background 200ms var(--ease), opacity 200ms var(--ease), color 200ms var(--ease);
}
.lang-toggle__btn[aria-pressed="true"] {
  opacity: 1;
  background: var(--brass);
  color: var(--espresso);
}

/* -------------------------------------------------------------------
   6. BUTTONS
   ------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  padding: 0.95em 1.9em;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background 220ms var(--ease), color 220ms var(--ease), border-color 220ms var(--ease), transform 220ms var(--ease);
  white-space: nowrap;
}
html.lang-th .btn { font-family: var(--font-body-th); }

.btn-primary {
  background: var(--brass);
  color: var(--espresso);
  border-color: var(--brass);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--brass-deep);
  border-color: var(--brass-deep);
  color: var(--on-dark);
}

.btn-ghost {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}
.btn-ghost:hover, .btn-ghost:focus-visible {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.section-dark .btn-ghost, .section-espresso .btn-ghost {
  border-color: var(--on-dark-line);
}
.section-dark .btn-ghost:hover, .section-espresso .btn-ghost:hover,
.section-dark .btn-ghost:focus-visible, .section-espresso .btn-ghost:focus-visible {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--espresso);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* Brass underline link */
.link-brass {
  position: relative;
  display: inline-block;
  color: var(--brass);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  padding-bottom: 0.2em;
}
.link-brass::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 1px;
  width: 100%;
  background: currentColor;
  transform: scaleX(0.35);
  transform-origin: left;
  transition: transform 320ms var(--ease);
}
.link-brass:hover::after, .link-brass:focus-visible::after {
  transform: scaleX(1);
}

/* -------------------------------------------------------------------
   7. HEADER / NAV
   ------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  width: 100%;
  background: transparent;
  transition: background 320ms var(--ease), box-shadow 320ms var(--ease), border-color 320ms var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.site-header.is-scrolled,
.site-header--solid {
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
}
.brand__mark {
  width: 38px;
  height: 38px;
  flex: none;
}
.brand__mark circle { stroke: var(--brass); }
.brand__mark text { fill: var(--walnut); font-family: var(--font-display); }
.brand__word {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.14em;
  line-height: 1;
}
html.lang-th .brand__word { font-family: var(--font-display-th); letter-spacing: 0.04em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.nav-links a {
  position: relative;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  padding-block: 0.4em;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 280ms var(--ease);
}
.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}
.nav-links a[aria-current="page"] { color: var(--brass-deep); }

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.header-actions .link-brass { font-size: 0.85rem; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: currentColor;
  transition: transform 260ms var(--ease), opacity 260ms var(--ease);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .header-actions .lang-toggle { display: none; }
  .header-actions .link-brass { display: none; }
  .menu-toggle { display: flex; }
}

/* Mobile full-screen overlay menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: var(--espresso);
  color: var(--on-dark);
  display: flex;
  flex-direction: column;
  padding: var(--space-md) var(--gutter) var(--space-xl);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 320ms var(--ease), transform 320ms var(--ease), visibility 320ms;
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  flex: none;
}
.mobile-menu__top .brand { color: var(--on-dark); }
.mobile-menu__top .brand__mark circle { stroke: var(--brass); }
.mobile-menu__top .brand__mark text { fill: var(--on-dark); }
.mobile-menu__close {
  width: 40px;
  height: 40px;
  position: relative;
}
.mobile-menu__close::before,
.mobile-menu__close::after {
  content: "";
  position: absolute;
  left: 8px; right: 8px; top: 50%;
  height: 1px;
  background: currentColor;
}
.mobile-menu__close::before { transform: rotate(45deg); }
.mobile-menu__close::after { transform: rotate(-45deg); }

.mobile-menu__links {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-md);
}
.mobile-menu__links a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 2.8rem);
  font-weight: 300;
  color: var(--on-dark);
}
html.lang-th .mobile-menu__links a { font-family: var(--font-display-th); }
.mobile-menu__links a[aria-current="page"] { color: var(--brass); }

.mobile-menu__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--on-dark-line);
}

/* -------------------------------------------------------------------
   8. HERO
   ------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(92vh, 900px);
  display: flex;
  align-items: flex-end;
  background: linear-gradient(160deg, #EFE7D8 0%, var(--paper) 45%, var(--paper-2) 100%);
  overflow: hidden;
  margin-top: calc(var(--header-h) * -1);
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg svg {
  position: absolute;
  opacity: 0.5;
}
.hero__bg .hero__line-art {
  right: -4%;
  top: 8%;
  width: min(46vw, 620px);
  height: auto;
  color: var(--walnut);
  opacity: 0.35;
}
.hero__texture {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  mix-blend-mode: multiply;
}
.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-block: calc(var(--header-h) + var(--space-xl)) var(--space-2xl);
}
.hero__eyebrow { margin-bottom: var(--space-md); }
.hero h1 {
  color: var(--ink);
  max-width: 16ch;
  margin-bottom: var(--space-md);
}
.hero__sub {
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  color: var(--walnut);
  max-width: 42ch;
  margin-bottom: var(--space-lg);
}
.hero__note {
  margin-top: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-small);
  color: var(--stone);
}

/* -------------------------------------------------------------------
   9. PHOTO SLOT PLACEHOLDER
   ------------------------------------------------------------------- */
.photo-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  background: linear-gradient(150deg, var(--paper-2) 0%, #EDE3D0 55%, var(--stone) 150%);
  border: 1px solid var(--line);
  overflow: hidden;
  width: 100%;
}
.photo-slot::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 15% 0%, rgba(255,255,255,0.5), transparent 60%),
    radial-gradient(120% 90% at 100% 100%, color-mix(in srgb, var(--walnut) 12%, transparent), transparent 55%);
}
.photo-slot__icon {
  position: relative;
  width: 34%;
  max-width: 140px;
  min-width: 64px;
  opacity: 0.55;
}
.photo-slot__icon img { width: 100%; height: auto; }
.photo-slot__caption {
  position: relative;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--walnut);
  opacity: 0.55;
}

.aspect-4-5 { aspect-ratio: 4 / 5; }
.aspect-1-1 { aspect-ratio: 1 / 1; }
.aspect-16-9 { aspect-ratio: 16 / 9; }
.aspect-3-2 { aspect-ratio: 3 / 2; }
.aspect-21-9 { aspect-ratio: 21 / 9; }

/* -------------------------------------------------------------------
   10. CARDS / TILES
   ------------------------------------------------------------------- */
.card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: var(--space-lg);
  transition: border-color 260ms var(--ease), transform 260ms var(--ease);
}
.card:hover { border-color: var(--brass); }

.material-tile {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-lg) var(--space-md);
  border-top: 1px solid var(--line);
}
.material-tile__icon {
  width: 44px;
  height: 44px;
  opacity: 0.85;
}
.material-tile h3 { margin-top: var(--space-2xs); }
.material-tile p {
  color: var(--stone);
  font-size: 0.95rem;
}
.section-dark .material-tile, .section-espresso .material-tile {
  border-top-color: var(--on-dark-line);
}
.section-dark .material-tile p, .section-espresso .material-tile p { opacity: 0.7; }

.category-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.category-card__frame {
  border-radius: var(--radius-md);
}
.category-card__body {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-sm);
}
.category-card__body h3 { flex: 1; }
.category-card p {
  color: var(--stone);
  font-size: 0.95rem;
}
.category-card__link {
  font-size: 1.3rem;
  color: var(--brass);
  transition: transform 260ms var(--ease);
  flex: none;
}
.category-card:hover .category-card__link { transform: translateX(4px); }
.category-card:hover .photo-slot__icon { transform: scale(1.04); }
.photo-slot__icon { transition: transform 600ms var(--ease); }

/* Showroom cards */
.showroom-card {
  padding: var(--space-lg);
  border: 1px solid var(--line);
  background: var(--paper-2);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.showroom-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.4em;
  font-size: 0.92rem;
  color: var(--walnut);
  margin-block: var(--space-sm);
}
.showroom-card__meta .label {
  color: var(--stone);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* -------------------------------------------------------------------
   11. CTA BAND
   ------------------------------------------------------------------- */
.cta-band {
  position: relative;
  padding-block: var(--space-2xl);
  text-align: center;
  overflow: hidden;
}
.cta-band .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}
.cta-band h2 { max-width: 20ch; }
.cta-band__texture {
  position: absolute;
  inset: 0;
  color: var(--brass);
  opacity: 0.18;
  pointer-events: none;
}

/* -------------------------------------------------------------------
   12. FOOTER
   ------------------------------------------------------------------- */
.site-footer {
  background: var(--espresso);
  color: var(--on-dark-2);
  padding-block: var(--space-2xl) var(--space-lg);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--on-dark-line);
}
@media (max-width: 900px) {
  .footer__top { grid-template-columns: 1fr 1fr; row-gap: var(--space-lg); }
}
@media (max-width: 560px) {
  .footer__top { grid-template-columns: 1fr; }
}
.footer__brand .brand { color: var(--on-dark); margin-bottom: var(--space-sm); }
.footer__brand .brand__mark circle { stroke: var(--brass); }
.footer__brand .brand__mark text { fill: var(--on-dark); }
.footer__statement {
  color: var(--on-dark-2);
  opacity: 0.75;
  font-size: 0.95rem;
  max-width: 30ch;
}
.footer__col h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: var(--space-sm);
  font-weight: 600;
}
html.lang-th .footer__col h4 { font-family: var(--font-body-th); letter-spacing: 0.05em; }
.footer__col ul { display: flex; flex-direction: column; gap: 0.65em; }
.footer__col a, .footer__col li {
  font-size: 0.92rem;
  color: var(--on-dark-2);
  opacity: 0.85;
}
.footer__col a:hover { opacity: 1; color: var(--brass); }
.footer__col .muted { opacity: 0.6; font-size: 0.85rem; }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
  padding-top: var(--space-lg);
  font-size: 0.8rem;
  color: var(--on-dark-2);
  opacity: 0.6;
}
.footer__bottom .lang-toggle { opacity: 1; }

/* -------------------------------------------------------------------
   13. FORMS
   ------------------------------------------------------------------- */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  margin-bottom: var(--space-md);
}
.form-field label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--paper-2);
  padding: 0.85em 1em;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: border-color 220ms var(--ease);
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--brass);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23AE8B5C' stroke-width='1.25'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1em center; }
.form-field .field-error {
  font-size: 0.8rem;
  color: #A6472F;
  display: none;
}
.form-field.has-error input,
.form-field.has-error textarea,
.form-field.has-error select { border-color: #A6472F; }
.form-field.has-error .field-error { display: block; }
.form-note {
  font-size: 0.85rem;
  color: var(--stone);
  margin-top: var(--space-sm);
}
.form-success {
  display: none;
  padding: var(--space-md);
  border: 1px solid var(--celadon);
  background: color-mix(in srgb, var(--celadon) 10%, transparent);
  font-size: 0.95rem;
  margin-top: var(--space-md);
}
.form-success.is-visible { display: block; }

/* -------------------------------------------------------------------
   14. MOTION / REVEAL
   ------------------------------------------------------------------- */
/* Reveal is gated behind the `.js` class (added to <html> by main.js on load).
   Without JavaScript, .reveal elements stay fully visible — no content is ever
   hidden by a scroll animation that can't run. */
html.js .reveal {
  opacity: 0;
  transform: translateY(var(--rise));
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
html.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hairline, .photo-slot__icon { transition: none; }
}

/* -------------------------------------------------------------------
   15. MISC UTILITIES
   ------------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.mt-0 { margin-top: 0; }
.center-text { text-align: center; }

.divider-motif {
  display: block;
  width: 100%;
  height: 40px;
  margin-block: var(--space-lg);
}

.tag-pill {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass-deep);
  border: 1px solid var(--brass);
  border-radius: 999px;
  padding: 0.3em 0.8em;
}

/* -------------------------------------------------------------------
   16. RESPONSIVE TUNING
   ------------------------------------------------------------------- */
@media (max-width: 1023px) {
  .editorial-split.showrooms-teaser,
  .grid-2.showrooms-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  :root { --header-h: 72px; }
  .hero { min-height: 84vh; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (min-width: 1440px) {
  .container { padding-inline: max(var(--gutter), calc((100vw - 1440px) / 2 + 4rem)); }
}

/* ===================================================================
   15. REAL IMAGERY · PROJECT PORTFOLIO · LIGHTBOX  (portfolio build)
   ------------------------------------------------------------------- */
.aspect-3-4 { aspect-ratio: 3 / 4; }
.aspect-4-3 { aspect-ratio: 4 / 3; }
.aspect-2-3 { aspect-ratio: 2 / 3; }
.aspect-5-4 { aspect-ratio: 5 / 4; }

/* Real photograph in a framed, cover-fit box (replaces .photo-slot for real imgs) */
.img-frame { position: relative; overflow: hidden; width: 100%;
  background: var(--paper-2); border: 1px solid var(--line); }
.img-frame img { width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 900ms var(--ease); }
.img-frame--zoom:hover img, a.img-frame:hover img, button.img-frame:hover img { transform: scale(1.045); }
button.img-frame { padding: 0; cursor: zoom-in; font: inherit; color: inherit; }
button.img-frame:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .img-frame img { transition: none; } }

/* Hero backed by a real photograph */
.hero--image { background: var(--espresso); }
.hero--image .hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero--image .hero__bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--espresso) 34%, transparent) 0%,
    transparent 32%,
    color-mix(in srgb, var(--espresso) 80%, transparent) 100%); }
.hero--image .hero__content { color: var(--on-dark-2); }
.hero--image h1 { color: var(--on-dark); }
.hero--image .hero__sub { color: var(--on-dark-2); }
.hero--image .hero__eyebrow { color: var(--brass); }
.hero--image .hero__note { color: color-mix(in srgb, var(--on-dark-2) 78%, transparent); }

/* Project index card (real image + meta) */
.project-card { display: flex; flex-direction: column; }
.project-card__frame { position: relative; overflow: hidden; border: 1px solid var(--line); }
.project-card__frame img { width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 900ms var(--ease); }
.project-card:hover .project-card__frame img { transform: scale(1.05); }
.project-card__body { padding-top: var(--space-sm); display: flex; flex-direction: column; gap: var(--space-2xs); }
.project-meta { display: flex; flex-wrap: wrap; gap: 0.35em 0.9em; font-size: var(--text-small); color: var(--stone); }
.project-meta .label { color: var(--brass); letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.72rem; }

/* Project detail gallery (12-col) */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--space-sm); }
.gallery > * { grid-column: span 6; }
.gallery > .g-wide { grid-column: span 12; }
.gallery > .g-third { grid-column: span 4; }
@media (max-width: 640px) { .gallery > *, .gallery > .g-third, .gallery > .g-wide { grid-column: span 12; } }

/* Lightbox overlay */
.lightbox { position: fixed; inset: 0; z-index: 2000; display: none;
  align-items: center; justify-content: center; padding: clamp(1rem, 4vw, 3rem);
  background: color-mix(in srgb, var(--espresso) 93%, transparent); }
.lightbox.is-open { display: flex; }
.lightbox__img { max-width: 100%; max-height: 100%; object-fit: contain;
  box-shadow: 0 24px 70px rgba(0,0,0,0.55); }
.lightbox__close, .lightbox__nav { position: absolute; background: none; border: none;
  color: var(--on-dark); cursor: pointer; line-height: 1; }
.lightbox__close { top: clamp(0.75rem, 3vw, 2rem); right: clamp(0.75rem, 3vw, 2rem); font-size: 2rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); font-size: 2.6rem; padding: 0.1em 0.4em; }
.lightbox__nav--prev { left: 0.3rem; } .lightbox__nav--next { right: 0.3rem; }
.lightbox__close:hover, .lightbox__nav:hover { color: var(--brass); }
