/* ─── Brand Tokens ─────────────────────────────────────────────── */
:root {
  --portage:   #928FD9;
  --portage-lt:#C5C3EC;
  --portage-dk:#5E5BAA;
  --acacia:    #D9D15F;
  --supergold: #A68524;
  --prune:     #731E16;
  --ink:       #1A1A2E;
  --paper:     #F7F5EF;
  --paper-dk:  #EDEAE0;
  --white:     #FFFFFF;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --radius: 3px;
  --transition: 0.25s ease;
}

/* ─── Reset & Base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ─── Navbar ────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  background: var(--paper);
  border-bottom: 1px solid var(--paper-dk);
  z-index: 1000;
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding: 0.4rem 0.7rem;
  border-radius: 2px;
  transition: color var(--transition), background var(--transition);
}

.nav-links li a:hover {
  color: var(--portage-dk);
  background: rgba(146, 143, 217, 0.1);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--ink);
}

/* ─── Hero ──────────────────────────────────────────────────────── */
.hero {
  margin-top: 64px;
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 5rem;
  overflow: hidden;
}

/* Landscape as a positioned element — takes up right 55% of hero */
.hero-landscape {
  position: absolute;
  top: 0; right: 0;
  width: 75%;
  height: 100%;
  overflow: hidden;
}

.hero-landscape img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(100%) contrast(0.85);
  opacity: 0.55;
}

/* Gradient mask blending landscape into paper on the left */
.hero-landscape::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--paper) 0%, transparent 40%);
  z-index: 1;
}

/* Portage accent bar — thin stripe across the very top */
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--supergold), var(--acacia));
}

.hero-body {
  position: relative;
  z-index: 2;
  max-width: 580px;
}

.hero-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--portage-dk);
  margin-bottom: 1.25rem;
}

.hero-body h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.hero-body h1 em {
  font-style: italic;
  color: var(--supergold);
}

.hero-sub {
  font-size: 1.05rem;
  font-weight: 300;
  color: #444;
  max-width: 460px;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-block;
  background: var(--portage-dk);
  color: var(--white);
  padding: 0.85rem 1.75rem;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: background var(--transition), transform var(--transition);
}

.btn:hover {
  background: var(--portage-dk);
  transform: translateY(-1px);
}

/* ─── About ─────────────────────────────────────────────────────── */
.section-about {
  background: var(--paper);
  padding: 5rem 0;
  border-bottom: 1px solid var(--paper-dk);
}

.about-video {
  margin: 1.5rem 0 4rem;
}

.about-video-copy {
  max-width: 62ch;
  margin-bottom: 1.5rem;
}

.about-video-copy h3 {
  font-size: 1.9rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--supergold);
  margin-bottom: 0.5rem;
}

.about-video-copy p {
  color: #3a3a3a;
  font-size: 0.98rem;
  margin: 0;
}

.about-video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--portage-lt);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-top: 1.5rem;
}

.about-lead h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  position: sticky;
  top: 5rem;
}

.about-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about-skills {
  font-size: 1rem;
  color: #3a3a3a;
  line-height: 1.75;
  margin: 0;
}

.about-skills em {
  font-style: normal;
  color: var(--portage-dk);
  font-weight: 500;
}

.about-creds {
  font-size: 1rem;
  color: #3a3a3a;
  line-height: 1.75;
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--paper-dk);
}

.about-creds strong {
  color: var(--ink);
  font-weight: 500;
}

@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-lead h2 {
    position: static;
  }
}

/* ─── Section Shared ────────────────────────────────────────────── */
.section {
  padding: 6rem 0;
}

.section-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--portage-dk);
  margin-bottom: 1rem;
}

.split-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.split-text p {
  font-size: 1rem;
  color: #3a3a3a;
  margin-bottom: 1rem;
  max-width: 46ch;
}

/* ─── Split Layout (text + image) ───────────────────────────────── */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.split-layout--reverse {
  direction: rtl;
}
.split-layout--reverse > * {
  direction: ltr;
}

