:root { --ink: #19352d; --ink-soft: #4e665d; --navy: #183f35; --navy-light: #24584a; --cream: #f5f1e8; --paper: #fffdf8; --white: #ffffff; --coral: #ee8b72; --coral-dark: #c9634f; --mint: #a8d5bd; --yellow: #e9c76c; --line: rgba(25, 53, 45, 0.14); --shadow: 0 24px 70px rgba(25, 53, 45, 0.12); --shadow-small: 0 12px 32px rgba(25, 53, 45, 0.09); --radius-large: 32px; --radius-medium: 22px; --radius-small: 14px; --content-width: 1180px; --section-space: clamp(2.75rem, 4vw, 4.5rem); }

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 10% 4%, rgba(238, 139, 114, 0.12), transparent 28rem), radial-gradient(circle at 90% 22%, rgba(168, 213, 189, 0.18), transparent 31rem), var(--cream); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 17px; line-height: 1.7; }
main { overflow: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, a { font: inherit; }
p { margin: 0 0 1rem; }
h1, h2, h3, h4 { margin-top: 0; color: var(--ink); font-weight: 850; text-wrap: balance; }
::selection { background: var(--yellow); color: var(--navy); }
.content-block { width: min(var(--content-width), calc(100% - 3rem)); margin-inline: auto; }
.skip-link { position: fixed; top: 1rem; left: 1rem; z-index: 1000; padding: 0.7rem 1rem; border-radius: 999px; background: var(--paper); font-weight: 850; text-decoration: none; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.eyebrow, .project-kicker, .system-label { margin: 0 0 0.85rem; color: var(--coral-dark); font-size: 0.78rem; font-weight: 900; letter-spacing: 0.15em; line-height: 1.4; text-transform: uppercase; }

/* Buttons and text links */
.hero-actions, .project-actions, .contact-links { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; margin-top: 2rem; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 0.82rem 1.3rem; border: 2px solid transparent; border-radius: 999px; font-weight: 850; line-height: 1; text-decoration: none; transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease; }
.button:hover { transform: translateY(-3px); }
.button-primary { background: var(--coral); color: var(--navy); box-shadow: 0 10px 24px rgba(201, 99, 79, 0.2); }
.button-primary:hover { background: #f39a83; box-shadow: 0 14px 28px rgba(201, 99, 79, 0.26); }
.button-secondary { border-color: var(--line); background: rgba(255, 253, 248, 0.75); }
.button-secondary:hover { background: var(--paper); box-shadow: var(--shadow-small); }
.button-light { border-color: rgba(255, 255, 255, 0.35); color: var(--white); }
.text-link { display: inline-flex; gap: 0.5rem; align-items: center; color: var(--navy); font-weight: 850; text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* Homepage hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr); gap: clamp(3rem, 7vw, 7rem); align-items: center; padding-block: clamp(3.5rem, 7vw, 6rem); }
.hero-copy { max-width: 740px; }
.hero h1 { max-width: 850px; margin: 0; font-size: clamp(3.2rem, 7vw, 6.5rem); letter-spacing: -0.065em; line-height: 0.96; }
.hero h1 span { display: block; color: var(--coral-dark); }
.hero-intro { max-width: 690px; margin-top: 1.8rem; color: var(--ink-soft); font-size: clamp(1.18rem, 2vw, 1.45rem); line-height: 1.58; }
.hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; padding: 0; margin: 2.6rem 0 0; list-style: none; }
.hero-facts li { padding-top: 1rem; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 0.86rem; line-height: 1.5; }
.hero-facts strong { display: block; color: var(--ink); font-size: 0.94rem; }
.hero-visual, .docbot-hero-visual { position: relative; }
.hero-visual::before, .docbot-hero-visual::before { position: absolute; inset: 8% -8% -8% 8%; z-index: -1; border-radius: var(--radius-large); background: var(--mint); content: ""; transform: rotate(4deg); }
.system-window, .docbot-window { overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--radius-large); background: linear-gradient(145deg, var(--navy-light), var(--navy)); box-shadow: var(--shadow); color: var(--white); }
.system-window { padding: 1.25rem; }
.window-toolbar { display: flex; gap: 0.45rem; padding-bottom: 1.1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.window-toolbar span, .window-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.35); }
.window-toolbar span:nth-child(1), .window-dots span:nth-child(1) { background: var(--coral); }
.window-toolbar span:nth-child(2), .window-dots span:nth-child(2) { background: var(--yellow); }
.window-toolbar span:nth-child(3), .window-dots span:nth-child(3) { background: var(--mint); }
.robot-mark { display: grid; width: 84px; height: 84px; place-items: center; margin: 1.8rem 0 1rem; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 24px; background: rgba(255, 255, 255, 0.08); font-size: 3rem; transform: rotate(-4deg); }
.system-label { color: var(--mint); }
.flow-list { display: grid; gap: 0.7rem; margin-top: 1.4rem; }
.flow-item { display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding: 1rem; border: 1px solid rgba(255, 255, 255, 0.11); border-radius: var(--radius-small); background: rgba(255, 255, 255, 0.055); }
.flow-number { color: var(--coral); font-size: 0.78rem; font-weight: 900; }
.flow-item strong { display: block; }
.flow-item p { margin: 0.1rem 0 0; color: rgba(255, 255, 255, 0.68); font-size: 0.82rem; }
.system-status { display: flex; gap: 0.6rem; align-items: center; margin-top: 1.2rem; color: rgba(255, 255, 255, 0.74); font-size: 0.82rem; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px rgba(168, 213, 189, 0.12); }

