@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --paper: #F5F1E8;
  --cream: #EAE3D2;
  --ink: #111111;
  --slate: #101517;
  --brown: #30251F;
  --rust: #A65D43;
  --olive: #65705A;
  --gold: #B69A62;
  --teal: #1D9B91;
  --teal-soft: #8ED6D1;
  --navy: #063B5A;
  --muted: #737B7D;
  --muted-light: #A3ACA9;
  --line: rgba(17, 17, 17, 0.12);
  --line-light: rgba(245, 241, 232, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--slate);
  color: var(--paper);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  position: relative;
  background-color: var(--slate);
  color: var(--paper);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.25s var(--ease), color 0.25s var(--ease);
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

::selection {
  background: var(--rust);
  color: var(--paper);
}

/* Custom Cursor */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  background: var(--teal-soft);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), background 0.3s var(--ease), opacity 0.3s var(--ease);
  will-change: transform, width, height;
}

.custom-cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(142, 214, 209, 0.45);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease-out, width 0.3s var(--ease), height 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-cursor-follower span {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--ink);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.custom-cursor.hovering {
  width: 4px;
  height: 4px;
  opacity: 0.5;
}

.custom-cursor-follower.hovering {
  width: 58px;
  height: 58px;
  border-color: rgba(166, 93, 67, 0.7);
  background: rgba(166, 93, 67, 0.1);
}

.custom-cursor-follower.viewing {
  width: 70px;
  height: 70px;
  background: var(--paper);
  border-color: var(--paper);
}

.custom-cursor-follower.viewing span {
  opacity: 1;
}

@media (pointer: coarse), (max-width: 1024px) {
  .custom-cursor,
  .custom-cursor-follower {
    display: none !important;
  }
}

/* Page Transition Overlay */
.page-wipe {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 10000;
  transform: translateY(100%);
  pointer-events: none;
}

/* Navigation */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6vw;
  z-index: 1000;
  transition: background 0.4s var(--ease), height 0.4s var(--ease), border-bottom 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-nav.scrolled {
  background: rgba(16, 21, 23, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  height: 68px;
  border-bottom: 1px solid var(--line-light);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.brand-text {
  line-height: 1.05;
}

.brand-name {
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--paper);
}

.brand-tag {
  display: block;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--teal-soft);
  margin-top: 3px;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}

.navlinks a {
  opacity: 0.8;
  position: relative;
  padding: 6px 0;
}

.navlinks a:hover,
.navlinks a.active {
  opacity: 1;
  color: #ffffff;
}

.navlinks a:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--teal-soft);
  transition: width 0.3s var(--ease);
}

.navlinks a:hover:after,
.navlinks a.active:after {
  width: 100%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(245, 241, 232, 0.35);
  transition: all 0.3s var(--ease);
}

.nav-cta:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  font-size: 26px;
  color: var(--paper);
  border: none;
  background: none;
}

/* Mobile Menu */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: var(--slate);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 8vw;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}

.mobile-drawer.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-drawer a {
  font-family: var(--font-serif);
  font-size: 34px;
  line-height: 1.1;
  border-bottom: 1px solid var(--line-light);
  padding-bottom: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.btn-primary {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--paper);
}

.btn-primary:hover {
  background: var(--teal-soft);
  border-color: var(--teal-soft);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(29, 155, 145, 0.25);
}

.btn-outline {
  border: 1px solid rgba(245, 241, 232, 0.3);
  color: var(--paper);
}

.btn-outline:hover {
  background: rgba(245, 241, 232, 0.1);
  border-color: var(--paper);
  transform: translateY(-2px);
}

.btn-rust {
  background: var(--rust);
  color: var(--paper);
  border: 1px solid var(--rust);
}

.btn-rust:hover {
  background: #bd6a4d;
  border-color: #bd6a4d;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(166, 93, 67, 0.35);
}

/* Typography Helpers */
.font-serif {
  font-family: var(--font-serif);
}

.kicker {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--teal-soft);
  font-weight: 600;
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.kicker:before {
  content: "";
  width: 14px;
  height: 1.5px;
  background: var(--teal-soft);
}

