@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@200;300;400;500;600&display=swap');

:root {
  --bg: #fff;
  --text: #444;
  --strong: #222;
  --blue: #5689dc;
  --page-pad: clamp(18px, 4vw, 58px);
  --header-height: 74px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Work Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* ---------- Header / footer ---------- */

.site-header {
  height: var(--header-height);
  padding: 0 var(--page-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  color: #6E6E6E;
  position: relative;
  z-index: 50;
}

.site-header--overlay {
  position: fixed;
  inset: 0 0 auto 0;
  background: #fff;
  color: #6E6E6E;
}

.brand {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 600;
  letter-spacing: -.025em;
  color: #6E6E6E;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  margin: 0;
  color: #6E6E6E;
  background: transparent !important;
  text-decoration: none;
}

.logo-image {
  width: 36px;
  height: 36px;
  display: block;
  object-fit: contain;
  pointer-events: none;
}

.name-link,
.nav-link,
.footer-link {
  display: inline-block;
  padding: 0 3px;
  line-height: 1.18;
  font-size: 16px;
  font-weight: 600;
  color: #6E6E6E;
  transition: color 300ms ease, background-color 300ms ease;
}

.name-link:hover,
.name-link:focus-visible,
.nav-link:hover,
.nav-link:focus-visible,
.footer-link:hover,
.footer-link:focus-visible {
  color: #000;
  background: #AFCAF0;
  outline: none;
}

.logo-link:hover,
.logo-link:focus-visible {
  color: #6E6E6E;
  background: transparent !important;
  outline: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.7vw, 42px);
}

.nav-link.active {
  font-weight: 600;
  color: #000;
}

.menu-toggle {
  display: none;
  width: 26px;
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #6E6E6E;
  transition: transform 250ms ease, opacity 200ms ease, background-color 200ms ease;
}

.site-footer {
  padding: 28px var(--page-pad) 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  font-size: 16px;
  font-weight: 600;
  background: #fff;
  color: #6E6E6E;
}

.site-footer--overlay {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: #fff;
  color: #6E6E6E;
}

.footer-links {
  display: flex;
  gap: 44px;
}

/* ---------- Home ---------- */

.home { background: #000; color: #fff; }
.home-main { padding: 0; }
.video-hero { width: 100vw; height: 100vh; height: 100dvh; overflow: hidden; position: relative; }

.video-hero video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Temporary landscape placeholder: behaves like a real image/video.
   object-fit: cover preserves the aspect ratio and clips the excess. */
.apple-placeholder {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #263b3d;
}
.apple-placeholder img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}
.placeholder-note {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.7);
  font-size: 16px;
  letter-spacing: .1em;
  z-index: 3;
}

/* ---------- Work ---------- */

