/* About page — section styles */

/* 01 — Page intro
   Two-column: heading + copy on the left, team photo on the right.
   Visual target: Opinomix About.dc.html (Claude Design project 223215aa-...) */

.about-intro {
  background: radial-gradient(120% 90% at 62% 20%, #E5ECF7 0%, #F2F3F5 46%, #EEF0F2 100%);
}

.about-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: 72px;
  align-items: center;
}

.about-intro__copy h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 32px;
}

.about-intro__copy .section-lead {
  margin-top: 0;
  font-family: var(--font-body);
  font-size: 17.5px;
  line-height: 1.72;
  color: #43454B;
  max-width: 520px;
}

.about-intro__copy .section-lead + .section-lead {
  margin-top: 22px;
}

.about-intro__photo-frame {
  position: relative;
  border-top: 4px solid #2F5FD6;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 30px 60px -28px rgba(20, 28, 55, 0.4), 0 8px 20px -14px rgba(20, 28, 55, 0.3);
}

.about-intro__photo-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1223 / 1180;
  object-fit: cover;
  object-position: center top;
}

@media (max-width: 880px) {
  .about-intro__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

/* 02 — Team deck
   Horizontal scroll of 308px cards. Drag to scroll, auto-drifts when idle.
   Photos default to monochrome; colour and lift reveal on hover. */

.team-section {
  position: relative;
  background: var(--color-bg-mid);
  padding: var(--space-9) 0;
  overflow: hidden;
}

.team-section .wrap {
  position: relative;
  z-index: 1;
}

.team-section__header {
  margin-bottom: var(--space-7);
}

.team-section__title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-6);
}

.team-section__heading {
  font-size: 52px;
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0;
  white-space: nowrap;
}

@media (max-width: 880px) {
  .team-section__heading {
    font-size: clamp(28px, 6vw, 52px);
    white-space: normal;
  }
}

/* Nav arrows */
.team-nav {
  display: flex;
  gap: var(--space-2);
  flex-shrink: 0;
  padding-bottom: 4px;
}

.team-nav__btn {
  width: 46px;
  height: 46px;
  background: #fff;
  border: 1px solid var(--color-line);
  cursor: pointer;
  font: 300 17px/1 var(--font-detail);
  color: var(--color-text);
  transition: border-color 160ms var(--ease-out), color 160ms var(--ease-out);
}

.team-nav__btn:hover {
  border-color: var(--color-cobalt);
  color: var(--color-cobalt);
}

.team-nav__btn--dark {
  background: var(--color-text);
  border-color: var(--color-text);
  color: #fff;
}

.team-nav__btn--dark:hover {
  border-color: var(--color-cobalt);
  color: var(--color-cobalt);
}

/* Card row */
.team-deck {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 16px 4px 30px;
  scrollbar-width: none;
  cursor: grab;
}

.team-deck::-webkit-scrollbar { display: none; }
.team-deck.is-dragging { cursor: grabbing; }

/* Individual card */
.team-card {
  flex: 0 0 auto;
  width: 308px;
  position: relative;
  background: #fff;
  border: 1px solid var(--color-line);
  overflow: hidden;
  transition: transform 400ms cubic-bezier(.2,.7,.2,1), box-shadow 400ms ease;
  will-change: transform;
}

.team-card__rule {
  height: 3px;
  background: var(--color-cobalt);
}

.team-card__num {
  position: absolute;
  top: 12px;
  right: 16px;
  font: 700 88px/1 var(--font-heading);
  color: rgba(42, 111, 219, 0.07);
  pointer-events: none;
  z-index: 0;
}

.team-card__photo-wrap {
  position: relative;
  width: 100%;
  height: 270px;
  overflow: hidden;
  background: var(--color-bg-raised);
  z-index: 1;
}

.team-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1) contrast(1.03) brightness(1.02);
  transition: filter 500ms ease, transform 600ms cubic-bezier(.2,.7,.2,1);
  user-select: none;
  -webkit-user-drag: none;
}

.team-card__body {
  position: relative;
  z-index: 1;
  padding: 20px 20px 22px;
}

.team-card__name {
  font: 700 21px/1.05 var(--font-heading);
  letter-spacing: -0.015em;
  color: var(--color-text);
  margin: 0 0 7px;
  transition: color 300ms ease;
}

.team-card__role {
  font-family: var(--font-detail);
  font-weight: 300;
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  color: var(--color-cobalt);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.team-card__blurb {
  font-size: 13px;
  line-height: 1.55;
  color: var(--color-grey-mid);
  margin: 0 0 18px;
  min-height: 40px;
}

.team-card__foot {
  border-top: 1px solid var(--color-line);
  padding-top: 15px;
  min-height: 32px;
}

.team-card__linkedin {
  font-family: var(--font-cta);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--color-text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 160ms var(--ease-out);
}

.team-card__arrow {
  color: var(--color-cobalt);
}

@media (hover: hover) and (pointer: fine) {
  .team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 22px 44px -20px rgba(20, 22, 26, 0.32);
    z-index: 5;
  }

  .team-card:hover .team-card__photo {
    filter: grayscale(0) contrast(1.02);
    transform: scale(1.04);
  }

  .team-card:hover .team-card__name {
    color: var(--color-orange);
  }

  .team-card__linkedin:hover {
    color: var(--color-cobalt);
  }
}

