/* ==========================================================================
   Azzara Atelier — Home
   Built from AZZARA_GUIDELINE_V01 (27 Aug): five-colour palette, sans + Bodoni
   type roles, the flowing wave-band pattern and the arch shape.
   Roc Grotesk is substituted by Archivo (wide, thin cuts) as requested.
   ========================================================================== */

:root {
  /* Brand palette — guideline p.9 */
  --taupe: #a4997f;
  --porcelain: #f8f6ef;
  --sandstone: #d9d0c0;
  --earth: #6e6658;
  --charcoal: #37342e;

  --line: rgba(55, 52, 46, .16);
  --line-strong: rgba(55, 52, 46, .3);
  --line-light: rgba(248, 246, 239, .16);

  --font-sans: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-serif: "Bodoni Moda", "Bodoni 72", Didot, "Times New Roman", serif;
  --font-ar: "Almarai", "Geeza Pro", Tahoma, sans-serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  --gutter: clamp(1.25rem, 4vw, 4rem);
  --max: 1440px;
  --header-h: 84px;
  --section-y: clamp(6rem, 11vw, 10.5rem);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--porcelain);
  color: var(--charcoal);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
.menu-open body { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
ol, ul { list-style: none; margin: 0; padding: 0; }
::selection { background: var(--charcoal); color: var(--porcelain); }
:focus-visible { outline: 1px solid currentColor; outline-offset: 5px; }

.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 {
  position: fixed; top: 1rem; left: 1rem; z-index: 100;
  padding: .8rem 1.2rem; background: var(--charcoal); color: var(--porcelain);
  transform: translateY(-200%); transition: transform .4s var(--ease);
}
.skip:focus { transform: none; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: var(--section-y); }

/* ---------- Type ---------- */
.h2 {
  font-weight: 200;
  font-stretch: 112%;
  font-size: clamp(2.35rem, 4.9vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -.028em;
  text-wrap: balance;
}
.h2 em, .hero__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  letter-spacing: -.01em;
}
.lead { font-size: clamp(1.02rem, 1.15vw, 1.14rem); line-height: 1.72; color: var(--earth); max-width: 46ch; }

.eyebrow {
  display: flex; align-items: center;
  margin-bottom: 1.75rem;
  font-size: .72rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase;
  color: var(--earth);
}
.eyebrow--light { color: var(--sandstone); }

/* ---------- Buttons & links ---------- */
.btn {
  --bg: var(--charcoal); --fg: var(--porcelain);
  --bg-h: var(--earth); --fg-h: var(--porcelain); --bd: var(--bg);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: .9rem;
  padding: 1.1rem 1.7rem;
  border: 1px solid var(--bd);
  background: var(--bg); color: var(--fg);
  font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; line-height: 1;
  white-space: nowrap;
  transition: color .6s var(--ease), border-color .6s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--bg-h);
  transform: translateY(101%);
  transition: transform .7s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn:hover, .btn:focus-visible { color: var(--fg-h); border-color: var(--bg-h); }
.btn:hover .i-arrow, .btn:focus-visible .i-arrow { transform: translateX(.35rem); }
.btn--light { --bg: var(--porcelain); --fg: var(--charcoal); --bg-h: var(--sandstone); --fg-h: var(--charcoal); }
.btn--ghost { --bg: transparent; --fg: currentColor; --bd: currentColor; --bg-h: var(--charcoal); --fg-h: var(--porcelain); }
.btn--sm { padding: .85rem 1.2rem; }
.btn--lg { padding: 1.3rem 2.1rem; }

.i-arrow {
  width: 1.6rem; height: auto; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.2;
  transition: transform .7s var(--ease);
}

.link {
  display: inline-flex; align-items: center; gap: .8rem;
  padding-block: .45rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .8s var(--ease);
}
.link:hover, .link:focus-visible { background-size: 0 1px; background-position: 100% 100%; }
.link--light { color: var(--porcelain); }

/* The arch — brand colour-page shape, used as an image frame */
.arch { border-radius: 100vmax 100vmax 0 0; overflow: hidden; }

/* Wave-band hosts (bands are generated in js/main.js) */
.bands { position: absolute; pointer-events: none; }
.bands svg { width: 100%; height: 100%; }
.bands[data-flip] svg { transform: scaleX(-1); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  color: var(--porcelain);
  transition: background-color .6s var(--ease), color .6s var(--ease), box-shadow .6s var(--ease), transform .8s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(248, 246, 239, .9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--charcoal);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.menu-open .site-header { background: transparent; color: var(--porcelain); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; transform: none; }

.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { color: inherit; transition: color .6s var(--ease); }
.site-header.is-scrolled .brand { color: var(--taupe); }
.menu-open .site-header .brand { color: var(--porcelain); }
.logo, .footer__logo { fill: currentColor; }
.logo { width: clamp(112px, 10vw, 146px); height: auto; aspect-ratio: 1039 / 331; }

.nav ul { display: flex; gap: clamp(1.4rem, 2.4vw, 2.6rem); }
.nav a {
  position: relative; padding-block: .5rem;
  font-size: .72rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: .22em; bottom: 0; height: 1px;
  background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform .6s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.site-header__actions { display: flex; align-items: center; gap: 1.4rem; }
.lang { font-family: var(--font-ar); font-weight: 700; font-size: .95rem; line-height: 1; padding: .5rem 0; }

.menu-toggle { display: none; position: relative; width: 44px; height: 44px; margin-right: -10px; }
.menu-toggle__bars, .menu-toggle__bars::before {
  position: absolute; left: 10px; right: 10px; height: 1px; background: currentColor;
  transition: transform .6s var(--ease), top .6s var(--ease);
}
.menu-toggle__bars { top: 18px; }
.menu-toggle__bars::before { content: ""; left: 0; right: 0; top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { top: 22px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { top: 0; transform: rotate(-90deg); }

/* ---------- Menu overlay ---------- */
.menu {
  position: fixed; inset: 0; z-index: 45;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--header-h) + 2rem) var(--gutter) 2.5rem;
  background: var(--charcoal); color: var(--porcelain);
  overflow: hidden;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path .9s var(--ease-io), visibility 0s linear .9s;
}
.menu.is-open { clip-path: inset(0); visibility: visible; transition: clip-path .9s var(--ease-io); }
.menu__bands { inset: 0; }
.menu__nav, .menu__foot { position: relative; }
.menu__nav li { overflow: hidden; border-bottom: 1px solid var(--line-light); }
.menu__nav a {
  display: flex; align-items: baseline; gap: 1.2rem;
  padding: .85rem 0;
  font-weight: 200; font-stretch: 115%;
  font-size: clamp(2rem, 8vw, 3.4rem); line-height: 1.1; letter-spacing: -.02em;
  transform: translateY(105%);
  transition: transform .9s var(--ease);
}
.menu.is-open .menu__nav a { transform: none; transition-delay: calc(.3s + var(--i) * .07s); }
.menu__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 2.5rem; opacity: 0; transition: opacity .6s var(--ease); }
.menu.is-open .menu__foot { opacity: 1; transition-delay: .7s; }

/* ==========================================================================
   Fold 1 — Hero
   ========================================================================== */
.hero {
  position: relative;
  display: grid; align-items: center; justify-items: center; text-align: center;
  min-height: 100vh; min-height: 100svh;
  background: var(--charcoal); color: var(--porcelain);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.12);
  transition: opacity 1.8s ease, transform 3.2s var(--ease);
}
.hero__veil {
  position: absolute; inset: 0;
  /* even veil + a soft pool of shade behind the centred headline */
  background:
    linear-gradient(180deg, rgba(55, 52, 46, .42) 0%, rgba(55, 52, 46, 0) 24%, rgba(55, 52, 46, 0) 72%, rgba(55, 52, 46, .4) 100%),
    radial-gradient(ellipse 62% 46% at 50% 50%, rgba(55, 52, 46, .32) 0%, rgba(55, 52, 46, 0) 100%),
    rgba(55, 52, 46, .16);
}
/* sits slightly above centre so the buttons stay on the open wall, clear of low furniture */
.hero__content { position: relative; padding-block: calc(var(--header-h) + 1.5rem) clamp(6rem, 18vh, 12rem); }
.hero__title {
  margin: 0 auto .7em;
  font-weight: 100; font-stretch: 116%;
  font-size: clamp(2.5rem, 5.8vw, 5.6rem);
  line-height: 1.04; letter-spacing: -.03em;
}
.hero__title em { font-size: 1.06em; color: var(--sandstone); }
.line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.line > span { display: inline-block; }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.2rem 2.4rem; }

