/* ==========================================================================
   Aria Stone — Premium design system
   Palette: warm ivory + deep charcoal + bronze accent
   Type:    Cormorant Garamond (display) + Inter (text)
   ========================================================================== */

:root {
  --bg:           #fbf8f3;
  --bg-alt:       #f3ede2;
  --surface:      #ffffff;
  --ink:          #0f0e0c;
  --ink-soft:     #1a1612;
  --muted:        #6e6a64;
  --line:         #e6ddc9;
  --accent:       #a8835a;
  --accent-dark:  #6b4f30;
  --accent-soft:  #d8c3a3;

  --container:    1280px;
  --gutter:       clamp(1.25rem, 3vw, 2.5rem);

  --radius-sm:    2px;
  --radius:       4px;

  --shadow-sm:    0 1px 2px rgba(15, 14, 12, 0.04);
  --shadow:       0 18px 40px -20px rgba(15, 14, 12, 0.25);

  --ease:         cubic-bezier(.2, .8, .2, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ---------- type ---------- */

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.005em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }
h4 { font-size: 1.2rem; font-weight: 500; }

.eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.lead {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 56ch;
}

/* ---------- layout ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { padding: clamp(4rem, 9vw, 8rem) 0; }

.section-head { max-width: 60ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 1.75rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

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

.btn--gold { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--gold:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

.btn--light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--light:hover { background: #fff; color: var(--ink); border-color: #fff; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--accent-soft);
  transition: gap .3s var(--ease), color .3s var(--ease);
}
.link-arrow:hover { gap: 1rem; color: var(--accent-dark); }

/* ==========================================================================
   Header / nav
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  transition: padding .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(251, 248, 243, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: -1;
}
.site-header.is-solid {
  padding: 0.7rem 0;
  box-shadow: 0 2px 16px -8px rgba(15, 14, 12, 0.18);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  z-index: 2;
}
.brand .brand-mark { color: var(--accent); font-style: italic; }
.brand-logo {
  height: 52px;
  width: auto;
  display: block;
  transition: opacity .3s var(--ease), height .35s var(--ease);
}
.brand-logo:hover { opacity: 0.85; }
.site-header.is-solid .brand-logo { height: 44px; }
.footer-brand .brand-logo { height: 56px; }

.nav-list {
  display: flex;
  gap: clamp(1.25rem, 2.5vw, 2.4rem);
  list-style: none;
}
.nav-list a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0.5rem 0;
  position: relative;
  transition: color .3s var(--ease);
}
.nav-list a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width .3s var(--ease);
}
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--accent); }
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { width: 100%; }

.nav-aside {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  z-index: 2;
}

.lang-switch {
  display: flex;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.lang-switch a { color: var(--muted); transition: color .3s var(--ease); }
.lang-switch a:hover, .lang-switch a.is-active { color: var(--accent); }
.lang-switch .sep { color: var(--line); }

.nav-toggle {
  display: none;
  width: 30px;
  height: 22px;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}

body.nav-open { overflow: hidden; }

@media (max-width: 880px) {
  .nav-toggle { display: flex; }

  .nav-list {
    position: fixed;
    inset: 0;
    z-index: 1;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    padding: 6rem 1.5rem 2rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity .35s var(--ease), transform .35s var(--ease);
  }
  .nav-list.is-open { opacity: 1; pointer-events: auto; transform: none; }
  .nav-list a { font-size: 1.25rem; padding: 0.4rem 0; }

  .nav-aside .lang-switch { order: 2; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #f6f0e4;
  padding-top: 8rem;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(15,14,12,.55) 0%, rgba(15,14,12,.35) 40%, rgba(15,14,12,.78) 100%),
    var(--hero-bg, none),
    linear-gradient(135deg, #2a241c, #0f0e0c);
  background-size: cover;
  background-position: center;
  z-index: -1;
}
.hero h1 { color: #fff; max-width: 16ch; margin-bottom: 1.5rem; }
.hero .eyebrow { color: var(--accent-soft); }
.hero p { color: #e3dccb; max-width: 50ch; margin-bottom: 2.5rem; font-size: 1.125rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  writing-mode: vertical-rl;
  padding-left: 1rem;
}
.hero-scroll::before {
  content: '';
  position: absolute;
  top: -3rem; left: 50%;
  width: 1px; height: 2.5rem;
  background: rgba(255,255,255,.4);
  animation: scrollHint 2.4s var(--ease) infinite;
}
@keyframes scrollHint {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; }
  50%      { transform: scaleY(1);   transform-origin: top; }
}

/* hero variants for inner pages */
.hero--inner { min-height: 65vh; }
.hero--inner::before {
  background-image:
    linear-gradient(180deg, rgba(15,14,12,.65), rgba(15,14,12,.55)),
    var(--hero-bg, none),
    linear-gradient(135deg, #2a241c, #0f0e0c);
  background-size: cover;
  background-position: center;
}

/* ==========================================================================
   Generic two-column / about
   ========================================================================== */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }

.split-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-alt);
}
.split-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.split-media:hover img { transform: scale(1.05); }

