:root {
  --paper: #f1eee7;
  --ink: #171714;
  --muted: #716e67;
  --line: rgba(23, 23, 20, 0.18);
  --orange: #f04418;
  --white: #fffdf8;
  --page: min(92vw, 1440px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body::before {
  position: fixed;
  inset: 0;
  z-index: 20;
  border: 7px solid var(--paper);
  content: "";
  pointer-events: none;
}

a {
  color: inherit;
}

img,
video {
  display: block;
  width: 100%;
}

img {
  height: auto;
  background: #d8d4ca;
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  width: var(--page);
  margin: 0 auto;
  padding: 28px 0;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand,
.site-nav a,
.eyebrow,
.work-index,
.project-meta,
.footer-label,
.button-link,
.back-link {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand,
.site-nav a,
.button-link,
.back-link {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.brand-mark {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--orange);
  border-radius: 50%;
}

.site-nav {
  display: flex;
  gap: clamp(16px, 3vw, 44px);
}

.header-actions,
.language-switch {
  display: flex;
  align-items: center;
}

.header-actions {
  gap: clamp(18px, 3vw, 48px);
}

.language-switch {
  gap: 7px;
  padding-left: clamp(14px, 2vw, 28px);
  border-left: 1px solid var(--line);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.language-switch a {
  text-decoration: none;
}

.language-switch a:hover,
.language-switch a:focus-visible {
  color: var(--orange);
}

.language-switch [aria-current="page"] {
  color: var(--orange);
}

.site-nav a,
.text-link,
.back-link {
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.text-link:hover,
.text-link:focus-visible,
.back-link:hover,
.back-link:focus-visible {
  color: var(--orange);
}

.hero,
.project-hero,
.page-intro,
.section,
.project-body,
.site-footer {
  width: var(--page);
  margin-right: auto;
  margin-left: auto;
}

.hero {
  display: grid;
  min-height: calc(100vh - 88px);
  padding: 54px 0 42px;
  grid-template-rows: auto 1fr;
  gap: 32px;
}

.hero-heading {
  display: grid;
  align-items: end;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.34fr);
  gap: 48px;
}

.hero h1,
.project-title,
.page-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.86;
}

.hero h1 {
  max-width: 1050px;
  font-size: clamp(5rem, 12.3vw, 12rem);
}

.hero-note {
  max-width: 32ch;
  margin: 0 0 0.75em;
  font-size: clamp(1rem, 1.4vw, 1.3rem);
}

.hero-image-wrap {
  position: relative;
  min-height: 420px;
  overflow: hidden;
}

.hero-image-wrap img {
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
  transition: transform 700ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.hero-image-wrap:hover img {
  transform: scale(1.012);
}

.image-label {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 7px 10px;
  background: var(--paper);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section {
  padding: clamp(90px, 12vw, 180px) 0;
}

.section-heading {
  display: grid;
  margin-bottom: clamp(44px, 6vw, 84px);
  grid-template-columns: 1fr 2fr;
  align-items: start;
  gap: 32px;
}

.section-heading h2,
.about-copy,
.contact-copy {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 5.7vw, 6.4rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.work-card {
  display: grid;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  color: inherit;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: start;
  gap: 22px;
  text-decoration: none;
}

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

.work-image {
  grid-column: 2 / 3;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.work-image img {
  height: 100%;
  object-fit: cover;
  transition: transform 650ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.work-card:hover .work-image img,
.work-card:focus-visible .work-image img {
  transform: scale(1.018);
}

.work-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 5vw, 5.4rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1;
}

.work-type {
  max-width: 18ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  text-align: right;
}

.about-section {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  border-top: 1px solid var(--line);
}

.about-text {
  max-width: 52ch;
  margin: 36px 0 0;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
}

.contact-section {
  padding-bottom: clamp(110px, 16vw, 230px);
}

.contact-copy a {
  color: var(--orange);
  text-decoration-thickness: 0.045em;
  text-underline-offset: 0.12em;
}

.contact-panel {
  margin-top: clamp(30px, 5vw, 70px);
}

.contact-details {
  margin-top: clamp(36px, 6vw, 84px);
  border-top: 1px solid var(--line);
}

.contact-details a {
  display: grid;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: minmax(90px, 0.35fr) minmax(0, 1fr) auto;
  gap: 24px;
  align-items: baseline;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 3vw, 3.25rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-decoration: none;
}

.contact-details a:hover,
.contact-details a:focus-visible {
  color: var(--orange);
}

.contact-kind,
.contact-arrow {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-value {
  overflow-wrap: anywhere;
}

.contact-details--compact {
  margin-top: 32px;
}

.contact-details--compact a {
  grid-template-columns: 80px minmax(0, 1fr) auto;
  font-size: clamp(1.1rem, 2vw, 1.65rem);
}

.site-footer {
  display: flex;
  padding: 26px 0 38px;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.project-hero {
  padding: clamp(64px, 8vw, 120px) 0 44px;
}

.project-title {
  margin-top: 20px;
  font-size: clamp(5rem, 15vw, 14rem);
}

.project-meta-row {
  display: grid;
  margin-top: 38px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.project-meta {
  margin: 0;
  color: var(--muted);
}

.project-meta:nth-child(2) {
  text-align: center;
}

.project-meta:last-child {
  text-align: right;
}

.project-lead-image {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}

.project-body {
  padding: clamp(80px, 11vw, 160px) 0;
}

.project-statement {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
}

.statement-copy {
  max-width: 880px;
}

.statement-copy p {
  max-width: 42ch;
  margin: 0 0 1.25em;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2.4vw, 2.15rem);
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.statement-copy p:first-child {
  max-width: 29ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.3vw, 4.6rem);
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.statement-copy p + p {
  margin-top: 1.5em;
}

.gallery {
  display: grid;
  margin-top: clamp(90px, 14vw, 210px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 38px);
  align-items: start;
}

.gallery figure {
  margin: 0;
}

.gallery img {
  height: auto;
  object-fit: contain;
}

.gallery figure:nth-child(1) {
  grid-column: 1 / -1;
}

.gallery figcaption {
  display: flex;
  margin-top: 10px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-end {
  display: flex;
  margin-top: clamp(100px, 16vw, 230px);
  padding-top: 20px;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}

.page-intro {
  padding: clamp(70px, 10vw, 150px) 0 60px;
}

.page-title {
  margin-top: 20px;
  font-size: clamp(4rem, 11vw, 10rem);
}

.teaching-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
}

.teaching-copy {
  max-width: 58ch;
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
}

.rates {
  width: 100%;
  border-collapse: collapse;
  margin-top: 52px;
  font-size: clamp(0.82rem, 1.2vw, 1rem);
}

.rates th,
.rates td {
  padding: 16px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.rates th {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button-link {
  display: inline-flex;
  margin-top: 32px;
  padding: 14px 18px;
  background: var(--orange);
  color: var(--white);
  align-items: center;
  gap: 24px;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 800px) {
  body::before {
    border-width: 4px;
  }

  .site-header {
    padding: 20px 0;
  }

  .brand {
    flex-shrink: 0;
    gap: 8px;
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    white-space: nowrap;
  }

  .brand-mark {
    width: 8px;
    height: 8px;
  }

  .site-nav {
    gap: 10px;
  }

  .header-actions {
    gap: 8px;
  }

  .language-switch {
    gap: 4px;
    padding-left: 8px;
    font-size: 0.58rem;
  }

  .site-nav a {
    font-size: 0.6rem;
    letter-spacing: 0.07em;
  }

  .hero {
    min-height: auto;
    padding-top: 38px;
  }

  .hero-heading,
  .section-heading,
  .about-section,
  .project-statement,
  .teaching-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: clamp(3.7rem, 18.5vw, 6.6rem);
    letter-spacing: -0.055em;
  }

  .hero-note {
    margin: 0;
  }

  .hero-image-wrap {
    min-height: 54vw;
  }

  .work-card {
    grid-template-columns: 34px 1fr;
  }

  .work-type {
    display: none;
  }

  .about-copy,
  .contact-copy {
    font-size: clamp(2.8rem, 12vw, 5rem);
  }

  .project-title {
    font-size: clamp(4.4rem, 22vw, 8rem);
  }

  .project-meta-row {
    grid-template-columns: 1fr;
  }

  .project-meta:nth-child(n) {
    text-align: left;
  }

  .statement-copy p {
    max-width: none;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery figure:nth-child(n) {
    grid-column: 1;
    margin-top: 38px;
  }

  .gallery figure:first-child {
    margin-top: 0;
  }

  .table-wrap {
    overflow-x: auto;
  }

  .site-footer {
    gap: 14px;
    flex-direction: column;
  }

  .contact-details a,
  .contact-details--compact a {
    grid-template-columns: 1fr auto;
    gap: 8px 16px;
  }

  .contact-value {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 480px) {
  .site-header {
    flex-direction: column;
    gap: 13px;
    align-items: flex-start;
  }

  .brand {
    font-size: 0.6rem;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .site-nav {
    gap: 9px;
  }

  .site-nav a {
    font-size: 0.57rem;
  }

  .hero h1 {
    font-size: clamp(3.35rem, 16.5vw, 5rem);
  }
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
