.print-contact {
  display: none;
}
/* CV reading layout. Illustration styles and colour tokens live in styles.css. */
:root {
  --accent: #476b3c;
  --muted: #566151;
  --header-height: 80px;
}
:root[data-theme="dark"] {
  --muted: #b0baaf;
}
body {
  font-size: 16px;
  line-height: 1.65;
}
.container {
  width: min(1120px, calc(100% - 80px));
}
main > section:not(.hero):not(.contact-section):not(.work-section) {
  background: var(--bg);
}
.section {
  padding-block: 64px;
}
.section-label,
.eyebrow {
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 1px;
}
.section-title,
.experience-intro .section-title {
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.2;
  letter-spacing: -1.2px;
}
.section-description,
.hero-description,
.about-columns,
.timeline-item > p:last-of-type,
.project-card > p,
.project-content > p,
.note-card p,
.contact-section p:not(.eyebrow),
.detail-dialog p,
.detail-dialog li {
  font-size: 16px;
  line-height: 1.75;
}
.section-description {
  max-width: 65ch;
}
.header-inner {
  gap: 28px;
}
.main-nav {
  gap: 24px;
}
.main-nav > a {
  font-size: 14px;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.main-nav > a:after {
  bottom: 3px;
}
.header-contact,
.text-link,
.button,
.language-option {
  font-size: 14px;
}
.icon-button {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.header-controls {
  gap: 9px;
}
.text-link {
  min-height: 44px;
}
.hero {
  position: relative;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
  gap: 0 36px;
  padding-top: 46px;
}
.hero-intro {
  margin-bottom: 15px;
}
.hero h1 {
  font-size: clamp(48px, 4.8vw, 68px);
  line-height: 1.1;
  letter-spacing: -3px;
}
.hero h1 > .text-accent {
  display: inline;
  font-size: inherit;
}
.hero-role {
  color: var(--accent);
  font-size: 23px;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 14px;
}
.hero-description {
  max-width: 59ch;
  margin-top: 20px;
}
.hero-actions {
  margin-top: 24px;
  gap: 24px;
  flex-wrap: wrap;
}
.hero-actions .button {
  min-height: 48px;
  gap: 12px;
}
.hero-location {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 17px;
  color: var(--muted);
  font-size: 14px;
}
.hero-location .icon {
  width: 16px;
  height: 16px;
}
.hero-visual {
  height: 330px;
  width: 100%;
  align-self: start;
  margin-top: 8px;
}
.portrait-disc {
  width: 220px;
  height: 220px;
  box-shadow: 0 0 0 12px color-mix(in srgb, var(--soft) 65%, transparent);
}
.portrait-disc img {
  width: 192px;
  bottom: -37px;
}
.orbit-outer {
  width: 300px;
}
.orbit-inner {
  width: 94%;
  max-width: 340px;
}
.orbit-cross {
  top: 22px;
  right: 35px;
}
.orbit-point-one {
  left: 38px;
  top: 63px;
}
.orbit-point-two {
  right: 32px;
  bottom: 75px;
}
.visual-label-code {
  top: 30px;
  left: 24px;
  font-size: 19px;
  padding: 8px 12px;
}
.visual-label-stack {
  bottom: 71px;
  right: 0;
}
.portrait-caption {
  bottom: 26px;
  font-size: 11px;
}
#matrix-rain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  mask-image: radial-gradient(ellipse, #000 40%, transparent 72%);
}
.hero-facts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  border-block: 1px solid var(--line);
  margin: 32px 0 0;
  padding-block: 24px;
}
.hero-facts div {
  min-width: 0;
}
.hero-facts dt {
  font-size: 16px;
  font-weight: 700;
}
.hero-facts dd {
  margin: 5px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.motion-toggle {
  position: absolute;
  right: 24px;
  top: 390px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  font-size: 12px;
  color: var(--muted);
}
.motion-toggle .icon {
  width: 15px;
  height: 15px;
}
.motion-toggle:disabled {
  cursor: default;
}
.motion-play {
  display: none;
}
[data-motion="paused"] .motion-pause {
  display: none;
}
[data-motion="paused"] .motion-play {
  display: block;
}
.experience-section {
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 64px;
}
.experience-intro .section-title {
  margin-top: 18px;
}
.experience-intro > .text-link {
  margin-top: 16px;
}
.timeline {
  padding-left: 26px;
}
.timeline-item {
  margin-bottom: 28px;
  padding-bottom: 28px;
}
.timeline-item:last-child {
  margin-bottom: 0;
}
.timeline-date {
  font-size: 14px;
  line-height: 1.5;
  flex-wrap: wrap;
  gap: 10px;
}
.current-label {
  font-size: 12px;
  padding: 2px 8px;
}
.timeline-item h3 {
  font-size: 23px;
  line-height: 1.4;
  letter-spacing: -0.5px;
}
.timeline-company {
  font-size: 16px;
  font-weight: 600;
  margin-block: 5px 14px;
}
.timeline-company > span {
  display: inline-block;
  margin-left: 12px;
  font-size: 14px;
  font-weight: 400;
}
.experience-points {
  padding-left: 20px;
  margin: 14px 0 0;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
}
.experience-points li + li {
  margin-top: 7px;
}
.experience-points li::marker {
  color: var(--accent);
}
.tags > span {
  font-size: 12px;
  padding: 4px 9px;
}
.section-heading-row {
  margin-block: 20px 28px;
}
.project-filters button {
  font-size: 14px;
  min-height: 40px;
  padding: 8px 13px;
}
.project-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}
.project-card {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: start;
  gap: 28px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}