.scroll-cue {
  position: absolute; left: 0; right: 0; bottom: 1.4rem; z-index: 1;
  width: max-content; margin-inline: auto;
  display: flex; flex-direction: column; align-items: center; gap: .7rem;
  font-size: .66rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(248, 246, 239, .75);
}
.scroll-cue i { position: relative; width: 1px; height: 44px; background: rgba(248, 246, 239, .25); overflow: hidden; }
.scroll-cue i::after {
  content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 45%;
  background: var(--porcelain);
  animation: cue 2.6s var(--ease-io) infinite;
}
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(230%); } }


/* Load choreography */
.js [data-hero] { opacity: 0; transform: translateY(18px); transition: opacity 1.2s var(--ease), transform 1.4s var(--ease); }
.js .line > [data-hero] { opacity: 1; transform: translateY(108%); transition: transform 1.5s var(--ease); }
.js [data-hero="1"] { transition-delay: .35s; }
.js [data-hero="2"] { transition-delay: .5s; }
.js [data-hero="3"] { transition-delay: .64s; }
.js [data-hero="4"] { transition-delay: 1.05s; }
.js [data-hero="5"] { transition-delay: 1.2s; }
.js [data-hero="6"] { transition-delay: 1.6s; }
.is-loaded [data-hero] { opacity: 1 !important; transform: none !important; }
.is-loaded .hero__media img { opacity: 1; transform: scale(1); }
html:not(.js) .hero__media img { opacity: 1; transform: none; }

