@import url("https://fonts.googleapis.com/css2?family=Bagel+Fat+One&family=Inter:wght@400;500;700;900&display=swap");

:root {
  --bg: #ffffff;
  --ink: #111111;
  --muted: #5d5d5d;
  --line: rgba(17, 17, 17, 0.17);
  --paper: #ffffff;
  --accent: #1d49ff;
  --accent-2: #ff4f2e;
  --accent-3: #f3d13b;
  --radius: 28px;
  --shadow: 0 22px 70px rgba(17, 17, 17, 0.11);
  --max: 1180px;
  --funky: "Bagel Fat One", "Arial Rounded MT Bold", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
  display: flex;
  flex-direction: column;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 9% 14%, rgba(29, 73, 255, 0.11), transparent 20%),
    radial-gradient(circle at 90% 12%, rgba(255, 79, 46, 0.11), transparent 18%),
    radial-gradient(circle at 70% 90%, rgba(243, 209, 59, 0.16), transparent 22%);
  z-index: -1;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
.skip-link { position: absolute; left: 16px; top: -80px; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 999px; z-index: 100; }
.skip-link:focus { top: 16px; }
.site-header {
  width: min(calc(100% - 32px), var(--max));
  margin: 16px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 14px;
  z-index: 10;
}
.brand, .nav { display: flex; align-items: center; gap: 14px; }
.brand { font-weight: 900; letter-spacing: -0.03em; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--bg); font-size: 0.82rem; }
.nav { font-size: 0.94rem; color: var(--muted); flex-wrap: wrap; justify-content: flex-end; }
.nav a:hover { color: var(--ink); }
.page-shell { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; flex: 1; display: grid; align-items: center; padding: 54px 0 36px; }
.landing-grid, .two-column { display: grid; grid-template-columns: 1fr minmax(320px, 0.86fr); gap: 54px; align-items: center; width: 100%; }
.eyebrow { margin: 0 0 14px; font-size: 0.78rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); }
h1, h2, h3, p { margin-top: 0; }
h1 { font-family: var(--funky); font-size: clamp(3.8rem, 10vw, 9.6rem); line-height: 0.82; letter-spacing: -0.075em; margin-bottom: 28px; font-weight: 900; }
h2 { font-family: var(--funky); font-size: clamp(1.55rem, 3.4vw, 3.5rem); line-height: 0.94; letter-spacing: -0.055em; margin-bottom: 14px; }
h3 { font-size: 1.3rem; line-height: 1; letter-spacing: -0.04em; margin-bottom: 10px; }
.lead { max-width: 660px; font-size: clamp(1.08rem, 2vw, 1.44rem); color: var(--muted); }
.actions, .contact-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button, .contact-links a { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,0.78); font-weight: 900; }
.button.primary, .contact-links a:first-child { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.button:hover, .contact-links a:hover { transform: translateY(-2px); text-decoration: none; }
.loop-card, .dictionary-card, .text-card { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,0.9); box-shadow: var(--shadow); }
.loop-card { min-height: 520px; padding: 28px; display: grid; grid-template-rows: 1fr auto; overflow: hidden; }
.loop-card:hover { text-decoration: none; }
.loop-card p { font-weight: 900; font-size: 1.05rem; margin-bottom: 0; }
.loop-stage { position: relative; display: grid; place-items: center; min-height: 390px; }
.blob, .ring { position: absolute; display: block; }
.blob { width: 110px; height: 110px; border: 3px solid var(--ink); border-radius: 43% 57% 50% 50%; background: var(--accent-3); animation: orbit 4.8s linear infinite; }
.blob-a { transform-origin: 130px 10px; }
.blob-b { width: 80px; height: 80px; background: var(--accent-2); animation-duration: 6.2s; transform-origin: -90px 60px; }
.blob-c { width: 58px; height: 58px; background: var(--accent); animation-duration: 3.5s; transform-origin: 70px -90px; }
.ring { width: 285px; height: 210px; border: 3px dashed var(--ink); border-radius: 50%; opacity: .28; animation: spin 12s linear infinite; }
.dictionary-card, .text-card { padding: clamp(24px, 4vw, 42px); }
.dictionary-card { box-shadow: none; border-radius: 18px; background: #fff; max-width: 560px; }
.dict-word { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.35rem, 2.4vw, 2.2rem); line-height: 1.05; letter-spacing: -0.025em; margin-bottom: 8px; font-weight: 700; }
.dict-type, .dict-pronunciation { font-family: Georgia, "Times New Roman", serif; font-size: 0.95rem; font-style: italic; font-weight: 400; color: var(--muted); margin-bottom: 2px; }
.dict-definition { font-family: Georgia, "Times New Roman", serif; font-size: clamp(0.98rem, 1.3vw, 1.16rem); line-height: 1.5; margin: 18px 0 0; max-width: 42em; }
.page-intro.compact { max-width: 900px; align-self: start; }
.page-intro.compact h1 { font-size: clamp(3rem, 7vw, 7.6rem); }
.work-grid.paged { align-self: start; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-bottom: 20px; }
.work-card { border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: rgba(255,255,255,0.86); transition: transform 180ms ease, box-shadow 180ms ease; }
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.work-card.featured { grid-column: span 2; }
.thumb { min-height: 230px; display: flex; align-items: end; padding: 18px; color: white; font-family: var(--funky); font-weight: 900; letter-spacing: -0.07em; font-size: clamp(2rem, 4vw, 4.8rem); line-height: 0.86; }
.thumb span { max-width: 82%; text-shadow: 0 2px 20px rgba(0,0,0,0.28); }
.thumb-a { background: radial-gradient(circle at 30% 30%, #f3d13b, transparent 22%), linear-gradient(135deg, #1d49ff, #111); }
.thumb-b { background: radial-gradient(circle at 70% 40%, #fff, transparent 20%), linear-gradient(135deg, #ff4f2e, #161616); }
.thumb-c { background: radial-gradient(circle at 24% 68%, #77ffaa, transparent 20%), linear-gradient(135deg, #0e856e, #111); }
.thumb-d { background: radial-gradient(circle at 72% 64%, #f3d13b, transparent 20%), linear-gradient(135deg, #111, #7a35ff); }
.thumb-e { background: radial-gradient(circle at 28% 42%, #ff4f2e, transparent 20%), linear-gradient(135deg, #111, #1d49ff); }
.work-meta { padding: 18px; }
.work-meta p { color: var(--muted); margin-bottom: 0; }
.work-meta .tag { color: var(--accent); font-weight: 900; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; }
.video-frame { aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--ink); box-shadow: var(--shadow); width: 100%; }
.video-frame.standalone { align-self: start; }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.text-card p { font-size: clamp(1.02rem, 1.7vw, 1.28rem); color: var(--muted); }
.text-card p:last-child { margin-bottom: 0; color: var(--ink); font-weight: 700; }
.contact-page { max-width: 920px; }
.contact-page h1 { font-size: clamp(3rem, 7vw, 7.6rem); }
.site-footer { width: min(calc(100% - 32px), var(--max)); margin: auto auto 16px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 999px; display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: .92rem; background: rgba(255,255,255,.7); }
.site-footer p { margin: 0; }
@keyframes orbit { to { rotate: 360deg; } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 900px) {
  .site-header { align-items: flex-start; border-radius: 24px; flex-direction: column; }
  .nav { justify-content: flex-start; }
  .page-shell { display: block; padding: 46px 0 28px; }
  .landing-grid, .two-column { grid-template-columns: 1fr; gap: 26px; }
  .loop-card { min-height: 390px; }
  .work-grid.paged { grid-template-columns: 1fr; }
  .work-card.featured { grid-column: auto; }
  .site-footer { border-radius: 24px; flex-direction: column; }
}


/* Loopscapes Vimeo collection */
.loops-shell {
  align-items: start;
  display: block;
}

.loops-intro {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 0.65fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 34px;
}

.compact-dictionary {
  padding: 24px;
}

.loop-video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.loop-video-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,0.92);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.loop-video-frame {
  aspect-ratio: 1 / 1;
  background: var(--ink);
}

.loop-video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.loop-video-card h2 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  margin: 0;
  padding: 12px 14px 14px;
}

@media (max-width: 900px) {
  .loops-intro { grid-template-columns: 1fr; align-items: start; }
  .loop-video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .loop-video-grid { grid-template-columns: 1fr; }
}

.home-video-card { padding: 18px; grid-template-rows: 1fr; }
.home-loop-quartet { min-height: 520px; }
.home-loop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  height: 100%;
  min-height: 430px;
}
.home-loop-frame {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 16px;
  background: #f7f7f7;
}
.home-loop-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.video-stage { min-height: 430px; overflow: hidden; border-radius: calc(var(--radius) - 14px); background: #f7f7f7; }
.video-stage iframe { width: 100%; height: 100%; min-height: 430px; border: 0; display: block; }
@media (max-width: 900px) {
  .video-stage, .video-stage iframe { min-height: 340px; }
  .home-loop-grid { min-height: auto; gap: 10px; }
}

/* Works page — rebuilt from the original works page */
.works-shell {
  display: block;
  align-items: start;
}

.work-title {
  max-width: 850px;
  margin-bottom: 34px;
}

.work-title h1 {
  font-size: clamp(3rem, 7vw, 7.6rem);
}

.works-list {
  display: grid;
  gap: 28px;
  padding-bottom: 26px;
}

.work-entry {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(340px, 1fr);
  gap: clamp(20px, 4vw, 42px);
  align-items: start;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.88);
  box-shadow: 0 16px 44px rgba(17,17,17,0.06);
}

.work-entry.text-only {
  display: block;
  max-width: 820px;
}

.work-entry-copy h2 {
  font-size: clamp(1.8rem, 3.6vw, 3.8rem);
  margin-bottom: 16px;
}

.work-entry-copy p {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.16rem);
}

.work-entry-copy p:last-child {
  margin-bottom: 0;
}

.work-year,
.work-length {
  font-size: 0.82rem !important;
  line-height: 1.4;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.work-year {
  color: var(--accent) !important;
  margin-bottom: 10px;
}

.work-length {
  color: var(--ink) !important;
  margin-top: 18px;
}

.work-video {
  border-radius: 22px;
  box-shadow: none;
}

@media (max-width: 900px) {
  .work-entry {
    grid-template-columns: 1fr;
  }
}


.elephant-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.gallery-item {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #f6f6f6;
}

.gallery-item-wide {
  grid-column: 1 / -1;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 700px) {
  .elephant-gallery {
    grid-template-columns: 1fr;
  }

  .gallery-item-wide {
    grid-column: auto;
  }
}


/* Simpler content pages */
.content-shell {
  display: block;
  max-width: min(calc(100% - 32px), 880px);
  padding-top: 72px;
}

.content-card {
  box-shadow: none;
}

.content-card p {
  font-size: clamp(1.04rem, 1.6vw, 1.26rem);
}

.contact-card .contact-links {
  margin-top: 24px;
}

/* Works gallery + lightbox */
.work-entry.text-only.elephant-entry {
  max-width: none;
  width: 100%;
}

.elephant-entry .work-entry-copy {
  width: 100%;
}

.elephant-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 24px;
}

.gallery-item {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #f6f6f6;
  cursor: zoom-in;
  display: block;
}

.gallery-item-wide {
  grid-column: auto;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(0, 0, 0, 0.88);
  cursor: zoom-out;
}

.gallery-lightbox.is-open {
  display: flex;
}

.gallery-lightbox img {
  display: block;
  max-width: 96vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  background: #111;
}

.gallery-lightbox button {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.content-card p:last-child {
  color: var(--muted);
  font-weight: 400;
}

.contact-card p:last-child {
  color: var(--muted);
}


/* Final requested adjustments */
.profile-mark {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  padding: 0;
}

.profile-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-loop-quartet {
  min-height: auto;
}

.home-loop-grid {
  min-height: auto;
  height: auto;
}

.home-video-card {
  align-self: start;
}

.lookscape-video-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: 980px;
  margin: 0 auto 32px;
}

.lookscape-video-list .loop-video-card {
  width: 100%;
}

.lookscape-video-list .loop-video-frame {
  aspect-ratio: 16 / 9;
}

.elephant-entry {
  max-width: none !important;
  width: 100%;
}

.elephant-entry .work-entry-copy {
  width: 100%;
  max-width: none;
}

.elephant-entry .work-entry-copy p {
  max-width: 650px;
}

.elephant-gallery {
  width: 100%;
}

@media (max-width: 900px) {
  .site-header {
    position: static;
    border-radius: 22px;
    align-items: flex-start;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
  }

  .nav {
    gap: 9px 12px;
    font-size: 0.86rem;
    line-height: 1.2;
  }

  .landing-grid {
    gap: 24px;
  }

  h1 {
    font-size: clamp(3.4rem, 17vw, 5.8rem);
    line-height: 0.88;
    letter-spacing: -0.04em;
  }

  h2 {
    letter-spacing: -0.035em;
  }

  .home-video-card {
    padding: 10px;
    border-radius: 20px;
    box-shadow: 0 14px 36px rgba(17,17,17,0.08);
  }

  .home-loop-grid {
    gap: 7px;
  }

  .home-loop-frame {
    border-radius: 12px;
  }

  .page-shell {
    padding-top: 34px;
  }

  .content-shell {
    padding-top: 34px;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(calc(100% - 22px), var(--max));
  }

  .site-header,
  .site-footer {
    width: min(calc(100% - 22px), var(--max));
  }

  .actions {
    margin-top: 22px;
  }

  .button,
  .contact-links a {
    min-height: 44px;
    padding: 10px 14px;
  }

  .loop-card {
    padding: 10px;
  }

  .lookscape-video-list {
    gap: 18px;
  }
}


/* Final polish: keep Bagel Fat One, but make it calmer and more readable */
h1 {
  font-weight: 400;
  letter-spacing: -0.025em;
}

h2 {
  font-weight: 400;
  letter-spacing: -0.018em;
}

.about-card {
  position: relative;
}

.about-portrait {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  margin: 0 0 24px;
}

.contact-card .contact-links {
  margin-top: 18px;
}

.contact-card .contact-links a:first-child {
  background: rgba(255,255,255,0.78);
  color: var(--ink);
  border-color: var(--line);
}

.plain-email {
  margin-top: 28px;
  color: var(--ink) !important;
  font-weight: 700 !important;
}

.lookscapes-description {
  max-width: 720px;
  font-size: 1rem;
  line-height: 1.55;
}

.lookscapes-description p {
  font-size: clamp(0.98rem, 1.15vw, 1.08rem);
  line-height: 1.55;
  margin-bottom: 1em;
}

.lookscapes-description p:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  h1 {
    font-size: clamp(3.25rem, 15vw, 5.4rem);
    letter-spacing: -0.015em;
  }

  h2 {
    letter-spacing: -0.01em;
  }

  .about-portrait {
    width: 84px;
    height: 84px;
  }

  .lookscapes-description,
  .lookscapes-description p {
    font-size: 1rem;
  }
}


/* Private showreel password gate */
.showreel-shell {
  display: block;
  max-width: min(calc(100% - 32px), 980px);
  padding-top: 72px;
}

.showreel-gate {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.9);
  box-shadow: var(--shadow);
  padding: clamp(28px, 5vw, 58px);
  max-width: 720px;
  margin: 0 auto 32px;
}

.showreel-gate h1 {
  font-size: clamp(3rem, 7vw, 7.4rem);
  margin-bottom: 28px;
}

.showreel-gate p {
  font-size: clamp(1.08rem, 1.8vw, 1.34rem);
  color: var(--muted);
  margin-bottom: 10px;
}

.showreel-gate .gate-hint {
  color: var(--muted);
  font-weight: 400;
  margin-top: 0;
}

.gate-form {
  display: flex;
  gap: 10px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.gate-form input {
  flex: 1 1 220px;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  background: #fff;
  color: var(--ink);
}

.gate-form button {
  min-height: 50px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 12px 20px;
  font: inherit;
  font-weight: 900;
  background: var(--ink);
  color: var(--bg);
  cursor: pointer;
}

.gate-form button:hover {
  transform: translateY(-2px);
}

.private-showreel {
  margin: 0 auto 32px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 700px) {
  .showreel-shell {
    padding-top: 34px;
  }

  .showreel-gate {
    padding: 24px;
  }

  .gate-form {
    display: block;
  }

  .gate-form input,
  .gate-form button {
    width: 100%;
  }

  .gate-form button {
    margin-top: 10px;
  }
}


/* Clean local homepage video */
.home-preview-video-card {
  width: 100%;
  align-self: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.9);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.home-preview-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
  background: #f7f7f7;
}

@media (max-width: 900px) {
  .home-preview-video-card {
    padding: 9px;
    border-radius: 20px;
    box-shadow: 0 14px 36px rgba(17,17,17,0.08);
  }

  .home-preview-video {
    border-radius: 12px;
  }
}
