/* ==========================================================================
   Angle Zero: site styles
   Built from the Figma file "website new direction" (Merge C, clean method).
   Tokens mirror the AZ/* styles and the "AZ / Web" variables in Figma.
   ========================================================================== */

/* Serrif Condensed Medium is the display face. These files are converted
   from the TRIAL desktop fonts; swap in the licensed web files later. */
@font-face {
  font-family: "Serrif Condensed"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("assets/fonts/serrif-condensed-medium.woff2") format("woff2");
}
@font-face {
  font-family: "Serrif Condensed"; font-weight: 500; font-style: italic; font-display: swap;
  src: url("assets/fonts/serrif-condensed-medium-italic.woff2") format("woff2");
}

:root {
  /* Colour: AZ/Color/* */
  --ink: #1e1e1e;
  --bone: #f6f2ee;
  --white: #ffffff;
  --stone: #b8b8b8;
  --lilac: #d6ccff;
  --lime: #cdf545;
  --pink: #feb3d2;
  --sun: #fddb14;
  --cream: #fefbb7;
  --line: rgba(30, 30, 30, 0.15);
  --line-strong: var(--ink);
  --line-dark: rgba(246, 242, 238, 0.25);

  /* Service colour code */
  --audience: var(--lime);
  --campaigns: var(--pink);
  --content: var(--lilac);
  --registration: var(--sun);

  /* Type */
  --serif-weight: 500; /* Serrif Condensed Medium */
  --serif: "Serrif Condensed", Georgia, serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --display-xl: clamp(56px, 30.65px + 6.761vw, 128px);      /* 128 */
  --display-l: clamp(48px, 31.10px + 4.507vw, 96px);         /* 96 */
  --display-m: clamp(40px, 31.55px + 2.254vw, 64px);       /* 64 */
  --heading: clamp(28px, 23.77px + 1.127vw, 40px);    /* 40 */
  --body-l: clamp(18px, 16.59px + 0.376vw, 22px);  /* 22 */
  --title: clamp(18px, 16.59px + 0.376vw, 22px);   /* 22 */
  --body: 1.0625rem;                                      /* 17 */
  --body-s: 0.875rem;                                     /* 14 */
  --caption: 0.875rem;                                    /* 14 */
  --body-xs: 0.8125rem;                                   /* 13: tight spaces (pills, tags, card labels) */
  --ui: 0.9375rem;                                        /* 15 */

  /* Space: AZ / Web variables */
  --gutter: 56px;
  --section: 120px;
  --strip: 64px;
  --cta: 140px;
  --max: 1440px;
  --radius: 8px;
  --radius-s: 4px;
  --pill: 999px;
  --shadow-card: 0 10px 28px rgba(0, 0, 0, 0.08);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

@media (max-width: 1100px) {
  :root { --gutter: 40px; --section: 96px; --cta: 112px; }
}
@media (max-width: 720px) {
  :root { --gutter: 20px; --section: 72px; --strip: 48px; --cta: 88px; }
  /* Phone type scale: smaller display headlines, nothing under 13px */
  :root { --display-xl: clamp(40px, 28px + 4.3vw, 56px); --body: 1rem; --body-xs: 0.8125rem; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--body);
  line-height: 1.5;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
picture { display: contents; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, fieldset, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible { outline-color: var(--bone); }
::selection { background: var(--lilac); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--pill);
}
.skip-link:focus { top: 16px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Type: AZ/* text styles ---------- */
.t-display-xl, .t-display-l, .t-display-m, .t-heading {
  font-family: var(--serif); font-weight: var(--serif-weight); text-wrap: balance;
}
.t-display-xl { font-size: var(--display-xl); line-height: 1; letter-spacing: -0.04em; }
.t-display-l  { font-size: var(--display-l);  line-height: 1; letter-spacing: -0.035em; }
.t-display-m  { font-size: var(--display-m);  line-height: 1.05; letter-spacing: -0.03em; }
.t-heading    { font-size: var(--heading);    line-height: 1.1; letter-spacing: -0.02em; }
.t-body-l     { font-size: var(--body-l); line-height: 1.4; letter-spacing: -0.01em; }
.t-body       { font-size: var(--body); line-height: 1.5; letter-spacing: -0.005em; }
.t-body-s     { font-size: var(--body-s); line-height: 1.5; letter-spacing: -0.003em; }
.t-body-xs    { font-size: var(--body-xs); line-height: 1.45; letter-spacing: 0; }
.t-caption    { font-size: var(--caption); line-height: 1.4; font-weight: 500; letter-spacing: 0; }
.t-title      { font-size: var(--title); line-height: 1.3; font-weight: 500; letter-spacing: -0.01em; }
.t-center { text-align: center; }
.br-d { display: none; }
@media (min-width: 900px) { .br-d { display: inline; } }
.t-stone { color: var(--stone); }
.measure-s { max-width: 440px; }
.measure { max-width: 640px; }
.measure-l { max-width: 820px; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--flush-top { padding-top: 0; }
.bg-white { background: var(--white); }
.bg-ink { background: var(--ink); color: var(--white); }
.stack > * + * { margin-top: var(--gap, 16px); }

.sec-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
  gap: 24px 40px; margin-bottom: 56px;
}
.sec-head__title { display: grid; gap: 16px; max-width: 1150px; }
.sec-head--center { flex-direction: column; align-items: center; text-align: center; gap: 20px; }

/* ---------- Buttons: AZ/Button/* ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 14px 24px; border-radius: var(--pill);
  font-size: var(--ui); font-weight: 500; line-height: 1.2; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--lilac); color: var(--ink); }
.btn--primary:hover { background: #c7baff; }
.btn--secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--secondary:hover { background: var(--ink); color: var(--white); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--lilac); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: #3a3a3a; }
.on-dark .btn--secondary { color: var(--white); border-color: var(--white); }
.on-dark .btn--secondary:hover { background: var(--white); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row--center { justify-content: center; }

/* AZ/Link */
.link {
  display: inline-flex; align-items: center; gap: 8px; padding-bottom: 4px;
  border-bottom: 1px solid currentColor; font-size: var(--ui); font-weight: 500; line-height: 1.2;
}
.link { position: relative; }
.link::after { content: ""; position: absolute; inset: -12px -6px -9px; } /* 44px tap area */
.link span[aria-hidden] { transition: transform .2s var(--ease); }
.link:hover span[aria-hidden] { transform: translateX(4px); }

/* AZ/Tag */
.tag {
  display: inline-flex; align-items: center; padding: 6px 10px; border-radius: var(--radius-s);
  font-size: var(--caption); font-weight: 500; line-height: 1.4; white-space: nowrap;
}
.tag--audience { background: var(--audience); }
.tag--campaigns { background: var(--campaigns); }
.tag--content { background: var(--content); }
.tag--registration { background: var(--registration); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* Legend dots */
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.legend li { display: inline-flex; align-items: center; gap: 6px; font-size: var(--caption); font-weight: 500; }
.legend li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--dot); }

/* AZ/Stamp: perforated photo frame */
.stamp-shadow { filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.1)); }
.stamp {
  --r: 5.5px;
  background: var(--white);
  padding: calc(2.2 * var(--r));
  -webkit-mask:
    radial-gradient(var(--r), #0000 97%, #000) round calc(-1.5 * var(--r)) calc(-1.5 * var(--r)) / calc(3.4 * var(--r)) calc(3.4 * var(--r)),
    linear-gradient(#000 0 0) calc(2 * var(--r)) calc(2 * var(--r)) / calc(100% - 4 * var(--r)) calc(100% - 4 * var(--r)) no-repeat;
          mask:
    radial-gradient(var(--r), #0000 97%, #000) round calc(-1.5 * var(--r)) calc(-1.5 * var(--r)) / calc(3.4 * var(--r)) calc(3.4 * var(--r)),
    linear-gradient(#000 0 0) calc(2 * var(--r)) calc(2 * var(--r)) / calc(100% - 4 * var(--r)) calc(100% - 4 * var(--r)) no-repeat;
}
.stamp--fine { --r: 3px; }
.stamp img { width: 100%; height: 100%; object-fit: cover; }

/* Generic photo */
.photo { border-radius: var(--radius); overflow: hidden; background: #e8e2dc; }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* Floating white note card (image overlays) */
.note {
  background: var(--white); border-radius: var(--radius); padding: 14px 16px;
  display: grid; gap: 8px; box-shadow: var(--shadow-card);
}

/* ---------- Announcement ---------- */
.announce {
  background: var(--white); display: flex; justify-content: center; align-items: center;
  gap: 10px; padding: 10px var(--gutter); text-align: center; font-size: var(--body);
}
.announce a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* Shine: a soft band of light sweeps across the bar every few seconds,
   and the "New" tag gets its own glint */
.announce { position: relative; overflow: hidden; isolation: isolate; }
.announce::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(214, 204, 255, .55) 45%, rgba(205, 245, 69, .45) 50%, rgba(254, 179, 210, .45) 55%, transparent 65%);
  translate: -100% 0; animation: az-shine 5.5s var(--ease-in-out) 1.2s infinite;
}
.announce .tag { position: relative; overflow: hidden; }
.announce .tag::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .9) 50%, transparent 70%);
  translate: -120% 0; animation: az-glint 5.5s var(--ease-in-out) 1.2s infinite;
}
@keyframes az-shine { 0% { translate: -100% 0; } 45%, 100% { translate: 100% 0; } }
@keyframes az-glint { 0%, 8% { translate: -120% 0; } 22%, 100% { translate: 120% 0; } }
@media (prefers-reduced-motion: reduce) { .announce::after, .announce .tag::after { animation: none; display: none; } }
@media (max-width: 720px) {
  .announce { justify-content: flex-start; text-align: left; gap: 10px; padding-block: 10px; font-size: var(--body-s); line-height: 1.4; }
  .announce .tag { flex-shrink: 0; padding: 3px 8px; font-size: var(--body-xs); }
  .announce a { min-width: 0; }
}

