:root {
  --bg: #070706;
  --surface: #11100e;
  --surface-soft: #191713;
  --text: #f5f1e8;
  --muted: #b6aa99;
  --line: rgba(245, 241, 232, 0.16);
  --accent: #b79a68;
  --accent-strong: #d8c08e;
  --radius: 6px;
  --max: 1180px;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: "Cormorant Garamond", "Bodoni 72", Didot, Georgia, "Times New Roman", serif;
  --font-hero: "Cormorant Garamond", "Bodoni 72", Didot, Georgia, "Times New Roman", serif;
  --body-size: 16px;
  --body-weight: 400;
  --heading-weight: 400;
  --hero-weight: 300;
  --hero-scale: 0.96;
  --heading-scale: 1;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--body-size);
  font-weight: var(--body-weight);
  line-height: 1.5;
  overflow-x: hidden;
}

body.admin-open,
body.modal-open {
  overflow: hidden;
}

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

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 190px;
  align-items: center;
  height: 76px;
  padding: 0 clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 7, 6, 0.72);
  backdrop-filter: blur(18px);
}

.brand img {
  width: clamp(84px, 7.2vw, 118px);
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.2vw, 34px);
  color: rgba(245, 241, 232, 0.82);
  font-size: 13px;
  text-transform: uppercase;
}

.main-nav a {
  position: relative;
  padding: 10px 0;
  border-bottom: 1px solid transparent;
  transition: color 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  border-color: var(--accent);
  color: var(--text);
  outline: none;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  justify-self: end;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 6px auto;
  background: var(--text);
}

.hero {
  position: relative;
  min-height: 100vh;
  padding: 132px clamp(18px, 4vw, 56px) 34px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: clamp(28px, 4vw, 48px);
  overflow: hidden;
}

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

.hero-image {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(7, 7, 6, 0.92) 0%, rgba(7, 7, 6, 0.58) 46%, rgba(7, 7, 6, 0.18) 100%),
    linear-gradient(0deg, rgba(7, 7, 6, 0.82) 0%, rgba(7, 7, 6, 0.08) 46%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

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

h1 {
  margin: 0;
  max-width: 13ch;
  font-family: var(--font-hero);
  font-size: calc(clamp(44px, 6.2vw, 86px) * var(--hero-scale));
  font-weight: var(--hero-weight);
  line-height: 0.96;
  letter-spacing: 0;
  text-wrap: balance;
}

h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: calc(clamp(30px, 3.6vw, 54px) * var(--heading-scale));
  font-weight: var(--heading-weight);
  line-height: 1.04;
  text-wrap: balance;
}

h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.hero-text {
  width: min(100%, 590px);
  max-width: 590px;
  margin: 26px 0 0;
  color: rgba(245, 241, 232, 0.78);
  font-size: clamp(16px, 1.6vw, 20px);
}

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

.button,
.icon-button,
.admin-entry,
.tab,
.modal-close {
  position: relative;
  overflow: hidden;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 18px;
  cursor: pointer;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, color 220ms ease, box-shadow 220ms ease;
}

.button:hover,
.icon-button:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.26);
}

.button:active,
.icon-button:active,
.admin-entry:active,
.tab:active,
.main-nav a:active {
  transform: translateY(0) scale(0.98);
}

.button::after,
.icon-button::after,
.admin-entry::after,
.tab::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.16) 45%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 520ms ease;
}

.button:hover::after,
.icon-button:hover::after,
.admin-entry:hover::after,
.tab:hover::after {
  transform: translateX(120%);
}

.primary {
  background: var(--accent);
  color: #120f0a;
  border-color: var(--accent);
  font-weight: 700;
}

.hero-actions .primary {
  border-color: rgba(216, 192, 142, 0.42);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
    rgba(20, 18, 15, 0.22);
  color: var(--accent-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 18px 42px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px) saturate(1.08);
}

