/* ==========================================================================
   AVYREN Agency — design system
   Night (Marrakech after dark) · brushed gold · a single note of Majorelle blue
   ========================================================================== */

@font-face { font-family: "Amiri"; src: url("fonts/amiri-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Amiri"; src: url("fonts/amiri-700.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("fonts/plex-arabic-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("fonts/plex-arabic-500.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("fonts/plex-arabic-600.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
/* Self-hosted fonts: Bodoni Moda (display) + Schibsted Grotesk (text), SIL Open Font License */
@font-face { font-family: "Bodoni Moda"; src: url("fonts/bodoni-moda.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bodoni Moda"; src: url("fonts/bodoni-moda-ext.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Schibsted Grotesk"; src: url("fonts/schibsted-grotesk.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Schibsted Grotesk"; src: url("fonts/schibsted-grotesk-ext.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: dark;
  --night: #090b16;
  --night-2: #0f1222;
  --night-3: #171b30;
  --gold: #cfae6b;
  --gold-hi: #f0d9a4;
  --gold-lo: #8f733f;
  --majorelle: #5a54f0;
  --sand: #ece4d3;
  --sand-2: #e2d7c1;
  --ink: #15141c;
  --text: #eee8dc;
  --muted: #9b99a8;
  --line: rgba(207, 174, 107, .18);
  --line-soft: rgba(238, 232, 220, .08);

  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  --gutter: clamp(20px, 4vw, 56px);
  --max: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-kerning: normal;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--gold-hi); color: var(--ink); }
:focus-visible { outline: 2px solid var(--majorelle); outline-offset: 4px; border-radius: 4px; }

.wrap { width: min(var(--max), 100% - var(--gutter) * 2); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; top: -120px; left: 12px; z-index: 400; padding: 10px 16px; background: var(--gold); color: var(--ink); border-radius: 999px; }
.skip:focus { top: 12px; }

/* ---------- Type ---------- */
.display, h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  font-optical-sizing: auto;
  letter-spacing: -.015em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(3.1rem, 8.2vw, 8.4rem); line-height: .94; letter-spacing: -.03em; }
h2 { font-size: clamp(2.4rem, 5.2vw, 4.75rem); line-height: 1; letter-spacing: -.025em; }
h3 { font-size: clamp(1.45rem, 2.2vw, 1.9rem); line-height: 1.1; }
p { margin: 0; text-wrap: pretty; }
.lede { font-size: clamp(1.08rem, 1.45vw, 1.28rem); line-height: 1.55; color: color-mix(in srgb, var(--text) 82%, transparent); max-width: 34em; }
.kicker { font-size: .95rem; color: var(--gold); letter-spacing: .01em; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  --bg: transparent; --fg: var(--text); --bd: rgba(238, 232, 220, .28);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 26px;
  border: 1px solid var(--bd); border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-size: .98rem; font-weight: 500; letter-spacing: .005em;
  cursor: pointer; white-space: nowrap;
  transition: color .45s var(--ease), border-color .45s var(--ease), transform .5s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--fill, var(--gold));
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform .55s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn:hover, .btn:focus-visible { color: var(--ink); border-color: var(--fill, var(--gold)); }
.btn-gold { --bg: linear-gradient(120deg, #b8924f, var(--gold-hi) 48%, #c19c58); --fg: var(--ink); --bd: transparent; --fill: var(--text); background: var(--bg); }
.btn-gold:hover { color: var(--ink); }
.btn .arrow { width: 16px; height: 16px; transition: transform .5s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.link-u { position: relative; display: inline-block; }
.link-u::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.link-u:hover::after, .link-u:focus-visible::after { transform: scaleX(1); transform-origin: left; }

/* tactile feedback for touch */
.btn:active { transform: scale(.97); transition-duration: .15s; }
.chip:active span { transform: scale(.96); }
.chip span { transition: background .35s var(--ease), color .35s, border-color .35s, transform .2s var(--ease); }
.row:active::before { opacity: 1; }

/* a slow glint across gold buttons, so they feel alive without hover */
.btn-gold::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 246, 222, .75) 50%, transparent 65%);
  transform: translateX(-120%); animation: glint 5.5s var(--ease-io) 2.4s infinite;
}
@keyframes glint { 0% { transform: translateX(-120%); } 22%, 100% { transform: translateX(120%); } }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 90;
  transition: background .5s var(--ease), border-color .5s var(--ease), transform .6s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: rgba(9, 11, 22, .72); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); border-color: var(--line-soft); }
.site-header.hide { transform: translateY(-100%); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(207, 174, 107, .35), 0 6px 24px -6px rgba(207, 174, 107, .45); }
.brand-name { font-family: var(--display); font-size: 1.28rem; letter-spacing: .22em; padding-left: .1em; }
.brand-name small { display: block; font-family: var(--sans); font-size: .62rem; letter-spacing: .42em; color: var(--gold); margin-top: 1px; }
.nav-links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 38px); font-size: .95rem; }
.nav-links a:not(.btn) { color: color-mix(in srgb, var(--text) 78%, transparent); transition: color .3s; }
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links .btn { min-height: 44px; padding: 0 20px; }
.menu-btn { display: none; }

@media (max-width: 900px) {
  .menu-btn {
    display: inline-flex; align-items: center; gap: 10px; position: relative; z-index: 2;
    background: rgba(9, 11, 22, .6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(238, 232, 220, .25); border-radius: 999px; padding: 10px 18px; cursor: pointer; font-size: .9rem;
  }
  .menu-btn i { display: grid; gap: 4px; width: 16px; }
  .menu-btn i::before, .menu-btn i::after { content: ""; height: 1.5px; background: currentColor; transition: transform .45s var(--ease); }
  .menu-open .menu-btn i::before { transform: translateY(2.75px) rotate(45deg); }
  .menu-open .menu-btn i::after { transform: translateY(-2.75px) rotate(-45deg); }
  .nav-links {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px;
    padding: 110px var(--gutter) 48px;
    background: var(--night);
    clip-path: circle(0 at calc(100% - 52px) 42px);
    transition: clip-path .8s var(--ease-io);
    visibility: hidden;
  }
  .menu-open .nav-links { clip-path: circle(150% at calc(100% - 52px) 42px); visibility: visible; }
  .nav-links a:not(.btn) { font-family: var(--display); font-size: clamp(2.4rem, 11vw, 3.6rem); line-height: 1.15; color: var(--text); opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .7s var(--ease); }
  .menu-open .nav-links a:not(.btn) { opacity: 1; transform: none; }
  .menu-open .nav-links a:nth-child(1) { transition-delay: .18s; }
  .menu-open .nav-links a:nth-child(2) { transition-delay: .24s; }
  .menu-open .nav-links a:nth-child(3) { transition-delay: .30s; }
  .menu-open .nav-links a:nth-child(4) { transition-delay: .36s; }
  .nav-links .btn { margin-top: 28px; min-height: 54px; opacity: 0; transition: opacity .5s .42s; }
  .menu-open .nav-links .btn { opacity: 1; }
  .menu-open { overflow: hidden; }
  .menu-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: transparent; border-color: transparent; transform: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-rows: 1fr auto; overflow: hidden; isolation: isolate; }
.hero.hero-short { min-height: 88svh; }
.zellige { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.hero::after {
  /* keeps the headline legible over the pattern */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 0% 60%, var(--night) 22%, transparent 62%),
    linear-gradient(to top, var(--night) 0%, transparent 28%);
}
.hero-body { align-self: center; padding-top: 120px; padding-bottom: 40px; }
.hero h1 { max-width: 11.5ch; }
.hero .kicker { margin-bottom: clamp(22px, 3vw, 34px); display: flex; align-items: center; gap: 12px; }
.hero .kicker::before { content: ""; width: 8px; height: 8px; transform: rotate(45deg); background: var(--gold); box-shadow: 0 0 14px var(--gold); }
.hero .lede { margin-top: clamp(24px, 3vw, 36px); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(30px, 4vw, 44px); }

.hero-foot { border-top: 1px solid var(--line-soft); }
.hero-foot .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; font-size: .9rem; color: var(--muted); }
.clock { display: inline-flex; align-items: center; gap: 10px; }
.clock b { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.clock .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--majorelle); box-shadow: 0 0 0 0 rgba(90, 84, 240, .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(90, 84, 240, 0); } 100% { box-shadow: 0 0 0 0 rgba(90, 84, 240, 0); } }
.hero-tags { display: flex; gap: 28px; }
.scroll-cue { display: inline-flex; align-items: center; gap: 12px; }
.scroll-cue span { position: relative; width: 1px; height: 34px; background: var(--line-soft); overflow: hidden; }
.scroll-cue span::after { content: ""; position: absolute; inset: 0; background: var(--gold); animation: drip 2.2s var(--ease-io) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
@media (max-width: 760px) {
  .hero-tags, .scroll-cue { display: none; }
  .hero::after { background: linear-gradient(to bottom, rgba(9, 11, 22, .55) 0%, transparent 13%, transparent 22%, rgba(9, 11, 22, .72) 40%, rgba(9, 11, 22, .86) 70%, var(--night) 100%); }
  .hero-body { align-self: end; padding-top: 24svh; padding-bottom: 24px; }
  .hero.hero-short .hero-body { padding-top: 22svh; }
  .hero .lede { margin-top: 18px; font-size: 1.02rem; }
  .hero-ctas { margin-top: 24px; gap: 10px; }
  .hero h1 { font-size: clamp(2.9rem, 13.4vw, 4rem); }
  .hero-ctas .btn { flex: 1 1 100%; }
  .hero-foot .wrap { min-height: 60px; }
}

/* Headline reveal: one orchestrated moment on load */
.split .line { display: block; overflow: hidden; padding-bottom: .16em; margin-bottom: -.16em; }
.split .line > span { display: inline-block; transform: translateY(105%); }
.is-loaded .split .line > span { transform: none; transition: transform 1.2s var(--ease); transition-delay: calc(.35s + var(--i) * .1s); }
.rise { opacity: 0; transform: translateY(18px); }
.is-loaded .rise { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, .9s); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(96px, 13vw, 180px); position: relative; }
.section-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 96px); align-items: end; margin-bottom: clamp(48px, 7vw, 96px); }
.section-head p { max-width: 30em; color: var(--muted); }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

