.site-header.hero-header {
  gap: clamp(10px, 1.25vw, 20px);
}

.hero-header #site-nav {
  gap: clamp(4px, .8vw, 14px);
  margin-inline-start: auto;
}

.hero-copy h1 .hero-credit {
  margin-block-end: clamp(8px, 1.15vw, 16px);
  font-size: clamp(.75rem, .88vw, .9375rem);
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: .025em;
  white-space: normal;
}

.site-preferences {
  --preference-background: #f9fbff75;
  --preference-panel: #f7f9ff;
  --preference-line: #08102c23;
  --preference-hover: #08102c0c;
  --preference-active: #08102c;
  --preference-active-ink: #fff;
  --preference-shadow: #08102c24;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
}

.site-preference-disclosure {
  position: relative;
}

:root:not([data-site-theme]) .site-theme-menu {
  display: none;
}

.site-preference-trigger,
.site-preference-panel > :is(button, a) {
  display: flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  color: inherit;
  font: 650 .8125rem/1.2 var(--font-reading);
  white-space: nowrap;
  text-decoration: none;
}

.site-preference-trigger {
  justify-content: center;
  gap: 6px;
  padding-inline: 9px;
  border: 1px solid var(--preference-line);
  border-radius: 10px;
  background: var(--preference-background);
  list-style: none;
}

.site-preference-trigger::-webkit-details-marker {
  display: none;
}

.site-preference-trigger > .icon {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
}

.site-preference-disclosure[open] > .site-preference-trigger {
  border-color: var(--preference-active);
  background: var(--preference-hover);
}

.site-preference-disclosure[open] > .site-preference-trigger > .icon {
  transform: rotate(180deg);
}

.site-preference-panel {
  position: absolute;
  z-index: 1;
  inset-block-start: calc(100% + 10px);
  inset-inline-end: 0;
  display: grid;
  gap: 2px;
  min-inline-size: 146px;
  max-block-size: calc(100dvh - var(--header-offset) - 8px);
  padding: 4px;
  overflow: auto;
  border: 1px solid var(--preference-line);
  border-radius: 13px;
  background: var(--preference-panel);
  box-shadow: 0 10px 28px var(--preference-shadow);
}

.site-preference-panel > :is(button, a) {
  justify-content: space-between;
  gap: 14px;
  padding-inline: 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

@media (hover: hover) {
  .site-preference-trigger:hover,
  .site-preference-panel > :is(button, a):not([aria-pressed="true"], [aria-current="page"]):hover {
    background: var(--preference-hover);
    text-decoration: none;
  }
}

.site-preference-panel > :is([aria-pressed="true"], [aria-current="page"]) {
  background: var(--preference-active);
  color: var(--preference-active-ink);
}

.site-preference-panel > :is([aria-pressed="true"], [aria-current="page"])::after {
  content: '';
  width: 6px;
  height: 10px;
  margin-inline-end: 2px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.site-preferences :is(summary, button, a):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -3px;
}

.site-preference-panel > :is([aria-pressed="true"], [aria-current="page"]):focus-visible {
  outline-color: var(--preference-active-ink);
}

@media (forced-colors: active) {
  .site-preference-panel > :is([aria-pressed="true"], [aria-current="page"]) {
    border: 1px solid currentColor;
  }
}

@media (min-width: 1001px) and (max-width: 1279px) {
  .hero-header #site-nav a { padding-inline: 5px; }
}

@media (min-width: 761px) and (max-width: 1279px) {
  .hero-header .header-contact a[href^="tel:"] { display: none; }
  .hero-header .menu-toggle { flex-shrink: 0; }
}

@media (max-width: 1000px) {
  .hero-header #site-nav {
    gap: 3px;
    max-height: calc(100dvh - var(--header-offset));
  }
}

