:root {
  --bg: #07090b;
  --panel: #10151a;
  --panel-2: #151b21;
  --text: #f4f0e8;
  --muted: #9da7ac;
  --line: rgba(244, 240, 232, 0.13);
  --amber: #d7a444;
  --teal: #3fb7ac;
  --steel: #9fb0bd;
  --danger: #d76f44;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,.025) 1px, transparent 1px),
    var(--bg);
  background-size: 72px 72px;
  animation: gridDrift 28s linear infinite;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}
body::before {
  background:
    linear-gradient(115deg, transparent 0 38%, rgba(215,164,68,.075) 42%, transparent 48% 100%),
    linear-gradient(70deg, transparent 0 58%, rgba(63,183,172,.065) 62%, transparent 68% 100%);
  background-size: 1200px 100%, 980px 100%;
  animation: scanBands 18s ease-in-out infinite alternate;
}
body::after {
  background:
    radial-gradient(circle at 18% 20%, rgba(215,164,68,.12), transparent 26%),
    radial-gradient(circle at 84% 72%, rgba(63,183,172,.10), transparent 24%),
    linear-gradient(135deg, transparent 0 49.7%, rgba(244,240,232,.045) 49.9% 50.1%, transparent 50.3% 100%);
  background-size: auto, auto, 180px 180px;
  animation: depthPulse 16s ease-in-out infinite alternate;
}

#field {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .42;
}

a { color: inherit; text-decoration: none; }
p { color: var(--muted); line-height: 1.7; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 64px);
  background: rgba(7, 9, 11, .72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 14px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(215, 164, 68, .65);
  display: inline-block;
  position: relative;
  transform: rotate(45deg);
}
.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(63, 183, 172, .65);
}
.brand-mark::after { inset: 13px; background: var(--amber); border: 0; }
.brand.has-logo .brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border: 0;
  transform: none;
}
.brand.has-logo .brand-mark::before,
.brand.has-logo .brand-mark::after {
  display: none;
}
.brand-logo,
.brand.has-logo .brand-mark img {
  max-width: 42px;
  max-height: 42px;
  display: block;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav a {
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
  transition: color .25s ease, background .25s ease;
}
.nav a:hover,
.nav a.active {
  color: var(--text);
  background: rgba(244, 240, 232, .08);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 18px;
  margin: 5px auto;
  background: var(--text);
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  height: 100vh;
  height: 100svh;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  align-items: end;
  padding: clamp(170px, 24vh, 230px) clamp(18px, 6vw, 76px) clamp(58px, 9vh, 96px);
  overflow: hidden;
}
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.92) contrast(1.08);
  transform: scale(1.04);
  animation: slowZoom 18s ease-in-out infinite alternate;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7,9,11,.96) 0%, rgba(7,9,11,.76) 42%, rgba(7,9,11,.30) 100%),
    linear-gradient(0deg, rgba(7,9,11,1) 0%, transparent 45%);
}
.hero-content {
  position: relative;
  max-width: 850px;
  z-index: 2;
  align-self: end;
}
.eyebrow {
  color: var(--amber);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}
h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: 0; }
h1 { font-size: clamp(44px, 8vw, 108px); max-width: 1000px; }
.hero h1 { font-size: clamp(38px, 7vw, 94px); }
h2 { font-size: clamp(30px, 5vw, 62px); }
h3 { font-size: 22px; }
.lead { font-size: clamp(18px, 2vw, 23px); max-width: 780px; }
.hero .lead { font-size: clamp(16px, 1.55vw, 20px); line-height: 1.58; }

.hero-actions,
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(16px, 3vh, 28px);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 6px;
  border: 1px solid var(--line);
  font-weight: 800;
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--amber); border-color: var(--amber); color: #12100b; }
.btn.ghost { background: rgba(244,240,232,.05); color: var(--text); }

