/* arano-demo: "Type and nothing else", teal on paper.
   One font for every script, colour by chapter (each section is a full-bleed field of paper or the brand colour),
   logical properties throughout so rtl and ltr share every rule. The brand tokens (--brand, --brand-foreground,
   --radius and what the build derives from them) are set in each page's <head>; these are the defaults. */

@font-face {
  font-family: "Vazirmatn";
  src: url(fonts/Vazirmatn-wght.woff2) format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f7f9f8;
  --surface: #ebf0ee;
  --ink: #06525c;
  --muted: #2f737d;
  --brand: #06525c;
  --brand-foreground: #f7f9f8;
  --brand-text: var(--brand);
  --brand-soft: #8aaeb2;
  --radius: 0px;
  --gutter: clamp(16px, 4.2vw, 64px);
  --max: 1320px;
  --chapter: clamp(64px, 9vw, 144px);
  --head-h: 76px;
  --t-lead: clamp(19px, 1.6vw, 23px);
  --t-h3: clamp(21px, 2.1vw, 29px);
  --rule: color-mix(in srgb, currentColor 24%, transparent);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Vazirmatn, system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html[dir="ltr"] body { font-size: 17px; line-height: 1.6; }
html.menu-open body { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .24em; text-decoration-thickness: 1px; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
b, strong { font-weight: 800; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
::selection { background: var(--brand); color: var(--brand-foreground); }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; inset-inline-start: 12px; top: -120px; z-index: 30; padding: 10px 16px; background: var(--paper); color: var(--ink); border-radius: var(--radius); font-weight: 700; }
.skip:focus { top: 12px; }

/* chapters: the ground changes exactly at their edges */
.chapter { padding-block: var(--chapter); }
.chapter--brand { background: var(--brand); color: var(--brand-foreground); }
.chapter--surface { background: var(--surface); }
.label { font-size: 15px; font-weight: 700; line-height: 1.5; margin-block-end: clamp(24px, 3vw, 44px); }
html[dir="ltr"] .label { font-size: 13px; letter-spacing: .09em; text-transform: uppercase; }
.chapter--brand b, .site-foot b, .head b { color: var(--brand-soft); font-weight: inherit; }
.intro__text b, .cta__title b, .missing__title b {
  font-weight: inherit;
  text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--brand) 34%, transparent);
  text-decoration-thickness: .13em; text-underline-offset: .16em;
}
a[href^="tel:"] { unicode-bidi: isolate-override; direction: ltr; } /* the digits in their written order, in every script */

/* links and buttons */
.more {
  display: inline-flex; align-items: center; gap: .55em; min-height: 44px;
  font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .32em;
}
.more::after, .more--back::before {
  content: ""; flex: none; width: 1.05em; height: .75em; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 14'%3E%3Cpath d='M1 7h16M11 1.5 16.5 7 11 12.5' fill='none' stroke='%23000' stroke-width='2.4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 14'%3E%3Cpath d='M1 7h16M11 1.5 16.5 7 11 12.5' fill='none' stroke='%23000' stroke-width='2.4'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: translate .15s ease-out;
}
html[dir="rtl"] .more::after { transform: scaleX(-1); }
.more--back::after { content: none; }
html[dir="ltr"] .more--back::before { transform: scaleX(-1); }
.more:hover::after { translate: .25em 0; }
html[dir="rtl"] .more:hover::after { translate: -.25em 0; }
.more:hover { text-decoration-thickness: 3px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 10px 26px;
  background: var(--brand); color: var(--brand-foreground); border: 2px solid var(--brand); border-radius: var(--radius);
  font: inherit; font-size: 16px; font-weight: 700; line-height: 1.3; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s;
}
.btn:hover { background: transparent; color: var(--brand-text); }
.btn--on-brand { background: var(--brand-foreground); color: var(--brand); border-color: var(--brand-foreground); }
.btn--on-brand:hover { background: transparent; color: var(--brand-foreground); }
.btn--line { background: transparent; color: var(--brand-text); }
.btn--line:hover { background: var(--brand); color: var(--brand-foreground); }
.btn:disabled { opacity: .6; cursor: progress; }

