/* Deep Breath — Company / About page
   Builds on styles.css (Inter, Nunito, brand tokens, header, buttons, CTA) */

.page-company {
  background: var(--bg);
  color: var(--text);
}

/* Active nav */
.page-company .nav a[aria-current="page"] {
  color: #fff;
}

/* ---------- Story stage: Hero / Vision / Mission ---------- */
.co-story {
  height: 300vh;
  position: relative;
  background: #000;
}

.co-story-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding:
    calc(var(--header-h) + 1.5rem)
    clamp(1.25rem, 4vw, 2.75rem)
    3.5rem;
  overflow: hidden;
}

.co-story-pin::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 50% 40%, rgba(86, 204, 242, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 70% 70%, rgba(242, 86, 236, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.co-story-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.85;
}

.co-story-panels {
  position: relative;
  z-index: 2;
  width: min(720px, 100%);
  text-align: center;
  min-height: 14rem;
}

.co-panel {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.co-panel.active {
  position: relative;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.co-kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.15rem;
}

.co-panel h1 {
  font-size: clamp(2.1rem, 4.8vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 0 auto 1.25rem;
  max-width: 18ch;
}

.co-panel h1 .grad {
  background: linear-gradient(100deg, var(--cyan) 0%, #9b7cff 48%, var(--magenta) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.co-lead {
  font-size: clamp(0.98rem, 1.35vw, 1.12rem);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0 auto;
}

.co-story-progress {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 2.5rem;
}

.co-story-progress button {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, width 0.2s ease;
}

.co-story-progress button.active {
  width: 28px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
}

.co-scroll-cue {
  position: absolute;
  z-index: 3;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.78rem;
  color: var(--text-soft);
  letter-spacing: 0.04em;
}

.co-scroll-cue span {
  color: var(--cyan);
  margin-left: 0.35rem;
}

/* ---------- Shared section shell ---------- */
.co-section {
  padding:
    clamp(4rem, 10vh, 6.5rem)
    clamp(1.25rem, 4vw, 2.75rem);
}

.co-section--light {
  background: #f4f7fb;
  color: #0f172a;
}

.co-section--dark {
  background: #000;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.co-section--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(86, 204, 242, 0.07) 0%, transparent 50%),
    radial-gradient(ellipse 40% 35% at 15% 80%, rgba(242, 86, 236, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.co-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.co-section-head {
  max-width: 40rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.co-section-head .co-kicker {
  margin-bottom: 0.85rem;
}

.co-section--light .co-kicker {
  color: #2f80ed;
}

.co-section-head h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 1rem;
}

.co-section--light .co-section-head h2 .grad {
  background: linear-gradient(100deg, #2f80ed 0%, #7c5cfc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.co-section--dark .co-section-head h2 .grad {
  background: linear-gradient(100deg, var(--cyan) 0%, #9b7cff 48%, var(--magenta) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.co-body {
  font-size: 1.02rem;
  line-height: 1.65;
  color: #64748b;
}

.co-section--dark .co-body {
  color: var(--text-muted);
}

/* ---------- Who we are — natural image orientation ---------- */
.co-who-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 1rem;
  align-items: start;
}

.co-who-stack {
  display: grid;
  gap: 1rem;
}

.co-photo {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
}

/* Keep native aspect ratio — never force landscape/portrait swap.
   image-orientation: from-image respects EXIF if present. */
.co-photo img,
.co-approach-card img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
  image-orientation: from-image;
}

.co-photo figcaption {
  padding: 0.9rem 1.05rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #64748b;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

/* Portrait sits naturally tall in the right column */
.co-photo--portrait img {
  width: 100%;
  height: auto;
}

/* ---------- What we do ---------- */
.co-what-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.co-what-copy .co-body + .co-body {
  margin-top: 1rem;
}

.co-use-list {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.co-use-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.95rem 1.05rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.co-use-list i {
  flex: none;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--cyan);
  margin-top: 0.15rem;
}

.co-use-list span {
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
}

.co-what-media {
  display: grid;
  gap: 1rem;
}

.co-what-media .co-photo {
  background: #0a0a0a;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.co-what-media .co-photo figcaption {
  color: var(--text-soft);
  border-top-color: rgba(255, 255, 255, 0.08);
}

/* ---------- Approach ---------- */
.co-approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.co-approach-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.04);
}

.co-approach-card.wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: stretch;
}

.co-approach-card img {
  width: 100%;
  height: auto;
  display: block;
}

.co-approach-card > div {
  padding: 1.5rem 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.co-approach-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.55rem;
  color: #0f172a;
}

.co-approach-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #64748b;
}

/* ---------- Mid closing (before footer CTA) ---------- */
.co-closing {
  text-align: center;
  padding:
    clamp(4.5rem, 12vh, 7rem)
    clamp(1.25rem, 4vw, 2.75rem)
    clamp(3.5rem, 8vh, 5rem);
  background: #000;
  position: relative;
  overflow: hidden;
}

.co-closing::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 50% at 50% 45%, rgba(86, 204, 242, 0.09) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 50% 70%, rgba(242, 86, 236, 0.07) 0%, transparent 50%);
  pointer-events: none;
}

.co-closing-inner {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  margin: 0 auto;
}

.co-closing h2 {
  font-size: clamp(1.85rem, 3.8vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0.75rem 0 1.1rem;
}

.co-closing-lead {
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0 auto 1.75rem;
  max-width: 36rem;
}

.co-closing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* ---------- Reveal ---------- */
.co-reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.co-reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .co-story {
    height: 240vh;
  }

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

  .co-what-layout {
    grid-template-columns: 1fr;
  }

  .co-approach-grid {
    grid-template-columns: 1fr;
  }

  .co-approach-card.wide {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .co-panel h1 {
    max-width: none;
    font-size: clamp(1.85rem, 8.5vw, 2.35rem);
  }

  .co-closing-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .co-closing-actions .btn {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .co-panel {
    transition: none;
  }

  .co-reveal {
    opacity: 1;
    transform: none;
  }
}
