/* ================================================
   MARK PROCTOR DESIGN SYSTEM
   Shared styles across all pages
   ================================================ */

/* ---- DESIGN TOKENS ---- */
:root {
  --bg: #0a0a0a;
  --bg2: #111111;
  --surface: #1a1a1a;
  --border: #2a2a2a;
  --accent: #ff6b35;
  --accent-hover: #ff8c5a;
  --text: #ffffff;
  --text-dim: #b0b0b0;
  --text-muted: #707070;
  --technical: #3b82f6;
  --creative: #e91e8c;
  --commercial: #22c55e;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  overflow-x: hidden;
  line-height: 1.6;
}


/* ---- HEADER ---- */
.site-header {
  padding: 24px 5vw;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) {
  .site-header {
    padding: 32px 8vw;
  }
}

.site-name {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.site-name:hover {
  color: var(--accent);
}

/* ---- HERO ---- */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 30px 5vw;
  position: relative;
}

@media (min-width: 1024px) {
  .hero {
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 40px 8vw;
    gap: 40px;
  }
}

.hero-content {
  flex: 1;
  max-width: 726px;
}

.hero-headline {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  color: var(--text);
}

.hero-text {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-dim);
  margin-bottom: 36px;
}

.hero-text:last-of-type {
  margin-bottom: 36px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: white;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 8px;
  min-height: 48px;
  transition: background 0.2s ease;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-primary svg { width: 16px; height: 16px; }

.btn-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}

.btn-link:hover {
  color: var(--accent-hover);
}

/* ---- HERO PHOTO ---- */
.hero-photo {
  flex-shrink: 0;
  margin-top: 24px;
}

@media (min-width: 1024px) {
  .hero-photo {
    margin-top: 0;
  }
}

.hero-photo-inner {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 6 / 4.5;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .hero-photo-inner {
    max-width: 420px;
  }
}

@media (min-width: 1024px) {
  .hero-photo-inner {
    max-width: 540px;
  }
}

.hero-photo-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* ---- SECTION SHARED ---- */
section { padding: 40px 5vw; }

@media (min-width: 768px) {
  section { padding: 50px 8vw; }
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-heading {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--text);
}

/* ---- PILLARS ---- */
.pillars {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 24px;
}

@media (min-width: 768px) {
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .pillars-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pillar {
  background: var(--bg);
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: box-shadow 0.2s ease;
}

.pillar:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.pillar-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
}

.pillar-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.pillar-technical .pillar-title { color: var(--technical); }
.pillar-creative .pillar-title { color: var(--creative); }
.pillar-commercial .pillar-title { color: var(--commercial); }

.pillar-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.pillar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 11px;
  font-weight: 500;
  padding: 6px 12px;
  background: var(--bg2);
  border-radius: 100px;
  color: var(--text-dim);
}

/* ---- EXPERIENCE ---- */
.experience { background: var(--bg); }

.exp-list { display: flex; flex-direction: column; gap: 0; }

.exp-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.exp-item:first-child { border-top: 1px solid var(--border); }

.exp-logo {
  height: 24px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
  display: block;
  margin-bottom: 12px;
  background: #ccc;
  padding: 4px 8px;
  border-radius: 4px;
}

.exp-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}

.exp-meta-row .exp-company {
  font-size: 14px;
  font-weight: 600;
  color: var(--commercial);
  text-decoration: none;
}

.exp-meta-row .exp-company:hover {
  text-decoration: underline;
}

.exp-meta-row .exp-role {
  font-size: 14px;
  font-weight: 500;
  color: var(--creative);
  margin-bottom: 0;
}

.exp-meta-row .exp-type {
  font-size: 14px;
  color: var(--text-muted);
}

.exp-meta-row .exp-headline {
  font-size: 14px;
  font-weight: 700;
  color: var(--technical);
  margin-bottom: 0;
}

.exp-divider {
  color: var(--text-muted);
}

.exp-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.exp-bullets li {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-dim);
  padding-left: 20px;
  position: relative;
}

.exp-bullets li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

