:root {
  --ink: #050607;
  --ink-soft: #17191c;
  --paper: #f7f7f4;
  --paper-strong: #ffffff;
  --paper-warm: #fbfaf4;
  --line: #e2ded3;
  --muted: #65686d;
  --yellow: #f6c100;
  --yellow-soft: #ffe68a;
  --yellow-deep: #c99400;
  --danger: #b42318;
  --success: #1e7c4d;
  --white: #ffffff;
  --shadow: 0 20px 48px rgba(5, 6, 7, 0.13);
  --shadow-strong: 0 28px 70px rgba(5, 6, 7, 0.25);
  --radius: 8px;
  --container: min(1180px, calc(100% - 40px));
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px max(20px, calc((100vw - 1180px) / 2));
  color: var(--white);
  background: linear-gradient(180deg, rgba(5, 6, 7, 0.82), rgba(5, 6, 7, 0));
  transition: background 260ms cubic-bezier(0.22, 1, 0.36, 1), border-color 260ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 260ms cubic-bezier(0.22, 1, 0.36, 1), backdrop-filter 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-header.is-solid {
  background: rgba(5, 6, 7, 0.94);
  border-bottom: 1px solid rgba(246, 193, 0, 0.18);
  box-shadow: 0 16px 36px rgba(5, 6, 7, 0.28);
  backdrop-filter: blur(16px);
}

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

.brand-logo {
  width: 56px;
  height: 56px;
  padding: 4px;
  border: 1px solid rgba(246, 193, 0, 0.55);
  border-radius: var(--radius);
  background: var(--white);
  object-fit: contain;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand strong {
  font-size: 1rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand small {
  margin-top: 4px;
  color: var(--yellow);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 0.94rem;
  font-weight: 800;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.88);
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: var(--yellow);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.admin-link {
  color: var(--yellow) !important;
}

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid rgba(246, 193, 0, 0.45);
  border-radius: var(--radius);
  background: rgba(5, 6, 7, 0.42);
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--yellow);
}

.hero {
  position: relative;
  min-height: 86vh;
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: 140px 0 72px;
  color: var(--white);
  isolation: isolate;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--yellow), transparent 62%);
  content: "";
  z-index: 1;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 6, 7, 0.94) 0%, rgba(5, 6, 7, 0.72) 42%, rgba(5, 6, 7, 0.22) 100%),
    linear-gradient(0deg, rgba(5, 6, 7, 0.78), rgba(5, 6, 7, 0.08) 42%);
}

.hero-content {
  width: var(--container);
  margin: 0 auto;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

.no-break {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
}

.hero h1 {
  max-width: 860px;
  font-size: clamp(2.8rem, 7vw, 6.2rem);
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-text {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 1.4vw, 1.24rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 900;
  line-height: 1.1;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 220ms cubic-bezier(0.22, 1, 0.36, 1), background 220ms cubic-bezier(0.22, 1, 0.36, 1), border-color 220ms cubic-bezier(0.22, 1, 0.36, 1), color 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

.button.is-loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.button.is-loading::after {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 3px solid currentColor;
  border-top-color: transparent;
  border-radius: 999px;
  color: var(--ink);
  content: "";
  animation: buttonSpin 720ms linear infinite;
}

.button-secondary.is-loading::after,
.danger-button.is-loading::after {
  color: var(--white);
}

@keyframes buttonSpin {
  to {
    transform: rotate(360deg);
  }
}

.button-primary {
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 0 14px 30px rgba(246, 193, 0, 0.26);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--yellow-soft);
}

.button-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  color: var(--yellow);
  border-color: var(--yellow);
  background: rgba(246, 193, 0, 0.08);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 160px));
  gap: 14px;
  max-width: 550px;
  margin: 42px 0 0;
}

.hero-stats div {
  padding: 16px;
  border: 1px solid rgba(246, 193, 0, 0.22);
  border-radius: var(--radius);
  background: rgba(5, 6, 7, 0.46);
  backdrop-filter: blur(8px);
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), border-color 260ms cubic-bezier(0.22, 1, 0.36, 1), background 260ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-stats div:hover {
  border-color: rgba(246, 193, 0, 0.58);
  background: rgba(5, 6, 7, 0.58);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
  transform: translateY(-3px);
}

