/* rawaqstudio.com — stone, ink, copper. Layout: 1200px container, arch signature, calm motion. */

/* ---------- Lenis (inlined recommended CSS) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent], .lenis [data-lenis-prevent-wheel], .lenis [data-lenis-prevent-touch] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }
.lenis.lenis-autoToggle { transition-property: overflow; transition-duration: 1ms; transition-behavior: allow-discrete; }

/* ---------- Tokens ---------- */
:root {
  --stone: #F1EBE1;
  --stone-2: #F8F4EE;
  --stone-3: #E9E1D3;
  --line: #E2D8C8;
  --line-2: #D4C8B4;
  --ink: #161A22;
  --ink-2: #3A3F4B;
  --grey: #6B645A;
  --copper: #8E4B24;
  --copper-2: #723B1C;
  --copper-3: #BE7B4B;
  --copper-soft: rgba(142, 75, 36, .10);
  --patina: #3F6B5F;
  --patina-2: #8FB8AA;
  --patina-soft: rgba(63, 107, 95, .12);
  --kw-wash: rgba(190, 123, 75, .20);
  --kw-wash-2: rgba(190, 123, 75, .34);
  --origin-start: right;
  --ink-soft: rgba(22, 26, 34, .08);
  --ink-line: rgba(22, 26, 34, .22);
  --shadow-sm: 0 1px 2px rgba(22, 26, 34, .06), 0 6px 18px rgba(22, 26, 34, .06);
  --shadow-md: 0 2px 6px rgba(22, 26, 34, .06), 0 18px 40px rgba(22, 26, 34, .10);
  --ease-out-expo: cubic-bezier(.16, 1, .3, 1);
  --ease-out-quint: cubic-bezier(.22, 1, .36, 1);
  --ease-reveal: cubic-bezier(.25, .1, .25, 1);
  --ease-material: cubic-bezier(.4, 0, .2, 1);
  --gutter: clamp(20px, 4vw, 48px);
  --container: 1200px;
  --narrow: 760px;
  --radius: 20px;
  --radius-sm: 12px;
  --head-h: 64px;
  --head-top: 14px;
  --font-display: 'Reem Kufi', 'Noto Kufi Arabic', 'Noto Naskh Arabic', sans-serif;
  --font-body: 'Readex Pro', 'Noto Sans Arabic', system-ui, sans-serif;
  color-scheme: light;
}
html[lang="en"] {
  --font-display: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --origin-start: left;
}

/* ---------- Base ---------- */
html, body { background: var(--stone); color: var(--ink); }
* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--head-h) + var(--head-top) + 16px);
  overflow-x: clip;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.85;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  min-height: 100%;
  -webkit-tap-highlight-color: transparent;
}
html[lang="en"] body { font-size: 1rem; line-height: 1.65; letter-spacing: -.005em; }
/* grain, unifies the stone surfaces */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 120; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* paints the phone's top safe-area band in the header colour */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--stone); }
::selection { background: rgba(142, 75, 36, .22); color: var(--ink); }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--copper); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--copper-2); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; text-wrap: balance; }
strong { font-weight: 600; }
table { border-collapse: collapse; width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; border-radius: 4px; }
.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; }
.muted { color: var(--grey); }
[hidden] { display: none !important; }

/* ---------- Type scale ---------- */
.h1, .h2, .h3, .h4 { font-family: var(--font-display); color: var(--ink); }
.h1, .h2 { font-weight: 500; }
.h1 { font-size: clamp(2.2rem, 1.3rem + 2.9vw, 3.6rem); line-height: 1.3; }
.h2 { font-size: clamp(1.9rem, 1.35rem + 2vw, 2.9rem); line-height: 1.32; }
.h3 { font-size: clamp(1.5rem, 1.25rem + 1vw, 1.95rem); line-height: 1.4; }
.h4 { font-size: 1.3rem; line-height: 1.42; }
html[lang="en"] .h1, html[lang="en"] .h2 { font-weight: 600; }
html[lang="en"] .h1 { font-size: clamp(2.75rem, 1.5rem + 4vw, 4.75rem); line-height: 1.04; letter-spacing: -.012em; }
html[lang="en"] .h2 { font-size: clamp(2.25rem, 1.5rem + 2.8vw, 3.75rem); line-height: 1.08; letter-spacing: -.01em; }
html[lang="en"] .h3 { font-size: clamp(1.75rem, 1.4rem + 1.3vw, 2.4rem); line-height: 1.15; }
html[lang="en"] .h4 { font-size: 1.5rem; line-height: 1.2; }
.h1__latin { display: block; font-size: .42em; color: var(--patina); font-family: var(--font-body); font-weight: 500; margin-top: .2em; letter-spacing: .14em; }
.lede { font-size: clamp(1.125rem, 1rem + .5vw, 1.3125rem); line-height: 1.75; color: var(--ink-2); max-width: 36rem; }
html[lang="en"] .lede { line-height: 1.55; }
.body-lg { font-size: 1.1875rem; line-height: 1.85; color: var(--ink-2); max-width: 40rem; }
html[lang="en"] .body-lg { font-size: 1.125rem; line-height: 1.65; }
.micro { font-size: .9375rem; line-height: 1.7; color: var(--grey); max-width: 36rem; }
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: .9375rem; font-weight: 500; color: var(--patina); margin: 0 0 1rem; }
.eyebrow::before { content: ""; flex: none; width: 28px; height: 1.5px; background: currentColor; opacity: .7; }
.section--trust .eyebrow, .section--ink .eyebrow { color: var(--patina-2); }
html[lang="en"] .eyebrow { font-size: .8125rem; text-transform: uppercase; letter-spacing: .14em; }
.note { color: var(--grey); font-size: .9375rem; }
.prose p { max-width: 40rem; color: var(--ink-2); }
.prose .h3 { margin-top: 2.25rem; margin-bottom: .6rem; }
.prose .h3:first-child { margin-top: 0; }

/* ---------- Layout ---------- */
.container {
  width: 100%; max-width: var(--container); margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.container.narrow { max-width: calc(var(--narrow) + 2 * var(--gutter)); }
.section { padding-block: clamp(72px, 9vw, 128px); }
.section--tight { padding-block: clamp(48px, 6vw, 88px); }
.section--alt { background: var(--stone-2); }
.section__head { margin-bottom: clamp(32px, 4vw, 56px); }
.section__head .lede { margin-top: .75rem; }
.section__foot { margin: clamp(28px, 3vw, 40px) 0 0; }
.page-head { padding-block: clamp(56px, 8vw, 112px) clamp(24px, 4vw, 48px); }
.page-head + .section--tight { padding-top: clamp(16px, 2vw, 28px); }
.page-head .lede { margin-top: 1.25rem; }
.page-head .micro { margin-top: 1rem; }

/* ---------- Header: a floating glass capsule over the lit stone ---------- */
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--ink); color: var(--stone-2); border-radius: 999px; }
.skip:focus { top: 16px; }
.site-head { position: fixed; top: calc(env(safe-area-inset-top, 0px) + var(--head-top)); inset-inline: 0; z-index: 50; pointer-events: none;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  transition: transform .55s var(--ease-out-quint); animation: head-down 1s var(--ease-out-expo) .1s backwards; }
.site-head__in { pointer-events: auto; position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--head-h); max-width: var(--container); margin-inline: auto;
  padding-inline: 20px 8px; border-radius: 999px; overflow: hidden;
  background: var(--stone-2);
  border: 1px solid rgba(255, 255, 255, .72);
  box-shadow: 0 1px 2px rgba(22, 26, 34, .04), 0 22px 50px -28px rgba(22, 26, 34, .32), inset 0 1px 0 rgba(255, 255, 255, .85);
  transition: height .45s var(--ease-out-quint), background-color .4s ease, box-shadow .4s ease; }