/* ---------- Nav: AZ/Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; background: var(--bone);
  transition: box-shadow .25s var(--ease);
}
.nav.is-stuck { box-shadow: 0 1px 0 var(--line); }
.nav__inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  max-width: var(--max); margin-inline: auto; padding: 24px var(--gutter);
}
.nav__logo { justify-self: start; display: block; width: 147px; padding-block: 6px; margin-block: -6px; }
.nav__logo img { width: 100%; height: auto; }
.nav__links { display: flex; gap: 36px; font-size: var(--ui); line-height: 1.2; }
.nav__links a { padding-block: 4px; border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav__links a:hover, .nav__links a[aria-current="page"] { border-bottom-color: var(--ink); }
.nav__cta { justify-self: end; }
.nav__toggle {
  display: none; justify-self: end; width: 48px; height: 48px; border: 1px solid var(--ink);
  border-radius: 50%; background: transparent; cursor: pointer; position: relative;
}
.nav__toggle span {
  position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--ink);
  transition: transform .25s var(--ease), top .25s var(--ease);
}
.nav__toggle span:first-child { top: 19px; }
.nav__toggle span:last-child { top: 27px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 23px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 23px; transform: rotate(-45deg); }

.menu {
  position: fixed; left: 0; right: 0; bottom: 0; top: var(--menu-top, 0); z-index: 40; background: var(--bone);
  padding: 24px var(--gutter) calc(32px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  overflow-y: auto; overscroll-behavior: contain; border-top: 1px solid var(--line);
  opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), visibility .25s;
}
.menu.is-open { opacity: 1; visibility: visible; }
.menu-open { overflow: hidden; }
.menu-open .nav { box-shadow: none; }
.menu__links { display: grid; }
.menu__links a {
  font-family: var(--serif); font-weight: var(--serif-weight); font-size: clamp(2.5rem, 11vw, 3rem); line-height: 1.1; letter-spacing: -0.03em;
  padding-block: 12px; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  opacity: 0; transform: translateY(12px); transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.menu__links a::after { content: "→"; font-family: var(--sans); font-size: var(--body-l); font-weight: 400; }
.menu__links a[aria-current="page"]::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--lilac); }
.menu.is-open .menu__links a { opacity: 1; transform: none; }
.menu.is-open .menu__links a:nth-child(2) { transition-delay: .04s; }
.menu.is-open .menu__links a:nth-child(3) { transition-delay: .08s; }
.menu.is-open .menu__links a:nth-child(4) { transition-delay: .12s; }
.menu.is-open .menu__links a:nth-child(5) { transition-delay: .16s; }
.menu .btn { align-self: stretch; }
@media (prefers-reduced-motion: reduce) { .menu__links a { opacity: 1; transform: none; transition: none; } }

@media (max-width: 960px) {
  .nav__inner { grid-template-columns: 1fr auto; padding-block: 16px; }
  .nav__inner > nav, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .nav__logo { width: 120px; }
}

/* ---------- Page heroes ---------- */
.hero { padding-top: 96px; padding-bottom: 64px; display: grid; gap: 28px; }
.hero--center { justify-items: center; text-align: center; }
.hero__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
@media (max-width: 720px) { .hero { padding-top: 56px; padding-bottom: 48px; gap: 20px; } }

