@font-face { font-family: Cygre; src: url('./assets/Cygre-Medium.ttf') format('truetype'); font-style: normal; font-weight: 500; font-display: block; }
html { scroll-behavior: smooth; }
.interior { height: auto; min-height: 100%; }
.page-shell { margin-inline: 1.93vw; padding-top: max(120px, 16vh); padding-bottom: 60px; }
.page-heading { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 40px; }
.page-heading h1 { font-weight: 900; font-size: clamp(80px, 9.5vw, 160px); line-height: .95; letter-spacing: -.025em; margin: 0; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .03em; }
.work-grid { display: grid; grid-template-columns: minmax(0, 1fr); width: min(70vw, 1100px); margin-inline: auto; gap: 64px; }
.project-card { display: block; color: inherit; text-decoration: none; }
.project-thumbnail { aspect-ratio: 16 / 9; position: relative; overflow: hidden; background: #fff; }
.project-thumbnail img, .project-thumbnail video { display: block; width: 100%; height: 100%; object-fit: contain; }
.project-thumbnail video { position: absolute; inset: 0; opacity: 0; transition: opacity 160ms ease; }
.project-card.preview-playing video { opacity: 1; }
.project-open { position: absolute; right: 18px; bottom: 13px; color: var(--red); font-size: 34px; line-height: 1; transition: transform 180ms ease; }
.project-card:hover .project-open, .project-card:focus-visible .project-open { transform: translate(3px, -3px); }
.project-caption { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 18px; padding-top: 16px; }
.project-caption h2 { margin: 0; font-size: 27px; letter-spacing: -.035em; font-weight: 900; }
.project-caption > span { font-size: 14px; font-weight: 500; }
.project-caption .view-label { font-size: 10px; font-weight: 700; }
.project-heading { display: flex; align-items: baseline; gap: 24px; }
.project-heading h1 { font-size: clamp(64px, 7vw, 116px); font-weight: 900; letter-spacing: -.055em; line-height: .95; margin: 0; }
.project-heading p { font-weight: 500; font-size: 20px; margin: 0; }
.text-link { text-decoration: none; color: inherit; font-weight: 700; font-size: 12px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.back-link { margin-left: auto; }
figure { margin: 0; }
.project-hero { position: relative; margin-top: 24px; }
.project-hero video { display: block; width: 100%; height: max(380px, calc(100svh - 245px)); object-fit: contain; background: #fff; }
.loop-toggle { position: absolute; right: 12px; bottom: 12px; border: 0; padding: 10px 12px; color: var(--red); background: #fff; font: 700 11px Cygre, sans-serif; cursor: pointer; }
.loop-toggle:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.project-overview { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; border-top: 1px solid var(--red); padding-top: 24px; margin-top: 45px; }
.project-overview p { color: #141414; font-size: 18px; font-weight: 500; line-height: 1.4; margin: 10px 0 0; }
.case-section { padding-top: 100px; }
.section-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 5vw; align-items: start; margin-bottom: 35px; }
.case-section h2 { font-size: clamp(32px, 3.8vw, 64px); letter-spacing: -.05em; line-height: 1.04; font-weight: 900; margin: 0; }
.section-heading p { color: #141414; font-size: clamp(16px, 1.35vw, 21px); font-weight: 500; line-height: 1.5; max-width: 620px; margin: 0; }
.media-block video { width: 100%; height: auto; display: block; background: #fff; }
.media-block figcaption { font-size: 12px; font-weight: 500; margin-top: 12px; }
.system-media video { aspect-ratio: 1464 / 600; }
.logo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.4vw; }
.logo-grid video, .static-logo > div { aspect-ratio: 1464 / 800; object-fit: contain; }
.static-logo > div { display: grid; place-items: center; background: #fff; }
.static-logo img { display: block; width: 71.5%; height: 71.5%; object-fit: contain; }
.program-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4vw; }
.program-grid video { display: block; width: 80%; justify-self: center; aspect-ratio: 1080 / 2000; object-fit: contain; background: #fff; }
.film-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4vw; }
.film-grid video { aspect-ratio: 1080 / 2000; object-fit: contain; }
html[data-preview-handoff] .preview-surface::before { content: ''; position: absolute; inset: 0; background: #fff var(--preview-handoff-image) center / contain no-repeat; z-index: 1; pointer-events: none; }
.project-hero .loop-toggle { z-index: 2; }
.echo-hero { display: block; }
.echo-hero video { height: auto; aspect-ratio: 1974 / 932; object-fit: contain; }
.echo-film video { aspect-ratio: 16 / 9; object-fit: contain; }
.echo-logo { width: min(55%, 800px); margin-inline: auto; }
.echo-logo video { aspect-ratio: 4 / 1; object-fit: contain; }
.credits-section { display: grid; grid-template-columns: 1fr 1fr; gap: 5vw; }
.credits-list { margin: 0; color: #141414; font-weight: 500; }
.credits-list > div { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; border-top: 1px solid #ddd; padding: 18px 0; font-size: 14px; line-height: 1.4; }
.credits-list dt, .credits-list dd { margin: 0; }
.credits-list dd { font-weight: 700; }
.credits-list a { color: inherit; text-decoration: none; }
.credits-list a:hover { color: var(--red); }
.project-footer { display: flex; justify-content: space-between; padding-top: 60px; margin-top: 70px; border-top: 1px solid var(--red); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .project-thumbnail video { display: none; } .project-open { transition: none; } }

.mt7rk-cover { width: min(58vw, 600px); margin-inline: auto; }
.mt7rk-cover img, .mt7rk-cover video { display: block; width: 100%; height: auto; }
.mt7rk-cover figcaption { margin-top: 16px; }

.aalka-image-grid, .aalka-motion-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.4vw; }
.aalka-image-grid img, .aalka-print-grid img { display: block; width: 100%; height: auto; }
.aalka-motion-grid video { aspect-ratio: 4 / 5; object-fit: contain; }
.aalka-print-grid { width: min(58vw, 700px); margin-inline: auto; }
.aalka-source-links { display: flex; gap: 28px; margin-top: 40px; }

.aalka-use-grid { display: grid; grid-template-columns: minmax(0, 461fr) minmax(0, 288fr); gap: 2.4vw; width: min(100%, 1000px); margin-inline: auto; align-items: start; }
.aalka-kinetic video { aspect-ratio: 1; object-fit: contain; }
.aalka-application video { aspect-ratio: 461 / 288; object-fit: contain; }

.aalka-thumbnail, .aalka-cover { background: #27214d; }
.aalka-cover img { display: block; width: 100%; height: max(380px, calc(100svh - 245px)); object-fit: contain; }

.personal-heading { align-items: end; }
.personal-heading h1 { font-size: clamp(42px, 5.15vw, 90px); line-height: .97; }
.personal-heading .back-link { flex-shrink: 0; margin-bottom: 4px; }
.personal-hero { width: min(60%, 680px); margin-inline: auto; }
.personal-hero video { height: auto; aspect-ratio: 1; object-fit: cover; }
.personal-studies { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 2.4vw; }
.personal-study { width: 80%; justify-self: center; }
.personal-study video { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.personal-study figcaption { display: flex; justify-content: space-between; gap: 16px; }
.personal-study figcaption a { color: inherit; text-decoration: none; }
.personal-studies > :last-child:nth-child(odd) { grid-column: 1 / -1; width: calc(40% - .96vw); margin-inline: auto; }
.personal-project-card { width: min(70%, 640px); justify-self: center; }
.personal-project-card .project-caption { grid-template-columns: minmax(0, 1fr) auto; }
.personal-project-card .project-caption h2 { font-size: clamp(21px, 2.05vw, 29px); }
.personal-project-card .project-caption > span:not(.view-label) { grid-column: 1; }
.personal-project-card .project-caption .view-label { grid-column: 2; grid-row: 1 / 3; align-self: center; }

.personal-project-card .project-thumbnail { aspect-ratio: 1; }
.personal-project-card .project-thumbnail img, .personal-project-card .project-thumbnail video { object-fit: cover; }

/* Contact */
.contact-shell { width: min(86vw, 1240px); margin-inline: auto; padding-bottom: 70px; }
.contact-shell h1 { font-size: clamp(80px, 9vw, 145px); line-height: .94; letter-spacing: -.055em; margin: 0 0 38px; font-weight: 900; }
.contact-bio { max-width: 1120px; font-size: clamp(26px, 3.05vw, 46px); line-height: 1.22; font-weight: 500; letter-spacing: -.035em; }
.contact-bio p { margin: 0 0 24px; }
.contact-details { display: grid; grid-template-columns: 1fr 1.1fr; gap: 6vw; margin-top: 60px; align-items: start; }
.contact-details h2 { font-size: clamp(30px, 3.5vw, 54px); line-height: 1.05; letter-spacing: -.045em; margin: 0; font-weight: 900; }
.contact-links { display: grid; }
.contact-links a { display: flex; justify-content: space-between; gap: 20px; padding: 17px 0; border-top: 1px solid currentColor; color: inherit; text-decoration: none; font-size: clamp(14px, 1.15vw, 18px); font-weight: 500; }
.contact-links a > :last-child { font-weight: 700; }
.contact-links a:hover > :last-child { text-decoration: underline; text-underline-offset: 5px; }

/* WORK CAROUSEL EXPERIMENT START */
.work-carousel-page .work-shell {
  --work-heading-size: clamp(64px, 7.5vw, 120px);
  --work-top: clamp(92px, 11svh, 120px);
  --carousel-media-height: clamp(180px, calc(100svh - var(--work-top) - var(--work-heading-size) - 240px), 480px);
  display: grid; grid-template-rows: var(--work-heading-size) minmax(0, 1fr) 44px;
  height: 100svh; margin-inline: 0; overflow: hidden;
  padding-top: var(--work-top); padding-bottom: 24px;
}
.work-carousel-page .page-heading { margin-inline: 1.93vw; margin-bottom: 0; }
.work-carousel-page .page-heading h1 { font-size: var(--work-heading-size); line-height: 1; }
.work-carousel {
  --carousel-card-width: min(58vw, 820px, calc(var(--carousel-media-height) * 1.77777778));
  --carousel-small-width: min(34vw, 460px, calc(var(--carousel-media-height) - 20px));
  display: flex; align-items: center; gap: clamp(36px, 6vw, 100px);
  width: 100%; height: 100%; min-height: 0; margin: 0; position: relative;
  padding: 24px calc((100% - var(--carousel-small-width)) / 2) 36px calc((100% - var(--carousel-card-width)) / 2);
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  overscroll-behavior-x: contain; cursor: grab;
}
.work-carousel::-webkit-scrollbar { display: none; }
.work-carousel:focus-visible { outline: 1px solid var(--red); outline-offset: -8px; }
.work-carousel .project-card {
  flex: 0 0 var(--carousel-card-width); width: var(--carousel-card-width); min-width: 0;
  scroll-snap-align: center; scroll-snap-stop: normal;
  transform: translateY(var(--card-y, 0px)) rotate(var(--card-tilt, 0deg)) scale(var(--card-scale, 1));
  transform-origin: center; will-change: transform;
}
.work-carousel .personal-project-card { flex-basis: var(--carousel-small-width); width: var(--carousel-small-width); }
.carousel-float { animation: project-float 6.4s cubic-bezier(.45, 0, .55, 1) infinite; animation-delay: var(--float-delay, 0s); }
.work-carousel .project-card:nth-child(2) { --float-delay: -1.6s; }
.work-carousel .project-card:nth-child(3) { --float-delay: -3.2s; }
.work-carousel .project-card:nth-child(4) { --float-delay: -4.8s; }
.work-carousel .project-card:nth-child(5) { --float-delay: -2.4s; }
@keyframes project-float { 0%, 100% { transform: translateY(-6px); } 50% { transform: translateY(6px); } }
.work-carousel .project-card img { user-select: none; -webkit-user-drag: none; }
.work-carousel .project-caption { grid-template-columns: minmax(0, 1fr) auto; gap: 9px 18px; }
.work-carousel .project-caption h2 { grid-column: 1; font-size: clamp(23px, 2.1vw, 31px); line-height: 1.08; }
.work-carousel .personal-project-card .project-caption h2 { font-size: clamp(20px, 1.65vw, 25px); }
.work-carousel .project-caption > span:not(.view-label) { grid-column: 1; line-height: 1.2; }
.work-carousel .project-caption .view-label { grid-column: 2; grid-row: 1 / 3; align-self: center; }
.work-carousel.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
.work-carousel.is-dragging .carousel-float { animation-play-state: paused; }
.carousel-controls { display: flex; align-items: center; gap: 24px; margin: 0 5vw; font-size: 11px; font-weight: 700; }
.carousel-position { margin-left: auto; font-variant-numeric: tabular-nums; }
.carousel-buttons { display: flex; gap: 10px; }
.carousel-buttons button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--red); border-radius: 50%; background: white; color: var(--red); font: 500 25px Cygre, sans-serif; cursor: pointer; transition: background 180ms, color 180ms; }
.carousel-buttons button:hover:not(:disabled) { background: var(--red); color: white; }
.carousel-buttons button:disabled { opacity: .3; cursor: default; }
.carousel-buttons button:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
  .carousel-float { animation: none; }
  .work-carousel { scroll-behavior: auto; }
  .work-carousel .project-card { transform: none; will-change: auto; }
  .carousel-buttons button { transition: none; }
}
/* WORK CAROUSEL EXPERIMENT END */
