/* ==========================================================================
   Hải-ý Lê — documentary & brand film
   Design tokens
   ========================================================================== */

:root {
  /* Earth palette */
  --forest-900: #101c15;
  --forest-800: #16241c;
  --forest-700: #1e3227;
  --forest-600: #2a4434;
  --moss:       #6f7f5f;
  --olive:      #8a9470;

  --paper:      #faf7f0;
  --paper-2:    #f3ede1;
  --sand:       #e6dcc7;
  --sand-deep:  #d7c9ab;

  --clay:       #a65f46;
  --clay-soft:  #c98a6e;

  --ink:        #1b241d;
  --ink-soft:   #55604f;
  --ink-faint:  #676d5e;

  --on-dark:        #f4efe4;
  --on-dark-soft:   rgba(244, 239, 228, 0.68);
  --on-dark-faint:  rgba(244, 239, 228, 0.50);

  /* Type */
  --display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --step--1: clamp(0.82rem, 0.79rem + 0.14vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1:  clamp(1.15rem, 1.08rem + 0.34vw, 1.375rem);
  --step-2:  clamp(1.45rem, 1.3rem + 0.7vw, 1.95rem);
  --step-3:  clamp(1.95rem, 1.6rem + 1.7vw, 3.1rem);
  --step-4:  clamp(2.7rem, 1.7rem + 4.6vw, 6.25rem);

  /* Space */
  --gutter: clamp(1.25rem, 4vw, 5rem);
  --section-y: clamp(4.5rem, 10vw, 9.5rem);
  --maxw: 1440px;

  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --grain: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNjAiIGhlaWdodD0iMTYwIj48ZmlsdGVyIGlkPSJuIj48ZmVUdXJidWxlbmNlIHR5cGU9ImZyYWN0YWxOb2lzZSIgYmFzZUZyZXF1ZW5jeT0iMC44NSIgbnVtT2N0YXZlcz0iNCIgc3RpdGNoVGlsZXM9InN0aXRjaCIvPjxmZUNvbG9yTWF0cml4IHR5cGU9InNhdHVyYXRlIiB2YWx1ZXM9IjAiLz48L2ZpbHRlcj48cmVjdCB3aWR0aD0iMTYwIiBoZWlnaHQ9IjE2MCIgZmlsdGVyPSJ1cmwoI24pIi8+PC9zdmc+Cg==");
}

/* ==========================================================================
   Base
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  font-variation-settings: "SOFT" 20, "WONK" 1;
}

p { margin: 0 0 1.15em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

::selection { background: var(--clay); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
  border-radius: 1px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 200;
  background: var(--forest-800);
  color: var(--on-dark);
  padding: 0.75rem 1.25rem;
  font-size: var(--step--1);
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ==========================================================================
   Layout primitives
   ========================================================================== */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }

.section--dark {
  background: var(--forest-800);
  color: var(--on-dark);
}

.section--sand { background: var(--paper-2); }

.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  background-size: 160px 160px;
  opacity: 0.055;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.eyebrow {
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
  flex: none;
}
.section--dark .eyebrow { color: var(--on-dark-faint); }

.lede {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 46ch;
}
.section--dark .lede { color: var(--on-dark-soft); }

.section-head {
  display: grid;
  gap: clamp(1.5rem, 3vw, 3rem);
  grid-template-columns: 1fr;
  align-items: end;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
@media (min-width: 900px) {
  .section-head { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
}
.section-head h2 { font-size: var(--step-3); max-width: 16ch; text-wrap: balance; }

.rule {
  height: 1px;
  border: 0;
  background: currentColor;
  opacity: 0.14;
  margin: 0;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  --btn-bg: var(--forest-800);
  --btn-fg: var(--paper);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bg);
  border-radius: 999px;
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease),
    color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn .arrow { transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.btn--light { --btn-bg: var(--paper); --btn-fg: var(--forest-800); }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: currentColor;
  border-color: currentColor;
  opacity: 0.85;
}
.btn--ghost:hover { opacity: 1; }
.btn--clay { --btn-bg: var(--clay); --btn-fg: var(--paper); }

.link-underline {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  padding-bottom: 1px;
  transition: background-size 0.4s var(--ease), opacity 0.3s var(--ease);
}
.link-underline:hover { background-size: 0% 1px; opacity: 0.7; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  color: var(--on-dark);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease),
    box-shadow 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}