/* Home hero */
.home-hero { padding-top: 72px; display: grid; justify-items: center; text-align: center; gap: 26px; }
.home-hero h1 { max-width: 1100px; }
.home-hero p { max-width: 642px; }
@media (max-width: 720px) { .home-hero { padding-top: 48px; gap: 20px; } }

/* Scaled compositions: children use calc(N * var(--u)) where N is a Figma px value */
.comp { position: relative; container-type: inline-size; width: 100%; }
/* Pieces fly in from off-screen; clip at the full-width main so the page never scrolls sideways */
main { overflow-x: clip; }
.comp__stage { position: relative; width: 100%; --u: calc(100cqw / var(--w)); height: calc(var(--h) * var(--u)); }
.comp__stage > * { position: absolute; }
.comp .note, .comp .proof { font-size: max(11px, calc(17 * var(--u))); }

.home-visual { --w: 1440; --h: 560; max-width: var(--max); margin-inline: auto; }
.hv-block { left: calc(200 * var(--u)); top: calc(200 * var(--u)); width: calc(1040 * var(--u)); height: calc(300 * var(--u)); background: var(--lilac); border-radius: var(--radius); }
.hv-woman { left: calc(530 * var(--u)); top: calc(30 * var(--u)); width: calc(380 * var(--u)); height: calc(470 * var(--u)); }
.hv-man { left: calc(1066 * var(--u)); top: calc(290 * var(--u)); width: calc(200 * var(--u)); height: calc(250 * var(--u)); rotate: 5deg; }
.hv-hall { left: calc(226 * var(--u)); top: calc(98 * var(--u)); width: calc(242 * var(--u)); height: calc(182 * var(--u)); rotate: -6deg; }
.hv-hall .stamp, .hv-man .stamp { width: 100%; height: 100%; }
.hv-postmark { left: calc(835 * var(--u)); top: calc(43 * var(--u)); width: calc(330 * var(--u)); }
.hv-proof-a { left: calc(118 * var(--u)); top: calc(350 * var(--u)); width: calc(329 * var(--u)); }
.hv-proof-b { left: calc(1034 * var(--u)); top: calc(80 * var(--u)); width: calc(229 * var(--u)); }
.hv-pill { left: calc(435 * var(--u)); top: calc(432 * var(--u)); }

.proof {
  border-radius: 18px; padding: calc(18 * var(--u)) calc(22 * var(--u)); display: grid; gap: calc(4 * var(--u));
  box-shadow: var(--shadow-card); background: var(--white);
}
.proof--cream { background: var(--cream); }
.proof .t-caption { font-size: max(10px, calc(14 * var(--u))); }
.proof__figure { font-family: var(--serif); font-weight: var(--serif-weight); font-size: calc(40 * var(--u)); line-height: 1.1; letter-spacing: -0.02em; }
.pill-lime {
  background: var(--lime); border-radius: var(--pill); padding: calc(8 * var(--u)) calc(14 * var(--u));
  font-size: max(10px, calc(14 * var(--u))); font-weight: 500; white-space: nowrap;
}
.postmark { color: var(--ink); }
.postmark text { font-family: var(--sans); font-size: 14px; font-weight: 500; }

@media (max-width: 720px) {
  /* Narrow screens: same layered layout as desktop (photo, block, stamp and
     both cards on the image); the cards just get smaller text. */
  .home-visual { --w: 600; --h: 540; margin-top: 32px; }
  .hv-block { left: calc(0 * var(--u)); top: calc(200 * var(--u)); width: calc(600 * var(--u)); height: calc(320 * var(--u)); }
  .hv-woman { left: calc(150 * var(--u)); top: calc(0 * var(--u)); width: calc(300 * var(--u)); height: calc(380 * var(--u)); }
  .hv-hall, .hv-postmark, .hv-pill { display: none; }
  .hv-man { left: calc(430 * var(--u)); top: calc(330 * var(--u)); width: calc(140 * var(--u)); height: calc(176 * var(--u)); }
  .hv-proof-a { left: calc(28 * var(--u)); top: calc(320 * var(--u)); width: calc(232 * var(--u)); }
  .hv-proof-b { left: calc(392 * var(--u)); top: calc(56 * var(--u)); width: calc(180 * var(--u)); }
  .comp .proof { padding: 8px 10px; gap: 1px; border-radius: 10px; }
  .comp .proof .t-caption { font-size: 11px; line-height: 1.3; }
  .comp .proof .proof__figure { font-size: 20px; }
  .comp .proof .t-body { font-size: 12px; line-height: 1.3; }
}

/* ---------- Brands strip ---------- */
.brands { padding-block: var(--strip); display: grid; justify-items: center; gap: 24px; text-align: center; }
.brands ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 44px; color: var(--stone); }
.brands li { font-size: var(--caption); font-weight: 500; }

/* ---------- Numbers ---------- */
.numbers { display: grid; gap: 56px; }
.numbers__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.numbers__item { border-top: 1px solid var(--line-dark); padding-top: 20px; display: grid; justify-items: center; text-align: center; gap: 4px; }
.numbers__item .t-display-l { color: var(--bone); font-variant-numeric: tabular-nums; }
.numbers__note { max-width: 720px; margin-inline: auto; text-align: center; color: rgba(255, 255, 255, 0.75); }
@media (max-width: 900px) { .numbers__grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; } }

