/* Manu Jimenez — one typeface, a warm black canvas, the photographs carry the page. */

:root {
  --font: "Avenir Next", "Avenir Next LT Pro", "Avenir", -apple-system, BlinkMacSystemFont,
          "Helvetica Neue", "Segoe UI", system-ui, sans-serif;

  /* Warm black: the tint stage light leaves on a dark house, not a neutral grey. */
  --paper:     oklch(12% 0.006 55);
  --paper-2:   oklch(16% 0.007 55);
  --rule:      oklch(27% 0.008 55);
  --ink:       oklch(97% 0.004 80);
  --ink-soft:  oklch(78% 0.006 70);
  --ink-mute:  oklch(58% 0.007 65);
  --amber:     oklch(84% 0.12 72);      /* stage amber, hover and focus only */

  --gutter: clamp(1.25rem, 5vw, 6rem);
  --s-1: 0.5rem; --s-2: 1rem; --s-3: 1.5rem; --s-4: 2.5rem;
  --s-5: 4rem;   --s-6: 6rem; --s-7: 9rem;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 4.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; color-scheme: dark; }
body {
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(1rem, 0.3vw + 0.92rem, 1.125rem);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
picture { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 300; line-height: 1; letter-spacing: -0.03em; }
p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }

.skip {
  position: absolute; inset-inline-start: var(--gutter); inset-block-start: -4rem;
  padding: 0.75rem 1rem; background: var(--ink); color: var(--paper); z-index: 200;
}
.skip:focus { inset-block-start: 1rem; }

/* ── Nav: sits over the photographs, inverts against whatever is under it ── */
.nav {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 100;
  min-height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  padding: 0 var(--gutter);
  mix-blend-mode: difference;
  color: #fff;
}
.nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.9375rem; }
/* The name is already the biggest thing on the hero; the nav only repeats it once
   the hero has scrolled away. */
.nav__name { font-weight: 500; letter-spacing: -0.01em; opacity: 0; transition: opacity 300ms var(--ease); }
body.past-hero .nav__name { opacity: 1; }
.nav__links { display: flex; gap: var(--s-3); }
.nav__links a { font-weight: 400; opacity: 0.72; transition: opacity 200ms var(--ease); }
.nav__links a:hover { opacity: 1; }
@media (max-width: 40rem) {
  .nav__links a { display: none; }
  .nav__links a:last-child { display: inline-flex; }
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative; isolation: isolate;
  min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto;
}
@media (max-width: 46rem) { .hero { min-height: 88svh; } }
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--paper-2); }
.hero__media picture, .hero__media video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 1400ms var(--ease);
}
.hero__media picture img, .hero__media video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
/* Focal points. These live here rather than in a style="" attribute because the
   site is served under a CSP with no style-src, which blocks inline styles. */
.hero__media .fp-7  img { object-position: 50% 7%; }
.hero__media .fp-8  img { object-position: 50% 8%; }
.hero__media .fp-22 img { object-position: 50% 22%; }
.hero__media .fp-25 img { object-position: 50% 25%; }
.hero__media .fp-30 img { object-position: 50% 30%; }
.hero__media .fp-35 img { object-position: 50% 35%; }
.hero__media .fp-40 img { object-position: 50% 40%; }
.hero__media .fp-45 img { object-position: 50% 45%; }
.hero__media .fp-50 img { object-position: 50% 50%; }
.hero__media picture.is-on { opacity: 1; }
.hero__media picture.is-on img { animation: drift 9s var(--ease) forwards; }
.hero__media video.is-on { opacity: 1; }
@keyframes drift { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, var(--paper) 2%, oklch(12% 0.006 55 / 0.35) 40%, transparent 68%),
    linear-gradient(to bottom, oklch(10% 0.006 55 / 0.72), oklch(10% 0.006 55 / 0.3) 30%, transparent 52%);
}

.hero__top {
  grid-row: 1;
  padding: calc(var(--nav-h) + var(--s-4)) var(--gutter) 0;
  display: grid; gap: var(--s-2);
}
.hero__name {
  font-size: clamp(3.5rem, 13vw, 12.5rem);
  font-weight: 300; line-height: 0.84; letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}
.hero__name b { font-weight: 600; }
.hero__title {
  font-size: clamp(1.0625rem, 1.5vw, 1.375rem); font-weight: 500;
  color: var(--ink); padding-inline-start: 0.35rem;
}

.hero__foot {
  grid-row: 3;
  padding: 0 var(--gutter) var(--s-5);
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: var(--s-1) var(--s-3);
}
.hero__now {
  font-size: clamp(1.75rem, 4.5vw, 3.75rem);
  font-weight: 200; letter-spacing: -0.03em; line-height: 1;
}
.hero__now span { display: inline-block; transition: opacity 300ms var(--ease), transform 300ms var(--ease); }
.hero__now.is-swapping span { opacity: 0; transform: translateY(0.15em); }
.hero__place { color: var(--ink-soft); font-weight: 400; margin-inline-start: 0.75em; }

/* ── Sections ───────────────────────────────────────────── */
.sec { position: relative; padding: var(--s-6) var(--gutter); background: var(--paper); }
.sec--credits { padding-block-start: var(--s-6); }
.sec--about, .sec--credits, .sec--services, .sec--web, .sec--contact { border-block-start: 1px solid var(--rule); }

.head {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-2);
  padding-block-end: var(--s-2); margin-block-end: var(--s-4);
}
.head h2 { font-size: clamp(1.5rem, 2.4vw, 2.25rem); font-weight: 300; }
.head__yr { color: var(--ink-mute); font-size: 0.9375rem; }
.about__lead { max-width: 50rem; font-size: clamp(1.4rem, 3vw, 2.75rem); font-weight: 300; line-height: 1.22; letter-spacing: -0.025em; }

