/*
  VOICE   Senior, direct, unhurried. A practitioner's site, not a sales page.
  IDEA    A printed programme: black bands for conviction (who, what I believe), white bands for evidence.
  PICTURE Real photography of Abanoub, large, plus the brand row moving underneath the hero.
  COLOUR  Black and white with grey for quiet text. Unblind UX olive appears once, inside its own block.
  TYPE    Chillax 300/400/500 from the design system, four sizes. LAYOUT 1200px column, bands full width.
*/
@import url("design-system/tokens.css");
@import url("design-system/buttons.css");

*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: var(--weight-regular) var(--text-body)/var(--leading-body) var(--font-sans); color: var(--text-on-light); background: var(--bg-light); overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-weight: var(--weight-regular); line-height: var(--leading-tight); letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); font-weight: var(--weight-medium); line-height: var(--leading-snug); }
p { max-width: 68ch; text-wrap: pretty; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: min(var(--content-max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.band { padding-block: var(--section-pad); }
.dark { background: var(--bg-dark); color: var(--text-on-dark); }
.alt { background: var(--bg-light-alt); }
.muted { color: var(--color-text-muted-light); }
.dark .muted { color: var(--color-text-muted-dark); }
.section-head { display: grid; gap: var(--space-4); margin-bottom: var(--space-8); }
.section-head p { font-size: var(--text-lead); line-height: 1.5; }

/* Buttons */
/* Buttons live in ../design-system/buttons.css */
.invert { filter: brightness(0) invert(1); }

/* Header */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(0,0,0,.88); backdrop-filter: blur(10px); color: #fff; border-bottom: 1px solid var(--color-ink-3); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); min-height: 72px; }
.brand img { width: 150px; height: auto; }
.nav { display: flex; align-items: center; gap: var(--space-6); }
.nav ul { display: flex; gap: var(--space-5); list-style: none; margin: 0; padding: 0; }
.nav a:not(.btn) { text-decoration: none; font-size: 0.95rem; opacity: .8; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.menu-btn { display: none; }

/* Hero */
.hero { padding-block: clamp(48px, 7vw, 96px) 0; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: var(--text-display); margin: var(--space-4) 0 var(--space-6); }
.eyebrow { font-size: var(--text-small); letter-spacing: .02em; color: var(--color-text-muted-dark); }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.portrait { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--color-ink-2); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

.logo-strip { margin-top: clamp(48px, 6vw, 80px); border-block: 1px solid var(--color-ink-3); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.logo-track { display: flex; align-items: center; gap: 144px; width: max-content; padding-block: 28px; padding-right: 144px; animation: marquee 53s linear infinite; }
.logo-track img { height: 26px; width: auto; opacity: .85; }
.logo-track img.tall { height: 34px; }
@keyframes marquee { to { transform: translateX(-50%); } }

.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-5); padding-block: clamp(40px, 5vw, 64px); }
.stat b { display: block; font-size: var(--text-stat); font-weight: var(--weight-medium); line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: var(--space-2); color: var(--color-text-muted-dark); font-size: .95rem; line-height: 1.35; }
.creds { display: flex; flex-wrap: wrap; gap: var(--space-3); padding-bottom: clamp(48px, 6vw, 80px); }
.cred { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border: 1px solid var(--color-ink-3); border-radius: var(--radius-pill); font-size: .95rem; }
.cred img { height: 18px; width: auto; }
.cred em { font-style: normal; color: var(--color-text-muted-dark); padding-left: 10px; border-left: 1px solid var(--color-ink-3); }

/* Selected work: Post-AI and Design Leadership featured, Pre-AI as a narrower, quieter third column */
.eras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); align-items: stretch; }
.era { display: flex; flex-direction: column; border-radius: var(--radius-lg); padding: clamp(28px, 3vw, 40px); }
.era-label { font-size: var(--text-small); font-weight: var(--weight-medium); color: var(--color-text-muted-light); }
.era h3 { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.375rem); font-weight: var(--weight-regular); line-height: 1.1; margin: var(--space-2) 0 var(--space-6); }
.era ul { list-style: none; margin: 0 0 var(--space-7); padding: 0; display: grid; gap: var(--space-4); }
.era li { padding-top: var(--space-4); border-top: 1px solid var(--color-line); }
.era li > span { display: block; color: var(--color-text-muted-light); font-size: 1rem; margin-top: 6px; line-height: 1.45; }
.item-head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); }
.item-head strong { font-size: clamp(1.2rem, 1.1rem + .4vw, 1.375rem); font-weight: var(--weight-medium); line-height: 1.25; }
.co-inline { flex: none; height: 24px; width: auto; }
.co-ink { filter: brightness(0); }
.request { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); padding-top: var(--space-5); border-top: 1px solid currentColor; font-weight: var(--weight-medium); text-decoration: none; }
.request img { width: 20px; height: 20px; flex: none; transition: transform var(--dur-fast) var(--ease-out); }
.request:hover img { transform: translate(2px, -2px); }
.era-ai { background: var(--color-black); color: #fff; }
.era-ai .era-label, .era-ai li > span { color: var(--color-text-muted-dark); }
.era-ai li { border-top-color: var(--color-ink-3); }
.era-lead { background: var(--bg-light-alt); border: 1px solid var(--color-ink); }
.era-early { margin-top: var(--space-5); border: 1px solid var(--color-line); border-radius: var(--radius-md); padding: var(--space-5) var(--space-6); display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; gap: var(--space-6); align-items: center; }
.era-early h3 { font-size: var(--text-h3); font-weight: var(--weight-regular); margin-top: 2px; }
.era-early ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.era-early li strong { display: block; font-weight: var(--weight-medium); font-size: 1rem; line-height: 1.3; }
.era-early li span { display: block; color: var(--color-text-muted-light); font-size: .875rem; margin-top: 2px; }
.era-early .request { margin: 0; padding: 0; border: 0; font-size: .95rem; white-space: nowrap; }
.co { display: block; height: 18px; width: auto; margin-bottom: var(--space-2); }
.co-wide { height: 24px; margin-top: -3px; margin-bottom: 4px; }

/* AI POV */
.pov-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.pov-stack { position: relative; aspect-ratio: 1 / 1; }
.pov-photo { position: absolute; width: 72%; margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3 / 2; background: var(--color-ink-2); border: 1px solid var(--color-ink-3); box-shadow: 0 24px 60px rgba(0,0,0,.55); }
.pov-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; display: block; }
.pov-cta { margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid rgba(255,255,255,.14); }
.pov-cta p { margin: 0 0 var(--space-3); font-size: var(--text-small); }
.pov-cta .btn { text-align: left; line-height: 1.25; flex-wrap: wrap; column-gap: 6px; }
.pov-cta .nw { white-space: nowrap; }
.pov-back { right: 4%; bottom: 9%; transform: rotate(7deg); z-index: 1; }
.pov-front { left: 4%; top: 9%; transform: rotate(-6deg); z-index: 2; }
.pov h2 { margin-bottom: var(--space-6); }
.pov p { font-size: var(--text-lead); line-height: 1.55; color: #d9d9d9; }
.pov p + p { margin-top: var(--space-5); }
.pov .thesis { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); line-height: 1.25; color: #fff; padding-left: var(--space-5); border-left: 1px solid #fff; }
.patterns { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); padding: 0; list-style: none; }
.patterns li { border: 1px solid var(--color-ink-3); border-radius: var(--radius-pill); padding: 8px 14px; font-size: .95rem; }