/* a copper glint travels along the capsule rim */
.site-head__in::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, transparent 40%, rgba(190, 123, 75, .95) 50%, transparent 60%, transparent 100%);
  background-size: 320% 100%; background-position: 140% 0; animation: rim-sweep 9s cubic-bezier(.4, 0, .2, 1) 1.6s infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask-composite: exclude; }
@keyframes rim-sweep { 0% { background-position: 140% 0; } 55%, 100% { background-position: -40% 0; } }
/* scroll progress along the capsule's bottom edge */
.site-head__in::after { content: ""; position: absolute; inset-inline: 24px; bottom: 0; height: 2px; border-radius: 2px; background: var(--copper); transform: scaleX(var(--prog, 0)); transform-origin: var(--origin-start); opacity: .85; }
.site-head.is-scrolled .site-head__in { height: 56px; background: var(--stone-2); box-shadow: 0 1px 2px rgba(22, 26, 34, .05), 0 18px 40px -22px rgba(22, 26, 34, .38), inset 0 1px 0 rgba(255, 255, 255, .9); }
.site-head.is-hidden { transform: translateY(calc(-100% - var(--head-top) - 14px)); }
@keyframes head-down { from { opacity: 0; transform: translateY(-18px); } }
.logo { display: inline-flex; align-items: center; flex: none; transition: opacity .25s ease; }
.logo:hover { opacity: .8; }
.logo img { width: auto; height: 40px; transition: height .45s var(--ease-out-quint); }
.site-head.is-scrolled .logo img { height: 34px; }
.site-nav { position: relative; display: flex; align-items: center; gap: 2px; }
.site-nav__ind { position: absolute; top: 50%; left: 0; width: var(--w, 0px); height: 36px; border-radius: 999px; background: var(--copper-soft); opacity: 0;
  transform: translate(var(--x, 0px), -50%); transition: transform .5s var(--ease-out-quint), width .5s var(--ease-out-quint), opacity .25s ease; }
.site-nav__ind.no-anim { transition: none; }
.site-nav.has-ind .site-nav__ind { opacity: 1; }
.site-nav a { position: relative; z-index: 1; color: var(--ink-2); text-decoration: none; font-size: .9375rem; font-weight: 500; padding: 8px 13px; border-radius: 999px; transition: color .25s ease; }
.site-nav a:hover { color: var(--copper-2); }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.site-head__actions { display: flex; align-items: center; gap: 12px; }
.site-head__login { color: var(--ink-2); text-decoration: none; font-size: .9375rem; font-weight: 500; white-space: nowrap; transition: color .25s ease; }
.site-head__login:hover { color: var(--copper-2); }
.lang { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 36px; padding: 0 10px; border: 1px solid var(--ink-line); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: .8125rem; font-weight: 600; letter-spacing: .06em; transition: background-color .25s, border-color .25s; }
.lang:hover { background: var(--ink-soft); color: var(--ink); }
.burger { display: none; position: relative; z-index: 80; flex-direction: column; align-items: flex-end; justify-content: center; gap: 7px; width: 44px; height: 44px; padding: 8px; border: 0; background: transparent; cursor: pointer; border-radius: 999px; }
.burger i { display: block; width: 26px; height: 1.6px; background: var(--ink); transition: transform .3s var(--ease-out-quint), width .3s var(--ease-out-quint); }
.burger i:last-child { width: 18px; }
.burger[aria-expanded="true"] i { width: 26px; }
.burger[aria-expanded="true"] i:first-child { transform: translateY(4.3px) rotate(45deg); }
.burger[aria-expanded="true"] i:last-child { transform: translateY(-4.3px) rotate(-45deg); }
body.menu-open .site-head { z-index: 80; }
@media (max-width: 1023px) {
  .site-nav, .site-head__login { display: none; }
  .burger { display: flex; }
  .site-head__actions .btn--sm { display: none; }
  .site-head__in { padding-inline: 16px 6px; }
}
@media (max-width: 480px) {
  :root { --head-h: 56px; --head-top: 10px; }
  .logo img { height: 34px; }
  .site-head.is-scrolled .logo img { height: 30px; }
  .site-head.is-scrolled .site-head__in { height: 50px; }
}

/* mobile menu */
.menu { position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column; justify-content: center; background: var(--stone-2); padding: max(110px, calc(env(safe-area-inset-top, 0px) + 100px)) var(--gutter) max(32px, env(safe-area-inset-bottom, 0px)); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s; overflow: auto; }
body.menu-open .menu { opacity: 1; visibility: visible; transition: opacity .3s ease; }
.menu__links { display: flex; flex-direction: column; gap: 4px; max-width: var(--container); width: 100%; margin-inline: auto; }
.menu__links a { display: block; padding: 10px 0; color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.7rem, 6vw, 2.3rem); line-height: 1.35; opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease-out-quint), transform .5s var(--ease-out-quint); }
html[lang="en"] .menu__links a { line-height: 1.1; }
.menu__links a[aria-current="page"] { color: var(--copper); }
.menu__links a:hover { color: var(--copper-2); }
.menu__links a.menu__small { font-family: var(--font-body); font-size: 1.0625rem; font-weight: 500; color: var(--ink-2); padding: 8px 0; }
.menu__links a.menu__small[dir] { text-align: end; }
.menu__links a.menu__cta { display: inline-flex; margin-top: 20px; align-self: flex-start; padding: 0 28px; min-height: 52px; font-family: var(--font-body); font-size: 1rem; line-height: 1.2; opacity: 0; }
body.menu-open .menu__links a { opacity: 1; transform: none; transition-delay: calc(80ms + var(--i, 0) * 60ms); }
body.menu-open { overflow: hidden; }
@media (min-width: 1024px) { .menu { display: none; } }

