/* ---------------------------------------------------------
   Harry Quirk portfolio
   Monochrome. Clean base, quirk lives in type & motion.
--------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&family=DM+Sans:wght@500;600;700&display=swap');

:root{
  --ink: #111111;
  --paper: #FAFAF8;
  --paper-dim: #F0EFEC;
  --line: #DEDCD6;
  --grey: #6B6960;
  --max: 1280px;
  --gap: clamp(1.25rem, 3vw, 2.5rem);
  --radius: 14px;
  --ease: cubic-bezier(.16,.84,.44,1);
}

@media (prefers-color-scheme: dark){
  :root{
    --ink: #F2F1EC;
    --paper: #121210;
    --paper-dim: #1A1917;
    --line: #33322D;
    --grey: #9A988E;
  }
}
:root[data-theme="dark"]{
  --ink: #F2F1EC;
  --paper: #121210;
  --paper-dim: #1A1917;
  --line: #33322D;
  --grey: #9A988E;
}
:root[data-theme="light"]{
  --ink: #111111;
  --paper: #FAFAF8;
  --paper-dim: #F0EFEC;
  --line: #DEDCD6;
  --grey: #6B6960;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body{
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body > main{ flex: 1 0 auto; }
img, video{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
h1,h2,h3,h4{
  font-family: 'DM Sans', 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.01em;
}
p{ margin: 0 0 1em; color: var(--grey); max-width: 62ch; }
p:last-child{ margin-bottom: 0; }
.wrap{ max-width: var(--max); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }
.visually-hidden{
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------------- Top nav ---------------- */
.site-header{
  position: sticky; top: 0; z-index: 40;
  background: #0A0A0A;
  border-bottom: 1px solid #0A0A0A;
}
.site-header .wrap{
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.logo{
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: #FAFAF8;
}
.logo em{
  font-style: normal;
  font-weight: 500;
}
.main-nav{ display: flex; align-items: center; gap: clamp(1.25rem, 3vw, 2.25rem); }
.main-nav a{
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(250,250,248,0.55);
  position: relative;
  padding: 4px 0;
  transition: color .2s var(--ease);
}
.main-nav a:hover, .main-nav a[aria-current="page"]{ color: #FAFAF8; }
.main-nav a[aria-current="page"]::after{
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: #FAFAF8; border-radius: 2px;
}
.nav-toggle{ display: none; }

/* ---------------- Floating contact button ---------------- */
.contact-fab{
  position: fixed;
  right: clamp(1rem, 4vw, 2rem);
  bottom: clamp(1rem, 4vw, 2rem);
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: 0.95em 1.4em;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.35);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  will-change: transform;
}
.contact-fab:hover{ transform: translateY(-3px) rotate(-1deg); box-shadow: 0 14px 30px -8px rgba(0,0,0,0.4); }
.contact-fab:active{ transform: translateY(0) rotate(0); }
.contact-fab .dot{
  width: 7px; height: 7px; border-radius: 50%; background: var(--paper);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse{
  0%, 100%{ opacity: 1; transform: scale(1); }
  50%{ opacity: .35; transform: scale(.7); }
}

/* ---------------- Footer ---------------- */
.site-footer{
  background: #0A0A0A;
  margin-top: clamp(4rem, 10vw, 7rem);
  padding: 2.5rem 0 7rem;
}
.site-footer .wrap{
  display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  align-items: baseline; justify-content: space-between;
}
.site-footer p{ font-size: 0.85rem; margin: 0; color: #FAFAF8; }
.footer-links{ display: flex; gap: 1.5rem; }
.footer-links a{ font-size: 0.85rem; color: rgba(250,250,248,0.55); transition: color .2s; }
.footer-links a:hover{ color: #FAFAF8; }

/* ---------------- Homepage ---------------- */
body.home{ background: #FFFFFF; }
main.landing{
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero{
  padding: clamp(3rem, 10vh, 6rem) 0 clamp(1.5rem, 5vh, 2.5rem);
  text-align: center;
}
.hero h1{
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(2.6rem, 9vw, 6rem);
  letter-spacing: -0.03em;
}
.hero h1 em{ font-style: normal; font-weight: 500; }
.hero .role{
  margin-top: 1.75rem;
  margin-left: auto;
  margin-right: auto;
  color: var(--grey);
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
}
.choose-gif{
  width: 160px;
  margin: 1.5rem auto 0;
}
.hero .contact-fab{
  position: static;
  margin: 1.75rem 0 0;
}

.trio{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  padding: 0 clamp(1.25rem, 4vw, 3rem) clamp(3rem, 8vh, 5rem);
  max-width: var(--max);
  margin: 0 auto;
}
.trio-tile{
  position: relative;
  display: block;
  transition: transform .45s var(--ease);
}
.trio-tile:hover{
  transform: translateY(-6px);
}
.trio-tile img{
  display: block;
  width: 100%; height: auto;
}

.homepage-note{
  text-align: center;
  padding-bottom: clamp(3rem, 8vh, 5rem);
}
.homepage-note p{ margin: 0 auto; font-size: 0.9rem; }

/* ---------------- Category page hero ---------------- */
.page-hero{
  padding: clamp(2.5rem, 7vh, 4rem) 0 clamp(2rem, 5vh, 3rem);
  border-bottom: 1px solid var(--line);
}
.page-hero .eyebrow{
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 0.9rem;
}
.page-hero h1{ font-size: clamp(2.2rem, 6vw, 3.6rem); max-width: 60%; }
.page-hero .lede{
  margin-top: 1.1rem;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  max-width: 60%;
}
.category-cover{ margin-top: 2rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.category-cover img{ width: 100%; }

/* ---------------- Project index grid ---------------- */
.project-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 3vw, 2rem);
  padding: clamp(2rem, 5vh, 3rem) 0 clamp(4rem, 9vh, 6rem);
}
.project-card{ display: block; }
.project-card .thumb{
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-dim);
  border: 1px solid var(--line);
  margin-bottom: 1.1rem;
}
.project-card .thumb img{
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease);
}
.project-card .thumb.contain img{ object-fit: contain; }
.project-card:hover .thumb img{ transform: scale(1.045); }
.project-card .thumb.no-image{
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--paper);
  text-align: center; padding: 1.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  letter-spacing: -0.01em;
}
.project-card .client{
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 0.4rem;
}
.project-card h2{
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  transition: opacity .2s;
}
.project-card:hover h2{ opacity: .6; }
.project-card p{ margin-top: 0.5rem; font-size: 0.92rem; }

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

/* ---------------- Project detail (solo) page ---------------- */
.back-link{
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--grey);
  margin-top: 2rem;
  transition: color .2s, transform .2s var(--ease);
}
.back-link:hover{ color: var(--ink); transform: translateX(-3px); }

.project-solo{ border-bottom: none; }
.project-solo .project-head h1{
  font-size: clamp(1.9rem, 4.4vw, 2.75rem);
}

/* ---------------- Project sections ---------------- */
.project{
  padding: clamp(2.5rem, 6vh, 4rem) 0;
  border-bottom: 1px solid var(--line);
}
.project:last-of-type{ border-bottom: none; }
.project-head{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
}
.project-head .titles{ width: 80%; }
.project-head .client{
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 0.5rem;
}
.project-head h2{ font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
.project-head .desc{ margin-top: 0.85rem; }
.project-head .desc p{ font-size: 0.98rem; max-width: none; }
.project-head .takeaway{
  width: 60%;
  margin-top: 0.9rem;
  padding: 1.25rem 1.5rem;
  background: var(--paper-dim);
  border-radius: 10px;
}
.project-head .takeaway p{ max-width: none; }
.project-head .takeaway .label{
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.subhead{
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  margin: 2rem 0 1rem;
  color: var(--ink);
}
.subhead:first-child{ margin-top: 0; }

.gallery{
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), 1fr);
  align-items: start;
  gap: 0.85rem;
  margin-bottom: 0.5rem;
}
.gallery.cols-2{ --cols: 2; }
.gallery.cols-4{ --cols: 4; }
.gallery.cols-5{ --cols: 5; }
.gallery figure{
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper-dim);
  border: 1px solid var(--line);
  cursor: zoom-in;
}
.gallery figure.wide{ grid-column: span 2; }
.gallery figure img{
  width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3;
  transition: transform .5s var(--ease);
}
.gallery figure:hover img{ transform: scale(1.04); }
.gallery.anchor-top figure img{ object-position: top; }
.gallery figure.portrait img{ aspect-ratio: 3/4; }
.gallery figure.square img{ aspect-ratio: 1/1; }
.gallery figure.tall img{ aspect-ratio: 9/16; }
.gallery figure.landscape img{ aspect-ratio: 16/9; }
.gallery.banner-ratio figure img{ aspect-ratio: 1200/628; }
.gallery.filter-portrait figure img{ aspect-ratio: 556/1190; }

