:root {
  color-scheme: dark;
  --bg: #060914;
  --panel: rgba(5, 13, 24, 0.72);
  --panel-strong: #111827;
  --text: #f6f7fb;
  --muted: #aab3c7;
  --line: rgba(143, 190, 234, 0.22);
  --accent: #7fc5ff;
  --accent-2: #d7e8ff;
  --accent-warm: #ffd7a1;
  --danger: #ff7474;
  --radius: 26px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(127, 197, 255, 0.13), transparent 28rem),
    linear-gradient(180deg, rgba(0, 7, 15, 0.62) 0%, rgba(3, 8, 16, 0.82) 54%, rgba(3, 4, 10, 0.94) 100%),
    url('../img/background.png') center center / cover fixed no-repeat,
    #03040a;
  color: var(--text);
  min-height: 100vh;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

img.index-image {
  margin: 0 auto;
}

p {
  color: var(--muted);
  line-height: 1.7;
  text-wrap: pretty;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.icon {
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
}

.site-header {
  width: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 14px clamp(24px, 5vw, 64px);
  border-bottom: 1px solid rgba(143, 190, 234, 0.18);
  background: linear-gradient(180deg, rgba(1, 8, 18, 0.76), rgba(1, 8, 18, 0.48));
  backdrop-filter: blur(12px);
}

.site-footer {
  width: min(1320px, calc(100% - 32px));
  margin: 64px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--line);
  margin-top: 64px;
}

.footer-brand strong {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}

.footer-brand p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  text-align: right;
}

.about-signature {
  margin: 14px 0 0;
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--accent-2);
  text-align: right;
  letter-spacing: 0.01em;
  opacity: 0.9;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 1.7vw, 1.65rem);
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

.brand-mark {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 2px, #8dcaff 3px 5px, transparent 6px);
  box-shadow: 0 0 32px rgba(127, 197, 255, 0.48);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 56px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d9efff, transparent);
  transform: translate(-50%, -50%);
}

.brand-mark::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

img.brand-mark {
  display: block;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.main-nav,
.admin-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.main-nav {
  gap: clamp(12px, 2.5vw, 38px);
}

.main-nav a,
.admin-nav a {
  color: #e7edf8;
  padding: 12px 0 13px;
  border-bottom: 2px solid transparent;
  border-radius: 0;
}

.main-nav a:hover,
.main-nav a.active,
.admin-nav a:hover,
.admin-nav a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: transparent;
}

.main-nav a.active {
  font-weight: 600;
}

main,
.section,
.page-hero,
.photo-detail {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-main.full-width {
  width: min(100% - 32px, 1680px);
}

.site-main.full-width .photo-detail,
.site-main.full-width .section {
  width: 100%;
}

.site-main.with-sidebar {
  width: min(1320px, calc(100% - 32px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}

.site-main.with-sidebar .section,
.site-main.with-sidebar .page-hero {
  width: 100%;
}

.site-main.with-sidebar .hero {
  width: 100%;
  margin: 22px 0 48px;
  min-height: 0;
  grid-template-columns: 1fr;
}

.site-main.with-sidebar .hero-copy {
  padding: clamp(30px, 6vw, 62px);
}

.site-main.with-sidebar .hero-card {
  display: none;
}

.content-column {
  min-width: 0;
}

.site-main.with-sidebar>.home-hero {
  grid-column: 1 / -1;
  grid-row: 1;
}

.site-main.with-sidebar>.content-column {
  grid-column: 1;
  grid-row: 2;
}

.site-sidebar {
  position: sticky;
  top: 22px;
  display: grid;
  gap: 16px;
}

.site-main.with-sidebar .site-sidebar {
  grid-column: 2;
  grid-row: 2;
}

body.is-home .site-sidebar {
  grid-row: 2;
  margin-top: 0;
}

.sidebar-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(15, 91, 128, 0.22), transparent 16rem),
    linear-gradient(145deg, rgba(5, 14, 26, 0.76), rgba(2, 8, 17, 0.86));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 22px 70px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
}

.about-profile {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  align-items: center;
}

.about-profile img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--line);
  box-shadow: 0 0 0 4px rgba(127, 197, 255, 0.06);
}

.about-profile strong,
.about-profile span,
.about-profile a {
  display: block;
}

.about-profile span,
.about-profile a {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 4px;
}

.about-profile a:hover {
  color: var(--accent);
}

.meta-line {
  display: flex !important;
  align-items: center;
  gap: 7px;
  line-height: 1.4;
}

.meta-line .icon {
  width: 15px;
  height: 15px;
  color: var(--accent);
}

.about-text {
  margin: 18px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(143, 190, 234, 0.18);
  color: #cbd5e4;
  font-size: 0.94rem;
  line-height: 1.6;
}

.sidebar-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(143, 190, 234, 0.15);
}

.sidebar-title>a {
  color: var(--accent);
  font-size: 0.86rem;
}

.sidebar-title>a:hover {
  color: var(--accent-2);
}

.sidebar-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: var(--accent);
}

.sidebar-icon .icon {
  width: 20px;
  height: 20px;
}

.sidebar-title h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.sidebar-title .eyebrow,
.sidebar-card .eyebrow {
  margin: 0;
}

.about-card .sidebar-kicker {
  margin-bottom: 16px;
}

.sidebar-list {
  display: grid;
  gap: 0;
}

.sidebar-photo {
  display: grid;
  grid-template-columns: 142px 1fr 20px;
  gap: 16px;
  align-items: center;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(143, 190, 234, 0.14);
  background: rgba(1, 9, 18, 0.38);
}

.sidebar-photo::after {
  content: "›";
  color: var(--accent-2);
  font-size: 2rem;
  font-weight: 200;
}

.sidebar-photo:hover,
.sidebar-comment:hover {
  background: rgba(127, 197, 255, 0.06);
  border-color: rgba(127, 197, 255, 0.34);
}

