:root {
  --bg: #0d110f;
  --bg-soft: #131916;
  --panel: rgba(18, 25, 22, 0.78);
  --panel-strong: rgba(20, 28, 24, 0.94);
  --panel-soft: rgba(255, 255, 255, 0.03);
  --text: #f5efe4;
  --muted: #b8b1a2;
  --muted-strong: #d7cfbf;
  --sand: #e6c08f;
  --sand-soft: rgba(230, 192, 143, 0.28);
  --clay: #cc7d5a;
  --moss: #8da78e;
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.08);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  color: var(--text);
  background: var(--bg);
  font-family: "Source Sans 3", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: -2;
  background:
    radial-gradient(circle at top left, rgba(204, 125, 90, 0.24), transparent 35%),
    radial-gradient(circle at top right, rgba(141, 167, 142, 0.18), transparent 38%),
    radial-gradient(circle at bottom center, rgba(230, 192, 143, 0.1), transparent 42%),
    linear-gradient(180deg, #101512 0%, #0d110f 48%, #111713 100%);
}

body::after {
  z-index: -1;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 92%);
  opacity: 0.22;
}

body.menu-open {
  overflow: hidden;
}

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

iframe {
  width: 100%;
  border: 0;
}

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

button,
input,
textarea {
  font: inherit;
}

p,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

.site-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 1rem 0 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(13, 17, 15, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.16);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.brand-mark {
  width: 2.85rem;
  height: 2.85rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(230, 192, 143, 0.95), rgba(204, 125, 90, 0.9));
  color: #121613;
  font-family: "Syne", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-text {
  min-width: 0;
}

.brand-text span,
.brand-text small {
  display: block;
}

.brand-text span {
  font-family: "Syne", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.9rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  color: var(--muted);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  cursor: pointer;
}

.page-main {
  padding: 2rem 0 5rem;
}

.section {
  padding: 4.75rem 0;
}

.section-heading {
  display: grid;
  gap: 1rem;
  max-width: 44rem;
  margin-bottom: 2rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--sand);
  box-shadow: 0 0 0 0.35rem rgba(230, 192, 143, 0.14);
}

.display {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.display em,
.section-heading h1 em,
.section-heading h2 em {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
  color: var(--sand);
}

.section-heading h1,
.section-heading h2,
.section-heading h3,
.project-card h3,
.detail-hero h1,
.card-title,
.timeline-copy h3,
.footer-title,
.empty-state h1 {
  margin: 0;
  font-family: "Syne", sans-serif;
  letter-spacing: -0.03em;
}

.section-heading h1 {
  font-size: clamp(2.75rem, 7vw, 4.8rem);
  line-height: 0.98;
}

.section-heading h2 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.02;
}

.lead {
  color: var(--muted-strong);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  max-width: 50rem;
}

.copy {
  display: grid;
  gap: 1rem;
  color: var(--muted-strong);
}

