/* ==========================================================================
   Himalayan CodeX — Premium Corporate Stylesheet
   Palette: Midnight navy, steel blue, cool slate
   ========================================================================== */

:root {
  /* Professional corporate palette — navy, steel, cool gray */
  --ink: #0b1424;
  --ink-soft: #121c2e;
  --ink-elevated: #1a2740;
  --mist: #eef2f7;
  --snow: #f7f9fc;
  --stone: #4a5b73;
  --stone-soft: #6b7c93;
  --glacier: #2f6f9f;
  --glacier-deep: #1d4f7a;
  --glacier-soft: #4f8fbf;
  --glacier-glow: #8ebfe0;
  --ice: #d7e3ef;
  --alpine: #a9c5db;
  --line: rgba(29, 79, 122, 0.18);
  --shadow: 0 18px 48px rgba(11, 20, 36, 0.12);
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1120px;
  --font-display: "Plus Jakarta Sans", "Inter", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 128px;
  --header-bg: #0a1a2f;
  --footer-bg: #071525;

  --bg: var(--snow);
  --bg-alt: #eef2f7;
  --bg-elevated: #ffffff;
  --text: var(--ink);
  --text-muted: var(--stone);
  --border: rgba(11, 20, 36, 0.1);
  --nav-bg: rgba(247, 249, 252, 0.92);
  --hero-overlay: linear-gradient(
    165deg,
    rgba(11, 20, 36, 0.38) 0%,
    rgba(11, 20, 36, 0.6) 42%,
    rgba(11, 20, 36, 0.84) 72%,
    rgba(11, 20, 36, 0.95) 100%
  );
  --accent: var(--glacier-deep);
  --accent-hover: var(--glacier);
  --accent-grad: linear-gradient(135deg, #163a5c 0%, #1d4f7a 45%, #2f6f9f 100%);
  --btn-text: #ffffff;
  --input-bg: #ffffff;
  --success: #1f7a4d;
  --error: #b42318;
  --toast-bg: #ffffff;
}

html.dark {
  --bg: var(--ink);
  --bg-alt: var(--ink-soft);
  --bg-elevated: var(--ink-elevated);
  --text: #eef3f9;
  --text-muted: #9aadc4;
  --border: rgba(215, 227, 239, 0.12);
  --nav-bg: rgba(11, 20, 36, 0.9);
  --hero-overlay: linear-gradient(
    165deg,
    rgba(8, 14, 26, 0.3) 0%,
    rgba(8, 14, 26, 0.56) 40%,
    rgba(8, 14, 26, 0.84) 70%,
    rgba(8, 14, 26, 0.96) 100%
  );
  --accent: var(--glacier-soft);
  --accent-hover: var(--glacier-glow);
  --accent-grad: linear-gradient(135deg, #1d4f7a 0%, #4f8fbf 55%, #8ebfe0 100%);
  --btn-text: #0b1424;
  --input-bg: rgba(255, 255, 255, 0.04);
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.42);
  --toast-bg: var(--ink-elevated);
  --success: #3ecf8e;
  --error: #ff7b72;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  font-weight: 700;
}

h1 {
  font-weight: 900;
}

p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.section {
  padding: clamp(4.5rem, 8vw, 7rem) 0;
}

.section-alt {
  background: var(--bg-alt);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-head {
  max-width: 40rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  color: var(--text);
}

.section-head p {
  font-size: 1.05rem;
}

/* -------------------------------------------------------------------------- */
/* Header / Navigation                                                         */
/* -------------------------------------------------------------------------- */

header#site-header {
  background: linear-gradient(180deg, #0e223a 0%, var(--header-bg) 100%) !important;
}

#site-header.site-header,
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, #0e223a 0%, var(--header-bg) 100%) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(142, 191, 224, 0.16);
  box-shadow: 0 8px 28px rgba(7, 21, 37, 0.28);
  color: #fff;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease), color 0.3s var(--ease);
}

html.light #site-header.site-header,
html.light .site-header,
html.dark #site-header.site-header,
html.dark .site-header,
.site-header.is-scrolled,
.site-header.menu-open,
.site-header.on-hero {
  background: linear-gradient(180deg, #0e223a 0%, var(--header-bg) 100%) !important;
  border-bottom-color: rgba(142, 191, 224, 0.16);
  color: #fff;
}

/* Dark header nav — readable in light + dark page themes */
#site-header .brand,
.site-header .brand {
  color: #fff;
}

#site-header .nav-desktop a,
.site-header .nav-desktop a {
  color: rgba(255, 255, 255, 0.78) !important;
}

#site-header .nav-desktop a:hover,
#site-header .nav-desktop a.is-active,
.site-header .nav-desktop a:hover,
.site-header .nav-desktop a.is-active {
  color: #ffffff !important;
}

#site-header .icon-btn,
.site-header .icon-btn {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
}

#site-header .icon-btn:hover,
.site-header .icon-btn:hover {
  border-color: var(--glacier-soft) !important;
}

#site-header .nav-mobile,
.site-header .nav-mobile {
  background: var(--header-bg) !important;
  border-bottom-color: rgba(142, 191, 224, 0.14);
}

#site-header .nav-mobile a,
.site-header .nav-mobile a {
  color: rgba(255, 255, 255, 0.9);
}

#site-header .nav-mobile a:hover,
#site-header .nav-mobile a.is-active,
.site-header .nav-mobile a:hover,
.site-header .nav-mobile a.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--glacier-glow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
  color: var(--text);
}

.brand-logo {
  display: block;
  height: 94px;
  width: auto;
  max-width: min(280px, 58vw);
  object-fit: contain;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.footer-brand .brand-logo {
  height: 94px;
  max-width: 280px;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-wordmark span:first-child {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-wordmark span:last-child {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.65rem;
}

.nav-desktop a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-desktop a:hover,
.nav-desktop a.is-active {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.icon-btn:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.theme-btn .icon-moon { display: none; }
html.dark .theme-btn .icon-sun { display: none; }
html.dark .theme-btn .icon-moon { display: block; }

.menu-toggle {
  display: inline-flex;
}

.nav-mobile {
  display: none;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem 1.5rem;
}

.site-header.menu-open .nav-mobile {
  display: grid;
  gap: 0.35rem;
}

.nav-mobile a {
  padding: 0.85rem 0.9rem;
  border-radius: 12px;
  font-weight: 600;
  color: var(--text);
}

.nav-mobile a:hover,
.nav-mobile a.is-active {
  background: var(--bg-alt);
  color: var(--accent);
}

.nav-mobile .btn {
  margin-top: 0.5rem;
  justify-content: center;
}

/* -------------------------------------------------------------------------- */
/* Buttons                                                                     */
/* -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--accent-grad);
  color: var(--btn-text);
  box-shadow: 0 12px 32px rgba(29, 79, 122, 0.28);
}

.btn-primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 14px 36px rgba(29, 79, 122, 0.36);
}

.btn-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #fff;
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-sm {
  min-height: 42px;
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
}

/* -------------------------------------------------------------------------- */
/* Hero + Auto Slider                                                          */
/* -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: min(100vh, 880px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.45s ease, transform 2.8s ease-out;
  will-change: opacity, transform;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--hero-overlay);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(100% - 2.5rem, var(--container));
  margin: 0 auto;
  padding: calc(var(--header-h) + 2.5rem) 0 4.5rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 1.25rem;
  max-width: 14ch;
  min-height: 1.1em;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
}

.hero-brand em {
  font-style: normal;
  color: var(--glacier-glow);
  background: linear-gradient(120deg, #4f8fbf 0%, #8ebfe0 55%, #a9c5db 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.typewriter-cursor {
  display: inline-block;
  width: 0.08em;
  height: 0.85em;
  margin-left: 0.08em;
  background: var(--glacier-glow);
  vertical-align: -0.05em;
  animation: typeBlink 0.85s steps(1) infinite;
}

.typewriter-cursor.is-done {
  opacity: 0;
  animation: none;
}

@keyframes typeBlink {
  50% { opacity: 0; }
}

.hero-copy {
  max-width: 34rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 1.75rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-meta {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  font-weight: 600;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.75rem;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.35);
  transition: width 0.35s var(--ease), background 0.3s ease;
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

.hero-dot.is-active {
  width: 28px;
  background: var(--glacier-glow);
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: opacity 0.3s ease;
    transform: none !important;
  }
}

/* -------------------------------------------------------------------------- */
/* About                                                                       */
/* -------------------------------------------------------------------------- */

.about-story {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
}

.about-story-top {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}

.about-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 280px;
  position: relative;
  isolation: isolate;
}

.about-media img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  max-height: 520px;
  object-fit: cover;
}

.about-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(transparent, rgba(11, 21, 24, 0.5));
  pointer-events: none;
}

.about-copy {
  max-width: 38rem;
}

.about-copy h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  margin-bottom: 1rem;
}

.about-copy p {
  font-size: 1.02rem;
}

.about-pillars {
  display: grid;
  gap: 1.25rem;
  padding-top: 0.25rem;
  border-top: 0;
}

.about-pillar {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.4rem 1.45rem;
  box-shadow: 0 10px 28px rgba(6, 16, 20, 0.05);
  height: 100%;
  transition: border-color 0.25s ease, transform 0.25s var(--ease);
}

html.dark .about-pillar {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.about-pillar:hover {
  border-color: rgba(29, 79, 122, 0.35);
  transform: translateY(-2px);
}

.about-pillar h3 {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.about-pillar p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: none;
}

.about-cta {
  margin-top: 0.25rem;
}

.mv-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.mv-card {
  padding: 1.35rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

.mv-card h3 {
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 0.45rem;
}

.mv-card p {
  margin: 0;
  font-size: 0.95rem;
}

/* -------------------------------------------------------------------------- */
/* Services                                                                    */
/* -------------------------------------------------------------------------- */

.services-grid {
  display: grid;
  gap: 1.15rem;
}

.service-card {
  padding: 1.6rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  transition: border-color 0.25s ease, transform 0.25s var(--ease);
}

.service-card:hover {
  border-color: rgba(29, 79, 122, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(13, 111, 100, 0.1);
}

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  background: linear-gradient(145deg, rgba(29, 79, 122, 0.14), rgba(79, 143, 191, 0.08));
  color: var(--accent);
}

.service-icon svg {
  width: 22px;
  height: 22px;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.55rem;
}

.service-card p {
  margin: 0;
  font-size: 0.95rem;
}

/* -------------------------------------------------------------------------- */
/* Portfolio                                                                   */
/* -------------------------------------------------------------------------- */

.portfolio-grid {
  display: grid;
  gap: 1.25rem;
}

.project-card {
  display: grid;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  transition: transform 0.25s var(--ease);
}

.project-card:hover {
  transform: translateY(-4px);
}

.project-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-alt);
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.project-card:hover .project-media img {
  transform: scale(1.04);
}

.project-body {
  padding: 1.35rem 1.4rem 1.5rem;
}

.project-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.55rem;
}

.project-body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.45rem;
}