/* ==========================================================================
   Fold 2 — About
   ========================================================================== */
.about { overflow: hidden; }
.about__bands { inset: 0; }
.about__grid {
  position: relative;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter); align-items: center;
}
.about__text { grid-column: 1 / span 6; }
.about .h2 { margin-bottom: 2rem; }
.about__lead { margin-bottom: 2rem; }

.stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(3rem, 6vw, 4.5rem);
  border-top: 1px solid var(--line-strong);
}
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 1.6rem 1.2rem 0 0; }
.stat + .stat { padding-left: clamp(1rem, 2vw, 1.8rem); border-left: 1px solid var(--line); }
.stat dd {
  display: flex; align-items: flex-start;
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(2.8rem, 5.4vw, 5.2rem); line-height: 1; letter-spacing: -.02em;
  font-variant-numeric: lining-nums tabular-nums;
}
.stat sup { font-style: italic; font-size: .5em; line-height: 1; color: var(--taupe); margin-left: .05em; }
.stat dt { margin-top: .9rem; font-size: .7rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--earth); }

.about__media { grid-column: 7 / span 6; position: relative; padding: 0 0 12% 14%; margin-right: calc(-1 * var(--gutter)); }
.about__main { --zoom: 1.32; aspect-ratio: 4 / 5; background: var(--sandstone); }
.about__main img, .about__detail img { width: 100%; height: 100%; object-fit: cover; }
/* same frame size, image zoomed in towards the niche and bench */
.about__main img { transform: scale(var(--zoom)); transform-origin: 50% 58%; }
.about__detail {
  position: absolute; left: 0; bottom: 0; width: 50%; aspect-ratio: 1;
  border: 10px solid var(--porcelain); background: var(--sandstone); overflow: hidden;
}

/* ==========================================================================
   Fold 3 — Services
   ========================================================================== */
