/* ============================================================
   MOON ABOVE — Editorial CSS
   Independent Art & Cultural Advisory
   ============================================================ */


/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --gray-light: #f5f5f3;
  --gray-mid: #e8e8e4;
  --gray-text: #888880;
  --serif: 'EB Garamond', Georgia, serif;
  --sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --nav-h: 72px;
  --max: 1400px;
  --pad: clamp(24px, 5vw, 80px);
}

html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-text);
}

/* === LAYOUT === */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* === NAVIGATION === */
nav.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-mid);
  z-index: 100;
  display: flex;
  align-items: center;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.nav-logo {
  font-family: 'Inter', 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--black);
}

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-links a {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--black);
  transform: scaleX(0);
  transition: transform 0.2s;
  transform-origin: left;
}

.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

/* Contact CTA button in nav */
.nav-links a.nav-cta {
  background: var(--black);
  color: var(--white);
  padding: 8px 18px;
  letter-spacing: 0.1em;
  margin-left: 8px;
  transition: background 0.2s, opacity 0.2s;
}

.nav-links a.nav-cta::after { display: none; }
.nav-links a.nav-cta:hover  { background: #333; opacity: 1; }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--black);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-mid);
  padding: 32px var(--pad) 40px;
  z-index: 99;
}

.nav-mobile.open { display: block; }

.nav-mobile a {
  display: block;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-mid);
  color: var(--black);
  text-decoration: none;
}

/* Contact CTA in mobile nav — black pill like desktop */
.nav-mobile-cta {
  display: block;
  margin-top: 20px;
  background: var(--black) !important;
  color: var(--white) !important;
  text-align: center;
  padding: 16px 0 !important;
  border: none !important;
  letter-spacing: 0.12em;
  font-size: 11px !important;
  font-weight: 400;
  text-transform: uppercase;
}

.nav-mobile-cta:hover {
  background: #333 !important;
  color: var(--white) !important;
}

/* === PAGE WRAPPER === */
.page-wrap { padding-top: var(--nav-h); }

/* === HERO — HOMEPAGE === */
.hero-home {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--nav-h));
  align-items: stretch;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(60px, 8vw, 120px) var(--pad) clamp(60px, 8vw, 120px) var(--pad);
  padding-left: var(--pad);
}

.hero-headline {
  font-family: var(--serif);
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  color: var(--black);
}

.hero-sub {
  font-family: var(--sans);
  font-size: clamp(13px, 1.2vw, 15px);
  font-weight: 300;
  line-height: 1.7;
  color: var(--black);
  max-width: 320px;
  margin-bottom: 48px;
}

.hero-right {
  position: relative;
  overflow: hidden;
  background: var(--gray-light);
}

.hero-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* === CTA LINK === */
.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--black);
  border-bottom: 1px solid var(--black);
  padding-bottom: 4px;
  transition: opacity 0.2s;
}

.cta-link:hover { opacity: 0.5; }

.cta-link .arrow { font-size: 14px; transition: transform 0.2s; }
.cta-link:hover .arrow { transform: translateX(4px); }

/* === SECTION BASE === */
section {
  padding: clamp(80px, 10vw, 140px) 0;
}

section.bordered {
  border-top: 1px solid var(--gray-mid);
}

/* === APPROACH SECTION === */
.approach-section {
  border-top: 1px solid var(--gray-mid);
}

.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.approach-left .section-label {
  margin-bottom: 40px;
}

.approach-headline {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}

.approach-text {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--black);
  max-width: 440px;
}

.approach-right {
  padding-top: 16px;
}

.process-list {
  border-top: 1px solid var(--gray-mid);
}

.process-item {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-mid);
}

.process-num {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--gray-text);
  width: 28px;
  flex-shrink: 0;
}

.process-name {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--black);
}

/* === SERVICES SECTION (2-col) === */
.services-section {
  border-top: 1px solid var(--gray-mid);
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.service-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-right: 1px solid var(--gray-mid);
}

.service-col:last-child {
  border-right: none;
}

.service-content {
  padding: clamp(40px, 5vw, 80px) clamp(32px, 4vw, 64px);
}

