/* ------------------------------------------------------------------------
   The "ChatGPT board" look. Loaded after styles.css and only overrides it,
   so the old site is one deleted <link> away.

   Palette: electric blue #3B57FF, ice blue #A6C8FF, off-white #EDEDED, black.
   Type: an italic editorial serif (Instrument Serif) for display, a condensed
   uppercase sans (Archivo at 72% width) for labels.
   ------------------------------------------------------------------------ */

:root {
  --look-blue: #3b57ff;
  --look-ice: #a6c8ff;
  --look-white: #ededed;
  --look-black: #000000;
  --look-serif: "Instrument Serif", "Bodoni Moda", Georgia, serif;
  --look-sans: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --look-glow: 0 0 18px rgba(59, 87, 255, 0.55), 0 0 42px rgba(59, 87, 255, 0.28);
}

body[data-theme="dark"] {
  --bg: #000000;
  --ink: #ededed;
  --muted: #8f9bc4;
  --soft: #5c6797;
  --line: rgba(59, 87, 255, 0.22);
  --panel: #04060f;
  --panel-soft: #070a1a;
  --focus: #a6c8ff;
  --accent: #3b57ff;
  background: #000000;
}

body[data-theme="light"] {
  --bg: #ededed;
  --ink: #05081a;
  --muted: #4a5276;
  --soft: #7c84a8;
  --line: rgba(59, 87, 255, 0.28);
  --panel: #f4f4f4;
  --panel-soft: #e2e4ee;
  --focus: #3b57ff;
  --accent: #3b57ff;
  background: #ededed;
}

/* ---- 5. Background textures: deep blue haze, star dust, grain ---------- */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 100% 100%, rgba(59, 87, 255, 0.06), transparent 70%),
    radial-gradient(50% 40% at 0% 0%, rgba(59, 87, 255, 0.04), transparent 70%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body[data-theme="light"]::before {
  opacity: 0.25;
}

body > .site-shell {
  position: relative;
  z-index: 1;
}

/* ---- 1. Header: monogram, condensed spaced labels, glowing icons ------- */

body .site-header {
  z-index: 40;
  border-bottom-color: rgba(255, 255, 255, 0.08);
  background: color-mix(in srgb, var(--bg) 42%, transparent);
  backdrop-filter: blur(14px);
}

body .brand-logo {
  filter: drop-shadow(0 0 10px rgba(59, 87, 255, 0.55));
}

body .nav-links a {
  font-family: var(--look-sans);
  font-stretch: 72%;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.26em;
}

body .nav-links a[aria-current="page"] {
  color: var(--look-ice);
  text-shadow: 0 0 12px rgba(59, 87, 255, 0.8);
}

/* the active tab wears the star instead of an underline */
body .nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -14px;
  width: 12px;
  height: 12px;
  border: 0;
  background: var(--look-ice);
  transform: translateX(-50%);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  filter: drop-shadow(0 0 6px var(--look-blue));
}

body .nav-links a {
  position: relative;
}

/* ---- 3. Icon pack: thin blue line icons with glow ---------------------- */

body .icon-link svg,
body .contact-social-link svg {
  fill: none;
  stroke: var(--look-blue);
  stroke-width: 1.5;
  filter: drop-shadow(0 0 5px rgba(59, 87, 255, 0.85));
  transition: stroke 180ms ease, filter 180ms ease;
}

body .icon-link:hover svg,
body .contact-social-link:hover svg {
  stroke: var(--look-ice);
  filter: drop-shadow(0 0 9px rgba(59, 87, 255, 1));
}

body .language-switcher button[aria-pressed="true"] {
  background: var(--look-blue);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(59, 87, 255, 0.6);
}

/* ---- Shared pieces: display type, star, orbit, buttons ----------------- */

