/* AgenticCore original stylesheet — (c) Muhammad Daniyal, agenticcore.tech · ac-9b99af04-src-daniyal */


html {
  min-width: 0;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: clip;
}

.contact-drawer:not(.open) {
  right: 100%;
  transform: none;
}

.contact-drawer.open {
  right: 0;
  transform: none;
}

body,
main,
section,
article,
header,
footer,
nav,
div {
  min-width: 0;
}

img,
picture,
video,
canvas,
svg,
iframe {
  max-width: 100%;
}

img,
video,
canvas {
  height: auto;
}

input,
select,
textarea,
button {
  max-width: 100%;
  font: inherit;
}

p,
li,
dd,
blockquote,
a,
button,
label,
h1,
h2,
h3,
h4 {
  overflow-wrap: anywhere;
}

.hero-content,
.cs-wrap,
.cs-numbered,
.cs-content,
.about-exp-stage,
.about-intro-stage,
.hx-about,
.legal-wrap,
.svc-wrap {
  min-width: 0;
}

.cd-input,
.cd-select,
.cd-textarea {
  width: 100%;
}

@media (min-width: 1921px) {
  .project-tiles,
  .hx-wrap,
  .svc-wrap,
  .legal-wrap {
    width: min(100%, 1680px);
    margin-inline: auto;
  }

  .hero-content {
    width: min(100%, 1920px);
    margin-inline: auto;
  }
}


@media (max-width: 1100px) {
  .hero-content > h1 {
    height: auto;
  }

  .hero {
    position: relative;
    height: auto;
    min-height: max(700px, 100svh);
  }

  .hero-content {
    position: relative;
    inset: auto;
    display: flex;
    min-height: max(700px, 100svh);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(120px, 16vh, 170px) clamp(24px, 5vw, 56px) clamp(64px, 10vh, 104px);
  }

  .hero-eyebrow,
  .h-line,
  .hero-vertical,
  .hero-support,
  .hero-ctas {
    position: static;
    inset: auto;
    transform: none;
  }

  .hero-eyebrow {
    justify-content: center;
    margin-bottom: 22px;
    text-align: center;
  }

  .hero-vertical {
    margin-bottom: 12px;
    text-align: center;
  }

  .h-line {
    max-width: 100%;
    display: block;
    font-size: clamp(58px, 8.8vw, 76px);
    line-height: 1.02;
    text-align: center;
    white-space: normal;
  }

  .hero-support {
    width: min(100%, 620px);
    max-width: none;
    margin: 24px auto 0;
    padding: 0;
    text-align: center;
  }

  .hero-ctas {
    justify-content: center;
    width: min(100%, 620px);
    margin: 22px auto 0;
    padding: 0;
  }

  .featured-work,
  .testimonials,
  .about-exp,
  .about-fun {
    position: relative;
    top: auto;
  }

  .contact-drawer {
    --cd-pad-x: clamp(24px, 6vw, 42px);
  }

  .cs-wrap {
    --cs-pad: clamp(24px, 5vw, 48px);
  }

  .cs-numbered {
    grid-template-columns: minmax(0, 1fr);
  }

  .cs-rail {
    padding-left: 0;
  }
}

@media (min-width: 1101px) {
  .hero-content > h1 {
    height: 100%;
  }
}

