/* ============================================================
   Tricomplex — design system
   Navy + copper, Bebas Neue display / DM Sans UI
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand — navy scale */
  --navy-900: #05101F;
  --navy-800: #081627;
  --navy:     #0B1F3A;
  --navy-700: #12294A;
  --navy-600: #1B3A63;

  /* Brand — copper */
  --copper:       #C47A3A;
  --copper-light: #E19A5C;
  --copper-deep:  #A8632A;
  --copper-wash:  rgba(196,122,58,0.12);
  --copper-line:  rgba(196,122,58,0.30);

  /* Neutrals / paper */
  --paper:   #F4F1EA;
  --paper-2: #FBFAF6;
  --white:   #FFFFFF;
  --line:    #E6E0D6;
  --line-2:  #EFEAE1;

  /* Ink on light */
  --ink:       #14202E;
  --text-mid:  #4A5560;
  --text-soft: #79838E;

  /* On navy (warm-tinted, never pure gray) */
  --on-navy:      #FFFFFF;
  --on-navy-soft: rgba(238,231,222,0.74);
  --on-navy-mute: rgba(221,213,203,0.48);
  --on-navy-line: rgba(238,231,222,0.14);

  /* Elevation — offset + soft blur */
  --sh-sm: 0 1px 2px rgba(11,31,58,0.06), 0 3px 8px rgba(11,31,58,0.05);
  --sh-md: 0 10px 30px -12px rgba(11,31,58,0.22);
  --sh-lg: 0 30px 70px -28px rgba(9,22,42,0.42);
  --sh-copper: 0 14px 34px -12px rgba(168,99,42,0.55);

  /* Radius */
  --r:    14px;
  --r-sm: 10px;
  --r-lg: 20px;

  /* Type */
  --display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --sans: 'DM Sans', system-ui, -apple-system, sans-serif;

  --fs-hero: clamp(3.15rem, 7.2vw, 6rem);
  --fs-h1:   clamp(2.6rem, 5.2vw, 4.5rem);
  --fs-h2:   clamp(2.1rem, 4vw, 3.4rem);
  --fs-h3:   clamp(1.4rem, 2.2vw, 1.9rem);

  /* Layout */
  --maxw: 1200px;
  --maxw-wide: 1320px;
  --gutter: clamp(20px, 5vw, 56px);
  --section-y: clamp(72px, 9vw, 128px);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--copper); color: #fff; }

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container-wide { max-width: var(--maxw-wide); }
.section { padding-block: var(--section-y); }

/* ---------- Section header (labeled rule, not floating eyebrow) ---------- */
.section-head { max-width: 640px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-label {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--copper-deep);
  margin-bottom: 20px;
}
.section-label::before {
  content: ''; width: 28px; height: 2px; background: var(--copper); flex-shrink: 0;
}
.section-head.center .section-label { justify-content: center; }
.section-title {
  font-family: var(--display); font-weight: 400;
  font-size: var(--fs-h2); line-height: 0.94; letter-spacing: 0.005em;
  color: var(--navy); text-wrap: balance;
}
.section-sub {
  font-size: 1.06rem; color: var(--text-mid); line-height: 1.7;
  margin-top: 18px; font-weight: 400; max-width: 56ch;
}
.on-dark .section-title { color: #fff; }
.on-dark .section-label { color: var(--copper-light); }
.on-dark .section-sub { color: var(--on-navy-soft); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--copper); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-size: 0.95rem; font-weight: 600; letter-spacing: 0.01em;
  padding: 15px 30px; border: none; border-radius: 100px; cursor: pointer;
  background: var(--btn-bg); color: var(--btn-fg); text-decoration: none;
  position: relative; isolation: isolate; overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.25s ease;
  box-shadow: var(--sh-copper);
}
.btn::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--copper-light); opacity: 0;
  transition: opacity 0.3s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -14px rgba(168,99,42,0.6); }
