/* ---- Self-hosted Satoshi ---- */
@font-face {
  font-family: "Satoshi";
  src: url("assets/fonts/satoshi-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("assets/fonts/satoshi-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("assets/fonts/satoshi-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #323030;
  --muted: #5b6670;
  --eyebrow: #677580;
  --eyebrow-hero: #647581;
  --dark: #1b2a33;
  --dark-2: #16222b;
  --light: #f5f9fa;
  --line: #e3e8ea;
  --divider: #bebebe;
  --maxw: 1440px;
  --pad: 64px;
  --font: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.section { padding: 100px 0; }

.eyebrow {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--eyebrow);
  margin: 0 0 24px;
}
.eyebrow-hero {
  font-size: 16px;
  letter-spacing: 0.96px;
  color: var(--eyebrow-hero);
}
.eyebrow-light { color: rgba(255,255,255,0.55); }

.section-title {
  font-weight: 500;
  font-size: 48px;
  letter-spacing: -1px;
  line-height: 1.05;
  margin: 0 0 20px;
  color: var(--ink);
}

.muted { color: var(--muted); font-size: 18px; margin: 0; }

/* ---- Buttons (notched corner like the Figma "Subtract" shape) ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.16px;
  padding: 16px 32px;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  transition: background-color .3s ease-in-out, transform .25s ease, box-shadow .3s ease;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(27,42,51,0.22); }
.btn:active { transform: translateY(0); }
.btn svg { transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: var(--dark-2); }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 105px;
}
.brand { font-weight: 700; font-size: 20px; letter-spacing: -0.3px; }
.nav { display: flex; gap: 32px; }
.nav a {
  position: relative;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .3s ease-in-out;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 2px;
  width: 0;
  background: var(--ink);
  transition: width 400ms cubic-bezier(.16,.84,.44,1);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }
.header-btn { padding: 12px 24px; }

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #fff;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.4;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, #fff 0%, rgba(255,255,255,0.8) 50%, #fff 100%);
}
.hero-inner {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.hero-title {
  font-weight: 500;
  font-size: 60px;
  line-height: 1.2;
  letter-spacing: -2.2px;
  max-width: 905px;
  margin: 0;
}
.hero-sub {
  font-weight: 400;
  font-size: 24px;
  line-height: 1.5;
  max-width: 624px;
  margin: 0;
  color: var(--ink);
}
.hero .btn { margin-top: 12px; }

/* ---- Overview ---- */
.overview-grid {
  display: grid;
  grid-template-columns: 192px 1fr;
  gap: 129px;
  align-items: start;
}
.overview-text {
  font-size: 28px;
  line-height: 1.45;
  margin: 0;
  max-width: 900px;
}
.overview .eyebrow { margin-top: 8px; }

/* ---- Services ---- */
.services-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) 2fr;
  gap: 54px;
}
.services-intro { position: sticky; top: 140px; align-self: start; max-width: 507px; }
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.card {
  border: 1px solid var(--line);
  background: #fff;
  padding: 24px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.card:hover {
  border-color: #cfd8dc;
  box-shadow: 0 12px 30px rgba(27,42,51,0.08);
  transform: translateY(-2px);
}
.card-icon { color: var(--dark); display: inline-flex; }
.card-icon svg { fill: currentColor; }
.card h3 { font-size: 20px; font-weight: 700; margin: 40px 0 12px; line-height: 1.3; }
.card p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; }

/* ---- Sectors ---- */
.sectors { padding: 0; background: var(--light); }
.sectors-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}
.sectors-content {
  padding: 100px 68px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  max-width: 723px;
  margin-left: auto;
  width: 100%;
}
.sectors-lead { font-size: 22px; }
.sectors-list { list-style: none; margin: 0; padding: 0; max-width: 474px; }
.sectors-list li {
  font-weight: 700;
  font-size: 28px;
  text-transform: uppercase;
  padding: 19px 0;
  border-bottom: 1px solid var(--divider);
  color: var(--ink);
  cursor: pointer;
  transition: padding-left .35s cubic-bezier(.16,.84,.44,1), color .3s ease-in-out, border-color .3s ease-in-out;
}
/* Higher specificity than `.js .reveal` so the hover transition is not
   overridden by the reveal transition (which only covers opacity/transform). */
.js .sectors-list li {
  transition:
    opacity .7s ease,
    transform .7s cubic-bezier(.16,.84,.44,1),
    padding-left .35s cubic-bezier(.16,.84,.44,1),
    color .3s ease-in-out,
    border-color .3s ease-in-out;
}
.sectors-list li:hover,
.sectors-list li.is-selected {
  padding-left: 16px;
  color: var(--dark);
  border-color: var(--dark);
}
.sectors-list li:focus-visible {
  outline: 2px solid var(--dark);
  outline-offset: 4px;
}
.sectors-list li:first-child { padding-top: 0; }
.sectors-image {
  position: relative;
  overflow: hidden;
  min-height: 700px;
  background: var(--light);
}
.sectors-image-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity .65s ease, transform 7s cubic-bezier(.16,.84,.44,1);
}
.sectors-image-layer.is-active {
  opacity: 1;
  transform: scale(1);
}

