/* =========================================================
   Components — hero, cards, metrics, tiles, exhibits, archive
   ========================================================= */

/* ---------- Hero ---------- */

.hero__eyebrow { margin: 0 0 var(--s-7); animation: rise 0.8s var(--ease) both; }

.hero__name {
  font-weight: 800;
  font-size: clamp(54px, 10vw, 166px);
  line-height: 0.86;
  letter-spacing: -0.045em;
}
.hero__line { display: block; animation: rise 0.9s var(--ease) both; }
.hero__line:nth-child(1) { animation-delay: 0.08s; }
.hero__line:nth-child(2) { color: var(--accent); animation-delay: 0.18s; }

.hero__body { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--s-8); margin-top: var(--s-8); align-items: end; }

.hero__statement {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: pretty;
  animation: rise 0.9s var(--ease) both;
  animation-delay: 0.28s;
}

.hero__aside { display: flex; flex-direction: column; gap: var(--s-4); max-width: 400px; animation: rise 0.9s var(--ease) both; animation-delay: 0.36s; }
.hero__aside p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--ink-muted); text-wrap: pretty; }
.hero__actions { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.hero__stats { margin-top: var(--s-10); }

/* ---------- Metrics ---------- */

.metric { background: var(--surface); padding: var(--s-6) 28px; }
.metric--sunk { background: var(--surface-sunk); padding: 20px var(--s-5); }
.metric__value {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent-2);
  font-size: 34px;
}
.metric--lg .metric__value { font-size: 46px; }
.metric__label { margin-top: 7px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); }
.metric--lg .metric__label { margin-top: 10px; letter-spacing: 0.12em; }

/* ---------- Cards ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 40px;
  margin-bottom: var(--s-5);
}
.card--dark { background: var(--ink-panel); color: var(--on-dark); border: 0; }
.card--dark .lede { color: var(--on-dark-muted); }
.card--dark .label { color: var(--accent-2); }

.card__head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: baseline; margin-bottom: 30px; }
.card__title { font-weight: 700; font-size: clamp(28px, 3vw, 40px); line-height: 1; }
.card__role  { margin: 10px 0 0; font-size: 15px; color: var(--ink-muted); }
.card__metrics { margin-top: var(--s-7); }

.deliverables .label { margin-bottom: var(--s-4); display: block; }
.deliverables ul { display: flex; flex-direction: column; gap: 11px; font-size: 15px; line-height: 1.55; }

/* ---------- Profile ---------- */

.profile__statement {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.42;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}
.profile__col { display: flex; flex-direction: column; gap: 28px; }
.portrait { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); max-width: 300px; }
.portrait img { width: 100%; height: auto; animation: drift 7s ease-in-out infinite; }

.fact { background: var(--surface); padding: var(--s-6) 30px; }
.fact .label { display: block; margin-bottom: 14px; }
.fact ul { display: flex; flex-direction: column; gap: var(--s-2); font-size: 15px; line-height: 1.55; }

/* ---------- Earlier chapters ---------- */

.chapter { background: var(--surface); padding: 30px 28px; }
.chapter__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.chapter__name { font-weight: 700; font-size: 24px; letter-spacing: -0.025em; }
.chapter__role { margin: var(--s-2) 0 18px; font-size: 13px; color: var(--accent); }
.chapter__value { font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1; color: var(--accent-2); letter-spacing: -0.03em; }
.chapter__unit  { margin: 6px 0 var(--s-4); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); }
.chapter p:last-child { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-soft); text-wrap: pretty; }
.cta-row { display: flex; justify-content: center; margin-top: var(--s-7); }

/* ---------- Featured work: thumbnails ---------- */

.thumb { display: block; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: var(--surface); }
.thumb:hover { border-color: var(--accent); }
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.thumb--page { height: 200px; }
.thumb--cover { aspect-ratio: 1200 / 849; }
.thumb--cover img { object-position: left top; }

.thumb-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.caption { margin: var(--s-3) 0 0; font-size: 12px; color: var(--ink-muted); }