/* header: part of the first coloured chapter */
.site-head { position: relative; z-index: 10; background: var(--brand); color: var(--brand-foreground); }
.site-head__bar {
  max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter);
  min-height: var(--head-h); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px;
}
.wordmark { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 19px; font-weight: 800; text-decoration: none; }
html[dir="ltr"] .wordmark { letter-spacing: -.015em; }
.wordmark__logo { display: inline-flex; align-items: center; height: 44px; padding: 4px 8px; background: var(--paper); border-radius: var(--radius); }
.wordmark__logo img { width: auto; height: 36px; }
.site-nav { margin-inline-start: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 0 28px; }
.site-nav__links { display: flex; flex-wrap: wrap; gap: 0 20px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 500; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.langs { display: flex; gap: 2px; padding-inline-start: 18px; border-inline-start: 1px solid var(--rule); }
.langs a { padding-inline: 9px; font-size: 14px; border-radius: var(--radius); }
.langs a[aria-current] { background: var(--brand-foreground); color: var(--brand); text-decoration: none; }
.menu-btn {
  display: none; margin-inline-start: auto; align-items: center; gap: 10px; min-height: 44px; min-width: 44px; padding: 0 14px;
  background: none; color: inherit; border: 1.5px solid var(--rule); border-radius: var(--radius);
  font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
}
.menu-btn__icon { width: 18px; height: 10px; border-block: 2px solid currentColor; }
.menu-btn__close, .menu-btn[aria-expanded="true"] .menu-btn__open { display: none; }
.menu-btn[aria-expanded="true"] .menu-btn__close { display: inline; }
.menu-btn[aria-expanded="true"] .menu-btn__icon { height: 2px; border-block-end: 0; }

@media (max-width: 67.49em) {
  .js .menu-btn { display: inline-flex; }
  .js .site-nav { display: none; }
  .js .site-head.is-open .site-nav {
    position: absolute; inset-inline: 0; top: 100%; z-index: 20;
    display: flex; flex-direction: column; align-items: stretch; gap: 28px;
    min-height: calc(100svh - var(--head-h)); padding: 8px var(--gutter) 48px; overflow-y: auto;
    background: var(--brand); border-block-start: 1px solid var(--rule);
  }
  .js .site-head.is-open .site-nav__links { flex-direction: column; gap: 0; }
  .js .site-head.is-open .site-nav__links a { min-height: 56px; font-size: clamp(26px, 7vw, 40px); font-weight: 700; }
  .js .site-head.is-open .langs { border: 0; padding: 0; gap: 8px; }
  .js .site-head.is-open .langs a { min-height: 44px; padding-inline: 14px; border: 1px solid var(--rule); font-size: 16px; }
  html:not(.js) .site-nav { margin-inline-start: 0; padding-block-end: 12px; }
}

/* home: the colour field and its two-ink statement */
.hero { display: flex; min-height: calc(100svh - var(--head-h)); padding-block: clamp(20px, 5vh, 56px) clamp(32px, 6vh, 64px); }
.hero__inner { display: flex; flex-direction: column; justify-content: space-between; gap: 56px; width: 100%; }
.hero__title { margin-block-start: clamp(8px, 7vh, 96px); font-size: clamp(76px, 15vw, 232px); font-weight: 800; line-height: 1.14; }
html[dir="ltr"] .hero__title { line-height: .9; letter-spacing: -.05em; }
.hero__foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 48px; }
.hero__lead { max-width: 34ch; font-size: var(--t-lead); line-height: 1.75; }
html[dir="ltr"] .hero__lead { line-height: 1.5; }

.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); }
.split__side { grid-column: 1 / span 3; }
.split__main { grid-column: 5 / -1; }
.split--top + .split--top { margin-block-start: clamp(40px, 5vw, 80px); }
.intro__text { font-size: clamp(26px, 3.3vw, 48px); font-weight: 700; line-height: 1.6; }
html[dir="ltr"] .intro__text { line-height: 1.25; letter-spacing: -.02em; }
.prose-lg { max-width: 38em; font-size: clamp(19px, 1.65vw, 23px); line-height: 1.9; }
html[dir="ltr"] .prose-lg { line-height: 1.55; }