@media (max-width: 760px) {
  :root { --header-offset: 80px; }
  .site-header.hero-header,
  .site-header.hero-header[data-scrolled="true"] {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 5px;
  }
  .hero-header .menu-toggle,
  .hero-header[data-scrolled="true"] .menu-toggle {
    width: auto;
    min-width: 44px;
    padding-inline: 4px;
    white-space: nowrap;
  }
  .hero-header .header-contact a[href^="mailto:"] {
    display: block;
    line-height: 44px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .site-preference-trigger {
    gap: 4px;
    padding-inline: 6px;
    font-size: .75rem;
  }

  .site-preferences { gap: 4px; }
}

@media (max-width: 470px) {
  .hero-header .header-contact { display: none; }
}

@media (max-width: 355px) {
  .hero-header .menu-toggle,
  .hero-header[data-scrolled="true"] .menu-toggle {
    gap: 0;
    font-size: 0;
  }
}

@media (max-width: 410px) {
  :root:lang(de) #hero-title {
    font-size: clamp(1.5rem, calc(9vw - .3rem), 2rem);
  }

  :root:lang(de) #hero-title span {
    white-space: normal;
  }
}

@media screen {
  :root[data-site-theme="dark"] {
    color-scheme: dark;
    --paper: #101724;
    --ink: #eef3fb;
    --muted: #b7c3d6;
    --surface: #192537;
    --surface-cool: #1e2d44;
    --v6-panel: #1e2d44;
    --v6-ice: #21314a;
    --control: #2d405d;
    --line: #465b78;
    --focus: #f4cc82;
    --theme-card: #202e44;
    --theme-hover: #2c405e;
    --theme-selected: #30486e;
    --theme-signal: #f4cc82;
    --theme-blush: #312738;
    --theme-amber: #352e23;
    --theme-header: linear-gradient(115deg, #202e44fa, #142033f7);
    --theme-header-hover: #ffffff15;
    --theme-header-edge: #b8d4ff32;
    --theme-shadow: #0005;
    --theme-contact: #771c2c;
    --theme-footer: #192436;
    --theme-footer-ink: #eef3fb;
    --theme-plate: #f1f3f8;
    scrollbar-color: #be9c62 var(--paper);
  }

  :root[data-site-theme="vivid"] {
    --paper: #fff8ee;
    --ink: #131a3a;
    --muted: #455178;
    --surface: #ffedc5;
    --surface-cool: #d9e7ff;
    --v6-panel: #dce8ff;
    --v6-ice: #d9e7ff;
    --control: #d0ddff;
    --line: #a9bde7;
    --focus: #2347b2;
    --theme-card: #fff7e9;
    --theme-hover: #e9dcff;
    --theme-selected: #183cb2;
    --theme-signal: #233eae;
    --theme-blush: #ffdcd6;
    --theme-amber: #f7dfa0;
    --theme-header: linear-gradient(115deg, #fff0c9fa, #fff8edfa 46%, #dbe7fffa);
    --theme-header-hover: #2140a516;
    --theme-header-edge: #fff;
    --theme-shadow: #15215d26;
    --theme-contact: #b30026;
    --theme-footer: #f0cc72;
    --theme-footer-ink: #161c3c;
    scrollbar-color: #284dc8 #f4dfb1;
  }

  :root[data-site-theme="dark"] .site-preferences {
    --preference-background: #0b142870;
    --preference-panel: #192537;
    --preference-line: #c7d7ff36;
    --preference-hover: #ffffff16;
    --preference-active: #f1cf93;
    --preference-active-ink: #172139;
    --preference-shadow: #0005;
  }

  :root[data-site-theme="vivid"] .site-preferences {
    --preference-background: #fff9;
    --preference-panel: #fffbf2;
    --preference-line: #2140a530;
    --preference-hover: #d9e7ff;
    --preference-active: #183cb2;
    --preference-active-ink: #fff;
  }

  :root:is([data-site-theme="dark"], [data-site-theme="vivid"]) :is(.hero-header, .hero-header[data-scrolled="true"]) {
    background: var(--theme-header);
    box-shadow: 0 8px 26px var(--theme-shadow), inset 0 0 0 1px var(--theme-header-edge);
  }

  :root:is([data-site-theme="dark"], [data-site-theme="vivid"]) .hero-header :is(.header-contact a, .menu-toggle) {
    color: var(--ink);
  }

  :root:is([data-site-theme="dark"], [data-site-theme="vivid"]) .hero-header #site-nav a:not([href="#onur"], [href="#iletisim"]):hover {
    background: var(--theme-header-hover);
  }

  @media (max-width: 1000px) {
    :root:is([data-site-theme="dark"], [data-site-theme="vivid"]) .hero-header #site-nav {
      background: var(--theme-header);
      box-shadow: 0 8px 26px var(--theme-shadow), inset 0 0 0 1px var(--theme-header-edge);
    }
  }

  :root:is([data-site-theme="dark"], [data-site-theme="vivid"]) .hero-header :focus-visible:not(.site-preferences *) {
    outline-color: var(--focus);
  }

  :root:is([data-site-theme="dark"], [data-site-theme="vivid"]) #portfolio-content :is(.project-index-link, .zirve-case, .spatial-project-card) {
    background: var(--v6-panel);
    color: var(--ink);
  }

  :root:is([data-site-theme="dark"], [data-site-theme="vivid"]) #portfolio-content :is(.personal-proof, .services-project-card, #markalar .brands-panel, #agencies .agency-glass) {
    background: var(--surface);
    color: var(--ink);
  }

  :root:is([data-site-theme="dark"], [data-site-theme="vivid"]) #portfolio-content :is(.personal-proof a:hover, .personal-proof a:focus-visible, .project-index-link:hover, .service-card:hover, .service-detail-close:hover) {
    background: var(--theme-hover);
  }

  :root:is([data-site-theme="dark"], [data-site-theme="vivid"]) #portfolio-content :is(.service-card, .service-detail) {
    background: var(--theme-card);
    color: var(--ink);
  }

  :root:is([data-site-theme="dark"], [data-site-theme="vivid"]) #portfolio-content .service-card[aria-expanded="true"] {
    background: var(--theme-selected);
    color: #fff;
  }

  :root:is([data-site-theme="dark"], [data-site-theme="vivid"]) #portfolio-content :is(.music-direction-feature, .more-work-grid > .dyson-case, .academic-card) {
    background: var(--theme-blush);
    color: var(--ink);
  }

  :root:is([data-site-theme="dark"], [data-site-theme="vivid"]) #portfolio-content :is(.more-work-grid > .cop26-case, .experience-business) {
    background: var(--theme-amber);
    color: var(--ink);
  }

  :root:is([data-site-theme="dark"], [data-site-theme="vivid"]) #portfolio-content :is(.more-work-grid > .transport-case, .technology-card, #hakkimda .experience-folder-tab),
  :root:is([data-site-theme="dark"], [data-site-theme="vivid"]) #portfolio-content .experience-folder::before {
    background: var(--surface-cool);
    color: var(--ink);
  }

  :root:is([data-site-theme="dark"], [data-site-theme="vivid"]) :is(#hakkimda, #agencies),
  :root:is([data-site-theme="dark"], [data-site-theme="vivid"]) #agencies[data-glow-through]::before {
    background: var(--paper);
    color: var(--ink);
  }

  :root:is([data-site-theme="dark"], [data-site-theme="vivid"]) #portfolio-content :is(.personal-proof strong, .music-direction-toggle, .music-direction-heading, .experience-heading h2, .experience-business h3, .experience-business p, .commercial-fact, .technology-card h3) {
    color: var(--ink);
  }

  :root:is([data-site-theme="dark"], [data-site-theme="vivid"]) #portfolio-content :is(#dyson .supporting-project-title, .supporting-project-description, #cop26 h3, #transport .transport-case-copy > p:last-child, #hakkimda .commercial-fact :is(dt, dd, span)) {
    color: var(--ink);
  }

  :root:is([data-site-theme="dark"], [data-site-theme="vivid"]) #portfolio-content #markalar .brands-panel > .section-heading > p {
    color: var(--muted);
  }

  :root:is([data-site-theme="dark"], [data-site-theme="vivid"]) #portfolio-content .music-direction-disclosure :is(.music-direction-action, .music-direction-scope > p) {
    color: var(--ink);
  }

  :root:is([data-site-theme="dark"], [data-site-theme="vivid"]) #portfolio-content .music-direction-disclosure .music-direction-scope li {
    color: var(--muted);
  }

  :root:is([data-site-theme="dark"], [data-site-theme="vivid"]) #portfolio-content :is(.music-direction-trigger, #agencies .agency-disclosure > summary):focus-visible {
    outline-color: var(--focus);
  }

  :root:is([data-site-theme="dark"], [data-site-theme="vivid"]) #portfolio-content :is(.personal-proof span, .project-index-text > span, .zirve-heading .project-kicker, #zirve23 .zirve-facts span, .spatial-heading .spatial-scope, .spatial-grid figcaption, .services-heading > div > p, .service-card[aria-expanded="false"] .service-card-short, .service-detail-heading > p, .service-detail-content dd, .more-work-grid .project-category, .more-work-grid .project-meta, .transport-film figcaption, .experience-narrative p, .technology-card-copy > p, .agency-caption, .brand-count) {
    color: var(--muted);
  }

  :root:is([data-site-theme="dark"], [data-site-theme="vivid"]) #portfolio-content :is(.proof-arrow, .project-index-arrow, #portrait-turn-hint, .service-card[aria-expanded="false"] .service-icon, .service-project-link, #hakkimda .experience-folder-tab) {
    color: var(--theme-signal);
  }

  :root:is([data-site-theme="dark"], [data-site-theme="vivid"]) #portfolio-content :is(.spatial-controls, .spatial-step, .zirve-case .main-expand, .reference-modes, .brand-select-field select, #agencies .agency-toggle-label) {
    background: var(--control);
    border-color: var(--line);
    color: var(--ink);
  }

  :root:is([data-site-theme="dark"], [data-site-theme="vivid"]) #portfolio-content :is(.spatial-step:hover:not(:disabled), .reference-modes button[aria-pressed="true"]) {
    background: var(--theme-selected);
    color: #fff;
  }

  :root:is([data-site-theme="dark"], [data-site-theme="vivid"]) #portfolio-content .spatial-step:disabled {
    background: transparent;
  }

  :root:is([data-site-theme="dark"], [data-site-theme="vivid"]) #portfolio-content #markalar .brand-controls :is(button, select) {
    color: var(--ink);
  }

  :root:is([data-site-theme="dark"], [data-site-theme="vivid"]) #portfolio-content #markalar .reference-modes button[aria-pressed="true"] {
    color: #fff;
  }

  :root:is([data-site-theme="dark"], [data-site-theme="vivid"]) #iletisim.contact-section {
    background: var(--theme-contact);
    color: var(--ivory);
  }

  :root:is([data-site-theme="dark"], [data-site-theme="vivid"]) #iletisim :is(h2, .contact-links a, .contact-links > span) {
    color: var(--ivory);
  }

  :root:is([data-site-theme="dark"], [data-site-theme="vivid"]) .site-footer {
    background: var(--theme-footer);
    color: var(--theme-footer-ink);
  }

  :root:is([data-site-theme="dark"], [data-site-theme="vivid"]) .site-footer :is(.footer-tools a, .footer-tools button, .studio-credit p, .footer-signature, .footer-signature sup) {
    color: var(--theme-footer-ink);
  }

  :root:is([data-site-theme="dark"], [data-site-theme="vivid"]) .analytics-consent {
    background: var(--theme-card);
    border-color: var(--line);
    color: var(--ink);
  }

  :root:is([data-site-theme="dark"], [data-site-theme="vivid"]) .analytics-consent p {
    color: var(--muted);
  }

  :root:is([data-site-theme="dark"], [data-site-theme="vivid"]) .analytics-consent :is(p a, button[data-analytics-choice="denied"]) {
    border-color: var(--line);
    color: var(--ink);
  }

  :root:is([data-site-theme="dark"], [data-site-theme="vivid"]) .analytics-consent button[data-analytics-choice="granted"] {
    background: var(--theme-selected);
    border-color: var(--theme-selected);
    color: #fff;
  }

  :root[data-site-theme="dark"] .site-footer .footer-wordmark {
    content: url('azun-wordmark-white.png');
  }

  /* Original marks retain their authored colors against a readable neutral plate. */
  :root[data-site-theme="dark"] .header-person .location img {
    background: var(--theme-plate);
    border-radius: 3px;
    box-shadow: 0 0 0 3px var(--theme-plate);
  }

  :root[data-site-theme="dark"] #portfolio-content :is(.project-index-media--logo, .brand-grid, .public-grid, .agency-logos, .technology-logos, .supporting-project-mark, .transport-project-mark) {
    background: var(--theme-plate);
    border-radius: 8px;
  }

  :root[data-site-theme="dark"] #portfolio-content :is(.supporting-project-mark, .transport-project-mark, .technology-logos) {
    box-shadow: 0 0 0 5px var(--theme-plate);
  }
}