.asset__kind  { margin: var(--s-3) 0 0; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); }
.asset__name  { margin: 6px 0 0; font-size: 15px; line-height: 1.4; font-weight: 600; }
.asset__note  { margin: var(--s-1) 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-muted); }
a.asset { text-decoration: none; display: flex; flex-direction: column; }
a.asset .asset__name { text-decoration: underline; text-underline-offset: 3px; }

.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { font-size: 12px; border: 1px solid var(--line); border-radius: var(--r-pill); padding: 7px 14px; color: var(--ink-soft); }
.chip--sm { font-size: 11px; background: var(--surface); padding: 6px 12px; }

/* ---------- DevOps Drive pipeline ---------- */

.pipeline { position: relative; padding: var(--s-6) 0 var(--s-2); margin-bottom: var(--s-6); }
.pipeline__rail { position: absolute; left: 2%; right: 2%; top: 38px; height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.pipeline__dot  { position: absolute; top: 31px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--accent-2); animation: travel 5.5s cubic-bezier(0.5, 0, 0.5, 1) infinite; }
.pipeline__steps { display: flex; justify-content: space-between; gap: var(--s-2); position: relative; }
.pipeline__step { display: flex; flex-direction: column; align-items: center; gap: 14px; flex: 1; }
.pipeline__node { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); animation: pulse 3s ease-out infinite; }
.pipeline__step:nth-child(2) .pipeline__node { animation-delay: 0.6s; }
.pipeline__step:nth-child(3) .pipeline__node { animation-delay: 1.2s; }
.pipeline__step:nth-child(4) .pipeline__node { background: var(--accent-2); animation-delay: 1.8s; }
.pipeline__step span { font-size: 11px; letter-spacing: 0.06em; color: var(--on-dark-muted); text-align: center; }
.pipeline__step:nth-child(4) span { color: #FFFFFF; }

.stat-strip { display: flex; gap: 1px; background: var(--line-dark); border-radius: var(--r-sm); overflow: hidden; flex-wrap: wrap; }
.stat-strip > div { background: var(--ink-panel-2); padding: var(--s-4) 20px; flex: 1; min-width: 110px; }
.stat-strip__value { font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--accent-2); letter-spacing: -0.03em; }
.stat-strip__label { margin-top: var(--s-1); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-faint); }

.video-stack { display: flex; flex-direction: column; gap: 14px; }
.video-col { max-width: 340px; width: 100%; }
.video-col .label { display: block; margin-bottom: 18px; color: var(--on-dark-faint); }

.video {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--ink-panel-2);
}
.video--dark { border-color: var(--line-dark); }
.video:hover { border-color: var(--accent); }
.video--dark:hover { border-color: var(--accent-2); }
.video img { width: 100%; height: 100%; object-fit: cover; }
.video__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video__play::before {
  content: "";
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(20, 21, 26, 0.72);
}
.video__play::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-left: 14px solid #FFFFFF;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 4px;
}
.video--sm .video__play::before { width: 38px; height: 38px; }
.video--sm .video__play::after  { border-left-width: 12px; border-top-width: 8px; border-bottom-width: 8px; margin-left: 3px; }

/* ---------- Landing page tiles ---------- */

.page-tile {
  background: var(--surface);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: var(--s-6) 24px;
  min-height: 132px;
}
.page-tile:hover { background: var(--surface-sunk); }
.page-tile__head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-3); }
.page-tile__brand { display: flex; flex-direction: column; gap: var(--s-1); }
.page-tile__brand b { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 400; color: var(--accent); }
.page-tile--ibm .page-tile__brand b { color: var(--accent-2); }
.page-tile__type { font-size: 11px; letter-spacing: 0.02em; color: var(--ink-muted); }
.page-tile__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--line-strong);
}
.page-tile__mark { display: flex; justify-content: flex-end; align-items: center; flex: 1 1 auto; min-height: 34px; }
.page-tile__mark > * { transform: scale(1.9); transform-origin: right center; }

