/* ============================================================
   YOSRA JAIDANE · Soft editorial
   A softly lit study at sunset. Warm, flat, paper surfaces.
   No glassmorphism, no identical card grids, flat-at-rest.
   Flanking-line section titles. Sunset gradient with per-section
   tints. RTL via logical properties; RTL overrides at the END.
   ============================================================ */

/* ---------- 1. Tokens (three-layer design system) ---------- */
:root{
  /* primitives (raw warm values) */
  --bg:        #FBF6EF;
  --surface:   #F5EDE3;
  --surface-2: #EFE3D6;
  --blush:     #E4C8C0;
  --blush-soft:#EFD9D3;
  --taupe:     #A67C68;
  --taupe-deep:#8A6353;
  --caramel:   #C08A4E;
  --copper:    #B07A42;     /* icon strokes; >=3:1 on warm surfaces */
  --text:      #3A2E2A;
  --text-soft: #6E5C53;
  --button:    #3E2F25;
  --button-text:#FFF7EE;
  --border:    #E6D8C8;
  --emph:      #6F4E3C;     /* 4.93:1 on darkest gradient stop */
  --emph-card: #8A5E30;     /* 4.81:1 on cream card surface */

  /* surfaces (opaque, flat at rest) */
  --surface-flat:   #F7EFE3;   /* default warm cream surface */
  --surface-flat-2: #F2E6D6;   /* deeper warm sand surface */

  --font-display:'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-accent: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:   'Jost', 'Segoe UI', 'Trebuchet MS', Verdana, sans-serif;

  /* type scale */
  --fs-body:  clamp(1.0625rem, 1rem + 0.28vw, 1.1875rem);
  --lh-body:  1.75;

  /* editorial spacing rhythm */
  --space-1:  0.5rem;
  --space-2:  1rem;        /* 16 */
  --space-3:  1.5rem;      /* 24 */
  --space-4:  2rem;        /* 32 */
  --space-5:  3rem;        /* 48 */
  --space-6:  clamp(5rem, 8vw, 7.5rem);   /* ~80 */
  --space-7:  clamp(7rem, 12vw, 10rem);   /* ~112 */

  --wrap:        1180px;
  --radius:      1.25rem;
  --radius-sm:   0.75rem;
  --radius-lg:   1.75rem;
  --shadow-hover: 0 14px 36px rgba(58,46,42,.13);   /* hover/lift only, alpha <=.15 */
  --header-h:    4.75rem;

  --gutter: clamp(1.5rem, 4vw, 3rem);

  /* motion easing (custom, strong) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  /* line/diamond flanking the section titles */
  --title-line:  rgba(192,138,78,.55);
}

/* ---------- 2. Reset / base ---------- */
*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body{
  margin:0;
  font-family:var(--font-body);
  font-size:var(--fs-body);
  font-weight:400;
  line-height:var(--lh-body);
  color:var(--text);
  /* FIX D: warm sunset gradient with depth top to bottom.
     Ivory light pool at the top (reading zone), warm sand in the middle,
     deepest amber-taupe around the work section, softening to cream at the
     foot. No pure white, no cool tones, no hard seams. */
  background:
    radial-gradient(120% 80% at 50% 0%, #FCF7F0 0%, transparent 60%),
    radial-gradient(140% 90% at 85% 40%, rgba(214,184,158,.20) 0%, transparent 55%),
    linear-gradient(180deg,
      #FBF6EF 0%, #F5EAD8 22%, #EFE0C9 44%,
      #E7D2B5 62%, #EEDFCB 80%, #FAF4EB 100%);
  background-color:#FBF6EF;
  background-attachment:fixed;
  min-height:100vh;
  overflow-x:hidden;
}
/* very soft ambient drift of warm light (transform only) */
body::before{
  content:""; position:fixed; inset:-12%; z-index:-1; pointer-events:none;
  background:
    radial-gradient(40% 34% at 26% 30%, rgba(192,138,78,.10), transparent 66%),
    radial-gradient(38% 32% at 78% 64%, rgba(228,200,192,.13), transparent 68%);
  filter:blur(12px); animation:ymDrift 26s ease-in-out infinite alternate;
}
@keyframes ymDrift{ 0%{ transform:translate3d(0,0,0); } 100%{ transform:translate3d(0,-18px,0); } }

h1,h2,h3{ font-family:var(--font-display); line-height:1.1; color:var(--text); margin:0 0 .55em; font-weight:600; }
h1{ font-size:clamp(3rem, 5vw, 4.25rem); }
h2{ font-size:clamp(2.1rem, 3.2vw, 2.9rem); }
h3{ font-size:clamp(1.35rem, 2vw, 1.75rem); }
p{ margin:0 0 1.05em; }
img{ max-width:100%; height:auto; display:block; }
a{ color:var(--taupe-deep); text-decoration-color:rgba(192,138,78,.5); text-underline-offset:.22em; }
a:hover{ color:var(--text); }
::selection{ background:var(--blush); color:var(--text); }
ul{ margin:0; padding:0; list-style:none; }
button,input,textarea{ font:inherit; color:inherit; }

[id]{ scroll-margin-top:calc(var(--header-h) + 1.4rem); }

.wrap{ width:min(var(--wrap), 100% - 3rem); margin-inline:auto; }

.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; }
.skip-link{
  position:fixed; inset-inline-start:1rem; top:1rem; z-index:200;
  background:var(--button); color:var(--button-text);
  padding:.8rem 1.4rem; border-radius:999px; text-decoration:none;
  transform:translateY(-6rem); transition:transform .25s var(--ease-out);
}
.skip-link:focus-visible{ transform:translateY(0); }
:focus-visible{ outline:2px solid var(--taupe-deep); outline-offset:3px; border-radius:4px; }

/* ---------- 3. Paper grain ---------- */
body::after{
  content:""; position:fixed; inset:0; z-index:120; pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity:.05;
}

/* ---------- 4. Header (flat warm bar) ---------- */
.header{
  position:sticky; top:0; z-index:100;
  /* aesthetically translucent: the warm page tint shows through faintly while scrolling */
  background:linear-gradient(180deg, rgba(251,246,239,.80), rgba(245,237,227,.74));
  backdrop-filter:blur(9px) saturate(1.04);
  -webkit-backdrop-filter:blur(9px) saturate(1.04);
  border-bottom:1px solid var(--border);
}
.header::after{
  content:""; position:absolute; inset-inline:0; bottom:-1px; height:1px;
  background:linear-gradient(90deg, transparent, rgba(192,138,78,.45) 18%, rgba(192,138,78,.45) 82%, transparent);
}
.header-in{ display:flex; align-items:center; gap:1.2rem; min-height:var(--header-h); }

.brand{ display:flex; align-items:center; gap:.8rem; text-decoration:none; color:var(--text); margin-inline-end:auto; transition:transform .3s var(--ease-out); will-change:transform; }
.brand-mark{ position:relative; width:58px; height:58px; flex:none; }
.brand-mark img{
  width:58px; height:58px; object-fit:contain;
  filter:drop-shadow(0 4px 10px rgba(192,138,78,.38));
  animation:logoFloat 7s ease-in-out infinite;
}
.brand-mark::before{
  content:""; position:absolute; inset:-9px; border-radius:50%;
  background:radial-gradient(circle, rgba(192,138,78,.26), rgba(192,138,78,0) 68%);
  animation:logoGlow 7s ease-in-out infinite;
}
@keyframes logoFloat{ 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-4px); } }
@keyframes logoGlow{ 0%,100%{ opacity:.7; } 50%{ opacity:1; } }
.brand-mark .logo-fallback{ display:none; width:58px; height:58px; }
.brand-mark.noimg img{ display:none; }
.brand-mark.noimg .logo-fallback{ display:block; }

.brand-name{ display:flex; flex-direction:column; line-height:1.12; }
.brand-name b{ font-family:var(--font-display); font-style:italic; font-weight:600; font-size:1.32rem; letter-spacing:.01em; }
.brand-sub{ font-family:var(--font-body); font-weight:600; font-size:.72rem; letter-spacing:.2em; text-transform:uppercase; color:var(--taupe-deep); }

.nav{ display:flex; align-items:center; justify-content:flex-end; gap:.55rem; flex-wrap:wrap; row-gap:.35rem; }
.nav > a{
  font-weight:400; font-size:1.0625rem; color:var(--text); text-decoration:none;
  padding:.42rem .8rem; border-radius:999px; position:relative;
  transition:background-color .3s ease, color .3s ease;
}
.nav > a:hover, .nav > a:focus-visible{ background:rgba(228,200,192,.5); color:var(--text); }

