/* ============ reset ============ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 4px; border-radius: 2px; }

/* ============ base ============ */
body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

h1, h2, h3, .display { font-family: var(--font-display); font-weight: 400; line-height: 1.05; letter-spacing: -0.02em; }
h1, .h1 { font-size: var(--step-7); }
h2, .h2 { font-size: var(--step-5); }
h3, .h3 { font-size: var(--step-3); }
.eyebrow { font-family: var(--font-display); font-size: var(--step-0); font-weight: 400; font-style: italic; letter-spacing: 0.005em; color: var(--olive-deep); }
.lede { font-size: var(--step-2); line-height: 1.4; font-weight: 300; max-width: 38ch; }
p { max-width: 60ch; }
em { font-family: var(--font-display); font-style: italic; font-weight: 400; }

::selection { background: var(--olive); color: var(--paper); }

/* ============ brand mark (image logo) ============ */
.brand {
  display: inline-block;
  line-height: 0;
  user-select: none;
  border-radius: 4px;
  overflow: hidden;
  transition: transform 300ms var(--easing), opacity 250ms var(--easing);
}
.brand:hover { transform: scale(1.02); }
.brand img { display: block; height: auto; }
.brand--mark img { width: 56px; height: 56px; }
.brand--full img { width: clamp(140px, 16vw, 220px); height: auto; }

/* ============ layout ============ */
.section { padding: var(--section-y) 0; position: relative; }
.container { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }

/* ============ hero (full viewport, no overlays) ============ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  width: 100vw;
  overflow: hidden;
  background: var(--ink);
}
.hero-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr 1fr;
  height: 100%;
  width: 100%;
  gap: 1px;
  background: var(--ink);
}
@media (max-width: 768px) {
  .hero, .hero-grid { height: auto; }
  .hero-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 1fr); }
  .hero-grid .tile { aspect-ratio: 4/5; }
}

/* ============ tile ============ */
.tile {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  cursor: pointer;
}
.tile__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(1) contrast(1.05) brightness(0.88);
  transform: scale(1.001);
  transition: filter 600ms var(--easing), transform 1200ms var(--easing-emphasized);
}
.tile:hover .tile__media,
.tile:focus-within .tile__media {
  filter: grayscale(0) contrast(1) brightness(1);
  transform: scale(1.05);
}
.tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.55) 100%);
  opacity: 0;
  transition: opacity 400ms var(--easing);
  pointer-events: none;
}
.tile:hover::after, .tile:focus-within::after { opacity: 1; }
.tile__label {
  position: absolute;
  left: 1.5rem;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 2;
  color: var(--paper);
  transform: translateY(8px);
  opacity: 0;
  transition: transform 400ms var(--easing), opacity 400ms var(--easing);
  pointer-events: none;
}
.tile:hover .tile__label, .tile:focus-within .tile__label { transform: translateY(0); opacity: 1; }
.tile__name { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.1; font-weight: 400; }
.tile__address { font-family: var(--font-display); font-size: var(--step-0); font-style: italic; font-weight: 300; letter-spacing: 0.005em; color: rgba(255,255,255,0.9); margin-top: 0.5rem; display: flex; align-items: center; gap: 0.6rem; }
.tile__address::before { content: ''; width: 18px; height: 1px; background: var(--olive); }
@supports selector(:has(*)) {
  .hero-grid:has(.tile:hover) .tile:not(:hover) .tile__media { filter: grayscale(1) contrast(1.05) brightness(0.5); }
}

/* ============ menu shell (hover container) ============ */
.menu-shell {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  /* invisible padding so cursor can move from trigger to popup without losing hover */
}
.menu-shell::after {
  content: '';
  position: absolute;
  top: 100%;
  right: 0;
  width: 100%;
  height: 1.5rem;
  pointer-events: auto;
}

