/* ---------- Base ---------- */
:root {
  --bg: #0b0b0b;
  --bg-2: #181818;
  --ink: #f4f2ee;
  --soft: #cfccc6;
  --muted: #8f8c87;
  --line: rgba(244, 242, 238, 0.2);
  --font: "League Spartan", system-ui, sans-serif;
  --pad: clamp(20px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
strong { font-weight: 600; }

.doodle { color: var(--ink); overflow: visible; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--pad);
  background: rgba(11, 11, 11, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.is-scrolled { border-color: var(--line); }
.nav__logo { font-weight: 700; font-size: 18px; }
.nav__links { display: flex; gap: 32px; font-size: 16px; }
.nav__links a { color: var(--muted); transition: color .2s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(56px, 11vh, 130px) var(--pad) 72px; }
.hero__title {
  display: flex; flex-direction: column;
  font-weight: 700;
  font-size: clamp(36px, 6.2vw, 100px);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.hero__title span:last-child { align-self: flex-end; text-align: right; }
.hero__x { position: relative; align-self: center; font-weight: 300; }
.doodle--flower {
  position: absolute; left: 110%; top: 10%;
  width: 0.7em; height: 0.7em;
  animation: spin 18s linear infinite;
}
.hero__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-top: 44px; }
.hero__intro { max-width: 44ch; font-size: 21px; color: var(--soft); }
.hero__cv { display: inline-block; margin-top: 14px; font-size: 17px; color: var(--ink); border-bottom: 1px solid currentColor; padding-bottom: 2px; transition: opacity .2s; }
.hero__cv:hover { opacity: .6; }
/* Étoiles blanches pleines, en haut à droite à côté du titre */
.hero__stars { position: absolute; right: var(--pad); top: clamp(40px, 8vh, 100px); width: 150px; height: 120px; }
.hero__stars .doodle { position: absolute; color: #fff; }
.hero__stars .s1 { width: 44px; height: 44px; left: 30px; top: 0; }
.hero__stars .s2 { width: 64px; height: 64px; left: 0; top: 50px; transform: rotate(-12deg); }
.hero__stars .s3 { width: 56px; height: 56px; left: 80px; top: 36px; transform: rotate(14deg); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes twinkle { 50% { opacity: .45; } }

/* ---------- Sections ---------- */
.section { padding: 0 var(--pad) 130px; }
.section__head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 14px; margin-bottom: 44px;
  border-bottom: 1px solid var(--ink);
}
.section__head h2, .section__head span { font-size: 17px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.section__head--sub { margin-top: 100px; }

/* ---------- Filtres ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 48px; }
.filters button {
  padding: 8px 16px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 15px;
  color: var(--soft);
  transition: background .2s, color .2s, border-color .2s;
}
.filters button:hover { border-color: var(--ink); color: var(--ink); }
.filters button.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); font-weight: 500; }

/* ---------- Projets ---------- */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 80px 36px; }
.project.is-hidden { display: none; }
.project--wide { grid-column: 1 / -1; }
.project__media {
  position: relative; aspect-ratio: 4 / 3;
  border-radius: 14px; overflow: hidden; background: var(--bg-2);
}
.project__media img, .project__media video { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.project__open:hover .project__media video { transform: scale(1.03); }
.quote { margin: 32px 0 0; padding-left: 20px; border-left: 2px solid var(--ink); font-size: 19px; font-style: italic; color: var(--ink); }
.quote cite { display: block; margin-top: 10px; font-size: 15px; color: var(--muted); }
/* Titre au-dessus du visuel */
.project__open { display: flex; flex-direction: column; width: 100%; text-align: left; padding: 0; }
.project__open .project__top { order: 0; margin-top: 0; }
.project__open h3 { order: 1; }
.project__open .project__pitch { order: 2; margin-bottom: 20px; }
.project__open .project__media { order: 3; }
.project__open:hover .project__media img { transform: scale(1.03); }
.project__open:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.project__open:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; border-radius: 14px; }
.project__top {
  display: flex; justify-content: space-between;
  padding-bottom: 10px; margin: 20px 0 12px;
  border-bottom: 1px solid var(--line);
  font-size: 15px; color: var(--muted); font-style: italic;
}
.project h3 { font-size: clamp(26px, 2.4vw, 34px); font-weight: 700; line-height: 1.05; letter-spacing: -0.01em; }
.project--wide .project__media { aspect-ratio: 16 / 8; }
.project--wide h3 { font-size: clamp(34px, 4vw, 56px); }
.project__pitch { margin-top: 8px; color: var(--soft); }

/* ---------- Panneau de détail ---------- */
.panel {
  margin: 0 0 0 auto; height: 100vh; max-height: 100vh;
  width: min(620px, 100vw); padding: 64px 48px 48px;
  background: var(--bg-2); color: var(--ink);
  border: 0; border-left: 1px solid var(--line);
  overflow-y: auto;
}
.panel[open] { animation: slide-in .35s ease; }
.panel::backdrop { background: rgba(0, 0, 0, .6); }
@keyframes slide-in { from { transform: translateX(40px); opacity: 0; } }
.panel__close { position: absolute; top: 16px; right: 22px; font-size: 34px; line-height: 1; color: var(--muted); }
.panel__close:hover { color: var(--ink); }
.panel__top { font-size: 15px; color: var(--muted); font-style: italic; }
.panel__title { margin: 8px 0 24px; font-size: clamp(32px, 4vw, 48px); font-weight: 700; line-height: 1.02; }
.panel__body > p { color: var(--soft); }
.panel__body > p + p { margin-top: 14px; }
.panel__body .detail__ctx { color: var(--muted); font-size: 16px; margin-bottom: 20px; }
.panel .tags { margin-top: 28px; }
.panel .links { margin-top: 28px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tags li { font-size: 14px; padding: 5px 12px 3px; border: 1px solid var(--line); border-radius: 999px; color: var(--soft); }
.links { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 20px; font-size: 16px; font-weight: 500; }
.links a { border-bottom: 1px solid var(--ink); padding-bottom: 1px; transition: opacity .2s; }
.links a:hover { opacity: .6; }
.links a[href="#"] { opacity: .35; border-bottom-style: dashed; pointer-events: none; }

/* Placeholders tant qu'il n'y a pas d'image */
.placeholder { display: none; }
.is-empty img, .is-empty video { display: none; }
.is-empty .placeholder {
  display: grid; place-items: center; position: absolute; inset: 0;
  color: var(--muted); font-size: 14px;
  border: 1px dashed var(--line); border-radius: inherit;
}

/* ---------- À propos ---------- */
.about { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: 56px; align-items: start; }
.about__photo { position: relative; aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden; background: #2a2a2a; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
/* Photo : fond gris foncé, coupée à la hauteur de la fin du texte */
@media (min-width: 961px) {
  .about { align-items: stretch; }
  .about__photo { aspect-ratio: auto; min-height: 440px; }
  .about__photo img { position: absolute; inset: 0; object-position: center top; }
}
.about__lead { font-size: clamp(24px, 2.6vw, 36px); font-weight: 500; line-height: 1.2; margin-bottom: 28px; max-width: 26ch; }
.about__text > p:not(.about__lead) { color: var(--soft); max-width: 62ch; }
.about__cv { display: inline-block; margin-top: 28px; font-weight: 500; border-bottom: 1px solid var(--ink); }
.about__cv:hover { opacity: .6; }

/* ---------- Parcours condensé ---------- */
.cv { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 96px; }
.cv__title { font-size: 15px; font-weight: 500; color: var(--muted); font-style: italic; margin-bottom: 10px; }
.cv__title--gap { margin-top: 48px; }
.cv__list li {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: baseline;
  padding: 12px 0 10px; border-top: 1px solid var(--line);
}
.cv__list span { color: var(--muted); font-size: 15px; }
.cv__list strong { font-weight: 500; }
.cv__list em { font-style: normal; color: var(--muted); font-size: 16px; text-align: right; }
.cv__detail { grid-column: 2 / -1; margin-top: -8px; color: var(--soft); font-size: 15px; line-height: 1.45; }
.cv__tools { padding: 12px 0 10px; border-top: 1px solid var(--line); color: var(--soft); }

/* ---------- Contact ---------- */
.contact { padding: 0 var(--pad) 40px; }
.contact__lead { font-size: clamp(24px, 3vw, 36px); color: var(--soft); }
.contact__mail {
  display: inline-block; margin-top: 18px;
  font-weight: 700; font-size: clamp(28px, 6.4vw, 100px); line-height: 1.05; letter-spacing: -0.02em;
  word-break: break-all;
  border-bottom: 3px solid transparent; transition: border-color .25s;
}
.contact__mail:hover { border-color: var(--ink); }
.contact__bottom {
  display: flex; flex-wrap: wrap; gap: 16px 40px;
  margin-top: 120px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 16px; color: var(--muted);
}
.contact__bottom a:hover { color: var(--ink); }
.contact__bottom span:last-child { margin-left: auto; }

/* ---------- Liste compacte des projets (accueil) ---------- */
.worklist { border-bottom: 1px solid var(--line); }
.worklist .project { border-top: 1px solid var(--line); }
.worklist .project.is-hidden { display: none; }
.worklist a {
  display: grid;
  grid-template-columns: 1fr 220px 90px;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0 14px;
  transition: color .2s, padding .3s ease;
}
.wl-num, .wl-year { color: var(--muted); font-size: 15px; font-style: italic; }
.wl-title { font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--muted); transition: text-decoration-color .2s; }
.worklist a:hover .wl-title { text-decoration-color: currentColor; }
.wl-cat { color: var(--soft); font-size: 16px; }
.wl-year { text-align: right; }
.worklist a:hover { padding-left: 10px; }
@media (max-width: 680px) {
  .worklist a { grid-template-columns: 1fr; gap: 2px 12px; }
  .wl-num { display: none; }
  .wl-title { grid-column: 1; }
  .wl-cat { grid-column: 1; font-size: 14px; }
  .wl-year { grid-column: 1; text-align: left; font-size: 14px; }
}

/* ---------- Liste de projets sans visuels (accueil) ---------- */
.projects { grid-template-columns: 1fr; gap: 0; border-bottom: 1px solid var(--line); }
.project { border-top: 1px solid var(--line); }
.project .project__open {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  grid-template-areas: "meta title arrow" "meta pitch arrow";
  column-gap: 40px;
  align-items: baseline;
  padding: 30px 0 28px;
}
.project .project__top {
  grid-area: meta; flex-direction: column; justify-content: flex-start; gap: 2px;
  margin: 0; padding: 4px 0 0; border: 0;
}
.project .project__open h3 { grid-area: title; font-size: clamp(30px, 3.6vw, 52px); transition: transform .35s ease; }
.project .project__pitch { grid-area: pitch; margin: 8px 0 0; }
.project .project__open::after {
  content: "→"; grid-area: arrow; align-self: center;
  font-size: 28px; color: var(--muted);
  transition: transform .35s ease, color .25s;
}
.project .project__open:hover h3 { text-decoration: none; transform: translateX(10px); }
.project .project__open:hover::after { color: var(--ink); transform: translateX(6px); }
.detail__media { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--bg); margin-bottom: 24px; }
.detail__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 680px) {
  .project .project__open { grid-template-columns: 1fr auto; grid-template-areas: "meta arrow" "title arrow" "pitch arrow"; }
  .project .project__top { flex-direction: row; gap: 10px; margin-bottom: 6px; }
}

/* ---------- Visuel composé Diggin' (totem + écrans) ---------- */
.showcase {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  align-items: center;
  gap: 2%;
  padding: 0 4%;
  background:
    radial-gradient(ellipse 45% 70% at 22% 55%, rgba(123,44,255,.35), transparent 70%),
    radial-gradient(ellipse 40% 60% at 75% 100%, rgba(224,102,44,.28), transparent 75%),
    radial-gradient(ellipse 40% 60% at 60% 0%, rgba(39,210,255,.18), transparent 75%),
    #0a0a0c;
}
.showcase__totem { position: relative; aspect-ratio: 1; width: 100%; }
.showcase__totem canvas { width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .6s ease; }
.showcase__totem canvas.on { opacity: 1; }
.totem-fallback::before {
  content: ""; position: absolute; inset: 18%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0 4%, transparent 12%),
              conic-gradient(from 200deg, #d9733a, #c53e8d, #7931c5, #1dbcdd, #d9733a);
  filter: blur(2px); opacity: .85;
}
.showcase__phones { display: flex; justify-content: center; align-items: center; gap: 4%; height: 100%; }
.showcase__phones img {
  width: 28%; height: auto; aspect-ratio: auto;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0,0,0,.55);
  transition: transform .5s ease;
}
.project__open:hover .showcase__phones img { transform: none; }
.showcase__phones img:nth-child(2) { transform: translateY(-6%); width: 31%; }
.project__open:hover .showcase__phones img:nth-child(1) { transform: translateY(-3%) rotate(-2deg); }
.project__open:hover .showcase__phones img:nth-child(2) { transform: translateY(-9%); }
.project__open:hover .showcase__phones img:nth-child(3) { transform: translateY(-3%) rotate(2deg); }
.project__media.showcase img { object-fit: contain; }

/* ---------- Page projet ---------- */
.case { padding: 40px var(--pad) 120px; }
.case__back { color: var(--muted); font-size: 16px; }
.case__back:hover { color: var(--ink); }
.case__head { margin: 56px 0 48px; }
.case__meta { color: var(--muted); font-style: italic; font-size: 16px; }
.case__title { font-size: clamp(56px, 11vw, 170px); font-weight: 700; line-height: .9; letter-spacing: -0.03em; margin-top: 10px; }
.case__pitch { margin-top: 24px; font-size: clamp(20px, 2vw, 26px); color: var(--soft); max-width: 40ch; }
.case__video {
  position: relative; aspect-ratio: 16 / 9;
  border-radius: 16px; overflow: hidden; background: var(--bg-2);
}
.case__video video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.case__video img { width: 100%; height: 100%; object-fit: cover; }
.case__site { display: inline-block; margin-top: 24px; font-weight: 600; font-size: 20px; border-bottom: 1px solid var(--ink); }
.case__site:hover, .case__text a:hover, .case__facts a:hover { opacity: .6; }
.case__text a, .case__facts a { border-bottom: 1px solid currentColor; }
.about__text a, .cv__list a { border-bottom: 1px solid currentColor; transition: opacity .2s; }
.about__text a:hover, .cv__list a:hover { opacity: .6; }
.case__gallery { margin-top: 100px; }
.case__gallery h2 { font-size: 17px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; padding-bottom: 14px; margin-bottom: 32px; border-bottom: 1px solid var(--ink); }
.case__note { margin: -16px 0 24px; font-size: 14px; color: var(--muted); font-style: italic; }
.case__totem { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 8; }
.case__totem figcaption { position: absolute; left: 4%; bottom: 5%; font-size: 14px; color: var(--muted); font-style: italic; }

/* ---------- Galeries : petites vignettes, clic pour agrandir ----------
   Visuels horizontaux : 280 px de large. Visuels verticaux (écrans, pages, affiche) : 160 px. */
.case__gallery:has(.gallery) { margin-top: 64px; }
.gallery { display: flex; flex-wrap: wrap; gap: 20px; }
.gallery figure { position: relative; width: 280px; }
.gallery--screens figure, .gallery--pages figure, .gallery--portrait figure { width: 160px; }
.gallery a { display: block; cursor: zoom-in; }
.gallery img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; border-radius: 10px; background: var(--bg-2); transition: opacity .2s; }
.gallery a:hover img { opacity: .85; }
.gallery--pages img, .gallery--portrait img { aspect-ratio: 946 / 1700; border: 1px solid var(--line); }
.gallery--portrait img { border: 0; }
.gallery--square figure { width: 220px; }
.gallery--square img { aspect-ratio: 1 / 1; object-position: center; border: 1px solid var(--line); }
.gallery--screens img { aspect-ratio: auto; height: auto; object-fit: initial; border-radius: 14px; background: none; }
.gallery figcaption { margin-top: 8px; font-size: 14px; line-height: 1.35; color: var(--muted); font-style: italic; }

/* Visionneuse plein écran */
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(11, 11, 11, .94); overflow-y: auto; overscroll-behavior: contain; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img { width: min(1200px, 100% - 2 * var(--pad)); margin: 72px auto; border-radius: 12px; transform: scale(.96); transition: transform .3s; cursor: zoom-out; }
.lightbox.is-open .lightbox__img { transform: none; }
.lightbox--narrow .lightbox__img { width: min(440px, 100% - 2 * var(--pad)); }
.lightbox__close { position: fixed; top: 18px; right: 22px; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--bg); font-size: 24px; line-height: 1; display: grid; place-items: center; }
.lightbox__close:hover { background: var(--soft); }
body.has-lightbox { overflow: hidden; }