.kicker-rust {
  color: var(--rust);
}

.kicker-rust:before {
  background: var(--rust);
}

/* Standard Section Padding */
.page-header {
  padding: 160px 6vw 70px;
  position: relative;
  background: radial-gradient(circle at 80% 30%, rgba(29, 155, 145, 0.08), transparent 45%), var(--slate);
  border-bottom: 1px solid var(--line-light);
}

.page-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(48px, 6.5vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 600;
  max-width: 950px;
  margin-bottom: 24px;
}

.page-header p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted-light);
  max-width: 620px;
}

.section {
  padding: 120px 6vw;
  position: relative;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 60px;
}

.section-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(40px, 4.8vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 600;
  max-width: 780px;
  margin-top: 12px;
}

.section-head p {
  color: var(--muted-light);
  max-width: 480px;
  font-size: 16px;
  line-height: 1.7;
}

/* Editorial Grid Layouts */
.editorial-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 30px;
}

/* Footer */
.site-footer {
  background: #090D0E;
  color: var(--muted-light);
  padding: 100px 6vw 50px;
  border-top: 1px solid var(--line-light);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 70px;
  border-bottom: 1px solid var(--line-light);
}

.footer-brand h3 {
  font-family: var(--font-serif);
  font-size: 32px;
  color: var(--paper);
  line-height: 1;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  max-width: 320px;
  color: var(--muted-light);
  margin-bottom: 24px;
}

.footer-address {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted-light);
}

.footer-address strong {
  color: var(--paper);
  display: block;
  margin-bottom: 4px;
}

.footer-col h4 {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal-soft);
  margin-bottom: 22px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
}

.footer-col a:hover {
  color: var(--paper);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 40px;
  font-size: 12px;
  letter-spacing: 0.05em;
}

.footer-bottom a {
  color: var(--teal-soft);
}

/* Reveal utility */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

/* ==========================================================================
   NEW EXPANSIVE AGENCY SECTIONS STYLING
   ========================================================================== */

/* 1. Credentials Strip */
.credentials-strip {
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  background: rgba(16, 21, 23, 0.85);
  backdrop-filter: blur(12px);
  padding: 30px 6vw;
  position: relative;
  z-index: 10;
}

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.credential-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.credential-num {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 600;
  color: var(--paper);
  letter-spacing: -0.02em;
}

.credential-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-soft);
  font-weight: 700;
}

.credential-sub {
  font-size: 13px;
  color: var(--muted-light);
  line-height: 1.4;
}

/* 2. Manifesto Section */
.manifesto-container {
  max-width: 1080px;
  margin: 0 auto;
}

.manifesto-quote {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--paper);
  margin-bottom: 40px;
}

.manifesto-quote em {
  font-style: italic;
  color: var(--teal-soft);
}

.manifesto-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  font-size: 17px;
  line-height: 1.8;
  color: var(--muted-light);
  margin-bottom: 50px;
}

.manifesto-author {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 30px;
  border-top: 1px solid var(--line-light);
}

.author-sig {
  font-family: var(--font-serif);
  font-size: 26px;
  font-style: italic;
  color: var(--paper);
}

.author-meta {
  font-size: 13px;
  color: var(--muted-light);
  line-height: 1.4;
}

/* 3. Real Architecture Diagram Cards */
.arch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.arch-card {
  background: var(--card-bg);
  border: 1px solid var(--line-light);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.arch-card:hover {
  border-color: var(--teal-soft);
  transform: translateY(-4px);
}

.arch-badge {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rust);
  font-weight: 700;
}

.arch-card h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--paper);
  margin-bottom: 8px;
}

.arch-pipeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 18px 16px;
  border-radius: 4px;
}

.pipeline-node {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--paper);
}

.node-icon {
  width: 28px;
  height: 28px;
  background: rgba(29, 155, 145, 0.15);
  border: 1px solid var(--teal-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--teal-soft);
  flex-shrink: 0;
}

