/* Volte Architecture

   Warm black ground, one grotesque in one weight, one orange.
   Hierarchy comes from two things only: size, and ink against ink at 60 %.
   A title is ink; the sentence that follows it is the same size, in soft ink.

   Content sits on cards one shade lighter than the ground. The drawings are
   cards too, and the card is their paper. Anything you can press is a pill.

   Text sizes: display (once, on the contact page), title, lead, text, small.
   The page follows the system: dark by default, light where that is asked for. */

:root {
  color-scheme: dark;

  --ground: #14120b;
  --surface: #1b1913;  /* cards, and the paper of every drawing */
  --raised: #26241e;   /* a card under the pointer, quiet buttons */
  --ink: #edecec;
  --ink-soft: rgba(237, 236, 236, .6);
  --rule: rgba(237, 236, 236, .1);
  --rule-strong: rgba(237, 236, 236, .22);
  --accent: #f54e00;
  --link: #f54e00;

  --paper: var(--surface);
  --tone-1: #24221b; /* lit faces of the models */
  --tone-2: #34322a; /* shaded faces, glass */
  --mark: var(--accent); /* what the pointer is on */

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --nav-h: 3.25rem;
  --gap: .625rem;
  --col-gap: clamp(1.25rem, 3vw, 2.5rem);
  --radius: .25rem;
  --pad: 1.25rem;
  --font: "Host Grotesk", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;

  --display: clamp(2.5rem, 6.2vw, 4.5rem);
  --title: clamp(1.375rem, 1.15rem + .9vw, 1.625rem);
  --lead: clamp(1.1875rem, 1.05rem + .6vw, 1.375rem);
  --small: .875rem;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;

    --ground: #f7f7f4;
    --surface: #f0efeb;
    --raised: #e6e5e0;
    --ink: #26251e;
    --ink-soft: rgba(38, 37, 30, .7);
    --rule: rgba(38, 37, 30, .1);
    --rule-strong: rgba(38, 37, 30, .24);
    --link: #bf3b00;

    --tone-1: #e7e6e1;
    --tone-2: #d8d7d1;
  }
}

/* Base ------------------------------------------------------------------ */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
  background: var(--ground);
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main { flex: 1; }

h1, h2, h3, p, dl, dd, ol, ul, figure, table { margin: 0; }
ol, ul { padding: 0; list-style: none; }

/* one weight throughout: emphasis is ink against soft ink, never bold */
h1, h2, h3, b, strong, th { font-weight: 400; }

h1 {
  font-size: var(--title);
  line-height: 1.25;
  letter-spacing: -.0125em;
  text-wrap: balance;
}

h2 {
  font-size: var(--lead);
  line-height: 1.3;
  letter-spacing: -.005em;
}

h3 { font-size: inherit; line-height: inherit; }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
}

button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent); color: #fff; }

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 20;
  padding: .5rem .9rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--ground);
  text-decoration: none;
}
.skip:focus { top: .5rem; }

.wrap {
  width: 100%;
  max-width: calc(81.25rem + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* the sentence after a title: same size, soft ink */
.lead {
  font-size: var(--title);
  line-height: 1.25;
  letter-spacing: -.0125em;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.soft { color: var(--ink-soft); }
.small { font-size: var(--small); }
.num { text-align: right; white-space: nowrap; }

/* Pills ------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  padding: .8rem 1.35rem .82rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--ground);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s, border-color .15s;
}
.btn:hover {
  background: color-mix(in srgb, var(--ink) 86%, var(--ground));
  border-color: color-mix(in srgb, var(--ink) 86%, var(--ground));
}
.btn--quiet { background: var(--raised); border-color: var(--raised); color: var(--ink); }
.btn--quiet:hover {
  background: color-mix(in srgb, var(--raised) 86%, var(--ink));
  border-color: color-mix(in srgb, var(--raised) 86%, var(--ink));
}

.actions { display: flex; flex-wrap: wrap; gap: var(--gap); margin-top: 1.5rem; }

/* a link that stands on its own line under a group of cards */
.more {
  display: inline-block;
  margin-top: 1.25rem;
  color: var(--link);
  text-decoration: none;
}
.more:hover { text-decoration: underline; }

/* links inside running text */
.prose a, .note a {
  color: var(--link);
  text-decoration-line: underline;
  text-decoration-color: color-mix(in srgb, var(--link) 45%, transparent);
}
.prose a:hover, .note a:hover { text-decoration-color: currentColor; }

/* Cards --------------------------------------------------------------------- */

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.05rem var(--pad) 1.15rem;
}
a.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  transition: background-color .15s;
}
a.card:hover { background: var(--raised); }

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

/* Navigation: every item is a page ---------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--ground);
}
.nav__in {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav__brand { text-decoration: none; white-space: nowrap; }
.nav__brand span { color: var(--ink-soft); }
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(.9rem, 2.4vw, 2rem);
  font-size: .9375rem;
}
.nav__links a {
  padding-block: .35rem;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color .15s;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--ink); }
.nav__links a.nav__pill {
  padding: .44rem .8rem .46rem;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  color: var(--ink);
  line-height: 1;
  transition: border-color .15s;
}
.nav__links a.nav__pill:hover { border-color: var(--ink); }
.nav__links a.nav__pill[aria-current="page"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--ground);
}

/* Page head: a title, then its sentence ------------------------------------- */

.page-head { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.75rem, 3vw, 2.5rem); }
.page-head h1, .page-head .lead { max-width: 27em; }

