/*
  Personal Bio Template
  OdleWorks Web Solutions
  License: See LICENSE.txt

  CSS is organized by: base, layout, components, sections, utilities, responsive, print.
*/

:root {
  --bg: #f6f7f8;
  --surface: #ffffff;
  --surface-soft: #eef1f3;
  --text: #111827;
  --muted: #667085;
  --border: #d9dee5;
  --primary: #111827;
  --primary-soft: #273244;
  --accent: #516173;
  --accent-soft: #e8edf2;
  --gold: #b98f45;
  --shadow: 0 18px 50px rgba(17, 24, 39, 0.08);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(81, 97, 115, 0.12), transparent 34rem),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img,
svg { max-width: 100%; }

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

button,
a { -webkit-tap-highlight-color: transparent; }

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(81, 97, 115, 0.45);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 20;
  transform: translateY(-150%);
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 999px;
}

.skip-link:focus { transform: translateY(0); }

.preview-banner {
  background: #111827;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.preview-banner-inner {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.65rem 0;
}

.preview-banner-text {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.92);
}

.preview-banner-text strong {
  color: #fff;
  font-weight: 800;
}

.preview-banner-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.preview-banner-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  font-size: 0.85rem;
  font-weight: 700;
}

.preview-banner-link-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mobile-header {
  display: none;
}

.site-shell {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.25rem;
}

.profile-rail {
  position: sticky;
  top: 2rem;
  align-self: start;
  height: calc(100vh - 4rem);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1rem;
}

.profile-card,
.site-nav,
.section-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(222, 217, 207, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.profile-card {
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.avatar {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 1.25rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.profile-card h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.role {
  margin: 0.8rem 0 1rem;
  color: var(--muted);
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #3f5141;
  font-size: 0.85rem;
  font-weight: 700;
}

.availability span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(81, 97, 115, 0.15);
}

.rail-actions,
.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.78rem 1rem;
  cursor: pointer;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover { transform: translateY(-2px); }

.button.primary {
  background: var(--primary);
  color: #fff;
}

.button.secondary,
.button.ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--border);
}

.site-nav {
  border-radius: var(--radius-md);
  padding: 0.6rem;
  display: grid;
  align-content: start;
  gap: 0.25rem;
}

.site-nav a {
  padding: 0.85rem 0.9rem;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 800;
  transition: color 160ms ease, background 160ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--primary);
  background: var(--surface-soft);
}

.rail-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 0 0.75rem;
}

.content-stack {
  display: grid;
  gap: 1.25rem;
}

.section-card {
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 4vw, 2.4rem);
}

.hero-section {
  min-height: calc(100vh - 4rem);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.25rem;
  align-items: end;
  background:
    linear-gradient(135deg, rgba(17, 19, 24, 0.03), rgba(81, 97, 115, 0.10)),
    var(--surface);
}

.hero-copy h2,
.section-heading h2,
.contact-card h2 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: 0.92;
  letter-spacing: -0.065em;
}

