/* ==========================================================================
   Marjan Ahrabi Fard Studio — Design System
   ========================================================================== */

@font-face {
  font-family: 'IRANYekanX';
  src: url('fonts/IRANYekanX-Thin.woff2') format('woff2');
  font-weight: 100; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IRANYekanX';
  src: url('fonts/IRANYekanX-Light.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IRANYekanX';
  src: url('fonts/IRANYekanX-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IRANYekanX';
  src: url('fonts/IRANYekanX-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IRANYekanX';
  src: url('fonts/IRANYekanX-DemiBold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IRANYekanX';
  src: url('fonts/IRANYekanX-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IRANYekanX';
  src: url('fonts/IRANYekanX-Black.woff2') format('woff2');
  font-weight: 900; font-style: normal; font-display: swap;
}

:root {
  /* palette — deep, moody, editorial */
  --ink:        #171310;
  --ink-soft:   #221c17;
  --paper:      #f6f1e9;
  --paper-dim:  #ece4d6;
  --clay:       #b0563a;
  --clay-soft:  #c98363;
  --sand:       #cab9a1;
  --olive:      #6a6a4c;
  --line:       rgba(246,241,233,0.14);
  --line-dark:  rgba(23,19,16,0.12);

  --f-display: 'IRANYekanX', serif;
  --f-body:    'IRANYekanX', sans-serif;

  --ease: cubic-bezier(.16,.84,.24,1);
  --ease-soft: cubic-bezier(.4,0,.2,1);
}

html:is([lang|="en"],[lang|="fr"]) {
  --f-display: 'Fraunces', Georgia, serif;
  --f-body: 'Inter', -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
[dir="rtl"] body { direction: rtl; }

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5vw;
}
.section {
  padding-top: clamp(90px, 12vw, 160px);
  padding-bottom: clamp(90px, 12vw, 160px);
}

/* ---------- type scale ---------- */
.eyebrow {
  font-family: var(--f-body);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 600;
  display: inline-block;
}
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 500; line-height: 1.06; margin: 0; letter-spacing: -0.01em; }
[lang="fa"] h1, [lang="fa"] h2, [lang="fa"] h3, [lang="fa"] h4 { font-weight: 600; letter-spacing: 0; line-height: 1.3; }
.display-1 { font-size: clamp(3rem, 8vw, 8.5rem); }
.display-2 { font-size: clamp(2.4rem, 5.6vw, 5.6rem); }
.display-3 { font-size: clamp(1.8rem, 3.4vw, 3rem); }
.italic { font-style: italic; }
html[lang="fa"] .italic { font-style: normal; }
p.lede { font-size: clamp(1.05rem, 1.4vw, 1.35rem); line-height: 1.65; color: var(--ink-soft); font-weight: 300; }
[lang="fa"] p.lede { font-weight: 400; }

/* ---------- cursor ---------- */
.cursor {
  position: fixed; top:0; left:0; width: 14px; height: 14px; border-radius: 50%;
  background: var(--clay); pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%); transition: width .35s var(--ease), height .35s var(--ease), background .35s;
  mix-blend-mode: difference;
}
.cursor.big { width: 64px; height: 64px; background: var(--paper); }
@media (hover:none) { .cursor { display:none; } }

/* ---------- buttons / links ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-body); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600;
  padding: 18px 34px; border: 1px solid currentColor; border-radius: 999px; overflow: hidden; cursor: pointer;
}
.btn span { position: relative; z-index: 2; transition: color .5s var(--ease); }
.btn::before {
  content:''; position:absolute; inset:0; background: currentColor; transform: translateY(101%);
  transition: transform .5s var(--ease); z-index: 1; border-radius: inherit;
}
.btn:hover::before { transform: translateY(0); }
.btn.on-dark { color: var(--paper); }
.btn.on-dark:hover span { color: var(--ink); }
.btn.on-light { color: var(--ink); }
.btn.on-light:hover span { color: var(--paper); }

.link-underline { position: relative; }
.link-underline::after {
  content:''; position:absolute; left:0; right:0; bottom:-4px; height:1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
[dir="rtl"] .link-underline::after { transform-origin: left; }
.link-underline:hover::after { transform: scaleX(1); transform-origin: left; }
[dir="rtl"] .link-underline:hover::after { transform-origin: right; }

/* ---------- header ---------- */
.header-scrim {
  position: fixed; top:0; left:0; right:0; height:180px; z-index:499; pointer-events:none;
  background: linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,0) 100%);
}
.site-header {
  position: fixed; top:0; left:0; right:0; z-index: 500;
  display:grid; grid-template-columns: 1fr auto 1fr; align-items:center;
  min-height: 26px;
  padding: 28px 5vw; mix-blend-mode: difference;
  transition: background .4s var(--ease), padding .4s var(--ease), backdrop-filter .4s;
  background: transparent;
}
.site-header, .site-header a { color: var(--paper); line-height: 1; }
.site-header.scrolled {
  mix-blend-mode: normal; background: rgba(23,19,16,.82); backdrop-filter: blur(10px);
  padding: 16px 5vw; box-shadow: 0 1px 0 rgba(246,241,233,.08);
}
.logo-mark { width: 62px; height: 62px; border-radius: 50%; overflow:hidden; justify-self:center; align-self:center; grid-column:2; grid-row:1; transition: width .4s var(--ease), height .4s var(--ease); }
.site-header.scrolled .logo-mark { width: 46px; height: 46px; }
.logo-mark img { width:100%; height:100%; object-fit: cover; }
.nav-toggle {
  justify-self:end; align-self:center; grid-column:3; grid-row:1;
  display:inline-flex; align-items:center; gap: 14px; cursor: pointer; background:none; border:none; color:inherit;
  font-family: var(--f-body); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; line-height:1; padding:0;
}
.nav-toggle .bars { width: 30px; height: 10px; position: relative; flex-shrink:0; }
.nav-toggle .bars span { position:absolute; left:0; right:0; height:1px; background: currentColor; transition: transform .3s, opacity .3s; }
.nav-toggle .bars span:first-child { top:0; } .nav-toggle .bars span:last-child { bottom:0; }

.lang-switch { justify-self:start; align-self:center; grid-column:1; grid-row:1; display:inline-flex; gap:8px; align-items:center; font-size: 12px; letter-spacing:.14em; text-transform:uppercase; line-height:1; }
.lang-switch a { opacity:.45; transition: opacity .3s; }
.lang-switch a.active { opacity:1; }
.lang-switch a:hover { opacity: 1; }

/* full screen menu overlay */
.menu-overlay {
  position: fixed; inset:0; background: var(--ink); z-index: 900;
  display:flex; flex-direction:column; justify-content:center; padding: 5vw;
  clip-path: circle(0% at 92% 5%); transition: clip-path .9s var(--ease);
  pointer-events: none;
}
.menu-overlay.open { clip-path: circle(150% at 92% 5%); pointer-events: all; }
.menu-close {
  position:absolute; top:32px; inset-inline-end:5vw; z-index:2; background:none; border:none; cursor:pointer;
  width:44px; height:44px; color:var(--paper);
}
.menu-close::before, .menu-close::after {
  content:''; position:absolute; top:50%; left:50%; width:26px; height:1px; background:currentColor;
}
.menu-close::before { transform:translate(-50%,-50%) rotate(45deg); }
.menu-close::after { transform:translate(-50%,-50%) rotate(-45deg); }
.menu-overlay nav { display:flex; flex-direction:column; gap: 2px; max-height:78vh; overflow-y:auto; }
.menu-overlay a.menu-link {
  font-family: var(--f-display); font-size: clamp(1.15rem,3vw,2.1rem); color: var(--paper); font-weight:500;
  overflow:hidden; position:relative; padding: 12px 0; border-bottom: 1px solid var(--line);
}
[lang="fa"] .menu-overlay a.menu-link { font-weight: 600; }
.menu-overlay a.menu-link span { display:inline-block; transition: transform .6s var(--ease), color .4s; }
.menu-overlay a.menu-link:hover span { transform: translateX(18px); color: var(--clay-soft); }
[dir="rtl"] .menu-overlay a.menu-link:hover span { transform: translateX(-18px); }
.menu-overlay .menu-foot { margin-top: 40px; display:flex; gap:28px; font-size:12px; letter-spacing:.14em; text-transform:uppercase; color: var(--sand); }

/* ---------- reveal animation base states (GSAP sets final state) ---------- */
.reveal { opacity: 0; transform: translateY(40px); }
.reveal-img { overflow: hidden; }
.reveal-img img { transform: scale(1.15); }

/* ---------- shared zoom lightbox (triggered by .js-lightbox buttons, see site.js) ---------- */
.c-lightbox {
  position:fixed; inset:0; z-index:1000; background: rgba(15,12,10,.94); display:flex; flex-direction:column;
  align-items:center; justify-content:center; padding: 40px 5vw; gap:20px;
}
/* `display:flex` above is author CSS and always wins over the UA default `[hidden]{display:none}`
   (origin beats specificity/order in the cascade) — without this override the overlay showed on
   every page load instead of only after a .js-lightbox click. */
.c-lightbox[hidden] { display: none; }
.c-lightbox .lb-img { max-width:min(92vw,1100px); max-height:78vh; object-fit:contain; border-radius:4px; }
.c-lightbox .lb-caption { color:var(--paper); opacity:.75; font-size:14px; text-align:center; max-width:60ch; }
.c-lightbox .lb-close {
  position:absolute; top:26px; inset-inline-end:26px; width:46px; height:46px; border-radius:50%; border:1px solid var(--line);
  background:none; color:var(--paper); display:flex; align-items:center; justify-content:center; cursor:pointer; transition: all .3s var(--ease);
}
.c-lightbox .lb-close:hover { background:var(--clay); border-color:var(--clay); }
.c-lightbox .lb-close svg { width:18px; height:18px; }

/* ---------- reusable "zoomable image strip with caption" cell dressing (used by .c-strip and .bd-gallery) ---------- */
.js-lightbox { position:relative; cursor:zoom-in; }
/* Caption/icon/gradient are always visible (not hover-revealed) — z-index keeps them above the
   darkening gradient, which previously painted over the text since ::after paints last by default. */
.js-lightbox::after {
  content:''; position:absolute; inset:0; z-index:1; pointer-events:none;
  background: linear-gradient(180deg, rgba(23,19,16,0) 45%, rgba(23,19,16,.78) 100%);
}
.js-lightbox .zoom-hint {
  position:absolute; top:14px; inset-inline-end:14px; z-index:2; width:36px; height:36px; border-radius:50%;
  background: rgba(23,19,16,.5); color:var(--paper); display:flex; align-items:center; justify-content:center;
  backdrop-filter: blur(2px); pointer-events:none; transition: transform .35s var(--ease), background .35s var(--ease);
}
.js-lightbox .zoom-hint svg { width:16px; height:16px; }
.js-lightbox:hover .zoom-hint, .js-lightbox:focus-visible .zoom-hint { transform:scale(1.1); background: rgba(23,19,16,.7); }
.js-lightbox .cell-caption {
  position:absolute; left:16px; right:16px; bottom:14px; z-index:2; color:var(--paper); font-size:13px; line-height:1.5;
  text-align:start; pointer-events:none;
}

/* ---------- footer ---------- */
.site-footer {
  position:relative; overflow:hidden; background: var(--ink); color: var(--paper);
  padding: clamp(70px,9vw,110px) 5vw 0;
}
.site-footer::before {
  /* soft radial glow, purely decorative — gives the flat ink background depth */
  content:''; position:absolute; inset-inline-end:-10%; top:-30%; width:56%; aspect-ratio:1;
  background: radial-gradient(circle, rgba(176,86,58,.16) 0%, rgba(176,86,58,0) 70%);
  pointer-events:none;
}
.site-footer .container { position:relative; z-index:1; }

.foot-head { display:flex; align-items:center; justify-content:space-between; gap:24px; padding-bottom:52px; margin-bottom:56px; border-bottom: 1px solid var(--line); flex-wrap:wrap; }
.foot-brand { display:flex; align-items:center; gap:20px; }
.foot-logo {
  width:64px; height:64px; border-radius:50%; overflow:hidden; flex-shrink:0; background:var(--paper-dim);
  border:1px solid rgba(246,241,233,.18); box-shadow: 0 0 0 6px rgba(246,241,233,.04);
}
.foot-logo img { width:100%; height:100%; object-fit:cover; }
.foot-word { font-family:var(--f-display); font-size:1.4rem; font-weight:600; }
.foot-word span { display:block; font-family:var(--f-body); font-size:12px; font-weight:400; letter-spacing:.08em; opacity:.55; margin-top:7px; text-transform:uppercase; }

.foot-top-link {
  display:flex; align-items:center; gap:12px; padding:10px 10px 10px 22px; border-radius:999px;
  border:1px solid var(--line); font-size:12px; font-weight:600; letter-spacing:.1em; text-transform:uppercase;
  color: var(--paper); opacity:.8; transition: all .35s var(--ease);
}
html:is([lang|="en"],[lang|="fr"]) .foot-top-link { padding:10px 22px 10px 10px; }
.foot-top-link:hover { opacity:1; border-color: var(--clay); background: rgba(176,86,58,.1); }
.foot-top-link .arrow { width:34px; height:34px; border-radius:50%; background: var(--clay); color:var(--paper); display:flex; align-items:center; justify-content:center; flex-shrink:0; transition: transform .35s var(--ease); }
.foot-top-link .arrow svg { width:15px; height:15px; }
.foot-top-link:hover .arrow { transform: translateY(-3px); }

.foot-grid { display:grid; grid-template-columns:1.3fr .85fr .85fr; gap: 40px; }
@media (max-width:820px){ .foot-grid { grid-template-columns: 1fr; gap:44px; } }
.foot-col h6 { display:flex; align-items:center; gap:10px; font-size:12px; letter-spacing:.18em; text-transform:uppercase; color: var(--sand); margin: 0 0 20px; font-weight:600; }
.foot-col h6::before { content:''; width:16px; height:1px; background: var(--clay-soft); }
.foot-col p { opacity:.65; font-size:14px; line-height:1.9; max-width:34ch; margin:0 0 26px; }
.foot-col > a { display:flex; align-items:center; gap:10px; opacity:.75; margin: 0 0 14px; font-size: 14px; transition: opacity .3s, transform .3s; width:fit-content; }
.foot-col > a svg { width:15px; height:15px; flex-shrink:0; opacity:.6; }
.foot-col > a:hover { opacity: 1; color: var(--clay-soft); transform: translateX(6px); }
html:is([lang|="en"],[lang|="fr"]) .foot-col > a:hover { transform: translateX(-6px); }
.foot-location { display:flex; align-items:center; gap:10px; opacity:.55; font-size:13px; margin-top:4px; }
.foot-location svg { width:15px; height:15px; flex-shrink:0; }

.foot-social { display:flex; gap:12px; }
.social-btn {
  width:42px; height:42px; border-radius:50%; border:1px solid var(--line); display:flex;
  align-items:center; justify-content:center; color:var(--paper); transition: all .35s var(--ease);
}
.social-btn svg { width:17px; height:17px; }
.social-btn:hover { background: var(--clay); border-color: var(--clay); transform: translateY(-4px); }

.foot-bottom {
  margin-top: 64px; padding: 24px 0; border-top: 1px solid var(--line);
  display:flex; justify-content:space-between; opacity:.45; font-size:12px; flex-wrap:wrap; gap:10px;
}

/* ---------- hero (mireya-style split slider) ---------- */
.hero { position: relative; height: 100vh; min-height: 720px; display:flex; overflow:hidden; background:var(--ink); }
.hero-panel {
  position:relative; z-index:2; width: 44%; min-width: 380px; padding: 130px 4.5vw 70px; color: var(--paper);
  display:flex; flex-direction:column; justify-content:center;
  background-image: radial-gradient(rgba(246,241,233,0.16) 1px, transparent 1.5px);
  background-size: 16px 16px;
}
.hero-panel::before { content:''; position:absolute; inset:0; background: linear-gradient(180deg, var(--ink) 0%, var(--ink-soft) 100%); z-index:-1; }
.hero-tag { display:flex; align-items:center; gap:12px; margin-bottom:26px; }
.hero-tag .dash { width:26px; height:2px; background: var(--clay-soft); }
.hero-tag span { font-size:11px; letter-spacing:.28em; text-transform:uppercase; color: var(--sand); font-weight:600; }
.hero-title { font-family: var(--f-display); font-weight:700; font-size: clamp(2.1rem, 3.8vw, 3.8rem); line-height:1.28; }
.hero-title .line2 { display:block; color: var(--clay-soft); }
.hero-sub { margin-top: 28px; max-width: 40ch; font-size: 1.05rem; color: var(--paper); opacity:.72; font-weight:400; line-height:1.9; }
.hero-ctas { display:flex; gap:16px; margin-top:44px; flex-wrap:wrap; }
.hero-ctas .btn { padding: 16px 30px; font-size:12px; }
/* inset-inline-end (not left) so these always sit over .hero-media (the image), never .hero-panel
   (the text). .hero-media is the SECOND child of a plain flex row, so direction flips which side
   it lands on: physical-right in en (ltr), physical-left in fa (rtl) — exactly what inset-inline-end
   resolves to in each case, so the controls track the image automatically in both languages. */
.hero-dots { position:absolute; top:50%; transform:translateY(-50%); z-index:5; display:flex; flex-direction:column; gap:14px; inset-inline-end:22px; }
.hero-dots button { width:22px; height:2px; background: rgba(246,241,233,.4); border:none; cursor:pointer; transition: all .4s; padding:0; }
.hero-dots button.active { width:34px; background: var(--clay-soft); }
.hero-slidenav { position:absolute; bottom:34px; z-index:5; display:flex; align-items:center; gap:18px; color: var(--paper); inset-inline-end:4.5vw; }
.hero-slidenav span { font-size:10px; letter-spacing:.22em; text-transform:uppercase; opacity:.55; }
.hero-slidenav .arrows { display:flex; gap:10px; }
.hero-slidenav button { width:38px; height:38px; border-radius:50%; border:1px solid rgba(246,241,233,.35); background:none; color:var(--paper); cursor:pointer; display:flex; align-items:center; justify-content:center; transition: all .3s; }
.hero-slidenav button:hover { background: var(--paper); color: var(--ink); }
.hero-media { position:relative; flex:1; overflow:hidden; }
.hero-media .slide-img { position:absolute; inset:0; opacity:0; transition: opacity 1.1s var(--ease); }
.hero-media .slide-img.active { opacity:1; }
.hero-media .slide-img img { width:100%; height:100%; object-fit:cover; filter: saturate(1.05) brightness(.92); }
.hero-media::after { content:''; position:absolute; inset:0; background: linear-gradient(-90deg, rgba(23,19,16,.5) 0%, rgba(23,19,16,0) 18%); }
.hero-slide-text { display:none; } .hero-slide-text.active { display:block; }
@media (max-width: 860px) { .hero { flex-direction:column; height:auto; min-height:100vh; } .hero-panel { width:100%; padding-top:110px; } .hero-media { min-height:46vh; } .hero-dots { display:none; } }

/* ---------- scattered words (home) ---------- */
.scatter { display:flex; align-items:center; gap:6vw; flex-wrap:wrap; }
.scatter-text { flex: 1 1 420px; }
.scatter .word { font-family: var(--f-display); font-weight:600; line-height:1.3; position:relative; }
.scatter .w1 { font-size:clamp(2rem,5vw,4.6rem); }
.scatter .w2 { font-size:clamp(2rem,5vw,4.6rem); font-weight:600; color:var(--clay); margin-inline-start: 6vw; }
.scatter .w3 { font-size:clamp(2rem,5vw,4.6rem); margin-inline-start: 10vw; }
.scatter-body { max-width:34ch; margin-top:40px; margin-inline-start:2vw; }
.scatter-collage { position:relative; flex: 0 0 min(34vw,380px); height: 420px; }
.scatter-collage .c1, .scatter-collage .c2 { position:absolute; border-radius:4px; overflow:hidden; box-shadow:0 40px 80px -30px rgba(23,19,16,.4); }
.scatter-collage .c1 { width:72%; height:78%; top:0; inset-inline-end:0; }
.scatter-collage .c2 { width:56%; height:52%; bottom:0; inset-inline-start:0; border:6px solid var(--paper); }
.scatter-collage img { width:100%; height:100%; object-fit:cover; }
@media (max-width:760px){ .scatter-collage { display:none; } }

/* ---------- split narrative (home) ---------- */
.narrative { display:grid; grid-template-columns:1fr; gap:0; }
@media (min-width:900px){ .narrative { grid-template-columns: 1fr 1fr; } }
.narrative .side { position:relative; min-height:70vh; overflow:hidden; }
.narrative .side img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.narrative .copy { display:flex; flex-direction:column; justify-content:center; padding: 8vw 6vw; background: var(--ink); color:var(--paper); }
.narrative .copy h2 { font-family: var(--f-display); font-size:clamp(1.9rem,3.4vw,3rem); font-weight:600; }
.narrative .copy h2 em { color:var(--clay-soft); font-style:normal; font-weight:700; }
.narrative .copy p { margin-top:26px; max-width:42ch; opacity:.75; font-weight:400; line-height:1.9; }

/* ---------- about teaser (home) ---------- */
.about-teaser { display:grid; grid-template-columns:1fr; }
@media (min-width:900px){ .about-teaser { grid-template-columns: .8fr 1.2fr; } }
.about-teaser .photo { position:relative; overflow:hidden; background:var(--paper-dim); }
.about-teaser .photo img { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; object-position: center; }
.about-teaser .copy { padding: 8vw 6vw; display:flex; flex-direction:column; justify-content:center; background: var(--paper-dim); }
.about-teaser .copy h2 { font-family: var(--f-display); font-weight:600; font-size:clamp(1.9rem,3.6vw,3.2rem); }
.about-teaser .copy h2 em { font-style:normal; color:var(--clay); font-weight:700; }
.about-teaser .copy p { margin-top:24px; max-width:46ch; opacity:.75; font-weight:400; line-height:1.9; }
.about-teaser .stats { display:flex; gap:50px; margin-top:44px; flex-wrap:wrap; }
.about-teaser .stats .stat b { display:block; font-family:var(--f-display); font-size:2.2rem; color:var(--clay); font-weight:700; }
.about-teaser .stats .stat span { font-size:12px; letter-spacing:.06em; opacity:.6; }

/* ---------- object shelf (home) ---------- */
.shelf-head { display:flex; justify-content:space-between; align-items:flex-end; gap:20px; flex-wrap:wrap; margin-bottom:60px; }
.shelf-nav { display:flex; gap:12px; }
.shelf-nav button { width:48px; height:48px; border-radius:50%; border:1px solid var(--line-dark); background:none; color:var(--ink); cursor:pointer; font-size:16px; transition: all .35s var(--ease); }
.shelf-nav button:hover { background:var(--ink); color:var(--paper); transform: scale(1.08); }
.shelf-wrap { position:relative; }
.shelf { display:flex; gap:34px; overflow-x:auto; padding-bottom: 30px; scrollbar-width:none; scroll-behavior:smooth; scroll-snap-type: x mandatory; cursor:grab; user-select:none; }
.shelf::-webkit-scrollbar{display:none;}
.shelf.dragging { scroll-snap-type: none; scroll-behavior: auto; }
.obj-card { flex: 0 0 320px; cursor:pointer; scroll-snap-align:start; perspective:800px; }
.obj-frame { position:relative; aspect-ratio:4/5; overflow:hidden; background:#eee2d0; border-radius:2px; transition: transform .5s var(--ease), box-shadow .5s; }
.obj-frame img { width:100%; height:100%; object-fit:cover; transition: transform 1s var(--ease); pointer-events:none; }
.obj-card:hover .obj-frame { transform: translateY(-10px); box-shadow: 0 30px 50px -20px rgba(23,19,16,.35); }
.obj-card:hover .obj-frame img { transform: scale(1.08); }
.obj-add { position:absolute; bottom:14px; inset-inline-end:14px; width:38px; height:38px; border-radius:50%; background:var(--paper); display:flex; align-items:center; justify-content:center; transform: scale(0); transition: transform .4s var(--ease); }
.obj-add::before, .obj-add::after { content:''; position:absolute; background:var(--ink); }
.obj-add::before { width:14px; height:1.5px; } .obj-add::after { width:1.5px; height:14px; }
.obj-card:hover .obj-add { transform: scale(1); }
.obj-meta { margin-top:20px; display:flex; justify-content:space-between; align-items:baseline; }
.obj-meta h4 { font-family:var(--f-display); font-weight:600; font-size:1.15rem; transition: color .3s; }
.obj-card:hover .obj-meta h4 { color: var(--clay); }
.obj-meta span { font-size:13px; opacity:.55; font-weight:400; }

/* ---------- services list (legacy row style, kept for reference) ---------- */
.svc-row { display:flex; align-items:baseline; justify-content:space-between; padding:38px 0; border-top:1px solid var(--line-dark); gap:20px; }
.svc-row:last-child { border-bottom:1px solid var(--line-dark); }
.svc-row h3 { font-family:var(--f-display); font-weight:600; font-size:clamp(1.4rem,3vw,2.3rem); transition: color .4s, transform .4s; }
.svc-row:hover h3 { color:var(--clay); transform: translateX(-14px); }
.svc-row .sidx { font-size:13px; opacity:.4; }
.svc-row .slink { font-family:var(--f-display); font-weight:600; opacity:0; transition: opacity .4s; color:var(--clay); }
.svc-row:hover .slink { opacity:1; }

/* ---------- services card grid (home) ---------- */
.svc-section { background: var(--paper-dim); padding: clamp(90px,12vw,150px) 5vw; }
.svc-head { text-align:center; margin-bottom:64px; }
.svc-head h2 { font-family:var(--f-display); font-weight:600; font-size:clamp(1.7rem,3.2vw,2.6rem); margin-top:16px; }
html:is([lang|="en"],[lang|="fr"]) .svc-head h2 { font-weight:500; }
.svc-head h2 em { color:var(--clay); font-style:normal; }
html:is([lang|="en"],[lang|="fr"]) .svc-head h2 em { font-style:italic; font-weight:400; }
.svc-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:26px; max-width:1200px; margin:0 auto; }
@media (min-width:900px){ .svc-grid { grid-template-columns:repeat(4,1fr); } }
.svc-card {
  background:var(--paper); border-radius:18px; padding:46px 30px; display:flex; flex-direction:column;
  align-items:center; text-align:center; gap:18px; border:1px solid rgba(23,19,16,.06);
  box-shadow: 0 16px 32px -22px rgba(23,19,16,.28);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.svc-card:hover { transform: translateY(-8px); box-shadow: 0 30px 46px -20px rgba(23,19,16,.32); border-color: rgba(176,86,58,.3); }
.svc-card .svc-icon {
  width:60px; height:60px; border-radius:50%; background: rgba(176,86,58,.1); display:flex;
  align-items:center; justify-content:center; color:var(--clay); flex-shrink:0;
  transition: all .4s var(--ease);
}
.svc-card:hover .svc-icon { background:var(--clay); color:var(--paper); transform:scale(1.08); }
.svc-card .svc-icon svg { width:24px; height:24px; }
.svc-card h3 { font-family:var(--f-display); font-weight:600; font-size:1.15rem; line-height:1.5; }
.svc-card .divider { width:28px; height:1px; background: var(--line-dark); margin-top:-4px; }
.svc-card .slink { font-size:12px; color:var(--clay); font-weight:600; margin-top:auto; padding-top:4px; opacity:.85; transition: opacity .3s, transform .3s; }
.svc-card:hover .slink { opacity:1; transform: translateY(2px); }
html:is([lang|="en"],[lang|="fr"]) .svc-card .slink { letter-spacing:.1em; text-transform:uppercase; }

.kwcta { background: var(--ink); color:var(--paper); text-align:center; padding: clamp(120px,16vw,240px) 5vw; }
.kwcta h2 { font-family:var(--f-display); font-weight:700; font-size:clamp(1.9rem,4.6vw,4rem); }
.kwcta h2 em { font-style:normal; font-weight:700; color:var(--clay-soft); }

/* utility */
.flex { display:flex; }
.center { text-align:center; }
.mt-xxl { margin-top: 12vw; }
.grain { position: fixed; inset:0; pointer-events:none; z-index: 300; opacity:.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
