@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800;900&display=swap');

:root {
  --yellow: #ffd400;
  --orange: #ff4d20;
  --coal: #141414;
  --paper: #f2efe6;
  --rule: #aaa79e;
  --gutter: clamp(16px, 4.4vw, 82px);
  --type: Archivo, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height, 114px) + 14px); }
body { margin: 0; background: var(--paper); color: var(--coal); font: 400 1rem/1.5 var(--type); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
.wrap { width: min(calc(100% - 2 * var(--gutter)), 1560px); margin-inline: auto; }
.meta { font: 600 .72rem/1.4 var(--type); text-transform: uppercase; letter-spacing: .055em; }
.skip { position: fixed; left: 12px; top: 8px; z-index: 6; padding: 10px; background: white; transform: translateY(-200%); }
.skip:focus { transform: none; }

.masthead { position: sticky; top: 0; z-index: 5; background: var(--paper); border-bottom: 1px solid var(--coal); }
.header-inner, .footer-inner { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark { display: inline-flex; align-items: baseline; gap: .4rem; font-size: 2.05rem; line-height: 1; font-weight: 900; letter-spacing: -.09em; white-space: nowrap; }
.wordmark small { font: 600 .65rem/1 var(--type); letter-spacing: .09em; }
.dot { color: #bd2907; }
nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 46px); font-size: .88rem; font-weight: 700; }
nav a { padding-block: 10px; }
nav a:hover, footer a:hover { text-decoration: underline; text-underline-offset: .25em; }
.nav-contact { border: 1px solid; padding-inline: 13px; transition: background .2s; }
.nav-contact:hover { background: var(--yellow); text-decoration: none; }
.nav-contact .arrow { margin-inline-start: 6px; }

.arrow {
  display: inline-block;
  position: relative;
  width: 1em;
  height: 1em;
  flex: none;
  vertical-align: -.14em;
}
.arrow::before, .arrow::after {
  content: "";
  position: absolute;
  top: 50%;
}
.arrow::before {
  left: 12%;
  right: 16%;
  height: 1.5px;
  background: currentColor;
  transform: translateY(-50%);
}
.arrow::after {
  right: 16%;
  width: .39em;
  height: .39em;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}
.arrow-diagonal { transform: rotate(-45deg); }
.arrow-down { transform: rotate(90deg); }
.arrow-up { transform: rotate(-90deg); }
.arrow-left { transform: rotate(180deg); }


.hero {
  display: grid;
  gap: clamp(25px, 3.2vw, 50px);
  margin-block-start: clamp(16px, 2.15vw, 36px);
  padding: clamp(22px, 4vw, 62px);
  background: var(--yellow);
}
.hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.hero-context { margin-top: 8px; font-size: .93rem; font-weight: 600; }
.motion-control, .hero-choices button {
  border: 0;
  background: transparent;
  color: var(--coal);
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
}
.motion-control { min-height: 32px; padding: 0; white-space: nowrap; }
.motion-control:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero-manifesto { display: grid; margin: 0; }
.hero-entry {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px clamp(24px, 5vw, 76px);
  align-items: center;
  min-width: 0;
  padding-block: clamp(8px, 1vw, 15px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .35s ease, transform .45s ease, visibility 0s linear .35s;
}
.hero-entry.is-current {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  transition-delay: .34s, .34s, .34s;
}
.hero-entry dt {
  font-size: clamp(3.3rem, 7.8vw, 7.3rem);
  line-height: .92;
  font-weight: 900;
  letter-spacing: -.07em;
}
.hero-entry dt span { color: #a9280a; }
.hero-entry dd { margin: 0; max-width: 44ch; }
.hero-definition { font-size: clamp(1rem, 1.6vw, 1.45rem); font-weight: 700; line-height: 1.3; }
.hero-definition i { display: block; font-size: .68em; font-weight: 500; margin-bottom: 5px; }
.hero-example { min-block-size: 4.2em; margin-top: 10px; font-size: clamp(.93rem, 1.2vw, 1.1rem); line-height: 1.4; }
.hero-example em { font-style: normal; font-weight: 800; }
.hero-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  border-top: 1px solid var(--coal);
  padding-top: 10px;
}
.hero-choices:not([hidden]) { display: flex; flex-wrap: wrap; gap: 4px clamp(8px, 2vw, 26px); }
.hero-choices button { min-height: 34px; padding: 0; border-block-end: 2px solid transparent; }
.hero-choices button[aria-pressed="true"] { border-block-end-color: var(--coal); }
.hero-choices button:hover { border-block-end-color: #a9280a; }
.hero-line a { display: inline-flex; gap: 10px; align-items: center; font-size: .88rem; font-weight: 800; }
.hero-line a:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero-line a .arrow { transition: transform .35s ease; }
.hero-line a:hover .arrow-down { transform: translateY(2px) rotate(90deg); }
@media (prefers-reduced-motion: reduce) {
  .motion-control { display: none; }
}
@media (max-width: 650px) {
  .hero-entry { grid-template-columns: 1fr; gap: 14px; padding-block: 0; }
  .hero-entry dt { font-size: clamp(2.8rem, 11vw, 4.7rem); }
  .hero-context { font-size: .85rem; }
}
@media (max-width: 375px) {
  .hero-example { min-block-size: 5.6em; }
  .hero-line a { padding-block: 5px; }
}

.work { padding-block: clamp(28px, 3.7vw, 65px) clamp(52px, 8vw, 128px); }
.section-bar, .project-caption { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 20px; }
.section-bar { margin-bottom: clamp(20px, 3vw, 42px); border-top: 1px solid; padding-top: 16px; }
.section-bar h2 span { color: #bd2907; }
.section-bar h2 { font-weight: 900; font-size: clamp(2.3rem, 4.25vw, 4.6rem); letter-spacing: -.03em; line-height: 1.1; }
.project-image { display: grid; position: relative; overflow: hidden; background: var(--coal); place-items: center; }
.project-image img { width: 100%; height: 100%; object-fit: cover; position: absolute; transition: transform .9s cubic-bezier(.25,.65,.3,1); }
.project-image:hover img { transform: scale(1.015); }
.expand { display: grid; place-items: center; position: absolute; inset: auto 16px 16px auto; width: 46px; height: 46px; background: var(--yellow); font-size: 1.5rem; transition: background .2s; }
.project-image:hover .expand { background: var(--orange); }
.project-caption { border-top: 1px solid var(--rule); padding-block: 14px 12px; }
.project-caption h3 { font-size: clamp(1.3rem, 2.6vw, 2.5rem); line-height: 1.08; font-weight: 800; letter-spacing: -.035em; }

.split { display: grid; grid-template-columns: 1fr 3fr; gap: 24px; align-items: baseline; padding-block: clamp(52px, 8vw, 128px); }
.about { color: var(--paper); background: var(--coal); }
.display { font-weight: 900; font-size: clamp(2.6rem, 6.7vw, 7.2rem); letter-spacing: -.035em; line-height: .95; }
.about .display span { color: var(--yellow); }
.body-copy { max-width: 48ch; font-size: clamp(1.05rem, 1.7vw, 1.45rem); line-height: 1.45; margin-top: 25px; }
.about-credit { margin-top: 24px; font-weight: 600; }
.section-heading { font-weight: 800; font-size: clamp(2.15rem, 5.8vw, 5.6rem); line-height: 1; letter-spacing: -.035em; margin-bottom: 28px; }
details { border-top: 1px solid var(--rule); }
details:last-child { border-bottom: 1px solid var(--rule); }
summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 16px; cursor: pointer; font-weight: 700; font-size: clamp(1.15rem, 2.1vw, 1.8rem); list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 500 1.4rem var(--type); }
details[open] summary::after { content: "−"; }
details p { padding: 0 28px 22px 0; max-width: 58ch; }

.contact { background: var(--yellow); border-block: 1px solid var(--coal); }
.contact .display span { color: #bd2907; }
.action { margin-top: 28px; background: var(--coal); color: var(--paper); border: 1px solid var(--coal); padding: 12px 16px; display: inline-flex; gap: 16px; align-items: center; font-weight: 700; transition: background .2s, color .2s; }
.action:hover { color: var(--coal); background: var(--paper); }
footer { background: var(--coal); color: var(--paper); font-size: .85rem; }
footer .dot { color: var(--yellow); }
.footer-inner { min-height: 84px; }
.viewer { width: min(96vw, 1500px); max-width: none; max-height: 94dvh; padding: 0; background: #000; color: var(--paper); border: 1px solid var(--rule); }
.viewer::backdrop { background: #141414e8; }
.viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; background: var(--coal); }
.viewer h2 { font-size: clamp(.95rem, 2vw, 1.4rem); }
.viewer button { background: var(--yellow); color: var(--coal); cursor: pointer; padding: 8px 12px; border: 0; white-space: nowrap; }
.viewer button:focus-visible { outline-color: var(--paper); }
.viewer img { width: 100%; max-height: calc(94dvh - 132px); object-fit: contain; }
body:has(.viewer[open]) { overflow: hidden; }

@media (max-width: 780px) {

  .split { grid-template-columns: 1fr; gap: 21px; }
}
@media (max-width: 515px) {
  .header-inner { align-items: start; flex-direction: column; gap: 10px; padding-block: 15px 10px; }
  nav { justify-content: space-between; width: 100%; gap: 8px; }
  nav a { padding-block: 7px; font-size: .85rem; }
  .expand { inset: auto 8px 8px auto; width: 42px; height: 42px; }
  .footer-inner { flex-wrap: wrap; padding-block: 16px; }
  .footer-inner .wordmark { font-size: 1.7rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}



.project-grid { display: grid; gap: clamp(34px, 6vw, 94px); }
.project-mosaic { display: grid; grid-template-columns: minmax(0, 2.7fr) minmax(0, 1fr); gap: clamp(5px, .85vw, 14px); }
.project-lead { aspect-ratio: 1.58; }
.project-rail { display: grid; grid-auto-rows: minmax(0, 1fr); gap: inherit; min-height: 0; }
.project-rail .expand { inset: auto 7px 7px auto; width: 30px; height: 30px; font-size: 1rem; }
@media (max-width: 700px) {
  .project-mosaic { grid-template-columns: 1fr; }
  .project-lead { aspect-ratio: 1.35; }
  .project-rail { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .project-rail .project-image { aspect-ratio: 1.25; }
}

.viewer-controls { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; background: var(--coal); }
.viewer-controls button { background: transparent; color: var(--paper); border: 1px solid var(--rule); }
.viewer-controls button:hover { background: var(--yellow); color: var(--coal); }




@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .project-image img {
      animation: project-reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 100%;
    }
    @keyframes project-reveal {
      from { clip-path: inset(0 0 4%); }
      to { clip-path: inset(0); }
    }
  }
}