.lang-switch{
  position:relative; display:flex; align-items:center; margin-inline-start:.4rem;
  padding:.22rem; gap:0; border-radius:999px;
  background:var(--surface-flat);
  border:1px solid var(--border);
}
.lang-switch::before{
  content:""; position:absolute; top:.25rem; bottom:.25rem; inset-inline-start:.25rem;
  width:calc((100% - .5rem) / 3); border-radius:999px;
  background:linear-gradient(135deg, var(--caramel), var(--taupe-deep));
  box-shadow:0 2px 6px rgba(58,46,42,.14);
  transition:inset-inline-start .35s var(--ease-out);
  z-index:0;
}
.lang-switch:has(a:nth-child(2)[aria-current])::before{ inset-inline-start:calc(.25rem + (100% - .5rem) / 3); }
.lang-switch:has(a:nth-child(3)[aria-current])::before{ inset-inline-start:calc(.25rem + 2 * (100% - .5rem) / 3); }
.lang-switch a{
  position:relative; z-index:1; flex:1 0 auto; text-align:center; min-width:2.6rem;
  text-decoration:none; color:var(--text-soft); font-size:.95rem; font-weight:500;
  padding:.36rem .85rem; border-radius:999px; transition:color .3s ease;
}
.lang-switch a:hover{ color:var(--text); }
.lang-switch a[aria-current="page"]{ color:var(--button-text); font-weight:600; letter-spacing:.02em; }

.nav-check{ position:absolute; opacity:0; }
.burger{ display:none; }

/* ---------- 5. Section titles: long symmetric fading lines + star, on the title's middle ---------- */
/* A flex wrapper: [long fading line] ✦ Title ✦ [long fading line], all centered
   on the title's vertical middle. Symmetric, robust, mirrors for free in RTL.
   The h2 keeps data-split (its inner .w spans are unaffected by the outer flex).
   Hero h1 is never wrapped in .head-rule. */
.head-rule{
  display:flex;
  align-items:center;                 /* levels line + star + title on the title's middle */
  justify-content:center;
  gap:clamp(.6rem, 1.4vw, 1rem);
  width:min(1080px, 94%);
  margin-inline:auto;
  margin-bottom:clamp(1.3rem, 3vw, 2rem);   /* gap before the section content */
}
.head-rule .hr-line{
  height:1px;
  flex:1 1 auto;
  max-width:clamp(140px, 28vw, 400px);   /* longer, separator-like (FIX 4) */
}
.head-rule .hr-line:first-child{ background:linear-gradient(90deg, transparent, rgba(192,138,78,.6)); }
.head-rule .hr-line:last-child{  background:linear-gradient(270deg, transparent, rgba(192,138,78,.6)); }
/* RTL: flip the gradient so both lines are strongest next to the star, fading outward (FIX 3) */
[dir="rtl"] .head-rule .hr-line:first-child{ background:linear-gradient(270deg, transparent, rgba(192,138,78,.6)); }
[dir="rtl"] .head-rule .hr-line:last-child{  background:linear-gradient(90deg,  transparent, rgba(192,138,78,.6)); }
.head-rule .hr-star{ flex:0 0 auto; color:var(--caramel); font-size:clamp(1.15rem, .9rem + 1vw, 1.5rem); line-height:1; transform:translateY(.02em); }
.head-rule h2{ flex:0 0 auto; margin:0; white-space:normal; text-align:center; }

