/* =========================================================================================
   Rectangle Architects & Planners — public site
   Minimal, editorial, image-led. Off-white ground, charcoal type, muted olive accent.
   ========================================================================================= */

:root {
  --bg: #FAFAF8;
  --surface: #FFFFFF;
  --tint: #F2F1EC;
  --ink: #222222;
  --ink-2: #4A4A47;
  --muted: #6E6E6B;           /* #737373 darkened slightly for AA contrast on #FAFAF8 */
  --line: #E5E5E0;
  --line-2: #D6D5CE;
  --accent: #6A6F45;          /* muted olive drawn from the logo */
  --accent-ink: #4E5233;
  --dark: #1E2022;
  --dark-2: #2A2D2F;
  --dark-ink: #ECEBE6;
  --dark-muted: #A9A8A1;
  --danger: #A23B2A;
  --ok: #3F6B3A;

  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif:  Georgia, "Times New Roman", serif;

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1320px;
  --section: clamp(64px, 9vw, 128px);
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.015em; line-height: 1.15; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
em { font-family: var(--serif); font-weight: 400; letter-spacing: 0; }
address { font-style: normal; }
::selection { background: #DEDFC9; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000; padding: 10px 14px;
  background: var(--ink); color: #fff; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tint { background: var(--tint); }
.muted { color: var(--muted); }

/* ---- Type ---------------------------------------------------------------------------- */
.eyebrow {
  font-size: .75rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 18px; display: flex; gap: 12px; align-items: center;
}
.eyebrow .num { color: var(--accent); font-variant-numeric: tabular-nums; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.eyebrow--light { color: var(--dark-muted); }
.page-title { font-size: clamp(2.5rem, 6vw, 4.75rem); text-align: center; letter-spacing: -0.03em; line-height: 1.02; }
.page-title--left { text-align: left; }
.h2 { font-size: clamp(1.85rem, 3.6vw, 3rem); letter-spacing: -0.025em; line-height: 1.08; }
.h3 { font-size: 1.3rem; letter-spacing: -0.01em; margin-bottom: 14px; }
.lead { font-size: clamp(1.06rem, 1.5vw, 1.22rem); line-height: 1.6; color: var(--ink); }

/* ---- Buttons & links ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 26px; border: 1px solid transparent; border-radius: var(--radius);
  font-size: .9rem; font-weight: 500; letter-spacing: .02em; text-decoration: none; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn--small { min-height: 40px; padding: 8px 16px; font-size: .82rem; }
.btn--block { width: 100%; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--accent-ink); }
.btn--outline { border-color: var(--line-2); background: transparent; color: var(--ink); }
.btn--outline:hover { border-color: var(--ink); }
.btn--light { background: var(--dark-ink); color: var(--dark); }
.btn--light:hover { background: #fff; }
.btn--ghost-light { border-color: rgba(236,235,230,.35); color: var(--dark-ink); }
.btn--ghost-light:hover { border-color: var(--dark-ink); }
.btn[disabled], .btn[aria-busy="true"] { opacity: .6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row--center { justify-content: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 500;
  text-decoration: none; padding-block: 6px; border-bottom: 1px solid currentColor;
}
.link-arrow::after { content: "→"; transition: transform .3s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: none;
  cursor: pointer; color: inherit; border-radius: 50%;
}
.icon-btn:hover { background: rgba(0,0,0,.05); }

/* ---- Header ----------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--bg);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand__mark { width: 30px; height: auto; }
.brand__custom { height: 44px; width: auto; }
.brand__word { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-size: 1.12rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; }
.brand__sub { font-size: .58rem; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.site-nav ul { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }
.site-nav a { font-size: .9rem; text-decoration: none; color: var(--ink-2); padding-block: 8px; position: relative; }
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--ink); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 0; position: relative; }
.menu-toggle__lines, .menu-toggle__lines::before, .menu-toggle__lines::after {
  position: absolute; left: 11px; width: 22px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s;
}
.menu-toggle__lines { top: 21px; }
.menu-toggle__lines::before { content: ""; left: 0; top: -7px; }
.menu-toggle__lines::after { content: ""; left: 0; top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__lines { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__lines::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__lines::after { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { border-top: 1px solid var(--line); background: var(--bg); height: calc(100dvh - 76px); overflow-y: auto; }
.mobile-menu ul { list-style: none; margin: 0; padding: 24px 0; }
.mobile-menu li a { display: block; padding: 12px 0; font-size: 1.75rem; letter-spacing: -0.02em; text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-menu li a[aria-current="page"] { color: var(--accent-ink); }
/*.mobile-menu__mp { font-family: var(--serif); font-style: italic; color: var(--accent-ink); font-size: 1.5rem !important; }*/
.mobile-menu__mp{display:none !important;}
.mobile-menu__foot { display: grid; gap: 8px; padding-bottom: 32px; color: var(--muted); }
.mobile-menu__foot a { text-decoration: none; }

/* ---- Hero ------------------------------------------------------------------------------- */
.hero { padding-block: clamp(32px, 5vw, 72px) clamp(56px, 8vw, 112px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
.hero__title { font-size: clamp(2.6rem, 6.2vw, 5.4rem); letter-spacing: -0.035em; line-height: .98; margin-bottom: 28px; }
.hero__title em { display: inline-block; font-size: 1.06em; color: var(--accent-ink); margin-top: 6px; }
.hero__lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-2); max-width: 30em; margin-bottom: 34px; }
.hero__mp-link {
  display: flex; align-items: center; gap: 14px; margin-top: 44px; padding-top: 22px;
  border-top: 1px solid var(--line); text-decoration: none; font-size: .95rem; max-width: 440px;
}
.hero__mp-link svg { margin-left: auto; transition: transform .3s var(--ease); }
.hero__mp-link:hover svg { transform: translateY(3px); }
.hero__mp-label { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.hero__media { margin: 0; }
/* ---- Section heads ---------------------------------------------------------------------- */
.section-head { margin-bottom: clamp(36px, 5vw, 64px); max-width: 860px; }
.section-head--split {
  max-width: none; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: end;
}
.section-head--split > div:last-child { justify-self: end; max-width: 460px; }
.section-head__lead { color: var(--ink-2); margin-top: 16px; }
.section-head--split .section-head__lead { margin: 0 0 18px; }

/* ---- Project cards ---------------------------------------------------------------------- */
.project-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(40px, 4vw, 64px) clamp(20px, 2.4vw, 36px);
  transition: opacity .35s var(--ease);
}
.project-grid[aria-busy="true"] { opacity: .35; }
.project-card { display: flex; flex-direction: column; min-width: 0; animation: card-in .6s var(--ease) both; }
@keyframes card-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.project-card__media { display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--tint); }
.project-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.project-card:hover .project-card__img { transform: scale(1.035); }
.project-card__img.is-placeholder { object-fit: contain; padding: 18%; }
.project-card__body { display: flex; flex-direction: column; flex: 1; padding-top: 20px; }
.project-card__title { font-size: 1.16rem; letter-spacing: -0.01em; line-height: 1.3; }
.project-card__title a { text-decoration: none; }
.project-card__title a:hover { text-decoration: underline; }
.project-card__meta { display: flex; flex-direction: column; gap: 2px; margin: 8px 0 12px; font-size: .8rem; letter-spacing: .01em; color: var(--muted); }
.project-card__cat { color: var(--accent-ink); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; }
.project-card__summary { font-size: .94rem; color: var(--ink-2); line-height: 1.6; margin-bottom: 20px; }
.project-card__actions { margin-top: auto; display: grid; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.project-card__links { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; }
.project-card__links .link-arrow { font-size: .86rem; border-bottom: 0; padding: 0; }
.project-card--large .project-card__actions .btn--block { width: auto; justify-self: start; }
.wa-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font-size: .8rem; color: var(--muted); text-decoration: none;
}
.wa-link:hover { color: var(--ink); }

/* Large horizontal card (Master Planning feature) */
.project-card--large { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.project-card--large .project-card__media { aspect-ratio: 16 / 11; }
.project-card--large .project-card__body { padding-top: 0; }
.project-card--large .project-card__title { font-size: clamp(1.6rem, 2.6vw, 2.3rem); letter-spacing: -0.02em; }
.project-card--large .project-card__summary { font-size: 1.05rem; }
.project-card--large .project-card__actions { margin-top: 8px; }

/* ---- Master planning section ------------------------------------------------------------ */
.mp-section { background: var(--surface); border-block: 1px solid var(--line); }
.mp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(48px, 5vw, 72px) clamp(20px, 2.4vw, 36px); }

/* ---- Services ---------------------------------------------------------------------------- */
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px) clamp(20px, 3vw, 48px); }
.service { display: flex; flex-direction: column; }
.service__media { display: block; overflow: hidden; aspect-ratio: 16 / 10; background: var(--tint); }
.service__img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.service:hover .service__img { transform: scale(1.03); }
.service__body { padding-top: 22px; display: flex; flex-direction: column; align-items: flex-start; }
.service__num { font-size: .78rem; letter-spacing: .14em; color: var(--accent); margin-bottom: 10px; display: flex; gap: 12px; align-items: center; }
.service__title { font-size: clamp(1.4rem, 2.2vw, 1.85rem); margin-bottom: 12px; }
.service__intro { color: var(--ink-2); max-width: 36em; }
.service__subs { list-style: none; padding: 0; margin: 4px 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.service__subs li { font-size: .78rem; padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); }
.badge { font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; padding: 3px 9px; border: 1px solid currentColor; border-radius: 999px; }
.service--highlight {
  grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  background: var(--dark); color: var(--dark-ink);
}
.service--highlight .service__media { aspect-ratio: auto; min-height: 420px; height: 100%; }
.service--highlight .service__body { padding: clamp(28px, 4vw, 56px); justify-content: center; }
.service--highlight .service__num { color: #C9CBA6; }
.service--highlight .service__intro { color: var(--dark-muted); }
.service--highlight .service__subs li { border-color: rgba(236,235,230,.25); color: var(--dark-ink); }
.service--highlight .link-arrow { color: var(--dark-ink); }

/* ---- About intro / stats / quotes -------------------------------------------------------- */
.about-intro { background: var(--tint); }
.about-intro__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.about-intro__grid .h2 { margin-bottom: 26px; }
.about-intro__grid p { color: var(--ink-2); max-width: 38em; }
.about-intro__grid .lead { color: var(--ink); }
.about-intro__grid .link-arrow { margin-top: 12px; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line-2); }
.stats > div { padding: 22px 0; border-bottom: 1px solid var(--line-2); display: flex; flex-direction: column-reverse; gap: 4px; }
.stats > div:nth-child(odd) { padding-right: 16px; border-right: 1px solid var(--line-2); }
.stats > div:nth-child(even) { padding-left: 24px; }
.stats dt { font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stats dd { margin: 0; font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 400; letter-spacing: -0.03em; line-height: 1; }
.stats--row { grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.stats--row > div { border-bottom: 1px solid var(--line); padding: 28px 24px !important; border-right: 1px solid var(--line) !important; }
.stats--row > div:first-child { padding-left: 0 !important; }
.stats--row > div:last-child { border-right: 0 !important; }
.quote { margin: 32px 0 0; padding-left: 20px; border-left: 1px solid var(--accent); }
.quote p { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.3; color: var(--ink); }
.quote cite { display: block; margin-top: 10px; font-style: normal; font-size: .82rem; color: var(--muted); }
.quote--small p { font-size: 1.15rem; }

/* ---- Team -------------------------------------------------------------------------------- */
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px) clamp(20px, 2.4vw, 36px); }
.team-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.team-card { display: flex; flex-direction: column; }
.team-card__photo { aspect-ratio: 4 / 5; background: var(--tint); overflow: hidden; display: grid; place-items: center; margin-bottom: 18px; }
.team-card__img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .6s var(--ease); }
.team-card:hover .team-card__img { filter: grayscale(.2); }
.monogram {
  font-family: var(--serif); font-size: clamp(3rem, 6vw, 4.5rem); color: var(--accent); letter-spacing: .04em;
  width: 100%; height: 100%; display: grid; place-items: center;
  background:
    linear-gradient(var(--line-2), var(--line-2)) 50% 0 / 1px 100% no-repeat,
    linear-gradient(var(--line-2), var(--line-2)) 0 50% / 100% 1px no-repeat,
    var(--tint);
}
.monogram { background-blend-mode: normal; }
.team-card--nophoto .team-card__photo { aspect-ratio: 1; width: 88px; margin-bottom: 20px; }
.team-card--nophoto .monogram { font-size: 1.9rem; background: var(--tint); border: 1px solid var(--line-2); }
.team-card--nophoto { border-top: 1px solid var(--line); padding-top: 24px; }
.monogram--xl { font-size: clamp(4rem, 9vw, 7rem); aspect-ratio: 4 / 5; }
.team-card__name { font-size: 1.12rem; }
.team-card__title { color: var(--accent-ink); font-size: .9rem; margin: 4px 0 10px; }
.team-card__quals { font-size: .86rem; color: var(--ink-2); margin-bottom: 8px; }
.team-card__facts { list-style: none; padding: 0; margin: 0 0 10px; font-size: .82rem; color: var(--muted); display: grid; gap: 4px; }
.team-card__bio { font-size: .9rem; color: var(--ink-2); }
.team-card__more summary { cursor: pointer; font-size: .85rem; font-weight: 500; padding: 8px 0; list-style: none; display: inline-flex; gap: 8px; border-bottom: 1px solid var(--line-2); }
.team-card__more summary::-webkit-details-marker { display: none; }
.team-card__more summary::after { content: "+"; }
.team-card__more[open] summary::after { content: "–"; }
.team-card__more .team-card__bio { margin-top: 14px; }
.team-group + .team-group { padding-top: 0; }
.team-group--lead { padding-bottom: calc(var(--section) * .6); }