.copy p {
  max-width: 56rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.85rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

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

.button.primary {
  color: #101512;
  border-color: transparent;
  background: linear-gradient(135deg, #efcc9c 0%, #d98665 100%);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.04);
}

.button.ghost {
  background: transparent;
  color: var(--muted-strong);
}

.inline-link {
  color: var(--sand);
}

.hero-home {
  position: relative;
  padding: 2.6rem 0 4.4rem;
  overflow: hidden;
  isolation: isolate;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
  min-height: 35rem;
  position: relative;
  z-index: 2;
}

.hero-copy {
  position: relative;
  max-width: 56rem;
}

.stat-card,
.info-card,
.feature-card,
.project-tools,
.project-card,
.timeline-item,
.contact-card,
.form-panel,
.empty-state,
.pull-quote,
.cta-panel,
.detail-sidebar .panel,
.detail-media .panel,
.footer-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.stat-card,
.info-card,
.feature-card,
.project-tools,
.timeline-item,
.contact-card,
.form-panel,
.empty-state,
.pull-quote,
.cta-panel,
.detail-sidebar .panel,
.detail-media .panel,
.footer-panel {
  border-radius: var(--radius-lg);
}

.stat-card,
.info-card,
.feature-card,
.project-tools,
.timeline-item,
.contact-card,
.form-panel,
.empty-state,
.pull-quote,
.cta-panel,
.detail-sidebar .panel,
.detail-media .panel {
  padding: 1.3rem;
}

.stat-card strong,
.card-title,
.contact-card h3,
.detail-sidebar h3,
.footer-title {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.stat-card p,
.info-card p,
.feature-card p,
.timeline-copy p,
.contact-card p,
.detail-sidebar p,
.empty-state p,
.footer-panel p {
  color: var(--muted);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 20%, rgba(204, 125, 90, 0.34), transparent 42%),
    radial-gradient(circle at 82% 16%, rgba(141, 167, 142, 0.24), transparent 46%),
    linear-gradient(180deg, rgba(8, 11, 10, 0.62), rgba(8, 11, 10, 0.7));
}

.hero-backdrop-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
}

.hero-backdrop-slide.is-active {
  opacity: 1;
}

.hero-backdrop-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.06) brightness(0.46);
  transform: scale(1.06);
  animation: drift 14s ease-in-out infinite;
}

.page-statement .page-main {
  padding-top: 2.4rem;
}

.page-statement .statement-intro {
  padding-top: 0.8rem;
  padding-bottom: 2.8rem;
}

.page-statement .statement-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  align-items: start;
}

