/* File: styles.css */

:root {
  color-scheme: light;

  --paper: #f5f2e8;
  --paper-light: #fbf8f0;
  --paper-deep: #eadfd8;
  --ink: #111528;
  --muted: #563d5a;
  --coral: #d93c34;
  --coral-light: #f65933;
  --sand: #fcd1a9;
  --line: rgba(17, 21, 40, 0.2);

  --gutter: clamp(1.25rem, 5vw, 6rem);
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: "Arial Black", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: 20;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.045;
  background-image: radial-gradient(
    circle,
    #282626 0.65px,
    transparent 0.85px
  );
  background-size: 3px 3px;
}

[hidden] {
  display: none !important;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
}

a:hover {
  text-decoration-color: var(--coral);
}

button {
  color: inherit;
  font: inherit;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: default;
  opacity: 0.55;
}

button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 6px;
}

::selection {
  background: var(--coral);
  color: var(--paper-light);
}

[id] {
  scroll-margin-top: 6rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.muted {
  color: var(--muted);
}

.eyebrow,
.project-index,
.project-tech,
.entry-meta,
.colophon {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.055em;
}

.eyebrow {
  text-transform: uppercase;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: 0.8rem 1.1rem;
  transform: translateY(-180%);
  background: var(--ink);
  color: var(--paper);
}

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

.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 4.75rem;
  padding: 0.75rem var(--gutter);
  border-bottom: 1px solid var(--line);
  background: rgba(245, 242, 232, 0.88);
  backdrop-filter: blur(16px);
}

.wordmark {
  flex: 0 0 auto;
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.09em;
  text-decoration: none;
}

.wordmark span {
  margin-left: 0.15em;
  color: var(--coral);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 2.3vw, 2.5rem);
}

.site-nav a {
  font-size: 0.8rem;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--coral);
}

.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.35rem 0;
  border: 0;
  background: none;
  font-family: var(--mono);
  font-size: 0.73rem;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35em;
}

.text-button:hover:not(:disabled) {
  color: var(--coral);
}

.noscript-note {
  margin: 5rem var(--gutter) 0;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

/* Landing composition */

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  padding: 7rem var(--gutter) 2rem;
  overflow: hidden;
  background: var(--paper-light);
}