/* ---------- Service tiles (Home) ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 56px; }
.tile {
  border-radius: var(--radius); padding: 28px; min-height: 427px;
  display: flex; flex-direction: column; gap: 14px; transition: transform .3s var(--ease);
}
.tile svg { width: 72px; height: 72px; margin-top: auto; }
.tile__more { display: flex; justify-content: space-between; align-items: center; }
.tile__more span[aria-hidden] { font-size: var(--body-l); transition: transform .2s var(--ease); }
.tile:hover .tile__more span[aria-hidden] { transform: translateX(4px); }
.center { display: flex; justify-content: center; }
@media (max-width: 1100px) { .tiles { grid-template-columns: repeat(2, 1fr); } .tile { min-height: 340px; } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } .tile { min-height: 0; } .tile svg { margin-top: 40px; } }

/* ---------- Why (Home) ---------- */
.why { display: grid; grid-template-columns: 1fr 600px; gap: 80px; align-items: center; }
.why h2 { margin-bottom: 40px; }
.why__list li { border-top: 1px solid var(--line); padding: 22px 24px 22px 0; }
.why__list li:first-child { border-top: 0; background: var(--white); border-radius: var(--radius); padding: 22px 24px; display: grid; gap: 8px; }
.why__list li:first-child + li { border-top: 0; }
.why-visual { --w: 600; --h: 560; }
.wv-block { left: calc(80 * var(--u)); top: calc(120 * var(--u)); width: calc(520 * var(--u)); height: calc(400 * var(--u)); background: var(--lilac); border-radius: var(--radius); }
.wv-photo { left: calc(40 * var(--u)); top: calc(60 * var(--u)); width: calc(480 * var(--u)); height: calc(340 * var(--u)); }
.wv-note { left: calc(226 * var(--u)); top: calc(333 * var(--u)); width: calc(309 * var(--u)); }
@media (max-width: 1100px) { .why { grid-template-columns: 1fr; gap: 48px; } .why-visual { max-width: 600px; } }
@media (max-width: 560px) { .why-visual { --h: 620; } .wv-note { left: calc(60 * var(--u)); width: calc(480 * var(--u)); } }

/* ---------- Recent rooms (Home) ---------- */
.rooms { border-bottom: 1px solid var(--line); }
.room {
  display: grid; grid-template-columns: 120px 440px 1fr auto 200px 18px; align-items: center; gap: 24px;
  padding-block: 24px; border-top: 1px solid var(--line);
}
.room__photo { width: 120px; height: 80px; border-radius: 6px; overflow: hidden; }
.room__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.room:hover .room__photo img { transform: scale(1.06); }
.room__name { display: grid; gap: 6px; }
.room__tags { grid-column: 4; }
.room__arrow { font-size: var(--body-l); transition: transform .2s var(--ease); }
.room:hover .room__arrow { transform: translateX(4px); }
@media (max-width: 1200px) {
  .room { grid-template-columns: 120px 1fr 200px 18px; row-gap: 12px; }
  .room__tags { grid-column: 2; grid-row: 2; }
  .room__photo { grid-row: span 2; }
  .room__result { grid-column: 3; grid-row: 1 / span 2; }
  .room__arrow { grid-column: 4; grid-row: 1 / span 2; }
}
@media (max-width: 720px) {
  .room { grid-template-columns: 88px 1fr; gap: 12px 16px; }
  .room__photo { width: 88px; height: 64px; grid-row: span 1; }
  .room__tags, .room__result { grid-column: 1 / -1; grid-row: auto; }
  .room__arrow { display: none; }
}

/* ---------- Colour cards (measure / principles / steps / engagements) ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ccard { border-radius: var(--radius); padding: 28px 28px 32px; display: flex; flex-direction: column; gap: 16px; }
.ccard--roomy { padding: 32px 32px 36px; }
.ccard--steps { padding: 32px 32px 36px; gap: 14px; }
.ccard .t-heading { max-width: 360px; }
.bg-lime { background: var(--lime); } .bg-pink { background: var(--pink); }
.bg-lilac { background: var(--lilac); } .bg-sun { background: var(--sun); }
.bar { width: 40px; height: 6px; border-radius: 3px; }
.ccard__foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.engage { background: var(--white); padding: 32px; }
@media (max-width: 960px) { .cards-3 { grid-template-columns: 1fr; gap: 16px; } }

/* ---------- CTA band ---------- */
.cta { position: relative; overflow: hidden; padding-block: var(--cta); text-align: center; }
.cta__inner { position: relative; z-index: 1; display: grid; justify-items: center; gap: 28px; }
.cta__bars { display: flex; gap: 8px; }
.cta__bars span { width: 40px; height: 8px; border-radius: 4px; }
.cta h2 { max-width: 640px; }
.cta .t-body-l { max-width: 486px; }
.cta__stamp { position: absolute; z-index: 0; }
.cta__stamp .stamp { width: 100%; height: 100%; }
.cta__stamp--a { width: 200px; height: 240px; left: max(16px, calc(50% - 720px + 125px)); top: 220px; rotate: -7deg; }
.cta__stamp--b { width: 220px; height: 260px; right: max(16px, calc(50% - 720px + 131px)); top: 237px; rotate: 6deg; }
@media (max-width: 1100px) { .cta__stamp { display: none; } }

/* ---------- Footer: AZ/Footer ---------- */
.footer { padding: 80px var(--gutter) 40px; max-width: var(--max); margin-inline: auto; display: grid; gap: 72px; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 48px; }
.footer__brand { max-width: 320px; display: grid; gap: 20px; align-content: start; }
.footer__brand img { width: 211px; }
.footer__cols { display: flex; flex-wrap: wrap; gap: 40px 80px; }
.footer__col { display: grid; gap: 12px; align-content: start; }
.footer__col a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 720px) { .footer__col { gap: 0; } .footer__col .t-caption { margin-bottom: 4px; } .footer__col a { padding-block: 9px; } }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.footer__bottom a { padding-block: 12px; margin-block: -12px; }

