@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-latin.woff2") format("woff2");
  font-weight: 200 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --stone: #e6e3dd;
  --sheet: #ffffff;
  --ink: #1c1b19;
  --ink-2: #5e5a54;
  --rule: rgba(28, 27, 25, 0.2);
  --hair: rgba(28, 27, 25, 0.1);
  --m: clamp(20px, 4.2vw, 68px);
  --g: clamp(12px, 1.5vw, 24px);
  --head: 52px;
  --col: calc((100vw - 2 * var(--m) - 11 * var(--g)) / 12);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font: "Hanken Grotesk", system-ui, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--head); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection { background: var(--ink); color: var(--stone); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 3px; }
h1, h2, h3, p, dl, dd, ul, figure { margin: 0; }
ul { list-style: none; padding: 0; }
button { font: inherit; color: inherit; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: var(--m);
  top: -100px;
  z-index: 50;
  background: var(--ink);
  color: var(--stone);
  padding: 8px 14px;
}
.skip:focus { top: 8px; }

.eyebrow, .rule, .facts dt, .svc h3 {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.eyebrow { color: var(--ink-2); }
.disciplines {
  font-size: clamp(12px, 0.9vw, 14px);
  font-weight: 450;
  letter-spacing: 0.17em;
  line-height: 1.85;
  text-transform: uppercase;
}
.eyebrow span { margin-inline: 0.7em; }

figcaption { padding-top: 10px; font-size: 13px; line-height: 1.4; }
figcaption span { color: var(--ink-2); margin-left: 0.8em; }

.head {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--head);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--g);
  align-items: center;
  padding-inline: var(--m);
  background: var(--stone);
  border-bottom: 1px solid var(--hair);
  font-size: 13.5px;
}
.head-mark { grid-column: 1 / 5; font-weight: 500; letter-spacing: 0.01em; }
.head-section { grid-column: 7 / 10; color: var(--ink-2); overflow: hidden; white-space: nowrap; }
.head-title { display: inline-block; transition: opacity 0.28s var(--ease), transform 0.28s var(--ease); }
.head-section.is-swapping .head-title { opacity: 0; transform: translateY(5px); }
.head-nav { grid-column: 10 / 13; justify-self: end; display: flex; gap: 2em; }
.head-nav a, .head-menu a, .contact-details a, .foot a {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.3s var(--ease);
  padding-bottom: 2px;
}
.head-nav a:hover, .head-menu a:hover, .contact-details a:hover, .foot a:hover { background-size: 100% 1px; }
.head-menu { display: none; }

.sec {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--g);
  align-items: start;
  padding: clamp(130px, 22vh, 240px) var(--m) 0;
}

.rule {
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex;
  justify-content: space-between;
  gap: var(--g);
  border-top: 1px solid var(--ink);
  padding-top: 12px;
  margin-bottom: clamp(48px, 9vh, 96px);
}
.rule p:last-child { color: var(--ink-2); }

h2 {
  font-size: clamp(46px, 5.4vw, 96px);
  font-weight: 250;
  letter-spacing: -0.035em;
  line-height: 0.92;
}
h2 span { display: block; }

.facts { display: grid; font-size: 14px; }
.facts > div { border-top: 1px solid var(--rule); padding: 10px 0 12px; }
.facts dt { color: var(--ink-2); margin-bottom: 3px; }

.s-title {
  padding-top: 0;
  min-height: calc(100svh - var(--head));
}
.title-page {
  grid-column: 1 / 6;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  padding: clamp(32px, 6vh, 72px) 0 clamp(28px, 5vh, 56px);
}
h1 {
  margin-top: auto;
  font-size: clamp(52px, 8vw, 148px);
  font-weight: 250;
  letter-spacing: -0.045em;
  line-height: 0.86;
}
h1 span { display: block; }
h1 span:last-child { margin-left: -0.04em; }
.title-page .disciplines { margin-top: 32px; }
.contents { margin-top: clamp(40px, 8vh, 96px); max-width: 28em; }
.contents .eyebrow { margin-bottom: 10px; }
.contents a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 0.8em;
  padding: 6px 0;
  font-size: clamp(15px, 1.1vw, 17px);
}
.c-l { border-bottom: 1px dotted var(--ink-2); transform: translateY(-4px); transition: border-color 0.25s var(--ease); }
.c-k { color: var(--ink-2); font-size: 13px; transition: color 0.25s var(--ease); }
.contents a:hover .c-l, .contents a:focus-visible .c-l { border-bottom-style: solid; border-color: var(--ink); }
.contents a:hover .c-k, .contents a:focus-visible .c-k { color: var(--ink); }

