@font-face {
  font-family: Geist;
  src: url("assets/geist.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Instrument Serif;
  src: url("assets/instrument-serif.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f7f5ef;
  --concrete: #eae6dd;
  --ink: #202320;
  --muted: #504e46;
  --line: #c9c3b6;
  --accent: #d6b86b;
  --gutter: clamp(1.15rem, 5vw, 5.75rem);
  font-family: Geist, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body, h1, h2, h3, figure, p { margin: 0; }
img { display: block; width: 100%; height: auto; }
button { padding: 0; color: inherit; font: inherit; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
#main:focus, #enquiry:focus { outline: none; }
.skip { position: fixed; z-index: 5; inset: .75rem auto auto .75rem; padding: .65rem 1rem; background: var(--paper); transform: translateY(-200%); }
.skip:focus { transform: none; }
.wrap { width: min(100%, 100rem); padding-inline: var(--gutter); margin-inline: auto; }
.eyebrow { font: 600 .8125rem/1.4 ui-monospace, Consolas, monospace; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.05; font-weight: 580; }
h1 { font-size: clamp(3.05rem, 7.2vw, 7.1rem); letter-spacing: -.078em; }
h2 { font-size: clamp(2.2rem, 4.2vw, 4.35rem); letter-spacing: -.068em; }
h3 { font-size: clamp(1.125rem, 1.65vw, 1.6rem); letter-spacing: -.035em; }
.lead { font-size: clamp(1.075rem, 1.65vw, 1.42rem); line-height: 1.6; color: var(--muted); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .65rem 1.25rem;
  border: 1px solid transparent;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-size: .9375rem;
  font-weight: 630;
  text-align: center;
  transition: background-color .18s, color .18s;
}
.button:hover { background: #45463c; }
.button-accent { background: var(--accent); color: var(--ink); }
.button-accent:hover { background: #eed492; }
.button:focus-visible { outline-color: var(--ink); }
.hero .button:focus-visible, .footer .button:focus-visible { outline-color: var(--paper); }
.text-link { display: inline-flex; align-items: center; min-height: 2.75rem; margin-top: 1.1rem; font-weight: 650; text-underline-offset: .3em; }
.text-link:hover { text-decoration-thickness: 2px; }

.header { position: relative; z-index: 2; border-bottom: 1px solid var(--line); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.4rem; min-height: 5.2rem; }
.brand { display: block; width: 6.15rem; height: 4.25rem; }
.brand img { width: 100%; height: 100%; object-fit: cover; }
.header-nav, .footer-bottom nav { display: flex; flex-wrap: wrap; gap: .15rem clamp(.8rem, 2vw, 2rem); align-items: center; }
.header-nav > a:not(.button), .footer-bottom nav a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; font-size: .9375rem; }
.header-nav > a:hover, .footer-bottom nav a:hover { text-decoration: underline; text-underline-offset: .3em; }
.header-nav [aria-current="page"] { text-decoration: underline !important; text-underline-offset: .43em; text-decoration-thickness: 2px !important; }
.header-cta { justify-self: end; }
.mobile-cta, .menu-button { display: none; }

.hero { position: relative; isolation: isolate; display: grid; background: #252524; color: #fffdf5; }
.hero-video, .hero::before, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-video { z-index: -3; object-fit: cover; object-position: 57% 50%; }
.hero::before { content: ""; z-index: -2; background: linear-gradient(90deg, #141612f5 0%, #171914d8 35%, #1b1d185c 69%, #15171212 100%); }
.hero::after { content: ""; z-index: -1; background: linear-gradient(0deg, #141612ee, transparent 26%), radial-gradient(ellipse at 52% 45%, transparent 50%, #1517124d); }
.hero-inner { display: flex; flex-direction: column; justify-content: flex-end; min-height: clamp(37rem, 80svh, 56rem); }
.hero-copy { padding-block: clamp(4.5rem, 10vh, 8rem) clamp(3.1rem, 8vh, 6rem); }
.hero-copy .eyebrow { display: flex; align-items: center; gap: .7rem; color: #efd18a; }
.hero-copy .eyebrow::before { content: ""; display: block; width: 1.8rem; height: 1px; background: currentColor; }
.hero h1 { margin: 1.25rem 0 1.4rem; }
.hero h1 > span { display: block; width: fit-content; }
.hero h1 span span { display: block; padding: 0 .12em .085em 0; }
.hero h1 > span + span { margin-top: -.07em; }
.hero-support p { max-width: 33ch; margin-bottom: 1.6rem; font-size: clamp(1rem, 1.45vw, 1.225rem); line-height: 1.5; }
.hero-meta { min-height: 4.15rem; display: flex; align-items: center; justify-content: space-between; gap: .8rem; border-top: 1px solid #fffdf570; font: 550 .8125rem/1.3 ui-monospace, Consolas, monospace; }
.film-toggle { display: flex; align-items: center; gap: .55rem; min-height: 2.75rem; background: transparent; border: 0; white-space: nowrap; }
.film-toggle:hover .film-label { text-decoration: underline; text-underline-offset: .25em; }
.film-icon { display: block; width: .65rem; height: .75rem; border-inline: 2px solid currentColor; }
.film-toggle[data-paused] .film-icon { height: 0; border: .38rem solid transparent; border-right: 0; border-left: .6rem solid currentColor; }
.section { padding-block: clamp(3.4rem, 7vw, 7.2rem); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 6vw, 7rem); }
.intro { align-items: start; }
.intro h2, .section-head h2 { margin-top: .8rem; }
.intro .lead { max-width: 53ch; }
.capabilities { background: var(--concrete); }
.section-head { margin-bottom: clamp(1.7rem, 3.5vw, 3.6rem); }
.capabilities-grid { grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr); }
.illustrative { position: relative; align-self: start; background: var(--concrete); }
.illustrative img { aspect-ratio: 5 / 4; object-fit: cover; object-position: 60% center; }
.illustrative figcaption { position: absolute; inset: auto auto 0 0; background: var(--ink); color: var(--paper); padding: .5rem .75rem; font: 550 .8125rem/1.35 ui-monospace, Consolas, monospace; }
.service-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.service-list li { padding: 1rem 0 1.1rem; border-bottom: 1px solid var(--line); scroll-margin-top: 1rem; }
.service-list h3 a { display: inline-flex; min-height: 2.75rem; align-items: center; text-underline-offset: .2em; text-decoration-color: transparent; }
.service-list h3 a:hover, .service-list h3 a:focus-visible { text-decoration-color: currentColor; }
.service-list p { margin-top: .25rem; color: var(--muted); }
.page-title { padding-block: clamp(3.5rem, 8vw, 8rem); background: var(--concrete); }
.page-title h1 { max-width: 14ch; margin: .8rem 0 1.2rem; }
.page-title p:last-child { max-width: 55ch; }
.feature { align-items: center; }
.feature h2 { margin-bottom: 1.2rem; }
.feature p + p { margin-top: 1rem; }
.contact-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.contact-links a { padding-block: .6rem; overflow-wrap: anywhere; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1.5rem; }
.project-grid img { aspect-ratio: 3 / 2; object-fit: cover; }
.project-grid a { text-decoration: none; }
.project-grid a:hover h3 { text-decoration: underline; }
.project-grid h3 { margin-top: .8rem; }
.project-facts { margin: 2rem 0 3rem; }
.project-facts h2, .project-facts + h2 { margin-bottom: 1rem; }
.footer { color: var(--paper); background: var(--ink); }
.footer .brand img { filter: saturate(.55) brightness(2.4); }
.footer-lead { display: flex; justify-content: space-between; align-items: center; gap: 1.4rem; padding-block: clamp(3.2rem, 6vw, 6rem); }
.footer-lead .eyebrow { margin-bottom: .75rem; color: var(--accent); }
.footer-lead .button { flex-shrink: 0; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; padding-block: 1.4rem; border-top: 1px solid #67685f; }
.footer-bottom > p { color: #e0dcd0; font-size: .875rem; }
.whatsapp { position: fixed; z-index: 3; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); background: #17533b; color: white; padding: .75rem 1.15rem; border: 1px solid white; text-decoration: none; }
.whatsapp:focus-visible { outline: 3px solid #17533b; }
.footer:has(+ .whatsapp) { padding-bottom: 4rem; }

.display-title {
  font: 400 clamp(4rem, 8vw, 8rem)/.9 "Instrument Serif", Georgia, serif;
  letter-spacing: -.045em;
}
.catalog { padding-block: clamp(2.8rem, 5.7vw, 5.5rem) clamp(3.2rem, 6vw, 5rem); }
.catalog-heading { margin-bottom: clamp(1.4rem, 2.8vw, 2.8rem); }
.service-catalog-heading { text-align: center; }
.service-catalog-heading h1 { text-transform: uppercase; }
.service-catalog-heading p, .catalog-note { margin-top: .75rem; color: var(--muted); }
.service-tiles, .project-mosaic { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem; }
.service-tile, .project-tile { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: var(--paper); }
.service-tile {
  display: grid;
  align-content: end;
  width: 100%;
  aspect-ratio: 8 / 5;
  min-height: 20rem;
  text-align: center;
  scroll-margin-top: 1rem;
}
.service-tile img, .project-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.service-tile img { z-index: -2; }
.service-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, #171512f7, #171512d4 40%, #1715123f 100%); }
.service-tile-copy { padding: 1.25rem clamp(.9rem, 2vw, 2.2rem) clamp(1.5rem, 3vw, 3rem); }
.service-tile h2 { font-size: clamp(1.55rem, 2.7vw, 3rem); line-height: 1.05; letter-spacing: -.045em; text-transform: uppercase; }
.service-tile p { max-width: 51ch; margin: .6rem auto .95rem; font-size: .9375rem; }
.tile-credit { position: absolute; inset: .65rem auto auto .65rem; font-size: .75rem; background: #202320; padding: .17rem .45rem; }
.tile-link {
  display: inline-flex;
  min-height: 2.75rem;
  padding: .55rem 1.35rem;
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 2rem;
  background: #202320;
  color: var(--paper);
  font-size: .875rem;
  font-weight: 650;
  text-decoration: none;
}
.tile-link:hover { background: var(--accent); color: var(--ink); }
.catalog-filters { display: flex; gap: clamp(.35rem, 2vw, 1.5rem); margin-bottom: 1.35rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.catalog-filters button { min-height: 2.75rem; padding: 0 .4rem; background: transparent; border: 0; border-bottom: 2px solid transparent; font-size: .9375rem; }
.catalog-filters button[aria-pressed="true"] { border-bottom-color: #795721; font-weight: 675; }
.film-studies { margin-top: 1.65rem; }
.film-studies h2 { margin-bottom: .65rem; border-bottom: 1px solid var(--line); padding-bottom: .75rem; }
.project-mosaic {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: clamp(14rem, 28vw, 32rem);
}
.project-mosaic:not(.is-filtered):has(> :nth-child(3)) { grid-template-columns: minmax(0, 1.07fr) repeat(2, minmax(0, 1fr)); }
.project-mosaic:not(.is-filtered):has(> :nth-child(3)) > :first-child { grid-row: span 2; }
.project-mosaic:not(.is-filtered):has(> :nth-child(3)) > :nth-child(2),
.project-mosaic:not(.is-filtered) > :nth-child(3):last-child { grid-column: span 2; }
.project-preview { display: block; height: 100%; }
.project-preview:focus-visible { outline: 3px solid white; outline-offset: -6px; }
.tile-caption { position: absolute; inset: auto 0 0; padding: 2rem 1.15rem 1rem; background: linear-gradient(0deg, #151410f5, #151410da 62%, #15141000); font-size: 1rem; font-weight: 640; }
.tile-caption h2 { font-size: clamp(1.125rem, 1.6vw, 1.55rem); letter-spacing: -.025em; }
.tile-caption p { margin-top: .25rem; font-weight: 400; }
.project-dialog { width: min(52rem, calc(100% - 2rem)); max-height: calc(100% - 2rem); border: 0; padding: 0; background: var(--paper); color: var(--ink); }
.project-dialog::backdrop { background: #131410bb; }
.project-dialog form { position: sticky; top: 0; z-index: 1; display: flex; justify-content: flex-end; padding: .6rem; background: var(--paper); }
.project-dialog button { min-height: 2.75rem; padding: 0 1rem; border: 1px solid var(--line); background: var(--paper); }
.project-dialog img { max-height: 52vh; object-fit: cover; }
.project-dialog-copy { padding: clamp(1.15rem, 3vw, 2.8rem); }
.project-location { margin: .5rem 0 1rem; color: var(--muted); }
body:has(.project-dialog[open]) { overflow: hidden; }

.brief-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, .92fr);
  gap: clamp(1.5rem, 6vw, 7rem);
  align-items: start;
  scroll-margin-top: 5.25rem;
  padding-block: clamp(2.5rem, 5vw, 5rem) clamp(3rem, 6vw, 6rem);
}
.brief-layout .display-title { font-size: clamp(4rem, 7.3vw, 7.3rem); }
.brief-note { max-width: 40ch; margin: 1.2rem 0 2.25rem; color: var(--muted); }
.brief-photo { position: sticky; top: 1.5rem; }
.brief-photo img { height: min(68vh, 42rem); object-position: 57% center; }
#project-brief { display: grid; gap: 1.55rem; }
.brief-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; }
#project-brief fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
#project-brief legend, .brief-field label { margin-bottom: .35rem; padding: 0; font-size: .9375rem; font-weight: 630; }
.brief-field label { display: block; }
.brief-field :is(input, textarea) { display: block; width: 100%; min-height: 2.8rem; padding: .45rem .15rem; border: 0; border-bottom: 1px solid #817560; border-radius: 0; background: transparent; color: var(--ink); font: inherit; }
.brief-field [aria-invalid="true"] { border-color: #9b3125; }
.brief-field textarea { resize: vertical; }
.brief-options { display: flex; flex-wrap: wrap; gap: .5rem; }
.brief-options label { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .5rem .75rem; gap: .45rem; border: 1px solid var(--line); font-size: .875rem; cursor: pointer; }
.brief-options label:has(:checked) { border-color: #795721; background: #efe2be; }
.brief-options input { width: 1rem; height: 1rem; margin: 0; flex-shrink: 0; accent-color: #6d4c20; }
.field-error { display: block; margin-top: .3rem; color: #8f3025; }
#project-brief .button { justify-self: start; }
#project-brief button:disabled { cursor: default; opacity: .65; }
#brief-result:empty { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .hero h1 > span { overflow: clip; }
  .hero h1 span span { animation: rise .65s cubic-bezier(.18,.7,.24,1) both; }
  .hero h1 > span + span span { animation-delay: .12s; }
  .hero-support { animation: appear .42s ease-out .34s both; }
  [data-reveal].in-view { animation: settle .48s ease-out both; }
  :is(.service-tile, .project-tile) img { transition: transform .45s cubic-bezier(.2,.7,.3,1); }
  :is(.service-tile, .project-tile):is(:hover, :focus-within) img { transform: scale(1.05); }
  .project-preview .tile-caption { transition: opacity .3s, transform .3s; }
  .project-dialog[open] { animation: settle .3s ease-out both; }
  @keyframes rise { from { transform: translateY(105%); } }
  @keyframes appear { from { opacity: 0; transform: translateY(.6rem); } }
  @keyframes settle { from { opacity: .35; transform: translateY(.55rem); } }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .project-preview:not(:is(:hover, :focus-visible)) .tile-caption { opacity: 0; transform: translateY(.5rem); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
@media (max-width: 55rem) {
  .header-inner { display: flex; flex-wrap: wrap; justify-content: space-between; min-height: 4.35rem; padding-block: .6rem; gap: .5rem; }
  .header-cta { display: none; }
  .menu-button:not([hidden]) { display: inline-flex; align-items: center; min-height: 2.75rem; padding-inline: .75rem; background: transparent; border: 1px solid var(--line); }
  .header-nav { width: 100%; }
  .header-nav .mobile-cta { display: inline-flex; }
  .header[data-menu] .header-nav { display: none; }
  .header[data-menu="open"] .header-nav { display: grid; gap: .2rem; padding-block: .4rem .6rem; border-top: 1px solid var(--line); }
  .header-nav .mobile-cta { justify-self: start; margin-top: .45rem; }
  .brand { width: 5.3rem; height: 3.6rem; }
  .brief-layout { grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr); }
}
@media (max-width: 44rem) {
  h1 { font-size: clamp(2.6rem, 10.8vw, 4.8rem); }
  .hero-inner { min-height: clamp(32rem, 79svh, 44rem); }
  .hero-video { object-position: 56% center; }
  .hero::before { background: linear-gradient(0deg, #11130fff 0%, #141610ed 22%, #151712cc 74%, #1517122e 100%); }
  .hero-copy { padding-block: 7.5rem 2.5rem; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .illustrative img { aspect-ratio: 3 / 2; }
  .footer-lead { flex-direction: column; align-items: flex-start; }
  .service-tiles, .project-mosaic, .project-mosaic:not(.is-filtered):has(> :nth-child(3)), .brief-layout { grid-template-columns: minmax(0, 1fr); }
  .project-mosaic:not(.is-filtered) > .project-tile:nth-child(n) { grid-area: auto; }
  .brief-photo { position: static; }
  .brief-photo img { height: clamp(14rem, 60vw, 24rem); }
}
@media (max-width: 30rem) {
  .brief-fields { grid-template-columns: minmax(0, 1fr); }
}