.sidebar-photo img {
  width: 142px;
  height: 92px;
  object-fit: cover;
  border-radius: 10px;
  background: #050713;
}

.sidebar-photo strong,
.sidebar-comment strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1.25;
}

.sidebar-photo small,
.sidebar-comment small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
  font-size: 0.78rem;
}

.sidebar-photo+.sidebar-photo {
  margin-top: 8px;
}

.sidebar-card-action {
  margin-top: 16px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(41, 121, 197, 0.22), rgba(25, 66, 117, 0.28));
  border: 1px solid rgba(127, 197, 255, 0.12);
}

.sidebar-card-action:hover {
  color: var(--accent-2);
  border-color: rgba(127, 197, 255, 0.34);
  background: linear-gradient(135deg, rgba(41, 121, 197, 0.32), rgba(25, 66, 117, 0.38));
}

.sidebar-card-action .icon {
  width: 18px;
  height: 18px;
}

.sidebar-comment {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid rgba(143, 190, 234, 0.15);
  background: transparent;
}

.sidebar-comment:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.comment-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(127, 197, 255, 0.22), rgba(127, 197, 255, 0.08));
  border: 1px solid rgba(143, 190, 234, 0.18);
  color: #e7f4ff;
  font-size: 0.82rem;
  font-weight: 600;
}

.sidebar-comment .comment-copy>span {
  display: block;
  color: var(--muted);
  line-height: 1.42;
  margin-top: 4px;
  font-size: 0.82rem;
}

.hero {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 80px;
  min-height: 560px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 28px;
  align-items: stretch;
}

.hero-copy,
.hero-card,
.page-hero,
.detail-panel,
.form-card,
.table-card,
.admin-card,
.equipment-card,
.resource-card,
.comment,
.empty-state {
  background: linear-gradient(145deg, rgba(5, 14, 26, 0.74), rgba(2, 8, 17, 0.82));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 24px 80px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(14px);
}

.hero-copy {
  padding: clamp(32px, 7vw, 86px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero h1,
.page-hero h1 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 500;
  line-height: 1.02;
  margin: 0;
  letter-spacing: -0.05em;
}

.hero-copy p {
  max-width: 650px;
  font-size: 1.08rem;
}

.hero-card {
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  background-image: linear-gradient(160deg, rgba(136, 215, 255, 0.18), rgba(199, 167, 255, 0.08));
}

.hero-card strong {
  font-size: 6rem;
  line-height: 1;
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 600;
}

.eyebrow.decorated::before {
  content: "✦";
  margin-right: 14px;
  color: var(--accent-warm);
}

.hero-actions,
.filter-row,
.actions,
.form-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button,
button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 600;
  cursor: pointer;
}

.primary-button {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #06101c;
}

.secondary-button,
.ghost-button {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--text);
}

.danger-button {
  background: rgba(255, 116, 116, 0.12);
  color: var(--danger);
  border: 1px solid rgba(255, 116, 116, 0.32);
}

.section {}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 22px;
}

.section-heading h2,
.detail-panel h2,
.admin-header h1 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.6rem);
  letter-spacing: -0.04em;
}

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

.site-main.with-sidebar .photo-grid {
  grid-template-columns: repeat(2, 1fr);
}

.related-photos {
  margin-top: 64px;
}

.related-photos .photo-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.related-photos .photo-card {
  min-height: 210px;
  border-radius: 18px;
}

.related-photos .photo-card span,
.related-photos .photo-card strong {
  left: 14px;
  right: 14px;
}

.related-photos .photo-card span {
  bottom: 48px;
}

.related-photos .photo-card strong {
  bottom: 16px;
  font-size: 1rem;
}

.photo-card {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border-radius: 24px;
  background: #111827;
  border: 1px solid var(--line);
}

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

.photo-card:hover img {
  transform: scale(1.05);
}

.photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.82));
}

.photo-card span,
.photo-card strong {
  position: absolute;
  left: 18px;
  right: 18px;
  z-index: 1;
}

.photo-card span {
  bottom: 56px;
  color: var(--accent);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.photo-card strong {
  bottom: 20px;
  font-size: 1.2rem;
}

.page-hero {
  padding: clamp(30px, 5vw, 48px);
  margin-top: 28px;
}

.page-hero.compact h1 {
  font-size: clamp(2rem, 4.4vw, 3.9rem);
  max-width: 760px;
}

.section-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
  border-bottom: 0;
  margin-bottom: 28px;
}

.section-hero::before {
  content: none;
}

.section-hero::after {
  content: none;
}

.section-hero>* {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.section-hero .section-separator {
  width: min(100%, 760px);
  height: auto;
  max-width: none;
  margin-top: 22px;
}

.section-hero h1 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 3.6vw, 3.4rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 14px 0 16px;
}

.section-hero p:not(.eyebrow) {
  color: #d7e1ee;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  max-width: 640px;
}

.section-hero .filter-row {
  margin-top: 24px;
  max-width: none;
}

.welcome-text {
  background: linear-gradient(145deg, rgba(17, 24, 43, 0.88), rgba(7, 10, 22, 0.78));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 42px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
}

.welcome-text p {
  color: #d6dcea;
  font-size: 1.02rem;
  line-height: 1.8;
  max-width: 70ch;
  margin: 0 0 1.15rem;
}

.welcome-text p:last-child {
  margin-bottom: 0;
}

.welcome-text a {
  color: var(--accent);
  font-weight: 600;
}

.home-hero {
  position: relative;
  grid-column: 1 / -1;
  width: 100%;
  min-height: 220px;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin: 8px 0 0;
  border-radius: 18px;
  background:
    radial-gradient(circle at 34% 90%, rgba(127, 197, 255, 0.24), transparent 2px),
    linear-gradient(90deg, rgba(3, 8, 16, 0.94), rgba(3, 8, 16, 0.56) 52%, rgba(3, 8, 16, 0.18));
  border-bottom: 1px solid rgba(143, 190, 234, 0.22);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.22);
}