.project-body p {
  margin: 0;
  font-size: 0.92rem;
}

/* -------------------------------------------------------------------------- */
/* Why Choose Us                                                               */
/* -------------------------------------------------------------------------- */

.why-grid {
  display: grid;
  gap: 1.15rem;
}

.why-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.why-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--accent);
  line-height: 1;
  padding-top: 0.15rem;
}

.why-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.why-item p {
  margin: 0;
  font-size: 0.92rem;
}

/* -------------------------------------------------------------------------- */
/* Contact                                                                     */
/* -------------------------------------------------------------------------- */

.contact-layout {
  display: grid;
  gap: 2rem;
}

.contact-panel {
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
}

.contact-aside {
  display: grid;
  gap: 1.25rem;
  align-content: start;
}

.contact-aside h2 {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.contact-list li {
  display: grid;
  gap: 0.2rem;
}

.contact-list span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.contact-list a,
.contact-list p {
  margin: 0;
  color: var(--text);
  font-weight: 600;
}

.contact-list a:hover {
  color: var(--accent);
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-size: 0.85rem;
  font-weight: 700;
}

.field .req {
  color: var(--error);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--input-bg);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 111, 159, 0.18);
}

.field.error input,
.field.error select,
.field.error textarea {
  border-color: var(--error);
}