.hero-stats dt {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--yellow);
  font-size: 1.4rem;
  font-weight: 950;
  line-height: 1;
}

.hero-stats dt::before {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  background: var(--yellow);
  content: "";
}

.hero-stats div:nth-child(1) dt::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat;
}

.hero-stats div:nth-child(2) dt::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-5.2 7-12a7 7 0 0 0-14 0c0 6.8 7 12 7 12Z'/%3E%3Ccircle cx='12' cy='9' r='2.2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-5.2 7-12a7 7 0 0 0-14 0c0 6.8 7 12 7 12Z'/%3E%3Ccircle cx='12' cy='9' r='2.2'/%3E%3C/svg%3E") center / contain no-repeat;
}

.hero-stats div:nth-child(3) dt::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 20c4-3 2-7 6-8s5-2 6-8'/%3E%3Cpath d='M6 20h4'/%3E%3Cpath d='M16 4h4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 20c4-3 2-7 6-8s5-2 6-8'/%3E%3Cpath d='M6 20h4'/%3E%3Cpath d='M16 4h4'/%3E%3C/svg%3E") center / contain no-repeat;
}

.hero-stats dd {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
}

.section {
  padding: 88px 0;
}

.section-inner {
  width: var(--container);
  margin: 0 auto;
}

.intro {
  padding: 58px 0;
  color: var(--white);
  background: var(--ink);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 42px;
  align-items: start;
}

.intro h2,
.section-heading h2,
.commitments h2,
.contact-copy h2,
.admin-shell h1 {
  font-size: clamp(2rem, 4vw, 3.8rem);
  letter-spacing: 0;
}

.intro p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.08rem;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-heading p:last-child,
.commitments p,
.contact-copy > p {
  color: var(--muted);
  font-size: 1.06rem;
}

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

.service-card {
  position: relative;
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
  box-shadow: 0 14px 32px rgba(5, 6, 7, 0.06);
}

.service-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--yellow);
  content: "";
}

.card-number {
  display: inline-block;
  margin-bottom: 40px;
  color: var(--yellow-deep);
  font-weight: 950;
}

.service-card h3 {
  color: var(--ink);
  font-size: 1.28rem;
}

.service-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.commitments {
  color: var(--white);
  background:
    linear-gradient(90deg, var(--ink) 0%, var(--ink-soft) 100%);
}

.commitments-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 50px;
  align-items: center;
}

.commitments .section-kicker {
  color: var(--yellow);
}

.commitments p {
  color: rgba(255, 255, 255, 0.74);
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 20px 20px 20px 56px;
  border: 1px solid rgba(246, 193, 0, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
}

.check-list li::before {
  position: absolute;
  left: 22px;
  top: 20px;
  width: 18px;
  height: 18px;
  border: 2px solid var(--yellow);
  border-radius: 50%;
  content: "";
}

.check-list li::after {
  position: absolute;
  left: 28px;
  top: 25px;
  width: 6px;
  height: 10px;
  border-right: 2px solid var(--yellow);
  border-bottom: 2px solid var(--yellow);
  content: "";
  transform: rotate(40deg);
}

.gallery-section {
  background: #f0efeb;
}

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

.gallery-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
  box-shadow: 0 14px 34px rgba(5, 6, 7, 0.08);
  transform: translateY(0);
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), border-color 280ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 280ms cubic-bezier(0.22, 1, 0.36, 1), background 280ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.project-card {
  display: grid;
  width: 100%;
  min-width: 0;
  padding: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.project-card:hover,
.project-card:focus-visible {
  border-color: var(--yellow-deep);
  box-shadow: 0 22px 48px rgba(5, 6, 7, 0.16);
  outline: none;
  transform: translateY(-4px);
}

.project-card-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ink);
}

.project-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1);
  transition: opacity 520ms cubic-bezier(0.22, 1, 0.36, 1), transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card-media img.is-active,
.project-card-media img:first-child:last-child {
  opacity: 1;
}

.project-card:hover .project-card-media img.is-active,
.project-card:focus-visible .project-card-media img.is-active {
  transform: scale(1.045);
}

.project-photo-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--yellow);
  font-size: 0.74rem;
  font-weight: 950;
}

.project-card-caption {
  display: block;
  min-height: 76px;
  padding: 16px;
  border-top: 3px solid var(--yellow);
}

