/* ==========================================================================
   Hardscape Group
   ========================================================================== */

/* ---------- Self-hosted fonts (Inter is variable: one file covers 300–800) ---------- */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@property --accent {
  syntax: "<color>";
  inherits: true;
  initial-value: #ffffff;
}

:root {
  --bg: #0b0b0c;
  --bg-2: #121214;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f4f4f2;
  --muted: rgba(244, 244, 242, 0.62);
  --accent: #ffffff;

  --products: #DE353C;
  --surfaces: #F9A12C;
  --warehouse: #A5CD41;
  --stone: #0299D6;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --gutter: clamp(1.25rem, 4.5vw, 4rem);
  --header-h: 5.5rem;
  --rule: 2px;          /* every decorative accent line */
  --anchor-gap: 6.25rem; /* scrolled header (4.25rem) + breathing room */
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

/* In-page links land with the target just below the fixed header. The
   targets are empty markers: the content itself starts shifted down for its
   reveal animation, which would throw the scroll position off. */
.anchor { display: block; height: 0; scroll-margin-top: var(--anchor-gap); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Menu open: scrolling is locked, which hides the scrollbar; pad by its width
   (--scrollbar, set in main.js) so the page and header don't shift. */
body.is-locked { overflow: hidden; padding-right: var(--scrollbar, 0px); }
body.is-locked .site-header { padding-right: calc(var(--gutter) + var(--scrollbar, 0px)); }

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

ul, ol { list-style: none; margin: 0; padding: 0; }

:focus-visible {
  outline: 2px solid #fff; /* not the hero slide's colour, which follows the slideshow */
  outline-offset: 4px;
  border-radius: 2px;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: #fff;
  color: #000;
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform 0.2s;
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: 82rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: currentColor;
}

.h2 {
  font-size: clamp(2rem, 4.6vw, 3.75rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin: 0;
  max-width: 18ch;
  text-wrap: balance;
}

.h3 {
  font-size: clamp(1.375rem, 2.2vw, 1.875rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin: 0 0 1rem;
  text-wrap: balance;
}

.lead {
  font-size: clamp(1.25rem, 1.9vw, 1.625rem);
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--text);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn svg {
  width: 1.1em;
  height: 1.1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  transition: transform 0.35s var(--ease);
}
.btn:hover svg { transform: translateX(4px); }

.btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, 0.04);
}
.btn--ghost:hover {
  background: #fff;
  border-color: #fff;
  color: #0b0b0c;
}

.btn--solid {
  background: #fff;
  color: #0b0b0c;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  padding: 1.15rem 1.9rem;
}
.btn--solid:hover { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px #fff; }

/* Visit a division site: the address set like the URL logos, the division
   part and the arrow in the division colour. Same in the hero and below. */
.btn--visit {
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.btn--visit b { font-weight: inherit; color: var(--accent); transition: color 0.6s; }
.btn--visit svg { stroke: var(--accent); transition: transform 0.35s var(--ease), stroke 0.6s; }
/* Hero: the colour changes with the words (main.js), so don't fade it. */
.hero__cta b { transition: none; }
.hero__cta svg { transition: transform 0.35s var(--ease); }
.btn--visit:hover { border-color: var(--accent); background: rgba(255, 255, 255, 0.08); }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 70;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  transition: background-color 0.4s var(--ease), height 0.4s var(--ease), border-color 0.4s;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  --header-h: 4.25rem;
  background: rgba(11, 11, 12, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}

body.is-locked .site-header {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.site-header__logo img { width: clamp(132px, 12vw, 157px); height: auto; }

.menu-toggle {
  position: relative;
  z-index: 61;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0 0.75rem 0.75rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.menu-toggle__label { min-width: 6.5ch; text-align: right; } /* "Menu" and "Close" take the same space */

.menu-toggle__icon {
  position: relative;
  width: 1.5rem;
  height: 0.6rem;
}
.menu-toggle__icon span {
  position: absolute;
  right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.5s var(--ease), width 0.5s var(--ease), top 0.5s var(--ease);
}
.menu-toggle__icon span:nth-child(1) { top: 0; width: 100%; }
.menu-toggle__icon span:nth-child(2) { top: calc(100% - 1.5px); width: 65%; }
.menu-toggle:hover .menu-toggle__icon span:nth-child(2) { width: 100%; }

.menu-toggle[aria-expanded="true"] .menu-toggle__icon span { top: 50%; width: 100%; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:nth-child(1) { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:nth-child(2) { transform: rotate(-45deg); }

/* ==========================================================================
   Menu overlay
   ========================================================================== */

.menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(8, 8, 9, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease-in-out), visibility 0s 0.7s;
  visibility: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.menu[hidden] { display: block; }

.menu.is-open {
  clip-path: inset(0 0 0 0);
  visibility: visible;
  transition: clip-path 0.7s var(--ease-in-out), visibility 0s;
}

.menu__inner {
  min-height: 100%;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
  align-items: end;
  padding: calc(var(--header-h) + 3rem) var(--gutter) 4rem;
}

.menu__eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.menu__nav a {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  font-size: clamp(2.5rem, 6.5vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 500;
  padding: 0.15em 0;
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.3s, transform 0.5s var(--ease);
}
.menu__nav a:hover { color: #fff; transform: translateX(0.5rem); }
.menu__nav ul:hover a:not(:hover) { color: rgba(255, 255, 255, 0.35); }

.menu__sites li { border-top: 1px solid var(--line); }
.menu__sites li:last-child { border-bottom: 1px solid var(--line); }
.menu__sites a {
  position: relative;
  display: block;
  padding: 1.25rem 0;
}
.menu__sites a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  width: 0;
  background: var(--accent);
  transition: width 0.5s var(--ease);
}
.menu__sites a:hover::after { width: 100%; }
.menu__sites img { width: 100%; max-width: 259px; height: auto; }

.menu__email {
  display: inline-block;
  margin-top: 2rem;
  color: var(--muted);
  transition: color 0.3s;
}
.menu__email:hover { color: #fff; }

/* Staggered entrance */
.menu__nav li,
.menu__sites li,
.menu__email,
.menu__eyebrow {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.5s var(--ease), transform 0.8s var(--ease);
}
.menu.is-open .menu__nav li,
.menu.is-open .menu__sites li,
.menu.is-open .menu__email,
.menu.is-open .menu__eyebrow {
  opacity: 1;
  transform: none;
  transition-delay: calc(0.25s + var(--i, 0) * 0.06s);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 36rem;
  overflow: hidden;
  overflow: clip;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr minmax(20rem, 23rem);
  align-items: center;
  touch-action: pan-y;
}

.hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; overflow: clip; }

.hero__bg {
  position: absolute;
  inset: -2%;
  background-size: cover;
  background-position: var(--pos, center);
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.4s var(--ease-in-out), transform 1.4s var(--ease-in-out);
  will-change: opacity, transform;
}
.hero__bg.is-active {
  opacity: 1;
  transform: scale(1);
  transition: opacity 1.4s var(--ease-in-out), transform 9s linear;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.35) 45%, rgba(0,0,0,0.15) 70%, rgba(0,0,0,0.45) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.45) 0%, transparent 25%, transparent 65%, rgba(0,0,0,0.6) 100%);
}

.hero__inner {
  padding: var(--header-h) var(--gutter) 0;
  align-self: center;
}

.hero__copy { max-width: 42rem; }

/* "HARDSCAPE" and the division names are the logo artwork (assets/logos/
   word-*.svg, from the division logos), at the logo's proportions: each word
   keeps its width relative to HARDSCAPE, and the gap between the lines is
   4.2% of the wordmark's width. */
.hero__title {
  --wordmark: clamp(15rem, 34vw, 30rem);
  margin: 0 0 1.75rem;
  line-height: 1;
}
.hero__word { display: block; width: var(--wordmark); color: #fff; }
.hero__wordmark { width: 100%; height: auto; }
.hero__mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.hero__name {
  display: block;
  width: var(--wordmark);
  padding-top: calc(var(--wordmark) * 0.045);
  color: var(--accent); /* set with the words in main.js, so no colour fade */
}
.hero__division { display: none; height: auto; }
.hero__division.is-current { display: block; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.hero__part {
  margin: -0.75rem 0 1.25rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.hero__mask--lede { margin: 0 0 2.25rem; }
.hero__lede {
  display: block;
  font-size: clamp(1.125rem, 1.8vw, 1.5rem);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.02em;
  max-width: 40ch;
  min-height: 2.6em; /* two lines */
  text-wrap: pretty; /* not balance: that broke Surfaces' line early */
}
.hero__mask--cta { padding: 4px; margin: -4px; }

/* Text swap animation */
.hero__name,
.hero__lede,
.hero__cta {
  transition: transform 0.9s var(--ease), opacity 0.6s var(--ease);
}
.hero__lede { transition-delay: 0.07s; }
.hero__cta { transition-delay: 0.14s; }

.hero__copy.is-out .hero__name,
.hero__copy.is-out .hero__lede,
.hero__copy.is-out .hero__cta {
  transform: translateY(-105%);
  opacity: 0;
  transition-duration: 0.45s, 0.35s;
  transition-timing-function: cubic-bezier(0.55, 0, 0.75, 0.2);
}
.hero__copy.is-in .hero__name,
.hero__copy.is-in .hero__lede,
.hero__copy.is-in .hero__cta {
  transform: translateY(105%);
  opacity: 0;
  transition: none;
}

/* Initial load */
.is-loading .hero__word,
.is-loading .hero__name,
.is-loading .hero__lede,
.is-loading .hero__cta { transform: translateY(105%); opacity: 0; }
.is-loading .panel { transform: translateX(2rem); opacity: 0; }
.is-loading .site-header { opacity: 0; transform: translateY(-1rem); }
.hero__word { transition: transform 1.1s var(--ease), opacity 0.8s var(--ease); }
.site-header { transition: opacity 1s var(--ease) 0.4s, transform 1s var(--ease) 0.4s, background-color 0.4s var(--ease), height 0.4s var(--ease), border-color 0.4s; }

/* ---------- Division panel ---------- */

.panel {
  position: relative;
  align-self: center;
  margin-top: var(--header-h);
  margin-right: 0;
  background: rgba(14, 14, 16, 0.55);
  backdrop-filter: blur(22px) saturate(130%);
  -webkit-backdrop-filter: blur(22px) saturate(130%);
  border: 1px solid var(--line);
  border-right: 0;
  transition: transform 1.1s var(--ease) 0.5s, opacity 1.1s var(--ease) 0.5s;
}

.panel__head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.75rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.panel__title { flex: 1; }

.panel__pause {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  margin-right: -0.4rem;
  border-radius: 50%;
  color: var(--text);
  transition: background-color 0.3s;
}
.panel__pause:hover { background: rgba(255, 255, 255, 0.1); }
.panel__pause svg { width: 0.9rem; height: 0.9rem; stroke: currentColor; stroke-width: 2; fill: none; }
.panel__pause .i-play { display: none; fill: currentColor; stroke: none; }
.panel__pause.is-paused .i-pause { display: none; }
.panel__pause.is-paused .i-play { display: block; }

.panel__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: var(--rule);
}
.panel__progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(var(--p, 0));
}

.panel__item {
  position: relative;
  display: block;
  padding: 1.35rem 1.75rem;
  opacity: 0.38;
  transition: opacity 0.5s var(--ease), background-color 0.5s var(--ease);
}
.panel__list li + li .panel__item { border-top: 1px solid transparent; }
.panel__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--rule);
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.6s var(--ease);
}
.panel__item img {
  width: 100%;
  max-width: 236px;
  height: auto;
  margin-bottom: 0.7rem;
  transition: transform 0.6s var(--ease);
}
.panel__desc {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  max-width: 30ch;
}

.panel__item.is-active,
.panel__item:hover,
.panel__item:focus-visible {
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
}
.panel__item.is-active::before { transform: scaleY(1); }
.panel__item.is-active img { transform: translateX(0.35rem); }
.panel__item:focus-visible { outline-offset: -2px; }

/* Mobile dots */
.hero__dots { display: none; }

/* Scroll cue */
.hero__scroll {
  position: absolute;
  left: var(--gutter);
  bottom: 2rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  transition: border-color 0.3s;
}
.hero__scroll:hover { border-color: #fff; }
.hero__scroll svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: #fff;
  stroke-width: 1.75;
  animation: scroll-cue 2.2s var(--ease-in-out) infinite;
}
@keyframes scroll-cue {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(4px); }
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section { padding: clamp(4rem, 8vw, 7rem) 0; }

.section-head { margin-bottom: clamp(3rem, 7vw, 6rem); }

/* Division icons in a row, at the size they have in the URL logos */
.division-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0 0;
}
.division-icons img { width: 2rem; height: 2rem; }
.division-icons--contact { margin-top: 2.5rem; }

/* About (The Group) */
.about {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(4rem, 9vw, 7.5rem);
}
.about__bg,
.contact__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../img/triangles-bg.svg") center / cover no-repeat;
}
.about__bg.is-live,
.contact__bg.is-live { background: none; }
.about__bg canvas,
.contact__bg canvas { display: block; width: 100%; height: 100%; }
/* Keep the copy readable: the triangles show most on the left (on the right
   in Contact, where the field is mirrored and the heading sits left). */
.about__bg::after,
.contact__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 11, 12, 0.35) 0%, rgba(11, 11, 12, 0.75) 45%, rgba(11, 11, 12, 0.92) 100%);
}
/* The ripple itself is drawn on a canvas in main.js ("Triangle fields"). */

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2.5rem, 6vw, 7rem);
}
.about__copy p { margin: 0 0 1.25rem; color: var(--muted); }
.about__copy .lead { color: var(--text); margin-bottom: 2rem; }

