:root {
  color-scheme: light;
  --paper: #f7f6f2;
  --white: #fff;
  --ink: #171714;
  --muted: #74736d;
  --line: #d9d7d0;
  --accent: #a3472b;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.5;
}

body.is-locked {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.demo-note {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 18px;
  color: #f4eee9;
  background: #272622;
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-align: center;
  text-transform: uppercase;
}

.site-header {
  position: relative;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 82px;
  padding: 0 3.5vw;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 246, 242, 0.96);
}

.brand {
  justify-self: start;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 2rem;
  font-style: italic;
  letter-spacing: -0.08em;
  text-decoration: none;
  transform: rotate(-3deg);
}

.nav-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.nav-toggle::before,
.nav-toggle::after {
  display: block;
  width: 24px;
  height: 1px;
  margin: 7px auto;
  background: currentColor;
  content: "";
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 4vw, 58px);
}

.site-nav a,
.language {
  position: relative;
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: var(--ink);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.language {
  justify-self: end;
}

.hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  min-height: calc(100svh - 114px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 640px;
  padding: clamp(42px, 7vw, 104px) 6vw 40px 5vw;
}

.kicker,
.page-kicker,
.work-meta,
.field label,
.contact-meta dt {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.page-title,
.about-quote {
  margin: 14px 0 24px;
  font-family: var(--serif);
  font-size: clamp(4.4rem, 10vw, 9.4rem);
  font-weight: 400;
  letter-spacing: -0.07em;
  line-height: 0.78;
}

.hero h1 em {
  display: block;
  margin-left: 0.35em;
  color: var(--accent);
  font-weight: 400;
}

.hero-intro {
  max-width: 460px;
  margin: 0;
  color: #53524d;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.45;
}

.hero-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 48px;
}

.signature {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-style: italic;
  letter-spacing: -0.08em;
  transform: rotate(-5deg);
}

.hero-link {
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.15em;
  text-decoration: none;
  text-transform: uppercase;
}

.hero-link span {
  display: inline-block;
  margin-left: 14px;
  transition: transform 180ms ease;
}

.hero-link:hover span {
  transform: translateX(7px);
}

.slider {
  position: relative;
  min-width: 0;
  min-height: 640px;
  overflow: hidden;
  background: #e7e3da;
}

.slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 650ms ease;
}

.slide.is-active {
  z-index: 1;
  opacity: 1;
}

.slide img {
  height: 100%;
  object-fit: cover;
  transform: scale(1.025);
  transition: transform 6s ease-out;
}

.slide.is-active img {
  transform: scale(1);
}

.slide figcaption {
  position: absolute;
  right: 28px;
  bottom: 26px;
  z-index: 2;
  padding: 8px 10px;
  color: #f5f1e8;
  background: rgba(20, 20, 18, 0.74);
  font-size: 0.63rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.slider-controls {
  position: absolute;
  bottom: 22px;
  left: 24px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
}

.slider-controls button,
.lightbox-controls button,
.lightbox-close {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  color: #fff;
  background: rgba(20, 20, 18, 0.58);
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.slider-controls button:hover,
.slider-controls button:focus-visible,
.lightbox-controls button:hover,
.lightbox-controls button:focus-visible,
.lightbox-close:hover,
.lightbox-close:focus-visible {
  color: var(--ink);
  background: #fff;
}

.slide-count {
  min-width: 72px;
  color: #fff;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-align: center;
}

.page-shell {
  width: min(1380px, calc(100% - 9vw));
  margin: 0 auto;
}

.page-intro {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 0.48fr);
  gap: 8vw;
  align-items: end;
  padding: clamp(64px, 10vw, 140px) 0 clamp(54px, 8vw, 100px);
}

.page-title {
  margin-bottom: 0;
  font-size: clamp(4rem, 9vw, 8rem);
}

.page-deck {
  max-width: 500px;
  margin: 0;
  color: #5c5a55;
  font-family: var(--serif);
  font-size: 1.2rem;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(18px, 3vw, 44px);
  padding-bottom: 110px;
}

.work-card {
  grid-column: span 7;
  margin: 0;
}

.work-card:nth-child(2) {
  grid-column: 9 / span 4;
  margin-top: 14vw;
}

.work-card:nth-child(3) {
  grid-column: 3 / span 8;
  margin-top: 3vw;
}

.work-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.work-button img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(.2,.8,.2,1), filter 300ms ease;
}

.work-card:nth-child(2) img {
  aspect-ratio: 4 / 5;
}

