:root {
  --paper: #f5f1e8;
  --paper-soft: #e9e1d2;
  --ink: #171716;
  --muted: #66645f;
  --line: #d8d0c2;
  --white: #fffdf7;
  --olive: #465842;
  --rust: #a24d33;
  --blue: #264f66;
  --charcoal: #11130f;
  --shadow: 0 18px 50px rgba(30, 26, 20, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(17, 19, 15, 0.035) 1px, transparent 1px) 0 0 / 76px 76px,
    var(--paper);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 241, 232, 0.88);
  border-bottom: 1px solid rgba(23, 23, 22, 0.12);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
}

.brand {
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1;
  transition: color 160ms ease;
}

.brand span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a,
.button,
button,
select,
input,
textarea {
  font: inherit;
}

.nav a {
  min-height: 36px;
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: background 160ms ease, color 160ms ease;
}

.nav a:hover,
.nav a.active {
  color: var(--ink);
  background: var(--paper-soft);
}

.hero {
  position: relative;
  display: flex;
  align-items: end;
  min-height: clamp(530px, calc(100svh - 140px), 720px);
  margin: 0 0 38px;
  padding: 74px max(16px, calc((100% - 1180px) / 2)) 44px;
  overflow: hidden;
  color: var(--white);
  background: var(--charcoal);
  isolation: isolate;
}

.hero::before,
.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.hero::before {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 12, 10, 0.92) 0%, rgba(10, 12, 10, 0.62) 43%, rgba(10, 12, 10, 0.18) 100%),
    linear-gradient(0deg, rgba(10, 12, 10, 0.86) 0%, rgba(10, 12, 10, 0) 38%);
}

.hero::after {
  z-index: -1;
  border: 1px solid rgba(255, 253, 247, 0.12);
  border-inline: 0;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  padding: 0 0 6px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--rust);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

h1 {
  font-size: clamp(46px, 10vw, 118px);
  line-height: 0.95;
}

h2 {
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.04;
}

h3 {
  font-size: 25px;
  line-height: 1.15;
}

.lead {
  max-width: 720px;
  color: #3c3a36;
  font-size: 19px;
  line-height: 1.65;
}

.hero .lead {
  max-width: 650px;
  color: rgba(255, 253, 247, 0.86);
  text-wrap: balance;
}

.hero .eyebrow {
  color: #f1b38a;
}

.hero-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-quick span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 253, 247, 0.28);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.08);
  color: rgba(255, 253, 247, 0.84);
  font-size: 13px;
}

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

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.button:hover,
button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(23, 23, 22, 0.16);
}

.button.secondary,
button.secondary {
  background: transparent;
  color: var(--ink);
}

.hero .button {
  border-color: var(--white);
  background: var(--white);
  color: var(--ink);
}

.hero .button.secondary {
  border-color: rgba(255, 253, 247, 0.72);
  background: rgba(255, 253, 247, 0.08);
  color: var(--white);
}

.button.ghost {
  border-color: transparent;
  background: transparent;
  color: var(--blue);
  padding-inline: 0;
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  min-height: 100%;
  overflow: hidden;
  background: #161a16;
}

.hero-art img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: 64% center;
  filter: saturate(1.05) contrast(1.04);
}

.hero-caption {
  position: absolute;
  right: max(16px, calc((100% - 1180px) / 2));
  bottom: 34px;
  max-width: 320px;
  margin: 0;
  padding: 12px 14px 12px 16px;
  border-left: 3px solid #f1b38a;
  background: rgba(12, 12, 10, 0.44);
  color: rgba(255, 253, 247, 0.9);
  font-size: 13px;
  line-height: 1.45;
  backdrop-filter: blur(10px);
}

.band {
  border-top: 1px solid var(--line);
  padding: 58px 0;
}

