:root {
  --bg: #0e0d0b;
  --bg-2: #171512;
  --ink: #efe9df;
  --mute: #9b9488;
  --line: rgba(239, 233, 223, .14);
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Inter Tight', system-ui, sans-serif;
  --gut: clamp(16px, 4vw, 56px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.05; overflow-wrap: break-word; }
.wrap { padding: 0 var(--gut); max-width: 1600px; margin: 0 auto; }

/* header */
.top { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px var(--gut); transition: background .3s; }
.top::before { content: ''; position: absolute; inset: 0 0 -40px; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0)); transition: opacity .3s; }
.top.solid::before { opacity: 0; }
.top.solid { background: rgba(14, 13, 11, .92); backdrop-filter: blur(10px); }
.mark { display: block; line-height: 0; }
.mark img { height: 30px; width: auto; }
#nav { display: flex; gap: 26px; align-items: center; font-size: 14px; }
#nav a { color: var(--ink); opacity: .78; transition: opacity .2s; }
#nav a:hover, #nav a[aria-current] { opacity: 1; }
#nav .nav-cta { opacity: 1; border: 1px solid var(--ink); padding: 7px 16px; border-radius: 999px; }
#nav .nav-cta:hover { background: var(--ink); color: var(--bg); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--ink); font: 500 13px var(--sans); padding: 8px 14px; border-radius: 999px; cursor: pointer; }

/* hero */
.hero { position: relative; height: 100svh; min-height: 520px; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.hero-slide.on { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 7s linear; }
.hero-slide.on img { transform: scale(1); }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 55%, rgba(0,0,0,.65) 100%); }
.hero-text { position: absolute; z-index: 2; left: var(--gut); right: var(--gut); bottom: clamp(32px, 7vh, 80px); }
.hero h1 { font-size: clamp(52px, 10vw, 168px); letter-spacing: -.02em; }
.hero h1 em { display: block; font-style: italic; color: var(--ink); opacity: .8; font-size: .55em; margin-top: .08em; }
.hero-text p { margin-top: 18px; max-width: 34ch; color: rgba(239, 233, 223, .85); font-size: 17px; }

/* sections */
section { margin-top: clamp(80px, 12vw, 160px); }
.hero, .s-hero { margin-top: 0; }
.intro { display: grid; gap: 28px; justify-items: start; }
.big { font-family: var(--serif); font-size: clamp(28px, 3.6vw, 54px); line-height: 1.15; max-width: 24ch; }
.link { border-bottom: 1px solid var(--ink); padding-bottom: 2px; font-size: 15px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 18px; margin-bottom: 36px; }
.sec-head h2 { font-size: clamp(36px, 5vw, 72px); }

/* series cards */
.s-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.s-card { display: block; }
.s-img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-2); }
.s-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.s-card:hover .s-img img { transform: scale(1.04); }
.s-meta { display: flex; align-items: baseline; gap: 14px; padding-top: 14px; }
.s-meta h3 { font-size: clamp(22px, 2vw, 30px); flex: 1; min-width: 0; }
.s-num, .s-count { color: var(--mute); font-size: 13px; font-variant-numeric: tabular-nums; }

/* masonry */
.masonry { columns: 3 320px; column-gap: clamp(10px, 1.4vw, 20px); }
.g-item { display: block; break-inside: avoid; margin-bottom: clamp(10px, 1.4vw, 20px); background: var(--bg-2); cursor: zoom-in; overflow: hidden; }
.g-item img { width: 100%; transition: opacity .3s, transform .9s cubic-bezier(.2, .7, .2, 1); }
.g-item:hover img { transform: scale(1.02); }

