/* ---------------------------------------------------------------
   hugobone.com
   Display face: change --font-display / --display-stretch below.
   --------------------------------------------------------------- */

:root {
  --bg: #ffffff;
  --ink: #000;
  --accent: #ffb300;   /* amber — manifesto emphasis, rollovers */
  --credits: #ffb300;  /* work-page credits — gold, per Hugo's CSS intent */
  --button: #ffb300;   /* outlined buttons — gold */

  --font-display: "Archivo", Helvetica, Arial, sans-serif;
  --display-stretch: 125%;
  --font-body: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --wrap: 1159px;
  --gutter: 24px;
  --grid-gap-x: 21px;
  --grid-gap-y: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
em { font-style: normal; color: var(--accent); }

.display {
  font-family: var(--font-display);
  font-stretch: var(--display-stretch);
  font-weight: 700;
  text-transform: uppercase;
}

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

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

/* ---------- header ---------- */

.site-header { padding: 44px 0 30px; }
.site-header .wrap {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
}

.wordmark {
  /* Must not shrink: it's nowrap, so a squeezed box overflows its text
     straight across the nav between roughly 640 and 900px. */
  flex: 0 0 auto;
  font-size: 15.8px; letter-spacing: -0.02em; text-decoration: none;
  line-height: 1.2; white-space: nowrap;
}

.site-nav {
  display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center;
  gap: 10px 46px;
}

.site-nav a {
  font-size: 14.4px; line-height: 1.6; text-transform: uppercase; text-decoration: none;
  padding-bottom: 2px; border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.site-nav a[aria-current="page"] { border-bottom-color: currentColor; }
.site-nav .social { display: flex; align-items: center; margin-left: 4px; }
.site-nav .social svg { width: 17px; height: 17px; fill: currentColor; display: block; }

/* ---------- manifesto ---------- */

.manifesto {
  font-size: 21px; line-height: 1.42; letter-spacing: -0.02em;
  margin: 24px 0 56px;
}

/* ---------- work grid ---------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: var(--grid-gap-x);
  row-gap: 34px;
  padding-bottom: 80px;
}

.grid-item {
  display: block; text-decoration: none;
  opacity: 0; transform: translateY(18px);
  transition: opacity .65s cubic-bezier(.19,1,.22,1), transform .65s cubic-bezier(.19,1,.22,1);
}
.grid-item.is-in { opacity: 1; transform: none; }

.grid-image { overflow: hidden; background: #f1f1f1; aspect-ratio: 4 / 3; }
.grid-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s cubic-bezier(.19,1,.22,1);
}

.portfolio-text { padding-top: 14px; }

.portfolio-title {
  font-size: 18.5px; line-height: 1.2; letter-spacing: -0.02em;
  margin: 0; color: var(--ink); transition: color .2s ease;
  text-wrap: balance;
}
.portfolio-sub {
  font-family: var(--font-body);
  font-size: 14px; font-weight: 700; line-height: 1.35; margin: 4px 0 0;
  color: var(--ink); transition: color .2s ease;
}

.grid-item:focus-visible .portfolio-title,
.grid-item:focus-visible .portfolio-sub { color: var(--accent); }

/* ---------- page furniture ---------- */

.page { padding-bottom: 90px; }

.page-headline {
  font-size: 35px; line-height: 1.2; letter-spacing: -0.02em;
  text-align: center; margin: 18px auto 16px; max-width: 24ch;
  overflow-wrap: anywhere;
  text-wrap: balance;   /* evens the lines; ignored by older browsers */
}

.credits {
  font-family: var(--font-display);
  font-stretch: var(--display-stretch);
  font-weight: 700; text-transform: uppercase;
  font-size: 18.5px; line-height: 1.35; text-align: center;
  color: var(--credits); margin: 0 auto 52px; max-width: 40ch;
}
.credits a { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; }

/* work-page media: 2-up, inset from the page edges */

.media {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 11px;
  max-width: 977px;
  margin: 0 auto;
  /* Without this, grid stretches every cell in a row to the tallest image and
     the shorter one sits in a slab of grey. */
  align-items: start;
}
.media > .embed, .media > .media-full { grid-column: 1 / -1; }
/* A lone trailing image centres itself. build.py decides which one that is:
   :nth-child would count the films too, and miscount every page that mixes
   films and stills. */
.media > .shot-widow:not(:only-child) {
  grid-column: 1 / -1;
  max-width: 514px;
  margin-inline: auto;
}
/* ...but if it's the ONLY image, let it run full width */
.media > .shot:only-child { grid-column: 1 / -1; max-width: none; margin-inline: 0; }

.shot {
  appearance: none; border: 0; padding: 0; margin: 0;
  background: #f1f1f1; cursor: zoom-in; display: block; width: 100%;
  overflow: hidden;
}
.shot img { width: 100%; transition: opacity .25s ease; }
.shot:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.embed { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(255, 255, 255, .97);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 64px;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.lightbox[open], .lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain; box-shadow: 0 10px 60px rgba(0,0,0,.14);
}
.lightbox button {
  position: absolute; appearance: none; background: none; border: 0;
  cursor: pointer; color: var(--ink); padding: 12px; line-height: 0;
}
.lightbox .lb-close { top: 18px; right: 22px; }
.lightbox .lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lightbox button svg { width: 26px; height: 26px; stroke: currentColor; stroke-width: 2; fill: none; }
body.lb-open { position: fixed; width: 100%; overflow: hidden; overscroll-behavior: none; }

/* ---------- marquee ---------- */

.marquee {
  overflow: hidden; display: flex; width: 100%;
  user-select: none; -webkit-mask-image: none;
}
.marquee-track {
  display: flex; flex: 0 0 auto; min-width: 100%;
  animation: marquee-scroll var(--marquee-speed, 30s) linear infinite;
}
.marquee-track > * {
  flex: 0 0 auto; margin: 0; padding-right: .5em; white-space: nowrap;
}
@keyframes marquee-scroll { to { transform: translateX(-50%); } }

.marquee-hero .marquee-track > * {
  font-size: clamp(46px, 9.5vw, 110px); line-height: 1.05; letter-spacing: -0.02em;
}
.marquee-quotes { margin: 70px 0 0; padding-top: 34px; border-top: 1px solid rgba(0,0,0,.12); }
.marquee-quotes .marquee-track > * { font-size: 20px; line-height: 1.4; }

/* ---------- generic content ---------- */

.two-col { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: start; }

.section-heading {
  font-size: 18.5px; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 18px;
}
.section-heading-lg { font-size: 35px; line-height: 1.2; margin: 0 0 24px; }

.prose p { margin: 0 0 20px; }
.prose { max-width: 707px; }

.awards { margin-top: 64px; }
.awards .row {
  display: grid; grid-template-columns: 90px 1fr; gap: 24px;
  padding: 18px 0; border-top: 1px solid rgba(0,0,0,.12);
}
.awards .year { font-size: 15px; }
.awards .detail { font-size: 15.5px; line-height: 1.55; }

/* ---------- initiatives carousel ---------- */

.carousel { position: relative; margin-top: 10px; }
.carousel-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 242px;
  gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; padding-bottom: 18px;
  scrollbar-width: thin;
}
.carousel-track > * { scroll-snap-align: start; }
.carousel-track { align-items: stretch; }
.card { display: flex; flex-direction: column; }
.card img { aspect-ratio: 3 / 2; object-fit: cover; background: #f1f1f1; }
.card .btn { margin-top: auto; align-self: flex-start; }
.card h2 { font-size: 29.7px; line-height: 1.15; margin: 16px 0 12px; }
.card p { font-size: 15px; line-height: 1.5; margin: 0 0 18px; }

.carousel-nav { display: flex; gap: 10px; margin-top: 6px; }
.carousel-nav button {
  appearance: none; background: none; cursor: pointer;
  border: 2px solid var(--ink); color: var(--ink);
  width: 40px; height: 40px; display: grid; place-items: center;
  transition: background .2s ease, color .2s ease;
}
.carousel-nav svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2.4; fill: none; }

.btn {
  display: inline-block;
  font-family: var(--font-display); font-stretch: var(--display-stretch);
  font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; padding: 17px 28px;
  border: 2px solid var(--button); color: var(--button); background: none;
  transition: background .2s ease, color .2s ease;
}

/* ---------- contact ---------- */

.contact-details { font-size: 14.4px; line-height: 2.1; margin: 26px 0 0; }
.contact-details a { text-decoration: none; border-bottom: 2px solid var(--accent); }

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

.site-footer { padding: 40px 0 56px; border-top: 1px solid rgba(0,0,0,.12); font-size: 13.5px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; border-bottom: 1px solid transparent; }

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .site-nav { gap: 10px 30px; }
}