/* Unblind UX (bounded inset, compact) */
.uux { background: var(--uux-olive); color: #fff; border-radius: var(--radius-lg); padding: clamp(24px, 3.5vw, 44px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(20px, 4vw, 56px); align-items: stretch; }
.uux-id { display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-5); }
.uux-copy { container-type: inline-size; }
.uux-logo { width: min(260px, 100%); }
.uux .proof { margin: 0; font-size: clamp(1.05rem, .95rem + .5vw, 1.35rem); font-weight: var(--weight-medium); line-height: 1.2; }
.uux h2 { font-size: min(4.9cqi, 2.25rem); white-space: nowrap; margin-bottom: var(--space-3); }
.uux p { font-size: var(--text-body); line-height: 1.55; }
.uux .btn { margin-top: var(--space-5); }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
.quote { background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius-md); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-5); }
.quote blockquote { margin: 0; font-size: 1.125rem; line-height: 1.6; font-weight: var(--weight-light); }
.quote blockquote::before { content: "\201C"; display: block; font-size: 3rem; line-height: .6; height: 22px; font-weight: var(--weight-medium); }
.who { margin-top: auto; display: flex; align-items: center; gap: var(--space-4); }
.who img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--color-paper-2); }
.who b { display: block; font-weight: var(--weight-medium); }
.who span { display: block; font-size: .95rem; color: var(--color-text-muted-light); }