.node-arrow {
  padding-left: 12px;
  color: var(--muted-dark);
  font-size: 11px;
}

.arch-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.arch-tech-tags span {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted-light);
}

/* 4. Interactive Scope & Cost Estimator */
.estimator-box {
  background: var(--card-bg);
  border: 1px solid var(--line-light);
  padding: 50px 6vw;
  margin-top: 40px;
}

.estimator-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
}

.estimator-step {
  margin-bottom: 34px;
}

.estimator-step-label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-soft);
  font-weight: 700;
  margin-bottom: 14px;
}

.estimator-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}

.est-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-light);
  color: var(--muted-light);
  padding: 14px 16px;
  font-size: 14px;
  font-family: var(--font-sans);
  cursor: pointer;
  text-align: left;
  transition: all 0.25s var(--ease);
}

.est-btn:hover {
  border-color: var(--teal-soft);
  color: var(--paper);
}

.est-btn.active {
  background: rgba(29, 155, 145, 0.15);
  border-color: var(--teal-soft);
  color: var(--paper);
  font-weight: 600;
}

.estimator-summary-panel {
  background: #0E1416;
  border: 1px solid var(--line-light);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.summary-headline {
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--paper);
  margin-bottom: 12px;
}

.summary-meta-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 24px 0;
  font-size: 14px;
  color: var(--muted-light);
}

.summary-meta-list li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
}

.summary-meta-list li span:last-child {
  color: var(--paper);
  font-weight: 600;
}

/* 5. Metro Agencies vs Pubvance Comparison Table */
.comparison-table-wrapper {
  overflow-x: auto;
  margin-top: 40px;
  border: 1px solid var(--line-light);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}

.comparison-table th,
.comparison-table td {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line-light);
  vertical-align: top;
}

.comparison-table th {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.02);
}

.comparison-table th:nth-child(2) {
  color: var(--muted-dark);
}

.comparison-table th:nth-child(3) {
  color: var(--teal-soft);
  background: rgba(29, 155, 145, 0.08);
}

.comparison-table td:nth-child(1) {
  color: var(--paper);
  font-weight: 600;
  width: 28%;
}

.comparison-table td:nth-child(2) {
  color: var(--muted-dark);
  width: 36%;
}

.comparison-table td:nth-child(3) {
  color: var(--paper);
  background: rgba(29, 155, 145, 0.04);
  width: 36%;
}

/* 6. FAQ Accordion */
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 960px;
  margin: 40px auto 0;
}

.faq-item {
  border: 1px solid var(--line-light);
  background: var(--card-bg);
  transition: border-color 0.25s var(--ease);
}

.faq-item.active {
  border-color: var(--teal-soft);
}

.faq-question {
  width: 100%;
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--paper);
  text-align: left;
  cursor: pointer;
}

.faq-toggle-icon {
  font-size: 20px;
  color: var(--teal-soft);
  transition: transform 0.3s var(--ease);
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}

.faq-answer-inner {
  padding: 0 28px 26px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted-light);
}

/* 7. Floating Quick Connect Dock */
.quick-dock {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(16, 21, 23, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 99;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
  animation: dockSlideUp 0.8s var(--ease) forwards;
}

@keyframes dockSlideUp {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.dock-badge {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--teal-soft);
  font-weight: 700;
  padding: 6px 14px;
  background: rgba(29, 155, 145, 0.15);
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dock-pulse {
  width: 7px;
  height: 7px;
  background: #25D366;
  border-radius: 50%;
  box-shadow: 0 0 8px #25D366;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.dock-link {
  font-size: 13px;
  color: var(--paper);
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  transition: all 0.2s var(--ease);
  display: flex;
  align-items: center;
  gap: 6px;
}

.dock-link:hover {
  background: rgba(255, 255, 255, 0.08);
}

.dock-cta {
  background: var(--rust);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

.dock-cta:hover {
  transform: translateY(-1px);
  background: #BC694C;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .navlinks, .nav-cta {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 80px 6vw;
  }
  .section-head {
    display: block;
  }
  .section-head p {
    margin-top: 20px;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
