:root {
  --copper: #884C34;
  --ivory: #F5EFE4;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Instrument Sans", Arial, sans-serif;
  --page-gutter: clamp(22px, 5vw, 76px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 22px; }
body { margin: 0; color: var(--copper); background: var(--copper); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
button:focus-visible, a:focus-visible, [tabindex="0"]:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
.hero :is(a, button):focus-visible, .site-header :is(a, button):focus-visible,
.round-button:focus-visible, .filter-button[aria-pressed="true"]:focus-visible {
  outline: 2px solid var(--ivory);
  box-shadow: 0 0 0 5px rgba(136,76,52,.96);
}
::selection { color: var(--ivory); background: var(--copper); }

.site-header {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 25px var(--page-gutter);
  color: var(--ivory);
}
.wordmark { display: inline-flex; align-items: center; gap: 10px; padding: 7px 12px 7px 8px; border: 1px solid rgba(245,239,228,.28); border-radius: 2px; background: rgba(136,76,52,.9); font-size: 14px; font-weight: 500; letter-spacing: .015em; }
.wordmark-symbol { display: grid; width: 29px; height: 29px; place-items: center; border: 1px solid rgba(245,239,228,.68); border-radius: 50%; font-family: var(--serif); font-size: 15px; font-style: italic; }
.main-nav { display: flex; align-items: center; gap: clamp(22px, 3vw, 48px); padding: 12px 16px; border: 1px solid rgba(245,239,228,.28); border-radius: 2px; background: rgba(136,76,52,.9); font-size: 12px; letter-spacing: .04em; }
.main-nav a, .back-top { transition: opacity 220ms var(--ease); }
.main-nav a:hover, .back-top:hover { opacity: .72; }

.hero { position: relative; display: grid; min-height: 650px; height: 100svh; max-height: 1120px; overflow: hidden; align-items: start; isolation: isolate; background: var(--copper); color: var(--ivory); }
.hero::after { position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(136,76,52,.09) 0%, transparent 28%, rgba(136,76,52,.10) 100%); content: ""; pointer-events: none; }
.hero-picture { position: absolute; z-index: -2; inset: 0; display: block; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: var(--hero-focus, 50% 50%); clip-path: inset(0 50% 0 50%); animation: shutter-open 850ms var(--ease) both; }
.hero-copy-wrap { width: 100%; padding: clamp(100px, 16vh, 160px) var(--page-gutter) 0; }
.hero-copy { width: min(100%, 600px); padding: clamp(25px, 3.2vw, 48px) clamp(25px, 4vw, 58px) clamp(26px, 3.4vw, 48px); background: rgba(136,76,52,.92); animation: lift-mask 650ms var(--ease) 110ms both; }
.eyebrow { margin: 0; font-size: 10px; font-weight: 500; letter-spacing: .17em; line-height: 1.5; text-transform: uppercase; }
.hero-eyebrow { margin-bottom: 19px; opacity: .82; }
.hero-title { margin: 0; font-family: var(--serif); font-size: clamp(57px, 8vw, 112px); font-weight: 400; letter-spacing: -.035em; line-height: .86; }
.hero-caption { margin: 20px 0 24px; font-family: var(--serif); font-size: clamp(21px, 2.6vw, 31px); line-height: 1.1; }
.explore-link { display: inline-flex; min-height: 42px; align-items: center; gap: 24px; justify-content: space-between; padding: 0 0 4px; border-bottom: 1px solid rgba(245,239,228,.65); font-size: 11px; letter-spacing: .035em; transition: gap 220ms var(--ease), border-color 220ms var(--ease); }
.explore-link:hover { gap: 33px; border-color: var(--ivory); }
.explore-arrow { font-size: 16px; }

.work-section { overflow: hidden; padding: clamp(76px, 10vw, 140px) 0 32px; background: var(--ivory); }
.section-head { display: flex; min-height: 150px; align-items: end; justify-content: space-between; gap: 32px; padding: 0 var(--page-gutter) 32px; }
.section-heading .eyebrow, .about-copy .eyebrow { margin-bottom: 15px; opacity: .7; }
.section-heading h2 { margin: 0; font-family: var(--serif); font-size: clamp(52px, 7vw, 88px); font-weight: 400; letter-spacing: -.035em; line-height: .9; }
.period { color: rgba(136,76,52,.55); }
.work-controls { display: flex; align-items: center; gap: 25px; padding-bottom: 2px; }
.filters { display: flex; align-items: center; gap: 7px; }
.filter-button { position: relative; min-height: 38px; padding: 0 12px; border: 1px solid transparent; border-radius: 99px; background: transparent; color: var(--copper); cursor: pointer; font-size: 11px; transition: color 220ms var(--ease), background 220ms var(--ease), border-color 220ms var(--ease); }
.filter-button:hover { border-color: rgba(136,76,52,.38); }
.filter-button[aria-pressed="true"] { background: var(--copper); color: var(--ivory); }
.filter-count { margin-left: 5px; font-size: 9px; opacity: .72; }
.rail-buttons { display: flex; gap: 8px; }
.round-button { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(136,76,52,.52); border-radius: 50%; background: transparent; color: var(--copper); cursor: pointer; font-size: 17px; transition: color 220ms var(--ease), background 220ms var(--ease), opacity 220ms var(--ease), transform 220ms var(--ease); }
.round-button:hover:not(:disabled) { transform: translateY(-2px); background: var(--copper); color: var(--ivory); }
.round-button:disabled { cursor: default; opacity: .36; }
.rail-wrap { padding-left: var(--page-gutter); }
.photo-rail { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; scroll-behavior: smooth; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; touch-action: pan-x pan-y; cursor: grab; }
.photo-rail::-webkit-scrollbar { display: none; }
.photo-rail.is-dragging { cursor: grabbing; scroll-behavior: auto; scroll-snap-type: none; user-select: none; }
.photo-list { display: flex; width: max-content; gap: clamp(14px, 2vw, 27px); margin: 0; padding: 0 var(--page-gutter) 0 0; list-style: none; }
.photo-card { width: clamp(260px, 28vw, 415px); flex: 0 0 auto; scroll-snap-align: start; }
.js-motion .photo-card { transition-delay: var(--card-delay, 0ms); }
.photo-open { display: block; width: 100%; padding: 0; overflow: hidden; border: 0; background: transparent; color: inherit; cursor: zoom-in; text-align: left; }
.photo-frame { position: relative; display: block; width: 100%; overflow: hidden; background: var(--ivory); }
.photo-frame img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: var(--photo-focus, 50% 50%); }
.photo-frame.image-error { display: grid; place-items: center; background: rgba(136,76,52,.12); }
.thumbnail-error { padding: 20px; font-size: 11px; letter-spacing: .03em; }
.photo-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 12px 1px 3px; }
.photo-meta span { font-size: 9px; letter-spacing: .13em; text-transform: uppercase; }
.photo-meta .photo-number { opacity: .58; transition: opacity 220ms var(--ease); }
.photo-open:hover .photo-number { opacity: 1; }
.rail-foot { display: flex; align-items: center; justify-content: space-between; padding: 20px var(--page-gutter) 0; font-size: 10px; letter-spacing: .045em; }
.rail-hint { opacity: .72; }
.rail-hint span { display: inline-block; margin-left: 7px; font-size: 14px; }

