:root {
  color-scheme: dark;
  --ink: #101112;
  --surface: #171819;
  --line: #343536;
  --paper: #f3f1ed;
  --muted: #b9b9b6;
  --gold: #c7a674;
  --media-border: rgb(255 255 255 / 20%);
  --media-inset: 10px;
  --interaction-duration: .2s;
  --gutter: clamp(18px, 4vw, 72px);
  --spacing: clamp(58px, 8vw, 110px);
  --header-height: 76px;
  --section-nav-height: 0px;
  --anchor-gap: 16px;
  font-family: Arial, Helvetica, sans-serif;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + var(--section-nav-height) + var(--anchor-gap));
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--ink); color: var(--paper); }
body.dialog-open { overflow: hidden; }
img { display: block; max-width: 100%; }
figure, h1, h2, h3, p, blockquote { margin: 0; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; border: 0; cursor: pointer; background: none; padding: 0; }
button[hidden], article[hidden] { display: none; }
:is(a, button, summary):focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
::selection { background: var(--gold); color: var(--ink); }
.wrap { width: min(calc(100% - 2 * var(--gutter)), 1500px); margin-inline: auto; }
.accent { color: var(--gold); }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 10; top: 8px; left: 8px; padding: 12px; background: var(--paper); color: var(--ink); }
.eyebrow { color: var(--muted); font-size: 13px; line-height: 1.5; letter-spacing: .08em; }
h2 { font-size: clamp(34px, 4.3vw, 65px); line-height: .99; letter-spacing: -.045em; }

/* Shared image treatment on every page. Layouts control size/crop, never hover effects. */
.media-frame { position: relative; isolation: isolate; overflow: hidden; border-radius: 0; }
.media-frame::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: var(--media-inset);
  border: 1px solid var(--media-border);
  pointer-events: none;
  transition: border-color var(--interaction-duration) ease;
}
.media-frame:is(:hover, :focus-visible, :focus-within, :active)::after,
.media-card:is(:hover, :focus-visible, :active) .media-frame::after { border-color: var(--gold); }
.media-frame img { transform: none; }
.media-card:is(:hover, :focus-visible) .project-arrow,
.image-link:is(:hover, :focus-visible)::before { border-color: var(--gold); color: var(--gold); }