@media (max-width: 640px) {
  #nav {
    padding-top: max(14px, env(safe-area-inset-top));
    padding-right: max(16px, env(safe-area-inset-right));
    padding-left: max(16px, env(safe-area-inset-left));
  }

  .hero,
  .hero-content {
    min-height: max(680px, 100svh);
  }

  .hero-content {
    padding-right: max(20px, env(safe-area-inset-right));
    padding-left: max(20px, env(safe-area-inset-left));
  }

  .hero-vertical {
    display: none;
  }

  .hero-eyebrow {
    white-space: normal;
  }

  .h-line {
    max-width: 100%;
    font-size: clamp(44px, 14vw, 68px);
    white-space: normal;
  }

  .hero-support {
    font-size: 16px;
  }

  .hero-ctas {
    width: min(100%, 360px);
    flex-direction: column;
  }

  .hero-cta,
  .cs-live-link,
  .cd-send {
    width: 100%;
  }

  .project-tiles {
    padding-inline: 16px;
  }

  .project-tile {
    border-radius: clamp(18px, 6vw, 28px);
  }

  .intro-copy {
    max-width: calc(100% - 40px);
  }

  .menu-overlay {
    padding-right: max(24px, env(safe-area-inset-right));
    padding-bottom: max(40px, env(safe-area-inset-bottom));
    padding-left: max(24px, env(safe-area-inset-left));
    overflow-y: auto;
  }

  .menu-link .word {
    font-size: clamp(36px, 12vw, 56px);
  }

  .contact-drawer {
    width: 100%;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .cd-title {
    font-size: clamp(38px, 13vw, 52px);
  }

  .cd-alt-mail {
    max-width: 100%;
    font-size: clamp(16px, 5vw, 20px);
  }

  .cd-alt-social,
  .cs-live-links {
    align-items: stretch;
    flex-direction: column;
  }

  .footer {
    padding-right: max(20px, env(safe-area-inset-right));
    padding-left: max(20px, env(safe-area-inset-left));
  }

  .ft-links {
    width: calc(100% - 24px);
  }

  .ft-links a {
    flex: 1 1 auto;
    justify-content: center;
  }

  .ft-social {
    width: calc(100% - 32px);
    justify-content: center;
  }
}

@media (max-width: 360px) {
  #nav {
    padding-inline: 12px;
  }

  .hero-content {
    padding-inline: 16px;
  }

  .h-line {
    font-size: clamp(40px, 14vw, 52px);
  }

  .project-tiles {
    padding-inline: 12px;
  }

  .contact-drawer {
    --cd-pad-x: 18px;
  }
}

@media (orientation: landscape) and (max-height: 560px) {
  .hero,
  .hero-content {
    min-height: max(560px, 100svh);
  }

  .hero-content {
    justify-content: flex-start;
    padding-top: max(80px, calc(env(safe-area-inset-top) + 68px));
    padding-bottom: 40px;
  }

  .hero-eyebrow {
    margin-bottom: 12px;
  }

  .h-line {
    font-size: clamp(42px, 11vh, 68px);
  }

  .hero-support {
    margin-top: 14px;
    font-size: 15px;
  }

  .hero-ctas {
    margin-top: 14px;
  }

  .menu-overlay {
    justify-content: flex-start;
    padding-top: 76px;
    overflow-y: auto;
  }

  .menu-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
  }

  .menu-link .word {
    font-size: clamp(28px, 9vh, 44px);
  }

  .footer {
    min-height: auto;
  }
}

@media (hover: none), (pointer: coarse) {
  .project-tile .tile-overlay {
    justify-content: flex-end;
    opacity: 1;
    background: linear-gradient(transparent 45%, rgb(6 6 6 / 78%));
  }

  .project-tile .tile-overlay-title,
  .project-tile .tile-overlay-subtitle {
    color: #fff;
    text-shadow: 0 1px 8px rgb(0 0 0 / 75%);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-content,
  .tiles-row,
  .project-tile,
  .ft-head,
  .ai-scene {
    opacity: 1;
    transform: none;
  }
}


body.route-hatcha #nav .nav-side:first-child,
body.route-fireflut #nav .nav-side:first-child {
  width: min(260px, 30vw);
  gap: 12px;
}

body.route-hatcha #nav .nav-back,
body.route-fireflut #nav .nav-back {
  flex: 0 0 auto;
  min-width: max-content;
  white-space: nowrap;
}

body.route-hatcha #nav .nav-loc,
body.route-fireflut #nav .nav-loc {
  flex: 0 1 auto;
  min-width: 0;
  white-space: nowrap;
}

#hatcha-view .cs-hero-grid,
#fireflut-view .cs-hero-grid {
  position: relative;
  z-index: 20;
}