/* Progress bar */
.team-progress {
  position: relative;
  height: 2px;
  background: var(--color-line);
  margin-top: 8px;
}

.team-progress__fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 20%;
  background: var(--color-text);
  transition: width 100ms linear;
}

@media (max-width: 720px) {
  .team-section__title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
  }

  .team-card {
    width: 260px;
  }

  .team-card__photo-wrap {
    height: 220px;
  }
}

/* 03 — Track record
   Visual target: Track Record.dc.html (Claude Design project e1d9d5db-...)
   Intro (heading/copy + award photo) above a horizontal achievement
   timeline, nodes alternating above/below the baseline. */

.record-section {
  position: relative;
  background: linear-gradient(158deg, #F5F6F9 0%, #EDEEF4 52%, #E8E6F0 100%);
  padding: var(--space-9) 0;
}

.record-section .wrap {
  position: relative;
  z-index: 1;
}

/* --- Intro: heading/copy + photo -------------------------- */

.record-intro {
  display: flex;
  gap: 56px;
  align-items: stretch;
}

.record-intro__copy {
  flex: 1 1 auto;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.record-intro__copy h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 3.6vw, 3.125rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: #14161A;
  text-wrap: balance;
}

.record-intro__copy p {
  margin: 26px 0 0;
  max-width: 560px;
  font-family: var(--font-body);
  font-size: 18.5px;
  line-height: 1.65;
  color: #565A63;
}

.record-intro__photo {
  flex: none;
  width: 340px;
  display: flex;
}

.record-intro__photo-frame {
  flex: 1;
  width: 100%;
  overflow: hidden;
  background: #1C355F;
  box-shadow: 0 30px 60px -26px rgba(20, 25, 45, 0.5);
  line-height: 0;
}

.record-intro__photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 100%;
  transform: scale(1.2);
  transform-origin: 50% 100%;
  display: block;
}

/* --- Timeline ----------------------------------------------- */

.record-timeline {
  position: relative;
  margin-top: 48px;
  height: 388px;
}

.record-timeline__baseline {
  position: absolute;
  top: 50%;
  left: 6px;
  right: 34px;
  height: 1.5px;
  background: #2B52C9;
  opacity: 0.55;
  transform: translateY(-50%);
}

.record-timeline__origin {
  position: absolute;
  top: 50%;
  left: 6px;
  transform: translate(-50%, -50%);
  width: 1.5px;
  height: 15px;
  background: #2B52C9;
  opacity: 0.55;
}

.record-timeline__ghost {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 104px;
  line-height: 1;
  color: #2B52C9;
  opacity: 0.05;
  pointer-events: none;
}

.record-timeline__ghost--1 {
  left: 2%;
  transform: translateY(-50%);
}

.record-timeline__ghost--2 {
  left: 63%;
}

/* --- Nodes ---------------------------------------------------
   Horizontal position and above/below placement are per-node —
   transcribed directly from the design rather than generalised. */

.record-node__dot {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #F5F6F9;
  border: 1.5px solid #2B52C9;
  z-index: 3;
}

.record-node--winner .record-node__dot {
  width: 14px;
  height: 14px;
  background: #2B52C9;
  border: none;
  box-shadow: 0 0 0 4px rgba(245, 133, 59, 0.22);
}

.record-node__stem {
  position: absolute;
  left: 0;
  width: 1px;
  height: 30px;
  background: #2B52C9;
  opacity: 0.4;
}

.record-node--below .record-node__stem {
  top: calc(50% + 6px);
  transform: translateX(-50%);
}

.record-node--winner.record-node--below .record-node__stem {
  top: calc(50% + 7px);
}

.record-node--above .record-node__stem {
  top: calc(50% - 36px);
  transform: translateX(-50%);
}

.record-node--winner.record-node--above .record-node__stem {
  top: calc(50% - 37px);
}

.record-node__label {
  position: absolute;
  width: 210px;
}

.record-node--below .record-node__label {
  top: calc(50% + 44px);
}

.record-node--above .record-node__label {
  bottom: calc(50% + 44px);
}

.record-node__year {
  display: block;
  font-family: var(--font-detail);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.28em;
  color: #2B52C9;
  margin-bottom: 9px;
}

.record-node__award {
  margin: 0;
  font-family: var(--font-detail);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.3;
  color: #181B20;
}

.record-node__status {
  margin: 3px 0 0;
  font-family: var(--font-detail);
  font-weight: 300;
  font-size: 13px;
  color: #7A7F89;
}

.record-node__status--winner {
  font-weight: 300;
  color: #F5853B;
}

.record-node__note {
  margin: 11px 0 0;
  font-family: var(--font-detail);
  font-weight: 300;
  font-size: 13px;
  line-height: 1.45;
  color: #8B909A;
}

/* Per-node horizontal position + label alignment */

.record-node {
  position: absolute;
  top: 50%;
}

.record-node--1 {
  left: 7%;
}

