/* Ansora Kitchens: 1:1 port of the ansorakitchens.ae Bricks + ACSS 3.3.8 + Frames build.
   Root 62.5% (1rem = 10px) as ACSS; fluid tokens interpolate 320 -> 1440px like ACSS. */
@layer reset, tokens, base, layout, components, sections, motion;

@font-face { font-family: "Khula"; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/Khula-300.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, 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: "Khula"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/Khula-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, 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: "Khula"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/Khula-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------------------------------------------------------------- reset */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure, dl, dd, address { margin: 0; }
  ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
  [hidden] { display: none !important; }
  img, svg { display: block; max-width: 100%; }
  img { height: auto; }
  button, input, textarea, select { font: inherit; color: inherit; }
  button { cursor: pointer; background: none; border: 0; padding: 0; }
  address { font-style: normal; }
  dialog { color: inherit; }
}

/* ---------------------------------------------------------------- tokens */
@layer tokens {
  :root {
    --root-font-size: 62.5%;
    /* colours (ACSS palette of the live site) */
    --base: #292929;
    --base-ultra-dark: #1a1a1a;
    --base-dark: #404040;
    --base-light: #d9d9d9;
    --primary: #a28663;
    --primary-hover: #cfc1af;
    --primary-semi-light: #bca88f;
    --primary-light: #e2dacf;
    --primary-ultra-light: #f5f3ef;
    --primary-dark: #504130;
    --primary-ultra-dark: #201a13;
    --primary-trans-10: rgb(162 134 99 / .1);
    --primary-light-trans-40: rgb(226 218 207 / .4);
    --base-light-trans-50: rgb(217 217 217 / .5);
    --text-light: var(--base-light);
    --text-light-muted: rgb(217 217 217 / .6);
    --text-dark-muted: rgb(41 41 41 / .8);
    --black-trans-10: rgb(0 0 0 / .1);
    --neutral-trans-20: rgb(0 0 0 / .2);
    --shadow-group: 0 0 40px 0 rgb(26 26 26 / .2);
    --danger: #f0a493;
    --whatsapp: #2db742;
    --body-bg-color: var(--base);
    --bg-ultra-dark: var(--base-ultra-dark);

    /* type (min at 320px, max at 1440px) */
    --font-heading: "Khula", sans-serif;
    --font-body: -apple-system, system-ui, "Segoe UI", roboto, helvetica, arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    --text-xs: clamp(1.3rem, 0.0893vw + 1.2714rem, 1.4rem);
    --text-s: clamp(1.4rem, 0.1786vw + 1.3429rem, 1.6rem);
    --text-m: clamp(1.6rem, 0.1786vw + 1.5429rem, 1.8rem);
    --text-l: clamp(1.92rem, 0.4286vw + 1.7829rem, 2.4rem);
    --text-xl: clamp(2.3rem, 0.8036vw + 2.0429rem, 3.2rem);
    --text-xxl: clamp(2.76rem, 1.3393vw + 2.3314rem, 4.26rem);
    --h1: clamp(3.46rem, 3.9821vw + 2.1857rem, 7.92rem);
    --h2: clamp(2.88rem, 2.4286vw + 2.1029rem, 5.6rem);
    --h3: clamp(2.4rem, 1.3929vw + 1.9543rem, 3.96rem);
    --h4: clamp(2rem, 0.7143vw + 1.7714rem, 2.8rem);
    --heading-line-height: calc(4px + 2ex);
    --text-line-height: calc(6px + 2ex);

    /* space */
    --space-xs: 1.33rem;
    --space-s: clamp(1.8rem, 0.1786vw + 1.7429rem, 2rem);
    --space-m: clamp(2.4rem, 0.5357vw + 2.2286rem, 3rem);
    --space-l: clamp(3.2rem, 1.1607vw + 2.8286rem, 4.5rem);
    --space-xl: clamp(4.26rem, 2.2232vw + 3.5486rem, 6.75rem);
    --section-space-xs: clamp(2.7rem, 1.1607vw + 2.3286rem, 4rem);
    --section-space-m: clamp(4.8rem, 3.75vw + 3.6rem, 9rem);
    --gutter: clamp(1.6rem, 3.9286vw + 0.3429rem, 6rem);
    --content-gap: var(--space-m);
    --container-gap: var(--space-xl);
    --grid-gap: var(--space-m);

    /* layout */
    --content-width: 144rem;
    --content-width-safe: min(var(--content-width), 100% - var(--gutter) * 2);
    --width-l: calc(var(--content-width) * .6);
    --width-m: calc(var(--content-width) * .4);
    --width-s: calc(var(--content-width) * .2);
    --logo-width: clamp(13rem, 5.736vw + 11.164rem, 19rem);
    /* live header height (JS keeps it exact); this is the first-paint estimate */
    --header-height: clamp(7rem, 1.8304vw + 6.4143rem, 9.05rem);
    --sticky-offset: calc(var(--header-height) + var(--section-space-m));
    --transition: background-color .3s ease-in-out, color .3s ease-in-out, border-color .3s ease-in-out;
    --ease-sheet: cubic-bezier(.77, 0, .175, 1);
    --ease-menu: cubic-bezier(.79, .14, .15, .86);
    --focus: var(--primary-hover);
  }
}