/* ---------- Services ---------- */
.split-hero { display: grid; grid-template-columns: 1fr 600px; gap: 64px; align-items: center; padding-top: 96px; padding-bottom: 64px; }
.split-hero__text { display: grid; gap: 28px; justify-items: start; }
.split-hero__text p { max-width: 560px; }
.svc-visual { --w: 600; --h: 520; }
.sv-block { left: calc(100 * var(--u)); top: calc(140 * var(--u)); width: calc(500 * var(--u)); height: calc(380 * var(--u)); border-radius: var(--radius); }
.sv-photo { left: calc(40 * var(--u)); top: calc(40 * var(--u)); width: calc(460 * var(--u)); height: calc(360 * var(--u)); }
.sv-note { left: calc(248 * var(--u)); top: calc(330 * var(--u)); width: calc(277 * var(--u)); }
@media (max-width: 1100px) { .split-hero { grid-template-columns: 1fr; gap: 48px; } .svc-visual { max-width: 600px; } }
@media (max-width: 720px) { .split-hero { padding-top: 56px; padding-bottom: 48px; } .svc-visual { --h: 600; } .sv-note { left: calc(150 * var(--u)); top: calc(300 * var(--u)); width: calc(380 * var(--u)); } }

.core { display: grid; grid-template-columns: 1fr 480px; gap: 56px; align-items: center; padding: 56px; border-radius: var(--radius); }
.core__text { display: grid; gap: 20px; }
.core__text p { max-width: 600px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--white); border-radius: var(--pill); padding: 8px 14px; }
@media (max-width: 720px) { .chips { gap: 6px; } .chips li { padding: 6px 12px; font-size: var(--body-s); line-height: 1.4; } }
.core .photo { height: 400px; }
@media (max-width: 1100px) { .core { grid-template-columns: 1fr; padding: 40px; } .core .photo { height: 340px; } }
@media (max-width: 720px) { .core { padding: 28px 20px; } .core .photo { height: 240px; } }

.rows { border-bottom: 1px solid var(--line); }
.srow { display: grid; grid-template-columns: 1fr 420px 140px; gap: 32px; align-items: center; padding: 28px 24px; border-top: 1px solid var(--line); transition: background-color .2s; }
.srow:hover { background: var(--bone); }
.srow .tag { justify-self: end; }
@media (max-width: 960px) { .srow { grid-template-columns: 1fr auto; gap: 12px 24px; padding-inline: 0; } .srow p { grid-column: 1 / -1; grid-row: 2; } .srow .tag { grid-row: 1; grid-column: 2; } }

/* ---------- About ---------- */
.about-visual { --w: 1328; --h: 520; }
.av-block { left: calc(114 * var(--u)); top: calc(220 * var(--u)); width: calc(1100 * var(--u)); height: calc(300 * var(--u)); background: var(--pink); border-radius: var(--radius); }
.av-photo { left: calc(254 * var(--u)); top: calc(20 * var(--u)); width: calc(820 * var(--u)); height: calc(460 * var(--u)); }
.av-note-a { left: calc(110 * var(--u)); top: calc(120 * var(--u)); }
.av-note-b { left: calc(1000 * var(--u)); top: calc(360 * var(--u)); }
.about-visual .note { text-align: left; }
@media (max-width: 720px) {
  .about-visual { --w: 600; --h: 560; }
  .av-block { left: 0; top: calc(180 * var(--u)); width: calc(600 * var(--u)); height: calc(300 * var(--u)); }
  .av-photo { left: calc(40 * var(--u)); top: calc(20 * var(--u)); width: calc(520 * var(--u)); height: calc(380 * var(--u)); }
  .av-note-a { left: calc(16 * var(--u)); top: calc(330 * var(--u)); }
  .av-note-b { left: auto; right: calc(16 * var(--u)); top: calc(420 * var(--u)); }
}

.founder { display: grid; grid-template-columns: 300px 1fr; gap: 96px; align-items: center; }
.founder__stamp { width: 300px; height: 380px; }
.founder__stamp .stamp { --r: 7px; width: 100%; height: 100%; }
.founder__text { display: grid; gap: 20px; max-width: 810px; }
@media (max-width: 900px) { .founder { grid-template-columns: 1fr; gap: 48px; } .founder__stamp { width: 240px; height: 304px; } }