/* Homepage sections */
.section { padding-block: var(--section-space); }
.section-heading { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(300px, 0.7fr); gap: 3rem; align-items: end; margin-bottom: 2.4rem; }
.section-heading-narrow { align-items: start; }
.section-heading h2, .experience-card h2, .contact-section h2 { margin: 0; font-size: clamp(2.5rem, 5vw, 4.6rem); letter-spacing: -0.05em; line-height: 1.02; }
.section-heading > p, .section-heading div + p { margin: 0; color: var(--ink-soft); }
.featured-project { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-large); background: var(--paper); box-shadow: var(--shadow-small); }
.project-copy, .project-panel { padding: clamp(2rem, 5vw, 4.2rem); }
.project-copy h3 { margin-bottom: 1.4rem; font-size: clamp(2.1rem, 4vw, 3.7rem); letter-spacing: -0.045em; line-height: 1.05; }
.project-copy p { color: var(--ink-soft); }
.tag-list, .technology-cloud { display: flex; flex-wrap: wrap; gap: 0.58rem; margin-top: 1.8rem; }
.tag-list span, .technology-cloud span { padding: 0.46rem 0.74rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink-soft); font-size: 0.78rem; font-weight: 780; }
.project-panel { display: flex; flex-direction: column; justify-content: center; background: var(--navy); color: var(--white); }
.code-heading { display: flex; justify-content: space-between; margin-bottom: 0.7rem; color: rgba(255, 255, 255, 0.6); font-family: monospace; font-size: 0.76rem; }
.code-success { color: var(--mint); }
.project-panel pre { overflow-x: auto; margin: 0; padding: 1.3rem; border-radius: var(--radius-small); background: rgba(0, 0, 0, 0.17); color: #f7e9c9; font-size: 0.82rem; }
.pull-request-card { display: grid; grid-template-columns: auto 1fr; gap: 0.9rem; align-items: center; margin-top: 1rem; padding: 1rem; border-radius: var(--radius-small); background: var(--mint); }
.pr-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: var(--navy); color: var(--white); }
.pull-request-card p { margin: 0; font-size: 0.78rem; }
.strength-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.strength-card { min-height: 360px; padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius-medium); background: rgba(255, 253, 248, 0.72); }
.card-number { display: inline-block; margin-bottom: 3rem; color: var(--coral-dark); font-size: 0.78rem; font-weight: 900; }
.strength-card h3 { margin-bottom: 1rem; font-size: 2rem; }
.strength-card p, .strength-card ul { color: var(--ink-soft); }
.experience-card, .contact-section { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.75fr); gap: clamp(2rem, 7vw, 6rem); padding: clamp(2.4rem, 6vw, 5rem); border-radius: var(--radius-large); }
.experience-card { background: var(--yellow); }
.experience-copy, .contact-copy { align-self: end; }
.contact-section { margin-block: var(--section-space); background: var(--navy); color: var(--white); }
.contact-section h2 { color: var(--white); }
.contact-section .eyebrow { color: var(--mint); }
.contact-copy p { color: rgba(255, 255, 255, 0.72); }

