:root {
  --yellow: #f2b705;
  --yellow-d: #d49f00;
  --slate: #5f7d85;
  --slate-d: #3e5359;
  --ink: #1f2a2e;
  --grey: #aab4b8;
  --paper: #f5f4f0;
  --white: #fff;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow: 0 10px 30px -12px rgba(31, 42, 46, .25);
  --shadow-lg: 0 24px 60px -20px rgba(31, 42, 46, .4);
  --display: "Bricolage Grotesque", Georgia, serif;
  --body: "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--paper); line-height: 1.65; font-size: 1.0625rem; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h5 { font-family: var(--display); line-height: 1.08; margin: 0; letter-spacing: -.02em; }
.wrap { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }

/* Topbar + header */
.topbar { background: var(--ink); color: #dfe5e7; font-size: .875rem; }
.topbar__in { display: flex; gap: 1.5rem; justify-content: flex-end; padding: .45rem 0; }
.topbar a { text-decoration: none; transition: color .2s; }
.topbar a:hover { color: var(--yellow); }
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); transition: box-shadow .3s; }
.header.is-scrolled { box-shadow: 0 6px 24px -14px rgba(31, 42, 46, .45); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; }
.brand img { width: 78px; height: auto; transition: transform .4s var(--ease); }
.brand:hover img { transform: rotate(-3deg) scale(1.05); }
.brand span { font-family: var(--display); font-weight: 800; font-size: 1.2rem; color: var(--slate-d); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .5rem; }
.nav a { display: inline-block; padding: .55rem 1rem; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .95rem; color: var(--slate-d); border: 2px solid var(--slate); transition: background .25s, color .25s, transform .25s; }
.nav a:hover { background: var(--slate); color: var(--white); transform: translateY(-2px); }
@media (max-width: 520px) { .brand span { display: none; } .nav a { padding: .45rem .8rem; font-size: .85rem; } .topbar__in { justify-content: center; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .95rem 1.6rem; border-radius: 999px; font-weight: 700; text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s, background .25s, color .25s; }
.btn--primary { background: var(--yellow); color: var(--ink); box-shadow: 0 10px 24px -10px rgba(242, 183, 5, .8); }
.btn--primary:hover { background: #ffc61a; transform: translateY(-3px); box-shadow: 0 16px 30px -12px rgba(242, 183, 5, .9); }
.btn--ghost { color: var(--white); border: 2px solid rgba(255, 255, 255, .7); }
.btn--ghost:hover { background: var(--white); color: var(--ink); transform: translateY(-3px); }

/* Hero */
.hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: flex-end; color: var(--white); overflow: hidden; background: var(--ink); }
.hero__slides, .hero__shade { position: absolute; inset: 0; }
.hero__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1.2s ease, transform 7s ease-out; }
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero__shade { background: linear-gradient(180deg, rgba(31, 42, 46, .15) 0%, rgba(31, 42, 46, .35) 45%, rgba(31, 42, 46, .9) 100%), linear-gradient(90deg, rgba(31, 42, 46, .6), transparent 70%); }
.hero__content { position: relative; padding: 6rem 0 2.5rem; }
.hero__kicker { display: inline-block; margin: 0 0 1rem; padding: .35rem .9rem; border-radius: 999px; background: rgba(255, 255, 255, .14); backdrop-filter: blur(6px); font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hero__title { font-size: clamp(2.8rem, 9vw, 6.2rem); font-weight: 800; }
.hero__title em { font-style: normal; color: var(--yellow); }
.hero__lead { font-size: clamp(1.15rem, 2.6vw, 1.6rem); margin: .8rem 0 2rem; max-width: 34ch; color: #eef2f3; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__nav { display: flex; align-items: center; gap: 1rem; margin-top: 3rem; }
.hero__arrow { background: none; border: 0; color: var(--white); font: 700 .85rem var(--body); text-transform: uppercase; letter-spacing: .1em; cursor: pointer; opacity: .8; transition: opacity .2s, color .2s; padding: .3rem; }
.hero__arrow:hover { opacity: 1; color: var(--yellow); }
.hero__dots { display: flex; gap: .4rem; }
.hero__dot { width: 30px; height: 6px; border: 0; padding: 0; border-radius: 3px; background: rgba(255, 255, 255, .4); font-size: 0; cursor: pointer; transition: background .3s, width .3s; }
.hero__dot.is-active { background: var(--yellow); width: 48px; }

.anim { animation: rise .9s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* Eyebrow + headings */
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); margin-bottom: .9rem; }
.eyebrow::before { content: ""; width: 14px; height: 14px; background: var(--yellow); transform: rotate(45deg); border-radius: 2px; }
h2 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; color: var(--ink); }