.look-display {
  position: relative;
  display: inline-block;
  width: fit-content;
  margin: 0;
  font-family: var(--look-serif);
  font-style: italic;
  font-weight: 400;
  line-height: 0.84;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--look-blue);
  filter: drop-shadow(0 0 16px rgba(59, 87, 255, 0.32));
}

/* the gradient sits on the words, not the heading, so the orbit (z 0) runs
   behind the letters (z 1) instead of striking through them */
.look-display > span:not(.look-display-orbit):not(.look-display-spark) {
  position: relative;
  z-index: 1;
  background: linear-gradient(175deg, #ffffff 0%, #e6edff 45%, #a6c8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.look-display-line {
  display: block;
}

.look-display-line + .look-display-line {
  padding-left: 0.62em;
}

.look-spark {
  display: inline-block;
  width: 1em;
  height: 1em;
  overflow: visible;
  filter: drop-shadow(0 0 4px #ffffff) drop-shadow(0 0 12px var(--look-blue)) drop-shadow(0 0 26px var(--look-blue));
}

.look-spark-core {
  fill: #ffffff;
}

.look-spark-flare {
  fill: none;
  stroke: rgba(205, 220, 255, 0.85);
  stroke-width: 0.5;
}

.look-orbit {
  position: absolute;
  overflow: visible;
  pointer-events: none;
}

.look-orbit path {
  fill: none;
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 4px rgba(59, 87, 255, 0.9));
}

/* data-orbit / data-spark holders: the svg fills them */
.look-display-orbit {
  position: absolute;
  z-index: 0;
  inset: -12% -14% -22% -10%;
  pointer-events: none;
  -webkit-text-fill-color: initial;
}

.look-display-orbit .look-orbit {
  inset: 0;
  width: 100%;
  height: 100%;
}

.look-display-spark {
  position: absolute;
  z-index: 2;
  top: -0.42em;
  right: -0.82em;
  font-size: 0.78em;
  line-height: 0;
}

.look-display-spark .look-spark {
  width: 1em;
  height: 1em;
}

/* 7. Animated titles: the orbit draws itself, the star flares */
[data-look-in] .look-orbit path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1400ms cubic-bezier(0.65, 0, 0.35, 1) 150ms;
}

[data-look-in] .look-spark {
  opacity: 0;
  transform: scale(0.2) rotate(-90deg);
  transform-origin: center;
  transform-box: fill-box;
  transition: opacity 500ms ease 900ms, transform 900ms cubic-bezier(0.34, 1.56, 0.64, 1) 900ms;
}

[data-look-in].is-in .look-orbit path {
  stroke-dashoffset: 0;
}

[data-look-in].is-in .look-spark {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  animation: look-twinkle 4.8s ease-in-out 2s infinite;
}

@keyframes look-twinkle {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(0.82) rotate(12deg); }
}

.look-button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 13px 26px;
  border: 1px solid rgba(166, 200, 255, 0.7);
  border-radius: 999px;
  color: var(--look-white);
  font-family: var(--look-sans);
  font-stretch: 72%;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-decoration: none;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);
  transition: border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.look-button:hover,
.look-button:focus-visible {
  border-color: var(--look-blue);
  background: rgba(59, 87, 255, 0.18);
  box-shadow: var(--look-glow);
}

.look-arrow {
  letter-spacing: 0;
  transition: transform 200ms ease;
}

.look-button:hover .look-arrow {
  transform: translateX(4px);
}

/* ---- 9. Chrome accents -------------------------------------------------- */

.look-chrome {
  position: absolute;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 20px 40px rgba(59, 87, 255, 0.3));
  animation: look-float 9s ease-in-out infinite;
}

@keyframes look-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(4deg); }
}

/* ---- 2. Hero ------------------------------------------------------------ */

/* full-bleed out of the centred shell, and up under the see-through header */
.look-hero {
  position: relative;
  display: flex;
  align-items: center;
  width: 100vw;
  min-height: 560px;
  height: min(94vh, 980px);
  margin: -79px 0 0 calc(50% - 50vw);
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #000;
}