.record-node--1 .record-node__label {
  left: -4px;
  text-align: left;
}

.record-node--2 {
  left: 44%;
}

.record-node--2 .record-node__label {
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.record-node--3 {
  left: 60%;
}

.record-node--3 .record-node__label {
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.record-node--4 {
  left: 76%;
}

.record-node--4 .record-node__label {
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.record-node--5 {
  left: 92%;
}

.record-node--5 .record-node__label {
  right: -6px;
  width: 204px;
  text-align: right;
}

@media (max-width: 880px) {
  .record-intro {
    flex-direction: column;
    gap: var(--space-6);
  }

  .record-intro__photo {
    width: 100%;
    height: 260px;
  }

  .record-timeline {
    height: auto;
    padding-left: 20px;
  }

  .record-timeline__baseline,
  .record-timeline__origin,
  .record-timeline__ghost {
    display: none;
  }

  .record-node {
    position: relative;
    top: auto;
    left: auto !important;
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    padding-bottom: var(--space-7);
    border-left: 1.5px solid rgba(43, 82, 201, 0.3);
    padding-left: var(--space-5);
    margin-left: -1px;
  }

  .record-node:last-child {
    padding-bottom: 0;
  }

  .record-node__dot {
    position: static;
    transform: none;
    margin-left: calc(-1 * var(--space-5) - 6px);
    flex: none;
  }

  .record-node--winner .record-node__dot {
    margin-left: calc(-1 * var(--space-5) - 7.5px);
  }

  .record-node__stem {
    display: none;
  }

  .record-node__label {
    position: static;
    width: auto;
    text-align: left !important;
    transform: none !important;
  }
}

/* 04 — Principles
   Visual target: Principles.dc.html (Claude Design project c121677a-...)
   Numbered rows, each with a short cobalt stem + dot marking its index. */

.ethos-section {
  position: relative;
  background: radial-gradient(120% 90% at 62% 26%, #EEF1F6 0%, #E9EAEE 46%, #ECEAEC 100%);
  padding: var(--space-9) 0;
}

.ethos-section .wrap {
  position: relative;
  z-index: 1;
}

.ethos-section h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.022em;
  color: #15171C;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .ethos-section h2 {
    white-space: normal;
  }
}

.ethos-list {
  list-style: none;
  margin: var(--space-8) 0 0;
  padding: 0;
}

.ethos-item {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  padding: 46px 0;
}

.ethos-item + .ethos-item {
  border-top: 1px solid rgba(20, 24, 29, 0.09);
}

.ethos-item:first-child {
  padding-top: 8px;
}

.ethos-item:last-child {
  padding-bottom: 8px;
}

.ethos-item__index {
  position: relative;
  border-left: 1.5px solid var(--color-cobalt);
  padding-left: 30px;
  padding-top: 6px;
}

.ethos-item__dot {
  position: absolute;
  left: -4.5px;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-cobalt);
}

/* Dot climbs down each item's own line in turn — #1 near the top, #4 near
   the bottom — rather than sitting at the same spot on every line. */
.ethos-item:nth-child(1) .ethos-item__dot {
  top: 6px;
}

.ethos-item:nth-child(2) .ethos-item__dot {
  top: 33%;
}

.ethos-item:nth-child(3) .ethos-item__dot {
  top: 63%;
}

.ethos-item:nth-child(4) .ethos-item__dot {
  top: auto;
  bottom: 6px;
}

.ethos-item__num {
  font-family: var(--font-detail);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--color-cobalt);
}

.ethos-item__body {
  max-width: 660px;
}

.ethos-item__heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.625rem, 2.7vw, 2.0625rem);
  line-height: 1.12;
  letter-spacing: -0.012em;
  color: #15171C;
  margin: 0 0 18px;
}

.ethos-item__copy {
  font-family: var(--font-body);
  font-size: 17.5px;
  line-height: 1.72;
  color: #575C65;
}

@media (max-width: 720px) {
  .ethos-item {
    grid-template-columns: 88px minmax(0, 1fr);
    padding: var(--space-6) 0;
  }

  .ethos-item__index {
    padding-left: var(--space-4);
  }
}

/* 05 — Connect / LinkedIn
   Copy + CTA on the left, a single live LinkedIn embed on the right. */

.connect-section {
  position: relative;
  background: var(--color-bg-base);
  padding: var(--space-9) 0;
}

.connect-section .wrap {
  position: relative;
  z-index: 1;
}

.connect-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, auto);
  gap: var(--space-8);
  align-items: center;
}

.connect-section__copy {
  max-width: 460px;
  min-width: 0;
}

.connect-section__copy h2 {
  margin: 0;
  max-width: 20ch;
}

.connect-section__cta {
  margin-top: var(--space-7);
}

.connect-section__embed {
  min-width: 0;
}

.connect-section__embed iframe {
  display: block;
  width: 504px;
  max-width: 100%;
  min-width: 0;
  height: 230px;
  border: 0;
}

@media (max-width: 880px) {
  .connect-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-6);
  }

  .connect-section__copy {
    max-width: none;
  }

  .connect-section__embed {
    display: flex;
    justify-content: center;
  }
}

