/* Foundation */
:root {
  --paper: #f5f3ee;
  --ink: #252521;
  --muted: #686860;
  --accent: #a7442c;
  --line: #d5d2c9;
  --panel: #eae7df;
  --width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial,Helvetica,sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 5px;
}

a:hover {
  text-decoration: underline;
}

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

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.055em;
}

h2 {
  font-size: clamp(34px,4.3vw,58px);
}

.container {
  width: min(var(--width),calc(100% - 96px));
  margin-inline: auto;
}

.section-space {
  padding-block: 112px;
}

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

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

.eyebrow {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  background: var(--ink);
  color: white;
  padding: 12px 20px;
  z-index: 10;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Navigation and opening statement */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.nav {
  height: 83px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  font-size: 19px;
  letter-spacing: -.04em;
  font-weight: 600;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 13px;
}

.contact-nav {
  margin-left: 22px;
}

.contact-nav span {
  margin-left: 12px;
  color: var(--accent);
}

.hero {
  padding-top: 48px;
}

.hero-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
}

.location {
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

.location-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

h1 {
  font-size: clamp(100px,16.5vw,220px);
  letter-spacing: -.075em;
  line-height: .88;
  margin: 62px 0 44px;
  margin-left: -.055em;
}

.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding-bottom: 62px;
}

.hero-bottom p {
  font-size: clamp(18px,2vw,25px);
  line-height: 1.5;
  letter-spacing: -.025em;
}

.text-link {
  font-size: 13px;
  display: flex;
  gap: 55px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 8px;
  min-height: 44px;
  align-items: center;
}

.hero-rule {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-block: 18px;
  font-size: 15px;
  color: var(--muted);
}

/* Introduction and replaceable photograph surfaces */
.about {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 100px;
  align-items: center;
}

.photo-placeholder {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 25px;
  background: var(--panel);
  overflow: hidden;
}

.portrait-placeholder {
  aspect-ratio: 4/4.6;
  background: #dedbd2;
}

.placeholder-label,
.placeholder-note {
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #55564e;
}

.portrait-initials {
  font-size: clamp(100px,14vw,186px);
  letter-spacing: -.09em;
  line-height: 1;
  align-self: center;
  color: #8b8c7e;
}

.portrait-initials span {
  display: block;
  font-size: 80px;
  text-align: right;
  line-height: .8;
  color: var(--accent);
}

figcaption {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 11px;
  margin-top: 13px;
}

figcaption span {
  color: var(--muted);
}

.portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4/4.6;
  object-fit: cover;
}

.about-copy h2 {
  font-size: clamp(29px,3vw,41px);
  line-height: 1.18;
  margin: 28px 0;
}

.about-copy>p:not(.eyebrow) {
  max-width: 470px;
  margin-top: 19px;
  color: var(--muted);
}

.about-copy .about-note {
  color: var(--ink)!important;
  font-size: 14px;
}

/* Building: physical,
digital,
intelligent */
.work {
  background: var(--panel);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 45px;
  margin-bottom: 58px;
}

.section-heading>.eyebrow {
  padding-top: 8px;
}

.section-intro {
  color: var(--muted);
  max-width: 510px;
  margin-top: 22px;
}

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

.build-item {
  border-top: 1px solid #bbb9af;
  padding-top: 15px;
}

.build-marker {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}

.now-label {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .1em;
}

.build-art {
  height: 155px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 18px 0 16px;
  color: var(--accent);
}

.physical-art {
  gap: 9px;
  transform: skewY(-18deg);
}

.physical-art span {
  width: 45px;
  height: 77px;
  border: 1px solid var(--accent);
}

.physical-art span:nth-child(2) {
  height: 99px;
}

.physical-art span:nth-child(3) {
  height: 121px;
}

.digital-art {
  gap: 21px;
  font-size: 110px;
  font-weight: 300;
  line-height: 1;
}

.digital-art i {
  height: 8px;
  width: 43px;
  background: var(--accent);
  align-self: center;
  margin-top: 42px;
}

.intelligent-art {
  display: grid;
  grid-template-columns: repeat(3,17px);
  grid-template-rows: repeat(3,17px);
  gap: 17px;
  align-content: center;
}

.intelligent-art span {
  border: 1px solid var(--accent);
  border-radius: 50%;
  width: 17px;
  height: 17px;
}

.intelligent-art span:nth-child(odd) {
  background: var(--accent);
}

.intelligent-art span:nth-child(5) {
  transform: scale(1.4);
}