.split-media::after {
  content: '';
  position: absolute;
  inset: auto -2rem -2rem auto;
  width: 60%; height: 60%;
  border: 1px solid var(--accent);
  z-index: -1;
}

.split-body p + p { margin-top: 1.25rem; }
.split-body .btn { margin-top: 2rem; }

@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse { direction: ltr; }
}

/* ==========================================================================
   Stats strip
   ========================================================================== */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.stat {
  padding: 2.5rem 1.5rem;
  background: var(--bg);
  text-align: center;
}
.stat .num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  color: var(--accent);
  line-height: 1;
  display: block;
}
.stat .label {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 700px) {
  .stats { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   Collection grid
   ========================================================================== */

.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(1.25rem, 2vw, 2rem);
}

.stone-card {
  position: relative;
  background: var(--surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.stone-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.stone-card .media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-alt);
}
.stone-card .media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.stone-card:hover .media img { transform: scale(1.06); }

.stone-card .body {
  padding: 1.5rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.stone-card .type {
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}
.stone-card h3 { font-size: 1.5rem; }
.stone-card .origin {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* ==========================================================================
   Project gallery
   ========================================================================== */

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 22vw;
  gap: clamp(1rem, 1.5vw, 1.5rem);
  min-height: 80vh;
}
.project {
  position: relative;
  overflow: hidden;
  background: var(--bg-alt);
}
.project img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.project:hover img { transform: scale(1.08); }
.project::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(15,14,12,.7));
  pointer-events: none;
}
.project .caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.5rem;
  color: #fff;
  z-index: 1;
}
.project .caption .label {
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-soft);
}
.project .caption h3 {
  color: #fff;
  font-size: 1.6rem;
  margin-top: 0.4rem;
}

.project--lg { grid-column: span 7; grid-row: span 2; }
.project--md { grid-column: span 5; grid-row: span 1; }
.project--sm { grid-column: span 4; grid-row: span 1; }
.project--wide { grid-column: span 8; grid-row: span 1; }

@media (max-width: 880px) {
  .project-grid { grid-template-columns: 1fr; grid-auto-rows: 60vw; }
  .project { grid-column: 1 / -1 !important; grid-row: span 1 !important; }
}

/* ==========================================================================
   Services / capabilities
   ========================================================================== */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.feature {
  padding: 2.5rem 2rem;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: background .35s var(--ease);
}
.feature:hover { background: var(--bg-alt); }
.feature .num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.feature h3 { font-size: 1.4rem; }
.feature p { color: var(--muted); font-size: 0.95rem; }

/* ==========================================================================
   Dark CTA
   ========================================================================== */