.home-hero::after {
  content: "";
  position: absolute;
  left: 24%;
  right: 56%;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d7e8ff, transparent);
  filter: drop-shadow(0 0 14px rgba(127, 197, 255, 0.92));
  z-index: 3;
}

.home-hero__background {
  position: absolute;
  inset: 0;
  -webkit-mask-image: radial-gradient(circle at center, #000 56%, transparent 100%), linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.18) 6%, rgba(0, 0, 0, 0.62) 14%, #000 28%, #000 74%, rgba(0, 0, 0, 0.48) 88%, transparent 100%);
  -webkit-mask-size: 100% 100%, 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-image: radial-gradient(circle at center, #000 56%, transparent 100%), linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.18) 6%, rgba(0, 0, 0, 0.62) 14%, #000 28%, #000 74%, rgba(0, 0, 0, 0.48) 88%, transparent 100%);
  mask-size: 100% 100%, 100% 100%;
  mask-repeat: no-repeat;
}

.home-hero__background::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(3, 8, 16, 1) 0%, rgba(3, 8, 16, 0.98) 12%, rgba(3, 8, 16, 0.88) 22%, rgba(3, 8, 16, 0.42) 52%, rgba(3, 8, 16, 0.16) 74%, rgba(3, 8, 16, 0.58) 100%),
    linear-gradient(180deg, rgba(3, 8, 16, 0.16), rgba(3, 8, 16, 0.5)),
    radial-gradient(circle at right center, rgba(3, 8, 16, 0.12), rgba(3, 8, 16, 0.82) 92%);
}

.home-hero__background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 36%;
  opacity: 0.92;
  filter: saturate(1.05) contrast(1.08);
}

.home-hero__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(600px, 100%);
  padding: clamp(20px, 3vw, 30px) clamp(24px, 4vw, 32px)
}

.home-hero__copy h1 {
  max-width: 680px;
  margin: 14px 0 14px;
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: clamp(2.6rem, 5.4vw, 2.9rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
}

.home-hero__copy h1 span {
  color: var(--accent);
  text-shadow: 0 0 30px rgba(127, 197, 255, 0.3);
}

.home-hero__copy p:not(.eyebrow) {
  margin: 0;
  max-width: 620px;
  color: #d9e4f4;
  font-size: clamp(1rem, 1.3vw, 1.16rem);
  line-height: 1.62;
}

.section-banner {
  min-height: 210px;
  margin: 8px 0 0px;
}

.section-banner__copy {
  width: min(720px, 100%);
}

.section-banner .home-hero__copy h1 {
  font-size: clamp(2.35rem, 4.8vw, 2.8rem);
  line-height: 0.98;
}

.section-banner .home-hero__copy p:not(.eyebrow) {
  max-width: 680px;
}

.section-banner .filter-row {
  margin-top: 24px;
}

.home-panel {
  position: relative;
  grid-column: 1;
  grid-row: 2;
  overflow: hidden;
  border: 1px solid rgba(127, 197, 255, 0.38);
  border-radius: 24px;
  background:
    radial-gradient(circle at 1% 12%, rgba(31, 126, 188, 0.2), transparent 18rem),
    linear-gradient(145deg, rgba(7, 18, 31, 0.86), rgba(4, 10, 19, 0.9));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.025) inset,
    0 0 42px rgba(83, 169, 255, 0.16),
    0 28px 80px rgba(0, 0, 0, 0.34);
}

.home-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 92% 45%, rgba(127, 197, 255, 0.22), transparent 2px),
    radial-gradient(circle at 16% 76%, rgba(127, 197, 255, 0.18), transparent 1px),
    linear-gradient(180deg, transparent 0%, rgba(127, 197, 255, 0.03) 100%);
  pointer-events: none;
}

.home-panel>* {
  position: relative;
  z-index: 1;
}

.home-intro {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(22px, 4vw, 40px);
  align-items: center;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(143, 190, 234, 0.18);
}

.home-intro--background {
  position: relative;
  display: flex;
  align-items: stretch;
  background-position: left center;
  background-size: cover;
  background-repeat: no-repeat;
}

.home-intro__copy-wrap {
  margin-left: auto;
  margin-right: 0;
  width: 100%;
  max-width: 700px;
  display: flex;
  align-items: center;
  padding: 20px 20px 0 160px;
}

.home-intro__lead {
  margin-left: auto;
  font-size: 1.08rem;
}

.home-intro__art {
  min-height: 174px;
  display: grid;
  place-items: center;
  color: rgba(127, 197, 255, 0.38);
  border-radius: 18px;
  background:
    linear-gradient(rgba(127, 197, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 197, 255, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(127, 197, 255, 0.05), rgba(127, 197, 255, 0.01));
  background-size: 34px 34px, 34px 34px, auto;
}

.home-intro__art .icon {
  width: 150px;
  height: 150px;
  stroke-width: 1.05;
}

.home-intro p,
.home-story-section p {
  color: #d9e1ef;
  font-size: 1rem;
  line-height: 1.78;
  margin: 0;
}

.home-intro a,
.home-story-section a {
  color: var(--accent);
  font-weight: 600;
}

.home-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 34px);
  padding: 18px 8px 34px;
  border-bottom: 1px solid rgba(143, 190, 234, 0.18);
}

.home-timeline::before {
  content: "";
  position: absolute;
  left: 32px;
  right: 32px;
  top: 65px;
  height: 1px;
  background: linear-gradient(90deg, rgba(127, 197, 255, 0.06), rgba(127, 197, 255, 0.52) 14%, rgba(127, 197, 255, 0.52) 86%, rgba(127, 197, 255, 0.06));
}