.title-plate {
  grid-column: 7 / 13;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  padding-top: clamp(20px, 3vh, 32px);
}
.bleed-r { margin-right: calc(var(--m) * -1); flex: 1; min-height: 420px; }
.bleed-r img { width: 100%; height: 100%; object-fit: cover; object-position: 42% 50%; }
.title-plate figcaption { padding-bottom: clamp(28px, 5vh, 56px); }

.bank-plate { grid-column: 1 / 9; grid-row: 2; }
.bleed-l { margin-left: calc(var(--m) * -1); }
.bleed-l img { width: 100%; }
.bank-text {
  grid-column: 10 / 13;
  grid-row: 2;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 33px;
}
.bank-text h2 { margin-top: -0.08em; }
.bank-body p { font-size: clamp(16px, 1.2vw, 18px); line-height: 1.5; }
.bank-body .facts { margin-top: 28px; }

.viewer {
  grid-column: 1 / -1;
  grid-row: 3;
  display: grid;
  grid-template-columns: subgrid;
  margin-top: clamp(110px, 18vh, 200px);
}
.viewer-side {
  grid-column: 1 / 4;
  align-self: stretch;
  display: flex;
  flex-direction: column;
}
.viewer-cap {
  margin-top: 12px;
  font-size: clamp(20px, 1.6vw, 26px);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.viewer-thumbs {
  margin-top: auto;
  padding-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.viewer-thumbs button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.viewer-thumbs img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  outline: 1px solid transparent;
  outline-offset: 3px;
  transition: outline-color 0.25s var(--ease);
}
.viewer-thumbs button:hover img { outline-color: var(--rule); }
.viewer-thumbs button[aria-pressed="true"] img { outline-color: var(--ink); }
.viewer-stage { grid-column: 5 / 13; }
.viewer-frame { aspect-ratio: 3 / 2; }
.viewer-img, .drawing-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left bottom;
  transition: opacity 0.25s var(--ease);
}
.is-out { opacity: 0; }

.house-title { grid-column: 1 / 9; grid-row: 2; margin-bottom: clamp(36px, 6vh, 64px); }
.house-title span, .mm-title span { color: var(--ink-2); }
.house-plate { grid-column: 1 / -1; grid-row: 3; }
.house-plate img { width: 100%; }
.house-facts { grid-column: 1 / 6; grid-row: 4; margin-top: 36px; grid-template-columns: 1fr 1fr; column-gap: var(--g); }
.house-sheet {
  grid-column: 9 / 13;
  grid-row: 4;
  justify-self: end;
  max-width: 495px;
  margin-top: calc(clamp(80px, 14vh, 150px) * -1);
  position: relative;
  z-index: 2;
}
.house-sheet img { background: var(--sheet); padding: 12px; }

.mm-title { grid-column: 1 / 8; grid-row: 2; }
.mm-facts { grid-column: 9 / 13; grid-row: 2; align-self: end; }
.mm-a { grid-column: 1 / 8; grid-row: 3; margin-top: clamp(48px, 8vh, 88px); }
.mm-b { grid-column: 9 / 13; grid-row: 3; align-self: end; }

.drawings {
  grid-column: 1 / -1;
  grid-row: 4;
  margin: clamp(96px, 16vh, 180px) calc(var(--m) * -1) 0;
  padding: clamp(48px, 8vh, 88px) var(--m);
  background: var(--sheet);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--g);
}
.drawings-side { grid-column: 1 / 4; display: flex; flex-direction: column; }
.drawings-lede { margin-top: 12px; font-size: 15px; color: var(--ink-2); max-width: 30ch; }
.levels { margin-top: 32px; }
.levels button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1em;
  padding: 11px 0 12px;
  border: 0;
  border-top: 1px solid var(--rule);
  background: none;
  text-align: left;
  font-size: 15px;
  color: var(--ink-2);
  cursor: pointer;
  transition: color 0.2s var(--ease);
}
.levels li:last-child button { border-bottom: 1px solid var(--rule); }
.levels .lvl { font-size: 12.5px; font-variant-numeric: tabular-nums; }
.levels button:hover, .levels button[aria-pressed="true"] { color: var(--ink); }
.levels button[aria-pressed="true"] span:first-child { font-weight: 500; }
.drawings-hint { margin-top: auto; padding-top: 32px; font-size: 12.5px; color: var(--ink-2); }
.pan-hint { display: none; }
.drawing { grid-column: 5 / 13; }
.drawing-paper { display: block; position: relative; aspect-ratio: 1180 / 740; }
.loupe {
  position: absolute;
  left: 0;
  top: 0;
  width: 240px;
  height: 240px;
  border: 1px solid var(--ink);
  background-color: var(--sheet);
  background-repeat: no-repeat;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}
.drawing.is-reading .loupe { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .js .drawing-paper { cursor: crosshair; }
}
@media (hover: none), (pointer: coarse) {
  .loupe, .loupe-hint { display: none; }
}