.ooh-mosaic{ grid-template-columns: 1fr 3fr; }
.ooh-mosaic .ooh-video{
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--ink);
  border: 1px solid var(--line);
}
.ooh-mosaic .ooh-video video{ width: 100%; height: 100%; object-fit: cover; display: block; }
.ooh-mosaic .ooh-quad{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}
.ooh-mosaic .ooh-quad figure{
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper-dim);
  border: 1px solid var(--line);
  cursor: zoom-in;
}
.ooh-mosaic .ooh-quad figure img{ width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1/1; display: block; }

@media (max-width: 760px){
  .ooh-mosaic{ grid-template-columns: 1fr; }
  .ooh-mosaic .ooh-video{ aspect-ratio: 4/3; }
}

.ceo-mosaic{
  grid-template-columns: 1fr 1.2fr 1fr;
  grid-template-rows: auto auto;
  grid-template-areas:
    "a c b"
    "d c e";
}
.ceo-mosaic .m-a{ grid-area: a; }
.ceo-mosaic .m-b{ grid-area: b; }
.ceo-mosaic .m-c{ grid-area: c; }
.ceo-mosaic .m-d{ grid-area: d; }
.ceo-mosaic .m-e{ grid-area: e; }
.ceo-mosaic .m-a img,
.ceo-mosaic .m-b img,
.ceo-mosaic .m-d img,
.ceo-mosaic .m-e img{ aspect-ratio: 2/1; }
.ceo-mosaic .m-c{ align-self: stretch; }
.ceo-mosaic .m-c img{ height: 100%; aspect-ratio: auto; }

