/* =========================================
   REFINE — loaded last on every page
   1) wider container (+20%) and larger type scale
   2) font-size floor: 16px on desktop, 13px on smaller screens
   3) subtle button micro-interactions (hover + press)
========================================= */

:root {
  /* one text font everywhere (paragraphs, buttons, nav, labels); headings keep --display */
  --font: "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --container: min(1420px, calc(100% - clamp(2.5rem, 6vw, 6rem)));
  --press-ease: cubic-bezier(0.23, 1, 0.32, 1);
}

@media (min-width: 768px) {
  html {
    font-size: 106.25%;
  }
}

@media (min-width: 1024px) {
  html {
    font-size: 112.5%;
  }
}

.hero--framed .hero-content {
  width: var(--container);
}

/* body copy a touch larger everywhere */
body {
  font-size: 1.0625rem;
}

/* ---- 2) font-size floor (generated from main.css + products.css) ---- */
@media (max-width: 1023px) {
  .breadcrumb {
    font-size: max(13px, 0.68rem);
  }

  .btn {
    font-size: max(13px, 0.78rem);
  }

  .catalog-count {
    font-size: max(13px, 0.72rem);
  }

  .catalog-tab {
    font-size: max(13px, 0.66rem);
  }

  .catalog-tab span {
    font-size: max(13px, 0.68rem);
  }

  .chip {
    font-size: max(13px, 0.72rem);
  }

  .contact-form label {
    font-size: max(13px, 0.85rem);
  }

  .contact-list span {
    font-size: max(13px, 0.7rem);
  }

  .eyebrow {
    font-size: max(13px, 0.7rem);
  }

  .footer-bottom {
    font-size: max(13px, 0.78rem);
  }

  .footer-col h3 {
    font-size: max(13px, 0.72rem);
  }

  .footer-social a {
    font-size: max(13px, 0.72rem);
  }

  .hero-feature-brand {
    font-size: max(13px, 0.88rem);
  }

  .hero-feature-sub {
    font-size: max(13px, 0.86rem);
  }

  .mobile-nav .btn {
    font-size: max(13px, 0.8rem);
  }

  .nav-desktop a {
    font-size: max(13px, 0.72rem);
  }

  .pd-colors li {
    font-size: max(13px, 0.82rem);
  }

  .pd-label {
    font-size: max(13px, 0.68rem);
  }

  .pd-spec dt {
    font-size: max(13px, 0.72rem);
  }

  .process-leader-num {
    font-size: max(13px, 0.72rem);
  }

  .process-num {
    font-size: max(13px, 0.75rem);
  }

  .process-step-body em {
    font-size: max(13px, 0.72rem);
  }

  .process-step-index {
    font-size: max(13px, 0.72rem);
  }

  .process-step-num {
    font-size: max(13px, 0.72rem);
  }

  .process-v2-num {
    font-size: max(13px, 0.78rem);
  }

  .process-v2-visual figcaption {
    font-size: max(13px, 0.88rem);
  }

  .process-visual-caption span {
    font-size: max(13px, 0.72rem);
  }

  .product-card-kicker {
    font-size: max(13px, 0.62rem);
  }

  .product-card-link {
    font-size: max(13px, 0.7rem);
  }

  .product-card-meta {
    font-size: max(13px, 0.84rem);
  }

  .project-index {
    font-size: max(13px, 0.75rem);
  }

  .project-place {
    font-size: max(13px, 0.72rem);
  }

  .projects-counter {
    font-size: max(13px, 0.78rem);
  }

  .review-avatar {
    font-size: max(13px, 0.72rem);
  }

  .review-meta span {
    font-size: max(13px, 0.88rem);
  }

  .reviews-counter {
    font-size: max(13px, 0.78rem);
  }

  .stats span {
    font-size: max(13px, 0.78rem);
  }

  .text-link {
    font-size: max(13px, 0.78rem);
  }

  .why-num {
    font-size: max(13px, 0.72rem);
  }
}

@media (min-width: 1024px) {
  .breadcrumb {
    font-size: max(16px, 0.68rem);
  }

  .btn {
    font-size: max(16px, 0.78rem);
  }

  .catalog-count {
    font-size: max(16px, 0.72rem);
  }

  .catalog-tab {
    font-size: max(16px, 0.66rem);
  }

  .catalog-tab span {
    font-size: max(16px, 0.68rem);
  }

  .chip {
    font-size: max(16px, 0.72rem);
  }

  .contact-form label {
    font-size: max(16px, 0.85rem);
  }

  .contact-list span {
    font-size: max(16px, 0.7rem);
  }

  .eyebrow {
    font-size: max(16px, 0.7rem);
  }

  .footer-bottom {
    font-size: max(16px, 0.78rem);
  }

  .footer-col h3 {
    font-size: max(16px, 0.72rem);
  }

  .footer-social a {
    font-size: max(16px, 0.72rem);
  }

  .hero-feature-brand {
    font-size: max(16px, 0.88rem);
  }

  .hero-feature-sub {
    font-size: max(16px, 0.86rem);
  }

  .mobile-nav .btn {
    font-size: max(16px, 0.8rem);
  }

  .nav-desktop a {
    font-size: max(16px, 0.72rem);
  }

  .pd-colors li {
    font-size: max(16px, 0.82rem);
  }

  .pd-label {
    font-size: max(16px, 0.68rem);
  }

  .pd-spec dt {
    font-size: max(16px, 0.72rem);
  }

  .process-leader-num {
    font-size: max(16px, 0.72rem);
  }

  .process-num {
    font-size: max(16px, 0.75rem);
  }

  .process-step-body em {
    font-size: max(16px, 0.72rem);
  }

  .process-step-index {
    font-size: max(16px, 0.72rem);
  }

  .process-step-num {
    font-size: max(16px, 0.72rem);
  }

  .process-v2-num {
    font-size: max(16px, 0.78rem);
  }

  .process-v2-visual figcaption {
    font-size: max(16px, 0.88rem);
  }

  .process-visual-caption span {
    font-size: max(16px, 0.72rem);
  }

  .product-card-kicker {
    font-size: max(16px, 0.62rem);
  }

  .product-card-link {
    font-size: max(16px, 0.7rem);
  }

  .product-card-meta {
    font-size: max(16px, 0.84rem);
  }

  .project-index {
    font-size: max(16px, 0.75rem);
  }

  .project-place {
    font-size: max(16px, 0.72rem);
  }

  .projects-counter {
    font-size: max(16px, 0.78rem);
  }

  .review-avatar {
    font-size: max(16px, 0.72rem);
  }

  .review-meta span {
    font-size: max(16px, 0.88rem);
  }

  .reviews-counter {
    font-size: max(16px, 0.78rem);
  }

  .stats span {
    font-size: max(16px, 0.78rem);
  }

  .text-link {
    font-size: max(16px, 0.78rem);
  }

  .why-num {
    font-size: max(16px, 0.72rem);
  }

  /* small uppercase labels grew — calmer tracking so they don't sprawl */
  .breadcrumb,
  .btn,
  .catalog-count,
  .catalog-tab,
  .chip,
  .contact-list span,
  .eyebrow,
  .footer-col h3,
  .footer-social a,
  .nav-desktop a,
  .pd-label,
  .pd-spec dt,
  .process-step-body em,
  .product-card-kicker,
  .product-card-link,
  .project-place,
  .projects-counter,
  .reviews-counter,
  .text-link {
    letter-spacing: 0.08em;
  }
}

/* Desktop nav: bigger type needs more room — burger menu until 1240px */
@media (min-width: 900px) and (max-width: 1239px) {
  .menu-toggle {
    display: block;
    margin-left: 0.5rem;
  }

  .header-inner .header-cta {
    margin-left: auto;
  }

  .nav-desktop {
    display: none;
  }
}

@media (min-width: 1240px) {
  .nav-desktop {
    gap: clamp(1.1rem, 1.6vw, 1.6rem);
  }
}

/* ---- 3) Buttons: subtle hover + press ---- */
.btn,
.projects-btn,
.reviews-btn,
.catalog-tab,
.chip,
.pd-thumb,
.menu-toggle,
.contact-form button[type="submit"] {
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 160ms var(--press-ease),
    box-shadow 220ms ease,
    background-color 220ms ease,
    color 220ms ease,
    border-color 220ms ease,
    opacity 220ms ease;
  will-change: transform;
}