.service-image {
  background: var(--gray-light);
  overflow: hidden;
  min-height: 400px;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-label {
  margin-bottom: 32px;
}

.service-title {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.service-divider {
  width: 24px;
  height: 1px;
  background: var(--black);
  margin-bottom: 28px;
}

.service-text {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.75;
  margin-bottom: 32px;
  color: var(--black);
}

.service-list {
  margin-bottom: 40px;
}

.service-list li {
  font-size: 13px;
  font-weight: 300;
  line-height: 2;
  color: var(--black);
}

/* === METHOD SECTION === */
.method-section {
  border-top: 1px solid var(--gray-mid);
  background: var(--gray-light);
}

.method-label { margin-bottom: 60px; }

.method-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--gray-mid);
}

.method-step {
  padding: 32px 0;
  border-right: 1px solid var(--gray-mid);
  padding-right: 32px;
}

.method-step:last-child { border-right: none; }

.method-num {
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 400;
  color: var(--black);
  line-height: 1;
  margin-bottom: 12px;
}

.method-name {
  font-size: 12px;
  font-weight: 300;
  font-family: var(--serif);
  font-style: italic;
  color: var(--black);
}

/* === WHY SECTION === */
.why-section {
  border-top: 1px solid var(--gray-mid);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.why-left {}

.why-section-label { margin-bottom: 60px; }

.why-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 32px;
  padding: 24px 0;
  border-top: 1px solid var(--gray-mid);
}

.why-row:last-child { border-bottom: 1px solid var(--gray-mid); }

.why-label-col {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--black);
  padding-top: 2px;
}

.why-text-col {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--black);
}

.why-image {
  background: var(--gray-light);
  overflow: hidden;
  aspect-ratio: 3/4;
}

.why-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* === FINAL CTA === */
.final-cta {
  border-top: 1px solid var(--gray-mid);
}

.final-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.final-cta-text {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  max-width: 560px;
}

/* === INNER PAGE HERO === */
.page-hero {
  border-bottom: 1px solid var(--gray-mid);
  padding: clamp(60px, 8vw, 120px) 0 clamp(40px, 5vw, 80px);
}

.page-hero-label { margin-bottom: 24px; }

.page-hero-title {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 76px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  max-width: 900px;
  margin-bottom: 24px;
}

.page-hero-sub {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  max-width: 520px;
  color: var(--black);
}

/* === PAGE CONTENT === */
.page-content {
  padding: clamp(60px, 8vw, 120px) 0;
}

.content-body {
  max-width: 720px;
}

.content-body p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 24px;
}

.content-body h2 {
  font-size: clamp(24px, 3vw, 36px);
  margin-top: 48px;
  margin-bottom: 20px;
}

.content-body h3 {
  font-size: 18px;
  margin-top: 36px;
  margin-bottom: 16px;
}

.content-body ul, .content-body ol {
  margin: 20px 0 20px 24px;
}

.content-body li {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 8px;
  list-style: disc;
}

/* === TWO-COL LAYOUT === */
.two-col-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

/* === INSIGHTS / ARTICLES === */
.insights-grid {
  display: grid;
  gap: 0;
}

.article-row {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: 40px;
  align-items: center;
  padding: 32px 0;
  border-top: 1px solid var(--gray-mid);
  transition: opacity 0.2s;
  cursor: pointer;
}

.article-row:last-child { border-bottom: 1px solid var(--gray-mid); }
.article-row:hover { opacity: 0.6; }

.article-date {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-text);
  font-weight: 400;
}

.article-title {
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 400;
  line-height: 1.3;
}

.article-arrow {
  font-size: 18px;
  color: var(--black);
}

/* === ARTICLE DETAIL === */
.article-hero-image {
  width: 100%;
  aspect-ratio: 16/7;
  overflow: hidden;
  background: var(--gray-light);
  margin-top: clamp(40px, 5vw, 80px);
  margin-bottom: clamp(40px, 5vw, 80px);
}

.article-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-body {
  max-width: 680px;
  margin: 0 auto;
}

/* === CONTACT === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(60px, 8vw, 120px);
  align-items: start;
}

.contact-info p {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 40px;
}

.contact-detail {
  margin-bottom: 32px;
}

.contact-detail-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-text);
  margin-bottom: 8px;
}

.contact-detail-value {
  font-size: 14px;
  font-weight: 300;
}

/* === FORM === */
.contact-form {}

.form-row {
  margin-bottom: 24px;
}

