:root {
  --black: #070707;
  --ink: #0b0b0b;
  --charcoal: #151312;
  --gold: #d4af37;
  --gold-soft: #b8962e;
  --ivory: #f8f4ea;
  --pearl: #f5f5f7;
  --muted: rgba(248, 244, 234, 0.78);
  --faint: rgba(248, 244, 234, 0.12);
  --glass: rgba(9, 8, 7, 0.58);
  --max: 1240px;
  /* Mat border of the hero plate, and the clearance the masthead keeps inside it.
     Both scale with viewport height so short laptops do not feel cramped. */
  --mat: clamp(14px, 2.4vh, 30px);
  --mat-gap: clamp(13px, 1.9vh, 24px);
  --font-display: Amiri, Didot, "Bodoni 72", "Times New Roman", serif;
  --font-body: "IBM Plex Sans Arabic", "IBM Plex Sans", "Segoe UI", Tahoma, sans-serif;
  --font-body-en: "IBM Plex Sans", "IBM Plex Sans Arabic", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(212, 175, 55, 0.13), transparent 30rem),
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.06), transparent 24rem),
    var(--black);
  color: var(--ivory);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.02rem;
  line-height: 1.75;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.lang-ar {
  font-family: var(--font-body);
}

body.lang-en {
  direction: ltr;
  font-family: var(--font-body-en);
  letter-spacing: 0.015em;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
}

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

button,
input {
  font: inherit;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.13;
  mix-blend-mode: overlay;
  background-image:
    linear-gradient(115deg, transparent 0 48%, rgba(255, 255, 255, 0.06) 50%, transparent 52%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 5px);
}

.page-rail {
  position: fixed;
  /* vertical-rl makes the inline axis vertical here, so logical insets cannot
     place this horizontally; the offset must be physical and per-language. */
  top: 50%;
  right: clamp(30px, 3vw, 44px);
  z-index: 10;
  /* Decorative overlay above the hero CTA; must never intercept clicks. */
  pointer-events: none;
  display: flex;
  gap: 36px;
  color: rgba(248, 244, 234, 0.42);
  font-size: 0.72rem;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: translateY(-50%);
}

body.lang-en .page-rail {
  right: auto;
  left: clamp(30px, 3vw, 44px);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
  /* Top padding clears the hero mat border so the frame never crosses the
     logo, nav, or language toggle. */
  padding: calc(var(--mat) + var(--mat-gap)) clamp(18px, 4.4vw, 64px) 20px;
  border-bottom: 1px solid transparent;
  transition: background 320ms ease, border-color 320ms ease, backdrop-filter 320ms ease,
    padding-top 320ms ease;
}

.site-header.is-scrolled {
  background: rgba(7, 7, 7, 0.84);
  border-color: var(--faint);
  backdrop-filter: blur(22px);
  /* The mat scrolls away with the hero, so the bar can compact. */
  padding-top: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: auto;
  height: clamp(26px, 2.4vw, 34px);
}

.nav-links {
  justify-self: center;
  display: flex;
  gap: clamp(18px, 3.8vw, 52px);
  color: rgba(248, 244, 234, 0.72);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.nav-links a {
  position: relative;
  padding-block: 8px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 220ms ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}

.menu-toggle {
  display: none;
  position: relative;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(248, 244, 234, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  color: var(--gold);
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  left: 50%;
  display: block;
  width: 16px;
  height: 1px;
  background: currentColor;
  transform: translateX(-50%);
  transition: transform 220ms ease, opacity 220ms ease, top 220ms ease;
}

.menu-toggle span:nth-child(1) {
  top: 18px;
}

.menu-toggle span:nth-child(2) {
  top: 23px;
}

.menu-toggle span:nth-child(3) {
  top: 28px;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 23px;
  transform: translateX(-50%) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  top: 23px;
  transform: translateX(-50%) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 25;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 28px;
  padding: 120px 28px 48px;
  background: rgba(7, 7, 7, 0.96);
  backdrop-filter: blur(24px);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  color: var(--ivory);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5.4vw, 2rem);
  line-height: 1.3;
}

.language-toggle {
  position: relative;
  min-height: 40px;
  padding: 8px 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(248, 244, 234, 0.7);
  font-family: var(--font-body-en);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 220ms ease;
}

.language-toggle::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 6px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 220ms ease;
}