@media (max-width: 900px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; gap: 30px; }
  .manifesto { font-size: 18px; }
  .page-headline { font-size: 26px; }
  .credits { font-size: 16px; }
  .lightbox { padding: 24px; }
  .lightbox .lb-prev { left: 0; } .lightbox .lb-next { right: 0; }
}

@media (max-width: 640px) {
  .site-header { padding: 26px 0 20px; }
  .site-header .wrap { flex-direction: column; align-items: flex-start; gap: 14px; }
  .site-nav { justify-content: flex-start; gap: 10px 24px; }
  .wordmark { white-space: normal; font-size: 14.5px; }
  .work-grid { grid-template-columns: 1fr; row-gap: 30px; }
  .media { grid-template-columns: 1fr; }
  .media > .shot-widow:not(:only-child) { max-width: none; }
  .manifesto { font-size: 16.5px; }
  .awards .row { grid-template-columns: 1fr; gap: 6px; }
  .section-heading-lg { font-size: 26px; }
}

/* ---------- hover states ----------
   Cursor devices only. A phone has no hover, so a tapped tile would
   otherwise keep its amber caption and zoom until you tapped elsewhere. */
@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover { color: var(--accent); }
  .grid-item:hover .grid-image img { transform: scale(1.035); }
  .grid-item:hover .portfolio-title,
  .grid-item:hover .portfolio-sub { color: var(--accent); }
  .shot:hover img { opacity: .88; }
  .lightbox button:hover { color: var(--accent); }
  .marquee:hover .marquee-track { animation-play-state: paused; }
  .carousel-nav button:hover { background: var(--ink); color: var(--bg); }
  .btn:hover { background: var(--button); color: var(--bg); }
  .contact-details a:hover { color: var(--accent); }
  .site-footer a:hover { border-bottom-color: currentColor; }
}

/* The reveal starts every tile at opacity 0. Printing never scrolls, so
   without this a Save-as-PDF of the homepage is mostly blank pages. */
@media print {
  .grid-item { opacity: 1 !important; transform: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .grid-item { opacity: 1; transform: none; }
  /* a frozen marquee hides everything past the first item — wrap it instead */
  .marquee { overflow: visible; display: block; }
  .marquee-track { display: block; animation: none; min-width: 0; }
  .marquee-track > * { white-space: normal; padding-right: 0; }
  .marquee-quotes .marquee-track > * + * { margin-top: 14px; }
  .marquee-hero .marquee-track > * { font-size: clamp(38px, 7vw, 72px); }
}