.hero-actions .primary:hover {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06)),
    rgba(20, 18, 15, 0.34);
  color: #ead7a7;
}

.ghost {
  background: rgba(7, 7, 6, 0.34);
  color: var(--text);
}

.metrics {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(100%, 760px);
  max-width: 760px;
  margin-top: 0;
  border: 1px solid var(--line);
  background: var(--line);
  backdrop-filter: blur(12px);
}

.metrics-section {
  padding-top: clamp(34px, 6vw, 74px);
  padding-bottom: clamp(34px, 6vw, 74px);
}

.metric {
  min-height: 86px;
  padding: 18px 20px;
  background: rgba(7, 7, 6, 0.5);
  backdrop-filter: blur(12px);
}

.metric strong {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: var(--heading-weight);
}

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

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(70px, 10vw, 128px) clamp(18px, 4vw, 32px);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(180px, 0.32fr) minmax(0, 0.68fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
  margin-bottom: 42px;
}

.section-heading.compact {
  grid-template-columns: 1fr;
  max-width: 760px;
}

.section-heading p:not(.eyebrow),
.studio-copy p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.projects-section .section-heading {
  align-items: start;
  padding-top: 10px;
}

.projects-section .section-heading .eyebrow {
  align-self: start;
  margin-top: 12px;
  margin-bottom: 0;
}

.projects-section .section-heading h2 {
  max-width: 620px;
  font-size: clamp(30px, 3.3vw, 50px);
}

.projects-section .section-heading p:not(.eyebrow) {
  grid-column: 2;
  max-width: 640px;
  margin-top: 18px;
}

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

.project-card {
  border-top: 1px solid var(--line);
  transition: transform 320ms ease, border-color 320ms ease, filter 320ms ease;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(216, 192, 142, 0.42);
}

.project-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
}

.project-media-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(216, 192, 142, 0.5) rgba(255, 255, 255, 0.06);
}

.project-media-item {
  position: relative;
  scroll-snap-align: start;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #050504;
}

.project-media-item img,
.project-media-item video,
.project-media-item iframe {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.project-media-item img {
  filter: saturate(0.92);
  transition: filter 320ms ease, transform 420ms ease;
}

.project-card:hover .project-media-item img {
  filter: saturate(1.02) brightness(1.04);
  transform: scale(1.012);
}

.video-item::before {
  content: "Video";
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  padding: 5px 8px;
  border: 1px solid rgba(245, 241, 232, 0.2);
  border-radius: 999px;
  background: rgba(7, 7, 6, 0.62);
  color: var(--accent-strong);
  font-size: 10px;
  text-transform: uppercase;
  pointer-events: none;
}

.media-count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 8px;
  border: 1px solid rgba(245, 241, 232, 0.16);
  border-radius: 999px;
  background: rgba(7, 7, 6, 0.62);
  color: rgba(245, 241, 232, 0.78);
  font-size: 10px;
  text-transform: uppercase;
}

.project-body {
  padding: 20px 0 0;
}

.project-meta {
  margin: 8px 0 14px;
  color: var(--accent-strong);
  font-size: 12px;
  text-transform: uppercase;
}

.project-body p {
  margin: 0;
  color: var(--muted);
}

.services-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: 80px minmax(180px, 0.45fr) minmax(260px, 1fr);
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.service-row .number {
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: 28px;
}

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

.studio-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.65fr);
  gap: clamp(34px, 7vw, 96px);
  align-items: start;
}

.studio-copy p:not(.eyebrow) {
  margin-top: 24px;
}

.studio-values {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.value-item {
  padding: 24px;
  background: var(--surface);
}

.value-item p {
  margin: 10px 0 0;
  color: var(--muted);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.6fr);
  gap: clamp(32px, 8vw, 100px);
  align-items: start;
}

.contact-section > div:first-child {
  padding-top: 0;
}

.contact-grid {
  display: grid;
  gap: 14px;
  color: var(--muted);
}

.contact-stack {
  display: grid;
  gap: 22px;
}

