@font-face {
  font-family: "InterVariable";
  src: url("../fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000;
  --fg: #fff;
  --muted: rgba(255, 255, 255, 0.6);
  --line: rgba(255, 255, 255, 0.2);
  --tile: rgba(255, 255, 255, 0.06);

  --pad: clamp(16px, 2.2vw, 36px);
  --gap: clamp(10px, 1.4vw, 24px);
  --header-h: 72px;

  --font: "InterVariable", "Helvetica Neue", Helvetica, "Segoe UI", Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

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

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html.nav-locked { overflow: hidden; }

h1, h2, h3, .cta { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; }

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

.skip {
  position: absolute;
  left: var(--pad);
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--fg);
  color: var(--bg);
}
.skip:focus { top: 12px; }
main:focus { outline: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 var(--pad);
  background: none;
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: calc(var(--header-h) * 1.3);
  z-index: -1;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.26) 65%, rgba(0, 0, 0, 0) 100%);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
  pointer-events: none;
}

.logo { display: inline-flex; align-items: center; }
.logo img { height: 40px; width: auto; }

.nav-list { display: flex; flex-wrap: wrap; gap: clamp(20px, 3vw, 44px); }

.nav-list a {
  position: relative;
  display: inline-block;
  padding: 4px 0;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav-list a[aria-current="page"]::after { transform: scaleX(1); }
@media (hover: hover) {
  .nav-list a:hover::after { transform: scaleX(1); }
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 8px;
  margin: 0 -8px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.menu-icon {
  position: relative;
  width: 22px;
  height: 22px;
}

.menu-icon svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  transition: opacity 0.2s ease;
}

.menu-icon .icon-close { opacity: 0; }

.nav-open .menu-icon .icon-open { opacity: 0; }
.nav-open .menu-icon .icon-close { opacity: 1; }

@keyframes rise {
  from { transform: translateY(150%); }
  to   { transform: translateY(0); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.display {
  margin: 0;
  font-size: clamp(2.6rem, 10vw, 9.6rem);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.035em;
}

.reveal-line {
  display: inline-block;
  vertical-align: top;
  overflow: hidden;
  padding: 0.1em 0.12em 0.14em 0.06em;
  margin: -0.1em -0.12em -0.14em -0.06em;
}

.reveal-line > span {
  display: inline-block;
  transform: translateY(150%);
  animation: rise 1s var(--ease) 0.1s both;
}

.reveal-line:nth-child(2) > span { animation-delay: 0.22s; }
.reveal-line:nth-child(3) > span { animation-delay: 0.34s; }

.tagline {
  margin: clamp(11px, 1.36vw, 19px) 0 0;
  font-size: clamp(1.15rem, 2.4vw, 2rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--muted);
  opacity: 0;
  animation: fade-up 0.9s var(--ease) 0.6s forwards;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin-top: calc(-1 * var(--header-h));
  min-height: 100vh;
  min-height: 100svh;
  padding: var(--header-h) var(--pad) clamp(32px, 6vw, 72px);
  background: var(--bg) url("../video/hero-poster.jpg") center / cover no-repeat;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.25) 45%, rgba(0, 0, 0, 0.1) 100%);
  pointer-events: none;
}

.hero .tagline { color: rgba(255, 255, 255, 0.88); }

.scroll-cue {
  position: absolute;
  right: var(--pad);
  bottom: clamp(20px, 4vw, 40px);
  z-index: 1;
  display: inline-flex;
  padding: 10px;
  color: var(--fg);
  animation: bob 2.2s ease-in-out infinite;
}
.scroll-icon {
  width: clamp(26px, 2.6vw, 34px);
  height: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}
@media (hover: hover) {
  .scroll-cue:hover { opacity: 0.7; }
}

.page-title {
  padding: clamp(40px, 8vw, 120px) var(--pad) 0;
}

.page-title .display { font-size: clamp(3rem, 10vw, 9rem); }

.section { padding: clamp(56px, 9vw, 140px) var(--pad) 0; }
.section-tight { padding-top: clamp(32px, 5vw, 72px); }

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 3.4vw, 56px) var(--gap);
}

.card { display: block; }

.card-media {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--tile);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.card-title {
  margin: 14px 0 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
}