.lines { border-block-start: 1px solid var(--rule); }
.line {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 21rem); align-items: baseline; gap: 6px 40px;
  padding-block: clamp(14px, 2vw, 26px); border-block-end: 1px solid var(--rule);
}
.line__title { font-size: clamp(34px, 5.4vw, 82px); font-weight: 800; line-height: 1.3; }
html[dir="ltr"] .line__title { line-height: 1.05; letter-spacing: -.035em; }
.line__text { font-size: 16px; line-height: 1.75; }

.chapter__top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-block-end: clamp(24px, 3vw, 44px); }
.chapter__top .label { margin: 0; }
.work { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px) clamp(16px, 2vw, 32px); }
.work .card:nth-child(1) { grid-column: 1 / span 7; }
.work .card:nth-child(2) { grid-column: 9 / span 4; margin-block-start: clamp(48px, 12vw, 200px); }
.work .card:nth-child(3) { grid-column: 3 / span 6; }

.numbers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px clamp(24px, 4vw, 72px); }
.numbers--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.number { display: grid; align-content: start; gap: 12px; padding-block-start: 20px; border-block-start: 1px solid var(--rule); }
.number__value { font-size: clamp(64px, 11vw, 180px); font-weight: 800; line-height: 1.1; }
.numbers--three .number__value { font-size: clamp(56px, 7.4vw, 120px); }
html[dir="ltr"] .number__value { line-height: 1; letter-spacing: -.05em; }
.number__label { max-width: 24ch; font-size: var(--t-lead); line-height: 1.6; }
.numbers__more { margin-block-start: clamp(36px, 5vw, 64px); }
.numbers__more .more { display: inline; font-size: var(--t-lead); }
.numbers__more .more::after { display: inline-block; margin-inline-start: .5em; }
.more__kicker { display: block; font-size: 15px; font-weight: 600; text-decoration: none; }

.letter { max-width: 34em; }
.letter__text p { font-size: clamp(22px, 2.4vw, 32px); font-weight: 600; line-height: 1.7; }
html[dir="ltr"] .letter__text p { line-height: 1.4; letter-spacing: -.01em; }
.letter__by { display: grid; gap: 2px; margin-block-start: 32px; font-size: 16px; line-height: 1.6; }
.letter__name { font-weight: 800; }
.letter__role { color: var(--muted); }

.names { font-size: clamp(34px, 5vw, 76px); font-weight: 800; line-height: 1.4; }
html[dir="ltr"] .names { line-height: 1.1; letter-spacing: -.03em; }
.names__name, .names__sep { color: var(--brand-soft); transition: color .3s; }
.names__name:hover { color: var(--brand-foreground); }
.names__more { margin-block-start: clamp(28px, 4vw, 48px); }

.journal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px clamp(24px, 4vw, 72px); }
.journal__kind { margin-block-end: 8px; font-size: var(--t-h3); font-weight: 800; }
.journal__kind a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; }
.journal__kind a:hover { text-decoration: underline; }

/* cards, rows */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(48px, 6vw, 88px) clamp(16px, 3vw, 40px); }
.cards--small { margin-block-start: clamp(40px, 5vw, 72px); }
.card__link { display: grid; gap: 8px; text-decoration: none; }
.cover { overflow: hidden; aspect-ratio: 3 / 2; background: var(--surface); border-radius: var(--radius); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover--empty { display: grid; place-items: center; background: var(--brand); color: var(--brand-foreground); font-size: clamp(64px, 10vw, 160px); font-weight: 800; }
.card__meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-block-start: 10px; font-size: 14px; font-weight: 600; color: var(--muted); }
.card__title { font-size: var(--t-h3); font-weight: 800; line-height: 1.45; }
html[dir="ltr"] .card__title { line-height: 1.2; letter-spacing: -.015em; }
.card__text { color: var(--muted); font-size: 16px; line-height: 1.75; }
.card__link:hover .card__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .22em; }

