/*
 * cubit.fit — the public site.
 *
 * A port of the design export ("Software studio portfolio site", Cubit Site.dc.html)
 * where every element carried its look as an inline style. Here each of those
 * elements is one class, and the values under it are the export's own: the same
 * clamp()s, colours, weights and tracking, section by section in the export's
 * order. When the two disagree, the export is right and this file is the bug.
 *
 * Three things are deliberately different from the export, and each for a reason
 * that is not taste:
 *
 * NO INLINE STYLE ANYWHERE, so the CSP needs no 'unsafe-inline' and no nonce —
 * and a nonce would forbid the shared caching the anonymous render exists for.
 *
 * CONTENT IS VISIBLE WITHOUT SCRIPT. The export starts every animated element
 * hidden and reveals it from script. Here an element is hidden only under
 * `html.motion`, which the public bundle adds after installing the observer
 * that will reveal it (web/src/public/motion.ts). No script, no hiding.
 *
 * LOGICAL PROPERTIES, so the Arabic edition mirrors without a second sheet.
 *
 * /theme.css, linked after this file, overrides --accent and the grid and
 * motion settings with what staff published (server/render/theme.cc).
 */

/* --- fonts -------------------------------------------------------------------
 *
 * Self-hosted, which drops fonts.googleapis.com and fonts.gstatic.com from the
 * CSP and two third-party round trips from the critical path.
 *
 * unicode-range is what keeps an English reader from downloading 45 KB of
 * Arabic and an Arabic reader from downloading Archivo for text it will never
 * set. The two faces are chosen to sit at the same optical weight: Archivo has
 * NO Arabic coverage at all, so pairing it is not a refinement, it is the
 * difference between Arabic text and a page of fallback boxes.
 *
 * Archivo Narrow was loaded by the export and never used once. It is gone.
 */
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
  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;
}

/* U+0600-06FF covers the Arabic-Indic digits U+0660-0669, which is what the
 * Arabic edition prints a phone number and an index number in. */