/* ============ menu trigger (minimal — just three lines) ============ */
.menu-trigger {
  position: relative;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  color: var(--paper);
  opacity: 0.55;
  transition: opacity 240ms var(--easing), color 240ms var(--easing);
}
body.over-light .menu-trigger { color: var(--ink); }
.menu-trigger:hover, .menu-trigger:focus-visible,
.menu-shell:hover .menu-trigger {
  opacity: 1;
  color: var(--olive-deep);
}
.menu-trigger__label {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.menu-trigger__lines {
  display: inline-block;
  width: 22px;
  height: 1px;
  background: currentColor;
  position: relative;
  transition: opacity 240ms var(--easing);
}
.menu-trigger__lines::before, .menu-trigger__lines::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transition: transform 280ms var(--easing), width 280ms var(--easing);
}
.menu-trigger__lines::before { top: -6px; }
.menu-trigger__lines::after { bottom: -6px; width: 70%; }
.menu-trigger:hover .menu-trigger__lines::after,
.menu-shell:hover .menu-trigger__lines::after { width: 100%; }
body.menu-open .menu-trigger__lines { opacity: 0; }
body.menu-open .menu-trigger__lines::before { transform: translateY(6px) rotate(45deg); }
body.menu-open .menu-trigger__lines::after { transform: translateY(-6px) rotate(-45deg); width: 100%; }

/* ============ menu popup (small dropdown — opens on hover) ============ */
.menu-popup {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  z-index: 49;
  min-width: 260px;
  padding: 0.5rem 0;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top right;
  transition: opacity 220ms var(--easing), transform 220ms var(--easing), visibility 0ms linear 220ms;
}
.menu-shell:hover .menu-popup,
.menu-shell:focus-within .menu-popup,
body.menu-open .menu-popup {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition: opacity 220ms var(--easing), transform 220ms var(--easing), visibility 0ms;
}
.menu-popup__list { display: flex; flex-direction: column; }
.menu-popup__item {
  display: block;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 300;
  letter-spacing: 0.005em;
  color: var(--ink);
  position: relative;
  transition: color 220ms var(--easing), opacity 220ms var(--easing), padding-left 280ms var(--easing), transform 280ms var(--easing);
}
.menu-popup__item::before {
  content: '';
  position: absolute;
  left: 1.5rem;
  top: 50%;
  width: 0;
  height: 1px;
  background: var(--olive);
  transition: width 280ms var(--easing);
  transform: translateY(-50%);
}
/* dim siblings when one item is hovered so the active one stands out */
@supports selector(:has(*)) {
  .menu-popup__list:has(.menu-popup__item:hover) .menu-popup__item:not(:hover),
  .menu-popup__list:has(.menu-popup__item:focus-visible) .menu-popup__item:not(:focus-visible) {
    opacity: 0.32;
  }
}
.menu-popup__item:hover, .menu-popup__item:focus-visible {
  color: var(--olive-deep);
  padding-left: 2.6rem;
  transform: translateX(2px);
  outline: none;
}
.menu-popup__item:hover::before, .menu-popup__item:focus-visible::before { width: 0.8rem; }
.menu-popup__divider { height: 1px; background: var(--hairline); margin: 0.5rem 1.5rem; }
.menu-popup__contact { padding: 1rem 1.5rem; display: flex; flex-direction: column; gap: 0.25rem; }
.menu-popup__contact a { font-size: 0.75rem; color: var(--stone); transition: color 200ms var(--easing); }
.menu-popup__contact a:hover { color: var(--olive-deep); }

/* ============ post-hero rail (sticky logo + rotated text, only after hero) ============ */
.post-hero {
  position: relative;
  display: grid;
  grid-template-columns: var(--rail) 1fr;
}
@media (max-width: 768px) {
  .post-hero { grid-template-columns: 1fr; }
  .nameplate { display: none !important; }
}
.nameplate {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
  border-right: 1px solid var(--hairline);
  background: var(--paper);
}
.nameplate__brand { padding: 0.5rem; }
.nameplate__brand img { width: 56px; height: auto; display: block; border-radius: 4px; }
.nameplate__divider {
  width: 1px;
  height: 40px;
  background: var(--olive);
  margin: 1.5rem 0;
}
.nameplate__rotated {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
}