.field-error {
  display: none;
  font-size: 0.8rem;
  color: var(--error);
}

.field.error .field-error {
  display: block;
}

.form-note {
  font-size: 0.85rem;
  margin: 0;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 0.35rem;
}

.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}

.btn.is-loading .btn-spinner {
  display: inline-block;
}

.btn.is-loading .btn-label {
  opacity: 0.85;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* -------------------------------------------------------------------------- */
/* Footer                                                                      */
/* -------------------------------------------------------------------------- */

.site-footer {
  background: linear-gradient(180deg, #0a1a2f 0%, var(--footer-bg) 55%, #050f1c 100%);
  color: rgba(255, 255, 255, 0.78);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(142, 191, 224, 0.14);
}

html:not(.dark) .site-footer,
html.dark .site-footer {
  background: linear-gradient(180deg, #0a1a2f 0%, var(--footer-bg) 55%, #050f1c 100%);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand .brand {
  color: #fff;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.65);
  max-width: 28rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--glacier-soft);
}

.socials {
  display: flex;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.socials a {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  color: #fff;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.socials a:hover {
  border-color: var(--glacier-soft);
  background: rgba(47, 111, 159, 0.15);
}

.socials svg {
  width: 17px;
  height: 17px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom a:hover {
  color: var(--glacier-soft);
}

/* -------------------------------------------------------------------------- */
/* Toast notifications                                                         */
/* -------------------------------------------------------------------------- */

.toast-wrap {
  position: fixed;
  top: calc(var(--header-h) + 12px);
  right: 16px;
  z-index: 200;
  display: grid;
  gap: 0.75rem;
  width: min(100% - 2rem, 380px);
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: start;
  padding: 1rem 1.05rem;
  border-radius: 14px;
  background: var(--toast-bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transform: translateY(-8px);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast-icon {
  width: 22px;
  height: 22px;
  margin-top: 1px;
}

.toast.success .toast-icon { color: var(--success); }
.toast.error .toast-icon { color: var(--error); }

.toast strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.toast p {
  margin: 0;
  font-size: 0.85rem;
}

.toast-close {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0;
}

/* -------------------------------------------------------------------------- */
/* Legal pages                                                                 */
/* -------------------------------------------------------------------------- */

.page-hero {
  padding: clamp(4.5rem, 8vw, 6rem) 0 clamp(2.75rem, 5vw, 3.5rem);
  background:
    radial-gradient(ellipse at top right, rgba(47, 111, 159, 0.14), transparent 50%),
    var(--bg-alt);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.page-hero .container {
  max-width: 760px;
  margin-inline: auto;
}

.page-hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.85rem);
  max-width: 100%;
  margin-inline: auto;
}

.page-hero > .container > p:not(.eyebrow) {
  max-width: 40rem;
  margin-inline: auto;
  font-size: clamp(1rem, 2.2vw, 1.1rem);
}

.legal-content {
  max-width: 720px;
  margin-inline: auto;
}

.legal-content h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
}

/* -------------------------------------------------------------------------- */
/* Reveal motion                                                               */
/* -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* -------------------------------------------------------------------------- */
/* Responsive                                                                  */
/* -------------------------------------------------------------------------- */

@media (min-width: 640px) {
  .form-row.two {
    grid-template-columns: 1fr 1fr;
  }

  .mv-grid {
    grid-template-columns: 1fr 1fr;
  }

  .services-grid,
  .why-grid {
    grid-template-columns: 1fr 1fr;
  }

  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .menu-toggle {
    display: none;
  }

  .nav-desktop {
    display: flex;
  }

  .header-cta {
    display: inline-flex !important;
  }

  .about-story-top {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.25rem;
    align-items: center;
  }

  .about-media img {
    min-height: 460px;
    max-height: none;
  }

  .about-pillars {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-layout {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2.5rem;
    align-items: start;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

@media (min-width: 1100px) {
  .why-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 899px) {
  :root {
    --header-h: 96px;
  }

  .header-cta {
    display: none !important;
  }

  .header-inner {
    min-height: 88px;
  }

  .brand-logo {
    height: 72px;
  }

  .contact-aside h2 {
    font-size: clamp(1.6rem, 6vw, 2.25rem);
  }

  .container {
    width: min(100% - 1.5rem, var(--container));
  }

  .section {
    padding: clamp(3.25rem, 8vw, 5rem) 0;
  }

  .page-hero h1 {
    max-width: 100%;
  }

  .footer-brand .brand-logo {
    height: 68px;
  }
}

@media (max-width: 640px) {
  .hero-actions,
  .cta-band .btn {
    width: 100%;
  }

  .hero-actions .btn,
  .cta-band .btn {
    justify-content: center;
  }

  .toast-wrap {
    right: 12px;
    left: 12px;
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover,
  .service-card:hover,
  .project-card:hover { transform: none; }
}