.lead {
  max-width: 680px;
  margin: 1.25rem 0 1.5rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.dossier-card {
  border-radius: 28px;
  background: var(--primary);
  color: #fff;
  padding: 1rem;
}

.dossier-row {
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.dossier-row:last-child { border-bottom: 0; }

.dossier-row span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dossier-row strong { font-size: 1rem; }

.section-heading {
  margin-bottom: 1.25rem;
}

.section-heading h2,
.contact-card h2 {
  font-size: clamp(1.9rem, 3.4vw, 3.15rem);
}

.split-heading {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: start;
}

.link-grid,
.work-grid,
.skills-grid,
.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

.link-grid { grid-template-columns: repeat(4, 1fr); }

.link-tile,
.work-card,
.skills-grid > div,
.quote-card,
.mini-stats > div {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(247, 245, 239, 0.76);
}

.link-tile {
  min-height: 145px;
  display: grid;
  align-content: space-between;
  padding: 1rem;
  text-align: left;
  cursor: pointer;
  color: var(--text);
  transition: transform 160ms ease, background 160ms ease;
}

.link-tile:hover {
  transform: translateY(-3px);
  background: var(--accent-soft);
}

.link-tile span,
.work-type,
.timeline-date {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.link-tile strong { line-height: 1.25; }

.copy-tile {
  appearance: none;
  border-color: var(--border);
}

.tab-controls {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.35rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-soft);
}

.tab-button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 0.65rem 0.85rem;
  cursor: pointer;
  font-weight: 800;
}

.tab-button.active {
  background: var(--surface);
  color: var(--text);
}

.tab-panel {
  display: grid;
  gap: 0.9rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.timeline-item:last-child { border-bottom: 0; }
.timeline-item h3,
.work-card h3,
.skills-grid h3 { margin: 0 0 0.35rem; }
.timeline-item p,
.work-card p,
.skills-grid p,
.contact-card p { margin: 0; color: var(--muted); }

.skills-grid > div,
.work-card {
  padding: 1rem;
}

.work-card {
  min-height: 230px;
  display: grid;
  align-content: end;
}

.work-card.featured {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.work-card.featured p { color: rgba(255, 255, 255, 0.72); }
.work-card.featured .work-type { color: var(--gold); }

.quote-card {
  padding: clamp(1.25rem, 4vw, 2rem);
}

.quote-card blockquote {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 2.4vw, 2.15rem);
  line-height: 1.16;
  letter-spacing: -0.04em;
}

.quote-card p { margin: 0; color: var(--muted); font-weight: 800; }

.mini-stats {
  margin-top: 0.9rem;
}

.mini-stats > div {
  padding: 1rem;
}

.mini-stats strong {
  display: block;
  font-size: 1.8rem;
  line-height: 1;
}

.mini-stats span { color: var(--muted); }

.contact-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.25rem;
  align-items: end;
  background: var(--primary);
  color: #fff;
}

.contact-card .eyebrow { color: var(--gold); }
.contact-card p { color: rgba(255, 255, 255, 0.7); margin-top: 1rem; }
.contact-card .button.primary { background: #fff; color: var(--primary); }
.contact-card .button.secondary { color: #fff; border-color: rgba(255, 255, 255, 0.22); }

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  padding: 0.8rem 1rem;
  font-weight: 800;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease, transform 500ms ease;
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}

@media (max-width: 980px) {
  .preview-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .preview-banner-actions {
    width: 100%;
  }

  .mobile-header {
    position: sticky;
    top: 0;
    z-index: 12;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: rgba(247, 245, 239, 0.88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
  }

  .mobile-brand { font-weight: 900; }

  .nav-toggle {
    width: 44px;
    height: 44px;
    display: grid;
    place-content: center;
    gap: 0.26rem;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface);
    cursor: pointer;
  }

  .nav-toggle span:not(.sr-only) {
    width: 17px;
    height: 2px;
    background: var(--primary);
    border-radius: 999px;
  }

  .site-shell {
    grid-template-columns: 1fr;
    padding-top: 1rem;
  }

  .profile-rail {
    position: static;
    height: auto;
    grid-template-rows: auto;
  }

  .profile-card { display: none; }

  .site-nav {
    position: fixed;
    top: 68px;
    left: 1rem;
    right: 1rem;
    z-index: 11;
    display: none;
  }

  .site-nav.open { display: grid; }
  .rail-note { display: none; }

  .hero-section {
    min-height: auto;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-shell { width: min(100% - 1rem, var(--max-width)); }
  .section-card { border-radius: 24px; }
  .split-heading,
  .contact-card {
    grid-template-columns: 1fr;
    display: grid;
  }
  .link-grid,
  .work-grid,
  .skills-grid,
  .mini-stats { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 1fr; gap: 0.25rem; }
}

@media print {
  body { background: #fff; color: #000; }
  .mobile-header,
  .site-nav,
  .rail-actions,
  .hero-actions,
  .contact-actions,
  .toast { display: none !important; }
  .site-shell { display: block; width: 100%; padding: 0; }
  .profile-rail { position: static; height: auto; }
  .profile-card,
  .section-card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; margin-bottom: 1rem; }
  .profile-card { display: block; }
}

/* Interactive selected work modal */
.work-card {
  gap: 1.25rem;
  justify-items: start;
}

.text-link {
  appearance: none;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--accent);
  padding: 0 0 0.15rem;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.text-link:hover { color: var(--text); }
.text-link.light { color: var(--gold); }
.text-link.light:hover { color: #fff; }

.work-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 1rem;
}

.work-modal.open { display: grid; }

.work-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 19, 25, 0.62);
  backdrop-filter: blur(10px);
}

.work-modal__panel {
  position: relative;
  width: min(760px, 100%);
  max-height: min(86vh, 720px);
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 28px 90px rgba(13, 19, 25, 0.32);
  padding: clamp(1.25rem, 4vw, 2rem);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.modal-kicker {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.work-modal h2 {
  max-width: 13ch;
  margin: 0.35rem 3rem 0.75rem 0;
  font-size: clamp(2rem, 6vw, 4.5rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
}

.work-modal p {
  max-width: 62ch;
  color: var(--muted);
}

.modal-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.modal-meta div {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  padding: 0.9rem;
}

.modal-meta span {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.modal-meta strong { font-size: 0.98rem; }

.modal-list {
  border-top: 1px solid var(--border);
  padding-top: 1.15rem;
}

.modal-list h3 { margin-top: 0; }
.modal-list ul { margin: 0; padding-left: 1.15rem; color: var(--muted); }
.modal-list li + li { margin-top: 0.45rem; }

body.modal-active { overflow: hidden; }

@media (max-width: 720px) {
  .modal-meta { grid-template-columns: 1fr; }
  .work-modal__panel { max-height: 88vh; }
}

/* Experience / Skills toggle refinements: keeps the original layout intact while making each tab useful. */
.tab-panel[hidden] {
  display: none !important;
}

.skills-intro {
  max-width: 680px;
  margin-bottom: 1rem;
  color: var(--muted);
}

.skill-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.skill-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}