.founder { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.founder__photo { margin: 0; background: var(--tint); aspect-ratio: 4 / 5; overflow: hidden; display: grid; place-items: center; }
.founder__photo img { width: 100%; height: 100%; object-fit: cover; }
.founder__role { color: var(--accent-ink); margin: 8px 0 24px; }
.founder__text > p { color: var(--ink-2); max-width: 40em; }
.founder__text .btn { margin-top: 28px; }

/* ---- Facts -------------------------------------------------------------------------------- */
.facts { margin: 0; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.facts--inline { margin-top: 28px; }

/* ---- CTA band ---------------------------------------------------------------------------- */
.cta-band { background: var(--dark); color: var(--dark-ink); padding-block: clamp(64px, 8vw, 112px); }
.cta-band__inner { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 32px; align-items: end; }
.cta-band p { color: var(--dark-muted); margin-top: 16px; max-width: 34em; font-size: 1.05rem; }

/* ---- Projects page ------------------------------------------------------------------------- */
.projects-page { padding-top: clamp(40px, 6vw, 80px); }
.projects-page__head { text-align: center; margin-bottom: 36px; }
.projects-page__sub { color: var(--muted); margin-top: 14px; }
.filters { border-block: 1px solid var(--line); margin-bottom: 28px; }
.filters__list {
  list-style: none; margin: 0; padding: 18px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px clamp(14px, 2.4vw, 34px);
}
.filters__list a {
  display: inline-block; padding: 8px 2px; font-size: .92rem; color: var(--muted); text-decoration: none; border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.filters__list a:hover { color: var(--ink); }
.filters__list a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.filters__sub:not(:empty) { border-top: 1px solid var(--line); }
.filters__list--sub { padding: 12px 0; gap: 4px clamp(10px, 1.8vw, 24px); }
.filters__list--sub a { font-size: .82rem; padding: 6px 2px; }
.projects-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 36px; }
.projects-toolbar__count { font-size: .82rem; color: var(--muted); margin: 0; }
.search { position: relative; display: flex; align-items: center; width: min(360px, 100%); }
.search svg { position: absolute; left: 0; color: var(--muted); }
.search input {
  width: 100%; border: 0; border-bottom: 1px solid var(--line-2); background: transparent; padding: 10px 4px 10px 26px; min-height: 44px; font-size: .92rem;
}
.search input:focus { outline: none; border-bottom-color: var(--ink); }
.cat-intro { margin: -8px 0 40px; max-width: 760px; color: var(--ink-2); display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.cat-intro--highlight { padding: 22px 26px; background: var(--tint); border-left: 2px solid var(--accent); max-width: none; }
.load-more { text-align: center; margin-top: clamp(48px, 6vw, 72px); }
.empty-state { grid-column: 1 / -1; padding: 56px 24px; text-align: center; border: 1px dashed var(--line-2); color: var(--muted); display: grid; gap: 18px; justify-items: center; }

/* ---- Project detail ----------------------------------------------------------------------- */
.project-detail { padding-top: clamp(24px, 4vw, 48px); }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0 0 clamp(28px, 4vw, 48px); display: flex; flex-wrap: wrap; gap: 6px; font-size: .8rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-2); }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--ink); }
.project-detail__head { max-width: 980px; margin-bottom: clamp(28px, 4vw, 48px); }
.project-detail__head .page-title { font-size: clamp(2.1rem, 5vw, 4rem); }
.project-detail__loc { margin-top: 16px; color: var(--muted); font-size: 1.05rem; }
.project-detail__hero { margin: 0 auto clamp(40px, 6vw, 80px); }
.project-detail__hero-img { width: 100%; max-height: 82vh; object-fit: cover; background: var(--tint); }
.project-detail__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.project-detail__main section + section { margin-top: 44px; }
.project-detail__main p { color: var(--ink-2); max-width: 42em; }
.project-detail__main .lead { color: var(--ink); }
.project-detail__aside { position: sticky; top: 100px; display: grid; gap: 32px; }
.enquire-box { padding: 26px; background: var(--tint); display: grid; gap: 12px; }
.enquire-box__title { font-size: 1.1rem; margin-bottom: 6px; }
.enquire-box__note { font-size: .78rem; color: var(--muted); }
.gallery-section { padding-top: clamp(56px, 7vw, 96px); }
.gallery { columns: 3 260px; column-gap: 16px; }
.gallery__item { display: block; margin-bottom: 16px; break-inside: avoid; overflow: hidden; background: var(--tint); cursor: zoom-in; }
.gallery__img { width: 100%; transition: transform .9s var(--ease); }
.gallery__item:hover .gallery__img { transform: scale(1.03); }
.draft-bar { background: #F4E9C9; color: #5B4A14; text-align: center; padding: 10px 16px; font-size: .88rem; }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(20,21,22,.94); display: grid; place-items: center; padding: 56px 64px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: grid; gap: 12px; justify-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; }
.lightbox figcaption { color: var(--dark-muted); font-size: .85rem; text-align: center; }
.lightbox .icon-btn { color: #fff; position: absolute; }
.lightbox .icon-btn:hover { background: rgba(255,255,255,.1); }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); font-size: 2.2rem; line-height: 1; }
.lightbox__nav--prev { left: 8px; }
.lightbox__nav--next { right: 8px; }