.look-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
  filter: brightness(0.86) contrast(1.04) !important;
}

/* a blue grade over the footage, darker on the side the title sits */
.look-hero::after {
  display: none;
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #1a2cff;
  mix-blend-mode: color;
  opacity: 0.55;
  pointer-events: none;
}

.look-hero-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.55) 34%, rgba(0, 0, 0, 0.08) 72%, rgba(0, 0, 0, 0.25) 100%),
    linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0) 32%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 22%);
}

.look-hero-copy {
  position: relative;
  z-index: 3;
  display: grid;
  justify-items: start;
  gap: clamp(26px, 3.2vw, 44px);
  width: min(1780px, calc(100% - 76px));
  margin: 0 auto;
  padding: 120px 0 40px clamp(0px, 4vw, 70px);
}

.look-hero .look-display {
  font-size: clamp(4.4rem, 12.5vw, 12.5rem);
}

.look-role {
  margin: 0;
  color: var(--look-white);
  font-family: var(--look-sans);
  font-stretch: 72%;
  font-size: clamp(0.66rem, 0.9vw, 0.8rem);
  font-weight: 500;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  opacity: 0.85;
}

.look-chrome-hero {
  z-index: 3;
  right: 6%;
  top: 16%;
  width: clamp(90px, 11vw, 170px);
  height: auto;
  opacity: 0.95;
}

/* the hero's copy rises in after the intro */
.look-hero-copy > .look-role,
.look-hero-copy > .look-button {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.look-hero-copy > .look-role { transition-delay: 500ms; }
.look-hero-copy > .look-button { transition-delay: 700ms; }

.look-hero-copy.is-in > .look-role,
.look-hero-copy.is-in > .look-button {
  opacity: 1;
  transform: none;
}

/* the hero is always dark, light theme or not */
body[data-theme="light"] .look-hero .look-role,
body[data-theme="light"] .look-hero .look-button {
  color: var(--look-white);
}

/* ---- 7. Section titles -------------------------------------------------- */

body .work-first {
  padding-top: clamp(80px, 10vw, 150px);
}

body .category-heading {
  margin-bottom: clamp(40px, 5vw, 70px);
}

.look-title {
  position: relative;
  display: inline-block;
  margin: 0 0 0 0.2em;
  font-family: var(--look-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(3.2rem, 7.4vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.look-title-text {
  position: relative;
  z-index: 1;
  background: linear-gradient(175deg, #ffffff 0%, #e6edff 45%, #a6c8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 14px rgba(59, 87, 255, 0.3));
}

.look-title > .look-orbit {
  left: -12%;
  right: -10%;
  top: 2%;
  bottom: -26%;
  width: 122%;
  height: 124%;
}

.look-title-spark {
  position: absolute;
  top: -0.3em;
  right: -0.55em;
  width: 0.62em;
  height: 0.62em;
}

/* ---- 8. Dividers -------------------------------------------------------- */

.look-divider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.look-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--look-blue) 60%, var(--look-ice));
  box-shadow: 0 0 8px rgba(59, 87, 255, 0.8);
}

.look-line + .look-spark + .look-line {
  background: linear-gradient(90deg, var(--look-ice), var(--look-blue) 40%, transparent);
}

.look-divider .look-spark {
  width: 34px;
  height: 34px;
}

.look-hatch {
  position: absolute;
  right: 0;
  top: 22px;
  width: 120px;
  height: 18px;
  background: repeating-linear-gradient(-62deg, var(--look-blue) 0 1.5px, transparent 1.5px 9px);
  filter: drop-shadow(0 0 4px rgba(59, 87, 255, 0.9));
  opacity: 0.9;
}

/* ---- 6. Project covers: title on the image, kind spaced below ---------- */

body .project-image {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  background: #050505;
  transition: border-color 260ms ease, box-shadow 260ms ease;
}

body .project-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.45) 30%, rgba(0, 0, 0, 0) 58%);
}

