:root {
  --bg: #fdfaf1;
  --surface: #f3eee2;
  --ink: #2e2318;
  --muted: #7a6e60;
  --line: #e6dfcf;
  --accent: #a0773f;
  --display: "Instrument Serif", "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --slide: 5s;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Type */
.eyebrow {
  font: 400 13px/1 var(--sans);
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 24px;
}
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: .95; margin: 0; letter-spacing: .005em; text-transform: uppercase; }
h1 { font-size: clamp(52px, 7.4vw, 120px); }
h2 { font-size: clamp(40px, 5vw, 76px); }
h3 { font-size: 26px; letter-spacing: .01em; }
.lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--muted); max-width: 52ch; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { font: 400 22px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.logo span { color: var(--accent); }
.nav { display: flex; gap: 36px; align-items: center; }
.nav a, .nav button {
  font: 400 13px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  background: none; border: 0; color: inherit; cursor: pointer; padding: 8px 0;
}
.nav a:hover, .nav button:hover, .nav a[aria-current] { color: var(--accent); }
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: 100%; left: -24px; min-width: 300px;
  background: var(--bg); border: 1px solid var(--line); padding: 16px 24px;
  display: none; flex-direction: column; gap: 2px;
}
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu { display: flex; }
.dropdown-menu a { padding: 8px 0; }
.menu-toggle {
  display: none; background: none; border: 0; color: inherit; cursor: pointer; padding: 8px 0;
  font: 400 13px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  padding: 18px 28px; border: 1px solid var(--ink); transition: background .25s, color .25s;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn-solid { background: var(--ink); color: var(--bg); }
.btn-solid:hover { background: transparent; color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

/* Hero */
.hero { display: grid; grid-template-columns: 7fr 5fr; gap: var(--gutter); align-items: center; padding-top: 40px; padding-bottom: 72px; }
.hero h1 { margin-bottom: 32px; }
.rotator { display: inline-grid; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; vertical-align: bottom; }
.rotator .word {
  grid-area: 1 / 1;
  transform: translateY(130%); transition: transform .9s var(--ease);
}
.rotator .word.is-active { transform: none; }
/* far enough up that descenders don't peek back into the clip box */
.rotator .word.is-leaving { transform: translateY(-130%); }

/* Hero slideshow */
.slides { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.2s ease; }
.slide.is-active { opacity: 1; z-index: 1; }
.slide img, .slide video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 7s linear; }
.slide.is-active img, .slide.is-active video { transform: scale(1); }
.slide-nav {
  position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 2;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px;
}
.slide-nav button {
  background: none; border: 0; padding: 10px 0 0; cursor: pointer; text-align: left;
  font: 500 10px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.75);
  position: relative;
}
.slide-nav button::before, .slide-nav button::after {
  content: ""; position: absolute; top: 0; left: 0; height: 2px; background: rgba(255,255,255,.35); width: 100%;
}
.slide-nav button::after { background: #fff; width: 0; }
.slide-nav button.is-active { color: #fff; }
.slide-nav button.is-active::after { animation: progress var(--slide) linear forwards; }
.slides.paused .slide-nav button.is-active::after { animation-play-state: paused; }
@keyframes progress { to { width: 100%; } }
.slide-nav span { display: block; text-shadow: 0 1px 6px rgba(0,0,0,.4); }

/* Sections */
section { padding: 96px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 48px; }
.section-head a { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 4px; white-space: nowrap; }
.section-head a:hover { color: var(--accent); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Selected strip */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.strip-media { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.strip a:hover img { transform: scale(1.05); }
.strip-cap { display: block; margin-top: 14px; font: 400 24px/1 var(--display); text-transform: uppercase; transition: color .3s; }
.strip a:hover .strip-cap { color: var(--accent); }

/* Client gallery (proofing) */
.cg-cover {
  position: relative; height: calc(100svh - 76px); min-height: 480px; padding: 0; overflow: hidden;
  display: grid; place-items: center; color: #fff; text-align: center;
}
.cg-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cg-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.12), rgba(0,0,0,.5)); }
.cg-cover-text { position: relative; z-index: 1; padding: 0 var(--gutter); }
.cg-cover .eyebrow { color: rgba(255,255,255,.85); }
.cg-cover h1 { margin-bottom: 18px; }
.cg-date { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 36px; }
.cg-cover .btn { border-color: #fff; color: #fff; }
.cg-cover .btn:hover { background: #fff; color: var(--ink); }
.cg-bar { position: sticky; top: 76px; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); scroll-margin-top: 76px; }
.cg-bar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.cg-bar strong { font: 400 26px/1 var(--display); text-transform: uppercase; margin-right: 12px; }
.cg-bar span { font-size: 13px; color: var(--muted); letter-spacing: .06em; }
.cg-actions { display: flex; gap: 10px; align-items: center; }
.cg-filter {
  display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--line); color: var(--ink);
  padding: 13px 16px; cursor: pointer; font: 500 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
}
.cg-filter span { color: inherit; font-size: inherit; letter-spacing: inherit; }
.cg-filter svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.cg-filter[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.cg-filter[aria-pressed="true"] svg { fill: currentColor; }
.cg-send:disabled { opacity: .35; cursor: not-allowed; }
.cg-send:disabled:hover { background: var(--ink); color: var(--bg); }
.cg-hint { color: var(--muted); font-size: 14px; margin: 24px 0; }
.cg-empty { display: none; text-align: center; color: var(--muted); padding: 64px 0; }
.proof-grid.only-favs .proof:not(.fav) { display: none; }
.proof-grid.only-favs.none + .cg-empty { display: block; }
.proof { position: relative; margin: 0 0 12px; break-inside: avoid; }
.proof > a { margin-bottom: 0; }
.proof-tools { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; opacity: 0; transition: opacity .25s; }
.proof:hover .proof-tools, .proof.fav .proof-tools, .proof-tools:focus-within { opacity: 1; }
.proof .proof-tools button, .proof .proof-tools a {
  width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer; margin: 0;
  background: rgba(255,255,255,.92); color: var(--ink); display: grid; place-items: center;
}
.proof-tools svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.proof.fav .heart { background: var(--ink); color: #fff; }
.proof.fav .heart svg { fill: currentColor; }
.proof-name {
  position: absolute; left: 10px; bottom: 8px; font-size: 11px; letter-spacing: .06em; color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,.6); opacity: 0; transition: opacity .25s; pointer-events: none;
}
.proof:hover .proof-name { opacity: 1; }
@media (hover: none) { .proof-tools { opacity: 1; } }
.cg-dialog { border: 0; padding: clamp(24px, 4vw, 48px); width: calc(100% - 32px); max-width: 520px; background: var(--bg); color: var(--ink); }
.cg-dialog::backdrop { background: rgba(20, 15, 10, .6); }
.cg-dialog-title { font-size: clamp(32px, 4vw, 48px); margin: 12px 0 24px; }
.nav.nav-static { gap: 28px; }

/* Video page */
.reels-lg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.reels-lg video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: var(--ink); }

/* About */
.about-media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.facts strong { display: block; font: 400 clamp(48px, 5vw, 72px)/1 var(--display); }
.facts span { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { border-top: 1px solid var(--line); padding: 22px 0; }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list span { display: block; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.contact-list a { font: 400 clamp(19px, 1.7vw, 23px)/1.3 var(--sans); transition: color .3s; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--accent); }
.form { display: grid; gap: 20px; }
.form label { display: grid; gap: 8px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.form input, .form select, .form textarea {
  font: 400 17px/1.5 var(--sans); color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--line); padding: 10px 0; border-radius: 0; outline: none;
  transition: border-color .3s;
}
.form input:focus, .form select:focus, .form textarea:focus { border-bottom-color: var(--ink); }
.form textarea { min-height: 140px; resize: vertical; }
.form .btn { justify-self: start; cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hidden { display: none; }

/* Reels */
.reels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.reels video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: var(--ink); }

/* Category tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 24px; }
.tile-media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); margin-bottom: 18px; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.tile:hover .tile-media img { transform: scale(1.05); }
.tile h3 { display: flex; justify-content: space-between; align-items: baseline; transition: color .3s; }
.tile:hover h3 { color: var(--accent); }
.tile h3 span { font: 400 12px/1 var(--sans); letter-spacing: .16em; color: var(--muted); }

/* About split */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gutter); }
.services { list-style: none; padding: 0; margin: 32px 0 0; columns: 2; column-gap: 32px; }
.services li { padding: 14px 0; border-top: 1px solid var(--line); break-inside: avoid; }