/* ── Credits: a centred list, the biggest names large, the rest quieter ── */
.sec--credits { text-align: center; }
.sec--credits .head { justify-content: center; }
.roll { display: flex; flex-wrap: wrap; justify-content: center; letter-spacing: -0.03em; max-width: 64rem; margin-inline: auto; }
.roll li { white-space: nowrap; }
.roll--lead { gap: 0.05em 0.7em; font-size: clamp(2rem, 4.8vw, 4.25rem); font-weight: 400; line-height: 1.15; }
.roll--more { margin-block-start: var(--s-4); gap: 0.15em 0.9em; font-size: clamp(1.125rem, 2vw, 1.75rem); font-weight: 300; line-height: 1.45; color: var(--ink); }

/* ── Services: a list, one line each ────────────────────── */
.services { display: grid; max-width: 64rem; }
.services li, .services a { display: grid; gap: 0.25rem var(--s-4); }
.services li {
  padding-block: var(--s-3);
  border-block-end: 1px solid var(--rule);
}
@media (min-width: 44rem) { .services a { grid-template-columns: 17rem minmax(0, 1fr); align-items: baseline; } }
.services a:hover .services__name { color: var(--amber); }
.services__name { font-size: clamp(1.5rem, 2.6vw, 2.25rem); font-weight: 200; letter-spacing: -0.03em; line-height: 1.1; }
.services__line { color: var(--ink-soft); font-size: clamp(1rem, 1.3vw, 1.125rem); max-width: 40em; }

/* ── On the web: cards you can actually click ───────────── */
.cards { display: grid; gap: var(--s-2); grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); }
.cards a {
  display: grid; align-content: start; gap: var(--s-1);
  height: 100%; padding: var(--s-3);
  border: 1px solid var(--rule); border-radius: 4px;
  transition: background 200ms var(--ease), border-color 200ms var(--ease), transform 200ms var(--ease);
}
.cards a:hover { background: var(--paper-2); border-color: var(--ink-mute); transform: translateY(-2px); }
.cards__site { color: var(--ink-mute); font-size: 0.875rem; }
.cards__title { font-size: clamp(1.25rem, 1.6vw, 1.5rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.cards a:hover .cards__title { color: var(--amber); }

/* ── Contact ────────────────────────────────────────────── */
.sec--contact { padding-block: var(--s-7) var(--s-6); display: grid; gap: var(--s-3); }
.contact__lead { font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 300; color: var(--ink-soft); }
/* The brief. One quiet line, not a form — the same items the mail body prefills.
   Spaced apart rather than punctuated, like the credits roll: a separator glyph
   would strand itself at the start of a wrapped line on a narrow screen. */
.contact__ask {
  display: flex; flex-wrap: wrap; gap: 0.25rem 1.6rem;
  max-width: 48rem; color: var(--ink-soft); font-size: 0.9375rem;
}
.contact__big { font-size: clamp(1.75rem, 5.5vw, 5rem); font-weight: 200; letter-spacing: -0.04em; line-height: 1; overflow-wrap: anywhere; }
.contact__big a {
  display: inline-block; padding-block-end: 0.06em;
  border-block-end: 1px solid var(--rule);
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
}
.contact__big a:hover { color: var(--amber); border-block-end-color: var(--amber); }
.contact__meta { color: var(--ink-mute); }

.foot {
  padding: var(--s-3) var(--gutter) var(--s-4);
  border-block-start: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); justify-content: space-between;
  font-size: 0.875rem; color: var(--ink-mute);
}

/* ── Focused service pages ──────────────────────────────── */
.detail-nav { position: relative; mix-blend-mode: normal; background: var(--paper); border-block-end: 1px solid var(--rule); }
.detail-nav .nav__name { opacity: 1; }
.detail { padding-block-start: 0; }
.detail-hero { min-height: 65svh; display: grid; align-content: end; gap: var(--s-3); padding: var(--s-7) var(--gutter) var(--s-6); background: var(--paper-2); }
.detail-hero__eyebrow { color: var(--amber); font-size: 0.875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.detail-hero h1 { max-width: 68rem; font-size: clamp(3rem, 9vw, 8rem); font-weight: 300; line-height: 0.92; }
.detail-hero__lead { max-width: 48rem; color: var(--ink-soft); font-size: clamp(1.2rem, 2vw, 1.65rem); }
.detail-grid { display: grid; gap: var(--s-5); }
.detail-grid h2 { font-size: clamp(1.75rem, 3vw, 3rem); }
.detail-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.detail-list li { min-height: 9rem; padding: var(--s-3); background: var(--paper); font-size: clamp(1.1rem, 1.5vw, 1.35rem); }
.detail-copy { max-width: 54rem; color: var(--ink-soft); font-size: clamp(1.1rem, 1.8vw, 1.45rem); }
.detail-copy a { color: var(--ink); border-block-end: 1px solid var(--rule); }
.detail-copy a:hover { color: var(--amber); border-block-end-color: var(--amber); }
.detail-cta { display: grid; gap: var(--s-3); align-items: start; }
.detail-cta a { width: fit-content; padding-block-end: 0.1em; border-block-end: 1px solid var(--amber); color: var(--amber); font-size: clamp(1.5rem, 4vw, 3.5rem); font-weight: 300; }


/* ── Motion off ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__media picture, .hero__media video { transition: none; }
  .hero__media picture.is-on img { animation: none; }
  .hero__now span { transition: none; }
  .nav__name { transition: none; }
  .cards a { transition: none; }
}