/* services */
.services { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.services li { padding: 28px 28px 32px 0; border-bottom: 1px solid var(--line); }
.services h3 { font-size: 28px; margin-bottom: 10px; }
.services p { color: var(--mute); max-width: 34ch; }

/* about */
.about { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 90px); align-items: center; }
.about h2 { font-size: clamp(36px, 5vw, 72px); margin-bottom: 24px; }
.about p { color: #cfc8bc; max-width: 52ch; font-size: 17px; }
.about p + p { margin-top: 16px; }

/* contact */
.contact { text-align: center; padding-bottom: 40px; }
.contact h2 { font-size: clamp(44px, 8vw, 128px); letter-spacing: -.01em; }
.contact > p { color: var(--mute); margin: 18px auto 40px; max-width: 46ch; }
.contact-links, .foot-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.contact-links a { border: 1px solid var(--line); border-radius: 999px; padding: 14px 24px; transition: background .2s, color .2s; }
.contact-links a span { color: var(--mute); margin-left: 6px; }
.contact-links a:hover { background: var(--ink); color: var(--bg); }
.contact-links a:hover span { color: var(--bg); opacity: .6; }

/* footer */
.foot { margin-top: clamp(80px, 10vw, 140px); border-top: 1px solid var(--line); padding: 40px var(--gut) 32px; display: grid; gap: 20px; justify-items: center; text-align: center; }
.foot-mark { width: clamp(240px, 40vw, 560px); height: auto; opacity: .92; }
.foot-links a { font-size: 14px; opacity: .75; }
.foot-links a span { display: none; }
.foot-links a:hover { opacity: 1; }
.foot-small { color: var(--mute); font-size: 13px; }
.foot-credit { color: var(--mute); font-size: 13px; margin-top: -12px; }
.foot-credit a { color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 1px; transition: border-color .2s; }
.foot-credit a:hover { border-color: var(--ink); }

/* series page */
.s-hero { height: 78svh; min-height: 420px; overflow: hidden; }
.s-hero img { width: 100%; height: 100%; object-fit: cover; }
.s-intro { margin-top: clamp(48px, 7vw, 100px); margin-bottom: clamp(40px, 5vw, 70px); display: grid; grid-template-columns: 1fr 2fr; gap: 12px 40px; align-items: end; }
.s-intro .s-num { grid-column: 1 / -1; }
.s-intro h1 { font-size: clamp(48px, 8vw, 128px); }
.s-intro p { color: #cfc8bc; font-size: 18px; max-width: 46ch; }
.s-intro + section { margin-top: 0; }
.next a { display: grid; gap: 6px; border-top: 1px solid var(--line); padding-top: 24px; }
.next span { color: var(--mute); font-size: 14px; }
.next strong { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 7vw, 110px); line-height: 1; transition: opacity .2s; }
.next a:hover strong { opacity: .7; }

.all-series { margin-top: clamp(60px, 8vw, 110px); }
.all-series h2 { font-family: var(--sans); font-size: 14px; color: var(--mute); margin-bottom: 14px; }
.all-series ul { list-style: none; columns: 2 320px; column-gap: 40px; border-top: 1px solid var(--line); }
.all-series li { break-inside: avoid; border-bottom: 1px solid var(--line); }
.all-series a { display: flex; align-items: baseline; gap: 16px; padding: 14px 0; font-family: var(--serif); font-size: clamp(22px, 2.2vw, 32px); transition: opacity .2s, padding .3s; }
.all-series a span, .all-series a em { font-family: var(--sans); font-style: normal; font-size: 13px; color: var(--mute); font-variant-numeric: tabular-nums; }
.all-series a em { margin-left: auto; }
.all-series a:hover { padding-left: 10px; }
.all-series a[aria-current] { opacity: .4; }

/* floating WhatsApp button, every page */
.wa-float { position: fixed; right: var(--gut); bottom: 24px; z-index: 60; display: flex; align-items: center; gap: 0; height: 58px; padding: 0 17px; border-radius: 999px; background: #25d366; color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: gap .35s cubic-bezier(.2, .7, .2, 1), padding .35s cubic-bezier(.2, .7, .2, 1), transform .25s; }
.wa-float svg { width: 24px; height: 24px; flex: none; }
.wa-float span { max-width: 0; overflow: hidden; white-space: nowrap; font: 500 15px var(--sans); transition: max-width .35s cubic-bezier(.2, .7, .2, 1); }
.wa-float:hover { gap: 10px; padding: 0 22px 0 18px; }
.wa-float:hover span { max-width: 100px; }
.wa-float:active { transform: scale(.96); }
.wa-float:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (max-width: 760px) { .wa-float { bottom: 16px; height: 54px; padding: 0 15px; } }
@media print { .wa-float { display: none; } }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(8, 7, 6, .97); display: flex; align-items: center; justify-content: center; }
.lb[hidden] { display: none; }
.lb img { max-width: calc(100vw - 160px); max-height: calc(100svh - 120px); width: auto; height: auto; object-fit: contain; }
.lb button { position: absolute; background: none; border: 0; color: var(--ink); font: 500 14px var(--sans); cursor: pointer; padding: 16px; opacity: .8; }
.lb button:hover { opacity: 1; }
.lb-close { top: 10px; right: calc(var(--gut) - 16px); }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); font-size: 26px !important; }
.lb-prev { left: calc(var(--gut) - 16px); }
.lb-next { right: calc(var(--gut) - 16px); }
.lb-count { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: var(--mute); font-size: 13px; font-variant-numeric: tabular-nums; }

/* reveal */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.rv.in { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .s-grid, .services { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .top.solid { backdrop-filter: none; background: rgba(14, 13, 11, .96); }
  #nav { position: fixed; top: 0; left: 0; width: 100vw; height: 100svh; background: var(--bg); flex-direction: column; justify-content: center; gap: 22px; font-size: 22px; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s; z-index: -1; }
  #nav.open { opacity: 1; visibility: visible; }
  #nav a { opacity: 1; }
  .s-grid, .services { grid-template-columns: 1fr; }
  .services li { padding-right: 0; }
  .about, .s-intro { grid-template-columns: 1fr; }
  .masonry { columns: 2 140px; }
  .lb img { max-width: 100vw; max-height: calc(100svh - 140px); }
  .lb-prev, .lb-next { top: auto; bottom: 6px; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .rv { opacity: 1; transform: none; }
}