/* ---------- Buttons & links ---------- */
.btn { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent; text-decoration: none; font-weight: 500; font-size: .9375rem; line-height: 1.2; white-space: nowrap; cursor: pointer; transition: background-color .25s var(--ease-material), color .25s var(--ease-material), border-color .25s var(--ease-material), box-shadow .4s var(--ease-out-quint), transform .2s var(--ease-out-quint); touch-action: manipulation; }
.btn:active { transform: scale(.98); }
/* the ring: a copper line that settles around the button, with one soft pulse outward */
.btn::before { content: ""; position: absolute; inset: -5px; border-radius: 999px; border: 1.5px solid var(--copper); opacity: 0; transform: scale(.93); pointer-events: none; transition: opacity .35s ease, transform .5s var(--ease-out-quint); }
/* the sweep: a band of light that crosses between the fill and the label */
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0;
  background: linear-gradient(115deg, transparent 34%, rgba(255, 255, 255, .42) 50%, transparent 66%); background-size: 260% 100%; background-position: 115% 0;
  transition: background-position .8s var(--ease-material), opacity .25s ease; }
html[dir="rtl"] .btn::after { background-image: linear-gradient(-115deg, transparent 34%, rgba(255, 255, 255, .42) 50%, transparent 66%); background-position: -15% 0; }
.btn--primary { background: var(--copper); color: var(--stone-2); border-color: var(--copper); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink-line); }
@media (hover: hover) {
  .btn:hover::before { opacity: .65; transform: scale(1); animation: ring-pulse .9s var(--ease-out-quint); }
  .btn:hover::after { opacity: 1; background-position: -15% 0; }
  html[dir="rtl"] .btn:hover::after { background-position: 115% 0; }
  .btn--primary:hover { background: var(--copper-2); border-color: var(--copper-2); color: var(--stone-2); box-shadow: 0 14px 30px -14px rgba(142, 75, 36, .65); }
  .btn--ghost:hover { background: var(--copper-soft); color: var(--copper-2); border-color: var(--copper); }
  .btn--ghost::after { background-image: linear-gradient(115deg, transparent 34%, rgba(190, 123, 75, .22) 50%, transparent 66%); }
  html[dir="rtl"] .btn--ghost::after { background-image: linear-gradient(-115deg, transparent 34%, rgba(190, 123, 75, .22) 50%, transparent 66%); }
}
.btn:focus-visible { outline: none; }
.btn:focus-visible::before { opacity: .9; transform: scale(1); }
@keyframes ring-pulse { 0% { box-shadow: 0 0 0 0 rgba(142, 75, 36, .35); } 100% { box-shadow: 0 0 0 14px rgba(142, 75, 36, 0); } }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: .875rem; }
.btn--lg { min-height: 56px; padding: 0 30px; font-size: 1.0625rem; }
.btn--static { cursor: default; color: var(--grey); border-style: dashed; }
.btn--static:hover { background: transparent; color: var(--grey); border-color: var(--ink-line); box-shadow: none; }
.btn--static::before, .btn--static::after { display: none; }
.btn__t { display: inline-grid; overflow: hidden; height: 1.25em; line-height: 1.25; }
.btn__t span { grid-area: 1 / 1; display: block; transition: transform .5s var(--ease-out-quint); }
.btn__t span + span { transform: translateY(115%); }
@media (hover: hover) {
  .btn:hover .btn__t span:first-child { transform: translateY(-115%); }
  .btn:hover .btn__t span + span { transform: translateY(0); }
}
.btn .ic { width: 18px; height: 18px; flex: none; transition: transform .3s var(--ease-out-quint); }
.btn:hover .ic-flip { transform: translateX(3px); }
[dir="rtl"] .ic-flip { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .ic-flip { transform: scaleX(-1) translateX(3px); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.75rem; }
.link-arrow { position: relative; display: inline-flex; align-items: center; gap: 8px; color: var(--copper); font-weight: 500; text-decoration: none; }
.link-arrow::after { content: ""; position: absolute; inset-inline: 0 26px; bottom: -3px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: var(--origin-start); transition: transform .4s var(--ease-out-quint); }
.link-arrow:hover::after { transform: scaleX(1); }
.link-arrow .ic { width: 18px; height: 18px; transition: transform .3s var(--ease-out-quint); }
.link-arrow:hover { color: var(--copper-2); }
.link-arrow:hover .ic-flip { transform: translateX(3px); }
[dir="rtl"] .link-arrow:hover .ic-flip { transform: scaleX(-1) translateX(3px); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 7vw, 96px) clamp(48px, 7vw, 96px); position: relative; }
.hero__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: clamp(32px, 6vw, 96px); }
.hero__copy .h1 { max-width: 21ch; }
.hero__copy .h1--lines { max-width: none; }
@media (min-width: 1024px) { html[lang="ar"] .h1--lines .hl { white-space: nowrap; } }
html[lang="en"] .hero__copy .h1.h1--lines { max-width: none; font-size: clamp(2.4rem, .9rem + 3.2vw, 3.6rem); line-height: 1.08; }
html[lang="en"] .hero__copy .h1 { max-width: 16ch; }
.h1--lines .hl { display: block; overflow: clip; padding: .12em .3em .24em; margin: -.12em -.3em -.24em; }
.h1--lines .hl__in { display: block; will-change: transform; }
.hero__copy .lede { margin-top: 1.5rem; }
.hero__copy .micro { margin-top: 1.5rem; }
.hero__visual { position: relative; display: flex; justify-content: center; align-items: center; will-change: transform; }
.hero__glow { position: absolute; left: 50%; bottom: 4%; width: 68%; aspect-ratio: 1; transform: translate(-50%, 32%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(190, 123, 75, .34), rgba(190, 123, 75, .12) 48%, transparent 72%);
  animation: glow-breathe 6s ease-in-out infinite; }
@keyframes glow-breathe { 0%, 100% { transform: translate(-50%, 32%) scale(1); opacity: .85; } 50% { transform: translate(-50%, 32%) scale(1.08); opacity: 1; } }
.arch { position: relative; z-index: 1; width: min(100%, 440px); height: auto; max-height: 70vh; overflow: visible; }
.arch__line { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linejoin: miter; stroke-linecap: butt; }
.arch__door { fill: var(--copper); }
.arch--dark .arch__line { stroke: var(--stone); }
.arch--dark .arch__door { fill: var(--copper-3); }
.arch--closed .arch__door { fill: var(--line-2); }
.arch--animate .arch__line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: arch-draw 1.7s var(--ease-out-expo) .15s both; }
.arch--animate .arch__line--2 { animation-delay: .35s; }
.arch--animate .arch__door { clip-path: inset(100% 0 0 0); animation: arch-rise 1.5s var(--ease-out-expo) .6s both; }
@keyframes arch-draw { to { stroke-dashoffset: 0; } }
@keyframes arch-rise { to { clip-path: inset(0 0 0 0); } }
@media (max-width: 899px) {
  .hero__in { grid-template-columns: 1fr; gap: 36px; }
  .hero__visual { order: 2; }
  .arch { width: min(62%, 260px); }
}