.card-meta {
  margin: 2px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

@media (hover: hover) {
  .card:hover .card-media img { transform: scale(1.03); }
}

.link,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.05em 1.7em 1.15em;
  border: 1px solid var(--fg);
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.button { justify-self: start; font-family: inherit; cursor: pointer; }
@media (hover: hover) {
  .link:hover,
  .button:hover {
    background: transparent;
    color: var(--fg);
    box-shadow: inset 0 0 0 2px var(--fg);
  }
}

.section-end { margin-top: clamp(28px, 4vw, 56px); }
.featured-work .section-end { text-align: center; }

.page-lead {
  display: flex;
  align-items: center;
  gap: 1.25em;
  margin: clamp(26px, 3.6vw, 48px) 0 0;
  max-width: 40em;
}

.page-lead,
.lead-text {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  color: var(--muted);
  line-height: 1.4;
}

.lead-text {
  margin: clamp(18px, 2.4vw, 32px) 0 0;
  max-width: 34em;
}

.page-lead p { margin: 0; }

.page-lead-icon {
  flex-shrink: 0;
  width: auto;
  height: 4.2em;
  transform: translateY(-10%);
}

@media (max-width: 560px) {
  .page-lead { gap: 1em; }
  .page-lead-icon { height: 3.4em; }
}

.about,
.contact-grid,
.project-intro {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}

.about {
  gap: clamp(24px, 5vw, 96px);
  align-items: end;
}

.about-photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--tile); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }

.about-body { min-width: 0; }

.about-heading {
  margin: 0 0 clamp(20px, 3vw, 44px);
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}

.about-section + .about-section { padding-top: clamp(72px, 11vw, 160px); }

.about-text p {
  margin: 0 0 1.1em;
  max-width: 30em;
  font-size: clamp(1.2rem, 2.3vw, 2.1rem);
  line-height: 1.25;
  letter-spacing: -0.012em;
}

.cta {
  display: block;
  max-width: 14em;
  font-size: clamp(2.1rem, 7vw, 7rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 0.04em;
  text-underline-offset: 0.12em;
  overflow-wrap: anywhere;
  transition: text-decoration-color 0.3s ease;
}
@media (hover: hover) {
  .cta:hover { text-decoration-color: currentColor; }
}

.cta-email {
  font-size: min(clamp(2.1rem, 7vw, 7rem), 9vw);
  text-decoration-color: currentColor;
}
@media (hover: hover) {
  .cta-email:hover { text-decoration-color: transparent; }
}

@keyframes pulse-opacity {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.5; }
}

.cta-pulse { animation: pulse-opacity 2.4s ease-in-out infinite; }

.services { max-width: 900px; margin-top: clamp(40px, 6vw, 80px); }
.services li {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-size: clamp(1.3rem, 2.6vw, 2.2rem);
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.services li:last-child { border-bottom: 1px solid var(--line); }

.trek-icon {
  display: inline-block;
  width: 1.13em;
  height: 0.72em;
  margin: 0 0.12em;
  vertical-align: baseline;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
  overflow: visible;
}

.contact-grid {
  gap: clamp(32px, 6vw, 112px);
  margin-top: clamp(48px, 7vw, 100px);
}

.contact-list li + li { margin-top: 2px; }
.contact-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 1.15rem;
  transition: opacity 0.25s ease;
}

.contact-icon {
  flex-shrink: 0;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-icon .contact-icon-dot { fill: currentColor; stroke: none; }
@media (hover: hover) {
  .contact-list a:hover { opacity: 0.6; }
}

.form { display: grid; gap: 28px; max-width: 640px; }
.field label { display: block; margin-bottom: 8px; font-size: 0.9rem; color: var(--muted); }

.field input,
.field textarea {
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 1.15rem;
  transition: border-color 0.25s ease;
}
.field input:focus,
.field textarea:focus { outline: none; border-bottom-color: var(--fg); }
.field textarea { min-height: 140px; resize: vertical; }

.form-note { margin: 0; font-size: 0.9rem; color: var(--muted); }

.accordion { margin-top: clamp(16px, 3vw, 48px); }

.acc-item { border-top: 1px solid var(--line); }
.acc-item:last-child { border-bottom: 1px solid var(--line); }

.acc-heading { margin: 0; font: inherit; }

.acc-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: clamp(18px, 2.4vw, 32px) clamp(4px, 2.5vw, 40px) clamp(18px, 2.4vw, 32px) 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: clamp(1.4rem, 2.6vw, 2.4rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-align: left;
  cursor: pointer;
  transition: color 0.25s ease;
}
@media (hover: hover) {
  .acc-trigger:hover { color: var(--muted); }
}

.acc-icon {
  flex: none;
  width: clamp(26px, 3.2vw, 46px);
  height: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: butt;
  stroke-linejoin: miter;
  transition: transform 0.45s var(--ease);
}
.acc-icon path { vector-effect: non-scaling-stroke; }

.acc-item.is-open .acc-icon { transform: rotate(180deg); }

.acc-panel-inner { min-height: 0; overflow: hidden; }
.acc-panel-inner .grid { padding: 4px 0 clamp(32px, 5vw, 72px); }

.js .acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.5s var(--ease), visibility 0s linear 0.5s;
}
.js .acc-item.is-open .acc-panel {
  grid-template-rows: 1fr;
  visibility: visible;
  transition-delay: 0s;
}