.further-title { grid-column: 1 / 8; grid-row: 2; margin-bottom: clamp(40px, 7vh, 72px); }
.gallery { grid-column: 1 / -1; grid-row: 3; }
.g-row { display: flex; gap: var(--g); align-items: flex-start; }
.g-row figure { flex: var(--r) 1 0; min-width: 0; }
.fig-4x3 { --r: 1.333; }
.fig-corner { --r: 1.236; }
.fig-strip { --r: 2.114; }
.fig-strip-alt { --r: 1.953; }
.g-row img { width: 100%; }
.g-row-b { margin-top: clamp(48px, 8vh, 88px); margin-left: calc(var(--col) * 3 + var(--g) * 3); }

.practice-title { grid-column: 1 / 5; grid-row: 2; }
.practice-lede {
  grid-column: 6 / 12;
  grid-row: 2;
  align-self: end;
  font-size: clamp(21px, 1.9vw, 30px);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.services {
  grid-column: 1 / -1;
  grid-row: 3;
  display: grid;
  grid-template-columns: subgrid;
  margin-top: clamp(72px, 12vh, 128px);
}
.svc:nth-child(1) { grid-column: 1 / 5; }
.svc:nth-child(2) { grid-column: 5 / 9; }
.svc:nth-child(3) { grid-column: 9 / 13; }
.svc h3 { color: var(--ink-2); padding-bottom: 14px; }
.svc li {
  border-top: 1px solid var(--rule);
  padding: 13px 0 15px;
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.35;
  max-width: 26em;
}
.tools { grid-column: 1 / -1; grid-row: 4; margin-top: clamp(48px, 8vh, 80px); font-size: 14px; }
.tools .eyebrow { margin-right: 1.6em; }

.index-title { grid-column: 1 / 7; grid-row: 2; }
.filters {
  grid-column: 7 / 13;
  grid-row: 2;
  align-self: end;
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 22px;
  padding-bottom: 6px;
}
.filters button {
  border: 0;
  padding: 4px 0;
  font-size: 13.5px;
  color: var(--ink-2);
  cursor: pointer;
  background: linear-gradient(var(--ink), var(--ink)) 0 100% / 0 1px no-repeat;
  transition: background-size 0.3s var(--ease), color 0.2s;
}
.filters button:hover { color: var(--ink); }
.filters button[aria-pressed="true"] { color: var(--ink); background-size: 100% 1px; }
.works { grid-column: 1 / 9; grid-row: 3; margin-top: clamp(40px, 7vh, 72px); border-bottom: 1px solid var(--rule); }
.works li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--g);
  padding: 13px 0 15px;
  border-top: 1px solid var(--rule);
  cursor: default;
  transition: padding-left 0.3s var(--ease);
}
.works li[hidden] { display: none; }
.works .t { font-size: clamp(17px, 1.35vw, 21px); }
.works .k { font-size: 13.5px; color: var(--ink-2); }
.works li:hover, .works li:focus-visible { padding-left: 12px; }
.works-figure {
  grid-column: 10 / 13;
  grid-row: 3;
  margin-top: clamp(40px, 7vh, 72px);
  position: sticky;
  top: calc(var(--head) + 6vh);
}

.s-contact { padding-bottom: clamp(110px, 18vh, 200px); }
.mail {
  grid-column: 1 / -1;
  grid-row: 2;
  font-size: clamp(56px, 9.6vw, 176px);
  font-weight: 250;
  letter-spacing: -0.05em;
  line-height: 0.9;
}
.mail span { display: block; }
.mail span:last-child {
  padding-left: calc(var(--col) * 2 + var(--g) * 2);
  background: linear-gradient(currentColor, currentColor) calc(var(--col) * 2 + var(--g) * 2) 100% / 0 2px no-repeat;
  transition: background-size 0.45s var(--ease);
}
.mail:hover span:last-child { background-size: calc(100% - var(--col) * 2 - var(--g) * 2) 2px; }
.contact-details {
  grid-column: 3 / 13;
  grid-row: 3;
  margin-top: clamp(48px, 8vh, 80px);
  padding-left: 0.4em;
  display: flex;
  gap: calc(var(--col) * 2);
  align-items: baseline;
  font-size: 17px;
}
.contact-details address { font-style: normal; }

.foot {
  display: flex;
  justify-content: space-between;
  gap: var(--g);
  padding: 16px var(--m) 22px;
  border-top: 1px solid var(--rule);
  font-size: 12.5px;
  color: var(--ink-2);
}

@media (prefers-reduced-motion: reduce) {
  .head-title, .viewer-img, .drawing-img, .c-l, .c-k, .filters button, .loupe, .works li, .levels button, .mail span:last-child,
  .head-nav a, .head-menu a, .contact-details a, .foot a { transition: none; }
}