/* ---- Inner page hero ---------------------------------------------------------------------- */
.page-hero { padding-block: clamp(48px, 7vw, 96px) clamp(32px, 4vw, 56px); }
.page-hero--compact { padding-bottom: 0; }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.page-hero__text p { color: var(--ink-2); }
.page-hero__text .lead { color: var(--ink); }
.page-hero__media { margin-top: clamp(48px, 6vw, 80px); }
.page-hero__img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; background: var(--tint); }
.page-hero__media figcaption { font-size: .8rem; color: var(--muted); padding-top: 12px; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split p { color: var(--ink-2); }
.split .lead { color: var(--ink); }
.principles { list-style: none; padding: 0; margin: 24px 0 0; border-top: 1px solid var(--line-2); }
.principles li { padding: 16px 0; border-bottom: 1px solid var(--line-2); color: var(--ink-2); }
.principles strong { color: var(--ink); font-weight: 500; }

.capabilities { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.capabilities li { padding: 32px 28px 36px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-start; }
.capabilities li:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.capabilities__num { font-size: .78rem; color: var(--accent); letter-spacing: .14em; margin-bottom: 18px; }
.capabilities h3 { font-size: 1.3rem; margin-bottom: 12px; }
.capabilities p { color: var(--ink-2); font-size: .94rem; flex: 1; }
.capabilities .link-arrow { margin-top: 18px; font-size: .82rem; }

.mp-feature { background: var(--dark); color: var(--dark-ink); padding-block: var(--section); }
.mp-feature__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.mp-feature__text > p { color: var(--dark-muted); margin: 22px 0 28px; }
.mp-feature__list { list-style: none; padding: 0; margin: 0 0 36px; border-top: 1px solid rgba(236,235,230,.18); }
.mp-feature__list a { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(236,235,230,.18); text-decoration: none; font-size: .95rem; }
.mp-feature__list a span:last-child { color: var(--dark-muted); white-space: nowrap; }
.mp-feature__list a:hover span:first-child { text-decoration: underline; }
.mp-feature__media { margin: 0; }
.mp-feature__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.mp-feature__media figcaption { font-size: .8rem; color: var(--dark-muted); padding-top: 12px; }

/* ---- Contact ------------------------------------------------------------------------------ */
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__details { display: grid; gap: 26px; }
.contact__block { padding-top: 18px; border-top: 1px solid var(--line); }
.contact__label { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.contact__block a { text-decoration: none; }
.contact__block a:hover { text-decoration: underline; }
.contact__map iframe { width: 100%; aspect-ratio: 4 / 3; border: 0; filter: grayscale(1); }
.contact__form { background: var(--surface); border: 1px solid var(--line); padding: clamp(24px, 4vw, 48px); scroll-margin-top: 100px; }
.contact__form .muted { font-size: .85rem; margin-bottom: 24px; }

/* ---- Forms -------------------------------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field.is-hidden { display: none; }
.field label, .choice-group legend { font-size: .82rem; font-weight: 500; color: var(--ink-2); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--bg); font-size: .95rem; transition: border-color .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23555' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.field input.is-readonly { background: var(--tint); color: var(--ink); border-color: var(--line); font-weight: 500; }
.field__hint { font-size: .78rem; color: var(--muted); margin: 0; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field__error { font-size: .78rem; color: var(--danger); margin: 0; }
.choice-group { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.choice-group legend { margin-bottom: 8px; padding: 0; width: 100%; }
.choice { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; cursor: pointer; min-height: 32px; }
.choice input { width: 18px; height: 18px; accent-color: var(--ink); margin: 0; flex: none; }
.choice--consent { align-items: flex-start; font-size: .85rem; color: var(--ink-2); line-height: 1.5; }
.choice--consent input { margin-top: 2px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 18px; font-size: .9rem; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--danger); padding: 12px 14px; background: #F8ECE9; }
.form-status.is-success { color: var(--ok); padding: 16px 18px; background: #EDF2EA; }
.form-actions { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.form-actions__alt { font-size: .8rem; color: var(--muted); margin: 0; flex: 1 1 260px; }

/* ---- Enquiry dialog ----------------------------------------------------------------------- */
.enquiry-dialog {
  width: min(760px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: var(--radius);
  background: var(--surface); color: var(--ink); box-shadow: 0 24px 80px rgba(0,0,0,.18);
}
.enquiry-dialog::backdrop { background: rgba(30,32,34,.55); }
.enquiry-dialog[open] { animation: dlg-in .35s var(--ease); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.enquiry-dialog__inner { padding: clamp(22px, 4vw, 40px); }
.enquiry-dialog__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.enquiry-dialog__head h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.enquiry-dialog__head .eyebrow { margin-bottom: 10px; }
body.dialog-open { overflow: hidden; }

/* ---- Footer ------------------------------------------------------------------------------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); padding-top: clamp(56px, 7vw, 96px); font-size: .9rem; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.site-footer__intro p { color: var(--ink-2); margin-top: 20px; max-width: 30em; }
.site-footer__tag { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--accent-ink) !important; }
.footer-h { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 18px; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-list a { text-decoration: none; color: var(--ink-2); }
.footer-list a:hover { color: var(--ink); text-decoration: underline; }
.footer-list--inline { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.site-footer__contact address { color: var(--ink-2); margin-bottom: 16px; line-height: 1.55; }
.site-footer__contact address strong { color: var(--ink); font-weight: 500; }
.site-footer__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-block: 28px; margin-top: 56px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.site-footer__base p { margin: 0; }

/* ---- 404 ---------------------------------------------------------------------------------- */
.notfound__inner { text-align: center; max-width: 760px; display: grid; gap: 22px; justify-items: center; padding-block: 40px; }
.notfound__inner .eyebrow::before { display: none; }

/* ---- Reveal on scroll ---------------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---- Responsive ---------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .site-nav ul { gap: 22px; }
  .team-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .site-nav, .site-header__cta { display: none; }
  .menu-toggle { display: inline-block; }
  .hero__grid, .about-intro__grid, .page-hero__grid, .split, .founder, .contact__grid, .mp-feature__grid, .cta-band__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__grid { align-items: start; }
  .project-grid, .mp-grid, .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-card--large { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .project-card--large .project-card__body { padding-top: 22px; }
  .section-head--split { grid-template-columns: minmax(0, 1fr); }
  .section-head--split > div:last-child { justify-self: start; }
  .service--highlight { grid-template-columns: minmax(0, 1fr); }
  .service--highlight .service__media { min-height: 0; aspect-ratio: 16 / 10; }
  .project-detail__grid { grid-template-columns: minmax(0, 1fr); }
  .project-detail__aside { position: static; }
  .capabilities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .capabilities li, .capabilities li:not(:nth-child(3n+1)) { padding: 28px 24px 32px 0; border-left: 0; }
  .capabilities li:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
  .stats--row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats--row > div:nth-child(2) { border-right: 0 !important; }
  .stats--row > div:nth-child(3) { padding-left: 0 !important; }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .founder__photo { max-width: 460px; }
}
@media (max-width: 639px) {
  .project-grid, .mp-grid, .team-grid, .team-grid--4, .service-grid { grid-template-columns: minmax(0, 1fr); }
  .team-grid, .team-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 14px; }
  .team-card--compact .team-card__bio { display: none; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .capabilities { grid-template-columns: minmax(0, 1fr); }
  .capabilities li, .capabilities li:nth-child(even), .capabilities li:not(:nth-child(3n+1)) { padding: 26px 0; border-left: 0; }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); }
  .stats--row > div { padding: 20px 14px !important; }
  .stats--row > div:nth-child(odd) { padding-left: 0 !important; }
  .facts > div { grid-template-columns: 8em minmax(0, 1fr); }
  .filters__list { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-inline: 2px; }
  .filters__list::-webkit-scrollbar { display: none; }
  .filters__list li { flex: none; }
  .projects-toolbar { flex-direction: column; align-items: stretch; }
  .search { width: 100%; }
  .lightbox { padding: 56px 8px; }
  .brand__name { font-size: 1rem; letter-spacing: .22em; }
  .hero__media figcaption { flex-direction: column; gap: 2px; }
  .mp-feature__list a { flex-direction: column; gap: 2px; }
}
@media (max-width: 380px) {
  .team-grid, .team-grid--4 { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .cta-band, .enquire-box, .project-card__actions, .filters, .projects-toolbar, .load-more { display: none !important; }
  body { background: #fff; }
}

/* =========================================================================================
   MOTION LAYER — architectural animation (all disabled under prefers-reduced-motion)
   ========================================================================================= */

/* ---- Intro: a rectangle drawn like a first line on a drawing sheet (once per session) --- */
.intro { display: none; }
.intro-play .intro {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 1000; background: var(--bg);
  animation: intro-out .9s var(--ease) 1.75s forwards;
}
.intro__inner { display: grid; justify-items: center; gap: 14px; }
.intro__rect { width: 150px; height: auto; overflow: visible; }
.intro__rect rect, .intro__rect path { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s var(--ease) .1s forwards; }
.intro__rect path { stroke: var(--accent); animation-delay: .55s; }
.intro__word { font-size: 1.05rem; letter-spacing: .5em; text-transform: uppercase; font-weight: 600; opacity: 0; animation: fade-up .7s var(--ease) .9s forwards; margin-right: -.5em; }
.intro__sub { font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); opacity: 0; animation: fade-up .7s var(--ease) 1.05s forwards; }
@keyframes intro-out { to { clip-path: inset(0 0 100% 0); visibility: hidden; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

:root { --hero-delay: .15s; }
.intro-play { --hero-delay: 1.9s; }

/* ---- Scroll progress hairline -------------------------------------------------------------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

/* ---- Header hides when scrolling down, returns when scrolling up -------------------------- */
.site-header { transition: border-color .3s, transform .45s var(--ease); }
.site-header.is-hidden { transform: translateY(-100%); }

/* ---- Hero as a drawing board ----------------------------------------------------------- */
.hero { position: relative; overflow: hidden; }
.hero__gridlines { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(6, 1fr); max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); pointer-events: none; z-index: 0; }
.hero__gridlines span { border-left: 1px solid var(--line); transform-origin: top; transform: scaleY(0); animation: grow-y 1.6s var(--ease) forwards; }
.hero__gridlines span:last-child { border-right: 1px solid var(--line); }
.hero__gridlines span:nth-child(2) { animation-delay: .08s; } .hero__gridlines span:nth-child(3) { animation-delay: .16s; }
.hero__gridlines span:nth-child(4) { animation-delay: .24s; } .hero__gridlines span:nth-child(5) { animation-delay: .32s; }
.hero__gridlines span:nth-child(6) { animation-delay: .4s; }
.intro-play .hero__gridlines span { animation-delay: calc(var(--hero-delay) - .3s); }
@keyframes grow-y { to { transform: scaleY(1); } }
.hero__grid { position: relative; z-index: 1; }

.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); animation: line-up 1.1s var(--ease) forwards; animation-delay: calc(var(--hero-delay) + var(--d, 0s)); }
.hero__title .line:nth-child(2) > span { --d: .09s; } .hero__title .line:nth-child(3) > span { --d: .18s; } .hero__title .line:nth-child(4) > span { --d: .27s; }
.hero__title em { display: inline; margin: 0; font-size: 1.06em; color: var(--accent-ink); }
@keyframes line-up { to { transform: none; } }
.hero__fade, .hero__text .eyebrow { opacity: 0; animation: fade-up .9s var(--ease) forwards; animation-delay: calc(var(--hero-delay) + .45s); }
.hero__text .eyebrow { animation-delay: var(--hero-delay); }
.hero__text .btn-row.hero__fade { animation-delay: calc(var(--hero-delay) + .55s); }
.hero__mp-link.hero__fade { animation-delay: calc(var(--hero-delay) + .65s); }

.hero__media { position: relative; margin: 0; opacity: 0; animation: fade-in 1s var(--ease) forwards; animation-delay: calc(var(--hero-delay) + .1s); }
@keyframes fade-in { to { opacity: 1; } }
.hero__linework { position: absolute; left: -9%; top: -11%; width: 118%; height: 122%; color: var(--line-2); z-index: -1; overflow: visible; }
.hero__linework path, .hero__linework circle { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.4s var(--ease) forwards; animation-delay: calc(var(--hero-delay) + .2s); }
.hero__linework .lw-thin { stroke-dasharray: .004 .01; opacity: .9; animation: none; stroke-dashoffset: 0; }
.hero__linework circle { animation-duration: 3s; }
.hero__dim { position: absolute; left: 0; right: 0; top: -30px; height: 14px; display: flex; align-items: center; justify-content: center; }
.hero__dim-line { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--ink); transform: scaleX(0); animation: grow-x 1.2s var(--ease) forwards; animation-delay: calc(var(--hero-delay) + .6s); }
.hero__dim-line::before, .hero__dim-line::after { content: ""; position: absolute; top: -6px; width: 1px; height: 13px; background: var(--ink); transform: rotate(45deg); }
.hero__dim-line::before { left: 0; } .hero__dim-line::after { right: 0; }
.hero__dim-label { position: relative; background: var(--bg); padding: 0 10px; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); opacity: 0; animation: fade-in .6s forwards; animation-delay: calc(var(--hero-delay) + 1.4s); transition: opacity .4s; }
.hero__dim-label:empty { display: none; }
.hero__dim-label.is-swapping { opacity: 0 !important; }
@keyframes grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero__frame { position: relative; aspect-ratio: 5 / 4; background: var(--tint); overflow: hidden; clip-path: inset(0 0 100% 0); animation: curtain 1.3s var(--ease) forwards; animation-delay: calc(var(--hero-delay) + .15s); }
@keyframes curtain { to { clip-path: inset(0 0 0 0); } }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s var(--ease); }
.hero__slide.is-active { opacity: 1; z-index: 1; }
.hero__slide .hero__img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); transition: transform 7.5s linear; }
.hero__slide.is-active .hero__img { transform: scale(1.02); }
.crop { position: absolute; width: 22px; height: 22px; z-index: 2; pointer-events: none; border-color: #fff; border-style: solid; border-width: 0; opacity: .9; }
.crop--tl { top: 14px; left: 14px; border-top-width: 1px; border-left-width: 1px; }
.crop--tr { top: 14px; right: 14px; border-top-width: 1px; border-right-width: 1px; }
.crop--bl { bottom: 14px; left: 14px; border-bottom-width: 1px; border-left-width: 1px; }
.crop--br { bottom: 14px; right: 14px; border-bottom-width: 1px; border-right-width: 1px; }
.hero__caption { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 18px; padding-top: 14px; font-size: .82rem; color: var(--muted); position: relative; }
.hero__count { font-variant-numeric: tabular-nums; letter-spacing: .08em; color: var(--ink); }
.hero__cap-title { transition: opacity .4s; }
.hero__cap-title.is-swapping { opacity: 0; }
.hero__nav { display: flex; gap: 4px; }
.hero__btn { width: 36px; height: 36px; border: 1px solid var(--line-2); background: transparent; border-radius: 50%; cursor: pointer; color: var(--ink); transition: background .25s, color .25s, border-color .25s; }
.hero__btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.hero__progress { grid-column: 1 / -1; height: 1px; background: var(--line); margin-top: 12px; overflow: hidden; }
.hero__progress span { display: block; height: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); }
.hero__progress span.is-running { animation: grow-x linear forwards; animation-duration: var(--slide-ms, 6500ms); }
.hero__scroll { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); z-index: 1; opacity: 0; animation: fade-in 1s forwards; animation-delay: calc(var(--hero-delay) + 1.4s); }
.hero__scroll i { width: 1px; height: 40px; background: linear-gradient(var(--ink) 50%, transparent 50%); background-size: 1px 200%; animation: scroll-cue 1.8s var(--ease) infinite; }
@keyframes scroll-cue { from { background-position: 0 100%; } to { background-position: 0 -100%; } }

