:root {
  --paper: #f5f5f7;
  --white: #ffffff;
  --ink: #1d1d1f;
  --muted: #545459;
  --rust: #8f4b32;
  --sand: #e9d6c8;
  --border: #d6d6dc;
  --night: #161618;
  --gold: #efc1a8;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --display: var(--body);
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-synthesis: style;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, figure { margin: 0; }
body { min-width: 280px; }
[hidden] { display: none !important; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
::selection { background: #e6b896; color: #271e16; }
.wrap { width: min(100% - 2 * clamp(1.25rem, 5vw, 5rem), 82rem); margin-inline: auto; }
.section { padding-block: clamp(4rem, 8vw, 8rem); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; z-index: 8; top: .5rem; left: 1rem; padding: .7rem; background: var(--white); transform: translateY(-160%); }
.skip:focus { transform: none; }

.masthead { position: sticky; top: 0; z-index: 4; background: #fffffff0; backdrop-filter: blur(18px); border-bottom: 1px solid #0001; }
.scroll-progress { position: absolute; inset: 0 0 auto; height: 2px; background: var(--gold); transform: scaleX(var(--page-progress, 0)); transform-origin: left; pointer-events: none; }
.masthead-inner { min-height: 3.65rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { flex: 0 1 11rem; min-width: 0; mix-blend-mode: multiply; }
.brand img { width: 100%; height: auto; }
.masthead nav { display: flex; align-items: center; gap: clamp(.65rem, 2vw, 2.5rem); }
.masthead nav a { text-decoration: none; font-size: .93rem; font-weight: 650; }
.masthead nav a:hover { color: var(--rust); }
.nav-contact { display: inline-flex; align-items: center; gap: .65rem; padding: .48rem .85rem; border: 1px solid var(--border); border-radius: 2rem; }
.menu-toggle { background: transparent; border: 1px solid var(--border); padding: .55rem .65rem; }
.menu-toggle span { display: inline-block; width: .85rem; height: .45rem; margin-left: .35rem; vertical-align: .1em; border-block: 1px solid currentColor; }

.hero { overflow: clip; background: var(--paper); }
.hero-inner { display: grid; justify-items: center; gap: clamp(1.7rem, 4vw, 3rem); padding-block: clamp(2.7rem, 6vw, 5rem) clamp(2rem, 6vw, 5rem); }
.hero-copy { position: relative; z-index: 1; text-align: center; }
.hero-copy .overline { justify-content: center; color: var(--rust); }
.hero-copy .line { display: none; }
.hero-copy > p, .hero-links { animation: appear .75s .28s both; }
@keyframes appear { from { opacity: 0; transform: translateY(1.1rem); } to { opacity: 1; transform: none; } }
@keyframes title-rise { from { opacity: 0; transform: translateY(.55em); clip-path: inset(0 0 65%); } to { opacity: 1; transform: none; clip-path: inset(-20% -5% -20% -5%); } }
.overline { display: flex; gap: .7rem; align-items: center; color: var(--sand); font-size: .72rem; font-weight: 700; line-height: 1.5; letter-spacing: .13em; text-transform: uppercase; }
.overline.ink { color: var(--rust); }
.line { display: inline-block; flex: 0 0 1.6rem; height: 1px; background: currentColor; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; }
h1 { margin-block: .65rem .85rem; font-size: clamp(3rem, 7.4vw, 7.1rem); line-height: .99; letter-spacing: -.067em; }
h1 span { display: inline-block; animation: title-rise .95s cubic-bezier(.16,1,.3,1) both; }
h1 span + span { animation-delay: .12s; }
.hero-copy > p:not(.overline) { margin-inline: auto; max-width: 40rem; font-size: clamp(1rem, 1.65vw, 1.35rem); line-height: 1.45; color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .77rem 1.04rem; border-radius: 2rem; text-decoration: none; font-size: .9rem; font-weight: 650; transition: background-color .2s ease, color .2s ease; }
.button-light { background: var(--ink); color: var(--white); }
.button-light:hover { background: #414146; }
.hero-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .65rem 1.3rem; margin-top: 1.25rem; }
.hero-film { position: relative; width: min(100%, 69rem); aspect-ratio: 16 / 9; animation: frame-in 1.1s cubic-bezier(.22,1,.36,1) both; border-radius: clamp(1rem, 3vw, 2rem); overflow: hidden; color: var(--white); background: #161618; }
@keyframes frame-in { from { opacity: .2; clip-path: inset(0 0 9% 18%); } to { opacity: 1; clip-path: inset(0); } }
.hero-film-media { position: absolute; inset: 0; overflow: hidden; isolation: isolate; }
.hero-film-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #17130feb, transparent 43%); pointer-events: none; }
.hero-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 54%; transform: translateY(var(--hero-shift, 0px)) scale(1.09); }
.hero-film figcaption { position: absolute; inset: auto 0 0; display: flex; align-items: end; justify-content: space-between; gap: .6rem; padding: clamp(1rem, 2.1vw, 1.65rem); }
.hero-film figcaption strong, .hero-film figcaption small { display: block; }
.hero-film figcaption strong { font: 650 clamp(1rem, 2vw, 1.5rem)/1.15 var(--display); }
.hero-youtube { color: var(--ink); background: var(--white); }
.hero-youtube:hover { background: var(--gold); }

.section-heading { display: grid; grid-template-columns: 1.45fr 1fr; align-items: end; gap: 1.5rem 4vw; margin-bottom: clamp(1.7rem, 4vw, 3.2rem); }
.section h2 { font-size: clamp(2.25rem, 5.3vw, 5.5rem); line-height: 1.03; letter-spacing: -.058em; margin-top: .65rem; }
.section h2 em { font-style: normal; color: var(--rust); }
.section-heading > p, .studio-copy > p, .contact-copy > p { max-width: 31rem; font-size: clamp(1rem, 1.5vw, 1.23rem); line-height: 1.58; color: var(--muted); }
.section-heading > p { padding-bottom: .15rem; }
.technology { background: #fff; }
.technology-feature { position: relative; isolation: isolate; display: grid; align-items: end; min-height: clamp(21rem, 45vw, 40rem); padding: clamp(1.25rem, 5vw, 4.2rem); overflow: hidden; border-radius: clamp(1rem, 3vw, 2rem); color: var(--white); background: #32231e; }
.technology-feature > img, .technology-feature::after { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.technology-feature > img { object-fit: cover; object-position: 60% 56%; }
.technology-feature::after { content: ""; background: linear-gradient(90deg, #1c110bd9, transparent 88%), linear-gradient(0deg, #1c110bd9, transparent 80%); }
.technology-intro > p:not(.overline) { max-width: 36rem; margin-top: .8rem; font-size: clamp(1rem, 1.65vw, 1.25rem); line-height: 1.55; }
.certifications { max-width: 65rem; margin: clamp(2.2rem, 5vw, 4.2rem) auto 0; }
.certifications h3 { font-size: clamp(1.55rem, 3vw, 2.4rem); letter-spacing: -.04em; }
.certification-list { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem 2rem; margin: 1.1rem 0 1.4rem; }
.certification-list div { padding: 1rem 0; border-top: 1px solid var(--border); }
.certification-list dt { font-size: 1.07rem; font-weight: 700; }
.certification-list dd { margin: .38rem 0 0; color: var(--muted); font-size: .94rem; line-height: 1.55; }
.certification-note { max-width: 53rem; margin: 0 0 1.25rem; color: var(--muted); font-size: .94rem; line-height: 1.55; }
.product-heading { margin-bottom: 1.6rem; text-align: center; }
.product-toolbar { display: flex; justify-content: center; margin-bottom: clamp(1.4rem, 3vw, 2.5rem); }
.product-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem; padding: .25rem; border-radius: 2rem; background: #e9e9ed; }
.product-filters button { border: 1px solid transparent; border-radius: 2rem; padding: .51rem .92rem; background: transparent; font-size: .88rem; font-weight: 650; }
.product-filters button[aria-pressed="true"], .product-filters button:hover { color: var(--white); background: var(--ink); border-color: var(--ink); }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.85rem, 2vw, 1.5rem); }
.product { display: grid; grid-template-rows: auto 1fr; border-radius: clamp(1rem, 2.4vw, 1.65rem); overflow: hidden; background: var(--white); }
.product-featured { grid-column: 1 / -1; grid-template: auto / minmax(0, 1.22fr) minmax(0, 1fr); }
.product-featured .product-copy { align-content: center; grid-template-rows: auto; }
.product-image { position: relative; aspect-ratio: 1.68; overflow: hidden; background: #eeedeb; }
.product-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 46%; transition: transform .7s cubic-bezier(.2,1,.4,1); }
.product-cutout { background: radial-gradient(ellipse at 50% 55%, #fff, #e9e6e3); }
.product-cutout img { object-fit: contain; mix-blend-mode: multiply; padding: .65rem; }
.product-featured .product-image { aspect-ratio: 1.32; }
.product-design img { object-position: center 62%; }
.product:hover img, .product:focus-within img { transform: scale(1.055); }
.product-featured:hover img, .product-featured:focus-within img { transform: scale(1.035); }
.product-copy { display: grid; grid-template-rows: auto auto 1fr auto; justify-items: start; gap: .58rem; padding: clamp(1.15rem, 3vw, 2.45rem); }
.product-copy h3 { font-size: clamp(1.65rem, 3vw, 2.75rem); line-height: 1.05; letter-spacing: -.05em; }
.product-featured h3 { font-size: clamp(2.25rem, 5vw, 5rem); }
.product-copy > p:not(.overline) { font-size: .94rem; line-height: 1.45; color: var(--muted); }
.product-copy .text-link { margin-top: .35rem; }
.films { background: var(--night); color: var(--white); }
.films .section-heading { grid-template-columns: 1fr; }
.films h2 em { color: var(--gold); }
.film-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(.75rem, 2.5vw, 2rem); }
.film-card { display: grid; isolation: isolate; position: relative; min-height: clamp(14rem, 31vw, 27rem); overflow: hidden; border-radius: 1.4rem; background: #31261d; text-decoration: none; }
.film-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,1,.4,1); }
.film-card:hover img, .film-card:focus-visible img { transform: scale(1.09); }
.film-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #18130fed, transparent 64%); pointer-events: none; }
.film-label { z-index: 1; display: flex; align-items: end; justify-content: space-between; gap: .55rem; align-self: end; padding: clamp(1rem, 3vw, 2rem); }
.film-label small, .film-label strong { display: block; }
.film-label small { color: var(--sand); font-weight: 600; }
.film-label strong { margin-top: .35rem; font: 650 clamp(1.15rem, 2.6vw, 2.1rem)/1.1 var(--display); letter-spacing: -.035em; }
.film-label .round { flex: none; background: var(--white); border-color: var(--white); color: var(--ink); }
.film-card:hover .round { background: var(--gold); border-color: var(--gold); }
.js-motion [data-reveal].reveal-wait { opacity: 0; transform: translateY(2rem); }
.js-motion [data-reveal] { transition: opacity .75s ease, transform .85s cubic-bezier(.16,1,.3,1); }
.js-motion [data-reveal]:focus-within { opacity: 1; transform: none; }
.projects { background: var(--white); }
.project-intro { text-align: center; }
.project-intro .overline, .project-heading .overline { justify-content: center; }
.project-intro > p:not(.overline), .project-heading > p:not(.overline) { max-width: 46rem; margin: .85rem auto 0; font-size: clamp(1rem, 1.7vw, 1.24rem); line-height: 1.5; color: var(--muted); }
.project-index { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; margin-top: 1.4rem; }
.project-index a { padding: .48rem .7rem; border: 1px solid var(--border); border-radius: 2rem; font-size: .84rem; text-decoration: none; }
.project-index a:hover { border-color: var(--ink); }
.project { padding-block: clamp(3.2rem, 6vw, 6rem); border-bottom: 1px solid var(--border); }
.project:last-child { border-bottom: 0; padding-bottom: 0; }
.project-heading { margin: 0 auto clamp(1.3rem, 3.5vw, 2.6rem); text-align: center; }
.project-heading h3 { margin-top: .5rem; font-size: clamp(2rem, 4.9vw, 4.6rem); line-height: 1.02; letter-spacing: -.056em; }
.project-photo { position: relative; margin-inline: auto; }
.project-main { display: block; aspect-ratio: 2.05; overflow: hidden; border-radius: clamp(.8rem, 2.5vw, 1.65rem); background: #e9e7e4; }
.project-main img { width: 100%; height: 100%; object-fit: cover; object-position: center 57%; transition: transform .7s ease; }
#cerda .project-main img { object-position: center 43%; }
.project-main:hover img { transform: scale(1.04); }
.project-photo figcaption { margin-top: .55rem; font-size: .84rem; color: var(--muted); }
.project-meta { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-block: 1rem; padding: clamp(1rem, 2.5vw, 1.7rem); border-radius: 1.15rem; background: var(--paper); }
.project-product h4 { margin: .22rem 0; font-size: clamp(1.08rem, 2.4vw, 1.65rem); letter-spacing: -.03em; }
.project-product { display: flex; align-items: center; gap: .9rem; }
.project-product img { flex: none; width: clamp(3.2rem, 9vw, 5.25rem); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: .65rem; }
.project-product p:not(.overline) { margin-top: .25rem; font-size: .91rem; color: var(--muted); }
.project-meta .button { flex: none; }
.project-photos { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: clamp(.45rem, 1.6vw, 1rem); }
.project-thumb { display: grid; align-content: start; gap: .45rem; text-decoration: none; font-size: .82rem; line-height: 1.35; color: var(--muted); }
.project-thumb img { width: 100%; height: auto; aspect-ratio: 1.66; object-fit: cover; border-radius: .85rem; background: var(--paper); }
.project-thumb:hover span { text-decoration: underline; }
.text-link { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 700; font-size: .9rem; padding-bottom: .23rem; border-bottom: 1px solid currentColor; }
.text-link:hover { color: var(--rust); }
.gallery-footer p { font-size: .85rem; }
.gallery-footer div { flex: none; display: flex; gap: .45rem; }
.round { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 1px solid currentColor; border-radius: 50%; background: transparent; font-size: 1.15rem; line-height: 1; }
.round:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

.studio, .contact-inner { display: grid; grid-template-columns: 1.45fr 1fr; align-items: center; gap: 1.7rem 4vw; }
.studio-copy { display: grid; gap: 1rem; }
.studio-media { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(.75rem, 2.5vw, 2rem); }
.studio-photo { position: relative; overflow: hidden; border-radius: 1.4rem; background: #e9e7e4; }
.studio-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.studio-media .film-card { aspect-ratio: 16 / 9; min-height: 0; color: var(--white); }
.contact { background: var(--night); color: var(--white); }
.contact h2 em { color: #f5d8af; }
.contact-copy p { color: #faecde; }
.contact-copy .button { margin-block: 1.05rem 1.15rem; background: var(--white); color: var(--ink); }
.contact address { color: #f0dbcc; font-style: normal; font-size: .9rem; line-height: 1.45; }
.footer { background: #241d19; color: #f7eee2; }
.footer-inner { min-height: 6rem; padding-block: 1.15rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.footer p { font-size: .78rem; line-height: 1.65; }
.footer .text-link:hover { color: var(--sand); }

.gallery { width: min(58rem, calc(100% - 1.4rem)); max-height: 95dvh; padding: 1rem; border: 0; background: #251e1a; color: var(--white); }
.gallery::backdrop { background: #16120fe6; }
body:has(.gallery[open]) { overflow: hidden; }
.gallery-header, .gallery-footer { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.gallery-header { margin-bottom: .7rem; }
.gallery-header h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
.gallery-image { width: 100%; height: min(61dvh, 38rem); object-fit: contain; background: #181310; }
.gallery-footer { margin-top: .7rem; }
.gallery .round:hover { color: var(--ink); background: var(--white); border-color: var(--white); }
.film-player { width: 100%; display: block; height: min(73dvh, 44rem); background: #110e0b; }

@media (max-width: 780px) {
  :root { scroll-padding-top: 5rem; }
  .masthead-inner { min-height: 4.15rem; }
  .masthead nav { gap: .85rem; }
  .masthead nav a { font-size: .86rem; }
  .section-heading, .studio, .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .masthead-inner { flex-wrap: wrap; }
  .masthead nav { flex: 1 0 100%; padding-bottom: .7rem; flex-wrap: wrap; }
  .has-menu .masthead-inner { flex-wrap: nowrap; }
  .has-menu .masthead nav { position: absolute; inset: 100% 0 auto; display: none; padding: .5rem 1.25rem .8rem; background: var(--white); border-bottom: 1px solid var(--border); }
  .has-menu .masthead nav.is-open { display: grid; gap: 0; }
  .has-menu .masthead nav a { padding: .8rem 0; border: 0; border-top: 1px solid var(--border); border-radius: 0; font-size: 1rem; }
  .hero-inner { padding-block: 2.5rem 1.3rem; }
  h1 { font-size: clamp(2.35rem, 9.9vw, 4.2rem); }
  .hero-copy .overline { font-size: .63rem; letter-spacing: .08em; }
  .hero-youtube { padding: .55rem .7rem; font-size: .77rem; }
  .certification-list, .product-grid, .product-featured { grid-template-columns: minmax(0, 1fr); }
  .product-featured { grid-template-rows: auto 1fr; }
  .product-featured .product-image { aspect-ratio: 1.5; }
  .film-grid, .studio-media { grid-template-columns: 1fr; }
  .studio-photo { aspect-ratio: 3 / 2; }
  .project-main { aspect-ratio: 1.36; }
  .project-meta { flex-wrap: wrap; }
  .project-photos { grid-auto-columns: minmax(0, 65%); overflow-x: auto; padding: 4px 4px .65rem; scroll-snap-type: x mandatory; }
  .project-thumb { scroll-snap-align: start; }
  .footer-inner { align-items: start; }
  .footer .text-link { flex: none; font-size: .78rem; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js-motion [data-reveal].reveal-wait { opacity: 1; transform: none; }
}