/* ---------- 6. Buttons (flat warm capsules; shadow only on hover/active) ---------- */
.btns{ display:flex; gap:1rem; flex-wrap:wrap; margin-top:1.9rem; }
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
  font-family:var(--font-body); font-weight:500; font-size:1.125rem;
  padding:.92em 1.95em; border-radius:999px; text-decoration:none;
  color:var(--text); cursor:pointer; min-height:3rem;
  background:var(--surface-flat);
  border:1px solid var(--border);
  transition:transform .25s var(--ease-out), box-shadow .25s ease, background-color .25s ease;
  will-change:transform;
}
.btn-ghost:hover{ color:var(--text); }   /* only the ghost button changes text color on hover */
.btn:active{ transform:scale(.97); }
.btn-primary{
  /* warm taupe capsule (not near-black); cream text clears 4.5:1 and never vanishes on hover */
  background:linear-gradient(135deg, var(--taupe-deep), #7A5647);
  border-color:var(--taupe-deep);
  color:var(--button-text);
}
.btn-primary:hover{
  transform:translateY(-2px); box-shadow:var(--shadow-hover);
  color:var(--button-text);   /* explicitly keep cream so the label NEVER disappears */
  background:linear-gradient(135deg, #8A6353, #6F4E3C);
}
.btn-ghost:hover{ transform:translateY(-2px); background:var(--blush-soft); box-shadow:var(--shadow-hover); }

/* ---------- 7. Sketch underline (hand-drawn, never wavy) ---------- */
.sketch{ position:relative; display:inline; padding-bottom:.18em; }
.sketch::after{
  content:""; position:absolute; left:0; right:0; bottom:-.04em; height:.4em;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M3 8C35 5.4 70 6.1 105 6s65 .8 92-1.4' fill='none' stroke='%23C08A4E' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") left bottom/100% 100% no-repeat;
  pointer-events:none; opacity:.9;
  transition:transform .3s ease, opacity .3s ease;
}
.sketch:hover::after{ transform:translateY(2px); opacity:1; }

/* ---------- 8. Hero ---------- */
.hero{
  position:relative; overflow:clip;
  /* lightest cream light pool at the top (reading zone) */
  background:
    radial-gradient(120% 80% at 22% -8%, rgba(255,251,244,.55) 0%, rgba(255,251,244,0) 55%),
    radial-gradient(90% 90% at 88% 108%, rgba(239,217,211,.36) 0%, rgba(239,217,211,0) 60%);
  padding-block:clamp(3.4rem, 7.5vw, 6.4rem) clamp(2.8rem, 5vw, 4rem);
}
.hero-grid{
  display:grid; grid-template-columns:1.08fr .92fr;
  gap:clamp(2rem, 5vw, 4.5rem); align-items:center; position:relative; z-index:2;
}
.hero h1{
  font-size:clamp(3.1rem, 7.2vw, 5.4rem); font-weight:700; letter-spacing:-.015em;
  margin:0 0 1.05rem; line-height:1.02;
}

.lang-line{
  display:inline-flex; align-items:center; gap:.7rem; flex-wrap:wrap; position:relative;
  margin:0 0 1.15rem; padding:.62rem 1.4rem; border-radius:999px;
  background:var(--surface-flat); border:1px solid var(--border);
  font-family:var(--font-display); font-weight:600;
  font-size:clamp(1.3rem, 1.05rem + .9vw, 1.55rem);
  letter-spacing:.01em; color:var(--text);
}
/* breathing caramel halo around the language capsule (owner wants it back) */
.lang-line::before{
  content:""; position:absolute; inset:-5px; border-radius:999px;
  border:1px solid rgba(192,138,78,.4); opacity:0; pointer-events:none;
  animation:ymHalo 3.6s ease-in-out infinite;
}
@keyframes ymHalo{ 0%,100%{ opacity:0; transform:scale(.99); } 50%{ opacity:.7; transform:scale(1.02); } }
.lang-line .star-sep{ color:var(--caramel); font-size:.78em; line-height:1; }
.role{ margin:0 0 1.15rem; }
.accent{ font-family:var(--font-accent); font-style:italic; font-weight:600; }
.role.accent{ font-size:clamp(1.18rem, 1rem + .55vw, 1.42rem); color:var(--taupe-deep); }
.tagline{ font-size:clamp(1.22rem, 1.1rem + .5vw, 1.4rem); line-height:1.62; max-width:34ch; margin:.1rem 0 0; }

.btn-arrow{ color:var(--caramel); font-size:1em; line-height:1; margin-inline-start:.1em; transition:transform .3s ease; }
.btn-ghost:hover .btn-arrow{ transform:translateX(3px); }
[dir="rtl"] .btn-arrow{ transform:scaleX(-1); }
[dir="rtl"] .btn-ghost:hover .btn-arrow{ transform:scaleX(-1) translateX(3px); }
.emph{ font-style:italic; color:var(--emph); }
.kw{ color:var(--emph); }

/* portrait: arch frame + crescent */
.hero-art{ position:relative; display:flex; justify-content:center; }
.hero-portrait{ position:relative; width:min(100%, 22rem); margin-inline:auto; }
.hero-portrait .frame{
  aspect-ratio:4/5;
  border-radius:170px 170px 24px 24px;
  overflow:hidden; border:1px solid var(--border);
  background:linear-gradient(165deg, var(--surface), var(--blush-soft));
  box-shadow:var(--shadow-hover);
}
.hero-portrait .frame img{ width:100%; height:100%; object-fit:cover; object-position:center top; }
.hero-portrait .frame.noimg img{ display:none; }
.hero-portrait::before{
  content:""; position:absolute; inset:-14px; pointer-events:none; z-index:0;
  border:1.5px solid rgba(192,138,78,.5);
  border-radius:184px 184px 32px 32px;
}
.hero-portrait .amoon{ position:absolute; top:-34px; left:4px; width:48px; color:var(--caramel); opacity:.9; z-index:2; }
.hero-portrait .amoon svg{ width:100%; height:auto; display:block; }
[dir="rtl"] .hero-portrait .amoon{ left:auto; right:4px; }

/* ambient four-point caramel star sparkles, never over text */
.ambient-sparkle{
  width:clamp(12px, 1.1vw, 17px); aspect-ratio:1; opacity:0; pointer-events:none; z-index:1;
  position:absolute;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0c.7 5.6 5.7 10.6 12 12-6.3 1.4-11.3 6.4-12 12-.7-5.6-5.7-10.6-12-12 6.3-1.4 11.3-6.4 12-12Z' fill='%23CBA158'/%3E%3C/svg%3E") center/contain no-repeat;
  filter:drop-shadow(0 0 3px rgba(212,176,92,.55));   /* warm caramel base with a faint golden shimmer */
  animation:ymStarTwinkle 7s ease-in-out infinite; will-change:transform,opacity;
}
@keyframes ymStarTwinkle{
  0%{ opacity:0; transform:translateY(8px) scale(.6) rotate(0deg); }
  50%{ opacity:.8; transform:translateY(-8px) scale(1) rotate(8deg); }
  100%{ opacity:0; transform:translateY(-22px) scale(.6) rotate(0deg); }
}
/* sparkles in off-screen sections stop animating (paused by the scroll observer) */
.sparkles-paused .ambient-sparkle{ animation-play-state:paused; }
/* mobile: stop the fixed-attachment repaint and the infinite ambient blur drift */
@media (max-width:768px){ body{ background-attachment:scroll; } body::before{ animation:none; } }

/* ---------- 9. Credential ribbon ---------- */
.creds-band{ position:relative; z-index:3; margin-top:clamp(1.4rem, 4vw, 3rem); }
.creds{
  display:flex; flex-wrap:wrap; justify-content:center; align-items:center;
  width:fit-content; max-width:min(900px, 100%); margin-inline:auto;
  gap:.2rem .35rem; margin-top:0;
  background:var(--surface-flat);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:1.05rem 1.6rem;
}
.cred{
  display:flex; align-items:center; gap:.7rem;
  padding:.5rem .95rem; font-size:1.12rem; font-weight:400; color:var(--text);
  text-decoration:none; position:relative;
}
li.cred-sep{ display:flex; align-items:center; color:var(--caramel); opacity:.7; }
.cred-icon{ display:inline-flex; flex:none; }
.cred-dot{ color:var(--caramel); font-size:.85em; }
a.cred-link{ color:var(--text); }
a.cred-link .cred-text{ color:var(--emph); }
a.cred-link:hover .cred-text, a.cred-link:focus-visible .cred-text{ color:var(--text); }
.cred-star{ display:inline-flex; color:var(--caramel); animation:credStar 2.8s ease-in-out infinite; }
@keyframes credStar{ 0%,100%{ opacity:.25; transform:scale(.85) rotate(0deg); } 50%{ opacity:1; transform:scale(1.08) rotate(12deg); } }

/* ---------- 10. Slogan: cat speaking a bubble ---------- */
.slogan{ position:relative; margin-block:clamp(2.8rem, 6vw, 4.6rem); }
.slogan-stage{
  display:flex; align-items:center; justify-content:center;
  gap:clamp(1rem, 3vw, 2rem);
}
.slogan-cat{ flex:none; width:clamp(200px, 22vw, 260px); }
.slogan-cat img{
  width:100%; height:auto; object-fit:contain;
  filter:drop-shadow(0 10px 20px rgba(58,46,42,.12));
}
.slogan-cat.noimg{ display:none; }
.slogan-bubble{
  position:relative; max-width:min(760px, 94%); text-align:center;
  padding:2.1rem clamp(2.2rem, 4vw, 3.6rem);
  border-radius:54px;
  /* soft light pooled in the centre (under the text), warming toward the edges */
  background:radial-gradient(125% 135% at 50% 50%, #FDF9F2 0%, #F2E6D6 62% 100%);
  border:1px solid var(--border);
}
.slogan-bubble::before{
  content:""; position:absolute; inset:-8px; border-radius:60px;
  border:1px solid rgba(192,138,78,.3); opacity:0; pointer-events:none;
  animation:ymHalo 4.2s ease-in-out infinite;
}
.slogan-bubble::after{
  content:""; position:absolute; top:50%; inset-inline-end:-8px; transform:translateY(-50%); z-index:-1;
  width:0; height:0;
  border-top:11px solid transparent; border-bottom:11px solid transparent;
  border-inline-start:12px solid #F6ECE1;   /* matches the bubble edge tint; tucked behind the bubble */
}
.slogan-line{
  position:relative;
  font-family:var(--font-accent); font-style:italic; font-weight:600;
  font-size:clamp(1.45rem, 1rem + 1.8vw, 2.05rem);
  line-height:1.36; color:var(--text); margin:0;
}

/* ---------- 11. Section shell ---------- */
.section{ padding-block:var(--space-6); position:relative; }
/* Section skyline: quiet sections compress, conversion sections get room, and the
   heading scale varies so the page reads with hierarchy instead of one flat rhythm. */
.section.how-bg,
.section.faq-bg{ padding-block:clamp(3.5rem, 5vw, 5rem); }     /* quieter, compressed */
.section.work-bg,
.section.contact-bg{ padding-block:clamp(6rem, 8vw, 7rem); }   /* the jewels get room */
.section.faq-bg h2{ font-size:clamp(1.7rem, 2.4vw, 2.2rem); }        /* FAQ smaller */
.section.work-bg h2,
.section.contact-bg h2{ font-size:clamp(2.4rem, 3.8vw, 3.4rem); }    /* Work + Contact larger */
.section h2{ margin:0; }   /* spacing now lives on .head-rule (PART 2) */

.how-lead, .work-intro, .faq-cols > .faq-intro{ text-align:center; margin-inline:auto; }
/* site-wide reading flow: no stranded words */
p, li, .qa-body p, .wc-text, .cred span, blockquote{ text-wrap:pretty; }
h1, h2, h3, .lang-line, .faq-intro, .work-intro, .how-lead, .lead-line, .glad, .slogan-line{ text-wrap:balance; }
.crescent-divider{ display:flex; justify-content:center; align-items:center; gap:.7rem; padding-block:.2rem; }
.crescent-divider svg{ opacity:.55; }
.crescent-divider::before, .crescent-divider::after{
  content:""; height:1px; width:min(150px, 22vw);
  background:linear-gradient(90deg, transparent, rgba(192,138,78,.5));
}
.crescent-divider::after{ background:linear-gradient(90deg, rgba(192,138,78,.5), transparent); }

.link-ink{
  color:var(--emph); text-decoration:none;
  position:relative; padding-bottom:2px; transition:color .25s ease;
}
.link-ink::after{
  content:""; position:absolute; inset-inline:0; bottom:-2px; height:5px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 6' preserveAspectRatio='none'%3E%3Cpath d='M1 4.4c7-2.8 14-2.8 21 0s14 2.8 21 0 13-2.5 16-.7' fill='none' stroke='%23B07A42' stroke-width='1.5' stroke-linecap='round' opacity='.75'/%3E%3C/svg%3E") center/100% 100% no-repeat;
  transform:scaleX(0); transform-origin:0 50%; transition:transform .4s var(--ease-out);
}
.link-ink:hover, .link-ink:focus-visible{ color:var(--text); }
.link-ink:hover::after, .link-ink:focus-visible::after{ transform:scaleX(1); }

.icon-disc{
  display:inline-grid; place-items:center; width:3.4rem; height:3.4rem; flex:none;
  background:var(--surface); border:1px solid var(--border); border-radius:50%;
}

/* ---------- 12. About (asymmetric two-column feature) ---------- */
/* FIX E applied: no drop cap. Per-section tint: warm ivory behind text,
   a touch deeper behind the image. */
.about-bg{
  background:
    radial-gradient(58% 70% at 16% 48%, rgba(214,184,158,.18), transparent 66%),
    radial-gradient(55% 60% at 84% 30%, rgba(255,250,243,.30), transparent 66%);
}
.about-grid{
  display:grid;
  grid-template-columns:minmax(320px, 460px) minmax(0, 1fr);   /* generous image column, balances the text (FIX 2) */
  column-gap:clamp(2.4rem, 5vw, 4.2rem); row-gap:0;
  align-items:start;
}
.about-grid > .head-rule{ grid-column:1 / -1; margin-bottom:1.2rem; }
.about-grid > .about-p1, .about-grid > p, .about-grid > .about-note{
  grid-column:2; max-width:60ch; margin-bottom:1.2em;
}
.about-art{ grid-column:1; grid-row:2 / span 5; align-self:start; position:relative; margin-inline:0; max-width:100%; }
.about-note{ position:relative; border:0; padding:0; margin-top:1.6em; font-style:italic; font-weight:500; font-size:1.06em; color:var(--text); text-wrap:balance; }
.about-note::before{ content:none; }
.about-note .note-glyph{ display:inline; font-style:normal; color:var(--caramel); margin-inline-end:.5em; font-size:1.5em; line-height:1; vertical-align:-0.12em; }
.about-art, .about-fig{ width:100%; }
.about-fig{ margin:0; position:relative; }
.about-fig img{
  position:relative; z-index:1; width:100%; height:auto; display:block; aspect-ratio:1122/1402; object-fit:cover;
  border-radius:var(--radius-lg); box-shadow:var(--shadow-hover);
}
.about-fig .ph-art{
  position:relative; z-index:1; aspect-ratio:4/5; border-radius:var(--radius-lg);
  background:linear-gradient(160deg, var(--surface-2), var(--blush-soft));
  display:none; place-items:center;
}
.about-fig.noimg img{ display:none; }
.about-fig.noimg .ph-art{ display:grid; }

/* ---------- 13. Services — distinct cards, flat, NOT identical ---------- */
/* Per-section character: each card is a flat warm panel with a hairline border
   at rest and a hover lift. To kill the identical-grid tell, cards vary: the
   second (subtitling, the focus area) is the featured one and spans full width
   on desktop with its own emphasis; the others pair beside it. The four icons
   stay distinct (FIX G honored). */
.services-bg{
  background:
    radial-gradient(70% 60% at 50% 0%, rgba(239,217,211,.28), transparent 60%),
    radial-gradient(60% 60% at 50% 100%, rgba(214,184,158,.14), transparent 66%);
}
/* Services: OPEN editorial rows separated only by hairlines (no boxes, no side
   borders, no resting/hover shadow). Each row warms to a creamy beige on hover
   AND automatically one-by-one while scrolling (.is-active), so it works on
   touch. The icon sits to the LEFT of the title and paragraph as a media
   object, so it anchors the whole entry (owner request). (PART 1) */
.service-list{ max-width:920px; margin-inline:auto; }
.service-row{
  position:relative;
  display:grid;
  grid-template-columns:auto minmax(0, 1fr);   /* icon column + text column */
  align-items:start;
  column-gap:clamp(1rem, 2.6vw, 1.7rem);
  padding:clamp(1.4rem, 3vw, 2.1rem) clamp(.8rem, 2vw, 1.3rem);
  border-bottom:1px solid var(--border);
  border-radius:.5rem;                       /* gentle soft corners, not a box */
  transition:background-color .35s ease;
}
.service-list .service-row:first-child{ border-top:1px solid var(--border); }
.service-list .service-row:last-child{ border-bottom:1px solid var(--border); }
/* flat creamy wash, edge to edge, lighter than the section — the hairlines stay the only crisp lines */
.service-row:hover,
.service-row.is-active{ background-color:#F8F1E4; }
/* icon level with the title's first line; in RTL the grid puts it on the right automatically */
.service-row .icon-disc{
  flex:none;
  width:clamp(2.8rem, 1.9rem + 2vw, 3.2rem);
  height:clamp(2.8rem, 1.9rem + 2vw, 3.2rem);
  margin-top:.15rem;
}
.service-text{ min-width:0; }
.service-row h3{
  font-family:var(--font-display);   /* Playfair LTR, Amiri RTL */
  font-weight:600;
  font-size:clamp(1.4rem, 1rem + 1.6vw, 2rem);
  line-height:1.15;
  margin:0 0 .55rem;
  color:var(--taupe-deep);
}
.service-row p{ margin:0; max-width:70ch; color:var(--text); }
.service-row .kw{ color:var(--emph-card); }


/* ---------- 14. How I work (numbered steps, flat panels) ---------- */
.how-bg{
  background:radial-gradient(120% 80% at 50% 0%, rgba(245,237,227,.40) 0%, rgba(245,237,227,0) 58%);
}
.how-lead{ font-size:1.28rem; line-height:1.66; max-width:62ch; margin-bottom:2.6rem; }
.steps{ display:grid; gap:1.5rem; max-width:760px; margin-inline:auto; }
.step{
  background:var(--surface-flat);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:1.9rem 2.2rem;
  display:flex; align-items:flex-start; gap:clamp(.8rem, 2vw, 1.4rem);
  transition:box-shadow .4s ease;
}
.step-num{
  flex:0 0 auto;
  font-family:var(--font-display); font-weight:700; font-size:2.5rem; line-height:1;
  color:var(--copper); position:relative;
}
.step-body{ min-width:0; }
.step h3{ display:flex; align-items:center; gap:.5rem; font-size:1.32rem; margin:0 0 .4em; }
.step-ico{ display:inline-flex; flex:0 0 auto; }
.step p{ margin:0; }
@media (min-width:1000px) and (min-height:720px){
  .steps{ padding-bottom:1rem; }
  .step{ position:sticky; top:calc(var(--header-h) + 1.8rem + var(--i, 0) * 1.6rem); min-height:auto; }
}

/* ---------- 15. Selected work (deepest amber-taupe tint, the sunset peak) ---------- */
.work-bg{
  position:relative; overflow:hidden;
  /* deepest tint of the page, where the backdrop image sits */
  background:
    radial-gradient(72% 62% at 50% 50%, rgba(176,122,66,.16), transparent 68%);
}
.work-bg .wrap{ position:relative; z-index:1; }
.work-intro{ font-size:1.2rem; margin-bottom:2.2rem; }
.work-grid{
  display:grid; grid-template-columns:1fr; gap:1.25rem; max-width:980px; margin-inline:auto;
}
.work-card{
  display:flex; align-items:center; gap:1.3rem;
  background:var(--surface-flat);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:1.35rem 1.6rem; text-decoration:none; color:var(--text);
  position:relative; transition:transform .3s var(--ease-out), box-shadow .3s ease, border-color .3s ease;
}
/* featured first card */
.work-card:first-child{
  padding:clamp(1.8rem, 3vw, 2.4rem); gap:clamp(1.4rem, 2.5vw, 2rem);
  background:var(--surface-flat-2);
}
.work-card:first-child .icon-disc{ width:3.6rem; height:3.6rem; }
.work-card:first-child .wc-text strong{ font-size:clamp(1.3rem, 1.6vw, 1.7rem); }   /* featured item larger */
@media (min-width:801px){
  .work-grid{ grid-template-columns:1fr 1fr; }
  .work-card:first-child{ grid-column:1 / -1; }
}
.work-card .icon-disc{ width:3rem; height:3rem; }
.wc-text{ flex:1; line-height:1.55; }
.wc-text strong{ font-family:var(--font-display); font-weight:600; color:var(--text); }   /* Playfair titles */
.wc-text .wc-sub{ color:var(--text-soft); font-weight:400; }
.wc-spark{ flex:none; width:1.4rem; height:1.4rem; opacity:.3; transform:scale(.7); transition:opacity .35s ease, transform .35s ease; }
@media (hover:hover) and (pointer:fine){
  .work-card:hover{ transform:translateY(-3px); box-shadow:var(--shadow-hover); border-color:rgba(192,138,78,.5); }
  .work-card:hover .wc-spark{ opacity:1; transform:scale(1); }
}
.work-card:focus-visible .wc-spark{ opacity:1; transform:scale(1); }

/* ---------- 16. FAQ (two columns on desktop) ---------- */
.faq-bg{ background:transparent; }
.faq-intro{ font-size:1.2rem; max-width:60ch; }
/* second sentence on its own clean centered line (matches the EN two-line intro,
   no orphaned words at any width) (PART 5) */
.faq-intro .faq-s2{ display:block; }
/* Arabic intro reads as one line on desktop where it fits, dropping the second
   sentence only on narrow screens (owner request) */
[dir="rtl"] .faq-intro{ max-width:82ch; }
[dir="rtl"] .faq-intro .faq-s2{ display:inline; }
@media (max-width:600px){ [dir="rtl"] .faq-intro .faq-s2{ display:block; } }
.faq-cols{ display:grid; grid-template-columns:1fr; column-gap:clamp(1.6rem, 4vw, 3rem); row-gap:1.3rem; align-items:start; justify-content:center; }
.faq-cols > .head-rule, .faq-cols > .faq-intro{ grid-column:1 / -1; }
.faq-cols > .head-rule{ margin-bottom:.2em; }
.faq-cols > .faq-intro{ margin-top:-.5rem; margin-bottom:.8rem; }
.faq-group{ margin-bottom:.4rem; }
.faq-group h3{
  font-size:1.5rem; margin-bottom:1rem; display:flex; align-items:center; gap:.6rem;
}
.faq-group h3 svg{ flex:none; }
.qa{
  border:1px solid var(--border); border-radius:var(--radius-sm);
  background:var(--surface-flat); margin-bottom:.8rem; overflow:hidden;
  transition:background-color .3s ease, border-color .3s ease;
}
.qa[open]{ background:var(--surface); border-color:rgba(192,138,78,.45); }
.qa summary{
  list-style:none; cursor:pointer; display:block; position:relative;
  padding:1.05rem 1.35rem; padding-inline-end:3.3rem;
  font-weight:500; font-size:1.125rem; min-height:3rem; line-height:1.5;
}
.qa summary::-webkit-details-marker{ display:none; }
.qa summary:hover{ background:rgba(228,200,192,.22); }
.qa .plus{
  position:absolute; inset-inline-end:1.2rem; top:calc(50% - .62rem); width:1.24rem; height:1.24rem;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2c.6 4.6 2.4 7 4.6 8 1.6.7 3.4 1.2 5.4 1.9-4.5.7-7 2.4-8 4.6-.7 1.6-1.2 3.5-1.9 5.5-.7-4.6-2.4-7-4.6-8-1.6-.7-3.4-1.2-5.4-1.9 4.5-.7 7-2.4 8-4.6.7-1.6 1.2-3.5 1.9-5.5Z' fill='%23A06C38'/%3E%3C/svg%3E") center/contain no-repeat;
  transition:transform .35s var(--ease-out), opacity .3s ease;
}
.qa[open] .plus{ transform:rotate(45deg); opacity:.72; }
.qa-body{ padding:0 1.35rem 1.2rem; }
.qa-body p{ margin:0; color:var(--text); }

/* ---------- 17. Contact (soft blush-cream easing out) ---------- */
.contact-bg{
  background:
    radial-gradient(80% 70% at 20% 50%, rgba(255,250,243,.28), transparent 66%),
    radial-gradient(70% 70% at 100% 100%, rgba(228,200,192,.36) 0%, rgba(239,217,211,0) 55%);
}
/* FIX F: heading + intro centered full-width above the two-col grid */
.contact-grid{
  display:grid; grid-template-columns:1fr; gap:clamp(2rem, 4vw, 3.4rem);
  align-items:start; max-width:1000px; margin-inline:auto;
}
@media (min-width:801px){
  .contact-grid{ grid-template-columns:1fr 1fr; }
}
.contact-intro-center{ text-align:center; max-width:60ch; margin:0 auto 2.4rem; }
.contact-info{ width:100%; }
/* glad sentence gets the full column width on its own line(s); the cat sits below it,
   so a longer FR/AR line is never squeezed (PART 5) */
.glad-row{ display:flex; flex-direction:column; align-items:center; gap:.55rem; margin:1.1em auto 1.6em; max-width:100%; text-align:center; }
.glad{ font-size:1.5rem; color:var(--taupe-deep); margin:0; max-width:100%; text-wrap:balance; }
html[lang="fr"] .glad{ font-size:1.3rem; }   /* the longer FR invitation fits one line in its column (PART 5) */
.glad-cat{ flex:0 0 auto; width:clamp(58px, 7vw, 84px); height:auto; }
.contact-rows{
  display:flex; flex-direction:column; flex-wrap:nowrap;
  justify-content:center; align-items:center;
  gap:.7rem; margin-bottom:1.7rem;
}
.contact-rows a{
  display:inline-flex; align-items:center; gap:.55rem;
  background:none; border:0; box-shadow:none; border-radius:0;
  padding:.25rem .1rem; font-size:1.125rem; color:var(--text);
  text-decoration:underline; text-decoration-color:rgba(192,138,78,.45);
  text-decoration-thickness:1px; text-underline-offset:.22em;
  transition:color .3s ease, text-decoration-color .3s ease;
}
.contact-rows .icon-disc{ width:2.4rem; height:2.4rem; }
.contact-rows a:hover{ color:var(--taupe-deep); text-decoration-color:rgba(138,99,83,.8); }
.profile-links{ display:flex; flex-wrap:wrap; gap:.7rem; justify-content:center; }
/* profile links: flat capsules, hairline border, shadow on hover only */
.profile-links a{
  display:inline-flex; align-items:center; gap:.5rem; text-decoration:none;
  color:var(--text); font-weight:500; font-size:1.0625rem;
  background:var(--surface-flat);
  border:1px solid var(--border); border-radius:999px;
  padding:.6rem 1.3rem; min-height:2.75rem;
  transition:transform .3s var(--ease-out), box-shadow .3s ease;
}
.profile-links a::before{
  content:""; width:.5rem; height:.5rem; border-radius:50%;
  background:var(--copper); opacity:.6; transition:opacity .3s ease, transform .3s ease;
}
.profile-links a:hover{ transform:translateY(-2px); box-shadow:var(--shadow-hover); }
.profile-links a:hover::before{ opacity:1; transform:scale(1.25); }
/* faint warm sheen on hover (no blur, no glow border) */
@media (hover:hover) and (pointer:fine){
  .profile-links a:hover{
    background:linear-gradient(135deg, rgba(253,249,242,.6), var(--surface-flat));
    box-shadow:0 4px 14px -6px rgba(138,99,83,.2);
  }
}

.contact-form-col{ position:relative; width:100%; max-width:560px; margin-inline:auto; }
.form-card{
  background:var(--surface-flat);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:clamp(1.6rem, 3.5vw, 2.5rem);
}
.field{ margin-bottom:1.15rem; }
.field label{ display:block; font-weight:500; font-size:1.03rem; margin-bottom:.4rem; color:var(--text); }
.field input, .field textarea{
  width:100%; background:#FBF3E7; color:var(--text);
  border:1px solid var(--border); border-radius:var(--radius-sm);
  padding:.8rem 1rem; font-size:1.125rem; min-height:3rem;
  transition:border-color .25s ease, box-shadow .25s ease;
}
.field textarea{ min-height:9.5rem; resize:vertical; }
.field input:focus-visible, .field textarea:focus-visible{
  outline:none; border-color:var(--taupe);
  box-shadow:0 0 0 4px rgba(166,124,104,.18);
}
.hp{ position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }
.form-status{ margin:.9rem 0 0; min-height:1.5em; font-size:1.0625rem; color:var(--text); }
.form-status.is-error{ color:#6E4636; font-weight:600; }

/* Navi message-sent confirmation: the character + a real speech bubble, below the Send button (FIX 5) */
.navi-success{
  display:flex; flex-direction:row-reverse; align-items:center;
  justify-content:flex-start;        /* orb tucked to the side, opposite the centered button */
  gap:.7rem; margin-top:1rem; pointer-events:none;
  min-height:clamp(92px, 13vw, 106px);   /* reserves exactly the orb height so the card ends right after */
  opacity:0; transition:opacity .35s ease;   /* present but invisible; fades in within reserved space, no jump */
}
.navi-success.show{ opacity:1; }
/* same arrangement in every language: speech bubble on the left, orb floating on the right */
[dir="rtl"] .navi-success{ direction:ltr; }
.navi-success-img{
  width:clamp(92px, 13vw, 106px); height:auto; flex:0 0 auto;   /* visibly larger than the 2-line bubble, not a giant */
  filter:saturate(.82) brightness(.96) hue-rotate(-12deg);   /* warm the gold orb toward caramel */
  transition:filter .3s ease;
}
.navi-bubble{
  position:relative; flex:1 1 auto; min-width:0; max-width:min(380px, 92vw);   /* wide enough so line 2 fits on ONE line */
  display:flex; flex-direction:column; gap:.1rem;
  background:radial-gradient(130% 130% at 50% 50%, #FDFAF3 0%, #F4E8D6 60% 100%);   /* uniform rim matches the tail */
  border:1px solid rgba(192,138,78,.35); border-radius:18px;
  padding:.75rem 1.2rem; box-shadow:0 12px 28px rgba(58,46,42,.14);
  font-family:var(--font-body); font-style:normal; color:var(--text); line-height:1.4;
  opacity:0; transform:scale(.96); transition:opacity .3s ease .12s, transform .3s ease .12s;
}
.navi-success.show .navi-bubble{ opacity:1; transform:scale(1); }
.navi-bubble .navi-line1{ font-weight:600; color:var(--taupe-deep); font-size:1.05em; white-space:nowrap; }
.navi-bubble .navi-line2{ color:var(--text-soft); font-size:.95em; white-space:nowrap; }   /* one line, never a third */
[dir="rtl"] .navi-bubble{ direction:rtl; text-align:right; }   /* Arabic reads right-to-left inside the bubble */
.navi-bubble::before{                 /* clean triangle pointing toward the orb (Navi row is LTR everywhere) */
  content:""; position:absolute; right:-11px; top:50%; transform:translateY(-50%);
  width:0; height:0;
  border-top:9px solid transparent; border-bottom:9px solid transparent;
  border-left:10px solid #F7EEE1;   /* matches the bubble edge tint */
}
.navi-success.show .navi-success-img{
  animation:ymNaviFloat 3.6s ease-in-out .4s infinite,
            ymNaviGlow 3.2s ease-in-out infinite;   /* floats with a soft shadow that fades in and out */
}
@keyframes ymNaviFloat{ 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-6px); } }
@keyframes ymNaviGlow{
  0%,100%{ filter:drop-shadow(0 6px 12px rgba(192,138,78,.22)) saturate(.82) brightness(.96) hue-rotate(-12deg); }
  50%{ filter:drop-shadow(0 11px 22px rgba(192,138,78,.5)) saturate(.82) brightness(.96) hue-rotate(-12deg); }
}

/* ---------- 17b. Work With Me invitation ---------- */
.invite-bg{ background:radial-gradient(120% 80% at 50% 30%, rgba(239,217,211,.34), transparent 62%), radial-gradient(80% 70% at 50% 100%, rgba(255,250,243,.30), transparent 66%); }
.invite-stage{ max-width:680px; margin-inline:auto; text-align:center; display:flex; flex-direction:column; align-items:center; gap:1.3rem; }
.invite-line{ font-family:var(--font-accent); font-style:italic; font-weight:600; font-size:clamp(1.3rem, 1rem + 1.4vw, 1.9rem); line-height:1.5; color:var(--text); margin:0; max-width:46ch; text-wrap:balance; }
.invite-note{ font-family:var(--font-body); font-style:normal; font-weight:400; font-size:1.05rem; color:var(--text-soft); margin:-.2rem 0 0; max-width:48ch; }
/* invite button: warm translucent base + the same breathing frame as the slogan + lang-line */
.invite-btn{ position:relative; background:rgba(247,239,227,.55); backdrop-filter:blur(4px); -webkit-backdrop-filter:blur(4px); }
.invite-btn::before{
  content:""; position:absolute; inset:-5px; border-radius:999px;
  border:1px solid rgba(192,138,78,.4); opacity:0; pointer-events:none;
  animation:ymHalo 3.8s ease-in-out infinite;
}
.invite-btn::after{ content:none; }   /* remove the invisible shimmer */
/* narrow phones: the long message-sent line cannot sit beside the orb, so stack
   (orb on top) and shrink the bubble so line 2 stays ONE line with no overflow */
@media (max-width:480px){
  .navi-success{ flex-direction:column; align-items:center; gap:.5rem; min-height:0; }
  .navi-bubble{ font-size:.9rem; padding:.6rem .95rem; max-width:100%; }
  .navi-bubble::before{
    right:auto; left:50%; top:-10px; transform:translateX(-50%);
    border-top:0; border-left:9px solid transparent; border-right:9px solid transparent;
    border-bottom:10px solid #F7EEE1;   /* tail points up toward the orb above */
  }
}

/* thin shimmer that sweeps the full width of the Send button only */
.btn-send{ position:relative; overflow:hidden; }
.btn-send::after{
  content:""; position:absolute; top:0; bottom:0; left:0; width:20%;            /* thin band */
  background:linear-gradient(100deg, transparent, rgba(255,247,238,.2), transparent);
  transform:translateX(-100%);                                                  /* starts fully off the left */
  animation:ymShimmer 2.6s linear infinite;
}
@keyframes ymShimmer{
  0%{ transform:translateX(-100%); }    /* band fully off the left edge */
  100%{ transform:translateX(500%); }   /* band fully off the right edge (500% of 20% = 100% of button) */
}

/* ---------- 18. Footer ---------- */
.footer{
  background:linear-gradient(180deg, rgba(228,200,192,0), rgba(228,200,192,.42));
  border-top:1px solid rgba(192,138,78,.22);
  padding-block:2rem 1.7rem; text-align:center;
}
.footer .brand-mark{ display:block; width:62px; height:62px; margin-inline:auto; }
.footer .brand-mark img, .footer .brand-mark .logo-fallback{ width:62px; height:62px; }
.footer .brand-name{ display:flex; align-items:center; margin-top:.6rem; }
.footer .brand-name b{ font-size:1.28rem; }
.footer-line{ margin:.9rem 0 0; color:var(--text-soft); font-size:1.0625rem; }
.nowrap{ white-space:nowrap; }
.footer .crescent-divider{ margin-top:.85rem; }

/* ---------- 19. Reveal system (JS-gated: visible without JS) ---------- */
html.js [data-reveal]{ opacity:0; transform:translateY(10px); transition:opacity .22s var(--ease-out), transform .22s var(--ease-out); }
html.js [data-reveal="fade"]{ transform:none; }
html.js [data-reveal="zoom"]{ transform:scale(.965); }
html.js [data-reveal].is-in{ opacity:1; transform:none; }

html.js .split .w{
  display:inline-block; opacity:0; transform:translateY(.4em);
  transition:opacity .45s var(--ease-out), transform .45s var(--ease-out);
  transition-delay:calc(var(--wi, 0) * 55ms);
}
html.js .split.is-in .w{ opacity:1; transform:none; }

/* ---------- 19b. Ambient motion (transform/opacity only) ---------- */
@keyframes ymFloatY{ 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-6px); } }
.glad-cat{ animation:ymFloatY 4s ease-in-out infinite; will-change:transform; }
@keyframes ymCrescentFloat{ 0%,100%{ transform:translateY(0) rotate(0deg); } 50%{ transform:translateY(-7px) rotate(-3deg); } }
.hero-portrait .amoon{ animation:ymCrescentFloat 6s ease-in-out infinite; will-change:transform; }

/* ---------- 20. Responsive ---------- */
@media (min-width:861px){
  .faq-cols{ grid-template-columns:1fr 1fr; }
}
@media (max-width:820px){
  .hero-grid{ grid-template-columns:1fr; }
  .hero-art{ order:2; margin-top:2.4rem; }
  .hero-portrait{ width:min(100%, 20rem); }
  .about-grid{ grid-template-columns:1fr; justify-content:stretch; }
  .about-grid > .head-rule, .about-grid > .about-p1, .about-grid > p,
  .about-grid > .about-art, .about-grid > .about-note{ grid-column:1; grid-row:auto; }
  .about-grid > .about-video{ grid-column:1; grid-row:auto; order:6; }
  .about-grid > .head-rule{ order:1; }
  .about-grid > .about-p1{ order:2; }
  .about-grid > .about-art{ order:3; display:block; align-self:center; margin-inline:auto; width:min(100%, 23rem); max-width:23rem; }
  .about-grid > p{ order:4; }
  .about-grid > .about-note{ order:5; }
  .creds{ border-radius:var(--radius); }
}
@media (max-width:860px){
  .header-in{ flex-wrap:wrap; }
  .burger{
    display:flex; flex-direction:column; justify-content:center; gap:5px;
    width:48px; height:48px; padding:11px; cursor:pointer;
    border:1px solid var(--border); border-radius:var(--radius-sm);
    background:var(--surface-flat); order:3;
  }
  .burger span{ display:block; height:2px; border-radius:2px; background:var(--text); transition:transform .35s var(--ease-out), opacity .35s ease; }
  .nav-check:focus-visible + .burger{ outline:2px solid var(--taupe-deep); outline-offset:3px; }
  .nav{
    position:absolute; top:100%; inset-inline:0;
    flex-direction:column; align-items:stretch; gap:0;
    background:var(--bg); border-bottom:1px solid var(--border);
    box-shadow:0 20px 34px rgba(58,46,42,.14);
    padding:0 1.5rem;
    opacity:0; transform:translateY(-.6rem); visibility:hidden; pointer-events:none;
    transition:opacity .35s var(--ease-out), transform .35s var(--ease-out), visibility 0s linear .35s;
  }
  .nav > a{ padding:.85rem .4rem; min-height:44px; display:flex; align-items:center; border-bottom:1px solid rgba(227,213,201,.7); font-size:1.125rem; border-radius:0; }
  .nav .lang-switch{ margin:1rem 0 1.2rem; width:fit-content; align-self:flex-start; }
  .nav-check:checked ~ .nav{
    opacity:1; transform:translateY(0); visibility:visible; pointer-events:auto;
    transition:opacity .35s var(--ease-out), transform .35s var(--ease-out), visibility 0s;
  }
  .nav-check:checked + .burger span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
  .nav-check:checked + .burger span:nth-child(2){ opacity:0; }
  .nav-check:checked + .burger span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }
  .lang-switch a{ min-height:44px; display:inline-flex; align-items:center; justify-content:center; }
  .creds{ margin-top:0; padding:1rem 1.1rem; flex-direction:column; align-items:flex-start; gap:.1rem; }
  li.cred-sep{ display:none; }
  .cred{ padding:.6rem .6rem; min-height:44px; }
  .slogan-bubble{ width:min(72%, 520px); margin-inline-start:clamp(.5rem, 3vw, 2.5rem); }
}
@media (max-width:640px){
  .wrap{ width:calc(100% - 2.2rem); }
  /* services fill the row on mobile, no cramped dead space beside the text */
  .service-list{ max-width:100%; }
  .service-row{ grid-template-columns:auto minmax(0,1fr); column-gap:.85rem; padding-inline:0; }
  .service-row p{ max-width:none; }
  .service-row .icon-disc{ width:2.6rem; height:2.6rem; }
  .hero{ padding-top:2.6rem; }
  .slogan-stage{ flex-direction:column-reverse; gap:1.4rem; }
  .slogan-bubble{ max-width:100%; padding:1.4rem 1.5rem; }
  .slogan-cat{ width:clamp(190px, 52vw, 250px); }
  .slogan-bubble::after{
    top:-10px; bottom:auto; inset-inline-end:auto; left:50%; transform:translateX(-50%);
    border:0;
    border-left:11px solid transparent; border-right:11px solid transparent;
    border-bottom:12px solid #F6ECE1;
  }
  .step{ gap:.9rem; padding:1.5rem 1.4rem; }
  .work-card{ flex-wrap:wrap; gap:.9rem; padding:1.2rem 1.3rem; }
  .footer .brand-mark{ width:68px; height:68px; }
  .footer .brand-mark img, .footer .brand-mark .logo-fallback{ width:68px; height:68px; }
  .work-card:first-child{ padding:1.35rem 1.6rem; }
  .work-card:first-child .icon-disc{ width:3rem; height:3rem; }
  .work-card:first-child .wc-text strong{ font-size:1rem; }
  /* keep the flanking lines + stars compact on small screens, never overflowing.
     Fixed-width lines so they always render even when a long title wraps to two
     lines (otherwise the flex lines collapse to 0 and the heading loses them). */
  .head-rule{ gap:.5rem; width:94%; }
  .head-rule .hr-line{ flex:0 0 auto; width:clamp(16px, 7vw, 44px); max-width:none; }
  .head-rule h2{ flex:0 1 auto; min-width:0; }
}
@media (max-width:380px){
  .brand-name b{ font-size:1.12rem; }
  .brand-sub{ font-size:.58rem; }
  .btn{ width:100%; }
  .lang-line{ font-size:1.05rem; }
}

/* ---------- 21. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *, *::before, *::after{
    animation:none !important;
    transition:none !important;
  }
  html.js [data-reveal], html.js .split .w{ opacity:1; transform:none; }
  .step{ position:static !important; }
}

/* ============================================================
   22. RTL OVERRIDES (ar.html) — keep at end of file
   ============================================================ */
[dir="rtl"]{
  --font-display:'Amiri', 'Segoe UI', Tahoma, 'Noto Naskh Arabic', 'Noto Sans Arabic', 'Times New Roman', serif;
  --font-accent:'Amiri', 'Segoe UI', Tahoma, 'Noto Naskh Arabic', 'Noto Sans Arabic', serif;
  --font-body:'Tajawal', 'Cairo', 'Segoe UI', Tahoma, 'Noto Sans Arabic', 'Noto Kufi Arabic', sans-serif;
}

[dir="rtl"] body{ font-size:1.25rem; line-height:1.85; }
[dir="rtl"] *{ letter-spacing:0 !important; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3{ line-height:1.8; }
[dir="rtl"] .accent, [dir="rtl"] .role, [dir="rtl"] .slogan-line,
[dir="rtl"] .glad, [dir="rtl"] em, [dir="rtl"] i, [dir="rtl"] .card-quote,
[dir="rtl"] .about-note, [dir="rtl"] .navi-bubble{ font-style:normal; }
[dir="rtl"] .lang-line{ text-transform:none; font-size:clamp(1.5rem, 1.2rem + 1vw, 1.9rem); }
[dir="rtl"] .role.accent{ font-size:clamp(1.25rem, 1.05rem + .6vw, 1.55rem); }
[dir="rtl"] .tagline{ font-size:clamp(1.3rem, 1.16rem + .5vw, 1.5rem); line-height:1.8; max-width:34ch; }
[dir="rtl"] .slogan-line{ font-size:clamp(1.55rem, 1.1rem + 1.9vw, 2.3rem); line-height:1.8; }
[dir="rtl"] .how-lead, [dir="rtl"] .work-intro, [dir="rtl"] .faq-intro, [dir="rtl"] .lead-line{ font-size:1.3rem; line-height:1.8; }
[dir="rtl"] .btn{ font-size:1.2rem; line-height:1.8; }
[dir="rtl"] .qa summary{ font-size:1.22rem; line-height:1.8; }
[dir="rtl"] .glad{ font-size:1.6rem; }
[dir="rtl"] .cred{ font-size:1.12rem; }
[dir="rtl"] .nav > a{ font-size:1.125rem; }
[dir="rtl"] .step h3{ font-size:1.5rem; }
[dir="rtl"] .service-row h3{ font-size:clamp(1.6rem, 1.2rem + 1.4vw, 2.1rem); }
[dir="rtl"] .faq-group h3{ font-size:1.6rem; }
[dir="rtl"] .wc-text{ line-height:1.8; }

/* Latin lockup inside the RTL page keeps its Latin styling (the logo never localizes) */
[dir="rtl"] .brand-sub{ font-family:'Jost','Segoe UI','Trebuchet MS',Verdana,sans-serif; letter-spacing:.26em !important; }
[dir="rtl"] .brand-name b{ font-family:'Playfair Display', Georgia, 'Times New Roman', serif; font-style:italic; }
/* phone icon mirrors for RTL; the mail icon is symmetric so it stays */
[dir="rtl"] .contact-rows a[href^="tel"] svg{ transform:scaleX(-1); }

/* word reveal (word-level only in Arabic; rise distance softened) */
html.js[dir="rtl"] .split .w{ transform:translateY(.35em); }
html.js[dir="rtl"] .split.is-in .w{ transform:none; }

.ltr-iso{ direction:ltr; unicode-bidi:isolate; }

[dir="rtl"] .slogan-stage{ direction:ltr; }
[dir="rtl"] .slogan-line{ direction:rtl; text-align:center; }
[dir="rtl"] .about-note{ font-style:normal; }
[dir="rtl"] .emph{ font-style:normal; }

/* the title diamonds/lines are symmetric; no RTL change needed */

/* logo, navi, cat motif are NEVER mirrored */
[dir="rtl"] .brand-mark img, [dir="rtl"] .logo-fallback,
[dir="rtl"] .crescent-divider svg,
[dir="rtl"] .navi, [dir="rtl"] .footer-cat svg{ transform:none; }

/* ============================================================
   23. FINAL LAYOUT PASS (July 6, 2026): brand mark, niche label,
   video coda, composition rhythm, footer line, motion additions.
   ============================================================ */


/* Header brand reveal: name and sub-line slide out from beside the mark,
   once on load, clipped by the lockup box; RTL slides from the mark's side. */
.brand-name{ overflow:hidden; }
.brand-name b{ line-height:1.3; }
.brand-name b, .brand-name .brand-sub{ animation:ymBrandIn .58s var(--ease-out) both; }
.brand-name .brand-sub{ animation-delay:.09s; }
@keyframes ymBrandIn{ from{ opacity:0; transform:translateX(-108%); } to{ opacity:1; transform:none; } }
[dir="rtl"] .brand-name b, [dir="rtl"] .brand-name .brand-sub{ animation-name:ymBrandInRtl; }
@keyframes ymBrandInRtl{ from{ opacity:0; transform:translateX(108%); } to{ opacity:1; transform:none; } }

/* Arabic brand lockup: Amiri upright, zero tracking, no uppercase */
[dir="rtl"] .brand-name b{ font-family:var(--font-display); font-style:normal; font-size:1.5rem; line-height:1.45; }
[dir="rtl"] .brand-sub{ font-family:var(--font-body); letter-spacing:0 !important; text-transform:none; font-size:.98rem; font-weight:500; line-height:1.4; }

/* Hero: breathing room around name, languages, role; the niche label */
.hero h1{ margin-bottom:1.25rem; }
.lang-line{ margin-bottom:1.35rem; }
.role{ margin-bottom:.6rem; }
.niche-line{
  font-family:var(--font-body); font-weight:500;
  font-size:1.0625rem; letter-spacing:.035em;
  color:var(--text-soft); max-width:52ch; margin:0 0 1.4rem;
}
.niche-line .niche-star{ color:var(--caramel); font-size:.9em; margin-inline-end:.55em; }
[dir="rtl"] .niche-line{ font-size:1.16rem; }   /* tracking zeroed by the global RTL rule */

/* About: the video block is a quiet coda under the split */
.about-video{ grid-column:1 / -1; width:min(640px, 100%); margin:2.6rem auto 0; text-align:center; }
.about-video .video-title{ font-size:clamp(1.3rem, 1.1rem + .8vw, 1.6rem); margin:0 0 .3em; color:var(--taupe-deep); }
.about-video .video-caption{ color:var(--text-soft); margin:0 0 1.15rem; }
.video-frame{
  position:relative; aspect-ratio:16/9; overflow:hidden; border-radius:var(--radius);
  border:1px solid var(--border);
  background:
    radial-gradient(85% 95% at 50% 18%, rgba(255,251,244,.9), transparent 70%),
    linear-gradient(165deg, var(--surface-flat), var(--surface-flat-2));
}
/* warm poster behind the player: crescent and star, so the slot reads as an
   intentional frame before load or if an embed cannot render */
.video-frame::before{
  content:""; position:absolute; inset:0; pointer-events:none; opacity:.9;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M126 44a60 60 0 1 0 32 102A64 64 0 0 1 126 44Z' fill='%23C08A4E' opacity='.45'/%3E%3Cpath d='M136 66l2.2 7.4 7.4 2.2-7.4 2.2-2.2 7.4-2.2-7.4-7.4-2.2 7.4-2.2Z' fill='%23C08A4E' opacity='.65'/%3E%3C/svg%3E") center/92px no-repeat;
}
.video-frame iframe{ position:relative; z-index:1; width:100%; height:100%; border:0; display:block; }


/* Selected work: the featured study reads as the jewel; the pair below
   sits level, side by side, equal heights, so neither reads smaller */
@media (min-width:801px){
  .work-card:nth-child(2){ margin-block-end:0; }
  .work-card:nth-child(3){ margin-block-start:0; }
  .work-card:first-child .wc-text{ line-height:1.5; }
}

/* How I work sits quieter in the skyline, like the FAQ */
.section.how-bg h2{ font-size:clamp(1.9rem, 2.6vw, 2.4rem); }

/* Footer written-natively line */
.footer-native{ margin:1rem auto .15rem; color:var(--text-soft); font-size:1.0625rem; max-width:56ch; }

/* Reveal variant "line": the sentences rise once on scroll, then a warm light
   slides across and reveals them as it passes (mask sweep, resolves to solid
   text). A quiet glint repeats afterwards. RTL sweeps right to left. */
html.js [data-reveal="line"]{ opacity:1; transform:none; overflow:hidden; position:relative; }
html.js [data-reveal="line"] > span{
  display:inline-block; opacity:0; transform:translateY(1.2em);
  transition:opacity .55s var(--ease-out), transform .55s var(--ease-out);
  -webkit-mask-image:linear-gradient(100deg, #000 42%, rgba(0,0,0,0) 58%);
          mask-image:linear-gradient(100deg, #000 42%, rgba(0,0,0,0) 58%);
  -webkit-mask-size:280% 100%; mask-size:280% 100%;
  -webkit-mask-position:0% 0; mask-position:0% 0;   /* resting: fully revealed */
}
html.js [data-reveal="line"].is-in > span{
  opacity:1; transform:none;
  animation:ymLineMask 1.7s var(--ease-out) .1s both;
}
@keyframes ymLineMask{ from{ -webkit-mask-position:100% 0; mask-position:100% 0; } to{ -webkit-mask-position:0% 0; mask-position:0% 0; } }
html.js[dir="rtl"] [data-reveal="line"] > span{
  -webkit-mask-image:linear-gradient(260deg, #000 42%, rgba(0,0,0,0) 58%);
          mask-image:linear-gradient(260deg, #000 42%, rgba(0,0,0,0) 58%);
  -webkit-mask-position:100% 0; mask-position:100% 0;
}
html.js[dir="rtl"] [data-reveal="line"].is-in > span{ animation-name:ymLineMaskRtl; }
@keyframes ymLineMaskRtl{ from{ -webkit-mask-position:0% 0; mask-position:0% 0; } to{ -webkit-mask-position:100% 0; mask-position:100% 0; } }
html.js [data-reveal="line"]::after{
  content:""; position:absolute; inset:0; pointer-events:none; opacity:0;
  background:linear-gradient(100deg, transparent 34%, rgba(255,247,238,.95) 46%, rgba(212,176,92,.4) 51%, transparent 64%);
  transform:translateX(-101%);
}
html.js [data-reveal="line"].is-in::after{ animation:ymLineGlint 5.6s ease-in-out .15s infinite; }
html.js[dir="rtl"] [data-reveal="line"].is-in::after{ animation-name:ymLineGlintRtl; }
@keyframes ymLineGlint{ 0%{ transform:translateX(-101%); opacity:0; } 5%{ opacity:1; } 28%{ transform:translateX(101%); opacity:1; } 32%{ transform:translateX(101%); opacity:0; } 100%{ transform:translateX(101%); opacity:0; } }
@keyframes ymLineGlintRtl{ 0%{ transform:translateX(101%); opacity:0; } 5%{ opacity:1; } 28%{ transform:translateX(-101%); opacity:1; } 32%{ transform:translateX(-101%); opacity:0; } 100%{ transform:translateX(-101%); opacity:0; } }

/* Send button shimmer: thin diagonal band, one quick pass, long rest (4.6s cycle) */
.btn-send::after{
  width:12%;
  background:linear-gradient(105deg, transparent, rgba(255,247,238,.34), transparent);
  transform:translateX(-140%) skewX(-18deg);
  animation:ymShimmer 1.8s linear infinite;
}
@keyframes ymShimmer{
  0%{ transform:translateX(-140%) skewX(-18deg); }
  34%{ transform:translateX(860%) skewX(-18deg); }
  100%{ transform:translateX(860%) skewX(-18deg); }
}
@keyframes ymShimmerRtl{
  0%{ transform:translateX(860%) skewX(18deg); }
  34%{ transform:translateX(-140%) skewX(18deg); }
  100%{ transform:translateX(-140%) skewX(18deg); }
}
[dir="rtl"] .btn-send::after{ transform:translateX(860%) skewX(18deg); animation-name:ymShimmerRtl; }

/* Get-in-touch button: a thin caramel light tracing the pill border, one slow
   pass then a rest. Degrades to no shimmer where mask support is missing. */
@property --ym-spin{ syntax:'<angle>'; inherits:false; initial-value:0deg; }
@supports ((mask-composite:exclude) or (-webkit-mask-composite:xor)){
  .btn-spark{ position:relative; }
  .btn-spark::after{
    content:""; position:absolute; inset:-2.5px; border-radius:999px; padding:2.5px;
    background:conic-gradient(from var(--ym-spin) at 50% 50%,
      rgba(255,247,238,.95) 0%,
      rgba(192,138,78,.45) 5%,
      transparent 11%,
      transparent 89%,
      rgba(192,138,78,.45) 95%,
      rgba(255,247,238,.95) 100%);
    -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite:xor;
    mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite:exclude;
    opacity:.9; pointer-events:none;
    animation:ymSpin 2.3s linear infinite;
  }
}
/* Side-to-side border light: rests on the LEFT side midpoint, brisk pass over the
   top to the RIGHT side midpoint, short hold, brisk return under the bottom, hold,
   loop. Waypoints are perimeter-proportional so the glide speed stays even.
   270deg = left midpoint, 450deg (=90) = right midpoint. RTL mirrors. */
@keyframes ymSpin{
  0%{ --ym-spin:270deg; }
  5%{ --ym-spin:283deg; }
  27%{ --ym-spin:437deg; }
  32%{ --ym-spin:450deg; }
  50%{ --ym-spin:450deg; }
  55%{ --ym-spin:463deg; }
  77%{ --ym-spin:617deg; }
  82%{ --ym-spin:630deg; }
  100%{ --ym-spin:630deg; }
}
@keyframes ymSpinRtl{
  0%{ --ym-spin:90deg; }
  5%{ --ym-spin:77deg; }
  27%{ --ym-spin:-77deg; }
  32%{ --ym-spin:-90deg; }
  50%{ --ym-spin:-90deg; }
  55%{ --ym-spin:-103deg; }
  77%{ --ym-spin:-257deg; }
  82%{ --ym-spin:-270deg; }
  100%{ --ym-spin:-270deg; }
}
[dir="rtl"] .btn-spark::after{ animation-name:ymSpinRtl; }

/* Reduced motion: decorative bands vanish, the line reveal shows plainly */
@media (prefers-reduced-motion: reduce){
  .btn-send::after, .btn-spark::after{ content:none; }
  html.js [data-reveal="line"] > span{ opacity:1; transform:none; }
}

/* FAQ closing question: full width under both columns, centered */
.faq-cols > .qa-closing{ grid-column:1 / -1; width:min(680px, 100%); margin:-1.1rem auto 0; }

/* Contact: email and phone as one aligned block, centered as a unit */
.contact-rows{ align-items:flex-start; width:fit-content; margin-inline:auto; margin-bottom:1.7rem; gap:.8rem; }

/* footer native line: the bound closing sentence fits one line on small phones */
@media (max-width:400px){ .footer-native{ font-size:.95rem; } }
/* Slogan line: a soft warm light passes over the words after the bubble reveals,
   then repeats gently. Overlay only, text stays solid; mirrors in RTL. */
.slogan-line{ position:relative; overflow:hidden; padding:.1em .15em; margin:-.1em -.15em; }
html.js .slogan-line::after{
  content:""; position:absolute; inset:0; pointer-events:none; opacity:0;
  background:linear-gradient(100deg, transparent 36%, rgba(255,247,238,.8) 47%, rgba(212,176,92,.3) 51%, transparent 62%);
  transform:translateX(-101%);
}
html.js .slogan-bubble.is-in .slogan-line::after{ animation:ymLineGlint 7.2s ease-in-out 1.1s infinite; }
html.js[dir="rtl"] .slogan-bubble.is-in .slogan-line::after{ animation-name:ymLineGlintRtl; }
@media (prefers-reduced-motion: reduce){
  html.js .slogan-line::after{ content:none; }
}