/* Kwame Boadi — shared site styles */

html, body {
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: #000000;
  -webkit-font-smoothing: antialiased;
}
body {
  font-family: "Archivo", system-ui, sans-serif;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
a { color: #000000; text-decoration: none; }
a:hover { color: #6b6b6b; }
::selection { background: #000; color: #fff; }
button { font: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  margin: -1px;
  padding: 0;
  border: 0;
}

/* ---------- header / nav ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 18px 20px;
  pointer-events: none;
  gap: 12px;
}
.nav-group {
  display: flex;
  gap: 8px;
  pointer-events: auto;
}
.pill {
  font-family: Archivo, sans-serif;
  font-size: 9px;
  letter-spacing: 0.14em;
  font-weight: 500;
  border: 0;
  cursor: pointer;
  padding: 4px 7px 3px;
  border-radius: 999px;
  transition: background 0.25s, color 0.25s;
  background: #f0f0ef;
  color: #000;
  display: inline-block;
}
body.page-home .pill { background: rgba(255, 255, 255, 0.18); color: #fff; }
.pill.is-active { background: #000 !important; color: #fff !important; }

.wordmark {
  pointer-events: auto;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(20px, 2.95vw, 43px);
  line-height: 1;
  letter-spacing: -0.075em;
  white-space: nowrap;
  transition: color 0.25s;
  color: #000;
  display: inline-block;
}
body.page-home .wordmark { color: #fff; }
.wordmark-inner { display: inline-flex; align-items: center; gap: 0.28em; }
.wordmark-dot {
  width: 0.13em;
  height: 0.13em;
  border-radius: 999px;
  background: currentColor;
  display: inline-block;
  flex: none;
}
.wordmark-dp { font-style: italic; }

/* ---------- home reel ---------- */

.reel {
  position: fixed;
  inset: 0;
  background: #000;
  overflow: hidden;
  cursor: none;
  z-index: 10;
}
.reel-slide {
  position: absolute;
  inset: 0;
  transition: opacity 1s ease;
  opacity: 0;
}
.reel-slide.is-active { opacity: 1; }
.reel-slide iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: max(100vw, 177.8vh);
  height: max(100vh, 56.25vw);
  border: 0;
  pointer-events: none;
}
.reel-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 55%, rgba(0,0,0,0.6) 100%);
  pointer-events: none;
}
.reel-cursor {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s;
}
.reel-cursor-inner {
  font-family: Archivo, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 9px 16px 8px;
}
.reel-labels {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 6px;
  padding: 0 20px 14px;
}
.reel-label {
  cursor: pointer;
  padding-top: 6px;
  background: none;
  border: 0;
  text-align: left;
  color: inherit;
}
.reel-label-bar {
  height: 1px;
  width: 100%;
  background: rgba(255, 255, 255, 0.22);
  margin-bottom: 7px;
  overflow: hidden;
}
.reel-label-bar-fill {
  height: 100%;
  background: #fff;
  transition: width 0.12s linear;
  width: 0%;
}
.reel-label-row {
  display: flex;
  gap: 10px;
  align-items: baseline;
  transition: opacity 0.3s;
  opacity: 1;
}
.reel-labels.is-hovering .reel-label:not(.is-active) .reel-label-row { opacity: 0.5; }
.reel-label-num {
  font-family: "Libre Caslon Display", Georgia, serif;
  font-size: 13px;
  color: #fff;
  letter-spacing: 0.02em;
}
.reel-label-project {
  font-family: "Libre Caslon Display", Georgia, serif;
  font-size: clamp(14px, 1.15vw, 18px);
  color: #fff;
  line-height: 1.1;
}
.reel-label-meta {
  font-family: Archivo, sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.62);
  margin-top: 2px;
}

/* ---------- work page ---------- */

.work-page { min-height: 100vh; padding: 118px 20px 80px; position: relative; }

