/* ============================================================
   OAKMONT-INSPIRED PREMIUM ELEMENTS
   Premium design patterns extracted from oakmontgroupinc.com
   Taste-skill compliant (no Inter, asymmetric, cubic-bezier)
   ============================================================ */

/* 1. SCROLL REVEAL (IntersectionObserver-driven)
   Progressive enhancement: hidden only when JS loads,
   visible by default for no-JS / file:// fallback */
html.js-enabled .reveal {
  opacity: 0;
  transform: translateY(40px);
}
.reveal {
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.visible { opacity: 1 !important; transform: translateY(0) !important; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

html.js-enabled .reveal-left { opacity: 0; transform: translateX(-30px); }
.reveal-left { transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-left.visible { opacity: 1 !important; transform: translateX(0) !important; }

html.js-enabled .reveal-right { opacity: 0; transform: translateX(30px); }
.reveal-right { transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-right.visible { opacity: 1 !important; transform: translateX(0) !important; }

html.js-enabled .reveal-scale { opacity: 0; transform: scale(0.95); }
.reveal-scale { transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-scale.visible { opacity: 1 !important; transform: scale(1) !important; }

/* 2. EYEBROW TEXT (oakmont: wide-tracked uppercase + accent line) */
.eyebrow {
  display: inline-block;
  font-family: 'Satoshi', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: #c62828;
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 3rem;
}
.eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 1px;
  background: #c62828;
}
.section-dark .eyebrow { color: rgba(255,255,255,0.8); }
.section-dark .eyebrow::before { background: rgba(255,255,255,0.5); }

/* 3. MASONRY SERVICE GRID (asymmetric, tight gutters) */
.services-masonry {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 0.75rem;
}
.services-masonry .masonry-card {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  cursor: pointer;
  /* Cards are <a> tags wrapping the whole tile — reset link visuals so the
     existing tile typography (white heading, red CTA arrow) shows through. */
  display: block;
  text-decoration: none;
  color: inherit;
}
.services-masonry .masonry-card:first-child {
  grid-column: 1;
  grid-row: span 2;
  min-height: 608px;
}
.services-masonry .masonry-card:nth-child(4) {
  grid-column: 2 / 4;
}

.masonry-card .masonry-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.masonry-card:hover .masonry-img { transform: scale(1.08); }

.masonry-card .masonry-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,15,15,0.85) 0%, rgba(15,15,15,0.1) 50%, rgba(15,15,15,0.2) 100%);
  transition: background 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.masonry-card:hover .masonry-overlay {
  background: linear-gradient(to top, rgba(15,15,15,0.95) 0%, rgba(15,15,15,0.3) 50%, rgba(15,15,15,0.1) 100%);
}

.masonry-card .masonry-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2rem;
  z-index: 2;
}
.masonry-card .masonry-card-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 700;
  color: #f5f5f5;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.masonry-card:hover .masonry-card-title { transform: translateY(-10px); }

.masonry-card .masonry-card-desc {
  font-size: 0.9rem;
  color: rgba(245,245,245,0.9);
  max-width: 65ch;
  margin-top: 0;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.masonry-card:hover .masonry-card-desc {
  opacity: 1;
  max-height: 100px;
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
}

.masonry-card .masonry-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #f5f5f5;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.1s,
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}
.masonry-card .masonry-arrow svg {
  width: 20px; height: 20px;
  stroke: #f5f5f5;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.masonry-card:hover .masonry-arrow { opacity: 1; transform: translateX(0); }
.masonry-card:hover .masonry-arrow svg { transform: translateX(5px); }

@media (max-width: 768px) {
  .services-masonry { grid-template-columns: 1fr; }
  .services-masonry .masonry-card {
    grid-column: auto !important;
    grid-row: auto !important;
    min-height: 250px !important;
  }
  .services-masonry .masonry-card .masonry-card-desc {
    opacity: 1; max-height: none; margin-bottom: 0.75rem;
  }
  .services-masonry .masonry-card .masonry-arrow {
    opacity: 1; transform: translateX(0);
  }
}

/* 4. ASYMMETRIC TEXT SPLIT (oakmont: left text / right space) */
.text-split {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 4rem;
  align-items: start;
}
.text-split .text-block-main {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 400;
  color: #4a4a4a;
  line-height: 1.6;
  max-width: none;
}
.text-split .text-block-main strong { color: #0f0f0f; font-weight: 700; }
.text-split .text-action { padding-top: 0.5rem; }
@media (max-width: 768px) {
  .text-split { grid-template-columns: 1fr; gap: 2rem; }
}

/* 6. RIPPLE EFFECT ON BUTTON HOVER */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-primary:hover::before { width: 300px; height: 300px; }

/* 7. PREMIUM TESTIMONIAL (oakmont: top border, quote mark) */
.testimonial-premium {
  position: relative;
  padding: 2.75rem 2.25rem 2.25rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.03) 100%);
  border: 1px solid rgba(255,255,255,0.12);
  border-top: 3px solid #c62828;
  box-shadow:
    0 18px 40px -20px rgba(0,0,0,0.55),
    0 2px 0 rgba(255,255,255,0.04) inset;
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.testimonial-premium:hover {
  background: linear-gradient(180deg, rgba(255,255,255,0.11) 0%, rgba(255,255,255,0.05) 100%);
  border-color: rgba(255,255,255,0.22);
  transform: translateY(-4px);
  box-shadow:
    0 26px 52px -22px rgba(0,0,0,0.65),
    0 2px 0 rgba(255,255,255,0.06) inset;
}
.testimonial-premium .quote-mark {
  font-family: 'Oswald', sans-serif;
  font-size: 5rem;
  color: rgba(198,40,40,0.85);
  line-height: 0.7;
  position: absolute;
  top: 1.1rem;
  left: 1.5rem;
  pointer-events: none;
}
.testimonial-premium p {
  position: relative; z-index: 1;
  padding-left: 3.25rem;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #f5f5f5;
  flex: 1 1 auto;
}
.testimonial-premium cite {
  display: block;
  margin-top: 1.6rem;
  padding-left: 3.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-style: normal;
  color: #c62828;
}

/* When the testimonial sits on a light section (rare today, but future-proof) */
.section-light .testimonial-premium {
  background: #ffffff;
  border: 1px solid rgba(15,15,15,0.08);
  border-top: 3px solid #c62828;
  box-shadow: 0 18px 40px -20px rgba(15,15,15,0.18);
}
.section-light .testimonial-premium:hover {
  background: #ffffff;
  border-color: rgba(15,15,15,0.16);
  box-shadow: 0 26px 52px -22px rgba(15,15,15,0.24);
}
.section-light .testimonial-premium p { color: #1a1a1a; }
.section-light .testimonial-premium .quote-mark { color: rgba(198,40,40,0.4); }
.section-light .testimonial-premium cite {
  color: #c62828;
  border-top-color: rgba(15,15,15,0.08);
}

/* 8. SCROLL PROGRESS BAR */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: #c62828;
  z-index: 10000;
  transform-origin: left;
  transform: scaleX(0);
}

/* 9. IMAGE REVEAL ON SCROLL */
.img-reveal {
  position: relative;
  overflow: hidden;
}
.img-reveal::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #0f0f0f;
  transform-origin: left;
  transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1);
  z-index: 1;
}
.img-reveal.revealed::after { transform: scaleX(0); transform-origin: right; }