.hero-scenery {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-scenery img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-scenery::after {
  position: absolute;
  inset: 65% 0 0;
  content: "";
  background: linear-gradient(transparent, rgba(17, 21, 40, 0.55));
}

.hero-eyebrow,
.hero-footer,
.hero-title {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.hero-coordinate {
  text-align: right;
}

.hero-title {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  align-self: center;
  width: min(100%, 1284px);
  max-width: 100%;
  gap: 3.73%;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.hero-title::before {
  position: absolute;
  z-index: -1;
  inset: -5rem -18vw;
  content: "";
  background: radial-gradient(
    ellipse,
    rgba(17, 21, 40, 0.72) 20%,
    rgba(17, 21, 40, 0.38) 55%,
    transparent 76%
  );
  filter: blur(24px);
}

.hero-name-art {
  display: block;
  height: auto;
  filter: drop-shadow(0 4px 6px rgba(17, 21, 40, 0.5))
    drop-shadow(0 14px 20px rgba(17, 21, 40, 0.35));
}

.hero-name-art--first {
  width: 64.49%;
  aspect-ratio: 828 / 128;
}

.hero-name-art--last {
  width: 31.78%;
  aspect-ratio: 408 / 128;
}

.hero-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 2rem;
  color: #f5f2e8;
  text-shadow: 0 2px 8px #0b1022;
}

.hero-intro {
  max-width: 28rem;
  font-size: clamp(0.9rem, 1.1vw, 1.1rem);
  line-height: 1.5;
}

.jump-link {
  display: inline-flex;
  justify-self: center;
  align-items: center;
  gap: 2rem;
  font-size: 0.85rem;
  text-decoration: none;
}

.jump-link span {
  font-size: 2rem;
  line-height: 1;
}

/* Shared editorial layout */

.section {
  padding: clamp(4rem, 8vw, 8rem) var(--gutter);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.section-heading .eyebrow {
  margin-bottom: 1.6rem;
  color: var(--muted);
}

.section-heading h2 {
  font-size: clamp(2.25rem, 6.2vw, 6.6rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.carousel-toggle {
  margin-top: 1rem;
  color: var(--muted);
}

/* Two continuously moving project rows */

.projects-section {
  padding-inline: 0;
  border-top: 1px solid var(--line);
  background: var(--paper-light);
}

.projects-section > .section-heading {
  margin-inline: var(--gutter);
}

.project-rows {
  display: grid;
  gap: 1rem;
  padding-block: 1rem 2.5rem;
  border-block: 1px solid var(--line);
}

.project-row {
  --project-gap: 1rem;
  padding-inline: var(--gutter);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.project-row::-webkit-scrollbar {
  display: none;
}

.project-row:focus-visible {
  outline-offset: -4px;
}

.project-track {
  display: flex;
  width: max-content;
  gap: var(--project-gap);
}

.project {
  display: grid;
  grid-template-rows: auto auto;
  width: clamp(18rem, 25vw, 25rem);
  flex: 0 0 clamp(18rem, 25vw, 25rem);
  gap: 0.75rem;
  min-width: 0;
  min-height: 31rem;
  padding: 1.25rem;
  background: var(--paper);
}

.project:nth-child(3n + 2) {
  background: #efe3db;
}

.project:nth-child(3n + 3) {
  background: #f8ebde;
}

.project-art {
  width: 100%;
  min-width: 0;
  aspect-ratio: 720 / 520;
}

.project-art svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.project-copy {
  width: 100%;
  max-width: none;
  padding-block: 0.25rem;
}

.project-index {
  margin-bottom: 1.5rem;
  color: var(--muted);
  text-transform: uppercase;
}

.project-copy h3 {
  font-size: clamp(1.5rem, 2.2vw, 2.3rem);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.055em;
}

.project-description {
  max-width: 42ch;
  margin-top: 0.8rem;
  font-size: 0.88rem;
  line-height: 1.55;
}

.project-tech {
  margin-top: 0.8rem;
  color: var(--muted);
  line-height: 1.9;
}

.project-subtitle {
  margin-top: 0.8rem;
  font-size: 1rem;
  font-weight: 600;
}

.project-award {
  margin-bottom: 1rem;
  color: var(--coral);
  font-family: var(--mono);
  font-size: 0.73rem;
  line-height: 1.6;
}

.project-details {
  margin-top: 1.7rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.project-details ul {
  margin: 1.2rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.94rem;
}

.project-details li + li {
  margin-top: 0.8rem;
}

.research-rows {
  margin-inline: calc(var(--gutter) * -1);
  border-top: 1px solid var(--ink);
}

.research-project .project-index {
  margin-bottom: 0.9rem;
  line-height: 1.55;
}

.research-project .entry-context {
  margin-top: 0.55rem;
}

.research-project .project-details {
  margin-top: 1.25rem;
}

.research-project .project-details ul {
  font-size: 0.86rem;
  line-height: 1.5;
}

.project.is-interactive {
  cursor: pointer;
}

.project.is-interactive .project-details {
  display: none;
}

.project-open {
  margin-top: 1.4rem;
}

body:has(.project-dialog[open]) {
  overflow: hidden;
}

.project-dialog {
  width: min(1120px, calc(100% - 2rem));
  max-height: 88svh;
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  background: var(--paper-light);
  color: var(--ink);
  box-shadow: 0 24px 100px rgba(17, 21, 40, 0.35);
}

.project-dialog::backdrop {
  background: rgba(17, 21, 40, 0.72);
  backdrop-filter: blur(6px);
}

.dialog-controls {
  position: sticky;
  z-index: 1;
  top: 0;
  display: flex;
  justify-content: flex-end;
  padding: 0.75rem 1.25rem;
  background: var(--paper-light);
  border-bottom: 1px solid var(--line);
}

.project-dialog-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 2rem;
  padding: 2rem;
}

.project-dialog-art {
  position: sticky;
  top: 4.5rem;
}

.project-dialog-copy {
  min-width: 0;
}

.project-dialog-copy h3 {
  font-size: clamp(1.75rem, 3vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.project-dialog-copy .project-description,
.project-dialog-copy .project-details ul {
  font-size: 1rem;
  line-height: 1.65;
}

/* Résumé: continuous rows, not cards */

.document-section {
  border-top: 1px solid var(--line);
}

.entry-list {
  border-top: 1px solid var(--ink);
}

.cv-entry {
  display: grid;
  grid-template-columns: minmax(10rem, 0.29fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 6rem);
  padding: 2.6rem 0;
  border-bottom: 1px solid var(--line);
}

.entry-meta {
  padding-top: 0.4rem;
  color: var(--muted);
  line-height: 1.8;
}

.entry-meta p + p {
  margin-top: 0.45rem;
}

.entry-body {
  max-width: 62rem;
}

.entry-body h3 {
  font-size: clamp(1.5rem, 2.5vw, 2.4rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.entry-context {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.entry-body > p:not(.entry-context) {
  margin-top: 0.65rem;
}

.entry-body ul {
  margin: 1.3rem 0 0;
  padding-left: 1.1rem;
}

.entry-body li {
  padding-left: 0.3rem;
}

.entry-body li + li {
  margin-top: 0.85rem;
}

.entry-body li::marker,
.project-details li::marker {
  color: var(--coral);
}

.entry-body strong {
  font-weight: 600;
}

.work-section {
  background: var(--paper-deep);
}

.education-direction {
  margin-bottom: 1.5rem;
  color: var(--muted);
}

.education-timeline {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--muted) transparent;
}

.education-timeline:focus-visible {
  outline-offset: -3px;
}

.education-journey {
  min-width: 840px;
  padding-bottom: 1.5rem;
}

.education-art {
  display: block;
  width: 100%;
  height: auto;
}

.education-stages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.education-stages li {
  padding: 0 1rem 0 20%;
}

.education-date {
  margin-bottom: 1rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.education-stages h3 {
  font-size: clamp(1.4rem, 2.2vw, 2.2rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.education-location {
  margin: 0.7rem 0 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.skills {
  margin-top: 5rem;
}

.subsection-title {
  margin-bottom: 1.6rem;
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.skill-row {
  display: grid;
  grid-template-columns: minmax(10rem, 0.29fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 6rem);
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}

.skill-row h4 {
  font-family: var(--mono);
  font-size: 0.77rem;
  font-weight: 400;
}

.skill-row p {
  max-width: 65rem;
  line-height: 1.9;
}

/* Contact */

.contact-section {
  padding: clamp(2.5rem, 4vw, 4rem) var(--gutter) 1rem;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}

.contact-section > .eyebrow {
  color: #b5ae9f;
}

.contact-section h2 {
  margin-top: 1rem;
  font-size: clamp(3.8rem, 10vw, 11rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.075em;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  white-space: nowrap;
  gap: 2vw;
  margin-top: 1.25rem;
  padding-bottom: 0.15em;
  border-bottom: 1px solid #a79b88;
  font-size: clamp(1.35rem, 4.8vw, 5.25rem);
  line-height: 1.25;
  letter-spacing: -0.045em;
  text-decoration: none;
}

.contact-email span {
  flex-shrink: 0;
  color: var(--coral-light);
}

.contact-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-top: 2rem;
}

.contact-bottom address {
  font-size: 0.95rem;
  font-style: normal;
  line-height: 1.9;
}

.contact-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.contact-links a {
  font-family: var(--mono);
  font-size: 0.77rem;
}

.colophon {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(238, 232, 220, 0.25);
  color: #b5ae9f;
  font-size: 0.64rem;
}

/* Responsive composition */

@media (min-width: 1700px) {
  .hero {
    min-height: min(100svh, 1200px);
  }
}

@media (max-width: 1050px) {
  .site-header {
    gap: 1.5rem;
  }

  .hero-coordinate {
    display: none;
  }

  .section-heading {
    align-items: flex-start;
    gap: 2rem;
  }

  .project {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 36rem;
  }

  .project-copy h3 {
    font-size: clamp(2rem, 4.2vw, 3.5rem);
  }
}

@media (max-width: 1100px) {
  .project {
    grid-template-columns: 1fr;
    min-height: 29rem;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 4rem;
    gap: 1rem;
  }

  .site-nav {
    justify-content: flex-start;
    gap: 1rem;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    flex: 0 0 auto;
    font-size: 0.72rem;
  }

  .wordmark {
    font-size: 1.3rem;
  }

  .hero {
    min-height: 100svh;
    padding-top: 6rem;
    padding-bottom: 1.5rem;
  }

  .hero-title {
    width: 100%;
    flex-direction: column;
    gap: 1rem;
  }

  .hero-name-art--first {
    width: 100%;
  }

  .hero-name-art--last {
    width: 49.28%;
  }

  .hero-eyebrow .eyebrow {
    max-width: 22rem;
    font-size: 0.65rem;
  }

  .hero-footer {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .project-dialog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.25rem;
  }

  .project-dialog-art {
    position: static;
    max-width: 18rem;
    margin-inline: auto;
  }

  .hero-intro {
    font-size: 0.81rem;
  }

  .jump-link {
    gap: 0.7rem;
    font-size: 0.73rem;
  }

  .section-heading {
    flex-direction: column;
    margin-bottom: 2.5rem;
  }

  .section-heading .eyebrow {
    margin-bottom: 1.1rem;
  }

  .project {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 0.2rem;
    min-height: 0;
    padding-top: 1rem;
    padding-bottom: 2.8rem;
  }

  .project-art {
    width: min(100%, 38rem);
    max-height: 21rem;
    margin-inline: auto;
  }

  .project-copy {
    max-width: none;
  }

  .project-index {
    margin-bottom: 1rem;
    font-size: 0.65rem;
  }

  .project-copy h3 {
    font-size: clamp(2.15rem, 8vw, 3.5rem);
  }

  .project-description {
    max-width: 48ch;
    margin-top: 1.2rem;
    font-size: 1rem;
  }

  .cv-entry,
  .skill-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .cv-entry {
    padding-block: 2rem;
  }

  .entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.2rem;
    font-size: 0.7rem;
  }

  .entry-meta p + p {
    margin-top: 0;
  }

  .entry-body ul {
    font-size: 0.96rem;
  }

  .skills {
    margin-top: 3.5rem;
  }

  .skill-row {
    gap: 0.55rem;
  }

  .contact-bottom {
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
  }

  .colophon {
    flex-direction: column;
    gap: 0.3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

}

@media (max-width: 760px) {
  .project-rows {
    gap: 0.6rem;
    padding-block: 0.6rem 1.5rem;
  }

  .project-track {
    gap: var(--project-gap);
  }

  .project-row {
    --project-gap: 0.6rem;
  }

  .project {
    width: min(82vw, 22rem);
    flex-basis: min(82vw, 22rem);
    min-height: 28rem;
    padding: 1rem;
  }
}

/* Print fallback */

@page {
  size: A4;
  margin: 18mm;
}

@media print {
  html {
    scroll-behavior: auto;
  }

  body {
    background: white;
    color: black;
    font-size: 10pt;
    line-height: 1.45;
  }

  body::before,
  .site-header,
  .skip-link,
  .noscript-note,
  .hero-scenery,
  .hero-title::before,
  .hero-eyebrow,
  .carousel-toggle,
  .project-open,
  .project-dialog,
  .education-art,
  .education-direction,
  .jump-link,
  .project-art,
  .contact-links,
  .colophon {
    display: none !important;
  }

  * {
    animation: none !important;
    transition: none !important;
    text-shadow: none !important;
  }

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

  .hero {
    display: block;
    min-height: 0;
    padding: 0 0 5mm;
    overflow: visible;
  }

  .hero-title {
    width: auto;
    margin: 0;
    padding: 0;
    display: block;
  }

  .hero-name-art {
    display: none;
  }

  .hero-name-text {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
    color: black;
    font-family: var(--display);
    font-size: 38pt;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.06em;
    white-space: nowrap;
  }

  .hero-footer {
    display: block;
    margin-top: 3mm;
    color: black;
  }

  .hero-intro {
    max-width: none;
    font-size: 10pt;
  }

  .section,
  .contact-section {
    padding: 5mm 0 0;
    margin: 4mm 0 0;
    background: white;
    color: black;
    border-top: 1px solid #aaa;
  }

  .section-heading,
  .projects-section > .section-heading {
    display: block;
    margin: 0 0 4mm;
    break-after: avoid;
  }

  .research-rows {
    margin-inline: 0;
  }

  .section-heading .eyebrow,
  .contact-section > .eyebrow {
    margin-bottom: 2mm;
    color: #555;
    font-size: 8pt;
  }

  .section-heading h2,
  .contact-section h2 {
    margin: 0;
    font-size: 23pt;
    line-height: 1.05;
  }

  .project-rows,
  .project-row,
  .project-track {
    display: block;
    width: auto;
    overflow: visible;
    padding: 0;
    transform: none;
  }

  .project-track > .project[aria-hidden="true"] {
    display: none;
  }

  .project {
    display: block;
    width: auto;
    flex: none;
    min-height: 0;
    padding: 4mm 0;
    border-top: 1px solid #ccc;
    background: white !important;
    break-inside: avoid;
  }

  .project-copy {
    max-width: none;
    padding: 0;
  }

  .project-index {
    margin-bottom: 1.5mm;
    font-size: 8pt;
  }

  .project-copy h3 {
    font-size: 16pt;
    line-height: 1.15;
  }

  .project-copy h3 br {
    display: none;
  }

  .project-description,
  .project-subtitle {
    max-width: none;
    margin-top: 2mm;
    font-size: 10pt;
  }

  .project-tech {
    margin-top: 2mm;
    font-size: 8pt;
  }

  .project-award {
    margin-bottom: 2mm;
    color: black;
    font-size: 8pt;
  }

  .project-details {
    margin-top: 2mm;
    padding: 0;
    border: 0;
  }

  .project.is-interactive .project-details {
    display: block;
  }

  .project-details ul {
    margin-top: 2mm;
    font-size: 9pt;
  }

  .project-details li + li,
  .entry-body li + li {
    margin-top: 1.5mm;
  }

  .cv-entry {
    grid-template-columns: 35mm minmax(0, 1fr);
    gap: 6mm;
    padding: 4mm 0;
    break-inside: avoid;
  }

  .entry-meta {
    display: block;
    padding: 0;
    font-size: 8pt;
  }

  .entry-meta p + p {
    margin-top: 1mm;
  }

  .entry-body h3 {
    font-size: 14pt;
  }

  .entry-context,
  .entry-body ul {
    font-size: 9pt;
  }

  .entry-body ul {
    margin-top: 2mm;
  }

  .education-timeline {
    overflow: visible;
  }

  .education-journey {
    min-width: 0;
    padding: 0;
  }

  .education-stages {
    display: block;
    margin: 0;
  }

  .education-stages li {
    padding: 3mm 0;
    break-inside: avoid;
  }

  .education-stages h3 {
    font-size: 14pt;
  }

  .education-date,
  .education-location {
    margin: 1mm 0;
    font-size: 8pt;
  }

  .skills {
    margin-top: 5mm;
  }

  .subsection-title {
    margin-bottom: 3mm;
    font-size: 13pt;
    break-after: avoid;
  }

  .skill-row {
    grid-template-columns: 35mm minmax(0, 1fr);
    gap: 6mm;
    padding: 2mm 0;
    break-inside: avoid;
  }

  .skill-row h4 {
    font-size: 8pt;
  }

  .skill-row p {
    line-height: 1.5;
  }

  .contact-email {
    display: inline-block;
    margin-top: 3mm;
    padding: 0;
    border: 0;
    font-size: 15pt;
  }

  .contact-email span {
    display: none;
  }

  .contact-bottom {
    display: block;
    margin-top: 2mm;
  }

  .contact-bottom address {
    font-size: 10pt;
  }
}