.pdf-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px clamp(16px, 2vw, 28px);
  margin-top: clamp(48px, 7vw, 100px);
}
.pdf-note p {
  margin: 0;
  font-size: clamp(1.2rem, 2.3vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 20px);
}

.video-tile {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: var(--tile);
}

.video-trigger {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

.video-trigger img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

@media (hover: hover) {
  .video-trigger:hover img { transform: scale(1.04); }
}

.play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.play-icon svg {
  width: clamp(51px, 7.5vw, 78px);
  height: clamp(51px, 7.5vw, 78px);
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.video-player {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.video-trigger:focus-visible,
.video-player:focus-visible { outline-offset: -4px; }

.video-player:fullscreen { object-fit: contain; }
.video-player:-webkit-full-screen { object-fit: contain; }

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

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

.project-intro {
  gap: clamp(24px, 5vw, 96px);
  margin-top: clamp(32px, 5vw, 64px);
}
.project-intro dl { margin: 0; display: grid; gap: 14px; align-content: start; }
.project-intro dt { font-size: 0.9rem; color: var(--muted); }
.project-intro dd { margin: 2px 0 0; }
.project-intro p { margin: 0; max-width: 34em; font-size: clamp(1.1rem, 1.8vw, 1.5rem); line-height: 1.35; }

.project-images { display: grid; gap: var(--gap); }
.project-images img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--tile); }

.site-footer {
  margin-top: clamp(72px, 10vw, 160px);
  padding: clamp(28px, 4vw, 48px) var(--pad) 28px;
  border-top: 1px solid var(--line);
}

.footer-nav .nav-list { gap: clamp(16px, 3vw, 48px); }
.footer-nav .nav-list a { font-size: clamp(1.4rem, 3.4vw, 2.75rem); letter-spacing: -0.025em; font-weight: 500; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  margin: clamp(32px, 5vw, 64px) 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.footer-bottom p { margin: 0; }
.footer-bottom p:last-child { word-spacing: 0.28em; }

@media (max-width: 900px) {
  .contact-grid,
  .project-intro { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --header-h: 64px; }

  .js .menu-toggle { display: inline-flex; position: relative; z-index: 1; }
  .js .logo { position: relative; z-index: 1; }

  .scroll-cue { display: none; }

  .js .site-nav {
    position: fixed;
    inset: 0;
    z-index: 0;
    display: flex;
    align-items: center;
    padding: var(--header-h) var(--pad) 0;
    background: var(--bg);
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
  }

  .js .nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
  }

  .js .site-nav .nav-list { flex-direction: column; gap: 6px; }
  .js .site-nav .nav-list a {
    font-size: clamp(2.25rem, 11vw, 3.5rem);
    font-weight: 600;
    letter-spacing: -0.03em;
  }

  .about { grid-template-columns: 1fr; }
  .about-photo { max-width: 420px; }
}

@media (max-width: 720px) and (max-height: 520px) {
  .js .site-nav { align-items: flex-start; padding-top: calc(var(--header-h) + 8px); }
  .js .site-nav .nav-list a { font-size: clamp(1.5rem, 9vh, 2.25rem); }
}

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

  .footer-nav .nav-list { flex-wrap: nowrap; gap: 3vw; }
  .footer-nav .nav-list a { font-size: min(1.4rem, 5.4vw); white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
}
