@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  color-scheme: light;
  --ink: #080808;
  --muted: #85858a;
  --paper: #f8f8f8;
  --line: #e9e9e9;
  --lime: #d7ff00;
  --lime-ink: #5b7000;
  --turquoise: #00f0d0;
  --turquoise-ink: #006f68;
  --soft-gray: #f0f1f1;
  --sidebar-width: 338px;
  font-family: 'DM Sans', Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: 'DM Sans', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

.sidebar {
  position: fixed;
  z-index: 3;
  inset: 0 auto 0 0;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  align-items: flex-start;
  padding: 32.5vh 40px 68px 64px;
  border-right: 1px solid #dfe4e2;
  background: var(--soft-gray);
}

.sidebar::after {
  position: absolute;
  top: 0;
  right: -1px;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--turquoise) 0 48%, var(--lime) 52% 100%);
  content: "";
}

.logo {
  margin-bottom: 48px;
  background: linear-gradient(110deg, var(--turquoise-ink) 0 48%, var(--lime-ink) 52% 100%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1;
}

.navigation {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.menu-toggle {
  display: none;
}

.navigation a {
  width: 100%;
  padding: 11px 14px;
  border-left: 4px solid transparent;
  color: #555b5a;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  text-transform: uppercase;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.navigation a:hover {
  border-left-color: var(--turquoise-ink);
  background: rgb(0 240 208 / 22%);
  color: var(--turquoise-ink);
  transform: translateX(3px);
}

.navigation a.active {
  border-left-color: var(--lime-ink);
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
}

.sidebar-footer {
  margin-top: auto;
  color: #88888d;
  font-size: 13px;
  line-height: 1.3;
}

.sidebar-footer p {
  margin: 0 0 7px;
}

.sidebar-footer strong {
  color: var(--turquoise-ink);
  font-weight: 500;
}

main {
  min-height: 100vh;
  margin-left: var(--sidebar-width);
}

.hero {
  position: relative;
  display: flex;
  min-height: 100vh;
  align-items: center;
  overflow: hidden;
  padding: 70px clamp(70px, 8.4vw, 130px);
  background: var(--soft-gray);
}

.hero-circles {
  position: absolute;
  top: 4%;
  left: 5%;
  width: 285px;
  height: 255px;
  pointer-events: none;
}

.hero-circles span {
  position: absolute;
  display: block;
  border: 2px solid var(--turquoise);
  border-radius: 50%;
}

.hero-circles span:nth-child(1) {
  top: 12px;
  left: 42px;
  width: 138px;
  height: 138px;
  background: rgb(0 240 208 / 22%);
}

.hero-circles span:nth-child(2) {
  top: 0;
  left: 144px;
  width: 88px;
  height: 88px;
  border-color: var(--lime-ink);
  background: rgb(215 255 0 / 72%);
}

.hero-circles span:nth-child(3) {
  top: 105px;
  left: 3px;
  width: 82px;
  height: 82px;
  border-color: var(--lime-ink);
  background: rgb(215 255 0 / 72%);
}

.hero-circles span:nth-child(4) {
  top: 117px;
  left: 108px;
  width: 117px;
  height: 117px;
  background: rgb(0 240 208 / 28%);
}

.hero-circles span:nth-child(5) {
  top: 168px;
  left: 198px;
  width: 57px;
  height: 57px;
  border-color: var(--lime-ink);
  background: rgb(215 255 0 / 82%);
}

.hero-circles span:nth-child(6) {
  top: 54px;
  left: 225px;
  width: 36px;
  height: 36px;
  border: 0;
  background: var(--turquoise);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  transform: translateY(70px);
}

.eyebrow {
  margin: 0 0 20px;
  color: #77777c;
  font-size: 16px;
  font-weight: 400;
}

.hero h1 {
  width: max-content;
  max-width: none;
  margin: 0;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--turquoise-ink);
}

.hero h1::after {
  display: block;
  width: 82px;
  height: 5px;
  margin-top: 12px;
  background: var(--lime);
  content: "";
}

.portfolio-button {
  display: inline-flex;
  min-width: 195px;
  height: 53px;
  align-items: center;
  justify-content: center;
  margin-top: 26px;
  padding: 0 24px;
  background: var(--lime);
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  transition: background .2s ease, transform .2s ease;
}

.portfolio-button:hover {
  background: var(--turquoise);
  transform: translateY(-2px);
}

.portrait-frame {
  position: absolute;
  z-index: 2;
  top: calc(50% + 70px);
  right: clamp(70px, 11vw, 170px);
  width: clamp(290px, 24vw, 370px);
  height: clamp(420px, 35vw, 535px);
  transform: translateY(-50%);
  isolation: isolate;
}

.portrait-frame::before,
.portrait-frame::after {
  position: absolute;
  z-index: -1;
  content: '';
}

.portrait-frame::before {
  inset: -20px 20px 20px -20px;
  background: var(--lime);
  transform: rotate(-4deg);
}

.portrait-frame::after {
  z-index: -2;
  inset: -34px -18px 34px 18px;
  border: 2px solid var(--turquoise);
  transform: rotate(4deg);
}

.portrait-frame .portrait-image {
  box-shadow: 0 12px 32px rgb(8 8 8 / 12%);
}

.portrait-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.content-section {
  min-height: 60vh;
  padding: 130px clamp(70px, 8.4vw, 130px);
  border-top: 1px solid var(--line);
}

main > .content-section:nth-of-type(even) {
  background: #fff;
}

main > .content-section:nth-of-type(odd) {
  background: var(--soft-gray);
}

.content-section h2 {
  margin: 0 0 20px;
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 500;
  letter-spacing: -.04em;
  text-transform: uppercase;
}

.content-section h2::after,
#portfolio > h1::after {
  display: block;
  width: 66px;
  height: 4px;
  margin-top: 12px;
  background: linear-gradient(90deg, var(--turquoise) 0 50%, var(--lime) 50% 100%);
  content: "";
}