.work-button:hover img,
.work-button:focus-visible img {
  filter: saturate(0.88);
  transform: scale(1.025);
}

.work-caption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
}

.work-caption h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
}

.work-meta {
  padding-top: 5px;
}

.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: #fff;
  background: #11110f;
}

.lightbox::backdrop {
  background: #11110f;
}

.lightbox[open] {
  display: grid;
  grid-template-rows: 1fr auto;
}

.lightbox-figure {
  display: grid;
  min-height: 0;
  margin: 0;
  padding: 6vh 8vw 2vh;
  place-items: center;
}

.lightbox-figure img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 76vh;
  object-fit: contain;
}

.lightbox-caption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 8vw 30px;
  border-top: 1px solid #3e3e38;
  font-family: var(--serif);
}

.lightbox-close {
  position: fixed;
  top: 22px;
  right: 24px;
  z-index: 3;
  font-size: 1.4rem;
}

.lightbox-controls {
  position: fixed;
  top: 50%;
  right: 24px;
  left: 24px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.lightbox-controls button {
  pointer-events: auto;
}

.about-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.6fr);
  gap: 8vw;
  padding: clamp(70px, 11vw, 150px) 0 120px;
}

.about-quote {
  max-width: 920px;
  margin: 12px 0 58px;
  font-size: clamp(3rem, 6.5vw, 6.3rem);
  line-height: 0.98;
}

.about-copy {
  max-width: 700px;
  font-family: var(--serif);
  font-size: 1.2rem;
}

.about-copy p:first-child::first-letter {
  float: left;
  margin: 0.03em 0.12em 0 0;
  color: var(--accent);
  font-size: 4.6rem;
  line-height: 0.74;
}

.about-image {
  position: sticky;
  top: 36px;
  align-self: start;
  margin: 0;
}

.about-image img {
  min-height: 560px;
  object-fit: cover;
}

.placeholder-label {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.64rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.contact-copy h1 {
  max-width: 760px;
  margin: 12px 0 34px;
  font-family: var(--serif);
  font-size: clamp(4rem, 8vw, 8rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.88;
}

.contact-copy > p {
  max-width: 570px;
  color: #5c5a55;
  font-family: var(--serif);
  font-size: 1.2rem;
}

.contact-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 22px;
  margin: 48px 0 0;
}

.contact-meta dd {
  margin: 0;
}

.contact-form {
  padding: 38px;
  border: 1px solid var(--line);
  background: var(--white);
}

.field {
  margin-bottom: 26px;
}

.field label {
  display: block;
  margin-bottom: 9px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid #aaa79e;
  border-radius: 0;
  outline: 0;
  background: transparent;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 1px 0 var(--ink);
}

.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  color: #fff;
  background: var(--ink);
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease;
}

.submit-button:hover,
.submit-button:focus-visible {
  color: var(--ink);
  background: #fff;
}

.form-status {
  min-height: 24px;
  margin: 16px 0 0;
  color: var(--accent);
  font-size: 0.78rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 90px;
  padding: 20px 4vw;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer a {
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 70px;
    padding: 0 20px;
  }

  .nav-toggle {
    display: block;
    justify-self: end;
  }

  .site-nav {
    position: absolute;
    top: 70px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    padding: 30px 24px 36px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }

  .site-nav.is-open {
    display: flex;
  }

  .language {
    display: none;
  }

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

  .hero-copy {
    min-height: 500px;
    padding: 58px 24px 34px;
  }

  .hero h1 {
    font-size: clamp(4.6rem, 25vw, 8rem);
  }

  .slider {
    min-height: 72svh;
  }

  .page-intro,
  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .works-grid {
    display: block;
  }

  .work-card,
  .work-card:nth-child(2),
  .work-card:nth-child(3) {
    margin: 0 0 48px;
  }

  .work-card:nth-child(2) img {
    aspect-ratio: 3 / 2;
  }

  .about-image {
    position: static;
  }

  .about-image img {
    min-height: 0;
  }

  .contact-form {
    padding: 26px 22px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 28px 24px;
  }
}

@media (max-width: 520px) {
  .demo-note {
    font-size: 0.58rem;
  }

  .page-shell {
    width: min(100% - 40px, 1380px);
  }

  .page-intro {
    padding-top: 72px;
  }

  .page-title {
    font-size: 3.6rem;
  }

  .lightbox-controls {
    top: auto;
    bottom: 82px;
  }

  .lightbox-caption {
    font-size: 0.82rem;
  }
}