.crew { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.crew li { border: 1px solid var(--ink); border-radius: var(--radius); padding: 24px; display: grid; gap: 20px; justify-items: start; }
@media (max-width: 1100px) { .crew { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .crew { grid-template-columns: 1fr 1fr; } }

/* ---------- Events ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.choice {
  display: inline-flex; align-items: center; min-height: 48px; padding: 10px 16px; border-radius: var(--pill);
  border: 1px solid rgba(30, 30, 30, 0.3); background: transparent; cursor: pointer; font-size: var(--body); line-height: 1.5;
  transition: background-color .2s, color .2s, border-color .2s;
}
.choice:hover { border-color: var(--ink); }
@media (max-width: 720px) { .choice { min-height: 40px; padding: 8px 14px; font-size: 0.875rem; line-height: 1.3; } }
.choice[aria-pressed="true"], .choice:has(input:checked) { background: var(--ink); color: var(--white); border-color: var(--ink); }
.choice:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }

.feature { display: grid; gap: 40px; }
.feature__photo { position: relative; height: 600px; }
.feature__scope { position: absolute; left: 24px; top: 24px; background: var(--white); border-radius: var(--radius); padding: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.feature__scope .t-caption { margin-right: 4px; }
.feature__body { display: grid; grid-template-columns: 1fr 620px; gap: 56px; align-items: center; }
.feature__text { display: grid; gap: 16px; justify-items: start; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat { border-top: 3px solid var(--sc, var(--lime)); padding-top: 20px; display: grid; gap: 8px; align-content: start; }
.stat__fig { font-family: var(--serif); font-weight: var(--serif-weight); font-size: var(--display-m); line-height: 1.05; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stats--4 { grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1100px) { .feature__body { grid-template-columns: 1fr; gap: 40px; } .feature__photo { height: 440px; } }
.feature__photo > .photo { height: 100%; }
@media (max-width: 720px) { .feature__photo { height: auto; } .feature__photo > .photo { height: 300px; } .feature__scope { position: static; margin-top: 16px; padding: 0; background: none; } .stats--4 { grid-template-columns: 1fr 1fr; } }
.feature__photo { overflow: visible; }
.feature__photo img { border-radius: var(--radius); }

.split { display: grid; grid-template-columns: 640px 1fr; gap: 56px; align-items: center; }
.split .photo { height: 440px; }
.split__text { display: grid; gap: 16px; justify-items: start; }
@media (max-width: 1100px) { .split { grid-template-columns: 1fr; } .split .photo { height: 360px; } }
@media (max-width: 720px) { .split .photo { height: 260px; } }

.more-grid { display: grid; grid-template-columns: 1fr 1fr 1.16fr; gap: 24px; align-items: start; margin-bottom: 56px; }
.ecard { display: grid; gap: 16px; }
.ecard .photo { height: 280px; }
.ecard .photo img { transition: transform .5s var(--ease); }
.ecard:hover .photo img { transform: scale(1.04); }
.next-card { border-radius: var(--radius); padding: 32px; display: grid; gap: 20px; justify-items: start; }
@media (max-width: 1100px) { .more-grid { grid-template-columns: 1fr 1fr; } .next-card { grid-column: 1 / -1; } }
@media (max-width: 640px) { .more-grid { grid-template-columns: 1fr; } }
[data-cat][hidden] { display: none !important; }

/* ---------- Case study ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; align-items: start; }
.facts > div { border-top: 1px solid var(--ink); padding-top: 16px; display: grid; gap: 10px; }
@media (max-width: 960px) { .facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } }
.cs-image .photo { height: 640px; }
@media (max-width: 960px) { .cs-image .photo { height: 420px; } }
@media (max-width: 560px) { .cs-image .photo { height: 280px; } }
.cs-block { display: grid; grid-template-columns: 420px 1fr; gap: 56px; }
.cs-block + .cs-block { margin-top: 96px; }
.cs-block__label { display: grid; gap: 14px; align-content: start; }
.cs-block__body { display: grid; gap: 20px; }
.scope-list li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 18px; border-top: 1px solid var(--line); }
.scope-list li:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 960px) { .cs-block { grid-template-columns: 1fr; gap: 24px; } .cs-block + .cs-block { margin-top: 64px; } }
.results { display: grid; gap: 48px; }
.results .stat { border-top-width: 3px; }
.results__note { color: rgba(255, 255, 255, .7); margin-top: -24px; }
.results__more { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; border-top: 1px solid rgba(255,255,255,.25); padding-top: 24px; }
@media (max-width: 960px) { .results .stats--4 { grid-template-columns: 1fr 1fr; } }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.gallery__col { display: grid; gap: 16px; }
.gallery .photo { height: 440px; }
.gallery__col .photo { height: 212px; }
@media (max-width: 720px) { .gallery { grid-template-columns: 1fr; } .gallery .photo { height: 260px; } .gallery__col .photo { height: 200px; } }
.quote { display: grid; justify-items: center; text-align: center; gap: 28px; }
.quote blockquote { max-width: 1000px; }
.next-event { display: grid; grid-template-columns: 160px 1fr auto; gap: 32px; align-items: center; padding-block: 48px; }
.next-event .photo { height: 110px; }
.next-event__text { display: grid; gap: 8px; }
@media (max-width: 640px) { .next-event { grid-template-columns: 96px 1fr; gap: 16px 20px; } .next-event .photo { height: 72px; } .next-event .link { grid-column: 2; justify-self: start; } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 440px; gap: 32px; align-items: start; }
.brief { background: var(--white); border-radius: var(--radius); padding: 48px; display: grid; gap: 40px; }
.brief__row { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.field { display: grid; gap: 12px; border-bottom: 1px solid var(--ink); padding-bottom: 14px; transition: border-color .2s; }
.field label, .group legend { font-size: var(--caption); font-weight: 500; line-height: 1.4; }
.field input, .field textarea {
  border: 0; background: transparent; padding: 0; font-size: var(--body-l); line-height: 1.4; letter-spacing: -0.01em; outline: 0; width: 100%;
}
.field input { height: 31px; }
.field textarea { min-height: 115px; resize: none; display: block; }
.field input::placeholder, .field textarea::placeholder { color: var(--stone); opacity: 1; }
.field:focus-within { border-bottom-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
.field.is-invalid { border-bottom-color: #c2361b; box-shadow: 0 1px 0 #c2361b; }
.group { display: grid; gap: 12px; }
.group legend { padding: 0; margin-bottom: 12px; }
.brief__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding-top: 8px; }
.form-status:empty { display: none; }
.form-status.is-error { color: #c2361b; }
.brief.is-sending button[type="submit"] { opacity: .6; pointer-events: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.talk { display: grid; gap: 24px; }
.talk__card { border-radius: var(--radius); padding: 32px; display: grid; gap: 20px; justify-items: start; }
.talk__card dl { display: grid; gap: 20px; width: 100%; }
.talk__card dl > div { border-top: 1px solid rgba(30, 30, 30, 0.2); padding-top: 14px; display: grid; gap: 6px; }
.talk .photo { height: 300px; }
@media (max-width: 1100px) { .contact { grid-template-columns: 1fr; } .talk { grid-template-columns: 1fr 1fr; } .talk .photo { height: auto; min-height: 300px; } }
@media (max-width: 720px) { .brief { padding: 28px 20px; gap: 32px; } .brief__row { grid-template-columns: 1fr; gap: 32px; } .talk { grid-template-columns: 1fr; } }

.faq { border-bottom: 1px solid var(--line); }
.faq__item { display: grid; grid-template-columns: 560px 1fr 22px; gap: 48px; align-items: start; padding-block: 28px; border-top: 1px solid var(--line); }
.faq__q { grid-column: 1; }
.faq__q button { all: unset; cursor: pointer; display: block; }
.faq__q button:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 4px; }
.faq__a { grid-column: 2; max-width: 600px; }
.faq__icon { grid-column: 3; grid-row: 1; font-family: var(--serif); font-weight: var(--serif-weight); font-size: var(--heading); line-height: 1.1; transition: transform .25s var(--ease); pointer-events: none; }
.faq__item.is-open .faq__icon { transform: rotate(45deg); }
.faq__a { overflow: hidden; transition: height .5s var(--ease-out), opacity .35s var(--ease); }
.faq__item:not(.is-open) .faq__a { height: 0; opacity: 0; }
@media (max-width: 1100px) {
  .faq__item { grid-template-columns: 1fr 22px; gap: 16px 24px; }
  .faq__a { grid-column: 1 / -1; grid-row: 2; }
  .faq__icon { grid-column: 2; }
}

.nowrap { white-space: nowrap; }

/* Below 360px two buttons no longer fit side by side at full size */
@media (max-width: 359px) { .btn-row .btn { padding-inline: 18px; font-size: 0.875rem; } }

/* Smallest phones (iPhone SE 1st gen and similar) */
@media (max-width: 400px) {
  .crew { grid-template-columns: 1fr; }
  .home-visual { --h: 560; }
  .why-visual { --h: 740; }
  .svc-visual { --h: 620; }
  .about-visual { --h: 600; }
}

/* ==========================================================================
   Motion and interaction
   Reveals are switched on by main.js (data-anim + .is-in). Reveal motion uses
   the individual translate / rotate / scale properties so it never fights
   the pointer effects, which use transform. Nothing here runs without JS or
   when the visitor asks for reduced motion.
   ========================================================================== */

/* Header entrance on every page load */
@keyframes az-drop { from { transform: translateY(-110%); opacity: 0; } }
@keyframes az-fade { from { opacity: 0; } }
.js .announce { animation: az-fade .8s var(--ease-out) both; }
.js .nav__inner { animation: az-drop .9s var(--ease-out) .1s both; }

/* Header tucks away while scrolling down, returns when scrolling up */
.nav { transition: box-shadow .25s var(--ease), translate .45s var(--ease-out); }
.nav.is-hidden { translate: 0 -100%; }

/* Scroll progress line */
.progress {
  position: fixed; left: 0; top: 0; z-index: 70; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--lime), var(--pink), var(--lilac), var(--sun));
  transform-origin: left; transform: scaleX(var(--sp, 0)); pointer-events: none;
}