.about-section { padding: clamp(70px, 9vw, 130px) var(--page-gutter); background: var(--ivory); }
.about-inner { display: grid; max-width: 1500px; min-height: 340px; grid-template-columns: 1fr 2.1fr 1fr; align-items: center; gap: 30px; margin: 0 auto; padding-top: clamp(36px, 6vw, 88px); border-top: 1px solid rgba(136,76,52,.28); }
.about-marker { display: flex; align-self: start; align-items: center; gap: 12px; padding-top: 6px; font-size: 9px; letter-spacing: .12em; opacity: .7; }
.about-marker span { font-family: var(--serif); font-size: 22px; font-style: italic; letter-spacing: -.08em; }
.about-marker i { width: 32px; height: 1px; background: var(--copper); opacity: .5; }
.about-copy h2 { margin: 0; font-family: var(--serif); font-size: clamp(48px, 6.5vw, 84px); font-weight: 400; letter-spacing: -.035em; line-height: .95; }
.about-copy h2 em { font-weight: 400; }
.founders { margin: 24px 0 0; font-size: 13px; letter-spacing: .015em; }
.contact-links { display: flex; flex-wrap: wrap; gap: 19px; margin-top: 20px; }
.contact-links a { padding-bottom: 4px; border-bottom: 1px solid rgba(136,76,52,.55); font-size: 11px; transition: opacity 220ms var(--ease), border-color 220ms var(--ease); }
.contact-links a:hover { opacity: .7; border-color: var(--copper); }
.contact-links[hidden] { display: none; }
.about-end { justify-self: end; align-self: end; font-family: var(--serif); font-size: 24px; line-height: .92; text-align: right; }
.about-end span { display: inline-block; margin-top: 12px; font-family: var(--sans); font-size: 15px; }

