/* ===== PERMITSTACK THEME ===== */
:root {
  --bg: #1a1a2e;
  --bg-elevated: #21213a;
  --fg: #f0ede6;
  --fg-muted: #9a958a;
  --accent: #e8a838;
  --accent-dim: rgba(232, 168, 56, 0.15);
  --border: rgba(240, 237, 230, 0.12);
  --border-accent: rgba(232, 168, 56, 0.3);
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

/* ===== BASE ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; color: var(--fg); }
h1 { font-size: clamp(2.2rem, 4vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); margin-bottom: 1.2rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.5rem; color: var(--fg); }
p { color: var(--fg-muted); font-size: 1rem; line-height: 1.7; }

.overline, .section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: block;
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(26, 26, 46, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--fg);
  letter-spacing: 0.02em;
}

.site-header nav {
  display: flex;
  gap: 2rem;
}

.site-header nav a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.site-header nav a:hover { color: var(--fg); }

/* ===== MANIFESTO ===== */
.manifesto {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.manifesto::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 140%;
  background: radial-gradient(ellipse at center, rgba(232, 168, 56, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.manifesto-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.manifesto-text .lede {
  font-size: 1.15rem;
  color: var(--fg-muted);
  margin-top: 1.5rem;
  max-width: 500px;
}

/* ===== GRID ART ===== */
.manifesto-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.grid-art {
  position: relative;
  width: 360px;
  height: 280px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-accent);
  overflow: visible;
}

.grid-line {
  position: absolute;
  background: var(--border);
}

.grid-line.horizontal {
  width: 100%;
  height: 1px;
  top: 20%; }
.grid-line.horizontal:nth-child(2) { top: 40%; }
.grid-line.horizontal:nth-child(3) { top: 60%; }
.grid-line.horizontal:nth-child(4) { top: 80%; }
.grid-line.horizontal:nth-child(5) { display: none; }

.grid-line.vertical {
  height: 100%;
  width: 1px;
  left: 25%; }
.grid-line.vertical:nth-child(6) { left: 50%; }
.grid-line.vertical:nth-child(7) { left: 75%; }

.drawing-block {
  position: absolute;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
}

.block-1 { left: 0; top: 20%; width: 25%; height: 20%; }
.block-2 { left: 25%; top: 20%; width: 25%; height: 20%; border-left: none; }
.block-3 { left: 50%; top: 40%; width: 25%; height: 20%; }
.block-4 { left: 75%; top: 60%; width: 25%; height: 20%; border-left: none; }

.dimension-line {
  position: absolute;
  height: 1px;
  width: 60%;
  left: 0;
  bottom: 10%;
  background: var(--accent);
  opacity: 0.5;
}

.dimension-line.vertical-dim {
  width: 1px;
  height: 40%;
  bottom: 10%;
  left: 10%;
}

.dim-label {
  position: absolute;
  font-family: var(--font-body);
  font-size: 0.65rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.08em;
  bottom: 2%;
  left: 58%;
}

.dim-vertical {
  left: 1%;
  bottom: 52%;
}

.stamp-mark {
  position: absolute;
  right: 12%;
  top: 8%;
  width: 52px;
  height: 52px;
}

.stamp-circle {
  width: 52px;
  height: 52px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
}

.stamp-text {
  font-family: var(--font-body);
  font-size: 0.38rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-align: center;
  text-transform: uppercase;
}

/* ===== SECTION SHARED ===== */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== SERVICES ===== */
.services {
  padding: 5rem 0;
  background: var(--bg-elevated);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem;
  transition: border-color 0.25s, transform 0.25s;
}

.service-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.service-icon {
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.tier-callout {
  margin-top: 2.5rem;
  padding: 1.5rem 2rem;
  border-left: 3px solid var(--accent);
  background: var(--accent-dim);
  border-radius: 0 4px 4px 0;
}

.tier-callout p {
  color: var(--fg);
  font-size: 0.95rem;
}

/* ===== WHO ===== */
.who {
  padding: 5rem 0;
}

.who-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.who-item {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  border: 1px solid transparent;
  border-bottom-color: var(--border);
  border-right-color: var(--border);
  transition: background 0.2s;
}

.who-item:hover { background: var(--bg-elevated); }

.who-number {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--accent);
  opacity: 0.5;
  flex-shrink: 0;
  line-height: 1;
  padding-top: 0.2rem;
}

.who-item h3 { margin-bottom: 0.75rem; }
.who-item p { font-size: 0.9rem; }

/* ===== PROCESS ===== */
.process {
  padding: 5rem 0;
  background: var(--bg-elevated);
}

.process-steps {
  display: flex;
  align-items: flex-start;
  margin-top: 3rem;
  gap: 0;
}

.step {
  flex: 1;
  padding: 0 1rem;
}

.step-num {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--accent);
  opacity: 0.25;
  display: block;
  line-height: 1;
  margin-bottom: 1rem;
}

.step-content h3 { margin-bottom: 0.75rem; }
.step-content p { font-size: 0.9rem; }

.step-connector {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding-top: 1rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.connector-line {
  width: 48px;
  height: 1px;
  background: var(--border-accent);
}

/* ===== DIFFERENCE ===== */
.difference {
  padding: 5rem 0;
}

.diff-content {
  max-width: 680px;
}

.diff-lede {
  font-size: 1.05rem;
  margin-top: 1rem;
  margin-bottom: 2.5rem;
}

.diff-points {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.diff-point {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.diff-marker {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.5rem;
}

.diff-point p { font-size: 0.95rem; color: var(--fg-muted); }

/* ===== CLOSING ===== */
.closing {
  padding: 7rem 0;
  background: var(--bg-elevated);
  text-align: center;
}

.closing h2 { margin-bottom: 1.5rem; }
.closing p { max-width: 560px; margin: 0 auto; font-size: 1.05rem; }

/* ===== FOOTER ===== */
.site-footer { border-top: 1px solid var(--border); }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 3rem;
}

.footer-brand .wordmark {
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.footer-brand p { font-size: 0.85rem; max-width: 320px; }

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

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

.footer-note {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  color: var(--fg-muted);
  opacity: 0.5;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  margin-top: 0.5rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .manifesto-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .manifesto-visual {
    order: -1;
  }

  .grid-art {
    width: 100%;
    height: 200px;
  }

  .manifesto { padding-top: 5rem; }

  .services-grid,
  .who-grid {
    grid-template-columns: 1fr;
  }

  .process-steps {
    flex-direction: column;
    gap: 2rem;
  }

  .step-connector { display: none; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .site-header nav { display: none; }

  .who-item:nth-child(2n) { border-right-color: transparent; }
  .who-item:nth-child(n+3) { border-bottom-color: var(--border); }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .manifesto { padding: 4rem 1.25rem 3rem; }
  .section-inner { padding: 0 1.25rem; }
  .service-card { padding: 1.5rem; }
  .footer-links { gap: 1.25rem; }
}