.btn:hover::after { opacity: 1; }
.btn:active { transform: translateY(0); }

.btn-ghost {
  --btn-bg: transparent; --btn-fg: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.28);
}
.btn-ghost::after { background: rgba(255,255,255,0.08); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--copper-light); transform: translateY(-2px); }

.btn-dark {
  --btn-bg: var(--navy); --btn-fg: #fff;
  box-shadow: var(--sh-md);
}
.btn-dark::after { background: var(--copper); }
.btn-dark:hover { box-shadow: 0 18px 40px -16px rgba(11,31,58,0.5); }

.btn-lg { padding: 17px 38px; font-size: 1rem; }
.btn-arrow svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.btn:hover .btn-arrow svg { transform: translateX(4px); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: 68px; padding-inline: var(--gutter);
  background: rgba(11,31,58,0.72);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.nav.scrolled {
  background: rgba(8,22,39,0.94);
  border-bottom-color: var(--on-navy-line);
  box-shadow: 0 10px 40px -20px rgba(0,0,0,0.6);
}
.nav-left { display: flex; align-items: center; gap: 44px; }
.nav-logo {
  font-family: var(--display); font-size: 1.75rem; letter-spacing: 0.06em;
  color: #fff; text-decoration: none; line-height: 1; white-space: nowrap;
}
.nav-logo span { color: var(--copper-light); }
.nav-links { display: flex; gap: 30px; }
.nav-links a {
  position: relative; color: var(--on-navy-soft); text-decoration: none;
  font-size: 0.9rem; font-weight: 500; letter-spacing: 0.01em; padding-block: 4px;
  transition: color 0.25s ease;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%;
  background: var(--copper-light); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.nav-right { display: flex; align-items: center; gap: 18px; }
.lang-switch { display: flex; gap: 2px; background: rgba(255,255,255,0.07); padding: 4px; border-radius: 100px; }
.lang-btn {
  background: none; border: none; color: var(--on-navy-mute);
  font-family: var(--sans); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em;
  cursor: pointer; padding: 6px 11px; border-radius: 100px; transition: all 0.25s ease;
}
.lang-btn.active { background: var(--copper); color: #fff; }
.lang-btn:hover:not(.active) { color: #fff; }
.nav-cta { padding: 11px 22px; font-size: 0.85rem; }

.nav-toggle {
  display: none; width: 42px; height: 42px; border: none; background: rgba(255,255,255,0.08);
  border-radius: 10px; cursor: pointer; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 18px; height: 2px;
  background: #fff; transform: translate(-50%,-50%); transition: transform 0.3s var(--ease), opacity 0.2s ease;
}
.nav-toggle span::before { transform: translate(-50%, -6px); }
.nav-toggle span::after  { transform: translate(-50%,  6px); }
.nav.open .nav-toggle span { background: transparent; }
.nav.open .nav-toggle span::before { transform: translate(-50%,0) rotate(45deg); }
.nav.open .nav-toggle span::after  { transform: translate(-50%,0) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  padding-top: 120px; padding-bottom: clamp(40px, 6vw, 72px);
  color: #fff; overflow: hidden; isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; background: var(--navy-900); }
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5,16,31,0.55) 0%, rgba(5,16,31,0.30) 30%, rgba(5,16,31,0.72) 78%, rgba(5,16,31,0.95) 100%),
    linear-gradient(90deg, rgba(5,16,31,0.85) 0%, rgba(5,16,31,0.35) 55%, transparent 100%);
}
.hero-media .hero-img {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transform: scale(1.08); animation: heroPan 18s ease-out forwards;
}
@keyframes heroPan { to { transform: scale(1); } }
.hero-glow {
  position: absolute; z-index: -1; right: -12%; top: 8%;
  width: 46vw; max-width: 640px; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(196,122,58,0.28), transparent 62%);
  filter: blur(20px); pointer-events: none;
}
.hero-inner { position: relative; width: 100%; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: #fff; background: rgba(196,122,58,0.16);
  border: 1px solid var(--copper-line); padding: 8px 16px; border-radius: 100px;
  margin-bottom: 26px; backdrop-filter: blur(4px);
}
.hero-tag::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--copper-light); box-shadow: 0 0 0 4px rgba(225,154,92,0.25); }
.hero-title {
  font-family: var(--display); font-weight: 400; font-size: var(--fs-hero);
  line-height: 0.86; letter-spacing: 0.01em; margin-bottom: 26px; max-width: 15ch;
}
.hero-title em { color: var(--copper-light); font-style: normal; }
.hero-sub {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: var(--on-navy-soft);
  max-width: 46ch; line-height: 1.65; margin-bottom: 38px; font-weight: 400;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: clamp(44px, 6vw, 72px); }

