/* Hélios photographic sections. Shared palette tokens live in style.css. */
.header {
  background: linear-gradient(180deg, #20241fdd, #20241f30);
  border-bottom-color: var(--line);
}
.menu-open .header { background: var(--bg); }
.mobile-menu {
  background: var(--bg);
  overflow-y: auto;
}
.mobile-menu a { border-bottom: 1px solid var(--line); padding-bottom: 11px; }
.mobile-menu a:hover, .desktop-nav a:hover { color: var(--gold); }
.language select { padding-inline: 9px; }
.language option { background: var(--panel); color: var(--paper); }
.gold-button, .nav-cta {
  border-radius: 4px;
  background: var(--paper);
  color: var(--bg);
  font-weight: 700;
}
.gold-button:hover, .nav-cta:hover { background: var(--gold); }
.text-link:hover, .back-top:hover { color: var(--gold); }
.arrow-button, .gallery-section--orbit .gallery-arrows .arrow-button {
  border-color: var(--line);
  background: transparent;
  color: var(--paper);
  border-radius: 50%;
}
.arrow-button:not(:disabled):is(:hover, :focus-visible),
.gallery-section--orbit .gallery-arrows .arrow-button:not(:disabled):is(:hover, :focus-visible) {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
}
.arrow-button:disabled { opacity: .32; }

.hero-shade {
  background: linear-gradient(90deg, #20241fec, #20241f7d 44%, #20241f0a 80%),
              linear-gradient(0deg, #20241fe6, transparent 45%);
}
.hero h1 em { color: var(--gold); }
.hero-frame { border-color: var(--line); }
.hero-topline, .hero-content > .eyebrow, .discipline-bar span, .section-index {
  font-family: var(--mono);
}
.hero-topline, .hero-intro p { color: var(--paper); }
.discipline-bar {
  background: var(--panel);
  color: var(--paper);
  border-block: 1px solid var(--line);
}
.discipline-bar svg { opacity: 1; flex-shrink: 0; }
.discipline-bar span { font-weight: 600; }

.section-index {
  color: var(--muted);
  border-bottom-color: var(--line);
  font-size: clamp(10px, .9vw, 13px);
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: .12em;
}
.barwalde-highlight {
  display: grid;
  isolation: isolate;
  background: var(--bg);
}
.barwalde-highlight-photo, .intro-moment {
  border: 1px solid var(--line);
  border-radius: 5px;
}
.barwalde-highlight-photo, .barwalde-highlight-heading { grid-area: 1 / 1; }
.barwalde-highlight-photo a { position: relative; }
.barwalde-highlight-photo a::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #20241edb, transparent 48%);
  pointer-events: none;
  content: '';
}
.barwalde-highlight-heading {
  position: relative;
  z-index: 1;
  align-self: start;
  align-items: flex-start;
  margin: 0;
  padding: clamp(16px, 3.2vw, 50px);
  pointer-events: none;
}
.barwalde-highlight-heading .text-link {
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #22261fce;
  pointer-events: auto;
}
.intro { background: var(--bg); }
.intro-copy > p:not(.lead), .gallery-now-copy > p { color: var(--muted); }

.section-photo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--graphite);
}
.section-photo-image {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--section-photo-position, center);
}
.section-photo::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(0deg, #22261fe8, #22261f5e 75%),
              linear-gradient(90deg, #22261fb8, transparent 85%);
  content: '';
}
.section-banner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: clamp(330px, 36vw, 520px);
  padding-block: clamp(29px, 4.8vw, 70px);
  border-bottom: 1px solid var(--line);
}
.section-banner .section-index { padding-bottom: clamp(15px, 2vw, 26px); }
.section-banner .gallery-heading { margin-top: clamp(26px, 4vw, 52px); }
.section-banner .filters button, .section-banner .gallery-arrows .arrow-button {
  background: #22261fbe;
}
.services .section-banner { --section-photo-position: center 52%; }
#projekty .section-banner { --section-photo-position: center 52%; }
#galeria .section-banner { --section-photo-position: center 29%; }

.services, .cinematic-browsing .services {
  padding-top: 0;
  background: var(--panel);
  border-block: 1px solid var(--line);
}
.service-feature-wrap { padding-top: clamp(27px, 4.6vw, 68px); }
.services .center-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, .38fr);
  gap: 24px;
  align-items: end;
  margin: clamp(26px, 4vw, 52px) 0 0;
  text-align: left;
}
.services .center-heading > p {
  color: var(--muted);
  max-width: 29ch;
  margin: 0 0 5px;
}
.service-orbit {
  border-color: var(--line);
  box-shadow: none;
}
.service-card {
  background: var(--canvas);
  border-color: var(--line);
  border-radius: 5px;
}
.service-card.active {
  border-color: #d5bd9560;
  box-shadow: 0 16px 44px #14171066;
}
.service-card .service-img { background: var(--canvas); }
.service-card .service-img::after { background: linear-gradient(0deg, var(--canvas), transparent 20%); }
.service-card h3 { color: var(--paper); }
.service-card .service-detail, .carousel-hint { color: var(--muted); }
.carousel-hint { margin-bottom: 0; }