.hero-stats {
  display: none;
}
.hero-stats div {
  min-width: 160px;
  padding: clamp(14px, 2vh, 22px);
  background: rgba(12, 16, 19, .72);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.hero-stats strong { display: block; font-size: clamp(30px, 4vh, 42px); color: var(--text); }
.hero-stats span { color: var(--muted); }

.page {
  padding: 128px clamp(18px, 6vw, 76px) 60px;
}
.page-hero {
  min-height: calc(100svh - 128px);
  display: grid;
  align-content: center;
  max-width: 1050px;
}

.band, .band-dark, .split {
  padding: 90px clamp(18px, 6vw, 76px);
  border-top: 1px solid var(--line);
}
.band-dark { background: rgba(16, 21, 26, .76); }
.section-head { max-width: 880px; margin-bottom: 34px; }
.split {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(300px, 1.14fr);
  gap: clamp(30px, 6vw, 78px);
  align-items: start;
}

.service-grid,
.docs-grid,
.letter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.service-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile, .document, .letter, .contact-panel, .contact-form {
  background: linear-gradient(145deg, rgba(21,27,33,.96), rgba(10,13,16,.96));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.22);
}
.tile::before, .document::before, .letter::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(215,164,68,.10), transparent);
  transform: translateX(-140%);
  transition: transform .7s ease;
}
.tile:hover::before, .document:hover::before, .letter:hover::before { transform: translateX(140%); }
.tile-index, .document span {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(215,164,68,.45);
  color: var(--amber);
  margin-bottom: 28px;
}