/* Services */
.services { padding: clamp(4rem, 9vw, 7rem) 0; background:
  linear-gradient(var(--paper), var(--paper)) padding-box,
  var(--paper); position: relative; }
.services::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(95, 125, 133, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(95, 125, 133, .09) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: linear-gradient(180deg, #000, transparent 80%); }
.services__in { position: relative; display: grid; gap: 2.5rem; }
.services__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.2rem; }
.services__list li { position: relative; display: flex; gap: 1.2rem; align-items: flex-start; background: var(--white); padding: 1.6rem; border-radius: var(--radius); box-shadow: var(--shadow); border-left: 5px solid var(--yellow); transition: transform .35s var(--ease), box-shadow .35s; }
.services__list li:nth-child(even) { border-left-color: var(--slate); }
.services__list li:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.services__list p { margin: 0; }
.tile-ico { flex: 0 0 16px; width: 16px; height: 16px; margin-top: .3rem; border-radius: 50%; background: var(--yellow); transition: transform .35s var(--ease); }
.services__list li:nth-child(even) .tile-ico { background: var(--slate); }
.services__list li:hover .tile-ico { transform: scale(1.35); }
@media (min-width: 900px) {
  .services__in { grid-template-columns: 1fr 2fr; gap: 3.5rem; align-items: start; }
  .services__head { position: sticky; top: 8rem; }
  .services__list { grid-template-columns: 1fr 1fr; }
}

/* Works */
.works { padding: clamp(4rem, 9vw, 7rem) 0; background: var(--slate-d); color: var(--white); }
.works h2 { color: var(--white); max-width: 18ch; }
.works .eyebrow { color: #cdd8db; }
.works__head { display: grid; gap: 1.5rem; margin-bottom: 3rem; align-items: end; }
.works__partner { margin: 0; padding: 1.3rem 1.5rem; border-radius: var(--radius); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); max-width: 30rem; }
.works__partner strong { color: var(--yellow); }
@media (min-width: 900px) { .works__head { grid-template-columns: 1.4fr 1fr; } .works__partner { justify-self: end; } }
.gallery__filter { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 2rem; }
.gallery__filter-btn { display: inline-flex; align-items: center; padding: .6rem 1.3rem; border-radius: 999px; font-weight: 700; font-size: .9rem; background: none; border: 2px solid rgba(255, 255, 255, .5); color: var(--white); cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s; }
.gallery__filter-btn:hover { border-color: var(--white); transform: translateY(-2px); }
.gallery__filter-btn.is-active { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.gallery > li.is-hidden, .gallery > li.is-extra { display: none; }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(4, 1fr); gap: .9rem; } }
@media (min-width: 1000px) { .gallery { grid-template-columns: repeat(5, 1fr); } }
.gallery__item { display: block; position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; background: var(--slate); box-shadow: var(--shadow); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), filter .4s; }
.gallery__item::after { content: "+"; position: absolute; right: .6rem; bottom: .6rem; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); color: var(--ink); font-size: 1.3rem; font-weight: 700; opacity: 0; transform: scale(.6); transition: opacity .3s, transform .3s var(--ease); }
.gallery__item:hover img, .gallery__item:focus-visible img { transform: scale(1.07); }
.gallery__item:hover::after, .gallery__item:focus-visible::after { opacity: 1; transform: scale(1); }

