.pukka-wordmark {
  display: block;
  width: auto;
  height: 2rem;
}
@media (min-width: 1024px) {
  .logo-container .pukka-wordmark {
    height: clamp(36px, 2.8vw, 40px);
  }
}
.pukka-core-artwork {
  width: 2rem;
  height: auto;
}
@media (min-width: 768px) {
  .pukka-core-artwork {
    width: 4rem;
  }
}

@media (max-width: 767px) {
  html { scroll-padding-top: 5.5rem; }
  body > nav.fixed { padding: .625rem max(.75rem, env(safe-area-inset-right)) .625rem max(.75rem, env(safe-area-inset-left)); }
  nav .glass-pill { padding: .375rem .875rem; }
  #mobileMenuBtn { min-width: 44px; min-height: 44px; }
  #mobile-menu {
    top: 100%;
    max-height: calc(100dvh - 5rem - env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    gap: .25rem;
    padding: .75rem 1rem;
  }
  #mobile-menu a { display: flex; align-items: center; min-height: 44px; }
  body header.min-h-screen { min-height: 100svh; padding: 6rem 1rem 5rem; }
  header h1.reveal-text { font-size: clamp(2.15rem, 9vw, 3.5rem); }
  body section[class*="py-"] { padding-block: clamp(2.75rem, 10vw, 4.5rem); }
  #contact { padding-top: 3.5rem; }
  #about > .grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  :is(section, footer) .grid > * { min-width: 0; }
  #contact .grid { overflow-wrap: anywhere; }
  #projectBriefForm { padding: clamp(1rem, 4vw, 1.5rem); }
  #projectBriefForm :is(input, select, textarea) { max-width: 100%; min-width: 0; font-size: 16px; }
  .service-modal .modal-content { max-width: 100%; max-height: calc(100dvh - 2rem); overflow-y: auto; }
}
@media (max-width: 479px) {
}

/* Keep related sections close while allowing headings and cards to grow. */
body section[class*="py-"] {
  padding-block: clamp(2.25rem, 5vw, 4.5rem);
}
body section.min-h-screen {
  min-height: auto;
}
#contact {
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
:is(section, #contact) :is(.mb-16, .mb-20, .mb-24) {
  margin-bottom: clamp(1.75rem, 4vw, 3.5rem);
}
#about > .grid {
  gap: clamp(1.75rem, 4vw, 3.5rem);
}
@media (min-width: 768px) {
  html { scroll-padding-top: 6rem; }
  nav .glass-pill { padding-block: .5rem; }
}
@media (max-height: 520px) and (orientation: landscape) {
  body header.min-h-screen { padding-block: 6rem 4rem; }
  #mobile-menu { max-height: calc(100dvh - 6rem); overflow-y: auto; }
}

@media (max-width: 767px) {
  :is(#values, #insights) .grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(.5rem, 2.4vw, 1rem);
  }
  #values .grid-cols-2 > .spotlight-card { padding: clamp(.7rem, 3vw, 1.1rem); }
  #values .grid-cols-2 > .spotlight-card > .flex { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); align-items: center; gap: .4rem; }
  #values .grid-cols-2 > .spotlight-card h3 { font-size: clamp(.78rem, 3.3vw, .95rem); overflow-wrap: anywhere; }
  #insights .blog-card { aspect-ratio: 1; min-height: 0; align-self: start; border-radius: 1rem; display: flex; flex-direction: column; justify-content: flex-end; }
  #insights .blog-card > .bottom-0 { position: absolute; padding: .45rem; margin: 0; transform: none; }
  #insights .blog-card > .bottom-0 > .rounded-2xl { padding: .6rem; }
  #insights .blog-card h4 { overflow-wrap: anywhere; line-height: 1.3; }
}
body section:has(.tech-marquee-item) { padding-block: clamp(1.5rem, 3vw, 3rem); }
section:has(.tech-marquee-item) .mb-16 { margin-bottom: 1.25rem; }
section:has(.tech-marquee-item) .marquee-container + .marquee-container { margin-top: .65rem; }
#contact .max-w-6xl:has(.faq-item) { margin-bottom: 1.5rem; }
#contact .max-w-6xl:has(.faq-item) .mb-10 { margin-bottom: 1rem; }
#contact .max-w-6xl:has(.faq-item) .mt-10 { margin-top: 1rem; }
#contact .grid:has(> .faq-item) { gap: .5rem; }
#contact .faq-question { min-height: 44px; padding: .45rem .85rem; }