/* entrance choreography (rest state visible; hidden only while an animation is pending) */
.in { animation: fade-rise .95s var(--ease-out-expo) var(--d, 0s) both; }
.in--1 { --d: .08s; } .in--2 { --d: .22s; } .in--3 { --d: .36s; } .in--4 { --d: .52s; } .in--5 { --d: .68s; } .in--6 { --d: .84s; }
.js .in { animation-play-state: paused; }
.js.fonts-ready .in { animation-play-state: running; }
@keyframes fade-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* when GSAP owns the choreography, CSS entrances step aside and the hero waits hidden until fonts are ready */
.gsap .in { animation: none; }
.gsap .hero__copy .in:not(.h1 *), .gsap .page-head .in:not(.h1 *) { opacity: 0; }
.gsap-fail .hero__copy .in, .gsap-fail .page-head .in { opacity: 1; }
.gsap .h1, .gsap .h2, .gsap .h3, .gsap .lede { text-wrap: auto; }
.sl-mask { overflow: clip; padding: .12em .3em .24em; margin: -.12em -.3em -.24em; }
.sl { display: block; will-change: transform; }

/* scroll reveals */
.js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease-out-quint), transform 1s var(--ease-out-quint); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Arcade: walking through the rawaq (scroll scene) ---------- */
.arcade { position: relative; height: 260vh; }
.arcade__stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: clip;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 74%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0%, #000 74%, transparent 100%); }
.arcade__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(32px, 6vw, 96px); width: 100%; }
.arcade__copy { position: relative; min-height: 8.5em; }
.arcade__chapter { position: absolute; inset-inline: 0; top: 50%; transform: translateY(-50%); margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.7rem, 1.1rem + 2vw, 2.7rem); line-height: 1.42; color: var(--ink); visibility: hidden; }
html[lang="en"] .arcade__chapter { line-height: 1.12; font-weight: 600; }
.ml { display: block; overflow: clip; padding: .1em .3em .22em; margin: -.1em -.3em -.22em; }
.ml > span { display: block; transform: translateY(110%); will-change: transform; }
.arcade__tunnel { position: relative; aspect-ratio: 95 / 122; width: min(100%, 520px); max-height: 82vh; margin-inline: auto; }
.arcade__arch, .arcade__final { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform-origin: 50% 64%; pointer-events: none; }
.arcade__arch path { fill: none; stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; }
.arcade__arch { opacity: 0; }
.arcade__final { opacity: 0; transform: scale(.85); }
.arcade__final .arch__line { fill: none; stroke: var(--ink); stroke-width: 2.4; vector-effect: non-scaling-stroke; }
.arcade__final .arch__door { fill: var(--copper); clip-path: inset(100% 0 0 0); }
html:not(.gsap) .arcade { height: auto; padding-block: clamp(56px, 8vw, 112px); }
html:not(.gsap) .arcade__stage { position: static; height: auto; overflow: visible; }
html:not(.gsap) .arcade__chapter { position: static; transform: none; visibility: visible; margin-bottom: 1.2em; }
html:not(.gsap) .ml > span { transform: none; }
html:not(.gsap) .arcade__arch { display: none; }
html:not(.gsap) .arcade__final { opacity: 1; transform: none; }
html:not(.gsap) .arcade__final .arch__door { clip-path: none; }
@media (max-width: 899px) {
  .arcade { height: 220vh; }
  .arcade__in { grid-template-columns: 1fr; gap: 24px; align-content: center; }
  .arcade__copy { min-height: 7em; }
  .arcade__chapter { font-size: clamp(1.7rem, 1.1rem + 3vw, 2.4rem); }
  .arcade__tunnel { width: min(70%, 300px); max-height: 46vh; }
}

/* ---------- Ambient background: lit stone (WebGL) over a light wash ---------- */
main, .site-foot { position: relative; z-index: 1; }
main { padding-top: calc(var(--head-h) + var(--head-top)); }
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg__wash { position: absolute; inset: 0; }
.bg__wash::before, .bg__wash::after { content: ""; position: absolute; width: 78vmax; height: 78vmax; border-radius: 50%; will-change: transform; }
.bg__wash::before { inset-inline-start: -28%; top: -34%; background: radial-gradient(closest-side, rgba(190, 123, 75, .17), rgba(190, 123, 75, .06) 45%, rgba(190, 123, 75, 0) 72%); animation: wash-a 54s ease-in-out infinite alternate; }
.bg__wash::after { inset-inline-end: -30%; bottom: -38%; background: radial-gradient(closest-side, rgba(255, 251, 243, .95), rgba(255, 251, 243, .35) 45%, rgba(255, 251, 243, 0) 72%); animation: wash-b 66s ease-in-out infinite alternate; }
@keyframes wash-a { to { transform: translate3d(16vw, 20vh, 0) scale(1.12); } }
@keyframes wash-b { to { transform: translate3d(-14vw, -18vh, 0) scale(1.08); } }
/* floating copper light spots (CSS fallback; the WebGL backdrop draws its own) */
.bg__spots { position: absolute; inset: 0; }
.bg__spots i { position: absolute; width: 26vmax; height: 26vmax; border-radius: 50%; will-change: transform, opacity;
  background: radial-gradient(closest-side, rgba(217, 166, 130, .32), rgba(217, 166, 130, .1) 45%, rgba(217, 166, 130, 0) 72%);
  animation: spot-float var(--dur, 40s) ease-in-out var(--delay, 0s) infinite alternate; }
.bg__spots i:nth-child(1) { inset-inline-start: 8%; top: 14%; --dur: 38s; }
.bg__spots i:nth-child(2) { inset-inline-end: 6%; top: 32%; --dur: 46s; --delay: -14s; width: 18vmax; height: 18vmax; }
.bg__spots i:nth-child(3) { inset-inline-start: 36%; bottom: 6%; --dur: 52s; --delay: -28s; }
.bg__spots i:nth-child(4) { inset-inline-end: 30%; bottom: 24%; --dur: 44s; --delay: -8s; width: 14vmax; height: 14vmax; }
@keyframes spot-float { from { transform: translate3d(-4vw, 3vh, 0) scale(.92); opacity: .7; } to { transform: translate3d(5vw, -4vh, 0) scale(1.1); opacity: 1; } }
.gl-on .bg__spots { display: none; }
/* lit stone: full-page WebGL backdrop (slow marble light seen through reeded glass); the CSS wash is its fallback */
.bg__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s ease; }
.gl-on .bg__gl { opacity: 1; }
.gl-on .bg__wash { display: none; }


/* pointer tilt on demo cards */
.demo-grid { perspective: 1200px; }
.demo-card { transform-style: preserve-3d; }
.demo-card.is-tilting { transition: transform .15s ease-out, box-shadow .4s var(--ease-out-quint), border-color .3s; }

