/* ================================================================
   DK Construction — shared styles (multi-page)
   Dark brand hero/CTA/footer + LIGHT content bands with real photos.
   Ported from the original single-file build, plus the light system.
   ================================================================ */

html { scroll-behavior: smooth; }
body { font-family: 'IBM Plex Sans', sans-serif; }
::selection { background: #E0A93B; color: #16191D; }

/* The single restrained motif: a small uppercase kicker above headings */
.kicker { font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase;
          color: #4F94D4; font-weight: 700; }

/* Nav links — bigger, brighter, with a gold underline so they read clearly */
.navlink { position: relative; font-size: 0.975rem; font-weight: 600; color: #C9CFD6;
  padding: 6px 2px; text-decoration: none; white-space: nowrap; transition: color .2s ease; }
.navlink:hover, .navlink.active { color: #fff; }
.navlink::after { content: ""; position: absolute; left: 0; bottom: -5px; height: 2px; width: 100%;
  background: #E0A93B; transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.navlink:hover::after, .navlink.active::after { transform: scaleX(1); }

/* Dark glass card, for cards sitting over a photo-background section */
.glass { background: rgba(17,20,25,0.66); border: 1px solid rgba(255,255,255,0.10);
  -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
  transition: transform .25s ease, border-color .25s ease, background .25s ease; }
.glass:hover { transform: translateY(-4px); border-color: rgba(224,169,59,0.5);
  background: rgba(20,24,30,0.78); }
/* On light sections the blue kicker needs to be a touch deeper for contrast */
.on-light .kicker { color: #2F74BE; }

/* ---------------------------------------------------------------
   LIGHT SECTION SYSTEM
   .band-light  = white content band (dark text)
   .band-tint   = soft blueprint-gray band
   .band-photo  = full-bleed photo band w/ readable overlay (dark text if .band-photo-light)
   --------------------------------------------------------------- */
.on-light { color: #1E293B; }
.on-light h1, .on-light h2, .on-light h3 { color: #0F2A4A; }
.on-light .muted-c { color: #55636E; }

.card-light { background: #FBF7EF; border: 1px solid #DED4C1;
  box-shadow: 0 1px 2px rgba(60,45,20,.05), 0 14px 30px rgba(60,45,20,.08);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.card-light:hover { transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(60,45,20,.09), 0 26px 48px rgba(60,45,20,.15);
  border-color: #cabfa5; }

/* Photo band: image + gradient scrim. Text sits above via position. */
.band-photo { position: relative; overflow: hidden; }
.band-photo > .band-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band-photo > .band-scrim { position: absolute; inset: 0; }
.band-photo > .band-inner { position: relative; }

/* thin gold rule used to open light sections */
.rule-gold { width: 46px; height: 3px; background: #E0A93B; border-radius: 2px; }

/* Photo cards / gallery tiles brighten a touch on hover */
.photo-zoom { overflow: hidden; }
.photo-zoom img { transition: transform .6s cubic-bezier(.22,1,.36,1), filter .4s ease; }
.photo-zoom:hover img { transform: scale(1.06); filter: saturate(1.05) brightness(1.03); }

/* Capability card slideshow — a clean directional slide + crossfade (no hard jump) */
.slides .slide {
  opacity: 0; transform: translateX(34px) scale(1.04);
  transition: opacity 1s ease, transform 1.1s cubic-bezier(.22,1,.36,1);
  will-change: opacity, transform;
}
.slides .slide.is-active { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .slides .slide { transition: none; transform: none; }
}

/* Gallery placeholder frames — depth + loading shimmer until a real photo drops in */
.frame { position: relative; overflow: hidden;
         background: radial-gradient(circle at 50% 38%, #242b33, #15191e 72%); }
.frame:not(:has(img))::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 28%, rgba(255,255,255,0.07) 47%, rgba(120,170,230,0.06) 53%, transparent 72%);
  transform: translateX(-100%);
  animation: shimmer 2.4s ease-in-out infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .frame::after { animation: none; opacity: 0; } }

/* Gallery pictures fade + scale in as they scroll into view */
.js .pic { opacity: 0; transform: translateY(24px) scale(.94);
       transition: opacity .55s ease, transform .6s cubic-bezier(.34,1.4,.64,1), border-color .2s ease; }
.pic.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .pic { opacity: 1 !important; transform: none !important; } }

/* Scroll reveal (class added by JS only — no JS means content stays visible) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; } }

/* Hero: faint blueprint texture, faded toward the edges, slowly drifting */
.hero-grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 35%, transparent 78%);
          mask-image: radial-gradient(ellipse at center, #000 35%, transparent 78%);
  animation: gridDrift 9s linear infinite;
}
@keyframes gridDrift { to { background-position: 34px 34px; } }
.glow-gold { animation: floatGold 14s ease-in-out infinite; }
.glow-blue { animation: floatBlue 17s ease-in-out infinite; }
@keyframes floatGold { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-130px,100px) scale(1.14); } }
@keyframes floatBlue { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(140px,-80px) scale(1.16); } }

.faq-body { max-height: 0; overflow: hidden; transition: max-height 260ms ease; }
.faq-item[data-open="true"] .faq-body { max-height: 360px; }
.faq-item[data-open="true"] .faq-sign { transform: rotate(45deg); }

/* ============ Recent-work: full-screen click-to-tour launcher ============ */
.show { position: relative; overflow: hidden; border: 0; border-radius: 0;
  height: 100vh; height: 100svh; min-height: 540px; background: #0e1115; }
.show-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1s ease; }
.show-slide.on { opacity: 1; visibility: visible; }
.show-media { position: absolute; inset: 0; }
.show-media img { width: 100%; height: 100%; object-fit: cover; }
.show-slide.on .show-media { animation: showZoom 6.5s ease-out forwards; }
@keyframes showZoom { from { transform: scale(1.09); } to { transform: scale(1); } }
.show-launch-scrim { position: absolute; inset: 0; z-index: 2;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(8,10,13,.42) 0%, rgba(8,10,13,.74) 100%),
    linear-gradient(0deg, rgba(8,10,13,.92) 0%, rgba(8,10,13,.2) 34%, rgba(8,10,13,.35) 100%); }
.show-overlay { position: absolute; inset: 0; z-index: 3; display: grid;
  grid-template-rows: auto 1fr auto; grid-template-columns: minmax(0, 1fr);
  align-items: center; justify-items: center;
  padding: clamp(26px,6vh,60px) clamp(20px,4vw,56px) clamp(22px,4vh,44px); pointer-events: none; }
.show-overlay > * { min-width: 0; max-width: 100%; }
.show-overlay .show-cta, .show-overlay .show-thumb { pointer-events: auto; }
.show-head { text-align: center; }
.show-head .kicker { display: block; margin-bottom: 14px; color: #4F94D4; }
.show-head-title { font-family: 'Archivo', sans-serif; font-weight: 800; color: #fff;
  letter-spacing: -.015em; line-height: 1.08; margin: 0; font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); }
.show-head-sub { margin: 16px auto 0; max-width: 34rem; font-size: 14.5px; line-height: 1.6; color: rgba(255,255,255,.76); }
.show-cta { display: grid; justify-items: center; gap: 16px; background: none; border: 0; cursor: pointer;
  color: #fff; text-align: center; transition: transform .35s ease; }
.show-cta .sl-eyebrow { margin-bottom: -8px; }
.show-cta:hover, .show-cta:focus-visible { transform: translateY(-3px); outline: none; }
.sl-playwrap { position: relative; display: grid; place-items: center; width: 84px; height: 84px; }
.sl-play { width: 84px; height: 84px; border-radius: 999px; display: grid; place-items: center;
  background: #F5B301; color: #0F2A4A; box-shadow: 0 14px 44px rgba(0,0,0,.5); transition: transform .3s ease, box-shadow .3s ease; }
.show-cta:hover .sl-play, .show-cta:focus-visible .sl-play { transform: scale(1.07); box-shadow: 0 18px 52px rgba(245,179,1,.28); }
.sl-play svg { width: 32px; height: 32px; margin-left: 5px; }
.sl-pulse { position: absolute; inset: 0; border-radius: 999px; border: 2px solid rgba(245,179,1,.55); animation: slPulse 2.6s ease-out infinite; }
@keyframes slPulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.85); opacity: 0; } }
.sl-eyebrow { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: #F5B301; }
.sl-sub { font-size: 13px; color: rgba(255,255,255,.82); }
.show-strip-wrap { width: 100%; max-width: 1180px; }
.show-strip-label { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: rgba(255,255,255,.6); margin: 0 0 16px 2px; }
.show-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.show-thumb { background: none; border: 0; padding: 0; cursor: pointer; display: block; text-align: left; }
.show-thumb-media { position: relative; aspect-ratio: 16 / 10; border-radius: 9px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.16); display: grid; place-items: center;
  background: radial-gradient(circle at 50% 38%, #242b33, #15191e 72%);
  transition: border-color .2s ease, transform .25s ease, box-shadow .25s ease; }
.show-thumb-media img { width: 100%; height: 100%; object-fit: cover; }
.show-thumb-media > svg { width: 24px; height: 24px; color: rgba(150,170,200,.4); }
.show-thumb:hover .show-thumb-media { transform: translateY(-4px); border-color: rgba(245,179,1,.7); }
.show-thumb:focus-visible .show-thumb-media { outline: 2px solid #F5B301; outline-offset: 2px; }
.show-thumb[aria-current="true"] .show-thumb-media { border-color: #F5B301; box-shadow: 0 0 0 2px rgba(245,179,1,.55), 0 10px 30px rgba(0,0,0,.4); }
.show-thumb-cat { display: block; margin-top: 12px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #F5B301; font-weight: 700; }
.show-thumb-cap { display: block; margin-top: 4px; font-size: 13px; color: #fff; font-weight: 600; line-height: 1.35; letter-spacing: -.005em; }
@media (max-width: 767px) {
  .show-overlay { padding-top: 84px; padding-bottom: 78px; }
  .show-strip { display: flex; gap: 11px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 4px; scrollbar-width: none; }
  .show-strip::-webkit-scrollbar { display: none; }
  .show-thumb { flex: 0 0 44%; scroll-snap-align: start; }
  .show-head-sub { display: none; }
}
@media (prefers-reduced-motion: reduce) { .sl-pulse { animation: none; } .show-cta { transition: none; } }

/* ============ Full-screen project tour ============ */
.tour { position: fixed; inset: 0; z-index: 80; background: #060809; display: grid; opacity: 0; transition: opacity .3s ease; }
.tour.open { opacity: 1; }
.tour[hidden] { display: none; }
.tour-stage { position: relative; width: 100%; height: 100%; overflow: hidden; }
.tour-media { position: absolute; inset: 0; }
.tour-media img { width: 100%; height: 100%; object-fit: cover; }
.tour-media.frame { background: radial-gradient(circle at 50% 38%, #242b33, #15191e 72%); display: grid; place-items: center; }
.tour-media.frame > svg { width: 56px; height: 56px; color: rgba(150,170,200,.35); }
.tour.open .tour-media { animation: tourIn .6s ease-out; }
@keyframes tourIn { from { opacity: 0; transform: scale(1.05); } to { opacity: 1; transform: none; } }
.tour-scrim { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6,8,9,.94) 2%, rgba(6,8,9,.5) 32%, rgba(6,8,9,.15) 60%, rgba(6,8,9,.45) 100%); }
.tour-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 28px 24px calc(34px + env(safe-area-inset-bottom)); max-width: 760px; margin: 0 auto; }
.tour.open .tour-cap { animation: tourCapIn .55s ease-out .12s both; }
@keyframes tourCapIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.tour-title { font-family: 'Archivo', sans-serif; font-weight: 800; color: #fff; margin-top: 8px; letter-spacing: -.01em; font-size: clamp(1.6rem, 1.1rem + 2.4vw, 2.6rem); line-height: 1.08; }
.tour-desc { margin-top: 12px; color: rgba(236,238,241,.86); line-height: 1.6; font-size: clamp(.95rem, .9rem + .3vw, 1.05rem); }
.tour-close { position: absolute; top: 18px; right: 18px; z-index: 4; width: 46px; height: 46px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: rgba(13,16,20,.6); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .2s, transform .2s; }
.tour-close:hover { background: rgba(245,179,1,.92); color: #0F2A4A; transform: rotate(90deg); }
.tour-count { position: absolute; top: 26px; left: 24px; z-index: 4; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: rgba(255,255,255,.8); }
.tour-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; width: 54px; height: 54px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: rgba(13,16,20,.55); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .2s, transform .2s; }
.tour-nav:hover { background: rgba(245,179,1,.92); color: #0F2A4A; }
.tour-prev { left: 18px; } .tour-next { right: 18px; }
.tour-prev:hover { transform: translateY(-50%) translateX(-3px); }
.tour-next:hover { transform: translateY(-50%) translateX(3px); }
.tour-dots { position: absolute; right: 24px; bottom: 30px; z-index: 4; display: flex; gap: 8px; }
.tour-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.32); cursor: pointer; transition: width .25s, background .25s; }
.tour-dots button[aria-current="true"] { width: 24px; background: #F5B301; }
@media (max-width: 640px) {
  .tour-nav { width: 46px; height: 46px; font-size: 24px; }
  .tour-prev { left: 10px; } .tour-next { right: 10px; }
  .tour-dots { right: 50%; transform: translateX(50%); bottom: 22px; }
  .tour-cap { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .tour, .tour.open .tour-media, .tour.open .tour-cap { animation: none; transition: none; } }

/* Global reduce-motion, with the hero ambient exception kept alive (user choice) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-grid { animation: gridDrift 9s linear infinite !important; }
  .glow-gold { animation: floatGold 14s ease-in-out infinite !important; }
  .glow-blue { animation: floatBlue 17s ease-in-out infinite !important; }
}