/* ---- Discipline marquee -------------------------------------------------------------------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg); padding-block: clamp(18px, 2.6vw, 30px); }
.marquee__track { display: flex; align-items: center; gap: clamp(22px, 3vw, 48px); width: max-content; animation: marquee 48s linear infinite; }
.marquee__track span { font-size: clamp(2rem, 5.2vw, 4.4rem); letter-spacing: -0.03em; line-height: 1; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px var(--ink-2); }
.marquee__track span em { color: var(--accent-ink); -webkit-text-stroke: 0; }
.marquee__track .marquee__dot { width: 10px; height: 10px; border: 1px solid var(--accent); transform: rotate(45deg); -webkit-text-stroke: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---- Scroll reveals ------------------------------------------------------------------------- */
.js .m-fade { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .m-fade.is-in { opacity: 1; transform: none; }
.js .m-curtain > img, .js .m-curtain > .monogram { clip-path: inset(100% 0 0 0); transform: scale(1.18); transition: clip-path 1.3s var(--ease), transform 1.8s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .m-curtain.is-in > img, .js .m-curtain.is-in > .monogram { clip-path: inset(0 0 0 0); transform: scale(1); }
.js .m-curtain > img[data-parallax] { transition: clip-path 1.3s var(--ease) !important; transition-delay: calc(var(--i, 0) * 90ms) !important; }
.js .project-card:hover .m-curtain.is-in img { transform: scale(1.04); transition-delay: 0s; }
.js .m-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.js .m-words .w > span { display: inline-block; transform: translateY(108%); transition: transform 1s var(--ease); transition-delay: calc(var(--wi, 0) * 55ms); }
.js .m-words.is-in .w > span { transform: none; }
.js .eyebrow.m-line::before { transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease) .1s; }
.js .eyebrow.m-line.is-in::before { transform: scaleX(1); }

/* parallax containers */
.service__media, .page-hero__media, .project-detail__hero, .mp-feature__media { overflow: hidden; }
.page-hero__media figcaption, .mp-feature__media figcaption { position: relative; z-index: 1; background: inherit; }
[data-parallax] { will-change: transform; }


/* ---- Crop marks on project hover (registration marks of a drawing sheet) -------------------- */
.project-card__media, .service__media { position: relative; }
.project-card__media::before, .project-card__media::after {
  content: ""; position: absolute; inset: 12px; z-index: 2; pointer-events: none; opacity: 0;
  transition: opacity .45s var(--ease), inset .55s var(--ease);
  background:
    linear-gradient(#fff, #fff) top left / 18px 1px no-repeat, linear-gradient(#fff, #fff) top left / 1px 18px no-repeat,
    linear-gradient(#fff, #fff) top right / 18px 1px no-repeat, linear-gradient(#fff, #fff) top right / 1px 18px no-repeat,
    linear-gradient(#fff, #fff) bottom left / 18px 1px no-repeat, linear-gradient(#fff, #fff) bottom left / 1px 18px no-repeat,
    linear-gradient(#fff, #fff) bottom right / 18px 1px no-repeat, linear-gradient(#fff, #fff) bottom right / 1px 18px no-repeat;
}
.project-card__media::after { background: linear-gradient(transparent 60%, rgba(20,21,22,.35)); inset: 0; }
.project-card:hover .project-card__media::before { opacity: 1; inset: 18px; }
.project-card:hover .project-card__media::after { opacity: 1; }
.project-card__title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); text-decoration: none !important; }
.project-card:hover .project-card__title a { background-size: 100% 1px; }

/* Services: blueprint grid washes over the image on hover */
.service__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .6s var(--ease);
  background-image: linear-gradient(rgba(255,255,255,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.35) 1px, transparent 1px);
  background-size: 48px 48px;
}
.service:hover .service__media::after { opacity: 1; }
.service__num { transition: letter-spacing .5s var(--ease); }
.service:hover .service__num { letter-spacing: .3em; }

/* Stats count-up keeps width stable */
[data-count-up] { font-variant-numeric: tabular-nums; }

/* Buttons: ink fill sweeps in */
.btn--outline { position: relative; overflow: hidden; z-index: 0; }
.btn--outline::before { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease); z-index: -1; }
.btn--outline:hover { color: #fff; border-color: var(--ink); }
.btn--outline:hover::before { transform: scaleY(1); }

/* ---- Custom "View" cursor over imagery (fine pointers only) ------------------------------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; transform: translate3d(-200px, -200px, 0) scale(0); transition: transform .35s var(--ease); opacity: .92; }
.cursor.is-on { transform: translate3d(var(--x), var(--y), 0) scale(1); transition: transform .12s linear; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---- Footer wordmark ------------------------------------------------------------------------- */
.footer-word { overflow: hidden; text-align: center; margin-top: clamp(40px, 6vw, 80px); line-height: .78; user-select: none; }
.footer-word span { display: inline-block; font-size: clamp(4rem, 17vw, 15.5rem); font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1px var(--line-2); transform: translateY(40%); transition: transform 1.4s var(--ease), -webkit-text-stroke-color 1s; }
.footer-word.is-in span { transform: none; }
.footer-word:hover span { -webkit-text-stroke-color: var(--accent); }

/* ---- Projects grid: staggered entrance for filtered cards ----------------------------------- */
.project-grid .project-card { animation-delay: calc(var(--ci, 0) * 70ms); }

@media (max-width: 1023px) {
  .hero__linework { display: none; }
  .hero__gridlines { grid-template-columns: repeat(4, 1fr); }
  .hero__gridlines span:nth-child(n+5) { display: none; }
  .hero__gridlines span:nth-child(4) { border-right: 1px solid var(--line); }
  .hero__scroll { display: none; }
  .hero__media { margin-top: 30px; }
}
@media (max-width: 639px) {
  .hero__gridlines { grid-template-columns: repeat(2, 1fr); }
  .hero__gridlines span:nth-child(n+3) { display: none; }
  .hero__gridlines span:nth-child(2) { border-right: 1px solid var(--line); }
  .hero__caption { grid-template-columns: auto 1fr; }
  .hero__nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .intro { display: none !important; }
  .hero__title .line > span, .hero__fade, .hero__text .eyebrow, .hero__media, .hero__frame, .hero__gridlines span, .hero__dim-line, .hero__dim-label, .hero__scroll { animation: none !important; opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .hero__linework path, .hero__linework circle { animation: none !important; stroke-dashoffset: 0 !important; }
  .marquee__track { animation: none !important; }
  .js .m-fade, .js .m-curtain > *, .js .m-words .w > span, .footer-word span { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .hero__slide .hero__img { transform: none !important; }
  .cursor { display: none !important; }
}

/* ---- Leadership: two equal editorial profiles, alternating sides ------------------------- */
.leaders { display: grid; gap: clamp(64px, 9vw, 128px); }
.leader + .leader { padding-top: clamp(64px, 9vw, 128px); border-top: 1px solid var(--line); margin-top: calc(clamp(64px, 9vw, 128px) * -1 + 0px); }
.leaders .leader + .leader { margin-top: 0; }
.leader .founder__photo { max-width: none; }
.founder--reverse { grid-template-columns: minmax(0, 6fr) minmax(0, 4fr); }
.founder--reverse .founder__photo { order: 2; }
.founder--reverse .founder__text { order: 1; }
.facts__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
@media (max-width: 1023px) {
  .founder--reverse { grid-template-columns: minmax(0, 1fr); }
  .founder--reverse .founder__photo { order: 0; }
  .founder--reverse .founder__text { order: 1; }
  .leader .founder__photo { max-width: 460px; }
}

/* =========================================================================================
   FOOTER — brick-wall background from the brand reference (charcoal grey, lime accent)
   Seamless 88×64 inline-SVG tile: two courses, running bond, fine lighter mortar lines.
   ========================================================================================= */
.site-footer {
  --f-bg: #585858; --f-ink: #F4F4F0; --f-muted: #DADAD4; --f-line: rgba(255,255,255,.16); --lime: #ADC136;
  background-color: var(--f-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='64' viewBox='0 0 88 64'%3E%3Cg fill='none'%3E%3Cpath d='M0 .5H88M0 32.5H88' stroke='%236C6C6C' stroke-width='1.6'/%3E%3Cpath d='M.5 0V32M44.5 32V64' stroke='%236C6C6C' stroke-width='1.6'/%3E%3Cpath d='M2 2.2H42.5M46 2.2H86M2 34.2H42.5M46 34.2H86' stroke='%23606060' stroke-width='1'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 88px 64px;
  color: var(--f-ink);
  border-top: 0;
  position: relative;
}
.site-footer::before { /* soft vignette keeps text crisp over the pattern */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 0%, rgba(88,88,88,0) 40%, rgba(60,60,60,.45) 100%);
}
.site-footer > * { position: relative; }
.site-footer__brand { display: grid; justify-items: center; text-align: center; gap: 22px; padding-bottom: clamp(40px, 5vw, 64px); margin-bottom: clamp(40px, 5vw, 56px); }
.footer-logo { display: grid; justify-items: center; text-decoration: none; gap: 6px; }
.footer-logo img { width: 58px; height: auto; margin-bottom: 10px; }
.footer-logo__name { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 600; letter-spacing: .08em; line-height: 1; text-transform: uppercase; color: var(--lime); }
.footer-logo__sub { font-size: clamp(.82rem, 1.4vw, 1.05rem); letter-spacing: .14em; text-transform: uppercase; color: #fff; font-weight: 500; }
.footer-disciplines { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; max-width: 760px; font-size: .95rem; color: var(--f-ink); }
.footer-disciplines li { display: inline-flex; align-items: center; gap: 10px; }
.footer-disciplines li::before { content: ""; width: 7px; height: 11px; background: var(--lime); flex: none; }
.site-footer__intro p { color: var(--f-muted); margin-top: 0; }
.site-footer__tag { color: var(--lime) !important; }
.site-footer .footer-h { color: var(--lime); }
.site-footer .footer-list a, .site-footer__contact address { color: var(--f-ink); }
.site-footer__contact address strong { color: #fff; }
.site-footer .footer-list a { text-decoration: none; background: linear-gradient(var(--lime), var(--lime)) 0 100% / 0 1px no-repeat; transition: color .25s, background-size .35s var(--ease); }
.site-footer .footer-list a:hover, .site-footer .footer-list a:focus-visible { color: var(--lime); background-size: 100% 1px; text-decoration: none; }
.site-footer :focus-visible { outline-color: var(--lime); }
.site-footer__base { border-top-color: var(--f-line); color: var(--f-muted); }
.footer-word span { -webkit-text-stroke-color: rgba(255,255,255,.22); }
.footer-word:hover span { -webkit-text-stroke-color: var(--lime); }
@media (max-width: 639px) {
  .footer-disciplines { font-size: .85rem; gap: 6px 14px; }
}

/* ---- Hero: "Designing Spaces With / Vision & Purpose" ---------------------------------- */
.hero__title { font-size: clamp(2.3rem, 5vw, 4.6rem); line-height: 1.02; }
.hero__title .line:nth-child(2) em { font-size: 1.12em; }
.hero__lead { font-size: clamp(1rem, 1.3vw, 1.15rem); max-width: 32em; line-height: 1.7; }

/* ---- What we do: capabilities + five disciplines (3-column) ---------------------------- */
.services .capabilities { margin-bottom: clamp(72px, 9vw, 120px); }
.services__sub { margin-bottom: clamp(32px, 4vw, 48px); }
.service-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(36px, 4vw, 56px) clamp(20px, 2.4vw, 32px); }
.service-grid--3 .service__media { aspect-ratio: 4 / 3; }
.service-grid--3 .service__title { font-size: clamp(1.25rem, 1.8vw, 1.5rem); }
.service-grid--3 .service__intro { font-size: .94rem; }
.service-grid--3 .service--highlight { grid-column: span 2; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.service-grid--3 .service--highlight .service__media { aspect-ratio: auto; min-height: 380px; }
.service-grid--3 .service--highlight .service__title { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.about-services__inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.about-services__inner .lead { color: var(--ink-2); margin-bottom: 18px; }

/* ---- Testimonials ------------------------------------------------------------------------ */
.testimonials { background: var(--surface); border-top: 1px solid var(--line); }
.testimonials__track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.testimonials__track--scroll { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.testimonials__track--scroll::-webkit-scrollbar { display: none; }
.testimonials__track--scroll .testimonial { flex: 0 0 calc((100% - 48px) / 3); scroll-snap-align: start; }
.testimonials__nav { display: flex; gap: 6px; margin-top: 4px; }
.testimonial { margin: 0; padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line); background: var(--bg); display: flex; flex-direction: column; gap: 22px; }
.testimonial__mark { color: var(--accent); opacity: .7; }
.testimonial__quote { margin: 0; flex: 1; }
.testimonial__quote p { font-family: var(--serif); font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.45; color: var(--ink); }
.testimonial__by { display: flex; align-items: center; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .88rem; }
.testimonial__by strong { display: block; font-weight: 500; }
.testimonial__role, .testimonial__project { display: block; color: var(--muted); font-size: .8rem; }
.testimonial__project { color: var(--accent-ink); }
.testimonial__photo { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; }
.testimonial__photo--mono { display: grid; place-items: center; background: var(--tint); color: var(--accent); font-family: var(--serif); font-size: 1.2rem; border: 1px solid var(--line-2); }

/* ---- CTA: "DO YOU have a project in mind?" ---------------------------------------------- */
.cta-band__title { font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1.05; }
.cta-band__caps { display: inline-block; font-weight: 600; letter-spacing: .06em; color: #fff; }
.cta-band__title em { color: #D5D8B4; font-size: 1.08em; }

@media (max-width: 1023px) {
  .service-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-grid--3 .service--highlight { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr); }
  .service-grid--3 .service--highlight .service__media { min-height: 0; aspect-ratio: 16 / 10; }
  .testimonials__track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .testimonials__track--scroll .testimonial { flex-basis: calc((100% - 24px) / 2); }
  .about-services__inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 639px) {
  .service-grid--3 { grid-template-columns: minmax(0, 1fr); }
  .testimonials__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .testimonials__track::-webkit-scrollbar { display: none; }
  .testimonials__track .testimonial, .testimonials__track--scroll .testimonial { flex: 0 0 86%; scroll-snap-align: start; }
}

/* Testimonials — invitation shown until verified testimonials are published */
.testimonials__empty { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); border: 1px solid var(--line); background: var(--bg); }
.testimonials__empty-main { padding: clamp(28px, 4vw, 56px); display: grid; gap: 18px; align-content: start; }
.testimonials__empty-main p { color: var(--ink-2); max-width: 40em; margin: 0; }
.testimonials__empty-title { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2.2rem) !important; line-height: 1.25; color: var(--ink) !important; }
.testimonials__empty-side { padding: clamp(28px, 4vw, 56px); border-left: 1px solid var(--line); background: var(--tint); display: grid; gap: 14px; align-content: center; }
.testimonials__empty-side p { margin: 0; color: var(--ink-2); }
.testimonials__empty-label { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink) !important; }
@media (max-width: 1023px) {
  .testimonials__empty { grid-template-columns: minmax(0, 1fr); }
  .testimonials__empty-side { border-left: 0; border-top: 1px solid var(--line); }
}
.footer-word.is-in{display:none !important;}
.services .capabilities { margin-bottom: 0; }
/* =========================================================================================
   UPDATE 23 OCT 2026
   ========================================================================================= */

/* ---- Hero carousel: wider frame (less cropping of plans), gentle fade, subtle zoom ---------- */
.hero__frame { aspect-ratio: 3 / 2; touch-action: pan-y; }
.hero__slide { display: block; transition: opacity 1.2s var(--ease); }
.hero__slide .hero__img { transform: scale(1.04); transition: transform 6s linear; background: var(--tint); }
.hero__slide.is-active .hero__img { transform: scale(1); }
.hero__slide img:not([src]) { visibility: hidden; }
/* soft vignette keeps the white crop marks legible on light drawings */
.hero__frame::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(20,21,22,.10), transparent 22%, transparent 78%, rgba(20,21,22,.14)); }
.hero__caption { grid-template-columns: auto minmax(0, 1fr) auto; }
.hero__cap-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero__dots { grid-column: 1 / -1; display: flex; gap: 6px; margin-top: 10px; }
.hero__dot { position: relative; width: 26px; height: 22px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.hero__dot::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--line-2); transition: background .3s; }
.hero__dot:hover::before { background: var(--muted); }
.hero__dot[aria-current="true"]::before { background: var(--ink); }
@media (max-width: 639px) {
  .hero__caption { grid-template-columns: auto minmax(0, 1fr) auto; }
  .hero__media figcaption { flex-direction: row; }
  .hero__nav { display: flex; }
  .hero__btn { width: 40px; height: 40px; }
  .hero__dot { width: 22px; height: 28px; }
}

/* ---- Project cards without a detail page (all categories except Urban Planning) ------------- */
.project-card--static .project-card__media { cursor: default; }
.project-card--static .project-card__links { justify-content: flex-start; }

/* ---- Gallery layout listing (Interior Designing): every image visible, grouped by project ---- */
.id-gallery { grid-column: 1 / -1; display: grid; gap: clamp(56px, 8vw, 104px); }
.id-project { min-width: 0; animation: card-in .6s var(--ease) both; }
.id-project__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 12px clamp(24px, 4vw, 64px); align-items: end;
  padding-bottom: 22px; margin-bottom: clamp(20px, 2.4vw, 32px); border-bottom: 1px solid var(--line); }
.id-project__cat { margin: 0 0 8px; color: var(--accent-ink); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; }
.id-project__title { margin: 0; font-size: clamp(1.5rem, 2.4vw, 2.1rem); letter-spacing: -0.02em; line-height: 1.15; }
.id-project__summary { margin: 0 0 10px; color: var(--ink-2); line-height: 1.6; max-width: 42em; }
.id-project__meta { margin: 0 0 14px; font-size: .8rem; color: var(--muted); letter-spacing: .04em; }
.id-project__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.id-project__empty { color: var(--muted); }
.id-masonry { column-count: 3; column-gap: clamp(12px, 1.6vw, 22px); }
.id-masonry__item { display: block; break-inside: avoid; margin: 0 0 clamp(12px, 1.6vw, 22px); background: var(--tint); overflow: hidden; cursor: zoom-in; }
.id-masonry__img { display: block; width: 100%; height: auto; transition: transform 1s var(--ease), opacity .3s; }
.id-masonry__item:hover .id-masonry__img { transform: scale(1.025); }
.id-masonry__item:focus-visible { outline-offset: 2px; }
@media (max-width: 1023px) {
  .id-masonry { column-count: 2; }
  .id-project__head { grid-template-columns: minmax(0, 1fr); align-items: start; }
}
@media (max-width: 559px) {
  .id-masonry { column-count: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .id-masonry__item:hover .id-masonry__img { transform: none; }
}

/* =========================================================================================
   UPDATE 27 OCT 2026 — project gallery (justified rows: natural proportions, no cropping)
   ========================================================================================= */
.project-detail__hero--natural a { display: block; cursor: zoom-in; }
.project-detail__hero--natural .project-detail__hero-img { width: 100%; height: auto; max-height: 86vh; object-fit: contain; }
.gallery-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: clamp(18px, 2vw, 28px); }
.gallery-head .h3 { margin: 0; }
.gallery-head__count { margin: 0; font-size: .8rem; letter-spacing: .06em; color: var(--muted); }
.jgallery { --g: clamp(10px, 1.4vw, 18px); display: grid; gap: var(--g); }
.jgallery__row { display: flex; gap: var(--g); }
.jgallery__item.gallery__item { flex: var(--r, 1.5) 1 0; min-width: 0; aspect-ratio: var(--r, 1.5); margin: 0; }
.jgallery__img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.jgallery__item:hover .jgallery__img { transform: scale(1.025); }
@media (min-width: 560px) and (max-width: 767px) {
  .jgallery__row--3 { flex-wrap: wrap; }
  .jgallery__row--3 .jgallery__item:first-child { flex-basis: 100%; }
}
@media (max-width: 559px) {
  .jgallery__row { flex-direction: column; }
  .jgallery__item.gallery__item { flex: none; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .jgallery__item:hover .jgallery__img { transform: none; }
}
/* Footer readability: same brick wall, 45% black overlay, brighter lime */
.site-footer { --lime: #C5DA4A; --f-muted: #E2E2DC; }
.site-footer::before { background: rgba(0, 0, 0, .35); }
.site-footer .footer-h { font-weight: 600; }
/* ---- Intro: RA logo animation (28 Nov 2026) — R draws in, leg + lime A slide in, name fades up ---- */
.intro-play { --hero-delay: 2.45s; }
.intro-play .intro { animation: intro-out .9s var(--ease) 2.3s forwards; }
.intro__logo { width: 96px; height: auto; overflow: visible; }
.intro__r { fill: #0B1B2B; stroke: #0B1B2B; stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; fill-opacity: 0;
  animation: draw 1s var(--ease) .1s forwards, intro-fill .5s ease .75s forwards; }
.intro__leg { fill: #0B1B2B; opacity: 0; transform: translate(-40px, 40px); animation: intro-slide .6s var(--ease) .95s forwards; }
.intro__a { fill: #A4A62A; opacity: 0; transform: translate(-30px, -48px); animation: intro-slide .65s var(--ease) 1.1s forwards; }
.intro__bar { fill: #A4A62A; clip-path: inset(0 100% 0 0); animation: intro-wipe .45s var(--ease) 1.45s forwards; }
.intro__word { font-weight: 700; color: #0B1B2B; animation-delay: 1.55s; }
.intro__sub { animation-delay: 1.7s; }
@keyframes intro-fill { to { fill-opacity: 1; } }
@keyframes intro-slide { to { opacity: 1; transform: none; } }
@keyframes intro-wipe { to { clip-path: inset(0 0 0 0); } }
.about-intro .lead strong { font-weight: 600; color: var(--ink); }