.split-image {
  position: relative;
}

.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

/* Each image gets a slightly different offset treatment */
.split-image--right img {
  box-shadow: 8px 8px 0 var(--portage-lt);
}

.split-image--left img {
  box-shadow: -8px 8px 0 var(--acacia);
}

.image-caption {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #888;
}

/* ─── Mission section ───────────────────────────────────────────── */
.section-mission {
  background: var(--paper);
}

/* ─── Approach section ──────────────────────────────────────────── */
.section-approach {
  background: var(--paper-dk);
}

.bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 0;
}

.bullet-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 1rem;
  color: #3a3a3a;
  max-width: 44ch;
}

.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--portage);
}

/* ─── Why It Matters section ────────────────────────────────────── */
.section-why {
  background: var(--paper);
}

/* ─── Cases / Accordion ─────────────────────────────────────────── */
.section-cases {
  background: var(--ink);
}

.section-cases .section-label {
  color: var(--portage-lt);
}

.section-cases h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 3rem;
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.accordion details {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  background: transparent;
}

.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  font-size: 1.05rem;
  font-weight: 400;
  font-family: var(--font-display);
  color: var(--white);
  cursor: pointer;
  list-style: none;
  gap: 1rem;
  transition: color var(--transition);
}

.accordion summary::-webkit-details-marker { display: none; }

.accordion summary::after {
  content: '+';
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--portage);
  line-height: 1;
  transition: transform var(--transition), color var(--transition);
}

.accordion details[open] summary {
  color: var(--acacia);
}

.accordion details[open] summary::after {
  content: '–';
  color: var(--acacia);
}

.accordion summary:hover {
  color: var(--portage-lt);
}

.accordion-body {
  padding: 0 0 1.75rem;
}

.accordion-body p {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
}

.accordion-body a {
  color: var(--portage-lt);
  text-decoration: none;
  transition: color var(--transition);
}

.accordion-body a:hover {
  color: var(--acacia);
}

.accordion iframe {
  width: 100%;
  border: none;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
}

.accordion-body img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

/* ─── Contact ───────────────────────────────────────────────────── */
.section-contact {
  background: var(--paper-dk);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
}

.section-contact .section-label {
  color: var(--portage-dk);
}

.section-contact h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1rem;
}

.section-contact p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.7;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.contact-link {
  display: inline-block;
  font-size: 1rem;
  color: var(--portage-dk);
  text-decoration: none;
  border-bottom: 1px solid var(--portage-lt);
  padding-bottom: 0.15rem;
  transition: color var(--transition), border-color var(--transition);
}

.contact-link:hover {
  color: var(--portage);
  border-color: var(--portage);
}

/* ─── Testimonials ──────────────────────────────────────────────── */
.section-testimonials {
  background: var(--paper);
  padding: 6rem 0;
}

.section-testimonials .section-label {
  display: block;
  margin-bottom: 4rem;
}

.quote {
  position: relative;
  margin: 0 0 5rem;
  padding: 2rem 0;
  max-width: 62ch;
}

.quote:last-child {
  margin-bottom: 0;
}

/* Left-anchored: text sits on the right half */
.quote--left {
  margin-left: auto;
  margin-right: 0;
  padding-left: 2rem;
  text-align: left;
}

/* Right-anchored: text sits on the left half */
.quote--right {
  margin-left: 0;
  margin-right: auto;
  padding-right: 2rem;
  text-align: left;
}

/* The giant decorative quotation mark */
.quote-mark {
  position: absolute;
  font-family: var(--font-display);
  font-size: 18rem;
  line-height: 1;
  color: var(--portage);
  opacity: 0.08;
  top: -3rem;
  pointer-events: none;
  user-select: none;
}

.quote--left .quote-mark {
  left: -3rem;
}

.quote--right .quote-mark {
  right: -3rem;
}

