/* ============================================================
   COMPANY PAGES — Brand Storytelling
   Concept: A founder's letter printed well. Large type,
   generous whitespace, callout blocks, timeline elements.
   Warm authority — like reading something that was meant
   to be read carefully, not scanned.
   ============================================================ */

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

:root {
  --co-serif: 'Libre Baskerville', serif;
  --co-sans: 'Sora', sans-serif;
  --co-rule: #102B321A;
  --co-rule-strong: #102B3228;
  --co-gap: clamp(3rem, 6vw, 8rem);
  --co-text-gap: clamp(2rem, 4vw, 5rem);
}

/* ── COMPANY HERO ── */
.co-hero {
  padding: calc(var(--nav-h) + var(--topbar-h) + 5rem) var(--co-gap) 5rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--co-rule-strong);
}

.co-hero--dark {
  background: var(--primary-color);
}

.co-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: co-in 0.5s 0.1s forwards;
}

.co-hero--dark .co-hero__eyebrow { color: rgba(255,255,255,0.4); }

.co-hero__eyebrow-line {
  width: 2.5rem;
  height: 1px;
  background: var(--clr-brand-accent);
}

.co-hero__heading {
  font-family: var(--co-serif);
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 700;
  line-height: 0.95;
  color: var(--primary-color);
  letter-spacing: -0.02em;
  max-width: 16ch;
  opacity: 0;
  animation: co-in 0.7s 0.2s forwards;
}

.co-hero--dark .co-hero__heading { color: #fff; }

.co-hero__heading em {
  font-style: italic;
  color: var(--clr-brand-accent);
}

.co-hero__sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.75;
  color: var(--clr-text);
  font-weight: 300;
  max-width: 52ch;
  margin-top: 2.5rem;
  opacity: 0;
  animation: co-in 0.6s 0.35s forwards;
}

.co-hero--dark .co-hero__sub { color: rgba(255,255,255,0.6); }

/* ── READING LAYOUT ── */
.co-reading {
  max-width: 76ch;
  margin: 0 auto;
  padding: 5rem var(--co-gap);
}

.co-reading--wide {
  max-width: 100%;
  padding: 5rem var(--co-gap);
}

/* ── PROSE SECTIONS ── */
.co-prose-section {
  margin-bottom: 5rem;
}

.co-prose-section:last-child { margin-bottom: 0; }

.co-prose-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-brand-accent);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.co-prose-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--co-rule-strong);
  max-width: 4rem;
}

.co-prose-heading {
  font-family: var(--co-serif);
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.2;
  margin-bottom: 1.4rem;
  letter-spacing: -0.01em;
}

.co-prose-body {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--clr-text);
  font-weight: 300;
}

.co-prose-body + .co-prose-body {
  margin-top: 1.2rem;
}

/* ── LARGE QUOTE BLOCK ── */
.co-quote {
  padding: 3rem 0 3rem 2.5rem;
  border-left: 3px solid var(--clr-brand-accent);
  margin: 3.5rem 0;
}

.co-quote__text {
  font-family: var(--co-serif);
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  font-style: italic;
  color: var(--primary-color);
  line-height: 1.55;
}

/* ── PRINCIPLE GRID ── */
.co-principles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0;
  border: 1px solid var(--co-rule-strong);
  margin: 2.5rem 0;
}

.co-principle {
  padding: 2rem;
  border-bottom: 1px solid var(--co-rule);
  border-right: 1px solid var(--co-rule);
  transition: var(--trans);
  position: relative;
}

.co-principle:hover { background: var(--clr-brand-light); }

.co-principle__num {
  font-family: var(--co-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  opacity: 0.06;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.co-principle__title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.6rem;
  letter-spacing: 0.01em;
}

.co-principle__body {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--clr-text);
  font-weight: 300;
}

/* ── TIMELINE (Behind Haskade / How We Work) ── */
.co-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 2.5rem 0;
}

.co-timeline__item {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 0 2rem;
  padding-bottom: 3rem;
  position: relative;
}

.co-timeline__item:last-child { padding-bottom: 0; }