@media (max-width: 899px) {
  :root { --head: 50px; }
  .sec { grid-template-columns: minmax(0, 1fr); padding-top: clamp(96px, 16vh, 140px); }
  .sec > * { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .rule { margin-bottom: 36px; }
  .rule p:first-child { white-space: nowrap; }
  .rule p:last-child { text-align: right; }
  h2 { font-size: clamp(44px, 12.5vw, 64px); }

  .head { grid-template-columns: 1fr auto; }
  .head-section, .head-nav { display: none; }
  .head-mark { grid-column: 1; }
  .head-menu { display: block; position: relative; grid-column: 2; }
  .head-menu summary { list-style: none; cursor: pointer; }
  .head-menu summary::-webkit-details-marker { display: none; }
  .head-menu nav {
    position: absolute;
    right: 0;
    top: 2.2em;
    display: grid;
    gap: 12px;
    padding: 18px 22px;
    background: var(--stone);
    border: 1px solid var(--rule);
    font-size: 17px;
  }

  .s-title { min-height: 0; padding-top: 28px; }
  .title-page { display: contents; }
  h1 { order: 1; margin-top: 40px; font-size: clamp(52px, 16vw, 88px); }
  .title-page .disciplines { order: 2; margin-top: 26px; }
  .title-plate { order: 4; padding-top: 36px; }
  .contents { order: 5; margin-top: 48px; max-width: none; }
  .bleed-r { margin-inline: calc(var(--m) * -1); flex: none; min-height: 0; aspect-ratio: 4 / 5; }
  .title-plate figcaption { padding-bottom: 0; }

  .bank-text { display: contents; }
  .bank-text h2 { order: 1; margin: 0 0 32px; }
  .bank-plate { order: 2; }
  .bank-body { order: 3; margin-top: 32px; }
  .bleed-l { margin-inline: calc(var(--m) * -1); }
  .viewer { order: 4; display: flex; flex-direction: column; margin-top: 72px; }
  .viewer-stage { order: 1; }
  .viewer-side { order: 2; margin-top: 16px; }
  .viewer-side .eyebrow { display: none; }
  .viewer-cap { margin-top: 0; font-size: 20px; }
  .viewer-thumbs {
    display: flex;
    gap: 10px;
    padding-top: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(var(--m) * -1);
    padding-inline: var(--m);
    scroll-padding-inline: var(--m);
    scrollbar-width: none;
  }
  .viewer-thumbs li { flex: 0 0 27%; scroll-snap-align: start; }
  .viewer-thumbs button { padding: 4px 0; }

  .house-title { margin-bottom: 32px; }
  .house-plate { margin-inline: calc(var(--m) * -1); }
  .house-plate figcaption { padding-inline: var(--m); }
  .house-title { order: 1; }
  .house-plate { order: 2; }
  .house-sheet { order: 3; width: 72%; margin-top: 28px; }
  .house-facts { order: 4; margin-top: 32px; }

  .mm-facts { margin-top: 32px; }
  .mm-a { margin: 48px calc(var(--m) * -1) 0; }
  .mm-a figcaption { padding-inline: var(--m); }
  .mm-b { width: 78%; justify-self: end; margin-top: 40px; }
  .drawings { display: flex; flex-direction: column; margin-top: 80px; padding-block: 40px 48px; }
  .drawings-side { order: 1; }
  .levels { margin-top: 24px; }
  .drawing { order: 2; margin: 28px calc(var(--m) * -1) 0; }
  .drawing-pan { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; padding-inline: var(--m); }
  .drawing-paper { width: 880px; }
  .drawings-hint { order: 3; padding-top: 16px; }
  .loupe-hint { display: none; }
  .pan-hint { display: block; }

  .g-row-a { flex-wrap: wrap; row-gap: 28px; }
  .g-row-a figure:first-child { flex: 1 1 100%; }
  .g-row-b { flex-direction: column; margin: 28px 0 0; gap: 28px; }
  .g-row-b figure { flex: none; width: 100%; }

  .practice-lede { margin-top: 28px; }
  .services { display: block; margin-top: 56px; }
  .svc + .svc { margin-top: 40px; }
  .tools .eyebrow { display: block; margin-bottom: 6px; }

  .filters {
    justify-self: stretch;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 28px calc(var(--m) * -1) 0;
    padding-inline: var(--m);
  }
  .filters button { flex: none; }
  .works-figure { display: none; }

  .mail { font-size: clamp(42px, 12.4vw, 78px); }
  .mail span:last-child { padding-left: 0.6em; background-position: 0.6em 100%; }
  .mail:hover span:last-child { background-size: calc(100% - 0.6em) 2px; }
  .contact-details { flex-direction: column; gap: 14px; padding-left: 0; }
  .foot { flex-direction: column; gap: 4px; }
}