#hatcha-view .cs-live-links,
#fireflut-view .cs-live-links {
  position: relative;
  z-index: 30;
}

#hatcha-view .cs-live-link,
#fireflut-view .cs-live-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  position: relative;
  z-index: 31;
}

#hatcha-view .cs-slide-sec:focus,
#fireflut-view .cs-slide-sec:focus {
  outline: none;
}


#hatcha-view .cs-pager,
#fireflut-view .cs-pager {
  width: min(420px, 36vw);
  gap: 4px;
}

#hatcha-view .cs-pg-t,
#fireflut-view .cs-pg-t {
  max-width: 32px;
}

#hatcha-view .cs-pg-t::before,
#fireflut-view .cs-pg-t::before {
  width: 18px;
  margin-inline: auto;
}

#hatcha-view .cs-pg-f,
#fireflut-view .cs-pg-f {
  width: 18px;
  left: calc(50% - 9px);
  right: auto;
}

@media (max-width: 900px) {
  
  body.route-about .about-intro,
  body.route-about .about-exp,
  body.route-about .about-fun {
    position: relative !important;
    top: auto !important;
  }

  body.route-about .about-intro {
    height: auto !important;
    min-height: 100svh;
  }

  body.route-about .about-exp {
    overflow: visible;
  }

  body.route-about .aexp-panel {
    max-height: 1200px;
  }

  body.route-hatcha #nav .nav-side:first-child,
  body.route-fireflut #nav .nav-side:first-child {
    display: flex;
  }

  body.route-hatcha #nav .nav-side:first-child,
  body.route-fireflut #nav .nav-side:first-child {
    width: auto;
  }

  #hatcha-view .cs-live-link,
  #fireflut-view .cs-live-link {
    justify-content: center;
    width: 100%;
  }
}



.ico-sun {
  color: var(--c-coral) !important;
}

.ico-moon {
  color: var(--c-blue-start) !important;
}

.pl-dots i,
.pl-lip {
  background: var(--c-coral) !important;
}

.day-toggle:after,
.day-toggle:hover:after,
.day-toggle:focus-visible:after {
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--c-coral) 24%, transparent);
}

.h-line.multidisciplinary .h-letter:hover {
  color: var(--c-coral) !important;
}

.h-line.designer .h-letter:hover {
  color: inherit !important;
  transform: none;
}

.nav-side .pin {
  display: none;
}

.nav-loc {
  color: currentColor;
  letter-spacing: .14em;
  font-family: JetBrains Mono, ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
}


#nav .nav-pill {
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  backdrop-filter: blur(18px) saturate(1.15);
  background: color-mix(in srgb, var(--bg-base) 34%, transparent);
  border-color: color-mix(in srgb, currentColor 24%, transparent);
  box-shadow: 0 12px 30px -24px #000c, inset 0 1px #ffffff55;
}

#nav.nav-on-dark .nav-pill {
  background: #071321b8;
  border-color: #ffffff52;
}

#nav.nav-on-light .nav-pill {
  background: #fff9f1e8;
  border-color: #17140f2e;
}

#nav .nav-link {
  position: relative;
  border-color: transparent;
  transition: color .2s, background-color .2s, border-color .2s;
}

#nav .nav-link:hover {
  color: inherit;
  background: transparent;
  border-color: transparent;
}

#nav .nav-link.active {
  color: var(--c-coral);
  background: color-mix(in srgb, var(--c-coral) 13%, transparent);
  border-color: color-mix(in srgb, var(--c-coral) 46%, transparent);
}

#nav .nav-cta {
  color: inherit;
  background: transparent;
  box-shadow: none;
}

#nav .nav-cta:hover {
  background: transparent;
  box-shadow: none;
  transform: none;
}

#nav.nav-on-dark .nav-cta,
#nav.nav-on-light .nav-cta {
  color: inherit;
}

#nav.nav-on-dark .nav-cta {
  color: var(--c-cream-2);
}

#nav.nav-on-light .nav-cta {
  color: var(--c-ink);
}

@media (max-width: 640px) {
  #nav .nav-cta {
    background: transparent;
    border-color: transparent;
  }
}


