/* Delta Chip Holdings design preview — shell, navigation, hero, showcase and footer. */

/* Logo: original raster, presented through CSS crops. No programmatic raster edits. */
.brand-layers {
  --mark-h: 30px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 0;
}

.brand-layers__mark,
.brand-layers__word {
  display: block;
  flex: none;
  background-image: url("../img/deltachip-logo.jpg");
  background-repeat: no-repeat;
  mix-blend-mode: multiply;
}

.brand-layers__mark {
  width: calc(var(--mark-h) * 0.88412);
  height: var(--mark-h);
  background-size: 310.7% auto;
  background-position: 49.77% 34.64%;
}

.brand-layers__word {
  width: calc(var(--mark-h) * 4.21698);
  height: var(--mark-h);
  background-size: 143.18% auto;
  background-position: 49.74% 73.03%;
}

.brand-layers--footer { --mark-h: clamp(34px, 10vw, 56px); }
.brand-layers--footer .brand-layers__mark,
.brand-layers--footer .brand-layers__word { mix-blend-mode: normal; }
.brand-layers--display { --mark-h: clamp(30px, 9vw, 50px); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled { border-bottom-color: transparent; box-shadow: var(--shadow-sm); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand { display: inline-flex; text-decoration: none; }

.nav-desktop { display: none; align-items: center; gap: 0.15rem; }
.nav-wrap.nav-desktop { flex: 1 1 auto; justify-content: center; min-width: 0; }
.nav-wrap.nav-desktop > ul.nav-desktop {
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-wrap.nav-desktop > ul.nav-desktop > li { margin: 0; padding: 0; }

.nav-link {
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-link:hover { color: var(--navy-700); background: rgba(16, 48, 88, 0.07); }
.nav-link[aria-current="page"] { color: var(--navy-700); }
.nav-link.is-cta { margin-left: 0.4rem; background: var(--red); color: var(--white); }
.nav-link.is-cta:hover { background: var(--red-deep); color: var(--white); }

.header-utilities { display: none; align-items: center; gap: 0.85rem; }
.header-contact { color: var(--muted); font-size: 0.84rem; font-weight: 600; text-decoration: none; }
.header-contact:hover { color: var(--navy-700); }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  font-size: 0.86rem;
  font-weight: 650;
}

.menu-toggle__bars { display: grid; gap: 4px; width: 16px; }
.menu-toggle__bars span { display: block; height: 1.5px; background: currentColor; transition: transform 180ms ease; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:first-child { transform: translateY(2.75px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:last-child { transform: translateY(-2.75px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 49;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--white);
  border-top: 1px solid var(--line);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 200ms ease, transform 200ms var(--ease-out);
}

.mobile-menu.is-open { opacity: 1; transform: translateY(0); }
.mobile-menu__inner { padding-block: 1.75rem max(2.5rem, env(safe-area-inset-bottom)); }

.nav-mobile { display: grid; }
.nav-wrap.nav-mobile > ul.nav-mobile { margin: 0; padding: 0; list-style: none; }
.nav-wrap.nav-mobile > ul.nav-mobile > li { margin: 0; padding: 0; }

.nav-mobile__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.4rem, 6.4vw, 1.9rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.nav-mobile__link.is-cta { color: var(--red); }
.nav-mobile__link.is-cta::after { content: "→"; font-size: 1rem; }
.nav-mobile__link[aria-current="page"]::before { content: ""; width: 8px; height: 8px; margin-right: 0.75rem; background: var(--red); }

.mobile-services { margin-top: 1.4rem; border-top: 1px solid var(--line); }
.mobile-services summary { padding: 1rem 0; font-weight: 650; }
.mobile-services__links { display: grid; gap: 0.6rem; padding: 0 0 1.2rem; }
.mobile-services__links a { color: var(--ink-soft); text-decoration: none; }
.mobile-services__links a:hover { color: var(--navy-700); }

.mobile-menu__contact { display: grid; gap: 0.5rem; margin-top: 1.4rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.mobile-menu__contact a { color: var(--navy-700); font-weight: 650; text-decoration: none; }
.mobile-menu__note { margin-top: 1rem; color: var(--muted); font-size: 0.82rem; }

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-top: clamp(2rem, 4vw, 3.25rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  background: var(--navy-900);
  color: var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(90% 120% at 88% -10%, rgba(47, 111, 208, 0.42) 0%, rgba(6, 17, 35, 0) 58%),
    radial-gradient(70% 90% at 4% 108%, rgba(224, 30, 43, 0.24) 0%, rgba(6, 17, 35, 0) 62%),
    linear-gradient(180deg, #071427 0%, #0a1c33 62%, #0b2038 100%);
}

.hero__rule {
  position: absolute;
  z-index: 0;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red) 0 22%, rgba(255, 255, 255, 0.14) 22% 100%);
}

.hero__grid,
.hero__showcase { position: relative; z-index: 1; }

.hero__grid { display: grid; gap: clamp(2rem, 4vw, 3.25rem); align-items: start; }
.hero__copy { min-width: 0; }
.hero__title { margin-top: 1rem; max-width: 15ch; }
.hero__support { margin-top: 1.25rem; max-width: 42ch; color: #c8d6ec; }
.hero__actions { margin-top: 1.75rem; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; margin-top: 1.5rem; color: #93a6c4; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.09em; text-transform: uppercase; }
.hero__meta span { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero__meta span::before { content: ""; width: 6px; height: 6px; background: var(--red); }

/* Compact high-contrast project-start card (service selector + link, no sensitive form). */
.start-card {
  display: grid;
  gap: 1rem;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 4px solid var(--red);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-lg);
}

.start-card__title { font-size: clamp(1.35rem, 2.3vw, 1.75rem); }
.start-card__text { color: #c8d6ec; font-size: 0.94rem; }
.start-card__field { display: grid; gap: 0.4rem; }
.start-card__field label { font-size: 0.78rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: #93a6c4; }
.start-card select {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--radius-sm);
  background: rgba(6, 17, 35, 0.6);
  color: var(--white);
  font-size: 0.95rem;
}
.start-card__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.start-card__contact { display: grid; gap: 0.35rem; padding-top: 0.9rem; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.86rem; }
.start-card__contact a { color: #c8d6ec; text-decoration: none; }
.start-card__contact a:hover { color: var(--white); text-decoration: underline; }

/* Screenshot collage: real client work in browser frames. */
.hero__showcase { display: grid; gap: 0.85rem; margin-top: clamp(1.75rem, 3.5vw, 2.75rem); }

.browser {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: #0b1523;
  color: var(--white);
  text-decoration: none;
  box-shadow: 0 18px 44px rgba(3, 9, 20, 0.55);
  transition: border-color 200ms ease, transform 200ms var(--ease-out);
}

.browser:hover { border-color: rgba(255, 255, 255, 0.42); transform: translateY(-3px); }

.browser__bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.7rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.browser__dots { display: flex; gap: 4px; flex: none; }
.browser__dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.3); }
.browser__dots span:first-child { background: var(--red); }
.browser__name { margin-left: auto; min-width: 0; font-size: 0.66rem; font-weight: 650; letter-spacing: 0.08em; line-height: 1.35; text-transform: uppercase; color: rgba(255, 255, 255, 0.85); white-space: normal; }


.browser--feature { border-color: rgba(255, 255, 255, 0.28); }

/* Image frames. Only the <img> is ever transformed; frames and text stay still. */
.shot {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--navy-900);
}

.shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--shot-pos, 50% 0%);
  transform-origin: 50% 50%;
}

.browser .shot { aspect-ratio: 16 / 10; }

/* Page openings for inner pages */
.page-opening {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-top: clamp(2.25rem, 4.5vw, 3.75rem);
  padding-bottom: clamp(2.25rem, 4.5vw, 3.5rem);
  background: var(--navy-900);
  color: var(--white);
}

.page-opening::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(80% 130% at 92% -20%, rgba(47, 111, 208, 0.38) 0%, rgba(6, 17, 35, 0) 60%),
    linear-gradient(180deg, #071427 0%, #0a1c33 100%);
}

.page-opening > .container { position: relative; z-index: 1; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 0.45rem; color: #93a6c4; font-size: 0.82rem; }
.breadcrumbs a { text-decoration: none; color: #c8d6ec; }
.breadcrumbs a:hover { color: var(--white); }
.page-opening__title { margin-top: 1.25rem; max-width: 18ch; }
.page-opening__lede { margin-top: 1.25rem; color: #c8d6ec; }
.page-opening__actions { margin-top: 1.75rem; }

/* Capability strip */
.capability-strip { background: var(--navy-800); color: var(--white); border-bottom: 3px solid var(--red); }
.capability-strip__inner { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; align-items: center; padding-block: 1.1rem; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.09em; text-transform: uppercase; }
.capability-strip__dot { width: 6px; height: 6px; background: var(--red); }

/* Footer */
.site-footer { padding-top: clamp(3rem, 6vw, 5rem); background: var(--navy-900); color: #c8d6ec; }
.footer-grid { display: grid; gap: 2rem; }
.footer-column { display: grid; align-content: start; gap: 0.5rem; }
.footer-column a { color: #c8d6ec; text-decoration: none; font-size: 0.92rem; }
.footer-column a:hover { color: var(--white); text-decoration: underline; }
.footer-label { margin-bottom: 0.35rem; color: #8ea3c2; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; }
.footer-location { color: #c8d6ec; font-size: 0.92rem; }
.footer-note { max-width: 34ch; color: #8ea3c2; font-size: 0.86rem; }
.footer-legal-name { margin-top: 0.75rem; color: var(--white); font-weight: 650; }
.footer-signature { display: flex; justify-content: flex-start; margin-top: clamp(2.5rem, 6vw, 4.5rem); padding-block: 1.4rem; border-top: 1px solid var(--line-inverse); }
.footer-signature .brand-layers { padding: 0.7rem 0.95rem; background: var(--white); border-radius: var(--radius-sm); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; padding-block: 1rem 1.3rem; border-top: 1px solid var(--line-inverse); color: #8ea3c2; font-size: 0.78rem; }

/* Contact band used across pages */
.contact-band { display: grid; gap: 1.5rem; padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: var(--radius); background: var(--surface); }
.contact-band__links { display: grid; gap: 0.65rem; }
.contact-band__links a { display: inline-flex; align-items: center; gap: 0.55rem; width: fit-content; color: var(--navy-700); font-weight: 650; text-decoration: none; }
.contact-band__links a::before { content: ""; width: 8px; height: 8px; background: var(--red); flex: none; }

@media (min-width: 640px) {
  .hero__showcase { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero__showcase > :first-child { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-band { grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); align-items: center; }
}

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr); align-items: center; }
  .hero__showcase { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); align-items: end; }
  .hero__showcase > :first-child { grid-column: auto; }
  .browser--feature .shot { aspect-ratio: 16 / 9; }
  .footer-grid { grid-template-columns: 1.1fr 1.1fr 1fr 1.2fr; }
}

@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
  .menu-toggle { display: none; }
  .header-utilities { display: flex; }
  .mobile-menu { display: none !important; }
}

@media (min-width: 1180px) {
  :root { --header-h: 80px; }
  .brand-layers--header { --mark-h: 33px; }
}