.site-header.is-stuck {
  background: rgba(250, 247, 240, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(27, 36, 29, 0.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.75rem;
}

.wordmark {
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  font-variation-settings: "SOFT" 20, "WONK" 1;
}

.nav { display: flex; align-items: center; gap: clamp(1.25rem, 2.5vw, 2.25rem); }
.nav a {
  font-size: var(--step--1);
  text-decoration: none;
  letter-spacing: 0.01em;
  opacity: 0.75;
  transition: opacity 0.3s var(--ease);
}
.nav a:hover, .nav a.is-active { opacity: 1; }
.nav .btn { padding: 0.65rem 1.2rem; opacity: 1; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.5rem 0;
}
.nav-toggle__bars { display: grid; gap: 4px; width: 20px; }
.nav-toggle__bars i {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}
body.nav-open .nav-toggle__bars i:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
body.nav-open .nav-toggle__bars i:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle__bars i:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; position: relative; z-index: 2; }
  .wordmark { position: relative; z-index: 2; }
  body.nav-open .site-header { color: var(--on-dark); background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav {
    position: fixed;
    inset: 0;
    background: var(--forest-800);
    color: var(--on-dark);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.35rem;
    padding: 8rem var(--gutter) 4rem;
    transform: translateY(-100%);
    transition: transform 0.55s var(--ease);
    overflow-y: auto;
  }
  body.nav-open .nav { transform: translateY(0); }
  .nav a {
    font-family: var(--display);
    font-size: var(--step-2);
    opacity: 1;
    padding-block: 0.35rem;
  }
  .nav .btn { margin-top: 1.5rem; font-family: var(--sans); font-size: var(--step--1); }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  background: var(--forest-800);
  color: var(--on-dark);
  padding-block: clamp(6.5rem, 13vh, 9rem) clamp(3.5rem, 7vw, 5.5rem);
  min-height: min(100svh, 940px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: min(80vw, 780px);
  aspect-ratio: 1;
  right: -16%;
  top: -22%;
  background: radial-gradient(circle at 50% 50%, rgba(138, 148, 112, 0.32), transparent 68%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
}
@media (min-width: 960px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); }
}

.hero h1 {
  font-size: var(--step-4);
  font-weight: 300;
  line-height: 0.99;
  letter-spacing: -0.035em;
  max-width: 14ch;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
.hero h1 em {
  font-style: italic;
  font-variation-settings: "SOFT" 60, "WONK" 1;
  color: var(--sand-deep);
}

.hero .lede { color: var(--on-dark-soft); max-width: 44ch; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: clamp(1.75rem, 3vw, 2.25rem);
}

.hero__figure { margin: 0; position: relative; }
.hero__figure picture { display: block; }
.hero__figure img {
  width: 100%;
  aspect-ratio: 776 / 470;
  max-height: 62vh;
  object-fit: cover;
  border-radius: var(--radius);
  position: relative;
  z-index: 1;
}
.hero__figure figcaption {
  position: relative;
  z-index: 1;
  margin-top: 0.85rem;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--on-dark-faint);
}

/* Short laptop viewports: keep the hero CTAs above the fold */
@media (min-width: 960px) and (max-height: 780px) {
  .hero { padding-block: 5.5rem 3rem; }
  .hero h1 { font-size: clamp(2.7rem, 5.2vw, 4.6rem); margin-bottom: 1.5rem; }
}

/* ==========================================================================
   Marquee strip
   ========================================================================== */

.strip {
  background: var(--forest-900);
  color: var(--on-dark-soft);
  padding-block: 1.1rem;
  overflow: hidden;
  border-top: 1px solid rgba(244, 239, 228, 0.09);
}
.strip__track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: slide 38s linear infinite;
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.strip__track span { display: flex; align-items: center; gap: 3rem; }
.strip__track span::after { content: "◦"; opacity: 0.5; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .strip__track { animation: none; }
}

/* ==========================================================================
   Work
   ========================================================================== */

.work-list { display: grid; gap: clamp(3.5rem, 8vw, 6.5rem); }

.work {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.75rem);
  align-items: start;
}
@media (min-width: 900px) {
  .work { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
  .work--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); }
  .work--flip .work__media { order: 2; }
}

