@font-face {
  font-display: swap;
  font-family: "Cal Sans";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/CalSans-Regular.ttf") format("truetype");
}

:root {
  color-scheme: dark;
  --bg: #080808;
  --panel: #101010;
  --text: #f4f4f1;
  --muted: #aaa9a4;
  --line: rgba(255, 255, 255, 0.16);
  --gutter: clamp(6px, 0.8vw, 14px);
  --project-media-gutter: clamp(4px, 0.5vw, 8px);
  --page: clamp(18px, 3vw, 56px);
  --header-height: 96px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); min-height: 100vh; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.site-header {
  align-items: center;
  background: rgba(8, 8, 8, 0.94);
  display: flex;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: 0 var(--page);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-name { align-items: center; display: flex; flex: 0 1 320px; justify-content: flex-start; max-width: 320px; min-width: 190px; }
.site-logo { display: block; height: auto; max-height: 52px; object-fit: contain; object-position: left center; width: 100%; }
.desktop-nav { display: flex; gap: 28px; }
.desktop-nav a, .mobile-nav a { font-family: "Cal Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 0.82rem; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; }
.desktop-nav a:hover, .desktop-nav a:focus-visible, .mobile-nav a:hover, .mobile-nav a:focus-visible { color: var(--muted); }
.menu-button, .mobile-nav { display: none; }

.work-grid {
  display: grid;
  gap: var(--gutter);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0 var(--page) var(--page);
}

.project-card { aspect-ratio: 16 / 9; background: #171717; min-height: 0; overflow: hidden; position: relative; }
.project-card__image { height: 100%; inset: 0; object-fit: cover; position: absolute; transition: opacity 380ms ease, transform 600ms ease; width: 100%; }
.project-card__image--hover { opacity: 0; }
.project-card::after { background: rgba(0, 0, 0, 0.58); content: ""; inset: 0; opacity: 0; position: absolute; transition: opacity 240ms ease; }
.project-card__overlay { align-items: center; display: flex; inset: 0; justify-content: center; opacity: 0; padding: clamp(16px, 2.3vw, 34px); position: absolute; text-align: center; transition: opacity 240ms ease; z-index: 2; }
.project-card__overlay strong { font-family: "Cal Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: clamp(0.9rem, 1.4vw, 1.25rem); font-weight: 400; letter-spacing: 0.045em; text-transform: uppercase; }
.project-card:hover .project-card__image--hover, .project-card:focus-visible .project-card__image--hover { opacity: 1; }
.project-card:hover .project-card__image--default, .project-card:focus-visible .project-card__image--default { transform: scale(1.025); }
.project-card:hover::after, .project-card:hover .project-card__overlay, .project-card:focus-visible::after, .project-card:focus-visible .project-card__overlay { opacity: 1; }

.page-shell { margin: 0 auto; max-width: 1500px; padding: clamp(36px, 5vw, 72px) var(--page); }
.project-shell { margin: 0 auto; max-width: 1500px; padding: clamp(36px, 5vw, 72px) clamp(18px, 3.67vw, 56px); }
.simple-page { max-width: 1100px; }
.eyebrow { color: var(--muted); font-size: 0.7rem; font-weight: 650; letter-spacing: 0.17em; line-height: 1.5; margin: 0 0 22px; text-transform: uppercase; }
.simple-page h1, .project-intro h1 { font-family: "Cal Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: clamp(2rem, 4vw, 4.5rem); font-weight: 400; letter-spacing: -0.02em; line-height: 1; margin: 0; }
.page-lede, .project-subtitle { color: var(--muted); font-size: clamp(1rem, 1.8vw, 1.35rem); line-height: 1.55; margin: 30px 0 0; max-width: 730px; }
.about-layout { align-items: start; display: grid; gap: clamp(32px, 7vw, 110px); grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr); margin-top: 40px; }
.about-photo { aspect-ratio: 4 / 5; background: #181818; object-fit: cover; width: 100%; }
.about-photo-placeholder { align-items: center; aspect-ratio: 4 / 5; background: #151515; border: 1px solid var(--line); color: var(--muted); display: flex; justify-content: center; min-width: 0; padding: 20px; text-align: center; }
.about-photo-placeholder span { font-size: 0.72rem; letter-spacing: 0.14em; overflow-wrap: anywhere; }
.body-copy { color: #d0cfcb; font-size: clamp(1rem, 1.45vw, 1.2rem); line-height: 1.75; max-width: 680px; }
.static-copy { margin-top: 0; }
.static-copy p { margin: 0 0 1.35em; white-space: pre-line; }

.project-intro { margin: 0; max-width: 840px; padding-bottom: clamp(22px, 3vw, 42px); width: 100%; }
.project-title__line { display: block; }
.content-block { margin: 0 auto; max-width: 1040px; }
.content-block--header { padding: clamp(65px, 10vw, 150px) 0 22px; }
.content-block--header h2 { font-family: "Cal Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: clamp(2rem, 5vw, 5.2rem); font-weight: 400; letter-spacing: -0.03em; line-height: 1; margin: 0; }
.content-block--body { padding: 12px 0 clamp(45px, 8vw, 100px); }
.content-block--body p { color: #c7c6c2; font-size: clamp(1rem, 1.45vw, 1.25rem); line-height: 1.75; margin: 0; max-width: 760px; }
.project-copy { color: #c7c6c2; font-size: clamp(1rem, 1.25vw, 1.15rem); line-height: 1.7; margin: 0; max-width: 840px; }
.project-copy p { margin: 0 0 1.35em; white-space: pre-line; }
.project-text-block--last-default { margin-bottom: clamp(34px, 5vw, 68px); }
.project-gallery { align-items: start; display: grid; gap: var(--gutter); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.project-image-row { margin: 0 0 var(--gutter); }
.project-image-row--single { grid-template-columns: minmax(0, 1fr); }
.project-image-row--adobe-measured {
  column-gap: max(var(--adobe-row-gap, 0%), var(--project-media-gutter));
  margin-bottom: var(--project-media-gutter);
  padding-left: var(--adobe-row-left, 0);
  padding-right: var(--adobe-row-right, 0);
}
.project-gallery figure { margin: 0; min-width: 0; width: 100%; }
.project-image-figure--adobe-measured { aspect-ratio: var(--adobe-image-aspect); overflow: hidden; }
.project-image-figure--adobe-measured .project-image-button { height: 100%; }
.project-image-figure--adobe-measured img { height: 100%; object-fit: cover; }
.project-gallery img {
  display: block;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  width: 100%;
}
.project-gallery figcaption { color: var(--muted); font-size: 0.72rem; line-height: 1.5; padding: 10px 0 24px; }
.project-image-button { background: transparent; border: 0; color: inherit; cursor: zoom-in; display: block; padding: 0; text-align: inherit; width: 100%; }
.project-video { margin: 0; max-width: 1200px; }
.project-video video { background: #000; display: block; height: auto; max-height: 86vh; width: 100%; }
.project-media-group { align-items: start; column-gap: max(var(--adobe-group-gap, 0%), var(--project-media-gutter)); display: grid; margin: 0 0 var(--project-media-gutter); }
.project-media-group .project-video { max-width: none; }
.project-media-group .project-image-row { margin: 0; padding: 0; }
.project-lightbox { background: transparent; border: 0; color: #fff; height: 100vh; margin: auto; max-height: 100vh; max-width: 100vw; padding: 24px; width: 100vw; }
.project-lightbox::backdrop { background: rgba(0, 0, 0, 0.94); }
.project-lightbox__image { display: block; height: auto; margin: auto; max-height: calc(100vh - 48px); max-width: calc(100vw - 48px); object-fit: contain; width: auto; }
.project-lightbox__close { align-items: center; background: rgba(0, 0, 0, 0.72); border: 1px solid rgba(255, 255, 255, 0.45); border-radius: 50%; color: #fff; cursor: pointer; display: flex; font-size: 26px; height: 42px; justify-content: center; line-height: 1; padding: 0 0 3px; position: fixed; right: 18px; top: 18px; width: 42px; z-index: 2; }
.video-link { border-bottom: 1px solid currentColor; display: inline-block; padding-bottom: 4px; }

.contact-email { display: inline-block; font-size: clamp(1.2rem, 3vw, 2.3rem); margin: 32px 0 24px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.contact-form { border-top: 1px solid var(--line); display: grid; gap: 22px; max-width: 720px; padding-top: 45px; }
.contact-form label { display: grid; font-size: 0.7rem; gap: 9px; letter-spacing: 0.14em; text-transform: uppercase; }
.contact-form input, .contact-form textarea { background: #111; border: 1px solid var(--line); border-radius: 0; color: var(--text); padding: 15px; width: 100%; }
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form button { background: var(--text); border: 0; color: #0a0a0a; cursor: pointer; justify-self: start; padding: 14px 24px; }
.form-note, .form-status { color: var(--muted); font-size: 0.78rem; line-height: 1.5; max-width: 720px; }
.form-note { margin: 0 0 24px; }

.site-footer { color: #777; font-size: 0.65rem; letter-spacing: 0.14em; padding: 30px var(--page) 45px; text-transform: uppercase; }

@media (max-width: 900px) {
  .site-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; min-height: 78px; }
  .desktop-nav { display: none; }
  .menu-button { align-items: center; background: none; border: 0; color: var(--text); cursor: pointer; display: flex; flex-direction: column; gap: 5px; grid-column: 2; justify-self: end; padding: 12px 0 12px 12px; }
  .menu-button span { background: currentColor; display: block; height: 1px; transition: transform 200ms ease; width: 24px; }
  .menu-button[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
  .site-name { grid-column: 1; justify-self: start; }
  .mobile-nav { background: rgba(8, 8, 8, 0.98); inset: 78px 0 auto; padding: 24px var(--page) 36px; position: fixed; z-index: 19; }
  .mobile-nav:not([hidden]) { display: grid; gap: 24px; }
  .work-grid { grid-template-columns: minmax(0, 1fr); padding: 0 var(--gutter) var(--gutter); }
  .project-card { aspect-ratio: 16 / 9; }
  .project-card__overlay { opacity: 1; padding: 12px; }
  .project-card::after { opacity: 0.45; }
  .project-card__overlay strong { font-size: 0.67rem; }
  .about-layout { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  :root { --page: 18px; }
  .site-name { max-width: min(260px, 58vw); min-width: 160px; width: 58vw; }
  .project-gallery { grid-template-columns: 1fr; }
  .project-image-row--adobe-measured {
    column-gap: var(--gutter);
    grid-template-columns: 1fr !important;
    padding-left: 0;
    padding-right: 0;
  }
  .project-image-figure--adobe-measured { aspect-ratio: auto; overflow: visible; }
  .project-image-figure--adobe-measured .project-image-button { height: auto; }
  .project-image-figure--adobe-measured img { height: auto; object-fit: contain; }
  .project-media-group { grid-template-columns: 1fr !important; }
  .project-gallery img { height: auto; margin-left: auto; margin-right: auto; max-height: 80vh; width: auto; }
  .simple-page h1 { font-size: clamp(2rem, 10vw, 3.4rem); }
  .project-intro h1 { font-size: 20px; line-height: 1.1; }
  .page-shell, .project-shell { padding-top: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