/* colonnade divider between sections */
.divider { height: 54px; max-width: var(--container); margin: 0 auto; opacity: .55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='54' viewBox='0 0 40 54'%3E%3Cg transform='translate(3 4) scale(.36)'%3E%3Cpath d='M9.5 116.04V58.04A50 50 0 0 1 47.5 9.5A50 50 0 0 1 85.5 58.04V116.04' fill='none' stroke='%238E4B24' stroke-width='2.2'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x; background-position: center bottom; background-size: 40px 54px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }

/* ---------- Sections ---------- */
.section--who .body-lg { margin-top: 1.25rem; }
.demo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
@media (max-width: 1023px) { .demo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .demo-grid { grid-template-columns: 1fr; } .archwin { width: 54%; } }
.demo-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 22px; background: var(--stone-2); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: transform .4s var(--ease-out-quint), box-shadow .4s var(--ease-out-quint), border-color .3s; }
.demo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-2); color: var(--ink); }
.demo-card__type { font-weight: 600; font-size: 1.0625rem; margin-top: 14px; }
.demo-card__shows { color: var(--grey); font-size: .9375rem; line-height: 1.6; }
.demo-card__badge { position: absolute; top: 14px; inset-inline-start: 14px; font-size: .75rem; font-weight: 500; color: var(--patina); background: var(--patina-soft); border: 1px solid transparent; border-radius: 999px; padding: 3px 10px; }
.archwin { position: relative; aspect-ratio: 95 / 122; width: 72%; margin: 12px auto 0; }
.archwin svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.archwin__line { fill: none; stroke: var(--ink); stroke-width: 1.6; }
.archwin__fill { fill: var(--copper); opacity: .06; transition: opacity .4s ease; }
.demo-card:hover .archwin__fill { opacity: .16; }
.archwin__name { position: absolute; inset-inline: 0; top: 46%; transform: translateY(-50%); text-align: center; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.7rem, 2.2vw, 2.3rem); line-height: 1.2; color: var(--ink); padding: 0 12px; }
.archwin__latin { position: absolute; inset-inline: 0; top: 70%; text-align: center; font-size: .75rem; letter-spacing: .18em; color: var(--patina); font-weight: 500; }
html[lang="en"] .archwin__latin { letter-spacing: 0; font-size: 1rem; font-family: var(--font-body); }

.checks { list-style: none; display: grid; gap: 12px; margin-top: 1.5rem; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); line-height: 1.7; }
.checks .ic { width: 22px; height: 22px; flex: none; color: var(--copper); margin-top: .35em; }
html[lang="en"] .checks .ic { margin-top: .15em; }
.checks--light li { color: rgba(241, 235, 225, .86); }
.checks--light .ic { color: var(--copper-3); }
.dashes { list-style: none; display: grid; gap: 10px; margin-top: 1rem; }
.dashes li { position: relative; padding-inline-start: 22px; color: var(--ink-2); }
.dashes li::before { content: ""; position: absolute; inset-inline-start: 0; top: .95em; width: 10px; height: 1.5px; background: var(--patina); }
html[lang="en"] .dashes li::before { top: .8em; }

.offer { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.offer__copy > p { margin-top: 1.5rem; }
@media (max-width: 899px) { .offer { grid-template-columns: 1fr; } }
.price-card { position: sticky; top: calc(var(--head-h) + var(--head-top) + 20px); background: var(--stone-2); border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow-sm); }
.price-card__price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price-card__num { font-family: var(--font-display); font-size: clamp(3.5rem, 7vw, 5rem); line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.price-card__unit { color: var(--ink-2); font-size: 1.125rem; }
.price-card__alt { color: var(--ink-2); margin: 10px 0 0; }
.price-card__nofee { display: inline-block; margin: 12px 0 22px; padding: 4px 12px; border-radius: 999px; background: var(--patina-soft); color: var(--patina); font-size: .875rem; font-weight: 500; }
.price-card .btn { width: 100%; }

.steps { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: clamp(28px, 4vw, 48px); counter-reset: step; }
.steps li { position: relative; padding-top: 18px; border-top: 1px solid var(--line-2); }
.steps h3 { font-family: var(--font-body); font-size: 1.125rem; font-weight: 600; margin: 8px 0 6px; }
.steps p { color: var(--ink-2); font-size: .9375rem; line-height: 1.7; margin: 0; }
.step__n { display: inline-block; font-size: .8125rem; font-weight: 500; letter-spacing: .08em; color: var(--copper); font-variant-numeric: tabular-nums; }
.steps--principles { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.steps--principles .h4 { font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; line-height: 1.4; margin: 8px 0 6px; }
@media (max-width: 1023px) { .steps, .steps--principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps, .steps--principles { grid-template-columns: 1fr; gap: 20px; } }

.section--trust, .section--ink { background: var(--ink); color: var(--stone); }
.section--trust .h2, .section--ink .h2, .section--ink .h3 { color: var(--stone-2); }
.section--ink .body-lg { color: rgba(241, 235, 225, .82); }
.section--trust :focus-visible, .section--ink :focus-visible { outline-color: var(--copper-3); }
.trust { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.trust__mark { display: flex; justify-content: center; }
.trust__mark .arch { width: min(100%, 300px); opacity: .95; }
@media (max-width: 899px) { .trust { grid-template-columns: 1fr; } .trust__mark { display: none; } }
.swatches { display: flex; gap: 10px; margin-top: 1.5rem; }
.swatches span { width: 44px; height: 44px; border-radius: 50%; background: var(--c); border: 1px solid rgba(241, 235, 225, .25); }

.section--not .body-lg { margin-top: 1rem; }
.faq-list { margin-top: 1.25rem; border-top: 1px solid var(--line-2); }
.faq { border-bottom: 1px solid var(--line-2); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; cursor: pointer; list-style: none; font-weight: 500; font-size: 1.0625rem; color: var(--ink); line-height: 1.5; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { width: 20px; height: 20px; flex: none; color: var(--copper); transition: transform .3s var(--ease-out-quint); }
.faq[open] summary .ic { transform: rotate(180deg); }
.faq summary:hover { color: var(--copper-2); }
.faq__a { padding: 0 0 20px; color: var(--ink-2); max-width: 44rem; }
.faq__a p { margin: 0; }
.faq-group { margin-top: clamp(28px, 4vw, 48px); }
.faq-group:first-child { margin-top: 0; }

.section--close { background: var(--stone-2); border-top: 1px solid var(--line); text-align: center; }
.section--close .h2 { max-width: 22ch; margin-inline: auto; }
.section--close .lede { margin: 1rem auto 0; }
.section--close .cta-row { justify-content: center; margin-top: 2rem; }

/* ---------- Work / demo ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table th, .table td { text-align: start; padding: 14px 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; font-size: .9375rem; line-height: 1.6; }
.table thead th { font-weight: 600; color: var(--grey); font-size: .8125rem; border-bottom-color: var(--ink-line); }
.table tbody th { font-weight: 600; white-space: nowrap; }
.table tbody th a { color: var(--ink); text-decoration: none; }
.table tbody th a:hover { color: var(--copper); }
.demo-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.demo-head__visual .archwin { width: min(100%, 300px); margin: 0 auto; }
.demo-head__visual .archwin__name { font-size: clamp(2.2rem, 4vw, 3.2rem); }
@media (max-width: 899px) { .demo-head { grid-template-columns: 1fr; } .demo-head__visual { order: -1; } .demo-head__visual .archwin { width: min(60%, 220px); } }
.score { font-size: .9375rem; color: var(--ink-2); }

/* ---------- Pricing ---------- */
.price-box { background: var(--stone-2); border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-sm); text-align: center; }
.seg { display: inline-flex; padding: 4px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--stone); }
.seg__btn { min-height: 40px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font-weight: 500; font-size: .9375rem; color: var(--ink-2); transition: background-color .25s var(--ease-material), color .25s; }
.seg__btn[aria-pressed="true"] { background: var(--ink); color: var(--stone-2); }
.price-box__price { display: flex; justify-content: center; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.price-box__num { font-family: var(--font-display); font-size: clamp(3.75rem, 9vw, 5.5rem); line-height: 1; font-variant-numeric: tabular-nums; }
.price-box__unit { font-size: 1.125rem; color: var(--ink-2); }
.price-box__note { color: var(--patina); font-weight: 500; margin: 10px 0 0; }
.price-box__under { color: var(--grey); font-size: .9375rem; margin: 6px 0 22px; }
.inc-groups { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 40px); margin-top: 1.5rem; }
.inc-group .h4 { margin-bottom: 4px; }
.inc-group .checks { margin-top: .75rem; }
@media (max-width: 720px) { .inc-groups { grid-template-columns: 1fr; } }
.trial { background: var(--stone-2); border: 1px solid var(--line); border-inline-start: 4px solid var(--copper); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); }
.trial p { color: var(--ink-2); max-width: 44rem; }
.trial .h4 { margin-top: 1rem; }
.trial p:last-child { margin-bottom: 0; }

/* ---------- How ---------- */
.tl { list-style: none; display: grid; gap: 0; }
.tl__item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 24px 0; border-top: 1px solid var(--line-2); }
.tl__item:last-child { border-bottom: 1px solid var(--line-2); }
.tl__n { font-family: var(--font-display); font-size: 2.25rem; line-height: 1; color: var(--copper); font-variant-numeric: tabular-nums; padding-top: 4px; }
.tl__body .h3 { font-family: var(--font-body); font-size: 1.1875rem; font-weight: 600; line-height: 1.4; }
.tl__body p { color: var(--ink-2); margin: 8px 0 10px; max-width: 42rem; }
.tl__tag { display: inline-block; font-size: .8125rem; font-weight: 500; color: var(--patina); background: var(--patina-soft); border-radius: 999px; padding: 3px 12px; }
@media (max-width: 560px) { .tl__item { grid-template-columns: 44px minmax(0, 1fr); } .tl__n { font-size: 1.75rem; } }

