/* ==========================================================================
   Mabna Studio — official identity (beige #CCC4B1 · charcoal #303137)
   Tokens → base → components → pages → motion → responsive
   ========================================================================== */

@font-face {
  font-family: "Mabna Arabic";
  src: url("/assets/fonts/tajawal-light.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Mabna Arabic";
  src: url("/assets/fonts/tajawal-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Mabna Arabic";
  src: url("/assets/fonts/tajawal-medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Mabna Arabic";
  src: url("/assets/fonts/tajawal-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Mabna Latin";
  src: url("/assets/fonts/montserrat.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Official palette (brand guide p.5): stone beige, charcoal, white, black */
  --beige: #ccc4b1;
  --charcoal: #303137;
  --white: #ffffff;
  --black: #000000;
  /* Tints derived from the official colours; contrast checked (WCAG AA) */
  --paper: #f4f2ee; /* 22% beige on white: page background */
  --paper-2: #e8e4dc; /* 45% beige on white: alternating bands */
  --sand: #ddd8cc;
  --ink: var(--charcoal); /* 11.6:1 on paper */
  --ink-2: #55565b; /* 6.5:1 on paper */
  --ink-3: #66676b; /* 4.9:1 on paper: small captions */
  --accent-ink: #6a665c; /* beige darkened: numbers and labels, 5.1:1 on paper */
  --line: #ddd8cc;
  --line-strong: #c4bcaa;
  --dark: var(--charcoal);
  --on-dark: #ffffff;
  --on-dark-2: var(--beige); /* 7.5:1 on charcoal */
  /* Functional states: always paired with text or an icon */
  --success: #2f6b4f;
  --danger: #a4472f;

  --f-display: "Mabna Arabic", Tahoma, sans-serif;
  --f-body: "Mabna Arabic", Tahoma, sans-serif;
  --f-latin: "Mabna Latin", "Mabna Arabic", sans-serif;

  --gutter: clamp(20px, 5vw, 80px);
  --max: 1440px;
  --header: 84px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);

  interpolate-size: allow-keywords;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  background: var(--paper);
  color: var(--ink);
  scroll-padding-top: calc(var(--header) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.85;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
/* Paper grain over everything, never in the way of the pointer */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  opacity: 0.32;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .35  0 0 0 0 .27  0 0 0 0 .2  0 0 0 .09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
h1,
h2,
h3,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 500;
}
p {
  color: var(--ink-2);
}
em {
  font-style: normal;
  color: var(--accent-ink);
}
::selection {
  background: var(--beige);
  color: var(--ink);
}
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.skip {
  position: absolute;
  top: -100px;
  inset-inline-start: 16px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px;
}
.skip:focus {
  top: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.icon {
  width: 20px;
  height: 20px;
  flex: none;
}

/* ---------- Layout ---------- */
.wrap {
  padding-inline: max(var(--gutter), calc((100% - var(--max)) / 2));
}
.section {
  padding-block: clamp(88px, 11vw, 168px);
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: clamp(44px, 5.5vw, 80px);
}
.section-head__note {
  max-width: 24em;
  font-size: 16px;
}

/* ---------- Type ---------- */

.h2 {
  font-family: var(--f-display);
  font-size: clamp(2.1rem, 4.2vw, 3.9rem);
  line-height: 1.28;
}
.h3 {
  font-family: var(--f-display);
  font-size: clamp(1.3rem, 1.9vw, 1.7rem);
  line-height: 1.45;
}
.lead {
  font-size: clamp(1.08rem, 1.35vw, 1.28rem);
  line-height: 1.9;
  font-weight: 300;
  color: var(--ink-2);
  max-width: 34em;
}
/* Masked lines (see lines() in src/lib.mjs) */
.line {
  display: block;
  overflow: hidden;
  padding-block: 0.1em 0.16em;
  margin-block: -0.1em -0.16em;
}
.line > span {
  display: block;
}

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: clamp(20px, 2.4vw, 32px);
  font-size: 14px;
  line-height: 1.6;
}
.eyebrow__num {
  font-family: var(--f-display);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--accent-ink);
}
.eyebrow__ar {
  color: var(--ink);
  font-weight: 500;
}
.eyebrow__en {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-latin);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow__en::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--line-strong);
}

/* ---------- Buttons & links ---------- */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 56px;
  padding: 0 30px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  transition:
    color 0.45s var(--ease),
    border-color 0.45s var(--ease),
    transform 0.25s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--beige);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.6s var(--ease);
}
.btn > * {
  position: relative;
  z-index: 1;
}
.btn .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.5s var(--ease);
}
.btn:hover::before {
  transform: scaleX(1);
}
.btn:hover {
  border-color: var(--accent-ink);
}
.btn:hover .icon-arrow {
  transform: translateX(-5px);
}
.btn:hover .icon-back {
  transform: translateX(5px);
}
.btn:active {
  transform: scale(0.97);
}
.btn--small {
  min-height: 44px;
  padding: 0 20px;
  font-size: 14px;
}
.btn--outline {
  background: transparent;
  color: var(--ink);
}
.btn--outline:hover {
  color: var(--ink);
  border-color: var(--beige);
}
.btn--light {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}
.btn--light:hover {
  color: var(--ink);
}
.btn--ghost-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--paper);
}
/* Click feedback: an ink ring that spreads from the pointer */
.ripple {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: ripple 0.75s var(--ease) forwards;
}
.btn--outline .ripple,
.chip .ripple,
.option .ripple {
  background: rgba(48, 49, 55, 0.12);
}
@keyframes ripple {
  to {
    transform: scale(1);
    opacity: 0;
  }
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border: 0;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% /
    100% 1px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.3s;
}
.text-link .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.5s var(--ease);
}
.text-link:hover {
  color: var(--accent-ink);
  animation: underline 0.8s var(--ease);
}
.text-link:hover .icon-arrow {
  transform: translateX(-5px);
}
@keyframes underline {
  0% {
    background-size: 100% 1px;
    background-position: 0 100%;
  }
  45% {
    background-size: 0 1px;
    background-position: 0 100%;
  }
  46% {
    background-size: 0 1px;
    background-position: 100% 100%;
  }
  100% {
    background-size: 100% 1px;
    background-position: 100% 100%;
  }
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips a {
  border: 1px solid var(--line-strong);
  padding: 4px 14px;
  font-size: 14px;
  transition:
    background 0.3s,
    color 0.3s,
    border-color 0.3s;
}
.chips a:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  height: var(--header);
  padding-inline: var(--gutter);
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(1.3) blur(16px);
  backdrop-filter: saturate(1.3) blur(16px);
  border-bottom: 1px solid transparent;
  transition:
    transform 0.6s var(--ease),
    border-color 0.4s,
    background 0.4s;
  view-transition-name: site-header;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
}
.site-header.is-hidden {
  transform: translateY(-100%);
}
.brand {
  justify-self: start;
}
.brand {
  color: var(--ink);
  transition: color 0.4s;
}
.brand .logo {
  display: block;
  width: 118px;
  height: auto;
}
.site-nav {
  display: flex;
  gap: clamp(18px, 2.4vw, 36px);
}
.site-nav a {
  position: relative;
  padding-block: 8px;
  font-size: 15px;
  color: var(--ink-2);
  transition: color 0.3s;
}
.site-nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.site-nav a:hover {
  color: var(--ink);
}
.site-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: right;
}
.site-nav a[aria-current] {
  color: var(--ink);
}
.site-nav a[aria-current]::after {
  transform: scaleX(1);
  background: var(--ink);
}
.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}
.menu-btn {
  display: none;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  font-size: 14px;
}
.burger {
  display: grid;
  gap: 6px;
  width: 24px;
}
.burger i {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.5s var(--ease);
}
.menu-btn[aria-expanded="true"] .burger i:first-child {
  transform: translateY(3.75px) rotate(45deg);
}
.menu-btn[aria-expanded="true"] .burger i:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

/* Full-screen menu (small screens) */
.menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: calc(var(--header) + 24px) var(--gutter) 40px;
  overflow-y: auto;
  background: var(--dark);
  color: var(--on-dark);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition:
    clip-path 0.8s var(--ease-io),
    visibility 0s 0.8s;
}
.menu.is-open {
  clip-path: inset(0);
  visibility: visible;
  transition: clip-path 0.8s var(--ease-io);
}
.menu__nav a {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding-block: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--f-display);
  font-size: clamp(1.9rem, 7vw, 3.2rem);
  line-height: 1.4;
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.8s var(--ease),
    color 0.3s;
}
.menu.is-open .menu__nav a {
  opacity: 1;
  transform: none;
}
.menu__nav a:nth-child(2) {
  transition-delay: 0.05s;
}
.menu__nav a:nth-child(3) {
  transition-delay: 0.1s;
}
.menu__nav a:nth-child(4) {
  transition-delay: 0.15s;
}
.menu__nav a:nth-child(5) {
  transition-delay: 0.2s;
}
.menu__nav a:nth-child(6) {
  transition-delay: 0.25s;
}
.menu__nav a[aria-current],
.menu__nav a:hover {
  color: var(--beige);
}
.menu__num {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--beige);
}
.menu__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  font-size: 15px;
  color: var(--on-dark-2);
}
body.menu-open {
  overflow: hidden;
}
body.menu-open .site-header {
  background: transparent;
  border-color: transparent;
  color: var(--on-dark);
}
body.menu-open .brand {
  color: var(--beige);
}
body.menu-open .header-actions .btn {
  visibility: hidden;
}

/* ---------- Brand patterns (from the stationery: repeated marks, watermark) ---------- */
.mark-strip {
  position: absolute;
  display: grid;
  gap: 18px;
  width: 44px;
  pointer-events: none;
}
.mark-strip .mark {
  width: 100%;
  height: auto;
}
.site-footer {
  position: relative;
  overflow: hidden;
}
.mark-strip--footer {
  top: 40px;
  left: max(16px, calc(var(--gutter) / 3));
  color: rgba(204, 196, 177, 0.22);
}
.mark-strip--cta {
  top: 48px;
  left: max(16px, calc(var(--gutter) / 3));
  z-index: 0;
  color: rgba(204, 196, 177, 0.35);
}
.page-head {
  position: relative;
}
.page-head::after {
  content: "";
  position: absolute;
  top: 24px;
  left: var(--gutter);
  width: clamp(160px, 22vw, 320px);
  aspect-ratio: 221 / 156;
  background: url("/assets/brand/mabna-mark-charcoal.svg") no-repeat center /
    contain;
  opacity: 0.06;
  pointer-events: none;
}