.services { background: var(--sandstone); }
.services__head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter); align-items: end;
}
.services__intro { grid-column: 1 / span 7; }
.services__aside { grid-column: 9 / span 4; display: flex; flex-direction: column; align-items: flex-start; gap: 2.2rem; }
.services .lead { color: #5b5549; }


.services__body {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter); align-items: start;
  margin-top: clamp(4rem, 7vw, 6rem);
}
.svc-list { grid-column: 1 / span 6; counter-reset: svc; }
.svc { border-top: 1px solid var(--line-strong); }
.svc:last-child { border-bottom: 1px solid var(--line-strong); }
.svc__title { font: inherit; }
.svc__btn {
  width: 100%; display: grid; grid-template-columns: 3.5rem 1fr auto; align-items: baseline;
  padding: 1.45rem 0; text-align: left;
  color: var(--earth);
  transition: color .5s var(--ease);
}
.svc__btn:hover, .svc.is-active .svc__btn { color: var(--charcoal); }
.svc__num { font-family: var(--font-serif); font-style: italic; font-size: 1.05rem; }
.svc__name {
  font-weight: 300; font-stretch: 108%;
  font-size: clamp(1.45rem, 2.4vw, 2.2rem); line-height: 1.15; letter-spacing: -.018em;
  transition: transform .8s var(--ease);
}
.svc.is-active .svc__name { transform: translateX(.8rem); }
.svc__icon { position: relative; width: 26px; height: 12px; align-self: center; }
.svc__icon::before, .svc__icon::after { content: ""; position: absolute; background: currentColor; }
/* desktop: arrow that slides in on the active row */
.svc__icon::before { left: 0; right: 0; top: 50%; height: 1px; }
.svc__icon::after {
  right: 0; top: 50%; width: 8px; height: 8px; background: none;
  border-top: 1px solid currentColor; border-right: 1px solid currentColor;
  transform: translate(0, -50%) rotate(45deg);
}
.svc__icon { opacity: 0; transform: translateX(-12px); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.svc.is-active .svc__icon { opacity: 1; transform: none; }

.svc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .8s var(--ease); }
.svc.is-active .svc__panel { grid-template-rows: 1fr; }
.svc__inner { overflow: hidden; }
.svc__inner p {
  max-width: 44ch; padding: 0 0 1.7rem 4.3rem;
  color: #5b5549;
  opacity: 0; transform: translateY(8px);
  transition: opacity .6s var(--ease), transform .8s var(--ease);
}
.svc.is-active .svc__inner p { opacity: 1; transform: none; transition-delay: .15s; }
.svc__img { display: none; }

.services__media { grid-column: 8 / span 5; position: sticky; top: calc(var(--header-h) + 2.5rem); }
.services__frame { position: relative; aspect-ratio: 4 / 5; background: var(--taupe); }
.services__frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.08);
  transition: opacity 1.1s var(--ease), transform 1.8s var(--ease);
}
.services__frame img.is-active { opacity: 1; transform: scale(1); }

/* ==========================================================================
   Fold 4 — Portfolio: sector slider
   A row of arches, echoing the five-arch colour page of the guideline.
   ========================================================================== */
.work { overflow: hidden; }
.work__bands { inset: 0; }
.work > .container, .work > .sectors { position: relative; } /* keep content above the pattern */
.work__head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter); align-items: end;
}
.work__head > div:first-child { grid-column: 1 / span 7; }
.work__aside { grid-column: 9 / span 4; display: flex; flex-direction: column; align-items: flex-start; gap: 2.2rem; }

.slider-nav { display: flex; gap: .6rem; }
.slider-btn {
  display: grid; place-items: center;
  width: 54px; height: 54px;
  border: 1px solid var(--line-strong);
  color: var(--charcoal);
  transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease), opacity .4s var(--ease);
}
.slider-btn .i-arrow { width: 1.4rem; }
.slider-btn--prev .i-arrow { transform: scaleX(-1); }
.slider-btn:hover:not(:disabled), .slider-btn:focus-visible { background: var(--charcoal); border-color: var(--charcoal); color: var(--porcelain); }
.slider-btn:disabled { opacity: .3; cursor: default; }

.sectors { margin-top: clamp(3.5rem, 6vw, 5rem); }
.sectors__track {
  --inset: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  display: flex; gap: clamp(1rem, 2vw, 2rem);
  margin: 0; padding: 0 var(--inset) .5rem;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--inset);
  scrollbar-width: none;
}
.sectors__track::-webkit-scrollbar { display: none; }
.sectors__track.is-dragging { scroll-snap-type: none; user-select: none; }
.sectors__track.is-dragging .sector__link { pointer-events: none; }