.work__body { display: grid; gap: 1rem; align-content: start; }
@media (min-width: 900px) {
  .work__body { padding-top: 0.5rem; position: sticky; top: 7rem; }
}

.work__index {
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}
.work__title { font-size: var(--step-2); }
.work__title em { font-style: italic; }
.work__desc { color: var(--ink-soft); font-size: 0.98rem; }

/* Media / video facade */
.media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--sand);
  overflow: hidden;
  border-radius: var(--radius);
  isolation: isolate;
}
.media img.media__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.6s var(--ease);
}
.media__btn {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  padding: 0;
  background: none;
  color: var(--paper);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.media__btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16, 28, 21, 0.55), rgba(16, 28, 21, 0.05) 55%);
  transition: opacity 0.5s var(--ease);
  opacity: 0.85;
}
.media:hover img.media__thumb { transform: scale(1.035); }
.media:hover .media__btn::before { opacity: 1; }

.media__play {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(3.5rem, 6vw, 4.75rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(250, 247, 240, 0.14);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(250, 247, 240, 0.55);
  transition: background-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.media__btn:hover .media__play { background: var(--clay); border-color: var(--clay); transform: scale(1.06); }
.media__play svg { width: 34%; }

.media__label {
  position: absolute;
  left: 1rem;
  bottom: 0.9rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250, 247, 240, 0.85);
}

.media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Placeholder shown when no video id / image is set yet */
.media--empty { background: linear-gradient(135deg, var(--sand) 0%, var(--sand-deep) 100%); }
.media--empty .media__btn::before { opacity: 0.25; }
.media--empty .media__play { border-color: rgba(27, 36, 29, 0.35); color: var(--forest-800); }
.media--empty .media__label { color: rgba(27, 36, 29, 0.6); }

/* Brand grid */
.brand-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.brand-card { display: grid; gap: 1.1rem; align-content: start; }
.brand-card h3 { font-size: var(--step-1); }
.brand-card p { font-size: 0.95rem; color: var(--ink-soft); }

/* ==========================================================================
   Services
   ========================================================================== */

.services {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
  border-top: 1px solid rgba(27, 36, 29, 0.12);
}
@media (min-width: 860px) {
  .services { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.service {
  padding: clamp(1.75rem, 3vw, 2.5rem) 0;
  border-bottom: 1px solid rgba(27, 36, 29, 0.12);
  display: grid;
  gap: 0.9rem;
  align-content: start;
}
@media (min-width: 860px) {
  .service { padding: clamp(2rem, 3vw, 2.75rem) clamp(1.5rem, 2.5vw, 2.25rem); border-bottom: 0; border-right: 1px solid rgba(27, 36, 29, 0.12); }
  .service:first-child { padding-left: 0; }
  .service:last-child { border-right: 0; padding-right: 0; }
}

.service h3 { font-size: var(--step-1); }
.service p { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 0; }
.service ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.service ul li { padding-left: 1.1rem; position: relative; line-height: 1.5; }
.service ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 1px;
  background: var(--clay);
}

/* ==========================================================================
   About
   ========================================================================== */

.about {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
@media (min-width: 900px) {
  .about { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
}

.about__intro h2 { font-size: var(--step-3); margin-bottom: 1.25rem; text-wrap: balance; }
@media (min-width: 900px) {
  .about__intro { position: sticky; top: 7rem; }
}
.about__pull {
  font-family: var(--display);
  font-size: var(--step-1);
  line-height: 1.4;
  color: var(--ink-soft);
  margin: 0;
  max-width: 26ch;
}

.about__body { max-width: 62ch; }
.about__body p { color: var(--ink-soft); }

.credentials {
  margin: clamp(2rem, 4vw, 2.75rem) 0 0;
  padding: 1.75rem 0 0;
  border-top: 1px solid rgba(27, 36, 29, 0.14);
  display: grid;
  gap: 1rem;
}
.credentials h3 {
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.credentials ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.85rem; }
.credentials li { display: grid; gap: 0.15rem 1.5rem; font-size: 0.95rem; }
@media (min-width: 560px) {
  .credentials li { grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; }
}
.credentials b { font-weight: 500; }
.credentials span { color: var(--ink-faint); font-size: 0.85rem; font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Contact
   ========================================================================== */

.contact { display: grid; gap: clamp(2.5rem, 5vw, 5rem); align-items: stretch; }
@media (min-width: 940px) {
  .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
}
.contact h2 { font-size: var(--step-3); max-width: 12ch; margin-bottom: 1.5rem; }
.contact__aside { display: grid; gap: 2rem; align-content: space-between; }
.contact__direct { display: grid; gap: 0.5rem; justify-items: start; }
.contact__direct a { font-family: var(--display); font-size: var(--step-1); text-decoration: none; }

.socials { display: flex; gap: 0.6rem; }
.socials a {
  display: grid;
  place-items: center;
  width: 2.75rem;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(244, 239, 228, 0.28);
  color: var(--on-dark);
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.socials a:hover { background: var(--paper); color: var(--forest-800); border-color: var(--paper); }
.socials svg { width: 1.05rem; }

/* Form */
.form { display: grid; gap: 1.15rem; }
.form__row { display: grid; gap: 1.15rem; }
@media (min-width: 560px) { .form__row { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: 0.45rem; }
.field label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-faint);
}
.field input,
.field textarea {
  font: inherit;
  font-size: 1rem; /* 16px minimum keeps iOS from zooming on focus */
  color: var(--on-dark);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(244, 239, 228, 0.28);
  padding: 0.7rem 0;
  border-radius: 0;
  transition: border-color 0.35s var(--ease);
}
.field textarea { resize: vertical; min-height: 6.5rem; }
.field input:hover, .field textarea:hover { border-color: rgba(244, 239, 228, 0.5); }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--sand-deep); }
.field input::placeholder, .field textarea::placeholder { color: rgba(244, 239, 228, 0.5); }

.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 0.5rem; }
.form__status { font-size: 0.85rem; margin: 0; min-height: 1.2em; }
.form__status[data-state="ok"] { color: var(--sand-deep); }
.form__status[data-state="err"] { color: var(--clay-soft); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--forest-900);
  color: var(--on-dark-faint);
  padding-block: 2rem;
  font-size: 0.82rem;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  align-items: center;
  justify-content: space-between;
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--on-dark); }