.post-hero__content { min-width: 0; }

/* ============ manifesto strip (between hero and studio) ============ */
.manifesto {
  padding: clamp(3rem, 2rem + 4vw, 6rem) var(--gutter);
  text-align: center;
  border-bottom: 1px solid var(--hairline);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}
.manifesto__link {
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.01em;
  color: var(--olive-deep);
  position: relative;
  padding: 0.25rem 0;
  transition: color 220ms var(--easing), letter-spacing 220ms var(--easing);
}
.manifesto__link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0.4);
  transform-origin: left center;
  transition: transform 280ms var(--easing);
}
.manifesto__link:hover { color: var(--ink); letter-spacing: 0.025em; }
.manifesto__link:hover::after { transform: scaleX(1); }
.manifesto__video {
  width: 100%;
  max-width: 960px;
  height: auto;
  display: block;
  background: var(--ink);
}
.manifesto__line {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.4rem, 0.9rem + 2vw, 2.4rem);
  letter-spacing: 0.005em;
  color: var(--ink);
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.65em;
  max-width: 100%;
}
.manifesto__line em {
  font-style: italic;
  color: inherit;
}
.manifesto__dot {
  color: inherit;
  font-weight: 300;
  opacity: 0.5;
}
.manifesto__word {
  color: var(--ink);
  animation: manifesto-cycle 6s infinite ease-in-out;
  transition: color 220ms var(--easing);
  cursor: default;
}
.manifesto__word:nth-of-type(1) { animation-delay: 0s; }
.manifesto__word:nth-of-type(3) { animation-delay: 2s; }
.manifesto__word:nth-of-type(5) { animation-delay: 4s; }
.manifesto__word:hover {
  animation: none;
  color: var(--olive-deep);
}
@keyframes manifesto-cycle {
  0%, 33%, 100% { color: var(--ink); }
  11%, 22%      { color: var(--olive-deep); }
}
@media (prefers-reduced-motion: reduce) {
  .manifesto__word { animation: none; }
}

/* ============ studio bio ============ */
.studio { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.studio__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 900px) {
  .studio__grid { grid-template-columns: 0.85fr 1fr; gap: 5rem; }
}
.studio__portrait {
  position: relative;
  background: transparent;
}
.studio__portrait img { width: 100%; height: auto; display: block; }
.studio__body { display: flex; flex-direction: column; gap: 1.4rem; }
.studio__body h2 { max-width: 18ch; }
.studio__body p { max-width: 60ch; line-height: 1.65; color: var(--ink-soft); }
.studio__sub {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: var(--step-2);
  color: var(--olive-deep);
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
}
.studio__quote {
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.35;
  font-style: italic;
  font-weight: 300;
  color: var(--ink);
  padding: 0.5rem 0 0.5rem 1.5rem;
  border-left: 2px solid var(--olive);
  max-width: 44ch;
  margin: 0.5rem 0;
}
.studio__cred {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--hairline);
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.005em;
}
.studio__cred span { color: var(--stone); }
.studio__cred strong { color: var(--ink); font-weight: 600; }

/* ============ film ============ */
.film { background: var(--paper-2); }
.film__inner { max-width: 1000px; margin: 0 auto; padding: 0 var(--gutter); display: flex; flex-direction: column; gap: 1.5rem; }
.film__head { display: flex; flex-direction: column; gap: 0.6rem; align-items: flex-start; }
.film__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow);
}
.film__frame iframe, .film__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.film__poster {
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 600ms var(--easing);
}
.film__poster::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1), rgba(0,0,0,0.5));
}
.film__poster:hover { transform: scale(1.02); }
.film__play {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--paper);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  transition: background 250ms var(--easing), transform 300ms var(--easing);
}
.film__poster:hover .film__play { background: var(--olive); transform: scale(1.05); }
.film__play::before {
  content: '';
  width: 0;
  height: 0;
  margin-left: 6px;
  border-style: solid;
  border-width: 14px 0 14px 22px;
  border-color: transparent transparent transparent var(--ink);
  transition: border-color 250ms var(--easing);
}
.film__poster:hover .film__play::before { border-left-color: var(--paper); }