.sector { flex: 0 0 clamp(270px, 30vw, 460px); scroll-snap-align: start; }
.sector__link { display: block; }
.sector__media {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 100vmax 100vmax 0 0;
  background: var(--sandstone);
}
.sector__media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.001);
  transition: transform 1.8s var(--ease);
  -webkit-user-drag: none; user-select: none;
}
.sector__link:hover .sector__media img, .sector__link:focus-visible .sector__media img { transform: scale(1.06); }
.sector__meta {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: 1.4rem; padding-bottom: 1rem;
  border-bottom: 1px solid var(--line-strong);
}
.sector__name { font-weight: 300; font-stretch: 108%; font-size: clamp(1.35rem, 1.9vw, 1.8rem); line-height: 1.15; letter-spacing: -.015em; }
.sector__meta .i-arrow { opacity: .45; transform: translateX(-8px); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.sector__link:hover .sector__meta .i-arrow, .sector__link:focus-visible .sector__meta .i-arrow { opacity: 1; transform: none; }
.sector__desc { margin-top: .9rem; max-width: 34ch; font-size: .98rem; color: var(--earth); }

/* slides drift in from the right when the slider reveals */
.js .sectors[data-reveal] { opacity: 1; transform: none; }
.js .sectors .sector {
  opacity: 0; transform: translateX(60px);
  transition: opacity 1.1s var(--ease), transform 1.5s var(--ease);
  transition-delay: calc(var(--i, 0) * 100ms);
}
.js .sectors.is-in .sector { opacity: 1; transform: none; }

.work__foot { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-top: clamp(3rem, 5vw, 4.5rem); }
.sectors__controls { display: flex; align-items: center; gap: 1.8rem; flex: 1; max-width: 640px; }
.sectors__status { display: flex; align-items: center; gap: 1.4rem; flex: 1; }
.sectors__count { font-family: var(--font-serif); font-style: italic; font-size: 1.05rem; white-space: nowrap; }
.sectors__count b { font-weight: 400; }
.sectors__progress { position: relative; flex: 1; height: 1px; background: var(--line-strong); }
.sectors__progress i {
  position: absolute; top: -.5px; bottom: -.5px;
  left: calc(var(--x, 0) * (100% - var(--w, .3) * 100%));
  width: calc(var(--w, .3) * 100%);
  background: var(--charcoal);
  transition: left .35s var(--ease), width .35s var(--ease);
}

/* "Drag" cursor over the slider — fine pointers only */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 60;
  width: 96px; height: 96px; margin: -48px 0 0 -48px;
  pointer-events: none;
  display: none;
}
.cursor span {
  display: grid; place-items: center; width: 100%; height: 100%;
  border-radius: 50%;
  background: var(--charcoal); color: var(--porcelain);
  font-size: .64rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
  transform: scale(0);
  transition: transform .6s var(--ease);
}
.cursor.is-active span { transform: scale(1); }
.cursor.is-active.is-pressed span { transform: scale(.82); }
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; }
  .has-cursor .sectors__track, .has-cursor .sectors__track a { cursor: none; }
}

/* ==========================================================================
   Fold 5 — Process
   ========================================================================== */
.process { background: var(--charcoal); color: var(--porcelain); overflow-x: clip; padding-block: clamp(5rem, 8.5vw, 8rem); }
.process__bg { position: absolute; inset: 0; overflow: hidden; }
.process__bg img { position: absolute; left: 0; top: -12%; width: 100%; height: 124%; object-fit: cover; }
/* dark veil: the photo reads through, the text stays crisp */
.process__bg::after {
  content: ""; position: absolute; inset: 0;
  /* lighter through the middle so the space reads; deeper behind the heading and the step text */
  background: linear-gradient(180deg, rgba(55, 52, 46, .86) 0%, rgba(55, 52, 46, .72) 34%, rgba(55, 52, 46, .74) 58%, rgba(55, 52, 46, .8) 72%, rgba(55, 52, 46, .9) 100%);
}
.process .container { position: relative; }
.process__head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter); align-items: end;
}
.process__head > div { grid-column: 1 / span 7; }
.process__head .lead { grid-column: 9 / span 4; color: rgba(248, 246, 239, .84); }
.process .h2 em { color: var(--sandstone); }