.build-item h3 {
  font-size: 35px;
  margin-bottom: 20px;
}

.build-item>p {
  font-size: 14px;
  color: #585850;
  line-height: 1.8;
}

.build-item .build-tags {
  font-size: 10px;
  letter-spacing: .02em;
  margin-top: 24px;
  color: var(--accent);
}

.numbers {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 38px;
  border-top: 1px solid #bbb9af;
  margin-top: 70px;
  padding-top: 35px;
}

.numbers strong {
  font-size: clamp(52px,6vw,83px);
  font-weight: 400;
  letter-spacing: -.07em;
  line-height: 1.1;
}

.numbers strong span {
  color: var(--accent);
}

.numbers p {
  font-size: 12px;
  margin-top: 12px;
  color: #585850;
}

.work-footnote {
  font-size: 12px;
  color: var(--muted);
  margin-top: 35px;
}

/* Current projects */
.project {
  display: grid;
  grid-template-columns: 35px 1fr 1.3fr .7fr;
  gap: 25px;
  align-items: start;
  padding-block: 35px;
  border-top: 1px solid var(--line);
}

.project:last-child {
  border-bottom: 1px solid var(--line);
}

.project-number {
  font-size: 11px;
  color: var(--muted);
  padding-top: 9px;
}

.project h3 {
  font-size: 38px;
}

.project h3.mumoho {
  font-size: 31px;
  letter-spacing: -.035em;
  padding-top: 5px;
}

.project>p {
  font-size: 14px;
  color: var(--muted);
  max-width: 360px;
}

.project-type {
  font-size: 10px;
  text-align: right;
  letter-spacing: .015em;
  padding-top: 8px;
  color: var(--accent);
}

/* Outside work */
.life {
  border-block: 1px solid var(--line);
}

.life-gallery {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.life-photo .photo-placeholder {
  aspect-ratio: 4/5;
}

.life-photo.wake {
  margin-top: 62px;
}

.life-photo.bike {
  margin-top: 28px;
}

.ski .photo-placeholder {
  background: #dfe4e1;
}

.wake .photo-placeholder {
  background: #dce1e2;
}

.bike .photo-placeholder {
  background: #e0dfd3;
}

.landscape-mark {
  font-size: 125px;
  font-weight: 400;
  line-height: 1;
  align-self: center;
  color: #85958a;
}

.wake .landscape-mark {
  color: #7f939a;
}

.bike .landscape-mark {
  color: #999580;
}

.life-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.life-extras {
  display: flex;
  gap: 35px;
  border-top: 1px solid var(--line);
  margin-top: 45px;
  padding-top: 22px;
  font-size: 11px;
  color: var(--muted);
}

.life-extras p:first-child {
  color: var(--ink);
  white-space: nowrap;
}

/* Contact and colophon */
.contact h2 {
  font-size: clamp(52px,7.8vw,104px);
  line-height: 1.04;
  margin-top: 32px;
}

.contact h2>span:first-child {
  font-style: italic;
}

.contact h2>.accent {
  display: inline-block;
  margin-left: 24px;
  font-size: .7em;
  vertical-align: middle;
}

.contact-bottom {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-top: 48px;
}

.contact-bottom>p {
  font-size: 14px;
  color: var(--muted);
}

.contact-links {
  display: flex;
  gap: 30px;
}

.contact-links>span {
  font-size: 14px;
}

.contact-links small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
}

.footer {
  border-top: 1px solid var(--line);
  padding-block: 25px;
  display: flex;
  justify-content: space-between;
  gap: 25px;
  font-size: 10px;
  color: var(--muted);
}

.footer a {
  color: var(--ink);
}

/* Tablet */
@media(min-width:1600px) {
  .hero {
    padding-top: 60px;
  }
}

@media (max-width: 1050px) {
  .container {
    width: calc(100% - 64px);
  }

  .about {
    gap: 50px;
  }

  .section-space {
    padding-block: 85px;
  }

  .section-heading {
    grid-template-columns: 1fr 2.3fr;
  }

  .build-grid,
  .numbers {
    gap: 25px;
  }

  .project {
    grid-template-columns: 25px 1fr 1.3fr;
  }

  .project-type {
    grid-column: 3;
    text-align: left;
    padding: 0;
    margin-top: -12px;
  }

  .photo-placeholder {
    padding: 20px;
  }

  .life-photo figcaption {
    flex-direction: column;
    gap: 2px;
  }

  .contact-bottom {
    flex-wrap: wrap;
  }
}

