/* ==========================================================================
   Michael Woodward — Portfolio
   Clean, modern, white background, black sans-serif.
   ========================================================================== */

:root {
  --black: #0a0a0a;
  --gray-900: #111111;
  --gray-700: #3d3d3d;
  --gray-500: #6e6e6e;
  --gray-300: #a8a8a8;
  --gray-200: #e2e2e2;
  --gray-100: #f0f0f0;
  --gray-50: #f7f7f7;
  --white: #ffffff;

  --max-width: 1120px;
  --gutter: clamp(24px, 5vw, 64px);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--black);
}

p {
  margin: 0;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.lede {
  font-size: clamp(19px, 2vw, 22px);
  line-height: 1.55;
  color: var(--gray-700);
  font-weight: 400;
}

/* --------------------------------------------------------------------------
   Header / Nav
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}

.nav-logo {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-mark {
  height: 15px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--gray-700);
  transition: color 0.2s var(--ease);
  position: relative;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--black);
}

.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--black);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin: -8px;
}

.nav-toggle svg {
  display: block;
}

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

.hero {
  padding-top: clamp(64px, 10vw, 120px);
  padding-bottom: clamp(48px, 8vw, 88px);
}

.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  max-width: 15ch;
}

.hero .lede {
  margin-top: 24px;
  max-width: 56ch;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 32px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--gray-700);
}

/* --------------------------------------------------------------------------
   Intro video trigger + modal
   -------------------------------------------------------------------------- */

.video-trigger {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 22px 6px 6px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  background: var(--white);
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--black);
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.video-trigger:hover {
  border-color: var(--black);
  background: var(--gray-50);
}

.video-trigger-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-trigger-icon svg {
  margin-left: 2px;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0.25s var(--ease);
}

.video-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.86);
}

.video-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 960px;
  border-radius: 14px;
  overflow: hidden;
  background: black;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.video-modal-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.video-modal-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.55);
  color: var(--white);
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}

.video-modal-close:hover {
  background: rgba(0, 0, 0, 0.8);
}

body.video-modal-open {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Page header (non-home pages)
   -------------------------------------------------------------------------- */

.page-header {
  padding-top: clamp(56px, 9vw, 96px);
  padding-bottom: clamp(32px, 5vw, 56px);
  border-bottom: 1px solid var(--gray-100);
}

.page-header h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  margin-top: 14px;
  max-width: 22ch;
}

.page-header .lede {
  margin-top: 20px;
  max-width: 62ch;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

section {
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(56px, 8vw, 96px);
}

section + section {
  border-top: 1px solid var(--gray-100);
}

.section-head {
  margin-bottom: clamp(32px, 5vw, 56px);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
}

/* --------------------------------------------------------------------------
   Work grid / case study cards
   -------------------------------------------------------------------------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--gray-100);
  border: 1px solid var(--gray-100);
}

.work-card {
  background: var(--white);
  display: flex;
  flex-direction: column;
  padding: 36px;
  transition: background 0.25s var(--ease);
}

.work-card:hover {
  background: var(--gray-50);
}

.work-grid .work-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.work-grid .work-card:last-child:nth-child(odd) .work-thumb {
  aspect-ratio: 32 / 10;
}

.work-card:hover .work-thumb {
  transform: translateY(-3px);
}

.work-thumb {
  aspect-ratio: 16 / 10;
  width: 100%;
  border-radius: 10px;
  background:
    linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-300);
  margin-bottom: 24px;
  transition: transform 0.35s var(--ease);
  overflow: hidden;
}

.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-thumb-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-300);
}

.work-card-tag {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 10px;
}

.work-card h3 {
  font-size: clamp(20px, 2.2vw, 24px);
  line-height: 1.25;
}

.work-card p {
  margin-top: 12px;
  color: var(--gray-500);
  font-size: 15px;
  line-height: 1.55;
}

.work-card-arrow {
  margin-top: auto;
  padding-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

.work-card-arrow svg {
  transition: transform 0.25s var(--ease);
}

.work-card:hover .work-card-arrow svg {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Case study page
   -------------------------------------------------------------------------- */

.cs-hero {
  padding-top: clamp(56px, 9vw, 96px);
  padding-bottom: clamp(40px, 6vw, 64px);
}

.cs-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-500);
  margin-bottom: 28px;
}

.cs-back:hover {
  color: var(--black);
}

.cs-hero h1 {
  font-size: clamp(32px, 5vw, 54px);
  max-width: 20ch;
  line-height: 1.08;
}

.cs-hero .lede {
  margin-top: 22px;
  max-width: 60ch;
}

.cs-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px;
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-100);
}

.cs-meta dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin: 0 0 6px;
}

.cs-meta dd {
  font-size: 15px;
  font-weight: 500;
  margin: 0;
  color: var(--black);
}

.cs-cover {
  aspect-ratio: 16 / 8;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-300);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: clamp(32px, 6vw, 56px);
  overflow: hidden;
}

.cs-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* For wide data/diagram covers (not photographic), show the whole image
   instead of cropping it. */
.cs-cover.cs-cover-contain {
  aspect-ratio: 2.6 / 1;
  background: var(--white);
}

.cs-cover.cs-cover-contain img {
  object-fit: contain;
  padding: 16px;
  box-sizing: border-box;
}

.cs-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 56px;
}

.cs-body-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
  padding-top: 4px;
}

.cs-body-content h3 {
  font-size: 20px;
  margin-bottom: 14px;
}