/* ---------- Apply form ---------- */
.apply { margin-top: 8px; }
.field { margin: 0 0 26px; padding: 0; border: 0; min-width: 0; }
.field > label, .field > legend { display: block; font-weight: 500; margin-bottom: 8px; padding: 0; }
.req { font-size: .8125rem; font-weight: 500; color: var(--patina); margin-inline-start: 6px; }
.req--opt { color: var(--grey); font-weight: 400; }
.field input[type="text"], .field input[type="tel"], .field input[type="url"], .field input[type="email"], .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; font: inherit; color: var(--ink); background: var(--stone-2);
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder { color: #9A9287; opacity: 1; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; border-color: var(--copper); }
.field textarea { resize: vertical; min-height: 96px; line-height: 1.7; }
.field__hint { font-size: .875rem; color: var(--grey); margin: 6px 0 0; }
.field__err { font-size: .9375rem; color: var(--copper-2); font-weight: 500; margin: 8px 0 0; }
.field.is-invalid input { border-color: var(--copper); box-shadow: 0 0 0 3px var(--copper-soft); }
.field.is-invalid > label, .field.is-invalid > legend { color: var(--copper-2); }
.field--sub { margin: 14px 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--stone-2); cursor: pointer; font-size: .9375rem; color: var(--ink); transition: background-color .2s, border-color .2s, color .2s; user-select: none; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.chip .ic { width: 0; height: 16px; opacity: 0; transition: width .3s var(--ease-out-quint), opacity .2s; }
.chip:hover { border-color: var(--ink-line); }
.chip:has(input:checked) { background: var(--ink); border-color: var(--ink); color: var(--stone-2); }
.chip:has(input:checked) .ic { width: 16px; opacity: 1; }
.chip:has(input:focus-visible) { outline: 2px solid var(--copper); outline-offset: 3px; }
.field.is-invalid .chip { border-color: var(--copper); }
.apply__opt { margin: 36px 0 18px; color: var(--ink); }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.apply__submit { margin-top: 32px; display: grid; gap: 12px; justify-items: start; }
.form__alert { background: var(--copper-soft); color: var(--copper-2); border-radius: var(--radius-sm); padding: 12px 16px; font-weight: 500; margin: 0 0 20px; }
.apply__compose, .apply__thanks { background: var(--stone-2); border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 4vw, 40px); }
.apply__summary { white-space: pre-wrap; font: inherit; font-size: .9375rem; line-height: 1.8; background: var(--stone); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; color: var(--ink-2); margin: 0 0 20px; overflow-wrap: anywhere; }
.apply__thanks .lede { margin-top: .75rem; }

/* ---------- Story ---------- */
.story-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.story-head__copy .body-lg { margin-top: 1.25rem; }
.story-head__visual { display: flex; justify-content: center; }
.story-head__visual .arch { width: min(100%, 320px); }
@media (max-width: 899px) { .story-head { grid-template-columns: 1fr; } .story-head__visual .arch { width: min(55%, 220px); } }

/* ---------- Terms ---------- */
.terms__sec { padding: 28px 0; border-top: 1px solid var(--line-2); }
.terms__sec:first-child { border-top: 0; padding-top: 0; }
.terms__n { color: var(--copper); }
.terms .dashes { margin-top: 1rem; }
.terms .dashes li { max-width: 44rem; }

/* ---------- Blog ---------- */
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.25rem; }
.tags li { font-size: .8125rem; font-weight: 500; color: var(--patina); border: 1px solid rgba(63, 107, 95, .35); border-radius: 999px; padding: 4px 12px; }
.posts { display: grid; gap: 18px; }
.post { background: var(--stone-2); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 28px); }
.post__meta { display: flex; justify-content: space-between; gap: 12px; font-size: .8125rem; color: var(--grey); margin: 0 0 8px; }
.post__soon { color: var(--patina); font-weight: 500; }
.post p { color: var(--ink-2); margin: 8px 0 0; }
.box { background: var(--stone-2); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); }
.box p { margin: 0; color: var(--ink-2); font-size: 1.125rem; }
.box .cta-row { margin-top: 1.25rem; }