/* ---------------------------------------------------------------- base */
@layer base {
  html {
    font-size: var(--root-font-size);
    color-scheme: dark;
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    background: var(--body-bg-color);
  }
  html.lenis, html.lenis body { height: auto; }
  html.lenis { scroll-behavior: auto; }
  .lenis.lenis-stopped { overflow: clip; }
  html.still { scroll-behavior: auto; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
  html.is-locked { overflow: hidden; }

  body {
    min-height: 100dvh;
    background: var(--body-bg-color);
    color: var(--text-light-muted);
    font-family: var(--font-body);
    font-size: var(--text-m);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
  }
  /* ACSS sets the ex-based line height per element: on body alone it would resolve once at 18px and inherit as px */
  :where(body, body *) { line-height: var(--text-line-height); }
  h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 300;
    line-height: var(--heading-line-height);
    color: var(--text-light);
    text-wrap: balance;
    letter-spacing: 0;
  }
  h1 { font-size: var(--h1); }
  h2 { font-size: var(--h2); }
  h3 { font-size: var(--h3); }
  h4 { font-size: var(--h4); }
  p, li, dd, figcaption { text-wrap: pretty; }
  :where(p, li, figcaption, blockquote):has(br) { text-wrap: wrap; }
  strong { font-weight: 500; }
  a { color: var(--primary); text-decoration: none; transition: var(--transition); }
  @media (hover: hover) { a:hover { color: var(--primary-hover); } }
  a[href^="tel:"], a[href^="mailto:"], .nw { white-space: nowrap; }
  :focus { outline: none; }
  :focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
  ::selection { background: var(--primary); color: var(--primary-ultra-dark); }

  .visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
  }
  .skip-link {
    position: absolute; z-index: 200; inset-block-start: var(--space-s); inset-inline-start: var(--gutter);
    padding: 1.2rem 1.8rem; background: var(--primary); color: var(--primary-ultra-dark);
    transform: translateY(-300%);
  }
  .skip-link:focus-visible { transform: none; outline-offset: 2px; }
  .sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
  main:focus { outline: none; }
}

/* ---------------------------------------------------------------- layout */
@layer layout {
  .content-grid {
    display: grid;
    grid-template-columns:
      [full-start] minmax(var(--gutter), 1fr)
      [content-start] min(var(--content-width), 100% - var(--gutter) * 2)
      [content-end] minmax(var(--gutter), 1fr) [full-end];
    row-gap: var(--container-gap);
    padding-block: var(--section-space-m);
  }
  .content-grid > * { grid-column: content; }
  section[id], footer[id] { scroll-margin-top: 0; }

  .bg-ultra-dark { background-color: var(--bg-ultra-dark); }
  .bg-pattern, .bg-pattern--alt { position: relative; z-index: 1; isolation: isolate; }
  .bg-pattern::before, .bg-pattern--alt::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image: radial-gradient(circle, var(--dot-color) 1.5px, transparent 1.5px);
    background-size: 2.5rem 2.5rem;
    opacity: var(--dot-opacity);
  }
  .bg-pattern::before { --dot-color: var(--base-ultra-dark); --dot-opacity: .7; }
  .bg-pattern--alt::before { --dot-color: var(--base-light-trans-50); --dot-opacity: .1; }
}