/* The official mark, extruded: 14 stacked layers give it depth */
.brand-object {
  position: absolute;
  bottom: clamp(96px, 14vh, 150px);
  left: clamp(20px, 3vw, 48px);
  width: clamp(120px, 11vw, 176px);
  aspect-ratio: 221 / 156;
  perspective: 700px;
}
.brand-object .brand-object__stack {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateX(-14deg) rotateY(-26deg);
  transition: transform 1.2s var(--ease);
}
.brand-object__layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--accent-ink);
}
.brand-object__layer:last-child {
  color: var(--ink);
}
.brand-object__layer:first-child {
  color: var(--beige);
}
.brand-object__layer:nth-child(1) {
  transform: translateZ(0px);
}
.brand-object__layer:nth-child(2) {
  transform: translateZ(1.5px);
}
.brand-object__layer:nth-child(3) {
  transform: translateZ(3px);
}
.brand-object__layer:nth-child(4) {
  transform: translateZ(4.5px);
}
.brand-object__layer:nth-child(5) {
  transform: translateZ(6px);
}
.brand-object__layer:nth-child(6) {
  transform: translateZ(7.5px);
}
.brand-object__layer:nth-child(7) {
  transform: translateZ(9px);
}
.brand-object__layer:nth-child(8) {
  transform: translateZ(10.5px);
}
.brand-object__layer:nth-child(9) {
  transform: translateZ(12px);
}
.brand-object__layer:nth-child(10) {
  transform: translateZ(13.5px);
}
.brand-object__layer:nth-child(11) {
  transform: translateZ(15px);
}
.brand-object__layer:nth-child(12) {
  transform: translateZ(16.5px);
}
.brand-object__layer:nth-child(13) {
  transform: translateZ(18px);
}
.brand-object__layer:nth-child(14) {
  transform: translateZ(19.5px);
}
@supports not (transform-style: preserve-3d) {
  .brand-object__layer:not(:last-child) {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  min-height: min(calc(100svh - var(--header)), 960px);
}
.hero__copy {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(40px, 5vw, 80px) var(--gutter) clamp(28px, 3vw, 44px)
    clamp(28px, 4vw, 64px);
}
.hero__copy > :first-child {
  margin-top: auto;
}
.hero__title {
  font-family: var(--f-display);
  font-size: clamp(2.6rem, 4.3vw, 4.9rem);
  line-height: 1.2;
}
.hero__lead {
  margin-top: clamp(20px, 2.4vw, 32px);
  max-width: 25em;
  font-size: clamp(1.05rem, 1.3vw, 1.22rem);
  font-weight: 300;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
  margin-top: clamp(28px, 3.4vw, 44px);
}
/* Facts and the extruded mark share the bottom row, so the mark never sits on
   the links above it. */
.hero__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: auto;
  padding-top: 48px;
}
.hero__foot .brand-object {
  position: relative;
  bottom: auto;
  left: auto;
  flex: none;
  margin: 0;
}
.hero__facts {
  display: flex;
  gap: 48px;
  font-size: 14px;
}
.hero__facts dt {
  font-size: 12px;
  color: var(--ink-3);
}
.hero__facts dd {
  color: var(--ink);
}
.hero__media {
  position: relative;
  overflow: hidden;
  background: var(--sand);
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(transparent, rgba(48, 49, 55, 0.62));
}
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.6s var(--ease-io);
}
.hero__slide.is-active {
  z-index: 1;
  opacity: 1;
}
.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(20px, 2.6vw, 36px);
  color: #fff;
}
.hero__project {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 14px;
  color: #fff;
}
.hero__project.liquid-glass {
  padding: 12px 22px 14px;
  border-radius: 22px;
}
.hero__project small {
  grid-column: 1 / -1;
  font-size: 13px;
  opacity: 0.8;
}
.hero__project span {
  font-family: var(--f-display);
  font-size: clamp(1.3rem, 2vw, 1.8rem);
}
.hero__project .icon {
  transition: transform 0.5s var(--ease);
}
.hero__project:hover .icon {
  transform: translateX(-6px);
}
.hero__project.is-changing span,
.hero__project.is-changing small {
  animation: captionIn 0.9s var(--ease) both;
}
@keyframes captionIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}
.hero__dots {
  display: flex;
  gap: 16px;
}
.hero__dot {
  display: grid;
  gap: 8px;
  padding: 6px 0;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--f-display);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-align: start;
}
.hero__dot i {
  position: relative;
  display: block;
  width: clamp(36px, 4vw, 56px);
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.35);
}
.hero__dot i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform: scaleX(0);
  transform-origin: right;
}
.hero__dot.is-active {
  color: #fff;
}
.hero__dot.is-active i::after {
  transform: scaleX(1);
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  padding-block: clamp(20px, 2.4vw, 30px);
  border-block: 1px solid var(--line);
}
.marquee__track {
  display: flex;
  width: max-content;
}
.marquee__track > div {
  display: flex;
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  padding-inline-end: clamp(28px, 4vw, 56px);
}
.marquee span {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  line-height: 1.5;
  white-space: nowrap;
}
.marquee i {
  width: 8px;
  height: 8px;
  background: var(--accent-ink);
  transform: rotate(45deg);
}

/* ---------- Intro + maquette ---------- */
.intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(40px, 8vw, 140px);
  align-items: center;
}
.intro__text .lead {
  margin-top: clamp(24px, 3vw, 36px);
}
.principles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: clamp(36px, 4vw, 52px) 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}
.principles li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.principles span {
  font-family: var(--f-display);
  font-size: 12px;
  color: var(--accent-ink);
}
.maquette {
  position: relative;
  height: clamp(320px, 34vw, 460px);
  display: grid;
  place-items: center;
  perspective: 900px;
  background: radial-gradient(ellipse at center, #e3ded3 0%, transparent 66%);
}
.maquette > span {
  position: absolute;
  bottom: 0;
  font-size: 12px;
  color: var(--ink-3);
}
.model {
  position: relative;
  width: 270px;
  height: 230px;
  transform-style: preserve-3d;
  transform: rotateX(-15deg) rotateY(28deg);
  transition: transform 1.2s var(--ease);
}
.model i {
  position: absolute;
  display: block;
  box-shadow: 5px 10px 22px rgba(48, 49, 55, 0.09);
}
.slab {
  width: 280px;
  height: 200px;
  background: #d4cdbd;
  border: 1px solid #bdb4a0;
  transform: rotateX(90deg);
}
.base {
  bottom: -66px;
  background: #c6bead;
  transform: rotateX(90deg) translateZ(-8px);
}
.plane {
  width: 220px;
  height: 175px;
  background: linear-gradient(120deg, #ebe7df, #c9c1af);
  border: 1px solid #c4bcaa;
}
.back {
  left: 40px;
  top: 45px;
  transform: translateZ(-70px);
}
.side {
  left: -48px;
  top: 45px;
  width: 175px;
  transform: rotateY(90deg);
}
.roof {
  top: -55px;
  background: #ece8e0;
  transform: rotateX(90deg) translateZ(-38px);
}
.glass {
  top: 87px;
  left: 94px;
  width: 148px;
  height: 130px;
  background: linear-gradient(
    130deg,
    rgba(92, 104, 98, 0.6),
    rgba(188, 196, 183, 0.5)
  );
  border: 6px solid #303137;
  transform: translateZ(50px);
}
.fin {
  top: 55px;
  left: 47px;
  width: 20px;
  height: 165px;
  background: var(--beige);
  transform: translateZ(69px);
}
@supports not (transform-style: preserve-3d) {
  .model,
  .model i {
    transform: none !important;
  }
  .glass {
    z-index: 3;
  }
  .roof {
    top: 25px;
    height: 25px;
  }
  .base {
    bottom: 0;
    height: 20px;
  }
}

/* ---------- Entry points ("start from your situation") ---------- */
.entry {
  background: var(--paper-2);
}
.entry__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}
.entry__item {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 56px minmax(0, 1.25fr) minmax(0, 1fr) auto 24px;
  align-items: center;
  gap: 28px;
  padding: clamp(24px, 2.6vw, 34px) 12px;
  border-bottom: 1px solid var(--line-strong);
  transition: padding 0.6s var(--ease);
}
.entry__item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--paper);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.6s var(--ease);
}
.entry__item:hover {
  padding-inline-start: 32px;
}
.entry__item:hover::before {
  transform: scaleY(1);
}
.entry__item:active {
  transform: scale(0.995);
}
.entry__num {
  font-family: var(--f-display);
  font-size: 13px;
  color: var(--accent-ink);
}
.entry__title {
  font-family: var(--f-display);
  font-size: clamp(1.3rem, 2.1vw, 2rem);
  line-height: 1.4;
}
.entry__text {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.7;
}
.entry__service {
  padding: 4px 12px;
  border: 1px solid var(--line-strong);
  font-size: 13px;
  color: var(--ink-2);
  white-space: nowrap;
}
.entry__thumb {
  display: none;
}
.entry__item .icon {
  transition: transform 0.5s var(--ease);
}
.entry__item:hover .icon {
  transform: translateX(-6px);
  color: var(--accent-ink);
}
.hover-preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  width: clamp(220px, 18vw, 300px);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  scale: 0.85;
  transition:
    opacity 0.4s var(--ease),
    scale 0.6s var(--ease);
}
.hover-preview.is-visible {
  opacity: 1;
  scale: 1;
}
.hover-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Project cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(56px, 6vw, 104px) clamp(20px, 2.6vw, 40px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.cards--grid .card {
  grid-column: span 6;
}
/* Editorial rhythm: wide, tall / tall, wide — each second card steps down */
.cards--featured .card:nth-child(1) {
  grid-column: 1 / span 7;
}
.cards--featured .card:nth-child(2) {
  grid-column: 8 / span 5;
  margin-top: clamp(64px, 9vw, 150px);
}
.cards--featured .card:nth-child(3) {
  grid-column: 1 / span 5;
}
.cards--featured .card:nth-child(4) {
  grid-column: 6 / span 7;
  margin-top: clamp(64px, 9vw, 150px);
}
.card__link {
  display: block;
}
.card__media {
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--sand);
  transition: transform 0.4s var(--ease);
}
.cards--featured .card:nth-child(2) .card__media,
.cards--featured .card:nth-child(3) .card__media {
  aspect-ratio: 4 / 5;
}
.card__media .media__inner,
.card__media img {
  width: 100%;
  height: 100%;
}
.card__media img {
  object-fit: cover;
}
.card__meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: baseline;
  gap: 16px;
  padding: 20px 0 16px;
  border-bottom: 1px solid var(--line);
}
.card__num {
  font-family: var(--f-display);
  font-size: 12px;
  color: var(--accent-ink);
}
.card__title {
  font-family: var(--f-display);
  font-size: clamp(1.2rem, 1.7vw, 1.55rem);
  line-height: 1.4;
}
.card__cat {
  font-size: 13px;
  color: var(--ink-3);
}
.card__meta .icon {
  align-self: center;
  transition:
    transform 0.5s var(--ease),
    color 0.3s;
}
.card__link:hover .card__meta .icon {
  transform: translateX(-6px);
  color: var(--accent-ink);
}
.card__link:active .card__media {
  transform: scale(0.985);
}
.card__link {
  position: relative;
}
.card__badge,
.card__badge.liquid-glass {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  z-index: 2;
  padding: 5px 12px;
  font-family: var(--f-latin);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--white);
}

/* Custom cursor label over project images (fine pointers only) */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  display: none;
  place-items: center;
  width: 92px;
  height: 92px;
  margin: -46px 0 0 -46px;
  border-radius: 50%;
  background: var(--beige);
  color: var(--ink);
  font-size: 14px;
  pointer-events: none;
  scale: 0;
  transition: scale 0.45s var(--ease);
}
.has-cursor .cursor {
  display: grid;
}
.cursor.is-active {
  scale: 1;
}
.has-cursor [data-cursor],
.has-cursor [data-cursor] * {
  cursor: none;
}

