/* BAYTIMOD — page sections: services, projects, workshop, questions, contact, footer.
   Unlayered on purpose: it sits on top of the layered base in site.css. Logical properties throughout, so
   the Arabic (right-to-left) page mirrors without extra rules. */

:root {
  --gap-section: clamp(64px, 7.5vw, 120px);
  --step-lead2: clamp(1.125rem, 1.05rem + 0.45vw, 1.375rem);
  --line: rgb(255 254 250 / 0.16);
  interpolate-size: allow-keywords;
}
html { scroll-padding-top: 72px; }
body { line-height: 1.6; }
.wrap { padding-inline: var(--margin); }
p { max-width: 60ch; }

/* ===== navigation: fixed, solid once the page has moved ===== */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 40; padding-block: 10px; transition: background-color 240ms var(--ease-out); }
.nav.is-stuck { background: var(--onyx); }
.nav__brand { width: 36px; }
.nav ul:not(.nav__lang) { gap: clamp(12px, 1.7vw, 28px); }
@media (min-width: 900px) { .montage__stick { padding-top: 64px; } }

/* ===== hero ===== */
.hero__media::after { content: ""; position: absolute; inset: 0; background: rgb(39 42 49 / 0.38); }
.hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 180px; z-index: -1; background: linear-gradient(to bottom, rgb(39 42 49 / 0.78), transparent); /* taste-skill-ignore: legibility scrim */ pointer-events: none; }
.hero__scrim { height: 62%; background: linear-gradient(to top, rgb(39 42 49 / 0.92), rgb(39 42 49 / 0.55) 55%, transparent); /* taste-skill-ignore: legibility scrim */ mask-image: none; -webkit-mask-image: none; }
.hero__bottom { grid-row: 2; }
.hero h1 { max-width: 26ch; }
.hero__actions { margin-top: 24px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__row { display: block; }
.btn--line { background: transparent; color: var(--half-white); box-shadow: inset 0 0 0 2px var(--half-white); }
/* the base colour rule above is unlayered, so the hover ink must be set here too, or the text stays white on the white fill */
@media (hover: hover) and (pointer: fine) { .btn--line:hover { box-shadow: var(--btn-glow); color: var(--btn-hover-ink); } }
.btn--line:focus-visible { color: var(--btn-hover-ink); }
.hero__row .btn { animation: none; }
.hero__actions { animation: rise 800ms var(--ease-out) 260ms both; }
.hero__name { max-width: min(100%, 1100px); }
/* the wordmark lifts away over the title and buttons, never under them; clicks still reach the buttons */
.hero__row { position: relative; z-index: 1; }
.hero__name { position: relative; z-index: 2; pointer-events: none; }

/* ===== shared section head: title left, plain-language lead right ===== */
.sec-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 1.6vw, 24px); row-gap: 16px; align-items: end; margin-bottom: clamp(36px, 5vw, 72px); }
.sec-head h2 { grid-column: 1 / span 6; }
.sec-lead { grid-column: 8 / -1; font-size: var(--step-lead2); line-height: 1.5; color: var(--muted); }
.more { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 10px; font-weight: 600; text-decoration: none; color: inherit; border-bottom: 3px solid var(--torch); padding-block: 4px 2px; align-self: start; justify-self: start; transition: gap 200ms var(--ease-out); }
.more svg { width: 1em; height: 1em; }
@media (hover: hover) and (pointer: fine) { .more:hover { gap: 16px; } }
[dir="rtl"] .more svg { transform: scaleX(-1); }