/* Logos : chaque version sur son fond */
.logo-tile { display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 10px; padding: 12% 16%; }
.logo-tile--clair { background: #f4f2ee; }
.logo-tile--sombre { background: #121e43; }
.gallery .logo-tile img { aspect-ratio: auto; width: 100%; height: auto; object-fit: contain; border-radius: 0; background: none; }
/* Maquette sur fond clair (les bords noirs des téléphones disparaîtraient sur le fond du site) */
.case__mockup { max-width: 760px; border-radius: 16px; background: #e3e3ee; padding: 40px 6% 8px; }
.case__mockup img { width: 100%; max-width: 520px; height: auto; display: block; margin: 0 auto; }
.case__video--fit { aspect-ratio: auto; }
.case__video--fit img { height: auto; display: block; }

@media (max-width: 680px) {
  .gallery figure { width: calc(50% - 10px); }
  .gallery--screens figure, .gallery--pages figure, .gallery--portrait figure { width: calc(33.333% - 14px); }
  .case__totem { aspect-ratio: auto; grid-template-columns: 1fr; padding: 6% 4% 12%; }
  .case__totem .showcase__totem { width: 70%; margin: 0 auto; }
}
.case__grid { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: 64px; margin-top: 80px; }
.case__facts div { padding: 12px 0 10px; border-top: 1px solid var(--line); }
.case__facts dt { font-size: 14px; color: var(--muted); font-style: italic; }
.case__facts dd { margin: 2px 0 0; }
.case__text { max-width: 68ch; }
.case__text h2 { font-size: 17px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 14px; }
.case__text h2:not(:first-child) { margin-top: 48px; }
.case__text > p { color: var(--soft); font-size: 20px; }
.case__press a { font-weight: 600; }
.case__press span { display: block; margin-top: 6px; font-size: 15px; color: var(--muted); }
.case__steps { counter-reset: step; }
.case__steps li { counter-increment: step; position: relative; padding: 16px 0 14px 56px; border-top: 1px solid var(--line); color: var(--soft); }
.case__steps li::before { content: "0" counter(step); position: absolute; left: 0; top: 16px; color: var(--muted); font-style: italic; }
.case__steps strong { display: block; color: var(--ink); font-size: 20px; margin-bottom: 2px; }
.case__note { margin-top: 24px; color: var(--muted); font-size: 13px; font-style: italic; }
/* En-tête Diggin' : titre à gauche, totem à droite */
.case__head--totem { display: grid; grid-template-columns: 1fr minmax(220px, 380px); align-items: center; gap: 40px; }
.head-totem { width: 100%; }
@media (max-width: 680px) {
  .case__head--totem { grid-template-columns: 1fr; gap: 8px; }
  .head-totem { max-width: 260px; margin: 0 auto; }
}

/* Visuels des pages projets : plus compacts */
.case__video { max-width: 760px; }
.case__totem { max-width: 860px; background: none; padding: 0; border-radius: 0; }
.case__next {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 120px; padding: 24px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line);
  font-size: clamp(28px, 4vw, 56px); font-weight: 700; letter-spacing: -0.02em;
}
.case__next:hover span:last-child { transform: translateX(8px); }
.case__next span:last-child { transition: transform .25s; }
.contact--small .contact__bottom { margin-top: 0; }
@media (max-width: 960px) { .case__grid { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Apparition au scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .doodle, .hero__stars .doodle { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .about { grid-template-columns: 1fr; }
  .about__photo { max-width: 320px; }
  .cv { grid-template-columns: 1fr; gap: 0; margin-top: 64px; }
  .cv__col + .cv__col { margin-top: 48px; }
}
@media (max-width: 680px) {
  .nav__links { display: none; }
  .project--wide .project__media { aspect-ratio: 4 / 3; }
  .project--wide .project__media.showcase { aspect-ratio: auto; grid-template-columns: 1fr; padding: 6% 4% 8%; }
  .showcase__totem { width: 60%; margin: 0 auto; }
  .cv__list li { grid-template-columns: 80px 1fr; }
  .cv__list em { grid-column: 2; text-align: left; }
  .panel { padding: 56px 24px 32px; }
  .hero__title span:last-child { align-self: flex-start; text-align: left; }
  .hero__x { align-self: flex-start; }
  .hero__foot { flex-direction: column; align-items: flex-start; }
  .hero__stars { top: 20px; transform: scale(.6); transform-origin: top right; }
  .projects { grid-template-columns: 1fr; gap: 64px; }
  .skills { grid-template-columns: 1fr; }
  .contact__bottom span:last-child { margin-left: 0; }
}