#apropos > h2,
#portfolio-logos {
  color: var(--turquoise-ink);
}

#skills > h2,
#experiences > h2,
#portfolio-photoshop {
  color: var(--lime-ink);
}

#portfolio-affiches,
#portfolio-infographie {
  color: var(--turquoise-ink);
}

#portfolio-identites {
  color: var(--lime-ink);
}

#contact > h2 {
  color: var(--turquoise-ink);
}

#portfolio > h1 {
  width: fit-content;
  max-width: 100%;
  margin: 0 0 20px;
  color: var(--turquoise-ink);
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 500;
  letter-spacing: -.04em;
  text-transform: uppercase;
}

.content-section > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.content-section > p:not(.eyebrow) strong {
  color: var(--ink);
}

.section-intro {
  max-width: 650px;
  margin-bottom: 38px;
}

.about-details {
  display: grid;
  grid-template-columns: minmax(200px, .75fr) 1fr;
  align-items: stretch;
  gap: 42px;
  margin-top: 54px;
}

.about-photo-placeholder {
  display: grid;
  min-height: 330px;
  place-items: center;
  background: #e7e7e7;
  color: #77777c;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.details-card,
.skill-group,
.interests > div,
.timeline-column {
  padding: 28px;
  border: 1px solid var(--line);
  background: #fff;
}

.details-card h3,
.skill-group h3,
.interests h3,
.timeline-column > h3 {
  margin: 0 0 24px;
  font-size: 17px;
  font-weight: 500;
}

.details-card h3,
.interests h3,
.timeline-column > h3 {
  color: var(--turquoise-ink);
}

.skill-group h3 {
  color: var(--lime-ink);
}

.details-card dl {
  margin: 0;
}

.details-card dl > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.details-card dl > div:last-child {
  border-bottom: 0;
}

.details-card dt {
  color: var(--muted);
}

.details-card dd {
  margin: 0;
}

.details-card dd a:hover,
.contact-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.skill {
  margin-top: 22px;
}

.skill-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 11px;
}

.skill-label span:last-child {
  color: var(--muted);
}

.skill-track {
  height: 4px;
  overflow: hidden;
  background: #e9e9e9;
}

.skill-track span {
  display: block;
  width: var(--level);
  height: 100%;
  background: var(--turquoise-ink);
}

.interests {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 22px;
}

.interests p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 8px 11px;
  border: 1px solid var(--turquoise);
  background: rgb(0 240 208 / 12%);
  color: var(--turquoise-ink);
  font-size: 10px;
}

.portfolio-category {
  margin-top: 58px;
}

.portfolio-category h2 {
  margin: 0 0 20px;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 500;
  letter-spacing: -.03em;
}

.portfolio-category h2::after {
  display: block;
  width: 44px;
  height: 3px;
  margin-top: 8px;
  background: linear-gradient(90deg, var(--lime), var(--turquoise));
  content: "";
}

.carousel-controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 12px;
}

.carousel-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--turquoise);
  border-radius: 50%;
  background: var(--turquoise);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  transition: background .2s ease, color .2s ease;
}

.carousel-button:hover {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}

.carousel-track {
  display: grid;
  grid-auto-columns: minmax(220px, 31%);
  grid-auto-flow: column;
  gap: 18px;
  overflow-x: auto;
  padding: 2px 2px 14px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-color: #aaa transparent;
  scrollbar-width: thin;
}