body .project-card:hover .project-image,
body .project-card:focus-visible .project-image {
  border-color: rgba(166, 200, 255, 0.8);
  box-shadow: 0 0 0 1px rgba(59, 87, 255, 0.45), 0 24px 70px rgba(59, 87, 255, 0.16);
}

body .project-card figure {
  position: relative;
}

body .project-card figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 0 18px clamp(20px, 2.4vw, 32px);
  text-align: center;
  pointer-events: none;
}

body .project-card figcaption .card-title {
  max-width: 11ch;
  color: var(--look-white);
  font-family: var(--look-serif);
  font-style: italic;
  font-size: clamp(1.9rem, 3vw, 3rem);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
  text-wrap: balance;
}

body .project-card figcaption .card-kind {
  color: var(--look-ice);
  font-family: var(--look-sans);
  font-stretch: 72%;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  line-height: 1.6;
  text-transform: uppercase;
}

body .project-card figcaption .card-credit,
body .project-card figcaption .card-made {
  display: none;
}

body[data-theme="light"] .project-card figcaption .card-title {
  color: #ffffff;
}

.look-play {
  position: absolute;
  left: 50%;
  top: 42%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(166, 200, 255, 0.8);
  border-radius: 50%;
  background: rgba(10, 16, 60, 0.35);
  backdrop-filter: blur(4px);
  box-shadow: var(--look-glow);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition: opacity 240ms ease, transform 240ms ease;
}

.look-play svg {
  width: 22px;
  height: 22px;
  margin-left: 3px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 1.4;
  stroke-linejoin: round;
}

body .project-card:hover .look-play,
body .project-card:focus-visible .look-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ---- 11. Contact block -------------------------------------------------- */

.look-cta {
  position: relative;
  display: grid;
  justify-items: center;
  gap: clamp(36px, 4vw, 56px);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: clamp(110px, 14vw, 200px) 24px clamp(120px, 15vw, 220px);
  overflow: hidden;
  text-align: center;
  border-top: 1px solid rgba(59, 87, 255, 0.2);
  background:
    radial-gradient(70% 60% at 85% 100%, rgba(59, 87, 255, 0.22), transparent 70%),
    radial-gradient(40% 40% at 10% 20%, rgba(59, 87, 255, 0.06), transparent 70%),
    #000;
}

/* the light streak across the corner */
.look-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/texture-streaks.jpg") 60% 70% / cover no-repeat;
  transform-origin: 60% 75%;
  animation: look-breathe 26s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes look-breathe {
  to { transform: scale(1.08) translateX(-2%); }
}

.look-cta > :not(.look-chrome) {
  position: relative;
  z-index: 1;
}

.look-cta > .look-chrome {
  z-index: 1;
}

.look-cta-title {
  max-width: 6.2em;
  font-size: clamp(3.4rem, 9vw, 8.5rem);
  line-height: 0.86;
}

.look-cta-title .look-display-orbit {
  inset: -34% -7% -48% -6%;
}

.look-chrome-cta {
  left: 5%;
  top: 6%;
  width: clamp(110px, 13vw, 200px);
  height: auto;
}

/* ---- Contact page ------------------------------------------------------- */

body .contact-page {
  position: relative;
}

body .contact-center {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: clamp(30px, 4vw, 48px);
}

body .contact-email {
  font-family: var(--look-sans);
  font-stretch: 72%;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--look-ice);
}

body .contact-email:hover {
  text-shadow: 0 0 14px var(--look-blue);
}

body .contact-socials {
  display: flex;
  gap: 18px;
}

body .contact-social-link {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(59, 87, 255, 0.55);
  border-radius: 14px;
  background: rgba(59, 87, 255, 0.06);
  box-shadow: inset 0 0 18px rgba(59, 87, 255, 0.18);
}