.marquee-container .tech-marquee-item { padding-block: 10px; }

#about .spotlight-card .liquid-bubble:has(.fa-bullseye, .fa-eye) {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  font-size: 1rem;
}
@media (min-width: 768px) {
  #about .spotlight-card .liquid-bubble:has(.fa-bullseye, .fa-eye) {
    width: 3rem;
    height: 3rem;
    font-size: 1.125rem;
  }
}

body header.min-h-screen {
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
  align-items: center;
  justify-content: stretch;
  min-height: 100svh;
  padding: clamp(5.5rem, 11vh, 8rem) clamp(1rem, 4vw, 3rem) 1rem;
  row-gap: clamp(1.25rem, 4vh, 3rem);
}
header.min-h-screen > .stagger-container { width: 100%; min-width: 0; }
header .stagger-container > .inline-block { margin-bottom: clamp(1rem, 2.6vh, 2rem); }
header .stagger-container > .mb-10 { margin-bottom: clamp(.9rem, 2.4vh, 1.75rem); }
header.min-h-screen h1.reveal-text { font-size: clamp(1.65rem, 7.6vw, 5.75rem); line-height: 1.1; text-wrap: balance; }
header .stagger-container > p { max-width: 56ch; margin-bottom: clamp(1.25rem, 3.4vh, 2.25rem); font-size: clamp(1rem, 1.6vw, 1.25rem); text-wrap: pretty; }
header .stagger-container > .flex { gap: .75rem; }
header .magnetic-btn { min-height: 44px; padding: .75rem 1.5rem; }
header.min-h-screen > a[href="#about"] { position: relative; inset: auto; transform: none; gap: .3rem; }
@media (max-width: 639px) {
  header .magnetic-btn { width: min(100%, 15rem); }
}
@media (max-height: 520px) {
  header.min-h-screen > a[href="#about"] > div { display: none; }
}

#mobile-menu .mobile-link {
  border-radius: .65rem;
  transition: background-color 150ms, color 150ms;
}
#mobile-menu .mobile-link i { width: 1.3em; margin-inline-end: .35rem; text-align: center; }
#mobile-menu .mobile-link:focus-visible { border-color: var(--neon-accent); }
.footer-legal { padding-inline: 1rem; }
.footer-legal a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: .25em; }
.footer-legal a:is(:hover,:focus-visible) { text-decoration: underline; }
nav :is(a, button):focus-visible { outline: 2px solid #67e8f9; outline-offset: 2px; }
#mobile-menu { gap: .25rem; overflow-y: auto; max-height: calc(100dvh - 6rem); }
#mobile-menu .mobile-link { padding: .55rem .8rem; min-height: 44px; }
.spotlight-card:has(.stat-number) {
  aspect-ratio: 1;
  height: auto;
  min-width: 0;
  border-radius: clamp(1rem, 2vw, 1.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(.65rem, 2vw, 1.75rem);
  transition-property: opacity, border-color, background-color;
}
@media (max-width: 900px) {
  .spotlight-card:has(.stat-number) .relative > div:first-child { width: clamp(2.75rem, 14vw, 4rem); height: clamp(2.75rem, 14vw, 4rem); margin-bottom: .375rem; }
  .spotlight-card:has(.stat-number) .relative > div:first-child i { font-size: clamp(1.4rem, 6.5vw, 1.875rem); }
  .spotlight-card .stat-number { font-size: clamp(1.65rem, 4vw, 2.25rem); line-height: 1.1; }
}

@media (max-width: 359px), (min-width: 768px) and (max-width: 850px) {
  .spotlight-card:has(.stat-number) { padding-block: .25rem; }
  .spotlight-card:has(.stat-number) .relative > div:first-child { width: 2.75rem; height: 2.75rem; }
}

#mobile-menu > :is(a,button) {
  border: 1px solid rgb(255 255 255 / .12);
  border-radius: .8rem;
  background: rgb(255 255 255 / .035);
}
#mobile-menu > :is(a,button):is(:hover,:focus-visible,.active) {
  border-color: rgb(34 211 238 / .5);
  color: #ecfeff;
  box-shadow: inset 0 -2px var(--neon-accent);
}
#mobile-menu > :is(a,button) { display: flex; align-items: center; justify-content: flex-start; gap: .5rem; margin: 0; }
#mobile-menu > :is(a,button) i { width: 1.3em; margin: 0; text-align: center; }