@font-face {
  font-family: "Plex Arabic";
  src: url("/assets/fonts/plex-arabic-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+2010-2011,
    U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "Plex Arabic";
  src: url("/assets/fonts/plex-arabic-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+2010-2011,
    U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "Plex Arabic";
  src: url("/assets/fonts/plex-arabic-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+2010-2011,
    U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "Plex Arabic";
  src: url("/assets/fonts/plex-arabic-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+2010-2011,
    U+FB50-FDFF, U+FE70-FEFF;
}


/* --- tokens ------------------------------------------------------------------
 *
 * The export's literals, named. Each appears between six and a hundred times in
 * it, which is what makes "change the accent" one edit here and one publish in
 * the console (site.theme).
 */
:root {
  --paper: #f4f3ef;
  --ink: #1c1917;
  --accent: #a8c93a;
  --muted: #6b665f;
  --body: #46423d;
  --dim: #8b857d;
  --rule: #dcdad2;
  --rule-dark: #3a3633;
  --paper-dim: #c4bfb8;
  --paper-faint: #a9a29b;
  --tray: #eae8e1;
  --tray-edge: #d7d4cb;
  --tray-inner: #e3e1da;

  --shell-max: 1560px;
  --gutter: clamp(18px, 4vw, 56px);
  --header-h: clamp(62px, 7vw, 82px);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- base ------------------------------------------------------------------------ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-block-start: var(--header-h);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", "Plex Arabic", Helvetica, Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  text-wrap: pretty;
  -webkit-tap-highlight-color: transparent;
}

:root[dir="rtl"] body {
  font-family: "Plex Arabic", "Archivo", Helvetica, Arial, sans-serif;
}

/* Arabic is cursive: tracking pulls the letters of a word apart, so every
 * tracked label and every tightened headline sets its Arabic at normal spacing. */
:root[lang="ar"] body * {
  letter-spacing: normal !important;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
ol,
ul {
  margin: 0;
  padding: 0;
}

ol,
ul {
  list-style: none;
}

img {
  display: block;
  max-inline-size: 100%;
}

a {
  color: var(--ink);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

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

::selection {
  background: var(--accent);
  color: var(--ink);
}

@keyframes cubit-spine {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

/* --- utilities ---------------------------------------------------------------------- */

.u-sr-only {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.shell {
  max-inline-size: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.shell--narrow {
  max-inline-size: 78ch;
}

.dark {
  background: var(--ink);
  color: var(--paper);
}

.dark a {
  color: var(--paper);
}

.dark a:hover {
  color: var(--accent);
}

.accent {
  color: var(--accent);
}

/* The small tracked label the export puts above every heading. */
.label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.label--accent {
  color: var(--accent);
}

.number {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.number--big {
  font-size: clamp(11px, 1.2vw, 13px);
}

.arrow {
  font-size: 14px;
  line-height: 1;
}

/* An arrow points the way the text reads. */
:root[dir="rtl"] .arrow:not(.arrow--down) {
  display: inline-block;
  transform: scaleX(-1);
}

.title-1 {
  font-weight: 300;
  letter-spacing: -0.035em;
}

.title-2 {
  margin-block-start: 18px;
  font-weight: 300;
  font-size: clamp(28px, 4.6vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.title-3 {
  margin-block-start: 18px;
  font-weight: 300;
  font-size: clamp(26px, 4vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.title-4 {
  margin-block-start: 16px;
  font-weight: 300;
  font-size: clamp(24px, 3.4vw, 42px);
  line-height: 1.06;
  letter-spacing: -0.028em;
  max-inline-size: 20ch;
}

.rule-ink {
  border-block-start: 1px solid var(--ink);
}

/* The export's outlined button: a line, a label, an arrow. */
.btn-line {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
  background: none;
  border: 1px solid var(--ink);
  padding: clamp(13px, 1.5vw, 17px) clamp(16px, 2vw, 24px);
  cursor: pointer;
  color: var(--ink);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-line:hover {
  background: var(--ink);
  color: var(--paper);
}

.dark .btn-line--dark {
  color: var(--paper);
  border-color: var(--muted);
  padding: clamp(14px, 1.6vw, 19px) clamp(18px, 2.2vw, 28px);
  font-size: clamp(11px, 1.1vw, 12px);
}

.dark .btn-line--dark:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}

/* The rule-and-label eyebrow that opens every inner page. */
.ruled-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-block-end: clamp(24px, 4vw, 48px);
}

.ruled-eyebrow__rule {
  inline-size: clamp(28px, 5vw, 64px);
  block-size: 1px;
  background: var(--ink);
}

/* A label followed by a rule to the end of the line. */
.ruled-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-block-end: clamp(14px, 2vw, 22px);
}

.ruled-label__rule {
  flex: 1;
  block-size: 1px;
  background: var(--rule);
}

/* --- the skip link ------------------------------------------------------------------ */

.skip {
  position: absolute;
  inset-block-start: -100%;
  inset-inline-start: var(--gutter);
  z-index: 60;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.skip:focus {
  inset-block-start: 12px;
  color: var(--paper);
}

/* --- the hairline grid -----------------------------------------------------------------
 *
 * Eight columns, fixed to the viewport, behind the content and in front of the
 * paper. Off when site.theme says so (/theme.css). */
.hairlines {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: var(--grid, 1);
  background-image: linear-gradient(90deg, rgba(28, 25, 23, 0.07) 0 1px, transparent 1px 100%);
  background-size: 12.5% 100%;
}

main {
  position: relative;
  z-index: 4;
  padding-block-start: var(--header-h);
}

/* --- the header ------------------------------------------------------------------------ */

.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 20;
  border-block-end: 1px solid var(--rule);
}

/* The frosted glass is on a layer behind the bar, NOT on the header itself: a
 * `backdrop-filter` makes its element the containing block for every fixed
 * descendant, which pinned the phone menu's fixed panel to the header's own
 * 70-odd pixels instead of the viewport. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(244, 243, 239, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  block-size: var(--header-h);
}

.site-header__progress {
  block-size: 2px;
  background: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

:root[dir="rtl"] .site-header__progress {
  transform-origin: 100% 50%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  padding: 9px 4px 9px 0;
  margin-inline-start: -4px;
}

.brand__mark {
  inline-size: clamp(26px, 3vw, 32px);
  block-size: clamp(26px, 3vw, 32px);
}

.brand__name {
  font-size: clamp(13px, 1.4vw, 15px);
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.nav--wide {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 38px);
}

.nav__link,
.nav__lang,
.nav__admin {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: clamp(10px, 1.1vw, 12px);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav__mark {
  inline-size: 6px;
  block-size: 6px;
  background: var(--accent);
}

/* The other edition. Quieter than the navigation, because it is not a place
 * on the site but the same place in the other language. */
.nav__lang {
  color: var(--muted);
  letter-spacing: 0;
  font-size: clamp(12px, 1.2vw, 14px);
}

.nav__admin {
  color: var(--muted);
}

.nav__cta {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(9px, 1.1vw, 13px) clamp(14px, 1.8vw, 24px);
  font-size: clamp(10px, 1.1vw, 12px);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav__cta:hover {
  background: var(--accent);
  color: var(--ink);
}

/* --- the phone menu --------------------------------------------------------------------
 *
 * The export's menu is state in a script; this is a <details> disclosure, which
 * needs none and is announced as a button with its expanded state. */
.menu {
  display: none;
}

.menu__toggle {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  inline-size: 46px;
  block-size: 46px;
  margin-inline-end: -11px;
  cursor: pointer;
  list-style: none;
  /* Above the open panel, which covers the header: the toggle is the close
   * button, drawn as a cross in the panel's title row. */
  position: relative;
  z-index: 50;
}

.menu__toggle::-webkit-details-marker {
  display: none;
}

.menu__bar {
  inline-size: 23px;
  block-size: 1.5px;
  background: var(--ink);
}

.menu__bar--short {
  inline-size: 15px;
}

/* Half of the bars' 6px gap plus half a bar brings each to the centre line. */
.menu[open] .menu__bar {
  inline-size: 20px;
  background: var(--paper);
  transform: translateY(3.75px) rotate(45deg);
}

.menu[open] .menu__bar--short {
  transform: translateY(-3.75px) rotate(-45deg);
}

.menu__panel {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  background-image: linear-gradient(90deg, rgba(244, 243, 239, 0.05) 0 1px, transparent 1px 100%);
  background-size: 25% 100%;
  color: var(--paper);
  padding: 0 clamp(18px, 5vw, 34px) calc(env(safe-area-inset-bottom, 0px) + 26px);
  overflow-y: auto;
}

.menu__title {
  display: flex;
  align-items: center;
  block-size: clamp(62px, 7vw, 82px);
  border-block-end: 1px solid rgba(244, 243, 239, 0.18);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--dim);
}

.menu__nav {
  display: flex;
  flex-direction: column;
  counter-reset: menu;
}

.menu__link {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding-block: 22px;
  border-block-end: 1px solid rgba(244, 243, 239, 0.14);
  color: var(--paper);
  font-size: clamp(30px, 9.5vw, 44px);
  font-weight: 300;
  letter-spacing: -0.03em;
  counter-increment: menu;
}

.menu__link::before {
  content: counter(menu, decimal-leading-zero);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--accent);
}

.menu__link .nav__mark {
  display: none;
}

.menu__meta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-block-start: clamp(26px, 6vh, 52px);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.menu__lang,
.menu__admin {
  color: var(--paper);
}

.menu__live {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 20px;
  margin-block-start: auto;
  padding-block-start: clamp(24px, 5vh, 44px);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.menu__live-label {
  color: var(--dim);
}

.menu__live-link {
  color: var(--paper);
}

/* --- home: the hero ---------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  min-block-size: calc(100svh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(10px, 2.2vh, 40px);
  padding: clamp(14px, 2.6vh, 40px) var(--gutter) clamp(12px, 1.8vh, 24px);
}

.hero__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(90deg, rgba(244, 243, 239, 0.05) 0 1px, transparent 1px 100%),
    linear-gradient(rgba(244, 243, 239, 0.05) 0 1px, transparent 1px 100%);
  background-size: clamp(56px, 7vw, 104px) clamp(56px, 7vw, 104px);
}

.hero__frame {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  inline-size: min(70vh, 86vw);
  block-size: min(70vh, 86vw);
  margin-block-start: max(-35vh, -43vw);
  margin-inline-start: max(-35vh, -43vw);
  border: 1px solid rgba(244, 243, 239, 0.16);
  pointer-events: none;
}

.hero__corner {
  position: absolute;
  inline-size: clamp(20px, 2.6vw, 40px);
  block-size: clamp(20px, 2.6vw, 40px);
  border: 0 solid var(--accent);
  opacity: 0.75;
}

.hero__corner--tl {
  inset-block-start: -1px;
  inset-inline-start: -1px;
  border-block-start-width: 2px;
  border-inline-start-width: 2px;
}

.hero__corner--tr {
  inset-block-start: -1px;
  inset-inline-end: -1px;
  border-block-start-width: 2px;
  border-inline-end-width: 2px;
}

.hero__corner--bl {
  inset-block-end: -1px;
  inset-inline-start: -1px;
  border-block-end-width: 2px;
  border-inline-start-width: 2px;
}

.hero__corner--br {
  inset-block-end: -1px;
  inset-inline-end: -1px;
  border-block-end-width: 2px;
  border-inline-end-width: 2px;
}

.hero__measure {
  position: absolute;
  inset-inline: 8%;
  bottom: clamp(12px, 2vw, 26px);
  block-size: 1px;
  background: color-mix(in srgb, var(--accent) 50%, transparent);
}

.hero__measure-end {
  position: absolute;
  bottom: clamp(6px, 1.4vw, 19px);
  inline-size: 1px;
  block-size: clamp(13px, 1.6vw, 15px);
  background: color-mix(in srgb, var(--accent) 50%, transparent);
}

.hero__measure-end--start {
  inset-inline-start: 8%;
}

.hero__measure-end--end {
  inset-inline-end: 8%;
}

.hero__measure-label {
  position: absolute;
  inset-inline: 0;
  margin-inline: auto;
  inline-size: fit-content;
  bottom: clamp(4px, 1.2vw, 17px);
  padding: 0 10px;
  background: var(--ink);
  font-size: clamp(9px, 0.85vw, 10px);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  white-space: nowrap;
  color: color-mix(in srgb, var(--accent) 75%, transparent);
}

.hero__top {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(10px, 1vw, 11px);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--paper-dim);
}

.hero__eyebrow-text--narrow {
  display: none;
}

.hero__pulse {
  inline-size: 8px;
  block-size: 8px;
  flex: none;
  background: var(--accent);
  animation: cubit-spine 3.4s ease-in-out infinite;
}

.hero__center {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 1 1 auto;
  min-block-size: 0;
  padding-block: clamp(0px, 1.6vh, 32px);
}

.hero__gloss {
  margin-block-end: clamp(12px, 2.2vh, 30px);
  max-inline-size: 52ch;
  font-size: clamp(12px, 1.15vw, 13.5px);
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--paper-faint);
}

.hero__gloss-name {
  margin-inline-end: 0.7em;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero__title {
  font-weight: 300;
  font-size: clamp(34px, min(12.6vw, 10.5vh), 176px);
  line-height: 0.92;
  letter-spacing: -0.04em;
}

.hero__line {
  display: block;
  overflow: hidden;
  padding-block-end: 0.04em;
}

.hero__line-inner {
  display: block;
}

/* Arabic letters reach far below the baseline — the tails of a final س or ل,
 * the dots under ب and ي — and above it, and the mask each line rises out of
 * is overflow: hidden. Sized for Latin, it cut those tails off and left their
 * stubs between the words. The Arabic lines get room inside the mask on both
 * sides, taken back with a negative margin so the lines sit as close as the
 * design sets them. */
:root[lang="ar"] .hero__title {
  line-height: 1.12;
}

:root[lang="ar"] .hero__line {
  padding-block: 0.12em 0.34em;
  margin-block-end: -0.3em;
}

.hero__ruler {
  position: relative;
  block-size: 14px;
  flex: 0 0 auto;
  align-self: stretch;
  margin-block-start: clamp(10px, 2.2vh, 36px);
}

.hero__ticks,
.hero__base {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  transform-origin: 0 50%;
}

:root[dir="rtl"] .hero__ticks,
:root[dir="rtl"] .hero__base {
  transform-origin: 100% 50%;
}

.hero__ticks {
  block-size: 14px;
  background-image: linear-gradient(90deg, rgba(244, 243, 239, 0.42) 0 1px, transparent 1px 100%);
  background-size: clamp(18px, 2.2vw, 30px) 100%;
  background-position: bottom left;
  background-repeat: repeat-x;
}

.hero__base {
  block-size: 2px;
  background: var(--accent);
}

.hero__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 2.6vh, 38px);
  margin-block-start: clamp(14px, 2.6vh, 40px);
}

.hero__intro {
  max-inline-size: 58ch;
  font-size: clamp(14px, 1.5vw, 19px);
  line-height: 1.6;
  color: var(--paper-dim);
}

.hero__intro--narrow {
  display: none;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  inline-size: 100%;
  max-inline-size: 460px;
}

.hero__btn {
  display: flex;
  flex: 1 1 200px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: clamp(14px, 1.6vw, 19px) clamp(18px, 2.2vw, 28px);
  font-size: clamp(11px, 1.1vw, 12px);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.hero__btn--solid,
.hero__btn--solid:hover {
  background: var(--paper);
  color: var(--ink);
}

.hero__btn--solid:hover {
  background: var(--accent);
}

.hero__btn--outline,
.hero__btn--outline:hover {
  color: var(--paper);
  border: 1px solid rgba(244, 243, 239, 0.35);
}

.hero__btn--outline:hover {
  border-color: var(--paper);
}

.hero__btn--outline .arrow {
  display: none;
}

.hero__foot {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 28px;
  padding-block-start: clamp(12px, 1.8vw, 20px);
  border-block-start: 1px solid rgba(244, 243, 239, 0.18);
}

.hero__live {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px clamp(14px, 2vw, 28px);
  font-size: clamp(10px, 1.05vw, 12px);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero__live-label {
  color: var(--dim);
}

.hero__live-label--narrow {
  display: none;
}

.hero__live-link {
  color: var(--paper);
}

.hero__scroll {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(10px, 1.05vw, 12px);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}

.arrow--down {
  font-size: 13px;
}

/* --- home: 01 — selected work ------------------------------------------------------------ */

.hw-intro {
  padding-block: clamp(48px, 8vw, 120px) clamp(24px, 4vw, 48px);
}

.hw-intro__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(18px, 3vw, 48px);
  align-items: start;
}

.hw-intro__title {
  max-inline-size: 24ch;
}

.hw-intro__blurb {
  justify-self: end;
  max-inline-size: 44ch;
  font-size: clamp(14px, 1.4vw, 17px);
  line-height: 1.6;
  color: var(--body);
}

.hw-list {
  padding-block-end: clamp(48px, 8vw, 110px);
}

.hw-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 3.4vw, 56px);
  align-items: center;
  padding-block: clamp(24px, 3.4vw, 50px);
  border-block-end: 1px solid var(--rule);
  color: var(--ink);
}

.hw-row:hover {
  color: var(--ink);
}

.hw-row__text {
  flex: 1 1 340px;
  min-inline-size: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(15px, 2vw, 24px);
}

.hw-row__head {
  display: flex;
  gap: clamp(14px, 2vw, 28px);
  align-items: baseline;
}

.hw-row__name {
  font-weight: 300;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.hw-row__meta {
  margin-block-start: 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.hw-row__blurb {
  max-inline-size: 44ch;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.6;
  color: var(--body);
}

.hw-row__more {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hw-row:hover .hw-row__more {
  color: var(--accent);
}

/* The export's matted screenshot: a padded tray, and in it a 16:10 window onto
 * the top of the page. */
.shot {
  padding: clamp(6px, 0.8vw, 11px);
  background: var(--tray);
  border: 1px solid var(--tray-edge);
}

.shot--row {
  flex: 1 1 clamp(280px, 34%, 460px);
  max-inline-size: 460px;
}

.shot--wide {
  align-self: start;
}

.mat__frame {
  position: relative;
  overflow: hidden;
}

.shot .mat__frame {
  aspect-ratio: 16 / 10;
  background: var(--tray-inner);
  border: 1px solid rgba(28, 25, 23, 0.13);
}

.shot .mat__img {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.9s var(--ease);
}

.hw-row:hover .mat__img {
  transform: scale(1.04);
}

.wk-row:hover .mat__img {
  transform: scale(1.05);
}

.mat__caption:empty {
  display: none;
}

/* --- home: 02 — the evidence ----------------------------------------------------------------- */

.ev {
  padding-block: clamp(48px, 8vw, 120px);
}

.ev__title {
  margin-block-end: clamp(30px, 5vw, 64px);
  max-inline-size: 26ch;
}

.ev__panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  border-block-start: 1px solid var(--rule-dark);
}

.ev__panel {
  padding: clamp(20px, 2.6vw, 34px) clamp(18px, 2vw, 30px) clamp(26px, 3vw, 40px);
  border-block-end: 1px solid var(--rule-dark);
  border-inline-end: 1px solid var(--rule-dark);
}

.ev__name {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.ev__label {
  margin-block-start: 22px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
}

.ev__principle {
  margin-block-start: 8px;
  font-size: clamp(18px, 2.1vw, 26px);
  font-weight: 300;
  letter-spacing: -0.02em;
}

.ev__body {
  margin-block-start: 8px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--paper-dim);
}

.ev__body--first {
  margin-block-start: 18px;
}

.ev__close {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(20px, 3vw, 48px);
  margin-block-start: clamp(30px, 5vw, 64px);
  align-items: center;
}

.ev__closing {
  max-inline-size: 34ch;
  font-size: clamp(16px, 1.9vw, 24px);
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: -0.015em;
}

/* --- home: 03 — how it goes ---------------------------------------------------------------------- */

.hp {
  padding-block: clamp(48px, 8vw, 120px);
}

.hp__title {
  margin-block-end: clamp(30px, 5vw, 56px);
  max-inline-size: 22ch;
}

.hp__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 1px;
  background: var(--rule);
}

.hp__step {
  background: var(--paper);
  padding: clamp(20px, 2.6vw, 34px) clamp(18px, 2vw, 28px) clamp(28px, 3.4vw, 44px);
}

.hp__step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hp__number {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
}

.hp__mark {
  inline-size: 10px;
  block-size: 10px;
  background: var(--accent);
}

.hp__step-title {
  margin-block-start: 26px;
  font-weight: 300;
  font-size: clamp(20px, 2.3vw, 28px);
  letter-spacing: -0.02em;
}

.hp__step-body {
  margin-block-start: 14px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--body);
}

/* --- home: the call to action --------------------------------------------------------------------- */

.hc {
  padding-block-end: clamp(48px, 8vw, 120px);
}

.hc__box {
  border: 1px solid var(--ink);
  padding: clamp(26px, 5vw, 72px) clamp(20px, 4vw, 64px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.hc__title {
  max-inline-size: 20ch;
  font-weight: 300;
  font-size: clamp(28px, 4.4vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.hc__body {
  margin-block-start: 20px;
  max-inline-size: 42ch;
  font-size: clamp(14px, 1.4vw, 17px);
  line-height: 1.6;
  color: var(--body);
}

.hc__actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-self: stretch;
}

.hc__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: clamp(16px, 2vw, 24px) clamp(18px, 2.2vw, 28px);
  font-size: clamp(11px, 1.1vw, 13px);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hc__btn .arrow {
  font-size: 16px;
}

.hc__btn--solid {
  background: var(--ink);
  color: var(--paper);
}

.hc__btn--solid:hover {
  background: var(--accent);
  color: var(--ink);
}

.hc__btn--line {
  border: 1px solid var(--rule);
}

.hc__btn--line:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* --- inner pages: the head ---------------------------------------------------------------------- */

.page-head {
  padding-block: clamp(40px, 7vw, 104px) clamp(28px, 4vw, 56px);
}

/* --- /work ------------------------------------------------------------------------------------------ */

.wk-head__title {
  max-inline-size: 18ch;
  font-size: clamp(32px, 6.2vw, 96px);
  line-height: 0.96;
}

.wk-head__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(18px, 3vw, 48px);
  margin-block-start: clamp(20px, 3vw, 36px);
  align-items: end;
}

.wk-head__blurb {
  max-inline-size: 52ch;
  font-size: clamp(15px, 1.6vw, 19px);
  line-height: 1.6;
  color: var(--body);
}

.wk-jumps {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--rule);
  border-block: 1px solid var(--rule);
}

.wk-jump {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 17px 2px;
  background: var(--paper);
}

.wk-jump__number {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.wk-jump__name {
  font-size: clamp(14px, 1.5vw, 17px);
  font-weight: 300;
}

.wk-jump__category {
  margin-inline-start: auto;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.wk-list {
  padding-block-end: clamp(48px, 8vw, 110px);
}

.wk-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 500px), 1fr));
  gap: clamp(20px, 3.2vw, 52px);
  padding-block: clamp(26px, 4vw, 60px);
  border-block-end: 1px solid var(--rule);
}

.wk-row__title {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.wk-row__name {
  font-weight: 300;
  font-size: clamp(26px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.wk-row__blurb {
  margin-block-start: 18px;
  max-inline-size: 46ch;
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.65;
  color: var(--body);
}

.wk-row__walk {
  grid-column: 1 / -1;
}

.wk-row__walk .btn-line {
  margin-block-start: clamp(18px, 2.4vw, 28px);
}

/* Facts: a small label over a value, in cells ruled by the gap. */
.facts {
  display: grid;
  gap: 1px;
  background: var(--rule);
}

.facts--row {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr));
  margin-block-start: clamp(22px, 3vw, 34px);
}

.facts--head {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  margin-block-start: clamp(28px, 4.5vw, 60px);
  border-block: 1px solid var(--rule);
}

.fact {
  background: var(--paper);
  padding: 14px 14px 18px;
}

.fact__label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.fact__value {
  margin-block-start: 8px;
  font-size: 14px;
}

.fact--big {
  padding: clamp(16px, 2vw, 24px) clamp(14px, 1.6vw, 20px) clamp(22px, 2.6vw, 30px);
}

.fact--big .fact__label {
  letter-spacing: 0.24em;
}

.fact--big .fact__value {
  margin-block-start: 10px;
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.5;
}

.fact__link--out::after {
  content: " \2197";
}

/* The three-step walk-through. */
.walk {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1px;
  background: var(--rule);
  border-block-start: 1px solid var(--rule);
}

.walk__step {
  background: var(--paper);
  padding: clamp(16px, 2vw, 22px) clamp(14px, 1.6vw, 20px) clamp(20px, 2.4vw, 28px);
}

.walk__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.walk__number {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.walk__mark {
  inline-size: 8px;
  block-size: 8px;
  background: var(--accent);
}

.walk__title {
  margin-block-start: 16px;
  font-weight: 400;
  font-size: clamp(14px, 1.5vw, 17px);
}

.walk__body {
  margin-block-start: 9px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--body);
}

/* --- /studio -------------------------------------------------------------------------------------------- */

.st-head__title {
  max-inline-size: 16ch;
  font-size: clamp(34px, 7vw, 110px);
  line-height: 0.96;
}

.st-head__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(24px, 4vw, 64px);
  margin-block-start: clamp(28px, 4.5vw, 60px);
}

.st-head__lead {
  max-inline-size: 50ch;
  font-size: clamp(16px, 1.9vw, 22px);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.st-head__prose {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-inline-size: 46ch;
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.7;
  color: var(--body);
}

.st-services {
  padding-block: clamp(44px, 7vw, 104px);
  margin-block-start: clamp(20px, 3vw, 40px);
}

.st-services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}

.st-services__title {
  max-inline-size: 18ch;
}

.st-cells {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1px;
  background: var(--rule-dark);
  border-block-start: 1px solid var(--rule-dark);
  border-inline-start: 1px solid var(--rule-dark);
}

.st-cell {
  display: flex;
  flex-direction: column;
  background: var(--ink);
  padding: clamp(16px, 2vw, 24px);
}

.st-cell__number {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--dim);
}

.st-cell__label {
  margin-block-start: 14px;
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 300;
}

.st-cell--note {
  justify-content: flex-end;
}

.st-cell__note {
  font-size: 13px;
  line-height: 1.6;
  color: var(--dim);
}

.st-lines {
  padding-block: clamp(44px, 7vw, 104px);
}

.st-lines__title {
  margin-block-end: clamp(28px, 4vw, 48px);
  max-inline-size: 20ch;
}

.st-lines__list {
  border-block-start: 1px solid var(--ink);
}

.st-line {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(12px, 3vw, 48px);
  padding-block: clamp(18px, 2.6vw, 30px);
  border-block-end: 1px solid var(--rule);
}

.st-line__title {
  font-weight: 300;
  font-size: clamp(18px, 2.4vw, 30px);
  letter-spacing: -0.02em;
}

.st-line__body {
  max-inline-size: 60ch;
  font-size: 15px;
  line-height: 1.65;
  color: var(--body);
}

/* --- /contact ------------------------------------------------------------------------------------------ */

.ct {
  padding-block-end: clamp(48px, 8vw, 110px);
}

.ct__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}

.ct__title {
  max-inline-size: 14ch;
  font-size: clamp(32px, 5.6vw, 84px);
  line-height: 0.98;
}

.ct__blurb {
  margin-block-start: clamp(20px, 3vw, 32px);
  max-inline-size: 44ch;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.6;
  color: var(--body);
}

.methods {
  display: grid;
  gap: 1px;
  margin-block-start: clamp(28px, 4vw, 48px);
  background: var(--rule);
  border-block: 1px solid var(--rule);
}

.method {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(16px, 2vw, 22px) 2px;
  background: var(--paper);
}

.method__label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.method__value {
  font-size: clamp(15px, 1.8vw, 20px);
  font-weight: 300;
}

.ct__box {
  border: 1px solid var(--ink);
  padding: clamp(20px, 3vw, 40px);
}

.form__noscript {
  margin-block-start: 16px;
  color: var(--muted);
}

.form__noscript-link {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- case studies ---------------------------------------------------------------------------------------- */

.cs-head {
  padding-block: clamp(36px, 6vw, 88px) clamp(24px, 3.4vw, 44px);
}

.cs-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.cs-head__title {
  display: flex;
  align-items: baseline;
  gap: clamp(14px, 2vw, 28px);
  margin-block-start: clamp(22px, 4vw, 44px);
}

.cs-head__name {
  font-weight: 300;
  font-size: clamp(36px, 7.4vw, 118px);
  line-height: 0.94;
  letter-spacing: -0.035em;
}

.cs-head__lede {
  margin-block-start: clamp(20px, 3vw, 34px);
  max-inline-size: 54ch;
  font-size: clamp(16px, 1.9vw, 23px);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.cs-shot {
  padding-block-end: clamp(40px, 6vw, 88px);
}

.cs-shot__frame {
  overflow: hidden;
  background: var(--ink);
}

.cs-shot .mat__img {
  inline-size: 100%;
  block-size: auto;
}

.cs-shot__caption {
  margin-block-start: 14px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.cs-band {
  padding-block-end: clamp(40px, 6vw, 88px);
}

.cs-band--build {
  padding-block-start: clamp(40px, 6vw, 88px);
}

.cs-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(24px, 4vw, 64px);
}

.cs-prose {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-inline-size: 60ch;
  font-size: clamp(14px, 1.45vw, 17px);
  line-height: 1.7;
  color: var(--body);
}

.cs-structure__title {
  margin-block-end: clamp(24px, 3.4vw, 40px);
  max-inline-size: 22ch;
  font-size: clamp(24px, 3.8vw, 48px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.cs-rows {
  border-block-start: 1px solid var(--ink);
}

.cs-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(10px, 3vw, 44px);
  padding-block: clamp(16px, 2.4vw, 26px);
  border-block-end: 1px solid var(--rule);
}

.cs-row__title {
  font-weight: 400;
  font-size: clamp(15px, 1.6vw, 19px);
}

.cs-row__body {
  max-inline-size: 62ch;
  font-size: 15px;
  line-height: 1.65;
  color: var(--body);
}

.cs-argument {
  padding-block: clamp(44px, 7vw, 100px);
}

.cs-argument__quote {
  margin-block-start: clamp(22px, 3.4vw, 40px);
  max-inline-size: 30ch;
  font-weight: 300;
  font-size: clamp(22px, 3.6vw, 46px);
  line-height: 1.18;
  letter-spacing: -0.028em;
}

.cs-argument__prose {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(20px, 3vw, 56px);
  margin-block-start: clamp(26px, 4vw, 52px);
  font-size: clamp(14px, 1.45vw, 16px);
  line-height: 1.7;
  color: var(--paper-dim);
}

.cs-choices {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-inline-size: 60ch;
}

.cs-choice__label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.cs-choice__body {
  margin-block-start: 10px;
  font-size: clamp(14px, 1.45vw, 17px);
  line-height: 1.7;
  color: var(--body);
}

.cs-choice--outcome {
  border-inline-start: 3px solid var(--accent);
  padding-inline-start: 18px;
}

.cs-next {
  padding-block-end: clamp(48px, 8vw, 110px);
}

.cs-next__link {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-block-start: clamp(22px, 3vw, 40px);
  border-block-start: 1px solid var(--ink);
}

.cs-next__name {
  margin-block-start: 12px;
  font-weight: 300;
  font-size: clamp(26px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.cs-next__arrow {
  font-size: clamp(20px, 3vw, 34px);
}

/* --- not found ----------------------------------------------------------------------------------------------- */

.band--tall {
  padding-block: clamp(80px, 14vw, 200px);
}

.band__title {
  font-weight: 300;
  font-size: clamp(32px, 5.6vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.lede {
  margin-block: clamp(20px, 3vw, 32px);
  max-inline-size: 44ch;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.6;
  color: var(--body);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: clamp(14px, 1.6vw, 19px) clamp(18px, 2.2vw, 28px);
  font-size: clamp(11px, 1.1vw, 12px);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.btn--solid {
  background: var(--ink);
  color: var(--paper);
}

.btn--solid:hover {
  background: var(--accent);
  color: var(--ink);
}

.btn__arrow {
  font-size: 14px;
}

:root[dir="rtl"] .btn__arrow {
  display: inline-block;
  transform: scaleX(-1);
}

/* --- the footer -------------------------------------------------------------------------------------------------- */

.site-footer {
  position: relative;
  z-index: 4;
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(36px, 6vw, 80px) clamp(20px, 3vw, 36px);
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(24px, 4vw, 56px);
  padding-block-end: clamp(28px, 4vw, 56px);
  border-block-end: 1px solid var(--rule-dark);
}

.footer__brand .brand {
  padding: 0;
  margin: 0;
}

.footer__brand .brand__mark {
  inline-size: 40px;
  block-size: 40px;
}

.footer__brand .brand__name {
  display: none;
}

.footer__tagline {
  margin-block-start: 22px;
  max-inline-size: 30ch;
  font-size: clamp(15px, 1.7vw, 19px);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.footer__heading {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
}

.footer__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-block-start: 10px;
}

.footer__link {
  display: inline-block;
  padding-block: 11px;
  color: var(--paper);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.2;
}

.footer__link .nav__mark {
  display: none;
}

.footer__link[target="_blank"]::after {
  content: " \2197";
}

.footer__link--flat {
  padding-block: 0;
  color: var(--dim);
}

.footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: space-between;
  padding-block-start: clamp(18px, 2.4vw, 28px);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

/* --- narrow screens ----------------------------------------------------------------------------------------------
 *
 * The export switches layout at 760px: the menu replaces the navigation, and the
 * hero becomes its left-aligned phone composition with the frame at the screen's
 * edge. */
@media (max-width: 759px) {
  .nav--wide {
    display: none;
  }

  .menu {
    display: block;
  }

  .hero {
    justify-content: flex-start;
    gap: 0;
    padding: 26px 26px calc(env(safe-area-inset-bottom, 0px) + 22px);
  }

  .hero__grid {
    background-image: linear-gradient(90deg, rgba(244, 243, 239, 0.045) 0 1px, transparent 1px 100%),
      linear-gradient(rgba(244, 243, 239, 0.045) 0 1px, transparent 1px 100%);
    background-size: 64px 64px;
  }

  .hero__frame {
    inset: 13px;
    inline-size: auto;
    block-size: auto;
    margin: 0;
    border-color: rgba(244, 243, 239, 0.15);
    transform: none !important;
  }

  .hero__corner {
    inline-size: 20px;
    block-size: 20px;
    opacity: 1;
  }

  .hero__measure,
  .hero__measure-end,
  .hero__measure-label {
    display: none;
  }

  .hero__top {
    justify-content: flex-start;
    padding-block-end: 4vh;
  }

  .hero__eyebrow {
    gap: 10px;
    font-size: 11px;
    letter-spacing: 0.24em;
  }

  .hero__eyebrow-text--wide {
    display: none;
  }

  .hero__eyebrow-text--narrow {
    display: inline;
  }

  .hero__pulse {
    inline-size: 7px;
    block-size: 7px;
  }

  .hero__center {
    align-items: stretch;
    text-align: start;
    padding: 0;
  }

  .hero__gloss {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 0;
    max-inline-size: 30ch;
    font-size: 12.5px;
    line-height: 1.55;
    letter-spacing: 0;
  }

  .hero__gloss-name {
    font-size: 11px;
    letter-spacing: 0.26em;
  }

  .hero__title {
    margin-block-start: 3.2vh;
    font-size: min(13.2vw, 8.6vh);
    line-height: 0.94;
    letter-spacing: -0.035em;
  }

  .hero__line {
    padding-block-end: 0.05em;
  }

  .hero__ruler {
    block-size: 13px;
    margin-block-start: 2.4vh;
  }

  .hero__ticks {
    block-size: 13px;
    background-image: linear-gradient(90deg, rgba(244, 243, 239, 0.4) 0 1px, transparent 1px 100%);
    background-size: 19px 100%;
  }

  .hero__body {
    align-items: stretch;
    gap: 0;
    margin: 0;
  }

  .hero__intro--wide {
    display: none;
  }

  .hero__intro--narrow {
    display: block;
    margin-block-start: 2.8vh;
    font-size: 15px;
    line-height: 1.6;
  }

  .hero__actions {
    flex-direction: column;
    gap: 10px;
    max-inline-size: none;
    margin-block-start: 3.4vh;
  }

  .hero__btn {
    flex: none;
    justify-content: space-between;
    padding: 17px 20px;
    font-size: 11.5px;
  }

  .hero__btn--outline .arrow {
    display: inline;
  }

  .hero__foot {
    gap: 14px;
    margin-block-start: 3vh;
    padding-block-start: 2.6vh;
  }

  .hero__live {
    font-size: 10px;
    letter-spacing: 0.18em;
  }

  .hero__live-link,
  .hero__live-label--wide {
    display: none;
  }

  .hero__live-label--narrow {
    display: inline;
    font-size: 11px;
  }

  .hero__scroll {
    gap: 8px;
    font-size: 10px;
    letter-spacing: 0.18em;
  }

  .hw-intro__blurb {
    justify-self: start;
  }
}

/* --- the inquiry form (web/src/public/inquiry.ts) -------------------------------------
 *
 * hammer's renderForm draws the structure and the ARIA; these are the export's
 * underlined fields and its "Send inquiry" bar. Every rule is a class hammer was
 * given — nothing here reaches into the component by tag or position. */
.ct__form-heading {
  margin-block-end: clamp(16px, 2.4vw, 26px);
}

.inq {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.4vw, 26px);
}

.inq__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.inq__label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* "(optional)" after a field's label, as the export sets it. */
.inq__optional {
  margin-inline-start: 0.5em;
  text-transform: none;
  letter-spacing: 0;
}

.inq__required {
  display: none;
}

.inq__control {
  inline-size: 100%;
  background: none;
  border: 0;
  border-block-end: 1px solid var(--rule);
  border-radius: 0;
  padding: 13px 0;
  font-size: clamp(16px, 1.6vw, 17px);
  font-weight: 300;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease;
}

.inq__control::placeholder {
  color: var(--paper-faint);
}

.inq__control:focus {
  border-block-end-color: var(--accent);
}

.inq__control[aria-invalid="true"] {
  border-block-end-color: #b3402a;
}

select.inq__control {
  appearance: none;
}

select.inq__control:invalid,
select.inq__control option[value=""] {
  color: var(--paper-faint);
}

textarea.inq__control {
  min-block-size: calc(4 * 1.55em + 26px);
  line-height: 1.55;
  resize: vertical;
}

/* The counter is for the person typing, so it appears while they are. */
.inq__counter,
.inq__description {
  font-size: 12px;
  color: var(--dim);
}

.inq__field:not(:focus-within) .inq__counter {
  display: none;
}

.inq__error,
.inq__summary {
  font-size: 13px;
  color: #b3402a;
}

.inq__error:empty,
.inq__summary:empty {
  display: none;
}

.inq__submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  padding: clamp(15px, 1.8vw, 20px) clamp(18px, 2.2vw, 26px);
  cursor: pointer;
  font-size: clamp(11px, 1.1vw, 12px);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease;
}

.inq__submit::after {
  content: "\2192";
  font-size: 15px;
  letter-spacing: 0;
}

:root[dir="rtl"] .inq__submit::after {
  content: "\2190";
}

.inq__submit:hover {
  background: var(--accent);
  color: var(--ink);
}

.inq__submit:disabled {
  opacity: 0.55;
  cursor: progress;
}

.inq__status,
.inq__alert {
  padding: 14px 16px;
  border-inline-start: 2px solid var(--accent);
  background: rgba(28, 25, 23, 0.04);
  font-size: 14px;
  line-height: 1.55;
}

.inq__alert-ref {
  display: block;
  margin-block-start: 6px;
  font-size: 11px;
  color: var(--dim);
  direction: ltr;
}

/* The thank-you, rendered hidden by the server and swapped in on a 201. */
.form__success {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-block: clamp(20px, 4vw, 48px);
}

.form__success[hidden] {
  display: none;
}

.form__success-mark {
  inline-size: 28px;
  block-size: 28px;
  background: var(--accent);
}

.form__success-title {
  font-weight: 300;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: -0.02em;
}

.form__success-title span:focus {
  outline: none;
}

.form__success-body {
  max-inline-size: 42ch;
  font-size: 15px;
  line-height: 1.65;
  color: var(--body);
}

.form__success .btn-line {
  padding: 13px 20px;
}

/* --- consent (web/src/public/analytics.ts) -------------------------------------
 *
 * Asked once, at the foot of the viewport, and changeable in the footer ever
 * after. Nothing is counted until the answer is yes.
 */
.consent-bar {
  position: fixed;
  inset-inline: clamp(12px, 3vw, 28px);
  inset-block-end: clamp(12px, 3vw, 28px);
  z-index: 20;
  max-inline-size: 560px;
  padding: 18px 20px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.consent {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  font-size: 13px;
  line-height: 1.55;
}

.consent__question,
.consent__granted {
  flex: 1 1 100%;
  margin: 0;
}

.consent__grant,
.consent__deny,
.consent__revoke {
  padding: 10px 16px;
  border: 1px solid currentColor;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
}

.consent__grant {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}

.consent-footer .consent {
  gap: 6px 14px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.consent-footer .consent__question,
.consent-footer .consent__granted {
  flex: 0 1 auto;
}

.consent-footer .consent__grant,
.consent-footer .consent__deny,
.consent-footer .consent__revoke {
  padding: 0;
  border: 0;
  background: none;
  color: var(--paper);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* --- entrance motion (web/src/public/motion.ts) --------------------------------------
 *
 * The export's four reveal kinds, with its durations and delays. Only under
 * html.motion, which the bundle adds after it has installed the observer that
 * will reveal these — and never when the reader asked for reduced motion or the
 * published theme did. Without the class every element is simply visible.
 *
 *   up     fade and lift            rise   a headline line out of its mask
 *   growx  the ruler drawing itself panel  a card wiping in, start to end
 *   drop   a screenshot wiping in, top to bottom
 */
.motion [data-reveal="up"] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s ease, transform 0.9s var(--ease);
}

.motion [data-reveal="rise"] {
  transform: translateY(106%);
  transition: transform 1.05s var(--ease);
}

.motion [data-reveal="growx"] {
  transform: scaleX(0);
  transition: transform 1.4s var(--ease);
}

.motion [data-reveal="panel"] {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1s var(--ease);
}

:root[dir="rtl"].motion [data-reveal="panel"] {
  clip-path: inset(0 0 0 100%);
}

.motion [data-reveal="drop"] {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.1s var(--ease);
}

.motion [data-reveal].is-in,
:root[dir="rtl"].motion [data-reveal].is-in {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 0 0);
}

.motion .hw-row,
.motion .wk-row {
  transform: translateY(24px);
  transition-duration: 0.8s;
}

.motion .ev__panel.reveal-d1 { transition-delay: 0.12s; }
.motion .ev__panel.reveal-d2 { transition-delay: 0.24s; }

.motion .hp__step {
  transform: translateY(20px);
  transition-duration: 0.7s;
}

.motion .hp__step.reveal-d1 { transition-delay: 0.09s; }
.motion .hp__step.reveal-d2 { transition-delay: 0.18s; }
.motion .hp__step.reveal-d3 { transition-delay: 0.27s; }

.motion .cs-row {
  transition-duration: 0.7s;
}

.motion .cs-row.reveal-d1 { transition-delay: 0.08s; }
.motion .cs-row.reveal-d2 { transition-delay: 0.16s; }
.motion .cs-row.reveal-d3 { transition-delay: 0.24s; }

/* --- the hero's entrance ---------------------------------------------------------------
 *
 * The export's choreography on every load, as keyframes rather than script: the
 * hero is above the fold, so it has to move from the first paint, and a script
 * that hid visible content first would flash it. Each animation's fill is
 * `both` and each ends on the element's ordinary visible state, so a browser
 * that runs none of this shows the hero exactly as it would anyway.
 * /theme.css stops all of it when the published motion setting is "reduced",
 * and the media query below when the reader asked. */
@keyframes hero-fade {
  from {
    opacity: 0;
  }
}

@keyframes hero-lift {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

@keyframes hero-rise {
  from {
    transform: translateY(106%);
  }
}

@keyframes hero-grow {
  from {
    transform: scaleX(0);
  }
}

.hero__top {
  animation: hero-fade 0.9s ease both;
}

.hero__gloss {
  animation: hero-fade 1s ease 0.15s both;
}

.hero__line-inner {
  animation: hero-rise 1.05s var(--ease) 0.1s both;
}

.hero__line-inner--2 {
  animation-delay: 0.22s;
}

.hero__base {
  animation: hero-grow 1.2s var(--ease) 0.42s both;
}

.hero__ticks {
  animation: hero-grow 1.4s var(--ease) 0.5s both;
}

.hero__intro {
  animation: hero-lift 0.9s var(--ease) 0.55s both;
}

.hero__actions {
  animation: hero-lift 0.9s var(--ease) 0.68s both;
}

.hero__foot {
  animation: hero-fade 1s ease 0.8s both;
}

/* The reader's setting wins over everything above. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
}

/* --- print --------------------------------------------------------------------------------------------- */

@media print {
  .site-header,
  .hairlines,
  .menu,
  .skip,
  .consent-bar,
  .consent-footer,
  .hero__frame,
  .hero__grid {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  main {
    padding-block-start: 0;
  }
}