/* a page that opens on a model: its title is there, but not to be seen */
.page-top { padding-top: clamp(1rem, 2.5vw, 2rem); }
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.block { padding-block: clamp(3rem, 7vw, 5.5rem); }
.block > h2 { margin-bottom: 1.25rem; }

/* Two columns on the page grid: text beside a card */
.split {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: 2rem;
  align-items: start;
}
.split > :first-child { grid-column: 1 / span 6; }
.split > :last-child { grid-column: 8 / -1; }

/* running text is set like a title and its sentence: the first thing in ink,
   what follows in soft ink */
.prose { font-size: var(--lead); line-height: 1.3; letter-spacing: -.005em; }
.prose p { max-width: 30em; color: var(--ink-soft); text-wrap: pretty; }
.prose > p:first-child { color: var(--ink); }
.prose p + p { margin-top: .9em; }

/* Sheet: a drawing on its card, with its title block ------------------------ */

.sheet {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
}
.sheet + .sheet { margin-top: var(--gap); }

.sheet__drawing { position: relative; overflow: hidden; }
.sheet__drawing canvas { display: block; width: 100%; }
.sheet__drawing canvas:focus-visible { outline-offset: -4px; border-radius: var(--radius); }

.sheet__drawing--axo { height: clamp(21rem, 66svh, 44rem); }
.sheet__drawing--axo canvas {
  position: absolute;
  inset: 0;
  height: 100%;
  touch-action: pan-y;
  cursor: grab;
}
.sheet__drawing--axo canvas.is-grabbing { cursor: grabbing; }

/* a model in colour: pictures rendered in Blender, one every fifteen degrees,
   on the card as on a table. Their ground is clear, so the card shows through. */
.sheet__drawing--turn {
  aspect-ratio: 2 / 1;
  min-height: 15rem;
  max-height: clamp(21rem, 74svh, 46rem);
  width: 100%;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.sheet__drawing--turn.is-grabbing { cursor: grabbing; }
.sheet__drawing--turn:focus-visible { outline-offset: -4px; border-radius: var(--radius); }
.sheet__drawing--turn img, .sheet__drawing--turn canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.sheet__drawing--turn img { object-fit: contain; }

/* closer views of a model, two abreast */
.views {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: var(--gap);
}
.views .sheet + .sheet { margin-top: 0; }
.views img { display: block; width: 100%; height: auto; }

.titleblock {
  display: grid;
  border-top: 1px solid var(--rule);
  font-size: var(--small);
  line-height: 1.4;
}
.titleblock { grid-template-columns: auto minmax(0, 1fr) auto auto; }
.titleblock > div {
  min-width: 0;
  padding: .7rem var(--pad) .75rem;
  border-left: 1px solid var(--rule);
}
.titleblock > div:first-child { border-left: 0; }
.titleblock span, .titleblock label { display: block; color: var(--ink-soft); }
.titleblock b { display: block; }
.titleblock a { text-decoration: none; }
.titleblock a:hover { text-decoration: underline; }
.titleblock .scalebar { display: block; margin-top: .15rem; }
.titleblock--turn { grid-template-columns: minmax(0, 1fr) minmax(13rem, 21rem); }

/* the one control on a model: a slider that pulls the storeys apart */
.pull { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: .75rem; align-items: center; }
.pull label { grid-column: 1 / -1; }
.pull output { min-width: 3.6em; text-align: right; }
.pull input[type="range"]:last-child { grid-column: 1 / -1; } /* no read-out beside it */
.pull input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 1.25rem;
  margin: 0;
  background: linear-gradient(var(--rule-strong), var(--rule-strong)) 0 50% / 100% 2px no-repeat;
  cursor: ew-resize;
}
.pull input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: .875rem;
  height: .875rem;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
}
.pull input[type="range"]::-moz-range-thumb {
  width: .875rem;
  height: .875rem;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
}
.pull input[type="range"]::-moz-range-track { background: none; }
.pull input[type="range"]:focus-visible { outline-offset: 2px; border-radius: 999px; }