/* Divisions */
.divisions { background: var(--bg-2); }

.division {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.division + .anchor { margin-top: clamp(4rem, 10vw, 8rem); }

.division__figure { position: relative; }
.division--flip .division__figure { order: 2; }

.division__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 2px;
}
.division__media::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  height: var(--rule);
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s var(--ease) 0.3s;
}
.division.is-visible .division__media::before { transform: scaleX(1); }
.division__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  transition: transform 1.6s var(--ease);
}
.division.is-visible .division__media img { transform: scale(1); }
.division:hover .division__media img { transform: scale(1.03); }


/* A triangle in the division colour sweeps in once, in one smooth arc, and
   settles on the image's top-right corner. Over the image, so it works whatever the photo.
   The arc: the outer element moves sideways (easing out) while the inner
   shape rises and turns (easing in and out), a single curve with no steps. */
.division__kite {
  position: absolute;
  right: 0;
  top: 0;
  z-index: 3;
  width: clamp(3rem, 5vw, 4.25rem);
  aspect-ratio: 1;
  pointer-events: none;
}
.division__kite-shape {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  opacity: 0;
}
.division.is-visible .division__kite { animation: kite-x 2.2s cubic-bezier(0.25, 0.8, 0.3, 1) 0.6s both; }
.division.is-visible .division__kite-shape { animation: kite-y 2.2s cubic-bezier(0.55, 0, 0.25, 1) 0.6s both; }
@keyframes kite-x {
  from { transform: translateX(-16rem); }
  to   { transform: none; }
}
@keyframes kite-y {
  from { opacity: 0; transform: translateY(10rem) rotate(-150deg) scale(0.6); }
  15%  { opacity: 1; }
  to   { opacity: 1; transform: none; }
}

