/* Quarry House design reminder: warm mineral surfaces, dark architectural bands, Cormorant-led editorial hierarchy, asymmetric composition, restrained Quarry Bronze accents, and cinematic motion. Avoid generic SaaS cards, loud gradients, excessive rounding, and invented brand claims. */

:root {
  --ivory: #f2eee5;
  --limestone: #e3dccd;
  --limestone-deep: #c9bda9;
  --charcoal: #252522;
  --charcoal-soft: #32322d;
  --brown: #514438;
  --bronze: #a7845a;
  --bronze-light: #c2a982;
  --white: #fbfaf6;
  --muted: #716b61;
  --line: rgba(37, 37, 34, 0.18);
  --line-light: rgba(251, 250, 246, 0.22);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;
  --arabic-sans: "Noto Kufi Arabic", Arial, sans-serif;
  --arabic-serif: "Noto Serif Arabic", Georgia, serif;
  --shell: min(1320px, calc(100% - 9vw));
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ivory); }
body { margin: 0; background: var(--ivory); color: var(--charcoal); font-family: var(--sans); font-size: 15px; line-height: 1.7; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 20; opacity: .08; background-image: url("img/quarry-paper-grain.jpg"); background-size: 700px auto; mix-blend-mode: multiply; }
body.menu-open { overflow: hidden; }
img { display: block; width: 100%; max-width: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--bronze); outline-offset: 5px; }
::selection { background: var(--bronze); color: var(--white); }
.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; }
.shell { width: var(--shell); margin-inline: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--bronze); font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: .18em; line-height: 1.5; text-transform: uppercase; }
html[dir="rtl"] body { font-family: var(--arabic-sans); }
html[dir="rtl"] .eyebrow { font-family: var(--arabic-sans); font-size: 10px; letter-spacing: 0; }
.display { margin: 0; font-family: var(--serif); font-size: clamp(3rem, 6.6vw, 7.6rem); font-weight: 500; line-height: .93; letter-spacing: -.045em; text-wrap: balance; }
html[dir="rtl"] .display, html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 { font-family: var(--arabic-serif); font-weight: 600; letter-spacing: 0; line-height: 1.18; }
.display-section { max-width: 690px; font-size: clamp(2.8rem, 5vw, 5.5rem); }
.display-page { max-width: 880px; font-size: clamp(3.4rem, 7vw, 7.8rem); }
.display-hero { max-width: 950px; color: var(--white); }
.display-cta { max-width: 960px; font-size: clamp(3.2rem, 7vw, 8rem); }
p { margin: 0; }
.section-pad { padding-block: clamp(5.5rem, 11vw, 11rem); }
.section-dark { position: relative; isolation: isolate; background: var(--charcoal); color: var(--white); }
.section-dark::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .18; background: url("img/quarry-dark-stone-texture.jpg") center / cover; mix-blend-mode: screen; }
.section-stone { position: relative; isolation: isolate; background: var(--limestone); }
.section-stone::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .12; background: url("img/quarry-limestone-texture.jpg") center / cover; mix-blend-mode: multiply; }

/* Header */
.site-header { position: fixed; top: 0; inset-inline: 0; z-index: 100; color: var(--white); transition: background .55s var(--ease), color .55s var(--ease), box-shadow .55s var(--ease), transform .55s var(--ease), backdrop-filter .55s var(--ease); }
.site-header:not(.header-on-dark) { color: var(--charcoal); background: rgba(242, 238, 229, .72); backdrop-filter: blur(10px); }
.site-header.is-scrolled { background: rgba(242, 238, 229, .86); box-shadow: 0 12px 36px rgba(37, 37, 34, .11); backdrop-filter: blur(18px); }
.site-header.is-scrolled.header-on-dark { background: rgba(20, 19, 17, .5); box-shadow: 0 12px 36px rgba(0, 0, 0, .22); backdrop-filter: blur(18px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 90px; width: var(--shell); margin-inline: auto; gap: 32px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; width: 176px; gap: 11px; }
.brand::before { content: ""; display: block; flex: 0 0 25px; width: 25px; height: 25px; background: url("img/al-badawi-stone-marker.png") center / contain no-repeat; opacity: .9; }
.brand img { width: auto; height: 35px; object-fit: contain; filter: none; transition: filter .45s var(--ease); }
.site-header.header-on-dark .brand img { filter: brightness(0) invert(1); }
.desktop-nav { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 2.3vw, 42px); margin-inline: auto; }
.desktop-nav a { position: relative; padding-block: 10px; font-size: 11px; font-weight: 700; letter-spacing: .06em; }
html[dir="rtl"] .desktop-nav a { letter-spacing: 0; }
.desktop-nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: 2px; height: 1px; background: var(--bronze); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.desktop-nav a:hover::after, .desktop-nav a.active::after { transform: scaleX(1); transform-origin: left; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.lang-switch { border: 0; padding: 8px 0; background: transparent; font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .1em; cursor: pointer; }
.header-contact { display: inline-flex; align-items: center; min-height: 40px; padding-inline: 17px; border: 1px solid currentColor; font-size: 11px; font-weight: 700; transition: background .25s var(--ease), color .25s var(--ease); }
.header-contact:hover { background: var(--bronze); border-color: var(--bronze); color: var(--white); }
.menu-btn { display: none; border: 0; background: transparent; padding: 8px 0; cursor: pointer; }
.menu-btn span { display: block; width: 26px; height: 1px; margin: 5px 0; background: currentColor; transition: transform .4s var(--ease), opacity .3s var(--ease); }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 132px 7vw 44px; background: var(--charcoal); color: var(--white); opacity: 0; pointer-events: none; transform: translateY(-18px); transition: opacity .45s var(--ease), transform .55s var(--ease); }
.mobile-menu.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.mobile-menu nav { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
html[dir="rtl"] .mobile-menu nav { align-items: flex-start; }
.mobile-menu nav a { position: relative; font-family: var(--serif); font-size: clamp(3rem, 11vw, 5.5rem); line-height: 1.1; }
html[dir="rtl"] .mobile-menu nav a { font-family: var(--arabic-serif); font-size: clamp(2.3rem, 9vw, 4rem); }
.mobile-menu nav a::before { content: ""; position: absolute; inset-inline-start: -24px; top: 50%; width: 10px; height: 1px; background: var(--bronze); transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease); }
.mobile-menu nav a:hover::before, .mobile-menu nav a.active::before { transform: scaleX(1); }
.mobile-menu-top, .mobile-menu-bottom { display: flex; justify-content: space-between; align-items: center; color: var(--bronze-light); font-size: 10px; letter-spacing: .15em; }
html[dir="rtl"] .mobile-menu-top, html[dir="rtl"] .mobile-menu-bottom { letter-spacing: 0; }
.mobile-menu-bottom { padding-top: 26px; border-top: 1px solid var(--line-light); }
.mobile-menu-bottom a { color: var(--white); }
.scroll-progress { position: fixed; inset-inline: 0; top: 0; z-index: 110; height: 2px; pointer-events: none; }
.scroll-progress span { display: block; width: 0; height: 100%; background: var(--bronze); transition: width .1s linear; }