/* Trust strip */
.hero-trust {
  display: grid; grid-template-columns: repeat(4, auto); gap: clamp(28px, 5vw, 72px);
  align-items: end; padding-top: 34px; border-top: 1px solid var(--on-navy-line);
}
.trust-num { font-family: var(--display); font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: 0.9; color: #fff; }
.trust-num span { color: var(--copper-light); }
.trust-label { font-size: 0.78rem; color: var(--on-navy-mute); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 8px; }
.hero-scroll {
  position: absolute; right: var(--gutter); bottom: clamp(40px,6vw,72px);
  writing-mode: vertical-rl; font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--on-navy-mute); display: flex; align-items: center; gap: 14px;
}
.hero-scroll::after { content: ''; width: 1px; height: 46px; background: linear-gradient(var(--copper-light), transparent); animation: scrollPulse 2s var(--ease) infinite; }
@keyframes scrollPulse { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }

/* ============================================================
   PAGE HEADER (interior pages)
   ============================================================ */
.page-hero {
  position: relative; padding-top: 150px; padding-bottom: clamp(56px, 7vw, 96px);
  color: #fff; overflow: hidden; isolation: isolate; background: var(--navy);
}
.page-hero-media { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; opacity: 0.5; }
.page-hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(11,31,58,0.7), rgba(11,31,58,0.94)), linear-gradient(90deg, rgba(8,22,39,0.9), transparent 80%);
}
.page-hero .section-label { color: var(--copper-light); }
.page-hero h1 {
  font-family: var(--display); font-weight: 400; font-size: var(--fs-h1);
  line-height: 0.92; letter-spacing: 0.01em; margin-bottom: 18px;
}
.page-hero p { color: var(--on-navy-soft); font-size: 1.1rem; max-width: 54ch; line-height: 1.65; }
.crumbs { font-size: 0.8rem; color: var(--on-navy-mute); margin-bottom: 22px; letter-spacing: 0.02em; }
.crumbs a { color: var(--copper-light); text-decoration: none; }

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.about-figure { position: relative; }
.about-figure .frame {
  aspect-ratio: 4/5; border-radius: var(--r-lg); overflow: hidden;
  background: var(--navy) center/cover; box-shadow: var(--sh-lg);
}
.about-figure .frame .ph { width: 100%; height: 100%; background-size: cover; background-position: center; transition: transform 1.2s var(--ease); }
.about-figure:hover .frame .ph { transform: scale(1.05); }
.about-badge {
  position: absolute; left: -18px; bottom: 34px;
  background: var(--copper); color: #fff; padding: 18px 22px; border-radius: var(--r);
  box-shadow: var(--sh-copper); max-width: 200px;
}
.about-badge .b-num { font-family: var(--display); font-size: 2.4rem; line-height: 0.9; }
.about-badge .b-txt { font-size: 0.82rem; font-weight: 600; margin-top: 4px; opacity: 0.95; }
.about-body p { font-size: 1.05rem; color: var(--text-mid); line-height: 1.8; margin-bottom: 20px; }
.about-body p:first-of-type { color: var(--ink); font-size: 1.18rem; line-height: 1.65; }
.values { display: grid; gap: 4px; margin-top: 34px; }
.value { display: flex; gap: 18px; align-items: flex-start; padding: 20px 0; border-top: 1px solid var(--line); }
.value:last-child { border-bottom: 1px solid var(--line); }
.value-icon {
  flex-shrink: 0; width: 38px; text-align: left;
  font-family: var(--display); font-size: 1.75rem; line-height: 1;
  color: var(--copper); letter-spacing: 0.02em;
}
.value-title { font-size: 1rem; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.value-desc { font-size: 0.92rem; color: var(--text-mid); line-height: 1.6; }

/* ============================================================
   SERVICES
   ============================================================ */
.services { background: var(--paper); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.4vw, 20px); }
.service-card {
  position: relative; background: var(--white); border-radius: var(--r);
  padding: 34px 30px 30px; overflow: hidden; isolation: isolate;
  box-shadow: var(--sh-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--sh-md); }