.rows { border-block-start: 1px solid var(--rule); }
.row__link {
  display: grid; grid-template-columns: 12rem minmax(0, 1fr); align-items: baseline; gap: 6px 32px;
  padding-block: 24px; border-block-end: 1px solid var(--rule); text-decoration: none;
}
.row__date { font-size: 15px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.row__body { display: grid; gap: 6px; }
.row__title { font-size: var(--t-h3); font-weight: 800; line-height: 1.45; }
html[dir="ltr"] .row__title { line-height: 1.25; letter-spacing: -.01em; }
.row__text { color: var(--muted); font-size: 16px; line-height: 1.75; }
.row__link:hover .row__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .22em; }
.rows--short .row__link { grid-template-columns: 1fr; gap: 2px; padding-block: 16px; }
.rows--short .row__title { font-size: 19px; }
.empty { font-size: var(--t-lead); }

/* inner pages: the coloured head */
.head { padding-block: clamp(32px, 6vw, 96px) clamp(56px, 8vw, 128px); }
.head--tall { display: flex; align-items: flex-end; min-height: min(70svh, 720px); }
.head--tall > .wrap { width: 100%; }
.head__title { max-width: 15ch; font-size: clamp(48px, 9vw, 150px); font-weight: 800; line-height: 1.2; }
html[dir="ltr"] .head__title { line-height: .95; letter-spacing: -.045em; }
.head--detail .head__title { max-width: 24ch; font-size: clamp(34px, 5.4vw, 84px); line-height: 1.35; }
html[dir="ltr"] .head--detail .head__title { line-height: 1.04; letter-spacing: -.03em; }
.head__lead { max-width: 44ch; margin-block-start: clamp(20px, 3vw, 36px); font-size: var(--t-lead); line-height: 1.8; }
html[dir="ltr"] .head__lead { line-height: 1.5; }
.head__kicker { display: flex; flex-wrap: wrap; gap: 2px 16px; margin-block-end: 16px; font-size: 15px; font-weight: 700; }
.head__kicker-label { font-weight: 500; }
.head__by { font-weight: 500; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; margin-block-end: clamp(20px, 4vw, 48px); font-size: 14px; }
.crumbs li { display: flex; align-items: center; min-width: 0; }
.crumbs li:not(:last-child)::after { content: "/"; margin-inline-start: 10px; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.crumbs li[aria-current] { display: block; max-width: 36ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meta { display: flex; flex-wrap: wrap; gap: 16px clamp(28px, 4vw, 64px); margin-block-start: clamp(28px, 4vw, 48px); padding-block-start: 20px; border-block-start: 1px solid var(--rule); }
.meta dt { font-size: 14px; font-weight: 500; }
.meta dd { font-size: 17px; font-weight: 700; }

/* articles */
.article { display: grid; gap: clamp(40px, 5vw, 72px); }
.cover--wide { width: 100%; max-width: 1100px; margin-inline: auto; }
.article--text .cover { width: 100%; max-width: 44rem; margin-inline: auto; }
.prose { width: 100%; max-width: 44rem; margin-inline: auto; }
.prose > .block + .block { margin-block-start: 1.15em; }
.prose h2 { margin-block-start: .5em; font-size: clamp(26px, 3vw, 40px); font-weight: 800; line-height: 1.45; }
html[dir="ltr"] .prose h2 { line-height: 1.15; letter-spacing: -.02em; }
.prose a { color: var(--brand-text); }
.prose ul li { position: relative; padding-inline-start: 1.5em; }
.prose ul li + li { margin-block-start: .35em; }
.prose ul li::before { content: ""; position: absolute; inset-inline-start: 0; top: .9em; width: .7em; height: 2px; background: currentColor; }
html[dir="ltr"] .prose ul li::before { top: .8em; }
.quote { padding-inline-start: clamp(16px, 2vw, 28px); border-inline-start: 4px solid var(--brand); }
.quote p { font-size: clamp(23px, 2.6vw, 34px); font-weight: 700; line-height: 1.65; }
html[dir="ltr"] .quote p { line-height: 1.3; letter-spacing: -.015em; }
.quote figcaption, .figure figcaption { margin-block-start: 10px; font-size: 15px; color: var(--muted); }
.figure img { width: 100%; border-radius: var(--radius); }
.related { margin-block-start: clamp(36px, 5vw, 64px); }
.next { display: grid; gap: 6px; margin-block-start: clamp(48px, 6vw, 96px); padding-block-start: 28px; border-block-start: 1px solid var(--rule); text-decoration: none; }
.next__label { font-size: 15px; font-weight: 700; color: var(--muted); }
.next__title { font-size: clamp(30px, 4.4vw, 64px); font-weight: 800; line-height: 1.4; }
html[dir="ltr"] .next__title { line-height: 1.08; letter-spacing: -.03em; }
.next:hover .next__title { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .15em; }

/* about */
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 56px clamp(24px, 3vw, 48px); }
.service { display: grid; align-content: start; gap: 10px; padding-block-start: 20px; border-block-start: 2px solid var(--ink); }
.service__title { font-size: var(--t-h3); font-weight: 800; line-height: 1.4; }
.service__text { color: var(--muted); }
.service__points { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 6px; }
.service__points li { padding: 3px 12px; font-size: 14px; border: 1px solid var(--rule); border-radius: var(--radius); }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px clamp(24px, 4vw, 72px); counter-reset: value; }
.value { display: grid; align-content: start; gap: 12px; counter-increment: value; }
.value::before { content: counter(value, decimal-leading-zero); font-size: clamp(48px, 6vw, 88px); font-weight: 800; line-height: 1; color: var(--brand-soft); }
html[lang="fa"] .value::before { content: counter(value, persian); }
html[lang="ar"] .value::before { content: counter(value, arabic-indic); }
.value__title { font-size: var(--t-h3); font-weight: 800; line-height: 1.4; }
.cta { display: grid; justify-items: start; gap: 36px; }
.cta__title { font-size: clamp(42px, 7vw, 112px); font-weight: 800; line-height: 1.3; }
html[dir="ltr"] .cta__title { line-height: 1; letter-spacing: -.04em; }