/* 10. TEAM CARD HOVER ENHANCEMENT */
.team-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.team-card:hover { transform: translateY(-5px); }
.team-card .photo {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.team-card:hover .photo { transform: scale(1.05); filter: brightness(0.9); }
.team-card h4 { margin-top: 0.75rem; margin-bottom: 0.25rem; transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.team-card:hover h4 { color: #c62828; }

/* 11. CTA BANNER SOFT MATERIAL WASH */
.cta-banner { position: relative; overflow: hidden; }
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15,15,15,0.06) 0 1px, transparent 1px 100%),
    linear-gradient(0deg, rgba(15,15,15,0.04) 0 1px, transparent 1px 100%);
  background-size: 72px 72px;
  opacity: 0.55;
  pointer-events: none;
}
.cta-banner .container { position: relative; z-index: 1; }

/* 12. PARALLAX HERO IMAGE CONTAINER */
.hero-parallax { overflow: hidden; }
.hero-parallax img {
  transition: transform 0.1s linear;
  will-change: transform;
}

/* ============================================================
   INTERIOR PAGE COMPONENTS
   Sticky split, bud grid, why grid, member grid, service tiles,
   project grid, news grid, partner grid, contact split
   ============================================================ */

/* --- Section heading underline (animated by GSAP) --- */
.section-heading {
  --heading-line-scale: 1;
}
.section-heading::before {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: #c62828;
  margin-bottom: 1.5rem;
  transform: scaleX(var(--heading-line-scale));
  transform-origin: left center;
}