.page-statement .statement-heading {
  max-width: none;
  margin-bottom: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.page-statement .statement-heading .lead {
  max-width: none;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
}

.page-statement .statement-quote {
  margin: 0 auto;
  max-width: 62rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

.page-statement .statement-quote blockquote {
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  line-height: 1.08;
  text-align: center;
}

.page-statement .statement-body {
  padding-top: 1rem;
  padding-bottom: 2.6rem;
}

.page-statement .statement-copy {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.page-statement .statement-copy p {
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.page-statement .statement-copy p:nth-child(1) {
  grid-column: 1 / -1;
}

.page-statement .statement-copy p:nth-child(2) {
  grid-column: 1 / -1;
}

.page-statement .statement-copy p:nth-child(3) {
  grid-column: 1 / -1;
}

.page-statement .statement-pillars {
  padding-top: 2rem;
  padding-bottom: 2.8rem;
}

.page-statement .statement-cards {
  gap: 1.05rem;
}

.page-statement .statement-card .card-title {
  color: var(--muted-strong);
}

.page-statement .statement-cta .cta-panel {
  background:
    linear-gradient(135deg, rgba(230, 192, 143, 0.1), rgba(141, 167, 142, 0.06)),
    rgba(17, 23, 20, 0.88);
}

.page-statement .statement-cta .lead {
  max-width: 42rem;
}

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

.pull-quote {
  display: grid;
  gap: 1rem;
}

.pull-quote blockquote {
  margin: 0;
  font-family: "Instrument Serif", serif;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.1;
  color: var(--text);
}

.project-grid {
  display: grid;
  gap: 1.25rem;
}

.project-grid.featured {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-grid.projects {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.project-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border-radius: 24px;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.project-card:hover,
.project-card:focus-within {
  transform: translateY(-6px);
  border-color: var(--sand-soft);
}

.project-card figure {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover img,
.project-card:focus-within img {
  transform: scale(1.04);
}

.project-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.95rem;
  padding: 1.2rem;
}

.project-card h3 {
  font-size: 1.35rem;
  line-height: 1.05;
}

.project-card p {
  color: var(--muted);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.72rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--sand);
  font-weight: 700;
}

.project-tools {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.tool-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.filter-button {
  padding: 0.6rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted-strong);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.filter-button:hover,
.filter-button:focus-visible {
  transform: translateY(-1px);
}

.filter-button.is-active {
  color: #101512;
  border-color: transparent;
  background: linear-gradient(135deg, #efcc9c 0%, #d98665 100%);
}

.search-field {
  width: min(100%, 18rem);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 0.72rem 1rem;
}

.search-field::placeholder,
.field input::placeholder,
.field textarea::placeholder {
  color: rgba(245, 239, 228, 0.5);
}

.project-empty {
  display: none;
}

.project-empty.is-visible {
  display: block;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 1rem;
}

.timeline-year {
  font-family: "Syne", sans-serif;
  font-size: 1.15rem;
  color: var(--sand);
}

.timeline-copy h3 {
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.exhibitions-panel {
  margin-top: 2rem;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.exhibitions-heading {
  max-width: none;
  margin-bottom: 1.4rem;
}

.exhibitions-heading h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.08;
}

.exhibitions-list {
  display: grid;
  gap: 1rem;
  padding-left: 1.2rem;
  color: var(--muted-strong);
  list-style: disc;
}

.exhibitions-list li {
  padding-left: 0.25rem;
}

.exhibitions-list li::marker {
  color: var(--sand);
}

.exhibitions-list p + p {
  margin-top: 0.8rem;
}

.cta-panel {
  display: grid;
  gap: 1rem;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
}

.detail-hero {
  display: grid;
  gap: 1rem;
  max-width: 52rem;
  margin-bottom: 2rem;
}

.detail-hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  line-height: 0.98;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 1.3rem;
  align-items: start;
}

.detail-media,
.detail-sidebar {
  display: grid;
  gap: 1.2rem;
}

.media-frame {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.03);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-grid,
.video-grid,
.related-grid {
  display: grid;
  gap: 1rem;
}

.gallery-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.video-grid,
.related-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.carousel {
  display: grid;
  gap: 0.9rem;
  outline: 0;
}

.carousel:focus-visible {
  border-radius: 24px;
  box-shadow: 0 0 0 3px var(--sand-soft);
}

.carousel-stage {
  position: relative;
  display: grid;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background: rgba(9, 11, 10, 0.82);
}

.carousel-slide {
  display: none;
  width: 100%;
  margin: 0;
}

.carousel-slide.is-active {
  display: block;
}

.carousel-slide img {
  width: 100%;
  height: min(68vh, 42rem);
  object-fit: contain;
}

.carousel-slide video {
  width: 100%;
  height: min(68vh, 42rem);
  object-fit: contain;
  background: #090b0a;
}

.carousel-button {
  position: absolute;
  top: 50%;
  display: inline-grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(13, 17, 15, 0.78);
  color: var(--text);
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(12px);
  transition: transform 0.25s ease, background 0.25s ease;
}

.carousel-button:hover,
.carousel-button:focus-visible {
  background: rgba(230, 192, 143, 0.22);
  transform: translateY(-50%) scale(1.05);
}

.carousel-button.previous {
  left: 0.9rem;
}

.carousel-button.next {
  right: 0.9rem;
}

.carousel-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.95rem;
}

.carousel-footer span:first-child {
  color: var(--muted-strong);
  font-weight: 700;
}

.video-card {
  display: grid;
  gap: 0.8rem;
}

.video-card video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line-soft);
  background: #090b0a;
}

.video-card strong {
  font-family: "Syne", sans-serif;
}

.simulations-panel {
  display: grid;
  gap: 1.25rem;
}

.simulations-gauge-view,
.simulations-video-view {
  display: grid;
  gap: 1rem;
  justify-items: center;
}

.simulations-gauge-view[hidden],
.simulations-video-view[hidden] {
  display: none;
}

.simulations-prompt {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: 1.35rem;
  text-align: center;
  color: var(--text);
}

.simulations-gauge-stage {
  display: grid;
  place-items: center;
  width: 100%;
  padding: 2rem 1rem 1rem;
  border-radius: var(--radius-md);
  background: #dac7b3;
  color: #170f0a;
}

.simulations-gauge-stage .gauge {
  margin: auto;
}

.simulations-label {
  font-family: "Syne", sans-serif;
  color: var(--muted-strong);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.simulations-slider {
  width: min(100%, 420px);
  cursor: pointer;
  accent-color: var(--sand);
}

.simulations-video-view {
  width: 100%;
}

.simulations-player {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  border-radius: 18px;
  border: 1px solid var(--line-soft);
  background: #090b0a;
}

.simulations-back {
  justify-self: start;
}

.simulations-caption {
  margin: 0;
  color: var(--muted);
  font-family: "Syne", sans-serif;
  letter-spacing: 0.03em;
}

.embed-card {
  display: grid;
  gap: 1rem;
}

.embed-card h3 {
  margin-bottom: 0.35rem;
  font-size: 1.25rem;
}

.embed-frame {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  border: 1px solid var(--line-soft);
  background: #090b0a;
}

.embed-frame iframe {
  width: 100%;
  height: 100%;
}

.media-empty {
  display: grid;
  gap: 0.7rem;
}

.media-empty p {
  color: var(--muted);
}

.fact-list,
.rich-text,
.text-sections {
  display: grid;
  gap: 0.9rem;
}

.text-section {
  display: grid;
  gap: 0.65rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line-soft);
}

.text-section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.text-section h4 {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--sand);
}

.project-lead-line {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--muted-strong);
}

.text-section-callout {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.5rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.text-section-callout-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.text-section-callout .button {
  justify-self: start;
}

.fact-item {
  padding: 0.9rem 1rem;
  border-radius: 18px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.03);
}

.fact-item span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fact-item strong {
  display: block;
  margin-top: 0.32rem;
  font-size: 1rem;
  color: var(--text);
}

.small-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.35rem;
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 1rem;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field-grid .field.full {
  grid-column: 1 / -1;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field span {
  color: var(--muted-strong);
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.field textarea {
  min-height: 11rem;
  resize: vertical;
}

.form-status {
  min-height: 1.5rem;
  color: var(--sand);
  font-weight: 600;
}

.site-footer {
  padding: 0 0 3rem;
}

.footer-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 0.8fr));
  gap: 1rem;
  padding: 1.4rem;
}

.footer-links,
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.footer-link {
  color: var(--muted);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.96rem;
}

.empty-state {
  display: grid;
  gap: 1rem;
  text-align: center;
  justify-items: center;
  padding: 2rem;
}

.page-404 .page-main,
.page-redirect .page-main {
  display: grid;
  align-items: center;
  min-height: calc(100vh - 11rem);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(0, -12px, 0) rotate(3deg);
  }
}