.co-timeline__spine {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.co-timeline__dot {
  width: 1.2rem;
  height: 1.2rem;
  border: 2px solid var(--clr-brand-accent);
  background: #fff;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: var(--trans);
}

.co-timeline__item:hover .co-timeline__dot {
  background: var(--clr-brand-accent);
}

.co-timeline__line {
  width: 1px;
  flex: 1;
  background: var(--co-rule-strong);
  margin-top: 4px;
}

.co-timeline__item:last-child .co-timeline__line { display: none; }

.co-timeline__content {
  padding-top: 0;
}

.co-timeline__heading {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.6rem;
  letter-spacing: 0.01em;
}

.co-timeline__label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-brand-accent);
  margin-bottom: 0.4rem;
}

.co-timeline__body {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--clr-text);
  font-weight: 300;
}

/* ── TWO COLUMN LAYOUT ── */
.co-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem 8vw;
  margin: 2.5rem 0;
}

.co-two-col__heading {
  font-family: var(--co-serif);
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--co-rule-strong);
}

.co-two-col__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.co-two-col__item {
  display: flex;
  gap: 0.8rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--co-rule);
  font-size: 0.87rem;
  line-height: 1.55;
  color: var(--clr-text);
  font-weight: 300;
  transition: var(--trans);
}

.co-two-col__item:hover { padding-left: 0.5rem; }

.co-two-col__item--muted {
  color: var(--clr-text-muted);
  text-decoration: line-through;
  text-decoration-color: var(--co-rule-strong);
}

.co-two-col__item::before {
  content: '✓';
  color: var(--clr-brand-accent);
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
  font-weight: 700;
}

.co-two-col__item--muted::before {
  content: '✕';
  color: var(--co-rule-strong);
}

/* ── CALLOUT BAND ── */
.co-callout {
  padding: 5rem var(--co-gap);
  background: var(--primary-color);
  position: relative;
  overflow: hidden;
}

.co-callout__bg {
  position: absolute;
  right: -2rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--co-serif);
  font-size: clamp(8rem, 20vw, 18rem);
  font-weight: 700;
  color: rgba(255,255,255,0.02);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.04em;
}

.co-callout__inner {
  position: relative;
  z-index: 1;
  max-width: 70ch;
}

.co-callout__label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-brand-accent);
  margin-bottom: 1.5rem;
}

.co-callout__text {
  font-family: var(--co-serif);
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-style: italic;
  color: #fff;
  line-height: 1.5;
}

/* ── S3 PILLAR CARDS ── */
.co-s3-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--co-rule-strong);
  margin: 2.5rem 0;
}

.co-s3-pillar {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--co-rule-strong);
  transition: var(--trans);
  position: relative;
  overflow: hidden;
}

.co-s3-pillar:last-child { border-right: none; }

.co-s3-pillar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--clr-brand-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
}

.co-s3-pillar:hover::before { transform: scaleX(1); }
.co-s3-pillar:hover { background: var(--clr-brand-light); }

.co-s3-pillar__letter {
  font-family: var(--co-serif);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 700;
  color: var(--primary-color);
  opacity: 0.07;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.co-s3-pillar__title {
  font-family: var(--co-serif);
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.8rem;
}

.co-s3-pillar__body {
  font-size: 0.87rem;
  line-height: 1.75;
  color: var(--clr-text);
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.co-s3-pillar__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.co-s3-pillar__list-item {
  font-size: 0.8rem;
  color: var(--clr-text-muted);
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-weight: 300;
}

.co-s3-pillar__list-item::before {
  content: '—';
  color: var(--clr-brand-accent);
  font-size: 0.7rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* ── S3 FRAMEWORK TABLE ── */
.co-s3-table {
  border: 1px solid var(--co-rule-strong);
  overflow: hidden;
  margin: 2.5rem 0;
}

.co-s3-table__row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  border-bottom: 1px solid var(--co-rule);
  transition: var(--trans);
}

.co-s3-table__row:last-child { border-bottom: none; }
.co-s3-table__row:hover { background: var(--clr-brand-light); }

.co-s3-table__key {
  padding: 1.2rem 1.5rem;
  font-family: var(--co-serif);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-color);
  border-right: 1px solid var(--co-rule-strong);
  background: #102B3203;
}

.co-s3-table__val {
  padding: 1.2rem 1.5rem;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--clr-text);
  font-weight: 300;
}