/* ---------- Process (home) ---------- */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin: 0;
  padding: 44px 0 0;
  list-style: none;
}
.steps::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 1px;
  background: var(--ink);
  transform-origin: right;
}
.step {
  position: relative;
}
.step::before {
  content: "";
  position: absolute;
  top: -49px;
  inset-inline-start: 0;
  width: 9px;
  height: 9px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
}
.step__num {
  font-family: var(--f-display);
  font-size: 13px;
  color: var(--accent-ink);
}
.step h3 {
  margin-top: 14px;
  font-family: var(--f-display);
  font-size: clamp(1.25rem, 1.7vw, 1.5rem);
}
.step p {
  margin-top: 10px;
  font-size: 15px;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-items: center;
  min-height: min(78vh, 760px);
  padding: clamp(96px, 11vw, 160px) var(--gutter);
  color: var(--paper);
}
.cta-band__bg {
  position: absolute;
  inset: -10% 0;
  z-index: -2;
}
.cta-band__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(48, 49, 55, 0.5),
    rgba(48, 49, 55, 0.78)
  );
}
.cta-band__content {
  max-width: 920px;
}
.cta-band .eyebrow__ar {
  color: var(--paper);
}
.cta-band .eyebrow__en {
  color: rgba(255, 255, 255, 0.7);
}
.cta-band .eyebrow__en::before {
  background: rgba(255, 255, 255, 0.4);
}
.cta-band__title {
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 5.4vw, 4.8rem);
  line-height: 1.25;
}
.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: clamp(32px, 4vw, 52px);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: var(--on-dark);
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 48px;
  padding: clamp(72px, 8vw, 112px) var(--gutter) clamp(48px, 5vw, 72px);
}
.footer__brand .logo {
  display: block;
  width: 168px;
  height: auto;
  color: var(--beige);
}
.footer__brand p {
  max-width: 30em;
  margin-top: 24px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--on-dark-2);
}
.footer__label {
  margin-bottom: 16px;
  font-family: var(--f-display);
  font-size: 13px;
  font-weight: 400;
  color: var(--on-dark-2);
}
.site-footer a {
  display: block;
  width: fit-content;
  padding-block: 4px;
  font-size: 15px;
  transition: color 0.3s;
}
.site-footer a:hover {
  color: var(--beige);
}
.site-footer p {
  color: var(--on-dark);
  font-size: 15px;
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 22px var(--gutter);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  color: var(--on-dark-2);
}
.footer__en {
  font-family: var(--f-latin);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.26em;
}
.to-top {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: none;
  color: var(--on-dark);
  font-size: 13px;
}
.to-top .icon {
  width: 16px;
  transform: rotate(-90deg);
  transition: transform 0.5s var(--ease);
}
.to-top:hover .icon {
  transform: rotate(-90deg) translateX(4px);
}

/* Animated "Mesh drift" background (js/shader-bg.js, 21st.dev Shader Builder)
   in the official colours, behind the home hero's text. The radial gradient is
   the still fallback without WebGL; a charcoal veil keeps the light text at
   WCAG AA as the white light drifts past (measured over time: white text 5.2:1,
   the sand second line of the large title 3.7:1). */
[data-shader-bg] {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.shader-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero[data-shader-bg] {
  background: radial-gradient(80% 70% at 60% 45%, #4a4b52 0%, var(--charcoal) 75%);
  color: var(--white);
}
.hero[data-shader-bg]::after,
.page-head--dark::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  width: auto;
  height: auto;
  aspect-ratio: auto;
  opacity: 1;
  pointer-events: none;
  background: rgba(48, 49, 55, 0.68);
}
.hero[data-shader-bg] .eyebrow__ar,
.hero[data-shader-bg] .hero__lead,
.hero[data-shader-bg] .hero__facts dd,
.hero[data-shader-bg] .eyebrow__en,
.hero[data-shader-bg] .hero__facts dt,
.page-head--dark .eyebrow__ar,
.page-head--dark .eyebrow__en,
.page-head--dark .page-head__lead,
.page-head--dark .project-head__status,
.page-head--dark .back-link,
.page-head--dark .back-link:hover {
  color: var(--white);
}
.hero[data-shader-bg] .eyebrow__en::before,
.page-head--dark .eyebrow__en::before {
  background: rgba(255, 255, 255, 0.4);
}
.hero[data-shader-bg] .hero__title em,
.page-head--dark .page-head__title em {
  color: var(--sand);
}
.hero[data-shader-bg] .brand-object__layer {
  color: rgba(204, 196, 177, 0.6);
}
.hero[data-shader-bg] .brand-object__layer:first-child {
  color: var(--beige);
}
.hero[data-shader-bg] .brand-object__layer:last-child {
  color: var(--paper);
}

/* ==========================================================================
   Home presentation (after the owner's references: a full dark hero with a
   giant faint wordmark, rounded cards, two-tone headings, a sticky stack of
   projects, and an editorial collage with torn paper and plan lines).
   Official colours only; images are real renders, never altered.
   ========================================================================== */

/* Hero: the whole section is dark; the slideshow becomes a rounded card. */
.hero__watermark {
  position: absolute;
  inset-inline: 0;
  bottom: -0.16em;
  font: 700 clamp(7rem, 23vw, 24rem) / 0.8 var(--f-latin);
  letter-spacing: -0.03em;
  text-align: center;
  color: rgba(255, 255, 255, 0.045);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.hero[data-shader-bg] .hero__media {
  margin: clamp(14px, 1.8vw, 26px);
  margin-inline-start: 0;
  border-radius: 26px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}
.hero__torn {
  position: absolute;
  z-index: 4;
  top: clamp(40px, 6vh, 64px);
  left: -24px;
  width: clamp(150px, 15vw, 240px);
  height: 34px;
  background: url("/assets/deco/torn.svg") center / 100% 100% no-repeat;
  transform: rotate(-38deg);
  pointer-events: none;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.25));
}

/* Rounded links with an arrow in a circle. */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  padding-block: 6px;
  padding-inline: 6px 26px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  transition:
    background 0.35s var(--ease),
    color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}
.pill__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--paper);
  transition: transform 0.5s var(--ease);
}
.pill__icon .icon {
  width: 17px;
  height: 17px;
}
.pill:hover .pill__icon {
  transform: rotate(-45deg);
}
.pill:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
.pill--ghost {
  background: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}
.pill--ghost .pill__icon {
  background: var(--paper);
  color: var(--ink);
}
.pill--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}
.pill--dark {
  background: var(--charcoal);
  color: var(--paper);
}
.pill--dark .pill__icon {
  background: var(--paper);
  color: var(--ink);
}

/* About: a light page with plan lines, honest counts and the collage. */
.intro {
  overflow-x: clip;
  background: url("/assets/deco/blueprint-dark.svg") center / cover no-repeat,
    var(--paper);
}
.intro__text .pill {
  margin-top: clamp(28px, 3vw, 40px);
}
.counts {
  display: flex;
  flex-wrap: wrap;
  gap: 24px clamp(32px, 5vw, 72px);
  margin: 0;
}
.counts div {
  display: flex;
  flex-direction: column-reverse;
  gap: 4px;
}
.counts dd {
  font: 300 clamp(4rem, 8vw, 7.5rem) / 0.9 var(--f-latin);
  letter-spacing: -0.04em;
  color: var(--ink);
}
.counts dt {
  font-size: 14px;
  color: var(--ink-2);
}
/* The caption gets its own line under TECTURE so the word never covers it. */
.collage {
  --collage-caption: 44px;
  position: relative;
  padding: clamp(56px, 7vw, 96px) 0
    calc(clamp(56px, 7vw, 96px) + var(--collage-caption));
}
.collage__word {
  position: absolute;
  z-index: 2;
  font: 700 clamp(3.4rem, 8.4vw, 8.6rem) / 0.85 var(--f-latin);
  letter-spacing: -0.04em;
  color: var(--ink);
  pointer-events: none;
}
.collage__word--top {
  top: 0;
  left: -4%;
}
.collage__word--bottom {
  bottom: var(--collage-caption);
  right: -6%;
}
.collage__frame {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--sand);
  box-shadow: 0 30px 60px rgba(48, 49, 55, 0.2);
}
.collage__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transition: transform 1.2s var(--ease);
}
.collage__frame:hover img {
  transform: scale(1.04);
}
.collage__torn {
  position: absolute;
  z-index: 3;
  height: 38px;
  background: url("/assets/deco/torn.svg") center / 100% 100% no-repeat;
  filter: drop-shadow(0 4px 6px rgba(48, 49, 55, 0.18));
  pointer-events: none;
}
.collage__torn--a {
  top: 30%;
  left: -8%;
  width: 46%;
  transform: rotate(-24deg);
}
.collage__torn--b {
  bottom: 24%;
  right: -10%;
  width: 52%;
  transform: rotate(-38deg);
}
.collage__label {
  position: absolute;
  z-index: 2;
  font: 600 10.5px / 1.6 var(--f-latin);
  letter-spacing: 0.24em;
  color: var(--ink-2);
}
.collage__label--a {
  top: clamp(8px, 1.4vw, 20px);
  right: 0;
  text-align: right;
}
.collage__label--b {
  bottom: 2px;
  left: 0;
}
.collage__caption {
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  max-width: 72%;
  font-size: 13px;
  color: var(--ink-3);
}

/* Selected work: a dark page with plan lines; the title stays while the
   project cards stack over each other. */
