/* Arlind Nazaj Films | arlindnazaj.com
   Light editorial theme: warm white, espresso text, bronze accent. */
:root {
  --bg: #faf7f2;
  --band: #f1ebe0;
  --ink: #211f1c;
  --muted: #7d766b;
  --accent: #a17c52;
  --cream: #f6f1e8;
  --line: rgba(33, 31, 28, .14);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, figure { margin: 0; padding: 0; }
ul { list-style: none; }
[hidden] { display: none !important; }
button, input, textarea { font: inherit; color: inherit; }
em { font-style: italic; color: var(--accent); }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding-inline: var(--pad); }
section { padding-block: clamp(80px, 11vw, 160px); }

h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.02; letter-spacing: -.015em; }
h2 { font-size: clamp(40px, 5.6vw, 80px); margin-bottom: clamp(32px, 4vw, 60px); }
h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.15; }
.label, .eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--accent); }
.label { margin-bottom: 22px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 17px 34px; border: 1px solid currentColor; border-radius: 0;
  font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  cursor: pointer; transition: background .3s, color .3s, border-color .3s;
}
.btn-solid { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn-solid:hover { background: var(--accent); border-color: var(--accent); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn-wide { width: 100%; }

/* Header: light text over the hero, dark text on a light bar once scrolled */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px var(--pad); border-bottom: 1px solid transparent;
  transition: background .4s, padding .4s, border-color .4s, color .4s;
}
.site-header.is-scrolled, .site-header:has(.nav.is-open) { color: var(--ink); }
/* The blurred bar lives on ::before. A backdrop-filter on the header itself would trap
   the full-screen phone menu inside the header box. */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -2; opacity: 0; transition: opacity .4s;
  background: rgba(250, 247, 242, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.site-header.is-scrolled::before { opacity: 1; }
.site-header.is-scrolled { padding-block: 14px; border-color: var(--line); }
section[id] { scroll-margin-top: 64px; }
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand-name { font-family: var(--serif); font-size: 27px; font-style: italic; }
.brand-tag { font-size: 10px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; opacity: .75; }
.nav { display: flex; align-items: center; gap: clamp(22px, 3.2vw, 48px); }
.nav a { position: relative; font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; padding-block: 6px; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover::after { transform: scaleX(1); }
.header-tools { display: flex; align-items: center; gap: 16px; }
.lang { background: none; border: 0; cursor: pointer; font-size: 11px; font-weight: 600; letter-spacing: .16em; padding: 6px 2px; }
.lang span { opacity: .5; }
.lang span.is-active { opacity: 1; }
.lang i { font-style: normal; opacity: .35; margin-inline: 5px; }
.burger { display: none; width: 40px; height: 40px; background: none; border: 0; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 8px; right: 8px; height: 1px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.burger span:first-child { top: 16px; }
.burger span:last-child { top: 24px; }
.burger[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }

/* Hero: words on the left, two overlapping photos of his work on the right */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); align-items: center; gap: clamp(32px, 5vw, 90px);
  min-height: 100svh; max-width: 1440px; margin: 0 auto; padding: 120px var(--pad) 70px; }
.hero-copy > * { animation: rise 1s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
.hero-copy > :nth-child(5) { animation-delay: .34s; }
h1 { font-size: clamp(46px, 5.6vw, 92px); margin-bottom: 26px; }
h1, h2 { text-wrap: balance; }
.hero-lead { max-width: 30em; font-size: clamp(16px, 1.25vw, 18px); color: #4a453e; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-by { display: inline-flex; align-items: center; gap: 14px; margin-top: 44px; }
.hero-by img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: 55% 20%; }
.hero-by span { display: grid; line-height: 1.35; }
.hero-by b { font-family: var(--serif); font-weight: 500; font-size: 20px; }
.hero-by small { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.hero-art { position: relative; width: 100%; max-width: 620px; justify-self: end; aspect-ratio: 1 / 1.08; max-height: calc(100svh - 190px); }
.hero-main { position: absolute; inset: 0 22% 0 0; overflow: hidden; background: var(--band); animation: unveil 1.3s var(--ease) both; }
.hero-side { position: absolute; right: 0; bottom: 8%; width: 44%; aspect-ratio: 4 / 5; overflow: hidden; background: var(--band);
  border: 10px solid var(--bg); animation: rise 1.1s var(--ease) .5s both; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; animation: settle 2.2s var(--ease) both; }
/* slideshow inside the main frame: four photos, 5s each */
.hero-main img { position: absolute; inset: 0; opacity: 0; animation: slide 20s linear infinite; }
.hero-main img:nth-child(1) { animation-delay: -1s; }
.hero-main img:nth-child(2) { animation-delay: 4s; }
.hero-main img:nth-child(3) { animation-delay: 9s; }
.hero-main img:nth-child(4) { animation-delay: 14s; }
@keyframes slide { 0% { opacity: 0; transform: scale(1.06); } 5%, 25% { opacity: 1; } 30%, 100% { opacity: 0; transform: scale(1); } }
.badge { position: absolute; right: 6%; top: 7%; width: 112px; height: 112px; animation: rise 1s var(--ease) .8s both; }
.badge circle { fill: var(--ink); }
.badge text { transform-box: view-box; transform-origin: 50% 50%; animation: spin 26s linear infinite; fill: var(--cream); font-family: var(--sans); font-size: 9.5px; font-weight: 600; letter-spacing: .12em; }
.badge-play { fill: var(--cream); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes unveil { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes settle { from { transform: scale(1.12); } to { transform: scale(1); } }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: clamp(40px, 8vw, 120px); align-items: center; }
.portrait { position: relative; aspect-ratio: 1; }
.portrait::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--accent); opacity: .6; }
.portrait img { position: relative; width: 100%; height: 100%; object-fit: cover; }
.about-copy h2 { margin-bottom: 26px; }
.about-copy p:not(.label) { max-width: 560px; color: #4a453e; margin-bottom: 16px; }

/* Services */
.services { background: var(--band); }
.service-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(30px, 6vw, 100px); }
.service-list li { padding: 32px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 48px 1fr; gap: 6px 10px; }
.service-list span { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--accent); padding-top: 3px; }
.service-list p { grid-column: 2; color: var(--muted); font-size: 15px; max-width: 430px; }

/* Work: masonry gallery */
.filters { display: flex; flex-wrap: wrap; gap: 6px 28px; margin-bottom: 40px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.filters button {
  position: relative; background: none; border: 0; padding: 6px 0; cursor: pointer; color: var(--muted);
  font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; transition: color .25s;
}
.filters button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.filters button:hover, .filters button.is-active { color: var(--ink); }
.filters button.is-active::after { transform: scaleX(1); }
.grid { columns: 3; column-gap: 16px; }
.tile { position: relative; display: block; width: 100%; margin: 0 0 16px; padding: 0; border: 0; background: var(--band); cursor: pointer; overflow: hidden; break-inside: avoid; text-align: left; color: var(--cream); }
.tile img { width: 100%; height: auto; transition: transform 1.2s var(--ease); }
.tile:hover img { transform: scale(1.04); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(20, 18, 16, .7)); opacity: 0; transition: opacity .4s; }
.tile:hover::after, .tile:focus-visible::after { opacity: 1; }
.tile-info { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 18px; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s var(--ease); }
.tile:hover .tile-info, .tile:focus-visible .tile-info { opacity: 1; transform: none; }
.tile-info small { font-size: 10px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.tile-info b { display: block; margin-top: 2px; font-family: var(--serif); font-weight: 400; font-style: italic; font-size: 26px; line-height: 1.15; }
.tile-play { position: absolute; z-index: 2; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(246, 241, 232, .8); display: grid; place-items: center; }
.tile-play::before { content: ""; border-left: 9px solid currentColor; border-block: 6px solid transparent; margin-left: 3px; }
.grid-empty { column-span: all; padding: 70px 0; text-align: center; font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--muted); }
.work-more { text-align: center; margin-top: 48px; }

/* Testimonials */
.reviews { border-top: 1px solid var(--line); }
.review-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(28px, 4vw, 56px); }
.review { padding-top: 26px; border-top: 1px solid var(--accent); }
.review blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(21px, 1.9vw, 26px); line-height: 1.35; }
.review blockquote::before { content: "“"; display: block; height: .55em; font-size: 2.6em; line-height: 1; color: var(--accent); font-style: normal; }
.review figcaption { margin-top: 22px; display: grid; gap: 2px; }
.review b { font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.review small { font-size: 13px; color: var(--muted); }

/* Contact: dark closing section */
.contact { background: var(--ink); color: var(--cream); --line: rgba(246, 241, 232, .16); --muted: #a9a297; }
.contact em, .contact .label { color: #d2b48c; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 120px); align-items: end; }
.contact h2 { margin-bottom: 26px; }
.contact-text { max-width: 440px; opacity: .82; }
.contact-list { border-top: 1px solid var(--line); }
.contact-list li { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.contact-list span { font-size: 10px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.contact-list b { font-weight: 400; text-align: right; }
.contact-list a:hover { color: #d2b48c; }
.contact-cta { margin-top: 36px; }
.contact .btn-solid { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.contact .btn-solid:hover { background: #d2b48c; border-color: #d2b48c; }

/* Footer */
.site-footer { background: var(--ink); color: #a9a297; border-top: 1px solid rgba(246, 241, 232, .16); padding: 30px 0; font-size: 13px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px; }
.footer-row b { color: var(--cream); font-weight: 500; }
.footer-row a:hover { color: var(--cream); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(20, 18, 16, .96); color: var(--cream); display: grid; place-items: center; padding: var(--pad); }
.lightbox-frame { width: min(1200px, 100%); max-height: 88vh; display: grid; place-items: center; }
.lightbox-frame iframe, .lightbox-frame video { width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
.lightbox-frame img { max-height: 80vh; width: auto; }
.lightbox-link { margin-top: 18px; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #d2b48c; }
.lightbox-link:hover { color: var(--cream); }
.lightbox-msg { padding: 60px 30px; text-align: center; font-family: var(--serif); font-size: clamp(22px, 3vw, 32px); }
.lightbox-close { position: absolute; top: 20px; right: 24px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(246, 241, 232, .3); background: none; cursor: pointer; font-size: 15px; }
.lightbox-close:hover { border-color: var(--cream); }

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

/* Responsive */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding: 104px var(--pad) 56px; }
  .hero-art { justify-self: start; max-height: none; max-width: 560px; }
  .about-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 260px; }
  .service-list { grid-template-columns: 1fr; }
  .grid { columns: 2; column-gap: 10px; }
  .tile { margin-bottom: 10px; }
}
@media (max-width: 760px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; gap: 30px;
    background: var(--bg); color: var(--ink); opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav a { font-family: var(--serif); font-size: 36px; letter-spacing: 0; text-transform: none; font-weight: 400; }
  .filters { gap: 4px 20px; }
}
@media (max-width: 520px) {
  .tile-info { display: none; }
}
@media (hover: none) {
  .tile::after, .tile-info { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero-main img:first-child { opacity: 1; }
}

/* Phone refinements */
@media (max-width: 760px) {
  section { padding-block: 64px; }
  .site-header { padding: 16px var(--pad); }
  .site-header.is-scrolled { padding-block: 10px; }
  .brand-name { font-size: 23px; }
  /* phone hero: photos first, then title and buttons, all within the first screen */
  .hero { padding: 64px var(--pad) 48px; gap: 26px; }
  /* one photo, edge to edge, fading through the set */
  .hero-art { order: -1; justify-self: stretch; width: calc(100% + var(--pad) * 2); max-width: none; margin-inline: calc(var(--pad) * -1); aspect-ratio: auto; height: min(118vw, 52svh); max-height: none; }
  .hero-main { inset: 0; }
  .hero-side { display: none; }
  .badge { display: none; }
  h1 { font-size: clamp(34px, 9.6vw, 50px); margin-bottom: 14px; }
  h2 { font-size: clamp(34px, 9vw, 48px); margin-bottom: 28px; }
  .hero-lead { font-size: 15px; }
  .hero-actions { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-actions .btn { padding: 16px 8px; letter-spacing: .16em; }
  .hero-by { margin-top: 26px; }
  .portrait { max-width: 220px; }
  .portrait::before { inset: 12px -12px -12px 12px; }
  .service-list li { grid-template-columns: 34px 1fr; padding: 24px 0; }
  /* filters: one row you swipe sideways instead of four wrapped rows */
  .filters { flex-wrap: nowrap; gap: 0 22px; margin: 0 calc(var(--pad) * -1) 24px; padding: 0 var(--pad) 12px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; scroll-padding-inline: var(--pad); }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { flex: none; padding: 12px 0; white-space: nowrap; scroll-snap-align: start; }
  .grid { column-gap: 8px; }
  .tile { margin-bottom: 8px; }
  .work-more { margin-top: 32px; }
  .contact-grid { gap: 36px; }
  .contact-cta { width: 100%; margin-top: 28px; }
  .contact-list li { padding: 16px 0; }
  .footer-row { flex-direction: column; gap: 6px; }
  .lightbox { padding: 16px; }
  .lightbox-close { top: 12px; right: 12px; }
}
@media (max-width: 380px) {
  .brand-tag { display: none; }
  .btn { padding-inline: 20px; letter-spacing: .16em; }
}