.home-timeline article {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  text-align: center;
  gap: 8px;
}

.home-timeline article::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 43px;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #d7e8ff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.85), 0 0 18px rgba(127, 197, 255, 0.92);
}

.home-timeline span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--accent);
}

.home-timeline .icon {
  width: 22px;
  height: 22px;
}

.home-timeline strong {
  margin-top: 30px;
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 1.5vw, 1.6rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
}

.home-timeline p {
  max-width: 16ch;
  margin: 0;
  color: #c4cede;
  font-size: 0.94rem;
  line-height: 1.6;
}

.home-story {
  display: grid;
  padding: 0px 20px;
}

.home-story-section {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 16px;
  padding: 26px 0;
  border-bottom: 1px solid rgba(143, 190, 234, 0.18);
}

.home-story-section__icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--accent);
}

.home-story-section__icon .icon {
  width: 24px;
  height: 24px;
}

.home-story-section h2 {
  margin: 0 0 10px;
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.home-story-section p+p {
  margin-top: 14px;
}

.home-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 28px 20px 22px;
}

.home-feature-grid article {
  min-height: 130px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 20px;
  border: 1px solid rgba(127, 197, 255, 0.22);
  border-radius: 14px;
  background: rgba(3, 13, 25, 0.54);
}

.home-feature-grid .icon {
  width: 28px;
  height: 28px;
  color: var(--accent);
}

.home-feature-grid strong {
  color: #fff;
  font-size: 0.96rem;
}

.home-feature-grid p {
  margin: 0;
  color: #b9c4d6;
  font-size: 0.8rem;
  line-height: 1.55;
}

.home-contact {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  min-height: 132px;
  margin: 0px 20px 20px;
  padding: 22px 26px;
  border: 1px solid rgba(127, 197, 255, 0.28);
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(4, 14, 28, 0.88), rgba(4, 14, 28, 0.68)),
    url('../img/index2.jpg') right center / cover no-repeat;
}

.home-contact__icon {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  justify-self: center;
  color: #d7e8ff;
  border: 1px solid rgba(127, 197, 255, 0.52);
  border-radius: 999px;
  box-shadow: 0 0 34px rgba(127, 197, 255, 0.28), inset 0 0 24px rgba(127, 197, 255, 0.12);
}

.home-contact__icon .icon {
  width: 42px;
  height: 42px;
}

.home-contact p {
  margin: 0 0 10px;
  color: #c3ccda;
  font-size: 0.92rem;
}

.home-contact a {
  width: min(330px, 100%);
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 22px;
  color: var(--accent);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 600;
  border: 1px solid rgba(127, 197, 255, 0.24);
  border-radius: 12px;
  background: rgba(3, 13, 25, 0.64);
}

.home-contact a:hover {
  color: var(--accent-2);
  border-color: rgba(127, 197, 255, 0.48);
}

.home-contact a .icon {
  width: 22px;
  height: 22px;
}

.category-grid,
.equipment-grid,
.link-grid,
.admin-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0px auto 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.site-main.with-sidebar .category-grid,
.site-main.with-sidebar .equipment-grid,
.site-main.with-sidebar .link-grid {
  width: 100%;
}

.site-main.with-sidebar .equipment-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.category-card {
  position: relative;
  min-height: 240px;
  padding: 28px;
  border-radius: 28px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: end;
  overflow: hidden;
  background-color: #101827;
  background-position: center;
  background-size: cover;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 7, 19, 0.12), rgba(5, 7, 19, 0.86));
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 22% 18%, rgba(136, 215, 255, 0.22), transparent 18rem);
}

.category-card.solar {
  background-image: url('../img/ssolar.png');
}

.category-card.deep {
  background-image: url('../img/cprofundo.png');
}

.category-card span,
.category-card strong {
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.category-card span {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.category-card strong {
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  max-width: 420px;
}

.filter-row {
  margin-top: 24px;
}

.filter-row a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.filter-row a:hover {
  color: var(--text);
  border-color: rgba(127, 197, 255, 0.45);
}

.filter-row a.active {
  color: #06111f;
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 600;
}

.gallery-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(34px, 5vw, 58px);
  background:
    linear-gradient(90deg, rgba(3, 8, 17, 0.92) 0%, rgba(3, 8, 17, 0.68) 48%, rgba(3, 8, 17, 0.25) 100%),
    url('../img/background.png') center center / cover no-repeat;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 24px 80px rgba(0, 0, 0, 0.34);
}

.gallery-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 12% 78%, rgba(127, 197, 255, 0.28), transparent 12rem);
  pointer-events: none;
}

.gallery-hero>div {
  position: relative;
  z-index: 1;
  max-width: 660px;
}

.gallery-hero h1 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4.4vw, 3.8rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 16px 0 22px;
}

.gallery-hero p:not(.eyebrow) {
  color: #d9e1ee;
  max-width: 560px;
  font-size: 1.08rem;
  line-height: 1.75;
}

.gallery-entry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 0px;
}

.gallery-entry-card {
  position: relative;
  min-height: 390px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  background-color: #07101d;
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 24px 80px rgba(0, 0, 0, 0.24);
}

.gallery-entry-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 8, 17, 0.03) 0%, rgba(2, 8, 17, 0.42) 48%, rgba(2, 8, 17, 0.94) 100%);
}

.gallery-entry-card.solar {
  background-image: url('../img/ssolar.png');
}

.gallery-entry-card.deep {
  background-image: url('../img/cprofundo.png');
}

.gallery-entry-card>* {
  position: relative;
  z-index: 1;
}

.gallery-entry-card .entry-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(127, 197, 255, 0.44);
  border-radius: 50%;
  color: var(--accent);
  margin-bottom: 14px;
  background: rgba(1, 9, 18, 0.52);
}

.gallery-entry-card .entry-icon .icon {
  width: 22px;
  height: 22px;
}