.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* soft light sweep on hover */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.18) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 700ms var(--press-ease);
  pointer-events: none;
}

.btn--light::after,
.btn--outline::after {
  background: linear-gradient(110deg, transparent 30%, rgba(18, 18, 18, 0.06) 50%, transparent 70%);
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px -10px rgba(13, 13, 13, 0.35);
  }

  .btn:hover::after {
    transform: translateX(120%);
  }

  .btn--solid:hover {
    opacity: 1;
    background: #262422;
  }

  .btn--ghost-light:hover {
    box-shadow: none;
  }

  .projects-btn:hover,
  .reviews-btn:hover,
  .pd-thumb:hover {
    transform: translateY(-1px);
  }
}

/* press: quick, small scale-down — feels physical, never bouncy */
.btn:active,
.contact-form button[type="submit"]:active {
  transform: translateY(0) scale(0.97);
  box-shadow: none;
  transition-duration: 80ms;
}

.projects-btn:active,
.reviews-btn:active,
.catalog-tab:active,
.chip:active,
.pd-thumb:active,
.menu-toggle:active {
  transform: scale(0.94);
  transition-duration: 80ms;
}

.btn:focus-visible,
.projects-btn:focus-visible,
.reviews-btn:focus-visible,
.catalog-tab:focus-visible,
.chip:focus-visible,
.pd-thumb:focus-visible,
.faq-q:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .projects-btn,
  .reviews-btn,
  .catalog-tab,
  .chip,
  .pd-thumb,
  .menu-toggle {
    transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
  }

  .btn::after {
    display: none;
  }

  .btn:hover,
  .btn:active,
  .projects-btn:active,
  .reviews-btn:active,
  .catalog-tab:active,
  .chip:active,
  .pd-thumb:active,
  .menu-toggle:active {
    transform: none;
  }
}


/* grid children may not force the row wider than the container */
.process-v2 > *,
.hero-grid > *,
.project-slide-inner > *,
.contact-grid > *,
.faq-layout > * {
  min-width: 0;
}

@media (min-width: 720px) {
  .process-v2-visual {
    aspect-ratio: auto;
    width: 100%;
  }
}

/* Paragraphs: Hanken Grotesk Regular 400 (headings/labels with their own font keep it) */
p {
  font-family: var(--font);
  font-weight: 400;
}

/* form controls & buttons don't always inherit in every browser */
button,
input,
textarea,
select,
.btn {
  font-family: var(--font);
}

/* =========================================
   O NAMA — editorial layout
   image composition (main + inset + badge) | copy + points + actions
========================================= */
.ab {
  overflow: hidden;
}

.ab-grid {
  display: grid;
  gap: clamp(3rem, 6vw, 5.5rem);
  align-items: center;
}

.ab-visual {
  position: relative;
  padding: 0 0 18% 0;
}

.ab-figure {
  margin: 0;
  overflow: hidden;
  background: var(--bg-mist);
}

.ab-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ab-figure--main {
  width: 82%;
  aspect-ratio: 4 / 5;
  border-radius: 4px;
}

.ab-figure--inset {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 46%;
  aspect-ratio: 4 / 5;
  border: 8px solid var(--bg);
  border-radius: 4px;
  box-shadow: 0 30px 60px -30px rgba(13, 13, 13, 0.35);
}

.ab-badge {
  position: absolute;
  left: 6%;
  bottom: 9%;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.25rem;
  background: var(--ink);
  color: var(--white);
  border-radius: 4px;
  box-shadow: 0 20px 40px -20px rgba(13, 13, 13, 0.5);
}

.ab-badge strong {
  font-family: var(--display);
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.ab-badge span {
  font-size: 0.9rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.75);
}

.ab-title {
  max-width: 14ch;
}

.ab-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}

.ab-lead {
  margin: 1.4rem 0 0;
  max-width: 36rem;
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink-soft);
}

.ab-text {
  margin: 1rem 0 0;
  max-width: 36rem;
  line-height: 1.7;
}

.ab-points {
  display: grid;
  gap: 1.5rem 2rem;
  margin: 2.25rem 0 0;
  padding: 2rem 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.ab-points li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
}

.ab-point-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  background: var(--bg-mist);
  color: var(--ink);
  border-radius: 4px;
}

.ab-points h3 {
  margin: 0.15rem 0 0.25rem;
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.ab-points p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.ab-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 2.25rem;
}

.ab-actions .text-link {
  align-self: center;
}

/* reveal: images settle from a slight zoom */
html.js-anim .ab-figure.reveal:not(.is-revealed) img {
  transform: scale(1.06);
}

@media (min-width: 600px) {
  .ab-points {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .ab-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  }

  .ab-visual {
    padding-bottom: 14%;
  }
}

@media (max-width: 599px) {
  .ab-badge {
    left: 0;
    bottom: 6%;
    padding: 0.8rem 1rem;
  }

  .ab-figure--inset {
    border-width: 6px;
  }
}

/* =========================================
   Letter-spacing -0.5px on all text except headings
========================================= */
body :not(h2, h3, h4, h5, h6, .hero-title, .section-title, .intro-heading, .cta-band-title, .footer-headline, .pd-title, .photo-band-text, .trust-item strong, .hero-stat-copy strong, .ab-badge strong, svg, svg *):not(:is(h2, h3, h4, h5, h6, .hero-title, .section-title, .intro-heading, .cta-band-title, .footer-headline, .pd-title, .photo-band-text) *) {
  letter-spacing: -0.5px !important;
}

/* FAQ questions are buttons, reviewer names are labels -> same text font */
.faq-q,
.faq-q span,
.review-meta cite {
  font-family: var(--font);
}

.faq-q span {
  font-weight: 500;
}

.review-meta cite {
  font-weight: 600;
}

/* Navbar (desktop + mobile menu) uses the same text font */
.nav-desktop a,
.mobile-nav a,
.header-cta {
  font-family: var(--font);
}

.mobile-nav a:not(.btn) {
  font-weight: 500;
  letter-spacing: -0.5px;
}

/* Outline button (shared; products.css has the same for product pages) */
.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: rgba(18, 18, 18, 0.3);
}

.btn--outline:hover {
  border-color: var(--ink);
}

/* Radovi: heading + button stacked on the left */
.rad-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.rad-head .section-title {
  max-width: 16ch;
}

.rad-head-btn {
  margin-top: 1.75rem;
}

/* =========================================
   SUDOPERE I SLAVINE — dark break section (home)
========================================= */
.ss-grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

.ss .section-title em {
  font-style: italic;
  font-weight: 500;
  color: #c9a57a;
}

.ss .section-lead {
  max-width: 34rem;
}

.ss-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.ss-brands li {
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
}

.ss-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2.25rem;
}

.ss-count {
  margin: 0;
  max-width: 17rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.6);
}

.ss-count strong {
  color: #fff;
  font-weight: 600;
}

.ss-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ss-item {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  color: var(--ink);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.ss-item-media {
  display: block;
  aspect-ratio: 1 / 1;
  background: #fff;
  overflow: hidden;
}

.ss-item-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10%;
  transition: transform 0.6s var(--ease);
}

.ss-item-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.8rem 0.95rem 1rem;
  border-top: 1px solid var(--line);
}

.ss-item-kicker {
  font-size: 0.75rem;
  color: var(--accent);
  line-height: 1.35;
}

.ss-item-name {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

@media (hover: hover) and (pointer: fine) {
  .ss-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 45px -25px rgba(0, 0, 0, 0.7);
  }

  .ss-item:hover .ss-item-media img {
    transform: scale(1.05);
  }
}