/* clients */
.clients { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px clamp(16px, 2vw, 28px); }
.client { display: grid; align-content: start; gap: 4px; }
.client__logo { display: grid; place-items: center; overflow: hidden; aspect-ratio: 2 / 1; margin-block-end: 12px; background: var(--surface); border-radius: var(--radius); }
.client__logo img { width: 100%; height: 100%; object-fit: contain; }
.client__word { padding: 12px; font-size: clamp(20px, 2.2vw, 30px); font-weight: 800; line-height: 1.3; text-align: center; }
.client__name { font-size: 18px; font-weight: 800; line-height: 1.5; }
.client__field { font-size: 15px; color: var(--muted); }
.client__url { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; color: var(--brand-text); }
.letters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px clamp(32px, 5vw, 96px); }
.letters .letter__text p { font-size: clamp(19px, 1.8vw, 24px); }

/* contact */
.contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 64px clamp(32px, 6vw, 112px); }
.form { display: grid; gap: 22px; max-width: 38rem; }
.field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field label, .field legend { padding: 0; font-size: 15px; font-weight: 700; }
.field__opt { font-weight: 400; }
.field input, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  font: inherit; font-size: 17px; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--muted); border-radius: var(--radius);
}
.field textarea { resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--brand-text); outline-offset: 2px; border-color: var(--ink); }
.field--choice { display: flex; flex-wrap: wrap; gap: 10px; }
.field--choice legend { float: inline-start; width: 100%; margin-block-end: 8px; }
.choice { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 16px; font-size: 16px; border: 1.5px solid var(--muted); border-radius: var(--radius); cursor: pointer; }
.choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--brand); }
.choice:has(input:checked) { background: var(--brand); color: var(--brand-foreground); border-color: var(--brand); }
.choice:has(input:checked) input { accent-color: var(--brand-foreground); }
.choice:has(input:focus-visible) { outline: 3px solid var(--brand-text); outline-offset: 2px; }
/* on a phone each subject takes the whole row: two side by side squeeze their words against the border */
@media (max-width: 480px) { .choice { flex: 1 1 100%; } }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form .btn { justify-self: start; }
.form__status { min-height: 1.8em; font-weight: 700; }
.form__status[data-kind="error"]::before { content: "! "; }
.direct { display: grid; gap: 24px; }
.direct dt { font-size: 14px; font-weight: 600; color: var(--muted); }
.direct dd { font-size: clamp(19px, 1.8vw, 24px); font-weight: 700; line-height: 1.6; overflow-wrap: anywhere; }
.direct a { display: inline-flex; min-height: 44px; align-items: center; color: var(--brand-text); }
.direct__social { display: flex; flex-wrap: wrap; gap: 0 22px; margin-block-start: 24px; }
.direct__social a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 600; }
.fallback { display: grid; gap: 20px; }
.fallback__lead { font-size: var(--t-lead); }
.fallback__links { display: flex; flex-wrap: wrap; gap: 12px; }