/* Hero */
.hero { position: relative; display: flex; align-items: flex-end; min-height: max(720px, 100svh); overflow: hidden; background: var(--charcoal); color: var(--white); }
.hero-media, .hero-scrim, .hero-grain { position: absolute; inset: 0; }
.hero-media { overflow: hidden; }
.hero-media img { height: 100%; object-position: center 42%; transform: scale(1.04); animation: hero-breathe 18s ease-out both; }
.hero-scrim { background: linear-gradient(90deg, rgba(15, 15, 13, .84) 0%, rgba(15, 15, 13, .39) 46%, rgba(15, 15, 13, .12) 100%), linear-gradient(0deg, rgba(15, 15, 13, .68) 0%, transparent 52%); }
html[dir="rtl"] .hero-scrim { background: linear-gradient(270deg, rgba(15, 15, 13, .84) 0%, rgba(15, 15, 13, .39) 46%, rgba(15, 15, 13, .12) 100%), linear-gradient(0deg, rgba(15, 15, 13, .68) 0%, transparent 52%); }
.hero-grain { opacity: .2; background: url("img/quarry-dark-stone-texture.jpg") center / cover; mix-blend-mode: soft-light; }
.hero-content { position: relative; z-index: 2; width: var(--shell); padding-block: clamp(10rem, 17vh, 13rem) clamp(6rem, 12vh, 10rem); }
.hero-kicker { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; color: var(--bronze-light); font-family: var(--sans); font-size: 10px; letter-spacing: .17em; }
html[dir="rtl"] .hero-kicker { font-family: var(--arabic-sans); letter-spacing: 0; }
.hero-kicker-line { width: 70px; height: 1px; background: currentColor; opacity: .7; }
.hero-copy { max-width: 470px; margin-top: 30px; color: rgba(251, 250, 246, .78); font-size: clamp(14px, 1.3vw, 17px); line-height: 1.95; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 38px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 25px; min-height: 52px; padding-inline: 23px; border: 1px solid transparent; font-size: 11px; font-weight: 700; cursor: pointer; transition: transform .25s var(--ease), background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease); }
.button i, .text-link i { font-family: var(--sans); font-style: normal; font-size: 16px; line-height: 1; transition: transform .35s var(--ease); }
.button:hover, .text-link:hover { transform: translateY(-3px); }
.button:hover i, .text-link:hover i { transform: translate(3px, -3px); }
.button:active { transform: scale(.97); }
.button-light { background: var(--white); color: var(--charcoal); }
.button-light:hover { background: var(--bronze); color: var(--white); }
.button-dark { background: var(--charcoal); color: var(--white); }
.button-dark:hover { background: var(--bronze); }
.button-outline-light { border-color: var(--line-light); color: var(--white); background: transparent; }
.button-outline-light:hover { border-color: var(--bronze); background: var(--bronze); }
.text-link { display: inline-flex; align-items: center; gap: 15px; border-bottom: 1px solid var(--bronze); padding-bottom: 5px; font-size: 11px; font-weight: 700; }
.text-link-light { color: var(--white); border-color: var(--bronze-light); }
.hero-rail { position: absolute; z-index: 2; inset-inline-end: 4vw; top: 50%; color: rgba(251, 250, 246, .6); font-family: var(--sans); font-size: 9px; letter-spacing: .2em; writing-mode: vertical-rl; transform: rotate(180deg) translateY(50%); }
html[dir="rtl"] .hero-rail { font-family: var(--arabic-sans); letter-spacing: 0; }
.scroll-cue { position: absolute; z-index: 3; inset-inline-end: var(--shell); bottom: 33px; display: inline-flex; align-items: center; gap: 15px; color: rgba(251, 250, 246, .68); font-size: 10px; }
.scroll-cue i { display: block; position: relative; width: 1px; height: 54px; background: var(--bronze); }
.scroll-cue i::after { content: ""; position: absolute; bottom: 0; inset-inline-start: -2px; width: 5px; height: 5px; border-inline-end: 1px solid var(--bronze); border-bottom: 1px solid var(--bronze); transform: rotate(45deg); }
.reveal-on-load { opacity: 0; transform: translateY(22px); animation: reveal-load .95s var(--ease) forwards; }
.reveal-on-load:nth-child(2) { animation-delay: .12s; }
.reveal-on-load:nth-child(3) { animation-delay: .2s; }
.reveal-on-load:nth-child(4) { animation-delay: .28s; }
@keyframes reveal-load { to { opacity: 1; transform: translateY(0); } }
@keyframes hero-breathe { from { transform: scale(1.08); } to { transform: scale(1.04); } }