.division__logo { width: 100%; max-width: 300px; height: auto; margin-bottom: 1.75rem; }
.division__body > p { color: var(--muted); margin: 0 0 1.75rem; max-width: 46ch; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.25rem;
}
.tags li {
  font-size: 0.8125rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  opacity: 0;
  transform: translateY(0.5rem);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), border-color 1.2s var(--ease);
  transition-delay: calc(0.9s + var(--i, 0) * 0.28s);
}
/* They fade in one by one and pick up the division colour, then stay. */
.division.is-visible .tags li { opacity: 1; transform: none; border-color: var(--accent); }

/* Approach */
.section-head--quiet { margin-bottom: clamp(2rem, 4vw, 3rem); }
.h2--small { font-size: clamp(1.5rem, 2.6vw, 2.25rem); max-width: 26ch; }

.framework-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 24rem);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.framework {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1em 0;
  font-size: clamp(1.75rem, 3.6vw, 3.5rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
  font-weight: 500;
  counter-reset: fw;
}
.framework li {
  --c: #ffffff;
  position: relative;
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.14);
  transition: color 1.2s var(--ease);
  transition-delay: calc(0.2s + var(--i, 0) * 0.18s);
}
.framework button {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  text-decoration: underline transparent var(--rule);
  text-underline-offset: 0.18em;
  transition: text-decoration-color 0.3s, opacity 0.3s;
}
.framework button:hover,
.framework button[aria-pressed="true"] { text-decoration-color: currentColor; }
.framework li::after {
  content: "";
  width: 0.2em;
  height: 0.2em;
  margin: 0 0.45em;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  transition: background-color 0.6s var(--ease);
  transition-delay: inherit;
}
.framework li:last-child::after { display: none; }
.framework.is-visible li { color: var(--c); }
.framework.is-visible li::after { background: rgba(255, 255, 255, 0.3); }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  margin: 2.5rem 0 clamp(2.5rem, 5vw, 4rem);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.legend li { display: flex; align-items: center; gap: 0.6rem; }
.legend li::before { content: ""; width: 0.6rem; height: 0.6rem; background: var(--c); clip-path: polygon(0 0, 100% 0, 100% 100%); }