.note { margin-top: 1rem; max-width: 70ch; font-size: var(--small); color: var(--ink-soft); }

/* Home ---------------------------------------------------------------------- */

.hero__sheet .sheet__drawing--axo { height: clamp(22rem, calc(100svh - var(--nav-h) - 9rem), 46rem); }

/* Projects: one card to a building: a picture of its model, and no words ------- */

.card--project img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  margin-block: .25rem;
  object-fit: contain;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}
a.card--project:hover img { transform: scale(1.025); }

/* Project page ---------------------------------------------------------------- */

.keyfacts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: 2rem;
}
.keyfacts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0; }
.sheet + .keyfacts { margin-top: var(--gap); }
.keyfacts > div {
  padding: .8rem var(--pad) .9rem;
  border-radius: var(--radius);
  background: var(--surface);
}
.keyfacts dt { color: var(--ink-soft); }
.keyfacts a { text-decoration: none; }
.keyfacts a:hover { text-decoration: underline; }

/* a card of rows */
.plain {
  border-radius: var(--radius);
  background: var(--surface);
}

.pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  margin-block: clamp(1rem, 2vw, 1.5rem) clamp(3rem, 7vw, 5.5rem);
}
.pager .card:nth-child(2) { text-align: right; }
.pager .more { grid-column: 1 / -1; justify-self: start; margin-top: .6rem; }

/* Studio ---------------------------------------------------------------------- */

.columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}
.columns > div {
  min-height: 9rem;
  padding: 1.05rem var(--pad) 1.15rem;
  border-radius: var(--radius);
  background: var(--surface);
}
.columns h2, .columns h3 { font-size: 1rem; line-height: 1.5; letter-spacing: 0; }
.columns p { max-width: 36ch; color: var(--ink-soft); }

.plain { padding: .3rem var(--pad); }
.plain li { padding-block: .7rem; border-bottom: 1px solid var(--rule); }
.plain li:last-child { border-bottom: 0; }

/* Process: the programme as a bar chart ---------------------------------------- */

.programme {
  padding: .3rem var(--pad);
  border-radius: var(--radius);
  background: var(--surface);
}
.programme__head, .programme li {
  display: grid;
  grid-template-columns: 2rem minmax(0, 22rem) minmax(0, 1fr) 5.5rem;
  column-gap: var(--col-gap);
  align-items: start;
}
.programme__head {
  padding-block: .7rem .6rem;
  border-bottom: 1px solid var(--rule);
  font-size: var(--small);
  color: var(--ink-soft);
  align-items: end;
}
.programme li { padding-block: 1rem 1.1rem; border-bottom: 1px solid var(--rule); }
.programme li:last-child { border-bottom: 0; }
.programme li > span:first-child { color: var(--ink-soft); }
.programme h2, .programme h3 { font-size: 1rem; line-height: 1.5; letter-spacing: 0; }
.programme p { max-width: 44ch; font-size: var(--small); color: var(--ink-soft); }
.programme__axis { position: relative; height: 1.3rem; }
.programme__axis span { position: absolute; left: calc(var(--at) * 1%); transform: translateX(-50%); }
.programme__axis span:first-child { transform: none; }
.programme__axis span:last-child { transform: translateX(-100%); }
/* the track: a tick every ten weeks, and a bar from start to end */
.programme__track {
  position: relative;
  align-self: stretch;
  min-height: 1.5rem;
  background: repeating-linear-gradient(to right, var(--rule) 0 1px, transparent 1px 10%) 0 0 / 100% 100%;
  border-right: 1px solid var(--rule);
}
.programme__track i {
  position: absolute;
  top: .5rem;
  left: calc(var(--s) * 1%);
  width: calc(var(--w) * 1%);
  min-width: .5rem;
  height: .5rem;
  border-radius: 999px;
  background: var(--ink);
}