.project-card-caption strong {
  display: block;
  font-size: 1rem;
  line-height: 1.2;
  transition: color 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover .project-card-caption strong,
.project-card:focus-visible .project-card-caption strong {
  color: var(--yellow-deep);
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  animation: modalFadeIn 180ms ease-out both;
}

.project-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 7, 0.78);
  backdrop-filter: blur(8px);
}

.project-modal-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.86fr);
  gap: 0;
  width: min(1040px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: hidden;
  border: 1px solid rgba(246, 193, 0, 0.22);
  border-radius: var(--radius);
  background: var(--paper-strong);
  box-shadow: var(--shadow-strong);
  animation: modalPanelIn 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.project-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(5, 6, 7, 0.16);
  border-radius: 999px;
  color: var(--ink);
  background: var(--yellow);
  cursor: pointer;
  font-size: 1.7rem;
  font-weight: 900;
  display: grid;
  place-items: center;
  line-height: 1;
  transition: background 180ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-modal-close-icon {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
  transform-origin: 50% 50%;
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-modal-close-icon::before,
.project-modal-close-icon::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  transform-origin: 50% 50%;
}

.project-modal-close-icon::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.project-modal-close-icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.project-modal-close:hover,
.project-modal-close:focus-visible {
  background: var(--yellow-soft);
  box-shadow: 0 8px 18px rgba(5, 6, 7, 0.18);
}

.project-modal-close:hover .project-modal-close-icon,
.project-modal-close:focus-visible .project-modal-close-icon {
  transform: rotate(90deg) scale(1.04);
}

.project-modal-media {
  display: grid;
  gap: 10px;
  align-content: start;
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  padding: 18px;
  background: #111214;
}

.project-modal-media img {
  width: 100%;
  max-height: 520px;
  border-radius: 6px;
  object-fit: contain;
  background: #050607;
}

.project-modal-media img:not(:first-child) {
  max-height: 220px;
}

.project-modal-content {
  display: grid;
  grid-template-rows: auto auto minmax(0, auto) auto;
  align-content: start;
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  padding: 52px 30px 30px;
}

.project-modal-content h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.project-modal-description {
  max-height: var(--project-description-collapsed-height, 210px);
  overflow: hidden;
  color: var(--muted);
  white-space: pre-line;
  overflow-wrap: anywhere;
  word-break: break-word;
  transition: max-height 280ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: max-height;
}

.project-modal-description.is-expanded {
  overflow: hidden;
}

.project-modal-more {
  justify-self: start;
  margin-top: 12px;
  padding: 0;
  border: 0;
  color: var(--yellow-deep);
  background: transparent;
  cursor: pointer;
  font-weight: 950;
  transition: color 180ms cubic-bezier(0.22, 1, 0.36, 1), transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-modal-more:hover,
.project-modal-more:focus-visible {
  color: var(--ink);
  transform: translateX(2px);
}

.has-modal-open {
  overflow: hidden;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalPanelIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.empty-gallery {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px dashed #bbb5a7;
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.68);
}

.contact-section {
  background: var(--paper-strong);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1fr);
  gap: 56px;
  align-items: start;
}

.contact-quick {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.contact-form,
.stack-form,
.upload-panel {
  display: grid;
  gap: 16px;
}

.contact-form label,
.stack-form label,
.upload-panel label,
.admin-gallery,
.admin-panel {
  min-width: 0;
}

.contact-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 26px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--yellow);
  border-radius: var(--radius);
  background: var(--paper-warm);
  box-shadow: var(--shadow);
}


.field-label {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
}

.required-star {
  color: var(--danger);
  font-weight: 950;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 900;
}

input,
select,
textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid #cec9bc;
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--ink);
  background: var(--white);
}

input[type="date"] {
  min-height: 52px;
  -webkit-appearance: none;
  appearance: none;
  line-height: 1.2;
}

input[type="date"]::-webkit-date-and-time-value {
  min-height: 1.2em;
  text-align: left;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--yellow-deep);
  outline: 3px solid rgba(246, 193, 0, 0.24);
}