.work {
  position: relative;
  overflow-x: clip;
  background: url("/assets/deco/blueprint-light.svg") center / cover no-repeat,
    var(--charcoal);
  color: var(--white);
}
.work::before,
.work::after {
  content: "";
  position: absolute;
  inset-inline: -2%;
  z-index: 1;
  height: 34px;
  background: url("/assets/deco/torn.svg") center / 100% 100% no-repeat;
  pointer-events: none;
}
.work::before {
  top: -17px;
  transform: rotate(-0.6deg);
}
.work::after {
  bottom: -17px;
  transform: rotate(0.5deg);
}
.work .eyebrow__ar,
.work .eyebrow__en {
  color: var(--white);
}
.work .eyebrow__num {
  color: var(--beige);
}
.work .eyebrow__en::before {
  background: rgba(255, 255, 255, 0.4);
}
.work .h2 em {
  color: var(--beige);
}
.work__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.work__intro {
  position: sticky;
  top: calc(var(--header) + 48px);
}
.work__lead {
  max-width: 30em;
  margin: clamp(20px, 2.4vw, 32px) 0 clamp(28px, 3vw, 40px);
  font-size: 16px;
  line-height: 1.9;
  color: var(--white);
}
.stack {
  display: grid;
  gap: clamp(28px, 8vh, 80px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.stack__item {
  position: sticky;
  top: calc(var(--header) + 32px);
}
.stack__item:nth-child(2) {
  top: calc(var(--header) + 52px);
}
.stack__item:nth-child(3) {
  top: calc(var(--header) + 72px);
}
.stack__item:nth-child(4) {
  top: calc(var(--header) + 92px);
}
.stack__card {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  border-radius: 24px;
  background: #23242a;
  box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.35);
}
.stack__media,
.stack__media img {
  width: 100%;
  height: 100%;
}
.stack__media img {
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.stack__card:hover .stack__media img {
  transform: scale(1.04);
}
.stack__card::after {
  content: "";
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(transparent, rgba(23, 24, 27, 0.82));
  pointer-events: none;
}
.stack__meta {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  display: grid;
  gap: 6px;
  padding: clamp(18px, 2.4vw, 32px);
  color: var(--white);
}
.stack__meta .stack__chip {
  justify-self: start;
  margin-bottom: 8px;
  padding: 6px 14px;
  font-size: 12.5px;
  color: var(--white);
}
.stack__code {
  font: 600 11px / 1.4 var(--f-latin);
  letter-spacing: 0.24em;
  color: var(--white);
}
.stack__title {
  font-family: var(--f-display);
  font-size: clamp(1.6rem, 2.8vw, 2.6rem);
  font-weight: 500;
  line-height: 1.2;
}
.stack__info {
  font-size: 14px;
  color: var(--white);
}

/* Inner pages in the same language: dark heads over the moving background with
   a faint Latin watermark and a torn paper edge. */
.page-head--dark {
  padding-block: clamp(64px, 9vw, 140px) clamp(72px, 9vw, 132px);
  background: radial-gradient(80% 90% at 55% 40%, #4a4b52 0%, var(--charcoal) 75%);
  color: var(--white);
}
/* A shorter band than the hero shows the brighter parts of the drift more often:
   a slightly denser veil keeps white text at AA (measured, see QA.md). */
.page-head--dark::after {
  background: rgba(48, 49, 55, 0.74);
}
.page-head__watermark {
  position: absolute;
  inset-inline: 0;
  bottom: -0.2em;
  font: 700 clamp(4.5rem, 15vw, 15rem) / 0.8 var(--f-latin);
  letter-spacing: -0.03em;
  text-align: center;
  color: rgba(255, 255, 255, 0.045);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.torn-edge {
  position: absolute;
  inset-inline: -2%;
  bottom: -12px;
  z-index: 3;
  height: 30px;
  background: url("/assets/deco/torn.svg") center / 100% 100% no-repeat;
  pointer-events: none;
}
.page-head--dark .jump a {
  border-color: rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  color: var(--white);
}
.page-head--dark .jump span {
  color: var(--white);
}
.page-head--dark .jump a:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}
.page-head--dark .jump a:hover span {
  color: var(--accent-ink);
}
.page-head--dark .jump a:focus-visible,
.page-head--dark .back-link:focus-visible {
  outline-color: var(--white);
}

/* A strip of torn paper used as tape on images. */
.tape {
  position: absolute;
  z-index: 3;
  width: clamp(110px, 12vw, 170px);
  height: 30px;
  background: url("/assets/deco/torn.svg") center / 100% 100% no-repeat;
  filter: drop-shadow(0 3px 5px rgba(48, 49, 55, 0.2));
  pointer-events: none;
}

/* Projects index: rounded overlay cards (the home stack's card) in a grid. */
.cards--grid {
  row-gap: clamp(20px, 2.6vw, 40px);
}
.projects {
  padding-top: clamp(48px, 6vw, 88px);
}
.chip,
.chips a {
  border-radius: 999px;
}
.chip {
  padding-inline: 20px;
}

/* Project page: the cover rises out of the dark head as a rounded card. */
.project-head.page-head--dark {
  padding-block: clamp(32px, 4vw, 64px) clamp(150px, 16vw, 250px);
}
.project-cover {
  position: relative;
  z-index: 2;
  margin-top: calc(-1 * clamp(118px, 13vw, 210px));
}
.project-cover .media {
  height: min(76vh, 800px);
  border-radius: 26px;
  box-shadow: 0 30px 70px rgba(48, 49, 55, 0.3);
}
.tape--cover {
  top: -14px;
  inset-inline-start: calc(var(--gutter) + clamp(24px, 4vw, 60px));
  transform: rotate(6deg);
}
.project-story {
  background: url("/assets/deco/blueprint-dark.svg") center / cover no-repeat,
    var(--paper);
}
.spec {
  padding: clamp(20px, 2.4vw, 32px);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 1px 0 var(--line);
}
.spec__label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font: 600 10.5px / 1.6 var(--f-latin);
  letter-spacing: 0.24em;
  color: var(--ink-2);
}
.project-story__text .pill {
  margin-top: 4px;
}
.gallery .media {
  border-radius: 20px;
}
.gallery__grid li:first-child {
  position: relative;
}
.gallery__grid li:first-child::after {
  content: "";
  position: absolute;
  top: -14px;
  inset-inline-end: clamp(24px, 5vw, 80px);
  width: clamp(110px, 12vw, 170px);
  height: 30px;
  background: url("/assets/deco/torn.svg") center / 100% 100% no-repeat;
  filter: drop-shadow(0 3px 5px rgba(48, 49, 55, 0.2));
  transform: rotate(-5deg);
  pointer-events: none;
}
.pager__link {
  border-radius: 24px;
}

/* Services: a faint oversized number, taped rounded images, drafting labels. */
.service {
  position: relative;
  overflow-x: clip;
}
.service:nth-of-type(even) {
  background: url("/assets/deco/blueprint-dark.svg") center / cover no-repeat,
    var(--paper);
}
.service__number {
  position: absolute;
  top: clamp(16px, 3vw, 48px);
  inset-inline-end: var(--gutter);
  font: 300 clamp(7rem, 16vw, 15rem) / 0.8 var(--f-latin);
  letter-spacing: -0.04em;
  color: rgba(48, 49, 55, 0.07);
  pointer-events: none;
  user-select: none;
}
.service:nth-of-type(odd) .service__number {
  inset-inline-end: auto;
  inset-inline-start: var(--gutter);
}
.service__visual {
  position: relative;
}
.service:nth-of-type(odd) .service__visual {
  order: 2;
}
.service__media {
  border-radius: 26px;
  box-shadow: 0 24px 50px rgba(48, 49, 55, 0.16);
}
.service__visual .tape {
  top: -14px;
  inset-inline-start: 16%;
  transform: rotate(-6deg);
}
.service__label {
  position: absolute;
  top: calc(100% + 14px);
  inset-inline-end: 0;
  font: 600 10.5px / 1.6 var(--f-latin);
  letter-spacing: 0.24em;
  text-align: right;
  color: var(--ink-2);
}
.service__body {
  position: relative;
}

/* Client voices: a scrapbook wall of quotes and chat excerpts. */
.voices {
  background: var(--paper-2);
}
.voices__wall {
  columns: 3 320px;
  column-gap: clamp(16px, 2vw, 28px);
}
.voice,
.chat {
  break-inside: avoid;
  margin: 0 0 clamp(16px, 2vw, 28px);
  border-radius: 22px;
}
.voice {
  position: relative;
  padding: clamp(24px, 2.6vw, 36px);
  background: var(--white);
  box-shadow: 0 1px 0 var(--line);
}
.voice__mark {
  display: block;
  width: 34px;
  height: auto;
  margin-bottom: 16px;
  color: var(--accent-ink);
}
.voice blockquote {
  margin: 0;
}
.voice p {
  font-size: 16.5px;
  line-height: 1.95;
  color: var(--ink);
}
.voice figcaption {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-3);
}
.voice--dark {
  background: var(--charcoal);
}
.voice--dark .voice__mark {
  color: var(--beige);
}
.voice--dark p {
  color: var(--white);
}
.voice--dark figcaption {
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--sand);
}
.chat {
  position: relative;
  padding: 22px 18px 18px;
  background: url("/assets/deco/blueprint-dark.svg") center / 260% auto no-repeat,
    var(--paper);
  border: 1px solid var(--line-strong);
}
.chat::before {
  content: "";
  position: absolute;
  top: 8px;
  inset-inline-end: 18px;
  width: 120px;
  height: 26px;
  background: url("/assets/deco/torn.svg") center / 100% 100% no-repeat;
  transform: rotate(-4deg);
}
.chat__note {
  margin-bottom: 14px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.chat__lines {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chat__msg {
  max-width: 88%;
  padding: 9px 14px;
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.7;
  box-shadow: 0 1px 1px rgba(48, 49, 55, 0.08);
}
.chat__msg--client {
  justify-self: start;
  border-start-start-radius: 4px;
  background: var(--white);
  color: var(--ink);
}
.chat__msg--studio {
  justify-self: end;
  border-start-end-radius: 4px;
  background: var(--beige);
  color: var(--ink);
}

@media (max-width: 900px) {
  .hero[data-shader-bg] .hero__media {
    margin: 0 14px 14px;
    border-radius: 20px;
  }
  .hero__torn {
    display: none;
  }
  .work__grid {
    grid-template-columns: 1fr;
  }
  .work__intro {
    position: static;
  }
  .collage__label,
  .service__label {
    display: none;
  }
}
@media (max-width: 640px) {
  .collage__torn--a {
    left: -4%;
  }
  .collage__torn--b {
    right: -4%;
  }
  .collage__word--top {
    left: 0;
  }
  .collage__word--bottom {
    right: 0;
  }
}

/* WhatsApp shortcut */
.wa-float {
  position: fixed;
  bottom: max(20px, env(safe-area-inset-bottom));
  left: 20px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 12px 32px rgba(48, 49, 55, 0.22);
  transition:
    transform 0.6s var(--ease),
    background 0.3s;
}
.wa-float .icon {
  width: 26px;
  height: 26px;
}
.wa-float:hover {
  background: var(--beige);
  color: var(--ink);
}
.js .wa-float:not(.is-visible) {
  transform: translateY(130px);
}
.menu-open .wa-float,
.js .wa-float.is-over-footer {
  transform: translateY(130px);
}

/* ---------- Inner page heading ---------- */
.page-head {
  padding-block: clamp(56px, 8vw, 128px) clamp(44px, 5vw, 80px);
}
.page-head__title {
  font-family: var(--f-display);
  font-size: clamp(2.6rem, 6vw, 5.6rem);
  line-height: 1.2;
}
.page-head__lead {
  max-width: 34em;
  margin-top: clamp(20px, 2.6vw, 32px);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  font-weight: 300;
}
.page-head__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
  margin-top: 40px;
}
.page-404 .page-head {
  min-height: 62vh;
}
.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(32px, 4vw, 56px);
}
.jump a {
  display: inline-flex;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  font-size: 14px;
  transition:
    background 0.3s,
    color 0.3s,
    border-color 0.3s;
}
.jump span {
  font-family: var(--f-display);
  font-size: 12px;
  color: var(--accent-ink);
}
.jump a:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* ---------- Media frames ---------- */
.media {
  overflow: hidden;
  background: var(--sand);
}
.media__inner {
  height: 100%;
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media__inner[data-parallax] {
  height: 116%;
  margin-top: -8%;
}

/* ---------- Services page ---------- */
.service:nth-of-type(odd) {
  background: var(--paper-2);
}
.service__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: center;
}

.service__media {
  aspect-ratio: 1 / 1.08;
}
.service__body .lead {
  margin-top: 20px;
}
.service__facts {
  margin: clamp(28px, 3vw, 40px) 0;
}
.service__facts > div {
  padding: 18px 0;
  border-top: 1px solid var(--line-strong);
}
.service__facts dt {
  font-family: var(--f-display);
  font-size: 14px;
  color: var(--accent-ink);
}
.service__facts dd {
  margin-top: 6px;
  color: var(--ink-2);
}

