/* Homepage: a compact editorial portfolio with working products at its centre. */
.home-page { --ink: #153e35; --deep-ink: #102d27; --cream: #f4f1e7; --paper: #fffcf4; --accent: #4e672b; --pale: #e4ebcd; --rule: rgba(21,62,53,.23); background: var(--cream); color: var(--ink); }
.home-page * { min-width: 0; }
.home-page :is(h1,h2,h3,p,figure) { margin: 0; }
.home-page :is(section, main)[id] { scroll-margin-top: 0; }
.home-page img { display: block; max-width: 100%; height: auto; }
.home-page .content-width { width: min(1240px, calc(100% - 2 * var(--page-x))); margin-inline: auto; }
.home-page .skip-link { position: fixed; left: 1rem; top: 1rem; z-index: 100; background: var(--ink); color: var(--paper); padding: .8rem 1.2rem; transform: translateY(-180%); }
.home-page .skip-link:focus { transform: translateY(0); }
.home-page .site-header { background: rgba(244,241,231,.97); border-bottom: 1px solid var(--rule); }
.home-page .site-nav { font-size: .72rem; }
.home-page .site-nav a { opacity: 1; }
.home-page .portfolio-hero { padding-top: 122px; padding-bottom: 38px; }
.home-page .hero-topline { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 32px; }
.home-page .eyeline { font-family: var(--mono); font-size: .68rem; font-weight: 400; letter-spacing: .065em; line-height: 1.65; text-transform: uppercase; }
.home-page .hero-topline .eyeline { display: flex; align-items: center; gap: .55rem; }
.home-page .status-dot { display: inline-block; width: .42rem; height: .42rem; border-radius: 50%; background: var(--accent); }
.home-page .award-link { display: inline-flex; align-items: center; gap: .55rem; border: 1px solid var(--rule); border-radius: 999px; padding: .5rem .9rem; font-size: .7rem; font-weight: 600; background: var(--pale); }
.home-page .award-link:hover { border-color: var(--ink); }
.home-page .hero-layout { display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(2rem,5vw,5rem); align-items: end; }
.home-page h1 { font-family: var(--serif); font-size: clamp(3.7rem,7.3vw,6.6rem); font-weight: 400; letter-spacing: -.055em; line-height: .98; }
.home-page h1 em { color: var(--accent); font-weight: 400; }
.home-page .hero-summary { max-width: 29rem; padding-bottom: .1rem; }
.home-page .hero-statement { font-size: clamp(1.05rem,1.6vw,1.3rem); line-height: 1.5; font-weight: 600; }
.home-page .hero-summary > p + p { margin-top: 12px; font-size: .93rem; line-height: 1.75; }
.home-page .hero-summary .portfolio-button { margin-top: 24px; }
.home-page .portfolio-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 44px; padding: .75rem 1rem; background: var(--ink); border: 1px solid var(--ink); color: var(--paper); font-size: .75rem; font-weight: 600; line-height: 1.4; transition: background-color .15s; }
.home-page .portfolio-button:hover { background: var(--deep-ink); }
.home-page .portfolio-button:focus-visible { outline-color: var(--accent); }
.home-page .practice-list { display: flex; flex-wrap: wrap; gap: .75rem 1.75rem; list-style: none; margin: 34px 0 0; padding: 17px 0 0; border-top: 1px solid var(--rule); font-family: var(--mono); font-size: .66rem; letter-spacing: .045em; text-transform: uppercase; }
.home-page .practice-list li + li::before { content: '/'; margin-right: 1.75rem; color: var(--accent); }
.home-page .portfolio-section { padding-block: 56px 80px; }
.home-page .section-top { display: flex; justify-content: space-between; gap: 2rem; align-items: end; margin-bottom: 30px; }
.home-page h2 { font-family: var(--serif); font-size: clamp(2.7rem,4.2vw,4rem); font-weight: 400; letter-spacing: -.04em; line-height: 1.04; }
.home-page h2 em { font-weight: 400; color: var(--accent); }
.home-page .section-top .eyeline, .home-page .about-section > div > .eyeline { margin-bottom: 14px; }
.home-page .section-deck { max-width: 23rem; font-size: .9rem; line-height: 1.8; }
.home-page .featured-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.home-page .featured-project { border: 1px solid var(--rule); background: var(--paper); display: flex; flex-direction: column; }
.home-page .project-preview { display: block; padding: 24px 24px 0; background: #d6e0d5; overflow: hidden; border-bottom: 1px solid var(--rule); }
.home-page .preview-radar { background: #e6dfc9; }
.home-page .project-preview img { width: 100%; aspect-ratio: 16/9; object-fit: cover; object-position: top; border: 1px solid rgba(21,62,53,.16); border-bottom: 0; box-shadow: 0 4px 16px rgba(21,62,53,.06); transition: transform .2s; }
.home-page .project-preview:hover img { transform: translateY(-3px); }
.home-page .featured-copy { display: flex; flex-direction: column; padding: 26px 28px 24px; flex: 1; }
.home-page .featured-copy h3 { margin-top: 6px; font-family: var(--serif); font-size: 2.9rem; font-weight: 400; letter-spacing: -.035em; line-height: 1.1; }
.home-page .project-question { margin-top: 13px; font-size: 1rem; font-weight: 600; line-height: 1.6; }
.home-page .project-question + p { margin-top: 12px; font-size: .88rem; line-height: 1.8; }
.home-page .project-evidence { display: flex; flex-wrap: wrap; gap: 3px 12px; align-items: baseline; border-block: 1px solid var(--rule); padding-block: 14px; margin-block: 22px 16px; }
.home-page .project-evidence strong { font-size: .87rem; font-weight: 700; }
.home-page .project-evidence span { font-size: .75rem; }
.home-page .tech-list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.home-page .tech-list li { font-family: var(--mono); font-size: .63rem; line-height: 1.4; padding: 5px 7px; border: 1px solid var(--rule); }
.home-page .project-actions { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; margin-top: 24px; }
.home-page .inline-link { display: inline-flex; align-items: center; gap: .8rem; padding-block: .5rem; border-bottom: 1px solid currentColor; font-size: .77rem; font-weight: 600; line-height: 1.5; }
.home-page .inline-link:hover { color: var(--accent); }
.home-page .project-note { margin-top: 16px; font-size: .73rem; line-height: 1.65; color: #516459; }
.home-page .hackathon-section { padding-block: 64px; background: var(--ink); color: var(--paper); }
.home-page .hackathon-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 32px; }
.home-page .hackathon-heading .eyeline { margin-bottom: 14px; color: #d8e7b0; }
.home-page .hackathon-heading h2 { font-size: clamp(3rem,4.8vw,4.6rem); }
.home-page .hackathon-heading h2 em { color: #d8e7b0; }
.home-page .event-date { text-align: right; font-family: var(--mono); font-size: .78rem; line-height: 1.9; }
.home-page .hackathon-layout { display: grid; grid-template-columns: 1.7fr 1fr; align-items: start; gap: 38px; }
.home-page .hackathon-photo img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: contain; background: #23382b; }
.home-page .hackathon-photo figcaption { margin-top: 12px; font-family: var(--mono); font-size: .63rem; letter-spacing: .03em; color: #d3dace; }
.home-page .hackathon-copy .eyeline { color: #d8e7b0; }
.home-page .hackathon-copy h3 { font-family: var(--serif); font-size: clamp(2rem,2.7vw,2.7rem); line-height: 1.1; font-weight: 400; letter-spacing: -.02em; margin-block: 10px 16px; }
.home-page .hackathon-copy > p:not(.eyeline) { font-size: .87rem; line-height: 1.8; }
.home-page .signal-flow { list-style: none; padding: 0; margin: 22px 0; border-top: 1px solid rgba(255,252,244,.25); }
.home-page .signal-flow li { padding: 10px 0; display: flex; gap: 15px; border-bottom: 1px solid rgba(255,252,244,.25); font-size: .8rem; }
.home-page .signal-flow span { color: #d8e7b0; font-family: var(--mono); font-size: .7rem; }
.home-page .hackathon-copy .hackathon-takeaway { color: #d8e7b0; font-size: .78rem; }
.home-page .experience-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 30px; }
.home-page .experience-grid article { border-top: 1px solid var(--rule); padding-top: 18px; }
.home-page .experience-number { font-family: var(--mono); font-size: .7rem; color: var(--accent); margin-bottom: 13px; }
.home-page .experience-grid h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 12px; }
.home-page .experience-grid article > p:not(.experience-number) { font-size: .88rem; line-height: 1.85; }
.home-page .experience-grid .inline-link { margin-top: 13px; }
.home-page .research-note { margin-top: 32px; border-left: 3px solid var(--accent); padding: 5px 0 5px 22px; display: grid; grid-template-columns: 1fr 2.5fr; gap: 24px; }
.home-page .research-note > p:last-child { font-size: .87rem; line-height: 1.8; }
.home-page .experiments-section { padding-block: 64px; background: #e9ecdf; border-block: 1px solid var(--rule); }
.home-page .experiment-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.home-page .experiment-card { background: var(--paper); border: 1px solid var(--rule); }
.home-page .experiment-image { display: block; overflow: hidden; border-bottom: 1px solid var(--rule); background: #e0ddd0; }
.home-page .experiment-image img { width: 100%; aspect-ratio: 16/9; object-fit: cover; object-position: top; }
.home-page .experiment-copy { padding: 24px 28px 28px; }
.home-page .experiment-copy h3 { font-family: var(--serif); font-size: 2.35rem; font-weight: 400; line-height: 1.1; letter-spacing: -.025em; margin-block: 8px 14px; }
.home-page .experiment-copy > p:not(.eyeline) { font-size: .87rem; line-height: 1.8; }
.home-page .experiment-copy .tech-list { margin-top: 18px; }
.home-page .experiment-copy .project-actions { margin-top: 16px; }
.home-page .automation-note { display: grid; grid-template-columns: 1fr 1.5fr auto; gap: 26px; align-items: center; margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--rule); }
.home-page .automation-note h3 { font-size: 1rem; font-weight: 600; margin-top: 7px; }
.home-page .automation-note > p { font-size: .84rem; line-height: 1.8; }
.home-page .about-section { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; padding-block: 80px; }
.home-page .about-copy { max-width: 42rem; }
.home-page .about-copy p { font-size: 1rem; line-height: 1.9; }
.home-page .about-copy p + p { margin-top: 18px; }
.home-page .about-links { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 22px; }
.home-page .portfolio-contact { background: #dce7b8; border-top: 1px solid var(--rule); padding-block: 58px 25px; }
.home-page .contact-top { display: flex; justify-content: space-between; align-items: end; gap: 2rem; }
.home-page .contact-top .eyeline { margin-bottom: 14px; }
.home-page .contact-top h2 em { color: var(--ink); }
.home-page .contact-top > p { font-size: .85rem; line-height: 1.8; }
.home-page .contact-email { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 34px; padding-bottom: 18px; border-bottom: 1px solid var(--ink); font-family: var(--serif); font-size: clamp(1.7rem,4vw,3.6rem); letter-spacing: -.035em; overflow-wrap: anywhere; }
.home-page .portfolio-footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 24px; font-size: .73rem; }
.home-page .portfolio-footer > div { display: flex; flex-wrap: wrap; gap: 24px; }
.home-page .portfolio-footer a { text-decoration: underline; text-underline-offset: 4px; }
.home-page .site-credit { font-size: .68rem; line-height: 1.75; margin-top: 22px; max-width: 52rem; }
.home-page .site-controls { background: #dce7b8; border-top: 1px solid rgba(21,62,53,.15); }
.home-page .cookie-banner { background: var(--paper); color: var(--ink); }
@media (max-width: 1050px) {
  .home-page .hero-layout { grid-template-columns: 1.2fr 1fr; gap: 28px; }
  .home-page h1 { font-size: clamp(3.4rem,7vw,5.4rem); }
  .home-page .section-deck { max-width: 18rem; }
  .home-page .hackathon-layout { grid-template-columns: 1.3fr 1fr; gap: 26px; }
  .home-page .featured-copy { padding-inline: 22px; }
  .home-page .automation-note { grid-template-columns: 1fr 1.5fr; }
  .home-page .automation-note .inline-link { grid-column: 2; justify-self: start; }
}
@media (max-width: 760px) {
  .home-page .portfolio-hero { padding-top: 108px; padding-bottom: 24px; }
  .home-page .hero-topline { flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
  .home-page .hero-layout { grid-template-columns: 1fr; gap: 24px; }
  .home-page h1 { font-size: clamp(3.6rem,10.5vw,5.2rem); }
  .home-page .hero-summary { max-width: 100%; }
  .home-page .hero-summary > p + p { max-width: 35rem; }
  .home-page .hero-summary .portfolio-button { margin-top: 18px; }
  .home-page .practice-list { margin-top: 26px; gap: 9px 16px; }
  .home-page .practice-list li + li::before { margin-right: 16px; }
  .home-page .section-top { flex-direction: column; align-items: start; gap: 18px; }
  .home-page .section-deck { max-width: 36rem; }
  .home-page .featured-grid { grid-template-columns: 1fr; gap: 28px; }
  .home-page .portfolio-section { padding-block: 40px 50px; }
  .home-page .hackathon-section { padding-block: 44px; }
  .home-page .hackathon-layout { grid-template-columns: 1fr; gap: 28px; }
  .home-page .hackathon-copy h3 br { display: none; }
  .home-page .hackathon-copy { max-width: 37rem; }
  .home-page .experience-grid { grid-template-columns: 1fr; gap: 26px; }
  .home-page .experience-grid article { display: grid; grid-template-columns: 30px 1fr; gap: 0 16px; }
  .home-page .experience-grid .experience-number { grid-row: 1 / span 3; }
  .home-page .experience-grid .inline-link { grid-column: 2; justify-self: start; }
  .home-page .research-note { grid-template-columns: 1fr; gap: 10px; }
  .home-page .experiments-section { padding-block: 44px; }
  .home-page .experiment-grid { grid-template-columns: 1fr; }
  .home-page .automation-note { grid-template-columns: 1fr; gap: 14px; }
  .home-page .automation-note .inline-link { grid-column: 1; }
  .home-page .about-section { grid-template-columns: 1fr; gap: 24px; padding-block: 50px; }
  .home-page .contact-top { flex-direction: column; align-items: start; gap: 20px; }
  .home-page .portfolio-contact { padding-top: 44px; }
  .home-page .portfolio-footer { flex-direction: column; gap: 18px; }
}
@media (max-width: 420px) {
  .home-page .eyeline { font-size: .62rem; }
  .home-page .award-link { font-size: .65rem; }
  .home-page h1 { font-size: 3.4rem; }
  .home-page h2 { font-size: 2.5rem; }
  .home-page .practice-list { font-size: .6rem; }
  .home-page .practice-list li + li::before { content: none; }
  .home-page .project-preview { padding: 15px 15px 0; }
  .home-page .featured-copy, .home-page .experiment-copy { padding: 22px 19px; }
  .home-page .project-actions { column-gap: 18px; }
  .home-page .hackathon-heading { gap: 14px; align-items: start; }
  .home-page .hackathon-heading h2 { font-size: 2.8rem; }
  .home-page .event-date { font-size: .65rem; padding-top: 3px; }
  .home-page .contact-email { font-size: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .home-page { scroll-behavior: auto; }
  .home-page *, .home-page *::before, .home-page *::after { transition: none !important; animation: none !important; }
}

.home-page .chess-preview img { object-fit: contain; }

/* Teaching is a professional role, with its own emphasis within experience. */
.home-page .practice-list a { text-decoration: underline; text-underline-offset: 4px; }
.home-page .teaching-feature { margin-top: 40px; padding: 32px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; background: #e4ebcd; border: 1px solid var(--rule); }
.home-page .teaching-feature h3 { margin-block: 12px 18px; font-family: var(--serif); font-size: clamp(2.1rem, 3.4vw, 3.2rem); line-height: 1.08; letter-spacing: -.025em; font-weight: 400; }
.home-page .teaching-feature > div > p:not(.eyeline) { font-size: .94rem; line-height: 1.8; max-width: 35rem; }
.home-page .teaching-feature .inline-link { margin-top: 16px; }
.home-page .teaching-topics { margin: 14px 0 0; padding: 0; list-style: none; }
.home-page .teaching-topics li { display: flex; flex-direction: column; gap: 5px; padding: 13px 0; border-top: 1px solid var(--rule); }
.home-page .teaching-topics strong { font-size: .95rem; font-weight: 600; line-height: 1.5; }
.home-page .teaching-topics span { font-size: .82rem; line-height: 1.6; }
@media (max-width: 760px) {
  .home-page .teaching-feature { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
}
@media (max-width: 420px) {
  .home-page .teaching-feature { padding: 22px 18px; }
}