.language-toggle:hover,
.language-toggle:focus-visible {
  color: var(--ivory);
  outline: none;
}

.language-toggle:hover::after,
.language-toggle:focus-visible::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
}

.hero-media,
.hero-vignette,
.hero-warp {
  position: absolute;
  inset: 0;
}

.hero-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.06) brightness(0.88);
  transform: scale(1.04);
  animation: heroDrift 20s ease-in-out infinite alternate;
}

.hero-vignette {
  background:
    linear-gradient(90deg, rgba(7, 7, 7, 0.92) 0%, rgba(7, 7, 7, 0.58) 38%, rgba(7, 7, 7, 0.14) 66%, rgba(7, 7, 7, 0.6) 100%),
    linear-gradient(0deg, var(--black) 0%, transparent 42%),
    linear-gradient(180deg, rgba(7, 7, 7, 0.66) 0%, transparent 20%);
}

body.lang-en .hero-vignette {
  background:
    linear-gradient(270deg, rgba(7, 7, 7, 0.92) 0%, rgba(7, 7, 7, 0.58) 38%, rgba(7, 7, 7, 0.14) 66%, rgba(7, 7, 7, 0.6) 100%),
    linear-gradient(0deg, var(--black) 0%, transparent 42%),
    linear-gradient(180deg, rgba(7, 7, 7, 0.66) 0%, transparent 20%);
}

/* Warp threads: a woven grain rather than arbitrary rules. */
.hero-warp {
  opacity: 0.6;
  background-image:
    repeating-linear-gradient(90deg, rgba(248, 244, 234, 0.05) 0 1px, transparent 1px 8px),
    linear-gradient(90deg, transparent calc(38% - 1px), rgba(212, 175, 55, 0.2) 38%, transparent calc(38% + 1px));
  -webkit-mask-image: linear-gradient(0deg, transparent, #000 28%, #000 74%, transparent);
  mask-image: linear-gradient(0deg, transparent, #000 28%, #000 74%, transparent);
}

/* Passe-partout: an even mat around the plate. The masthead sits inside it,
   so its padding must stay in step with --mat (see .site-header). */
.hero-frame {
  position: absolute;
  inset: var(--mat);
  z-index: 3;
  border: 1px solid rgba(248, 244, 234, 0.14);
  pointer-events: none;
}

.hero-frame i {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 0 solid rgba(212, 175, 55, 0.7);
}

.hero-frame i:nth-child(1) {
  top: -1px;
  left: -1px;
  border-top-width: 1px;
  border-left-width: 1px;
}

.hero-frame i:nth-child(2) {
  top: -1px;
  right: -1px;
  border-top-width: 1px;
  border-right-width: 1px;
}

.hero-frame i:nth-child(3) {
  bottom: -1px;
  left: -1px;
  border-bottom-width: 1px;
  border-left-width: 1px;
}

.hero-frame i:nth-child(4) {
  bottom: -1px;
  right: -1px;
  border-bottom-width: 1px;
  border-right-width: 1px;
}

/* A falling thread instead of a scroll arrow. */
.hero-thread {
  position: absolute;
  z-index: 3;
  bottom: calc(var(--mat) + clamp(16px, 2.4vh, 30px));
  inset-inline-end: calc(var(--mat) + clamp(16px, 1.6vw, 30px));
  width: 1px;
  height: clamp(48px, 7vh, 88px);
  overflow: hidden;
  background: rgba(248, 244, 234, 0.16);
  pointer-events: none;
}

.hero-thread::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: -44%;
  height: 44%;
  background: linear-gradient(180deg, transparent, var(--gold));
  animation: threadFall 2900ms cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

/* Opening curtains: default state is open, so the hero is never trapped. */
.hero-curtain {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  /* Panels exit by physical direction, so DOM order must not flip in RTL. */
  direction: ltr;
  pointer-events: none;
}

.hero-curtain i {
  flex: 1;
  transform: translateX(-101%);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 2px, transparent 2px 11px),
    linear-gradient(180deg, #0b0a09, #050505);
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.7);
  animation: curtainStart 1450ms cubic-bezier(0.62, 0.02, 0.2, 1) 120ms both;
}

.hero-curtain i:last-child {
  transform: translateX(101%);
  animation-name: curtainEnd;
}

.hero-inner {
  --hero-indent: clamp(18px, 2.2vw, 34px);
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 780px);
  align-content: end;
  gap: clamp(26px, 3.4vw, 48px);
  min-height: 100svh;
  width: min(var(--max), calc(100% - clamp(120px, 12vw, 200px)));
  margin-inline: auto;
  padding: clamp(126px, 17vh, 184px) 0 clamp(60px, 7.4vh, 100px);
  transform: translate3d(calc(var(--parallax-x, 0px) * -0.25), calc(var(--parallax-y, 0px) * -0.18), 0);
  transition: transform 120ms ease-out;
}