.contact-grid p,
.contact-grid a {
  margin: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}

.map-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.map-frame iframe {
  width: 100%;
  min-height: 260px;
  border: 0;
  filter: grayscale(1) invert(0.9) contrast(0.85);
}

.tracking-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 0.62fr);
  gap: clamp(28px, 7vw, 92px);
  align-items: start;
}

.tracking-intro p:not(.eyebrow) {
  max-width: 520px;
  margin: 22px 0 0;
  color: var(--muted);
}

.tracking-card,
.tracking-result {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)),
    rgba(12, 11, 10, 0.82);
  padding: clamp(18px, 3vw, 28px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.tracking-card {
  display: grid;
  gap: 12px;
}

.tracking-card label {
  color: rgba(245, 241, 232, 0.78);
  font-size: 13px;
}

.tracking-form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.tracking-form-row input {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(245, 241, 232, 0.18);
  border-radius: var(--radius);
  background: #0b0b0a;
  color: var(--text);
  padding: 12px 13px;
}

.tracking-message {
  min-height: 22px;
  margin: 0;
  color: var(--accent-strong);
  font-size: 13px;
}

.tracking-result {
  grid-column: 1 / -1;
  display: grid;
  gap: 18px;
}

.tracking-result-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.tracking-result-head h3 {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: var(--heading-weight);
}

.tracking-result-head strong {
  max-width: 360px;
  color: var(--accent-strong);
  font-size: 14px;
  text-align: right;
}

.tracking-result-head .permit-status {
  color: #8fe39f;
}

.tracking-progress {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(245, 241, 232, 0.1);
}

.tracking-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
}

.stage-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stage-item {
  display: flex;
  gap: 10px;
  min-height: 66px;
  padding: 12px;
  border: 1px solid rgba(245, 241, 232, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
  color: rgba(245, 241, 232, 0.52);
}

.stage-item span {
  display: inline-grid;
  place-items: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 11px;
  color: inherit;
}

.stage-item p {
  margin: 0;
  font-size: 13px;
}

.stage-item.done {
  color: rgba(216, 192, 142, 0.76);
}

.stage-item.current {
  border-color: rgba(216, 192, 142, 0.58);
  background: rgba(216, 192, 142, 0.08);
  color: var(--text);
}

.stage-item.permit-done {
  border-color: rgba(143, 227, 159, 0.58);
  background: rgba(143, 227, 159, 0.08);
  color: #8fe39f;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 36px;
  padding: 24px clamp(18px, 4vw, 56px);
  color: var(--muted);
  font-size: 12px;
}

.site-footer img {
  width: 58px;
  margin-bottom: 8px;
  filter: brightness(0) invert(1);
  opacity: 0.82;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  overflow-wrap: anywhere;
}

.footer-brand {
  max-width: 360px;
}

.footer-contact {
  display: grid;
  gap: 5px;
  margin-top: 12px;
  color: rgba(245, 241, 232, 0.76);
}

.footer-contact a {
  color: inherit;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 7px;
}

.header-social {
  justify-self: end;
  margin-top: 0;
}

.social-link {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(245, 241, 232, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(216, 192, 142, 0.5);
  background: rgba(216, 192, 142, 0.08);
  outline: none;
}

.social-link img {
  width: 12px;
  height: 12px;
  margin: 0;
  opacity: 1;
  filter: none;
}

.admin-entry {
  border: 1px solid rgba(245, 241, 232, 0.14);
  border-radius: var(--radius);
  background: transparent;
  color: rgba(245, 241, 232, 0.68);
  padding: 10px 13px;
  cursor: pointer;
  font-size: 11px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.is-pressed {
  animation: press-pulse 360ms ease;
}

@keyframes press-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(183, 154, 104, 0.34);
  }
  100% {
    box-shadow: 0 0 0 14px rgba(183, 154, 104, 0);
  }
}

.admin-entry:hover {
  border-color: var(--accent);
  color: var(--text);
}

.login-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(7, 7, 6, 0.72);
  backdrop-filter: blur(14px);
}

