/* WordPress / Twenty Twenty-Five neutralizers */

html {
  background:var(--site-bg);
}

body {
  min-height:100vh;
}

.wp-site-blocks {
  padding:0 !important;
  margin:0 !important;
}

.wp-site-blocks > * {
  margin-block-start:0 !important;
}

.wp-block-html {
  margin:0 !important;
  max-width:none !important;
}

* {
  box-sizing:border-box;
}


/* =========================================================
   GLOBAL
   ========================================================= */

body {
  margin:0;
  padding:44px 46px;
  background:var(--site-bg);
  color:var(--site-text);
  font-family:Menlo, Monaco, "Courier New", monospace;
  font-size:14px;
  line-height:1.52;
  font-weight:400;
}

main {
  max-width:840px;
}

h1 {
  margin:0;
  font-size:16px;
  font-weight:400;
  letter-spacing:.07em;
}

.rule {
  color:var(--site-muted);
  margin:5px 0 25px;
  white-space:nowrap;
  overflow:hidden;
}
.ascii-header {
  color: var(--site-text);
}

.intro {
  margin-bottom:64px;
  font-size:16px;
  line-height:1.55;
}

.section {
  display:grid;
  grid-template-columns:210px minmax(0,1fr);
  column-gap:44px;
  align-items:start;
  margin-bottom:72px;
}

.ascii {
  white-space:pre;
  font-size:14px;
  line-height:1.08;
  color:var(--site-ascii);
  margin:0;
  overflow:visible;
}

.section-title {
  font-size:16px;
  letter-spacing:.04em;
  margin:0 0 16px;
}

.project {
  display:grid;
  grid-template-columns:70px 18px minmax(0,1fr);
  min-height:29px;
  align-items:baseline;
  font-size:14px;
}

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

.simple {
  display:grid;
  grid-template-columns:18px minmax(0,1fr);
  min-height:31px;
  align-items:baseline;
  font-size:14px;
}

.prompt {
  visibility:hidden;
}

a {
  color:inherit;
  text-decoration:none;
  width:max-content;
  max-width:100%;
}

.cursor {
  display:none;
  margin-left:3px;
}

.project:hover .prompt,
.simple:hover .prompt,
.project:focus-within .prompt,
.simple:focus-within .prompt {
  visibility:visible;
}

.project:hover .cursor,
.simple:hover .cursor,
.project:focus-within .cursor,
.simple:focus-within .cursor {
  display:inline;
  animation:blink .9s steps(1) infinite;
}

@keyframes blink {
  0%,49% {
    opacity:1;
  }

  50%,100% {
    opacity:0;
  }
}

.footer {
  color:var(--site-muted);
  margin-top:54px;
  font-size:14px;
  letter-spacing:.04em;
}


/* =========================================================
   ASCII ICON MICRO-GLITCH
   ========================================================= */

.ascii {
  cursor:default;
}

.ascii-char {
  display:inline-block;
  will-change:transform;
  transition:transform 70ms linear;
}

.ascii-char.space {
  width:.6em;
}

.ascii-char.jitter {
  transform:translate(var(--dx), var(--dy));
}


/* =========================================================
   WARM CRT CREAM CONTRAST
   ========================================================= */

body {
  color:var(--site-text) !important;
}

.ascii {
  color:var(--site-ascii) !important;
}

.year {
  color:var(--site-muted)!important;
}

.rule,
.footer {
  color:var(--site-muted)!important;
}

.section-title,
a {
  color:var(--site-text);
}

.prompt,
.cursor {
  color:var(--site-text);
}


/* =========================================================
   LINK MICRO-GLITCH
   ========================================================= */

a.glitch-link {
  position:relative;
  display:inline-block;
  transition:transform 100ms ease;
}

a.glitch-link .glitch-copy {
  position:absolute;
  inset:0 auto auto 0;
  pointer-events:none;
  opacity:0;
  white-space:nowrap;
}

a.glitch-link.glitching .glitch-copy.one {
  color:#7a2f2a;
  opacity:.42;
  animation:glitch-one 220ms steps(3, end) 1;
}

a.glitch-link.glitching .glitch-copy.two {
  color:#2d5a58;
  opacity:.34;
  animation:glitch-two 220ms steps(3, end) 1;
}

a.glitch-link.glitching {
  animation:glitch-main 220ms steps(3, end) 1;
}

@keyframes glitch-main {
  0% {
    transform:translateX(0);
  }

  22% {
    transform:translateX(-1px);
  }

  45% {
    transform:translateX(2px);
  }

  68% {
    transform:translateX(-1px);
  }

  100% {
    transform:translateX(0);
  }
}