.hero-content {
  position: relative;
  align-self: end;
  max-width: 780px;
  padding-inline-start: var(--hero-indent);
}

.hero-content::before {
  content: "";
  position: absolute;
  inset-block: 6px 8px;
  inset-inline-start: 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.75), rgba(212, 175, 55, 0.04));
  transform-origin: top;
  animation: ruleDraw 1000ms cubic-bezier(0.16, 0.84, 0.24, 1) 740ms both;
}

.hero-content > * {
  animation: heroRise 950ms cubic-bezier(0.16, 0.84, 0.24, 1) both;
}

.hero-content > :nth-child(1) {
  animation-delay: 840ms;
}

.hero-content > :nth-child(2) {
  animation-delay: 960ms;
}

.hero-content > :nth-child(3) {
  animation-delay: 1080ms;
}

.hero-content > :nth-child(4) {
  animation-delay: 1190ms;
}

.hero-content .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  font-size: 0.72rem;
}

body.lang-en .hero-content .eyebrow {
  letter-spacing: 0.22em;
}

.hero-content .eyebrow::after {
  content: "";
  width: clamp(36px, 6vw, 92px);
  height: 1px;
  background: rgba(212, 175, 55, 0.5);
}

.hero-content p:not(.eyebrow) {
  max-width: 560px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 0.76rem;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  /* Amiri carries tall ascenders and Arabic diacritics; tight leading clips them. */
  line-height: 1.34;
  text-wrap: balance;
}

body.lang-en h1,
body.lang-en h2,
body.lang-en h3 {
  line-height: 1.14;
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(2.4rem, 4.2vw, 3.8rem);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.9rem, 2.9vw, 2.6rem);
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(1.28rem, 1.7vw, 1.6rem);
}

.hero-content p:not(.eyebrow),
.intro-copy p,
.consultation-copy p,
.service-glass p,
.immersive-copy p:not(.eyebrow),
.atelier-card p,
.form-note,
.form-success p,
.site-footer p {
  color: var(--muted);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1.02rem, 1.35vw, 1.18rem);
  line-height: 1.8;
}

body.lang-en .hero-content p:not(.eyebrow),
body.lang-en .intro-copy p,
body.lang-en .consultation-copy p,
body.lang-en .service-glass p,
body.lang-en .immersive-copy p:not(.eyebrow),
body.lang-en .atelier-card p,
body.lang-en .form-note,
body.lang-en .form-success p,
body.lang-en .site-footer p {
  font-family: var(--font-body-en);
  font-weight: 300;
  letter-spacing: 0.02em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease;
}

.primary-action {
  border: 1px solid rgba(212, 175, 55, 0.86);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.24), rgba(212, 175, 55, 0.07));
  color: var(--ivory);
  box-shadow: 0 20px 70px rgba(212, 175, 55, 0.12);
}

.secondary-action {
  border: 1px solid rgba(248, 244, 234, 0.2);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(248, 244, 234, 0.82);
}

.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-3px);
}

.proof-strip {
  display: flex;
  flex-wrap: wrap;
  padding-inline-start: var(--hero-indent);
  border-top: 1px solid rgba(248, 244, 234, 0.16);
  animation: heroRise 950ms cubic-bezier(0.16, 0.84, 0.24, 1) 1310ms both;
}

.proof-strip div {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-block-start: 18px;
  padding-inline-end: clamp(20px, 3vw, 48px);
}

.proof-strip div + div {
  padding-inline-start: clamp(20px, 3vw, 48px);
  border-inline-start: 1px solid rgba(248, 244, 234, 0.12);
}