.carousel-track:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.project-card {
  min-width: 0;
  margin: 0;
  scroll-snap-align: start;
}

.project-card img {
  display: block;
  width: 100%;
  height: 300px;
  cursor: zoom-in;
  object-fit: contain;
}

.project-card video {
  display: block;
  width: 100%;
  height: 300px;
  background: #111;
  object-fit: contain;
}

.project-card img:focus-visible,
.gallery-slide img:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.project-card figcaption {
  padding-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px 18px;
}

.identity-folders {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.identity-folder {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 0 0 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: border-color .2s ease, transform .2s ease;
}

.identity-folder:hover {
  transform: translateY(-4px);
  border-color: var(--turquoise-ink);
  box-shadow: 0 8px 24px rgb(0 111 104 / 12%);
}

.folder-cover {
  display: block;
  width: 100%;
  height: 155px;
  margin-bottom: 5px;
  background: #eee;
  object-fit: cover;
  transition: filter .2s ease;
}

.identity-folder[data-gallery="pqv"] .folder-cover {
  padding: 8px;
  background: #fff;
  object-fit: contain;
}

.identity-folder[data-gallery="serenia"] .folder-cover {
  transform: scale(1.06);
}

.identity-folder:hover .folder-cover {
  filter: brightness(.82);
}

.identity-folder:focus-visible,
.gallery-close:focus-visible,
.modal-carousel-button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.folder-name {
  padding: 0 18px;
  font-size: 16px;
  font-weight: 500;
}

.folder-count {
  padding: 0 18px;
}

.folder-hint {
  margin: 3px 18px 0;
  padding: 7px 10px;
  border: 1px solid var(--lime-ink);
  background: var(--lime);
  color: var(--ink);
  font-size: 10px;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease;
}

.identity-folder:hover .folder-hint,
.identity-folder:focus-visible .folder-hint {
  border-color: var(--turquoise-ink);
  background: var(--turquoise);
  color: var(--ink);
}

.gallery-dialog {
  width: min(900px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100% - 32px);
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}

.gallery-dialog::backdrop {
  background: rgb(0 0 0 / 72%);
}

.gallery-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.gallery-dialog-header h2 {
  margin: 0;
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 500;
}

.gallery-close {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
}

.gallery-carousel {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 12px;
}

.modal-carousel-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--turquoise);
  border-radius: 50%;
  background: var(--turquoise);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}