/* Contact: the one large line on the site --------------------------------------- */

.contact__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: clamp(3.5rem, 9vw, 6.5rem) clamp(2.25rem, 4vw, 3rem);
  text-align: center;
}
.contact__head h1 {
  font-size: var(--display);
  line-height: 1.1;
  letter-spacing: -.03em;
}
.contact__head .lead {
  max-width: 31em;
  margin-top: 1.5rem;
  font-size: var(--lead);
  line-height: 1.3;
  letter-spacing: -.005em;
}
.contact { padding-bottom: clamp(3rem, 7vw, 5.5rem); }

/* the form and the facts under it share one column on the axis of the title */
.form, .contact .keyfacts { max-width: 46rem; margin-inline: auto; }
.contact .keyfacts { margin-top: clamp(3rem, 7vw, 5.5rem); }

/* every field is a card you can write on: its name in soft ink, what you
   type in ink, so that a filled form reads like the facts */
.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}
.field {
  display: block;
  padding: .8rem var(--pad) .9rem;
  border-radius: var(--radius);
  background: var(--surface);
  cursor: text;
  transition: background-color .15s, box-shadow .15s;
}
.field--wide { grid-column: 1 / -1; }
.field:hover, .field:focus-within { background: var(--raised); }
.field:focus-within { box-shadow: inset 0 0 0 1px var(--ink); }
.field:has(:user-invalid) { box-shadow: inset 0 0 0 1px var(--accent); }
.field > span {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ink-soft);
}
.field i { font-style: normal; }
.field input, .field textarea {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  outline: 0;
}
.field textarea { min-height: 6em; resize: vertical; field-sizing: content; }
.field ::placeholder { color: var(--ink-soft); opacity: 1; }
/* a browser that fills a field in keeps the card's own ground */
.field input:-webkit-autofill {
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
  transition: background-color 99999s;
}

.form__foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.25rem;
  margin-top: .875rem;
}
.form__foot .note { flex: 1 1 16rem; margin: 0; }

/* Footer ------------------------------------------------------------------------ */

.footer { background: var(--surface); font-size: var(--small); }
.footer__in {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: 2rem;
  padding-block: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3rem);
}
.footer__in > * { grid-column: span 3; }
.footer__label { margin-bottom: .5rem; color: var(--ink-soft); }
.footer li + li { margin-top: .35rem; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__base { padding-bottom: 1.75rem; color: var(--ink-soft); }

/* Medium screens ------------------------------------------------------------------ */

@media (max-width: 68rem) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .keyfacts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .programme__head, .programme li { grid-template-columns: 1.5rem minmax(0, 16rem) minmax(0, 1fr) 5rem; }
  .footer__in > * { grid-column: span 4; }
}

/* Small screens --------------------------------------------------------------------- */

@media (max-width: 54rem) {
  .hero__sheet .sheet__drawing--axo { height: clamp(18rem, 96vw, 30rem); }

  .split > :first-child, .split > :last-child { grid-column: 1 / -1; }

  .keyfacts, .keyfacts--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .columns { grid-template-columns: minmax(0, 1fr); }
  .columns > div { min-height: 0; }

  .titleblock { grid-template-columns: auto minmax(0, 1fr); }
  .titleblock--turn { grid-template-columns: minmax(0, 1fr); }
  .titleblock--turn > div:nth-child(2) { border-left: 0; border-top: 1px solid var(--rule); }
  .titleblock > div:nth-child(n + 3) { border-top: 1px solid var(--rule); }
  .titleblock > div:nth-child(odd) { border-left: 0; }

  .programme__head { display: none; }
  .programme li { grid-template-columns: 1.5rem minmax(0, 1fr) auto; row-gap: .6rem; }
  .programme__track { grid-column: 1 / -1; grid-row: 2; }
  .programme li > :last-child { grid-column: 3; grid-row: 1; }

  .footer__in > * { grid-column: 1 / -1; }
}

@media (max-width: 38rem) {
  .cards, .form { grid-template-columns: minmax(0, 1fr); }
  .views { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 30rem) {
  .nav__brand span { display: none; }
  .nav__links { gap: .9rem; font-size: var(--small); }
  .keyfacts--3 { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .btn, a.card, .nav__links a, .field, .card--project img { transition: none; }
  a.card--project:hover img { transform: none; }
}