/* ---------- 404 ---------- */
.nf { text-align: center; }
.nf__mark { display: flex; justify-content: center; margin-bottom: 24px; }
.nf__mark .arch { width: 120px; }
.nf .lede { margin-inline: auto; }
.nf .cta-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-foot { background: var(--stone-3); border-top: 1px solid var(--line-2); padding-top: clamp(48px, 6vw, 80px); }
.site-foot__in { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: clamp(28px, 4vw, 56px); max-width: var(--container); margin-inline: auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.site-foot__brand img { width: auto; height: 44px; margin-bottom: 18px; }
.site-foot__brand p { color: var(--ink-2); max-width: 30rem; margin-bottom: 6px; }
.site-foot__col h2 { font-family: var(--font-body); font-size: .8125rem; font-weight: 600; color: var(--patina); margin-bottom: 14px; }
html[lang="en"] .site-foot__col h2 { text-transform: uppercase; letter-spacing: .12em; }
.site-foot__col ul { list-style: none; display: grid; gap: 8px; }
.site-foot__col a { color: var(--ink-2); text-decoration: none; }
.site-foot__col a:hover { color: var(--copper); }
.site-foot__bar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; max-width: var(--container); margin: clamp(32px, 4vw, 56px) auto 0; padding: 18px max(var(--gutter), env(safe-area-inset-left, 0px)) max(18px, env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px)); border-top: 1px solid var(--line-2); color: var(--grey); font-size: .875rem; }
@media (max-width: 899px) { .site-foot__in { grid-template-columns: 1fr 1fr; } .site-foot__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .site-foot__in { grid-template-columns: 1fr; } }

/* ---------- WhatsApp float ---------- */
.wa-float { position: fixed; z-index: 65; inset-block-end: calc(20px + env(safe-area-inset-bottom, 0px)); inset-inline-end: calc(20px + env(safe-area-inset-right, 0px)); display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--copper); color: var(--stone-2); box-shadow: var(--shadow-md); transition: transform .3s var(--ease-out-quint), background-color .2s; }
[dir="ltr"] .wa-float { inset-inline-end: calc(20px + env(safe-area-inset-right, 0px)); }
.wa-float::before { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid var(--copper); opacity: 0; transform: scale(.9); transition: opacity .35s ease, transform .5s var(--ease-out-quint); }
.wa-float:hover { background: var(--copper-2); color: var(--stone-2); transform: translateY(-3px); }
.wa-float:hover::before { opacity: .65; transform: scale(1); animation: ring-pulse .9s var(--ease-out-quint); }
.wa-float:focus-visible { outline-offset: 4px; }
body.menu-open .wa-float { visibility: hidden; }

/* ---------- One material for every raised surface: frosted stone glass ---------- */
.demo-card, .price-card, .price-box, .trial, .box, .post, .apply__compose, .apply__thanks, .wiz {
  background: rgba(248, 244, 238, .66); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-color: rgba(255, 255, 255, .72);
  box-shadow: 0 1px 2px rgba(22, 26, 34, .04), 0 30px 60px -44px rgba(22, 26, 34, .3), inset 0 1px 0 rgba(255, 255, 255, .8); }
.demo-card:hover { box-shadow: 0 2px 6px rgba(22, 26, 34, .05), 0 28px 50px -30px rgba(22, 26, 34, .35), inset 0 1px 0 rgba(255, 255, 255, .9); border-color: rgba(190, 123, 75, .35); }

/* ---------- Application wizard ---------- */
.wiz { position: relative; border: 1px solid var(--line); border-radius: 28px; padding: clamp(22px, 4vw, 44px); }
.wiz__rail { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin: 0 0 16px; }
.wiz__rail li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: .8125rem; line-height: 1.3; text-align: center; color: var(--grey); cursor: pointer; transition: color .3s; }
.wiz__rail li::before { content: ""; position: absolute; top: 17px; inset-inline-start: 50%; width: 100%; height: 1.5px; background: var(--line-2); z-index: 0; transition: background-color .4s; }
.wiz__rail li:last-child::before { display: none; }
.wiz__rail li.is-done::before { background: var(--copper); }
.wiz__dot { position: relative; z-index: 1; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line-2); background: var(--stone-2); font-size: .875rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--grey); transition: background-color .35s, border-color .35s, color .35s, box-shadow .35s, transform .35s var(--ease-out-quint); }
.wiz__rail li.is-done .wiz__dot { background: var(--copper); border-color: var(--copper); color: var(--stone-2); }
.wiz__rail li.is-current { color: var(--ink); font-weight: 500; }
.wiz__rail li.is-current .wiz__dot { border-color: var(--copper); color: var(--copper-2); box-shadow: 0 0 0 5px var(--copper-soft); transform: scale(1.08); }
.wiz__rail li:hover .wiz__dot { border-color: var(--copper); }
.wiz__bar { height: 3px; background: var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 12px; }
.wiz__bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--copper), var(--copper-3)); transform: scaleX(var(--p, 0)); transform-origin: var(--origin-start); transition: transform .7s var(--ease-out-quint); }
.wiz__count { color: var(--patina); font-weight: 500; font-size: .9375rem; margin: 0 0 24px; }
.wiz__step { display: none; border: 0; padding: 0; margin: 0; min-width: 0; }
.wiz__step.is-active { display: block; }
html:not(.js) .wiz__step { display: block; margin-bottom: 40px; }
html:not(.js) .wiz__rail, html:not(.js) .wiz__count, html:not(.js) .wiz__bar, html:not(.js) [data-next], html:not(.js) [data-back] { display: none; }
.wiz__title { display: block; padding: 0; margin: 0 0 6px; }
.wiz__lead { color: var(--ink-2); margin: 0 0 28px; max-width: 40rem; }
.wiz .field { margin-bottom: 28px; }
.wiz .field--sub { margin: 14px 0 0; }
.wiz__nav { display: flex; align-items: center; gap: 12px; margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); }
.wiz__spacer { flex: 1; }
html.js .wiz:not(.is-ready) .wiz__nav { visibility: hidden; }
.wiz__saved { margin: 14px 0 0; color: var(--grey); }
.wiz .form__alert { margin-bottom: 24px; }
@media (max-width: 640px) {
  .wiz__rail { display: none; }
  .wiz__nav { flex-wrap: wrap; }
  .wiz__nav [data-next], .wiz__nav [data-send] { flex: 1 1 100%; }
}