@media (max-width: 760px){
  .ceo-mosaic{
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas:
      "a b"
      "d e"
      "c c";
  }
  .ceo-mosaic .m-c{ align-self: auto; }
  .ceo-mosaic .m-c img{ height: auto; aspect-ratio: 4/3; }
}

.leo-mosaic{
  grid-template-columns: 1.8fr 1fr;
  grid-template-rows: auto auto;
  grid-template-areas:
    "a b"
    "c b";
}
.leo-mosaic .m-a{ grid-area: a; }
.leo-mosaic .m-c{ grid-area: c; }
.leo-mosaic .m-b{ grid-area: b; align-self: stretch; }
.leo-mosaic .m-a img,
.leo-mosaic .m-c img{ aspect-ratio: 16/9; object-fit: contain; }
.leo-mosaic .m-b img{ height: 100%; aspect-ratio: auto; object-fit: contain; }

@media (max-width: 760px){
  .leo-mosaic{
    grid-template-columns: 1fr;
    grid-template-areas:
      "a"
      "c"
      "b";
  }
  .leo-mosaic .m-b{ align-self: auto; }
  .leo-mosaic .m-b img{ height: auto; aspect-ratio: 3/4; }
}

.info-row{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.info-card{
  background: var(--paper-dim);
  border-radius: 10px;
  padding: 1.25rem 1.25rem 1.5rem;
}
.info-card .subhead{ margin-top: 0; }
.info-card figure{
  margin: 1rem 0 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  cursor: zoom-in;
}
.info-card figure img{ width: 100%; height: auto; display: block; }
@media (max-width: 760px){
  .info-row{ grid-template-columns: 1fr; }
}

.quirk-stack{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  background: #000;
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 0.5rem;
}
.quirk-stack .quirk-col{
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.quirk-stack figure{ margin: 0; cursor: zoom-in; }
.quirk-stack figure img,
.quirk-stack figure video{ width: 100%; height: auto; display: block; }
.quirk-stack .quirk-col:first-child img{ width: 40%; margin: 0 auto; }
.quirk-stack .quirk-col video{ width: 70%; margin: 0 auto; }
@media (max-width: 760px){
  .quirk-stack{ grid-template-columns: 1fr; }
}

.slideshow{ position: relative; margin-bottom: 0.5rem; }
.slideshow-viewport{
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper-dim);
}
.slideshow-track{
  display: flex;
  transition: transform .45s var(--ease);
}
.slideshow-track figure{
  flex: 0 0 100%;
  margin: 0;
  cursor: zoom-in;
}
.slideshow-track figure img{
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: contain;
  display: block;
}
.slideshow-arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: .85;
  font-size: 1.2rem;
  line-height: 1;
  transition: opacity .2s, transform .2s var(--ease);
}
.slideshow-arrow:hover{ opacity: 1; transform: translateY(-50%) scale(1.06); }
.slideshow-arrow.prev{ left: 0.75rem; }
.slideshow-arrow.next{ right: 0.75rem; }
.slideshow-dots{
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}
.slideshow-dots button{
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--line);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.slideshow-dots button.active{ background: var(--ink); transform: scale(1.3); }
@media (max-width: 760px){
  .slideshow-arrow{ width: 36px; height: 36px; font-size: 1rem; }
}