/* Remove default left-border on section-heading since we use ::before line now */
.section-heading {
  border-left: none;
  padding-left: 0;
}

/* Breadcrumbs styling */
.crumb-sep { color: rgba(245,245,245,0.4); margin: 0 0.4rem; }
.page-header { min-height: 60dvh; }
.page-header .container {
  padding-bottom: 4rem;
}
.page-header .eyebrow {
  color: rgba(245,245,245,0.85);
  margin-top: 0.75rem;
}
.page-header .eyebrow::before { background: rgba(255,255,255,0.5); }

/* --- Sticky split: text sticky on left, content scrolls on right --- */
.sticky-split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: flex-start;
}
.sticky-split .sticky-text {
  position: sticky;
  top: 120px;
}
.sticky-split .sticky-text h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin-bottom: 1.5rem;
}
.sticky-split .sticky-text .lead {
  font-size: 1.15rem;
  color: #4a4a4a;
}
.sticky-split .sticky-content p {
  font-size: 1.05rem;
  color: #4a4a4a;
  max-width: 62ch;
  margin-bottom: 1.25rem;
}
.cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.cta-row .btn-outline {
  color: #0f0f0f;
  border: 2px solid #0f0f0f;
  background: transparent;
}
.cta-row .btn-outline:hover {
  background: #0f0f0f;
  color: #fff;
}
.section-dark .cta-row .btn-outline {
  color: #f5f5f5;
  border-color: rgba(255,255,255,0.4);
}
.section-dark .cta-row .btn-outline:hover {
  background: #f5f5f5;
  color: #0f0f0f;
  border-color: #f5f5f5;
}

@media (max-width: 768px) {
  .sticky-split { grid-template-columns: 1fr; gap: 2rem; }
  .sticky-split .sticky-text { position: static; }
}