.exp-bullets li strong {
  color: var(--text);
  font-weight: 600;
}

/* ---- INDUSTRIES ---- */
.industries {
  background: var(--bg2);
  border-top: 1px solid var(--border);
}

.industries-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.industry-chip {
  font-size: 14px;
  font-weight: 500;
  padding: 12px 20px;
  min-height: 44px;
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-dim);
  transition: all 0.2s ease;
}

.industry-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---- TIMELINE ---- */
.timeline-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.timeline-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.timeline-item:hover {
  border-color: var(--accent);
}

.timeline-year {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.timeline-role {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

/* ---- EDUCATION ---- */
.edu-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) {
  .edu-row {
    flex-direction: row;
    align-items: center;
    gap: 24px;
    padding: 14px 0;
  }
}

.edu-row:first-child { border-top: 1px solid var(--border); }

.edu-institution {
  font-size: 17px;
  font-weight: 600;
}

@media (min-width: 768px) {
  .edu-institution {
    min-width: 220px;
  }
}

.edu-detail {
  font-size: 15px;
  color: var(--text-dim);
}

/* ---- BOOKING ---- */
.booking {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.booking-content {
  max-width: 726px;
}

.booking-intro {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-dim);
  margin-bottom: 36px;
}

/* ---- FOOTER ---- */
footer {
  padding: 32px 5vw;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
}

@media (min-width: 768px) {
  footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 40px 8vw;
    text-align: left;
  }
}

.footer-name {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
}

.footer-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
  min-height: 44px;
  display: flex;
  align-items: center;
}

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

/* ---- ANIMATIONS ---- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================
   PLAYBOOK PAGE STYLES
   ================================================ */

/* ---- PAGE HEADER ---- */
.page-header {
  padding: 40px 5vw 40px;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) {
  .page-header {
    padding: 50px 8vw 50px;
  }
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.page-header h1 {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 20px;
}

.page-header h1 span { color: var(--accent); }

.standfirst {
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 620px;
  line-height: 1.7;
  font-weight: 300;
}

/* ---- TOC ---- */
.toc-block {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 40px 5vw;
}

@media (min-width: 768px) {
  .toc-block {
    padding: 50px 8vw;
  }
}

.toc-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: block;
}

.toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px;
}

.toc-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  transition: all 0.2s ease;
}

.toc-item:hover { border-color: var(--accent); color: var(--text); }

.toc-num { color: var(--accent); font-weight: 700; font-size: 0.78rem; flex-shrink: 0; padding-top: 1px; }

/* ---- PLAYBOOK SECTIONS ---- */
.playbook-section { padding: 40px 5vw 0; }

@media (min-width: 768px) {
  .playbook-section { padding: 50px 8vw 0; }
}

.section-header-playbook {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 32px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--border);
}

.section-num {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.5;
  padding-top: 4px;
}

