:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: #0b0b0b;
  --panel-soft: #101010;
  --ink: #f3f2ed;
  --muted: #9a9993;
  --muted-strong: #c8c7c0;
  --line: #ffffff1c;
  --line-strong: #ffffff35;
  --gold: #ffb700;
  --gold-soft: #ffb70018;
  --pad: clamp(1.25rem, 5vw, 5.5rem);
  --max: 80rem;
  --display: Syne, Arial, sans-serif;
  --body: Inter, Arial, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 300;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
a:hover { color: var(--gold); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
::selection { background: var(--gold); color: #050505; }

.skip {
  position: fixed;
  z-index: 100;
  top: -4rem;
  left: 1rem;
  padding: .7rem 1rem;
  background: var(--gold);
  color: #050505;
  font: 11px var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: top .2s ease;
}
.skip:focus { top: 1rem; }

.brand {
  position: absolute;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid #ffffff12;
  background: linear-gradient(#050505db, #05050565 72%, transparent);
}
.brand-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  width: min(var(--max), calc(100% - 2 * var(--pad)));
  min-height: 5.5rem;
  margin: 0 auto;
}
.brand img { width: 6.25rem; height: auto; }
.brand nav { display: flex; justify-content: center; gap: clamp(1rem, 3vw, 2.6rem); }
.brand nav a, .langs, .mobile-nav summary, .eyebrow, .section-label, .button, .hero-meta, .credit, .footer-label {
  font: 10px var(--mono);
  letter-spacing: .19em;
  text-transform: uppercase;
}
.brand nav a { color: var(--muted); transition: color .2s ease; }
.brand nav a:hover { color: var(--ink); }
.langs { display: flex; align-items: center; gap: .55rem; white-space: nowrap; }
.langs span { color: var(--gold); }
.langs a { color: var(--muted); }
.langs a:hover { color: var(--ink); }
.mobile-nav { display: none; }

main { display: block; }
.hero {
  position: relative;
  min-height: min(52rem, 100svh);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(70% 100% at 0% 20%, #ffb7000c, transparent 65%),
    var(--bg);
  isolation: isolate;
}
.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .38;
  background-image: linear-gradient(#ffffff08 1px, transparent 1px), linear-gradient(90deg, #ffffff08 1px, transparent 1px);
  background-size: 7rem 7rem;
  content: '';
  mask-image: linear-gradient(90deg, #000, transparent 70%);
}
.hero::after {
  position: absolute;
  top: 10.5rem;
  bottom: 3rem;
  left: calc(50% - .5px);
  width: 1px;
  background: linear-gradient(transparent, #ffb70055 16%, #ffb70010 85%, transparent);
  content: '';
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(19rem, .85fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  width: min(var(--max), calc(100% - 2 * var(--pad)));
  min-height: min(52rem, 100svh);
  margin: 0 auto;
  padding: 9rem 0 5.25rem;
}
.hero-copy { min-width: 0; }
.eyebrow, .section-label {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin: 0 0 1.4rem;
  color: var(--gold);
  line-height: 1.4;
}
.eyebrow::before, .section-label::before {
  width: 2.6rem;
  height: 1px;
  flex: none;
  background: var(--gold);
  content: '';
}
h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: .98;
}
h1 {
  max-width: 43rem;
  font-size: clamp(2.65rem, 4.7vw, 5.3rem);
  overflow-wrap: normal;
}
h1 span { display: block; color: var(--gold); white-space: normal; }
.hero-label {
  margin: 1.9rem 0 .9rem;
  color: var(--muted-strong);
  font: 11px var(--mono);
  letter-spacing: .18em;
  text-transform: uppercase;
}
.lead {
  max-width: 38rem;
  margin: 0;
  color: var(--muted-strong);
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  line-height: 1.7;
}
.hero-actions, .actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.hero-actions { margin-top: 2rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  gap: .85rem;
  padding: .85rem 1.25rem;
  border: 1px solid #ffb70070;
  color: var(--ink);
  line-height: 1;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.button::after { content: '↗'; color: var(--gold); font: 1.1rem Arial, sans-serif; }
.button:hover { border-color: var(--gold); color: #050505; background: var(--gold); transform: translateY(-2px); }
.button:hover::after { color: #050505; }
.button.primary { border-color: var(--gold); background: var(--gold); color: #050505; }
.button.primary::after { color: #050505; }
.button.primary:hover { background: #ffd25a; border-color: #ffd25a; }
.button.ghost { border-color: var(--line-strong); }
.button.ghost:hover { border-color: var(--gold); background: transparent; color: var(--gold); }
.button.ghost:hover::after { color: var(--gold); }

.hero-media { position: relative; min-width: 0; }
.hero-media::before {
  position: absolute;
  z-index: 2;
  top: -1rem;
  right: -1rem;
  width: 3.25rem;
  height: 3.25rem;
  border-top: 1px solid var(--gold);
  border-right: 1px solid var(--gold);
  content: '';
  pointer-events: none;
}
.hero-media figure { margin: 0; }
.hero-media picture { display: block; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--line-strong); background: var(--panel); }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.78) contrast(1.08);
}
.hero-media figcaption, .media-caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: .75rem;
  color: #8d8c87;
  font: 9px var(--mono);
  letter-spacing: .1em;
  line-height: 1.5;
  text-transform: uppercase;
}
.hero-media figcaption span:first-child, .media-caption span:first-child { color: var(--gold); }
.hero-meta {
  position: absolute;
  right: var(--pad);
  bottom: 1.6rem;
  left: var(--pad);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #77766f;
}
.hero-meta span:first-child { color: var(--gold); }

.band { border-bottom: 1px solid var(--line); }
.section-inner { width: min(var(--max), calc(100% - 2 * var(--pad))); margin: 0 auto; padding: clamp(4.5rem, 9vw, 8rem) 0; }
.intro-grid { display: grid; grid-template-columns: minmax(12rem, .65fr) minmax(0, 1.35fr); gap: clamp(2rem, 7vw, 7rem); }
.section-title { max-width: 55rem; font-size: clamp(2.15rem, 4.7vw, 4.4rem); }
.copy { max-width: 47rem; color: var(--muted-strong); font-size: clamp(1rem, 1.4vw, 1.14rem); line-height: 1.8; }
.copy p { margin: 0 0 1.35rem; }
.copy p:last-child { margin-bottom: 0; }
.copy strong, .copy a, .feature-copy a, .faq a { color: var(--gold); }
.copy a, .feature-copy a, .faq a { text-decoration: underline; text-underline-offset: .25em; }
.mini-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 3.2rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--line); }
.mini-fact { min-height: 7rem; padding: 1.35rem 1.1rem; background: var(--bg); }
.mini-fact strong { display: block; color: var(--gold); font: 1.35rem var(--display); letter-spacing: -.02em; }
.mini-fact span { display: block; margin-top: .5rem; color: var(--muted); font: 9px var(--mono); letter-spacing: .1em; line-height: 1.45; text-transform: uppercase; }

.service-head { display: grid; grid-template-columns: minmax(12rem, .65fr) minmax(0, 1.35fr); gap: clamp(2rem, 7vw, 7rem); align-items: end; margin-bottom: 2.6rem; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card { position: relative; min-width: 0; min-height: 13.5rem; padding: 1.65rem 1.35rem 1.7rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(145deg, #11110f, #080808); }
.service-card::before { display: block; margin-bottom: 2.4rem; color: var(--gold); content: attr(data-number); font: 10px var(--mono); letter-spacing: .15em; }
.service-card h3 { margin-bottom: .75rem; font-size: clamp(1.25rem, 2vw, 1.65rem); line-height: 1.04; }
.service-card p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.65; }
.service-card:hover { background: linear-gradient(145deg, #191811, #0b0b0a); }

.work-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.project-figure { margin: 0; }
.project-figure picture { display: block; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--line-strong); background: #0c0c0c; }
.project-figure img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; filter: saturate(.8); transition: transform .6s ease; }
.project-figure img { height: 100%; }
.project-figure a:hover img { transform: scale(1.025); }
.project-figure figcaption { margin-top: .75rem; color: #8d8c87; font: 9px var(--mono); letter-spacing: .09em; line-height: 1.5; text-transform: uppercase; }
.feature-copy .section-label { margin-bottom: 1.5rem; }
.feature-copy h3 { margin-bottom: 1rem; font-size: clamp(1.75rem, 3vw, 2.8rem); }
.feature-copy p { max-width: 38rem; margin: 0 0 1.15rem; color: var(--muted-strong); font-size: 1rem; line-height: 1.75; }
.project-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 2rem; border: 1px solid var(--line); background: var(--line); }
.project-link { display: flex; min-width: 0; min-height: 4.9rem; flex-direction: column; justify-content: center; gap: .25rem; padding: .8rem .95rem; background: var(--panel); }
.project-link small { color: var(--gold); font: 9px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.project-link strong { overflow-wrap: anywhere; font: 700 1rem var(--display); letter-spacing: -.02em; line-height: 1.1; }
.project-link:hover { background: #18160e; color: var(--ink); }
.image-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.image-pair figure { margin: 0; min-width: 0; }
.image-pair picture { display: block; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--line); }
.image-pair img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: saturate(.75); }
.image-pair figcaption { margin-top: .5rem; color: #7f7e78; font: 8px var(--mono); letter-spacing: .08em; text-transform: uppercase; }

.faq { max-width: 58rem; margin-left: auto; }
details { border-top: 1px solid var(--line); padding: 1.25rem 0; }
details:last-child { border-bottom: 1px solid var(--line); }
summary { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; cursor: pointer; color: var(--ink); font: 700 clamp(1.05rem, 1.8vw, 1.35rem) var(--display); letter-spacing: -.02em; line-height: 1.2; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { flex: none; color: var(--gold); content: '+'; font: 1.6rem Arial, sans-serif; font-weight: 300; line-height: .8; }
details[open] summary::after { content: '−'; }
details p { max-width: 47rem; margin: 1rem 0 0; color: var(--muted); line-height: 1.75; }

.contact { position: relative; overflow: hidden; background: radial-gradient(65% 100% at 100% 90%, #ffb70016, transparent 70%); }
.contact::after { position: absolute; right: -5rem; bottom: -11rem; width: 26rem; height: 26rem; border: 1px solid #ffb70020; border-radius: 50%; content: ''; pointer-events: none; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(15rem, .8fr); gap: clamp(2rem, 6vw, 6rem); align-items: end; }
.contact h2 { max-width: 50rem; font-size: clamp(2.4rem, 5.6vw, 5.5rem); }
.contact p { max-width: 36rem; color: var(--muted-strong); }
.contact-info { display: grid; gap: 1.25rem; }
.contact-label { display: block; margin-bottom: .35rem; color: var(--gold); font: 10px var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.contact-info a:not(.button) { overflow-wrap: anywhere; color: var(--ink); font: 600 clamp(1.1rem, 2.2vw, 1.7rem) var(--display); letter-spacing: -.02em; }
.contact-info a:not(.button):hover { color: var(--gold); }
.contact-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

footer { border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(12rem, .7fr); gap: 2rem; width: min(var(--max), calc(100% - 2 * var(--pad))); margin: 0 auto; padding: 3rem 0 1.6rem; }
.footer-brand img { width: 6.25rem; margin-bottom: 1.1rem; }
.footer-brand p { max-width: 27rem; margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.7; }
.footer-label { display: block; margin: 0 0 1rem; color: var(--gold); }
.footer-nav { display: flex; flex-wrap: wrap; gap: .7rem 1.35rem; }
.footer-nav a { color: var(--muted); font-size: .9rem; }
.footer-nav a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; width: min(var(--max), calc(100% - 2 * var(--pad))); margin: 0 auto; padding: 1.1rem 0 1.5rem; border-top: 1px solid var(--line); color: #77766f; font: 9px var(--mono); letter-spacing: .08em; line-height: 1.5; text-transform: uppercase; }
.author { display: inline-flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 1.2rem; color: var(--muted); font: 10px var(--mono); letter-spacing: .08em; }
.author strong { color: var(--gold); font-weight: 400; }
.author a { text-decoration: underline; text-underline-offset: .25em; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; min-height: auto; padding-top: 9rem; }
  .hero { min-height: auto; }
  .hero::after { display: none; }
  .hero-copy { max-width: 47rem; }
  .hero-media { max-width: 43rem; }
  .hero-meta { position: static; width: min(var(--max), calc(100% - 2 * var(--pad))); margin: 0 auto; padding: 1.5rem 0 1.5rem; }
  .intro-grid, .service-head { grid-template-columns: 1fr; gap: 1.7rem; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .feature-copy { order: -1; }
  .contact-info { max-width: 38rem; }
}
@media (max-width: 760px) {
  .brand-inner { min-height: 4.7rem; }
  .brand nav { display: none; }
  .mobile-nav { display: block; position: relative; }
  .mobile-nav summary { display: flex; align-items: center; gap: .55rem; padding: .55rem 0; color: var(--muted); cursor: pointer; list-style: none; }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav summary::after { color: var(--gold); content: '+'; font: 1.1rem Arial, sans-serif; letter-spacing: 0; }
  .mobile-nav[open] summary::after { content: '−'; }
  .mobile-nav ul { position: absolute; top: 2.8rem; right: 0; display: grid; min-width: 12rem; gap: .65rem; margin: 0; padding: 1rem; border: 1px solid var(--line-strong); background: #080808f7; box-shadow: 0 1rem 3rem #000b; list-style: none; }
  .mobile-nav a { color: var(--muted-strong); font: 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
  .mobile-nav a:hover { color: var(--gold); }
  .brand-inner { grid-template-columns: auto 1fr auto; gap: .8rem; }
  .brand img { width: 5.35rem; }
  .langs { font-size: 9px; letter-spacing: .12em; }
  .hero-grid { width: min(var(--max), calc(100% - 2 * var(--pad))); padding-top: 8rem; padding-bottom: 3rem; }
  h1 { font-size: clamp(2.6rem, 12vw, 4.6rem); }
  .hero-label { font-size: 9px; letter-spacing: .12em; }
  .hero-media::before { top: -.6rem; right: -.6rem; width: 2.25rem; height: 2.25rem; }
  .section-inner { padding-top: 4rem; padding-bottom: 4rem; }
  .mini-facts { margin-top: 2.2rem; }
  .mini-fact { min-height: 6.3rem; padding: 1rem .75rem; }
  .mini-fact strong { font-size: 1.05rem; }
  .mini-fact span { font-size: 8px; letter-spacing: .06em; }
  .service-grid { grid-template-columns: minmax(0, 1fr); }
  .service-card { min-height: 0; padding: 1.4rem 1.1rem 1.5rem; }
  .service-card::before { margin-bottom: 1.8rem; }
  .project-links { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { grid-template-columns: minmax(0, 1fr); padding-top: 2.4rem; }
  .footer-bottom { flex-direction: column; gap: .45rem; }
}
@media (max-width: 390px) {
  :root { --pad: 1rem; }
  .brand-inner { gap: .45rem; }
  .brand img { width: 5rem; }
  .mobile-nav summary { font-size: 8px; letter-spacing: .08em; }
  .langs { font-size: 8px; gap: .35rem; }
  .hero-grid { padding-top: 7.5rem; }
  h1 { font-size: clamp(2.35rem, 11.7vw, 3.25rem); }
  h1 span { white-space: normal; }
  .lead { font-size: .98rem; }
  .hero-actions .button, .contact-actions .button { width: 100%; }
  .hero-meta { font-size: 8px; letter-spacing: .08em; }
  .hero-meta span:last-child { max-width: 58%; text-align: right; }
  .mini-fact { min-height: 6.8rem; }
  .mini-fact strong { font-size: .95rem; }
  .mini-fact span { font-size: 7px; }
  .image-pair { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Keep every headline within its column, including long Czech words. */
h1,h2,h3{overflow-wrap:anywhere}.hero-copy,.feature-copy,.copy,.contact-info{min-width:0}
@media(max-width:760px){h1{font-size:clamp(2rem,8.6vw,3.5rem);line-height:1.02}.section-title,.contact h2{font-size:clamp(1.8rem,7.3vw,3rem);line-height:1.08}.hero-grid{padding-top:7.3rem}.hero-actions{margin-top:1.5rem}.hero-label{margin-top:1.5rem}}

/* Service pages use a tighter editorial rhythm: one focused offer, three core cards and a short project proof. */
.hero { min-height: min(48rem, 100svh); }
.hero-grid { min-height: min(48rem, 100svh); }
.section-inner { padding-block: clamp(3.8rem, 7vw, 6.25rem); }
.service-head { margin-bottom: 2rem; }
.service-card { min-height: 10.5rem; padding: 1.45rem 1.3rem 1.5rem; transition: background .2s ease, transform .2s ease; }
.service-card::before { margin-bottom: 1.55rem; }
.service-card:hover { transform: translateY(-2px); }
.service-card p { max-width: 24rem; }
.feature-copy p { max-width: 32rem; }
.faq { max-width: 58rem; }
@media (max-width: 900px) {
  .hero-grid { min-height: auto; }
}
@media (max-width: 760px) {
  .section-inner { padding-block: 3.5rem; }
  .service-card { min-height: 0; }
}