.ft-links a + a {
  border-left: 1px solid #ffffff57;
  padding-left: 14px;
}

.ft-links a + a::before {
  content: none;
}

@media (max-width: 1100px) {
  .hero-eyebrow {
    max-width: min(100%, 680px);
    white-space: normal;
  }

  
  .featured-work,
  .testimonials,
  .about-exp,
  .about-fun {
    position: relative;
    inset: auto;
  }

  .tiles-row {
    opacity: 1;
    transform: none;
    will-change: auto;
  }

  .hx-price-wrap,
  .hx-about,
  .hx-faq-wrap,
  .cs-hero-grid,
  .cs-showcase-grid,
  .cs-theme-grid,
  .cs-theme-lower {
    grid-template-columns: minmax(0, 1fr);
  }

  .svc-tier--primary,
  .svc-tier--secondary {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    margin-left: 0;
  }

  .svc-tier--secondary .svc-tier-plate {
    order: 0;
  }

  .svc-tier--base {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .project-tiles {
    padding-inline: clamp(16px, 4vw, 28px);
  }

  .tiles-row {
    flex-direction: column;
    gap: 16px;
  }

  .project-tile.tile-wide,
  .project-tile.tile-narrow {
    width: 100%;
  }

  .project-tile {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .cs-proof-chain {
    margin-inline: var(--cs-pad, 20px);
  }

  .rn-copy {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  html.perf-lite .testimonials {
    padding-bottom: 0 !important;
    overflow: hidden;
  }

  .t-land {
    display: none;
  }

  .hx-crest {
    margin-top: 0;
  }

  .hx-sec {
    padding-top: 0;
  }

  body:not([class*="route-"]) .home-extra .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-content {
    
    padding-top: clamp(112px, 18vh, 150px);
    padding-bottom: clamp(56px, 10vh, 88px);
  }

  .hero-eyebrow {
    max-width: 100%;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 11.5px;
    line-height: 1.4;
  }

  .hero-support {
    margin: 18px auto 0;
    padding: 0;
    text-align: center;
    text-indent: 0;
  }

  .hero-ctas {
    margin: 18px auto 0;
    padding: 0;
  }

  .sys-mark {
    white-space: normal;
    text-align: center;
  }

  .project-tile {
    aspect-ratio: 4 / 3;
  }

  .hx-about-card.b {
    width: 62%;
    left: 36%;
  }

  .ff-starry-meta {
    max-width: 170px;
    font-size: 12px;
  }

  .cs-proof-chain {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 360px) {
  .hero-content {
    padding-inline: max(16px, env(safe-area-inset-left));
  }

  .h-line {
    font-size: clamp(38px, 13vw, 50px);
  }

  .tile-overlay-title {
    font-size: 18px;
  }

  .tile-overlay-subtitle {
    font-size: 13px;
  }
}

@media (orientation: landscape) and (max-height: 560px) {
  .hero-content {
    min-height: max(560px, 100svh);
    padding-top: max(76px, calc(env(safe-area-inset-top) + 64px));
    padding-bottom: 34px;
  }

  .hero-ctas {
    width: min(100%, 720px);
    flex-direction: row;
  }

  .hero-cta {
    width: auto;
    flex: 1 1 0;
  }
}



@media (min-width: 641px) {
  .home-extra::before {
    top: calc(var(--crest-h) - 2px);
  }

  .hx-sec {
    padding-top: 0;
  }
}

@media (max-width: 1100px) {
  .hero {
    height: auto;
    min-height: max(660px, 100svh);
    margin: 0;
  }

  .hero-content {
    height: auto;
    min-height: max(660px, 100svh);
    transform: none !important;
    will-change: auto;
  }

  
  .h-line.designer {
    height: 1.2em;
    min-height: 1.2em;
    overflow: hidden;
    overflow-clip-margin: 0;
  }

  .h-line.designer .roll {
    width: 100%;
  }

  
  .projects {
    margin-top: 0;
  }

  
  .tiles-row,
  .project-tile {
    --reveal: 1 !important;
    opacity: 1 !important;
    transform: none !important;
    will-change: auto !important;
  }

  
  .hx-price-wrap {
    gap: 48px;
  }

  .hx-trail {
    position: static;
    width: min(100%, 420px);
    max-width: 420px;
    margin-inline: auto;
  }

  .hx-faq-wrap {
    gap: 40px;
  }

  .hx-faq-plate {
    position: static;
    width: min(100%, 320px);
    max-width: 320px;
    aspect-ratio: 4 / 3;
  }

  .hx-about {
    gap: 34px;
  }

  .hx-about-stack {
    width: 100%;
    max-width: 560px;
    margin-inline: auto;
  }

  
  html.perf-lite .hero-shader {
    filter: none;
  }

  html.perf-lite .hero-meteor {
    display: none !important;
  }

  
  .featured-work {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
  }

  .testimonials {
    height: auto !important;
    min-height: 0 !important;
    margin-top: 0 !important;
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
  }


  .t-scrub {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
  }

  .t-cards {
    display: grid !important;
    height: auto !important;
    gap: 14px !important;
  }

  .t-card,
  .t-card--side {
    position: relative !important;
    inset: auto !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    will-change: auto !important;
  }

  .t-dots {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .hero,
  .hero-content {
    min-height: max(620px, 100svh);
  }

  .h-line.designer {
    
    height: 1.08em;
    min-height: 1.08em;
  }
}

@media (max-width: 360px) {
  .hero,
  .hero-content {
    min-height: max(600px, 100svh);
  }
}


@media (orientation: landscape) and (max-height: 620px) and (max-width: 1100px) {
  .hero,
  .hero-content {
    height: auto;
    min-height: 100svh;
  }

  .hero-content {
    position: relative;
    z-index: 6;
    justify-content: center;
    padding-top: max(96px, calc(env(safe-area-inset-top) + 88px));
    padding-right: max(20px, env(safe-area-inset-right));
    padding-bottom: max(140px, 24vh);
    padding-left: max(20px, env(safe-area-inset-left));
  }

  /* Readability scrim: hero artwork is busy at short landscape heights. */
  .hero-content::before {
    content: "";
    position: absolute;
    inset: 12% 2% 18%;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(
      78% 62% at 50% 44%,
      rgb(4 12 26 / 46%) 0%,
      rgb(4 12 26 / 22%) 56%,
      transparent 82%
    );
  }

  body:not(.night) .hero-content::before {
    background: radial-gradient(
      78% 62% at 50% 44%,
      rgb(255 249 241 / 66%) 0%,
      rgb(255 249 241 / 34%) 56%,
      transparent 82%
    );
  }


  .hero-eyebrow {
    margin-bottom: 10px;
    font-size: 10.5px;
    line-height: 1.25;
  }

  .h-line {
    font-size: clamp(30px, 9.2vh, 42px);
    line-height: 1.06;
  }

  .h-line.designer {
    height: 1.2em;
    min-height: 1.2em;
    overflow: visible;
  }

  .hero-support {
    width: min(100%, 620px);
    margin-top: 12px;
    font-size: 13.5px;
    line-height: 1.35;
  }

  .hero-ctas {
    width: min(100%, 620px);
    margin-top: 14px;
    gap: 10px;
    flex-direction: row;
  }

  .hero-cta {
    flex: 1 1 0;
    min-height: 42px;
    justify-content: center;
    padding: 10px 14px;
    font-size: 13px;
    line-height: 1.2;
  }

  /* Secondary CTA sits on artwork: keep an explicit outline so it stays visible. */
  .hero-cta.ghost,
  .hero-cta.secondary,
  .hero-ctas > a:last-child {
    background: rgb(8 16 32 / 42%);
    border: 1px solid rgb(255 255 255 / 55%);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }

  body:not(.night) .hero-cta.ghost,
  body:not(.night) .hero-cta.secondary,
  body:not(.night) .hero-ctas > a:last-child {
    background: rgb(255 255 255 / 62%);
    border-color: rgb(0 0 0 / 35%);
  }
}



@media (min-width: 1101px) {
  .tiles-row {
    transform: scale(calc(.92 + .08 * var(--reveal)));
    opacity: calc(.62 + .38 * var(--reveal));
  }
}

@media (max-width: 1100px) {
  
  .plane-fly {
    display: none !important;
  }

  /* Tablet/mobile: keep project artwork and captions inside their own section.
     Without paint containment, the desktop sticky artwork can bleed through the
     decorative crest and cover the following heading on short viewports. */
  .featured-work {
    isolation: isolate;
    overflow: hidden !important;
    contain: paint;
  }

  .project-tiles,
  .tiles-row,
  .project-tile,
  .tile-overlay {
    max-height: none;
  }

  .home-extra {
    z-index: 20;
    isolation: isolate;
    background: var(--bg-base);
  }

  .home-extra::before {
    z-index: -1;
  }

  .hx-crest,
  .hx-sec {
    z-index: 1;
  }

  html.perf-lite .t-willow-sway,
  html.perf-lite .t-willow-skin {
    animation: none !important;
    transform: none !important;
  }
}


/* ---- Contact: budget chips + success celebration ---- */
.cd-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cd-chip {
  position: relative;
  cursor: pointer;
}
.cd-chip input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.cd-chip-face {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 16px;
  border: 1px solid #06060633;
  border-radius: 14px;
  background: #06060608;
  transition:
    transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color 0.18s,
    background-color 0.18s,
    box-shadow 0.22s;
}
.cd-chip-price {
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
  color: var(--text-heading);
  letter-spacing: -0.2px;
}
.cd-chip-name {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #06060685;
}
.cd-chip:hover .cd-chip-face {
  transform: translateY(-2px);
  border-color: #06060666;
}
.cd-chip input:focus-visible + .cd-chip-face {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}
.cd-chip input:checked + .cd-chip-face {
  border-color: var(--c-ink);
  background: var(--c-ink);
  box-shadow: 0 10px 22px -14px #060606cc;
}
.cd-chip input:checked + .cd-chip-face .cd-chip-price {
  color: var(--c-cream);
}
.cd-chip input:checked + .cd-chip-face .cd-chip-name {
  color: #fff9f1a6;
}
body.night .cd-chip-face {
  border-color: #fff9f133;
  background: #fff9f10d;
}
body.night .cd-chip-name {
  color: #fff9f18c;
}
body.night .cd-chip:hover .cd-chip-face {
  border-color: #fff9f166;
}
body.night .cd-chip input:checked + .cd-chip-face {
  background: var(--c-cream);
  border-color: var(--c-cream);
}
body.night .cd-chip input:checked + .cd-chip-face .cd-chip-price {
  color: var(--c-ink);
}
body.night .cd-chip input:checked + .cd-chip-face .cd-chip-name {
  color: #060606a6;
}

.cd-celebrate {
  position: absolute;
  left: 50%;
  top: 34%;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 5;
}
.cd-celebrate i {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 2px;
  opacity: 0;
  animation: cd-confetti 1.5s cubic-bezier(0.18, 0.7, 0.3, 1) var(--dl, 0ms) forwards;
}
@keyframes cd-confetti {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.4) rotate(0deg);
  }
  12% {
    opacity: 1;
  }
  60% {
    opacity: 1;
    transform: translate(var(--dx), var(--dy)) scale(1) rotate(var(--rot));
  }
  100% {
    opacity: 0;
    transform: translate(calc(var(--dx) * 1.1), calc(var(--dy) + 240px)) scale(0.85)
      rotate(var(--rot));
  }
}
.cd-done.show .cd-done-title,
.cd-done.show .cd-done-copy {
  animation: cd-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.cd-done.show .cd-done-copy {
  animation-delay: 0.12s;
}
@keyframes cd-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cd-celebrate,
  .cd-chip-face {
    animation: none !important;
    transition: none !important;
  }
  .cd-done.show .cd-done-title,
  .cd-done.show .cd-done-copy {
    animation: none !important;
  }
}

/* ac-9b99af04-src-daniyal: case-study persistent live CTA + back label */
.cs-live-float {
  position: fixed;
  right: clamp(14px, 3vw, 34px);
  bottom: calc(clamp(14px, 3vw, 30px) + env(safe-area-inset-bottom, 0px));
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: min(78vw, 320px);
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
  background: var(--bg-elevated, rgba(12, 14, 20, 0.86));
  color: inherit;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(10px);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.cs-live-float:hover,
.cs-live-float:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4);
}
.cs-live-float[hidden] { display: none; }
@media (max-width: 520px) {
  .cs-live-float { font-size: 0.85rem; padding: 10px 16px; }
}
.cs-back,
.cs-back-label,
a.cs-back span { white-space: nowrap; }

/* ac-9b99af04-src-daniyal: tablet/mid-width rhythm — remove oversized dead space */
@media (max-width: 1100px) {
  .projects {
    padding-top: clamp(84px, 11vw, 130px);
    padding-bottom: clamp(64px, 9vw, 100px);
  }

  .featured-work {
    padding-bottom: clamp(72px, 11vw, 130px);
  }

  .testimonials {
    padding-top: clamp(72px, 10vw, 104px);
    padding-bottom: clamp(72px, 10vw, 120px);
  }

  .hx-sec {
    padding-top: clamp(72px, 10vw, 118px);
  }

  .hx-sec:last-child {
    padding-bottom: clamp(32px, 5vw, 64px);
  }

  .hx-sub {
    margin-bottom: clamp(32px, 6vw, 56px);
  }

  /* Portrait plate becomes a wide plate once the pricing grid stacks. */
  .hx-trail-plate {
    aspect-ratio: 16 / 10;
  }

  .hx-trail {
    margin-bottom: 8px;
  }

  /* Step band reserves 200px of empty art on desktop; too much when stacked. */
  .hx-steps {
    padding-top: clamp(96px, 20vw, 168px);
    padding-bottom: 44px;
  }

  .hx-about-stack {
    margin-bottom: 8px;
  }
}

@media (max-width: 760px) {
  .hx-list {
    columns: 1;
  }

  .hx-tier {
    padding-top: 28px;
    padding-bottom: 22px;
  }

  .hx-retainer {
    margin-left: 0;
  }

  .hx-steps {
    padding-top: clamp(84px, 26vw, 140px);
  }
}

/* ac-9b99af04-src-daniyal: short desktop viewports — real layout flow, no shrink hacks.
   Hero switches to the same centred column used on tablets instead of being scaled down. */
@media (min-width: 1101px) and (max-height: 860px) {
  .hero,
  .hero-content {
    height: auto;
    min-height: 100svh;
  }

  .hero-content {
    position: relative;
    inset: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    translate: none;
    scale: none;
    transform: none;
    padding: clamp(144px, 20vh, 160px) clamp(48px, 7vw, 120px) clamp(36px, 6vh, 52px);
    will-change: auto;
  }

  .hero-content > h1 {
    width: 100%;
    height: auto;
    margin: 0;
  }

  .hero-eyebrow,
  .h-line,
  .hero-vertical {
    position: static;
    inset: auto;
    transform: none;
  }

  .hero-eyebrow {
    justify-content: flex-start;
    margin-bottom: 18px;
    text-align: left;
  }

  .hero-vertical {
    display: none;
  }

  .h-line {
    display: block;
    max-width: 100%;
    font-size: clamp(58px, 6.4vw, 76px);
    line-height: 1.02;
    text-align: left;
    white-space: normal;
  }

  .h-line.designer {
    height: 1.2em;
    min-height: 1.2em;
    overflow: hidden;
  }

  .hero-support,
  .hero-ctas {
    position: static;
    inset: auto;
    left: auto;
    top: auto;
    transform: none;
    z-index: 30;
  }

  .hero-support {
    width: min(100%, 700px);
    max-width: none;
    margin: 20px 0 0;
    font-size: 17px;
  }

  .hero-ctas {
    width: min(100%, 800px);
    gap: 16px;
    margin: 24px 0 0;
  }

  .hero-cta {
    min-width: 0;
    flex: 1 1 0;
  }
}

/* Principles fan: keep the cards at readable size, guarantee clearance below the heading. */
@media (min-width: 1101px) {
  .t-cards {
    --tsh: 1;
    transform-origin: 50% 0;
    top: max(238px, calc(50vh - 188px)) !important;
    transform: translate(-50%) scale(var(--tsh)) !important;
  }

  .testimonials .t-eyebrow {
    top: 104px !important;
  }

  .testimonials .t-heading {
    top: 128px !important;
    font-size: clamp(32px, 2.6vw, 40px);
  }
}

/* Only genuinely short windows need a nudge, and it stays close to full size. */
@media (min-width: 1101px) and (max-height: 720px) {
  .t-cards { --tsh: .94; top: 222px !important; }
  .testimonials .t-eyebrow { top: 92px !important; }
  .testimonials .t-heading { top: 116px !important; }
}
@media (min-width: 1101px) and (max-height: 620px) {
  .t-cards { --tsh: .88; top: 206px !important; }
  .testimonials .t-eyebrow { top: 84px !important; }
  .testimonials .t-heading { top: 106px !important; }
}
@media (min-width: 1101px) and (max-height: 540px) {
  .t-cards { --tsh: .82; top: 194px !important; }
}

/* Secondary hero button lost contrast against the cloud art. */
.hero-cta.secondary {
  border-color: color-mix(in srgb, var(--cream-text, #fff9f1) 62%, transparent);
  background: color-mix(in srgb, #071321 34%, transparent);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  backdrop-filter: blur(10px) saturate(1.1);
}

/* About polaroids: stop the second photo burying the first one. */
@media (max-width: 1100px) {
  .hx-about-stack {
    padding-right: 18px;
  }

  .hx-about-card.b {
    width: 56%;
    left: 44%;
    transform: rotate(3.4deg) translate(0, -4px);
  }
}

@media (max-width: 760px) {
  .hx-about-stack {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 8px 0 0;
  }

  .hx-about-card,
  .hx-about-card.b {
    position: relative;
    inset: auto;
    width: 100%;
    left: auto;
    top: auto;
    transform: none;
  }
}

.t-eyebrow,
.t-heading {
  font-family: "Space Grotesk", sans-serif;
}

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: auto;
  min-height: 0;
  padding: clamp(48px, 6vw, 80px) 24px calc(32px + env(safe-area-inset-bottom, 0px));
}

.footer .ft-land {
  height: auto;
  max-width: none;
}

.footer .ft-inner {
  position: relative;
  inset: auto;
  width: min(100%, 1000px);
  height: auto;
  margin: 0 auto 24px;
  gap: clamp(16px, 2vw, 28px);
  transform: none;
  order: 1;
}

.footer .ft-links,
.footer .ft-social,
.footer .ft-credit {
  position: relative;
  inset: auto;
  transform: none;
}

.footer .ft-links {
  width: min(100%, 900px);
  max-width: 100%;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  order: 2;
}

.footer .ft-social {
  margin: 14px auto 0;
  justify-content: center;
  order: 3;
}

.footer .ft-credit {
  margin: 12px auto 0;
  order: 4;
}

@media (max-width: 640px) {
  .hero-eyebrow {
    font-size: 12px;
    line-height: 1.4;
  }

  .hx-trail-legend {
    font-size: 12px;
    line-height: 1.4;
  }
}

/* Extra clearance so the heading reveal never touches the cards on stacked layouts. */
@media (max-width: 1100px) {
  .t-heading { margin-bottom: 64px; }
}

/* Power saver: freeze decorative motion when hidden or off-screen */
.tab-hidden *,
.tab-hidden *::before,
.tab-hidden *::after,
.fx-offscreen *,
.fx-offscreen *::before,
.fx-offscreen *::after {
  animation-play-state: paused !important;
}