/* Shared editorial sections */
.section-index { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; color: var(--bronze); font-family: var(--sans); font-size: 10px; letter-spacing: .12em; }
html[dir="rtl"] .section-index { font-family: var(--arabic-sans); letter-spacing: 0; }
.section-index i { display: block; width: 38px; height: 1px; background: currentColor; }
.section-index-light { color: var(--bronze-light); }
.split-intro { display: grid; grid-template-columns: 1fr minmax(0, 2.1fr) 1fr; gap: 6vw; align-items: start; }
.intro-main { padding-top: 24px; }
.intro-lead { max-width: 680px; margin-top: 29px; color: var(--muted); font-size: clamp(15px, 1.45vw, 19px); line-height: 2.05; }
.intro-main .text-link { margin-top: 34px; }
.intro-aside { align-self: end; padding-bottom: 4px; }
.material-note { display: flex; flex-direction: column; gap: 8px; max-width: 160px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.material-note-number { color: var(--bronze); font-family: var(--serif); font-size: 4.4rem; line-height: .8; }
.line-drawing { display: flex; justify-content: end; gap: 9px; margin-top: 70px; }
.line-drawing span { width: 1px; height: 98px; background: var(--line); }
.line-drawing span:nth-child(2) { height: 64px; margin-top: 34px; background: var(--bronze); }
.line-drawing span:nth-child(3) { height: 42px; margin-top: 56px; }
.section-heading { display: grid; grid-template-columns: 1fr minmax(0, 2fr) minmax(190px, .8fr); gap: 6vw; align-items: start; }
.section-heading > p { max-width: 270px; padding-top: 49px; color: var(--muted); line-height: 1.95; }
.section-heading-light > p { color: rgba(251, 250, 246, .64); }
.section-heading .eyebrow { margin-bottom: 26px; }
.material-list { display: grid; grid-template-columns: 1.18fr .82fr; gap: 2px; margin-top: 80px; }
.material-feature { position: relative; min-height: 430px; overflow: hidden; background: var(--brown); }
.material-feature-large { min-height: 610px; grid-row: span 2; }
.material-feature img { height: 100%; transition: transform 1s var(--ease), filter 1s var(--ease); }
.material-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14, 14, 12, .78), rgba(14, 14, 12, .06) 72%); }
.material-feature:hover img { transform: scale(1.04); filter: saturate(.8); }
.material-feature-overlay { position: absolute; z-index: 2; inset: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding: 30px; color: var(--white); }
.material-feature-overlay > div { max-width: 400px; }
.material-feature-overlay .eyebrow { margin-bottom: 8px; color: var(--bronze-light); }
.material-feature-overlay h3 { margin: 0; font-family: var(--serif); font-size: clamp(2rem, 3vw, 3.5rem); font-weight: 500; line-height: 1; }
html[dir="rtl"] .material-feature-overlay h3 { font-family: var(--arabic-serif); line-height: 1.25; }
.material-feature-overlay p { margin-top: 10px; color: rgba(251, 250, 246, .73); font-size: 12px; line-height: 1.8; }
.material-feature-overlay > a, .project-arrow { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex: 0 0 auto; border: 1px solid var(--line-light); font-size: 18px; transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease); }
.material-feature:hover .material-feature-overlay > a, .project-large:hover .project-arrow, .project-small:hover .project-arrow { background: var(--bronze); border-color: var(--bronze); transform: rotate(45deg); }
.material-no { position: absolute; top: 28px; inset-inline-end: 30px; color: rgba(251, 250, 246, .48); font-family: var(--serif); font-size: 4rem; line-height: .8; }
.projects-preview { background: var(--ivory); }
.projects-preview .section-heading { margin-bottom: 82px; }
.section-heading > .text-link { align-self: end; justify-self: end; margin-bottom: 8px; }
.project-editorial { display: grid; grid-template-columns: 1.15fr .85fr; gap: 4.5vw; align-items: start; }
.project-large, .project-small { display: block; }
.project-image { overflow: hidden; background: var(--limestone-deep); }
.project-image img { height: 100%; transition: transform 1s var(--ease), filter 1s var(--ease); }
.project-large .project-image { aspect-ratio: 1.12 / 1; }
.project-small .project-image { aspect-ratio: 1.27 / 1; }
.project-large:hover img, .project-small:hover img { transform: scale(1.045); filter: contrast(1.03) saturate(.86); }
.project-side { display: flex; flex-direction: column; gap: 6vw; padding-top: 9vw; }
.project-small-offset { margin-inline-start: 16%; }
.project-caption { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.project-caption h3 { margin: 6px 0 0; font-family: var(--serif); font-size: clamp(1.7rem, 2.5vw, 2.8rem); font-weight: 500; line-height: 1; }
html[dir="rtl"] .project-caption h3 { font-family: var(--arabic-serif); line-height: 1.25; }
.project-caption .eyebrow { color: var(--muted); }
.project-arrow { border-color: var(--line); color: var(--charcoal); }
.factory-feature { min-height: 780px; overflow: hidden; }
.factory-feature-media, .factory-feature-overlay { position: absolute; inset: 0; }
.factory-feature-media img { height: 100%; object-position: center; }
.factory-feature-overlay { background: linear-gradient(90deg, rgba(18, 18, 16, .86), rgba(18, 18, 16, .25)); }
html[dir="rtl"] .factory-feature-overlay { background: linear-gradient(270deg, rgba(18, 18, 16, .86), rgba(18, 18, 16, .25)); }
.factory-feature-content { position: relative; display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 6vw; align-items: end; min-height: 780px; padding-block: 12rem 6rem; }
.factory-copy { max-width: 700px; }
.factory-copy .eyebrow { margin-bottom: 22px; }
.factory-copy h2 { color: var(--white); }
.factory-copy p { max-width: 540px; margin-top: 28px; color: rgba(251, 250, 246, .76); font-size: 16px; line-height: 2; }
.factory-copy .button { margin-top: 35px; }
.factory-note { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; color: rgba(251, 250, 246, .62); font-family: var(--sans); font-size: 9px; letter-spacing: .16em; writing-mode: vertical-rl; transform: rotate(180deg); }
html[dir="rtl"] .factory-note { font-family: var(--arabic-sans); letter-spacing: 0; }
.factory-note i { width: 1px; height: 82px; background: var(--bronze); }
.principles { background: var(--ivory); }
.principles-grid { display: grid; grid-template-columns: 1fr 1.25fr 1.45fr; gap: 6vw; }
.principles-heading h2 { margin-top: 24px; }
.principles-list { border-top: 1px solid var(--line); }
.principle { display: grid; grid-template-columns: 44px 1fr; gap: 25px; padding-block: 24px; border-bottom: 1px solid var(--line); }
.principle > span { color: var(--bronze); font-family: var(--serif); font-size: 2rem; line-height: 1; }
.principle h3 { margin: 0; font-family: var(--serif); font-size: 2rem; font-weight: 500; line-height: 1; }
html[dir="rtl"] .principle h3 { font-family: var(--arabic-serif); line-height: 1.25; }
.principle p { max-width: 330px; margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.gallery-strip { overflow: hidden; }
.compact-heading { grid-template-columns: 1fr 2fr auto; margin-bottom: 65px; }
.compact-heading > .gallery-count { align-self: end; padding-bottom: 7px; color: var(--muted); font-family: var(--serif); font-size: 1.4rem; }
.gallery-grid { display: grid; grid-template-columns: 1.28fr .8fr .8fr; grid-template-rows: 210px 210px; gap: 12px; }
.gallery-tile { position: relative; min-height: 0; padding: 0; overflow: hidden; border: 0; background: var(--limestone-deep); cursor: zoom-in; }
.gallery-tile-wide { grid-row: span 2; }
.gallery-tile-tall { grid-column: 3; grid-row: span 2; }
.gallery-tile img { height: 100%; transition: transform 1s var(--ease), filter 1s var(--ease); }
.gallery-tile::after { content: ""; position: absolute; inset: 0; background: rgba(18, 18, 16, .03); transition: background .5s var(--ease); }
.gallery-tile:hover img { transform: scale(1.06); filter: contrast(1.04) saturate(.85); }
.gallery-tile:hover::after { background: rgba(18, 18, 16, .2); }
.gallery-tile span { position: absolute; z-index: 2; inset-inline-start: 18px; bottom: 16px; color: var(--white); font-family: var(--serif); font-size: 1.5rem; }
.catalog-callout { overflow: hidden; }
.catalog-callout-grid { display: grid; grid-template-columns: 1fr 2fr .8fr; gap: 6vw; align-items: center; }
.catalog-callout-grid h2 { margin-top: 23px; }
.catalog-callout-grid p { max-width: 400px; margin-top: 24px; color: rgba(251, 250, 246, .72); }
.catalog-callout-grid .button { margin-top: 32px; }
.catalog-mark { display: flex; flex-direction: column; align-items: center; justify-self: end; color: var(--bronze-light); text-align: center; }
.catalog-mark span { display: inline-flex; align-items: center; justify-content: center; width: 112px; height: 112px; margin-bottom: 16px; border: 1px solid var(--bronze-light); font-family: var(--serif); font-size: 3.1rem; }
.catalog-mark small { font-size: 10px; line-height: 1.8; }
.final-cta { background: var(--limestone); background-size: cover; background-position: center; }
.page-inner .final-cta { background-repeat: no-repeat; }
.page-about .final-cta { background-image: linear-gradient(90deg, rgba(242, 238, 229, .94), rgba(242, 238, 229, .73)), url("img/raw-stone-01.jpeg"); }
.page-projects .final-cta { background-image: linear-gradient(90deg, rgba(242, 238, 229, .93), rgba(242, 238, 229, .72)), url("img/project-09.jpeg"); }
.page-factory .final-cta { background-image: linear-gradient(90deg, rgba(242, 238, 229, .95), rgba(242, 238, 229, .76)), url("img/factory-02.jpeg"); }
.page-catalogs .final-cta { background-image: linear-gradient(90deg, rgba(242, 238, 229, .93), rgba(242, 238, 229, .72)), url("img/stone-detail-04.jpeg"); }
.page-inner .section-pad { position: relative; }
.page-inner .section-pad::after { content: ""; position: absolute; inset-block: 0; inset-inline-start: 4vw; width: 1px; background: var(--line); opacity: .65; pointer-events: none; }
.page-inner .section-dark.section-pad::after { background: var(--line-light); }
.final-cta-inner { position: relative; }
.final-cta-inner .display-cta { margin-top: 26px; }
.final-cta-inner .button { margin-top: 38px; }
.cta-line { position: absolute; inset-inline-end: 4%; top: 10%; width: 1px; height: 78%; background: var(--line); }

/* Inner hero / pages */
.inner-hero { position: relative; display: flex; align-items: flex-end; min-height: min(720px, 82svh); overflow: hidden; background: var(--limestone); }
.inner-hero-media, .inner-hero-scrim { position: absolute; inset: 0; }
.inner-hero-media img { height: 100%; object-position: center 48%; }
.inner-hero-scrim { background: linear-gradient(90deg, rgba(18, 18, 16, .72), rgba(18, 18, 16, .08)); }
html[dir="rtl"] .inner-hero-scrim { background: linear-gradient(270deg, rgba(18, 18, 16, .72), rgba(18, 18, 16, .08)); }
.light-scrim { background: linear-gradient(90deg, rgba(242, 238, 229, .88), rgba(242, 238, 229, .05)); }
html[dir="rtl"] .light-scrim { background: linear-gradient(270deg, rgba(242, 238, 229, .88), rgba(242, 238, 229, .05)); }
.inner-hero-content { position: relative; z-index: 2; width: var(--shell); padding-block: 10rem 6.5rem; color: var(--white); }
.inner-hero-content-dark { color: var(--charcoal); }
.inner-hero-content .display-page { margin-top: 22px; }
.inner-hero-intro { max-width: 480px; margin-top: 25px; color: rgba(251, 250, 246, .75); font-size: 15px; line-height: 2; }
.inner-hero-content-dark .inner-hero-intro { color: var(--muted); }
.inner-hero-code { position: absolute; z-index: 3; inset-inline-end: 4vw; top: 50%; color: var(--bronze-light); font-family: var(--sans); font-size: 10px; letter-spacing: .16em; writing-mode: vertical-rl; transform: rotate(180deg) translateY(50%); }
.inner-hero-code-dark { color: var(--bronze); }
.story-grid, .values-grid, .portfolio-intro-grid, .factory-intro-grid, .catalog-intro-grid { display: grid; grid-template-columns: 1fr 1.65fr 1fr; gap: 6vw; align-items: start; }
.story-grid .display-section, .values-grid .display-section, .portfolio-intro-grid .display-section, .factory-intro-grid .display-section, .catalog-intro-grid .display-section { margin-top: 23px; }
.story-quote { align-self: end; padding: 24px 0 0 22px; border-inline-start: 1px solid var(--bronze); }
.story-quote > span { color: var(--bronze); font-family: var(--serif); font-size: 4rem; line-height: .5; }
.story-quote p { margin-top: 20px; color: var(--brown); font-family: var(--serif); font-size: 1.7rem; line-height: 1.1; }
html[dir="rtl"] .story-quote p { font-family: var(--arabic-serif); line-height: 1.5; }
.heritage { overflow: hidden; }
.heritage .section-heading { margin-bottom: 75px; }
.heritage-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 8vw; align-items: end; }
.heritage-photo { position: relative; }
.heritage-photo img { aspect-ratio: 1.05 / 1; }
.heritage-photo-label { position: absolute; inset-inline-start: 20px; bottom: 17px; color: var(--white); font-family: var(--sans); font-size: 9px; letter-spacing: .16em; }
.timeline { border-top: 1px solid var(--line-light); }
.timeline-item { display: grid; grid-template-columns: 80px 1fr; gap: 30px; padding-block: 28px; border-bottom: 1px solid var(--line-light); }
.timeline-year { color: var(--bronze-light); font-family: var(--serif); font-size: 2.7rem; line-height: 1; }
.timeline-item h3 { margin: 0; font-family: var(--serif); font-size: 2rem; font-weight: 500; line-height: 1; }
html[dir="rtl"] .timeline-item h3 { font-family: var(--arabic-serif); line-height: 1.3; }
.timeline-item p { margin-top: 10px; color: rgba(251, 250, 246, .62); font-size: 12px; line-height: 1.9; }
.values { background: var(--ivory); }
.values-list { border-top: 1px solid var(--line); }
.value-row { display: grid; grid-template-columns: 55px 1fr; gap: 20px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.value-row > span { color: var(--bronze); font-family: var(--serif); font-size: 1.8rem; }
.value-row h3 { margin: 0; font-family: var(--serif); font-size: 1.9rem; font-weight: 500; line-height: 1; }
html[dir="rtl"] .value-row h3 { font-family: var(--arabic-serif); line-height: 1.3; }
.value-row p { max-width: 400px; margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.85; }
.about-image-band { padding: 0; background: var(--ivory); }
.about-image-grid { position: relative; display: grid; grid-template-columns: 1.5fr .75fr; gap: 12px; padding-bottom: 12px; }
.about-image-grid img:first-child { grid-row: span 2; min-height: 650px; }
.about-image-grid img:nth-child(2) { height: 310px; }
.about-image-caption { align-self: end; padding: 28px; background: var(--ivory); color: var(--charcoal); }
.about-image-caption p { max-width: 330px; margin-top: 16px; font-family: var(--serif); font-size: 2rem; line-height: 1.05; }
html[dir="rtl"] .about-image-caption p { font-family: var(--arabic-serif); line-height: 1.4; }
.portfolio-intro-grid > p, .factory-intro-grid > p, .catalog-intro-grid > p { align-self: end; max-width: 340px; color: var(--muted); line-height: 2; }
.portfolio { padding-block: 0 11rem; }
.portfolio-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7vw 3.5vw; align-items: start; }
.portfolio-item { margin: 0; }
.portfolio-item-wide { grid-column: span 2; }
.portfolio-item-offset { margin-top: 11vw; }
.portfolio-item-tall { margin-top: 6vw; }
.portfolio-image { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; border: 0; background: var(--limestone-deep); cursor: zoom-in; }
.portfolio-image img { height: 100%; aspect-ratio: 1.4 / 1; transition: transform 1s var(--ease), filter 1s var(--ease); }
.portfolio-item-wide .portfolio-image img { aspect-ratio: 1.9 / .93; }
.portfolio-item-tall .portfolio-image img { aspect-ratio: .88 / 1; }
.portfolio-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(16, 16, 14, .3), transparent 45%); opacity: 0; transition: opacity .5s var(--ease); }
.portfolio-image:hover img { transform: scale(1.045); filter: saturate(.82); }
.portfolio-image:hover::after { opacity: 1; }
.portfolio-open { position: absolute; z-index: 2; inset-inline-end: 22px; bottom: 18px; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid rgba(251,250,246,.6); color: var(--white); opacity: 0; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.portfolio-image:hover .portfolio-open { opacity: 1; transform: rotate(45deg); }
.portfolio-item figcaption { position: relative; display: flex; align-items: flex-start; gap: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.portfolio-item figcaption::after { content: "AB"; position: absolute; inset-inline-end: 0; top: 18px; color: var(--bronze); font-family: var(--serif); font-size: 11px; letter-spacing: .1em; opacity: .7; }
.portfolio-item figcaption > span { color: var(--bronze); font-family: var(--serif); font-size: 1.6rem; line-height: 1; }
.portfolio-item figcaption b { display: block; font-family: var(--serif); font-size: 1.7rem; font-weight: 500; line-height: 1; }
html[dir="rtl"] .portfolio-item figcaption b { font-family: var(--arabic-serif); line-height: 1.35; }
.portfolio-item figcaption small { display: block; margin-top: 5px; color: var(--muted); font-family: var(--sans); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
html[dir="rtl"] .portfolio-item figcaption small { font-family: var(--arabic-sans); letter-spacing: 0; }
.factory-hero .inner-hero-media img { object-position: center 56%; }
.factory-intro-grid > .factory-stat { align-self: end; padding: 26px 0 0 22px; border-inline-start: 1px solid var(--bronze); }
.factory-stat span { display: block; color: var(--bronze); font-family: var(--serif); font-size: 5rem; line-height: .8; }
.factory-stat small { display: block; max-width: 140px; margin-top: 16px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.process .section-heading { margin-bottom: 76px; }
.process-list { border-top: 1px solid var(--line-light); }
.process-item { display: grid; grid-template-columns: 100px 1fr 270px; gap: 28px; align-items: center; padding-block: 25px; border-bottom: 1px solid var(--line-light); }
.process-item > span { color: var(--bronze-light); font-family: var(--serif); font-size: 2.6rem; }
.process-item h3 { margin: 0; font-family: var(--serif); font-size: 2.2rem; font-weight: 500; line-height: 1; }
html[dir="rtl"] .process-item h3 { font-family: var(--arabic-serif); line-height: 1.3; }
.process-item p { margin-top: 7px; color: rgba(251, 250, 246, .65); font-size: 12px; }
.process-item img { height: 104px; object-position: center; opacity: .74; transition: opacity .4s var(--ease), transform .6s var(--ease); }
.process-item:hover img { opacity: 1; transform: scale(1.03); }
.equipment { background: var(--ivory); }
.equipment-list { border-top: 1px solid var(--line); }
.equipment-row { display: grid; grid-template-columns: 70px 1fr 40px; align-items: center; padding-block: 19px; border-bottom: 1px solid var(--line); }
.equipment-row > span { color: var(--bronze); font-family: var(--serif); font-size: 1.35rem; }
.equipment-row h3 { margin: 0; font-family: var(--serif); font-size: 2.1rem; font-weight: 500; line-height: 1; }
html[dir="rtl"] .equipment-row h3 { font-family: var(--arabic-serif); line-height: 1.35; }
.equipment-row i { justify-self: end; font-style: normal; transition: transform .3s var(--ease); }
.equipment-row:hover i { color: var(--bronze); transform: translate(3px, -3px); }
.factory-gallery { padding-top: 0; }
.factory-gallery-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; grid-template-rows: 250px 250px; gap: 12px; }
.factory-gallery-grid .gallery-tile-wide { grid-row: span 2; }
.factory-gallery-grid .gallery-tile-tall { grid-column: 3; grid-row: span 2; }
.catalogs-hero .inner-hero-media img { object-position: center 58%; }
.catalog-intro-grid > p { align-self: end; }
.catalogs-section { padding-top: 0; }
.catalog-grid-new { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4vw; }
.publication-card { min-width: 0; }
.publication-cover { position: relative; aspect-ratio: .78 / 1; overflow: hidden; background: var(--brown); }
.publication-cover img { height: 100%; transition: transform .9s var(--ease), filter .9s var(--ease); }
.publication-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(18,18,16,.75), rgba(18,18,16,.04) 78%); }
.publication-cover-overlay { position: absolute; z-index: 2; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 28px; color: var(--white); }
.publication-mark { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--bronze-light); color: var(--bronze-light); font-family: var(--serif); font-size: 1.4rem; }
.publication-type, .publication-caption { font-family: var(--sans); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; }
html[dir="rtl"] .publication-type, html[dir="rtl"] .publication-caption { font-family: var(--arabic-sans); letter-spacing: 0; }
.publication-cover-overlay h2 { margin-top: auto; margin-bottom: 10px; font-family: var(--serif); font-size: clamp(2.4rem, 4vw, 4.5rem); font-weight: 500; line-height: .9; }
html[dir="rtl"] .publication-cover-overlay h2 { font-family: var(--arabic-serif); line-height: 1.3; }
.publication-caption { color: var(--bronze-light); }
.publication-card:hover .publication-cover img { transform: scale(1.045); filter: saturate(.8); }
.publication-meta { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding-top: 17px; border-top: 1px solid var(--line); }
.publication-meta p { max-width: 330px; color: var(--muted); font-size: 12px; line-height: 1.9; }
.publication-meta .button { min-width: 150px; }
.catalog-note { display: flex; gap: 35px; align-items: flex-start; margin-top: 70px; padding-top: 22px; border-top: 1px solid var(--line); }
.catalog-note p { max-width: 510px; color: var(--muted); font-size: 12px; line-height: 1.9; }
.catalog-material-band { overflow: hidden; }
.catalog-material-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; align-items: center; }
.catalog-material-image img { aspect-ratio: 1.1 / 1; }
.catalog-material-grid h2 { margin-top: 24px; }
.catalog-material-grid p { max-width: 490px; margin-top: 25px; color: rgba(251, 250, 246, .72); line-height: 2; }
.catalog-material-grid .text-link { margin-top: 32px; }