.work-page { padding: 0; }
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: #fff;
}
.project-card {
  position: relative;
  overflow: hidden;
  display: block;
  aspect-ratio: 1.38 / 1;
  background: #ddd;
}
.project-image {
  position: absolute;
  inset: 0;
  transform: scale(1);
  transition: transform .65s cubic-bezier(.2,.7,.2,1);
  background-size: cover;
  background-position: center;
}
.project-airflow { background: linear-gradient(145deg, #d1d1cf 0%, #c0c0b9 46%, #b78e92 100%); }
.project-switch { background: linear-gradient(145deg, #d9dedb, #8b9790 55%, #4f5b58 100%); }
.project-sao { background: linear-gradient(145deg, #cfc9bd, #8b735d 55%, #40382f 100%); }
.project-cross { background: linear-gradient(145deg, #ecebe6, #b3b1aa 55%, #77756e 100%); }
.project-comas { background: linear-gradient(145deg, #ecece9 0%, #b8b1a6 55%, #8f897d 100%); }
.project-oulu { background: radial-gradient(circle at 55% 38%, #ec343d 0 5%, transparent 16%), linear-gradient(145deg, #151515, #363838 65%, #0e0e0e); }
.project-awoke { background: linear-gradient(150deg, #777 0%, #292929 60%, #9b9a8f 100%); }

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background-color .45s ease;
}
.project-title {
  position: absolute;
  left: 30px;
  bottom: 27px;
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.035em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s ease, transform .4s cubic-bezier(.2,.7,.2,1);
}
.project-card:hover .project-image,
.project-card:focus-visible .project-image { transform: scale(1.035); }
.project-card:hover .project-overlay,
.project-card:focus-visible .project-overlay { background: rgba(0,0,0,.30); }
.project-card:hover .project-title,
.project-card:focus-visible .project-title { opacity: 1; transform: translateY(0); }

/* ---------- About ---------- */

.about-page { padding: 72px var(--page-pad) 20px; }
.about-columns {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(300px, 1fr) minmax(300px, 1fr);
  gap: clamp(30px, 4vw, 65px);
}
.portrait-placeholder {
  width: 100%;
  max-width: 430px;
  aspect-ratio: 1 / .96;
  background: linear-gradient(145deg, #f1f1f1, #c9c9c9);
  display: grid;
  place-items: center;
  color: #888;
  font-size: 11px;
  letter-spacing: .1em;
  text-align: center;
}
.about-description {
  max-width: 430px;
  margin: 45px 0 0;
  font-size: 18px;
  line-height: 1.28;
  font-weight: 300; /* lighter, as requested */
  letter-spacing: -.02em;
}
.about-column h2 {
  margin: 0 0 28px;
  color: #202020;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.025em;
}
.about-entry { margin: 0 0 30px; max-width: 510px; }
.about-entry p { margin: 0 0 5px; }
.about-entry em { color: #666; }
.about-entry u { text-underline-offset: 2px; }

/* ---------- Individual project pages ---------- */

.project-page { padding: 45px var(--page-pad) 80px; }
.project-intro { padding-top: 70px; }
.project-intro h1 {
  margin: 0 0 10px;
  color: #111;
  font-size: clamp(48px, 4.5vw, 72px);
  line-height: 1;
  letter-spacing: -.055em;
  font-weight: 600;
}
.project-meta {
  color: #aaa;
  font-size: 17px;
  line-height: 1.45;
}
.project-meta p { margin: 0; }
.project-meta strong { color: #777; font-weight: 500; }
.project-description {
  max-width: 1260px;
  margin: 62px 0 110px;
  font-size: 18px;
  line-height: 1.55;
  color: #555;
}
.project-content {
  width: min(950px, 100%);
  margin: 0 auto;
}
.project-media {
  width: 100%;
  min-height: 540px;
  margin-bottom: 26px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #f4f4f2, #d7d7d3);
  color: #aaa;
  font-size: 11px;
  letter-spacing: .1em;
}
.project-media:nth-child(2) { min-height: 620px; }
.project-media:nth-child(3) { min-height: 520px; }

/* ---------- Responsive ---------- */


/* ---------- Intermediate-width / responsive stability ---------- */

@media (max-width: 1050px) {
  :root { --page-pad: 24px; }
  .about-columns {
    grid-template-columns: minmax(190px, .8fr) minmax(250px, 1fr) minmax(250px, 1fr);
    gap: 24px;
  }
  .about-entry { font-size: 15px; }
  .about-description { font-size: 17px; }
  .footer-links { gap: 28px; }
}

@media (max-width: 900px) {
  .about-columns {
    grid-template-columns: minmax(210px, .8fr) minmax(280px, 1fr);
    gap: 34px;
  }
  .about-profile { grid-column: 1 / -1; }
  .about-profile .portrait-placeholder { max-width: 360px; }
  .about-description { max-width: 600px; }
}

@media (max-width: 700px) {
  :root { --page-pad: 16px; --header-height: 64px; }

  .site-header,
  .site-header--overlay {
    position: relative;
    height: 64px;
    padding: 0 16px;
    background: #fff;
  }

  .home .site-header--overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
  }

  .brand {
    gap: 0;
  }

  .name-link {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0 16px;
    max-height: 0;
    overflow: hidden;
    background: #fff;
    transition: max-height 300ms ease, padding 300ms ease;
  }

  .menu-open .nav {
    max-height: 160px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .nav-link {
    width: max-content;
    padding: 4px 3px;
    font-size: 16px;
  }

  .work-grid { grid-template-columns: 1fr; gap: 0; }

  .project-card { aspect-ratio: 1.12 / 1; }

  .project-title {
    left: 20px;
    bottom: 20px;
    font-size: 19px;
    font-weight: 600;
    opacity: 1;
    transform: none;
  }

  .project-overlay { background: rgba(0,0,0,.15); }

  .about-page { padding-top: 35px; }
  .about-columns { grid-template-columns: 1fr; gap: 55px; }
  .about-profile { grid-column: auto; }
  .about-description { margin-top: 28px; }

  .site-footer,
  .site-footer--overlay {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    padding: 24px 16px calc(24px + env(safe-area-inset-bottom));
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    background: #fff;
    color: #6E6E6E;
  }

  .footer-links {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
  }

  .project-page { padding-top: 25px; }
  .project-intro { padding-top: 40px; }
  .project-description { margin: 45px 0 65px; font-size: 16px; }
  .project-media { min-height: 55vh; }

  .home .video-hero {
    min-height: 0;
  }

  .home .video-hero > .apple-placeholder,
  .home .video-hero > video {
    min-height: 0;
    height: auto;
  }
}

@media (max-width: 520px) {
  .site-header,
  .site-header--overlay {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-footer,
  .site-footer--overlay {
    padding-left: 16px;
    padding-right: 16px;
    font-size: 16px;
  }

  .footer-links {
    gap: 9px;
  }
}


/* Header/footer interaction: grey by default; black + #AFCAF0 on hover.
   300ms transition gives the highlight a deliberately slower appearance. */


/* ---------- Placeholder image gradients ---------- */

.project-airflow {
  background:
    radial-gradient(circle at 72% 28%, rgba(255,255,255,.72) 0 8%, transparent 28%),
    linear-gradient(135deg, #c6e3df 0%, #7faeb5 46%, #405b67 100%);
}

.project-switch {
  background:
    radial-gradient(circle at 25% 25%, rgba(255,255,255,.55) 0 7%, transparent 27%),
    linear-gradient(135deg, #e7c5d8 0%, #a98fc1 45%, #4c486d 100%);
}

.project-sao {
  background:
    radial-gradient(circle at 78% 22%, rgba(255,239,198,.75) 0 9%, transparent 30%),
    linear-gradient(135deg, #f0c7a6 0%, #c77d70 46%, #613d4e 100%);
}

.project-cross {
  background:
    radial-gradient(circle at 30% 70%, rgba(255,255,255,.65) 0 10%, transparent 31%),
    linear-gradient(135deg, #d8e4bc 0%, #8ca98a 48%, #3e5b4e 100%);
}

.project-oulu {
  background:
    radial-gradient(circle at 66% 26%, rgba(255,245,197,.78) 0 10%, transparent 30%),
    linear-gradient(135deg, #c7d9ec 0%, #7e9cc0 48%, #3f536f 100%);
}

.project-awoke {
  background:
    radial-gradient(circle at 24% 30%, rgba(255,255,255,.42) 0 8%, transparent 28%),
    linear-gradient(135deg, #d9c4a6 0%, #a87861 48%, #4b3940 100%);
}

/* Generic media placeholders on project pages. */
.project-media-wide {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 45vh;
  color: rgba(255,255,255,.7);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.project-content .project-media:nth-child(1) {
  background:
    radial-gradient(circle at 75% 22%, rgba(255,255,255,.7) 0 9%, transparent 28%),
    linear-gradient(135deg, #b7d9d4, #668d9c 52%, #394b60);
}
.project-content .project-media:nth-child(2) {
  background:
    radial-gradient(circle at 28% 70%, rgba(255,255,255,.55) 0 9%, transparent 30%),
    linear-gradient(135deg, #e4c3d5, #9c7fb2 50%, #514967);
}
.project-content .project-media:nth-child(3) {
  background:
    radial-gradient(circle at 70% 28%, rgba(255,240,191,.72) 0 10%, transparent 30%),
    linear-gradient(135deg, #f0cfaa, #bd7f73 50%, #624653);
}

/* Home placeholder: a distinct full-bleed gradient instead of the generic placeholder. */
.apple-placeholder {
  background:
    radial-gradient(circle at 72% 27%, rgba(255,238,177,.9) 0 7%, transparent 24%),
    linear-gradient(180deg, #b7d9ed 0%, #8db7c4 42%, #688e78 43%, #36564d 100%);
}
.apple-placeholder::after {
  content: "";
  position: absolute;
  inset: 42% 0 0;
  background:
    linear-gradient(155deg, transparent 0 34%, rgba(46,76,72,.75) 34.2% 55%, transparent 55.2%),
    linear-gradient(25deg, transparent 0 46%, rgba(69,96,88,.65) 46.2% 66%, transparent 66.2%);
  opacity: .75;
}


/* FINAL BRAND BEHAVIOUR */
.site-header .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent !important;
}

.site-header .brand .logo-link {
  flex: 0 0 36px;
  background: transparent !important;
  color: #6E6E6E !important;
}

.site-header .brand .name-link {
  display: inline-block;
  flex: 0 0 auto;
  color: #6E6E6E;
  background: transparent;
  padding: 0 3px;
  transition: color 300ms ease, background-color 300ms ease;
}

.site-header .brand .name-link:hover,
.site-header .brand .name-link:focus-visible {
  color: #000;
  background: #AFCAF0;
  outline: none;
}

/* ---------- V15 final placeholder treatment ---------- */

.home .video-hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.home .apple-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #b9d9e8 0%, #789db0 50%, #304c5c 100%) !important;
}

.home .apple-placeholder::after {
  display: none !important;
}

/* Work: keep zero spacing in both directions. */
.work-page,
.work-grid {
  padding: 0;
}
.work-grid {
  gap: 0 !important;
}

/* Simple linear gradients only — no radial layers. */
.project-airflow {
  background: linear-gradient(135deg, #c6e3df 0%, #6f9ea8 50%, #405b67 100%) !important;
}
.project-switch {
  background: linear-gradient(135deg, #e7c5d8 0%, #a98fc1 50%, #4c486d 100%) !important;
}
.project-sao {
  background: linear-gradient(135deg, #f0c7a6 0%, #c77d70 50%, #613d4e 100%) !important;
}
.project-cross {
  background: linear-gradient(135deg, #d8e4bc 0%, #8ca98a 50%, #3e5b4e 100%) !important;
}
.project-oulu {
  background: linear-gradient(135deg, #c7d9ec 0%, #7e9cc0 50%, #3f536f 100%) !important;
}
.project-awoke {
  background: linear-gradient(135deg, #d9c4a6 0%, #a87861 50%, #4b3940 100%) !important;
}

.project-content .project-media:nth-child(1) {
  background: linear-gradient(135deg, #b7d9d4 0%, #668d9c 50%, #394b60 100%) !important;
}
.project-content .project-media:nth-child(2) {
  background: linear-gradient(135deg, #e4c3d5 0%, #9c7fb2 50%, #514967 100%) !important;
}
.project-content .project-media:nth-child(3) {
  background: linear-gradient(135deg, #f0cfaa 0%, #bd7f73 50%, #624653 100%) !important;
}

/* Project text/details: deliberately light. */
.project-description,
.project-details,
.project-details p,
.project-details strong,
.project-details em {
  font-weight: 300 !important;
  color: #777 !important;
}

/* ---------- Project media alignment ---------- */
/*
  Project media is intentionally NOT centered.
  It sits on the right side of the page. The navigation below uses
  the exact same horizontal bounds.
*/
.project-content {
  width: min(950px, calc(100vw - (2 * var(--page-pad))));
  margin-left: auto;
  margin-right: var(--page-pad);
  padding: 0;
}

.project-content .project-media {
  width: 100%;
  margin-left: auto;
  margin-right: 0;
}

/* Previous/next project footer. */
.project-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  margin: 80px var(--page-pad) 100px;
  font-size: 16px;
  font-weight: 600;
}
.project-navigation a {
  color: #777;
  text-decoration: none;
  padding: 2px 3px;
  transition: color 300ms ease, background-color 300ms ease;
}
.project-navigation a:hover,
.project-navigation a:focus-visible {
  color: #000;
  background: #AFCAF0;
  outline: none;
}
.project-navigation .next {
  text-align: right;
}

@media (max-width: 700px) {
  .project-content {
    width: 100%;
    padding: 0 16px;
  }
  .project-navigation {
    margin: 60px 16px 70px;
    font-size: 16px;
  }
}

/* ---------- V16: project media + navigation alignment ---------- */

.project-content {
  width: min(950px, calc(100vw - (2 * var(--page-pad)))) !important;
  margin-left: auto !important;
  margin-right: var(--page-pad) !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.project-content .project-media {
  width: 100% !important;
  margin-left: auto !important;
  margin-right: 0 !important;
}

.project-navigation {
  width: min(950px, calc(100vw - (2 * var(--page-pad)))) !important;
  margin-left: auto !important;
  margin-right: var(--page-pad) !important;
  margin-top: 80px;
  margin-bottom: 100px;
}

@media (max-width: 700px) {
  .project-content {
    width: calc(100% - 32px) !important;
    margin-left: auto !important;
    margin-right: 16px !important;
    padding: 0 !important;
  }

  .project-navigation {
    width: calc(100% - 32px) !important;
    margin-left: auto !important;
    margin-right: 16px !important;
    margin-top: 60px;
    margin-bottom: 70px;
  }
}


/* ---------- V17 project navigation typography ---------- */
.project-navigation {
  font-weight: 300;
}

.project-navigation a {
  font-weight: 300;
}

.project-navigation .nav-label {
  font-weight: 300;
  color: #777;
}

.project-navigation strong {
  font-weight: 600;
  color: #000;
}

.project-navigation a:hover .nav-label,
.project-navigation a:focus-visible .nav-label {
  color: #000;
}


/* ---------- V18 project information ---------- */

.project-intro h1 {
  font-weight: 600;
}

.project-details,
.project-details p,
.project-details strong,
.project-details em,
.project-description {
  font-weight: 300 !important;
  color: #777 !important;
}

.project-details strong {
  font-weight: 600 !important;
  color: #777 !important;
}


/* ---------- Final asset wiring / responsive media ---------- */

.portrait-placeholder { display: none; }

.portrait-image {
  width: 100%;
  max-width: 430px;
  height: auto;
  display: block;
  object-fit: contain;
}

.project-content {
  width: min(950px, calc(100vw - (2 * var(--page-pad)))) !important;
  margin-left: auto !important;
  margin-right: var(--page-pad) !important;
}

.project-media-stack {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.project-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.project-media-item {
  margin: 0;
  padding: 0;
  min-height: 0 !important;
  width: 100%;
  background: transparent !important;
  display: block;
}

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

/* Keep the real image proportions on every screen size.
   No cropping and no forced landscape boxes. */
.project-media-stack .project-media-item img,
.awoke-grid .project-media-item img {
  aspect-ratio: auto;
}

@media (max-width: 700px) {
  :root { --page-pad: 16px; }

  .project-page {
    padding-left: 16px;
    padding-right: 16px;
  }

  .project-content {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

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

  .project-media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .project-media-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .project-navigation {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .portrait-image {
    width: 100%;
    max-width: none;
  }
}

/* Home WebM: fill the viewport while retaining the animation's aspect ratio. */
.video-hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}


/* ---------- V20: project media size + real work thumbnails ---------- */

/* Project media: 1.2x wider than the previous 950px maximum. */
.project-content {
  width: min(1140px, calc(100vw - (2 * var(--page-pad)))) !important;
}

.project-navigation {
  width: min(1140px, calc(100vw - (2 * var(--page-pad)))) !important;
}

/* Real thumbnail images replace the gradient placeholders. */
.project-image {
  background-size: cover;
  background-position: center;
}

/* About profile photo sits directly above the introduction paragraph. */
.portrait-image {
  width: 100%;
  max-width: 430px;
  height: auto;
  display: block;
  object-fit: contain;
}

@media (max-width: 700px) {
  /* Keep exactly the same 16px left/right page padding on mobile. */
  .project-content,
  .project-navigation {
    width: 100% !important;
  }

  .project-media-stack .project-media-item img {
    width: 100%;
    height: auto;
  }

  .portrait-image {
    width: 100%;
    max-width: none;
  }
}


/* ---------- V21: real Work thumbnails ---------- */

/* Work cards use the actual thumbnail files as images.
   No project gradient is used here. */
.work-grid .project-image {
  background: none !important;
}

.work-grid .project-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transition: transform .65s cubic-bezier(.2,.7,.2,1);
}

.work-grid .project-card:hover .project-image img,
.work-grid .project-card:focus-visible .project-image img {
  transform: scale(1.035);
}

@media (max-width: 700px) {
  .work-grid .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}


/* ---------- V22: Home video behind header + footer ---------- */
/* Only the Home page gets transparent navigation chrome.
   Work, About and project pages keep their white header/footer. */
body.home .site-header--overlay,
body.home .site-footer--overlay {
  background: transparent;
  color: #6E6E6E;
}

body.home .site-header--overlay {
  z-index: 100;
}

body.home .site-footer--overlay {
  z-index: 100;
}

/* Keep the animation as the full-page layer underneath the navigation. */
body.home .home-main,
body.home .video-hero {
  position: relative;
  z-index: 1;
}

body.home .video-hero video {
  position: absolute;
  inset: 0;
}


/* ---------- V23: larger brand mark ---------- */
.site-header .brand {
  gap: 12px;
}
.site-header .brand .logo-link {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
}
.site-header .brand .logo-image {
  width: 36px;
  height: 36px;
}


/* V25 requested typography */
.about-page,
.about-page p,
.about-page .about-entry,
.about-page .about-description {
  font-family: "Work Sans", Arial, sans-serif;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.45;
}
.about-column h2 {
  font-family: "Work Sans", Arial, sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
}
.about-page .about-entry em, .about-page .about-entry u { font-weight: 300; }
.project-intro h1 {
  font-family: "Work Sans", Arial, sans-serif;
  font-size: 38px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.035em;
  color: #000;
}
.project-details, .project-details p {
  font-family: "Work Sans", Arial, sans-serif;
  font-size: 18px;
  font-weight: 300 !important;
  line-height: 1.45;
  color: #6E6E6E !important;
}
.project-details strong { font-weight: 600 !important; color: #6E6E6E !important; }
.project-description {
  font-family: "Work Sans", Arial, sans-serif;
  font-size: 18px;
  font-weight: 300 !important;
  line-height: 1.55;
  color: #000 !important;
}
.project-link {
  color: #000; text-decoration: underline; text-underline-offset: 2px;
  font-style: italic; font-weight: 300;
}
.project-link .award-word { font-weight: 600; }
.project-quote, .project-attribution {
  font-family: "Work Sans", Arial, sans-serif; font-size: 18px; font-weight: 300;
  line-height: 1.5; font-style: italic; color: #000;
}
.project-quote { margin: 0 0 30px; }
.project-attribution { margin: 0 0 32px; }
.project-description-paragraph { margin-bottom: 34px; }
.project-description + .project-link { display: inline-block; }
@media (max-width:700px) {
  .about-page, .about-page p, .about-page .about-entry, .about-page .about-description, .about-column h2,
  .project-details, .project-details p, .project-description, .project-quote, .project-attribution { font-size:18px; }
  .project-intro h1 { font-size:38px; }
}


/* ---------- V28: final link + typography refinements ---------- */
.about-external-link { color: inherit; }
.about-external-link:hover, .about-external-link:focus-visible { color: inherit; }

/* Project date/client lines use the exact same typography as the project paragraph. */
.project-details,
.project-details p {
  font-weight: 300 !important;
  color: #000 !important;
}

/* Project intro rhythm: metadata, one line of space, paragraph, one line of space, link. */
.project-description {
  margin-top: 18px;
  margin-bottom: 28px;
}
.project-intro > p:has(.project-link),
.project-intro > p:has(.project-award-plain) {
  margin: 0;
}
.project-quote {
  margin-top: 18px;
}

/* Cross+ nomination is a plain paragraph-style link: no bold, underline or italic. */
.project-award-plain {
  color: #000;
  text-decoration: none;
  font-style: normal;
  font-weight: 300;
}
.project-award-plain:hover,
.project-award-plain:focus-visible {
  color: #000;
  background: #AFCAF0;
  outline: none;
}

/* Header logo: 75% of the previous 36px size. */
.site-header .brand .logo-link {
  width: 27px;
  height: 27px;
  flex-basis: 27px;
}
.site-header .brand .logo-image {
  width: 27px;
  height: 27px;
}

@media (max-width: 700px) {
  .site-header .brand .logo-link {
    width: 27px;
    height: 27px;
    flex-basis: 27px;
  }
  .site-header .brand .logo-image {
    width: 27px;
    height: 27px;
  }
}

/* V30: one line of breathing room between project intro and first image. */
.project-intro + .project-content {
  margin-top: 18px;
}


/* V34: home video — preserve the video's intrinsic aspect ratio at all times.
   Mobile uses one uniform scale only. The video is deliberately a little taller
   than the viewport so the portrait screen crops the left/right edges instead
   of ever stretching the media. */
body.home .video-hero {
  position: relative;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  background: #000;
}

body.home .video-hero video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto !important;
  height: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 0 !important;
  object-fit: contain !important;
  object-position: center center;
  display: block;
  transform: translate(-50%, -50%);
  background: #000;
  pointer-events: none;
}

/* Header remains a transparent overlay on the home video. */
body.home .site-header--overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  z-index: 100;
}

/* Desktop footer remains the transparent overlay used by the web version. */
body.home .site-footer--overlay {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  z-index: 100;
}

@media (max-width: 700px) {
  /* The mobile home page is a full-screen video canvas. */
  body.home .video-hero {
    width: 100vw;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }

  body.home .site-header--overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: transparent;
    z-index: 1000;
  }

  /* Do NOT give the video separate X/Y dimensions.
     Height is the only dimension. Width follows the video's intrinsic ratio.
     This is the key guarantee against non-uniform distortion. */
  body.home .video-hero video {
    width: auto !important;
    height: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 0 !important;
    object-fit: contain !important;
    object-position: center center !important;
    top: 50%;
    left: 50%;
    transform: translate3d(-50%, -50%, 0);
  }

  /* Keep the footer in normal document flow on mobile. It sits after the
     full video section, so it is perfectly fine to scroll down to it. */
  body.home .site-footer--overlay {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    background: transparent;
    color: #6E6E6E;
    z-index: 1000;
    padding: 24px 16px calc(24px + env(safe-area-inset-bottom));
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  body.home .site-footer--overlay .footer-links {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
  }
}