body .contact-social-link svg {
  width: 24px;
  height: 24px;
}

.look-chrome-contact {
  right: 4%;
  bottom: 6%;
  width: clamp(120px, 16vw, 240px);
  height: auto;
}

/* ---- About: the portrait as a taped print, a strip of film ------------- */

.look-page-title {
  font-size: clamp(3.6rem, 8vw, 7.5rem);
  margin-bottom: 0.4em;
  justify-self: start;
}

body .look-print {
  position: relative;
  padding: 12px 12px 46px;
  background: #e9e9e6;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 60px rgba(59, 87, 255, 0.15);
  transform: rotate(-2.2deg);
}

body .look-print img {
  filter: none !important;
}

.look-tape {
  position: absolute;
  top: -16px;
  left: 50%;
  z-index: 2;
  width: 130px;
  height: 34px;
  background: rgba(225, 228, 236, 0.55);
  backdrop-filter: blur(2px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transform: translateX(-50%) rotate(3deg);
  clip-path: polygon(0 8%, 4% 0, 9% 10%, 14% 0, 100% 0, 100% 92%, 96% 100%, 91% 90%, 86% 100%, 0 100%);
}

.look-film {
  padding: clamp(40px, 6vw, 80px) 0 clamp(80px, 10vw, 140px);
}

.look-filmstrip {
  position: relative;
  width: 104vw;
  margin-left: calc(50% - 52vw);
  padding: 30px 0;
  overflow: hidden;
  background: #050505;
  border-block: 1px solid rgba(255, 255, 255, 0.06);
  transform: rotate(-1.4deg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), 0 0 80px rgba(59, 87, 255, 0.12);
}

/* one frame plus its gap is 260px = 10 sprocket periods, so when the track
   slides one full set the holes land exactly where they started */
.look-filmstrip-track {
  position: relative;
  display: flex;
  gap: 10px;
  width: max-content;
  animation: look-slide 80s linear infinite;
}

.look-filmstrip:hover .look-filmstrip-track {
  animation-play-state: paused;
}

/* sprocket holes, top and bottom, riding with the frames */
.look-filmstrip-track::before,
.look-filmstrip-track::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 12px;
  background: repeating-linear-gradient(90deg, rgba(225, 228, 236, 0.85) 0 12px, transparent 12px 26px);
  border-radius: 2px;
}

.look-filmstrip-track::before { top: -21px; }
.look-filmstrip-track::after { bottom: -21px; }

.look-filmstrip img {
  flex: none;
  width: 250px;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1) brightness(0.85) !important;
  transition: filter 400ms ease;
}

.look-filmstrip img:hover {
  filter: none !important;
}

@keyframes look-slide {
  to { transform: translateX(-50%); }
}

/* ---- Inside a project: the same type and blue --------------------------- */

body .player-head h2 {
  font-family: var(--look-serif);
  font-style: italic;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--look-ice);
  text-shadow: 0 0 18px rgba(59, 87, 255, 0.5);
}

body .fan-card.is-selected {
  box-shadow: 0 0 0 1px var(--look-blue), 0 22px 60px rgba(59, 87, 255, 0.45);
}

body .lightbox::backdrop {
  background: rgba(0, 0, 0, 0.6);
}

/* ---- 14. 404 ------------------------------------------------------------ */

.look-404 {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: clamp(30px, 4vw, 50px);
  min-height: calc(100vh - 80px);
  padding: 60px 0 100px;
  text-align: center;
}

.look-404 .look-display {
  font-size: clamp(8rem, 26vw, 22rem);
  line-height: 0.8;
}

.look-404 .look-display-spark {
  top: -0.12em;
  right: -0.42em;
  font-size: 0.4em;
}

.look-chrome-404 {
  left: 8%;
  bottom: 12%;
  width: clamp(110px, 14vw, 220px);
  height: auto;
}

/* ---- Small screens ------------------------------------------------------ */