/* Footer */
.footer { background: var(--charcoal); color: var(--white); }
.footer-top { display: grid; grid-template-columns: 1.3fr .8fr .8fr; gap: 8vw; padding-block: 76px 90px; }
.footer-brand img { width: 162px; filter: brightness(0) invert(1); }
.footer-brand p { max-width: 270px; margin-top: 24px; color: rgba(251, 250, 246, .63); font-size: 12px; line-height: 1.9; }
.footer-nav, .footer-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.footer-nav .eyebrow, .footer-contact .eyebrow { margin-bottom: 12px; }
.footer-nav a, .footer-contact a, .footer-contact span { color: rgba(251, 250, 246, .77); font-size: 12px; transition: color .25s var(--ease); }
.footer-nav a:hover, .footer-contact a:hover { color: var(--bronze-light); }
.footer-contact span:not(.eyebrow) { direction: ltr; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-block: 20px; border-top: 1px solid var(--line-light); color: rgba(251, 250, 246, .4); font-family: var(--sans); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
html[dir="rtl"] .footer-bottom { font-family: var(--arabic-sans); letter-spacing: 0; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 5vw; background: rgba(18, 18, 16, .93); opacity: 0; pointer-events: none; transition: opacity .4s var(--ease); }
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { width: auto; max-width: min(92vw, 1200px); height: auto; max-height: 85vh; object-fit: contain; box-shadow: 0 25px 80px rgba(0,0,0,.35); transform: scale(.97); transition: transform .5s var(--ease); }
.lightbox.is-open img { transform: scale(1); }
.lightbox button { position: absolute; z-index: 2; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(251,250,246,.45); background: transparent; color: var(--white); cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease); }
.lightbox button:hover { background: var(--bronze); border-color: var(--bronze); }
.lightbox-close { top: 28px; inset-inline-end: 30px; width: 42px; height: 42px; font-size: 18px; }
.lightbox-prev, .lightbox-next { top: 50%; width: 48px; height: 48px; margin-top: -24px; font-size: 26px; }
.lightbox-prev { inset-inline-start: 30px; }
.lightbox-next { inset-inline-end: 30px; }
.lightbox-count { position: absolute; inset-inline-start: 30px; bottom: 28px; color: rgba(251,250,246,.7); font-family: var(--serif); font-size: 1.3rem; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .85s var(--ease), transform .85s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1050px) {
  :root { --shell: min(100% - 8vw, 900px); }
  .desktop-nav { gap: 17px; }
  .desktop-nav a { font-size: 10px; }
  .header-contact { display: none; }
  .section-heading, .split-intro, .story-grid, .values-grid, .portfolio-intro-grid, .factory-intro-grid, .catalog-intro-grid { grid-template-columns: .65fr 1.55fr 1fr; gap: 4vw; }
  .material-list { gap: 2px; }
  .factory-feature-content { grid-template-columns: .6fr 2fr .5fr; }
  .principles-grid { grid-template-columns: .7fr 1fr 1.3fr; gap: 4vw; }
  .footer-top { gap: 5vw; }
}