/* Geometric marks — see marks.css */

/* ---------- Process exhibits ---------- */

.exhibit {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.exhibit__frame { display: block; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; height: 250px; }
.exhibit__frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.exhibit__frame--text {
  height: 250px;
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  background: var(--surface-sunk);
}
.exhibit__frame--text p { margin: var(--s-2) 0 0; font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.exhibit figcaption { display: flex; flex-direction: column; gap: var(--s-2); }
.exhibit figcaption span:last-child { font-size: 15px; line-height: 1.55; text-wrap: pretty; }

.rule-row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--ink-muted); }
.rule-row i { flex: 1; height: 1px; background: #D8DAE3; margin: 0 10px; font-style: normal; }
.rule-row b { color: var(--accent); font-weight: 600; }
.rule-row b.is-accent-2 { color: var(--accent-2); }

/* ---------- Archive ---------- */

.archive-block { margin-bottom: var(--s-9); }
.archive-block__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); flex-wrap: wrap; margin-bottom: 18px; }
.archive-block__title { display: flex; gap: 14px; align-items: baseline; }
.archive-block__num { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--accent-2); }
.archive-block__title h3 { font-weight: 700; font-size: 26px; letter-spacing: -0.028em; }

.carousel { display: flex; gap: var(--s-4); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: var(--s-2); }
.carousel__item { flex: 0 0 340px; scroll-snap-align: start; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--surface); height: 180px; }
.carousel__item img { width: 100%; height: 100%; object-fit: cover; }
.carousel__item--top img { object-position: top; }
.carousel__nav { display: flex; gap: var(--s-2); }
.carousel__btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  color: var(--ink);
}
.carousel__btn:hover { border-color: var(--accent); color: var(--accent); }

.collateral {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-3);
  overflow: hidden;
}
.collateral img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }

.video-card { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--surface); display: block; text-decoration: none; }
.video-card:hover { border-color: var(--accent); }
.video-card__body { padding: 20px var(--s-5); }
.video-card__body h4 { margin: 0 0 var(--s-2); font-family: var(--font-body); font-size: 15px; font-weight: 600; letter-spacing: 0; }
.video-card__body p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--ink-muted); }

.sample-group { background: var(--surface); padding: 30px 28px; }
.sample-group h4 { margin: 0 0 6px; font-family: var(--font-body); font-size: 15px; font-weight: 600; letter-spacing: 0; }
.sample-group__kicker { margin: 0 0 18px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }

/* ---------- Capabilities ---------- */

.capability { background: var(--surface); padding: var(--s-7) 30px; }
.capability h3 { margin: 0 0 var(--s-4); font-family: var(--font-body); font-size: 11px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--accent); font-weight: 400; }
.capability p { margin: 0; font-size: 15px; line-height: 1.7; }

/* ---------- Contact ---------- */

.contact {
  background: var(--ink-panel);
  color: var(--on-dark);
  border-radius: var(--r-xl);
  padding: clamp(36px, 5vw, var(--s-10));
}
.contact .kicker { color: var(--accent-2); }
.contact__title { margin: var(--s-6) 0 0; font-weight: 800; font-size: clamp(36px, 6vw, 86px); line-height: 0.98; letter-spacing: -0.04em; max-width: 15em; }
.contact__note { margin: var(--s-6) 0 0; font-size: 17px; line-height: 1.6; color: var(--on-dark-muted); max-width: 34em; text-wrap: pretty; }
.contact__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; margin-top: var(--s-9); padding-top: 28px; border-top: 1px solid var(--line-dark); }
.contact__grid dt { font-size: 11px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--on-dark-faint); margin-bottom: 10px; }
.contact__grid dd { margin: 0; }
.contact__grid a { color: #FFFFFF; font-size: 16px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #4A4D58; }
.contact__grid a:hover { color: var(--accent-2); text-decoration-color: var(--accent-2); }
.colophon { margin: var(--s-7) 0 0; font-size: 12px; color: var(--ink-muted); }