.band.alt {
  background: var(--paper-soft);
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.container.narrow {
  width: min(820px, calc(100% - 32px));
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.section-head p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

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

.stat {
  min-height: 118px;
  padding: 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.7);
}

.stat strong {
  display: block;
  font-size: 30px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.4;
}

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

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

.work-card,
.info-card,
.source-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.work-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(23, 23, 22, 0.03);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.featured-card {
  background: linear-gradient(180deg, #fffdf7 0%, #f6efe2 100%);
}

.work-card:hover {
  border-color: rgba(38, 79, 102, 0.42);
  transform: translateY(-3px);
  box-shadow: 0 22px 42px rgba(23, 23, 22, 0.13);
}

.work-image {
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: linear-gradient(135deg, #354236, #9c6d54 46%, #e2d5ba);
  color: inherit;
  overflow: hidden;
  cursor: zoom-in;
}

.work-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease;
}

.work-card:hover .work-image img {
  transform: scale(1.035);
}

.work-preview:hover {
  transform: none;
  box-shadow: none;
}

.zoom-label {
  position: absolute;
  right: 12px;
  bottom: 12px;
  min-height: 28px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 253, 247, 0.42);
  border-radius: 999px;
  background: rgba(17, 19, 15, 0.62);
  color: var(--white);
  font-size: 12px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.work-card:hover .zoom-label,
.work-preview:focus-visible .zoom-label {
  opacity: 1;
  transform: translateY(0);
}

.work-body,
.info-card,
.source-card {
  padding: 18px;
}

.work-body {
  display: grid;
  align-content: start;
}

.work-title-link {
  color: inherit;
  text-decoration: none;
}

.work-title-link:hover {
  color: var(--blue);
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.small-button {
  min-height: 36px;
  padding: 8px 11px;
  font-size: 13px;
}

.article-card {
  display: grid;
  align-content: start;
  gap: 10px;
}

.article-card p {
  margin: 0;
}

.legal-text {
  display: grid;
  gap: 14px;
}

.legal-text p {
  margin: 0;
}

.work-meta,
.small,
.source-card p,
.info-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.work-meta {
  margin: 8px 0 0;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(247, 243, 234, 0.75);
  font-size: 12px;
}

.tag.accent {
  border-color: rgba(162, 77, 51, 0.32);
  background: rgba(162, 77, 51, 0.1);
  color: var(--rust);
}

.filters {
  display: grid;
  grid-template-columns: repeat(6, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.78);
  box-shadow: 0 14px 34px rgba(30, 26, 20, 0.07);
}

.field {
  display: grid;
  gap: 6px;
}

.field-wide {
  grid-column: span 2;
}

.field span,
label {
  color: var(--muted);
  font-size: 13px;
}

select,
input,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
}

select:focus,
input:focus,
textarea:focus {
  outline: 2px solid rgba(38, 79, 102, 0.24);
  border-color: var(--blue);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.page-hero {
  padding: 68px 0 48px;
  background:
    linear-gradient(120deg, rgba(70, 88, 66, 0.12), transparent 42%),
    linear-gradient(0deg, rgba(255, 253, 247, 0.2), transparent);
}

.page-hero .lead {
  margin-bottom: 0;
}

.timeline {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.timeline.long .timeline-item {
  grid-template-columns: 128px minmax(0, 1fr);
}

.timeline-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 22px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-year {
  color: var(--rust);
  font-weight: 700;
}

.timeline-item p {
  margin: 0;
  line-height: 1.65;
}

.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 34px;
  align-items: start;
}

.portrait-frame {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  max-height: 620px;
  object-fit: cover;
}

.publication-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.publication-item {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.72);
  color: #37342f;
  line-height: 1.5;
}

.chronicle-grid {
  columns: 4 220px;
  column-gap: 18px;
}

.chronicle-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  break-inside: avoid;
  cursor: zoom-in;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.chronicle-card:hover,
.chronicle-card:focus-visible {
  border-color: rgba(38, 79, 102, 0.44);
  box-shadow: 0 18px 34px rgba(23, 23, 22, 0.14);
  outline: none;
  transform: translateY(-2px);
}

.chronicle-card img {
  width: 100%;
}

.chronicle-card figcaption {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.has-lightbox {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 72px 82px 48px;
  background: rgba(10, 11, 10, 0.94);
}

.lightbox.open {
  display: flex;
}

.lightbox-frame {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  margin: 0;
}

.lightbox-frame img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100svh - 150px);
  object-fit: contain;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.44);
}

.lightbox-frame figcaption {
  margin-top: 14px;
  color: rgba(255, 253, 247, 0.84);
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

.lightbox-close,
.lightbox-nav {
  position: fixed;
  z-index: 51;
  width: 48px;
  height: 48px;
  padding: 0;
  border-color: rgba(255, 253, 247, 0.34);
  border-radius: 50%;
  background: rgba(255, 253, 247, 0.12);
  color: var(--white);
  font-size: 34px;
  line-height: 1;
  backdrop-filter: blur(10px);
}

.lightbox-close {
  top: 18px;
  right: 22px;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-nav:hover {
  transform: translateY(-50%);
}

.lightbox-nav.prev {
  left: 22px;
}

.lightbox-nav.next {
  right: 22px;
}

.architecture-hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: var(--charcoal);
  color: var(--white);
}

.architecture-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(10, 12, 10, 0.82), rgba(10, 12, 10, 0.28) 58%, rgba(10, 12, 10, 0.08)),
    linear-gradient(0deg, rgba(10, 12, 10, 0.76), transparent 42%);
}

.architecture-hero > img {
  width: 100%;
  height: 620px;
  object-fit: cover;
}

.architecture-hero-copy {
  position: absolute;
  z-index: 1;
  left: max(16px, calc((100% - 1180px) / 2));
  bottom: 46px;
  width: min(680px, calc(100% - 32px));
}

.architecture-hero-copy p {
  color: rgba(255, 253, 247, 0.86);
  font-size: 18px;
  line-height: 1.55;
}

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

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

.architecture-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(23, 23, 22, 0.03);
  cursor: zoom-in;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.architecture-card:hover,