.banner-mosaic{
  grid-template-columns: repeat(4, 1fr) minmax(200px, 1.1fr);
  grid-template-rows: auto auto auto auto;
  grid-template-areas:
    "sq1 sq2 sq3 sq4 tall"
    "w1  w1  w1  w1  tall"
    "w2  w2  w2  w2  tall"
    "w3  w3  w3  w3  tall";
}
.banner-mosaic .sq1{ grid-area: sq1; }
.banner-mosaic .sq2{ grid-area: sq2; }
.banner-mosaic .sq3{ grid-area: sq3; }
.banner-mosaic .sq4{ grid-area: sq4; }
.banner-mosaic .tall{ grid-area: tall; align-self: stretch; }
.banner-mosaic .w1{ grid-area: w1; }
.banner-mosaic .w2{ grid-area: w2; }
.banner-mosaic .w3{ grid-area: w3; }
.banner-mosaic .sq1 img,
.banner-mosaic .sq2 img,
.banner-mosaic .sq3 img,
.banner-mosaic .sq4 img{ aspect-ratio: 7/6; }
.banner-mosaic .tall img{ height: 100%; }
.banner-mosaic .w1 img,
.banner-mosaic .w2 img,
.banner-mosaic .w3 img{ aspect-ratio: 1288/248; }

