/* ============================================================
   Sean Finnegan portfolio — high-contrast monochrome
   Color palette: white / near-black / grays only
   Typography: system font stack
   ============================================================ */

/* ============ Reset / base ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: #0a0a0a;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
.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;
}

/* ============ Container ============ */
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; width: 100%; }
.container.narrow { max-width: 760px; }

/* ============ Typography ============ */
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; color: #0a0a0a; }
.lead { font-size: 21px; line-height: 1.55; color: #262626; max-width: 65ch; }
strong { font-weight: 700; color: #0a0a0a; }
em { font-style: italic; }

/* ============ Section labels & headers ============ */
.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #525252;
  margin-bottom: 24px;
}
.section-title {
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  max-width: 18ch;
}
.section-sub {
  font-size: 19px;
  line-height: 1.55;
  color: #525252;
  margin-bottom: 56px;
  max-width: 60ch;
}

/* ============ Sections ============ */
.section { padding: 112px 0; border-top: 1px solid #e5e5e5; }
.section-alt { background: #fafafa; }
.section-dark { background: #0a0a0a; color: #fafafa; border-top: 1px solid #0a0a0a; }
.section-dark h2, .section-dark h3, .section-dark strong { color: #ffffff; }
.section-label-light { color: #a3a3a3; }
.section-title-light { color: #ffffff; }
.section-sub-light { color: #d4d4d4; }

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5e5e5;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.logo {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.logo:hover { text-decoration: none; opacity: 0.7; }
.site-nav { display: flex; gap: 28px; }
.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: #525252;
  transition: color 0.15s ease;
}
.site-nav a:hover { color: #0a0a0a; text-decoration: none; }
@media (max-width: 720px) {
  .site-nav { display: none; }
}

/* ============ Hero ============ */
.hero {
  padding: 96px 0 128px;
  border-bottom: 1px solid #e5e5e5;
}
.hero-meta {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #525252;
  margin-bottom: 32px;
}
.hero-title {
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
  max-width: 14ch;
}
.hero-sub {
  font-size: 21px;
  line-height: 1.5;
  color: #404040;
  max-width: 60ch;
  margin-bottom: 40px;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.hero-hint {
  font-size: 14px;
  color: #737373;
  max-width: 50ch;
}
.hero-hint a {
  color: #0a0a0a;
  border-bottom: 1px solid #0a0a0a;
}
.hero-hint a:hover { text-decoration: none; opacity: 0.7; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border: 1.5px solid #0a0a0a;
  background: transparent;
  color: #0a0a0a;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.05s ease;
  user-select: none;
  text-decoration: none !important;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: #0a0a0a;
  color: #ffffff;
}
.btn-primary:hover { background: #262626; }
.btn-primary-inverse {
  background: #ffffff;
  color: #0a0a0a;
  border-color: #ffffff;
}
.btn-primary-inverse:hover { background: #f5f5f5; }
.btn-secondary:hover { background: #0a0a0a; color: #ffffff; }
.btn-text {
  border: none;
  padding: 10px 16px;
  text-decoration: underline;
  text-underline-offset: 4px;
  background: transparent;
}
.btn-text:hover { background: #f5f5f5; }
.link-button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}
.link-button:hover { opacity: 0.6; }

/* ============ Thesis ============ */
#thesis .lead {
  font-size: 23px;
  line-height: 1.5;
  margin-bottom: 64px;
}
.thesis-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-top: 48px;
  border-top: 1px solid #e5e5e5;
}
.stat-value {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 12px;
}
.stat-label {
  font-size: 14px;
  color: #525252;
  line-height: 1.4;
}
@media (max-width: 720px) {
  .thesis-stats { grid-template-columns: 1fr 1fr; gap: 24px; }
}

/* ============ AI Builds Grid ============ */
.builds-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.build-card {
  display: block;
  padding: 32px;
  border: 1.5px solid #e5e5e5;
  background: #ffffff;
  transition: border-color 0.15s ease, transform 0.15s ease;
  position: relative;
}
.build-card:hover {
  border-color: #0a0a0a;
  text-decoration: none;
  transform: translateY(-2px);
}
.build-status {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  margin-bottom: 20px;
  border: 1px solid #0a0a0a;
}
.build-status-live { background: #0a0a0a; color: #ffffff; }
.build-status-wip { background: transparent; color: #0a0a0a; border-style: dashed; }
.build-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  line-height: 1.2;
}
.build-desc {
  font-size: 15px;
  line-height: 1.55;
  color: #404040;
  margin-bottom: 20px;
}
.build-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  background: #f5f5f5;
  color: #404040;
  border-radius: 3px;
}
.build-cta {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.builds-future {
  padding-top: 32px;
  border-top: 1px solid #e5e5e5;
  font-size: 16px;
  color: #525252;
  line-height: 1.6;
}
.builds-future strong { color: #0a0a0a; }
@media (max-width: 900px) {
  .builds-grid { grid-template-columns: 1fr; }
}

/* ============ Experience / Stories ============ */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid #e5e5e5;
}
.story {
  border-bottom: 1px solid #e5e5e5;
  padding: 40px 0;
  cursor: pointer;
}
.story summary {
  list-style: none;
  cursor: pointer;
  outline: none;
}
.story summary::-webkit-details-marker { display: none; }
.story-head {
  margin-bottom: 20px;
}
.story-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  line-height: 1.25;
}
.story-meta {
  font-size: 14px;
  color: #525252;
  font-weight: 500;
}
.story-bullets {
  list-style: none;
  margin-bottom: 16px;
}
.story-bullets li {
  font-size: 16px;
  line-height: 1.55;
  color: #262626;
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
}
.story-bullets li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #525252;
  font-weight: 700;
}
.story-toggle {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #525252;
  letter-spacing: -0.005em;
  margin-top: 4px;
}
.story[open] .story-toggle { color: #0a0a0a; }
.story[open] .story-toggle::after { content: " (close)"; opacity: 0.6; }
.story-body {
  padding-top: 28px;
  padding-left: 0;
  border-top: 1px solid #e5e5e5;
  margin-top: 20px;
}
.story-body p {
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 16px;
  color: #262626;
  max-width: 65ch;
}
.story-body strong { color: #0a0a0a; }
.story-body em { color: #404040; }
.experience-footer {
  padding-top: 40px;
  font-size: 16px;
  color: #525252;
  line-height: 1.6;
}

/* ============ Skills Matrix ============ */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  border: 1.5px solid #0a0a0a;
}
.skill-col {
  padding: 32px;
  border-right: 1.5px solid #0a0a0a;
}
.skill-col:last-child { border-right: none; }
.skill-col-gaps {
  background: #fafafa;
}
.skill-col-header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #0a0a0a;
}
.skill-tier {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  line-height: 1;
}
.skill-tier-desc {
  font-size: 13px;
  color: #525252;
  font-style: italic;
}
.skill-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.skill-list li {
  font-size: 14px;
  line-height: 1.5;
  color: #262626;
  padding-left: 16px;
  position: relative;
}
.skill-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: #a3a3a3;
}
@media (max-width: 900px) {
  .skills-grid { grid-template-columns: 1fr; }
  .skill-col { border-right: none; border-bottom: 1.5px solid #0a0a0a; }
  .skill-col:last-child { border-bottom: none; }
}

/* ============ Fit Assessment ============ */
.fit-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.fit-input {
  width: 100%;
  padding: 20px;
  font-size: 15px;
  line-height: 1.55;
  background: #1f1f1f;
  color: #ffffff;
  border: 1.5px solid #404040;
  resize: vertical;
  min-height: 200px;
  font-family: inherit;
  transition: border-color 0.15s ease;
}
.fit-input:focus {
  outline: none;
  border-color: #ffffff;
}
.fit-input::placeholder { color: #737373; }
.fit-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.fit-hint {
  font-size: 13px;
  color: #a3a3a3;
}
.fit-result {
  margin-top: 32px;
  padding: 32px;
  background: #1f1f1f;
  border: 1.5px solid #404040;
  font-size: 16px;
  line-height: 1.65;
  color: #f5f5f5;
}
.fit-result.loading { color: #a3a3a3; font-style: italic; }
.fit-result strong { color: #ffffff; }

/* ============ AI POV ============ */
#pov .section-title {
  font-size: clamp(26px, 3.5vw, 38px);
  line-height: 1.2;
  max-width: 28ch;
  margin-bottom: 40px;
}
.pov-body p {
  font-size: 18px;
  line-height: 1.65;
  color: #262626;
  margin-bottom: 20px;
  max-width: 62ch;
}
.pov-cta { margin-top: 40px; }

/* ============ Studying ============ */
.studying-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
}
.study-item {
  padding: 24px;
  background: #ffffff;
  border: 1.5px solid #e5e5e5;
}
.study-status {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  background: #0a0a0a;
  color: #ffffff;
  margin-bottom: 12px;
}
.study-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  line-height: 1.3;
}
.study-provider {
  font-size: 14px;
  color: #525252;
}
@media (max-width: 720px) {
  .studying-grid { grid-template-columns: 1fr; }
}

/* ============ Resume ============ */
.resume-actions {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* ============ Contact ============ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
  margin-bottom: 64px;
}
.contact-link {
  display: block;
  padding: 24px;
  border: 1.5px solid #e5e5e5;
  background: #ffffff;
  transition: border-color 0.15s ease;
}
.contact-link:hover {
  border-color: #0a0a0a;
  text-decoration: none;
}
.contact-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #525252;
  margin-bottom: 8px;
}
.contact-value {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.calendly-wrap {
  margin-top: 32px;
  border: 1.5px solid #e5e5e5;
  background: #ffffff;
}
@media (max-width: 720px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ============ Footer ============ */
.site-footer {
  background: #0a0a0a;
  color: #a3a3a3;
  padding: 64px 0 32px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.footer-name {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.footer-tag { font-size: 13px; color: #737373; }
.footer-right {
  display: flex;
  gap: 24px;
}
.footer-right a { color: #d4d4d4; font-size: 14px; }
.footer-right a:hover { color: #ffffff; }
.footer-disclosure {
  border-top: 1px solid #262626;
  padding-top: 24px;
  font-size: 12px;
  color: #737373;
  line-height: 1.6;
  max-width: 70ch;
}

/* ============ Chatbot FAB & Panel ============ */
.chatbot-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px 14px 16px;
  background: #0a0a0a;
  color: #ffffff;
  border: 1.5px solid #0a0a0a;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  transition: transform 0.15s ease, background 0.15s ease;
}
.chatbot-fab:hover {
  background: #262626;
  transform: translateY(-2px);
}
.chatbot-fab-icon { font-size: 20px; line-height: 1; }
@media (max-width: 600px) {
  .chatbot-fab-label { display: none; }
  .chatbot-fab { padding: 14px; border-radius: 50%; }
}

.chatbot-panel {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 440px;
  max-width: calc(100vw - 48px);
  height: 640px;
  max-height: calc(100vh - 48px);
  z-index: 200;
  background: #ffffff;
  border: 1.5px solid #0a0a0a;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 48px rgba(0,0,0,0.2);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.chatbot-panel.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.chatbot-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid #e5e5e5;
  background: #fafafa;
}
.chatbot-title strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.chatbot-subtitle {
  display: block;
  font-size: 12px;
  color: #525252;
  margin-top: 2px;
}
.chatbot-close {
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #525252;
  padding: 0;
  margin: -4px -4px 0 12px;
}
.chatbot-close:hover { color: #0a0a0a; }
.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.chatbot-msg {
  font-size: 14px;
  line-height: 1.55;
  padding: 12px 16px;
  max-width: 85%;
  white-space: pre-wrap;
}
.chatbot-msg-user {
  background: #0a0a0a;
  color: #ffffff;
  align-self: flex-end;
}
.chatbot-msg-bot {
  background: #f5f5f5;
  color: #0a0a0a;
  align-self: flex-start;
}
.chatbot-msg-bot a { text-decoration: underline; text-underline-offset: 2px; }
.chatbot-msg-thinking {
  background: transparent;
  color: #737373;
  font-style: italic;
  padding: 4px 16px;
}
.chatbot-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #e5e5e5;
  align-items: flex-end;
}
.chatbot-input {
  flex: 1;
  padding: 10px 12px;
  border: 1.5px solid #e5e5e5;
  font-size: 14px;
  line-height: 1.4;
  resize: none;
  font-family: inherit;
  min-height: 42px;
  max-height: 120px;
}
.chatbot-input:focus {
  outline: none;
  border-color: #0a0a0a;
}
.chatbot-send {
  padding: 10px 18px;
  background: #0a0a0a;
  color: #ffffff;
  border: 1.5px solid #0a0a0a;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  align-self: stretch;
}
.chatbot-send:hover { background: #262626; }
.chatbot-send:disabled { background: #a3a3a3; border-color: #a3a3a3; cursor: not-allowed; }
.chatbot-suggestions {
  display: flex;
  gap: 6px;
  padding: 0 12px 12px;
  flex-wrap: wrap;
  border-top: 1px solid #f5f5f5;
  padding-top: 12px;
}
.suggestion-pill {
  font-size: 12px;
  font-weight: 500;
  padding: 5px 10px;
  background: #f5f5f5;
  color: #404040;
  border: 1px solid #e5e5e5;
  cursor: pointer;
  transition: background 0.15s ease;
}
.suggestion-pill:hover {
  background: #0a0a0a;
  color: #ffffff;
  border-color: #0a0a0a;
}
@media (max-width: 600px) {
  .chatbot-panel {
    bottom: 0;
    right: 0;
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border: none;
  }
}

/* ============ Modal (soft capture) ============ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}
.modal.open {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.2s ease;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(4px);
}
.modal-body {
  position: relative;
  background: #ffffff;
  border: 1.5px solid #0a0a0a;
  padding: 40px;
  width: 100%;
  max-width: 480px;
  margin: 24px;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  color: #525252;
}
.modal-close:hover { color: #0a0a0a; }
.modal-body h3 {
  font-size: 24px;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.modal-sub {
  font-size: 14px;
  color: #525252;
  margin-bottom: 24px;
  line-height: 1.5;
}
.modal-body input, .modal-body textarea {
  width: 100%;
  padding: 12px;
  border: 1.5px solid #e5e5e5;
  font-size: 14px;
  margin-bottom: 12px;
  font-family: inherit;
}
.modal-body input:focus, .modal-body textarea:focus {
  outline: none;
  border-color: #0a0a0a;
}
.modal-body textarea { resize: vertical; min-height: 80px; }
.modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* ============ Responsive ============ */
@media (max-width: 720px) {
  .section { padding: 80px 0; }
  .hero { padding: 64px 0 96px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .hero .btn { width: auto; }
}