@keyframes glitch-one {
  0% {
    transform:translate(-2px,0);
    clip-path:inset(0 0 72% 0);
  }

  33% {
    transform:translate(2px,-1px);
    clip-path:inset(38% 0 37% 0);
  }

  66% {
    transform:translate(-1px,1px);
    clip-path:inset(72% 0 0 0);
  }

  100% {
    transform:translate(0,0);
    opacity:0;
  }
}

@keyframes glitch-two {
  0% {
    transform:translate(2px,1px);
    clip-path:inset(68% 0 4% 0);
  }

  33% {
    transform:translate(-2px,0);
    clip-path:inset(14% 0 61% 0);
  }

  66% {
    transform:translate(1px,-1px);
    clip-path:inset(48% 0 25% 0);
  }

  100% {
    transform:translate(0,0);
    opacity:0;
  }
}


/* =========================================================
   VIDEOART DIVIDER
   ========================================================= */

.videoart-divider {
  margin:18px 0 10px;
  color:var(--site-muted);
  white-space:pre;
}


/* =========================================================
   PROJECT PAGE — v3c
   ========================================================= */

.project-page {
  max-width:840px;
  font-size:15px;
  line-height:1.55;
}

.project-page .topnav {
  margin-bottom:58px;
}

.project-page .back {
  display:inline-block;
  position:relative;
}

.project-page .back::before {
  content:"< ";
}

.project-page h1 {
  margin:0;
  font-size:22px;
  font-weight:400;
  letter-spacing:.04em;
}

.project-page .rule {
  margin:7px 0 24px;
}

.project-page .meta {
  display:grid;
  grid-template-columns:100px minmax(0,1fr);
  row-gap:5px;
  margin-bottom:50px;
}

.project-page .meta-key {
  color:var(--site-muted);
}

.project-page .lead {
  max-width:700px;
  font-size:17px;
  line-height:1.6;
  margin-bottom:64px;
}

.project-page section {
  margin-bottom:66px;
}

.project-page .section-title {
  margin-bottom:22px;
  letter-spacing:.04em;
}

.project-page .two-col {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:42px;
  align-items:start;
}

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

.project-page .copy p {
  margin:0 0 18px;
}

.project-page .media-stack {
  display:grid;
  gap:18px;
}

.project-page .media-block {
  border-top:1px solid var(--site-muted);
  border-bottom:1px solid var(--site-muted);
  min-height:230px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--site-muted);
  margin:0;
}

.project-page .media-block.small {
  min-height:170px;
}

.project-page .info {
  display:grid;
  grid-template-columns:120px minmax(0,1fr);
  row-gap:7px;
  max-width:none;
}

.project-page .info-key {
  color:var(--site-muted);
}

.project-page .footer {
  margin-top:76px;
}

.project-page .full-project-link {
  margin:34px 0 64px;
  white-space:nowrap;
  overflow:visible;
}

.project-page .full-project-link a {
  position:relative;
  display:inline-block;
  color:var(--site-accent);
}

.project-page .collab-group {
  margin-bottom:24px;
}

.project-page .collab-label {
  color:var(--site-muted);
  margin-bottom:6px;
}

.project-page .collab-list {
  line-height:1.7;
}


/* =========================================================
   PROJECT — HERO MEDIA
   ========================================================= */

.project-page .hero-media {
  width:100%;
  min-height:0;
  padding:0;
  overflow:hidden;
  border:0;
}

.project-page .hero-media img {
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}

/* =========================================================
   PROJECT — HERO VIDEO
   ========================================================= */

.project-page .hero-media:has(.project-hero-video) {
  height:auto !important;
  aspect-ratio:16 / 9;
}

.project-page .hero-media .project-hero-video {
  width:100%;
  height:100%;
  aspect-ratio:16 / 9;
}

.project-page .hero-media .project-hero-video iframe {
  display:block;
  width:100%;
  height:100%;
  aspect-ratio:16 / 9;
  border:0;
}

/* =========================================================
   PROJECT — CONTENT IMAGES
   ========================================================= */

.project-page .project-images {
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:18px;
  margin-top:42px;
  align-items:stretch;
}

/* One image: full width */

.project-page .project-images .project-image:only-child {
  grid-column:1 / -1;
}

/* Two images: two equal columns */

.project-page .project-images:has(.project-image:nth-child(2):last-child) {
  grid-template-columns:repeat(2, minmax(0,1fr));
}

/* Every project image has the same visible height */

.project-page .project-image {
  min-width:0;
  height:260px;
  overflow:hidden;
}

/* Crop each image to fill its equal-height frame */