.gallery-track {
  display: grid;
  grid-auto-columns: 100%;
  grid-auto-flow: column;
  gap: 16px;
  max-height: calc(100vh - 180px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery-slide {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  margin: 0;
  scroll-snap-align: start;
}

.gallery-slide img {
  display: block;
  width: 100%;
  height: min(62vh, 620px);
  cursor: zoom-in;
  object-fit: contain;
}

.gallery-slide figcaption {
  padding-top: 12px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.gallery-position {
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.image-lightbox {
  position: relative;
  width: min(96vw, 1400px);
  max-width: none;
  max-height: 96vh;
  padding: 48px 24px 20px;
  overflow: auto;
  border: 0;
  background: #111;
  color: #fff;
}

.image-lightbox::backdrop {
  background: rgb(0 0 0 / 88%);
}

.image-lightbox figure {
  display: flex;
  min-height: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0;
}

.lightbox-image {
  display: block;
  max-width: 100%;
  max-height: calc(96vh - 100px);
  object-fit: contain;
}

.lightbox-caption {
  color: #ddd;
  font-size: 13px;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 12px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid #666;
  border-radius: 50%;
  background: #222;
  color: #fff;
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
}

.lightbox-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 42px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 15px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.timeline-date {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.timeline-item h4 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 500;
}

.timeline-company {
  margin: 0 0 8px;
  color: var(--turquoise-ink);
  font-size: 11px;
  font-weight: 600;
}

.timeline-missions {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 16px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.timeline-missions li::marker {
  color: var(--lime-ink);
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 42px;
  padding: 32px;
  background: #151515;
  box-shadow: inset 5px 0 var(--lime);
  color: #fff;
}

.contact-panel p {
  max-width: 440px;
  margin: 0;
  color: #bdbdbd;
  font-size: 13px;
  line-height: 1.8;
}

.contact-link {
  display: inline-block;
  flex: 0 0 auto;
  font-size: 15px;
  text-decoration: underline;
  text-decoration-color: var(--turquoise);
  text-underline-offset: 5px;
}

.contact-link span {
  margin-left: 8px;
  color: #bdbdbd;
}

.page-footer {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-left: var(--sidebar-width);
  padding-inline: clamp(70px, 8.4vw, 130px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

.page-footer a {
  color: var(--ink);
}

@media (min-width: 1500px) {
  .portrait-frame {
    right: max(90px, calc((100vw - var(--sidebar-width)) * .12));
  }
}

@media (max-width: 1050px) {
  :root {
    --sidebar-width: 260px;
  }

  .sidebar {
    padding-left: 42px;
  }

  .hero {
    display: block;
    min-height: 100vh;
    padding: 7vh 8%;
  }

  .hero-copy {
    position: absolute;
    right: 8%;
    bottom: 12%;
    left: 8%;
    width: auto;
    transform: none;
  }

  .hero h1 {
    width: auto;
    font-size: clamp(27px, 3.2vw, 34px);
  }

  .portrait-frame {
    top: 8%;
    right: 10%;
    width: min(40vw, 300px);
    height: min(58vw, 430px);
    transform: none;
  }

  .portrait-frame::before {
    inset: -16px 16px 16px -16px;
  }

  .portrait-frame::after {
    inset: -28px -14px 28px 14px;
  }

  .page-footer {
    padding-inline: 8%;
  }

  .about-details {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .about-photo-placeholder {
    min-height: 260px;
  }
}

@media (max-width: 700px) {
  :root {
    --sidebar-width: 0px;
  }

  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 0;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .logo {
    margin-bottom: 0;
    font-size: 30px;
  }

  .menu-toggle {
    display: flex;
    width: 48px;
    height: 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid var(--turquoise-ink);
    border-radius: 4px;
    background: var(--lime);
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--turquoise-ink);
    transition: transform .2s ease, opacity .2s ease;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-8px) rotate(-45deg);
  }

  .menu-toggle:focus-visible {
    outline: 2px solid var(--turquoise-ink);
    outline-offset: 3px;
  }

  .navigation {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    margin-top: 20px;
  }

  .sidebar.menu-open .navigation {
    display: flex;
  }

  .navigation a {
    width: 100%;
    padding: 9px 10px;
    font-size: 10px;
  }

  .sidebar::after {
    top: auto;
    right: 0;
    bottom: -1px;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--turquoise) 0 48%, var(--lime) 52% 100%);
  }

  .sidebar-footer {
    display: none;
  }

  main {
    margin-left: 0;
  }

  .hero {
    min-height: calc(100svh - 120px);
    align-items: flex-end;
    padding: 70px 28px 54px;
  }

  .hero-copy {
    position: absolute;
    z-index: 3;
    right: 28px;
    bottom: 54px;
    left: 28px;
    width: auto;
    transform: none;
  }

  .hero h1 {
    position: relative;
    z-index: 1;
    width: auto;
    max-width: 100%;
    font-size: clamp(27px, 7vw, 38px);
  }

  .hero .eyebrow {
    font-size: 13px;
  }

  .hero-circles {
    top: 1%;
    left: 5%;
    transform: scale(.7);
    transform-origin: top left;
  }

  .portrait-frame {
    top: 7%;
    right: 13%;
    width: min(64vw, 285px);
    height: min(76vw, 390px);
    transform: none;
  }

  .portrait-frame::after {
    inset: -10px -10px 10px 10px;
  }

  .content-section {
    min-height: 0;
    padding: 82px 28px;
  }

  .content-section h2 {
    font-size: clamp(29px, 8vw, 44px);
  }

  .carousel-track {
    grid-auto-columns: 82%;
    gap: 14px;
  }

  .portfolio-grid,
  .identity-folders {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-card img {
    height: 260px;
  }

  .project-card video {
    height: 260px;
  }

  .identity-folder {
    min-height: 0;
  }

  .folder-cover {
    height: 190px;
  }

  .gallery-dialog {
    padding: 16px;
  }

  .gallery-carousel {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 6px;
  }

  .modal-carousel-button {
    width: 34px;
    height: 34px;
  }

  .gallery-slide img {
    height: 58vh;
  }

  .about-details,
  .skills-grid,
  .interests,
  .timeline-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .about-photo-placeholder {
    min-height: 280px;
  }

  .details-card,
  .skill-group,
  .interests > div,
  .timeline-column {
    padding: 22px;
  }

  .details-card dl > div {
    grid-template-columns: 92px 1fr;
  }

  .contact-panel {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px;
  }

  .page-footer {
    min-height: 68px;
    margin-left: 0;
    padding-inline: 28px;
  }
}

@media (max-width: 380px) {
  .sidebar {
    padding-inline: 20px;
  }

  .navigation {
    column-gap: 14px;
  }

  .hero {
    padding-inline: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
  }
}
