/* ===========================================================
   company.css — "Inside A1Strategez" culture/trust page.
   Warmer than the ops pages, photo-led. Same tokens & discipline.
   =========================================================== */

/* Warm photo hero */
.co-hero {
  padding: 80px var(--section-pad-x) 0;
  background: var(--bone);
}
.co-hero-inner { max-width: var(--container-max); margin: 0 auto; padding-left: 40px; }
.co-h1 {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 84px);
  line-height: 0.96;
  letter-spacing: -0.04em;
  color: var(--gray-deep);
  max-width: 16ch;
  margin-bottom: 22px;
}
.co-h1 .orange { color: var(--orange); }
.co-hero-sub {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.55;
  color: var(--gray);
  max-width: 62ch;
  margin-bottom: 40px;
}
.co-hero-img {
  width: 100%;
  aspect-ratio: 21 / 9;
  border: 1px solid var(--rule-strong);
}

/* Generic prose block */
.co-block { padding: 72px var(--section-pad-x); border-bottom: 1px solid var(--rule); }
.co-block:nth-of-type(even) { background: var(--paper); }
.co-inner { max-width: var(--container-max); margin: 0 auto; padding-left: 40px; }
.co-label {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 18px;
}
.co-lede {
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.6;
  color: var(--gray-deep);
  max-width: 70ch;
  font-weight: 400;
}
.co-lede strong { font-weight: 700; }
.co-body { font-size: 16px; line-height: 1.65; color: var(--gray); max-width: 68ch; }
.co-body + .co-body { margin-top: 16px; }
.co-body strong { color: var(--gray-deep); font-weight: 600; }

/* Team: image + text */
.co-team-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center;
  max-width: var(--container-max); margin: 0 auto; padding-left: 40px;
}
.co-team-img { width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--rule-strong); }

/* Galleries — the heart */
.co-galleries { max-width: var(--container-max); margin: 0 auto; padding-left: 40px; }
.co-gal-intro {
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.6; color: var(--gray-deep);
  max-width: 60ch; margin-bottom: 44px;
}
.co-gal { margin-bottom: 40px; }
.co-gal-name {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 12px;
}
.co-gal-name::before { content: ''; width: 24px; height: 1px; background: var(--orange); }
.co-gal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}
/* varied tile shapes so real photos of mixed orientation sit naturally */
.co-photo { border: 1px solid var(--rule-strong); background: var(--bone-deep); aspect-ratio: 3 / 2; }
.co-photo.tall { aspect-ratio: 3 / 4; grid-row: span 2; }
.co-photo.wide { grid-column: span 2; aspect-ratio: 3 / 1.35; }
.co-gal-cap {
  font-style: italic;
  font-size: 15px; line-height: 1.5;
  color: var(--gray);
  max-width: 70ch;
}

/* Real photos, once dropped in, fill their tile (keeps wide/tall variants working) */
.co-photo img, .co-hero-img img, .co-team-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* Placeholder note styling for image slots (dev/preview only) */
.co-photo, .co-hero-img, .co-team-img {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em;
  color: #9b978d; text-align: center; padding: 8px;
  background-image: repeating-linear-gradient(45deg, transparent, transparent 8px, rgba(74,74,74,.05) 8px, rgba(74,74,74,.05) 16px);
}

/* Once a real <img> is present, drop the placeholder hatch + inset padding
   from the rule above. :has() keeps this additive — the placeholder styling
   is untouched for any slot still waiting on a photo. */
.co-photo:has(img),
.co-hero-img:has(img),
.co-team-img:has(img) {
  padding: 0;
  background-image: none;
  display: block;
}

/* Team slot holds a 2x2 mosaic rather than one photo. */
.co-team-img:has(img) {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  background: var(--bone-deep);
  padding: 8px;
}
.co-team-img:has(img) img { aspect-ratio: auto; }


/* ===========================================================
   Seven years — horizontal timeline
   Scroll-snap strip, one snap point per year. The year axis is
   real anchor links: native anchor behaviour scrolls every
   ancestor scroll container to reveal the target, so jumping to
   a year needs no JavaScript at all. (main.js is opted out of
   these links via data-native-scroll.)
   =========================================================== */

.co-tl-block {
  padding: 72px var(--section-pad-x);
  border-bottom: 1px solid var(--rule);
  /* Keeps the section rhythm alternating: who=paper, timeline=bone,
     team=paper, life=bone, how=paper. */
  background: var(--bone);
}
.co-tl-lede { margin-bottom: 34px; }
.co-tl { max-width: var(--container-max); margin: 0 auto; padding-left: 40px; }

.co-tl-strip {
  display: flex;
  gap: 0;                       /* the art's half-bars meet to form the axis */
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--gray) var(--bone-deep);
}
.co-tl-strip::-webkit-scrollbar { height: 8px; }
.co-tl-strip::-webkit-scrollbar-track { background: var(--bone-deep); }
.co-tl-strip::-webkit-scrollbar-thumb { background: var(--gray); }
.co-tl-strip:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }

.co-tl-panel {
  flex: 0 0 auto;
  /* Sized so 2–3 panels are visible with the next one clipped — that cut-off
     edge is the affordance telling you there is more to the right. */
  width: clamp(240px, 32vw, 460px);
  scroll-snap-align: start;
}
.co-tl-panel img {
  display: block;
  width: 100%;
  height: auto;
  /* Panels are cropped to y 156..1798 of the 1952px source, trimming the
     page-background padding baked into the strip artwork while keeping the
     orange separator bars that make adjacent panels read as one axis. */
  aspect-ratio: 960 / 836;
  object-fit: cover;
}

/* Year axis — echoes the orange rule running through the artwork */
.co-tl-years {
  display: flex;
  border-top: 1px solid var(--rule-strong);
  margin-top: 2px;
}
.co-tl-years a {
  flex: 1 1 0;
  position: relative;
  padding: 15px 4px 0;
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gray);
  text-align: center;
  transition: color 0.2s;
}
.co-tl-years a::before {
  content: ''; position: absolute; top: -1px; left: 50%;
  width: 1px; height: 9px;
  background: var(--rule-strong);
}
.co-tl-years a:hover,
.co-tl-years a:focus-visible { color: var(--orange); }
.co-tl-years a:hover::before,
.co-tl-years a:focus-visible::before { background: var(--orange); height: 14px; }
/* Set by company-timeline.js on whichever year is in view. Progressive:
   with JS off no year is marked and the axis is still fully clickable. */
.co-tl-years a.is-current { color: var(--orange); }
.co-tl-years a.is-current::before { background: var(--orange); height: 14px; }

@media (max-width: 768px) {
  .co-tl-block { padding: 56px var(--section-pad-x); }
  .co-tl { padding-left: 0; }
  .co-tl-panel { width: min(78vw, 340px); }
  .co-tl-years a { font-size: 10px; letter-spacing: 0.04em; padding-top: 12px; }
}

/* Hard rule 5: the smooth scroll is motion, so it goes under
   reduced-motion. Jumping to a year still works, it just arrives
   instantly instead of gliding. */
@media (prefers-reduced-motion: reduce) {
  .co-tl-strip { scroll-behavior: auto; }
}


/* Principles */
.co-principles {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  max-width: var(--container-max); margin: 30px auto 0; padding-left: 40px;
}
.co-principle {
  border: 1px solid var(--rule-strong); background: var(--paper);
  padding: 26px; position: relative;
}
.co-principle.lead::before {
  content: ''; position: absolute; top: -6px; left: -6px; right: 6px; bottom: 6px;
  border: 1px solid var(--orange); z-index: -1;
}
.co-principle-title {
  font-family: var(--font-sans); font-weight: 800;
  font-size: 19px; letter-spacing: -0.02em; color: var(--gray-deep);
  margin-bottom: 8px;
}
.co-principle-body { font-size: 14.5px; line-height: 1.55; color: var(--gray); }
.co-principle-body em { color: var(--gray-deep); font-style: italic; }
.co-bridge {
  font-size: clamp(18px, 2vw, 24px); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.3; color: var(--gray-deep);
  max-width: 60ch; margin-bottom: 8px;
}

/* Close band */
.co-close { padding: 80px var(--section-pad-x); background: var(--gray-deep); text-align: center; }
.co-close-text {
  font-family: var(--font-sans); font-weight: 800;
  font-size: clamp(24px, 3vw, 40px); letter-spacing: -0.03em; line-height: 1.1;
  color: var(--paper); max-width: 22ch; margin: 0 auto 14px;
}
.co-close-sub {
  font-size: 15px; color: rgba(255,255,255,0.65); margin-bottom: 28px;
  max-width: 56ch; margin-left: auto; margin-right: auto;
}
.co-close-btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 20px 32px; background: var(--orange); color: var(--paper);
  font-family: var(--font-sans); font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  border: 1px solid var(--orange); transition: all 0.25s var(--ease-out);
}
.co-close-btn:hover { background: var(--paper); color: var(--gray-deep); border-color: var(--paper); }
.co-close-btn svg { transition: transform 0.3s; }
.co-close-btn:hover svg { transform: translateX(4px); }

@media (max-width: 900px) {
  .co-team-grid, .co-principles { grid-template-columns: 1fr; gap: 24px; }
  .co-gal-grid { grid-template-columns: repeat(2, 1fr); }
  .co-photo.wide { grid-column: span 2; }
}
@media (max-width: 768px) {
  .co-hero { padding: 50px var(--section-pad-x) 0; }
  .co-hero-inner, .co-inner, .co-team-grid, .co-galleries, .co-principles { padding-left: 0; }
  .co-block { padding: 50px var(--section-pad-x); }
}