/* ==========================================================================
   Reveal animation
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
  .media:hover img.media__thumb { transform: none; }
}

/* Still-image work item (no video yet) */
.media--still .media__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16, 28, 21, 0.5), rgba(16, 28, 21, 0) 55%);
  pointer-events: none;
}
.media--still img { width: 100%; height: 100%; object-fit: cover; }

.work__links { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 0.35rem; font-size: 0.9rem; }

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

/* Spam honeypot: off-screen for people, irresistible to bots */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ==========================================================================
   Language switcher
   ========================================================================== */

.lang {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  margin-left: 0.4rem;
}
.lang a {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 0.4rem 0.45rem;
  text-decoration: none;
  opacity: 0.55;
  transition: opacity 0.3s var(--ease);
}
.lang a:hover { opacity: 1; }
.lang a.is-current {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

@media (max-width: 820px) {
  .lang {
    margin: 2.25rem 0 0;
    gap: 0.5rem;
  }
  .lang a {
    font-size: 0.8rem;
    padding: 0.6rem 1rem;
    border: 1px solid rgba(244, 239, 228, 0.28);
    border-radius: 999px;
    opacity: 0.75;
  }
  .lang a.is-current {
    text-decoration: none;
    background: var(--paper);
    color: var(--forest-800);
    border-color: var(--paper);
    opacity: 1;
  }
}