/* ---- Contact ---- */
.contact { background: #fff; }
.contact-head { text-align: center; max-width: 560px; margin: 0 auto 64px; }
.contact-head .eyebrow { color: var(--eyebrow); }
.contact-grid {
  display: grid;
  grid-template-columns: 418px 1fr;
  gap: 64px;
  max-width: 1083px;
  margin: 0 auto;
}
.contact-details { display: flex; flex-direction: column; gap: 16px; }
.detail {
  display: flex;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  align-items: flex-start;
  transition: border-color .3s ease-in-out, box-shadow .3s ease-in-out, transform .3s ease;
}
.detail:hover {
  border-color: #cfd8dc;
  box-shadow: 0 10px 26px rgba(27,42,51,0.07);
  transform: translateY(-2px);
}
.detail:hover .detail-icon { transform: scale(1.08); }
.detail-icon { color: var(--dark); flex-shrink: 0; transition: transform .3s ease; }
.detail-icon svg { fill: currentColor; }
.detail h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.detail p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.detail a:hover { color: var(--ink); text-decoration: underline; }

.contact-form {
  border: 1px solid var(--line);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-form input,
.contact-form textarea {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink);
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: #fafbfc;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--dark);
  background: #fff;
}
.contact-form .btn { align-self: flex-end; margin-top: 4px; }
.form-recaptcha { margin-top: 4px; min-height: 78px; }
.hidden { position: absolute; left: -9999px; }

/* Minimal footer credit for the success / 404 pages */
.page-credit { text-align: center; padding: 32px 24px; color: var(--muted); font-size: 13px; }
.page-credit a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.page-credit a:hover { color: var(--dark); }

/* ---- Footer ---- */
.footer { background: var(--dark); color: rgba(255,255,255,0.82); padding: 80px 0 0; }
.footer a { color: rgba(255,255,255,0.82); }
.footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  max-width: 1060px;
  margin: 0 auto;
  padding-bottom: 56px;
}
.footer-title { font-size: 28px; font-weight: 700; margin: 0 0 6px; color: #fff; }
.footer-sub { margin: 0 0 24px; font-size: 18px; color: rgba(255,255,255,0.6); }
.footer-note { margin: 0; max-width: 449px; line-height: 1.6; font-size: 15px; }
.footer-contact { display: flex; flex-direction: column; gap: 28px; }
.footer-contact p { margin: 0; line-height: 1.6; font-size: 15px; }
.footer-contact .eyebrow { margin-bottom: 10px; }
.footer-bar {
  max-width: 1060px;
  margin: 0 auto;
  padding: 24px 0 40px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .cards { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; gap: 40px; }
  .services-intro { position: static; }
  .sectors-grid { grid-template-columns: 1fr; }
  .sectors-content { max-width: none; padding: 72px var(--pad); }
  .sectors-image { min-height: 360px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  :root { --pad: 24px; }
  .nav { display: none; }
  .section { padding: 64px 0; }
  .hero { min-height: 600px; }
  .hero-title { font-size: 38px; letter-spacing: -1.2px; }
  .hero-sub { font-size: 18px; }
  .section-title { font-size: 32px; }
  .overview-grid { grid-template-columns: 1fr; gap: 24px; }
  .overview-text { font-size: 22px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bar { flex-direction: column; gap: 8px; }
  .contact-form { padding: 24px; }
  .sectors-list li { font-size: 22px; }
}

/* ============================================================
   Loading + scroll-reveal animations
   ============================================================ */

/* ---- Preloader curtain ---- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: var(--dark);
  transition: opacity .6s ease, visibility .6s ease;
}
.preloader-word {
  color: #fff;
  font-weight: 700;
  font-size: clamp(18px, 3vw, 28px);
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: 0;
  animation: preWord 1s cubic-bezier(.16,.84,.44,1) forwards;
}
@keyframes preWord {
  0%   { opacity: 0; transform: translateY(10px); letter-spacing: .26em; }
  100% { opacity: 1; transform: none; letter-spacing: .12em; }
}
body.loaded .preloader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ---- Scroll reveal (only when JS is on) ---- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.16,.84,.44,1);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Auto-stagger grouped children */
.cards .card:nth-child(1) { --d: 0ms; }
.cards .card:nth-child(2) { --d: 90ms; }
.cards .card:nth-child(3) { --d: 180ms; }
.cards .card:nth-child(4) { --d: 90ms; }
.cards .card:nth-child(5) { --d: 180ms; }
.cards .card:nth-child(6) { --d: 270ms; }
.sectors-list li:nth-child(1) { --d: 60ms; }
.sectors-list li:nth-child(2) { --d: 140ms; }
.sectors-list li:nth-child(3) { --d: 220ms; }
.sectors-list li:nth-child(4) { --d: 300ms; }
.contact-details .detail:nth-child(1) { --d: 0ms; }
.contact-details .detail:nth-child(2) { --d: 110ms; }
.contact-details .detail:nth-child(3) { --d: 220ms; }

/* ---- Hero background slow zoom-in on load ---- */
.hero-bg {
  animation: heroZoom 7s cubic-bezier(.16,.84,.44,1) forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}

/* ---- Card icon nudge on hover ---- */
.card-icon { transition: transform .3s ease; }
.card:hover .card-icon { transform: translateY(-3px) scale(1.06); }

/* ---- Respect users who prefer reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .hero-bg { animation: none; }
  .preloader-word { animation: none; opacity: 1; }
  .sectors-image-layer { transition: opacity .3s ease; transform: none; }
  .sectors-image-layer.is-active { transform: none; }
  .preloader { transition: none; }
}