.project-page .project-image img {
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

/* =========================================================
   PROJECT — MEDIA
   ========================================================= */

.project-page .project-media {
  display:grid;
  gap:36px;
}

.project-page .project-media > * {
  margin:0;
  max-width:100%;
}

.project-page .media-scroll-hint {
  margin:0 0 10px;
  color:var(--site-muted);
  font-size:12px;
  letter-spacing:.08em;
  text-align:right;
}

/* STANDARD IMAGES */

.project-page .project-media > figure:not(.wp-block-gallery) {
  margin:0;
}

.project-page .project-media > figure:not(.wp-block-gallery) img {
  display:block;
  max-width:100%;
  height:auto;
}


/* VIDEO */

.project-page .project-media video {
  display:block;
  width:100%;
  height:auto;
}

/* YOUTUBE / VIDEO EMBEDS */

.project-page .project-media .wp-block-embed {
  width:100%;
  margin:0;
}

.project-page .project-media .wp-block-embed__wrapper {
  position:relative;
  width:100%;
  aspect-ratio:16 / 9;
}

.project-page .project-media .wp-block-embed__wrapper iframe {
  display:block;
  width:100%;
  height:100%;
  border:0;
}


/* HORIZONTAL GALLERY */

.project-page .project-media .wp-block-gallery {
  display:flex !important;
  flex-wrap:nowrap !important;
  align-items:flex-start;
  gap:18px;

  width:100%;
  overflow-x:auto;
  overflow-y:hidden;

  padding:0 0 14px;
  margin:0;

  scroll-snap-type:x proximity;
  -webkit-overflow-scrolling:touch;
}


/* GALLERY ITEMS */

.project-page .project-media .wp-block-gallery > figure.wp-block-image {
  flex:0 0 auto !important;
  width:auto !important;
  margin:0 !important;

  scroll-snap-align:start;
}


/* GALLERY IMAGES */

.project-page .project-media .wp-block-gallery > figure.wp-block-image img {
  display:block;
  width:auto !important;
  height:300px !important;
  max-width:none !important;
  object-fit:contain;
}


/* SCROLLBAR */

.project-page .project-media .wp-block-gallery {
  scrollbar-width:thin;
  scrollbar-color:var(--site-muted)transparent;
}

.project-page .project-media .wp-block-gallery::-webkit-scrollbar {
  height:6px;
}

.project-page .project-media .wp-block-gallery::-webkit-scrollbar-track {
  background:transparent;
}

.project-page .project-media .wp-block-gallery::-webkit-scrollbar-thumb {
  background:var(--site-muted);
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion:reduce) {

  .cursor {
    animation:none !important;
  }

  .ascii-char {
    transition:none;
    transform:none !important;
  }

  a.glitch-link,
  a.glitch-link .glitch-copy {
    animation:none !important;
  }
}


/* =========================================================
   HOMEPAGE MOBILE
   ========================================================= */

@media(max-width:720px) {

  body {
    padding:24px 20px;
    font-size:14px;
  }

  .intro {
    font-size:14px;
    margin-bottom:48px;
  }

  .section {
    grid-template-columns:1fr;
    row-gap:18px;
    margin-bottom:56px;
  }

  .ascii {
    font-size:12px;
  }

  .section-title {
    font-size:15px;
  }

  .project {
    grid-template-columns:58px 16px minmax(0,1fr);
    font-size:14px;
  }

  .simple {
    grid-template-columns:16px minmax(0,1fr);
    font-size:14px;
  }
}


/* =========================================================
   PROJECT PAGE MOBILE
   ========================================================= */

@media(max-width:700px) {

  .project-page {
    font-size:14px;
  }

  .project-page h1 {
    font-size:18px;
  }

  .project-page .lead {
    font-size:15px;
    margin-bottom:48px;
  }

  .project-page .meta {
    grid-template-columns:82px 1fr;
    margin-bottom:40px;
  }

  .project-page .two-col {
    grid-template-columns:1fr;
    gap:26px;
  }

  .project-page .info {
    grid-template-columns:95px 1fr;
  }

  .project-page .full-project-link {
    white-space:normal;
    line-height:1.6;
  }


  /* HERO */

  .project-page .hero-media {
    height:auto !important;
  }

  .project-page .hero-media img {
    height:auto;
    object-fit:contain;
  }


  /* PROJECT IMAGES */

  .project-page .project-images {
    grid-template-columns:1fr;
    gap:18px;
    margin-top:30px;
  }

  .project-page .project-images .project-image:only-child {
    grid-column:auto;
  }

  .project-page .project-images:has(.project-image:nth-child(2):last-child) {
    grid-template-columns:1fr;
  }

  .project-page .project-image {
    width:100% !important;
    height:auto;
  }

  .project-page .project-image img {
    height:auto;
    object-fit:contain;
  }

  .project-page .project-media .wp-block-gallery > figure.wp-block-image img {
  height:220px !important;
}
}

/* =========================================================
   VIDEOART — NAVIGATION SPACING
   ========================================================= */

.videoart-page .topnav {
  margin-bottom: 58px;
}

/* =========================================================
   VIDEOART — CONTENT
   ========================================================= */

.videoart-page .videoart-content {
  margin-top: 64px;
}

/* Section headings such as > SELECTED VIDEOS */
.videoart-page .videoart-content h2 {
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 0.04em;
}

/* Video blocks */
.videoart-page .videoart-content .wp-block-embed {
  width: 100%;
  margin: 0 0 42px;
}

/* Vimeo / YouTube responsive 16:9 */
.videoart-page .videoart-content .wp-block-embed__wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.videoart-page .videoart-content .wp-block-embed__wrapper iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Remove unnecessary space after the last video */
.videoart-page .videoart-content .wp-block-embed:last-child {
  margin-bottom: 0;
}

/* =========================================================
   PRACTICE — NAVIGATION SPACING
   ========================================================= */

.practice-page .topnav {
  margin-bottom: 58px;
}

/* =========================================================
   PRACTICE — CONTENT
   ========================================================= */

.practice-page .practice-content {
  margin-top: 64px;
}

/* Section headings */
.practice-page .practice-content h2 {
  margin: 64px 0 24px;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.practice-page .practice-content h2:first-child {
  margin-top: 0;
}

/* Paragraphs */
.practice-page .practice-content p {
  margin: 0 0 18px;
}

/* Links */
.practice-page .practice-content a {
  color: var(--site-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.practice-page .practice-content a:hover {
  color: var(--site-accent);
}

/* =========================================================
   HOMEPAGE — FINAL ADJUSTMENTS
   ========================================================= */

.practice-home {
  transform: translateY(-30px);
  margin-bottom: 42px;
}

footer.footer {
  color: var(--site-text) !important;
}

footer.footer .rule {
  color: var(--site-muted) !important;
}

/* =========================================================
   COOKIEYES — VIMEO PLACEHOLDER
   ========================================================= */

.wp-block-embed.is-provider-vimeo .wp-block-embed__wrapper {
  position: relative;
}

.francescoscarel-vimeo-placeholder {
  position: absolute;
  inset: 0;
  z-index: 2;

  display: flex;
  align-items: center;
  justify-content: center;

  box-sizing: border-box;
  padding: 24px;

  background: #000;
  color: #fff;

  font-family: Menlo, Monaco, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

/* =========================================================
   COOKIEYES — YOUTUBE PLACEHOLDER / VIDEOART
   ========================================================= */

.videoart-page .videoart-content .video-placeholder-youtube {
  display: flex !important;
  width: 100% !important;
  height: 100% !important;
  position: absolute !important;
  inset: 0;
  z-index: 2;
}

/* =========================================================
   FOOTER — PRIVACY / COOKIE LINKS
   ========================================================= */

.footer-privacy {
  margin-top: 8px;
}

.footer-privacy a {
  color: inherit;
  text-decoration: none;
}

.footer-privacy a:hover {
  text-decoration: underline;
}

/* =========================================================
   LEGAL PAGE
   ========================================================= */

.legal-page {
  max-width: 840px;
  font-size: 14px;
  line-height: 1.55;
}

.legal-page .back-nav {
  margin-bottom: 58px;
}

.legal-page .legal-header {
  margin-bottom: 48px;
}

.legal-page .legal-header h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: .04em;
}

.legal-page .legal-header .rule {
  margin: 7px 0 24px;
}

.legal-content {
  max-width: 700px;
  font-size: 14px;
  line-height: 1.6;
}

.legal-content p {
  margin: 0 0 18px !important;
}

.legal-content h2 {
  margin: 52px 0 18px !important;
  font-family: Menlo, Monaco, "Courier New", monospace !important;
  font-size: 16px !important;
  line-height: 1.4 !important;
  font-weight: 400 !important;
  letter-spacing: .04em !important;
}

.legal-content h2:first-child {
  margin-top: 0 !important;
}

.legal-content h3 {
  margin: 36px 0 14px !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  font-weight: 400 !important;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 22px !important;
  padding-left: 24px;
}

.legal-content li {
  margin-bottom: 7px;
}

.legal-content a {
  color: var(--site-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content a:hover {
  color: var(--site-accent);
}

.legal-page .footer {
  margin-top: 76px;
}

.legal-footer-title {
  display: flex;
  align-items: baseline;
  gap: 0.5em;
}

.legal-footer-title .wp-block-post-title {
  margin: 0 !important;
  padding: 0 !important;
  font: inherit !important;
  letter-spacing: inherit !important;
  text-transform: uppercase;
}


/* =========================================================
   LEGAL PAGE — MOBILE
   ========================================================= */

@media(max-width:700px) {

  .legal-page {
    font-size: 14px;
  }

  .legal-page .back-nav {
    margin-bottom: 42px;
  }

  .legal-page .legal-header h1 {
    font-size: 18px;
  }

  .legal-page .legal-content {
    font-size: 14px;
  }

  .legal-page .legal-content h2 {
    margin-top: 42px !important;
    font-size: 15px !important;
  }

}