.process__track { position: relative; margin-top: clamp(2.5rem, 4.5vw, 4rem); }
.process__graph { position: relative; height: clamp(90px, 9.5vw, 140px); }
.process__line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.process__line path { fill: none; stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.process__path-bg { stroke: rgba(248, 246, 239, .14); }
.process__path { stroke: var(--sandstone); stroke-dasharray: 1; stroke-dashoffset: 1; }
.process__dot {
  position: absolute; left: var(--x); top: var(--y);
  width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px;
  border: 1px solid rgba(248, 246, 239, .35); border-radius: 50%;
  background: var(--charcoal);
  transition: background-color .6s var(--ease), border-color .6s var(--ease), transform .8s var(--ease);
}
.process__dot::after {
  content: ""; position: absolute; inset: -9px; border-radius: 50%;
  border: 1px solid var(--sandstone); opacity: 0; transform: scale(.4);
}
.process__dot.is-on { background: var(--sandstone); border-color: var(--sandstone); transform: scale(1.15); }
.process__dot.is-on::after { animation: ripple 1.6s var(--ease) forwards; }
@keyframes ripple { 0% { opacity: .8; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.8); } }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 1.4rem; text-align: center; }
.step { padding-inline: clamp(.6rem, 1.4vw, 1.4rem); }
.js .step { opacity: .18; transform: translateY(16px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.js .step.is-on { opacity: 1; transform: none; }
.step__num { display: block; font-family: var(--font-serif); font-style: italic; font-size: clamp(2.4rem, 4vw, 3.6rem); line-height: 1; color: var(--taupe); }
.step__title { margin: .9rem 0 .8rem; font-weight: 300; font-stretch: 108%; font-size: clamp(1.45rem, 2.1vw, 2rem); line-height: 1.12; letter-spacing: -.015em; }
.step p { max-width: 26ch; margin-inline: auto; font-size: .98rem; color: rgba(248, 246, 239, .84); }

/* ==========================================================================
   Fold 6 — Contact
   ========================================================================== */
.contact { background: var(--taupe); overflow-x: clip; padding-block: clamp(7rem, 13vw, 12rem); }
.contact__media { position: absolute; top: 0; bottom: 0; left: 0; width: 44%; margin: 0; overflow: hidden; background: var(--earth); }
.contact__media img { width: 100%; height: 100%; object-fit: cover; }
.contact__grid { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.contact__text { grid-column: 7 / span 6; }
.contact .eyebrow { color: var(--charcoal); }
.contact__title { font-size: clamp(2.3rem, 4.2vw, 4rem); margin-bottom: 2rem; }
.contact__lead { color: var(--charcoal); margin-bottom: 2.6rem; }
.contact__cta .btn { --bg-h: var(--porcelain); --fg-h: var(--charcoal); }
.contact__details { margin-top: clamp(3rem, 6vw, 4.5rem); max-width: 34rem; border-top: 1px solid var(--line-strong); }
.contact__details li { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line-strong); }
.contact__details span { font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; padding-top: .2rem; }
.contact__details a { justify-self: start; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .7s var(--ease); }
.contact__details a:hover { background-size: 100% 1px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--charcoal); color: var(--porcelain); padding: clamp(5rem, 8vw, 7rem) 0 2rem; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 3rem var(--gutter); }
.footer__logo { width: clamp(180px, 18vw, 250px); height: auto; aspect-ratio: 1039 / 331; color: var(--porcelain); margin-bottom: 2rem; }
.footer__brand p { max-width: 32ch; color: rgba(248, 246, 239, .66); font-size: .98rem; }
.footer__heading { margin-bottom: 1.3rem; font-size: .7rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--taupe); }
.footer__col li + li { margin-top: .55rem; }
.footer__col a { color: rgba(248, 246, 239, .82); transition: color .4s var(--ease); }
.footer__col a:hover { color: var(--porcelain); }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  margin-top: clamp(4rem, 7vw, 6rem); padding-top: 1.6rem;
  border-top: 1px solid var(--line-light);
  font-size: .78rem; letter-spacing: .06em; color: rgba(248, 246, 239, .6);
}
.footer__top-link:hover { color: var(--porcelain); }

/* ==========================================================================
   Scroll reveals
   ========================================================================== */
