@font-face {
  font-family: "Onest";
  src: url("assets/fonts/Onest-Regular.ttf") format("truetype");
  font-weight: 400;
}

@font-face {
  font-family: "Onest";
  src: url("assets/fonts/Onest-SemiBold.ttf") format("truetype");
  font-weight: 600;
}

@font-face {
  font-family: "Onest";
  src: url("assets/fonts/Onest-Bold.ttf") format("truetype");
  font-weight: 800;
}

@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/Fraunces-SemiBold.ttf") format("truetype");
  font-weight: 700;
}

@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/Fraunces-Bold.ttf") format("truetype");
  font-weight: 800;
}

:root {
  color-scheme: light;
  --bg: #ebedec;
  --surface: #ffffff;
  --ink: #171b1b;
  --muted: #596264;
  --line: #d8deda;
  --green: #27919e;
  --clay: #ce7500;
  --gold: #dba04f;
  --shadow: 0 14px 34px rgba(23, 27, 27, 0.06);
  --soft-shadow: 0 8px 22px rgba(23, 27, 27, 0.05);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Onest", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::selection {
  background: rgba(39, 145, 158, 0.22);
}

.intro-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--bg);
  pointer-events: none;
  animation: intro-screen 1200ms cubic-bezier(0.22, 1, 0.36, 1) 900ms forwards;
}