.form-row label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-text);
  margin-bottom: 10px;
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--gray-mid);
  background: transparent;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 300;
  color: var(--black);
  padding: 12px 0;
  outline: none;
  transition: border-color 0.2s;
  border-radius: 0;
}

.form-row input:focus,
.form-row textarea:focus {
  border-bottom-color: var(--black);
}

.form-row textarea {
  min-height: 120px;
  resize: vertical;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--black);
  border: none;
  padding: 18px 40px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  margin-top: 16px;
}

.btn-submit:hover {
  background: var(--gray-text);
}

.form-success {
  padding: 20px 0;
  font-size: 14px;
  font-weight: 300;
  border-top: 1px solid var(--gray-mid);
  display: none;
}

/* === ABOUT PAGE === */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  padding-bottom: clamp(60px, 8vw, 120px);
  border-bottom: 1px solid var(--gray-mid);
}

.about-image {
  background: var(--gray-light);
  overflow: hidden;
  aspect-ratio: 3/4;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* === PROCESS PAGE === */
.process-page-steps { border-top: 1px solid var(--gray-mid); }

.process-page-item {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 60px;
  padding: clamp(40px, 5vw, 72px) 0;
  border-bottom: 1px solid var(--gray-mid);
  align-items: start;
}

.process-page-num {
  font-family: var(--serif);
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 400;
  line-height: 1;
  color: var(--black);
}

.process-page-title {
  font-family: var(--serif);
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 400;
  margin-bottom: 16px;
}

.process-page-text {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--black);
}

/* === FULL-WIDTH IMAGE BAND === */
.image-band {
  width: 100%;
  aspect-ratio: 21/7;
  overflow: hidden;
  background: var(--gray-light);
}

.image-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* === PLACEHOLDER IMAGE === */
.img-placeholder {
  width: 100%;
  height: 100%;
  background: var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-text);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* === FOOTER === */
footer.site-footer {
  border-top: 1px solid var(--gray-mid);
  padding: clamp(40px, 5vw, 72px) 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand-name {
  font-family: 'Inter', 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.footer-brand-tag {
  font-size: 12px;
  font-weight: 300;
  color: var(--gray-text);
  margin-bottom: 32px;
}

.footer-col-title {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-text);
  margin-bottom: 20px;
}

.footer-links a {
  display: block;
  font-size: 12px;
  font-weight: 300;
  line-height: 2.2;
  color: var(--black);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--gray-text); }

.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-text);
  transition: color 0.2s;
  line-height: 1;
}

.footer-social a:hover { color: var(--black); }

.footer-bottom {
  border-top: 1px solid var(--gray-mid);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 11px;
  font-weight: 300;
  color: var(--gray-text);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 11px;
  font-weight: 300;
  color: var(--gray-text);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.footer-legal a:hover { color: var(--black); }

/* === FLASH MESSAGES === */
.flash {
  padding: 12px 24px;
  font-size: 13px;
  margin-bottom: 24px;
  border: 1px solid;
}

.flash.success { border-color: #2d7a2d; color: #2d7a2d; background: #f0f8f0; }
.flash.error   { border-color: #c0392b; color: #c0392b; background: #fdf0ee; }

/* === ADMIN PANEL === */
.admin-body {
  font-family: var(--sans);
  background: #f7f7f5;
  min-height: 100vh;
}

.admin-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  background: var(--black);
  display: flex;
  align-items: center;
  z-index: 200;
}

.admin-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 24px;
}

.admin-bar-brand {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
}

.admin-bar-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.admin-bar-right a {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.06em;
  transition: color 0.2s;
}

.admin-bar-right a:hover { color: var(--white); }

.admin-layout {
  display: flex;
  padding-top: 56px;
  min-height: 100vh;
}

.admin-sidebar {
  width: 220px;
  background: var(--white);
  border-right: 1px solid var(--gray-mid);
  position: fixed;
  top: 56px;
  bottom: 0;
  overflow-y: auto;
  padding: 32px 0;
  flex-shrink: 0;
}

.admin-sidebar-section {
  margin-bottom: 32px;
}

.admin-sidebar-title {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-text);
  padding: 0 24px;
  margin-bottom: 8px;
}