/* ---------- Projects ---------- */
.projects {
  padding-bottom: clamp(88px, 10vw, 150px);
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.chip {
  position: relative;
  overflow: hidden;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  background: transparent;
  font-size: 14px;
  color: var(--ink-2);
  transition:
    background 0.35s,
    color 0.35s,
    border-color 0.35s,
    transform 0.2s var(--ease);
}
.chip span {
  margin-inline-start: 6px;
  font-family: var(--f-display);
  font-size: 12px;
  color: var(--ink-3);
}
.chip:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.chip:active {
  transform: scale(0.96);
}
.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.chip[aria-pressed="true"] span {
  color: var(--beige);
}
.card.is-out {
  display: none;
}
.card.is-entering {
  animation: cardIn 0.8s var(--ease) both;
}
@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}
.filters__empty {
  padding: 40px 0;
}

/* Project page */
.project-head {
  padding-block: clamp(36px, 5vw, 80px) clamp(32px, 4vw, 56px);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(28px, 4vw, 48px);
  font-size: 14px;
  color: var(--ink-2);
  transition: color 0.3s;
}
.back-link .icon {
  width: 18px;
  transition: transform 0.5s var(--ease);
}
.back-link:hover {
  color: var(--ink);
}
.back-link:hover .icon {
  transform: translateX(5px);
}
.project-head__status {
  margin-top: 18px;
  font-size: 15px;
  color: var(--ink-3);
}
.zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.project-cover .media {
  height: min(84vh, 880px);
}
.project-story__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
  gap: clamp(40px, 8vw, 140px);
  align-items: start;
}
.facts > div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.facts > div:last-child {
  border-bottom: 1px solid var(--line);
}
.facts dt {
  color: var(--ink-3);
}
.facts .chips a {
  font-size: 13px;
  padding: 2px 10px;
}
.statement {
  margin-bottom: clamp(28px, 3vw, 40px);
  font-size: clamp(1.25rem, 2.1vw, 1.85rem);
  line-height: 1.8;
  font-weight: 300;
  color: var(--ink);
}
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 28px);
  margin: 0 0 clamp(88px, 10vw, 150px);
  padding: 0;
  list-style: none;
}
.gallery__grid li:nth-child(3n + 1) {
  grid-column: 1 / -1;
}
.gallery .media {
  aspect-ratio: 16 / 10;
}
.gallery__grid li:nth-child(3n + 1) .media {
  aspect-ratio: 21 / 10;
}
.gallery .zoom .media img {
  transition: transform 1.2s var(--ease);
}
.gallery .zoom:hover .media img {
  transform: scale(1.04);
}

/* Lightbox */
.lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(48, 49, 55, 0.97);
  color: var(--on-dark);
}
.lightbox[open] {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  animation: fadeIn 0.5s var(--ease);
}
.lightbox::backdrop {
  background: transparent;
}
.lightbox__stage {
  display: grid;
  place-items: center;
  min-height: 0;
  padding: clamp(16px, 4vw, 48px);
  touch-action: pan-y;
}
.lightbox__stage img {
  max-width: 100%;
  max-height: calc(100dvh - 140px);
  object-fit: contain;
  transition:
    opacity 0.4s var(--ease),
    transform 0.6s var(--ease);
}
.lightbox__stage img.is-swapping {
  opacity: 0;
  transform: scale(0.98);
}
.lightbox__bar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px clamp(16px, 4vw, 48px) max(20px, env(safe-area-inset-bottom));
}
.lightbox__count {
  font-family: var(--f-display);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--beige);
}
.lightbox__title {
  flex: 1;
  font-size: 15px;
}
.lightbox__nav {
  display: flex;
  gap: 8px;
}
.lightbox__nav button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: none;
  color: var(--on-dark);
  transition:
    background 0.3s,
    color 0.3s,
    transform 0.2s;
}
.lightbox__nav button:hover {
  background: var(--on-dark);
  color: var(--dark);
}
.lightbox__nav button:active {
  transform: scale(0.94);
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
}

/* Previous / next project */
.pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 24px);
  padding-bottom: clamp(88px, 10vw, 150px);
}
.pager__link {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-content: end;
  gap: 6px;
  min-height: clamp(200px, 22vw, 300px);
  padding: clamp(20px, 2.6vw, 36px);
  color: var(--paper);
}
.pager__link--next {
  justify-items: end;
  text-align: end;
}
.pager__link img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.pager__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(48, 49, 55, 0.15),
    rgba(48, 49, 55, 0.75)
  );
  transition: background 0.5s;
}
.pager__link:hover img {
  transform: scale(1.05);
}
.pager__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  opacity: 0.85;
}
.pager__label .icon {
  width: 16px;
}
.pager__title {
  font-family: var(--f-display);
  font-size: clamp(1.3rem, 2.4vw, 2.1rem);
}

/* ---------- Process page ---------- */
.timeline-section__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(40px, 8vw, 140px);
  align-items: start;
}
.timeline-section__aside {
  position: sticky;
  top: calc(var(--header) + 32px);
}
.timeline-section__aside .media {
  aspect-ratio: 4 / 5;
}
.timeline {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
  border-inline-start: 1px solid var(--line-strong);
}
.timeline::after {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-start: -1px;
  width: 1px;
  height: calc(var(--p, 1) * 100%);
  background: var(--ink);
}
.timeline__step {
  position: relative;
  padding: 0 clamp(28px, 4vw, 56px) clamp(56px, 7vw, 96px);
}
.timeline__step:last-child {
  padding-bottom: 0;
}
.timeline__step::before {
  content: "";
  position: absolute;
  top: 12px;
  inset-inline-start: -5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink);
}
.timeline__num {
  font-family: var(--f-display);
  font-size: 14px;
  color: var(--accent-ink);
}
.timeline__step .h3 {
  margin: 8px 0 12px;
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
}
.timeline__step p {
  max-width: 30em;
  font-size: clamp(1.02rem, 1.25vw, 1.15rem);
}
.prepare {
  background: var(--paper-2);
}
.prepare__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.prepare__list li {
  padding-top: 22px;
  border-top: 1px solid var(--ink);
}
.prepare__list span {
  font-family: var(--f-display);
  font-size: 13px;
  color: var(--accent-ink);
}
.prepare__list h3 {
  margin-top: 12px;
  font-family: var(--f-display);
  font-size: 1.2rem;
  line-height: 1.5;
}
.prepare__list p {
  margin-top: 8px;
  font-size: 15px;
}
.prepare__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
  margin-top: clamp(44px, 5vw, 64px);
}
.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: start;
}
.faq__list {
  border-top: 1px solid var(--line-strong);
}
.faq__item {
  border-bottom: 1px solid var(--line-strong);
}
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(20px, 2.2vw, 28px) 0;
  list-style: none;
  cursor: pointer;
  font-family: var(--f-display);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.5;
  transition: color 0.3s;
}
.faq__item summary::-webkit-details-marker {
  display: none;
}
.faq__item summary:hover {
  color: var(--accent-ink);
}
.faq__item summary i {
  position: relative;
  flex: none;
  width: 16px;
  height: 16px;
}
.faq__item summary i::before,
.faq__item summary i::after {
  content: "";
  position: absolute;
  top: 50%;
  inset-inline: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.5s var(--ease);
}
.faq__item summary i::after {
  transform: rotate(90deg);
}
.faq__item[open] summary i::after {
  transform: rotate(0deg);
}
.faq__item::details-content {
  block-size: 0;
  overflow: hidden;
  transition:
    block-size 0.6s var(--ease),
    content-visibility 0.6s allow-discrete;
}
.faq__item[open]::details-content {
  block-size: auto;
}
.faq__answer p {
  max-width: 40em;
  padding-bottom: clamp(20px, 2.4vw, 30px);
}

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(40px, 8vw, 140px);
  align-items: center;
}
.about__media {
  aspect-ratio: 4 / 5;
}
.about__text .lead {
  margin-top: 24px;
}
.about__text p + p {
  margin-top: 16px;
}
.founder {
  display: grid;
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
}
.founder strong {
  font-family: var(--f-display);
  font-size: 1.35rem;
  font-weight: 500;
}
.founder span {
  font-size: 14px;
  color: var(--ink-3);
}
.values {
  background: var(--paper-2);
}
.values__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: clamp(40px, 5vw, 64px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}
.values__list li {
  display: grid;
  gap: 24px;
  padding: 28px 24px 28px 0;
}
.values__list li + li {
  padding-inline-start: 24px;
  border-inline-start: 1px solid var(--line-strong);
}
.values__list span {
  font-family: var(--f-display);
  font-size: 13px;
  color: var(--accent-ink);
}
.values__list strong {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 2.6vw, 2.4rem);
  font-weight: 500;
  line-height: 1.3;
}
.manifesto {
  padding-block: clamp(110px, 13vw, 200px);
  background: var(--dark);
  color: var(--on-dark);
  text-align: center;
}
.manifesto__quote {
  font-family: var(--f-display);
  font-size: clamp(2rem, 4.8vw, 4.4rem);
  line-height: 1.35;
  color: var(--on-dark);
}
.manifesto__source {
  margin-top: 32px;
  font-size: 14px;
  color: var(--on-dark-2);
}

/* ---------- Contact ---------- */
.contact {
  padding-top: 0;
}
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: start;
}
.channels {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}
.channel {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 24px;
  align-items: center;
  gap: 24px;
  padding: clamp(24px, 3vw, 36px) 8px;
  border-bottom: 1px solid var(--line-strong);
  transition: padding 0.6s var(--ease);
}
.channel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--paper-2);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.6s var(--ease);
}
.channel:hover {
  padding-inline-start: 28px;
}
.channel:hover::before {
  transform: scaleY(1);
}
.channel__label {
  display: grid;
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 2.8vw, 2.5rem);
  line-height: 1.4;
}
.channel__label small {
  font-family: var(--f-body);
  font-size: 14px;
  color: var(--ink-3);
}
.channel__value {
  font-size: 16px;
  color: var(--ink-2);
}
.channel .icon {
  transition: transform 0.5s var(--ease);
}
.channel:hover .icon {
  transform: translateX(-6px);
  color: var(--accent-ink);
}
.contact__aside {
  display: grid;
  gap: 18px;
}
.contact__aside .media {
  aspect-ratio: 4 / 3;
  margin-bottom: 12px;
}
.contact__aside .btn {
  justify-self: start;
  margin-top: 8px;
}
.placeholder {
  padding-inline-start: 14px;
  border-inline-start: 2px solid var(--line-strong);
  font-size: 13px;
  color: var(--ink-3);
}