/* ============ process ============ */
.process { background: var(--paper); }
.process__intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 4rem;
}
@media (min-width: 900px) {
  .process__intro { grid-template-columns: 1fr 1fr; gap: 4rem; }
}
.process__head { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 0; }
.process__head h2 { max-width: 16ch; }
.process__plan {
  width: 100%;
  margin: 0;
  background: var(--paper-2);
  overflow: hidden;
}
.process__plan img { width: 100%; height: auto; display: block; mix-blend-mode: multiply; }
.process__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  counter-reset: step;
}
@media (min-width: 700px) {
  .process__list { grid-template-columns: repeat(2, 1fr); gap: 3rem; }
}
@media (min-width: 1100px) {
  .process__list { grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
}
.process__step {
  counter-increment: step;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--hairline);
  position: relative;
}
.process__step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: var(--step-3);
  color: var(--olive-deep);
  font-feature-settings: 'tnum';
}
.process__step h3 { font-size: var(--step-2); font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; line-height: 1.15; }
.process__step p { font-size: var(--step-0); color: var(--ink-soft); line-height: 1.6; }

/* ============ featured (YouTube embed) ============ */
.featured { background: var(--paper); padding-top: calc(var(--section-y) * 0.5); }
.featured__head { margin-bottom: 3rem; max-width: 32ch; display: flex; flex-direction: column; gap: 1rem; }
.featured__head h2 { max-width: 22ch; }
.featured__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  background: var(--ink);
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 30px 80px -40px rgba(15,15,14,0.4);
}
.featured__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============ build (heading + floor plan, sits above contact) ============ */
.build { background: var(--paper); padding-top: calc(var(--section-y) * 0.5); padding-bottom: calc(var(--section-y) * 0.5); }
.build__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 900px) {
  .build__layout { grid-template-columns: 1fr 1fr; gap: 5rem; }
}
.build__heading {
  font-family: var(--font-display);
  font-size: var(--step-6);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0;
  max-width: 14ch;
}
.build__heading em { font-style: italic; }
.build__plan { margin: 0; width: 100%; background: var(--paper-2); overflow: hidden; }
.build__plan img { width: 100%; height: auto; display: block; mix-blend-mode: multiply; }

/* ============ contact ============ */
.contact { background: var(--paper); padding-top: calc(var(--section-y) * 0.5); }
.contact__layout { display: grid; grid-template-columns: 1fr; gap: 4rem; align-items: start; }
@media (min-width: 1000px) {
  .contact__layout { grid-template-columns: minmax(0, 1fr) minmax(320px, 380px); gap: clamp(4rem, 6vw, 8rem); }
}
.contact__main { min-width: 0; }
.contact__aside { display: flex; flex-direction: column; gap: 2.5rem; min-width: 0; align-items: flex-end; justify-self: end; width: 100%; }
.contact__aside .contact__form { width: 100%; max-width: 380px; }
.contact__plan {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--hairline);
}
.contact__plan img { width: 100%; height: 100%; object-fit: cover; display: block; mix-blend-mode: multiply; opacity: 0.92; }
.contact__form { display: flex; flex-direction: column; gap: 1rem; padding: 2rem; background: var(--paper-2); border: 1px solid var(--hairline); }
.contact__form .eyebrow { color: var(--olive-deep); }
.contact__form-title { font-family: var(--font-display); font-weight: 400; font-size: var(--step-2); line-height: 1.15; margin: 0 0 0.5rem; max-width: 18ch; }
.contact__field { display: flex; flex-direction: column; gap: 0.4rem; }
.contact__field span { font-family: var(--font-display); font-size: var(--step-0); font-style: italic; font-weight: 300; color: var(--stone); }
.contact__field input,
.contact__field textarea {
  font: inherit;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--hairline);
  background: var(--paper);
  color: var(--ink);
  transition: border-color 200ms var(--easing), box-shadow 200ms var(--easing);
  width: 100%;
  resize: vertical;
}
.contact__field input:focus,
.contact__field textarea:focus {
  outline: none;
  border-color: var(--olive-deep);
  box-shadow: 0 0 0 3px rgba(107,122,58,0.15);
}
.contact__submit {
  align-self: flex-start;
  margin-top: 0.5rem;
  padding: 0.85rem 1.4rem;
  font-family: var(--font-display);
  font-size: var(--step-0);
  letter-spacing: 0.01em;
  background: var(--ink);
  color: var(--paper);
  border: none;
  cursor: pointer;
  transition: background 220ms var(--easing);
}
.contact__submit:hover { background: var(--olive-deep); }