.gallery-entry-card strong {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 500;
  line-height: 1;
}

.gallery-entry-card p {
  max-width: 340px;
  color: #d5deea;
  margin: 14px 0 20px;
}

.gallery-entry-card em {
  color: var(--accent);
  font-style: normal;
  font-weight: 600;
}

.gallery-entry-card em::after {
  content: "›";
  margin-left: 10px;
  font-size: 1.4em;
  vertical-align: -0.08em;
}

.gallery-landing-hero {
  grid-column: 1 / -1;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  min-height: 360px;
  border: 1px solid rgba(127, 197, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 28px 80px rgba(0, 0, 0, 0.34);
}

.gallery-landing-hero::after {
  left: 52%;
  right: 10%;
}

.gallery-landing-hero__background {
  position: absolute;
  inset: 0;
}

.gallery-landing-hero__background::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(2, 7, 16, 0.98) 0%, rgba(2, 7, 16, 0.96) 18%, rgba(2, 7, 16, 0.74) 40%, rgba(2, 7, 16, 0.32) 66%, rgba(2, 7, 16, 0.78) 100%),
    linear-gradient(180deg, rgba(2, 7, 16, 0.2), rgba(2, 7, 16, 0.58));
}

.gallery-landing-hero__background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.06) contrast(1.06);
}

.gallery-landing-hero__copy {
  width: min(620px, 100%);
}

.gallery-landing-hero__copy h1 {
  font-size: clamp(2.8rem, 5.2vw, 4.3rem);
  line-height: 0.96;
}

.gallery-landing-hero__copy p:not(.eyebrow) {
  max-width: 560px;
}

.gallery-landing-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.gallery-landing-stat {
  min-width: 162px;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(127, 197, 255, 0.22);
  border-radius: 16px;
  background: rgba(3, 10, 20, 0.54);
  backdrop-filter: blur(12px);
}

.gallery-landing-stat__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(10, 28, 52, 0.78);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(127, 197, 255, 0.14);
}

.gallery-landing-stat__icon .icon {
  width: 20px;
  height: 20px;
}

.gallery-landing-stat strong,
.gallery-landing-stat span {
  display: block;
}

.gallery-landing-stat strong {
  font-size: 1.55rem;
  line-height: 1;
}

.gallery-landing-stat span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.gallery-landing-grid {
  display: grid;
  gap: 22px;
  margin-top: 22px;
}

.gallery-landing-categories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.gallery-category-card,
.gallery-featured-showcase {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 100% 0%, rgba(15, 91, 128, 0.16), transparent 16rem),
    linear-gradient(145deg, rgba(5, 14, 26, 0.76), rgba(2, 8, 17, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 24px 80px rgba(0, 0, 0, 0.28);
}

.gallery-category-card {
  min-height: 620px;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
}

.gallery-category-card__image,
.gallery-category-card__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.gallery-category-card__image img {
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.gallery-category-card__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 8, 17, 0.14) 0%, rgba(2, 8, 17, 0.18) 24%, rgba(2, 8, 17, 0.58) 64%, rgba(2, 8, 17, 0.96) 100%),
    linear-gradient(90deg, rgba(2, 8, 17, 0.18) 0%, transparent 40%);
}

.gallery-category-card__content {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100%;
  padding: 38px 28px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
}

.gallery-category-card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  margin-bottom: auto;
  background: rgba(6, 11, 18, 0.5);
  backdrop-filter: blur(8px);
}

.gallery-category-card__icon .icon {
  width: 24px;
  height: 24px;
}

.gallery-category-card--solar {
  border-color: rgba(255, 158, 59, 0.34);
}

.gallery-category-card--solar .gallery-category-card__icon {
  color: #ffb35a;
  box-shadow: inset 0 0 0 1px rgba(255, 158, 59, 0.44), 0 0 0 4px rgba(255, 158, 59, 0.08);
}

.gallery-category-card--deep {
  border-color: rgba(127, 197, 255, 0.28);
}

.gallery-category-card--deep .gallery-category-card__icon {
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(127, 197, 255, 0.34), 0 0 0 4px rgba(127, 197, 255, 0.08);
}

.gallery-category-card strong {
  display: block;
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.3vw, 2.8rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}

.gallery-category-card p {
  max-width: 360px;
  margin: 16px 0 0;
  color: #d5deea;
  font-size: 1rem;
  line-height: 1.5;
}

.gallery-category-card__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 60px;
  margin-top: 30px;
  padding: 0 24px;
  border-radius: 14px;
  border: 1px solid currentColor;
  background: rgba(5, 10, 18, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.gallery-category-card__action em {
  font-style: normal;
  font-weight: 600;
  font-size: 0.95rem;
}

.gallery-category-card__action .icon {
  width: 18px;
  height: 18px;
}

.gallery-category-card--solar .gallery-category-card__action {
  color: #ffb35a;
  background: linear-gradient(135deg, rgba(255, 158, 59, 0.1), rgba(255, 158, 59, 0.02));
}

.gallery-category-card--deep .gallery-category-card__action {
  color: var(--accent);
  background: linear-gradient(135deg, rgba(127, 197, 255, 0.12), rgba(127, 197, 255, 0.02));
}

.gallery-category-card:hover .gallery-category-card__action {
  transform: translateY(-1px);
}

.gallery-category-card:hover .gallery-category-card__image img {
  transform: scale(1.02);
}

.gallery-featured-showcase {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.gallery-featured-stack {
  display: grid;
  gap: 18px;
}

.gallery-featured-block {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(127, 197, 255, 0.16);
  min-height: 430px;
  background: #03040a;
}

.gallery-featured-block::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 8, 17, 0.12) 0%, rgba(2, 8, 17, 0.2) 38%, rgba(2, 8, 17, 0.92) 100%),
    linear-gradient(90deg, rgba(2, 8, 17, 0.38) 0%, rgba(2, 8, 17, 0.08) 52%, rgba(2, 8, 17, 0.5) 100%);
}