.cta {
  background: var(--ink);
  color: #efe7d6;
  text-align: center;
}
.cta h2 { color: #fff; max-width: 22ch; margin: 0 auto 1.25rem; }
.cta p { color: #c2b69c; max-width: 56ch; margin: 0 auto 2.25rem; }

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info { display: flex; flex-direction: column; gap: 2rem; }
.contact-block .label {
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
  display: block;
}
.contact-block p, .contact-block a { font-size: 1.05rem; color: var(--ink-soft); }
.contact-block a:hover { color: var(--accent); }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label {
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field textarea,
.field select {
  font: inherit;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  border-radius: var(--radius-sm);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(168, 131, 90, 0.15);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: #0a0908;
  color: #b9b09a;
  padding: 5rem 0 2rem;
}
.site-footer a { color: #b9b09a; transition: color .3s var(--ease); }
.site-footer a:hover { color: var(--accent); }

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid #1c1a17;
}
@media (max-width: 800px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
}

.footer-brand .brand { color: #fff; font-size: 1.8rem; }
.footer-brand p { margin-top: 1.25rem; max-width: 32ch; font-size: 0.95rem; color: #8a8270; }

.footer-col h4 {
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col li { font-size: 0.95rem; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  font-size: 0.78rem;
  color: #6e6754;
}
.footer-bottom a:hover { color: #fff; }

.socials { display: flex; gap: 1rem; }
.socials a {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #2a261d;
  border-radius: 50%;
  transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.socials a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.socials svg { width: 14px; height: 14px; }

@media (max-width: 600px) {
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

.site-footer .footer-tasceken {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding-top: 1.75rem;
  margin-top: 1.5rem;
  border-top: 1px solid #1c1a17;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #6e6754;
  transition: color .3s var(--ease);
}
.site-footer .footer-tasceken:hover { color: var(--accent); }
.footer-tasceken img {
  height: 22px;
  width: auto;
  opacity: 0.85;
  transition: opacity .3s var(--ease);
}
.footer-tasceken:hover img { opacity: 1; }

/* ==========================================================================
   Tasceken Holding showcase section
   ========================================================================== */

.tasceken-section {
  background: linear-gradient(135deg, #0f0e0c 0%, #1a1612 100%);
  color: #efe7d6;
  position: relative;
  overflow: hidden;
}
.tasceken-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.08), transparent 50%);
  pointer-events: none;
}
.tasceken-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 800px) {
  .tasceken-grid { grid-template-columns: 1fr; text-align: center; }
  .tasceken-grid .tasceken-logo-wrap { margin: 0 auto; }
}

.tasceken-logo-wrap {
  display: block;
  max-width: 320px;
  padding: 3rem 2rem;
  border: 1px solid rgba(212, 175, 55, 0.25);
  position: relative;
  transition: border-color .35s var(--ease), background .35s var(--ease);
}
.tasceken-logo-wrap:hover {
  border-color: rgba(212, 175, 55, 0.55);
  background: rgba(212, 175, 55, 0.04);
}
.tasceken-logo-wrap::before,
.tasceken-logo-wrap::after {
  content: '';
  position: absolute;
  width: 36px; height: 36px;
  border: 1px solid #d4af37;
}
.tasceken-logo-wrap::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.tasceken-logo-wrap::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.tasceken-logo-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.tasceken-section h2 { color: #fff; margin-bottom: 1.25rem; }
.tasceken-section p {
  color: #c2b69c;
  font-size: 1.05rem;
  max-width: 56ch;
}
.tasceken-section p + p { margin-top: 1rem; }
.tasceken-section .eyebrow { color: #d4af37; }
.tasceken-section .btn { margin-top: 2rem; }

/* ==========================================================================
   Locations grid (multi-office)
   ========================================================================== */

.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.location {
  padding: 2.25rem 1.75rem;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.location .kind {
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}
.location h3 {
  font-size: 1.35rem;
  color: var(--ink);
}
.location p { color: var(--muted); font-size: 0.95rem; line-height: 1.6; }

/* ==========================================================================
   "Coming soon" placeholder card
   ========================================================================== */

.stone-card.is-soon { background: var(--bg-alt); border-style: dashed; }
.stone-card.is-soon .media {
  background:
    repeating-linear-gradient(45deg, transparent 0 10px, rgba(168, 131, 90, 0.05) 10px 20px),
    var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-style: italic;
  letter-spacing: 0.05em;
}
.stone-card.is-soon .body .type { color: var(--muted); }
.stone-card.is-soon .body h3 { color: var(--muted); }
.stone-card.is-soon:hover { transform: none; box-shadow: none; }

/* ==========================================================================
   "In Spaces" lifestyle grid
   ========================================================================== */

.in-spaces-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 1.6vw, 1.75rem);
  align-items: stretch;
}
@media (max-width: 1024px) {
  .in-spaces-grid { grid-template-columns: repeat(2, 1fr); }
}
.in-space {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--bg-alt);
  display: block;
}
.in-space img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.in-space:hover img { transform: scale(1.05); }
.in-space::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(15,14,12,.18));
  pointer-events: none;
}

@media (max-width: 600px) {
  .in-spaces-grid { grid-template-columns: 1fr; }
  .in-space { aspect-ratio: 4 / 5; }
}

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