.gallery__more { display: flex; justify-content: center; margin-top: 2.2rem; }
.gallery__more-btn[hidden] { display: none; }
.gallery__more-btn { display: inline-flex; align-items: center; padding: .8rem 1.8rem; border-radius: 999px; font: 700 .95rem var(--body); background: none; border: 2px solid rgba(255, 255, 255, .5); color: var(--white); cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s; }
.gallery__more-btn:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); transform: translateY(-2px); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(15, 20, 22, .92); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem; padding: 2rem 1rem; }
.lightbox[hidden] { display: none; }
.lightbox__stage { max-width: min(92vw, 900px); width: 100%; display: flex; justify-content: center; }
.lightbox img { max-height: 72vh; max-width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox__bar { width: 100%; max-width: min(92vw, 900px); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.lightbox__caption { margin: 0; color: var(--white); font-size: .95rem; opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lightbox__nav { display: flex; gap: .6rem; flex-shrink: 0; margin-left: auto; }
.lightbox__nav button, .lightbox__close { background: rgba(255, 255, 255, .12); color: var(--white); border: 0; width: 48px; height: 48px; border-radius: 10px; font-size: 1.6rem; line-height: 1; cursor: pointer; transition: background .2s, color .2s; display: grid; place-items: center; }
.lightbox__nav button:hover { background: var(--yellow); color: var(--ink); }
.lightbox__nav button.lightbox__close { background: var(--yellow); color: var(--ink); }
.lightbox__nav button.lightbox__close:hover { background: var(--white); }
@media (max-width: 560px) { .lightbox__bar { flex-wrap: wrap; } .lightbox__caption { white-space: normal; flex-basis: 100%; } }

/* Footer */
.footer { background: var(--ink); color: #c9d2d5; padding: 2rem 0 1.25rem; }
.footer__grid {
  display: grid;
  gap: 1.5rem 1.25rem;
  grid-template-columns: 1fr;
  grid-template-areas: "contact" "region" "social";
  text-align: center;
  justify-items: center;
}
@media (min-width: 640px) {
  .footer { padding: 2.75rem 0 1.5rem; }
  .footer__grid { gap: 2rem; }
}
@media (min-width: 960px) {
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; grid-template-areas: "contact region social"; max-width: 760px; margin: 0 auto; }
}
@media (orientation: landscape) and (max-width: 959px) and (max-height: 540px) {
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; grid-template-areas: "contact region social"; gap: 1rem; }
}
.footer__contact { grid-area: contact; }
.footer__region { grid-area: region; }
.footer__social { grid-area: social; }
.footer h5 { font-size: 1.05rem; color: var(--yellow); margin-bottom: .6rem; letter-spacing: 0; }
.footer p { margin: 0; }
.footer a { text-decoration: none; background: linear-gradient(var(--yellow), var(--yellow)) 0 100% / 0 2px no-repeat; transition: background-size .3s, color .2s; }
.footer a:hover { color: var(--white); background-size: 100% 2px; }
.footer__social-list { list-style: none; padding: 0; margin: 0; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .9rem; }
@media (min-width: 640px) { .footer__bottom { margin-top: 3rem; padding-top: 1.5rem; } }

/* 404 */
.nf { padding: 7rem 0; text-align: center; }
.nf__code { font-family: var(--display); font-weight: 800; font-size: clamp(6rem, 20vw, 11rem); line-height: 1; margin: 0; color: var(--yellow); }
.nf h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1rem; }
.nf .btn { margin-top: 1.5rem; }

/* Reveal */
.reveal-on .reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease) var(--rd, 0s), transform .8s var(--ease) var(--rd, 0s); }
.reveal-on .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.nav a { display: inline-flex; align-items: center; gap: .35rem; }
.ico { flex: none; }