/* CTA band */
.cta { background: var(--ink); color: var(--bg); text-align: center; padding: 120px 0; }
.cta h2 { font-size: clamp(48px, 7vw, 112px); }
.cta .eyebrow { color: #b3a690; }
.cta .btn { border-color: var(--bg); }
.cta .btn:hover { background: var(--bg); color: var(--ink); }
.cta .btn-solid { background: var(--bg); color: var(--ink); }
.cta .btn-solid:hover { background: transparent; color: var(--bg); }
.cta .actions { justify-content: center; }

/* Page head (category pages) */
.page-head { padding-top: 56px; padding-bottom: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); align-items: end; }
.crumbs { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 24px; }
.crumbs a:hover { color: var(--ink); }

/* Gallery */
.gallery-wide { padding: 0 12px; }
.gallery { columns: 3; column-gap: 12px; }
@media (min-width: 1400px) { .gallery-wide .gallery { columns: 4; } }
@media (min-width: 1900px) { .gallery-wide .gallery { columns: 5; } }
img { -webkit-touch-callout: none; -webkit-user-drag: none; user-select: none; }
.gallery a { display: block; margin-bottom: 12px; break-inside: avoid; background: var(--surface); cursor: zoom-in; overflow: hidden; }
.gallery img { width: 100%; transition: transform 1s var(--ease); }
.gallery a:hover img { transform: scale(1.03); }