.site-footer { display: flex; min-height: 115px; align-items: center; justify-content: space-between; gap: 24px; padding: 24px var(--page-gutter); background: var(--copper); color: var(--ivory); }
.footer-wordmark { font-family: var(--serif); font-size: 23px; }
.site-footer > span, .back-top { font-size: 10px; letter-spacing: .04em; }
.back-top span { margin-left: 8px; font-size: 13px; }

.reveal { opacity: 1; transform: none; }
.js-motion .reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.js-motion .reveal.is-visible { opacity: 1; transform: translateY(0); }
.js-motion .photo-card { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.js-motion .photo-card.is-visible { opacity: 1; transform: translateY(0); }

.viewer { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; overflow: auto; border: 0; background: var(--copper); color: var(--ivory); }
.viewer::backdrop { background: var(--copper); }
.viewer-shell { display: flex; min-height: 100%; flex-direction: column; padding: 22px clamp(16px, 4vw, 62px) 25px; }
.viewer-toolbar { display: flex; min-height: 47px; align-items: center; justify-content: space-between; }
.viewer-brand { font-family: var(--serif); font-size: 20px; }
.viewer-close { width: 42px; height: 42px; border-color: rgba(245,239,228,.62); color: var(--ivory); font-size: 25px; }
.viewer-close:hover:not(:disabled) { background: var(--ivory); color: var(--copper); }
.viewer-stage { display: grid; min-height: 0; flex: 1; grid-template-columns: minmax(72px, 1fr) minmax(0, 1200px) minmax(72px, 1fr); align-items: center; gap: 14px; padding: 15px 0; }
.viewer-image-wrap { position: relative; display: grid; min-width: 0; min-height: 250px; place-items: center; }
.viewer-image-wrap { touch-action: pan-y; }
.viewer-image { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 188px); object-fit: contain; opacity: 1; transition: opacity 240ms var(--ease); }
.viewer-image.is-fading { opacity: 0; }
.viewer-image[hidden] { display: none; }
.viewer-message { max-width: 400px; padding: 24px; border: 1px solid rgba(245,239,228,.36); font-size: 13px; line-height: 1.6; text-align: center; }
.viewer-message[hidden] { display: none; }
.viewer-arrow { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 8px; border: 0; background: none; color: var(--ivory); cursor: pointer; font-size: 20px; transition: opacity 220ms var(--ease); }
.viewer-arrow:hover { opacity: .7; }
.arrow-word { font-size: 10px; letter-spacing: .04em; }
.viewer-prev { justify-self: start; }
.viewer-next { justify-self: end; }
.viewer-caption-row { display: flex; min-height: 61px; align-items: end; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(245,239,228,.32); padding-top: 15px; }
.viewer-meta { min-width: 0; }
.viewer-meta .eyebrow { margin-bottom: 4px; opacity: .78; }
.viewer-title { margin: 0; font-family: var(--serif); font-size: 22px; font-weight: 400; }
.viewer-caption, .viewer-credit { margin: 5px 0 0; font-size: 11px; line-height: 1.5; }
.viewer-credit { opacity: .73; }
.viewer-credit a { text-decoration: underline; text-decoration-color: rgba(245,239,228,.55); text-underline-offset: 3px; }
.viewer-count { margin: 0; flex: 0 0 auto; font-size: 10px; letter-spacing: .08em; }