/* ---------- Inquiry (start page) ---------- */
.inquiry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
  gap: clamp(40px, 6vw, 104px);
  align-items: start;
  padding-bottom: clamp(88px, 10vw, 150px);
}
.inquiry__aside {
  position: sticky;
  top: calc(var(--header) + 24px);
  display: grid;
  gap: 32px;
}
.stepper {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.stepper li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink-3);
  transition: color 0.4s;
}
.stepper span {
  font-family: var(--f-display);
  font-size: 12px;
}
.stepper li.is-done {
  color: var(--ink-2);
}
.stepper li[aria-current] {
  color: var(--ink);
  font-weight: 500;
}
.stepper li[aria-current] span {
  color: var(--accent-ink);
}
.note {
  padding: 22px 24px;
  background: var(--paper-2);
  font-size: 14px;
}
.note strong {
  display: block;
  font-weight: 500;
}
.note p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.8;
}
.inquiry__direct {
  display: grid;
  gap: 6px;
  font-size: 15px;
}
.inquiry__direct span {
  font-size: 13px;
  color: var(--ink-3);
}
.inquiry__direct a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
}
.inquiry__direct a:hover {
  color: var(--accent-ink);
}
.progress {
  height: 2px;
  margin-bottom: clamp(32px, 4vw, 48px);
  overflow: hidden;
  background: var(--line);
}
.progress i {
  display: block;
  width: 25%;
  height: 100%;
  background: var(--ink);
  transition: width 0.7s var(--ease);
}
.form-step {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.form-step legend,
.form-step > .h3 {
  margin-bottom: clamp(24px, 3vw, 36px);
  padding: 0;
}
.js .form-step:not(.is-current) {
  display: none;
}
.js .form-step + .form-step {
  margin-top: 0;
}
.form-step + .form-step {
  margin-top: 56px;
}
.form-step.is-current {
  animation: stepIn 0.7s var(--ease) both;
}
@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}
html:not(.js) .review {
  display: none;
}
.options {
  display: grid;
  gap: 12px;
}
.options--cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.options--inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.option {
  position: relative;
  display: block;
  cursor: pointer;
}
.option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}
.option__box {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: 6px;
  height: 100%;
  padding: 22px 24px;
  border: 1px solid var(--line-strong);
  transition:
    border-color 0.3s,
    background 0.35s,
    color 0.35s,
    transform 0.2s var(--ease);
}
.options--inline .option__box {
  padding: 10px 18px;
}
.option:hover .option__box {
  border-color: var(--ink);
}
.option:active .option__box {
  transform: scale(0.98);
}
.option input:focus-visible + .option__box {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.option input:checked + .option__box {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.option__title {
  font-family: var(--f-display);
  font-size: 1.15rem;
  line-height: 1.5;
}
.options--inline .option__title {
  font-family: var(--f-body);
  font-size: 15px;
}
.option__note {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-3);
}
.option input:checked + .option__box .option__note {
  color: var(--on-dark-2);
}
.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 32px;
}
.field {
  display: grid;
  align-content: start;
  gap: 8px;
}
.field--full {
  grid-column: 1 / -1;
}
.field__label {
  font-size: 15px;
}
.field__label small {
  margin-inline-start: 6px;
  font-size: 12px;
  color: var(--ink-3);
}
.req {
  color: var(--accent-ink);
}
input,
select,
textarea {
  width: 100%;
  min-width: 0;
  padding: 12px 2px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  font-size: 16px;
  color: var(--ink);
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}
input::placeholder,
textarea::placeholder {
  color: #8e8f93;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-ink);
  box-shadow: 0 1px 0 var(--ink);
}
select {
  appearance: none;
  padding-inline-end: 28px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='m6 9 6 6 6-6' fill='none' stroke='%23303137' stroke-width='1.5'/></svg>")
    no-repeat left 2px center / 16px;
}
textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.8;
}
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: #a4472f;
}
.form-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(36px, 4vw, 52px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.form-nav [data-prev].is-hidden {
  visibility: hidden;
}
.review__hint {
  margin-top: -12px;
}
.review__summary {
  margin: 24px 0 28px;
  padding: clamp(20px, 3vw, 32px);
  background: var(--paper-2);
  font: 15px/2 var(--f-body);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--ink);
}
.review__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
}
.review__actions .icon-wa {
  width: 20px;
  height: 20px;
}
.review__status {
  margin-top: 16px;
  font-size: 14px;
}
.form-legend {
  margin: 0 0 28px;
  font-size: 13px;
  color: var(--ink-3);
}
.field__hint {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-3);
}
.field__error {
  font-size: 13px;
  color: var(--danger);
}
.field__error:empty {
  display: none;
}
.field__error:not(:empty)::before {
  content: "⚠ ";
}
.consents {
  gap: 14px;
  padding-top: 8px;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.8;
  cursor: pointer;
}
.check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 5px;
  padding: 0;
  accent-color: var(--charcoal);
}
.check a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.check small {
  color: var(--ink-3);
}
/* Honeypot: invisible to people and assistive technology, filled only by bots. */
.hp {
  position: absolute;
  inset-inline-start: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
dl.review__summary {
  display: grid;
  grid-template-columns: minmax(120px, max-content) 1fr;
  gap: 4px 24px;
  white-space: normal;
  line-height: 1.8;
}
dl.review__summary dt {
  color: var(--ink-3);
  font-size: 14px;
}
dl.review__summary dd {
  margin: 0;
  white-space: pre-wrap;
}
.review__status:empty {
  display: none;
}
.review__status {
  padding: 16px 20px;
  border-inline-start: 3px solid var(--line-strong);
  background: var(--paper-2);
  line-height: 1.8;
}
.review__status[data-tone="error"] {
  border-color: var(--danger);
}
.review__status[data-tone="busy"] {
  border-color: var(--ink);
}
.review__status p + p,
.review__status p + .review__actions {
  margin-top: 10px;
}
.review__status .review__actions {
  margin-top: 12px;
}
[data-send][aria-busy="true"] {
  opacity: 0.7;
  cursor: progress;
}
.form-done {
  padding: clamp(24px, 4vw, 40px);
  background: var(--charcoal);
  color: var(--white);
  outline: none;
}
.form-done h2 {
  color: var(--white);
  margin-bottom: 16px;
}
.form-done p {
  color: var(--beige);
  line-height: 1.9;
}
.form-done p + p {
  margin-top: 10px;
}
.form-done__ref {
  display: inline-block;
  padding: 2px 10px;
  margin-inline-start: 6px;
  background: var(--beige);
  color: var(--charcoal);
  font-family: var(--f-latin);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.form-done .text-link {
  color: var(--white);
}
.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.footer__bottom a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Privacy notice */
.legal {
  max-width: 820px;
  padding-bottom: clamp(64px, 8vw, 120px);
}
.legal__meta {
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 32px;
}
.legal__section + .legal__section {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.legal__section h2 {
  margin-bottom: 14px;
}
.legal__section p,
.legal__list li {
  line-height: 1.95;
  color: var(--ink-2);
}
.legal__section p + p {
  margin-top: 12px;
}
.legal__section a,
.legal__section .link-button {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal__list {
  display: grid;
  gap: 8px;
  padding-inline-start: 20px;
  list-style: disc;
}
.legal code {
  font-family: var(--f-latin);
  font-size: 13px;
  background: var(--paper-2);
  padding: 1px 6px;
}

/* Measurement consent: a quiet bar that never blocks the page. */
.consent {
  position: fixed;
  z-index: 60;
  inset-inline: 16px;
  bottom: 16px;
  max-width: 620px;
  margin-inline-start: auto;
  display: grid;
  gap: 14px;
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  box-shadow: 0 18px 40px rgba(48, 49, 55, 0.14);
  font-size: 14px;
  line-height: 1.8;
}
.consent strong {
  font-weight: 500;
}
.consent a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.consent__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

/* "How did you hear about Mabna?": a short welcome dialog, easy to skip. */
.welcome {
  width: min(440px, calc(100vw - 24px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 46px 32px 22px;
  overflow: visible;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: var(--paper);
  color: var(--ink);
  text-align: center;
  box-shadow:
    0 30px 80px rgba(48, 49, 55, 0.28),
    0 6px 18px rgba(48, 49, 55, 0.12);
}
.welcome::backdrop {
  background: rgba(48, 49, 55, 0.42);
  backdrop-filter: blur(5px);
}
.welcome__close {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink-2);
  cursor: pointer;
  transition: background 0.25s;
}
.welcome__close:hover {
  background: var(--paper-2);
  color: var(--ink);
}
.welcome__close .icon {
  width: 18px;
  height: 18px;
}
.welcome__step {
  display: grid;
  justify-items: center;
  gap: 14px;
}
.welcome__mark {
  width: 58px;
  height: auto;
  margin-bottom: 2px;
  color: var(--charcoal);
}
.welcome__title {
  font-family: var(--f-display);
  font-size: clamp(1.55rem, 4vw, 1.9rem);
  font-weight: 500;
  line-height: 1.3;
}
.welcome__title:focus {
  outline: none;
}
.welcome__lead {
  max-width: 40ch;
  text-wrap: balance;
  margin-top: -4px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-2);
}
.welcome__form {
  position: relative;
  z-index: 2; /* the open list stays above the note and buttons below */
  display: grid;
  gap: 12px;
  width: 100%;
  margin-top: 8px;
  text-align: start;
}
.welcome__other input {
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--white);
}
.welcome__other input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(204, 196, 177, 0.55);
}
.welcome__continue {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  padding: 0 20px;
  border: 0;
  border-radius: 14px;
  background: var(--charcoal);
  color: var(--white);
  font: 500 16px/1.2 var(--f-body);
  cursor: pointer;
  box-shadow:
    0 8px 20px rgba(48, 49, 55, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition:
    background 0.3s,
    transform 0.2s var(--ease),
    opacity 0.3s;
}
.welcome__continue:hover {
  background: #1f2024;
}
.welcome__continue:active {
  transform: scale(0.985);
}
.welcome__continue:focus-visible {
  outline: 2px solid var(--charcoal);
  outline-offset: 3px;
}
/* No answer chosen yet: quieter, still usable (5:1 with white text). */
.welcome__continue.is-idle {
  background: #707176;
  box-shadow: none;
}
.welcome__continue:disabled {
  opacity: 0.7;
  cursor: progress;
}
.welcome__status {
  font-size: 14px;
  color: var(--danger);
  text-align: center;
}
.welcome__status:empty {
  display: none;
}
.welcome__note {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-3);
}
.welcome__note a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.welcome__skip {
  padding: 6px 12px;
  border: 0;
  background: none;
  color: var(--ink-2);
  font: 400 14px/1.4 var(--f-body);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.welcome__skip:hover {
  color: var(--ink);
}
.welcome__actions {
  display: grid;
  justify-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 8px;
}
.welcome__dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
}
.welcome__dots i {
  width: 22px;
  height: 4px;
  border-radius: 4px;
  background: var(--sand);
  transition:
    width 0.45s var(--ease),
    background 0.45s;
}
.welcome__dots i.is-active {
  width: 32px;
  background: var(--charcoal);
}

/* Icon dropdown (js/picker.js) over a native select that stays the real field. */
.pick {
  position: relative;
}
.pick__native {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  opacity: 0;
  pointer-events: none;
}
.pick__button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 12px 2px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font: 400 16px/1.4 var(--f-body);
  text-align: start;
  cursor: pointer;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}
.pick__button:focus-visible {
  outline: none;
  border-color: var(--accent-ink);
  box-shadow: 0 1px 0 var(--ink);
}
.pick__button[aria-invalid="true"] {
  border-color: var(--danger);
}
.pick__value {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.pick__value span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.pick__button.is-placeholder .pick__value {
  color: #77787c;
}
.pick__icon {
  flex: none;
  width: 20px;
  height: 20px;
}
.pick__chevron {
  flex: none;
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease);
}
.pick.is-open .pick__chevron {
  transform: rotate(180deg);
}
.pick--boxed .pick__button {
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(48, 49, 55, 0.06);
}
.pick--boxed .pick__button:hover {
  border-color: var(--ink-3);
}
.pick--boxed .pick__button:focus-visible {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(204, 196, 177, 0.55);
}
.pick__list {
  position: absolute;
  z-index: 20;
  inset-inline: 0;
  top: calc(100% + 8px);
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
  border: 1px solid #1c1d21;
  border-radius: 14px;
  background: var(--charcoal);
  color: var(--white);
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.28),
    0 4px 10px rgba(0, 0, 0, 0.18);
}
/* Animated ancestors form their own layers; lift the one holding an open list. */
.form-step:has(.pick.is-open),
.field:has(.pick.is-open) {
  position: relative;
  z-index: 30;
}
.pick--up .pick__list {
  top: auto;
  bottom: calc(100% + 8px);
}
.pick__list:focus {
  outline: none;
}
.pick__option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 15px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
}
.pick__option .pick__icon {
  color: var(--beige);
}
.pick__option.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}
.pick__list:focus-visible .pick__option.is-active {
  box-shadow: inset 0 0 0 1px var(--beige);
}
.pick__option[aria-selected="true"]::after {
  content: "✓";
  margin-inline-start: auto;
  color: var(--beige);
}