/* DocBot hero */
.docbot-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr); gap: clamp(3rem, 7vw, 7rem); align-items: center; padding-block: clamp(3rem, 6vw, 5rem); }
.docbot-hero-copy h1 { margin: 0; font-size: clamp(3.3rem, 7vw, 6.6rem); letter-spacing: -0.07em; line-height: 0.94; }
.docbot-hero-copy h1 span { display: block; color: var(--coral-dark); }
.docbot-hero-intro { margin-top: 1.7rem; color: var(--ink); font-size: clamp(1.2rem, 2vw, 1.48rem); }
.docbot-hero-supporting { color: var(--ink-soft); }
.project-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2.3rem; }
.project-meta div { padding-top: 1rem; border-top: 1px solid var(--line); }
.project-meta dt { color: var(--coral-dark); font-size: 0.75rem; font-weight: 900; text-transform: uppercase; }
.project-meta dd { margin: 0.35rem 0 0; color: var(--ink-soft); font-size: 0.86rem; }
.docbot-window-bar { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; padding: 1rem 1.2rem; border-bottom: 1px solid rgba(255, 255, 255, 0.11); color: rgba(255, 255, 255, 0.7); font-size: 0.78rem; }
.window-dots { display: flex; gap: 0.4rem; }
.window-state { justify-self: end; color: var(--mint); }
.docbot-window-content { padding: 1.7rem; }
.docbot-identity { display: flex; gap: 1rem; align-items: center; }
.docbot-avatar { display: grid; width: 68px; height: 68px; flex: 0 0 auto; place-items: center; border-radius: 21px; background: rgba(255, 255, 255, 0.08); font-size: 2.4rem; }
.docbot-label { display: block; color: var(--mint); font-size: 0.72rem; font-weight: 900; text-transform: uppercase; }
.agent-task-list { display: grid; gap: 0.7rem; margin-top: 1.6rem; }
.agent-task { display: grid; grid-template-columns: auto 1fr; gap: 0.9rem; padding: 1rem; border-radius: var(--radius-small); background: rgba(255, 255, 255, 0.055); }
.agent-task.active { background: rgba(238, 139, 114, 0.12); }
.task-state { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 50%; background: rgba(168, 213, 189, 0.16); color: var(--mint); }
.agent-task.active .task-state { background: var(--coral); color: var(--navy); }
.agent-task p { margin: 0.1rem 0 0; color: rgba(255, 255, 255, 0.64); font-size: 0.8rem; }
.decision-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; margin-top: 1rem; }
.decision-preview div { padding: 0.85rem; border-radius: 12px; background: rgba(0, 0, 0, 0.15); }
.decision-preview span { display: block; color: rgba(255, 255, 255, 0.58); font-size: 0.72rem; }
.decision-preview strong { color: var(--yellow); font-family: monospace; }
.demo-robot-link { display: block; width: min(500px, 96%); margin: -2.5rem -2rem 0 auto; text-decoration: none; transition: transform 180ms ease; }
.demo-robot-link:hover { transform: translateY(-6px) rotate(-1deg); }
.demo-robot-link img { width: 100%; filter: drop-shadow(0 18px 22px rgba(25, 53, 45, 0.18)); }