@keyframes shutter-open {
  from { clip-path: inset(0 50% 0 50%); }
  to { clip-path: inset(0 0 0 0); }
}
@keyframes lift-mask {
  from { opacity: 0; clip-path: inset(0 0 100% 0); transform: translateY(19px); }
  to { opacity: 1; clip-path: inset(0 0 0 0); transform: translateY(0); }
}

@media (min-width: 1600px) {
  .photo-card { width: 440px; }
}
@media (max-width: 800px) {
  .hero { min-height: 670px; max-height: 980px; }
  .hero-copy { max-width: 520px; }
  .section-head { align-items: end; flex-wrap: wrap; }
  .work-controls { width: 100%; justify-content: space-between; gap: 14px; }
  .about-inner { grid-template-columns: .55fr 2.4fr; min-height: 300px; }
  .about-end { display: none; }
}
@media (max-width: 580px) {
  :root { --page-gutter: 20px; }
  .site-header { padding-top: 17px; }
  .wordmark { gap: 7px; font-size: 12px; }
  .wordmark-symbol { width: 27px; height: 27px; font-size: 14px; }
  .main-nav { gap: 17px; font-size: 10px; }
  .hero { display: flex; min-height: 0; height: auto; max-height: none; flex-direction: column; align-items: stretch; overflow: visible; }
  .hero-picture { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 3 / 4; background: var(--copper); }
  .hero-image { object-position: center; }
  .hero-image { object-position: var(--hero-phone-focus, 50% 50%); }
  .hero-copy-wrap { padding: 18px var(--page-gutter) 28px; }
  .hero-copy { width: min(100%, 500px); padding: 22px 22px 23px; }
  .hero-eyebrow { margin-bottom: 15px; font-size: 8px; }
  .hero-title { font-size: clamp(36px, 10.5vw, 45px); white-space: nowrap; }
  .hero-caption { margin: 14px 0 17px; font-size: 22px; }
  .explore-link { min-height: 37px; font-size: 10px; }
  .hero-index { bottom: 25px; font-size: 9px; }
  .work-section { padding-top: 76px; }
  .section-head { min-height: auto; display: block; padding-bottom: 22px; }
  .section-heading .eyebrow { margin-bottom: 12px; }
  .section-heading h2 { font-size: 59px; }
  .work-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-top: 23px; gap: 12px; }
  .filters { flex-wrap: wrap; gap: 3px; }
  .filter-button { min-height: 34px; padding: 0 10px; font-size: 10px; }
  .rail-buttons { margin-left: auto; gap: 6px; }
  .rail-wrap { padding-left: var(--page-gutter); }
  .photo-list { gap: 13px; }
  .photo-card { width: min(78vw, 340px); }
  .photo-meta { padding-top: 10px; }
  .photo-meta span { font-size: 8px; }
  .rail-foot { align-items: start; gap: 15px; padding-top: 18px; font-size: 9px; }
  .rail-hint { text-align: right; }
  .about-section { padding-top: 72px; padding-bottom: 78px; }
  .about-inner { display: block; min-height: auto; padding-top: 27px; }
  .about-marker { margin-bottom: 34px; }
  .about-copy h2 { font-size: clamp(47px, 13vw, 68px); }
  .founders { margin-top: 19px; font-size: 12px; }
  .site-footer { min-height: 103px; flex-wrap: wrap; gap: 8px 20px; }
  .footer-wordmark { font-size: 21px; }
  .site-footer > span { order: 3; width: 100%; font-size: 9px; }
  .back-top { margin-left: auto; font-size: 9px; }
  .viewer-shell { min-height: 100svh; padding: 14px 16px 18px; }
  .viewer-stage { grid-template-columns: 35px minmax(0, 1fr) 35px; gap: 4px; padding: 12px 0; }
  .viewer-image { max-width: 100%; max-height: calc(100svh - 205px); }
  .viewer-arrow { width: 35px; height: 48px; padding: 6px 0; font-size: 17px; }
  .viewer-arrow .arrow-word { display: none; }
  .viewer-caption-row { min-height: 55px; }
  .viewer-title { font-size: 19px; }
  .viewer-caption, .viewer-credit { font-size: 10px; }
  .viewer-count { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .js-motion .reveal, .js-motion .photo-card { opacity: 1; transform: none; }
}