@media (max-width: 760px){
  .banner-mosaic{
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas:
      "sq1 sq2"
      "sq3 sq4"
      "tall tall"
      "w1 w1"
      "w2 w2"
      "w3 w3";
  }
  .banner-mosaic .tall{ align-self: auto; }
  .banner-mosaic .tall img{ aspect-ratio: 366/1408; height: auto; }
}
.gallery figure video{ width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* video embed facade */
.video-embed{
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 10px;
  overflow: hidden;
  background: var(--ink);
  border: 1px solid var(--line);
  margin-bottom: 1.25rem;
  cursor: pointer;
}
.video-embed iframe{ position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed .play{
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--paper);
}
.video-embed .play .btn{
  width: 64px; height: 64px; border-radius: 50%;
  background: color-mix(in srgb, var(--paper) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--paper) 30%, transparent);
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.video-embed:hover .play .btn{ transform: scale(1.08); background: color-mix(in srgb, var(--paper) 20%, transparent); }
.video-embed .play svg{ width: 20px; height: 20px; margin-left: 3px; }
.video-embed .caption{
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0.9rem 1rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  background: linear-gradient(to top, rgba(0,0,0,.55), transparent);
}
.video-row{ display: grid; grid-template-columns: 1fr; gap: 1rem; align-items: stretch; }
.video-row.cols-2{ grid-template-columns: repeat(2, 1fr); }
.video-card{
  display: flex;
  flex-direction: column;
  background: var(--paper-dim);
  border-radius: 10px;
  padding: 1.25rem 1.25rem 0;
}
.video-card .subhead{ margin-top: 0; }
.video-card .video-embed{ margin-top: auto; margin-bottom: 1.25rem; }

.gallery.no-crop figure img{ height: auto; aspect-ratio: auto; object-fit: contain; }

/* ---------------- Lightbox ---------------- */
.lightbox{
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10,10,9,0.92);
  display: none;
  align-items: center; justify-content: center;
  padding: 4vh 4vw;
}
.lightbox.open{ display: flex; }
.lightbox img{ max-width: 100%; max-height: 92vh; border-radius: 6px; margin: 0 auto; }
.lightbox-close{
  position: absolute; top: clamp(1rem,3vw,2rem); right: clamp(1rem,3vw,2rem);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25);
  color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}

/* ---------------- Contact page ---------------- */
.contact-layout{
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
  padding: clamp(2rem, 6vh, 4rem) 0 clamp(4rem, 10vh, 6rem);
}
.contact-photo{
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 3/4;
}
.contact-photo img{ width: 100%; height: 100%; object-fit: cover; }
.contact-copy .eyebrow{
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--grey); margin-bottom: 1rem; display: block;
}
.contact-copy h1{ font-size: clamp(2rem, 5vw, 3.1rem); margin-bottom: 1.1rem; }
.contact-copy h1 .wave-icon svg{ width: 100%; height: 100%; }
.contact-copy p.big{ font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--ink); }
.contact-links{ margin-top: 2rem; display: flex; flex-direction: column; gap: 0.9rem; }
.contact-link{
  position: relative;
  display: flex; align-items: center; gap: 0.9rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  font-weight: 600;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
  transition: opacity .2s, transform .3s var(--ease);
  width: fit-content;
}
.copied-msg{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-left: calc(34px + 0.9rem);
  background: var(--paper);
  color: var(--ink);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.copied-msg.show{ opacity: 1; transform: translateY(0); }
.contact-link:hover{ opacity: .6; transform: translateX(4px); }
.contact-link.is-copied,
.contact-link.is-copied:hover{ opacity: 1; transform: none; }
.contact-link .icon{
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-link .icon svg{ width: 16px; height: 16px; }

@media (max-width: 860px){
  .contact-layout{ grid-template-columns: 1fr; padding-top: 1.5rem; }
  .contact-photo{ max-width: 280px; margin: 0 auto; aspect-ratio: 4/5; }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 760px){
  .logo, .nav-toggle{ position: relative; z-index: 2; }
  .main-nav{
    position: fixed; top: 0; left: 0; right: 0;
    height: 100vh; height: 100dvh;
    z-index: 1;
    background: #0A0A0A;
    flex-direction: column;
    align-items: flex-start;
    padding: 96px clamp(1.25rem, 4vw, 3rem) 2rem;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform .35s var(--ease);
  }
  .main-nav.open{ transform: translateX(0); }
  .main-nav a{ font-size: 1.3rem; }
  .nav-toggle{
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border: none; background: none; cursor: pointer;
    flex-direction: column; gap: 5px;
  }
  .nav-toggle span{ display: block; width: 22px; height: 2px; background: #FAFAF8; transition: transform .3s, opacity .3s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

  .trio{ grid-template-columns: 1fr; }
  .gallery{ --cols: 2 !important; }
  .gallery figure.wide{ grid-column: span 2; }
  .video-row.cols-2{ grid-template-columns: 1fr; }
  .project-head{ flex-direction: column; gap: 0.75rem; }
  .project-head .titles{ width: 100%; }
  .project-head .takeaway{ width: 100%; }
  .page-hero h1, .page-hero .lede{ max-width: 100%; }
}