.proof-strip span {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1;
}

.proof-strip strong {
  color: rgba(248, 244, 234, 0.82);
  font-weight: 400;
  font-size: 0.95rem;
}

.philosophy {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr);
  grid-template-rows: 1fr;
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
  width: min(var(--max), calc(100% - 42px));
  min-height: 100svh;
  margin-inline: auto;
  padding: clamp(72px, 10vh, 120px) 0;
  box-sizing: border-box;
}

.intro-image {
  position: relative;
  width: 100%;
  max-width: 520px;
}

.intro-image::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid rgba(212, 175, 55, 0.36);
}

.intro-image img {
  position: relative;
  width: 100%;
  /* Wider plate; top is cropped so the brass, marble, and pooled silk stay in frame. */
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: center bottom;
  filter: contrast(1.06) saturate(0.9);
}

.intro-copy {
  align-self: center;
  max-width: 560px;
}

.atelier {
  padding: clamp(76px, 10vw, 130px) clamp(18px, 4vw, 64px);
  border-block: 1px solid var(--faint);
  background:
    linear-gradient(120deg, rgba(212, 175, 55, 0.08), transparent 34%),
    rgba(255, 255, 255, 0.025);
}

.atelier-heading {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: clamp(24px, 6vw, 88px);
  width: min(var(--max), 100%);
  margin-inline: auto;
  align-items: start;
}

.atelier-heading span {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.atelier-heading h2 {
  max-width: 840px;
  margin-bottom: 0;
}

.atelier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(var(--max), 100%);
  margin: clamp(42px, 7vw, 76px) auto 0;
  border: 1px solid var(--faint);
  background: var(--faint);
}

.atelier-card {
  min-height: 230px;
  padding: clamp(24px, 3.4vw, 42px);
  background: rgba(7, 7, 7, 0.78);
}

.atelier-card span {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 3.2rem;
  line-height: 1;
}

.atelier-card p {
  margin: 42px 0 0;
}

.services {
  width: min(var(--max), calc(100% - 42px));
  margin-inline: auto;
  padding: clamp(98px, 14vw, 188px) 0;
}

.services-head {
  max-width: 880px;
  margin-bottom: clamp(48px, 8vw, 96px);
}

.service-stack {
  display: grid;
  gap: clamp(26px, 5vw, 54px);
}

.service-panel {
  position: sticky;
  top: 92px;
  min-height: 72vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  border: 1px solid rgba(248, 244, 234, 0.14);
  background: var(--charcoal);
  box-shadow: 0 42px 120px rgba(0, 0, 0, 0.42);
}

.service-panel img,
.service-panel video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.68) contrast(1.05) saturate(0.86);
  transform: scale(1.02);
  transition: transform 900ms ease, filter 900ms ease;
}

.service-panel:hover img,
.service-panel:hover video {
  filter: brightness(0.78) contrast(1.08) saturate(0.96);
  transform: scale(1.06);
}

.service-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 7, 7, 0.86), rgba(7, 7, 7, 0.24) 62%, rgba(7, 7, 7, 0.7)),
    linear-gradient(0deg, rgba(7, 7, 7, 0.92), transparent 48%);
}

.service-glass {
  position: relative;
  z-index: 2;
  width: min(400px, calc(100% - 36px));
  margin: clamp(16px, 2.6vw, 34px);
  padding: clamp(20px, 2.2vw, 28px);
  border: 1px solid rgba(248, 244, 234, 0.16);
  background: rgba(7, 7, 7, 0.5);
  backdrop-filter: blur(18px);
}

.service-glass span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 1.9vw, 1.8rem);
  line-height: 1;
}

.service-glass h3 {
  margin-bottom: 8px;
}

.service-glass p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.72;
}

.immersive {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(380px, 1fr);
  gap: clamp(34px, 7vw, 92px);
  align-items: center;
  width: min(var(--max), calc(100% - 42px));
  margin-inline: auto;
  padding: clamp(84px, 12vw, 160px) 0;
  border-top: 1px solid var(--faint);
}

.immersive-copy {
  max-width: 640px;
}

