/* ============================================================
   Antelope Group Consulting — Editorial / Swiss Precision v7
   Light, typographic, intentional
   ============================================================ */

:root {
  --bg:       #F5F2ED;
  --bg-dark:  #1A1A1A;
  --text:     #1A1A1A;
  --text-mid: rgba(26, 26, 26, 0.8);
  --text-dim: rgba(26, 26, 26, 0.5);
  --text-inv: #F5F2ED;
  --accent:   #C23D29;
  --green:    #1B6B4A;
  --line:     rgba(26, 26, 26, 0.3);
  --line-inv: rgba(245, 242, 237, 0.3);
  --maxw:     1400px;
  --font:     'General Sans', 'Inter', system-ui, sans-serif;
  --serif:    'Instrument Serif', 'Georgia', serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

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

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; cursor: pointer; }
button { cursor: pointer; font-family: inherit; }
ul { list-style: none; }

/* ---- Layout ---- */

.container {
  width: min(var(--maxw), calc(100% - 3rem));
  margin-inline: auto;
}

/* ---- Header ---- */

.site-header {
  padding: 2rem 0 1.5rem;
  margin-bottom: 4rem;
  position: relative;
}

.site-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
  transform-origin: left;
  animation: drawLine 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

/* Logo */
.logo-icon {
  width: 2rem;
  height: 2rem;
  background: var(--bg-dark);
  border-radius: 2px;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 0.2rem;
}

.logo-name {
  font-family: Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.logo-sub {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-mid);
}

.header-cta {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.05em;
  position: relative;
  transition: color 0.15s ease;
}

.header-cta::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-cta:hover::after { width: 100%; }

/* ---- Hero ---- */

.hero {
  margin-bottom: 6rem;
  position: relative;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 7.5rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.02em;
  max-width: 14ch;
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 1.12rem;
  color: var(--text-mid);
  max-width: 52ch;
  line-height: 1.7;
}

/* Schematic SVG (background) */
.schematic-bg {
  position: absolute;
  right: -5%;
  top: -80px;
  width: 30%;
  height: 100vh;
  pointer-events: none;
  opacity: 0.2;
  z-index: 0;
}

.schematic-line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawSchematic 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.schematic-line-2 {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: drawSchematic 3.5s cubic-bezier(0.4, 0, 0.2, 1) infinite 0.5s;
}

.schematic-line-3 {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: drawSchematic 3s cubic-bezier(0.4, 0, 0.2, 1) infinite 0.2s;
}

/* ---- Section Divider ---- */

.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding-bottom: 1rem;
  margin-bottom: 2.5rem;
  position: relative;
}

.section-label::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}

/* ---- Capabilities ---- */

.capabilities-layout {
  display: flex;
  gap: 0;
}

.capabilities-list {
  flex: 0 0 55%;
  max-width: 55%;
}

.capabilities-schematic {
  flex: 1;
  position: relative;
  min-height: 400px;
}

.cap-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.3;
}

.cap-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  position: relative;
  align-items: start;
}

.cap-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}

.cap-num {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  padding-top: 0.5rem;
}

.cap-item h3 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 0.8rem;
}

.cap-item p {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.65;
  max-width: 55ch;
}

/* ---- Delivery Method (2x2 grid) ---- */

#delivery {
  margin-top: 6rem;
}

.delivery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem 4rem;
}

.delivery-grid h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
}

.delivery-grid p {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.65;
}

/* ---- Technology (mono list) ---- */

#technology {
  margin-top: 6rem;
}

.tech-list {
  font-family: 'Courier New', monospace;
  font-size: 0.88rem;
  line-height: 2;
  color: var(--text);
  letter-spacing: 0.02em;
}

/* ---- Track Record ---- */

#results {
  margin-top: 6rem;
}

.track-records {
  max-width: 60ch;
}

.track-item {
  font-size: 1.08rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.track-item strong {
  font-weight: 700;
  margin-right: 0.3rem;
}

/* ---- Contact (dark section) ---- */

.contact-section {
  background: var(--bg-dark);
  color: var(--text-inv);
  margin-top: 6rem;
}

.contact-inner {
  padding: 6rem 0 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-inner h2 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: 2.5rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 3rem;
}

.contact-links a {
  font-size: 1.05rem;
  color: var(--text-inv);
  position: relative;
  width: fit-content;
  transition: color 0.15s ease;
}

.contact-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-links a:hover { color: var(--accent); }
.contact-links a:hover::after { width: 100%; }

.contact-locations {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
}

.contact-locations p {
  font-size: 0.82rem;
  color: rgba(245, 242, 237, 0.5);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.contact-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8rem;
  padding: 2rem 0;
  position: relative;
}

.contact-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line-inv);
}

.contact-footer p {
  font-size: 0.82rem;
  color: rgba(245, 242, 237, 0.5);
}

/* ---- Animations ---- */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-word {
  display: block;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-word.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@keyframes drawLine {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes drawSchematic {
  0% { stroke-dashoffset: 1000; opacity: 0; }
  10% { opacity: 0.8; }
  50% { stroke-dashoffset: 0; opacity: 0.8; }
  60% { stroke-dashoffset: 0; opacity: 0; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

/* ---- Responsive ---- */

@media (max-width: 1024px) {
  .schematic-bg { display: none; }
  .capabilities-layout { flex-direction: column; }
  .capabilities-list { flex: 1; max-width: 100%; }
  .capabilities-schematic { display: none; }
  .delivery-grid { gap: 2rem 3rem; }
}

@media (max-width: 768px) {
  .site-header { margin-bottom: 3rem; }
  .hero { margin-bottom: 4rem; }
  .cap-item { grid-template-columns: 40px 1fr; gap: 1rem; }
  .delivery-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-locations { align-items: flex-start; margin-top: 2rem; }
  .contact-footer { margin-top: 4rem; }
  .container { width: calc(100% - 2rem); }
  #delivery, #technology, #results { margin-top: 4rem; }
}

@media (max-width: 375px) {
  .hero h1 { font-size: 2.5rem; }
}