.admin-sidebar a {
  display: block;
  font-size: 13px;
  font-weight: 300;
  color: var(--black);
  padding: 10px 24px;
  transition: background 0.15s;
  border-left: 2px solid transparent;
}

.admin-sidebar a:hover { background: var(--gray-light); }
.admin-sidebar a.active {
  border-left-color: var(--black);
  background: var(--gray-light);
  font-weight: 400;
}

.admin-main {
  margin-left: 220px;
  flex: 1;
  padding: 40px 48px;
  max-width: 1100px;
}

.admin-page-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 32px;
  color: var(--black);
}

/* Admin table */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 13px;
}

.admin-table th {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-text);
  font-weight: 400;
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--gray-mid);
}

.admin-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--gray-mid);
  font-weight: 300;
  color: var(--black);
  vertical-align: middle;
}

.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #fbfbf9; }

.admin-table a { color: var(--black); border-bottom: 1px solid var(--gray-mid); }

/* Admin form */
.admin-form { max-width: 760px; }

.admin-form-section {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  padding: 32px;
  margin-bottom: 24px;
}

.admin-form-section-title {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-text);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-mid);
}

.admin-field {
  margin-bottom: 24px;
}

.admin-field label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-text);
  margin-bottom: 8px;
}

.admin-field input[type="text"],
.admin-field input[type="email"],
.admin-field input[type="password"],
.admin-field input[type="url"],
.admin-field select,
.admin-field textarea {
  width: 100%;
  border: 1px solid var(--gray-mid);
  background: var(--white);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 300;
  color: var(--black);
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.2s;
  border-radius: 0;
  -webkit-appearance: none;
}

.admin-field input:focus,
.admin-field textarea:focus,
.admin-field select:focus {
  border-color: var(--black);
}

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

.admin-field-hint {
  font-size: 11px;
  color: var(--gray-text);
  margin-top: 6px;
}

.admin-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* Admin buttons */
.btn-admin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 28px;
  cursor: pointer;
  border: 1px solid;
  transition: all 0.2s;
  border-radius: 0;
  text-decoration: none;
}

.btn-admin-primary {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.btn-admin-primary:hover { background: #333; border-color: #333; }

.btn-admin-ghost {
  background: transparent;
  color: var(--black);
  border-color: var(--gray-mid);
}

.btn-admin-ghost:hover { border-color: var(--black); }

.btn-admin-danger {
  background: transparent;
  color: #c0392b;
  border-color: #c0392b;
  font-size: 11px;
  padding: 6px 14px;
}

.btn-admin-danger:hover { background: #c0392b; color: var(--white); }

.btn-admin-sm {
  font-size: 10px;
  padding: 6px 14px;
}

/* Admin actions bar */
.admin-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}

/* Status badges */
.badge {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border: 1px solid;
  font-weight: 400;
}

.badge-published { color: #2d7a2d; border-color: #2d7a2d; }
.badge-draft     { color: var(--gray-text); border-color: var(--gray-mid); }
.badge-unread    { color: var(--black); border-color: var(--black); background: var(--black); color: var(--white); }
.badge-read      { color: var(--gray-text); border-color: var(--gray-mid); }

/* Dashboard stats */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  padding: 28px 32px;
}

.stat-num {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 400;
  line-height: 1;
  color: var(--black);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-text);
}

/* Admin login */
.admin-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
}

.admin-login-box {
  width: 100%;
  max-width: 420px;
  padding: 0 24px;
}

.admin-login-brand {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.admin-login-sub {
  font-size: 12px;
  color: var(--gray-text);
  margin-bottom: 48px;
}

/* Checkbox */
.admin-checkbox-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.admin-checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border: 1px solid var(--gray-mid);
  cursor: pointer;
}

.admin-checkbox-row label {
  font-size: 13px;
  font-weight: 300;
  color: var(--black);
  cursor: pointer;
}

/* Media grid */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.media-item {
  border: 1px solid var(--gray-mid);
  background: var(--white);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s;
}

.media-item:hover { border-color: var(--black); }

.media-thumb {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--gray-light);
}

.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-info {
  padding: 10px;
}

.media-name {
  font-size: 11px;
  font-weight: 300;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* === INSTALL WIZARD === */
.install-wrap {
  min-height: 100vh;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 80px 24px;
}

.install-brand {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
  text-align: center;
}

.install-tagline {
  font-size: 12px;
  color: var(--gray-text);
  margin-bottom: 56px;
  text-align: center;
}

.install-box {
  width: 100%;
  max-width: 600px;
}

.install-steps {
  display: flex;
  gap: 0;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--gray-mid);
}

