:root {
  --ink: #181714;
  --paper: #f2efe9;
  --sand: #d8d0c4;
  --muted: #777168;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }

h1, h2, blockquote {
  margin: 0;
  font-family: Didot, "Bodoni 72", "Times New Roman", serif;
  font-weight: 400;
}

em { color: var(--muted); font-weight: 400; }

.eyebrow,
.specialties,
.work-intro,
.carousel-note,
footer {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .18em;
  line-height: 1.7;
  text-transform: uppercase;
}

.eyebrow { margin: 0 0 18px; color: var(--muted); }

.opening {
  position: relative;
  height: 100dvh;
  min-height: 560px;
  overflow: hidden;
  background: var(--ink);
  color: white;
}

.opening-art {
  position: absolute;
  inset: 0;
}

.opening-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 15, 13, .54) 0%, transparent 34%),
    linear-gradient(0deg, rgba(16, 15, 13, .92) 0%, transparent 47%);
}

.opening-art img {
  height: 100%;
  object-fit: cover;
  object-position: center 31%;
  filter: saturate(.75) contrast(1.02);
}

.opening-content {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: clamp(28px, 5svh, 54px) 22px max(26px, calc(env(safe-area-inset-bottom) + 18px));
  display: flex;
  flex-direction: column;
}

.opening-content .eyebrow { color: rgba(255, 255, 255, .75); }

.opening h1 {
  font-size: clamp(74px, 23vw, 108px);
  line-height: .7;
  letter-spacing: -.09em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .2);
}

.specialties {
  margin: auto 0 16px;
  line-height: 1.9;
  color: white;
}

.primary-button {
  min-height: clamp(52px, 7.5svh, 60px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: var(--paper);
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.primary-button span,
.text-link span { font-size: 20px; }

.work {
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  padding: 74px 0 42px;
}

.work-heading { padding: 0 22px 38px; }
.eyebrow-light, .work-intro, .carousel-note { color: #aaa39a; }

.work h2 {
  max-width: 100%;
  font-size: clamp(49px, 15.8vw, 78px);
  line-height: .8;
  letter-spacing: -.08em;
  white-space: nowrap;
}

.work-intro { max-width: 320px; margin: 24px 0 0; }

.carousel-track {
  display: flex;
  width: max-content;
  gap: 10px;
  animation: gallery-loop 48s linear infinite;
}

.carousel-shell {
  position: relative;
}

.carousel-shell::before,
.carousel-shell::after {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  width: clamp(24px, 8vw, 54px);
  pointer-events: none;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.carousel-shell::before {
  left: 0;
  background: linear-gradient(90deg, rgba(24, 23, 20, .55), transparent);
  mask-image: linear-gradient(90deg, black 20%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, black 20%, transparent 100%);
}

.carousel-shell::after {
  right: 0;
  background: linear-gradient(-90deg, rgba(24, 23, 20, .55), transparent);
  mask-image: linear-gradient(-90deg, black 20%, transparent 100%);
  -webkit-mask-image: linear-gradient(-90deg, black 20%, transparent 100%);
}

.carousel-shell:active .carousel-track,
.carousel-shell:hover .carousel-track { animation-play-state: paused; }

.work-card {
  width: 76vw;
  height: 104vw;
  max-width: 340px;
  max-height: 470px;
  flex: none;
  position: relative;
  overflow: hidden;
  margin: 0;
}

.work-card img {
  height: 100%;
  object-fit: cover;
  filter: brightness(.92);
  transform: scale(1);
  transition: filter 400ms ease, transform 400ms ease;
}

.work-card:hover img,
.work-card:active img {
  filter: brightness(1);
  transform: scale(1.015);
}

.work-card figcaption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-size: 9px;
  letter-spacing: .18em;
}

.carousel-note { margin: 22px; font-size: 8px; }

@keyframes gallery-loop {
  to { transform: translateX(calc(-50% - 5px)); }
}

.about-photo {
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.about-photo img {
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  filter: saturate(.82);
}

.about-copy { padding: 70px 22px 86px; }

.about h2 {
  max-width: 100%;
  font-size: clamp(39px, 11.7vw, 60px);
  line-height: .9;
  letter-spacing: -.07em;
}

.bio-text {
  margin-top: 48px;
  color: #49453f;
  font-family: Georgia, serif;
  font-size: 16px;
  line-height: 1.75;
}

.bio-text p { margin: 0 0 24px; }

blockquote {
  margin-top: 56px;
  padding-top: 30px;
  border-top: 1px solid rgba(24, 23, 20, .35);
  font-size: 31px;
  line-height: 1.08;
  letter-spacing: -.035em;
}

.text-link {
  margin-top: 48px;
  padding: 20px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: Didot, "Bodoni 72", serif;
  font-size: 21px;
}

footer {
  min-height: 150px;
  padding: 32px 22px;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

@media (min-width: 800px) {
  .opening {
    height: 100svh;
  }

  .opening-art { height: 100%; }

  .opening-content {
    padding: clamp(60px, 7vw, 110px);
  }

  .opening h1 { font-size: clamp(110px, 12vw, 190px); }
  .primary-button { max-width: 360px; }

  .work { padding: 120px 0 80px; }
  .work-heading { padding: 0 7vw 60px; }
  .work h2 { font-size: clamp(88px, 10vw, 150px); }
  .work-card { width: 28vw; height: 39vw; max-width: 430px; max-height: 600px; }
  .carousel-note { margin-left: 7vw; }

  .about {
    display: grid;
    grid-template-columns: 48% 52%;
    align-items: start;
  }

  .about-photo { position: sticky; top: 0; height: 100svh; aspect-ratio: auto; }
  .about-copy { padding: 130px clamp(55px, 7vw, 120px); }
  .about h2 { font-size: clamp(62px, 6vw, 96px); }
  blockquote { font-size: clamp(35px, 3vw, 52px); }
  footer { padding-inline: 7vw; }
}

@media (max-height: 680px) and (max-width: 799px) {
  .opening-content { padding-top: 14px; }
  .opening-content .eyebrow { margin-bottom: 10px; }
  .opening h1 { font-size: clamp(66px, 20vw, 86px); }
  .specialties { margin: auto 0 10px; line-height: 1.55; }
  .primary-button { min-height: 48px; }
}

@media (max-width: 350px) {
  .work h2 { font-size: 46px; }
  .about h2 { font-size: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carousel-track { animation: none; }
}