.field-hint {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.phone-input-row {
  display: grid;
  grid-template-columns: minmax(104px, 0.34fr) minmax(0, 1fr);
  gap: 10px;
}

.phone-input-row select {
  padding-right: 10px;
}

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

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.form-status.is-success {
  color: var(--success);
}

.form-status.is-error {
  color: var(--danger);
}

.site-footer {
  padding: 30px 0;
  color: rgba(255, 255, 255, 0.76);
  background: var(--ink);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  width: var(--container);
  margin: 0 auto;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: var(--yellow);
  font-weight: 900;
}


.section-actions {
  display: flex;
  margin-top: 28px;
}

.page-hero {
  padding: 148px 0 72px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(5, 6, 7, 0.95), rgba(5, 6, 7, 0.74)),
    url("/assets/hero-convoi.png") center / cover;
}

.page-hero h1 {
  max-width: 860px;
  font-size: clamp(2.6rem, 6vw, 5.3rem);
  font-weight: 950;
  text-transform: uppercase;
}

.page-hero p:last-child {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.1rem;
}

.legal-section {
  background: var(--paper-strong);
}

.legal-content {
  max-width: 900px;
}

.legal-content h2 {
  margin-top: 38px;
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
}

.legal-content a,
.checkbox-field a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--yellow-deep);
  text-underline-offset: 3px;
}

.legal-warning {
  padding: 18px 20px;
  border: 1px solid rgba(246, 193, 0, 0.34);
  border-left: 5px solid var(--yellow);
  border-radius: var(--radius);
  background: var(--paper-warm);
}

.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.checkbox-field {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
}

.checkbox-field input,
.checkbox-field span {
  cursor: pointer;
}

.checkbox-field input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--yellow-deep);
}

.captcha-field {
  gap: 10px;
}

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

.captcha-row span {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.admin-body {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(5, 6, 7, 0.96), rgba(5, 6, 7, 0.74)),
    url("/assets/hero-convoi.png") center / cover fixed;
}

.admin-shell {
  min-height: 100vh;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(16px, 4vh, 36px) 0;
}

.login-panel {
  display: grid;
  min-height: calc(100vh - clamp(32px, 8vh, 72px));
  align-content: center;
  justify-items: start;
}

.admin-panel,
.upload-panel,
.admin-gallery {
  border: 1px solid rgba(246, 193, 0, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-strong);
}

.admin-panel {
  width: min(480px, 100%);
  padding: clamp(22px, 4vh, 30px);
}

.admin-logo {
  width: 128px;
  height: 128px;
  margin: 0 0 20px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  object-fit: contain;
}

.back-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--yellow);
  font-weight: 950;
}

.admin-back-button {
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(246, 193, 0, 0.56);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 0 12px 26px rgba(5, 6, 7, 0.18);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), background 220ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.admin-back-button:hover,
.admin-back-button:focus-visible {
  background: var(--yellow-soft);
  box-shadow: 0 16px 30px rgba(5, 6, 7, 0.22);
  transform: translateY(-1px);
}

.dashboard-panel {
  color: var(--white);
}

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

.dashboard-title-row {
  display: flex;
  gap: 14px;
  align-items: center;
}

.dashboard-title-row .section-kicker {
  margin-bottom: 6px;
}

.dashboard-actions {
  display: grid;
  gap: 10px;
  justify-items: stretch;
}

.dashboard-actions .admin-back-button {
  margin-bottom: 0;
}

#cancel-edit-button {
  color: var(--ink);
  border-color: rgba(5, 6, 7, 0.2);
  background: var(--yellow-soft);
  box-shadow: inset 0 0 0 1px rgba(246, 193, 0, 0.28);
}

#cancel-edit-button:hover,
#cancel-edit-button:focus-visible {
  color: var(--ink);
  border-color: var(--yellow-deep);
  background: var(--yellow);
  box-shadow: 0 10px 20px rgba(5, 6, 7, 0.14);
}