.login-card {
  position: relative;
  width: 100%;
  max-width: 430px;
  min-width: 0;
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(14, 13, 11, 0.98);
  padding: 28px;
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.52);
}

.login-card h2 {
  font-size: 38px;
}

.login-copy {
  margin: 0;
  color: var(--muted);
}

.login-card label {
  color: rgba(245, 241, 232, 0.8);
  font-size: 13px;
}

.login-card input,
.editor-form input,
.editor-form textarea,
.editor-form select {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(245, 241, 232, 0.18);
  border-radius: var(--radius);
  background: #0b0b0a;
  color: var(--text);
  padding: 11px 12px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  padding: 7px 10px;
  cursor: pointer;
}

.login-message,
.save-message {
  min-height: 22px;
  margin-top: 8px;
  color: var(--accent-strong);
  font-size: 12px;
}

.admin-panel {
  position: fixed;
  z-index: 40;
  inset: 16px 16px 16px auto;
  width: min(560px, calc(100vw - 32px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(12, 12, 10, 0.98);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.45);
  padding: 22px;
}

.admin-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.admin-head-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-head h2 {
  font-size: 32px;
}

.icon-button {
  background: var(--surface);
  color: var(--text);
}

.admin-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 18px 0 14px;
}

.tab {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  padding: 9px 12px;
  cursor: pointer;
  white-space: nowrap;
}

.tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #0d0b08;
  font-weight: 700;
}

.editor-form {
  display: grid;
  gap: 16px;
}

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

.field label {
  color: rgba(245, 241, 232, 0.78);
  font-size: 13px;
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.field small {
  color: var(--muted);
}

.editor-group {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}

.editor-group h3 {
  font-size: 15px;
}

.editor-title-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.compact-button {
  min-height: 38px;
  padding: 9px 13px;
  white-space: nowrap;
}

.gallery-editor {
  gap: 12px;
}

.menu-editor-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid rgba(245, 241, 232, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}

.gallery-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(245, 241, 232, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}

.gallery-thumb {
  overflow: hidden;
  border-radius: var(--radius);
  background: #050504;
}

.gallery-thumb img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.gallery-fields {
  display: grid;
  gap: 10px;
}

.upload-button {
  display: inline-grid;
  place-items: center;
  text-align: center;
}

.upload-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.preview-bar {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(860px, calc(100vw - 28px));
  padding: 12px;
  border: 1px solid rgba(245, 241, 232, 0.18);
  border-radius: 8px;
  background: rgba(12, 12, 10, 0.94);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.42);
  transform: translateX(-50%);
  backdrop-filter: blur(16px);
}

.preview-bar strong,
.preview-bar span {
  display: block;
}

.preview-bar strong {
  color: var(--text);
  font-size: 13px;
}

.preview-bar span {
  color: var(--muted);
  font-size: 12px;
}

.preview-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.preview-device {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  padding: 8px 11px;
  cursor: pointer;
}

.preview-device.active {
  border-color: var(--accent);
  color: #0d0b08;
  background: var(--accent);
}

body.preview-mode {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    #050504;
  background-size: 34px 34px;
}

body.preview-mode #publicSite,
body.preview-mode .site-footer {
  width: var(--preview-width, 100%);
  margin-left: auto;
  margin-right: auto;
  background: var(--bg);
  box-shadow: 0 0 0 1px rgba(245, 241, 232, 0.08), 0 30px 90px rgba(0, 0, 0, 0.36);
}

body.preview-mode .site-header {
  left: 50%;
  width: var(--preview-width, 100%);
  transform: translateX(-50%);
}

body.preview-desktop {
  --preview-width: min(100%, 1440px);
}

body.preview-tablet {
  --preview-width: min(100%, 820px);
}

body.preview-mobile {
  --preview-width: min(100%, 390px);
}