.service-num { font-family: var(--display); font-size: 0.95rem; color: var(--copper); letter-spacing: 0.1em; opacity: 0.7; }
.service-icon {
  width: 44px; height: 3px; border-radius: 2px; margin: 18px 0 22px;
  background: var(--copper); transform-origin: left center;
  transition: transform 0.45s var(--ease);
}
.service-card:hover .service-icon { transform: scaleX(1.6); }
.service-name { font-family: var(--display); font-size: 1.55rem; letter-spacing: 0.02em; color: var(--navy); margin-bottom: 10px; }
.service-desc { font-size: 0.94rem; color: var(--text-mid); line-height: 1.65; }

/* ============================================================
   PROJECTS
   ============================================================ */
.projects { background: var(--navy); color: #fff; }
.projects-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.projects-tabs { display: inline-flex; gap: 4px; background: rgba(255,255,255,0.06); padding: 5px; border-radius: 100px; }
.tab-btn {
  background: none; border: none; color: var(--on-navy-soft); cursor: pointer;
  font-family: var(--sans); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.01em;
  padding: 9px 20px; border-radius: 100px; transition: all 0.28s var(--ease);
}
.tab-btn.active { background: var(--copper); color: #fff; }
.tab-btn:hover:not(.active) { color: #fff; }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 42px; }
.project-card {
  position: relative; border-radius: var(--r); overflow: hidden; isolation: isolate;
  min-height: 340px; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 26px; color: #fff; background: var(--navy-700);
  transition: transform 0.4s var(--ease);
}
.project-card .p-media { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; transition: transform 0.7s var(--ease); }
.project-card::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(5,16,31,0.15) 0%, rgba(5,16,31,0.55) 55%, rgba(5,16,31,0.92) 100%);
}
.project-card:hover { transform: translateY(-6px); }
.project-card:hover .p-media { transform: scale(1.07); }
.project-status {
  align-self: flex-start; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 5px 12px; border-radius: 100px; margin-bottom: auto;
  backdrop-filter: blur(4px);
}
.status-done { background: rgba(110,205,150,0.2); color: #A6EFC2; border: 1px solid rgba(110,205,150,0.35); }
.status-ongoing { background: rgba(225,154,92,0.22); color: var(--copper-light); border: 1px solid var(--copper-line); }
.project-name { font-family: var(--display); font-size: 1.5rem; letter-spacing: 0.02em; margin: 16px 0 6px; }
.project-loc { font-size: 0.85rem; color: var(--on-navy-soft); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.project-loc::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--copper-light); flex-shrink: 0; }
.project-desc { font-size: 0.9rem; color: var(--on-navy-soft); line-height: 1.6; }
.project-date { font-size: 0.78rem; color: var(--copper-light); margin-top: 16px; font-weight: 600; letter-spacing: 0.02em; }

/* ============================================================
   CAREERS / HIRING
   ============================================================ */
.hiring { background: var(--white); }
.hiring-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 84px); align-items: start; }
.hiring-info p { font-size: 1.02rem; color: var(--text-mid); line-height: 1.8; margin-bottom: 20px; }
.perks { display: grid; gap: 14px; margin-top: 28px; }
.perk { display: flex; align-items: center; gap: 14px; font-size: 0.95rem; color: var(--ink); font-weight: 500; }
.perk::before {
  content: '✓'; flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.8rem; font-weight: 700;
  background: var(--copper-wash); color: var(--copper-deep);
}
.jobs-list { display: grid; gap: 12px; }
.job-card {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding: 24px 26px; border-radius: var(--r); background: var(--paper-2);
  border: 1px solid var(--line-2);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s ease;
}
.job-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--copper-line); }
.job-title { font-size: 1.1rem; font-weight: 600; color: var(--navy); margin-bottom: 5px; }
.job-meta { font-size: 0.86rem; color: var(--text-soft); }
.job-apply {
  background: var(--navy); color: #fff; border: none; padding: 12px 24px; border-radius: 100px;
  font-family: var(--sans); font-size: 0.85rem; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background 0.25s ease, transform 0.25s var(--ease);
}
.job-apply:hover { background: var(--copper); transform: translateY(-2px); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--navy); color: #fff; }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.contact-details { display: grid; gap: 6px; }
.contact-item { padding: 20px 0; border-top: 1px solid var(--on-navy-line); display: grid; gap: 6px; }
.contact-item:first-child { border-top: none; padding-top: 0; }
.contact-item-label { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--copper-light); font-weight: 700; }
.contact-item-val { font-size: 1.08rem; color: #fff; line-height: 1.5; }
.contact-item-val a { color: #fff; text-decoration: none; transition: color 0.2s ease; }
.contact-item-val a:hover { color: var(--copper-light); }
.contact-item-val span { color: var(--copper-light); font-weight: 600; }
.contact-form {
  background: rgba(255,255,255,0.04); border: 1px solid var(--on-navy-line);
  border-radius: var(--r-lg); padding: clamp(24px, 3vw, 38px); display: grid; gap: 14px;
}
.field { display: grid; gap: 7px; }
.field label { font-size: 0.78rem; color: var(--on-navy-soft); letter-spacing: 0.03em; font-weight: 500; }
.contact-form input, .contact-form textarea, .contact-form select {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.14); color: #fff;
  font-family: var(--sans); font-size: 0.98rem; padding: 14px 16px; border-radius: var(--r-sm);
  outline: none; transition: border-color 0.25s ease, background 0.25s ease; width: 100%;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(230,224,215,0.4); }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  border-color: var(--copper); background: rgba(255,255,255,0.08);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form select option { background: var(--navy); color: #fff; }
.contact-form .btn { margin-top: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ============================================================
   CTA band
   ============================================================ */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(120deg, var(--navy-800), var(--navy-600));
  color: #fff; text-align: center;
}
.cta-media { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; opacity: 0.18; }
.cta::after { content: ''; position: absolute; z-index: -1; inset: 0; background: radial-gradient(120% 100% at 50% 0%, transparent, rgba(5,16,31,0.6)); }
.cta-inner { max-width: 720px; margin-inline: auto; }
.cta h2 { font-family: var(--display); font-weight: 400; font-size: var(--fs-h2); line-height: 0.96; margin-bottom: 18px; letter-spacing: 0.01em; text-wrap: balance; }
.cta p { color: var(--on-navy-soft); font-size: 1.1rem; line-height: 1.65; margin-bottom: 34px; max-width: 52ch; margin-inline: auto; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-phone { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 600; padding: 15px 24px; }
.cta-phone span { color: var(--copper-light); }

/* ============================================================
   Home: services / projects preview link row
   ============================================================ */
.head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.head-link {
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
  font-weight: 600; font-size: 0.92rem; color: var(--copper-deep);
  border-bottom: 2px solid transparent; padding-bottom: 3px; transition: border-color 0.25s ease, gap 0.25s ease;
}
.on-dark .head-link { color: var(--copper-light); }
.head-link svg { width: 15px; height: 15px; transition: transform 0.3s var(--ease); }
.head-link:hover { border-color: currentColor; }
.head-link:hover svg { transform: translateX(4px); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy-900); color: var(--on-navy-soft); padding-top: clamp(56px, 7vw, 88px); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1.4fr; gap: clamp(32px, 5vw, 72px); padding-bottom: 48px; border-bottom: 1px solid var(--on-navy-line); }
.footer-logo { font-family: var(--display); font-size: 1.9rem; letter-spacing: 0.05em; color: #fff; margin-bottom: 16px; display: inline-block; text-decoration: none; }
.footer-logo span { color: var(--copper-light); }
.footer-tagline { font-size: 0.95rem; line-height: 1.7; max-width: 34ch; }
.footer-col h4 { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--copper-light); margin-bottom: 18px; font-weight: 700; }
.footer-col a { display: block; color: var(--on-navy-soft); text-decoration: none; font-size: 0.95rem; padding: 6px 0; transition: color 0.2s ease; }
.footer-col a:hover { color: #fff; }
.footer-contact div { font-size: 0.95rem; line-height: 1.7; margin-bottom: 8px; }
.footer-contact a { color: #fff; text-decoration: none; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 26px; }
.footer-copy { font-size: 0.82rem; color: var(--on-navy-mute); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 0.82rem; color: var(--on-navy-mute); text-decoration: none; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--copper-light); }

/* ============================================================
   404 / error page
   ============================================================ */
.error-page {
  position: relative; min-height: 100svh; display: flex; align-items: center; justify-content: center;
  text-align: center; color: #fff; overflow: hidden; isolation: isolate;
  background: var(--navy); padding: 120px var(--gutter) 80px;
}
.error-page .hero-media { position: absolute; inset: 0; z-index: -2; }
.error-page .hero-glow { top: 20%; }
.error-code { font-family: var(--display); font-size: clamp(6rem, 20vw, 13rem); line-height: 0.82; color: #fff; letter-spacing: 0.02em; }
.error-code span { color: var(--copper-light); }
.error-title { font-family: var(--display); font-size: var(--fs-h3); letter-spacing: 0.02em; margin: 14px 0 12px; }
.error-sub { color: var(--on-navy-soft); font-size: 1.05rem; max-width: 44ch; margin: 0 auto 32px; line-height: 1.6; }

/* ============================================================
   Scroll reveal
   ============================================================ */
html.js .reveal { opacity: 0; transform: translateY(26px); filter: blur(6px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; filter: none; }
html.js .reveal[data-d="1"] { transition-delay: 0.08s; }
html.js .reveal[data-d="2"] { transition-delay: 0.16s; }
html.js .reveal[data-d="3"] { transition-delay: 0.24s; }
html.js .reveal[data-d="4"] { transition-delay: 0.32s; }
html.js .reveal[data-d="5"] { transition-delay: 0.40s; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 0;
    background: rgba(8,22,39,0.98); backdrop-filter: blur(16px);
    padding: 12px var(--gutter) 24px; border-bottom: 1px solid var(--on-navy-line);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.3s ease;
  }
  .nav.open .nav-links { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--on-navy-line); font-size: 1rem; }
  .nav-links a::after { display: none; }
  .nav-cta { display: none; }
  .about-grid, .hiring-layout, .contact-grid { grid-template-columns: 1fr; }
  .about-badge { left: 16px; }
  .hero-scroll { display: none; }
  .about-figure .frame { aspect-ratio: 16/11; }
}
@media (max-width: 620px) {
  .services-grid, .projects-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-trust { grid-template-columns: 1fr 1fr; gap: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .hero { align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  html.js .reveal { opacity: 1; transform: none; filter: none; }
  .hero-media .hero-img { animation: none; transform: none; }
}
