:root {
  color-scheme: light;
  --paper: #f7f4ee;
  --ink: #24231f;
  --quiet: #535149;
  --accent: #80563a;
  --rule: #d8d0c4;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 Manrope, "Avenir Next", "Helvetica Neue", Arial, sans-serif; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid #ad683c; outline-offset: 5px; }
.skip-link {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  background: var(--paper);
  transform: translateY(calc(-100% - 20px));
}
.skip-link:focus { transform: none; }
img { display: block; width: 100%; }
.shell { width: min(1380px, calc(100% - 112px)); margin-inline: auto; }
.header, .footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.header { min-height: 100px; }
.primary-nav { display: flex; justify-content: flex-end; align-items: center; gap: clamp(16px, 3vw, 42px); }
.primary-nav a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 10px; white-space: nowrap; }
.brand { display: block; width: min(276px, 72%); flex-shrink: 0; mix-blend-mode: multiply; }
.brand img { height: auto; }
.header-link { text-decoration: none; font-size: .94rem; font-weight: 650; }
.header-link span { margin-left: .35em; color: var(--accent); }
.header-link:hover, .categories a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: .22em; }
.hero {
  --hero-height: clamp(520px, 49vw, 725px);
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  min-height: var(--hero-height);
  background: #f7f0e2;
  color: #000;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  object-fit: cover;
  object-position: left center;
}
.intro {
  /* Match the displayed image bounds when object-fit crops the kitchen. */
  --photo-width: max(100cqw, calc(var(--hero-height) * 1672 / 941));
  --photo-height: max(var(--hero-height), calc(100cqw * 941 / 1672));
  --original-panel-height: clamp(158px, calc(var(--photo-width) * .159), 300px);
  position: relative;
  width: min(calc(var(--photo-width) * .3445), calc(100% - 30px), 780px);
  margin-left: calc(var(--photo-width) * .018);
  /* Follow the window while keeping the panel below the top of the photo. */
  top: max(16px, calc(var(--hero-height) * .5 - var(--photo-height) * .18 - var(--original-panel-height) * .8));
}
.intro-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: calc(var(--original-panel-height) * 1.3);
  padding: 13px 20% 13px clamp(12px, 1.7vw, 28px);
  color: #fff;
  background: linear-gradient(90deg, #07383d 0%, #00585b 76%, rgb(0 88 91 / 0) 100%);
}
h1, h2, h3, .section-lead { font-weight: 500; letter-spacing: -.04em; line-height: 1.12; margin: 0; }
#hero-title {
  font-size: clamp(2rem, calc(var(--photo-width) * .036), 3.5rem);
  font-weight: 550;
  text-wrap: balance;
}
#hero-title span { white-space: nowrap; }
.intro-copy > p { margin: 10px 0 8px; font-size: clamp(1.079rem, 1.495vw, 1.404rem); line-height: 1.4; }
.intro-copy > .hero-area { margin: 0 0 12px; color: #dceeed; font-size: .875rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 16px; }
.inquiry-link, .hero-gallery-link {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  min-height: 44px;
  font-size: .94rem;
  font-weight: 700;
  white-space: nowrap;
}
.inquiry-link { padding-inline: 14px; background: #075456; color: #fff; text-decoration: none; }
.inquiry-link:hover { background: #07383d; }
.hero .inquiry-link { background: var(--paper); color: #07383d; }
.hero .inquiry-link:hover { background: #dceeed; }
.hero-gallery-link { text-underline-offset: .24em; }
.hero-gallery-link:hover { text-decoration-thickness: 2px; }
.hero-actions a:focus-visible { outline-color: #fff; }
.text-section {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
  gap: 24px clamp(24px, 6vw, 92px);
  padding-block: clamp(36px, 5.5vw, 78px);
}
.section-label { color: var(--accent); font-size: .77rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.section-lead, #portfolio-title { font-size: clamp(2rem, 3.6vw, 3.6rem); }
.section-copy { color: var(--quiet); max-width: 60ch; margin: 0; align-self: center; }
.section-copy p { margin: 0; }
.section-copy p + p { margin-top: 12px; }
.contact {
  background: linear-gradient(115deg, #07383d, #075456);
  color: #fff;
  scroll-margin-top: 18px;
}
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(32px, 6vw, 100px);
  padding-block: clamp(42px, 6.2vw, 96px);
}
.contact-label {
  display: block;
  margin: 0;
  color: #a7d7d3;
  font-size: .77rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.contact-intro h2 {
  max-width: 11ch;
  margin: 13px 0 19px;
  font-size: clamp(2.4rem, 5.3vw, 4.85rem);
  line-height: 1.06;
}
.contact-description { max-width: 46ch; margin: 0; color: #e0efed; }
.contact-details { min-width: 0; font-style: normal; }
.contact-channels { border-top: 1px solid rgb(255 255 255 / .28); }
.contact-channel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 0 16px;
  border-bottom: 1px solid rgb(255 255 255 / .28);
  color: #fff;
  text-decoration: none;
}
.contact-value {
  display: block;
  overflow-wrap: anywhere;
  font-size: clamp(1.35rem, 2.6vw, 2.25rem);
  font-weight: 650;
  letter-spacing: -.035em;
}
.contact-arrow {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  height: 38px;
  border: 1px solid rgb(255 255 255 / .50);
  border-radius: 50%;
  font-size: 1.2rem;
  line-height: 1;
}
.contact-channel:hover .contact-value { text-decoration: underline; text-underline-offset: .14em; }
.contact-channel:hover .contact-arrow { background: #fff; color: #07383d; }
.contact-channel:focus-visible { outline-color: #fff; }
.contact-business {
  margin-top: 24px;
  color: #e0efed;
  font-size: .9rem;
}
.contact-business span { display: block; }
.contact-area { margin: 12px 0 0; color: #e0efed; font-size: .9rem; }
.portfolio { border-top: 1px solid var(--rule); }
.portfolio { padding-block: 45px 75px; }
.categories { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 18px 0 26px; font-size: .91rem; }
.categories a { display: inline-flex; align-items: center; min-height: 44px; color: var(--quiet); text-decoration: none; padding: 5px 8px; }
.projects { display: grid; gap: clamp(64px, 6.5vw, 96px); }
.portfolio-inquiry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 18px clamp(16px, 3vw, 32px);
  border-block: 1px solid var(--rule);
  background: #eef2ed;
}
.portfolio-inquiry p { margin: 0; font-weight: 650; }
.project-process { border-top: 1px solid var(--rule); }
.process-steps { margin: 0; padding-inline-start: 1.4rem; }
.process-steps li + li { margin-top: 14px; }
.process-steps li::marker { color: var(--accent); font-weight: 700; }
.process-steps p { margin: 3px 0 0; color: var(--quiet); }
article, .portfolio, .text-section { scroll-margin-top: 18px; }
.photo { display: block; position: relative; overflow: hidden; background: #e9e3d9; }
.photo img { height: auto; }
.photo img, #gallery img { filter: var(--photo-tone, brightness(1.04) saturate(.96)); }
img[src$="/vestavby.webp"] { --photo-tone: brightness(1.07) saturate(.93); }
img[src$="/loznice.webp"] { --photo-tone: brightness(1.06) saturate(.96); }
img[src$="/predsine-cista-stena.webp"] { --photo-tone: brightness(1.06) sepia(.05) saturate(.94); }
img[src$="/volne-stojici.webp"] { --photo-tone: brightness(1.03) saturate(.84); }
.photo-zoom {
  position: absolute;
  bottom: 11px;
  right: 11px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--paper);
}
.photo-zoom::before {
  content: "";
  width: 11px;
  height: 11px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  transform: translate(-1px, -1px);
}
.photo-zoom::after {
  content: "";
  position: absolute;
  top: 24px;
  left: 23px;
  width: 7px;
  height: 1.5px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: left;
}
h3 { font-size: clamp(1.55rem, 2.5vw, 2.45rem); }
article p { color: var(--quiet); max-width: 53ch; margin: 9px 0 0; }
.project-feature--wide .project-feature-copy { margin-top: 24px; }
.project-feature--split { display: grid; align-items: center; gap: clamp(24px, 7vw, 100px); }
.project-feature-copy h3::before {
  content: "";
  display: block;
  width: 42px;
  height: 2px;
  margin-bottom: 12px;
  background: #00585b;
}
.photo:is(:hover, :focus-visible) .photo-zoom { background: #00585b; color: #fff; }
@media (min-width: 641px) {
  .project-feature--split {
    --photo-column: 2fr;
    --copy-column: 3fr;
    grid-template-columns: minmax(0, var(--photo-column)) minmax(0, var(--copy-column));
    grid-template-areas: "photo copy";
  }
  .project-feature--landscape { --photo-column: 3fr; --copy-column: 2fr; }
  .project-feature--reverse {
    grid-template-columns: minmax(0, var(--copy-column)) minmax(0, var(--photo-column));
    grid-template-areas: "copy photo";
  }
  .project-feature--split .photo { grid-area: photo; }
  .project-feature--split .project-feature-copy { grid-area: copy; }
  .project-feature--wide .project-feature-copy { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .project-feature--wide .project-feature-copy { display: grid; align-items: start; gap: clamp(24px, 7vw, 100px); }
  .project-feature--wide .project-feature-copy p { margin-top: 0; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .photo img { transition: transform 350ms ease; }
  .photo:hover img { transform: scale(1.025); }
}
.footer { border-top: 1px solid var(--rule); padding-block: 28px 35px; }
.footer { flex-wrap: wrap; }
.footer .header-link { margin-inline-start: auto; }
dialog { padding: 0; border: 0; background: transparent; overflow: visible; max-width: 94vw; }
dialog::backdrop { background: rgb(24 22 20 / .88); }
dialog img { width: auto; max-width: 94vw; max-height: min(82vh, calc(100dvh - 92px)); object-fit: contain; }
.gallery-controls {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 8px;
  padding: 4px;
  background: var(--paper);
}
.gallery-caption { margin: 0; text-align: center; font-size: .875rem; line-height: 1.25; }
dialog button {
  border: 0;
  background: var(--paper);
  color: var(--ink);
  width: 44px;
  height: 44px;
  font: 1.4rem/1 Manrope, sans-serif;
  cursor: pointer;
}
dialog button:hover { background: #dceeed; }
.gallery-close { position: absolute; z-index: 1; top: 7px; right: 7px; font-size: 1.8rem; }
@media (max-width: 900px) {
  .shell { width: calc(100% - 56px); }
}
@media (max-width: 640px) {
  .shell { width: calc(100% - 36px); }
  .header { min-height: 76px; flex-wrap: wrap; gap: 0 12px; padding-block: 12px 6px; }
  .primary-nav { flex: 1 0 100%; gap: 12px; }
  .header-link { font-size: .8rem; }
  .hero { --hero-height: 480px; padding-block: 18px 32px; }
  .hero-photo { object-position: 55% center; }
  .intro { top: auto; width: calc(100% - 24px); margin: 0 12px; }
  .intro-copy {
    min-height: auto;
    padding: 15px 18px 17px;
    background: linear-gradient(90deg, #07383d 0%, #00585b 85%, rgb(0 88 91 / .8) 100%);
  }
  .intro-copy > p { margin: 8px 0 5px; }
  .intro-copy > .hero-area { margin-bottom: 10px; }
  .categories { gap: 3px 8px; }
  .text-section, .contact-layout { grid-template-columns: 1fr; }
  .text-section { gap: 16px; }
  .portfolio { padding-block: 31px 45px; }
  .projects { gap: 48px; }
}
@media (max-width: 510px) {
  .primary-nav { gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