.contact__head { margin-bottom: 2.5rem; max-width: 24ch; display: flex; flex-direction: column; gap: 0.75rem; }
.contact__head .eyebrow { display: block; }
.contact__head h2 { font-size: var(--step-6); }
.contact__list {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--hairline);
}
.contact__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--hairline);
  align-items: center;
  position: relative;
  transition: padding-left 300ms var(--easing), color 300ms var(--easing);
}
@media (min-width: 720px) {
  .contact__row { grid-template-columns: 200px 1fr auto; gap: 2rem; }
}
.contact__row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--olive);
  transition: width 350ms var(--easing);
}
.contact__row:hover::before { width: 100%; }
.contact__row:hover { color: var(--paper); padding-left: 1.5rem; }
.contact__row > * { position: relative; z-index: 1; }
.contact__label { font-family: var(--font-display); font-size: var(--step-0); font-style: italic; font-weight: 300; letter-spacing: 0.005em; color: var(--stone); }
.contact__row:hover .contact__label { color: rgba(255,255,255,0.7); }
.contact__value { font-family: var(--font-display); font-size: var(--step-3); line-height: 1.1; }
.contact__cta { font-family: var(--font-display); font-size: var(--step-0); font-style: italic; font-weight: 300; letter-spacing: 0.005em; opacity: 0; transition: opacity 250ms var(--easing); display: flex; align-items: center; gap: 0.5rem; }
.contact__row:hover .contact__cta { opacity: 1; }

.contact__footer {
  margin-top: 4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--hairline);
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-style: italic;
  font-weight: 300;
  color: var(--stone);
}
.contact__social { display: flex; gap: 1.5rem; }
.contact__social a { color: var(--ink); }
.contact__social a:hover { color: var(--olive-deep); }

/* ============ projects page ============ */
.projects-hero { padding: calc(var(--section-y) + 4rem) 0 var(--section-y); }
.projects-hero h1 { max-width: 14ch; }
.projects-hero p { margin-top: 1.5rem; max-width: 50ch; color: var(--ink-soft); font-size: var(--step-1); }
.projects-hero__inner { display: flex; align-items: center; justify-content: space-between; gap: 3rem; }
.projects-hero__text { flex: 0 1 auto; max-width: 50ch; min-width: 0; }
.projects-hero__mark {
  flex: 1 1 0;
  width: 100%;
  max-width: 720px;
  height: auto;
  display: block;
  object-fit: contain;
}
@media (max-width: 900px) {
  .projects-hero__inner { flex-direction: column; align-items: flex-start; }
  .projects-hero__mark { max-width: 360px; }
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--hairline);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
@media (min-width: 700px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .projects-grid { grid-template-columns: repeat(3, 1fr); }
}
.projects-grid .tile { aspect-ratio: 4 / 5; background: var(--paper); }
.projects-grid .tile__media { filter: grayscale(1) contrast(1.05) brightness(0.92); }
.projects-grid .tile:hover .tile__media { filter: grayscale(0) contrast(1) brightness(1); }

/* ============ footer ============ */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--hairline);
  background: var(--paper);
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-style: italic;
  font-weight: 300;
  color: var(--stone);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