.timeline {
  display: grid;
  gap: 12px;
}
.timeline div {
  display: grid;
  grid-template-columns: 60px 1fr;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.timeline span { color: var(--teal); font-weight: 900; }

.metric-wall {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.metric-wall div {
  padding: 28px;
  background: rgba(244,240,232,.045);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.metric-wall strong { display: block; font-size: 34px; color: var(--teal); }
.metric-wall span { color: var(--muted); }

.project-grid {
  display: grid;
  gap: 18px;
}
.project {
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(16,21,26,.74);
  border-radius: 8px;
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
}
.project:hover,
.project[open] {
  border-color: rgba(215,164,68,.42);
  background: rgba(16,21,26,.88);
}
.project:hover { transform: translateY(-2px); }
.project summary {
  display: grid;
  grid-template-columns: minmax(280px, .82fr) 1fr;
  gap: 32px;
  align-items: center;
  cursor: pointer;
  list-style: none;
}
.project summary::-webkit-details-marker { display: none; }
.project-summary {
  display: grid;
  gap: 12px;
}
.project-summary p,
.project-summary h2 { margin: 0; }
.project-action {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 8px;
  color: var(--amber);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 12px;
}
.project-action::after {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(215,164,68,.42);
  border-radius: 50%;
}
.project[open] .project-action::after { content: "-"; }
.project-detail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.project-detail div {
  min-height: 155px;
  padding: 20px;
  border: 1px solid rgba(244,240,232,.10);
  border-radius: 6px;
  background: rgba(7,9,11,.42);
}
.project-detail span {
  display: block;
  margin-bottom: 10px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.project-detail p { margin: 0; }
.project[open] .project-detail {
  animation: detailIn .24s ease both;
}
.project-slider {
  position: relative;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(244,240,232,.10);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(215,164,68,.10), transparent 34%),
    linear-gradient(225deg, rgba(63,183,172,.10), transparent 38%),
    rgba(7,9,11,.48);
  overflow: hidden;
}
.project-slider::before {
  content: "";
  position: absolute;
  inset: -40%;
  pointer-events: none;
  background: conic-gradient(from 90deg, transparent, rgba(215,164,68,.12), transparent, rgba(63,183,172,.10), transparent);
  animation: sliderTrace 9s linear infinite;
  opacity: .72;
}
.project-slider-stage {
  position: relative;
  height: clamp(360px, calc(100svh - 230px), 720px);
  overflow: hidden;
  border: 1px solid rgba(244,240,232,.12);
  border-radius: 6px;
  background: rgba(7,9,11,.70);
  isolation: isolate;
}
.project-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  opacity: 0;
  transform: translate3d(8%, 0, 0) scale(.96) rotate(.35deg);
  clip-path: polygon(0 0, 78% 0, 100% 100%, 22% 100%);
  transition: opacity .65s ease, transform .85s cubic-bezier(.2,.8,.2,1), clip-path .85s cubic-bezier(.2,.8,.2,1);
}
.project-slide.active {
  opacity: 1;
  z-index: 2;
  transform: translate3d(0, 0, 0) scale(1) rotate(0);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
.project-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0 36%, rgba(244,240,232,.20) 44%, transparent 52% 100%),
    linear-gradient(0deg, rgba(7,9,11,.34), transparent 36%);
  transform: translateX(-110%);
}
.project-slide.active::after {
  animation: slideFlash 1.15s ease both;
}
.project-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.04);
  transition: transform 5.2s ease;
}
.project-slide.active img {
  transform: scale(1.12);
}
.slide-number {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 4;
  padding: 8px 10px;
  border: 1px solid rgba(244,240,232,.18);
  border-radius: 6px;
  background: rgba(7,9,11,.72);
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
}
.project-slider-controls {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}
.slider-arrow {
  width: 46px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(244,240,232,.055);
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.slider-arrow:hover {
  transform: translateY(-2px);
  border-color: rgba(215,164,68,.62);
  background: rgba(215,164,68,.14);
}
.slider-dots {
  display: flex;
  justify-content: center;
  flex: 1;
  gap: 8px;
}
.slider-dots button {
  width: 32px;
  height: 8px;
  border: 1px solid rgba(244,240,232,.20);
  border-radius: 99px;
  background: rgba(244,240,232,.08);
  cursor: pointer;
  transition: width .25s ease, background .25s ease, border-color .25s ease;
}
.slider-dots button.active {
  width: 52px;
  border-color: rgba(215,164,68,.68);
  background: var(--amber);
}
.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: clamp(16px, 4vw, 54px);
  background: rgba(3,5,7,.92);
  backdrop-filter: blur(18px);
}
.image-viewer.open {
  display: grid;
}
.image-viewer img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border: 1px solid rgba(244,240,232,.18);
  border-radius: 8px;
  box-shadow: 0 24px 90px rgba(0,0,0,.52);
  animation: viewerIn .28s ease both;
}
.image-viewer-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(16,21,26,.86);
  color: var(--text);
  font-size: 30px;
  cursor: pointer;
}
.project-slide .gallery-photo-1 { object-position: 30% 45%; }
.project-slide .gallery-photo-2 { object-position: 70% 55%; }
.project-slide .gallery-photo-3 { object-position: 50% 72%; }
.project-media {
  min-height: 320px;
  border-radius: 6px;
  border: 1px solid rgba(244,240,232,.12);
  background-image: linear-gradient(135deg, rgba(215,164,68,.35), rgba(63,183,172,.15)), url("assets/hero-construction.png");
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.project-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mix-blend-mode: screen;
  opacity: .6;
}
.business { background-position: 65% 50%; }
.residential { background-position: 35% 40%; }
.logistics { background-position: 50% 70%; filter: hue-rotate(26deg) saturate(.98); }
.healthcare { background-position: 28% 50%; filter: hue-rotate(160deg) saturate(.85); }
.education { background-position: 58% 38%; filter: hue-rotate(205deg) saturate(.82); }
.renovation { background-position: 42% 58%; filter: grayscale(.24) contrast(1.12); }
.landscaping { background-position: 72% 52%; filter: hue-rotate(88deg) saturate(.92); }