@media (max-width: 1080px) {
  .project-grid.projects {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .project-grid.featured,
  .cards-grid,
  .footer-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-panel,
  .contact-layout,
  .detail-layout,
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: 30rem;
  }

  .page-statement .statement-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .site-header {
    padding-top: 0.75rem;
  }

  .header-inner {
    border-radius: 26px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 1rem;
    right: 1rem;
    display: none;
    padding: 0.9rem;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(13, 17, 15, 0.96);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
    gap: 0.25rem;
  }

  .site-nav a {
    padding: 0.85rem 0.9rem;
  }

  .project-grid.projects,
  .project-grid.featured,
  .gallery-grid,
  .video-grid,
  .related-grid,
  .cards-grid,
  .footer-panel,
  .field-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 1rem, 1180px);
  }

  .page-main {
    padding-bottom: 4rem;
  }

  .section {
    padding: 3.6rem 0;
  }

  .hero-home {
    padding: 2rem 0 3rem;
  }

  .hero-grid {
    min-height: 23rem;
  }

  .page-statement .statement-quote blockquote {
    font-size: clamp(1.45rem, 7vw, 1.95rem);
  }

  .project-grid.projects,
  .project-grid.featured,
  .gallery-grid,
  .video-grid,
  .related-grid,
  .cards-grid,
  .footer-panel,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .tool-row {
    align-items: stretch;
  }

  .search-field {
    width: 100%;
  }

  .carousel-slide img,
  .carousel-slide video {
    height: min(58vh, 34rem);
  }
}