@media (min-width: 720px) {
  .ss-items {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

@media (min-width: 1100px) {
  .ss-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }
}

@media (min-width: 1024px) {
  .ss-item-kicker,
  .ss-brands li,
  .ss-count {
    font-size: max(16px, 0.75rem);
  }

}

/* =========================================
   Headings wrap evenly (no lone last word)
========================================= */
.section-title,
.intro-heading,
.cta-band-title,
.footer-headline,
.pd-title,
.hero-title {
  text-wrap: balance;
}

.section-lead,
.ab-lead,
.hero-lead {
  text-wrap: pretty;
}

/* Proces + Usluge intro: tighter block so lines wrap nicely */
.process-intro,
.services-intro {
  max-width: 34rem;
}

.process-title,
.services-title {
  max-width: none;
  margin-inline: auto;
}

.process-lead,
.services-lead {
  max-width: 28rem;
}

/* =========================================
   USLUGE — clean editorial cards
   hairline on top (animates to ink on hover), number + round icon,
   title, copy, quiet "Zatraži ponudu →"
========================================= */
.services-grid {
  gap: 2.75rem;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.9rem 0 0;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  box-shadow: none;
  transition: none;
}

.service-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.7s var(--ease);
}

.service-card:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--line);
}

.service-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.25rem;
}

.service-num {
  font-size: 0.9rem;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.service-card .service-icon {
  width: 3.25rem;
  height: 3.25rem;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  transition:
    background 0.35s var(--ease),
    color 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.service-card h3 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.3rem, 1.7vw, 1.55rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.service-card p {
  max-width: 24rem;
  font-size: 1rem;
  line-height: 1.6;
}

.service-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
}

.service-more span {
  transition: transform 0.35s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .service-card:hover::before {
    transform: scaleX(1);
  }

  .service-card:hover .service-icon {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--white);
  }

  .service-card:hover .service-more span {
    transform: translateX(4px);
  }
}

.services-cta {
  margin-top: clamp(2.75rem, 5vw, 3.75rem);
}

@media (min-width: 720px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 2.5rem;
  }
}

@media (min-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .service-num,
  .service-more {
    font-size: max(16px, 0.9rem);
  }
}

.service-card h3 {
  text-wrap: balance;
}

/* =========================================
   RADOVI — editorial horizontal gallery
   track bleeds to the right edge, first card aligns with the container
========================================= */
.rw {
  overflow: hidden;
}

.rw-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.rw-head .section-title {
  max-width: 15ch;
}

.rw-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.rw-count {
  margin-right: 0.9rem;
  font-size: 0.95rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.rw-controls .projects-btn:disabled {
  opacity: 0.35;
  cursor: default;
  transform: none;
}

.rw-track {
  --rw-gap: clamp(0.9rem, 1.6vw, 1.5rem);
  --rw-edge: calc((100% - var(--container)) / 2);
  display: flex;
  gap: var(--rw-gap);
  margin: 0;
  padding: 0 var(--rw-edge) 0.25rem;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--rw-edge);
  scrollbar-width: none;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
}

.rw-track::-webkit-scrollbar {
  display: none;
}

.rw-track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.rw-track.is-dragging .rw-media {
  pointer-events: none;
}

.rw-card {
  flex: 0 0 clamp(260px, 78vw, 340px);
  scroll-snap-align: start;
}

.rw-media {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--bg-mist);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  cursor: zoom-in;
}

.rw-track.is-dragging .rw-media,
.rw-track:active .rw-media {
  cursor: grabbing;
}

.rw-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
  -webkit-user-drag: none;
  user-select: none;
}

.rw-caption {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  padding-top: 1.1rem;
  margin-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.rw-num {
  padding-top: 0.2rem;
  font-size: 0.9rem;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.rw-caption h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.15rem, 1.5vw, 1.35rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.rw-caption p {
  margin: 0.4rem 0 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-body);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (hover: hover) and (pointer: fine) {
  .rw-card:hover .rw-media img {
    transform: scale(1.035);
  }
}

.rw-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 2.5rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.rw-progress {
  position: relative;
  flex: 1 1 14rem;
  height: 1px;
  background: var(--line);
  overflow: hidden;
}

.rw-progress span {
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform-origin: left center;
  transform: scaleX(0.2);
  transition: transform 0.25s linear;
}

/* Lightbox */
.rw-lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: clamp(1rem, 4vw, 3rem);
  border: 0;
  background: rgba(13, 13, 13, 0.94);
  color: var(--white);
}

.rw-lightbox[open] {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  animation: rwFade 0.3s var(--ease);
}

.rw-lightbox::backdrop {
  background: transparent;
}

@keyframes rwFade {
  from {
    opacity: 0;
  }
}

.rw-lb-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.rw-lb-figure img {
  max-width: 100%;
  max-height: calc(100dvh - 9rem);
  object-fit: contain;
}

.rw-lb-figure figcaption {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
}

.rw-lb-close {
  position: absolute;
  top: clamp(0.75rem, 2vw, 1.5rem);
  right: clamp(0.75rem, 2vw, 1.5rem);
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: border-color 0.25s, transform 160ms var(--press-ease);
}

.rw-lb-close:hover {
  border-color: #fff;
}

.rw-lb-close:active {
  transform: scale(0.94);
}

.rw-lightbox .projects-btn {
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  background: transparent;
}

.rw-lightbox .projects-btn:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

html.rw-lb-open {
  overflow: hidden;
}

@media (min-width: 720px) {
  .rw-card {
    flex-basis: clamp(300px, 40vw, 400px);
  }
}

@media (min-width: 1100px) {
  .rw-card {
    flex-basis: clamp(340px, 27vw, 420px);
  }
}

@media (max-width: 719px) {
  .rw-controls {
    display: none;
  }

  .rw-lightbox[open] {
    grid-template-columns: 1fr;
  }

  .rw-lb-nav {
    display: none;
  }
}

@media (min-width: 1024px) {
  .rw-count,
  .rw-num,
  .rw-caption p {
    font-size: max(16px, 0.9rem);
  }
}

/* Zašto Entero: banner removed -> no extra space under the cards */
#zasto .why-grid {
  margin-bottom: 0;
}