/* Mobile: keep the reading order and all navigation available without JS. */
@media(max-width:700px) {
  .container {
    width: calc(100% - 40px);
  }

  .nav {
    height: 72px;
    gap: 15px;
  }

  .wordmark {
    font-size: 16px;
  }

  .nav-links {
    gap: 15px;
    font-size: 12px;
  }

  .nav-links>a:not(.contact-nav) {
    display: none;
  }

  .contact-nav {
    margin-left: 0;
  }

  .hero {
    padding-top: 30px;
  }

  .hero-meta {
    font-size: 9px;
    letter-spacing: .07em;
    flex-direction: column;
    gap: 8px;
  }

  .hero-meta .location {
    font-size: 9px;
  }

  h1 {
    font-size: clamp(100px,24vw,165px);
    margin-top: 43px;
    margin-bottom: 34px;
  }

  .hero-bottom {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 35px;
    gap: 28px;
  }

  .hero-bottom p {
    font-size: 20px;
  }

  .text-link {
    gap: 40px;
  }

  .hero-rule {
    font-size: 9px;
    gap: 30px;
  }

  .hero-rule span:last-child {
    text-align: right;
  }

  .section-space {
    padding-block: 65px;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .portrait {
    max-width: 430px;
    width: 100%;
  }

  .portrait-placeholder {
    aspect-ratio: 5/4;
  }

  .portrait-initials {
    font-size: 135px;
  }

  .portrait-initials span {
    font-size: 50px;
  }

  .about-copy h2 {
    font-size: 30px;
  }

  .about-copy>p:not(.eyebrow) {
    font-size: 15px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 38px;
  }

  .section-heading>.eyebrow {
    padding-top: 0;
  }

  h2 {
    font-size: 37px;
  }

  .build-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .build-item {
    display: grid;
    grid-template-columns: 1fr 100px;
    column-gap: 20px;
  }

  .build-marker {
    grid-column: 1/-1;
  }

  .build-art {
    grid-column: 2;
    grid-row: 2/4;
    height: 115px;
    margin: 0;
    transform: scale(.65);
    transform-origin: center;
  }

  .physical-art {
    transform: scale(.65) skewY(-18deg);
  }

  .build-item h3 {
    grid-column: 1;
    margin-top: 24px;
    font-size: 34px;
  }

  .build-item>p {
    grid-column: 1/-1;
  }

  .build-item>p:not(.build-tags) {
    max-width: 450px;
  }

  .build-item .build-tags {
    margin-top: 14px;
  }

  .numbers {
    gap: 25px 16px;
    grid-template-columns: 1fr 1fr;
    margin-top: 45px;
    padding-top: 28px;
  }

  .numbers>div:last-child {
    grid-column: 1/-1;
  }

  .numbers strong {
    font-size: 58px;
  }

  .numbers p {
    font-size: 11px;
  }

  .work-footnote {
    font-size: 11px;
  }

  .project {
    grid-template-columns: 22px 1fr;
    gap: 15px;
    padding-block: 26px;
  }

  .project h3 {
    font-size: 36px;
  }

  .project>p,
  .project-type {
    grid-column: 2;
  }

  .project-type {
    margin-top: 0;
  }

  .life-gallery {
    grid-template-columns: 1fr 1fr;
    gap: 30px 16px;
  }

  .life-photo.ski {
    grid-column: 1/-1;
  }

  .life-photo.ski .photo-placeholder {
    aspect-ratio: 5/4;
  }

  .life-photo.wake,
  .life-photo.bike {
    margin-top: 0;
  }

  .life-photo:not(.ski) .photo-placeholder {
    padding: 14px;
    aspect-ratio: 3/4;
  }

  .placeholder-label,
  .placeholder-note {
    font-size: 9px;
    letter-spacing: .04em;
  }

  .life-photo:not(.ski) .placeholder-label {
    font-size: 8px;
  }

  .landscape-mark {
    font-size: 85px;
  }

  .life-photo figcaption {
    font-size: 10px;
  }

  .life-extras {
    flex-direction: column;
    gap: 8px;
    margin-top: 30px;
  }

  .contact h2 {
    font-size: clamp(43px,9.7vw,68px);
  }

  .contact h2>.accent {
    margin-left: 8px;
  }

  .contact-bottom {
    margin-top: 30px;
    gap: 30px;
  }

  .contact-links {
    gap: 28px;
  }

  .footer {
    flex-wrap: wrap;
    gap: 14px;
  }

  .footer p:nth-child(2) {
    order: 3;
    flex-basis: 100%;
  }

  .footer a {
    margin-left: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