/* The chosen word's title and text, beside the words (below on small screens) */
.framework__detail {
  --c: #ffffff;
  position: sticky;
  top: var(--anchor-gap);
  padding-left: 1.75rem;
  border-left: var(--rule) solid var(--c);
  transition: border-color 0.4s;
}
.framework__word {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--c);
}
.framework__division,
.framework__title {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.framework__title { margin: 0 0 1rem; line-height: 1.5; color: var(--text); }
.framework__line { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--muted); }
.framework__detail.is-in > * { animation: detail-in 0.6s var(--ease) both; }
.framework__detail.is-in > * + * { animation-delay: 0.06s; }
@keyframes detail-in {
  from { opacity: 0; transform: translateY(0.75rem); }
  to { opacity: 1; transform: none; }
}

/* Contact */
.contact {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg-2);
}
/* The Group's triangle field, mirrored (the overlay flips with it, so the
   darker side ends up behind the heading on the left). */
.contact__bg { transform: scaleX(-1); }
.contact__inner { position: relative; }
.contact__title {
  font-size: clamp(2.5rem, 7.5vw, 6.5rem);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 500;
  margin: 0 0 2.75rem;
  max-width: 13ch;
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0; }
.site-footer__inner {
  padding: 0 var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 3rem;
}
.site-footer__inner > img { width: clamp(132px, 12vw, 157px); height: auto; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; flex: 1; font-size: 0.875rem; }
.site-footer__links a { color: var(--muted); transition: color 0.3s; }
.site-footer__links a:hover { color: var(--accent); }
.site-footer__copy { margin: 0; font-size: 0.8125rem; color: var(--muted); }