.other-cats { display: flex; flex-wrap: wrap; gap: 12px 32px; }
.other-cats a { font: 400 clamp(26px, 2.8vw, 40px)/1.2 var(--display); text-transform: uppercase; transition: color .3s; }
.other-cats a:hover { color: var(--accent); }

/* Intro animation for content that is on screen at load */
.intro { animation: intro 1.1s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes intro { from { opacity: 0; transform: translateY(28px); } }

/* Scroll reveal (only when JS is running) */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-reveal="img"] { opacity: 1; transform: none; clip-path: inset(100% 0 0 0); transition: clip-path 1.2s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal="img"].in { clip-path: inset(0 0 0 0); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(12, 12, 12, .96);
  display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; width: auto; height: 88vh; object-fit: contain; }
.lightbox button {
  position: absolute; background: none; border: 0; color: #fff; cursor: pointer;
  font: 300 32px/1 var(--sans); padding: 20px; opacity: .7;
}
.lightbox button:hover { opacity: 1; }
.lb-close { top: 8px; right: 8px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: #999; font-size: 12px; letter-spacing: .2em; }

/* Footer */
.site-footer { padding: 64px 0 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer h4 { font: 500 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink); margin: 0 0 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a:hover { color: var(--ink); }
.footer-bottom { margin-top: 56px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; font-size: 12px; letter-spacing: .08em; }
.company { display: flex; align-items: center; gap: 14px; }
.company img { width: 72px; opacity: .8; }

/* WhatsApp float */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: var(--bg);
  display: grid; place-items: center; box-shadow: 0 6px 24px rgba(0,0,0,.18);
  transition: transform .3s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 24px; height: 24px; fill: currentColor; }

/* Responsive */
@media (max-width: 1024px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .gallery { columns: 2; }
  .hero { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .hero, .split, .page-head { grid-template-columns: 1fr; }
  .hero { padding-top: 16px; padding-bottom: 56px; }
  .slides { order: -1; aspect-ratio: 4 / 4.6; }
  section { padding: 64px 0; }
  .reels { grid-template-columns: repeat(5, 62%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .reels video { scroll-snap-align: start; }
  .reels-lg { grid-template-columns: repeat(2, 1fr); }
  .facts, .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .menu-toggle { display: block; }
  /* backdrop-filter would make the header the containing block of the fixed menu */
  .site-header { backdrop-filter: none; background: var(--bg); }
  .nav {
    position: fixed; inset: 76px 0 0 0; background: var(--bg);
    display: none; flex-direction: column; align-items: flex-start; gap: 0; padding: 24px var(--gutter);
    overflow-y: auto;
  }
  .nav.open { display: flex; }
  .nav.nav-static { position: static; display: flex; flex-direction: row; padding: 0; gap: 18px; overflow: visible; background: none; }
  .nav.nav-static > a { width: auto; border: 0; padding: 8px 0; font-size: 11px; white-space: nowrap; }
  .client-gallery .logo { white-space: nowrap; font-size: 18px; }
  .nav.nav-static > a:first-child { display: none; }
  .cg-bar .wrap > div:first-child { width: 100%; }
  .cg-actions { width: 100%; }
  .cg-actions .btn { flex: 1; justify-content: center; }
  .nav > a, .nav > .dropdown { width: 100%; border-bottom: 1px solid var(--line); padding: 14px 0; }
  .dropdown-menu { position: static; display: flex; border: 0; padding: 8px 0 0 16px; min-width: 0; }
  .dropdown > button { pointer-events: none; }
}
@media (max-width: 560px) {
  .tiles { grid-template-columns: 1fr; }
  .services { columns: 1; }
  .gallery-wide { padding: 0 8px; }
  .gallery { columns: 2; column-gap: 8px; }
  .gallery a { margin-bottom: 8px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .slide-nav span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