/* Talks and events: one scrolling row of cards below the Unblind UX frame */
.talks-bar { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); margin: var(--space-7) 0 var(--space-4); }
.talks-bar h3 { font-size: var(--text-h3); }
.scroll-btns { display: flex; gap: var(--space-2); }
.tcards { list-style: none; margin: 0; padding: 0 0 var(--space-3); display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, calc((100% - 3 * var(--space-4)) / 4)); gap: var(--space-4); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.tcard { scroll-snap-align: start; border: 1px solid var(--color-line); border-radius: var(--radius-md); overflow: hidden; display: flex; flex-direction: column; background: #fff; }
.tcard .ph { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 50%; background: var(--color-paper-2); border-bottom: 1px solid var(--color-line); }
.tcard .ph-pod { display: flex; flex-direction: column; justify-content: space-between; padding: var(--space-4); background: var(--color-ink); color: #fff; border-bottom-color: var(--color-ink); }
.pod-kicker { font-size: 13px; color: var(--color-text-muted-dark); letter-spacing: .02em; }
.pod-wave { display: flex; align-items: center; gap: 4px; height: 44%; }
.pod-wave i { flex: 1; border-radius: 3px; background: var(--uux-olive-tint); opacity: .9; height: 30%; }
.pod-wave i:nth-child(3n+1) { height: 62%; } .pod-wave i:nth-child(4n+2) { height: 88%; } .pod-wave i:nth-child(5n) { height: 46%; } .pod-wave i:nth-child(7n+3) { height: 100%; } .pod-wave i:nth-child(6n+4) { height: 22%; }
.pod-foot { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); }
.pod-name { font-size: 1.125rem; font-weight: var(--weight-medium); }
.pod-len { font-size: 13px; color: var(--color-text-muted-dark); }
.talks-cta { margin-top: var(--space-5); display: flex; justify-content: center; }
.talks-cta .btn { text-align: left; line-height: 1.25; }
.tcard-body { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.tcard-meta { font-size: 13px; line-height: 1.45; color: var(--color-text-muted-light); }
.tcard h3 { font-size: 1.0625rem; font-weight: var(--weight-medium); line-height: 1.3; }
.talk-links { margin-top: auto; padding-top: var(--space-2); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); font-size: .9rem; }
.talk-links a { display: inline-flex; align-items: center; gap: 4px; font-weight: var(--weight-medium); text-decoration: none; border-bottom: 1px solid currentColor; }
.talk-links a img { width: 14px; height: 14px; }
.role { border: 1px solid var(--color-line); border-radius: var(--radius-pill); padding: 3px 10px; color: var(--color-text-muted-light); font-size: 13px; }

/* Contact */
.contact .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--space-7); align-items: end; }
.contact h2 { font-size: clamp(2.75rem, 2rem + 4vw, 5.5rem); margin-bottom: var(--space-5); }
.contact p { font-size: var(--text-lead); }
.contact-actions { display: grid; gap: var(--space-4); justify-items: start; }
.contact .address { font-size: var(--text-small); color: var(--color-text-muted-dark); }
.place { margin-top: var(--space-6); color: var(--color-text-muted-dark); }

/* Footer */
.site-foot { background: var(--bg-dark); color: var(--color-text-muted-dark); border-top: 1px solid var(--color-ink-3); font-size: var(--text-small); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between; align-items: center; padding-block: var(--space-6); }
.site-foot a { color: #fff; }
.proto-tag { border: 1px dashed var(--color-ink-3); border-radius: var(--radius-pill); padding: 4px 12px; }

/* About page */
.about-intro { display: grid; grid-template-columns: 280px 1fr; gap: var(--space-7); align-items: center; }
.about-intro img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; }
.about-intro h1 { font-size: var(--text-h2); margin-top: var(--space-3); }
.about-intro h1 .nw { white-space: nowrap; }
.note { border: 1px dashed #b5b5b5; border-radius: var(--radius-md); padding: var(--space-4) var(--space-5); font-size: .95rem; color: var(--color-text-muted-light); margin-bottom: var(--space-7); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); }
.list { list-style: none; margin: var(--space-5) 0 0; padding: 0; }
.list li { display: flex; justify-content: space-between; gap: var(--space-4); padding: 14px 0; border-top: 1px solid var(--color-line); }
.list li span { color: var(--color-text-muted-light); text-align: right; }
.list a { text-decoration-thickness: 1px; text-underline-offset: 4px; }
.list .sub { padding-left: var(--space-5); font-size: .95rem; }

/* Responsive */
@media (max-width: 1000px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--space-6); }
  .era-early { grid-template-columns: 1fr; gap: var(--space-4); }
  .era-early ul { grid-template-columns: 1fr; gap: var(--space-3); }
  .era-early .request { white-space: normal; }
  .uux { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .nav { position: absolute; inset: 72px 0 auto 0; background: #000; border-bottom: 1px solid var(--color-ink-3); flex-direction: column; align-items: stretch; gap: 0; padding: var(--space-4) var(--gutter) var(--space-6); display: none; }
  .nav.open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li a { display: block; padding: 14px 0; font-size: 1.125rem; border-bottom: 1px solid var(--color-ink-2); }
  .nav .btn { margin-top: var(--space-5); justify-content: center; }
  .hero-grid, .pov-grid, .contact .wrap, .about-intro, .two-col { grid-template-columns: 1fr; }
  .portrait { max-width: 420px; }
  .pov-stack { max-width: 560px; width: 100%; }
  .quotes { grid-template-columns: 1fr; }
  .eras { grid-template-columns: 1fr; }
  .tcards { grid-auto-columns: 78%; }
  .about-intro img { width: 200px; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-row .btn { flex: 1 1 100%; justify-content: center; }
  .brand img { width: 130px; }
  .list li { flex-direction: column; gap: 2px; }
  .list li span { text-align: left; }
  .about-intro h1 { font-size: clamp(1.5rem, 7vw, 2rem); }
  .uux h2 { white-space: normal; font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .logo-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; row-gap: 24px; padding-right: 0; }
  .logo-track [aria-hidden="true"] { display: none; }
}