/* ===== services: four photo cards, text under the picture ===== */
.services { padding-block: var(--gap-section); }
.svc { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 1.6vw, 24px); row-gap: clamp(40px, 5vw, 72px); align-items: start; }
.card { display: grid; align-content: start; }
.card--a { grid-column: 1 / span 7; }
.card--b { grid-column: 8 / -1; margin-top: clamp(0px, 6vw, 96px); }
.card--c { grid-column: 1 / span 5; }
.card--d { grid-column: 6 / -1; margin-top: clamp(0px, 4vw, 64px); }
.card__img, .proj__img { overflow: hidden; background: var(--surface); }
.card__img img, .proj__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.card--a .card__img { aspect-ratio: 16 / 10; }
.card--b .card__img { aspect-ratio: 4 / 3; }
.card--c .card__img { aspect-ratio: 4 / 3; }
.card--d .card__img { aspect-ratio: 16 / 10; }
@media (hover: hover) and (pointer: fine) { .card:hover .card__img img, .proj:hover .proj__img img { transform: scale(1.04); } }
.card h3, .proj h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.1; text-transform: none; margin: 20px 0 8px; }
.card p { color: var(--muted); max-width: 46ch; }
.svc__note { margin-top: clamp(40px, 5vw, 64px); font-size: var(--step-lead2); max-width: 52ch; }

/* ===== projects ===== */
.work { padding-block: var(--gap-section); }
.projs { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 1.6vw, 24px); row-gap: clamp(40px, 5vw, 72px); align-items: start; }
.proj { display: grid; align-content: start; }
.proj--1 { grid-column: 1 / span 7; }
.proj--1 .proj__img { aspect-ratio: 16 / 10; }
.proj--2 { grid-column: 8 / -1; margin-top: clamp(0px, 8vw, 120px); }
.proj--2 .proj__img { aspect-ratio: 4 / 5; }
.proj--3 { grid-column: 1 / span 4; }
.proj--4 { grid-column: 5 / span 4; margin-top: clamp(0px, 3vw, 48px); }
.proj--5 { grid-column: 9 / -1; }
.proj--3 .proj__img, .proj--4 .proj__img, .proj--5 .proj__img { aspect-ratio: 4 / 5; }
.proj--6 { grid-column: 1 / -1; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); column-gap: clamp(12px, 1.6vw, 24px); align-items: end; }
.proj--6 .proj__img { aspect-ratio: 16 / 9; }
.proj--6 .proj__body { padding-block-end: 4px; }
.proj__meta { margin-top: 0; margin-bottom: 8px; font-size: var(--step-small); font-weight: 500; color: var(--muted); }
.proj h3 { margin-top: 18px; margin-bottom: 4px; }
.proj__body > p:not(.proj__meta) { color: var(--ink); max-width: 46ch; }
.proj__facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.proj__facts li { padding: 6px 12px; background: var(--surface); font-weight: 500; font-size: var(--step-small); border-inline-start: 3px solid var(--torch); }

/* ===== workshop ===== */
.atelier { background: var(--surface); padding-block: var(--gap-section); }
.atelier__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 1.6vw, 24px); align-items: start; }
.atelier__pics { grid-column: 1 / span 6; position: relative; padding-block-end: clamp(32px, 6vw, 96px); }
.atelier__big { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.atelier__small { position: absolute; inset-inline-end: -12%; bottom: 0; width: 46%; aspect-ratio: 4 / 3; object-fit: cover; border: 8px solid var(--surface); }
.atelier__body { grid-column: 8 / -1; }
.atelier__body h2 { margin-bottom: 20px; }
.atelier__body .sec-lead { grid-column: auto; max-width: 46ch; }
.figures { margin-top: clamp(28px, 3vw, 44px); display: grid; }
.figures > div { display: grid; grid-template-columns: minmax(120px, 0.42fr) 1fr; column-gap: 20px; align-items: baseline; padding-block: 18px; border-top: 2px solid var(--line); }
.figures > div:last-child { border-bottom: 2px solid var(--line); }
.figures dt { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem); line-height: 1; font-variant-numeric: tabular-nums; }
.figures dd { color: var(--ink); }