.section-kicker {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.section-meta h2 {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.15;
}

/* ---- PROSE ---- */
.lead {
  font-size: 1.05rem;
  color: var(--text-dim);
  border-left: 2px solid var(--accent);
  padding-left: 18px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.prose p {
  font-size: 0.95rem;
  color: var(--text-dim);
  margin-bottom: 16px;
  line-height: 1.75;
}

h3.sub {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 36px 0 14px;
}

/* ---- CARDS ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin: 16px 0 28px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 18px;
  transition: border-color 0.2s ease;
}

.card:hover { border-color: var(--accent); }

.card h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.card p { font-size: 0.83rem; color: var(--text-dim); line-height: 1.55; }

/* ---- LISTS ---- */
.signal-list { list-style: none; margin: 14px 0 26px; }

.signal-list li {
  font-size: 0.9rem;
  color: var(--text-dim);
  padding: 10px 0 10px 24px;
  border-bottom: 1px solid var(--border);
  position: relative;
  line-height: 1.6;
}

.signal-list li::before { content: '→'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

.signal-list li strong { color: var(--text); }

.checklist { list-style: none; margin: 14px 0 26px; }

.checklist li {
  font-size: 0.9rem;
  color: var(--text-dim);
  padding: 10px 0 10px 28px;
  border-bottom: 1px solid var(--border);
  position: relative;
  line-height: 1.55;
}

.checklist li::before { content: '□'; position: absolute; left: 0; color: var(--accent); font-size: 1rem; top: 9px; }

.checklist.done li::before { content: '✓'; }

/* ---- TWO COL ---- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin: 16px 0 28px; }
@media (max-width: 640px) { .two-col { grid-template-columns: 1fr; } }

/* ---- PLAYBOOK TIMELINE ---- */
.playbook-timeline { position: relative; margin: 20px 0 32px; padding-left: 28px; }

.playbook-timeline::before { content: ''; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: var(--border); }

.tl-item { position: relative; margin-bottom: 16px; }

.tl-item::before {
  content: ''; position: absolute; left: -25px; top: 20px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--bg); box-shadow: 0 0 0 1px var(--accent);
}

.tl-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 18px 20px; transition: border-color 0.2s ease;
}

.tl-card:hover { border-color: var(--accent); }

.tl-days { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }

.tl-card h4 { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 8px; }

.tl-card p { font-size: 0.85rem; color: var(--text-dim); line-height: 1.65; }

/* ---- KPI TABLE ---- */
.kpi-table { width: 100%; border-collapse: collapse; margin: 16px 0 28px; font-size: 0.85rem; }

.kpi-table th {
  text-align: left; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); padding: 10px 14px;
  border-bottom: 1px solid var(--border); background: var(--bg2);
}

.kpi-table td { padding: 11px 14px; border-bottom: 1px solid var(--border); color: var(--text-dim); vertical-align: top; line-height: 1.5; }

.kpi-table tr:hover td { background: var(--surface); }

.kpi-cluster { font-weight: 600; color: var(--text); font-size: 0.82rem; white-space: nowrap; }

/* ---- COMP GRID ---- */
.comp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 16px 0 28px; }

.comp-cell { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 18px 16px; }

.comp-label { display: block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }

.comp-value { font-family: 'Roboto Condensed', sans-serif; font-size: 1.2rem; font-weight: 700; color: var(--accent); }

.comp-note { font-size: 0.75rem; color: var(--text-muted); margin-top: 5px; line-height: 1.45; }

/* ---- CALLOUT ---- */
.callout {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0; padding: 18px 22px; margin: 22px 0 28px;
}

.callout p { font-size: 0.9rem; color: var(--text-dim); line-height: 1.65; }

.callout strong { color: var(--text); }

/* ---- FLAG GRID ---- */
.flag-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 28px; }
@media (max-width: 600px) { .flag-grid { grid-template-columns: 1fr; } }

.flag-box { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }

.flag-head { padding: 10px 16px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }

.flag-head.red { background: rgba(220,50,50,0.15); color: #f87171; border-bottom: 1px solid rgba(220,50,50,0.25); }

.flag-head.green { background: rgba(34,197,94,0.12); color: #4ade80; border-bottom: 1px solid rgba(34,197,94,0.2); }

.flag-box ul { list-style: none; padding: 12px 16px; }

.flag-box ul li { font-size: 0.83rem; color: var(--text-dim); padding: 6px 0; border-bottom: 1px solid var(--border); line-height: 1.5; }

.flag-box ul li:last-child { border-bottom: none; }

/* ---- MISC ---- */
.divider { height: 1px; background: var(--border); margin: 40px 5vw 0; }

@media (min-width: 768px) {
  .divider { margin: 50px 8vw 0; }
}

.back-top {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--border);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); text-decoration: none; transition: color 0.2s ease;
}

.back-top:hover { color: var(--accent); }

.page-footer { margin-top: 50px; padding: 32px 5vw; border-top: 1px solid var(--border); font-size: 0.8rem; color: var(--text-muted); }

@media (min-width: 768px) {
  .page-footer { padding: 40px 8vw; }
}

@media (max-width: 600px) {
  .section-header-playbook { flex-direction: column; gap: 4px; }
  .section-num { font-size: 2rem; }
}