/* 404 */
.missing { display: flex; align-items: center; min-height: 68svh; }
.missing__title { font-size: clamp(56px, 11vw, 176px); font-weight: 800; line-height: 1.2; }
html[dir="ltr"] .missing__title { line-height: .95; letter-spacing: -.045em; }
.missing__lead { max-width: 40ch; margin-block: 28px 36px; font-size: var(--t-lead); }

/* footer: the address as display type, then the places and pages */
.site-foot { padding-block: clamp(64px, 9vw, 144px) 28px; background: var(--brand); color: var(--brand-foreground); }
.site-foot__say { max-width: 32ch; font-size: clamp(24px, 3vw, 42px); font-weight: 700; line-height: 1.55; text-wrap: balance; }
html[dir="ltr"] .site-foot__say { line-height: 1.2; letter-spacing: -.02em; }
.site-foot__mail { margin-block: clamp(16px, 2.5vw, 28px) clamp(56px, 7vw, 112px); }
.site-foot__mail a { display: inline-block; font-size: clamp(32px, 7.6vw, 124px); font-weight: 300; line-height: 1.15; letter-spacing: -.035em; text-decoration: none; overflow-wrap: anywhere; }
.site-foot__mail a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .14em; }
.site-foot__grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: 40px clamp(24px, 4vw, 72px);
  padding-block-start: 40px; border-block-start: 1px solid var(--rule);
}
.site-foot .label { margin-block-end: 8px; }
.site-foot__reach { display: grid; align-content: start; gap: 4px; }
.site-foot__name { font-size: 20px; font-weight: 800; }
.site-foot__reach a { display: inline-flex; align-items: center; min-height: 44px; font-size: 20px; font-weight: 700; }
.site-foot__pages ul { columns: 2; column-gap: 24px; }
.site-foot__pages a, .site-foot__social a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.site-foot__pages a:hover, .site-foot__social a:hover, .site-foot__top:hover { text-decoration: underline; }
.site-foot__legal {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 32px;
  margin-block-start: 56px; padding-block-start: 16px; border-block-start: 1px solid var(--rule); font-size: 14px;
}
.site-foot__top { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
/* the site's name as the page's last word, as large as the page allows: type and nothing else (a signature, not read aloud) */
.site-foot__mark {
  margin-block: clamp(28px, 4vw, 64px) 0; font-size: clamp(56px, 15vw, 240px); font-weight: 800; line-height: .92;
  color: var(--brand-soft); white-space: nowrap; overflow: hidden; user-select: none;
}
html[dir="ltr"] .site-foot__mark { letter-spacing: -.045em; }

/* narrower screens */
@media (max-width: 1000px) {
  .clients { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-foot__grid { grid-template-columns: 1fr 1fr; }
  .site-foot__reach { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .split__side, .split__main { grid-column: 1 / -1; }
  .split__side { margin-block-end: 18px; }
  .line { grid-template-columns: 1fr; }
  .work .card:nth-child(n) { grid-column: 1 / -1; margin-block-start: 0; }
  .numbers, .numbers--three, .journal, .cards, .values, .letters, .contact { grid-template-columns: 1fr; }
  .clients { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row__link { grid-template-columns: 1fr; gap: 4px; }
  .hero__foot { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .site-foot__grid { grid-template-columns: 1fr; }
  .site-foot__pages ul { columns: 2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