/* DocBot content */
.case-jump-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; padding-block: 0.9rem; border-block: 1px solid var(--line); }
.case-jump-nav a { padding: 0.48rem 0.78rem; border-radius: 999px; color: var(--ink-soft); font-size: 0.82rem; font-weight: 800; text-decoration: none; }
.project-snapshot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; padding-block: clamp(2rem, 4vw, 3.4rem); }
.project-snapshot article { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius-medium); background: rgba(255, 253, 248, 0.72); }
.snapshot-number { display: block; color: var(--coral-dark); font-size: clamp(2.9rem, 5vw, 4.7rem); font-weight: 900; line-height: 1; }
.project-snapshot p { margin-top: 1.6rem; color: var(--ink-soft); font-size: 0.88rem; }
.case-section { padding-block: var(--section-space); }
.case-section-heading { max-width: 940px; margin-bottom: 2.4rem; }
.case-section-heading-split { display: grid; max-width: none; grid-template-columns: minmax(0, 1fr) minmax(280px, 0.65fr); gap: 3rem; align-items: end; }
.case-section-heading h2, .challenge-copy h2, .production-heading h2, .reflection-panel h2, .project-next h2, .memory-panel h2 { margin: 0; font-size: clamp(2.55rem, 5vw, 4.7rem); letter-spacing: -0.055em; line-height: 1.02; }
.problem-layout, .challenge-panel, .review-grid, .memory-panel, .reflection-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr); gap: clamp(2rem, 7vw, 6rem); }
.case-copy p, .challenge-copy p, .review-card p, .reflection-panel p { color: var(--ink-soft); }
.case-lead { color: var(--ink) !important; font-size: clamp(1.28rem, 2.5vw, 1.75rem); }
.problem-card { padding: 2rem; border-radius: var(--radius-large); background: var(--yellow); }
.problem-card blockquote { margin: 1.6rem 0; font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 850; line-height: 1.25; }
.workflow-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.workflow-card { display: flex; min-height: 280px; flex-direction: column; padding: 1.7rem; border: 1px solid var(--line); border-radius: var(--radius-medium); background: rgba(255, 253, 248, 0.75); }
.workflow-card-accent { background: var(--mint); }
.workflow-number, .timeline-pr { color: var(--coral-dark); font-size: 0.76rem; font-weight: 900; text-transform: uppercase; }
.workflow-card h3 { margin: 2rem 0 0.8rem; font-size: 2rem; }
.workflow-card p { color: var(--ink-soft); font-size: 0.94rem; }
.workflow-detail { margin-top: auto; color: var(--ink); font-size: 0.78rem; font-weight: 850; }
.architecture-strip,
.production-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 0.7rem;
  align-items: center;
  padding: 1.3rem;
  border-radius: var(--radius-medium);
  background: var(--navy);
  color: var(--white);
}

.architecture-strip {
  margin-top: 1.25rem;
}