.project-visual {
  aspect-ratio: 1.15;
}
.project-content {
  min-width: 0;
}
.project-meta {
  font-size: 12px;
  margin: 0 0 8px;
}
.project-meta > span:last-child {
  display: none;
}
.project-card h3 {
  font-size: 24px;
  max-width: none;
  line-height: 1.3;
  letter-spacing: -0.6px;
}
.project-content > p {
  margin-top: 12px;
  color: var(--muted);
}
.project-evidence {
  margin: 20px 0 8px;
  display: grid;
  gap: 14px;
  font-size: 15px;
  line-height: 1.65;
}
.project-evidence div {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 16px;
}
.project-evidence dt {
  font-weight: 700;
}
.project-evidence dd {
  margin: 0;
  color: var(--muted);
}
.project-link {
  margin-top: 10px;
}
.project-source {
  margin-left: 22px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.work-footer {
  font-size: 14px;
}
.toolbox-section {
  display: block;
  padding-block: 56px;
  border-bottom: 1px solid var(--line);
}
.toolbox-section h2 {
  max-width: none;
  margin-top: 18px;
  font-size: 32px;
  line-height: 1.3;
}
.skill-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
  margin-top: 28px;
}
.skill-groups h3 {
  font-size: 16px;
  margin-bottom: 9px;
}
.skill-groups p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.75;
}
.about-section {
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 64px;
}
.about-columns {
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 24px;
  max-width: 68ch;
}
.education-note {
  margin-top: 28px;
  gap: 16px;
}
.education-note strong {
  font-size: 18px;
}
.education-note span {
  font-size: 14px;
}
.note-category {
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.5px;
}
.note-card {
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 24px;
}
.note-glyph {
  width: 60px;
  height: 60px;
}
.note-card h3 {
  font-size: 23px;
}
.note-open {
  width: 48px;
  height: 48px;
}
.notes-footnote {
  font-size: 14px;
}
.contact-section {
  padding-block: 56px;
}
.contact-inner {
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-section .eyebrow {
  font-size: 12px;
}
.contact-section h2 {
  font-size: 38px;
  letter-spacing: -1px;
  margin-block: 16px;
}
.contact-section p:not(.eyebrow) {
  max-width: 48ch;
}
.contact-email {
  font-size: clamp(17px, 1.8vw, 24px);
  overflow-wrap: anywhere;
  line-height: 1.5;
}
.contact-email > .icon {
  display: none;
}
.copy-email,
.social-links {
  font-size: 14px;
}
.social-links {
  flex-wrap: wrap;
  gap: 24px;
}
.social-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.site-footer > p,
.site-footer > .text-link {
  font-size: 12px;
}
.detail-dialog {
  width: min(840px, calc(100% - 32px));
}
.detail-dialog h2 {
  font-size: 32px;
}
.detail-dialog .dialog-lead {
  font-size: 20px;
}
.detail-dialog h3 {
  font-size: 20px;
}
.project-facts,
.project-flow,
.article-code > div,
.article-code button {
  font-size: 14px;
}
.article-code pre {
  font-size: 14px;
  line-height: 1.65;
}
.article-caption,
.small-note {
  font-size: 14px !important;
}
/* CV content is readable immediately, even during fast scrolling. */
.reveal-ready [data-reveal],
.reveal-ready [data-reveal]:not(.is-visible) {
  opacity: 1;
  transform: none;
  transition: none;
}
.reveal-ready [data-reveal].is-visible {
  animation: cv-enter 0.35s ease-out;
}
.hero-copy > *,
.hero-visual {
  animation-name: cv-enter;
  animation-duration: 0.45s;
}
@keyframes cv-enter {
  from {
    transform: translateY(8px);
  }
  to {
    transform: none;
  }
}
@media (max-width: 1100px) {
  .container {
    width: calc(100% - 48px);
  }
  .header-inner {
    gap: 16px;
  }
  .main-nav {
    gap: 16px;
  }
  .hero {
    grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
    gap: 0 24px;
  }
  .hero h1 {
    font-size: 52px;
  }
  .hero-facts {
    gap: 20px;
  }
  .experience-section,
  .about-section {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 36px;
  }
  .project-card {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 24px;
  }
  .project-source {
    margin-left: 12px;
  }
}
@media (max-width: 800px) {
  :root {
    --header-height: 72px;
  }
  .section {
    padding-block: 44px;
  }
  .hero {
    display: block;
    padding-top: 32px;
  }
  .hero-copy {
    min-width: 0;
  }
  .hero-intro {
    font-size: 11px;
    max-width: calc(100% - 118px);
    margin-bottom: 12px;
  }
  .hero h1 {
    font-size: clamp(37px, 7vw, 50px);
    max-width: calc(100% - 118px);
    letter-spacing: -1.8px;
  }
  .hero-role {
    font-size: 21px;
    margin-top: 20px;
  }
  .hero-description {
    max-width: 65ch;
    font-size: 16px;
  }
  .hero-visual {
    position: absolute;
    top: 34px;
    right: 0;
    width: 100px;
    height: 120px;
    margin: 0;
  }
  .portrait-disc {
    width: 88px;
    height: 88px;
    box-shadow: 0 0 0 5px var(--soft);
  }
  .portrait-disc img {
    width: 80px;
    bottom: -17px;
  }
  .hero-visual .orbit,
  .hero-visual .orbit-point,
  .orbit-cross,
  .visual-label,
  .portrait-caption {
    display: none;
  }
  .hero-visual::before {
    display: none;
  }
  #matrix-rain {
    inset: -15%;
    width: 130%;
    height: 130%;
  }
  .hero-actions {
    gap: 18px;
    margin-top: 20px;
  }
  .hero-actions .button {
    padding-inline: 16px;
  }
  .hero-facts {
    margin-top: 22px;
    padding-block: 20px;
    gap: 18px;
    grid-template-columns: 1fr;
  }
  .hero-facts div {
    display: grid;
    grid-template-columns: 126px minmax(0, 1fr);
    gap: 12px;
  }
  .hero-facts dt {
    font-size: 14px;
  }
  .hero-facts dd {
    margin: 0;
    font-size: 14px;
  }
  .motion-toggle {
    position: static;
    margin-top: 8px;
    padding-left: 0;
    font-size: 12px;
  }
  .experience-section,
  .about-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .experience-intro .section-title {
    margin-top: 14px;
  }
  .section-title,
  .experience-intro .section-title,
  .toolbox-section h2 {
    font-size: 30px;
  }
  .timeline-item h3 {
    font-size: 21px;
  }
  .timeline {
    margin-left: 4px;
    padding-left: 20px;
  }
  .timeline-item:before {
    left: -25px;
  }
  .project-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 20px;
  }
  .project-visual {
    height: 160px;
    aspect-ratio: auto;
  }
  .project-card h3 {
    font-size: 22px;
  }
  .project-evidence div {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
  }
  .project-source {
    margin-left: 14px;
  }
  .project-filters {
    align-self: flex-start;
  }
  .section-heading-row {
    align-items: start;
  }
  .skill-groups {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
  .skill-groups > div + div {
    padding-top: 20px;
    border-top: 1px solid var(--line);
  }
  .about-section > .section-label {
    padding-top: 0;
  }
  .note-card {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
  }
  .note-glyph {
    display: none;
  }
  .note-card h3 {
    font-size: 21px;
  }
  .contact-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .contact-section h2 {
    font-size: 32px;
  }
  .contact-email {
    font-size: 20px;
  }
  .dialog-scroll {
    padding: 24px;
  }
  .detail-dialog h2 {
    font-size: 27px;
  }
  .detail-dialog p,
  .detail-dialog li {
    font-size: 16px;
  }
  .project-flow {
    flex-wrap: wrap;
  }
}
@media (max-width: 380px) {
  .container {
    width: calc(100% - 32px);
  }
  .header-inner {
    gap: 8px;
  }
  .header-controls {
    gap: 3px;
  }
  .language-trigger {
    padding-inline: 6px;
  }
  .hero h1 {
    font-size: 36px;
  }
  .hero-actions {
    gap: 12px;
  }
  .hero-actions .button {
    padding-inline: 12px;
    font-size: 13px;
  }
  .hero-facts div {
    grid-template-columns: 112px minmax(0, 1fr);
  }
  .project-card {
    padding: 16px;
  }
  .project-source {
    margin-left: 0;
    display: flex;
    width: fit-content;
  }
  .contact-email {
    font-size: 18px;
  }
}
[data-motion="paused"] *,
[data-motion="paused"] *::before,
[data-motion="paused"] *::after {
  animation: none !important;
  transition: none !important;
}
[data-motion="paused"] {
  scroll-behavior: auto;
}
[data-motion="paused"] .reveal-ready [data-reveal],
[data-motion="paused"].reveal-ready [data-reveal] {
  opacity: 1;
  transform: none;
}
[data-motion="paused"] #particle-field {
  display: none;
}
@media print {
  #work {
    break-before: page;
  }
  h2,
  h3 {
    break-after: avoid;
  }
  .section-heading-row {
    break-after: avoid;
    margin-block: 8px 12px;
  }
  .about-section,
  .toolbox-section,
  .contact-section {
    break-inside: avoid;
  }
  .print-contact {
    display: block;
    font-size: 10pt;
    line-height: 1.5;
    margin-top: 8px;
  }
  .project-content > p {
    display: none;
  }

  @page {
    size: A4;
    margin: 16mm;
  }
  :root,
  :root[data-theme="dark"] {
    --bg: #fff;
    --ink: #111;
    --muted: #333;
    --accent: #254d31;
    --line: #ccc;
    --soft: #fff;
  }
  * {
    animation: none !important;
    transition: none !important;
    box-shadow: none !important;
  }
  body {
    font-size: 10pt;
  }
  .site-header,
  .site-footer,
  canvas,
  .hero-visual,
  .hero-actions,
  .hero-location .icon,
  .motion-toggle,
  .project-visual,
  .project-filters,
  .project-link,
  .project-source,
  .work-footer,
  .notes-section,
  .copy-email,
  .copy-status,
  .contact-section .eyebrow,
  .social-links,
  dialog,
  .skip-link,
  .experience-intro > .text-link {
    display: none !important;
  }
  .container {
    width: 100%;
  }
  .hero {
    display: block;
    padding: 0;
  }
  .hero h1 {
    max-width: none;
    font-size: 26pt;
  }
  .hero-role {
    font-size: 13pt;
    margin-top: 5px;
  }
  .hero-description,
  .hero-facts dd,
  .hero-location {
    font-size: 10pt;
  }
  .hero-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 14px;
    padding-block: 12px;
  }
  .hero-facts div {
    display: block;
  }
  .hero-facts dt {
    font-size: 10pt;
  }
  .section {
    padding-block: 18px;
  }
  .experience-section,
  .about-section,
  .contact-inner {
    display: block;
  }
  .section-title,
  .experience-intro .section-title,
  .toolbox-section h2,
  .contact-section h2 {
    font-size: 17pt;
  }
  .section-description,
  .section-label,
  .about-section .section-label {
    display: none;
  }
  .timeline {
    margin-top: 16px;
  }
  .timeline-item,
  .project-card,
  .skill-groups > div,
  .education-note {
    break-inside: avoid;
  }
  .timeline-item {
    margin-bottom: 14px;
    padding-bottom: 14px;
  }
  .timeline-item h3,
  .project-card h3 {
    font-size: 12pt;
  }
  .experience-points,
  .timeline-company,
  .timeline-date,
  .timeline-item > p:last-of-type,
  .project-content > p,
  .project-evidence,
  .about-columns,
  .skill-groups p,
  .skill-groups h3,
  .contact-section p:not(.eyebrow),
  .education-note span {
    font-size: 10pt;
    line-height: 1.5;
  }
  .tags {
    display: none;
  }
  .project-card {
    display: block;
    padding: 14px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
  }
  .project-card[hidden] {
    display: block !important;
  }
  .project-meta {
    font-size: 9pt;
  }
  .project-evidence {
    margin-top: 10px;
    gap: 6px;
  }
  .project-evidence div {
    grid-template-columns: 80px 1fr;
  }
  .project-grid {
    gap: 0;
  }
  .work-section,
  .contact-section {
    background: #fff;
    color: #111;
  }
  .skill-groups {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .skill-groups > div + div {
    border: 0;
    padding: 0;
  }
  .about-columns {
    margin-top: 12px;
  }
  .contact-section {
    padding-block: 16px;
  }
  .contact-section p:not(.eyebrow) {
    color: #333;
  }
  .contact-email {
    color: #111;
    font-size: 12pt;
  }
  [data-reveal],
  .reveal-ready [data-reveal]:not(.is-visible) {
    opacity: 1 !important;
    transform: none !important;
  }
}
@media print {
  .section {
    padding-block: 10px;
  }
  .project-card {
    padding-block: 8px;
    border-radius: 0;
  }
  .project-meta {
    margin-bottom: 4px;
  }
  .project-evidence {
    margin-block: 6px 2px;
    gap: 4px;
  }
  .project-evidence div {
    grid-template-columns: 105px minmax(0, 1fr);
    gap: 10px;
  }
  .skill-groups {
    margin-top: 12px;
  }
  .toolbox-section h2 {
    margin-top: 0;
  }
  .education-note {
    margin-top: 10px;
  }
  .education-note strong {
    font-size: 11pt;
  }
  .about-columns {
    gap: 8px;
    margin-top: 10px;
  }
  .contact-section {
    display: none;
  }
}