.install-step-ind {
  flex: 1;
  text-align: center;
  padding: 12px 8px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-text);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.install-step-ind.active {
  color: var(--black);
  border-bottom-color: var(--black);
}

.install-step-ind.done {
  color: #2d7a2d;
  border-bottom-color: #2d7a2d;
}

.install-title {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 8px;
}

.install-desc {
  font-size: 14px;
  font-weight: 300;
  color: var(--gray-text);
  margin-bottom: 40px;
  line-height: 1.6;
}

.install-form-row { margin-bottom: 24px; }

.install-form-row label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-text);
  margin-bottom: 8px;
}

.install-form-row input {
  width: 100%;
  border: 1px solid var(--gray-mid);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 300;
  color: var(--black);
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s;
  background: var(--white);
  border-radius: 0;
}

.install-form-row input:focus { border-color: var(--black); }

.check-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-mid);
  font-size: 13px;
  font-weight: 300;
}

.check-row:first-child { border-top: 1px solid var(--gray-mid); }

.check-icon { font-size: 16px; width: 24px; text-align: center; }
.check-ok   { color: #2d7a2d; }
.check-fail { color: #c0392b; }
.check-warn { color: #e67e22; }

.install-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-mid);
}

.btn-install {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px 36px;
  border: 1px solid var(--black);
  cursor: pointer;
  background: var(--black);
  color: var(--white);
  transition: background 0.2s;
  border-radius: 0;
}

.btn-install:hover { background: #333; }
.btn-install-ghost { background: var(--white); color: var(--black); }
.btn-install-ghost:hover { background: var(--gray-light); }

.progress-bar-wrap {
  width: 100%;
  height: 2px;
  background: var(--gray-mid);
  margin-bottom: 16px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--black);
  transition: width 0.5s ease;
}

.install-log {
  background: #0a0a0a;
  color: #9e9e9e;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  line-height: 1.8;
  padding: 24px;
  min-height: 200px;
  max-height: 360px;
  overflow-y: auto;
  margin-top: 24px;
}

.install-log .log-ok   { color: #4caf50; }
.install-log .log-err  { color: #f44336; }
.install-log .log-info { color: #90caf9; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .hero-home { grid-template-columns: 1fr; min-height: auto; }
  .hero-right { aspect-ratio: 16/9; }
  .hero-left { padding: 60px var(--pad); }

  .approach-grid { grid-template-columns: 1fr; gap: 48px; }
  .why-grid { grid-template-columns: 1fr; }
  .why-image { display: none; }

  .services-grid { grid-template-columns: 1fr; }
  .service-col { grid-template-columns: 1fr; border-right: none; border-bottom: 1px solid var(--gray-mid); }
  .service-image { min-height: 280px; }
  .service-col:last-child { border-bottom: none; }

  .method-timeline { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .dashboard-stats { grid-template-columns: 1fr 1fr; }

  .two-col-layout { grid-template-columns: 1fr; gap: 40px; }
  .about-intro { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }

  .process-page-item { grid-template-columns: 60px 1fr; gap: 32px; }
  .process-page-item > *:last-child { grid-column: 2; }

  .final-cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .hero-headline { font-size: clamp(36px, 10vw, 56px); }

  .method-timeline { grid-template-columns: 1fr 1fr; }
  .method-step { border-right: none; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-text);
  transition: color 0.2s;
  line-height: 1;
}

.footer-social a:hover { color: var(--black); }

.footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-legal { gap: 16px; }

  .dashboard-stats { grid-template-columns: 1fr 1fr; }
  .admin-sidebar { display: none; }
  .admin-main { margin-left: 0; padding: 24px; }

  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .article-row { grid-template-columns: 1fr; gap: 8px; }
  .article-date { display: none; }

  .why-row { grid-template-columns: 1fr; gap: 8px; }
  .why-label-col { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-text); }
  .admin-grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  :root { --pad: 20px; }
  .method-timeline { grid-template-columns: 1fr; }
  .install-steps { display: none; }
  .dashboard-stats { grid-template-columns: 1fr; }
}