.dashboard-logo {
  width: 68px;
  height: 68px;
  margin-bottom: 0;
  padding: 5px;
  border: 1px solid rgba(246, 193, 0, 0.36);
  border-radius: var(--radius);
  background: var(--white);
  object-fit: contain;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.upload-panel,
.admin-gallery {
  padding: 24px;
  color: var(--ink);
}

.upload-panel h2,
.admin-gallery h2 {
  margin: 0;
  font-size: 1.35rem;
}

.image-preview {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

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

.image-preview-item {
  display: grid;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-warm);
  cursor: pointer;
  text-align: left;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.image-preview-item:hover,
.image-preview-item:focus-visible {
  border-color: var(--danger);
  box-shadow: 0 10px 20px rgba(180, 35, 24, 0.14);
  transform: translateY(-1px);
}

.image-preview-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.image-preview-item span {
  padding: 7px 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-gallery-heading {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.admin-gallery-heading span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 900;
}

.admin-search-field {
  margin-bottom: 16px;
}

.admin-search-field span {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-gallery-list {
  display: grid;
  gap: 14px;
}

.admin-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 900;
}

.pagination-button {
  min-height: 38px;
  padding: 9px 12px;
  color: var(--ink);
  border-color: var(--line);
  background: var(--paper-warm);
}

.pagination-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.admin-photo {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--yellow);
  border-radius: var(--radius);
  background: var(--paper-strong);
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), border-color 180ms cubic-bezier(0.22, 1, 0.36, 1), background 180ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.admin-photo:hover,
.admin-photo:focus-within {
  border-color: rgba(246, 193, 0, 0.62);
  background: #fffdf3;
  box-shadow: 0 14px 30px rgba(5, 6, 7, 0.11);
  transform: translateY(-1px);
}

.admin-photo img {
  width: 120px;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  object-fit: cover;
}

.admin-photo h3 {
  font-size: 1rem;
}

.admin-photo p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.admin-project-description {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.admin-project-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--paper-warm);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.icon-button:hover,
.icon-button:focus-visible {
  border-color: var(--yellow-deep);
  background: var(--yellow-soft);
  transform: translateY(-1px);
}

.danger-button {
  min-height: 42px;
  color: var(--white);
  background: var(--danger);
}

.danger-button:hover,
.danger-button:focus-visible {
  border-color: var(--danger);
  background: #8f1c14;
}

.icon-pencil,
.icon-trash {
  width: 20px;
  height: 20px;
  background: currentColor;
}

.icon-pencil {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.icon-trash {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M8 6V4h8v2'/%3E%3Cpath d='M6 6l1 15h10l1-15'/%3E%3Cpath d='M10 11v6'/%3E%3Cpath d='M14 11v6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M8 6V4h8v2'/%3E%3Cpath d='M6 6l1 15h10l1-15'/%3E%3Cpath d='M10 11v6'/%3E%3Cpath d='M14 11v6'/%3E%3C/svg%3E") center / contain no-repeat;
}

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

.is-hidden {
  display: none !important;
}

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

@media (min-width: 1600px) {
  :root {
    --container: min(1420px, calc(100% - 96px));
  }

  .site-header {
    padding-right: max(48px, calc((100vw - 1420px) / 2));
    padding-left: max(48px, calc((100vw - 1420px) / 2));
  }

  .hero {
    min-height: 82vh;
  }
}

@media (max-width: 980px) {
  .site-header {
    padding: 14px 20px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 20px;
    display: none;
    width: min(320px, calc(100vw - 40px));
    padding: 16px;
    border: 1px solid rgba(246, 193, 0, 0.18);
    border-radius: var(--radius);
    background: rgba(5, 6, 7, 0.96);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
    gap: 8px;
  }

  .intro-grid,
  .commitments-grid,
  .contact-grid,
  .dashboard-layout,
  .project-modal-panel {
    grid-template-columns: 1fr;
  }

  .project-modal {
    align-items: start;
    place-items: start center;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .project-modal-panel {
    max-height: none;
    overflow: visible;
    margin: auto 0;
  }

  .project-modal-media,
  .project-modal-content {
    max-height: none;
    overflow: visible;
  }

  .project-modal-media img {
    max-height: min(58vh, 520px);
    max-height: min(58svh, 520px);
  }

  .project-modal-media img:not(:first-child) {
    max-height: min(42vh, 260px);
    max-height: min(42svh, 260px);
  }

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

@media (max-width: 680px) {
  :root {
    --container: min(1180px, calc(100% - 28px));
  }

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

  .brand strong {
    font-size: 0.82rem;
  }

  .brand small {
    font-size: 0.66rem;
  }

  .hero {
    min-height: auto;
    padding: 104px 0 34px;
    align-items: center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(5, 6, 7, 0.96) 0%, rgba(5, 6, 7, 0.78) 58%, rgba(5, 6, 7, 0.34) 100%),
      linear-gradient(0deg, rgba(5, 6, 7, 0.82), rgba(5, 6, 7, 0.18) 48%);
  }

  .hero-content {
    display: grid;
    gap: 0;
  }

  .hero .eyebrow {
    max-width: 26rem;
    margin-bottom: 10px;
    font-size: clamp(0.62rem, 2.8vw, 0.74rem);
    letter-spacing: 0.08em;
    line-height: 1.35;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(1.86rem, 8.8vw, 3.35rem);
    line-height: 1.03;
  }

  .hero-text {
    max-width: 100%;
    margin-top: 16px;
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 22px;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    max-width: none;
    margin-top: 24px;
  }

  .hero-stats div {
    min-width: 0;
    padding: 10px 8px;
  }

  .hero-stats dt {
    gap: 6px;
    font-size: clamp(0.86rem, 3.5vw, 1.05rem);
  }

  .hero-stats dt::before {
    width: 16px;
    height: 16px;
  }

  .hero-stats dd {
    font-size: 0.68rem;
    line-height: 1.25;
  }

  .hero-actions,
  .footer-inner,
  .dashboard-header {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-title-row {
    align-items: flex-start;
  }

  .button {
    width: 100%;
  }

  .hero-stats,
  .service-grid,
  .gallery-grid,
  .contact-form,
  .captcha-row,
  .image-preview-grid {
    grid-template-columns: 1fr;
  }

  .project-modal {
    padding: 10px;
  }

  .project-modal-close {
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
  }

  .project-modal-media {
    padding: 10px;
  }

  .project-modal-content {
    padding: 44px 18px 22px;
  }

  .project-modal-content h2 {
    font-size: clamp(1.55rem, 8vw, 2.2rem);
  }

  .section {
    padding: 64px 0;
  }

  .intro {
    padding: 44px 0;
  }

  .admin-shell {
    width: min(1180px, calc(100% - 20px));
  }

  .contact-form,
  .admin-panel,
  .upload-panel,
  .admin-gallery {
    padding: 20px;
  }

  .upload-panel {
    overflow: hidden;
  }

  .upload-panel input[type="date"] {
    width: 100%;
    max-width: 100%;
  }

  .admin-photo {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .admin-photo img {
    width: 88px;
  }

  .admin-project-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}


/* NSG follow-up responsive fixes */
@media (max-width: 680px) {
  .phone-input-row {
    grid-template-columns: 1fr;
  }
}

@media (max-height: 760px) and (min-width: 681px) {
  .admin-logo {
    width: 88px;
    height: 88px;
    margin-bottom: 12px;
  }

  .admin-panel h1 {
    font-size: 1.9rem;
  }

  .stack-form {
    gap: 12px;
  }
}


@media (max-width: 420px) {
  .hero h1 {
    font-size: clamp(1.72rem, 8.35vw, 2.5rem);
  }

  .hero .eyebrow {
    max-width: 19rem;
    font-size: 0.6rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-stats div {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 8px;
    align-items: center;
    padding: 9px 10px;
  }

  .hero-stats dd {
    margin: 0;
  }
}


.audience-panel {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 120;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
  padding: 16px;
  border: 1px solid rgba(246, 193, 0, 0.34);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-strong);
}

.audience-panel strong {
  display: block;
  line-height: 1.2;
}

.audience-panel p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.audience-panel > a {
  color: var(--ink);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: var(--yellow-deep);
  text-underline-offset: 3px;
}

.audience-panel-actions {
  display: flex;
  gap: 10px;
}

.audience-panel .button-secondary {
  color: var(--ink);
  border-color: rgba(5, 6, 7, 0.18);
  background: var(--paper-warm);
}

.audience-panel .button-secondary:hover,
.audience-panel .button-secondary:focus-visible {
  color: var(--ink);
  border-color: var(--yellow-deep);
  background: var(--yellow-soft);
}

.footer-privacy-button {
  padding: 0;
  border: 0;
  color: var(--yellow);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

@media (max-width: 680px) {
  .audience-panel {
    grid-template-columns: 1fr;
    align-items: stretch;
    max-height: calc(100svh - 32px);
    overflow: auto;
  }

  .audience-panel-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}