/* =========================================
   CALL CTA — phone is the main action
========================================= */
.btn--call {
  gap: 0.6rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.btn--call .btn-icon {
  flex-shrink: 0;
  margin-left: -0.15rem;
}

/* phone icon in the mobile header, next to the burger */
.header-call {
  display: none;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms var(--press-ease), background-color 220ms ease, border-color 220ms ease, color 220ms ease;
}

.header-call:active {
  transform: scale(0.94);
}

.site-header.is-scrolled .header-call,
.site-header.is-open .header-call,
.site-header--solid .header-call {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

@media (max-width: 899px) {
  .header-call {
    display: grid;
  }

  .header-inner .menu-toggle {
    margin-left: 0.25rem;
  }
}

/* secondary "ili pošalji upit" next to call buttons */
.services-cta {
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
}

.services-cta .text-link,
.cta-band-actions .text-link {
  align-self: center;
}

.cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
}

.text-link--light {
  color: rgba(255, 255, 255, 0.85);
}

.text-link--light:hover {
  color: #fff;
}

/* Hero: both CTAs equal width (width of the wider one) */
.hero--framed .hero-actions {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 0.75rem;
}

.hero--framed .hero-actions .btn {
  width: 100%;
  padding-inline: 1.75rem;
}

.hero--framed .hero-actions .btn {
  white-space: nowrap;
}

@media (max-width: 479px) {
  .hero--framed .hero-actions {
    display: grid;
    width: 100%;
    gap: 0.6rem;
  }

  .hero--framed .hero-actions .btn {
    padding-inline: 0.9rem;
  }
}

/* =========================================
   CTA — black section + kitchen sketch with dimensions
========================================= */
.cta-sketch {
  overflow: hidden;
}

.cta-sketch-grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.cta-sketch-copy {
  max-width: 36rem;
}

.cta-sketch .cta-band-title {
  color: #fff;
}

.cta-sketch .cta-band-lead {
  margin: 1.25rem 0 2rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 400;
}

.cta-sketch-art {
  position: relative;
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
}

/* faint drafting grid behind the drawing */
.cta-sketch-art::before {
  content: "";
  position: absolute;
  inset: -6% -4%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 45%, transparent 78%);
  mask-image: radial-gradient(ellipse at center, #000 45%, transparent 78%);
  pointer-events: none;
}

.cta-sketch-svg {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.cta-sketch-svg .sk-dim {
  stroke: #c9a57a;
}

.cta-sketch-svg text {
  font-family: var(--font);
  font-size: 15px;
  letter-spacing: 0.02em;
  fill: rgba(255, 255, 255, 0.82);
}

.cta-sketch-svg .sk-small {
  font-size: 10px;
  letter-spacing: 0.12em;
  fill: rgba(255, 255, 255, 0.45);
}

.cta-sketch-svg .sk-label text:not(.sk-small) {
  fill: #e2c9a6;
}

/* draw-on animation (only when JS animations are active) */
html.js-anim .cta-sketch-art .draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

html.js-anim .cta-sketch-art text {
  opacity: 0;
}

html.js-anim .cta-sketch-art.is-revealed .draw {
  animation: skDraw 1.6s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

html.js-anim .cta-sketch-art.is-revealed .sk--1 .draw { animation-delay: 0.1s; }
html.js-anim .cta-sketch-art.is-revealed .sk--2 .draw { animation-delay: 0.7s; }
html.js-anim .cta-sketch-art.is-revealed .sk--3 .draw { animation-delay: 1.3s; animation-duration: 1.1s; }
html.js-anim .cta-sketch-art.is-revealed .sk--4 .draw { animation-delay: 1.8s; animation-duration: 0.9s; }

html.js-anim .cta-sketch-art.is-revealed text {
  animation: skFade 0.8s ease forwards;
  animation-delay: 2.1s;
}

@keyframes skDraw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes skFade {
  to {
    opacity: 1;
  }
}

/* the art itself shouldn't slide in — the lines do the work */
html.js-anim .cta-sketch-art.reveal:not(.is-revealed) {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html.js-anim .cta-sketch-art .draw {
    stroke-dashoffset: 0;
    animation: none !important;
  }

  html.js-anim .cta-sketch-art text {
    opacity: 1;
    animation: none !important;
  }
}

@media (min-width: 960px) {
  .cta-sketch-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  }
}

@media (max-width: 959px) {
  .cta-sketch-art {
    max-width: 560px;
  }
}

/* =========================================
   KONTAKT — call-first info column + clean form panel
========================================= */
.ct-grid {
  display: grid;
  gap: clamp(3rem, 6vw, 5.5rem);
  align-items: start;
}

.ct-info .section-title {
  max-width: 12ch;
}

.ct-lead {
  max-width: 30rem;
}

/* big phone link */
.ct-call {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.1rem;
  margin-top: 2.25rem;
  padding: 1.35rem 1.5rem;
  background: var(--ink);
  color: var(--white);
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms var(--press-ease), background-color 0.3s ease;
}

.ct-call-icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
}

.ct-call-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.ct-call-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.ct-call-number {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.ct-call-arrow {
  font-size: 1.4rem;
  transition: transform 0.35s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .ct-call:hover {
    background: #262422;
  }

  .ct-call:hover .ct-call-arrow {
    transform: translateX(5px);
  }
}

.ct-call:active {
  transform: scale(0.985);
}

/* info rows */
.ct-list {
  margin: 2rem 0 0;
  border-top: 1px solid var(--line);
}

.ct-row {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
}

.ct-row dt {
  font-size: 0.9rem;
  color: var(--muted);
}

.ct-row dd {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  color: var(--ink);
}

.ct-row dd span {
  font-size: 0.92rem;
  color: var(--text-body);
}

.ct-row dd a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.25s;
}

.ct-row dd a:hover {
  text-decoration-color: var(--ink);
}

.ct-social {
  flex-direction: row !important;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem !important;
}

/* form panel */
.ct-form {
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--white);
  border: 1px solid var(--line);
}

.ct-form-head h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  letter-spacing: -0.025em;
}

.ct-form-head p {
  margin: 0.4rem 0 0;
  font-size: 0.95rem;
}

.ct-types {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.75rem 0 0;
  padding: 0;
  border: 0;
}

.ct-types legend {
  width: 100%;
  margin-bottom: 0.7rem;
  padding: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.ct-types label {
  position: relative;
  cursor: pointer;
}

.ct-types input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ct-types span {
  display: inline-flex;
  align-items: center;
  min-height: 2.6rem;
  padding: 0 1.1rem;
  border: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 160ms var(--press-ease);
}

.ct-types label:hover span {
  border-color: rgba(18, 18, 18, 0.35);
}

.ct-types input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.ct-types input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.ct-types label:active span {
  transform: scale(0.96);
}

.ct-fields {
  display: grid;
  gap: 1.5rem 1.75rem;
  margin-top: 1.9rem;
}

.ct-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ct-field > span {
  font-size: 0.9rem;
  color: var(--muted);
}

.ct-field input,
.ct-field textarea {
  width: 100%;
  padding: 0.55rem 0 0.7rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.05rem;
  outline: none;
  transition: border-color 0.25s;
}

.ct-field textarea {
  resize: vertical;
  min-height: 6.5rem;
}

.ct-field input::placeholder,
.ct-field textarea::placeholder {
  color: #a19c94;
}

.ct-field input:focus,
.ct-field textarea:focus {
  border-bottom-color: var(--ink);
}

.ct-form .form-status {
  margin: 1.25rem 0 0;
}

.ct-submit {
  width: 100%;
  margin-top: 2rem;
  min-height: 3.4rem;
  gap: 0.6rem;
}

.ct-note {
  margin: 0.9rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

@media (min-width: 600px) {
  .ct-fields {
    grid-template-columns: 1fr 1fr;
  }

  .ct-field--full {
    grid-column: 1 / -1;
  }
}

@media (min-width: 960px) {
  .ct-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .ct-info {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
}

@media (max-width: 479px) {
  .ct-call {
    padding: 1.1rem;
    gap: 0.8rem;
  }

  .ct-call-icon {
    width: 2.75rem;
    height: 2.75rem;
  }

  .ct-row {
    grid-template-columns: 6.5rem 1fr;
  }
}

@media (min-width: 1024px) {
  .ct-call-label,
  .ct-row dt,
  .ct-row dd span,
  .ct-types legend,
  .ct-field > span,
  .ct-note {
    font-size: max(16px, 0.9rem);
  }
}

/* Hero H1 line: always the text font (explicit) */
.hero h1.eyebrow,
h1.eyebrow {
  font-family: "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
}

/* =========================================
   KONTAKT — equal column heights
========================================= */
@media (min-width: 960px) {
  .ct-grid {
    align-items: stretch;
  }

  .ct-info {
    position: static;
    display: flex;
    flex-direction: column;
  }

  .ct-list {
    margin-top: auto;
    padding-top: 0;
  }

  .ct-call {
    margin-bottom: 2rem;
  }

  .ct-form {
    display: flex;
    flex-direction: column;
  }

  .ct-fields {
    flex: 1;
    grid-template-rows: auto auto 1fr;
  }

  .ct-field--full:last-child {
    display: flex;
    flex-direction: column;
  }

  .ct-field--full:last-child textarea {
    flex: 1;
  }
}

/* =========================================
   Form status — clean inline message
========================================= */
.ct-form .form-status {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin: 1.5rem 0 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-left-width: 3px;
  background: var(--bg);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.ct-form .form-status[hidden] {
  display: none;
}

.ct-form .form-status.is-visible {
  opacity: 1;
  transform: none;
}

.ct-form .form-status.is-ok {
  border-left-color: #3f7a55;
}

.ct-form .form-status.is-err {
  border-left-color: #a8473b;
}

.form-status-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
}

.is-ok .form-status-icon {
  background: rgba(63, 122, 85, 0.12);
  color: #3f7a55;
}

.is-err .form-status-icon {
  background: rgba(168, 71, 59, 0.1);
  color: #a8473b;
}

.form-status-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-top: 0.2rem;
}

.form-status-text strong {
  font-weight: 600;
  color: var(--ink);
}

.form-status-text span {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.5;
}

/* submit loading state */
.ct-submit.is-loading {
  cursor: progress;
  opacity: 0.85;
}

.btn-spinner {
  width: 16px;
  height: 16px;
  margin-right: 0.6rem;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btnSpin 0.8s linear infinite;
}

@keyframes btnSpin {
  to {
    transform: rotate(360deg);
  }
}

/* contact: photo fills the space so both columns stay equal */
.ct-photo {
  display: none;
  margin: 0;
  overflow: hidden;
  background: var(--bg-mist);
}

.ct-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

@media (min-width: 960px) {
  .ct-photo {
    display: block;
    flex: 1 1 0;
    min-height: 10rem;
    margin-bottom: 2rem;
  }

  .ct-call {
    margin-bottom: 1.25rem;
  }

  .ct-list {
    margin-top: 0;
  }
}

/* =========================================
   FOOTER — same dark style, cleaner structure
========================================= */
.ft {
  padding-top: clamp(4rem, 9vw, 6.5rem);
}

.ft-top {
  display: grid;
  gap: 2rem;
  align-items: end;
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.ft .footer-headline {
  text-wrap: balance;
}

.ft-top-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
}

.ft-main {
  display: grid;
  gap: 2.75rem 2rem;
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.ft-brand .footer-logo {
  width: min(190px, 60vw);
  margin-bottom: 1.4rem;
}

.ft-brand p {
  margin: 0;
  max-width: 24rem;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.65;
}

.ft-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
}

.ft-social a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.85);
  transition: border-color 0.25s, color 0.25s, background-color 0.25s, transform 160ms var(--press-ease);
}