.intro-screen img {
  width: min(260px, 68vw);
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  animation: intro-mark 900ms cubic-bezier(0.22, 1, 0.36, 1) 120ms forwards;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 clamp(20px, 5vw, 72px);
  background: rgba(235, 237, 236, 0.82);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.site-header[data-elevated="true"] {
  border-color: var(--line);
  box-shadow: var(--soft-shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-logo {
  width: clamp(150px, 16vw, 218px);
  max-height: 58px;
  height: auto;
  object-fit: contain;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  background: var(--ink);
  color: var(--bg);
  border-radius: 50%;
  font-size: 0.78rem;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.site-nav-list {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  position: relative;
  padding: 24px 0;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 18px;
  left: 0;
  height: 2px;
  background: var(--clay);
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 50%;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  min-height: min(820px, calc(100vh - 72px));
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(23, 27, 27, 0.78), rgba(23, 27, 27, 0.42) 52%, rgba(23, 27, 27, 0.16)),
    linear-gradient(0deg, rgba(235, 237, 236, 0.08), transparent 44%);
  content: "";
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(0.96);
  transform: scale(1.02);
  animation: hero-image-in 1400ms cubic-bezier(0.22, 1, 0.36, 1) 420ms both;
}

.hero-content {
  width: min(760px, calc(100% - 40px));
  margin: 0 clamp(20px, 5vw, 72px) clamp(44px, 8vw, 92px);
  color: #fffdf6;
  animation: hero-copy-in 980ms cubic-bezier(0.22, 1, 0.36, 1) 520ms both;
}

.section-kicker {
  margin: 0 0 14px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .section-kicker {
  color: #f0c174;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(2.85rem, 7vw, 5.9rem);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4.6vw, 4rem);
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.22;
}

.hero-content p:not(.section-kicker) {
  max-width: 650px;
  color: rgba(255, 253, 246, 0.88);
  font-size: clamp(1.04rem, 2vw, 1.28rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1.1;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--clay);
  color: #fff;
}

.button.secondary {
  border-color: rgba(255, 253, 246, 0.42);
  color: #fffdf6;
}

.button.secondary:hover {
  border-color: rgba(255, 253, 246, 0.8);
  background: rgba(255, 253, 246, 0.08);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.metrics article {
  position: relative;
  min-height: 138px;
  padding: 30px clamp(20px, 5vw, 72px);
  border-right: 1px solid var(--line);
  overflow: hidden;
}

.metrics article:last-child {
  border-right: 0;
}

.metrics strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
}

.metrics span {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-weight: 700;
}

.metrics img {
  position: absolute;
  right: clamp(18px, 4vw, 54px);
  bottom: 18px;
  width: clamp(66px, 9vw, 108px);
  opacity: 0.075;
}

.section {
  padding: clamp(72px, 10vw, 130px) clamp(20px, 5vw, 72px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(180px, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(28px, 6vw, 82px);
  align-items: start;
  margin-bottom: clamp(34px, 6vw, 64px);
}

.project {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
}

.project::after {
  position: absolute;
  right: clamp(18px, 7vw, 100px);
  bottom: clamp(24px, 5vw, 72px);
  width: clamp(140px, 20vw, 280px);
  aspect-ratio: 1;
  background: url("assets/simbolo-azul.png") center/contain no-repeat;
  content: "";
  opacity: 0.055;
  pointer-events: none;
}

.project-text {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 5vw, 72px);
  margin-left: calc(35% + clamp(28px, 6vw, 82px));
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.archive {
  background: #f4f2ea;
}

.archive-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}

.filter.active {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
}

.archive-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.archive-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.archive-card[hidden] {
  display: none;
}

.archive-card img,
.video-thumb {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.archive-card img {
  filter: grayscale(0.7) sepia(0.22);
}

.archive-card .current-photo {
  filter: saturate(0.9) contrast(1.05);
}

.video-thumb {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(39, 145, 158, 0.9), rgba(206, 117, 0, 0.78)),
    url("assets/memoria-hero.png") center/cover;
  background-blend-mode: multiply;
}

.play-icon {
  width: 58px;
  height: 58px;
  background: #fffdf6;
  clip-path: polygon(30% 18%, 30% 82%, 82% 50%);
}

.archive-card div:last-child {
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-content: start;
  padding: 24px;
}

.archive-card span {
  display: block;
  margin-bottom: 12px;
  min-height: 1em;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.archive-card p,
.story-list p,
.video-card p,
.metadata-panel dd,
.before-after-copy p,
.contact p {
  color: var(--muted);
  line-height: 1.7;
}

.archive-card h3 {
  display: -webkit-box;
  min-height: 2.55em;
  overflow: hidden;
  line-height: 1.28;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.archive-card p {
  display: -webkit-box;
  min-height: 5.1em;
  max-height: 5.1em;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.archive-empty {
  max-width: 760px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
}

.archive-empty h2 {
  margin-bottom: 10px;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.archive-pagination {
  display: flex;
  justify-content: center;
  margin-top: 42px;
}

.archive-pagination ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.archive-pagination li {
  margin: 0;
  border-right: 1px solid var(--line);
}

.archive-pagination li:last-child {
  border-right: 0;
}

.archive-pagination .page-numbers {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  color: var(--green);
  font-weight: 800;
  line-height: 1;
}

.archive-pagination .page-numbers.current {
  background: var(--green);
  color: #fff;
}

.archive-pagination a.page-numbers:hover {
  background: #edf2ef;
  color: var(--ink);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.video-card {
  display: grid;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.video-poster {
  position: relative;
  display: grid;
  min-height: 230px;
  place-items: center;
  overflow: hidden;
  background: #dfe6e3;
}

.video-poster::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(23, 27, 27, 0.34), transparent 64%);
  content: "";
}

.video-poster img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1.24;
  object-fit: cover;
  filter: saturate(0.82) contrast(0.96);
}

.video-poster .play-icon {
  position: absolute;
  z-index: 1;
  width: 54px;
  height: 54px;
  background: #fffdf6;
}

.video-card div:last-child {
  padding: 24px;
}

.video-card div:last-child span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border: 1px solid var(--gold);
  color: var(--green);
  border-radius: 50%;
  font-weight: 900;
}

.story-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.story-list article {
  padding: 34px 28px 22px 0;
  border-right: 1px solid var(--line);
}

.story-list article + article {
  padding-left: 28px;
}

.story-list article:last-child {
  border-right: 0;
}

.story-list span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 26px;
  border: 1px solid var(--gold);
  color: var(--green);
  border-radius: 50%;
  font-weight: 900;
}

.before-after {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  background: #171b1b;
  color: #fffdf6;
}

.before-after-copy p {
  color: rgba(255, 253, 246, 0.72);
}

.inline-button {
  margin-top: 16px;
}

.comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(255, 253, 246, 0.2);
  border-radius: var(--radius);
}

.comparison-panel {
  position: relative;
  min-height: 420px;
  overflow: hidden;
}

.comparison-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comparison-panel.past img {
  filter: grayscale(1) sepia(0.18);
}

.comparison-panel.present img {
  filter: saturate(0.9);
}

.comparison-panel span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 8px 12px;
  background: rgba(32, 33, 31, 0.78);
  color: #fffdf6;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.contact {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(300px, 1.1fr);
  gap: clamp(32px, 7vw, 90px);
  background: var(--surface);
}

.contact-form {
  display: grid;
  gap: 18px;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-form-section {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 246, 0.62);
}

.contact-form-section > strong {
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-form label {
  display: grid;
  gap: 9px;
  color: var(--ink);
  font-weight: 800;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  border: 1px solid var(--line);
  background: #f8f8f5;
  color: var(--ink);
  border-radius: var(--radius);
  padding: 15px 14px;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(39, 145, 158, 0.14);
}

.contact-form input[type="file"] {
  padding: 12px;
}

.contact-form textarea {
  min-height: 126px;
  resize: vertical;
}

.nhd-hidden-field {
  position: absolute;
  left: -9999px;
}

.contact-form .button {
  justify-self: start;
  border: 0;
  cursor: pointer;
}

.form-message {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 12px;
  background: rgba(39, 145, 158, 0.12);
  color: var(--green);
  border: 1px solid rgba(39, 145, 158, 0.26);
  border-radius: var(--radius);
  font-weight: 800;
}

.detail-main {
  background: var(--bg);
}

.detail-hero {
  padding: clamp(54px, 8vw, 96px) clamp(20px, 5vw, 72px) clamp(30px, 5vw, 58px);
}

.detail-hero h1 {
  max-width: 920px;
  margin-bottom: 18px;
  color: var(--ink);
  font-size: clamp(2.45rem, 6vw, 5rem);
}

.detail-subtitle {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.22rem);
  line-height: 1.7;
}

.back-link {
  display: inline-flex;
  margin-bottom: 30px;
  color: var(--green);
  font-weight: 800;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(270px, 0.75fr);
  gap: clamp(24px, 5vw, 60px);
  padding: 0 clamp(20px, 5vw, 72px) clamp(56px, 8vw, 96px);
  align-items: start;
}

.detail-media {
  margin: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
}

.detail-media img {
  width: 100%;
  max-height: 760px;
  object-fit: contain;
  background: #f7f4ed;
}

.detail-media iframe,
.detail-media video,
.detail-media .wp-video {
  display: block;
  width: 100%;
  min-height: clamp(310px, 54vw, 640px);
  border: 0;
}

.detail-media figcaption {
  padding: 16px 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.metadata-panel,
.person-info,
.detail-story {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
}

.metadata-panel {
  padding: 26px;
}

.metadata-panel h2,
.person-info h2,
.detail-story h2 {
  margin-bottom: 20px;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

.metadata-panel dl,
.person-info dl {
  display: grid;
  gap: 20px;
  margin: 0;
}

.metadata-panel dt,
.person-info dt {
  margin-bottom: 6px;
  color: var(--clay);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metadata-panel dd,
.person-info dd {
  margin: 0;
}

.download-button {
  margin-top: 26px;
}

.detail-story {
  margin: 0 clamp(20px, 5vw, 72px) clamp(72px, 10vw, 120px);
  padding: clamp(26px, 5vw, 54px);
}

.detail-story p {
  max-width: 920px;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.82;
}

.video-frame {
  display: grid;
  min-height: clamp(310px, 54vw, 640px);
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(0deg, rgba(23, 27, 27, 0.62), rgba(23, 27, 27, 0.36)),
    var(--video-poster) center/cover;
  color: #fffdf6;
  text-align: center;
}

.video-frame .play-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  background: #fffdf6;
}

.video-frame p {
  margin: 0;
  color: rgba(255, 253, 246, 0.84);
  font-weight: 800;
}

.person-info {
  margin: 0 clamp(20px, 5vw, 72px) clamp(72px, 10vw, 120px);
  padding: clamp(26px, 5vw, 54px);
}

.before-after-gallery {
  display: grid;
  gap: 24px;
  padding: 0 clamp(20px, 5vw, 72px) clamp(72px, 10vw, 120px);
}

.before-after-item {
  display: grid;
  gap: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
}

.before-after-item .comparison {
  border: 0;
  border-radius: 0;
}

.before-after-item .comparison-panel {
  min-height: 360px;
}

.comparison-meta {
  display: grid;
  grid-template-columns: minmax(180px, 0.6fr) minmax(0, 1.4fr);
  gap: 24px;
  padding: 24px;
}

.comparison-meta p {
  margin-bottom: 8px;
  color: var(--muted);
  line-height: 1.65;
}

.site-footer {
  display: grid;
  gap: 22px;
  padding: 34px clamp(20px, 5vw, 72px) 28px;
  background: var(--ink);
  color: rgba(255, 253, 246, 0.72);
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: end;
  gap: clamp(22px, 4vw, 58px);
}

.footer-logo-group {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.footer-logo-group strong {
  color: rgba(255, 253, 246, 0.58);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-logo-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(14px, 2vw, 26px);
}

.footer-logo-list img {
  width: min(var(--footer-logo-width), 100%);
  max-height: 96px;
  height: auto;
  object-fit: contain;
}

@media (min-width: 901px) {
  .footer-logo-group--footer_institutional {
    grid-column: span 2;
  }

  .footer-logo-group--footer_institutional .footer-logo-list {
    flex-wrap: nowrap;
  }

  .footer-logo-group--footer_institutional .footer-logo-list img {
    flex: 0 1 var(--footer-logo-width);
    min-width: 0;
  }
}

.footer-note {
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 253, 246, 0.14);
  color: rgba(255, 253, 246, 0.58);
  font-size: 0.86rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1), transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes intro-mark {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes intro-screen {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes hero-copy-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-image-in {
  from {
    opacity: 0;
    transform: scale(1.05);
  }
  to {
    opacity: 1;
    transform: scale(1.02);
  }
}

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    position: fixed;
    top: 72px;
    right: 16px;
    left: 16px;
    display: grid;
    gap: 0;
    padding: 10px 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-nav-list {
    display: grid;
    gap: 0;
  }

  .site-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 15px 0;
  }

  .site-nav a::after {
    display: none;
  }

  .hero {
    min-height: 760px;
  }

  .metrics,
  .archive-grid,
  .story-list,
  .video-grid,
  .before-after,
  .contact,
  .project-text,
  .detail-layout,
  .comparison-meta {
    grid-template-columns: 1fr;
  }

  .archive-card img,
  .video-thumb {
    height: 230px;
  }

  .metrics article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metrics article:last-child {
    border-bottom: 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
  }

  .project-text {
    margin-left: 0;
  }

  .story-list article,
  .story-list article + article {
    padding: 28px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .story-list article:last-child {
    border-bottom: 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 66px;
    padding-inline: 16px;
  }

  .brand {
    gap: 10px;
    font-size: 0.95rem;
  }

  .brand-logo {
    width: 142px;
    max-height: 48px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .site-nav {
    top: 66px;
  }

  .hero {
    min-height: 700px;
  }

  .hero-media::after {
    background:
      linear-gradient(0deg, rgba(21, 23, 20, 0.82), rgba(21, 23, 20, 0.32)),
      linear-gradient(90deg, rgba(21, 23, 20, 0.52), transparent);
  }

  .hero-content {
    width: calc(100% - 32px);
    margin: 0 16px 42px;
  }

  h1 {
    font-size: clamp(2.55rem, 16vw, 4.4rem);
  }

  .hero-actions {
    display: grid;
  }

  .contact-form-row {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 16px;
  }

  .comparison {
    grid-template-columns: 1fr;
  }

  .comparison-panel {
    min-height: 280px;
  }

  .footer-logo-list img {
    max-height: 82px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .intro-screen {
    display: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