/* Scroll-lit statement */
.statement { font-family: var(--display); font-size: clamp(1.9rem, 4.1vw, 3.9rem); line-height: 1.12; letter-spacing: -.02em; max-width: 24ch; }
.statement .w { color: rgba(238, 232, 220, .16); transition: color .35s linear; }
.statement .w.on { color: var(--text); }
.statement .w.on.g { color: var(--gold-hi); }
.studio-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 8vw, 120px); margin-top: clamp(56px, 8vw, 110px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line-soft); }
.studio-grid p { color: var(--muted); max-width: 32em; }
.studio-grid p + p { margin-top: 1em; }
.who { list-style: none; margin: 0; padding: 0; }
.who li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-soft); font-family: var(--display); font-size: clamp(1.35rem, 2.1vw, 1.75rem); transition: color .4s, padding .5s var(--ease); }
.who li:first-child { border-top: 1px solid var(--line-soft); }
.who li span { font-family: var(--sans); font-size: .88rem; color: var(--muted); text-align: right; }
.who li:hover { color: var(--gold-hi); padding-left: 10px; }
@media (max-width: 860px) { .studio-grid { grid-template-columns: 1fr; } }

/* ---------- Concepts ---------- */
.concepts { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.concept:nth-child(2) { margin-top: clamp(0px, 9vw, 140px); }
.concept figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 20px; }
.concept figcaption h3 { font-size: clamp(1.3rem, 1.8vw, 1.6rem); }
.concept figcaption span { color: var(--muted); font-size: .9rem; white-space: nowrap; }
.concept { margin: 0; }
.browser {
  position: relative; border-radius: 14px; overflow: hidden;
  background: #1a1d2e; border: 1px solid rgba(238, 232, 220, .1);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8), 0 0 0 1px rgba(0, 0, 0, .4);
  transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .8s var(--ease);
}
.browser-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #20243a; }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(238, 232, 220, .18); }
.browser-bar em { margin-left: 14px; flex: 1; max-width: 240px; height: 18px; border-radius: 6px; background: rgba(238, 232, 220, .07); font-style: normal; font-size: 10px; line-height: 18px; padding-left: 10px; color: rgba(238, 232, 220, .45); }
.viewport { aspect-ratio: 16 / 11; overflow: hidden; position: relative; }
.concept.tall .viewport { aspect-ratio: 4 / 5; }
.page { transition: transform 3.2s var(--ease-io); }
.concept:hover .page, .concept:focus-within .page { transform: translateY(var(--travel, -48%)); }