.mode-toggle-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin-bottom: clamp(60px, 16vh, 170px);
}
.mode-label {
  font-family: Archivo, sans-serif;
  font-size: 7.5px;
  letter-spacing: 0.05em;
  font-weight: 500;
  transition: color 0.25s;
  color: #a8a8a5;
}
.mode-label.is-active { color: #000; }
.mode-switch {
  width: 41px;
  height: 20px;
  border-radius: 999px;
  border: 0;
  background: #f0f0ef;
  cursor: pointer;
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.mode-knob {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #000;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(0px);
}
.mode-switch.is-grid .mode-knob { transform: translateX(21px); }

.work-list-wrap { position: relative; }
.work-preview {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 20;
}
.work-preview-box {
  width: min(32vw, 440px);
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
  transition: opacity 0.35s ease;
  opacity: 0;
}
.work-preview-box.is-visible { opacity: 1; }
.work-preview-box iframe { width: 100%; height: 100%; border: 0; }

.work-list-header {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto 120px;
  gap: 10px 14px;
  align-items: baseline;
  padding-bottom: 10px;
  margin-bottom: 12px;
  position: relative;
  z-index: 10;
}
.work-list-header span {
  font-family: Archivo, sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  font-weight: 500;
}
.work-list-header .col-company { text-align: left; }
.work-list-header .col-type { text-align: right; }

.work-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto 120px;
  gap: 10px 14px;
  align-items: baseline;
  padding: 0;
  cursor: pointer;
  position: relative;
  z-index: 10;
  transition: color 0.3s ease;
  color: #000;
}
.work-row.is-dim { color: #d2d2ce; }
.work-row .col-no {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 14px;
  letter-spacing: -0.02em;
}
.work-row .col-project {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(14px, 1.28vw, 19px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.work-row .col-company {
  font-family: Archivo, sans-serif;
  font-size: clamp(11px, 0.94vw, 14px);
  text-align: left;
  letter-spacing: -0.02em;
}
.work-row .col-type {
  font-family: Archivo, sans-serif;
  font-size: clamp(11px, 0.94vw, 14px);
  text-align: right;
  letter-spacing: -0.02em;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 26px 8px;
  max-width: 1520px;
  margin: 0 auto;
}
.work-tile { cursor: pointer; color: inherit; display: block; }
.work-tile-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0b0b0b center/cover no-repeat;
  overflow: hidden;
  border-radius: 3px;
  position: relative;
}
.work-tile-preview {
  position: absolute;
  inset: 0;
  transition: opacity 0.4s ease;
  opacity: 0;
}
.work-tile-preview.is-visible { opacity: 1; }
.work-tile-preview iframe { width: 100%; height: 100%; border: 0; pointer-events: none; }
.work-tile-meta { display: flex; gap: 12px; align-items: baseline; margin-top: 5px; }
.work-tile-num { font-family: "Source Serif 4", Georgia, serif; font-size: 13px; color: #8d8d8a; }
.work-tile-project {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(14px, 1.15vw, 18px);
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.work-tile-type {
  font-family: Archivo, sans-serif;
  font-size: 11px;
  letter-spacing: -0.01em;
  font-weight: 500;
  margin-top: 5px;
}

/* ---------- about page ---------- */

.about-page { min-height: 100vh; padding: 118px 0 60px; }
.about-bio {
  border-bottom: 1px solid #e6e6e4;
  padding: clamp(40px, 9vh, 110px) 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  position: relative;
}
.about-bio h2 { margin: 0; font-family: Archivo, sans-serif; font-size: 10.5px; letter-spacing: 0.14em; font-weight: 500; }
.about-bio p {
  margin: 0 auto;
  max-width: 46ch;
  text-align: center;
  font-family: Archivo, sans-serif;
  font-size: clamp(17px, 1.55vw, 23px);
  line-height: 1.5;
  letter-spacing: -0.03em;
  text-wrap: pretty;
}
.about-clients {
  padding: clamp(36px, 7vh, 80px) 20px 0;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 30px clamp(30px, 8vw, 140px);
  align-items: start;
}
.about-clients h2 { margin: 0; font-family: Archivo, sans-serif; font-size: 10.5px; letter-spacing: 0.14em; font-weight: 500; }
.client-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 14px 16px;
  width: 100%;
}
.client-item { display: block; white-space: nowrap; width: 362px; height: 30px; }
.client-num {
  font-family: Archivo, sans-serif;
  font-size: 10px;
  color: #9a9a97;
  letter-spacing: 0.06em;
  vertical-align: baseline;
  position: relative;
  top: -1.5em;
  margin-right: 6px;
}
.client-name {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(24px, 2.8vw, 40px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.055em;
}

.about-contact-block {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 0 20px 34px;
  margin-top: clamp(36px, 7vh, 80px);
}

/* ---------- contact block (shared by about + contact pages) ---------- */

.contact-page { min-height: 100vh; display: grid; grid-template-rows: 1fr auto; padding: 118px 20px 34px; }
.contact-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  text-align: center;
  font-family: "Libre Caslon Display", Georgia, serif;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 0.95;
}
.contact-links a { display: block; }
.copyright {
  text-align: center;
  font-family: Archivo, sans-serif;
  font-size: 12px;
  letter-spacing: 0.02em;
  font-weight: 400;
  color: #000;
}

/* ---------- fullscreen player ---------- */

.player { position: fixed; inset: 0; z-index: 80; background: #000; overflow: hidden; }
.player iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: max(100vw, 177.8vh);
  height: max(100vh, 56.25vw);
  border: 0;
}
.player-top {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  z-index: 90;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.player-title {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600;
  font-size: clamp(18px, 2.25vw, 33px);
  line-height: 1.05;
  color: #fff;
  letter-spacing: -0.035em;
  max-width: 62vw;
  text-wrap: pretty;
}
.player-close {
  flex: none;
  font-family: Archivo, sans-serif;
  font-size: 9px;
  letter-spacing: 0.14em;
  font-weight: 500;
  border: 0;
  cursor: pointer;
  padding: 4px 7px 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  backdrop-filter: blur(6px);
  display: inline-block;
}
.player-mid {
  position: absolute;
  left: 20px;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.player-controls { flex: none; display: grid; grid-template-columns: auto auto; gap: 6px 28px; }
.player-controls button {
  font-family: Archivo, sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  font-weight: 500;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  transition: color 0.25s;
  color: rgba(255, 255, 255, 0.42);
}
.player-controls button.is-active { color: #fff; }
.player-controls button:hover { color: #fff; }
.player-credits {
  display: flex;
  align-items: flex-start;
  gap: clamp(18px, 4vw, 64px);
  flex-wrap: wrap;
  justify-content: flex-end;
  transition: opacity 0.35s ease;
  opacity: 0;
  pointer-events: none;
}
.player-credits.is-visible { opacity: 1; pointer-events: auto; }
.credit-label { font-family: Archivo, sans-serif; font-size: 12px; letter-spacing: 0.02em; font-weight: 500; color: #fff; white-space: nowrap; }
.credit-value { font-family: Archivo, sans-serif; font-size: 12px; letter-spacing: 0.02em; font-weight: 500; color: #fff; margin-top: 4px; white-space: nowrap; }
.player-credits-toggle {
  flex: none;
  font-family: Archivo, sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  font-weight: 500;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  color: #fff;
  transition: opacity 0.25s;
}
.player-credits-toggle:hover { opacity: 0.6; }
.player-progress-wrap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 90; }
.player-progress-track { height: 2px; width: 100%; background: rgba(255, 255, 255, 0.22); overflow: hidden; }
.player-progress-fill { height: 100%; background: #fff; transition: width 0.25s linear; width: 0%; }