/* ── TESTIMONIALS LAYOUT ── */
.co-testimonials-intro {
  padding: 4rem var(--co-gap) 2rem;
  max-width: 72ch;
}

.co-testimonials-grid {
  padding: 2rem var(--co-gap) 5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.co-testimonial-card {
  padding: 2.2rem;
  border: 1px solid var(--co-rule-strong);
  position: relative;
  transition: var(--trans);
}

.co-testimonial-card:hover { background: var(--clr-brand-light); }

.co-testimonial-card__quote-mark {
  font-family: var(--co-serif);
  font-size: 3.5rem;
  color: var(--clr-brand-accent);
  line-height: 1;
  opacity: 0.35;
  margin-bottom: 0.5rem;
}

.co-testimonial-card__text {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--clr-text);
  font-weight: 300;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.co-testimonial-card__attr {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--co-rule);
}

.co-testimonial-card__name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-color);
}

.co-testimonial-card__role {
  font-size: 0.78rem;
  color: var(--clr-text-muted);
}

/* ── HASKADE EFFECT — BEFORE/AFTER TABLE ── */
.co-effect-table {
  border: 1px solid var(--co-rule-strong);
  overflow: hidden;
  margin: 2.5rem 0;
}

.co-effect-table__header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--primary-color);
}

.co-effect-table__col-head {
  padding: 0.8rem 1.4rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.co-effect-table__col-head:first-child { border-right: 1px solid rgba(255,255,255,0.08); }

.co-effect-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--co-rule);
  transition: var(--trans);
}

.co-effect-row:last-child { border-bottom: none; }
.co-effect-row:hover { background: var(--clr-brand-light); }

.co-effect-row__before {
  padding: 1.2rem 1.4rem;
  font-size: 0.87rem;
  line-height: 1.6;
  color: var(--clr-text-muted);
  border-right: 1px solid var(--co-rule-strong);
  font-weight: 300;
}

.co-effect-row__after {
  padding: 1.2rem 1.4rem;
  font-size: 0.87rem;
  line-height: 1.6;
  color: var(--primary-color);
  font-weight: 400;
}

/* ── CTA ── */
.co-cta {
  padding: 5rem var(--co-gap);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--co-rule-strong);
}

.co-cta__text {
  font-family: var(--co-serif);
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.3;
  max-width: 40ch;
}

.co-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--primary-color);
  color: #fff;
  padding: 1rem 2.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1.5px solid var(--primary-color);
  transition: var(--trans);
  white-space: nowrap;
}

.co-cta__btn:hover {
  background: transparent;
  color: var(--primary-color);
}

/* ── ANIMATIONS ── */
@keyframes co-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.co-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.co-reveal.is-visible { opacity: 1; transform: translateY(0); }
.co-reveal-delay-1 { transition-delay: 0.1s; }
.co-reveal-delay-2 { transition-delay: 0.22s; }
.co-reveal-delay-3 { transition-delay: 0.34s; }
.co-reveal-delay-4 { transition-delay: 0.46s; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .co-two-col { grid-template-columns: 1fr; }
  .co-s3-pillars { grid-template-columns: 1fr; }
  .co-s3-pillar { border-right: none; border-bottom: 1px solid var(--co-rule-strong); }
  .co-cta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .co-effect-table__header,
  .co-effect-row { grid-template-columns: 1fr; }
  .co-effect-row__before { border-right: none; border-bottom: 1px solid var(--co-rule); }
  .co-effect-table__col-head:first-child { border-right: none; }
  .co-s3-table__row { grid-template-columns: 1fr; }
  .co-s3-table__key { border-right: none; border-bottom: 1px solid var(--co-rule); }
}