.panorama-shell {
  position: relative;
  min-height: clamp(440px, 54vw, 650px);
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: #090807;
  box-shadow: 0 46px 130px rgba(0, 0, 0, 0.42);
  cursor: grab;
}

.panorama-shell:active {
  cursor: grabbing;
}

.panorama-shell:focus-visible {
  border-color: rgba(212, 175, 55, 0.72);
  outline: 1px solid rgba(212, 175, 55, 0.72);
  outline-offset: 3px;
}

.panorama-view {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(7, 7, 7, 0.55), rgba(7, 7, 7, 0.08), rgba(7, 7, 7, 0.5)),
    url("images/palace-360.webp");
  background-size: auto 112%;
  background-position: var(--panorama-position, 50%) center;
  background-repeat: repeat-x;
  filter: saturate(0.86) contrast(1.05) brightness(0.78);
  transform: scale(1.03);
  will-change: background-position;
}

.panorama-shell::before,
.panorama-shell::after {
  content: "";
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.panorama-shell::before {
  inset: 24px;
  border: 1px solid rgba(248, 244, 234, 0.12);
}

.panorama-shell::after {
  inset: 0;
  background:
    linear-gradient(0deg, rgba(7, 7, 7, 0.86), transparent 44%),
    radial-gradient(circle at 50% 50%, transparent 0 46%, rgba(7, 7, 7, 0.56) 100%);
}

.panorama-caption {
  position: absolute;
  z-index: 3;
  inset-inline: clamp(24px, 4vw, 44px);
  bottom: clamp(24px, 4vw, 44px);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.panorama-caption span {
  color: rgba(248, 244, 234, 0.72);
  text-transform: uppercase;
  font-size: 0.78rem;
}

.panorama-caption strong {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  font-weight: 400;
}

.consultation {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(420px, 1.18fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  width: min(var(--max), calc(100% - 42px));
  margin-inline: auto;
  padding: clamp(80px, 10vw, 132px) 0;
  border-top: 1px solid var(--faint);
}

.consultation-copy {
  align-self: center;
  max-width: 420px;
}

.consultation-form {
  position: relative;
  display: grid;
  gap: 0;
  padding: clamp(26px, 3.2vw, 40px);
  border: 1px solid rgba(212, 175, 55, 0.32);
  background:
    linear-gradient(160deg, rgba(212, 175, 55, 0.07), transparent 42%),
    rgba(12, 11, 10, 0.72);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

.consultation-form::before,
.consultation-form::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.consultation-form::before {
  top: 10px;
  inset-inline-start: 10px;
  border-block-start: 1px solid rgba(212, 175, 55, 0.72);
  border-inline-start: 1px solid rgba(212, 175, 55, 0.72);
}

.consultation-form::after {
  bottom: 10px;
  inset-inline-end: 10px;
  border-block-end: 1px solid rgba(212, 175, 55, 0.72);
  border-inline-end: 1px solid rgba(212, 175, 55, 0.72);
}

.form-header {
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--faint);
  color: var(--gold);
  font-family: var(--font-body-en);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

label {
  display: grid;
  gap: 7px;
  color: rgba(248, 244, 234, 0.76);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 400;
}

input {
  width: 100%;
  height: 50px;
  border: 1px solid rgba(248, 244, 234, 0.16);
  border-radius: 0;
  background: rgba(0, 0, 0, 0.28);
  color: var(--ivory);
  padding: 0 14px;
  outline: none;
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

input:focus {
  border-color: rgba(212, 175, 55, 0.72);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.08);
}

.form-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
  align-content: start;
}

.form-field-wide,
.form-fields .form-action,
.form-fields .form-note {
  grid-column: 1 / -1;
}

.form-success {
  display: grid;
  gap: 14px;
  padding-block: 12px;
  text-align: center;
}

.form-success[hidden],
.form-fields[hidden] {
  display: none;
}

.form-success strong {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 400;
  line-height: 1.4;
}

.form-success p {
  margin: 0;
  color: var(--muted);
}

.form-action {
  width: 100%;
  min-height: 50px;
  margin-top: 2px;
  cursor: pointer;
}

.form-note {
  margin: 0;
  color: rgba(248, 244, 234, 0.5);
  font-size: 0.82rem;
  line-height: 1.65;
}

.site-footer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px clamp(18px, 3vw, 36px);
  padding: 28px clamp(18px, 4vw, 64px);
  border-top: 1px solid var(--faint);
  color: rgba(248, 244, 234, 0.54);
}

.site-footer p {
  margin: 0;
  justify-self: stretch;
  text-align: start;
}

.footer-logo {
  width: auto;
  height: 26px;
  opacity: 0.66;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  justify-self: end;
  gap: 12px;
}

.footer-social-link {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  color: rgba(248, 244, 234, 0.7);
  transition: color 220ms ease, border-color 220ms ease, background 220ms ease;
}

.footer-social-link:hover,
.footer-social-link:focus-visible {
  color: var(--ivory);
  border-color: rgba(212, 175, 55, 0.72);
  background: rgba(212, 175, 55, 0.08);
  outline: none;
}

.footer-social-link svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 900ms ease, transform 900ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroDrift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.1) translate3d(1.4%, -1.1%, 0);
  }
}