@media (max-width: 760px) {
  :root { --shell: calc(100% - 11vw); }
  body { font-size: 14px; }
  .section-pad { padding-block: 5rem; }
  .header-inner { min-height: 74px; }
  .brand { width: 155px; }
  .brand::before { flex-basis: 21px; width: 21px; height: 21px; }
  .brand img { height: 30px; }
  .desktop-nav, .header-contact { display: none; }
  .menu-btn { display: block; }
  .header-actions { gap: 20px; }
  .hero { min-height: 710px; }
  .hero-content { padding-block: 9rem 8rem; }
  .hero-kicker { flex-wrap: wrap; max-width: 280px; gap: 9px; line-height: 1.7; }
  .hero-kicker-line { width: 35px; }
  .hero-copy { max-width: 330px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 22px; }
  .hero-rail { display: none; }
  .scroll-cue { inset-inline-end: var(--shell); bottom: 25px; }
  .scroll-cue span { display: none; }
  .split-intro, .section-heading, .principles-grid, .story-grid, .values-grid, .portfolio-intro-grid, .factory-intro-grid, .catalog-intro-grid, .catalog-callout-grid { grid-template-columns: 1fr; gap: 28px; }
  .section-index { flex-direction: row; align-items: center; gap: 10px; }
  .section-index i { width: 30px; }
  .intro-main, .story-grid .display-section, .values-grid .display-section, .portfolio-intro-grid .display-section, .factory-intro-grid .display-section, .catalog-intro-grid .display-section { padding-top: 0; }
  .intro-aside { display: none; }
  .section-heading > p, .portfolio-intro-grid > p, .factory-intro-grid > p, .catalog-intro-grid > p { padding-top: 0; max-width: 450px; }
  .section-heading > .text-link { justify-self: start; align-self: auto; }
  .section-heading .eyebrow { margin-bottom: 17px; }
  .material-list { grid-template-columns: 1fr; margin-top: 48px; gap: 12px; }
  .material-feature, .material-feature-large { min-height: 430px; grid-row: auto; }
  .material-feature-overlay { padding: 23px; }
  .project-editorial { grid-template-columns: 1fr; gap: 42px; }
  .projects-preview .section-heading { margin-bottom: 47px; }
  .project-side { gap: 42px; padding-top: 0; }
  .project-small-offset { margin-inline-start: 12%; }
  .factory-feature { min-height: 640px; }
  .factory-feature-content { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; min-height: 640px; padding-block: 8rem 4.5rem; }
  .factory-note { display: none; }
  .factory-copy p { font-size: 14px; }
  .principles-heading h2 { margin-top: 10px; }
  .compact-heading { margin-bottom: 38px; }
  .gallery-grid { grid-template-columns: 1.2fr .8fr; grid-template-rows: 160px 160px 160px; }
  .gallery-tile-wide { grid-row: span 2; }
  .gallery-tile-tall { grid-column: 2; grid-row: span 2; }
  .gallery-tile:nth-child(4) { grid-column: 1; }
  .gallery-tile:nth-child(3) { grid-column: 2; grid-row: 3; }
  .catalog-callout-grid { align-items: start; }
  .catalog-mark { display: none; }
  .cta-line { display: none; }
  .inner-hero { min-height: 610px; }
  .inner-hero-content { padding-block: 8.5rem 5rem; }
  .inner-hero-code { display: none; }
  .inner-hero-intro { max-width: 340px; }
  .heritage .section-heading, .process .section-heading { margin-bottom: 48px; }
  .heritage-layout { grid-template-columns: 1fr; gap: 50px; }
  .heritage-photo img { aspect-ratio: 1.4 / 1; }
  .timeline-item { grid-template-columns: 55px 1fr; gap: 17px; }
  .timeline-year { font-size: 2rem; }
  .about-image-band { padding: 0; }
  .about-image-grid { grid-template-columns: 1fr; }
  .about-image-grid img:first-child { grid-row: auto; min-height: auto; aspect-ratio: 1 / 1.05; }
  .about-image-grid img:nth-child(2) { height: auto; aspect-ratio: 1.3 / 1; }
  .portfolio { padding-bottom: 5rem; }
  .portfolio-grid { grid-template-columns: 1fr; gap: 50px; }
  .portfolio-item-wide { grid-column: auto; }
  .portfolio-item-offset, .portfolio-item-tall { margin-top: 0; }
  .portfolio-item-wide .portfolio-image img, .portfolio-item-tall .portfolio-image img { aspect-ratio: 1.08 / 1; }
  .portfolio-item figcaption b { font-size: 1.4rem; }
  .process-item { grid-template-columns: 46px 1fr; gap: 15px; }
  .process-item img { grid-column: 2; width: 100%; height: 130px; margin-top: 4px; }
  .equipment-row { grid-template-columns: 45px 1fr 30px; }
  .equipment-row h3 { font-size: 1.7rem; }
  .factory-gallery-grid { grid-template-columns: 1.2fr .8fr; grid-template-rows: 160px 160px 160px; }
  .factory-gallery-grid .gallery-tile-wide { grid-row: span 2; }
  .factory-gallery-grid .gallery-tile-tall { grid-column: 2; grid-row: span 2; }
  .catalog-grid-new { grid-template-columns: 1fr; gap: 55px; }
  .publication-meta { align-items: flex-start; flex-direction: column; gap: 20px; }
  .publication-meta .button { width: 100%; }
  .catalog-note { flex-direction: column; gap: 12px; margin-top: 48px; }
  .catalog-material-grid { grid-template-columns: 1fr; gap: 35px; }
  .catalog-material-image img { aspect-ratio: 1.2 / 1; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 45px 25px; padding-block: 57px 65px; }
  .footer-brand { grid-column: span 2; }
  .footer-bottom { flex-wrap: wrap; gap: 8px 20px; line-height: 1.7; }
  .footer-bottom span:last-child { width: 100%; }
  .lightbox { padding: 22px; }
  .lightbox img { max-width: calc(100vw - 44px); max-height: 76vh; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 28px; margin: 0; }
  .lightbox-prev { inset-inline-start: 23px; }
  .lightbox-next { inset-inline-end: 23px; }
  .lightbox-count { inset-inline-start: 50%; bottom: 42px; transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .reveal-on-load { opacity: 1; transform: none; }
}

/* Product collection: the existing mineral palette and editorial typography. */
.stone-products-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; }
.stone-product { min-width: 0; }
.stone-product-image { overflow: hidden; border-radius: 12px; background: var(--limestone-deep); }
.stone-product-image img { aspect-ratio: 4 / 3; transition: transform .7s var(--ease); }
.stone-product:hover .stone-product-image img { transform: scale(1.035); }
.stone-product-meta { display: flex; align-items: baseline; gap: 18px; padding-top: 20px; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.stone-product-number { color: var(--bronze); font-size: 11px; letter-spacing: .08em; }
.stone-product-meta h3 { margin: 0; font-family: var(--serif); font-size: clamp(1.4rem, 2vw, 2rem); font-weight: 500; line-height: 1.4; }
html[dir="rtl"] .stone-product-meta h3 { font-size: clamp(1.15rem, 1.6vw, 1.5rem); }
@media (max-width: 1000px) { .stone-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; } }
@media (max-width: 600px) { .stone-products-grid { grid-template-columns: 1fr; gap: 32px; } }
@media (prefers-reduced-motion: reduce) { .stone-product-image img { transition: none; } }