.cs-body-content p {
  color: var(--gray-700);
  max-width: 68ch;
}

.cs-body-content p + p {
  margin-top: 16px;
}

.cs-body-content ul {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--gray-700);
}

.cs-body-content li {
  margin-bottom: 8px;
}

.cs-body-content li:last-child {
  margin-bottom: 0;
}

.cs-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
}

.cs-stat-value {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cs-stat-label {
  margin-top: 8px;
  font-size: 14px;
  color: var(--gray-500);
}

.cs-stat-source {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--gray-300);
}

/* --------------------------------------------------------------------------
   Homepage impact band
   -------------------------------------------------------------------------- */

.impact-band {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
}

.companies-line {
  margin-top: 28px;
  font-size: 14px;
  color: var(--gray-500);
  letter-spacing: 0.01em;
}

/* --------------------------------------------------------------------------
   Leadership cards (contain-fit thumbnails for diagrams/photos that
   shouldn't be cropped)
   -------------------------------------------------------------------------- */

.work-thumb.work-thumb-contain {
  background: var(--gray-50);
  padding: 22px;
}

.work-thumb.work-thumb-contain img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* --------------------------------------------------------------------------
   Compact link rows (secondary work, earlier work)
   -------------------------------------------------------------------------- */

.link-row-list {
  border-top: 1px solid var(--gray-100);
}

.link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--gray-100);
}

.link-row-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.link-row-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 6px;
}

.link-row-desc {
  margin-top: 4px;
  font-size: 14.5px;
  color: var(--gray-500);
  max-width: 60ch;
}

.link-row-arrow {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

a.link-row:hover .link-row-arrow {
  transform: translateX(4px);
  background: var(--black);
  color: var(--white);
}

/* --------------------------------------------------------------------------
   Org growth comparison (Teams page)
   -------------------------------------------------------------------------- */

.org-grow {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.org-grow-card {
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 32px;
}

.org-grow-company {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.org-grow-count {
  margin-top: 12px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: clamp(28px, 3.6vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.org-grow-count span.arrow {
  color: var(--gray-300);
  font-size: 0.6em;
}

.org-grow-desc {
  margin-top: 14px;
  font-size: 14.5px;
  color: var(--gray-700);
  line-height: 1.6;
}

.cs-figure {
  margin-top: 8px;
}

.cs-shots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.cs-shots-1 {
  grid-template-columns: 1fr;
}

.cs-shots-3 .cs-shot:last-child {
  grid-column: 1 / -1;
}

.cs-shot {
  height: 320px;
  border-radius: 10px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-300);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  overflow: hidden;
  padding: 18px;
}

.cs-shots-1 .cs-shot,
.cs-shots-3 .cs-shot:last-child {
  height: 380px;
}

.cs-shot img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.cs-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.cs-next-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 8px;
}

.cs-next-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cs-next-arrow {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}

.cs-next:hover .cs-next-arrow {
  transform: translateX(4px);
  background: var(--black);
  color: var(--white);
}

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

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid var(--gray-100);
}

.timeline-item:first-child {
  border-top: none;
}

.timeline-date {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-500);
  padding-top: 3px;
}

.timeline-role {
  font-size: clamp(19px, 2.2vw, 22px);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.timeline-company {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--gray-500);
  margin-top: 4px;
}

.timeline-desc {
  margin-top: 12px;
  color: var(--gray-700);
  max-width: 62ch;
}

/* --------------------------------------------------------------------------
   About page specifics
   -------------------------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 56px;
}

.about-photo {
  aspect-ratio: 1;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-300);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  overflow: hidden;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 85% 30%;
}

/* --------------------------------------------------------------------------
   Process page
   -------------------------------------------------------------------------- */

.process-diagram {
  aspect-ratio: 21 / 9;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-300);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: clamp(32px, 6vw, 56px);
  overflow: hidden;
}

.process-diagram img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   Contact / CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  text-align: center;
  padding-top: clamp(64px, 10vw, 120px);
  padding-bottom: clamp(64px, 10vw, 120px);
}

.cta-band h2 {
  font-size: clamp(30px, 5vw, 52px);
  max-width: 18ch;
  margin: 0 auto;
}

.cta-band .lede {
  margin: 20px auto 0;
  text-align: center;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}

.btn-primary {
  background: var(--black);
  color: var(--white);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--gray-900);
}

.btn-secondary {
  border: 1px solid var(--gray-200);
  color: var(--black);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--gray-300);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--gray-100);
  padding-top: 40px;
  padding-bottom: 40px;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 13.5px;
  color: var(--gray-500);
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  font-size: 13.5px;
  color: var(--gray-500);
  font-weight: 500;
  transition: color 0.2s var(--ease);
}

.footer-links a:hover {
  color: var(--black);
}

/* --------------------------------------------------------------------------
   Utility
   -------------------------------------------------------------------------- */

.text-center {
  text-align: center;
}

.mt-sm { margin-top: 16px; }
.mt-md { margin-top: 32px; }
.mt-lg { margin-top: 56px; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 40px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  }

  .nav-links.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links a {
    display: block;
    padding: 16px 0;
    font-size: 18px;
    border-bottom: 1px solid var(--gray-100);
  }

  .nav-toggle {
    display: block;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .cs-body,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .about-photo {
    width: 140px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .cs-shots {
    grid-template-columns: 1fr;
  }

  .org-grow {
    grid-template-columns: 1fr;
  }

  .link-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 560px) {
  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }
}