/* --- Two column block: side-by-side eyebrow blocks --- */
.two-col-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.two-col-block h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 1rem;
}
.section-dark .two-col-block h3 { color: #f5f5f5; }
.section-dark .two-col-block p { color: rgba(245,245,245,0.75); }
@media (max-width: 768px) {
  .two-col-block { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* --- Bud grid: 10 numbered values --- */
.bud-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}
.bud-item {
  background: rgba(255,255,255,0.04);
  padding: 2rem 1.5rem;
  border-top: 2px solid rgba(198,40,40,0.4);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.bud-item:hover {
  background: rgba(255,255,255,0.07);
  transform: translateY(-3px);
  border-top-color: #c62828;
}
.bud-item .bud-num {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  color: #c62828;
  letter-spacing: 0.18em;
  margin-bottom: 0.75rem;
}
.bud-item h4 {
  color: #f5f5f5;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}
.bud-item p {
  color: rgba(245,245,245,0.7);
  font-size: 0.9rem;
  margin: 0;
}

/* --- Why grid: 3 cards with big numbers --- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.why-card {
  background: #ffffff;
  padding: 2.5rem 2rem;
  border: 1px solid rgba(0,0,0,0.06);
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.why-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
  border-color: rgba(198,40,40,0.3);
}
.why-card .why-num {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #c62828;
  line-height: 1;
  margin-bottom: 1rem;
}
.why-card h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.why-card p {
  font-size: 0.95rem;
  margin: 0;
  color: #4a4a4a;
}

/* --- Check list --- */
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.check-list li {
  position: relative;
  padding: 0.85rem 0 0.85rem 2rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  color: inherit;
}
.section-dark .check-list li { border-bottom-color: rgba(255,255,255,0.1); }
.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #c62828;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 14px 14px;
  background-position: center;
  background-repeat: no-repeat;
}
.check-list li .check-icon { display: none; }

/* --- Member (medarbetare) grid --- */
.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.member-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.member-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
  border-color: rgba(198,40,40,0.2);
}
.member-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #f0f0f0;
}
.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(15%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.member-card:hover .member-photo img {
  transform: scale(1.05);
  filter: grayscale(0%);
}
.member-info {
  padding: 1.5rem;
}
.member-card .member-name {
  font-size: 1.15rem;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
  color: #0f0f0f;
}
.member-card .member-role {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #c62828;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.member-card .member-contacts {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}
.member-card .member-contact {
  font-size: 0.85rem;
  color: #4a4a4a;
  transition: color 0.3s ease;
}
.member-card .member-contact:hover { color: #c62828; }
.member-card .member-bio {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}
/* Dark-section context: cards stay on a white background, so force readable
   colors regardless of any future .section-dark cascade additions. */
.section-dark .member-card .member-name { color: #0f0f0f; }
.section-dark .member-card .member-role { color: #c62828; }
.section-dark .member-card .member-contact { color: #4a4a4a; }
.section-dark .member-card .member-bio { color: #4a4a4a; }

/* --- Service tile grid (asymmetric, big cards) --- */
.service-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 1rem;
  margin-top: 3rem;
}
.service-tile {
  position: relative;
  display: block;
  min-height: 360px;
  overflow: hidden;
  cursor: pointer;
  color: #f5f5f5;
}
.service-tile:nth-child(7n+1) { grid-column: span 2; min-height: 420px; }
@media (max-width: 768px) {
  .service-tile:nth-child(7n+1) { grid-column: auto; min-height: 320px; }
}
.tile-img {
  position: absolute; inset: 0;
  overflow: hidden;
}
.tile-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-tile:hover .tile-img img { transform: scale(1.08); }
.tile-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,15,15,0.92) 0%, rgba(15,15,15,0.2) 60%, rgba(15,15,15,0.1) 100%);
  transition: background 0.5s ease;
}
.service-tile:hover .tile-overlay {
  background: linear-gradient(to top, rgba(198,40,40,0.55) 0%, rgba(15,15,15,0.4) 60%, rgba(15,15,15,0.2) 100%);
}
.tile-content {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2rem;
  z-index: 2;
}
.tile-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245,245,245,0.7);
  margin-bottom: 0.5rem;
}
.tile-content h3 {
  color: #f5f5f5;
  font-size: 1.6rem;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 0.5rem;
}
.tile-content p {
  color: rgba(245,245,245,0.85);
  font-size: 0.9rem;
  max-width: 50ch;
  margin-bottom: 1rem;
}
.tile-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  transition: border-color 0.3s ease, color 0.3s ease;
}
.tile-arrow svg { width: 16px; height: 16px; transition: transform 0.3s ease; }
.service-tile:hover .tile-arrow { border-bottom-color: #fff; }
.service-tile:hover .tile-arrow svg { transform: translateX(4px); }

/* --- Project grid --- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1rem;
  margin-top: 3rem;
}
.project-card {
  position: relative;
  overflow: hidden;
  background: #f0f0f0;
  aspect-ratio: 4 / 3;
}
.project-img,
.project-img img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.project-img img { transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.project-card:hover .project-img img { transform: scale(1.06); }
.project-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(8,8,8,0.96) 0%,
    rgba(8,8,8,0.82) 34%,
    rgba(8,8,8,0.18) 72%
  );
}
.project-meta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.5rem;
  z-index: 1;
  color: #f5f5f5;
}
.project-cat {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #ffffff;
  background: #c62828;
  padding: 0.28rem 0.5rem;
  margin-bottom: 0.55rem;
}
.project-meta h3 {
  color: #f5f5f5;
  font-size: 1.25rem;
  margin: 0 0 0.45rem;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.04em;
}
.project-meta p {
  color: rgba(255,255,255,0.88);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
  max-width: 34rem;
}

/* --- News grid --- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.news-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  color: inherit;
  text-decoration: none;
}
.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}
.news-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.news-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.news-card:hover .news-img img { transform: scale(1.05); }
.news-content { padding: 1.75rem; flex: 1; }
.news-card .news-cat {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #c62828;
  margin-bottom: 0.6rem;
}
.news-card .news-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
  color: #0f0f0f;
}
.news-card .news-content p {
  font-size: 0.95rem;
  color: #4a4a4a;
  margin: 0;
}
/* Dark-section context: news cards stay on a white background, so force
   readable text colors regardless of any future .section-dark cascade
   additions (mirrors the same pattern used for .member-card). */
.section-dark .news-card .news-cat { color: #c62828; }
.section-dark .news-card .news-content h3 { color: #0f0f0f; }
.section-dark .news-card .news-content p { color: #4a4a4a; }
.news-read-more {
  display: inline-flex;
  gap: 0.4rem;
  margin-top: 1rem;
  color: #c62828;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.news-article-date {
  display: inline-block;
  margin-bottom: 1rem;
  color: #c62828;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.news-article-figure {
  margin: 2.5rem 0;
  overflow: hidden;
  background: #efeee9;
}
.news-article-figure img {
  display: block;
  width: 100%;
  max-height: 680px;
  object-fit: cover;
}
.news-article-figure-contain { padding: clamp(1rem, 4vw, 3rem); }
.news-article-figure-contain img { object-fit: contain; }
.news-article-actions { margin-top: 2.5rem; }

/* --- Partner grid --- */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.partner-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.partner-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
  border-color: rgba(198,40,40,0.3);
}
.partner-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f5f4f0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.partner-img img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.partner-card:hover .partner-img img { transform: scale(1.05); }
.partner-img-dark { background: #171717; }
.partner-wordmark span {
  color: #171717;
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}
.partner-content { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }
.partner-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}
.section-dark .partner-content h3 { color: #0f0f0f; }
.partner-content p {
  font-size: 0.95rem;
  color: #4a4a4a;
  margin-bottom: 1rem;
}
.partner-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c62828;
  transition: gap 0.3s ease;
}
.partner-link:hover { gap: 0.8rem; }

.service-group + .service-group { margin-top: 5rem; }
.service-group > .section-heading { margin-bottom: 2rem; }

/* --- Contact split (form + info) --- */
.contact-split {
  display: grid;
  grid-template-columns: 6fr 4fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-info { padding-right: 1rem; }
.contact-info h2 { margin-bottom: 1.5rem; }
.contact-info .lead { font-size: 1.1rem; }
.contact-block {
  padding: 1.25rem 0;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.contact-block:last-child { border-bottom: 1px solid rgba(0,0,0,0.08); }
.contact-block h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #c62828;
  margin-bottom: 0.5rem;
}
.contact-block p {
  font-size: 0.95rem;
  margin: 0 0 0.25rem;
  color: #4a4a4a;
}
.contact-block a {
  color: inherit;
  border-bottom: 1px dotted rgba(0,0,0,0.2);
  transition: color 0.3s ease, border-color 0.3s ease;
}
.contact-block a:hover { color: #c62828; border-bottom-color: #c62828; }

.contact-form-wrap {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.1);
}
.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.contact-form select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f0f0f' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
  padding-right: 2.5rem;
}
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
  display: none !important;
}
.form-consent label {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.85rem;
  color: #4a4a4a;
  line-height: 1.5;
  cursor: pointer;
}
.form-consent input[type="checkbox"] {
  margin-top: 0.2rem;
  width: 16px; height: 16px;
  accent-color: #c62828;
}
.form-fineprint {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: #888;
}
.form-success {
  background: #f5fff7;
  border: 1px solid #2e7d32;
  padding: 1.5rem;
  margin-top: 1rem;
}
.form-success h3 { color: #2e7d32; margin-bottom: 0.5rem; }
@media (max-width: 900px) {
  .contact-split { grid-template-columns: 1fr; }
  .contact-form .form-row { grid-template-columns: 1fr; }
}

.map-container {
  margin-top: 4rem;
  border: 1px solid rgba(0,0,0,0.08);
  aspect-ratio: 16 / 7;
  overflow: hidden;
}
.map-container iframe { width: 100%; height: 100%; border: 0; }

/* --- 2026 customer updates --- */
.member-card .member-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 0.75rem;
  padding: 0.32rem 0.58rem;
  border-radius: 999px;
  background: #f2eceb;
  color: #7c211f;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sister-service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}
.sister-service {
  min-width: 0;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: #191919;
  color: #f5f5f5;
  box-shadow: 0 22px 46px -28px rgba(0,0,0,0.75);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.35s ease;
}
.sister-service:hover { transform: translateY(-4px); background: #222; }
.sister-service-label {
  display: block;
  margin-bottom: 1rem;
  color: #e06c67;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.sister-service h3 { color: #fff; margin-bottom: 0.65rem; }
.sister-service p { color: rgba(255,255,255,0.74); max-width: 58ch; }
.sister-service-action {
  display: inline-block;
  margin-top: 0.8rem;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 0.35em;
}
.service-source { margin-top: 2rem; }
.service-source a { font-weight: 700; text-underline-offset: 0.3em; }

.project-card { display: block; color: inherit; }
.project-card:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.project-link {
  display: inline-block;
  margin-top: 0.85rem;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 0.32em;
}
.project-detail-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
}
.project-detail-intro h2 { margin-bottom: 0; }
.project-detail-intro .lead { margin: 0; max-width: 62ch; }
.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.75rem, 2vw, 1.5rem);
}
.project-gallery-item {
  position: relative;
  display: block;
  min-width: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eee;
}
.project-gallery-featured { grid-column: 1 / -1; aspect-ratio: 16 / 8; }
.project-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-gallery-item:hover img { transform: scale(1.035); }
.project-gallery-item:focus-visible { outline: 3px solid #c62828; outline-offset: 4px; }
.project-detail-back { margin-top: 2.5rem; }

.contact-form fieldset { min-width: 0; margin-inline: 0; padding: 0; border: 0; }
.choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.65rem; }
.choice-option { position: relative; cursor: pointer; }
.choice-option input { position: absolute; opacity: 0; pointer-events: none; }
.choice-option span {
  display: grid;
  min-height: 48px;
  place-items: center;
  border: 1px solid rgba(0,0,0,0.14);
  background: #fff;
  color: #292929;
  font-weight: 700;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.choice-option input:checked + span { border-color: #c62828; background: #c62828; color: #fff; }
.choice-option input:focus-visible + span { outline: 3px solid rgba(198,40,40,0.24); outline-offset: 2px; }
.form-hint { margin: -0.1rem 0 0.75rem; color: #666; font-size: 0.84rem; line-height: 1.5; }
.upload-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.65rem; }
.file-option {
  min-width: 0;
  padding: 0.85rem;
  border: 1px dashed rgba(0,0,0,0.2);
  background: #faf9f7;
  color: #333;
  font-size: 0.78rem;
  font-weight: 700;
}
.file-option span { display: block; margin-bottom: 0.55rem; text-transform: uppercase; letter-spacing: 0.08em; }
.file-option input { width: 100%; min-width: 0; font: inherit; font-weight: 500; color: #555; }
.form-input:user-invalid,
.form-textarea:user-invalid { border-color: #a61e1e; }
.recaptcha-group { min-height: 100px; }
.recaptcha-group [data-netlify-recaptcha="true"] { min-height: 78px; }
.hp-field {
  display: block !important;
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0;
}

.review-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 960px;
  margin: 3rem auto 0;
}
.review-action {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1.15rem 1.25rem;
  background: #fff;
  color: #171717;
  box-shadow: 0 18px 44px -28px rgba(0,0,0,0.3);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}
.review-action:hover { transform: translateY(-3px); box-shadow: 0 24px 48px -28px rgba(0,0,0,0.42); }
.review-action > svg { width: 20px; height: 20px; }
.review-action-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #f2eceb;
  color: #b3261e;
  font-size: 1.2rem;
  font-weight: 800;
}
.review-action-icon svg { width: 23px; height: 23px; }
.review-action strong,
.review-action small { display: block; }
.review-action small { margin-top: 0.18rem; color: #626262; font-size: 0.82rem; line-height: 1.4; }

.submission-confirmation {
  min-height: 68vh;
  display: grid;
  place-items: center;
  padding: clamp(4rem, 10vw, 8rem) 0;
  background: #f7f4f0;
}
.confirmation-card { max-width: 760px; margin: 0 auto; text-align: center; }
.confirmation-card h1 { font-size: clamp(2.3rem, 6vw, 4.8rem); max-width: 14ch; margin: 0 auto 1.4rem; }
.confirmation-card p { max-width: 58ch; margin: 0 auto 2rem; font-size: 1.1rem; }
.confirmation-icon {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  margin: 0 auto 2rem;
  border-radius: 50%;
  background: #1f6d3a;
  color: #fff;
}
.confirmation-icon svg { width: 38px; height: 38px; }
.confirmation-card .cta-row { justify-content: center; }

@media (max-width: 760px) {
  .sister-service-grid,
  .review-action-grid,
  .project-detail-intro,
  .project-gallery { grid-template-columns: 1fr; }
  .project-gallery-featured { grid-column: auto; aspect-ratio: 4 / 3; }
  .upload-grid { grid-template-columns: 1fr; }
  .choice-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 430px) {
  .choice-grid { grid-template-columns: 1fr; }
  .review-action { grid-template-columns: auto minmax(0, 1fr); }
  .review-action > svg { display: none; }
}

/* --- Prose narrow (for policy pages) --- */
.prose-narrow {
  max-width: 820px;
}
.prose-narrow .lead { font-size: 1.2rem; color: #2a2a2a; margin-bottom: 1.5rem; }
.prose-narrow h3 {
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
.prose-narrow p {
  font-size: 1.02rem;
  color: #4a4a4a;
  margin-bottom: 1.25rem;
}
/* Prose-narrow sits inside .section-dark on several pages (kontakta-oss,
   service pages, etc.). The default p / lead colors above are tuned for
   the light section background; on the black dark-section they collapse
   into near-invisible dark grey. Lift them to a readable warm white. */
.section-dark .prose-narrow p,
.section-dark .prose-narrow .lead {
  color: rgba(245, 245, 245, 0.85);
}
.section-dark .prose-narrow strong { color: #ffffff; }
.section-dark .prose-narrow a {
  color: #ffb4b4;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.section-dark .prose-narrow a:hover {
  color: #ffffff;
}

/* --- About page section dark variations --- */
.section-dark .bud-grid { /* default styling already targets dark mode */ }

/* --- Active nav link --- */
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: #c62828; }
.nav-cta.active {
  background: #c62828 !important;
}

/* --- Misc adjustments to align homepage and interior pages --- */
.section-light .section-heading h2,
.section-light .section-heading p { color: #0f0f0f; }
.section-light .section-heading p { color: #555; font-size: 1.05rem; }
.section-dark .section-heading h2 { color: #f5f5f5; }
.section-dark .section-heading p { color: rgba(245,245,245,0.65); }

/* --- Ensure hero image is fully filled when present --- */
.hero-media { position: relative; }

/* Grain overlay was removed for scroll perf — see main.css */


/* ============================================================
   HOMEPAGE: Project preview grid + team split
   ============================================================ */
.home-project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
  margin-top: 1.5rem;
}
.home-project-card {
  display: block;
  color: inherit;
  background: #faf9f7;
  border: 1px solid rgba(0,0,0,0.05);
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1),
              box-shadow 0.5s cubic-bezier(0.16,1,0.3,1);
}
.home-project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.10);
}
.home-project-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #1a1a1a;
}
.home-project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.home-project-card:hover .home-project-img img { transform: scale(1.05); }
.home-project-meta { padding: 1.5rem 1.5rem 1.75rem; }
.home-project-cat {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #c62828;
  margin-bottom: 0.6rem;
}
.home-project-card h3 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
  color: #0f0f0f;
}
.home-project-card p {
  font-size: 0.95rem;
  color: #4a4a4a;
  margin: 0;
  line-height: 1.6;
}

/* Home team split: text left, 4-card grid right */
.home-team-split {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.home-team-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.home-team-card {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #1a1a1a;
}
.home-team-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.home-team-card:hover img { transform: scale(1.05); }
.home-team-card span {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 0.6rem 1rem;
  background: rgba(15,15,15,0.78);
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .home-team-split { grid-template-columns: 1fr; gap: 2.5rem; }
  .home-team-cards { max-width: 480px; }
}
@media (max-width: 480px) {
  .home-team-cards { grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
}

/* ---------- FLOATING "RING OSS" CALL BUTTON ---------- */
.call-fab {
  position: fixed;
  right: clamp(1rem, 2.5vw, 2rem);
  bottom: calc(clamp(1rem, 2.5vw, 2rem) + env(safe-area-inset-bottom, 0px));
  z-index: 2500;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.3rem 0.85rem 1.05rem;
  background: #c62828;
  color: #fff;
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  box-shadow:
    0 12px 28px rgba(198, 40, 40, 0.32),
    0 4px 10px rgba(15, 15, 15, 0.18);
  transition:
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.25s ease,
    box-shadow 0.25s ease;
}
.call-fab::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(198, 40, 40, 0.55);
  animation: callPulse 2.4s cubic-bezier(0.16, 1, 0.3, 1) infinite;
  pointer-events: none;
}
.call-fab:hover,
.call-fab:focus-visible {
  background: #0f0f0f;
  color: #fff;
  transform: translateY(-3px);
  box-shadow:
    0 18px 34px rgba(15, 15, 15, 0.35),
    0 4px 10px rgba(15, 15, 15, 0.18);
  outline: none;
}
.call-fab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  flex-shrink: 0;
}
.call-fab-icon svg { display: block; }
.call-fab-label { white-space: nowrap; }

@keyframes callPulse {
  0%   { box-shadow: 0 0 0 0 rgba(198, 40, 40, 0.45); }
  70%  { box-shadow: 0 0 0 18px rgba(198, 40, 40, 0); }
  100% { box-shadow: 0 0 0 0 rgba(198, 40, 40, 0); }
}

@media (max-width: 640px) {
  .call-fab {
    padding: 0;
    width: 56px;
    height: 56px;
    justify-content: center;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    right: 1rem;
  }
  .call-fab-icon {
    background: transparent;
    width: 28px;
    height: 28px;
  }
  .call-fab-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

/* Lift the call button when the cookie banner is showing so they don't overlap. */
.cookie-banner:not([hidden]) ~ .call-fab,
body:has(.cookie-banner:not([hidden])) .call-fab {
  bottom: calc(7.5rem + env(safe-area-inset-bottom, 0px));
}
@media (prefers-reduced-motion: reduce) {
  .call-fab::before { animation: none; }
  .call-fab { transition: none; }
}

/* Customer launch feedback: put the requested content within easy reach. */
.header-brand { display: flex; align-items: center; gap: 1.5rem; flex-shrink: 0; }
.header-license { display: flex; align-items: center; justify-content: center; }
.header-license img { display: block; width: 56px; height: 56px; object-fit: contain; }
.header-license:focus-visible { outline: 2px solid #c62828; outline-offset: 4px; }
.page-header.page-header-compact { min-height: 210px; }
.page-header-compact .container { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.page-header-compact .page-title { font-size: clamp(2rem, 4vw, 3.4rem); margin-bottom: 0; }
.page-header-compact + .section,
.page-header-compact + script + .section { padding-top: clamp(2rem, 4vw, 3.5rem); }
.form-intro { margin: 0.75rem 0 1.75rem; color: #4a4a4a; }
.contact-form-wrap h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.contact-split > * { min-width: 0; }
.project-group + .project-group { padding-top: 0; }
.project-group .project-card { width: 100%; min-width: 0; min-height: 340px; }
#ongoing .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.project-image-caption { position: absolute; inset: auto 0 0; padding: 0.8rem 1rem; background: rgba(15,15,15,0.88); color: #fff; font-size: 0.9rem; line-height: 1.45; }
.project-news-link { margin: -1rem 0 2rem; }
.project-news-link a { text-decoration: underline; text-underline-offset: 4px; }
.license-content { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.license-logo { width: 100%; height: auto; }
.license-content .prose-narrow { margin: 0; }
@media (max-width: 768px) {
  .header-brand { gap: 1rem; }
  html.js-enabled .reveal-left:not(.visible),
  html.js-enabled .reveal-right:not(.visible) { transform: translateY(20px); }
  #ongoing .project-grid { grid-template-columns: 1fr; }
  .header-license img { width: 46px; height: 46px; }
  .page-header.page-header-compact { min-height: 165px; }
  .license-content { grid-template-columns: 1fr; }
  .license-logo { width: 140px; }
}
@media (max-width: 380px) {
  .header-brand { gap: 0.75rem; }
  .header .logo img.logo-mark { max-width: 155px; height: auto; }
  .header-license img { width: 42px; height: 42px; }
}
/* Leave enough room for Netlify's 304px reCAPTCHA without clipping it. */
@media (max-width: 420px) {
  .contact-form-wrap { padding: 0; border: 0; box-shadow: none; background: transparent; }
}
@media (max-width: 360px) {
  .recaptcha-group .g-recaptcha { transform: scale(0.88); transform-origin: top left; }
}