/* Consistent gallery sizes without changing the site's visual identity. */
.about-image-grid { width: var(--shell); margin-inline: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding-bottom: 0; }
.about-image-grid img:first-child, .about-image-grid img:nth-child(2) { grid-row: auto; min-height: 0; height: auto; aspect-ratio: 4 / 3; border-radius: 12px; }
.about-image-caption { grid-column: 1 / -1; text-align: center; padding: 28px; }
.about-image-caption p { max-width: 700px; margin-inline: auto; }
.portfolio-grid, .project-editorial, .material-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; align-items: start; }
.portfolio-item-wide { grid-column: auto; }
.portfolio-item-offset, .portfolio-item-tall, .project-small-offset { margin: 0; }
.portfolio-image, .project-image { border-radius: 12px; }
.portfolio-image img, .portfolio-item-wide .portfolio-image img, .portfolio-item-tall .portfolio-image img { height: auto; aspect-ratio: 4 / 3; }
.project-large .project-image, .project-small .project-image { aspect-ratio: 4 / 3; }
.project-caption h3 { font-size: clamp(1.4rem, 2vw, 2rem); }
.material-feature, .material-feature-large { min-height: 0; grid-row: auto; aspect-ratio: 4 / 3; border-radius: 12px; }
.material-feature img { position: absolute; inset: 0; width: 100%; height: 100%; }
.material-feature-overlay { padding: 24px; }
.material-feature-overlay h3 { font-size: clamp(1.5rem, 2vw, 2rem); }
.material-no { top: 22px; inset-inline-end: 24px; font-size: 2.5rem; }
@media (max-width: 1000px) {
  .portfolio-grid, .project-editorial, .material-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
}
@media (max-width: 600px) {
  .portfolio-grid, .project-editorial, .material-list, .about-image-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-image-grid img:first-child, .about-image-grid img:nth-child(2) { aspect-ratio: 4 / 3; }
  .about-image-caption { grid-column: auto; }
}