.ft-social a:hover {
  border-color: #fff;
  color: #fff;
}

.ft-social a:active {
  transform: scale(0.96);
}

.ft-title {
  margin: 0 0 1.25rem;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.5px;
  color: #c9a57a;
}

.ft-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ft-col a {
  position: relative;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.25s;
}

.ft-col ul a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s var(--ease);
}

.ft-col a:hover {
  color: #fff;
}

.ft-col ul a:hover::after {
  transform: scaleX(1);
}

.ft-contact dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ft-contact dt {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

.ft-contact dd {
  margin: 0.15rem 0 0;
  color: rgba(255, 255, 255, 0.85);
}

.ft-contact dd a[href^="tel"] {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}

.ft-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.ft-bottom p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.45);
}

.ft-top-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.25s;
}

.ft-top-link span {
  transition: transform 0.35s var(--ease);
}

.ft-top-link:hover {
  color: #fff;
}

.ft-top-link:hover span {
  transform: translateY(-3px);
}

@media (min-width: 720px) {
  .ft-main {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .ft-top {
    grid-template-columns: 1fr auto;
  }

  .ft-main {
    grid-template-columns: 1.5fr 0.8fr 0.9fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 719px) {
  .ft-bottom-mid {
    display: none;
  }
}

@media (min-width: 1024px) {
  .ft-title,
  .ft-contact dt,
  .ft-bottom p,
  .ft-top-link {
    font-size: max(16px, 0.85rem);
  }
}

@media (max-width: 719px) {
  .ft-main {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 1.25rem;
  }

  .ft-brand,
  .ft-contact {
    grid-column: 1 / -1;
  }
}

/* footer: single call button pushed to the right */
.ft-top-actions {
  justify-content: flex-end;
}

@media (min-width: 960px) {
  .ft-top-actions {
    justify-self: end;
  }
}

/* contact: no photo -> info list sits at the bottom, aligned with the form */
@media (min-width: 960px) {
  .ct-list {
    margin-top: auto;
  }
}

/* intro skipped for section links */
html.no-intro .intro-loader {
  display: none !important;
}

/* =========================================
   HERO (hx) — editorial, square, hairlines, gold accents
========================================= */
.hx {
  display: flex;
  align-items: stretch;
  min-height: 100svh;
}

.hx .hero-media img {
  object-position: center 40%;
}

.hx-overlay {
  background:
    linear-gradient(90deg, rgba(13, 13, 13, 0.82) 0%, rgba(13, 13, 13, 0.55) 42%, rgba(13, 13, 13, 0.2) 100%),
    linear-gradient(180deg, rgba(13, 13, 13, 0.5) 0%, rgba(13, 13, 13, 0) 22%, rgba(13, 13, 13, 0) 55%, rgba(13, 13, 13, 0.85) 100%);
}

.hx-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: clamp(2.5rem, 7vh, 4.5rem);
  padding: calc(var(--header-h) + 3rem) 0 clamp(1.75rem, 4vh, 2.75rem);
}

.hx-main {
  max-width: 46rem;
}

.hx-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.75);
}

.hx-eyebrow::before {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: #c9a57a;
}

.hx-title {
  margin: 0;
  font-size: clamp(2.8rem, 7.6vw, 6.4rem);
  line-height: 0.93;
  letter-spacing: -0.035em;
  max-width: none;
}

.hx-title em {
  font-style: italic;
  font-weight: 500;
  color: #e2c9a6;
}

.hx-lead {
  max-width: 33rem;
  margin-top: 1.6rem;
  color: rgba(255, 255, 255, 0.82);
}