/* Generic rise */
.js [data-anim~="up"] { opacity: 0; translate: 0 32px; transition: opacity .9s var(--ease-out), translate 1s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-anim~="up"].is-in { opacity: 1; translate: 0 0; }

/* Word-by-word headline reveal */
.is-split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em .12em; margin: 0 -.02em -.12em; }
.is-split .wi { display: inline-block; translate: 0 110%; rotate: 4deg; transform-origin: 0 100%; transition: translate 1.1s var(--ease-out), rotate 1.1s var(--ease-out); transition-delay: calc(var(--d, 0s) + var(--wi) * 55ms); }
.is-split.is-in .wi { translate: 0 0; rotate: 0deg; }

/* Photo wipe: clip opens upward while the image settles from a zoom */
.js [data-anim~="clip"] { clip-path: inset(100% 0 0 0 round var(--radius)); transition: clip-path 1.3s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-anim~="clip"].is-in { clip-path: inset(0 0 0 0 round var(--radius)); }
.js [data-anim~="clip"] img { scale: 1.3; transition: scale 1.8s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-anim~="clip"].is-in img { scale: 1.08; }
.js [data-parallax-img] img { translate: 0 var(--py, 0px); }

/* Divider lines draw across (border is swapped for a pseudo line) */
.js [data-anim~="draw"] { position: relative; border-top-color: transparent !important; }
.js [data-anim~="draw"]::before {
  content: ""; position: absolute; left: 0; right: 0; top: calc(-1 * var(--bw, 1px)); height: var(--bw, 1px);
  background: var(--bc, var(--line)); transform: scaleX(0); transform-origin: left;
  transition: transform 1.2s var(--ease-out); transition-delay: var(--d, 0s);
}
.js [data-anim~="draw"].is-in::before { transform: scaleX(1); }

/* Children pop in one after another (tags, chips, filters, bars) */
.js [data-anim~="pop"] > * { opacity: 0; scale: .6; transition: opacity .5s var(--ease-out), scale .7s cubic-bezier(.34, 1.56, .64, 1); transition-delay: calc(var(--d, 0s) + var(--ci, 0) * 60ms); }
.js [data-anim~="pop"].is-in > * { opacity: 1; scale: 1; }

/* Cards rise with a small alternating tilt */
.js [data-anim~="card"] { opacity: 0; translate: 0 80px; rotate: var(--rr, -3deg); transition: opacity .9s var(--ease-out), translate 1.1s var(--ease-out), rotate 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-anim~="card"].is-in { opacity: 1; translate: 0 0; rotate: 0deg; }

/* Picture compositions: each piece arrives from its own direction */
.js .comp [data-pop] { opacity: 0; transform: translate(var(--fx, 0), var(--fy, 40px)) rotate(var(--fr, 0deg)) scale(var(--fs, .9)); transition: opacity .9s var(--ease-out), transform 1.4s var(--ease-out); transition-delay: var(--pd, 0s); }
.js .comp.is-in [data-pop] { opacity: 1; transform: none; }
.hv-block { --fs: .6; --fy: 0px; } .hv-woman { --fy: 120px; --pd: .1s; }
.hv-hall { --fx: -160px; --fr: -18deg; --pd: .3s; } .hv-man { --fx: 160px; --fr: 18deg; --pd: .4s; }
.hv-postmark { --fs: .4; --fr: -90deg; --pd: .5s; } .hv-proof-a { --fx: -80px; --pd: .55s; }
.hv-proof-b { --fx: 80px; --pd: .6s; } .hv-pill { --fs: .3; --pd: .75s; }
.wv-block, .sv-block, .av-block { --fs: .7; --fy: 0px; }
.wv-photo, .sv-photo, .av-photo { --fy: 100px; --pd: .12s; }
.wv-note, .sv-note, .av-note-a { --fx: -60px; --fy: 30px; --pd: .35s; } .av-note-b { --fx: 60px; --fy: 30px; --pd: .45s; }
.comp [data-depth] { translate: 0 var(--dy, 0px); }
.hv-postmark circle:first-of-type { stroke-dasharray: 4 6; transform-box: view-box; transform-origin: 75px 75px; rotate: var(--spin, 0deg); }