/* Equal image tiles in the factory and home detail galleries. */
.gallery-grid, .factory-gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: auto; gap: 32px; }
.gallery-grid .gallery-tile:nth-child(n), .factory-gallery-grid .gallery-tile:nth-child(n) { grid-column: auto; grid-row: auto; width: 100%; aspect-ratio: 4 / 3; border-radius: 12px; }
.gallery-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shell > *, .header-inner > *, .footer-top > *, .section-heading > * { min-width: 0; }
.footer-contact a { overflow-wrap: anywhere; }
@media (max-width: 1000px) {
  .gallery-grid, .factory-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .material-list { grid-template-columns: 1fr; }
  .material-feature, .material-feature-large { aspect-ratio: 16 / 9; }
}
@media (max-width: 760px) {
  .display-hero, .display-page { font-size: clamp(2.5rem, 9vw, 4.8rem); }
  .display-section { font-size: clamp(2rem, 7.5vw, 3.5rem); }
  .display-cta { font-size: clamp(2.2rem, 8vw, 4rem); }
  .compact-heading { grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: end; }
  .scroll-cue { inset-inline-end: 5.5vw; }
  .material-feature, .material-feature-large { aspect-ratio: 4 / 3; }
  .mobile-menu { overflow-y: auto; padding-top: 100px; gap: 24px; }
  .mobile-menu nav a { font-size: clamp(1.8rem, 7vw, 3rem); }
  .hero, .inner-hero { min-height: min(710px, 100svh); }
}
@media (max-width: 600px) {
  .gallery-grid, .factory-gallery-grid { grid-template-columns: 1fr; gap: 24px; }
  .material-feature, .material-feature-large { aspect-ratio: auto; min-height: 340px; }
  .gallery-count { white-space: nowrap; }
}
@media (max-width: 380px) {
  .header-inner { gap: 12px; }
  .brand { width: 135px; }
  .brand img { max-width: 110px; height: 27px; }
  .header-actions { gap: 12px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .material-feature-overlay { padding: 20px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .mobile-menu { padding-block: 80px 24px; }
  .mobile-menu nav { gap: 10px; }
  .mobile-menu nav a { font-size: 1.6rem; }
}
@media (min-width: 761px) and (max-width: 1000px) {
  .desktop-nav, .header-contact { display: none; }
  .menu-btn { display: block; }
  .section-heading:not(.compact-heading), .split-intro, .story-grid, .values-grid, .portfolio-intro-grid, .factory-intro-grid, .catalog-intro-grid, .principles-grid { grid-template-columns: 1fr; gap: 28px; }
  .section-heading > p { padding-top: 0; max-width: 600px; }
  .intro-aside { display: none; }
  .factory-feature-content { grid-template-columns: 1fr; }
  .factory-note { display: none; }
  .display-section { font-size: clamp(2.8rem, 5vw, 4rem); }
}

/* Fullscreen navigation must not inherit the header's filter containing block. */
.mobile-menu { z-index: 99; width: 100%; height: 100vh; height: 100dvh; transform: none; }
.header-inner { position: relative; z-index: 1; }
body.menu-open .site-header { color: var(--white); background: var(--charcoal); backdrop-filter: none; }
body.menu-open .site-header .brand img { filter: brightness(0) invert(1); }
.material-feature-overlay > a { width: auto; height: auto; min-height: 44px; padding: 8px 12px; font-size: 12px; }
.material-feature:hover .material-feature-overlay > a { transform: none; }
.lightbox-prev, .lightbox-next { width: auto; min-width: 64px; padding-inline: 12px; font-size: 13px; }
@media (max-width: 1000px) {
  .desktop-nav { display: none; }
  .menu-btn { display: inline-block; min-width: 44px; min-height: 44px; }
  .menu-btn span { margin-inline: auto; }
  .mobile-menu { padding-top: 110px; padding-bottom: max(28px, env(safe-area-inset-bottom)); overflow-y: auto; }
  .mobile-menu-bottom { flex-wrap: wrap; gap: 14px; }
  .mobile-menu-bottom a { overflow-wrap: anywhere; }
}

/* Match the image collections to their introductory sections. */
.catalogs-section, .portfolio { background: var(--ivory); }
.catalogs-section::before, .portfolio::before { content: none; }
.mobile-menu nav a, html[dir="rtl"] .mobile-menu nav a { font-size: clamp(1.35rem, 4.5vw, 2rem); line-height: 1.5; }
@media (max-width: 760px) {
  .principles-heading h2 { text-align: center; margin-inline: auto; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .mobile-menu nav a, html[dir="rtl"] .mobile-menu nav a { font-size: 1.25rem; }
}