/* The quote text itself */
.quote blockquote {
  margin: 0 0 1.5rem;
  padding: 0;
  border: none;
}

.quote blockquote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
}

/* Attribution line with colored rule */
.quote figcaption {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.quote-rule {
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--portage);
  flex-shrink: 0;
}

.quote-attribution {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--portage-dk);
}

/* Thin acacia accent line between quotes */
.quote + .quote::before {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: var(--acacia);
  margin: 0 auto 4rem;
}

@media (max-width: 860px) {
  .quote--left,
  .quote--right {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
    padding: 0;
  }

  .quote-mark {
    font-size: 10rem;
  }
}

/* ─── Partners Ticker ───────────────────────────────────────────── */
.section-partners {
  background: var(--paper-dk);
  padding: 3.5rem 0;
  border-top: 1px solid var(--paper-dk);
  border-bottom: 1px solid var(--paper-dk);
  overflow: hidden;
}

.partners-header {
  margin-bottom: 2rem;
}

.partners-footer-title{
  margin-top: 2rem;
  color: var(--portage-dk);
  font-size: 1.2rem;
}



.ticker-wrap {
  position: relative;
  overflow: hidden;
}

/* Soft fade on each side — blends logos into background */
.ticker-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.ticker-fade--left {
  left: 0;
  background: linear-gradient(to right, var(--paper-dk) 0%, transparent 100%);
}

.ticker-fade--right {
  right: 0;
  background: linear-gradient(to left, var(--paper-dk) 0%, transparent 100%);
}

/* Track holds two identical lists side by side */
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 32s linear infinite;
}

/* Pause on hover */
.ticker-wrap:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-list {
  display: flex;
  align-items: center;
  gap: 4rem;
  padding: 0 2rem;
  flex-shrink: 0;
}

.ticker-list img {
  height: 40px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  /* Keep full color but soften slightly; on hover fully sharp */
  opacity: 0.75;
  filter: none;
  transition: opacity var(--transition);
}

.ticker-wrap:hover .ticker-list img {
  opacity: 1;
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}



/* ─── Footer ────────────────────────────────────────────────────── */
.footer {
  background: var(--ink);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-sm {
  font-family: var(--font-display);
  font-size: 1rem;
  color: rgba(255,255,255,0.5);
}

.footer p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  margin: 0;
}

/* ─── Network Note ──────────────────────────────────────────────── */
.section-network {
  background: var(--paper-dk);
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(146, 143, 217, 0.2);
}

.network-note {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 2vw, 2.25rem);
  color: #555;
  max-width: 68ch;
  line-height: 1.7;
  margin: 0;
}

.network-highlight {
  color: var(--ink);
  font-style: normal;
  font-weight: 500;
}

/* ─── Responsive ────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-links.nav-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--paper-dk);
  padding: 1rem 2rem 1.5rem;
  gap: 0.25rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
  .nav-toggle { display: block; }

  .hero {
    min-height: 85vh;
    align-items: center;
    padding-bottom: 3rem;
    padding-top: 2rem;
  }

  .hero-landscape {
    width: 100%;
    opacity: 0.18;
  }
  .hero-landscape::before {
    background: linear-gradient(to bottom, var(--paper) 0%, transparent 30%, var(--paper) 95%);
  }

  .hero-body {
    max-width: 100%;
  }

  .split-layout,
  .split-layout--reverse,
  .contact-inner {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 2.5rem;
  }

  .split-image img {
    height: 100%;
    /* Resize images on smaller screens to prevent overflow; they will still maintain aspect ratio and not exceed container width */
    /*making them smaller on mobile also helps the text feel more balanced and less cramped against large images */
    width: auto;
    max-width: 100%;
  }

  .section {
    padding: 4rem 0;
  }
}

@media (max-width: 480px) {
  .hero-body h1 { font-size: 2.2rem; }
  .footer-inner { flex-direction: column; text-align: center; }
}