@keyframes curtainStart {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-101%);
  }
}

@keyframes curtainEnd {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(101%);
  }
}

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes ruleDraw {
  from {
    transform: scaleY(0);
  }

  to {
    transform: scaleY(1);
  }
}

@keyframes threadFall {
  0% {
    opacity: 0;
    transform: translateY(0);
  }

  22% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(340%);
  }
}

@media (max-width: 980px) {
  .page-rail {
    display: none;
  }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .hero {
    min-height: 100svh;
  }

  .hero-inner {
    --hero-indent: 16px;
    grid-template-columns: 1fr;
    align-content: end;
    gap: 18px;
    width: min(100% - 48px, 760px);
    min-height: 100svh;
    padding: calc(var(--mat) + var(--mat-gap) + 74px) 0 clamp(30px, 4vh, 44px);
  }

  .hero-thread {
    height: 44px;
  }

  .eyebrow {
    margin-bottom: 10px;
  }

  .hero-content h1 {
    margin-bottom: 14px;
    font-size: clamp(1.8rem, 6.2vw, 2.4rem);
  }

  .hero-content p:not(.eyebrow) {
    font-size: 0.98rem;
  }

  .hero-actions {
    margin-top: 18px;
    gap: 10px;
  }

  .primary-action,
  .secondary-action {
    min-height: 48px;
    padding: 0 20px;
  }

  .proof-strip {
    margin-top: 22px;
  }

  .philosophy,
  .atelier-heading,
  .immersive,
  .consultation {
    grid-template-columns: 1fr;
  }

  .consultation-copy {
    max-width: none;
  }

  .form-fields {
    grid-template-columns: 1fr;
  }

  .philosophy {
    min-height: auto;
    grid-template-rows: auto;
    padding: clamp(64px, 10vw, 96px) 0;
  }

  .atelier-grid {
    grid-template-columns: 1fr;
  }

  .service-panel {
    position: relative;
    top: auto;
    min-height: 680px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 20px;
    text-align: center;
  }

  .site-footer p {
    text-align: center;
  }

  .footer-social {
    justify-self: center;
  }
}

@media (max-width: 620px) {
  .brand-logo {
    height: 24px;
  }

  h1 {
    font-size: clamp(1.7rem, 7.2vw, 2.15rem);
  }

  h2 {
    font-size: clamp(1.55rem, 6.4vw, 1.95rem);
  }

  .hero-inner {
    padding-top: 96px;
    padding-bottom: 20px;
  }

  .hero-content p:not(.eyebrow) {
    font-size: 0.94rem;
    line-height: 1.74;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .proof-strip {
    display: none;
  }

  .hero-thread {
    display: none;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
    text-align: center;
  }

  .service-panel {
    min-height: 640px;
  }

  .panorama-shell {
    min-height: 520px;
  }

  .panorama-caption {
    display: grid;
  }

  .service-glass {
    width: calc(100% - 28px);
    margin: 14px;
  }

  .site-footer {
    padding: 28px 20px 34px;
    gap: 22px;
  }

  .site-footer p {
    max-width: 28ch;
    line-height: 1.7;
  }

  .footer-social {
    gap: 14px;
  }

  .footer-social-link {
    width: 48px;
    height: 48px;
  }

  .footer-social-link svg {
    width: 19px;
    height: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-delay: 0s !important;
  }
}
