:root { --ink: #11110f; --paper: #f3f2ee; --orange: #ff4d00; --line: rgba(17,17,15,.22); --pad: clamp(20px,3.4vw,64px); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); }
::selection { background: var(--orange); color: #fff; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.projects-main { max-width: 1800px; margin: auto; padding: 120px var(--pad) 70px; }
.projects-intro h1 { margin: 0; font-size: clamp(48px, 12vw, 200px); line-height: .95; letter-spacing: -.04em; font-weight: 700; }
html body .projects-intro h1,
html body .projects-intro h1 span { font-family: var(--font-archivo) !important; }
.projects-title-row { display: flex; align-items: center; gap: 4vw; }
.projects-title-row img { width: 26%; height: auto; aspect-ratio: 1.8; object-fit: cover; margin-top: 12px; border-radius: 8px; }
.projects-summary { display: grid; grid-template-columns: 1.1fr 1fr auto; align-items: end; gap: 30px; margin: 42px 0 58px; font-size: 14px; line-height: 1.5; }
.projects-summary p { margin: 0; max-width: 310px; }
.projects-summary .projects-location { justify-self: center; }
.projects-cta { display: inline-flex; align-items: center; justify-content: space-between; gap: 40px; min-height: 44px; padding: 13px 0; border-top: 1px solid currentColor; color: var(--ink); font-size: 11px; line-height: 1.4; text-transform: uppercase; letter-spacing: .12em; transition: color .2s; }
.projects-cta .ui-icon { width: 20px; height: 20px; transition: transform .2s; }
.projects-cta:hover { color: var(--orange); }
.projects-cta:hover .ui-icon { transform: translate(2px, -2px); }
.projects-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.project-tile { position: relative; display: block; overflow: hidden; isolation: isolate; aspect-ratio: 1.12; border-radius: 10px; background: #30312d; color: #fff; }
.project-tile-wide { grid-column: 1 / -1; aspect-ratio: 2; }
.project-tile > img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .5s ease; }
.project-tile::after { content: ''; position: absolute; inset: 0; z-index: 0; background: linear-gradient(transparent 45%, rgba(0,0,0,.72)); pointer-events: none; }
.project-logo { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.project-logo img { display: block; width: clamp(110px, 18vw, 260px); max-width: 56%; max-height: 100px; height: auto; object-fit: contain; filter: brightness(0) invert(1); }
.project-logo-vinosus { mix-blend-mode: screen; }
.project-logo-vinosus img { filter: grayscale(1) invert(1); }
.project-logo-wordmark { text-align: center; font-size: clamp(24px, 3vw, 48px); font-weight: 500; line-height: 1.05; letter-spacing: -.04em; text-shadow: 0 2px 16px rgba(0,0,0,.3); }
.project-logo-wordmark small { display: block; margin-top: 8px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.project-tile:focus-visible > img { filter: blur(7px); transform: scale(1.05); }
@media (hover: hover) and (pointer: fine) {
  .project-tile:hover > img { filter: blur(7px); transform: scale(1.05); }
}
.project-tile:focus-visible, .projects-cta:focus-visible { outline: 2px solid var(--orange); outline-offset: 5px; }
.project-caption { position: absolute; inset: auto 22px 22px; z-index: 1; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.project-caption h2 { margin: 0; max-width: 65%; font-size: clamp(15px, 1.6vw, 26px); font-weight: 500; line-height: 1.15; letter-spacing: -.025em; }
.project-caption p { margin: 0; font-size: 10px; text-align: right; line-height: 1.6; text-transform: uppercase; letter-spacing: .1em; }
.projects-footer { display: flex; justify-content: space-between; gap: 25px; padding: 26px var(--pad); border-top: 1px solid var(--line); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.projects-footer nav { display: flex; gap: 20px; }
@media (max-width: 800px) {
  .projects-main { padding: 105px var(--pad) 45px; }
  .projects-intro h1 { font-size: clamp(43px, 10.5vw, 84px); }
  .projects-summary { grid-template-columns: 1fr auto; margin: 30px 0; gap: 24px; font-size: 12px; }
  .projects-summary .projects-location { display: none; }
  .project-caption { inset: auto 15px 15px; display: block; }
  .project-caption h2 { max-width: 100%; }
  .project-caption p { text-align: left; margin-top: 7px; }
}
@media (max-width: 520px) {
  .projects-grid { grid-template-columns: 1fr; }
  .project-tile-wide { grid-column: auto; aspect-ratio: 1.12; }
  .projects-summary { grid-template-columns: 1fr; }
  .projects-cta { justify-self: start; }
  .projects-title-row { gap: 18px; }
  .projects-title-row img { width: 28%; margin-top: 4px; }
  .projects-footer { padding: 24px var(--pad); flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .project-tile > img, .projects-cta, .projects-cta .ui-icon { transition: none; }
}