.architecture-card:focus-visible {
  border-color: rgba(38, 79, 102, 0.44);
  box-shadow: 0 20px 40px rgba(23, 23, 22, 0.14);
  outline: none;
  transform: translateY(-2px);
}

.architecture-card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #d7d0c5;
}

.architecture-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.architecture-card-body {
  padding: 18px;
}

.architecture-direction p {
  margin-bottom: 0;
}

.team-list {
  display: grid;
  gap: 10px;
}

.team-member {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.team-member span {
  color: var(--muted);
  text-align: right;
}

.work-detail {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(300px, 0.8fr);
  gap: 34px;
  align-items: start;
}

.work-detail-image {
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: inherit;
  box-shadow: var(--shadow);
  overflow: hidden;
  cursor: zoom-in;
}

.work-detail-preview:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.work-detail-image img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
}

.detail-list {
  display: grid;
  gap: 12px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.detail-list li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.detail-list span {
  color: var(--muted);
}

.trust-panel {
  margin: 24px 0 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.78);
}

.trust-panel h2 {
  font-size: 28px;
}

.trust-grid {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.trust-grid div {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.trust-grid div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.trust-grid span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.contact-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

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

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--olive);
  font-size: 14px;
  line-height: 1.45;
}

.consent-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--muted);
  line-height: 1.45;
}

.consent-row input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
  padding: 0;
}

.consent-row a {
  color: var(--blue);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 11, 10, 0.72);
}

.modal.open {
  display: flex;
}

.modal-panel {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100svh - 48px);
  overflow: auto;
  padding: 28px;
  border: 1px solid rgba(255, 253, 247, 0.2);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 50%;
  font-size: 26px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  max-width: min(360px, calc(100% - 44px));
  padding: 14px 16px;
  border: 1px solid rgba(255, 253, 247, 0.22);
  border-radius: 8px;
  background: var(--charcoal);
  color: var(--white);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

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

.admin-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr);
  gap: 24px;
  align-items: start;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(320px, 520px) minmax(280px, 1fr);
  gap: 24px;
  align-items: start;
}

.admin-panel {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.84);
  box-shadow: 0 14px 34px rgba(30, 26, 20, 0.07);
}

.section-head.compact {
  margin-bottom: 4px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-list {
  display: grid;
  gap: 12px;
  max-height: 650px;
  overflow: auto;
}

.lead-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.lead-card p {
  margin: 0;
}

.admin-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.admin-table th,
.admin-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-card {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin: 24px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.contact-card img {
  width: 130px;
  height: 130px;
  object-fit: cover;
}

.contact-card p {
  margin: 0 0 8px;
  line-height: 1.35;
}

.footer {
  padding: 36px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.notice {
  padding: 16px;
  border-left: 4px solid var(--rust);
  background: rgba(162, 77, 51, 0.08);
  line-height: 1.55;
}

.empty {
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--white);
  text-align: center;
}

@media (max-width: 920px) {
  .header-inner,
  .section-head,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .split,
  .work-detail,
  .auth-layout,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: clamp(540px, calc(100svh - 150px), 680px);
    padding-top: 58px;
  }

  .hero-art img {
    object-position: 70% center;
  }

  .grid,
  .featured-grid,
  .stats,
  .admin-stats,
  .filters,
  .publication-list,
  .architecture-grid,
  .architecture-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field-wide {
    grid-column: span 2;
  }
}

@media (max-width: 620px) {
  .header-inner {
    width: min(100% - 24px, 1180px);
  }

  .nav {
    justify-content: flex-start;
  }

  h1 {
    font-size: 44px;
  }

  .container {
    width: min(100% - 24px, 1180px);
  }

  .hero {
    margin-top: 0;
    padding-inline: 12px;
    padding-bottom: 120px;
  }

  .grid,
  .featured-grid,
  .stats,
  .admin-stats,
  .filters,
  .publication-list,
  .architecture-grid,
  .architecture-grid.compact {
    grid-template-columns: 1fr;
  }

  .field-wide {
    grid-column: span 1;
  }

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

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

  .timeline.long .timeline-item,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .contact-card img {
    width: 100%;
    height: auto;
    max-height: 300px;
  }

  .architecture-hero,
  .architecture-hero > img {
    min-height: 560px;
    height: 560px;
  }

  .architecture-hero-copy {
    bottom: 24px;
  }

  .team-member {
    display: grid;
    gap: 4px;
  }

  .team-member span {
    text-align: left;
  }

  .hero-caption {
    right: 12px;
    bottom: 18px;
    left: 12px;
    max-width: none;
    background: rgba(17, 19, 15, 0.62);
  }

  .lightbox {
    padding: 70px 16px 36px;
  }

  .lightbox-frame img {
    max-height: calc(100svh - 150px);
  }

  .lightbox-nav {
    top: auto;
    bottom: 16px;
    transform: none;
  }

  .lightbox-nav:hover {
    transform: none;
  }

  .lightbox-nav.prev {
    left: 16px;
  }

  .lightbox-nav.next {
    right: 16px;
  }
}