/* on touch screens the mock pages scroll by themselves while in view */
@media (hover: none) {
  .concept.in .page { animation: browse 11s var(--ease-io) .6s infinite; }
  .concept:hover .page, .concept:focus-within .page { transform: none; }
  @keyframes browse { 0%, 10% { transform: none; } 45%, 58% { transform: translateY(var(--travel, -48%)); } 92%, 100% { transform: none; } }
  .row:hover h3 { transform: none; color: inherit; }
}

/* mock: Atelier (restaurant) */
.m-atelier { background: #1e2219; color: #efe6d2; font-family: var(--display); }
.m-atelier .m-nav { display: flex; justify-content: space-between; padding: 4% 6%; font-family: var(--sans); font-size: clamp(7px, .75vw, 10px); letter-spacing: .14em; opacity: .8; }
.m-atelier .m-hero { position: relative; height: 0; padding-bottom: 62%; overflow: hidden; }
.m-atelier .m-hero::before { content: ""; position: absolute; inset: 0 6%; border-radius: 999px 999px 0 0; background: radial-gradient(60% 55% at 50% 70%, #e2a54a 0%, #b4612c 35%, #4a2a17 70%, #1e2219 100%); }
.m-atelier .m-hero::after { content: ""; position: absolute; left: 50%; bottom: 14%; width: 34%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle at 40% 35%, #f6ead0 0 18%, #d9c39a 19% 34%, #6f7d3f 35% 44%, #efe3c6 45% 62%, #c9b48a 63% 100%); box-shadow: 0 20px 40px rgba(0, 0, 0, .45); }
.m-atelier .m-title { text-align: center; padding: 6% 8% 3%; font-size: clamp(16px, 2.6vw, 36px); line-height: 1; }
.m-atelier .m-sub { text-align: center; font-family: var(--sans); font-size: clamp(7px, .8vw, 11px); opacity: .7; padding: 0 20% 6%; }
.m-atelier .m-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3%; padding: 0 6% 7%; }
.m-atelier .m-row div { aspect-ratio: 3 / 4; border-radius: 6px; background: linear-gradient(160deg, #3b3f2c, #262a1e); position: relative; overflow: hidden; }
.m-atelier .m-row div::after { content: ""; position: absolute; left: 18%; right: 18%; top: 22%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #d9894a 0 30%, #f0e2c4 31% 55%, transparent 56%); }
.m-atelier .m-menu { padding: 2% 10% 10%; font-family: var(--sans); font-size: clamp(7px, .8vw, 11px); }
.m-atelier .m-menu p { display: flex; justify-content: space-between; padding: 2.4% 0; border-bottom: 1px dotted rgba(239, 230, 210, .25); }
.m-atelier .m-book { margin: 0 auto 10%; width: max-content; padding: 2.2% 6%; border-radius: 999px; background: #e2a54a; color: #1e2219; font-family: var(--sans); font-size: clamp(7px, .8vw, 11px); }

/* mock: Objects (retail) */
.m-objects { background: #f3efe8; color: #1d1c1a; font-family: var(--sans); }
.m-objects .m-nav { display: flex; justify-content: space-between; padding: 6% 7%; font-size: clamp(7px, .75vw, 10px); letter-spacing: .08em; }
.m-objects .m-title { padding: 0 7% 6%; font-family: var(--display); font-size: clamp(18px, 2.4vw, 32px); line-height: 1.02; letter-spacing: -.02em; }
.m-objects .m-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5%; padding: 0 7% 8%; }
.m-objects .m-grid div { aspect-ratio: 4 / 5; border-radius: 4px; background: var(--c, #e4ddd0); display: grid; place-items: end center; padding-bottom: 14%; position: relative; }
.m-objects .m-grid div::before { content: ""; width: var(--w, 34%); aspect-ratio: var(--a, .62); border-radius: var(--r, 40% 40% 12% 12%); background: var(--o, #b9744c); box-shadow: inset -6px -8px 14px rgba(0, 0, 0, .18); }
.m-objects .m-grid div::after { content: attr(data-p); position: absolute; left: 8%; bottom: 5%; font-size: clamp(6px, .65vw, 9px); opacity: .6; }
.m-objects .m-bar { margin: 0 7% 10%; padding: 4% 5%; border-radius: 4px; background: #1d1c1a; color: #f3efe8; font-size: clamp(7px, .75vw, 10px); display: flex; justify-content: space-between; }

/* social phone */
.social { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 8vw, 120px); align-items: center; margin-top: clamp(96px, 12vw, 170px); }
.social h3 { font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: 1.04; letter-spacing: -.02em; }
.social p { color: var(--muted); margin-top: 22px; max-width: 30em; }
.social .btn { margin-top: 34px; }
.phone { justify-self: center; width: min(320px, 78vw); aspect-ratio: 9 / 18.5; border-radius: 42px; padding: 12px; background: linear-gradient(145deg, #2a2e45, #11131f); box-shadow: 0 0 0 1px rgba(238, 232, 220, .12), 0 50px 100px -40px rgba(0, 0, 0, .9), 0 0 120px -30px rgba(90, 84, 240, .35); }
.phone-screen { height: 100%; border-radius: 32px; overflow: hidden; background: #0c0e19; padding: 18% 7% 0; }
.p-head { display: flex; align-items: center; gap: 12px; }
.p-avatar { width: 46px; height: 46px; border-radius: 50%; background: conic-gradient(from 200deg, var(--gold-lo), var(--gold-hi), var(--majorelle), var(--gold-lo)); padding: 2px; }
.p-avatar::after { content: ""; display: block; width: 100%; height: 100%; border-radius: 50%; background: #1e2219 radial-gradient(circle at 50% 60%, #e2a54a 0 30%, transparent 32%); border: 2px solid #0c0e19; }
.p-stats { display: flex; gap: 14px; font-size: 10px; color: var(--muted); }
.p-stats b { display: block; color: var(--text); font-size: 12px; }
.p-bio { font-size: 10.5px; margin: 14px 0; line-height: 1.45; color: rgba(238, 232, 220, .8); }
.p-bio strong { display: block; color: var(--text); font-weight: 600; }
.p-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 14px; }
.p-cta span { font-size: 10px; text-align: center; padding: 7px 0; border-radius: 8px; background: rgba(238, 232, 220, .08); }
.p-cta span:first-child { background: var(--gold); color: var(--ink); font-weight: 600; }
.p-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-inline: -8%; }
.p-grid i { aspect-ratio: 1; background: var(--bg); display: grid; place-items: center; font-style: normal; font-family: var(--display); font-size: 11px; color: rgba(255, 255, 255, .9); opacity: 0; transform: scale(.85); transition: opacity .6s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--n) * 70ms); }
.in .p-grid i { opacity: 1; transform: none; }
@media (max-width: 860px) { .concepts, .social { grid-template-columns: 1fr; } .concept:nth-child(2) { margin-top: 0; } }

/* ---------- Process ---------- */
.process { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); }
.process::before { content: ""; position: absolute; top: 27px; left: 0; right: 0; height: 1px; background: var(--line-soft); }
.process::after { content: ""; position: absolute; top: 27px; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, var(--gold-lo), var(--gold-hi)); transform-origin: left; transform: scaleX(var(--p, 0)); }
.step { position: relative; z-index: 1; }
.step-n { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--night); border: 1px solid var(--line); font-family: var(--display); font-size: 1.3rem; color: var(--muted); transition: color .6s, border-color .6s, box-shadow .6s; }
.step.lit .step-n { color: var(--ink); background: var(--gold); border-color: var(--gold); box-shadow: 0 0 30px -4px rgba(207, 174, 107, .6); }
.step h3 { margin-top: 30px; font-size: clamp(1.8rem, 2.8vw, 2.5rem); }
.step p { margin-top: 12px; color: var(--muted); max-width: 22em; }
@media (max-width: 760px) {
  .process { grid-template-columns: 1fr; gap: 44px; padding-left: 0; }
  .process::before, .process::after { top: 0; bottom: 0; left: 27px; right: auto; width: 1px; height: auto; }
  .process::after { transform-origin: top; transform: scaleY(var(--p, 0)); }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 22px; }
  .step h3 { margin-top: 10px; }
  .step p { grid-column: 2; }
}

/* ---------- Service rows ---------- */
.rows { border-top: 1px solid var(--line-soft); }
.row {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) auto; gap: clamp(16px, 4vw, 64px); align-items: center;
  padding: clamp(26px, 3.4vw, 42px) 0; border-bottom: 1px solid var(--line-soft); isolation: isolate;
}
.row::before { content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: -1; background: linear-gradient(90deg, rgba(207, 174, 107, .08), rgba(90, 84, 240, .06)); opacity: 0; transition: opacity .5s; }
.row:hover::before, .row:focus-visible::before { opacity: 1; }
.row h3 { font-size: clamp(1.8rem, 3.4vw, 3rem); transition: transform .6s var(--ease), color .4s; }
.row:hover h3 { transform: translateX(12px); color: var(--gold-hi); }
.row p { color: var(--muted); max-width: 30em; font-size: .98rem; }
.price { text-align: end; white-space: nowrap; }
.price small { display: block; color: var(--muted); font-size: .82rem; }
.price b { font-family: var(--display); font-weight: 400; font-size: clamp(1.4rem, 2.2vw, 1.9rem); color: var(--gold-hi); }
@media (max-width: 860px) {
  .row { grid-template-columns: 1fr; gap: 12px; }
  .price { text-align: left; }
}

/* Detailed services (services page) */
.svc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(28px, 6vw, 96px); padding: clamp(40px, 5vw, 64px) 0; border-top: 1px solid var(--line-soft); }
.svc:last-child { border-bottom: 1px solid var(--line-soft); }
.svc h3 { font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: 1; }
.svc .tag { display: inline-block; margin-top: 18px; color: var(--gold); font-size: .92rem; }
.svc-body p { color: color-mix(in srgb, var(--text) 78%, transparent); max-width: 34em; }
.svc-body .fine { margin-top: 14px; color: var(--muted); font-size: .92rem; }
.svc-body ul { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.svc-body li { font-size: .86rem; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--gold-hi); }
@media (max-width: 860px) { .svc { grid-template-columns: 1fr; } }

/* ---------- Light (sand) section ---------- */
.sand { background: var(--sand); color: var(--ink); }
.sand .muted, .sand .section-head p { color: #5d584e; }
.sand ::selection { background: var(--ink); color: var(--sand); }

.ptable { width: 100%; border-collapse: collapse; }
.ptable caption { text-align: left; }
.ptable th, .ptable td { text-align: start; padding: 22px 0; border-bottom: 1px solid rgba(21, 20, 28, .14); vertical-align: top; }
.ptable thead th { font-family: var(--sans); font-size: .85rem; font-weight: 500; color: #6d675b; padding-top: 0; }
.ptable tbody th { font-family: var(--display); font-weight: 400; font-size: clamp(1.35rem, 2vw, 1.75rem); width: 26%; padding-right: 24px; }
.ptable td { color: #4d483f; font-size: .96rem; padding-right: 32px; }
.ptable td.amt { text-align: end; white-space: nowrap; padding-right: 0; }
.ptable td.amt b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(1.35rem, 2vw, 1.75rem); color: var(--ink); }
.ptable td.amt span { font-size: .82rem; color: #7a7466; }
.ptable .kind { white-space: nowrap; color: #7a7466; font-size: .88rem; width: 13%; }
@media (max-width: 760px) {
  .ptable thead { display: none; }
  .ptable tr { display: grid; grid-template-columns: 1fr auto; padding: 22px 0; border-bottom: 1px solid rgba(21, 20, 28, .14); }
  .ptable th, .ptable td, .ptable tbody th, .ptable .kind { border: 0; padding: 0; width: auto; }
  .ptable tbody th { grid-column: 1; }
  .ptable td.amt { grid-column: 2; grid-row: 1 / span 2; }
  .ptable .kind { grid-column: 1; margin-top: 4px; }
  .ptable td.desc { grid-column: 1 / -1; margin-top: 12px; }
}

/* Estimate builder */
.builder { margin-top: clamp(72px, 9vw, 120px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); border-radius: 22px; overflow: hidden; background: #f6f1e6; box-shadow: 0 0 0 1px rgba(21, 20, 28, .1), 0 40px 80px -50px rgba(21, 20, 28, .5); }
.builder-form { padding: clamp(28px, 4vw, 56px); }
.builder-form h3 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.builder-form > p { color: #5d584e; margin-top: 10px; max-width: 30em; }
.opt { border: 0; padding: 0; margin: 32px 0 0; }
.opt legend { font-weight: 600; font-size: .95rem; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.chip span { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; border: 1px solid rgba(21, 20, 28, .2); font-size: .94rem; transition: background .35s var(--ease), color .35s, border-color .35s; }
.chip span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1px solid currentColor; transition: background .3s, transform .4s var(--ease); }
.chip input:checked + span { background: var(--ink); color: var(--sand); border-color: var(--ink); }
.chip input:checked + span::before { background: var(--gold); border-color: var(--gold); transform: scale(1.3); }
.chip input:focus-visible + span { outline: 2px solid var(--majorelle); outline-offset: 3px; }
.chip:hover span { border-color: var(--ink); }

.builder-out { position: relative; padding: clamp(28px, 4vw, 56px); background: var(--night); color: var(--text); display: flex; flex-direction: column; isolation: isolate; overflow: hidden; }
.builder-out::before { content: ""; position: absolute; inset: auto -30% -40% auto; width: 90%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(90, 84, 240, .28), transparent 65%); z-index: -1; }
.builder-out .lbl { color: var(--muted); font-size: .92rem; }
.total { font-family: var(--display); font-size: clamp(2.8rem, 5.6vw, 4.8rem); line-height: 1; letter-spacing: -.03em; margin: 12px 0 6px; font-variant-numeric: lining-nums tabular-nums; color: var(--gold-hi); }
.total small { font-size: .38em; letter-spacing: 0; color: var(--text); margin-inline-start: .25em; }
.monthly { min-height: 1.6em; color: var(--text); }
.monthly b { color: var(--gold-hi); font-weight: 500; }
.breakdown { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--line-soft); font-size: .92rem; }
.breakdown li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); color: rgba(238, 232, 220, .82); animation: slide .5s var(--ease); }
.breakdown li span:last-child { white-space: nowrap; color: var(--muted); }
.breakdown li.bundle { color: var(--gold-hi); }
@keyframes slide { from { opacity: 0; transform: translateX(-8px); } }
.builder-out .note { margin-top: auto; padding-top: 26px; font-size: .84rem; color: var(--muted); }
.builder-out .btn { margin-top: 22px; align-self: flex-start; }
@media (max-width: 900px) { .builder { grid-template-columns: 1fr; } }

.fineprint { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; font-size: .92rem; color: #5d584e; }
.fineprint b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 4px; }
@media (max-width: 760px) { .fineprint { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(48px, 8vw, 120px); }
.contact h2 { max-width: 9ch; }
.contact .lede { margin-top: 28px; color: var(--muted); }
.contact-meta { margin-top: 40px; display: grid; gap: 6px; font-size: .95rem; color: var(--muted); }
.contact-meta b { color: var(--text); font-weight: 500; }
.form { display: grid; gap: 30px; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(238, 232, 220, .2); padding: 26px 0 12px; font-size: 1.08rem; border-radius: 0; outline: none; resize: vertical;
}
.field textarea { min-height: 120px; }
.field label { position: absolute; inset-inline-start: 0; top: 26px; color: var(--muted); pointer-events: none; transform-origin: left; transition: transform .45s var(--ease), color .3s; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-24px) scale(.8); color: var(--gold); }
.field::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.field:focus-within::after { transform: scaleX(1); }
.field textarea + label { top: 26px; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form legend { color: var(--muted); margin-bottom: 14px; font-size: .95rem; }
.form .chip span { border-color: rgba(238, 232, 220, .2); }
.form .chip:hover span { border-color: var(--gold); }
.form .chip input:checked + span { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.form .chip input:checked + span::before { background: var(--ink); border-color: var(--ink); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.form-note { font-size: .92rem; color: var(--muted); max-width: 30em; }
.form-note.ok { color: var(--gold-hi); }
.form-note.err { color: #f2a3a3; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } .contact h2 { max-width: none; } }

/* ---------- Footer ---------- */
.site-footer { position: relative; padding-top: clamp(64px, 8vw, 110px); border-top: 1px solid var(--line-soft); overflow: hidden; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; font-size: .95rem; color: var(--muted); }
.foot-top nav { display: flex; flex-wrap: wrap; gap: 28px; }
.foot-top a:hover { color: var(--text); }
.wordmark {
  display: block; margin: clamp(40px, 6vw, 80px) 0 0; padding: .06em 0 .1em;
  font-family: var(--display); font-weight: 600; font-optical-sizing: none; font-variation-settings: "opsz" 28;
  font-size: clamp(3.4rem, 18.5vw, 17.5rem); line-height: .9; letter-spacing: .03em; text-indent: .03em; text-align: center; white-space: nowrap;
  background: linear-gradient(100deg, #b8924f 0%, var(--gold-hi) 28%, #d6b574 46%, #fff1cf 54%, var(--gold-hi) 66%, #b8924f 100%);
  background-size: 220% 100%; background-position: var(--sx, 100%) 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none;
}
.foot-bottom { position: relative; display: flex; justify-content: space-between; gap: 16px; padding: 22px 0 28px; border-top: 1px solid var(--line-soft); font-size: .85rem; color: var(--muted); background: var(--night); }
@media (max-width: 600px) { .foot-bottom { flex-direction: column; } }

/* ---------- Reveal on scroll (used sparingly) ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease) var(--rd, 0s), transform 1.2s var(--ease) var(--rd, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Page transition veil ---------- */
.veil { position: fixed; inset: 0; z-index: 300; pointer-events: none; background: var(--night); display: grid; place-items: center; opacity: 1; transition: opacity .9s var(--ease) .1s; }
.veil svg { width: 64px; height: 64px; }
.veil path { stroke: var(--gold); stroke-width: 1.2; fill: none; stroke-dasharray: 260; stroke-dashoffset: 260; animation: trace 1.1s var(--ease-io) forwards; }
@keyframes trace { to { stroke-dashoffset: 0; } }
.is-loaded .veil { opacity: 0; }
.is-leaving .veil { opacity: 1; transition: opacity .45s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .split .line > span, .rise, .reveal { transform: none !important; opacity: 1 !important; }
  .statement .w { color: var(--text); }
}
.who li.reveal { transition: opacity 1s var(--ease) var(--rd, 0s), transform 1.2s var(--ease) var(--rd, 0s), color .4s, padding .5s var(--ease); }


/* ---------- Language switcher ---------- */
.lang { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line-soft); border-radius: 999px; }
.nav-links .lang a { padding: 5px 10px; border-radius: 999px; font-size: .8rem; line-height: 1.2; color: var(--muted); transition: background .3s, color .3s; }
.nav-links .lang a:hover { color: var(--text); }
.nav-links .lang a[aria-current="true"] { background: rgba(207, 174, 107, .16); color: var(--gold-hi); }
.lang a[lang="ar"] { font-family: "IBM Plex Sans Arabic", var(--sans); }
@media (max-width: 900px) {
  .nav-links .lang { margin-top: 26px; order: 5; opacity: 0; transition: opacity .5s .44s; }
  .menu-open .nav-links .lang { opacity: 1; }
  .nav-links .lang a { font-family: var(--sans) !important; font-size: 1rem !important; line-height: 1.2 !important; opacity: 1 !important; transform: none !important; padding: 8px 16px; }
  .nav-links .btn { order: 4; }
}

/* ---------- French: slightly longer words ---------- */
:lang(fr) h1 { font-size: clamp(2.9rem, 7.4vw, 7.6rem); max-width: 13ch; }

/* ---------- Arabic (right to left) ---------- */
[dir="rtl"] {
  --display: "Amiri", "Bodoni Moda", Georgia, serif;
  --sans: "IBM Plex Sans Arabic", "Schibsted Grotesk", Arial, sans-serif;
}
[dir="rtl"] body { font-size: 17.5px; line-height: 1.75; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] .statement, [dir="rtl"] .who li, [dir="rtl"] .kicker, [dir="rtl"] .btn,
[dir="rtl"] .row h3, [dir="rtl"] .svc h3, [dir="rtl"] .ptable tbody th, [dir="rtl"] .total { letter-spacing: 0; }
[dir="rtl"] h1 { font-weight: 700; line-height: 1.22; font-size: clamp(2.8rem, 7.2vw, 7rem); max-width: 12ch; }
[dir="rtl"] h2 { font-weight: 700; line-height: 1.3; }
[dir="rtl"] h3, [dir="rtl"] .statement { font-weight: 700; line-height: 1.45; }
[dir="rtl"] .statement { font-size: clamp(1.8rem, 3.6vw, 3.3rem); }
[dir="rtl"] .split .line { padding-bottom: .22em; margin-bottom: -.22em; padding-top: .1em; }
/* Latin marks stay Latin */
[dir="rtl"] .brand-name, [dir="rtl"] .wordmark, [dir="rtl"] .concept, [dir="rtl"] .phone { font-family: "Bodoni Moda", Georgia, serif; }
[dir="rtl"] .brand-name { letter-spacing: .22em; }
[dir="rtl"] .wordmark { letter-spacing: .03em; direction: ltr; }
[dir="rtl"] .concept figcaption, [dir="rtl"] .concept figcaption h3 { font-family: var(--display); }
[dir="rtl"] .concept figcaption span { font-family: var(--sans); }
/* mirrored layout details */
[dir="rtl"] .hero::after { background: radial-gradient(120% 90% at 100% 60%, var(--night) 22%, transparent 62%), linear-gradient(to top, var(--night) 0%, transparent 28%); }
[dir="rtl"] .who li:hover { padding-left: 0; padding-right: 10px; }
[dir="rtl"] .row:hover h3 { transform: translateX(-12px); }
[dir="rtl"] .process::after { transform-origin: right; }
[dir="rtl"] .field label { transform-origin: right; }
[dir="rtl"] .field::after { transform-origin: right; }
[dir="rtl"] .btn::before { transform: translateY(101%); }
[dir="rtl"] .num, [dir="rtl"] .price b, [dir="rtl"] .ptable td.amt b, [dir="rtl"] .total { font-family: "Bodoni Moda", Georgia, serif; }
[dir="rtl"] .price b, [dir="rtl"] .svc .tag { unicode-bidi: plaintext; }
@media (max-width: 900px) {
  [dir="rtl"] .nav-links { clip-path: circle(0 at 52px 42px); }
  [dir="rtl"] .menu-open .nav-links { clip-path: circle(150% at 52px 42px); }
}
@media (max-width: 760px) {
  [dir="rtl"] .process::before, [dir="rtl"] .process::after { left: auto; right: 27px; }
  [dir="rtl"] .hero::after { background: linear-gradient(to bottom, rgba(9, 11, 22, .55) 0%, transparent 13%, transparent 22%, rgba(9, 11, 22, .72) 40%, rgba(9, 11, 22, .86) 70%, var(--night) 100%); }
  [dir="rtl"] h1 { font-size: clamp(2.5rem, 11.5vw, 3.6rem); }
}

/* home page service rows: no prices, a quiet cue instead */
.row .more { color: var(--gold); font-size: .92rem; white-space: nowrap; transition: transform .5s var(--ease); }
.row:hover .more { transform: translateX(6px); }
[dir="rtl"] .row:hover .more { transform: translateX(-6px); }