.production-flow {
  margin-top: 2rem;
}
.architecture-node, .production-step { padding: 1rem; border-radius: 13px; background: rgba(255, 255, 255, 0.055); }
.architecture-node-human { background: var(--coral); color: var(--navy); }
.architecture-node span, .production-step span { display: block; color: var(--mint); font-size: 0.7rem; font-weight: 900; text-transform: uppercase; }
.architecture-arrow, .production-arrow { color: var(--yellow); }
.challenge-panel, .memory-panel, .reflection-panel { padding: clamp(2rem, 6vw, 5rem); border-radius: var(--radius-large); }
.challenge-panel, .reflection-panel { background: var(--paper); box-shadow: var(--shadow-small); }
.decision-list { display: grid; gap: 0.7rem; padding: 0; list-style: none; }
.decision-list li { padding: 0.9rem 1rem; border-left: 4px solid var(--coral); background: var(--cream); }
.change-timeline article { padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--white); }
.change-timeline p { color: var(--ink-soft); font-size: 0.85rem; }
.timeline-result { padding: 0.65rem; border-radius: 9px; background: var(--cream); font-family: monospace; font-size: 0.74rem; }
.timeline-connector { display: block; width: 2px; height: 25px; margin-left: 2rem; background: var(--mint); }
.timeline-latest { background: var(--mint) !important; }
.timeline-latest .timeline-result { background: var(--navy); color: var(--white); }
.review-card { padding: 2.3rem; border: 1px solid var(--line); border-radius: var(--radius-large); background: var(--paper); }
.review-card-primary { background: var(--navy); color: var(--white); }
.review-card-primary h3 { color: var(--white); }
.review-card-primary p { color: rgba(255, 255, 255, 0.72); }
.review-card h3 { margin-top: 2rem; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.review-icon { display: grid; width: 58px; height: 58px; place-items: center; border-radius: 18px; background: var(--mint); font-size: 1.8rem; }
.robot-feedback { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.robot-feedback div { padding: 1rem; border-radius: 13px; background: var(--cream); }
.robot-feedback span, .robot-feedback strong, .robot-feedback small { display: block; }
.memory-panel { background: var(--yellow); }
.memory-copy, .reflection-panel > div:last-child { align-self: end; }
.production-section { margin-block: var(--section-space); padding-block: var(--section-space); background: var(--navy); color: var(--white); }
.production-heading h2 { color: var(--white); }
.production-heading .eyebrow { color: var(--mint); }
.production-heading p, .production-step p { color: rgba(255, 255, 255, 0.7); }
.production-flow { padding: 0; background: transparent; }
.production-principle { display: grid; grid-template-columns: auto 1fr; gap: 1rem; margin-top: 1.8rem; padding: 1.2rem; border-radius: var(--radius-small); background: var(--coral); color: var(--navy); }
.production-principle p { margin: 0; }
.project-next { display: flex; gap: 2rem; align-items: end; justify-content: space-between; padding-block: var(--section-space); border-top: 1px solid var(--line); }
.site-footer { display: flex; width: min(var(--content-width), calc(100% - 3rem)); justify-content: space-between; gap: 2rem; margin: 0 auto; padding: 1.5rem 0 3rem; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 0.8rem; }

/* Responsive */

@media (max-width: 950px) {
  .hero, .featured-project, .section-heading, .experience-card, .contact-section, .docbot-hero, .case-section-heading-split, .problem-layout, .challenge-panel, .review-grid, .memory-panel, .reflection-panel { grid-template-columns: 1fr; }
  .strength-grid { grid-template-columns: 1fr; }
  .workflow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .architecture-strip, .production-flow { grid-template-columns: 1fr; }
  .architecture-arrow, .production-arrow { justify-self: center; transform: rotate(90deg); }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .content-block, .site-footer { width: min(100% - 1.5rem, var(--content-width)); }
  .hero, .docbot-hero { padding-block: 3rem; }
  .hero h1, .docbot-hero-copy h1 { font-size: clamp(2.9rem, 14vw, 4.5rem); }
  .hero-facts, .project-meta, .project-snapshot, .workflow-grid, .review-grid, .robot-feedback { grid-template-columns: 1fr; }
  .hero-actions, .project-actions, .contact-links { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .project-copy, .project-panel, .experience-card, .contact-section, .challenge-panel, .review-card, .memory-panel, .reflection-panel { padding: 1.5rem; }
.section,
.project-next {
  padding-block: 3.3rem;
}

.case-section {
  margin-block: 3.3rem;
}
  .demo-robot-link { width: 100%; margin: -1.2rem auto 0; }
  .case-jump-nav { flex-wrap: nowrap; overflow-x: auto; }
  .project-next { align-items: flex-start; flex-direction: column; }
  .site-footer { flex-direction: column; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