.hx-actions {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.hx-actions .btn {
  width: 100%;
  padding-inline: 1.75rem;
  white-space: nowrap;
}

/* bottom info bar */
.hx-bar {
  display: grid;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.hx-cell {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.35rem 0;
  color: #fff;
}

.hx-cell + .hx-cell {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hx-label {
  font-size: 0.85rem;
  color: #c9a57a;
}

.hx-value {
  display: flex;
  flex-direction: column;
  font-family: var(--display);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.hx-sub {
  margin-top: 0.25rem;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: -0.5px;
  color: rgba(255, 255, 255, 0.6);
}

.hx-project {
  flex-direction: row;
  align-items: center;
  gap: 1.1rem;
}

.hx-thumb {
  flex-shrink: 0;
  width: 4.75rem;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #222;
}

.hx-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.hx-cell-copy {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.hx-link {
  margin-top: 0.2rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.25s;
}

.hx-link span {
  display: inline-block;
  transition: transform 0.35s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .hx-project:hover .hx-thumb img {
    transform: scale(1.06);
  }

  .hx-project:hover .hx-link {
    color: #fff;
  }

  .hx-project:hover .hx-link span {
    transform: translateX(4px);
  }
}

@media (min-width: 900px) {
  .hx-bar {
    grid-template-columns: 1.3fr 1fr 1fr;
  }

  .hx-cell {
    padding: 1.6rem 2rem 0.25rem;
  }

  .hx-cell:first-child {
    padding-left: 0;
  }

  .hx-cell + .hx-cell {
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
  }
}

@media (min-width: 900px) and (max-height: 820px) {
  .hx-inner {
    gap: 2rem;
    padding-top: calc(var(--header-h) + 1.5rem);
  }

  .hx-title {
    font-size: clamp(2.8rem, 6.2vw, 5rem);
  }

  .hx-lead {
    margin-top: 1.1rem;
  }

  .hx-actions {
    margin-top: 1.5rem;
  }

  .hx-cell {
    padding-top: 1.2rem;
  }
}

@media (max-width: 899px) {
  .hx-bar .hx-cell:not(.hx-project) {
    display: none;
  }

  .hx-cell {
    padding: 1.25rem 0 0.25rem;
  }
}

@media (max-width: 479px) {
  .hx-actions {
    display: grid;
    width: 100%;
    gap: 0.6rem;
  }

  .hx-actions .btn {
    padding-inline: 0.9rem;
  }
}

@media (min-width: 1024px) {
  .hx-label,
  .hx-sub,
  .hx-link {
    font-size: max(16px, 0.85rem);
  }
}

/* =========================================
   HERO — framed project on the right with dimension lines
========================================= */
.hx-row {
  display: grid;
  gap: 3rem;
  align-items: end;
}

.hx-art {
  display: none;
  position: relative;
  margin: 0;
  padding: 2.1rem 2.4rem 0 0;
  justify-self: end;
}

.hx-art-frame {
  display: block;
  height: clamp(260px, 44vh, 470px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #222;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}

.hx-art-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hx-art figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 1rem;
}

.hx-art-name {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}

/* dimension lines (gold, with end ticks) */
.hx-dim {
  position: absolute;
  color: #e2c9a6;
}

.hx-dim::before {
  content: "";
  position: absolute;
  background: #c9a57a;
}

.hx-dim span {
  position: absolute;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  background: transparent;
}

.hx-dim--top {
  top: 0.55rem;
  left: 0;
  right: 2.4rem;
  height: 14px;
  border-left: 1px solid #c9a57a;
  border-right: 1px solid #c9a57a;
}

.hx-dim--top::before {
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
}

.hx-dim--top span {
  left: 50%;
  top: -1.15rem;
  transform: translateX(-50%);
}

.hx-dim--side {
  top: 2.1rem;
  right: 0.75rem;
  width: 14px;
  height: clamp(260px, 44vh, 470px);
  border-top: 1px solid #c9a57a;
  border-bottom: 1px solid #c9a57a;
}

.hx-dim--side::before {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
}

.hx-dim--side span {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(90deg);
  padding: 0 0.35rem;
  background: rgba(13, 13, 13, 0.55);
}

/* draw-in of the dimension lines after the hero entrance */
html.js-anim .hx-art .hx-dim--top::before {
  transform: scaleX(0);
  transition: transform 1.1s var(--ease) 0.9s;
}

html.js-anim .hx-art .hx-dim--side::before {
  transform: scaleY(0);
  transition: transform 1.1s var(--ease) 1.1s;
}

html.js-anim .hx-art.is-revealed .hx-dim::before {
  transform: none;
}

@media (min-width: 1100px) {
  .hx-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .hx-art {
    display: block;
  }
}

@media (min-width: 1100px) and (max-height: 820px) {
  .hx-art-frame,
  .hx-dim--side {
    height: clamp(220px, 40vh, 330px);
  }
}

@media (min-width: 1024px) {
  .hx-dim span {
    font-size: max(14px, 0.8rem);
  }
}

.hx-art {
  width: min-content;
}

.hx-art-frame {
  width: auto;
}

/* =========================================
   CASE STUDY (projekti/*)
========================================= */
.cs-hero {
  padding-top: calc(var(--header-h) + clamp(1.5rem, 4vw, 2.5rem));
}

.cs-hero-grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

.cs-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.3rem, 5.2vw, 4.2rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.cs-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}

.cs-lead {
  margin: 1.4rem 0 0;
  max-width: 36rem;
  font-size: clamp(1.08rem, 1.5vw, 1.22rem);
  line-height: 1.65;
  color: var(--ink-soft);
}

.cs-specs {
  margin-top: 2.25rem;
}

.cs-hero-media {
  margin: 0;
}

.cs-hero-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--bg-mist);
}

.cs-hero-media figcaption,
.cs-g figcaption {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--muted);
}

.cs-story-grid {
  display: grid;
  gap: 1.75rem 4rem;
}

.cs-story-grid .section-title {
  max-width: 14ch;
  text-wrap: balance;
}

.cs-prose p {
  margin: 0 0 1.1rem;
  max-width: 38rem;
  font-size: 1.08rem;
  line-height: 1.75;
}

.cs-prose p:last-child {
  margin-bottom: 0;
}

.cs-sec-head {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.cs-sec-head .section-title {
  max-width: 16ch;
}

.cs-steps {
  display: grid;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cs-step {
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.cs-step-num {
  display: block;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.cs-step h3 {
  margin: 0 0 0.6rem;
  font-family: var(--display);
  font-size: clamp(1.25rem, 1.7vw, 1.5rem);
  letter-spacing: -0.025em;
}

.cs-step p {
  margin: 0;
  line-height: 1.65;
}

.cs-gallery {
  display: grid;
  gap: 1.5rem;
}

.cs-g {
  margin: 0;
}

.cs-g img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--bg-mist);
}

@media (min-width: 720px) {
  .cs-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 2.5rem;
  }

  .cs-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .cs-g--wide {
    grid-column: 1 / -1;
  }

  .cs-g--wide img {
    aspect-ratio: 16 / 9;
  }
}

@media (min-width: 960px) {
  .cs-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  }

  .cs-hero-media {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
  }

  .cs-story-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }
}

@media (min-width: 1100px) {
  .cs-steps {
    grid-template-columns: repeat(4, 1fr);
  }

  .cs-gallery {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .cs-g--wide {
    grid-column: auto;
  }

  .cs-g--wide img,
  .cs-g img {
    aspect-ratio: 4 / 5;
  }
}

@media (min-width: 1024px) {
  .cs-hero-media figcaption,
  .cs-g figcaption,
  .cs-step-num {
    font-size: max(16px, 0.9rem);
  }
}

.rw-case {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
}

.rw-case span {
  display: inline-block;
  transition: transform 0.35s var(--ease);
}

.rw-case:hover span {
  transform: translateX(4px);
}

.cs-hero-media img,
.cs-g img {
  height: auto;
}

/* solid (light) header — shared, also needed on the home page now */
.site-header--solid {
  background: rgba(244, 243, 240, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.site-header--solid .logo-img--light {
  opacity: 0;
  pointer-events: none;
}

.site-header--solid .logo-img--dark {
  opacity: 1;
}

.site-header--solid .nav-desktop a {
  color: var(--ink);
}

.site-header--solid .nav-desktop a:hover {
  color: var(--accent);
}

.site-header--solid .menu-toggle span {
  background: var(--ink);
}

.site-header--solid:not(.is-scrolled):not(.is-open) .header-cta {
  background: var(--ink);
  color: var(--white);
  border-color: transparent;
}

/* =========================================
   HERO (hs) — split editorial: copy on cream | full-height photo
========================================= */
.hs {
  display: grid;
  min-height: 100svh;
  padding-top: var(--header-h);
  background: var(--bg);
}

.hs-copy {
  display: flex;
  align-items: center;
  padding: clamp(2.5rem, 7vh, 4.5rem) 0 clamp(2.5rem, 6vh, 3.5rem);
}

.hs-copy-inner {
  width: var(--container);
  margin-inline: auto;
}

.hs-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 1.75rem;
  color: var(--accent);
}

.hs-eyebrow::before {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: currentColor;
}

.hs-title {
  margin: 0;
  max-width: 11ch;
  font-family: var(--display);
  font-size: clamp(2.9rem, 6.4vw, 6rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.045em;
  color: var(--ink);
  text-wrap: balance;
}

.hs-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}

.hs-lead {
  max-width: 31rem;
  margin: 1.6rem 0 0;
  font-size: clamp(1.08rem, 1.35vw, 1.22rem);
  line-height: 1.6;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.hs-actions {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.hs-actions .btn {
  width: 100%;
  padding-inline: 1.75rem;
  white-space: nowrap;
}

.hs-facts {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 0 clamp(1.5rem, 3vw, 2.75rem);
  margin: clamp(2.5rem, 6vh, 3.75rem) 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.hs-facts dt {
  font-family: var(--display);
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.hs-facts dd {
  margin: 0.45rem 0 0;
  max-width: 9.5rem;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--muted);
}

/* photo side */
.hs-visual {
  position: relative;
  min-height: 70svh;
  overflow: hidden;
  background: var(--bg-mist);
}

.hs-figure {
  position: absolute;
  inset: 0;
  margin: 0;
}

.hs-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}

html.js-anim .hs-figure.hero-anim:not(.is-revealed) {
  transform: none;
  opacity: 1;
}

html.js-anim .hs-figure:not(.is-revealed) img {
  transform: scale(1.06);
}

.hs-figure img {
  transition: transform 2.2s var(--reveal-ease);
}

/* featured project card on the photo */
.hs-case {
  position: absolute;
  left: clamp(1rem, 2.5vw, 2rem);
  right: clamp(1rem, 2.5vw, 2rem);
  bottom: clamp(1rem, 2.5vw, 2rem);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  max-width: 25rem;
  padding: 0.6rem 1.25rem 0.6rem 0.6rem;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 24px 50px -24px rgba(13, 13, 13, 0.45);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.hs-case-thumb {
  width: 4rem;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-mist);
}

.hs-case-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hs-case-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hs-case-label {
  font-size: 0.85rem;
  color: var(--accent);
}

.hs-case-name {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hs-case-arrow {
  font-size: 1.2rem;
  transition: transform 0.35s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .hs-case:hover {
    transform: translateY(-3px);
    box-shadow: 0 30px 60px -24px rgba(13, 13, 13, 0.55);
  }

  .hs-case:hover .hs-case-arrow {
    transform: translateX(4px);
  }
}

/* vertical gold dimension line along the photo's left edge */
.hs-dim {
  position: absolute;
  top: clamp(1.5rem, 4vh, 2.5rem);
  bottom: clamp(7.5rem, 16vh, 9rem);
  left: clamp(1rem, 2.5vw, 2rem);
  width: 14px;
  border-top: 1px solid #e2c9a6;
  border-bottom: 1px solid #e2c9a6;
}

.hs-dim::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: #e2c9a6;
}

.hs-dim span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
  padding: 0.2rem 0.45rem;
  background: rgba(13, 13, 13, 0.55);
  color: #f1e3cf;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 1000px) {
  .hs {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }

  .hs-copy-inner {
    width: auto;
    margin: 0;
    padding-left: calc((100vw - min(1420px, calc(100vw - clamp(2.5rem, 6vw, 6rem)))) / 2);
    padding-right: clamp(2rem, 4vw, 4rem);
  }

  .hs-visual {
    min-height: 0;
  }
}

@media (min-width: 1000px) and (max-height: 820px) {
  .hs-title {
    font-size: clamp(2.8rem, 5.2vw, 4.6rem);
  }

  .hs-lead {
    margin-top: 1.1rem;
  }

  .hs-actions {
    margin-top: 1.5rem;
  }

  .hs-facts {
    margin-top: 1.75rem;
    padding-top: 1.1rem;
  }
}

@media (max-width: 999px) {
  .hs {
    min-height: 0;
  }
}

@media (max-width: 599px) {
  .hs-facts {
    grid-template-columns: repeat(3, 1fr);
    gap: 0 1rem;
  }

  .hs-facts dd {
    font-size: 0.85rem;
  }

  .hs-visual {
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .hs-case {
    max-width: none;
  }
}

@media (max-width: 479px) {
  .hs-actions {
    display: grid;
    width: 100%;
    gap: 0.6rem;
  }

  .hs-actions .btn {
    padding-inline: 0.9rem;
  }
}

@media (min-width: 1024px) {
  .hs-facts dd,
  .hs-case-label {
    font-size: max(16px, 0.85rem);
  }

  .hs-dim span {
    font-size: max(14px, 0.8rem);
  }
}

/* project card anchored bottom-right (covers the photo watermark) */
.hs-case {
  left: auto;
  width: min(25rem, calc(100% - 2 * clamp(1rem, 2.5vw, 2rem)));
}

@media (max-width: 599px) {
  .hs-case {
    left: 1rem;
    right: 1rem;
    width: auto;
  }
}

/* crop the watermark out of the hero photo */
.hs-figure img {
  transform: scale(1.14);
  transform-origin: 40% 22%;
}

html.js-anim .hs-figure:not(.is-revealed) img {
  transform: scale(1.2);
}

/* =========================================
   HERO right side — blurred backdrop + finished-project showcase
========================================= */
.hs-visual {
  display: grid;
  place-items: center;
  padding: clamp(2rem, 5vh, 3.5rem) clamp(1.5rem, 4vw, 3.5rem);
  background: #1a1816;
}

.hs-bg {
  position: absolute;
  inset: -40px;
  overflow: hidden;
}

.hs-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(28px) saturate(0.9);
  transform: scale(1.1);
}

.hs-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(20, 18, 16, 0.15) 0%, rgba(20, 18, 16, 0.55) 100%),
    rgba(30, 26, 22, 0.25);
}

.hs-showcase {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(100%, 25rem);
  padding: 1.1rem 1.1rem 1.35rem;
  background: rgba(250, 250, 248, 0.96);
  color: var(--ink);
  box-shadow:
    0 50px 90px -40px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.4);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

.hs-show-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}

.hs-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.7rem 0.35rem 0.55rem;
  border: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.hs-badge svg {
  color: #3f7a55;
}

.hs-show-num {
  font-size: 0.85rem;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.hs-show-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  max-height: calc(100svh - var(--header-h) - 17rem);
  overflow: hidden;
  background: var(--bg-mist);
}

.hs-show-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}