/* ---------- Scroll reveal ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(2.5rem);
  transition: opacity 1s var(--ease), transform 1.2s var(--ease);
  transition-delay: calc(var(--i, 0) * 0.08s);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr minmax(18rem, 20rem); }
  .panel__head { padding: 0.9rem 1.25rem; }
  .panel__item { padding: 1.1rem 1.25rem; }
  .panel__item img { max-width: 210px; }
}

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

  /* Hero becomes a full-bleed swipeable slider */
  .hero {
    grid-template-columns: 1fr;
    align-items: end;
  }
  .hero__inner { padding-bottom: 8.5rem; }
  .hero__shade {
    background:
      linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.4) 25%, rgba(0,0,0,0.55) 50%, rgba(0,0,0,0.9) 100%);
  }
  .hero__lede { min-height: 5em; }
  .panel { display: none; }
  .hero__scroll { display: none; }

  .hero__dots {
    position: absolute;
    left: var(--gutter);
    right: var(--gutter);
    bottom: max(2rem, env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    transition: opacity 1s var(--ease) 0.6s;
  }
  .is-loading .hero__dots { opacity: 0; }
  .hero__dots button {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
    opacity: 0.45;
    transition: opacity 0.4s;
  }
  .hero__dots button[aria-selected="true"] { opacity: 1; }
  .hero__dots img { width: 1.5rem; height: 1.5rem; }
  .hero__dot-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.25);
    overflow: hidden;
  }
  .hero__dot-bar span {
    display: block;
    height: 100%;
    background: var(--accent);
    transform-origin: left;
    transform: scaleX(var(--p, 0));
  }

  /* Menu */
  .menu__inner {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 3rem;
    padding-top: calc(var(--header-h) + 2rem);
  }
  .menu__nav a { font-size: clamp(2.25rem, 10vw, 3.5rem); }
  .menu__nav a:hover { transform: none; }
  .menu__sites img { max-width: 230px; }

  /* Sections */
  .about__grid,
  .division { grid-template-columns: 1fr; }
  .division--flip .division__figure { order: 0; }
  .framework-wrap { grid-template-columns: 1fr; }
  .framework__detail { position: static; }
}

@media (max-width: 600px) {
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-height: 640px) and (min-width: 901px) {
  .panel__desc { display: none; }
  .panel__item { padding-block: 0.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .hero__bg, .hero__bg.is-active { transform: none; transition: opacity 0.6s linear; }
  [data-reveal], .division__media img, .tags li { transform: none !important; }
  .division.is-visible .division__kite,
  .division.is-visible .division__kite-shape { animation: none; opacity: 1; }
  .hero__copy.is-out *, .hero__copy.is-in * { transform: none !important; }
}