/* ============ lightbox ============ */
.lightbox {
  border: none;
  padding: 0;
  margin: 0;
  background: transparent;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
}
.lightbox::backdrop { background: rgba(14, 14, 14, 0.94); backdrop-filter: blur(4px); }
.lightbox[open] { display: flex; align-items: stretch; justify-content: stretch; }
.lightbox__inner {
  position: relative;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  color: var(--paper);
  background: var(--ink);
  overflow: hidden;
}
@media (min-width: 900px) {
  .lightbox__inner { grid-template-columns: 340px 1fr; }
}
@media (min-width: 1200px) {
  .lightbox__inner { grid-template-columns: 380px 1fr; }
}
.lightbox__panel {
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: var(--ink);
  color: var(--paper);
  overflow-y: auto;
  max-height: 100vh;
}
.lightbox__eyebrow { color: var(--olive); }
.lightbox__name { font-family: var(--font-display); font-size: var(--step-4); font-weight: 400; line-height: 1.05; margin: 0; color: var(--paper); }
.lightbox__description { font-family: var(--font-body); font-size: 1rem; line-height: 1.65; color: rgba(255,255,255,0.78); margin: 0; max-width: 42ch; }
.lightbox__facts { margin: 0.5rem 0 0; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.16); display: flex; flex-direction: column; gap: 0.75rem; }
.lightbox__fact { display: grid; grid-template-columns: 100px 1fr; gap: 0.75rem; align-items: baseline; }
.lightbox__fact dt { font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: var(--step-0); color: rgba(255,255,255,0.55); margin: 0; }
.lightbox__fact dd { font-family: var(--font-display); font-size: var(--step-0); font-weight: 400; color: var(--paper); margin: 0; }
.lightbox__addr { font-style: italic; }
.lightbox__stage {
  position: relative;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
}
.lightbox__media {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__media img,
.lightbox__media video { width: 100%; height: 100%; object-fit: contain; background: var(--ink); display: block; }
.lightbox__counter {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-style: italic;
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  background: rgba(15,15,14,0.45);
  padding: 0.3rem 0.7rem;
  border-radius: 99px;
  backdrop-filter: blur(4px);
}
.lightbox__close, .lightbox__nav {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  z-index: 5;
  transition: background 200ms var(--easing), color 200ms var(--easing);
  border: none;
  cursor: pointer;
}
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__close:hover { background: var(--olive); color: var(--paper); }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }
.lightbox__nav:hover { background: var(--olive); color: var(--paper); }
@media (max-width: 900px) {
  .lightbox__inner { grid-template-rows: auto 1fr; height: 100vh; max-height: 100vh; }
  .lightbox__panel { max-height: 40vh; padding: 1.25rem; }
  .lightbox__stage { min-height: auto; }
}

/* ============ reveal animation ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms var(--easing), transform 800ms var(--easing);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============ visually hidden (a11y / SEO H1) ============ */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============ skip link ============ */
.skip {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  z-index: 100;
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-style: italic;
  font-weight: 300;
  transition: top 200ms var(--easing);
}
.skip:focus { top: 1rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .tile__media { transform: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============ WhatsApp floating button ============ */
.whatsapp-fab {
  position: fixed;
  left: 1.5rem;
  bottom: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px -6px rgba(37,211,102,0.55), 0 4px 12px rgba(15,15,14,0.18);
  z-index: 200;
  transition: transform 220ms var(--easing), box-shadow 220ms var(--easing), background 220ms var(--easing);
}
.whatsapp-fab svg { width: 30px; height: 30px; display: block; }
.whatsapp-fab:hover { transform: translateY(-2px) scale(1.05); background: #1ea855; box-shadow: 0 14px 28px -6px rgba(37,211,102,0.7), 0 6px 16px rgba(15,15,14,0.22); }
.whatsapp-fab:focus-visible { outline: 3px solid var(--olive); outline-offset: 3px; }
@media (max-width: 600px) {
  .whatsapp-fab { width: 50px; height: 50px; left: 1rem; bottom: 1rem; }
  .whatsapp-fab svg { width: 26px; height: 26px; }
}