/* 360° tour (js/tour.js): a WebGL view of an equirectangular panorama. Without
   WebGL2 the panorama stays a flat image and the controls stay hidden. */
.tour__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 26rem);
  align-items: end;
  gap: 24px 48px;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.tour__lead {
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink-2);
}
.tour__stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  max-height: 82svh;
  width: 100%;
  background: var(--charcoal);
  touch-action: none;
  user-select: none;
  cursor: grab;
}
.tour:not(.has-viewer) .tour__stage {
  touch-action: auto;
  cursor: default;
}
.tour__stage.is-dragging {
  cursor: grabbing;
}
.tour__stage:focus-visible {
  outline: 2px solid var(--charcoal);
  outline-offset: 4px;
}
.tour__flat,
.tour__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.tour__flat {
  object-fit: cover;
  transition: opacity 0.6s var(--ease);
}
.tour__canvas {
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.tour.is-live .tour__canvas {
  opacity: 1;
}
.tour.is-live .tour__flat {
  opacity: 0;
}
.tour__stage.is-loading .tour__canvas {
  opacity: 0.35;
}
.tour__stage::after {
  content: "";
  position: absolute;
  inset: 70% 0 0;
  pointer-events: none;
  background: linear-gradient(transparent, rgba(23, 24, 27, 0.55));
}
.tour__hint {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(23, 24, 27, 0.55);
  color: var(--white);
  font-size: 14px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
}
.has-viewer .tour__hint {
  display: inline-flex;
}
.tour__hint.is-gone,
.tour__stage.is-loading .tour__hint {
  opacity: 0;
}
/* A Momento360-style viewer: scene name top corner, round tools down the other
   side, image-only thumbnails between the arrows, names as tooltips. */
.tour__spin {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: var(--white);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.tour__stage.is-loading .tour__spin {
  opacity: 1;
  animation: tourSpin 0.9s linear infinite;
}
@keyframes tourSpin {
  to {
    transform: rotate(1turn);
  }
}
.tour__title {
  position: absolute;
  top: 16px;
  inset-inline-start: 16px;
  z-index: 3;
  display: none;
  max-width: calc(100% - 100px);
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(23, 24, 27, 0.55);
  color: var(--white);
  font-size: 13px;
}
.tour__tools {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  z-index: 3;
  display: none;
  flex-direction: column;
  gap: 10px;
}
.tour__info {
  position: absolute;
  top: 16px;
  inset-inline-end: 72px;
  z-index: 4;
  width: min(300px, calc(100% - 104px));
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(23, 24, 27, 0.82);
  color: var(--white);
  font-size: 13px;
  line-height: 1.8;
}
.tour__info p {
  color: var(--white);
}
.tour__info p + p {
  margin-top: 8px;
  color: var(--sand);
}
.tour__stage:has(.tour__info:not([hidden])) .tour__hint {
  opacity: 0;
}
.tour__bar {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 3;
  display: none;
  padding: 0 16px 14px;
  color: var(--white);
}
.has-viewer .tour__tools,
.has-viewer .tour__title {
  display: flex;
}
.has-viewer .tour__bar {
  display: block;
}
.tour__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.tour__tool {
  display: grid;
  flex: none;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  background: rgba(23, 24, 27, 0.35);
  color: var(--white);
  cursor: pointer;
  transition:
    background 0.25s,
    transform 0.25s var(--ease);
}
.tour__tool:hover,
.tour__tool[aria-expanded="true"] {
  background: rgba(23, 24, 27, 0.7);
}
.tour__tool:focus-visible,
.tour__scene:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}
.tour__strip {
  display: flex;
  gap: 4px;
  max-width: min(620px, 100% - 112px);
  overflow-x: auto;
  /* room above the thumbnails for the name tooltip */
  padding: 34px 2px 6px;
  margin-top: -34px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.85) rgba(255, 255, 255, 0.2);
}
.tour__scene {
  position: relative;
  flex: none;
  width: clamp(96px, 10vw, 148px);
  padding: 0;
  border: 0;
  background: none;
  color: var(--white);
  cursor: pointer;
}
.tour__thumb {
  display: block;
  aspect-ratio: 16 / 9;
  border: 2px solid transparent;
  background: var(--charcoal) center / 320% auto no-repeat;
  opacity: 0.6;
  transition:
    opacity 0.25s,
    border-color 0.25s;
}
.tour__scene:hover .tour__thumb,
.tour__scene:focus-visible .tour__thumb,
.tour__scene[aria-pressed="true"] .tour__thumb {
  opacity: 1;
}
.tour__scene[aria-pressed="true"] .tour__thumb {
  border-color: var(--white);
}
.tour__scene span {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  max-width: 180px;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(23, 24, 27, 0.85);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translate(-50%, 4px);
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.tour__scene:hover span,
.tour__scene:focus-visible span {
  opacity: 1;
  transform: translate(-50%, 0);
}
/* Momento360 tour: poster with a start button until the visitor opens it. */
.momento {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  max-height: 82svh;
  width: 100%;
  border-radius: 24px;
  background: var(--charcoal);
}
.momento > .media,
.momento > img,
.momento .media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.momento::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(23, 24, 27, 0.66);
  pointer-events: none;
}
.momento.is-live::after {
  display: none;
}
.momento--brand {
  background: radial-gradient(70% 90% at 50% 40%, #4a4b52 0%, var(--charcoal) 75%);
}
.momento--brand::after {
  display: none;
}
.momento > .momento__mark {
  position: absolute;
  inset: auto;
  top: 50%;
  left: 50%;
  width: min(60%, 520px);
  height: auto;
  object-fit: contain;
  opacity: 0.08;
  transform: translate(-50%, -50%);
}
.momento__start {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  color: var(--white);
  text-align: center;
}
.momento__start p {
  color: var(--white);
  font-size: 13px;
}
.momento__out {
  color: var(--white);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.momento__out:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}
.momento__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
@media (max-width: 760px) {
  .momento {
    aspect-ratio: 4 / 5;
    border-radius: 18px;
  }
}

/* Full screen: the browser's own, or a fixed overlay where it is missing (iPhone). */
.tour__stage:fullscreen {
  max-height: none;
  aspect-ratio: auto;
}
.tour.is-full .tour__stage {
  position: fixed;
  inset: 0;
  z-index: 90;
  max-height: none;
  aspect-ratio: auto;
}
html.tour-lock {
  overflow: hidden;
}
@media (max-width: 760px) {
  .tour__head {
    grid-template-columns: 1fr;
  }
  .tour__stage {
    aspect-ratio: 4 / 5;
  }
  .tour__scene {
    width: 84px;
  }
}

/* Liquid glass, ported from a 21st.dev LiquidButton (React/Tailwind) to plain CSS:
   rim highlights plus an SVG displacement of whatever is behind (#container-glass
   in the layout; Chromium). Other browsers keep the rim and a soft tint.
   .liquid-glass is for dark or photographic backgrounds, .liquid-glass--light
   for pale ones. */
.glass-filter {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.liquid-glass {
  position: relative;
  isolation: isolate;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow:
    0 0 8px rgba(0, 0, 0, 0.03),
    0 2px 6px rgba(0, 0, 0, 0.08),
    inset 3px 3px 0.5px -3.5px rgba(255, 255, 255, 0.09),
    inset -3px -3px 0.5px -3.5px rgba(255, 255, 255, 0.85),
    inset 1px 1px 1px -0.5px rgba(255, 255, 255, 0.6),
    inset -1px -1px 1px -0.5px rgba(255, 255, 255, 0.6),
    inset 0 0 6px 6px rgba(255, 255, 255, 0.12),
    inset 0 0 2px 2px rgba(255, 255, 255, 0.06),
    0 0 12px rgba(0, 0, 0, 0.15);
}
.liquid-glass--light {
  background: rgba(255, 255, 255, 0.18);
  box-shadow:
    0 0 6px rgba(0, 0, 0, 0.03),
    0 2px 6px rgba(0, 0, 0, 0.08),
    inset 3px 3px 0.5px -3px rgba(0, 0, 0, 0.9),
    inset -3px -3px 0.5px -3px rgba(0, 0, 0, 0.85),
    inset 1px 1px 1px -0.5px rgba(0, 0, 0, 0.6),
    inset -1px -1px 1px -0.5px rgba(0, 0, 0, 0.6),
    inset 0 0 6px 6px rgba(0, 0, 0, 0.12),
    inset 0 0 2px 2px rgba(0, 0, 0, 0.06),
    0 0 12px rgba(255, 255, 255, 0.15);
}
.liquid-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  -webkit-backdrop-filter: blur(10px) saturate(1.3);
  backdrop-filter: url("#container-glass");
}
@media (prefers-reduced-motion: no-preference) {
  .welcome[open] {
    animation: welcomeIn 0.6s var(--ease) both;
  }
  .welcome[open]::backdrop {
    animation: fadeIn 0.5s ease both;
  }
  .welcome__step:not([hidden]) > * {
    animation: welcomeRise 0.7s var(--ease) both;
  }
  .welcome__step:not([hidden]) > :nth-child(2) {
    animation-delay: 0.06s;
  }
  .welcome__step:not([hidden]) > :nth-child(3) {
    animation-delay: 0.12s;
  }
  .welcome__step:not([hidden]) > :nth-child(n + 4) {
    animation-delay: 0.18s;
  }
  .pick__list:not([hidden]) {
    animation: pickIn 0.24s var(--ease) both;
  }
  .pick--up .pick__list:not([hidden]) {
    animation-name: pickInUp;
  }
  a.liquid-glass,
  button.liquid-glass {
    transition: transform 0.3s var(--ease);
  }
  a.liquid-glass:hover,
  button.liquid-glass:hover {
    transform: scale(1.04);
  }
}
@keyframes welcomeIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
}
@keyframes welcomeRise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
@keyframes pickIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}
@keyframes pickInUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
@media (max-width: 640px) {
  .consent {
    inset-inline: 10px;
    bottom: 10px;
    padding: 16px;
  }
  .welcome {
    width: 100%;
    margin: auto auto 0;
    padding: 42px 20px calc(18px + env(safe-area-inset-bottom));
    border-bottom: 0;
    border-radius: 22px 22px 0 0;
  }
  dl.review__summary {
    grid-template-columns: 1fr;
    gap: 0;
  }
  dl.review__summary dd {
    margin-bottom: 10px;
  }
}