/* Stamps wobble when hovered */
@media (hover: hover) {
  .stamp-shadow { transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
  .stamp-shadow:hover { transform: rotate(-4deg) scale(1.06); }
}

/* Service tile icons draw themselves */
.tile svg path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .tile svg path { stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease-in-out) .45s; }
.js .is-in .tile svg path, .js .tile.is-in svg path { stroke-dashoffset: 0; }
@keyframes az-redraw { 0% { stroke-dashoffset: 1; } 100% { stroke-dashoffset: 0; } }
@media (hover: hover) { .tile:hover svg path { animation: az-redraw 1.1s var(--ease-in-out); } }

/* Pointer tilt (desktop only, set from JS) */
[data-tilt] { transform: perspective(900px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)) translateZ(0); transition: transform .5s var(--ease-out); will-change: transform; }
[data-tilt].is-tilting { transition: transform .12s linear; }

/* Magnetic buttons */
.btn { transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .45s var(--ease-out); }
.btn.is-magnet { transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .12s linear; }

/* Press feedback on touch screens */
@media (hover: none) {
  .btn:active, .choice:active, .tile:active, .room:active, .ecard:active, .next-card:active { scale: .97; transition: scale .1s; }
}

/* "Why" list: a white highlight slides to the item you point at */
.why__list { position: relative; }
.why__list li { position: relative; z-index: 1; transition: padding .45s var(--ease-out); cursor: default; }
.js .why__list li:first-child { background: transparent; padding: 22px 24px 22px 0; }
.why__hl { position: absolute; left: 0; right: 0; top: 0; height: 0; background: var(--white); border-radius: var(--radius); z-index: 0; transition: top .55s var(--ease-out), height .55s var(--ease-out); pointer-events: none; }
.js .why__list li.is-active.is-active { padding-left: 24px; }

/* Brands marquee */
.marquee { width: 100%; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; animation: az-marquee 38s linear infinite; }
.marquee__track ul { flex-wrap: nowrap; padding-right: 44px; }
.marquee__track li { white-space: nowrap; transition: color .3s; }
.marquee__track li:hover { color: var(--ink); }
@keyframes az-marquee { to { transform: translateX(-50%); } }

/* Recent rooms: floating photo preview follows the cursor */
.room-preview {
  position: fixed; left: 0; top: 0; z-index: 30; width: 300px; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  pointer-events: none; opacity: 0; scale: .6; rotate: -6deg; box-shadow: 0 30px 60px rgba(0,0,0,.18);
  transition: opacity .3s var(--ease-out), scale .45s var(--ease-out), rotate .45s var(--ease-out);
}
.room-preview.is-on { opacity: 1; scale: 1; rotate: 0deg; }
.room-preview img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) and (pointer: fine) {
  .room { transition: padding .45s var(--ease-out); }
  .room:hover { padding-left: 12px; }
}

/* CTA colour bars breathe */
@keyframes az-bar { 0%, 100% { scale: 1 1; } 50% { scale: 1.6 1; } }
.cta.is-in .cta__bars span { animation: az-bar 2.6s var(--ease-in-out) infinite; }
.cta.is-in .cta__bars span:nth-child(2) { animation-delay: .2s; }
.cta.is-in .cta__bars span:nth-child(3) { animation-delay: .4s; }
.cta.is-in .cta__bars span:nth-child(4) { animation-delay: .6s; }
.cta__stamp { translate: 0 var(--dy, 0px); }

/* Form: the underline grows from the left on focus */
.field { position: relative; }
.field::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out); }
.field:focus-within { box-shadow: none; }
.field:focus-within::after { transform: scaleX(1); }
.field.is-invalid::after { background: #c2361b; transform: scaleX(1); }
.choice { transition: background-color .25s, color .25s, border-color .25s, scale .2s; }

/* Events filter */
[data-cat] { transform-origin: 50% 0; }

/* Page transitions */
/* Arriving from another page: the head script adds .pt-arriving before the
   first paint, so the page is already covered when it draws. main.js then
   swaps in the real cover and sweeps it away. The failsafe animation lifts
   the cover if the script never runs. */
html.pt-arriving::before, html.pt-arriving::after { content: ""; position: fixed; z-index: 91; pointer-events: none; animation: az-pt-failsafe .01s linear 3s forwards; }
html.pt-arriving::before { inset: 0; background: var(--ink); }
html.pt-arriving::after {
  left: 50%; top: 50%; width: 184px; height: 8px; translate: -50% -50%;
  background:
    linear-gradient(var(--lime) 0 0) 0 0 / 40px 8px no-repeat,
    linear-gradient(var(--pink) 0 0) 48px 0 / 40px 8px no-repeat,
    linear-gradient(var(--lilac) 0 0) 96px 0 / 40px 8px no-repeat,
    linear-gradient(var(--sun) 0 0) 144px 0 / 40px 8px no-repeat;
}
@keyframes az-pt-failsafe { to { visibility: hidden; } }
.pt { position: fixed; inset: 0; z-index: 90; background: var(--ink); display: grid; place-items: center; pointer-events: none; translate: 0 100%; }
.pt__bars { display: flex; gap: 8px; }
.pt__bars span { width: 40px; height: 8px; border-radius: 4px; }
.pt.is-covering { translate: 0 0; transition: translate .55s var(--ease-in-out); pointer-events: all; }
.pt.is-revealing { translate: 0 -100%; transition: translate .7s var(--ease-in-out) .05s; }
.pt.is-cover-start { translate: 0 0; }
.pt.is-covering .pt__bars span, .pt.is-cover-start .pt__bars span { animation: az-bar .9s var(--ease-in-out) infinite; }

@media (prefers-reduced-motion: reduce) {
  .js .announce, .js .nav__inner { animation: none; }
  .js [data-anim], .js [data-anim] > *, .is-split .wi, .js .comp [data-pop] { opacity: 1 !important; translate: none !important; rotate: none !important; scale: none !important; transform: none !important; clip-path: none !important; transition: none !important; }
  .js [data-anim~="draw"]::before { transform: none; transition: none; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee__track ul + ul { display: none; }
  .js .tile svg path { stroke-dashoffset: 0; transition: none; }
  .cta.is-in .cta__bars span { animation: none; }
  .pt, .progress { display: none; }
  .nav.is-hidden { translate: none; }
}
