:root {
  --bg: #fff;
  --soft: #f5f5f4;
  --fg: #111;
  --mute: #666;
  --line: #e5e5e5;
  --wrap: 1280px;
  --pad: clamp(16px, 4vw, 40px);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
/* anchored sections land below the sticky header instead of under it */
[id] { scroll-margin-top: 92px; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 17px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(30px, 4.2vw, 48px); }
h2 { font-size: clamp(22px, 2.4vw, 30px); }
p { margin: 0 0 1em; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -9999px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; }

/* top bar: attendees looking for their event photos */
.topbar { background: var(--fg); color: #fff; font-size: 14px; }
.topbar-in { display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 38px; }
.topbar-q { color: rgba(255,255,255,.65); }
.topbar a { color: #fff; text-decoration: none; }
.topbar a strong { font-weight: 600; }
.topbar a span { display: inline-block; transition: transform 200ms var(--ease-out); }

/* header */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.hdr.scrolled { border-bottom-color: var(--line); }
.hdr-in { display: flex; align-items: center; height: 76px; }
.logo { text-decoration: none; line-height: 1.1; }
.logo strong { display: block; font-size: 21px; letter-spacing: -.02em; }
.logo span { font-size: 14px; color: var(--mute); }
.nav { display: flex; gap: 32px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--mute); padding: 6px 0; border-bottom: 2px solid transparent; transition: color 150ms ease; }
.nav a[aria-current] { color: var(--fg); }
.nav a[aria-current] { border-bottom-color: var(--fg); }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; -webkit-tap-highlight-color: transparent; }
.menu-btn i { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--fg); transition: transform 200ms var(--ease-out); }
.menu-btn i:first-child { top: 17px; } .menu-btn i:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] i:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i:last-child { transform: translateY(-4px) rotate(-45deg); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 6px; border: 1px solid var(--fg); background: var(--fg); color: #fff; font: 600 15px/1 var(--font); text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 160ms var(--ease-out); }
/* press feedback: the button visibly "hears" the tap */
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: .55; cursor: progress; transform: none; }
.btn-line { background: transparent; color: var(--fg); }

/* hero: text left (where the eye lands first), photo right in its own 3:2 frame — never cropped */
.hero { display: grid; grid-template-columns: 7fr 4fr; gap: clamp(28px, 4vw, 64px); align-items: center; padding-top: clamp(28px, 4vw, 56px); padding-bottom: clamp(40px, 5vw, 72px); }
.hero h1 { font-size: clamp(34px, 4.4vw, 58px); line-height: 1.05; letter-spacing: -.03em; margin-bottom: 20px; }
.hero-sub { font-size: clamp(17px, 1.4vw, 19px); color: #444; max-width: 520px; margin-bottom: 28px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin: 18px 0 0; font-size: 15px; color: var(--mute); }
.hero-note a { color: var(--fg); font-weight: 600; text-decoration: none; white-space: nowrap; }
/* portrait at its own ratio: limited by height so the whole first screen fits, never cropped */
.hero-portrait { margin: 0; display: flex; justify-content: flex-end; }
.hero-portrait img { width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 150px); border-radius: 4px; }
/* client logos: one calm monochrome grid with every client; phones show 12 and a button reveals the rest */
.clients { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 36px 0 32px; }
.label { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); margin: 0 0 16px; text-align: center; }
/* flex (not grid) so an unfinished last row sits centred */
.logos { --cols: 8; --gap: 16px; list-style: none; margin: 0 auto; padding: 0; max-width: 1120px; display: flex; flex-wrap: wrap; justify-content: center; column-gap: var(--gap); }
.logos li { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); display: flex; align-items: center; justify-content: center; height: 72px; }
.logos img { max-width: 100%; height: auto; opacity: .7; transition: opacity 200ms ease; }
.logos img.sil { filter: brightness(0); }
.logos img.gray { filter: grayscale(1) contrast(1.25); mix-blend-mode: multiply; }
.more-logos { display: none; margin: 16px auto 0; align-items: center; gap: 8px; font: 600 15px/1 var(--font); color: var(--fg);
  background: none; padding: 12px 18px; border: 1px solid var(--line); border-radius: 99px; cursor: pointer;
  transition: border-color 150ms ease, transform 160ms var(--ease-out); -webkit-tap-highlight-color: transparent; }
.more-logos span { font-weight: 500; color: var(--mute); }
.more-logos:active { transform: scale(0.97); }
.clients.all .logos li { display: flex; }
.clients.all .more-logos { display: none; }
.clients.all .logos li.revealed { animation: logo-in 260ms var(--ease-out) both; }
@keyframes logo-in { from { opacity: 0; transform: translateY(4px); } }