.editor-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.client-list {
  display: grid;
  gap: 12px;
}

.client-row {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(245, 241, 232, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}

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

.stage-check {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  min-height: 38px;
  padding: 9px;
  border: 1px solid rgba(245, 241, 232, 0.1);
  border-radius: var(--radius);
  color: rgba(245, 241, 232, 0.74);
  font-size: 12px;
  cursor: pointer;
}

.stage-check input {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: var(--accent);
}

.stage-check span {
  line-height: 1.35;
}

.generated-password {
  color: var(--accent-strong) !important;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.client-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.client-actions .button {
  flex: 1 1 150px;
}

.danger {
  border-color: rgba(214, 92, 92, 0.32);
  color: #ffb7a8;
}

.tab-save-row {
  position: sticky;
  bottom: -22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  background: rgba(12, 12, 10, 0.98);
}

.tab-save-row p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.tab-save-row .button {
  min-width: 160px;
}

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

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: 1fr auto;
    height: 70px;
  }

  .menu-toggle {
    display: block;
  }

  .brand img {
    width: 92px;
  }

  .main-nav {
    position: fixed;
    inset: 70px 12px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(9, 9, 8, 0.96);
  }

  .main-nav.open {
    display: flex;
  }

  .header-social {
    position: fixed;
    inset: auto 12px auto;
    top: calc(70px + 246px);
    z-index: 21;
    display: none;
    justify-content: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 8px 8px;
    background: rgba(9, 9, 8, 0.96);
  }

  .main-nav.open + .header-social {
    display: flex;
  }

  .main-nav a {
    padding: 14px;
  }

  .hero {
    width: 100vw;
    min-height: 100svh;
    padding-top: 110px;
    padding-bottom: 24px;
    gap: 22px;
  }

  .hero-content,
  .hero-text,
  .metrics {
    width: calc(100vw - 40px);
    max-width: 350px;
  }

  h1 {
    max-width: 11ch;
    font-size: calc(clamp(34px, 10.8vw, 48px) * var(--hero-scale));
    line-height: 1;
  }

  .hero-text {
    font-size: 15px;
  }

  .metrics,
  .projects-grid,
  .section-heading,
  .studio-section,
  .contact-section,
  .tracking-section,
  .service-row {
    grid-template-columns: 1fr;
  }

  .metrics {
    width: calc(100vw - 40px);
    max-width: 350px;
  }

  .metric {
    min-height: 76px;
    padding: 16px 18px;
  }

  .metric strong {
    font-size: 28px;
  }

  .service-row {
    gap: 10px;
  }

  .section {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .metrics-section {
    padding-top: 26px;
    padding-bottom: 26px;
  }

  .projects-section .section-heading {
    gap: 16px;
    margin-bottom: 28px;
  }

  .projects-section .section-heading .eyebrow,
  .projects-section .section-heading p:not(.eyebrow) {
    grid-column: 1;
    margin: 0;
  }

  .projects-section .section-heading h2 {
    font-size: clamp(30px, 8vw, 38px);
  }

  .map-frame iframe {
    min-height: 230px;
  }

  .tracking-form-row,
  .stage-check-grid,
  .stage-list {
    grid-template-columns: 1fr;
  }

  .tracking-result-head {
    display: grid;
  }

  .tracking-result-head strong {
    text-align: left;
  }

  .site-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .gallery-row,
  .preview-bar {
    grid-template-columns: 1fr;
  }

  .preview-bar {
    display: grid;
    bottom: 10px;
  }

  .preview-actions {
    justify-content: stretch;
  }

  .preview-actions > * {
    flex: 1 1 auto;
  }

  .admin-entry {
    width: 100%;
  }

  .login-card {
    max-width: 280px;
    padding: 24px;
  }

  .login-card h2 {
    font-size: 32px;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .editor-title-row {
    display: grid;
  }

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

  .compact-button {
    width: 100%;
  }
}