.js [data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity 1.1s var(--ease), transform 1.3s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* images open like a curtain rising, and settle */
.js [data-reveal="image"] {
  opacity: 1; transform: none;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.6s var(--ease-io);
  transition-delay: var(--d, 0s);
}
.js [data-reveal="image"] img { transform: scale(calc(var(--zoom, 1) * 1.18)); transition: transform 2.4s var(--ease), opacity 1.1s var(--ease); }
.js [data-reveal="image"].is-in { clip-path: inset(0 0 0 0); }
.js [data-reveal="image"].is-in img { transform: scale(var(--zoom, 1)); }
.js .services__frame[data-reveal="image"] img:not(.is-active) { transform: scale(1.08); }

/* headings rise word by word */
.js [data-reveal="words"] { opacity: 1; transform: none; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .08em .14em 0; margin: 0 -.08em -.14em 0; }
.w > span { display: inline-block; }
.js [data-reveal="words"] .w > span {
  transform: translateY(112%);
  transition: transform 1.3s var(--ease);
  transition-delay: calc(var(--i) * 55ms + var(--d, 0s));
}
.js [data-reveal="words"].is-in .w > span { transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .nav, .site-header__actions .btn { display: none; }
  .menu-toggle { display: block; }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }

  .about__grid, .services__head, .services__body, .work__head, .process__head, .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .about__text, .about__media, .services__intro, .services__aside, .svc-list, .work__head > div:first-child, .work__aside,
  .process__head > div, .process__head .lead, .contact__text { grid-column: 1 / -1; }

  .about__media { max-width: 560px; margin: clamp(3.5rem, 10vw, 5rem) 0 0 auto; width: 100%; }
  .about__bands { opacity: .85; }

  .services__aside { margin-top: 1.5rem; }
  .services__media { display: none; }
  .svc__btn { grid-template-columns: 2.6rem 1fr auto; padding: 1.25rem 0; }
  .svc.is-active .svc__name { transform: none; }
  /* accordion icon: plus / minus */
  .svc__icon { opacity: 1; transform: none; width: 14px; height: 14px; }
  .svc__icon::before { left: 0; right: 0; top: 50%; height: 1px; }
  .svc__icon::after {
    left: 50%; top: 0; right: auto; width: 1px; height: 100%;
    border: 0; background: currentColor;
    transform: none; transition: transform .6s var(--ease);
  }
  .svc.is-active .svc__icon::after { transform: scaleY(0); }
  .svc__inner p { padding-left: 2.6rem; padding-bottom: 1.2rem; }
  .svc__img { display: block; width: calc(100% - 2.6rem); margin: 0 0 1.6rem 2.6rem; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 100vmax 100vmax 0 0; }

  .work__aside { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-top: 1.5rem; }
  .sector { flex-basis: min(70vw, 400px); }

  .process__head .lead { margin-top: 1.5rem; }
  .process__graph { display: none; }
  .steps {
    position: relative; grid-template-columns: minmax(0, 1fr); gap: 3rem;
    margin-top: 0; padding-left: 2.6rem; text-align: left;
  }
  .steps::before, .steps::after { content: ""; position: absolute; left: 6px; top: .4rem; bottom: .4rem; width: 1px; background: rgba(248, 246, 239, .14); }
  .steps::after { background: var(--sandstone); transform-origin: top; transform: scaleY(var(--p, 0)); }
  .step { position: relative; padding-inline: 0; }
  .step::before {
    content: ""; position: absolute; left: calc(-2.6rem + 1px); top: 1.1rem;
    width: 11px; height: 11px; border-radius: 50%;
    border: 1px solid rgba(248, 246, 239, .35); background: var(--charcoal);
    transition: background-color .6s var(--ease), border-color .6s var(--ease);
  }
  .step.is-on::before { background: var(--sandstone); border-color: var(--sandstone); }
  .step p { margin-inline: 0; }

  .contact { padding-top: 0; }
  .contact__media { position: relative; width: 100%; aspect-ratio: 4 / 3; margin-bottom: clamp(3.5rem, 10vw, 5rem); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .hero__content { padding-bottom: 30vh; } /* keeps headline + buttons on the open wall above the furniture */
  .hero__ctas { flex-direction: column; gap: 1.4rem; }
  .scroll-cue { display: none; }
  .stat dd { font-size: clamp(2.3rem, 11vw, 2.8rem); }
  .stat dt { font-size: .62rem; letter-spacing: .14em; }
  .about__media { padding-left: 12%; }
  .sector { flex-basis: 80vw; }
  .work__foot { flex-direction: column; align-items: flex-start; }
  .sectors__controls { width: 100%; max-width: none; gap: 1.2rem; }
  .slider-btn { width: 46px; height: 46px; }
  .contact__details li { grid-template-columns: 5.5rem 1fr; }
  .footer__top { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Reduced motion — everything settles instantly
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
}
