:root {
  --bg: #0e0f0f;
  --panel: #171918;
  --text: #f4f0e8;
  --muted: #aaa49a;
  --line: rgba(244, 240, 232, 0.14);
  --accent: #d6ff63;
  --accent-2: #ff6f4d;
  --surface: #222521;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

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

.has-cms-toolbar {
  padding-top: 48px;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(14, 15, 15, 0.84);
  backdrop-filter: blur(18px);
}

.has-cms-toolbar .site-header {
  top: 48px;
}

.cms-toolbar {
  align-items: center;
  background: #d6ff63;
  color: #10110d;
  display: flex;
  gap: 16px;
  inset: 0 0 auto;
  min-height: 48px;
  padding: 0 18px;
  position: fixed;
  z-index: 50;
}

.cms-toolbar span {
  flex: 1;
  font-size: 14px;
}

.cms-toolbar a {
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.cms-toolbar .is-error {
  color: #8b1e0f;
}

.cms-editable {
  border-radius: 4px;
  outline: 1px dashed rgba(214, 255, 99, 0.55);
  outline-offset: 4px;
  transition: background 140ms ease, outline-color 140ms ease;
}

.cms-editable:hover,
.cms-editable:focus {
  background: rgba(214, 255, 99, 0.12);
  outline-color: var(--accent);
}

.cms-editable-image {
  cursor: pointer;
  outline: 2px dashed rgba(214, 255, 99, 0.65);
  outline-offset: -8px;
}

.cms-editable-bg {
  cursor: pointer;
  outline: 2px dashed rgba(214, 255, 99, 0.65);
  outline-offset: -14px;
}

.theme-light {
  --bg: #f4f0e8;
  --panel: #ffffff;
  --text: #111312;
  --muted: #625f58;
  --line: rgba(17, 19, 18, 0.16);
  --surface: #e8e1d6;
}

.nav {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max);
  min-height: 72px;
  padding: 0 24px;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-logo {
  height: 42px;
  max-width: 180px;
  object-fit: contain;
  width: auto;
}

.brand span,
.accent {
  color: var(--accent);
}

.nav-links {
  align-items: center;
  display: flex;
  gap: 22px;
  font-size: 14px;
  text-transform: uppercase;
}

.menu-button {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  display: none;
  height: 42px;
  width: 42px;
}

.hero {
  min-height: calc(100vh - 72px);
  overflow: hidden;
  position: relative;
}

.home-layout-minimal .hero,
.home-layout-minimal .hero-track,
.home-layout-minimal .hero-slide {
  min-height: 72vh;
}

.home-layout-minimal .services {
  display: none;
}

.home-layout-portfolio .split {
  grid-template-columns: 1fr;
}

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

.home-layout-portfolio .project-card img {
  aspect-ratio: 16 / 10;
}

.hero-track {
  display: grid;
  grid-template-columns: repeat(3, 100%);
  min-height: calc(100vh - 72px);
  width: 300%;
  animation: slide 18s infinite;
}

.hero-slide {
  align-items: end;
  background-position: center;
  background-size: cover;
  display: flex;
  min-height: calc(100vh - 72px);
  padding: 7vw;
  position: relative;
}

.hero-slide::before {
  background: linear-gradient(90deg, rgba(14, 15, 15, 0.86), rgba(14, 15, 15, 0.26));
  content: "";
  inset: 0;
  position: absolute;
}

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

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 18px;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(58px, 10vw, 150px);
  max-width: 900px;
}

h2 {
  font-size: clamp(38px, 6vw, 82px);
}

h3 {
  font-size: 26px;
}

.lead {
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
  max-width: 720px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  align-items: center;
  background: var(--accent);
  color: #10110d;
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  text-transform: uppercase;
}

.button.secondary {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}

.section {
  border-top: 1px solid var(--line);
  padding: 96px 24px;
}

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

.split {
  align-items: start;
  display: grid;
  gap: 56px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

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

.service,
.post-card,
.project-card,
.admin-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.service {
  padding: 26px;
}

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

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px 0;
}

.filter {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  cursor: pointer;
  min-height: 40px;
  padding: 0 14px;
  text-transform: uppercase;
}

.filter.is-active {
  background: var(--text);
  color: var(--bg);
}

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

.project-card img {
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
}

.project-card-body,
.post-card {
  padding: 24px;
}

.project-card strong,
.meta {
  color: var(--accent);
  display: block;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.detail-hero {
  padding: 88px 24px 40px;
}

.detail-media {
  margin: 0 auto;
  max-width: var(--max);
}

.detail-media img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.content {
  color: var(--muted);
  font-size: 18px;
  margin: 0 auto;
  max-width: 780px;
  padding: 56px 24px 96px;
}

.map-section {
  border-top: 1px solid var(--line);
  min-height: 480px;
  position: relative;
}

.map-section iframe {
  border: 0;
  display: block;
  height: 520px;
  width: 100%;
}

.map-pin {
  background: var(--panel);
  border: 1px solid var(--line);
  bottom: 28px;
  left: 50%;
  max-width: calc(100% - 48px);
  padding: 18px 22px;
  position: absolute;
  transform: translateX(-50%);
}

.map-pin strong,
.map-pin span {
  display: block;
}

.map-pin span {
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 34px 24px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max);
}

.admin-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  background: #111312;
  border-right: 1px solid var(--line);
  padding: 24px;
}

.admin-sidebar nav {
  display: grid;
  gap: 10px;
  margin-top: 30px;
}

.admin-main {
  padding: 32px;
}

.admin-card {
  margin-bottom: 22px;
  padding: 24px;
}

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

label {
  color: var(--muted);
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

input,
textarea,
select {
  background: #0c0d0d;
  border: 1px solid var(--line);
  color: var(--text);
  font: inherit;
  min-height: 44px;
  padding: 10px 12px;
}

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

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

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

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

.notice {
  background: rgba(214, 255, 99, 0.1);
  border: 1px solid rgba(214, 255, 99, 0.35);
  margin-bottom: 18px;
  padding: 14px;
}

@keyframes slide {
  0%, 28% { transform: translateX(0); }
  33%, 61% { transform: translateX(-100%); }
  66%, 94% { transform: translateX(-200%); }
  100% { transform: translateX(0); }
}

@media (max-width: 820px) {
  .menu-button {
    display: block;
  }

  .nav-links {
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    display: none;
    gap: 0;
    left: 0;
    padding: 14px 24px 24px;
    position: absolute;
    right: 0;
    top: 72px;
  }

  .nav-links.is-open {
    display: grid;
  }

  .nav-links a {
    padding: 12px 0;
  }

  .split,
  .services,
  .project-grid,
  .post-grid,
  .form-grid,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    border-bottom: 1px solid var(--line);
    border-right: 0;
  }

  .footer-inner {
    display: grid;
    gap: 10px;
  }
}