/* ---------------------------------------------------------------- components */
@layer components {
  /* buttons: ACSS btn (square, 0.1rem border, .75em 1.5em, line-height 1); the label span is cap-trimmed */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .75em;
    min-width: 15rem; min-height: 2.5em; padding: 0 1.5em;
    border: .1rem solid var(--btn-border, currentColor); border-radius: 0;
    background: var(--btn-bg, transparent); color: var(--btn-color, var(--primary));
    font-family: var(--font-body); font-size: var(--text-m); font-weight: 400; line-height: 1;
    text-align: center; text-decoration: none; white-space: nowrap;
    transition: var(--transition), box-shadow .2s ease-in-out;
  }
  .btn > span { display: inline-block; text-box: trim-both cap alphabetic; }
  .btn:focus-visible { outline: none; border-color: var(--primary-ultra-light); box-shadow: 0 0 0 1px var(--primary-ultra-light); }
  .btn--light { --btn-color: var(--primary-ultra-light); --btn-border: var(--primary-ultra-light); }
  .btn--outline { --btn-color: var(--primary); --btn-border: var(--primary); }
  .btn--primary { --btn-bg: var(--primary); --btn-border: var(--primary); --btn-color: var(--primary-ultra-dark); font-weight: 500; }
  .btn--block { display: flex; width: 100%; }
  @media (hover: hover) {
    .btn--light:hover { --btn-color: var(--primary); --btn-border: var(--primary); color: var(--primary); }
    .btn--outline:hover { --btn-color: var(--primary-ultra-light); --btn-border: var(--primary-hover); color: var(--primary-ultra-light); }
    .btn--primary:hover { --btn-bg: transparent; --btn-color: var(--primary-semi-light); --btn-border: var(--primary-semi-light); color: var(--primary-semi-light); }
  }

  /* footer CTA: Frames Icon Button Alpha, the arrow leaves right and re-enters from the left on hover */
  .icon-button__icon { width: 1.2em; height: 1.2em; flex: none; color: var(--primary); transition: color .3s ease-in-out; }
  @media (hover: hover) {
    .icon-button:hover .icon-button__icon { color: var(--primary-ultra-light); animation: iconMove .35s ease-out; }
  }
  @keyframes iconMove {
    0% { transform: translateX(0); }
    30% { opacity: 0; }
    31% { transform: translateX(1.25rem); }
    32% { transform: translateX(-1.25rem); }
    84% { opacity: 1; }
    100% { transform: translateX(0); }
  }

  /* ---------- header ---------- */
  .header {
    position: sticky; inset-block-start: 0; z-index: 50;
    background-color: transparent;
    transition: transform .4s ease, background-color .3s ease;
  }
  .header.is-scrolled { background-color: var(--body-bg-color); }
  .header.is-hidden { transform: translateY(-100%); }
  .header__container {
    display: flex; align-items: center; justify-content: space-between; gap: var(--space-m);
    padding: var(--space-s) var(--gutter);
    max-width: calc(var(--content-width) + var(--gutter) * 2); margin-inline: auto;
  }
  .header__logo { display: block; width: var(--logo-width); flex: none; }
  .header__logo-img { width: 100%; height: auto; }
  .header__nav { display: flex; align-items: center; gap: 2.9rem; }
  .header__menu { display: flex; align-items: center; gap: 2.9rem; }
  .header__link { display: block; font-size: var(--text-m); line-height: 1.2; color: var(--primary); padding-block: .6rem; }
  .header__toggle {
    display: none; width: 4.4rem; height: 4.4rem; margin-block: -.4rem; margin-inline-end: -.7rem;
    align-items: center; justify-content: center; color: var(--primary);
  }
  .header__toggle-icon { width: 3rem; height: 3rem; }
  @media (width <= 1100px) {
    .header__nav { display: none; }
    .header__toggle { display: inline-flex; }
  }

  /* ---------- mobile menu panel (<dialog>, slides in from the right) ---------- */
  .menu {
    position: fixed; inset: 0; width: 100%; max-width: none; height: 100dvh; max-height: none;
    margin: 0; padding: 0; border: 0;
    background: var(--body-bg-color);
    overflow: hidden; overflow: clip;
    transform: translateX(100%);
    transition: transform .2s var(--ease-menu);
  }
  .menu.is-open { transform: none; }
  .menu::backdrop { background: transparent; }
  .menu__inner { height: 100%; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; }
  .menu__top {
    display: flex; align-items: center; justify-content: space-between;
    padding: var(--space-s) var(--gutter);
    border-block-end: 1px solid var(--primary-trans-10);
  }
  .menu__logo { display: block; width: var(--logo-width); }
  .menu__close { display: inline-flex; align-items: center; justify-content: center; width: 4.4rem; height: 4.4rem; margin-inline-end: -1rem; color: var(--primary); }
  .menu__close-icon { width: 2.6rem; height: 2.6rem; }
  .menu__close:focus-visible { outline-offset: -2px; }
  .menu__item { border-block-end: 1px solid var(--primary-trans-10); }
  .menu__link { display: flex; align-items: center; min-height: 7.9rem; padding: 0 var(--gutter); font-size: var(--text-m); color: var(--primary); }
  .menu__link:focus-visible { outline-offset: -4px; }
  .menu__cta { padding: var(--space-xl) var(--gutter) var(--space-l); }

  /* ---------- "Start Your Project" bottom sheet (<dialog>) ---------- */
  .modal {
    position: fixed; inset: auto 0 0 0; width: 100%; max-width: none; max-height: 100dvh;
    margin: 0; padding: 0; border: 0;
    background: var(--bg-ultra-dark);
    overflow: hidden; overflow: clip;
    transform: translateY(100%);
    transition: transform .9s var(--ease-sheet);
  }
  .modal.is-open { transform: none; }
  .modal::backdrop { background: rgb(0 0 0 / .45); opacity: 0; transition: opacity .9s var(--ease-sheet); }
  .modal.is-open::backdrop { opacity: 1; }
  .modal__inner {
    max-height: 100dvh; overflow-y: auto; overscroll-behavior: contain;
    padding: var(--section-space-m) var(--gutter) var(--section-space-xs);
    display: flex; flex-direction: column; align-items: center; gap: var(--space-m);
  }
  .modal__grid {
    width: 100%; max-width: var(--content-width);
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch;
    gap: calc(var(--grid-gap) * 2);
  }
  .modal__content { display: flex; flex-direction: column; row-gap: var(--content-gap); }
  .modal__heading { font-size: var(--text-xxl); color: var(--primary-semi-light); text-wrap: pretty; }
  .modal__tel { color: inherit; }
  .modal__text { font-size: var(--text-m); }
  .modal__list { display: flex; flex-direction: column; row-gap: var(--content-gap); }
  .modal__list-item { display: flex; align-items: center; column-gap: 1em; line-height: 1.2; }
  .modal__list-icon { width: var(--text-l); height: var(--text-l); flex: none; color: var(--text-light-muted); }
  .modal__form-wrap { display: flex; flex-direction: column; justify-content: center; }
  .modal__close { display: inline-flex; align-items: center; justify-content: center; width: 4.4rem; height: 4.4rem; color: var(--primary); }
  .modal__close-icon { width: 3.2rem; height: 3.2rem; }
  @media (width <= 768px) {
    .modal { height: 100dvh; }
    .modal__inner { height: 100%; justify-content: safe flex-end; } /* safe: a sheet taller than a short screen stays scrollable from its top */
    .modal__grid { grid-template-columns: minmax(0, 1fr); }
    .modal__list { display: none; }
  }

  /* ---------- form (WS Form look: transparent fields, primary bottom line) ---------- */
  .form-start { display: flex; flex-direction: column; }
  .form-start__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  @media (width <= 768px) { .form-start__row { grid-template-columns: minmax(0, 1fr); } }
  .field { display: flex; flex-direction: column; min-width: 0; }
  .field__input {
    display: block; width: 100%;
    /* whole-pixel padding and an even-pixel line box: fractional fluid metrics moved the caps up to 1.2px off centre per width */
    padding: round(1.4em, 1px) 1.5em;
    border: 1px solid transparent; border-block-end: .1rem solid var(--primary); border-radius: 0;
    background: transparent; color: var(--text-light);
    font-family: var(--font-body); font-size: max(var(--text-m), 16px); line-height: round(1.4em, 2px);
    box-shadow: none; appearance: none;
    transition: background-color .2s ease, border-color .2s ease;
  }
  .field__input::placeholder { color: var(--primary-light-trans-40); opacity: 1; }
  .field__input--area { min-height: 14.6rem; resize: vertical; }
  .field__input:focus { outline: none; }
  .field__input:focus-visible, .field__input:focus { background: var(--neutral-trans-20); border-color: var(--primary-hover); }
  .field__input[aria-invalid="true"] { border-block-end-color: var(--danger); }
  .field__input[aria-invalid="true"]:focus { border-color: var(--danger); }
  .field__error { padding: .6rem 1.5em 0; font-size: var(--text-s); line-height: 1.3; color: var(--danger); }
  .form-start__submit { margin-block-start: .6rem; min-height: 2.45em; }
  .form-start__submit[aria-busy="true"] { opacity: .7; cursor: progress; }
  /* Turnstile appearance interaction-only (fleet rule, Sten 2026-11-11): no box and no reserved space for normal visitors;
     it opens in place (.is-interactive) only when Cloudflare needs the visitor. line-height/font-size 0 keep the inline
     iframe off a text baseline. */
  .cf-turnstile { line-height: 0; font-size: 0; }
  .cf-turnstile.is-interactive { margin-block-start: 1rem; min-block-size: 65px; }
  .form-error { margin-block-start: 1.2rem; color: var(--danger); font-size: var(--text-s); }
  .form-success { padding: 2rem 0; font-size: var(--text-l); color: var(--primary-semi-light); }
  .form-success:focus { outline: none; }
  .hp, .hp * { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

  /* ---------- sliders (Splide 4.1.4 + auto scroll, as live) ---------- */
  .gallery { grid-column: full; position: relative; }
  .gallery .splide__track { overflow: hidden; }
  .gallery__slide { height: 30vh; display: flex; align-items: center; justify-content: center; }
  .gallery__image { width: 100%; height: 100%; object-fit: cover; }
  .gallery--cnc .gallery__slide { width: auto; aspect-ratio: var(--ratio, .75); }
  .gallery--cnc .gallery__image { width: auto; height: 100%; }
  .gallery__arrows { position: absolute; inset: 50% 0 auto; z-index: 2; height: 0; pointer-events: none; }
  .gallery__arrow {
    position: absolute; inset-block-start: 0; translate: 0 -50%;
    display: inline-flex; align-items: center; justify-content: center;
    width: 4.4rem; height: 4.4rem; color: var(--primary); pointer-events: auto;
    transition: opacity .2s ease;
  }
  .gallery__arrow.splide__arrow--prev { inset-inline-start: calc(var(--space-xs) - 1rem); }
  .gallery__arrow.splide__arrow--next { inset-inline-end: calc(var(--space-xs) - 1rem); }
  .gallery__arrow:focus-visible { outline-offset: -4px; }
  .gallery__arrow-icon { width: var(--space-l); height: var(--space-l); max-width: 3.2rem; max-height: 3.2rem; }
  @media (hover: hover) { .gallery__arrow:hover { opacity: .7; } }
  .gallery__arrow:disabled { opacity: .3; cursor: default; }
  /* before Splide mounts (or without JS): a plain scrolling row */
  .splide:not(.is-initialized) { visibility: visible; }
  .splide:not(.is-initialized) .splide__list { display: flex; gap: var(--grid-gap); overflow-x: auto; scrollbar-width: none; }
  .gallery.splide:not(.is-initialized) .gallery__slide { flex: 0 0 calc((100% - 3 * var(--grid-gap)) / 4); }
  .gallery--cnc.splide:not(.is-initialized) .gallery__slide { flex: 0 0 auto; }
  .splide:not(.is-initialized) .splide__arrows { display: none; }

  /* ---------- WhatsApp chat button ---------- */
  .whatsapp {
    position: fixed; inset: auto 3rem 3rem auto; z-index: 40;
    display: flex; align-items: center; justify-content: center;
    width: 5.6rem; height: 5.6rem; border-radius: 50%;
    background: var(--whatsapp); color: #fff;
    box-shadow: 0 6px 8px 2px rgb(0 0 0 / .14);
    transition: transform .3s ease, box-shadow .3s ease;
  }
  .whatsapp__icon { width: 3rem; height: 3rem; }
  .whatsapp:focus-visible { outline: 2px solid var(--primary-ultra-light); outline-offset: 3px; }
  @media (hover: hover) { .whatsapp:hover { color: #fff; transform: scale(1.06); } }
}

/* ---------------------------------------------------------------- sections */
@layer sections {
  /* ---------- hero ---------- */
  .hero { row-gap: var(--container-gap); padding-block-end: 0; }
  .hero__intro { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; row-gap: var(--content-gap); }
  .hero__heading { font-size: clamp(3.5rem, 4.302vw + 2.123rem, 8rem); font-weight: 400; width: min(100%, calc(var(--width-l) * 1.1)); }
  .hero__list { width: calc(var(--width-m) * .6); max-width: 100%; align-self: flex-end; margin-block-end: .8em; font-size: var(--text-l); font-weight: 200; line-height: var(--text-line-height); }
  .hero__list li + li { margin-block-start: .5em; }
  .hero__media { grid-column: full; overflow: hidden; padding-inline: var(--gutter); }
  .hero__image {
    width: 100%; margin-block: -10%;
    aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 0%;
    will-change: transform;
  }
  @media (width <= 992px) { .hero__list { margin-block-end: 0; } }
  @media (width <= 768px) {
    .hero__list { align-self: flex-start; }
    .hero__media { padding-inline: 0; }
  }

  /* ---------- Expert Craftsmanship / CNC Works ---------- */
  .portfolio { row-gap: var(--container-gap); }
  .portfolio__inner { display: flex; flex-direction: column; row-gap: var(--content-gap); margin-block-end: auto; }
  .portfolio__inner > * { width: 60ch; max-width: 100%; }
  .portfolio__lede { font-size: var(--text-l); font-weight: 300; color: var(--text-light-muted); }
  .portfolio__inner .portfolio__lede { width: min(100%, calc(var(--width-l) * .9)); }
  @media (width <= 992px) { .portfolio { row-gap: calc(var(--container-gap) * 2); } }
  @media (width <= 768px) { .portfolio { row-gap: var(--container-gap); } }

  /* ---------- 540 stat (#about) ---------- */
  .stat { padding: var(--section-space-m) var(--gutter); }
  .stat__grid {
    max-width: var(--content-width); margin-inline: auto;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: var(--container-gap);
  }
  .stat__card { display: grid; place-items: center; }
  .stat__card > * { grid-area: 1 / 1; }
  /* decorative numeral: drawn as generated content so it is not a low-contrast text node (the label carries the number) */
  .stat__number { display: block; font-family: var(--font-body); font-size: 17rem; font-weight: 700; line-height: 1; opacity: .1; color: var(--text-light); }
  .stat__number::before { content: attr(data-number); }
  .stat__label {
    z-index: 1; font-family: var(--font-body); font-size: var(--h3); font-weight: 300; line-height: 1.2;
    text-align: center; color: var(--primary-semi-light);
  }
  .stat__text { display: flex; flex-direction: column; row-gap: 1em; }
  @media (width <= 480px) {
    .stat__grid { grid-template-columns: minmax(0, 1fr); }
    .stat__card { place-items: center start; }
    .stat__label { text-align: start; }
  }

  /* ---------- phrase ticker ---------- */
  .ticker { position: relative; z-index: 10; overflow: hidden; padding-block: var(--space-s); background: var(--bg-ultra-dark); }
  .ticker__item-wrapper { display: flex; justify-content: center; }
  .ticker__item { text-align: center; line-height: 1; color: var(--primary); font-size: calc(var(--text-m) * 1.2); white-space: nowrap; padding-block: .3rem; }
  .ticker .splide:not(.is-initialized) .splide__list, .ticker__slider:not(.is-initialized) .splide__list { justify-content: space-around; overflow: hidden; }

  /* ---------- Our Simple Process (#process) ---------- */
  .process { padding: var(--section-space-m) var(--gutter); }
  .process__grid {
    max-width: var(--content-width); margin-inline: auto;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(var(--grid-gap) * 3);
  }
  .process__sticky { position: sticky; inset-block-start: var(--sticky-offset); display: flex; flex-direction: column; row-gap: var(--content-gap); }
  .process__lede { font-size: var(--text-l); font-weight: 300; }
  .process__cards { display: flex; flex-direction: column; row-gap: var(--content-gap); margin: 0; }
  .process__card {
    position: sticky; inset-block-start: var(--sticky-offset);
    display: flex; flex-direction: column; row-gap: calc(var(--content-gap) / 2);
    padding: var(--space-l);
    background-color: var(--bg-ultra-dark);
    background-image: url("/uploads/ansora-process-texture-800.webp");
    background-blend-mode: multiply; background-repeat: no-repeat; background-size: cover;
  }
  .process__card-heading { display: flex; flex-direction: column; align-items: flex-start; row-gap: calc(var(--content-gap) / 2); color: var(--primary-semi-light); }
  .process__card-step {
    display: flex; align-items: center; justify-content: center;
    width: calc(2em + 2px); aspect-ratio: 1; border-radius: 50%;
    border: 1px solid var(--text-dark-muted); background: var(--black-trans-10);
    font-family: var(--font-body); font-size: var(--text-m); font-weight: 600; line-height: 1; color: var(--text-light-muted);
  }
  .process__card-step > span { text-box: trim-both cap alphabetic; }
  .process__card-text { color: var(--text-light-muted); }
  @media (width <= 992px) { .process__grid { grid-template-columns: minmax(0, 1fr); } }

  /* ---------- From Kitchens to Wardrobes + image group ---------- */
  .showcase { row-gap: var(--container-gap); }
  .showcase__intro { display: flex; flex-direction: column; align-items: center; text-align: center; row-gap: var(--content-gap); }
  .showcase__heading { width: 27ch; max-width: 100%; line-height: 1.1; color: var(--primary-semi-light); }
  .showcase__lede { width: var(--width-l); max-width: 100%; }
  @media (width <= 768px) {
    .showcase__intro { text-align: start; align-items: flex-start; }
    .showcase__heading { font-size: var(--h1); }
  }
  .image-group {
    grid-column: full; width: 100%;
    display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr);
    place-items: center;
  }
  .image-group__wrapper { width: 100%; grid-row-start: 1; overflow: hidden; }
  .image-group__wrapper:first-child { grid-column: 1 / 7; }
  .image-group__wrapper:nth-child(2) { grid-column: 4 / 10; z-index: 1; box-shadow: var(--shadow-group); }
  .image-group__wrapper:last-child { grid-column: 7 / -1; }
  .image-group__image { width: 100%; aspect-ratio: 6 / 4; object-fit: cover; }
  .image-group__wrapper:nth-child(2) .image-group__image { aspect-ratio: 6 / 4.5; }

  /* ---------- footer (#contact) ---------- */
  .footer { padding: var(--section-space-m) var(--gutter) var(--space-m); }
  .footer__container { max-width: var(--content-width); margin-inline: auto; display: flex; flex-direction: column; row-gap: var(--space-l); }
  .footer__top { display: flex; flex-direction: row; column-gap: var(--space-xl); row-gap: var(--space-xl); }
  .footer__menu { flex-shrink: 0; margin-inline-end: auto; }
  .footer__menu-list { display: flex; flex-direction: column; gap: var(--space-m); }
  .footer__menu-link { display: inline-block; font-size: var(--h4); line-height: 1.2; color: var(--text-light-muted); transition: none; }
  @media (hover: hover) { .footer__menu-link:hover { color: var(--primary-semi-light); } }
  .footer__description { display: flex; flex-direction: column; align-items: flex-start; row-gap: var(--space-l); max-width: var(--width-m); }
  .footer__heading { font-size: var(--text-xl); }
  .footer__info { display: flex; flex-direction: column; align-items: flex-end; row-gap: var(--space-m); max-width: var(--width-s); min-width: 0; }
  .footer__address { text-align: end; }
  .footer__contact-link { display: inline-flex; align-items: center; column-gap: var(--space-xs); color: var(--text-light-muted); }
  @media (hover: hover) { .footer__contact-link:hover { color: var(--primary-hover); } }
  .footer__contact-icon { width: 2rem; height: 2rem; flex: none; }
  .footer__bottom { display: flex; justify-content: space-between; align-items: center; row-gap: var(--space-s); }
  .footer__credit { font-size: var(--text-s); }
  @media (width <= 992px) {
    .footer__top { flex-wrap: wrap; column-gap: var(--space-l); }
    .footer__info { max-width: 100%; }
  }
  @media (width <= 768px) {
    .footer__top { flex-direction: column; flex-wrap: nowrap; }
    .footer__description { order: -1; }
    .footer__info { width: 100%; align-items: flex-start; }
    .footer__address { text-align: start; }
    .footer__bottom { flex-direction: column; align-items: flex-start; }
  }

  /* ---------- 404 ---------- */
  .notfound { min-height: 60vh; align-content: center; }
  .notfound__inner { display: flex; flex-direction: column; align-items: flex-start; row-gap: var(--content-gap); max-width: var(--width-l); }
  .notfound__code { font-family: var(--font-heading); font-size: var(--text-l); color: var(--primary); letter-spacing: .1em; }
  .notfound__heading { font-size: var(--h1); font-weight: 400; }
  .notfound__lede { font-size: var(--text-l); font-weight: 300; max-width: 60ch; }
  .notfound__actions { display: flex; flex-wrap: wrap; gap: var(--space-s); margin-block-start: var(--space-s); }
}

/* ---------------------------------------------------------------- motion */
@layer motion {
  /* reveal on enter (Bricks .animation-trigger + .animate): fade + 30px, 900ms ease-in-out, once */
  html.js:not(.still) [data-reveal]:not(.animate) { opacity: 0; }
  [data-reveal="ltr"] { --translate: -30px, 0, 0; }
  [data-reveal="rtl"] { --translate: 30px, 0, 0; }
  [data-reveal="ttb"] { --translate: 0, -30px, 0; }
  [data-reveal="btt"] { --translate: 0, 30px, 0; }
  .animate { animation: fadeAnimation 900ms ease-in-out both; }
  @keyframes fadeAnimation {
    from { opacity: 0; transform: translate3d(var(--translate)); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
  }
  html.still *, html.still *::before, html.still *::after { animation: none !important; transition: none !important; }
  @media (prefers-reduced-motion: reduce) {
    html.js [data-reveal]:not(.animate) { opacity: 1; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .hero__image { transform: none !important; }
  }
}