@media (max-width: 760px) {
  .look-hero {
    margin-top: -64px;
    height: 88svh;
  }

  .look-hero-copy {
    width: calc(100% - 36px);
    padding-left: 0;
  }

  .look-role {
    letter-spacing: 0.3em;
    line-height: 1.9;
  }

  .look-chrome-hero {
    top: 14%;
    right: 4%;
  }

  .look-hatch {
    display: none;
  }

  /* 146 + 10 = 156 = 6 sprocket periods */
  .look-filmstrip img {
    width: 146px;
  }

  .look-chrome-cta {
    top: 4%;
  }

  body .nav-links a[aria-current="page"]::after {
    bottom: -10px;
    width: 9px;
    height: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .look-chrome,
  [data-look-in].is-in .look-spark,
  .look-marquee-track,
  .look-filmstrip-track,
  .look-scroll i::after {
    animation: none;
  }
}

/* the old About and Contact h1 rules are more specific than .look-display */
body h1.look-display,
body h2.look-display {
  font-family: var(--look-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.84;
  text-transform: uppercase;
  max-width: none;
}

body .about-page-copy .look-page-title {
  grid-column: 1 / -1;
  font-size: clamp(3.6rem, 8vw, 7.5rem);
}

body .contact-page .look-cta-title {
  font-size: clamp(3.4rem, 7vw, 7rem);
  text-align: center;
}

/* a title that may wrap keeps its star on the last word, not the box edge */
body .look-cta-title .look-display-spark {
  position: relative;
  top: -0.5em;
  right: auto;
  display: inline-block;
  margin-left: 0.14em;
  vertical-align: top;
}

body .look-chrome-contact {
  right: 2%;
  bottom: 2%;
}

/* inside a project: condensed spaced labels, a star by the photos label */
body .project-dialog .player-bar .player-step,
body .project-dialog .player-bar .close-button,
body .project-dialog .strip-label {
  font-family: var(--look-sans);
  font-stretch: 72%;
  font-weight: 500;
  letter-spacing: 0.3em;
}

body .project-dialog .player-bar .close-button {
  color: var(--look-ice);
}

body .project-dialog .player-bar {
  border-bottom-color: rgba(59, 87, 255, 0.25);
}

body .project-dialog .strip-label {
  color: var(--look-ice);
}

body .project-dialog .strip-label::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-left: 10px;
  background: var(--look-ice);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  filter: drop-shadow(0 0 5px var(--look-blue));
}

@media (max-width: 760px) {
  body .project-card figcaption {
    gap: 8px;
    padding: 0 10px 16px;
  }

  body .project-card figcaption .card-kind {
    font-size: 0.5rem;
    letter-spacing: 0.24em;
  }
}

/* ---- Polish ------------------------------------------------------------- */

::selection {
  background: var(--look-blue);
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}

html {
  scrollbar-width: thin;
  scrollbar-color: rgba(59, 87, 255, 0.6) #000000;
}

html:has(body[data-theme="light"]) {
  scrollbar-color: rgba(59, 87, 255, 0.6) #ededed;
}

body :focus-visible {
  outline: 1px solid var(--look-ice);
  outline-offset: 4px;
}

/* Hero: the title drifts up slower than the page and fades; the footage lags */
.look-hero {
  --hero-y: 0;
}

.look-hero-copy {
  transform: translateY(calc(var(--hero-y) * 0.3px));
  opacity: calc(1 - var(--hero-y) / 700);
}

.look-hero-video {
  transform: translateY(calc(var(--hero-y) * 0.14px)) scale(1.04);
}

.look-chrome-hero {
  translate: 0 calc(var(--hero-y) * -0.2px);
}

/* a falling bead of light that says there is more below */
.look-scroll {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 30px;
  display: grid;
  justify-items: center;
  gap: 12px;
  padding-left: 0.42em;
  color: var(--look-ice);
  font-family: var(--look-sans);
  font-stretch: 72%;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-decoration: none;
  text-transform: uppercase;
  opacity: calc(0.85 - var(--hero-y) / 300);
  transform: translateX(-50%);
}

.look-scroll i {
  position: relative;
  width: 1px;
  height: 48px;
  overflow: hidden;
  background: linear-gradient(rgba(166, 200, 255, 0.5), transparent);
}

.look-scroll i::after {
  content: "";
  position: absolute;
  left: 0;
  top: -40%;
  width: 1px;
  height: 40%;
  background: #ffffff;
  box-shadow: 0 0 6px var(--look-blue);
  animation: look-drip 2.4s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes look-drip {
  to { top: 100%; }
}

/* the names of the work, running under the hero */
.look-marquee {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 20px 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.look-marquee-track {
  display: flex;
  width: max-content;
  animation: look-slide 55s linear infinite;
}

.look-marquee-track span {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-family: var(--look-sans);
  font-stretch: 72%;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  white-space: nowrap;
}

.look-marquee-track span::after {
  content: "";
  width: 9px;
  height: 9px;
  margin: 0 2.6em 0 2.2em;
  background: var(--look-blue);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  filter: drop-shadow(0 0 4px var(--look-blue));
}

/* section titles carry how many pieces are in them */
.look-count {
  position: absolute;
  left: 100%;
  bottom: 0.1em;
  margin-left: 0.5em;
  color: var(--look-ice);
  font-family: var(--look-sans);
  font-style: normal;
  font-stretch: 72%;
  font-size: max(0.7rem, 0.13em);
  font-weight: 500;
  letter-spacing: 0.3em;
  -webkit-text-fill-color: currentColor;
  white-space: nowrap;
  opacity: 0.8;
}

body[data-theme="light"] .look-count {
  color: var(--look-blue);
}

.look-count::before { content: "("; }
.look-count::after { content: ")"; }

/* a soft blue light that follows the pointer over each cover */
body .project-image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(120, 150, 255, 0.3), transparent 62%);
  mix-blend-mode: screen;
  transition: opacity 320ms ease;
}

body .project-card:hover .project-image::before {
  opacity: 1;
}

/* the footer, the same on every page */
.look-footer {
  position: relative;
  z-index: 1;
  padding: clamp(30px, 4vw, 50px) 0 40px;
}

.look-footer-rule {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
}

.look-footer-rule .look-spark {
  width: 16px;
  height: 16px;
}

.look-footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  color: var(--muted);
  font-family: var(--look-sans);
  font-stretch: 72%;
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.look-footer-end {
  display: flex;
  gap: 28px;
}

.look-footer-link {
  color: var(--ink);
  text-decoration: none;
  transition: color 180ms ease, text-shadow 180ms ease;
}

.look-footer-link:hover,
.look-footer-link:focus-visible {
  color: var(--look-ice);
  text-shadow: 0 0 12px var(--look-blue);
}

@media (max-width: 760px) {
  .look-footer-row {
    flex-direction: column;
    text-align: center;
    letter-spacing: 0.24em;
  }

  .look-marquee {
    padding: 15px 0;
  }

  .look-marquee-track span {
    font-size: 0.6rem;
  }

  .look-scroll {
    bottom: 20px;
  }

  .look-scroll i {
    height: 34px;
  }
}

/* light theme: white words would vanish on the pale pages, so there they go
   blue; the hero and the contact block stay dark and keep the white */
body[data-theme="light"] .look-title-text,
body[data-theme="light"] :is(.about-page, .contact-page, .look-404) .look-display > span:not(.look-display-orbit):not(.look-display-spark) {
  background: linear-gradient(175deg, #6f8bff 0%, #3b57ff 45%, #1a2a9c 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* a few silent seconds of the film, over the still, while the card is live */
body .card-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms ease;
}

body .project-image.is-previewing .card-preview {
  opacity: 1;
}

body .project-image.is-previewing .look-play {
  opacity: 0;
}

/* room above the caps, or an accent (CAPÍTOL) is cut off by the text clip */
.look-display > span:not(.look-display-orbit):not(.look-display-spark) {
  padding-top: 0.14em;
  margin-top: -0.14em;
}

body[data-theme="light"] .nav-links a[aria-current="page"] {
  color: var(--look-blue);
  text-shadow: none;
}

/* ---- Shimmer: look.js sets --shimmer on each light at random, fast ----- */

.look-spark-core,
.look-spark-flare,
body .nav-links a[aria-current="page"]::after {
  opacity: var(--shimmer, 1);
  transition: opacity 80ms linear;
}

/* ---- Light theme: the contact block goes light with the page ------------ */

body[data-theme="light"] .look-cta {
  border-top-color: rgba(59, 87, 255, 0.18);
  background:
    radial-gradient(70% 60% at 85% 100%, rgba(59, 87, 255, 0.16), transparent 70%),
    radial-gradient(40% 40% at 10% 20%, rgba(59, 87, 255, 0.05), transparent 70%),
    var(--bg);
}

body[data-theme="light"] .look-cta .look-display > span:not(.look-display-orbit):not(.look-display-spark) {
  background: linear-gradient(175deg, #6f8bff 0%, #3b57ff 45%, #1a2a9c 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* buttons on pale ground: dark words, blue edge (the hero stays dark) */
body[data-theme="light"] .look-button {
  color: var(--ink);
  border-color: rgba(59, 87, 255, 0.55);
  background: rgba(255, 255, 255, 0.45);
}

body[data-theme="light"] .look-hero .look-button {
  color: var(--look-white);
  border-color: rgba(166, 200, 255, 0.7);
  background: rgba(0, 0, 0, 0.25);
}

body[data-theme="light"] .look-404 .look-role {
  color: var(--ink);
}

/* ---- Textures ------------------------------------------------------------
   star dust (live canvas, every page), light ribbons (the contact block),
   nebula (live canvas, Contact), blue grain (404, the foot of About) */

.look-sky,
.look-nebula {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* light theme: the ribbons inverted into pale ground, blue kept */
body[data-theme="light"] .look-cta::before {
  filter: invert(1) hue-rotate(180deg);
  opacity: 0.5;
}

/* blue grain: a glow rising from the bottom with the grain turned up */
body[data-page="notfound"]::before {
  background:
    radial-gradient(90% 65% at 50% 115%, rgba(35, 62, 255, 0.5), transparent 70%),
    radial-gradient(50% 40% at 0% 0%, rgba(59, 87, 255, 0.05), transparent 70%);
}

body[data-page="notfound"]::after {
  opacity: 0.16;
}

body .look-film {
  position: relative;
}

body .look-film::before,
body .look-film::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: calc(50% - 50vw);
  bottom: 0;
  width: 100vw;
  height: 150%;
  pointer-events: none;
}

body .look-film::before {
  background: radial-gradient(70% 60% at 50% 100%, rgba(35, 62, 255, 0.32), transparent 72%);
}

body .look-film::after {
  opacity: 0.14;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(70% 60% at 50% 100%, #000, transparent 72%);
  mask-image: radial-gradient(70% 60% at 50% 100%, #000, transparent 72%);
}

body[data-theme="light"][data-page="notfound"]::before {
  background: radial-gradient(90% 65% at 50% 115%, rgba(59, 87, 255, 0.22), transparent 70%);
}

body[data-theme="light"] .look-film::before {
  background: radial-gradient(70% 60% at 50% 100%, rgba(59, 87, 255, 0.14), transparent 72%);
}

@media (prefers-reduced-motion: reduce) {
  .look-cta::before {
    animation: none;
  }
}

body[data-theme="light"] .contact-email {
  color: var(--look-blue);
}