/* ===== questions: sticky intro left, accordion right ===== */
.faq { padding-block: var(--gap-section); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 1.6vw, 24px); align-items: start; }
.faq__intro { grid-column: 1 / span 4; position: sticky; top: 96px; display: grid; gap: 16px; justify-items: start; }
.faq__intro p { color: var(--muted); font-size: var(--step-lead2); line-height: 1.5; }
.faq__list { grid-column: 6 / -1; border-bottom: 2px solid var(--line); }
.faq details { border-top: 2px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; padding-block: 18px; cursor: pointer; list-style: none; font-weight: 600; font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem); line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 24px; height: 24px; background: linear-gradient(var(--torch) 0 0) center / 100% 3px no-repeat, linear-gradient(var(--torch) 0 0) center / 3px 100% no-repeat; /* taste-skill-ignore: plus icon */ transition: transform 240ms var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-block-end: 26px; max-width: 54ch; }
@supports (interpolate-size: allow-keywords) {
  .faq details::details-content { block-size: 0; overflow: clip; transition: block-size 300ms var(--ease-out), content-visibility 300ms allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }
}
.faq summary:focus-visible { outline-offset: -3px; }

/* ===== contact: a red panel and a quiet column ===== */
.contact { padding-block: clamp(24px, 4vw, 64px) 0; }
.contact__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 1.6vw, 24px); align-items: stretch; }
.contact__cta { grid-column: 1 / span 7; position: relative; overflow: clip; padding: clamp(28px, 4.5vw, 72px); padding-inline-end: calc(22% + 24px); display: grid; gap: 22px; align-content: end; min-height: clamp(380px, 38vw, 560px); color: #17181c; }
.contact__cta h2 { font-size: clamp(2.25rem, 1.3rem + 3.4vw, 4.5rem); line-height: 1; position: relative; z-index: 1; }
.contact__cta p { font-size: var(--step-lead2); font-weight: 500; line-height: 1.45; max-width: 36ch; position: relative; z-index: 1; }
.contact__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; position: relative; z-index: 1; }
.contact__actions .btn { min-height: 60px; }
.mail { font-weight: 600; color: inherit; text-underline-offset: 4px; text-decoration-thickness: 2px; padding-block: 12px; }
.contact__pattern { position: absolute; inset-block: 0; inset-inline-end: 0; width: 20%; overflow: hidden; pointer-events: none; opacity: 0.9; }
.contact__pattern::before { content: ""; position: absolute; inset: -60px; background-image: url("../assets/brand/pattern.svg"); background-size: 52px 58px; filter: brightness(0) saturate(100%) invert(14%) sepia(12%) saturate(560%) hue-rotate(185deg) brightness(95%); animation: conveyor 2.6s linear infinite; }
.contact__side { grid-column: 8 / -1; display: grid; grid-template-rows: 1fr auto; background: var(--surface); }
.contact__side img { width: 100%; height: 100%; min-height: 180px; object-fit: cover; }
.contact__info { padding: clamp(20px, 2.4vw, 36px); display: grid; gap: 18px; }
.contact__info > div { display: grid; grid-template-columns: minmax(96px, 0.38fr) 1fr; column-gap: 16px; align-items: baseline; }
.contact__info dt { font-size: var(--step-small); color: var(--muted); font-weight: 500; }
.contact__info dd { font-weight: 500; }

/* ===== footer: dark, compact, asymmetric ===== */
.footer { display: block; min-height: 0; padding: clamp(40px, 5vw, 72px) 0 24px; background: color-mix(in oklab, var(--onyx) 72%, #000); color: var(--half-white); border-top: 1px solid color-mix(in oklab, var(--ardesia) 60%, transparent); }
.footer__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 1.6vw, 24px); row-gap: 32px; align-items: start; }
.footer__brand { grid-column: 1 / span 5; display: grid; gap: 14px; }
.footer__name { width: min(100%, 380px); color: var(--torch); }
.footer__brand p { color: var(--muted); font-size: var(--step-small); }
.footer__grid > ul { display: grid; gap: 2px; align-content: start; font-size: var(--step-small); }
.footer__grid > ul:nth-of-type(1) { grid-column: 9 / span 2; }
.footer__grid > ul:nth-of-type(2) { grid-column: 11 / -1; }
.footer__grid > ul:nth-of-type(3) { grid-column: 11 / -1; }
.footer__grid li:first-child { font-weight: 700; margin-bottom: 6px; }
.footer__grid a { text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; }
.footer__grid span { color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .footer__grid a:hover { color: var(--torch); text-decoration: underline; } }
.footer__tag { margin-top: clamp(32px, 4vw, 56px); font-size: var(--step-small); color: var(--muted); max-width: none; }
main { position: static; }
.footer { position: static; }