.gallery-featured-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-featured-block__content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
}

.gallery-featured-block__eyebrow,
.gallery-featured-block strong,
.gallery-featured-block p,
.gallery-featured-block__action {
  display: block;
}

.gallery-featured-block__eyebrow {
  margin-bottom: 0;
  color: #9ed2ff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.gallery-featured-block strong {
  margin-top: auto;
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.8vw, 2.6rem);
  font-weight: 500;
  line-height: 1.05;
}

.gallery-featured-block p {
  max-width: 780px;
  margin: 14px 0 0;
  color: #d5deea;
  font-size: 1rem;
  line-height: 1.62;
}

.gallery-featured-block__action {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 56px;
  margin-top: 24px;
  padding: 0 20px;
  border-radius: 14px;
  border: 1px solid rgba(127, 197, 255, 0.44);
  color: var(--accent);
  background: linear-gradient(135deg, rgba(127, 197, 255, 0.14), rgba(127, 197, 255, 0.04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.gallery-featured-block__action em {
  font-style: normal;
  font-weight: 600;
}

.gallery-featured-block__action .icon {
  width: 18px;
  height: 18px;
}

.gallery-featured-block:hover img {
  transform: scale(1.02);
}

.gallery-featured-block:hover .gallery-featured-block__action {
  transform: translateY(-1px);
}

.photo-detail header {
  margin: 48px 0 24px;
}

.photo-detail h1 {
  font-size: clamp(2.2rem, 5.6vw, 5rem);
  letter-spacing: -0.06em;
  margin: 0;
}

.photo-main-link {
  position: relative;
  display: block;
  cursor: zoom-in;
}

.photo-main-link span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(3, 4, 10, 0.72);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 0.86rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.photo-main-link:hover span {
  opacity: 1;
  transform: translateY(0);
}

.photo-main {
  width: 100%;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 28px;
  background: #03040a;
  border: 1px solid var(--line);
}

.detail-grid,
.split-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.photo-detail .detail-grid {
  margin-top: 34px;
}

.detail-panel,
.comment,
.empty-state {
  padding: 26px;
}

.narrow {
  max-width: 840px;
}

.comment {
  margin-bottom: 14px;
}

.comment time {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 4px;
}

.comment-chip {
  display: block;
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.comment-chip span {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.equipment-featured-wrap {}

.equipment-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.equipment-card {
  position: relative;
  display: grid;
  gap: 20px;
  padding: 18px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

a.equipment-card:hover {
  transform: translateY(-3px);
  border-color: rgba(127, 197, 255, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 30px 90px rgba(0, 0, 0, 0.42);
}

a.equipment-card:hover .equipment-arrow {
  background: rgba(127, 197, 255, 0.16);
  border-color: rgba(127, 197, 255, 0.6);
}

.equipment-card-featured {
  grid-template-columns: minmax(320px, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
}

.equipment-card-compact {
  grid-template-columns: minmax(0, 168px) minmax(0, 1fr);
  grid-template-areas:
    "image content"
    "footer footer";
  align-items: start;
  column-gap: 18px;
  row-gap: 16px;
}

.equipment-card-compact .equipment-image-wrap {
  grid-area: image;
}

.equipment-card-compact .equipment-content {
  grid-area: content;
}

.equipment-card-footer {
  grid-area: footer;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.equipment-card-footer .equipment-specs {
  flex: 1;
  margin-top: 0;
}

.equipment-card-footer .equipment-arrow {
  position: static;
  flex: none;
  margin-left: auto;
}

.equipment-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #07101d;
}

.equipment-image-wrap img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.equipment-card-compact .equipment-image-wrap {
  align-self: stretch;
  min-height: 150px;
}

.equipment-card-compact .equipment-image-wrap img {
  min-height: 150px;
}

.equipment-card-featured .equipment-image-wrap {
  min-height: 320px;
}

.equipment-card-featured .equipment-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 8, 17, 0.02) 0%, rgba(2, 8, 17, 0.18) 62%, rgba(2, 8, 17, 0.54) 100%);
}

.equipment-badge {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 215, 161, 0.38);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(20, 15, 8, 0.82);
  color: var(--accent-warm);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.equipment-badge .badge-icon {
  width: 14px;
  height: 14px;
}

.equipment-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.equipment-category {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.equipment-category-icon {
  display: block;
  width: 14px;
  height: 14px;
  flex: none;
}

.equipment-content h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 2vw, 2.1rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.equipment-card-compact .equipment-content h2 {
  font-size: clamp(1.12rem, 1.4vw, 1.4rem);
  line-height: 1.16;
}

.equipment-content p {
  margin: 14px 0 0;
  color: #d3dcea;
  font-size: 0.95rem;
  line-height: 1.6;
}

.equipment-card-compact .equipment-content p {
  margin-top: 8px;
  font-size: 0.88rem;
  overflow: hidden;
  white-space: nowrap;
}

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

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

.equipment-specs-count-1 {
  max-width: calc(50% - 4px);
}

.equipment-spec {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(143, 190, 234, 0.16);
  border-radius: 12px;
  padding: 9px 10px;
  background: rgba(1, 9, 18, 0.38);
}

.equipment-spec .spec-icon {
  flex: none;
  display: flex;
  align-items: center;
  color: var(--accent);
}

.equipment-spec .spec-icon .icon {
  width: 15px;
  height: 15px;
}

.equipment-spec .spec-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.equipment-spec strong,
.equipment-spec small {
  display: block;
}

.equipment-spec strong {
  color: #eff5ff;
  font-size: 0.85rem;
  line-height: 1.15;
  overflow-wrap: break-word;
}

.equipment-spec small {
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-transform: uppercase;
  margin-top: 3px;
}

.equipment-arrow {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(127, 197, 255, 0.38);
  color: var(--accent);
  background: rgba(3, 10, 18, 0.82);
}

.equipment-arrow .icon {
  width: 18px;
  height: 18px;
}

.detail-back {
  margin: 6px 0 20px;
}

.detail-back a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 15px 6px 7px;
  color: #d9e4f4;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid rgba(127, 197, 255, 0.22);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(127, 197, 255, 0.09), rgba(3, 10, 20, 0.52));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.detail-back a:hover {
  color: #ffffff;
  border-color: rgba(127, 197, 255, 0.52);
  background: linear-gradient(135deg, rgba(127, 197, 255, 0.16), rgba(3, 10, 20, 0.72));
  box-shadow: 0 10px 28px rgba(20, 92, 150, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.detail-back .back-chevron {
  width: 30px;
  height: 30px;
  padding: 7px;
  color: var(--accent);
  border: 1px solid rgba(127, 197, 255, 0.3);
  border-radius: 50%;
  background: rgba(127, 197, 255, 0.08);
  transform: rotate(180deg);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.detail-back a:hover .back-chevron {
  background: rgba(127, 197, 255, 0.16);
  transform: translateX(-2px) rotate(180deg);
}

.equipment-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 28px;
  align-items: start;
}

.equipment-detail-media {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #07101d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 24px 80px rgba(0, 0, 0, 0.32);
}

.equipment-detail-media a,
.equipment-detail-media img {
  display: block;
  width: 100%;
}

.equipment-detail-media img {
  height: auto;
}

.equipment-detail-body {
  display: flex;
  flex-direction: column;
  padding-top: 6px;
}

.equipment-detail-body h1 {
  margin: 8px 0 0;
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.4vw, 3.1rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.equipment-detail-lead {
  margin: 18px 0 0;
  color: #d3dcea;
  font-size: 1.05rem;
  line-height: 1.6;
}

.equipment-detail-specs {
  margin-top: 26px;
}

.equipment-detail-description {
  margin-top: 28px;
  padding: 30px;
}

.equipment-detail-description h2 {
  margin: 0 0 16px;
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.equipment-detail-description div {
  color: #d3dcea;
  line-height: 1.75;
}

.resource-card {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.resource-card span {
  color: var(--muted);
}

.admin-body {
  display: grid;
  grid-template-columns: 280px 1fr;
}

.admin-sidebar {
  min-height: 100vh;
  position: sticky;
  top: 0;
  padding: 28px;
  background: rgba(3, 4, 10, 0.7);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.admin-nav {
  flex-direction: column;
}

.admin-main {
  width: 100%;
  padding: 34px;
  margin: 0;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 24px;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.admin-toolbar input[type="search"] {
  max-width: 480px;
  flex: 1 1 320px;
}

.admin-grid {
  width: 100%;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
}

.admin-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-card span,
.muted {
  color: var(--muted);
}

.table-card {
  overflow: auto;
}

.table-actions {
  white-space: nowrap;
}

.table-actions a,
.table-actions button {
  font: inherit;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.actions form {
  display: inline;
}

.actions button {
  padding: 0;
  background: transparent;
  color: var(--danger);
}


.table-actions {
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 8px;
}

.table-actions form {
  display: flex;
  margin: 0;
}

.table-actions a,
.table-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 8px 11px;
  border: 1px solid rgba(127, 197, 255, 0.24);
  border-radius: 10px;
  background: rgba(127, 197, 255, 0.07);
  color: #b9dcff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.table-actions a::before,
.table-actions button::before {
  content: "";
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.table-actions a::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M12 20h9M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M12 20h9M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/svg%3E");
}

.table-actions button {
  border-color: rgba(255, 116, 116, 0.22);
  background: rgba(255, 116, 116, 0.06);
  color: #ff9b9b;
}

.table-actions button::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3 6h18M8 6V4h8v2m3 0-1 14H6L5 6m4 4v6m6-6v6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3 6h18M8 6V4h8v2m3 0-1 14H6L5 6m4 4v6m6-6v6'/%3E%3C/svg%3E");
}

.table-actions a:hover {
  color: #e2f1ff;
  border-color: rgba(127, 197, 255, 0.5);
  background: rgba(127, 197, 255, 0.14);
  box-shadow: 0 8px 22px rgba(34, 118, 184, 0.14);
  transform: translateY(-1px);
}

.table-actions button:hover {
  color: #ffd0d0;
  border-color: rgba(255, 116, 116, 0.48);
  background: rgba(255, 116, 116, 0.14);
  box-shadow: 0 8px 22px rgba(180, 45, 45, 0.14);
  transform: translateY(-1px);
}

.table-actions a:active,
.table-actions button:active {
  transform: translateY(0);
}

.form-card {
  padding: 24px;
  display: grid;
  gap: 16px;
}

.form-card.wide {
  max-width: 920px;
}

.admin-form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.admin-form-header h2 {
  margin: 0;
}

.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.pagination {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.pagination a {
  min-width: 42px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
}

.pagination a.active {
  color: #06111f;
  background: var(--accent);
  border-color: var(--accent);
}

.spec-builder {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.spec-builder__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.spec-builder__header label {
  color: var(--muted);
  font-weight: 700;
}

.spec-builder__list {
  display: grid;
  gap: 12px;
}

.spec-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.spec-row .danger-button {
  white-space: nowrap;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
}

select option {
  color: #111827;
  background: #ffffff;
}

textarea {
  resize: vertical;
}

.check {
  display: flex;
  align-items: center;
  flex-direction: row;
}

.check input {
  width: auto;
}

.stack-list {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.confirm-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  z-index: 1000;
}

.confirm-modal[hidden] {
  display: none;
}

.confirm-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 18, 0.72);
}

.confirm-modal__panel {
  position: relative;
  width: min(460px, 100%);
  padding: 24px;
  border-radius: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  display: grid;
  gap: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.confirm-modal__panel h2 {
  margin: 0;
}

.alert {
  background: rgba(255, 116, 116, 0.14);
  border: 1px solid rgba(255, 116, 116, 0.28);
  color: #ffd2d2;
  padding: 12px 14px;
  border-radius: 16px;
  margin-bottom: 16px;
}

.auth-body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
}

.auth-card {
  width: min(420px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 32px;
  display: grid;
  gap: 16px;
}

@media (max-width: 860px) {

  .site-header,
  .site-footer,
  .section-heading,
  .admin-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-copy {
    text-align: left;
  }

  .hero,
  .detail-grid,
  .split-panel,
  .category-grid,
  .gallery-landing-categories,
  .link-grid,
  .admin-grid,
  .site-main.with-sidebar {
    grid-template-columns: 1fr;
  }

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

  .site-main.with-sidebar .photo-grid {
    grid-template-columns: 1fr;
  }

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

  .equipment-card {
    grid-template-columns: 1fr;
  }

  .equipment-grid,
  .site-main.with-sidebar .equipment-grid,
  .equipment-card-featured,
  .equipment-card-compact {
    grid-template-columns: 1fr;
  }

  .equipment-card-compact {
    grid-template-areas:
      "image"
      "content"
      "footer";
  }

  .equipment-detail {
    grid-template-columns: 1fr;
  }

  .spec-builder__header {
    flex-direction: column;
    align-items: stretch;
  }

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

  .equipment-card-compact .equipment-image-wrap img {
    min-height: 240px;
  }

  .main-nav {
    font-size: 0.82rem;
    gap: 18px;
  }

  .site-sidebar {
    display: none;
  }

  .site-main.with-sidebar .site-sidebar {
    display: grid;
    position: static;
    grid-column: 1;
    grid-row: auto;
    margin-top: 28px;
  }

  .home-hero {
    grid-column: 1;
    min-height: 0;
    margin-top: 0;
  }

  .home-panel {
    grid-column: 1;
    grid-row: auto;
  }

  .home-hero__copy {
    width: 100%;
    padding: 28px 22px 24px;
  }

  .gallery-landing-hero {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    min-height: 0;
  }

  .gallery-landing-stat {
    min-width: min(100%, 220px);
  }

  .gallery-featured-showcase {
    padding: 0;
  }

  .gallery-featured-block {
    min-height: 320px;
  }

  .gallery-featured-block__content {
    padding: 22px;
  }

  .home-hero__background img {
    object-position: center;
  }

  .home-hero__background::before {
    background:
      linear-gradient(180deg, rgba(3, 8, 16, 0.34), rgba(3, 8, 16, 0.82)),
      linear-gradient(90deg, rgba(3, 8, 16, 0.76), rgba(3, 8, 16, 0.22) 62%, rgba(3, 8, 16, 0.34));
  }

  .home-hero__background {
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.12), #000 16%, #000 84%, rgba(0, 0, 0, 0.12));
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.12), #000 16%, #000 84%, rgba(0, 0, 0, 0.12));
  }

  .home-intro,
  .home-contact {
    grid-template-columns: 1fr;
  }

  .home-intro__copy-wrap {
    padding-left: 20px;
  }

  .home-intro__art {
    min-height: 130px;
  }

  .home-intro__art .icon {
    width: 112px;
    height: 112px;
  }

  .home-timeline {
    grid-template-columns: 1fr;
    gap: 0;
    padding-inline: 0;
  }

  .home-timeline::before {
    left: 20px;
    right: auto;
    top: 34px;
    bottom: 34px;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, transparent, rgba(127, 197, 255, 0.72), transparent);
  }

  .home-timeline article {
    grid-template-columns: 40px minmax(0, 1fr);
    justify-items: start;
    align-items: start;
    text-align: left;
    padding: 12px 0;
    gap: 6px 14px;
  }

  .home-timeline article::before {
    content: none;
  }

  .home-timeline span {
    grid-row: span 2;
    width: 40px;
    height: 34px;
  }

  .home-timeline strong,
  .home-timeline p {
    max-width: none;
  }

  .home-timeline strong {
    margin-top: 0;
    font-size: clamp(1.0rem, 2vw, 1rem);
  }

  .home-timeline p {
    font-size: 0.92rem;
  }

  .home-story-section {
    grid-template-columns: 1fr;
    gap: 10px;
  }

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

  .home-contact {
    gap: 16px;
    text-align: center;
  }

  .home-contact a {
    margin: 0 auto;
  }

  .gallery-category-card {
    min-height: 420px;
  }

  .gallery-category-card__content {
    padding: 24px;
  }

  .gallery-category-card__icon {
    margin-bottom: 56px;
  }

  .admin-body {
    display: block;
  }

  .admin-sidebar {
    position: static;
    min-height: auto;
  }

  .admin-main {
    padding: 20px;
  }

  .hero {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .brand {
    letter-spacing: 0.22em;
  }

  .home-panel {
    padding: 20px;
    border-radius: 20px;
  }

  .home-feature-grid {
    grid-template-columns: 1fr;
  }

  .related-photos .photo-grid {
    grid-template-columns: 1fr;
  }

  .home-contact {
    padding: 20px;
  }

  .sidebar-photo {
    grid-template-columns: 96px 1fr 16px;
    gap: 12px;
  }

  .sidebar-photo img {
    width: 96px;
    height: 68px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .detail-back a,
  .detail-back .back-chevron {
    transition: none;
  }

  .detail-back a:hover {
    transform: none;
  }

  .detail-back a:hover .back-chevron {
    transform: rotate(180deg);
  }
}


.mb-20 {
  margin-bottom: 20px !important;
}

.login-logo {
  width: 50px;
}

.admin-logo {
  width: 30px;
}