.site-header {
  min-height: var(--header-height);
  padding-inline: max(var(--gutter), calc((100% - 1500px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: sticky;
  top: 0;
  z-index: 8;
  background: var(--ink);
}
.logo img, footer img { width: 160px; height: auto; }
.site-header nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 44px); font-size: 14px; }
.site-header nav a:hover, .text-link:hover, footer a:hover { color: var(--gold); }
.nav-contact { border: 1px solid #78634b; padding: 12px 16px; white-space: nowrap; }
.nav-contact span, .text-link span { margin-left: 10px; color: var(--gold); }
.menu-toggle { display: none; }

.featured-carousel {
  --slide-width: 86%;
  --slide-gap: clamp(10px, 1.1vw, 16px);
}
.featured-carousel__viewport { overflow-x: auto; scroll-snap-type: x mandatory; }
.featured-carousel[data-ready] .featured-carousel__viewport { overflow: hidden; scroll-snap-type: none; }
.featured-carousel__track { display: flex; margin-inline-start: calc(-1 * var(--slide-gap)); }
.featured-carousel[data-ready] .featured-carousel__track { touch-action: pan-y pinch-zoom; }
.featured-carousel__slide {
  flex: 0 0 var(--slide-width);
  min-width: 0;
  padding-inline-start: var(--slide-gap);
  scroll-snap-align: start;
  scroll-margin-inline-start: calc(-1 * var(--slide-gap));
}
.featured-carousel__card { display: grid; }
.featured-carousel__card:focus-visible { outline-offset: -2px; }
.featured-carousel__image {
  aspect-ratio: 2.12;
  background: var(--surface);
}
.featured-carousel__image img { width: 100%; height: 100%; object-fit: cover; }
.featured-carousel__image img.scenic-ikon-rovinj { object-position: center 22%; }
.featured-carousel__copy { padding: 14px 0 5px; }
.featured-carousel[data-ready] .featured-carousel__slide:not([data-current]) .featured-carousel__copy { opacity: 0; }
.featured-carousel[data-ready] .featured-carousel__copy { transition: opacity var(--interaction-duration) ease; }
.featured-carousel__copy strong {
  display: block;
  font-size: clamp(21px, 2.45vw, 36px);
  line-height: 1.12;
  letter-spacing: -.025em;
}
.featured-carousel__copy p { margin-top: 5px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.featured-carousel__controls:not([hidden]) {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding-block: 8px 14px;
  border-bottom: 1px solid var(--line);
}
.featured-carousel__count {
  margin-inline-end: 8px;
  color: var(--muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.featured-carousel__controls .round-button { font-size: 21px; }
.project-arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgb(255 255 255 / 54%);
  color: var(--paper);
  font-size: 18px;
  flex: none;
}
.hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 2.65fr) minmax(0, 1fr);
  align-items: end;
  gap: 24px;
  padding-block: clamp(25px, 4vw, 52px) clamp(30px, 4vw, 55px);
}
.hero h1 { font-size: clamp(36px, 5.25vw, 78px); font-weight: 700; line-height: .99; letter-spacing: -.055em; }
.hero-description, .section-intro { color: var(--muted); font-size: 16px; line-height: 1.55; max-width: 32ch; }
.hero-detail .text-link { margin-top: 16px; }
.text-link { display: inline-flex; align-items: center; width: fit-content; gap: 5px; border-bottom: 1px solid #78634b; padding-bottom: 7px; font-size: 14px; line-height: 1.5; }
.hero-copy--intro {
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 4vw, 60px);
  padding-block: clamp(18px, 2.5vw, 34px) clamp(20px, 2.5vw, 34px);
}
.hero-copy--intro h1 { max-width: 23ch; font-size: clamp(34px, 4.45vw, 64px); line-height: 1.02; text-wrap: balance; }
.hero-copy--intro .hero-description { max-width: 48ch; }
.hero-copy--intro .hero-actions { margin-top: 6px; }
.hero-copy--intro .text-link { margin-top: 0; min-height: 44px; padding-bottom: 0; }

.client-strip { border-top: 1px solid var(--line); display: flex; align-items: center; gap: clamp(24px, 5vw, 88px); padding-block: 27px 38px; }
.client-names { display: flex; flex: 1; justify-content: space-between; flex-wrap: wrap; gap: 15px 22px; align-items: center; color: #d3d1cc; font-size: clamp(16px, 1.7vw, 24px); letter-spacing: -.02em; }
.client-small { display: block; font-size: 13px; letter-spacing: .06em; margin-top: 3px; }
.client-gold { margin-left: .25em; }
.mill { font-weight: 700; }
.section-space, .work { padding-block: var(--spacing); }
.work { background: var(--surface); border-block: 1px solid var(--line); }
.section-heading, .studio-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 25px; }
.filter { border: 1px solid #494a4a; padding: 8px 15px; font-size: 14px; color: var(--muted); min-height: 40px; }
.filter.active, .filter:hover { border-color: var(--gold); color: var(--paper); }
.filter sup { margin-left: 3px; font-size: 11px; color: var(--gold); }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 14px; }
.project-button { width: 100%; text-align: left; display: block; }
.project-photo { aspect-ratio: 1.65; position: relative; overflow: hidden; background: #222425; }
.project-photo img { width: 100%; height: 100%; object-fit: cover; }
.project-arrow { position: absolute; right: 12px; bottom: 12px; background: rgb(16 17 18 / 78%); }
.project-meta { display: flex; justify-content: space-between; align-items: start; gap: 14px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.project-meta h3 { font-size: clamp(17px, 1.65vw, 25px); line-height: 1.15; }
.project-meta p { margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.project-index { display: none; }
.work-bottom { margin-top: 28px; }

.expertise { padding-block: clamp(28px, 3.7vw, 54px); }
.expertise h2 { font-size: clamp(34px, 3.6vw, 54px); margin-bottom: 16px; }
.expertise-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; gap: clamp(20px, 3.4vw, 52px); }
.expertise-image > .media-frame { display: block; }
.expertise-image img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: var(--surface); }
.expertise-image figcaption { font-size: 13px; line-height: 1.4; color: var(--muted); padding-top: 8px; }
.services details { border-top: 1px solid var(--line); }
.services details:last-of-type { border-bottom: 1px solid var(--line); }
.services summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; font-size: clamp(19px, 1.8vw, 25px); padding-block: 11px; }
.services summary:hover, .services details[open] summary { color: var(--gold); }
.services summary::-webkit-details-marker { display: none; }
.plus::before { content: '+'; color: var(--gold); }
details[open] .plus::before { content: '−'; }
.service-body { padding: 0 22px 11px 0; }
.service-body p, .studio-copy p, .process p, .contact-bottom p, .dialog-intro p { font-size: 16px; line-height: 1.55; color: var(--muted); }
.services > .text-link { margin-top: 12px; }
.studio { background: var(--surface); border-block: 1px solid var(--line); }
.studio-copy { max-width: 52ch; display: grid; gap: 12px; }
.process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin-top: 46px; }
.process > div { border-top: 1px solid var(--line); padding-top: 18px; }
.process span { color: var(--gold); font-size: 13px; }
.process h3 { margin: 10px 0 7px; font-size: 19px; }
.testimonial blockquote { font-size: clamp(25px, 3.5vw, 46px); max-width: 37ch; line-height: 1.18; letter-spacing: -.025em; margin-block: 20px; }
.quote-credit { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.quote-credit p { font-size: 14px; }
.quote-credit p span { display: block; color: var(--muted); margin-top: 4px; }
.gold-line { width: 20px; height: 1px; background: var(--gold); }
.contact { padding-block: clamp(40px, 6vw, 78px); background: var(--surface); border-block: 1px solid var(--line); }
.contact-heading, .contact-bottom { display: flex; justify-content: space-between; align-items: center; gap: 22px; margin-top: 20px; }
.contact-circle, .round-button { display: grid; place-items: center; width: 62px; height: 62px; border: 1px solid #78634b; color: var(--gold); font-size: 28px; flex: none; }
.contact-circle:hover, .round-button:hover { border-color: var(--gold); background: #28231d; }
.contact-bottom { border-top: 1px solid var(--line); padding-top: 20px; flex-wrap: wrap; }
.contact-bottom a:hover { color: var(--gold); }
footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 32px; font-size: 13px; color: var(--muted); line-height: 1.55; }
footer div { display: grid; }
.footer-us-contact { display: grid; font-style: normal; }
.footer-us-contact strong { color: var(--paper); font-size: 14px; }
.footer-us-contact a { display: inline-flex; width: fit-content; min-height: 44px; align-items: center; }
.cookie-footer-button { width: fit-content; min-height: 44px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.cookie-footer-button:hover { color: var(--gold); }
.case-copy .cookie-footer-button { color: var(--gold); text-decoration: underline; text-underline-offset: 4px; }
.cookie-banner {
  position: fixed; z-index: 10; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  width: min(540px, calc(100vw - 32px)); max-height: 90dvh; overflow-y: auto; padding: clamp(16px, 3vw, 24px);
  border: 1px solid var(--line); background: var(--surface); color: var(--paper); box-shadow: 0 8px 40px rgb(0 0 0 / 35%);
}
.cookie-banner h2 { margin: 0 0 8px; font-size: 22px; line-height: 1.15; }
.cookie-banner p { color: var(--muted); font-size: 15px; line-height: 1.5; }
.cookie-banner p a { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
.cookie-options { margin: 14px 0 0; padding: 2px 0 0; border: 0; }
.cookie-options legend { color: var(--muted); font-size: 14px; }
.cookie-options label { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; cursor: pointer; }
.cookie-options input { width: 18px; height: 18px; margin: 0; accent-color: var(--gold); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cookie-actions button { min-height: 44px; padding: 6px 12px; border: 1px solid var(--gold); background: transparent; color: var(--paper); font: inherit; font-size: 14px; cursor: pointer; }
.cookie-actions button:hover { background: #28231d; }
.cookie-banner [hidden], .cookie-banner[hidden], .cookie-footer-button[hidden] { display: none; }
.back-top { color: var(--gold); font-size: 21px; }
dialog { width: min(1100px, calc(100% - 32px)); max-height: 90dvh; padding: clamp(16px, 4vw, 42px); border: 1px solid var(--line); background: var(--surface); color: var(--paper); }
dialog::backdrop { background: rgb(9 10 11 / 90%); }
.dialog-top { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 24px; }
.round-button { width: 44px; height: 44px; }
.dialog-intro { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 22px; }
.dialog-intro h2 { font-size: clamp(28px, 4vw, 48px); margin-block: 10px; }
.dialog-links { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-block: 24px; }
.dialog-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dialog-gallery img { width: 100%; height: auto; }
.dialog-gallery > :first-child { grid-column: 1 / -1; }

@media (max-width: 1000px) {
  .site-header nav { gap: clamp(12px, 2vw, 22px); }
  .hero-copy:not(.hero-copy--intro) { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .hero-break { display: none; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  :root { --header-height: 64px; }
  .site-header { gap: 16px; }
  .logo img { width: 134px; }
  .menu-toggle { display: block; min-height: 44px; padding-block: 12px; font-size: 14px; }
  .menu-toggle span { margin-left: 6px; color: var(--gold); }
  .site-header nav { display: none; position: absolute; inset: 100% var(--gutter) auto; max-height: calc(100dvh - var(--header-height)); overflow-y: auto; padding: 16px; background: var(--surface); border: 1px solid var(--line); }
  .site-header nav.open { display: grid; gap: 0; }
  .site-header nav a { padding: 12px; }
  .nav-contact { margin-top: 8px; }
}
@media (max-width: 700px) {
  :root { --media-inset: 6px; }
  .featured-carousel { --slide-width: 88%; }
  .featured-carousel__image { aspect-ratio: 16 / 9; }
  .featured-carousel__image img.scenic-ikon-rovinj { object-position: center top; }
  .hero-copy, .expertise-layout, .dialog-intro, .dialog-gallery { grid-template-columns: 1fr; }
  .hero-copy { gap: 14px; }
  .hero h1 { font-size: clamp(33px, 8vw, 48px); }
  .hero-copy--intro h1 { font-size: clamp(31px, 7.5vw, 46px); }
  .client-strip, .section-heading, .studio-heading { align-items: start; flex-direction: column; gap: 16px; }
  .client-names { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .process { grid-template-columns: 1fr 1fr; }
  footer { display: grid; grid-template-columns: 1fr 1fr; }
  footer img { width: 125px; }
  .back-top { justify-self: end; }
  .footer-us-contact + .back-top { grid-column: 2; }
}
@media (max-width: 460px) {
  .project-grid { grid-template-columns: 1fr; }
  .filter { padding-inline: 10px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