/* ===== phone and tablet ===== */
@media (max-width: 899px) {
  .nav { padding-block: 6px; }
  .nav.is-stuck, .nav:has(.nav__menu[aria-expanded="true"]) { background: var(--onyx); }
  .sec-head h2, .sec-lead { grid-column: 1 / -1; }
  .card--a, .card--b, .card--c, .card--d, .proj--1, .proj--2, .proj--3, .proj--4, .proj--5, .proj--6 { grid-column: 1 / -1; margin-top: 0; }
  .proj--2 .proj__img, .proj--3 .proj__img, .proj--4 .proj__img, .proj--5 .proj__img { aspect-ratio: 4 / 3; }
  .proj--6 { grid-template-columns: 1fr; }
  .proj--6 .proj__img { aspect-ratio: 16 / 9; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1 1 100%; width: 100%; }
  .atelier__pics, .atelier__body { grid-column: 1 / -1; }
  .atelier__pics { margin-bottom: 24px; padding-block-end: 12%; }
  .atelier__small { inset-inline-end: -4px; width: 52%; border-width: 6px; }
  .atelier__body { margin-top: 24px; }
  .faq__intro, .faq__list { grid-column: 1 / -1; position: static; }
  .faq__intro { margin-bottom: 32px; }
  .contact__cta, .contact__side { grid-column: 1 / -1; }
  .contact__cta { min-height: 0; padding-top: 120px; padding-inline-end: clamp(28px, 4.5vw, 72px); }
  .contact__pattern { inset-block-end: auto; inset-inline: 0; width: auto; height: 72px; }
  .contact__side { margin-top: 12px; }
  .contact__info > div { grid-template-columns: 1fr; row-gap: 2px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__grid > ul:nth-of-type(n) { grid-column: span 6; }
  .footer__grid > ul:nth-of-type(3) { grid-column: 1 / -1; }
}
@media (min-width: 900px) and (max-width: 1099px) { .nav ul:not(.nav__lang) a { font-size: 0.8125rem; } }

@media (prefers-reduced-motion: reduce) {
  .hero__actions, .contact__pattern::before { animation: none; }
  .card__img img, .proj__img img { transition: none; }
  .faq details::details-content { transition: none; }
}

.atelier__big, .atelier__small { height: auto; }

/* ===== configurator: drawing and figures on the left, sliders on the right ===== */
.config { padding-block: var(--gap-section); }
.on-field .sec-lead { color: var(--field-muted); }
.on-field .sec-head { margin-bottom: clamp(28px, 4vw, 56px); }
.config__draw { margin-top: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 1.6vw, 24px); align-items: start; }
.config__left { grid-column: 1 / span 8; display: grid; gap: 16px; }
.config .controls { grid-column: 9 / -1; align-content: start; gap: 24px; }
.config .results { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.config .results div { padding: 14px 16px; }
@media (max-width: 899px) {
  .config__left, .config .controls { grid-column: 1 / -1; }
  .config .controls { margin-top: 24px; }
  .config .results { grid-template-columns: 1fr 1fr; }
}

/* ===== soft colour changes between sections: grey, white and onyx blend over the section padding ===== */
:root { --blend: calc(var(--gap-section) * 0.9); }
.atelier { background: linear-gradient(to bottom, var(--onyx), var(--surface) var(--blend), var(--surface) calc(100% - var(--blend)), var(--onyx)); }
.config.on-field { background: linear-gradient(to bottom, var(--onyx), var(--field) var(--blend), var(--field) calc(100% - var(--blend)), var(--onyx)); }

/* ===== salons: SINA3A spotlight (glowing badge, glass pill, big centred title), past fairs below ===== */
.salons { padding-block: var(--gap-section); position: relative; overflow: clip; }
.spot { position: relative; display: grid; justify-items: center; text-align: center; gap: 22px; padding-block: clamp(24px, 4vw, 64px) clamp(64px, 8vw, 128px); }
.spot::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 0; width: min(1100px, 120vw); aspect-ratio: 1.6; translate: -50% -18%; background: radial-gradient(closest-side, color-mix(in srgb, var(--torch) 22%, transparent), color-mix(in srgb, var(--torch) 6%, transparent) 55%, transparent); pointer-events: none; }
.spot__orb { position: relative; width: clamp(64px, 6vw, 88px); display: grid; place-items: center; margin-bottom: clamp(20px, 3vw, 44px); animation: orb-float 5s ease-in-out infinite; }
/* the bare BAYTIMOD mark, lit red from behind */
.spot__orb svg { width: 100%; height: auto; color: var(--half-white); animation: orb-glow 3.2s ease-in-out infinite;
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--torch) 85%, transparent)) drop-shadow(0 0 28px color-mix(in srgb, var(--torch) 55%, transparent)); }
@keyframes orb-float { 50% { translate: 0 -8px; } }
@keyframes orb-glow { 50% { filter: drop-shadow(0 0 14px var(--torch)) drop-shadow(0 0 44px color-mix(in srgb, var(--torch) 70%, transparent)); } }
@media (prefers-reduced-motion: reduce) { .spot__orb, .spot__orb svg { animation: none; } }
.spot__pill { position: relative; max-width: none; font-family: var(--font-display); font-weight: 700; font-size: var(--step-small); letter-spacing: 0.16em; text-transform: uppercase; padding: 8px 16px; border-radius: 8px; color: var(--half-white); background: linear-gradient(180deg, rgb(255 255 255 / 0.14), rgb(255 255 255 / 0.04)); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.32); backdrop-filter: blur(6px); }
.spot__pill::after { content: ""; position: absolute; left: 30%; right: 30%; bottom: -1px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--half-white), transparent); }
.spot__title { font-size: clamp(2.5rem, 1.4rem + 4.6vw, 6rem); max-width: 18ch; }
.spot__lead { font-size: var(--step-lead); line-height: 1.5; color: var(--muted); max-width: 40ch; }
.spot .btn { margin-top: 12px; }

.past { display: grid; }
.salon--past { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 1.6vw, 24px); align-items: center; padding-top: clamp(40px, 5vw, 72px); border-top: 1px solid color-mix(in oklab, var(--ardesia) 70%, transparent); }
.salon__img { grid-column: 1 / span 5; overflow: hidden; background: var(--surface); aspect-ratio: 16 / 10; }
.salon__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .salon:hover .salon__img img { transform: scale(1.04); } }
.salon__body { grid-column: 7 / -1; display: grid; justify-items: start; gap: 8px; }
.salon__tag { font-family: var(--font-display); font-weight: 700; font-size: var(--step-small); text-transform: uppercase; letter-spacing: 0.08em; padding: 6px 12px; color: var(--muted); box-shadow: inset 0 0 0 2px var(--ardesia); }
.salon h3 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem); line-height: 1; margin-top: 8px; }
.salon__meta { font-weight: 600; color: var(--half-white); }
.salon__body > p:last-child { color: var(--muted); max-width: 46ch; }
@media (max-width: 860px) {
  .salon__img, .salon__body { grid-column: 1 / -1; }
  .salon__body { margin-top: 20px; }
  .spot .btn { width: 100%; }
}