@media (max-width: 767px), (max-height: 520px) and (pointer: coarse) {
  #commandPalette {
    height: var(--quick-height, 100dvh);
    top: var(--quick-top, 0px);
    padding: max(.6rem, env(safe-area-inset-top)) max(.75rem, env(safe-area-inset-right)) max(.6rem, env(safe-area-inset-bottom)) max(.75rem, env(safe-area-inset-left));
    transition-property: opacity, visibility;
  }
  #commandPalette .modal-content { display: flex; flex-direction: column; width: min(100%, 32rem); max-height: 100%; padding: 0; overflow: hidden; border-radius: 1.15rem; }
  #commandPalette .modal-content > div { padding: .75rem .875rem; }
  #commandPalette .modal-content > div:first-child { flex: none; gap: .75rem; }
  #commandPaletteTitle { font-size: clamp(1.1rem, 5vw, 1.4rem); line-height: 1.2; }
  #commandPaletteClose { min-width: 44px; min-height: 44px; flex-shrink: 0; }
  #commandPalette .modal-content > div:last-child { display: flex; flex-direction: column; min-height: 0; }
  #commandPalette .relative { margin-bottom: .6rem; }
  #commandPaletteInput { font-size: 16px; min-height: 44px; padding-block: .6rem; }
  #commandPalette .relative > span { display: none; }
  #commandPaletteResults { min-height: 0; max-height: none; overscroll-behavior: contain; padding-right: 0; gap: .375rem; }
  #commandPalette .command-result { padding: .55rem .65rem; gap: .65rem; }
  #commandPalette .command-result .truncate { white-space: normal; color: #a1a1aa; }
}

.service-modal[id] { transition: opacity 150ms ease-out, visibility 0s linear 150ms; }
.service-modal[id].active { transition-delay: 0s; }
.service-modal[id] .modal-content { transform: translateY(6px); transition: transform 160ms ease-out; overscroll-behavior: contain; }
.service-modal[id].active .modal-content { transform: translateY(0); }
.service-modal .modal-close { min-width: 44px; min-height: 44px; }
.faq-item .faq-answer { display: grid; grid-template-rows: 0fr; max-height: none; transition: grid-template-rows 170ms ease-out; }
.faq-item.active .faq-answer { grid-template-rows: 1fr; }
.faq-item .faq-answer > div { min-height: 0; overflow: hidden; padding-bottom: 0; }
.faq-item .faq-answer > div::after { content: ''; display: block; height: 1.25rem; }
@media (prefers-reduced-motion: reduce) {
  .service-modal[id], .service-modal[id] .modal-content, .faq-item .faq-answer, .faq-question i { transition: none; }
}

#projectBriefForm button[type="submit"] { min-height: 44px; padding-block: .75rem; }
#contact .border-t:has(> .footer-legal) { padding-block: 1rem; }
.footer-legal { gap: .2rem .8rem; margin-bottom: .35rem; font-size: .75rem; line-height: 1.4; }
.footer-legal a { min-height: 32px; }