/* ==========================================================================
   Motion — only when the visitor has not asked for reduced motion.
   html.motion is set by /js/main.js once the reveal observer is running,
   so content is never hidden if scripts fail.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
  @view-transition {
    navigation: auto;
  }
  ::view-transition-old(root) {
    animation: vtOut 0.4s var(--ease-io) both;
  }
  ::view-transition-new(root) {
    animation: vtIn 0.7s var(--ease) both;
  }

  /* Page-load choreography */
  .hero__media {
    animation: mediaIn 1.6s var(--ease-io) both;
  }
  .hero__slide.is-active img {
    animation: kenburns 9s var(--ease) both;
  }
  .hero__dot.is-active i::after {
    transform: scaleX(0);
    animation: dotFill var(--slide-ms, 7s) linear forwards;
  }
  .is-paused .hero__dot.is-active i::after {
    animation-play-state: paused;
  }
  .hero__title .line > span,
  .page-head__title .line > span {
    animation: lineUp 1.2s var(--ease) both;
  }
  .hero__title .line:nth-child(2) > span,
  .page-head__title .line:nth-child(2) > span {
    animation-delay: 0.12s;
  }
  .hero__title .line:nth-child(3) > span,
  .page-head__title .line:nth-child(3) > span {
    animation-delay: 0.24s;
  }
  .hero .eyebrow,
  .page-head .eyebrow,
  .project-head .back-link {
    animation: fadeUp 1s var(--ease) 0.1s both;
  }
  .hero__lead,
  .page-head__lead,
  .project-head__status {
    animation: fadeUp 1.1s var(--ease) 0.35s both;
  }
  .hero__actions,
  .jump,
  .page-head__actions {
    animation: fadeUp 1.1s var(--ease) 0.5s both;
  }
  .hero__facts,
  .hero__caption {
    animation: fadeIn 1.2s var(--ease) 0.9s both;
  }
  .marquee__track {
    animation: marquee 60s linear infinite;
  }
  .marquee:hover .marquee__track {
    animation-play-state: paused;
  }
  @media (hover: none) {
    .maquette .model {
      animation: drift 10s ease-in-out infinite;
    }
    .brand-object__stack {
      animation: driftMark 9s ease-in-out infinite;
    }
  }

  /* Scroll reveals */
  .motion
    [data-reveal]:not(
      [data-reveal="lines"],
      [data-reveal="media"],
      [data-reveal="steps"]
    ) {
    opacity: 0;
    transform: translateY(28px);
    transition:
      opacity 1s var(--ease),
      transform 1.2s var(--ease);
    transition-delay: calc(var(--i, 0) * 90ms);
  }
  .motion
    [data-reveal].is-in:not(
      [data-reveal="lines"],
      [data-reveal="media"],
      [data-reveal="steps"]
    ) {
    opacity: 1;
    transform: none;
  }
  .motion [data-reveal="lines"] .line > span {
    transform: translateY(110%);
    transition: transform 1.2s var(--ease);
  }
  .motion [data-reveal="lines"] .line:nth-child(2) > span {
    transition-delay: 0.1s;
  }
  .motion [data-reveal="lines"] .line:nth-child(3) > span {
    transition-delay: 0.2s;
  }
  .motion [data-reveal="lines"].is-in .line > span {
    transform: none;
  }
  /* The wipe sits on the inner layer: a clipped target can be missed by IntersectionObserver */
  .motion [data-reveal="media"] > .media__inner {
    clip-path: inset(100% 0 0 0);
    transition: clip-path 1.4s var(--ease-io);
    transition-delay: calc(var(--i, 0) * 90ms);
  }
  .motion [data-reveal="media"] img {
    transform: scale(1.16);
    transition: transform 2s var(--ease);
  }
  .motion [data-reveal="media"].is-in > .media__inner {
    clip-path: inset(0);
  }
  .motion [data-reveal="media"].is-in img {
    transform: none;
  }
  .motion .card__link:hover [data-reveal="media"].is-in img,
  .motion .gallery .zoom:hover [data-reveal="media"].is-in img {
    transform: scale(1.04);
    transition-duration: 1.2s;
  }
  .motion [data-reveal="steps"]::before {
    transform: scaleX(0);
    transition: transform 1.8s var(--ease-io);
  }
  .motion [data-reveal="steps"].is-in::before {
    transform: none;
  }
  .motion [data-reveal="steps"] .step {
    opacity: 0;
    transform: translateY(24px);
    transition:
      opacity 1s var(--ease),
      transform 1.2s var(--ease);
  }
  .motion [data-reveal="steps"].is-in .step {
    opacity: 1;
    transform: none;
  }
  .motion [data-reveal="steps"] .step:nth-child(2) {
    transition-delay: 0.25s;
  }
  .motion [data-reveal="steps"] .step:nth-child(3) {
    transition-delay: 0.5s;
  }
  .motion [data-reveal="steps"] .step:nth-child(4) {
    transition-delay: 0.75s;
  }
}

@keyframes vtOut {
  to {
    opacity: 0;
    transform: translateY(-14px);
  }
}
@keyframes vtIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}
@keyframes mediaIn {
  from {
    clip-path: inset(0 0 0 100%);
  }
  to {
    clip-path: inset(0);
  }
}
@keyframes kenburns {
  from {
    transform: scale(1.12);
  }
  to {
    transform: scale(1);
  }
}
@keyframes dotFill {
  to {
    transform: scaleX(1);
  }
}
@keyframes lineUp {
  from {
    transform: translateY(110%);
  }
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
}
@keyframes marquee {
  to {
    transform: translateX(50%);
  }
}
@keyframes driftMark {
  0%,
  100% {
    transform: rotateX(-14deg) rotateY(-30deg);
  }
  50% {
    transform: rotateX(-9deg) rotateY(-14deg);
  }
}
@keyframes drift {
  0%,
  100% {
    transform: rotateX(-15deg) rotateY(22deg);
  }
  50% {
    transform: rotateX(-11deg) rotateY(36deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .site-nav {
    display: none;
  }
  .site-header {
    grid-template-columns: auto 1fr;
  }
  .menu-btn {
    display: inline-flex;
  }
  /* Without JavaScript the full-screen menu cannot open: keep the links visible */
  html:not(.js) .site-header {
    grid-template-columns: auto 1fr;
    height: auto;
    padding-block: 12px;
  }
  html:not(.js) .site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
  }
  html:not(.js) .menu-btn {
    display: none;
  }
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .entry__item {
    grid-template-columns: 44px minmax(0, 1fr) auto 24px;
  }
  .entry__text {
    display: none;
  }
  .prepare__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 44px;
  }
  .footer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  :root {
    --header: 72px;
  }
  .hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .hero__copy {
    padding: 40px var(--gutter) 36px;
  }
  .hero__foot {
    padding-top: 32px;
  }
  .hero__media {
    height: min(68svh, 620px);
  }
  .hero__media {
    animation-name: mediaInUp;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .intro__grid,
  .service__grid,
  .project-story__grid,
  .timeline-section__grid,
  .faq__grid,
  .about__grid,
  .contact__grid,
  .inquiry {
    grid-template-columns: minmax(0, 1fr);
  }
  .service:nth-of-type(odd) .service__media {
    order: 0;
  }
  .service__media,
  .about__media {
    aspect-ratio: 4 / 3;
  }
  .timeline-section__aside,
  .inquiry__aside {
    position: static;
  }
  .timeline-section__aside .media {
    aspect-ratio: 16 / 10;
  }
  .cards--featured .card:nth-child(n) {
    grid-column: span 12;
    margin-top: 0;
  }
  .cards--featured .card:nth-child(2) .card__media,
  .cards--featured .card:nth-child(3) .card__media {
    aspect-ratio: 16 / 11;
  }
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 48px;
  }
  .steps::before,
  .step::before {
    display: none;
  }
  .steps {
    padding-top: 0;
  }
  .step {
    padding-top: 20px;
    border-top: 1px solid var(--ink);
  }
  .values__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .values__list li:nth-child(3) {
    padding-inline-start: 0;
    border-inline-start: 0;
  }
  .values__list li:nth-child(n + 3) {
    border-top: 1px solid var(--line-strong);
  }
  .inquiry__aside {
    gap: 20px;
  }
  .stepper {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 0;
  }
  .stepper li {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 10px 0;
    border-bottom: 2px solid var(--line);
    font-size: 13px;
  }
  .stepper li[aria-current] {
    border-bottom-color: var(--accent-ink);
  }
  .stepper li.is-done {
    border-bottom-color: var(--ink-3);
  }
  .inquiry__aside .note {
    order: 3;
  }
  .inquiry__direct {
    display: none;
  }
}
@keyframes mediaInUp {
  from {
    clip-path: inset(100% 0 0 0);
  }
  to {
    clip-path: inset(0);
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
  .brand-object {
    position: relative;
    bottom: auto;
    left: auto;
    align-self: flex-end;
    width: 92px;
    margin-bottom: 20px;
  }
  .brand img {
    width: 80px;
  }
  .header-actions .btn {
    display: none;
  }
  .hero__title {
    font-size: clamp(2.5rem, 11vw, 3.2rem);
  }
  .hero__facts {
    gap: 28px;
  }
  .hero__caption {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero__media {
    height: 62svh;
  }
  .principles {
    grid-template-columns: 1fr;
  }
  .entry__item {
    grid-template-columns: 72px minmax(0, 1fr) 20px;
    gap: 16px;
    padding: 20px 0;
  }
  .entry__item:hover {
    padding-inline-start: 0;
  }
  .entry__num,
  .entry__service {
    display: none;
  }
  .entry__thumb {
    display: block;
    grid-column: 1;
    grid-row: 1;
    aspect-ratio: 1;
    overflow: hidden;
  }
  .entry__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .entry__title {
    font-size: 1.15rem;
  }
  .cards--grid .card {
    grid-column: span 12;
  }
  .card__meta {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
  .card__cat {
    display: none;
  }
  .steps,
  .prepare__list,
  .values__list,
  .gallery__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .values__list li,
  .values__list li + li {
    padding: 24px 0;
    border-inline-start: 0;
  }
  .values__list li + li {
    border-top: 1px solid var(--line-strong);
  }
  .gallery__grid li:nth-child(3n + 1) .media,
  .gallery .media {
    aspect-ratio: 4 / 3;
  }
  .project-cover .media {
    height: 56svh;
  }
  .facts > div {
    grid-template-columns: 84px minmax(0, 1fr);
  }
  .pager {
    grid-template-columns: minmax(0, 1fr);
  }
  .pager__link--next {
    justify-items: start;
    text-align: start;
  }
  .channel {
    grid-template-columns: minmax(0, 1fr) 20px;
    padding-inline: 0;
  }
  .channel:hover {
    padding-inline-start: 0;
  }
  .channel__value {
    grid-column: 1;
    grid-row: 2;
    font-size: 15px;
  }
  .options--cards,
  .fields {
    grid-template-columns: minmax(0, 1fr);
  }
  .form-nav .btn {
    flex: 1;
    padding: 0 18px;
  }
  .review__actions .btn {
    width: 100%;
  }
  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 24px;
  }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .lightbox__title {
    display: none;
  }
  .lightbox__bar {
    justify-content: space-between;
  }
}
.momento__start .pill {
  border: 0;
  font-family: inherit;
  cursor: pointer;
}
.momento__start .pill:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}