/* live gallery */
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); margin-bottom: 10px; }
/* photo and text side by side; the photo never dominates the block */
.live { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.live-top { grid-template-columns: 6fr 5fr; padding-bottom: 32px; }
.live-top .lead { margin-bottom: 0; }
.live-img { margin: 0; }
.live-img img, .wide-img img, .shots img { width: 100%; height: auto; border-radius: 4px; }
.live p { color: #333; }
.live-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 24px; }
.wide-img { margin: 8px 0 0; }
.how { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.how li { counter-increment: s; border-top: 2px solid var(--fg); padding-top: 16px; }
.how li::before { content: counter(s, decimal-leading-zero); display: block; font-size: 14px; font-weight: 600; color: var(--mute); margin-bottom: 6px; }
.how strong { font-size: 18px; }
.how p { margin: 6px 0 0; color: #444; }
.feat { list-style: none; margin: 24px 0 32px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feat li { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 20px; display: grid; gap: 6px; }
.feat strong { font-size: 16px; }
.feat span { color: #555; font-size: 15px; }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.shots figure { margin: 0; }

/* button sizes */
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 16px; }
.hdr-cta { margin-left: 16px; }
.lang { margin-left: 28px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--mute); padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; transition: color 150ms ease, border-color 150ms ease; }
.link { font-weight: 600; text-decoration: none; }

/* sections */
.sec { padding-top: 48px; padding-bottom: 72px; }
.page-top { padding-top: 48px; }
.sec-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.sec-hd h2 { margin: 0; }
.sec-hd a { font-weight: 500; text-decoration: none; color: var(--mute); }

.lead { font-size: 19px; color: #444; max-width: 760px; margin-bottom: 32px; }
.narrow { max-width: 860px; }
.crumbs { font-size: 14px; color: var(--mute); margin-bottom: 8px; }
.crumbs a { text-decoration: none; }

.sec-soft { background: var(--soft); }

/* services grid (home) */
.srv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.srv-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 24px; text-decoration: none; transition: border-color 150ms ease, box-shadow 150ms ease; }

.srv-card p:last-child { margin-bottom: 0; }
.srv-note { margin: 24px 0 0; color: #444; }
.srv-note a { font-weight: 600; }
.srv-card h3 { font-size: 18px; margin: 0 0 6px; }
.srv-card p { color: #555; margin: 0 0 14px; font-size: 15px; }
.srv-card span { font-size: 14px; font-weight: 600; }

/* about (home) */
.about { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.about-img { margin: 0; }
.about-img img { width: 100%; border-radius: 4px; }
.about-img figcaption { font-size: 13px; color: var(--mute); margin-top: 8px; }
.about p { color: #333; }

/* contact (home) */
.contact-home { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(24px, 3vw, 48px); align-items: start; }
.contact-home p { color: #333; }
.contact-home .form-box { margin-top: 0; background: #fff; }

/* category cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { text-decoration: none; display: block; }
.card-img { display: block; border-radius: 4px; overflow: hidden; }
.card-img img { width: 100%; height: auto; }

.card-txt { display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; }
.card-txt strong { font-size: 17px; }
.card-txt span { font-size: 14px; color: var(--mute); }

/* category tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tabs a { text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 14px; border: 1px solid var(--line); border-radius: 99px; color: #333; }

.tabs a[aria-current] { background: var(--fg); border-color: var(--fg); color: #fff; }

/* justified gallery: rows scale to fill width (flex-grow by aspect ratio) */
.gallery { display: flex; flex-wrap: wrap; gap: 8px; }
.gallery::after { content: ""; flex-grow: 999; }
.g-item { --h: 260px; flex: calc(var(--r) * 100) 1 calc(var(--r) * var(--h)); position: relative; display: block; cursor: zoom-in; }
.g-item img { width: 100%; height: auto; }

/* services */
.srv { list-style: none; margin: 0 0 32px; padding: 0; border-top: 1px solid var(--line); }
.srv li { display: grid; grid-template-columns: 300px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.srv h2 { font-size: 19px; margin: 0; }
.srv p { margin: 0; color: #444; }

/* split pages (about, contacts) */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.split-img { margin: 0; position: sticky; top: 100px; }
.split-img img { width: 100%; border-radius: 4px; }
.split-img figcaption { font-size: 13px; color: var(--mute); margin-top: 8px; }
.split h2 { font-size: 20px; margin-top: 32px; }
.split p { color: #333; }
.split-contact { grid-template-columns: 4fr 7fr; }
.contacts { margin: 24px 0 8px; border-top: 1px solid var(--line); }
.contacts div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contacts dt { color: var(--mute); font-size: 15px; }
.contacts dd { margin: 0; font-weight: 600; }
.contacts a { text-decoration: none; }

/* form */
.form-box { margin-top: 40px; padding: 28px; background: var(--soft); border-radius: 8px; }
.form-box h2 { margin-top: 0; }
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.form input, .form textarea { font: 400 16px/1.4 var(--font); padding: 12px 14px; border: 1px solid #d4d4d4; border-radius: 6px; background: #fff; color: var(--fg); width: 100%; transition: border-color 150ms ease, box-shadow 150ms ease; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--fg); box-shadow: 0 0 0 3px rgba(0,0,0,.08); }
.form .btn { justify-self: start; min-width: 160px; }
.form .hp { position: absolute; left: -9999px; }
.form-msg { margin: 0; font-weight: 500; }
.form-msg.ok { color: #157a3c; } .form-msg.err { color: #b42318; }

/* contact strip */
.cta { background: var(--soft); }
.cta-in { display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; padding-top: 56px; padding-bottom: 56px; }
.cta h2 { margin: 0 0 6px; }
.cta p { margin: 0; color: #444; }
.cta-btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* footer */
.ftr { border-top: 1px solid var(--line); font-size: 15px; color: #444; }
.ftr-in { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 40px; padding-bottom: 40px; }
.ftr strong { color: var(--fg); }
.ftr a { text-decoration: none; }
.ftr-copy { grid-column: 1 / -1; font-size: 13px; color: var(--mute); }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(10,10,10,.96); display: flex; align-items: center; justify-content: center; }
.lb[hidden] { display: none; }
.lb img { max-width: calc(100vw - 140px); max-height: calc(100vh - 110px); object-fit: contain; user-select: none; }
.lb button { position: absolute; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }

.lb .lb-x { top: 16px; right: 16px; }
.lb .lb-p { left: 16px; top: 50%; margin-top: -24px; }
.lb .lb-n { right: 16px; top: 50%; margin-top: -24px; }
.lb-c { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.7); font-size: 14px; }

@media (max-width: 1024px) {
  .logos { --cols: 5; }
  .logos li:nth-child(n+16) { display: none; }
  .more-logos { display: flex; }
  .feat { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .contact-home { grid-template-columns: 1fr; }
  .srv-grid { grid-template-columns: repeat(2, 1fr); }
  .g-item { --h: 200px; }
}
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px var(--pad) 16px; }
  .nav.open { display: flex; opacity: 1; transform: none; transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
  @starting-style { .nav.open { opacity: 0; transform: translateY(-6px); } }
  .nav a { font-size: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--fg); }
  .nav a[aria-current] { border-bottom-color: var(--line); font-weight: 700; }
  .split, .split-contact { grid-template-columns: 1fr; gap: 24px; }
  .split-img { position: static; }
  .split-contact .split-img { max-width: 360px; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .srv li { grid-template-columns: 1fr; gap: 6px; }
  .hero { grid-template-columns: 1fr; gap: 20px; padding-top: 16px; }
  .hero-portrait { justify-content: flex-start; }
  .hero-portrait img { max-height: 420px; }
  .hero h1 { margin-bottom: 12px; }
  .hero-sub { margin-bottom: 20px; }
  .about, .live { grid-template-columns: 1fr; }
  .how { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr 1fr; }
  .topbar-q { display: none; }
  .lang { margin-left: auto; }
  .hdr-cta { margin-left: 8px; margin-right: 4px; }
  .lb img { max-width: 100vw; max-height: calc(100vh - 140px); }
  .lb .lb-p, .lb .lb-n { top: auto; bottom: 56px; margin: 0; }
}
@media (max-width: 560px) {
  .feat, .shots { grid-template-columns: 1fr; }
  /* phones: 12 logos in a 3 × 4 grid – the rest are in the list */
  .logos { --cols: 3; --gap: 12px; }
  .logos li { height: 60px; }
  .logos li:nth-child(n+13) { display: none; }
  .clients.all .logos li { display: flex; }
  .logos img { max-width: 86%; max-height: 30px; object-fit: contain; }   /* box reserved before load, never distorted */
  .logos img.tall { max-height: 38px; }   /* squares and crests need a little more height to read */
  .clients { padding: 28px 0 24px; }
  .contact-home, .srv-grid { grid-template-columns: 1fr; }
  .hero-btns .btn { flex: 1 1 auto; padding: 0 18px; }
  .g-item { --h: 100px; }
  .form .row { grid-template-columns: 1fr; }
  .ftr-in { grid-template-columns: 1fr; }
  .card-txt strong { font-size: 15px; }
  .contacts div { grid-template-columns: 1fr; gap: 2px; }
}
/* hover only where a real pointer hovers: taps on phones would leave "stuck" hover states */
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { color: var(--fg); }
  .btn:hover { background: #333; border-color: #333; }
  .btn-line:hover { background: var(--fg); border-color: var(--fg); color: #fff; }
  .link:hover, .crumbs a:hover, .contacts a:hover, .ftr a:hover { text-decoration: underline; }
  .sec-hd a:hover { color: var(--fg); }
  a.srv-card:hover { border-color: var(--fg); box-shadow: 0 8px 24px rgba(0,0,0,.06); }
  .card:hover .card-txt strong { text-decoration: underline; }
  .tabs a:hover { border-color: var(--fg); }
  .lang:hover { color: var(--fg); border-color: var(--fg); }
  .lb button:hover { background: rgba(255,255,255,.25); }
  .logos li:hover img { opacity: .9; }
  .more-logos:hover { border-color: var(--fg); }
  .topbar a:hover span { transform: translateX(3px); }
}
/* reduced motion: keep colour/opacity feedback, drop movement */
@media (prefers-reduced-motion: reduce) {
  .clients.all .logos li.revealed { animation: none; }
  .more-logos:active { transform: none; }
  .btn:active { transform: none; }
  .nav.open { transform: none; transition: opacity 150ms ease; }
  .menu-btn i { transition: none; }
}