/* small gold dimension marks on the photo */
.hs-show-dim {
  position: absolute;
  z-index: 1;
  color: #f1e3cf;
}

.hs-show-dim::before {
  content: "";
  position: absolute;
  background: rgba(241, 227, 207, 0.85);
}

.hs-show-dim span {
  position: absolute;
  padding: 0.1rem 0.35rem;
  background: rgba(13, 13, 13, 0.5);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.hs-show-dim--top {
  top: 0.9rem;
  left: 0.9rem;
  right: 0.9rem;
  height: 10px;
  border-left: 1px solid rgba(241, 227, 207, 0.85);
  border-right: 1px solid rgba(241, 227, 207, 0.85);
}

.hs-show-dim--top::before {
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
}

.hs-show-dim--top span {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.hs-show-dim--side {
  top: 2.1rem;
  bottom: 0.9rem;
  right: 0.9rem;
  width: 10px;
  border-top: 1px solid rgba(241, 227, 207, 0.85);
  border-bottom: 1px solid rgba(241, 227, 207, 0.85);
}

.hs-show-dim--side::before {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
}

.hs-show-dim--side span {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(90deg);
}

.hs-show-body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.1rem 0.2rem 0;
}

.hs-show-title {
  font-family: var(--display);
  font-size: clamp(1.25rem, 1.7vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hs-show-meta {
  font-size: 0.9rem;
  color: var(--muted);
}

.hs-show-link {
  margin-top: 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  font-weight: 500;
}

.hs-show-link span {
  display: inline-block;
  transition: transform 0.35s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .hs-showcase:hover {
    transform: translateY(-4px);
    box-shadow:
      0 60px 100px -40px rgba(0, 0, 0, 0.75),
      0 0 0 1px rgba(255, 255, 255, 0.5);
  }

  .hs-showcase:hover .hs-show-media img {
    transform: scale(1.04);
  }

  .hs-showcase:hover .hs-show-link span {
    transform: translateX(4px);
  }
}

@media (max-width: 999px) {
  .hs-visual {
    padding: 3rem 1.25rem;
  }

  .hs-show-media {
    max-height: none;
  }
}

@media (min-width: 1000px) and (max-height: 820px) {
  .hs-showcase {
    width: min(100%, 21rem);
    padding: 0.85rem 0.85rem 1rem;
  }

  .hs-show-head {
    margin-bottom: 0.65rem;
  }

  .hs-show-body {
    padding-top: 0.8rem;
  }

  .hs-show-link {
    margin-top: 0.5rem;
    padding-top: 0.6rem;
  }
}

@media (min-width: 1024px) {
  .hs-badge,
  .hs-show-num,
  .hs-show-meta {
    font-size: max(15px, 0.85rem);
  }
}

.hs-show-media {
  max-height: calc(100svh - var(--header-h) - 20rem);
}

.hs-show-media img {
  transform: scale(1.14);
  transform-origin: 45% 18%;
}

@media (hover: hover) and (pointer: fine) {
  .hs-showcase:hover .hs-show-media img {
    transform: scale(1.18);
  }
}

@media (max-width: 999px) {
  .hs-show-media {
    max-height: none;
  }
}

/* showcase: fill the right panel with even breathing room */
@media (min-width: 1000px) {
  .hs-visual {
    display: flex;
    padding: clamp(2.25rem, 4.5vh, 3.5rem) clamp(2.25rem, 3.5vw, 3.75rem);
  }

  .hs-showcase {
    width: 100%;
    height: 100%;
    padding: clamp(1.1rem, 1.6vw, 1.6rem) clamp(1.1rem, 1.6vw, 1.6rem) clamp(1.25rem, 2vw, 1.75rem);
  }

  .hs-show-media {
    flex: 1 1 auto;
    min-height: 0;
    aspect-ratio: auto;
    max-height: none;
  }

  .hs-show-media img {
    position: absolute;
    inset: 0;
    transform: scale(1.08);
    transform-origin: 45% 22%;
  }

  .hs-showcase:hover .hs-show-media img {
    transform: scale(1.11);
  }

  .hs-show-head {
    margin-bottom: 1.1rem;
  }

  .hs-show-body {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.4rem 2rem;
    padding-top: 1.3rem;
  }

  .hs-show-text {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
  }

  .hs-show-title {
    font-size: clamp(1.4rem, 2vw, 1.9rem);
  }

  .hs-show-link {
    margin: 0;
    padding: 0;
    border: 0;
    white-space: nowrap;
  }
}

@media (min-width: 1000px) and (max-height: 820px) {
  .hs-showcase {
    width: 100%;
    padding: 1rem 1rem 1.1rem;
  }
}

/* showcase: same proportions, 25% smaller, centered in the panel */
@media (min-width: 1000px) {
  .hs-visual {
    align-items: center;
    justify-content: center;
  }

  .hs-showcase {
    width: 75%;
    height: 75%;
    margin: auto;
  }

  .hs-show-title {
    font-size: clamp(1.2rem, 1.6vw, 1.55rem);
  }
}

@media (min-width: 1000px) and (max-height: 820px) {
  .hs-showcase {
    width: 75%;
  }
}

/* =========================================
   HERO — subtle measuring sketch drawn on the blurred backdrop
========================================= */
.hs-sketch {
  position: absolute;
  inset: clamp(1rem, 2.5vw, 2rem);
  width: calc(100% - 2 * clamp(1rem, 2.5vw, 2rem));
  height: calc(100% - 2 * clamp(1rem, 2.5vw, 2rem));
  z-index: 0;
  pointer-events: none;
  stroke: rgba(246, 238, 226, 0.26);
}

.hs-sketch .hs-sk--2 {
  stroke: rgba(226, 201, 166, 0.38);
}

.hs-sketch text {
  font-family: var(--font);
  font-size: 13px;
  letter-spacing: 0.06em;
  fill: rgba(241, 227, 207, 0.45);
}

/* drawing loop is driven by js/hero-sketch.js (Web Animations API) */
.hs-sketch path {
  stroke-linecap: round;
}

/* =========================================
   FRONTOVI — materials + catalog of fronts
========================================= */
.fr .section-title {
  max-width: 14ch;
}

.fr-materials {
  display: grid;
  gap: 2rem;
  margin: 0 0 clamp(3rem, 6vw, 4.5rem);
  padding: 0;
  list-style: none;
}

.fr-materials li {
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.fr-mat-num {
  display: block;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.fr-materials h3 {
  margin: 0 0 0.55rem;
  font-family: var(--display);
  font-size: clamp(1.15rem, 1.5vw, 1.35rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.fr-materials p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
}

/* catalog "sheet" */
.fr-catalog {
  padding: clamp(1.25rem, 3vw, 2.5rem);
  background: #f1f1ec;
  border: 1px solid var(--line);
}

.fr-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.fr-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.6rem;
  padding: 0 1rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 160ms var(--press-ease);
}

.fr-tab span {
  font-size: 0.8rem;
  color: var(--muted);
}

.fr-tab:hover {
  border-color: rgba(18, 18, 18, 0.35);
}

.fr-tab:active {
  transform: scale(0.96);
}

.fr-tab.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.fr-tab.is-active span {
  color: rgba(255, 255, 255, 0.6);
}

.fr-panel-desc {
  margin: 1.25rem 0 1.75rem;
  max-width: 40rem;
  font-style: italic;
  color: var(--text-body);
}

.fr-panel.is-entering .fr-item {
  animation: frIn 0.6s var(--ease) both;
}

.fr-panel.is-entering .fr-item:nth-child(2) { animation-delay: 0.04s; }
.fr-panel.is-entering .fr-item:nth-child(3) { animation-delay: 0.08s; }
.fr-panel.is-entering .fr-item:nth-child(4) { animation-delay: 0.12s; }
.fr-panel.is-entering .fr-item:nth-child(5) { animation-delay: 0.16s; }
.fr-panel.is-entering .fr-item:nth-child(n+6) { animation-delay: 0.2s; }

@keyframes frIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

.fr-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem) clamp(0.9rem, 2vw, 1.75rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.fr-item--wide {
  grid-column: 1 / -1;
}

/* door "printed" on the catalog page: fixed slot, door sits with a soft contact shadow */
.fr-tile {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  aspect-ratio: 3 / 4;
  padding: 0 0 0.9rem;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.fr-item--wide .fr-tile {
  aspect-ratio: auto;
  padding-bottom: 1rem;
}

.fr-tile img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow:
    0 1px 1px rgba(0, 0, 0, 0.08),
    6px 10px 18px -8px rgba(0, 0, 0, 0.35);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .fr-tile:hover img {
    transform: translateY(-4px);
    box-shadow:
      0 1px 1px rgba(0, 0, 0, 0.08),
      10px 18px 30px -12px rgba(0, 0, 0, 0.45);
  }
}

.fr-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.fr-foot p {
  margin: 0;
  max-width: 34rem;
  font-size: 0.95rem;
}

/* lightbox */
.fr-lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: clamp(1rem, 4vw, 3rem);
  border: 0;
  background: rgba(241, 241, 236, 0.97);
  color: var(--ink);
}

.fr-lightbox[open] {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  animation: rwFade 0.3s var(--ease);
}

.fr-lightbox::backdrop {
  background: transparent;
}

.fr-lb-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  min-width: 0;
}

.fr-lb-figure img {
  max-width: 100%;
  max-height: calc(100dvh - 9rem);
  object-fit: contain;
  box-shadow: 10px 18px 40px -16px rgba(0, 0, 0, 0.45);
}

.fr-lb-figure figcaption {
  color: var(--muted);
}

.fr-lightbox .rw-lb-close {
  border-color: var(--line);
  color: var(--ink);
}

.fr-lightbox .rw-lb-close:hover {
  border-color: var(--ink);
}

@media (min-width: 640px) {
  .fr-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 720px) {
  .fr-materials {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media (min-width: 1000px) {
  .fr-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (min-width: 1100px) {
  .fr-materials {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 719px) {
  .fr-lightbox[open] {
    grid-template-columns: 1fr;
  }

  .fr-lb-nav {
    display: none;
  }
}

@media (min-width: 1024px) {
  .fr-mat-num,
  .fr-tab span {
    font-size: max(15px, 0.85rem);
  }
}

/* keep the zoomed front crisp (sources are ~640px wide) */
.fr-lb-figure img {
  max-width: min(100%, 520px);
  max-height: min(calc(100dvh - 9rem), 780px);
}

/* =========================================
   Hero buttons: identical size on home + Sudopere i slavine
========================================= */
.hero .hs-actions {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 0.75rem;
}

.hs-actions .btn {
  width: 100%;
  min-width: 11.75rem;
  padding-inline: 1.75rem;
  white-space: nowrap;
}

@media (max-width: 479px) {
  .hero .hs-actions,
  .hs-actions {
    display: grid;
    width: 100%;
    gap: 0.6rem;
  }

  .hs-actions .btn {
    min-width: 0;
    padding-inline: 0.9rem;
  }
}

/* =========================================
   HOME HERO — mobile / tablet fixes
========================================= */
@media (max-width: 999px) {
  .hs-copy {
    padding: 2.25rem 0 2.5rem;
  }

  .hs-eyebrow {
    margin-bottom: 1.1rem;
  }

  .hs-title {
    font-size: clamp(2.6rem, 11vw, 4.2rem);
  }

  .hs-lead {
    margin-top: 1.1rem;
  }

  .hs-actions {
    margin-top: 1.75rem;
  }

  .hs-visual {
    min-height: 0;
    aspect-ratio: auto;
    padding: 1.5rem 1.25rem 1.75rem;
  }

  .hs-showcase {
    width: 100%;
    max-width: 30rem;
    height: auto;
    margin: 0 auto;
    padding: 0.85rem 0.85rem 1.1rem;
  }

  .hs-show-media {
    aspect-ratio: 4 / 3.4;
    max-height: none;
  }

  .hs-show-media img {
    position: absolute;
    inset: 0;
  }

  .hs-show-head {
    margin-bottom: 0.7rem;
  }

  .hs-show-body {
    padding-top: 0.9rem;
  }

  .hs-show-title {
    font-size: 1.2rem;
  }

  .hs-show-link {
    margin-top: 0.6rem;
    padding-top: 0.7rem;
  }
}

@media (max-width: 599px) {
  .hs-visual {
    aspect-ratio: auto;
  }

  .hs-eyebrow::before {
    width: 1.5rem;
  }
}

/* Frontovi tabs on phones: even grid that fills the width */
@media (max-width: 719px) {
  .fr-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .fr-tab {
    justify-content: space-between;
    width: 100%;
    min-height: 2.9rem;
    padding: 0 0.9rem;
  }
}

@media (min-width: 480px) and (max-width: 719px) {
  .fr-tabs {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* honeypot (hidden from people, visible to bots) */
.ct-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