.docs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.document { min-height: 250px; }
.document-image {
  width: 100%;
  height: 260px;
  object-fit: contain;
  display: block;
  margin-bottom: 22px;
  border: 1px solid rgba(244,240,232,.14);
  border-radius: 6px;
  background: rgba(244,240,232,.94);
}
.letter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.letter { min-height: 360px; background: #ece5d6; color: #15130f; }
.letter p, .letter span { color: #554d40; }
.letter-image {
  width: 100%;
  height: 260px;
  object-fit: contain;
  display: block;
  margin-bottom: 24px;
  border: 1px solid rgba(21,19,15,.16);
  border-radius: 4px;
  background: #fffaf0;
}
.letter-top {
  width: 100%;
  height: 72px;
  border-bottom: 2px solid rgba(21,19,15,.15);
  margin-bottom: 28px;
  background: linear-gradient(90deg, rgba(215,164,68,.25), transparent);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 18px;
  align-items: start;
}
.contact-form {
  display: grid;
  gap: 16px;
}
label {
  display: grid;
  gap: 8px;
  color: var(--steel);
  font-weight: 700;
}
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(7,9,11,.75);
  color: var(--text);
  border-radius: 6px;
  padding: 14px 15px;
  font: inherit;
  resize: vertical;
}
input:focus, textarea:focus {
  outline: 1px solid var(--amber);
  border-color: var(--amber);
}
input[type="color"] {
  min-height: 48px;
  padding: 4px;
  cursor: pointer;
}
.color-field {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
}
.form-status { margin: 0; color: var(--teal); min-height: 24px; }
.contact-panel { display: grid; gap: 22px; }
.contact-panel span {
  display: block;
  color: var(--amber);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
}
.contact-panel a, .contact-panel p { font-size: 20px; margin: 6px 0 0; color: var(--text); }

.footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 28px clamp(18px, 6vw, 76px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.developer-link {
  justify-self: center;
  color: var(--steel);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}
.footer p { margin: 0; }
.footer a:hover { color: var(--text); }
.back-home {
  width: max-content;
  display: inline-flex;
  align-items: center;
  color: var(--steel);
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 28px;
}
.back-home:hover { color: var(--text); }

.admin-shell {
  padding: 128px clamp(18px, 5vw, 64px) 60px;
}
.admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
.admin-hero h1 {
  font-size: clamp(38px, 6vw, 76px);
}
.admin-hero .lead {
  max-width: 760px;
}
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.file-button {
  position: relative;
  cursor: pointer;
}
.file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.admin-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  margin-top: 24px;
}
.admin-tabs {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 8px;
  align-self: start;
}
.admin-tabs button,
.mini {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(16, 21, 26, .82);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.admin-tabs button {
  text-align: left;
  padding: 0 14px;
}
.admin-tabs button.active,
.mini:hover {
  border-color: rgba(215,164,68,.62);
  background: rgba(215,164,68,.14);
}
.admin-editor {
  display: grid;
  gap: 18px;
}
.admin-section {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 21, 26, .72);
}
.admin-section h2 {
  font-size: 24px;
}
.admin-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(244,240,232,.10);
  border-radius: 6px;
  background: rgba(7,9,11,.45);
}
.admin-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.image-field {
  display: grid;
  gap: 10px;
  color: var(--steel);
  font-weight: 700;
}
.image-preview {
  display: grid;
  place-items: center;
  min-height: 180px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(7,9,11,.62);
  color: var(--muted);
}
.image-preview img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.image-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.image-gallery-editor {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.image-gallery-editor > span {
  grid-column: 1 / -1;
  min-height: 96px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(7,9,11,.62);
  color: var(--muted);
}
.image-gallery-item {
  display: grid;
  gap: 8px;
}
.draggable-photo {
  cursor: grab;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 6px;
}
.draggable-photo.dragging {
  cursor: grabbing;
  opacity: .48;
}
.draggable-photo.drag-over {
  border-color: rgba(215,164,68,.72);
  background: rgba(215,164,68,.10);
}
.photo-role {
  width: max-content;
  padding: 6px 8px;
  border: 1px solid rgba(215,164,68,.34);
  border-radius: 6px;
  color: var(--amber);
  background: rgba(215,164,68,.09);
  font-size: 12px;
}
.image-gallery-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.gallery-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.gallery-order-actions .mini {
  flex: 1 1 72px;
  width: auto;
  padding: 0 10px;
}
.gallery-order-actions .mini:disabled {
  opacity: .42;
  cursor: not-allowed;
}
.crop-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(3,5,7,.90);
  backdrop-filter: blur(16px);
}
.crop-dialog {
  width: min(980px, 100%);
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16,21,26,.96);
}
.crop-head,
.crop-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.crop-head h2 {
  font-size: 24px;
}
.crop-canvas {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: 1px solid rgba(244,240,232,.14);
  border-radius: 6px;
  background: #07090b;
  cursor: move;
  touch-action: none;
}
.crop-zoom {
  display: grid;
  gap: 8px;
  color: var(--steel);
  font-weight: 700;
}
.crop-zoom input {
  width: 100%;
}
.mini {
  width: max-content;
  padding: 0 14px;
}
.mini.danger {
  color: #ffd9ca;
  border-color: rgba(215,111,68,.48);
}
.editor-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.admin-notice {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--teal);
}
.admin-help {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
.admin-users-card {
  gap: 14px;
}
.admin-users {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.admin-user-pill {
  width: max-content;
  padding: 7px 10px;
  border: 1px solid rgba(77, 163, 167, .38);
  border-radius: 6px;
  color: var(--teal);
  background: rgba(77, 163, 167, .09);
  font-size: 13px;
  font-weight: 800;
}
.login-shell {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 120px 18px 56px;
}
.login-panel {
  width: min(620px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 22px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 21, 26, .88);
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
}
.login-panel h1 {
  font-size: clamp(34px, 6vw, 56px);
}
.login-panel .lead {
  margin: 0;
}
.login-form {
  display: grid;
  gap: 14px;
}
.login-form label {
  display: grid;
  gap: 8px;
  color: var(--steel);
  font-weight: 800;
}
.login-form input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: rgba(244,240,232,.05);
  outline: none;
}
.login-form input:focus {
  border-color: rgba(215,164,68,.65);
}
.login-notice {
  min-height: 22px;
  color: var(--amber);
}
.login-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
button:disabled {
  opacity: .55;
  cursor: wait;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .24s; }
.delay-3 { transition-delay: .36s; }

@keyframes slowZoom {
  from { transform: scale(1.02) translate3d(0,0,0); }
  to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}

@keyframes detailIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes gridDrift {
  from { background-position: 0 0, 0 0, 0 0; }
  to { background-position: 72px 72px, -72px 72px, 0 0; }
}

@keyframes scanBands {
  from { background-position: -380px 0, 260px 0; opacity: .52; }
  to { background-position: 420px 0, -320px 0; opacity: .9; }
}

@keyframes depthPulse {
  from { opacity: .52; transform: translate3d(0,0,0) scale(1); }
  to { opacity: .86; transform: translate3d(0,-18px,0) scale(1.03); }
}

@keyframes sliderTrace {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes slideFlash {
  0% { transform: translateX(-110%); opacity: 0; }
  18% { opacity: .82; }
  100% { transform: translateX(110%); opacity: 0; }
}

@keyframes viewerIn {
  from { opacity: 0; transform: scale(.96); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 75px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: rgba(7, 9, 11, .96);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px;
  }
  .nav.open { display: flex; }
  .split, .project summary, .contact-layout, .admin-hero, .admin-layout { grid-template-columns: 1fr; }
  .admin-tabs { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-actions { justify-content: flex-start; }
  .project-detail { grid-template-columns: 1fr; }
  .service-grid, .service-grid.three, .docs-grid, .letter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stats { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 150px;
    padding-bottom: 44px;
  }
  h1 { font-size: 42px; }
  .hero h1 { font-size: clamp(29px, 8.4vw, 37px); }
  h2 { font-size: 30px; }
  .hero .lead { font-size: 14px; line-height: 1.42; }
  .hero-actions { gap: 8px; margin-top: 12px; }
  .hero-actions .btn { min-height: 38px; padding: 0 11px; font-size: 13px; }
  .service-grid, .service-grid.three, .docs-grid, .letter-grid, .metric-wall { grid-template-columns: 1fr; }
  .hero-stats { display: none; }
  .hero-stats div { min-width: 0; padding: 10px; }
  .hero-stats strong { font-size: 24px; }
  .hero-stats span { font-size: 12px; line-height: 1.25; }
  .project-media { min-height: 240px; }
  .project-slider-stage { height: clamp(280px, calc(100svh - 190px), 520px); }
  .slider-arrow { width: 40px; height: 38px; }
  .slider-dots button { width: 22px; }
  .slider-dots button.active { width: 38px; }
  .image-gallery-editor { grid-template-columns: 1fr; }
  .admin-tabs { grid-template-columns: 1fr; }
  .admin-card-head, .editor-footer { align-items: stretch; flex-direction: column; }
  .footer {
    grid-template-columns: 1fr;
    justify-items: start;
  }
  .developer-link { justify-self: start; }
  .footer-links { align-items: flex-start; flex-direction: column; }
}

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