#projekty, #galeria { position: relative; padding-top: 0; }
#projekty { background: var(--panel); }
#galeria {
  background: var(--bg);
  border-top: 1px solid var(--line);
}
#projekty .gallery-heading {
  display: flex;
  justify-content: space-between;
  gap: 45px;
  margin-bottom: 4px;
}
#projekty .gallery-heading-right { display: flex; flex-direction: column; align-items: flex-end; gap: 0; max-width: none; }
#projekty .gallery-arrows { justify-content: flex-end; }
#projekty .project-footnote { max-width: none; margin-top: 0; color: var(--muted); }
.filters button { color: var(--paper); border-color: var(--line); }
.filters button.active { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.gallery-section--orbit .gallery-heading-right > p { color: var(--muted); }
.gallery-section--orbit .gallery-track {
  --orbit-frame-height: min(var(--orbit-height), calc(var(--orbit-width) / var(--active-photo-aspect, 1.3333)));
  height: calc(var(--orbit-frame-height) + 100px);
  transition: height .7s cubic-bezier(.22, .68, .18, 1);
}
.gallery-section--orbit .gallery-track::before {
  background: radial-gradient(ellipse at 50% 80%, #1c1f17a8, transparent 65%);
}
.gallery-section--orbit .gallery-track::after {
  background: linear-gradient(90deg, transparent, #d5bd9550, transparent);
}
.gallery-anchor { display: block; height: 0; scroll-margin-top: 24px; }
.orbit-card {
  width: min(var(--orbit-width), calc(var(--orbit-frame-height) * var(--photo-aspect, 1.3333)));
  height: min(var(--orbit-frame-height), calc(var(--orbit-width) / var(--photo-aspect, 1.3333)));
  background: var(--panel);
  border-color: var(--line);
  border-radius: 5px;
}
.orbit-card[data-distance="0"] { border-color: #d5bd9566; box-shadow: 0 18px 48px #14171080; }
.orbit-card[data-distance="0"]:hover, .orbit-card:focus-visible { border-color: var(--gold); outline-color: var(--gold); }
.orbit-card[data-distance="0"]:hover .orbit-expand { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.gallery-now-copy > span, .gallery-guide, .gallery-after, .gallery-tick { color: var(--muted); }
.gallery-position, .gallery-tick[aria-pressed="true"], .gallery-open { color: var(--gold); }
.gallery-open:hover, .gallery-tick:hover { color: var(--paper); border-color: var(--gold); }
.gallery-tick::before { background: var(--line); }
.gallery-tick[aria-pressed="true"]::before { background: var(--gold); }
.gallery-open { border-bottom-color: var(--line); }
.gallery-now-copy > p { max-width: 660px; margin-top: 16px; font-size: 13px; line-height: 1.8; }

.flow-film:not(:fullscreen), .flow-film:not(:fullscreen) > video { background: var(--graphite-deep); }
.flow-film:not(:fullscreen) .flow-shade {
  background: linear-gradient(180deg, var(--graphite-deep), transparent 15%, transparent 85%, var(--graphite-deep));
}
.flow-dialog .flow-film, .flow-dialog .flow-film > video { background: #000; }
.flow-dialog .flow-film .flow-shade { background: linear-gradient(180deg, #0009, transparent 18%, transparent 80%, #000b); }
.approach { background: var(--bg); }
.approach-shade {
  background: linear-gradient(90deg, #20241fec, #20241f36 85%), linear-gradient(0deg, #20241f90, transparent 45%);
}
.approach-visual > img { filter: none; }
.phase-details {
  --paper: var(--ink);
  --muted: var(--ink-muted);
  --gold: var(--brass);
  --line: #b9b09c;
  background: var(--ivory);
  color: var(--paper);
  color-scheme: light;
}
.approach-copy > p:not(.eyebrow), .phase-tabs button, .phase-panel { color: var(--muted); }
.phase-tabs button { border-color: var(--line); }
.phase-tabs button[aria-selected="true"] { border-color: var(--gold); }
.phase-tabs button[aria-selected="true"] strong, .phase-tabs button[aria-selected="true"] > span { color: var(--gold); }
.footprint { background: var(--bg); }
.countries b { color: var(--gold); }

.contact {
  --section-photo-position: center 62%;
  border-top: 1px solid var(--line);
}
.contact.section-photo::before {
  background: linear-gradient(90deg, #22261fbd, #22261feb 68%),
              linear-gradient(0deg, #22261f88, #22261f4a);
}
.contact .section-index, .contact-lead, .contact-person { color: var(--muted); }
.contact .section-index > svg, .contact-phone > span, .contact em { color: var(--gold); }
.contact-lead { max-width: 40ch; }
.contact-phone { max-width: 12em; margin-bottom: 14px; }
.contact-phone:hover { color: var(--gold); }
.contact-mail {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  max-width: 100%;
  margin-top: 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--paper);
  font-size: clamp(13px, 1.3vw, 17px);
  font-weight: 700;
}
.contact-mail:hover { background: var(--gold); color: var(--bg); }
.contact-mail .arrow-icon { flex-shrink: 0; }
.contact form {
  --paper: var(--ink);
  --muted: var(--ink-muted);
  --gold: var(--brass);
  --line: #8c897a;
  min-width: 0;
  padding: clamp(20px, 3.4vw, 45px);
  border: 1px solid var(--panel);
  border-radius: 5px;
  background: var(--ivory);
  color: var(--paper);
  color-scheme: light;
  box-shadow: 0 10px 36px #16171130;
}
.contact form h3 { font-size: clamp(24px, 2.4vw, 36px); line-height: 1.13; }
.contact label { min-width: 0; font-size: 13px; }
.contact input, .contact select, .contact textarea {
  min-height: 46px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fffefb;
  color: var(--paper);
  font-size: 16px;
}
.contact input::placeholder, .contact textarea::placeholder { color: var(--muted); opacity: 1; }
.contact form :focus-visible { outline-offset: 3px; }
.contact form .gold-button {
  min-height: 49px;
  background: var(--graphite);
  color: var(--inverse-paper);
  font-size: 13px;
}
.contact form .gold-button:hover { background: var(--brass); }
.contact .form-note, .contact #form-status { color: var(--muted); font-size: 12px; }
.contact #copy-inquiry, .contact #form-status a { color: var(--brass); }

.footer { background: var(--graphite-deep); border-top: 1px solid var(--line); }
.footer-company, .footer-bottom { color: var(--muted); }
.footer-company strong { color: var(--paper); }
.footer-word { line-height: 0; -webkit-text-stroke: 0; margin: 36px 0 -10px; opacity: .08; }
.footer-word img { display: block; width: 100%; height: auto; object-fit: contain; }

#photo-dialog, #detail-dialog, #privacy-dialog {
  background: var(--bg);
  color: var(--paper);
  border-color: var(--line);
  border-radius: 5px;
}
#photo-dialog figcaption { background: var(--panel); color: var(--paper); }
#photo-dialog #photo-full, .detail-hero { background: var(--bg); object-fit: contain; }
.detail-hero { height: auto; max-height: 56svh; width: 100%; }
.dialog-padding .eyebrow, .photo-dialog .eyebrow { color: var(--gold); }
.detail-dialog .dialog-close, #photo-dialog .dialog-close {
  background: var(--bg);
  color: var(--paper);
  border-color: var(--line);
}
.detail-dialog::backdrop, #photo-dialog::backdrop { background: #171913cc; }
.film-dialog { background: var(--graphite-deep); color: var(--paper); }
.film-dialog .dialog-close { background: var(--bg); color: var(--paper); border-color: var(--line); }

/* The approved logo is independent of page typography. */
.brand .brand-logo { display: block; width: 186px; height: auto; max-width: none; object-fit: contain; }
.footer .brand .brand-logo { width: 164px; }
.flow-mark { width: clamp(148px, 17vw, 247px); height: auto; }

@media (max-width: 1100px) {
  .header .brand .brand-logo { width: 164px; }
}
@media (max-width: 800px) {
  #projekty .gallery-heading { align-items: flex-start; gap: 28px; }
  #projekty .gallery-heading-right { align-items: flex-start; }
  .flow-mark { width: 174px; }
}
@media (max-width: 600px) {
  .intro-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .services .center-heading { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}
@media (max-width: 520px) {
  .hero-shade {
    background: linear-gradient(90deg, #20241fce, #20241f38 93%), linear-gradient(0deg, #20241f, transparent 49%);
  }
  .discipline-bar { flex-wrap: wrap; gap: 8px 13px; }
  .discipline-bar span { font-size: 8px; letter-spacing: .02em; }
  .section-banner { min-height: 310px; }
  #projekty .gallery-heading { flex-direction: column; gap: 23px; }
  #projekty .gallery-heading-right { flex-direction: row; width: 100%; justify-content: space-between; align-items: center; gap: 15px; }
  #projekty .gallery-arrows { margin: 0; }
  .filters { gap: 5px; }
  .filters button { padding: 9px 11px; font-size: 10px; }
  .gallery-now-copy > p { margin-top: 13px; }
  .gallery-section--orbit .gallery-track { height: calc(var(--orbit-frame-height) + 66px); }
  .contact form { width: 100%; }
  .contact .form-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .header .brand .brand-logo, .footer .brand .brand-logo { width: 137px; }
  .flow-mark { width: 148px; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-section--orbit .gallery-track { transition: none; }
}