/* colour swatches and the live preview */
.swatches-pick { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding-block: 6px; padding-inline: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--stone-2); cursor: pointer; font-size: .9375rem; color: var(--ink); transition: border-color .2s, box-shadow .25s, transform .2s var(--ease-out-quint); user-select: none; }
.swatch input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.swatch__dot { width: 28px; height: 28px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(22, 26, 34, .14); flex: none; }
.swatch__dot--none { background: linear-gradient(135deg, var(--stone) 45%, var(--line-2) 46%, var(--line-2) 54%, var(--stone) 55%); }
.swatch:hover { border-color: var(--ink-line); transform: translateY(-1px); }
.swatch:has(input[type="radio"]:checked) { border-color: var(--ink); box-shadow: 0 0 0 3px var(--copper-soft); }
.swatch:has(input:focus-visible) { outline: 2px solid var(--copper); outline-offset: 3px; }
.swatch--custom input[type="color"] { width: 30px; height: 30px; padding: 0; border: 0; background: none; border-radius: 50%; cursor: pointer; flex: none; }
.swatch--custom input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.swatch--custom input[type="color"]::-webkit-color-swatch { border: 1px solid rgba(22, 26, 34, .14); border-radius: 50%; }
.swatch--custom input[type="color"]::-moz-color-swatch { border: 1px solid rgba(22, 26, 34, .14); border-radius: 50%; }
.field.is-invalid .swatch { border-color: var(--copper); }
.colorprev { margin: -8px 0 28px; }
.colorprev__label { font-size: .875rem; color: var(--grey); margin: 0 0 10px; }
.colorprev__card { --prev-bg: #FFFFFF; --prev-fg: #161A22; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; background: var(--prev-bg); border: 1px solid var(--line); transition: background-color .4s ease, color .4s ease; }
.colorprev__card.is-dark { --prev-bg: #15171C; --prev-fg: #F1EBE1; }
.colorprev__title { font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; line-height: 1.2; color: var(--p); transition: color .4s ease; }
.colorprev__tag { padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--s) 16%, var(--prev-bg)); color: var(--s); font-size: .8125rem; font-weight: 500; transition: background-color .4s ease, color .4s ease; }
.colorprev__btn { margin-inline-start: auto; padding: 10px 18px; border-radius: 999px; background: var(--p); color: #fff; font-size: .875rem; font-weight: 500; transition: background-color .4s ease; }
@media (max-width: 480px) { .colorprev__card { flex-wrap: wrap; } .colorprev__btn { margin-inline-start: 0; } }

/* review */
.review__group { padding: 18px 0; border-top: 1px solid var(--line); }
.review__group:first-child { border-top: 0; padding-top: 0; }
.review__h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.review__h .h4 { margin: 0; }
.review__edit { border: 0; background: var(--copper-soft); color: var(--copper-2); font: inherit; font-size: .8125rem; font-weight: 500; padding: 5px 12px; border-radius: 999px; cursor: pointer; transition: background-color .2s; }
.review__edit:hover { background: rgba(142, 75, 36, .18); }
.review dl { display: grid; grid-template-columns: minmax(0, max-content) minmax(0, 1fr); gap: 8px 18px; margin: 0; }
.review dt { color: var(--grey); font-size: .9375rem; }
.review dd { margin: 0; color: var(--ink); font-size: .9375rem; overflow-wrap: anywhere; }
.review__sw { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--c); vertical-align: -2px; margin-inline-end: 8px; box-shadow: inset 0 0 0 1px rgba(22, 26, 34, .14); }
@media (max-width: 480px) { .review dl { grid-template-columns: 1fr; gap: 2px 0; } .review dt { margin-top: 8px; } }

/* ---------- Keywords: a copper wash slides in under the important words; hover draws a line and deepens it ---------- */
.kw { font-style: normal; font-weight: inherit; color: var(--copper); position: relative; isolation: isolate; cursor: default;
  padding: .02em .1em; margin: 0 -.1em; border-radius: .22em;
  background-image: linear-gradient(var(--kw-wash), var(--kw-wash)); background-repeat: no-repeat; background-size: 0% 100%; background-position: 100% 0;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size .9s var(--ease-out-quint), background-color .3s ease, color .3s ease, text-shadow .3s ease; }
html[dir="ltr"] .kw { background-position: 0 0; }
.kw::after { content: ""; position: absolute; inset-inline: .1em; bottom: .03em; height: .07em; min-height: 2px; border-radius: 2px; background: var(--copper); transform: scaleX(0); transform-origin: var(--origin-start); transition: transform .45s var(--ease-out-quint); }
html:not(.js) .kw, html:not(.gsap) .is-in .kw, html:not(.gsap).fonts-ready .hero__copy .kw, html:not(.gsap).fonts-ready .page-head .kw, .kw.is-lit { background-size: 100% 100%; }
html:not(.gsap) .hero__copy .kw, html:not(.gsap) .page-head .kw { transition-delay: 1.1s; }
html[lang="en"] .h1 .kw, html[lang="en"] .h2 .kw, html[lang="en"] .arcade__chapter .kw { font-style: italic; font-weight: 500; }
.section--trust .kw, .section--ink .kw { color: var(--copper-3); --kw-wash: rgba(190, 123, 75, .18); --kw-wash-2: rgba(190, 123, 75, .32); }
.section--trust .kw::after, .section--ink .kw::after { background: var(--copper-3); }
@media (hover: hover) {
  .kw:hover { color: var(--copper-2); background-image: linear-gradient(var(--kw-wash-2), var(--kw-wash-2)); text-shadow: 0 0 24px rgba(190, 123, 75, .35); }
  .kw:hover::after { transform: scaleX(1); }
  .section--trust .kw:hover, .section--ink .kw:hover { color: #D9A682; }
}

/* ---------- Page transitions: the page fades up on arrival and slips away on an internal link ---------- */
main, .site-foot { transition: opacity .3s ease, transform .3s var(--ease-material); }
.js main { animation: page-in .55s ease both; }
@keyframes page-in { from { opacity: 0; } }
html.is-leaving main, html.is-leaving .site-foot { opacity: 0; transform: translateY(-10px); }
html.is-leaving .wa-float { opacity: 0; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .in, .arch--animate .arch__line, .arch--animate .arch__door, .site-head, .hero__glow, .bg__wash::before, .bg__wash::after { animation: none !important; }
  .kw { transition: none; background-size: 100% 100%; text-shadow: none; }
  .kw::after, .btn::before, .btn::after, .wa-float::before, .link-arrow::after { transition: none; animation: none !important; }
  main, .site-foot { transition: none; animation: none; }
  .site-head__in::before, .bg__spots i { animation: none !important; }
  .site-nav__ind, .wiz__bar i, .wiz__dot { transition: none; }
  html.is-leaving main, html.is-leaving .site-foot { opacity: 1; transform: none; }
  .demo-card.is-tilting { transition: none; }
  .site-head.is-hidden { transform: none; }
  .btn__t span { transition: none; }
  .arch--animate .arch__line { stroke-dashoffset: 0; }
  .arch--animate .arch__door { clip-path: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .menu, .menu__links a, .burger i, .btn, .demo-card, .faq summary .ic, .site-nav a::after { transition: none !important; }
}
