/* ============ Tokens ============ */
:root {
  --paper: #ffffff;
  --mist: #eaf5f1;
  --ink: #0b0c0f;
  --ink-soft: #4d5259;
  --ink-faint: #868b92;
  --line: #e4e6e8;

  --teal: #14594d;
  --teal-deep: #0b3c33;
  --teal-tint: #e3f1ed;
  --violet: #4a3d8f;
  --violet-tint: #ecebf5;

  --font: "Plus Jakarta Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: var(--ink); color: var(--paper); }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px); }

/* ============ Top bar / nav ============ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  transition: box-shadow 0.3s ease;
}
.topbar.scrolled { box-shadow: 0 1px 0 var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 22px; padding-bottom: 22px; }
.mark {
  font-family: var(--font);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.mark span.dot { color: var(--teal); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  color: var(--ink);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
}

nav.primary-nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 30px); }
nav.primary-nav a {
  position: relative;
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.94rem;
  white-space: nowrap;
  padding-bottom: 3px;
  transition: color 0.15s ease;
}
nav.primary-nav a::after {
  content: ""; position: absolute; left: 50%; bottom: -2px; width: 4px; height: 4px;
  border-radius: 50%; background: var(--teal); transform: translateX(-50%) scale(0);
  transition: transform 0.2s ease;
}
nav.primary-nav a:hover { color: var(--ink); }
nav.primary-nav a:hover::after, nav.primary-nav a[aria-current="page"]::after { transform: translateX(-50%) scale(1); }
nav.primary-nav a[aria-current="page"] { color: var(--ink); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--paper); text-decoration: none;
  padding: 10px 10px 10px 18px; border-radius: 999px; font-weight: 600; font-size: 0.92rem;
  transition: background 0.15s ease, transform 0.15s ease;
}
.nav-cta .arrow-dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; background: var(--paper); color: var(--ink);
}
.nav-cta:hover { background: var(--teal-deep); transform: translateY(-1px); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-cta { display: none; }
  nav.primary-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; gap: 4px;
    padding: 6px clamp(20px, 5vw, 56px) 18px; display: none;
  }
  nav.primary-nav.open { display: flex; }
  nav.primary-nav a { padding: 10px 0; width: 100%; }
}

/* ============ Pill buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-family: var(--font); font-size: 0.94rem; font-weight: 600;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn.on-color, .btn.solid-teal, .btn.solid-violet { color: #ffffff; }
.btn.on-color { background: var(--ink); }
.btn.on-color:hover { background: #000; }
.btn.outline-ink { background: transparent; border-color: var(--line); color: var(--ink); }
.btn.outline-ink:hover { background: var(--mist); border-color: var(--ink-faint); }
.btn.outline-paper { background: transparent; border-color: rgba(255,255,255,0.55); color: #fff; }
.btn.outline-paper:hover { background: rgba(255,255,255,0.14); }
.btn.solid-teal { background: var(--teal); }
.btn.solid-teal:hover { background: var(--teal-deep); }
.btn.solid-violet { background: var(--violet); }
.btn.solid-violet:hover { background: #362a70; }

.pill-link {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  color: var(--ink); font-weight: 600; font-size: 0.98rem;
}
.pill-link .arrow-dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--paper);
  transition: transform 0.2s ease, background 0.2s ease;
}
.pill-link:hover .arrow-dot { transform: translateX(4px); background: var(--teal-deep); }

/* ============ Hero (home) ============ */
.hero {
  position: relative;
  overflow: hidden;
  min-height: min(86vh, 760px);
  display: flex;
  align-items: flex-end;
  color: #fff;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,20,18,0.55) 0%, rgba(11,60,51,0.72) 55%, rgba(11,60,51,0.88) 100%);
}
.hero-content { position: relative; z-index: 1; width: 100%; padding-top: clamp(90px, 16vw, 160px); padding-bottom: clamp(48px, 6vw, 72px); }
.hero .eyebrow {
  font-weight: 600; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.82); margin: 0 0 20px;
}
.hero h1 {
  font-weight: 500; letter-spacing: -0.02em;
  font-size: clamp(2.2rem, 5.6vw, 4.4rem); line-height: 1.1; margin: 0 0 26px; color: #fff;
  max-width: 20ch; text-wrap: balance;
}
.hero h1 strong { font-weight: 800; }
.hero .lede { font-size: 1.15rem; color: rgba(255,255,255,0.9); max-width: 54ch; margin: 0 0 34px; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============ Page hero (subpages) ============ */
.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 46vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
}
.page-hero .hero-bg::after { background: linear-gradient(180deg, rgba(11,12,15,0.35) 0%, rgba(11,12,15,0.78) 100%); }
.page-hero.tech .hero-bg::after { background: linear-gradient(180deg, rgba(20,15,45,0.4) 0%, rgba(20,15,45,0.82) 100%); }
.page-hero .hero-content { padding-top: clamp(70px, 12vw, 120px); padding-bottom: clamp(40px, 6vw, 56px); }
.page-hero .tag {
  display: inline-block; font-weight: 600; font-size: 0.8rem; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 7px 14px; border-radius: 999px; margin: 0 0 20px;
  background: rgba(255,255,255,0.14); color: #fff; backdrop-filter: blur(4px);
}
.page-hero h1 { font-weight: 500; letter-spacing: -0.02em; font-size: clamp(2.2rem, 5.4vw, 3.8rem); line-height: 1.06; margin: 0 0 16px; color: #fff; text-wrap: balance; }
.page-hero p.lede { font-size: 1.08rem; color: rgba(255,255,255,0.9); max-width: 58ch; margin: 0; }

.page-hero.plain { background: var(--mist); color: var(--ink); min-height: auto; align-items: stretch; }
.page-hero.plain .hero-content { padding-top: clamp(64px, 9vw, 100px); padding-bottom: clamp(40px, 6vw, 56px); }
.page-hero.plain .eyebrow { font-weight: 600; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-deep); margin: 0 0 18px; }
.page-hero.plain h1 { font-weight: 500; font-size: clamp(2.1rem, 4.6vw, 3.2rem); line-height: 1.1; margin: 0 0 18px; color: var(--ink); text-wrap: balance; }
.page-hero.plain p.lede { color: var(--ink-soft); font-size: 1.08rem; max-width: 60ch; margin: 0; }

/* ============ Facts strip ============ */
.facts { display: flex; flex-wrap: wrap; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact {
  flex: 1 1 180px; padding: 26px clamp(16px, 2.4vw, 30px); border-right: 1px solid var(--line);
  opacity: 0; transform: translateY(10px); transition: opacity 0.5s ease, transform 0.5s ease;
}
.fact.in-view { opacity: 1; transform: translateY(0); }
.fact:nth-child(1) { transition-delay: 0.05s; } .fact:nth-child(2) { transition-delay: 0.1s; }
.fact:nth-child(3) { transition-delay: 0.15s; } .fact:nth-child(4) { transition-delay: 0.2s; }
.fact:last-child { border-right: none; }
.fact .n { font-weight: 700; font-size: 1.6rem; font-variant-numeric: tabular-nums; color: var(--ink); display: block; letter-spacing: -0.01em; }
.fact .l { font-size: 0.8rem; color: var(--ink-faint); letter-spacing: 0.02em; text-transform: uppercase; font-weight: 500; }

/* ============ Section shell ============ */
section { padding: clamp(52px, 7.5vw, 92px) 0; }
.section-band { padding: clamp(52px, 7.5vw, 92px) 0; }
.band-mist { background: var(--mist); }
.band-teal { background: var(--teal); color: #fff; }
.band-ink { background: var(--ink); color: #fff; }

.cta-band { text-align: center; }
.cta-band h2 { max-width: 20ch; margin-left: auto; margin-right: auto; color: #fff; }
.cta-band p { color: rgba(255,255,255,0.82); max-width: 46ch; margin: 0 auto 32px; font-size: 1.06rem; }
.cta-band .cta-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.section-head { margin-bottom: clamp(28px, 4vw, 42px); max-width: 64ch; opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.section-head.in-view { opacity: 1; transform: translateY(0); }
.section-label {
  font-weight: 600; font-size: 0.85rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--teal-deep); margin: 0 0 14px;
}
.band-teal .section-label, .band-ink .section-label { color: rgba(255,255,255,0.75); }
h2 {
  font-weight: 500; letter-spacing: -0.02em;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.15; margin: 0 0 14px; text-wrap: balance;
}
h2 strong { font-weight: 800; }
.section-head p { color: var(--ink-soft); margin: 0; font-size: 1.04rem; }
.band-teal .section-head p, .band-ink .section-head p { color: rgba(255,255,255,0.82); }

/* Statement text (mixed-weight editorial line) */
.statement {
  font-size: clamp(1.5rem, 3.4vw, 2.6rem); line-height: 1.25; font-weight: 400; letter-spacing: -0.01em;
  max-width: 22ch; margin: 0; color: var(--ink);
  opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease;
}
.statement.in-view { opacity: 1; transform: translateY(0); }
.statement strong { font-weight: 800; }
.band-teal .statement, .band-ink .statement { color: #fff; }

/* ============ Prose ============ */
.prose { max-width: 66ch; color: var(--ink-soft); font-size: 1.06rem; opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.prose.in-view { opacity: 1; transform: translateY(0); }
.prose p { margin: 0 0 20px; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a {
  color: var(--teal); text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%; background-repeat: no-repeat; background-size: 0% 1px;
  transition: background-size 0.25s ease;
}
.prose a:hover { background-size: 100% 1px; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-top: 8px; }

/* ============ Divisions grid (photo cards) ============ */
.divisions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.2vw, 24px); }
@media (max-width: 820px) { .divisions-grid { grid-template-columns: 1fr; } }

.division-card {
  position: relative;
  display: block;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  text-decoration: none;
  color: #fff;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
}
.division-card.in-view { opacity: 1; transform: translateY(0); }
.division-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.division-card:hover img { transform: scale(1.05); }
.division-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,12,15,0.05) 0%, rgba(11,12,15,0.15) 45%, rgba(11,12,15,0.86) 100%);
}
.division-card:hover { box-shadow: 0 24px 48px -20px rgba(11,12,15,0.4); }
.card-content { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(22px, 3vw, 32px); }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.card-numeral {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.16);
  backdrop-filter: blur(6px); font-weight: 700; font-size: 0.95rem;
}
.card-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.card-tags span {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase;
  background: rgba(255,255,255,0.16); backdrop-filter: blur(6px);
  padding: 5px 11px; border-radius: 999px;
}
.card-bottom h3 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); font-weight: 800; margin: 0 0 8px; letter-spacing: -0.02em; }
.card-bottom p { margin: 0 0 16px; color: rgba(255,255,255,0.88); font-size: 1rem; max-width: 34ch; }
.card-stats { display: flex; gap: 18px; flex-wrap: wrap; }
.card-stats div { display: flex; flex-direction: column; }
.card-stats .n { font-weight: 700; font-size: 1rem; }
.card-stats .l { font-size: 0.72rem; color: rgba(255,255,255,0.72); }

/* ============ Why grid ============ */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3.4vw, 40px); }
@media (max-width: 780px) { .why-grid { grid-template-columns: 1fr; } }
.why-item { position: relative; padding-top: 22px; border-top: 1px solid var(--line); opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.why-item.in-view { opacity: 1; transform: translateY(0); }
.why-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; background: var(--mist);
  color: var(--teal-deep); margin-bottom: 18px; transition: transform 0.3s ease;
}
.why-item:hover .why-icon { transform: scale(1.1) rotate(-6deg); }
.why-icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.why-item h4 { font-weight: 700; font-size: 1.14rem; margin: 0 0 10px; color: var(--ink); }
.why-item p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

/* ============ Testimonial / quote-with-photo ============ */
.testimonial { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(24px, 4vw, 56px); align-items: center; background: var(--paper); border-radius: 24px; padding: clamp(20px, 2.4vw, 28px); box-shadow: 0 30px 60px -30px rgba(11,12,15,0.18); }
@media (max-width: 800px) { .testimonial { grid-template-columns: 1fr; } }
.testimonial .photo { border-radius: 16px; overflow: hidden; aspect-ratio: 4/3; }
.testimonial .photo img { width: 100%; height: 100%; object-fit: cover; }
.testimonial .quote { padding: clamp(8px, 1.6vw, 16px) clamp(8px, 2vw, 24px); }
.testimonial .quote p {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 500; line-height: 1.35; color: var(--ink); margin: 0 0 20px;
}
.testimonial cite { display: block; font-style: normal; font-weight: 600; font-size: 0.86rem; letter-spacing: 0.03em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 24px; }

/* ============ Two-column list (services / divisions) ============ */
.split-list { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 780px) { .split-list { grid-template-columns: 1fr; } }
.split-list .col-head p { color: var(--ink-soft); margin: 18px 0 0; font-size: 1.04rem; max-width: 46ch; }
.list-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.list-items li { border-bottom: 1px solid var(--line); }
.list-items li:first-child { border-top: 1px solid var(--line); }
.list-items a {
  display: flex; align-items: center; justify-content: space-between; text-decoration: none; color: var(--ink);
  padding: 20px 2px; font-size: clamp(1.2rem, 2.2vw, 1.6rem); font-weight: 500; transition: color 0.2s ease, padding 0.2s ease;
}
.list-items a:hover { color: var(--teal-deep); padding-left: 10px; }
.list-items a .arrow-dot {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.list-items a:hover .arrow-dot { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ============ Division detail pages ============ */
.service-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 640px) { .service-cards { grid-template-columns: 1fr; } }
.service-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 24px;
  opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.service-card.in-view { opacity: 1; transform: translateY(0); }
.service-card:hover { box-shadow: 0 16px 32px -22px rgba(11,12,15,0.22); border-color: transparent; }
.service-card h4 { margin: 0 0 8px; font-size: 1.06rem; font-weight: 700; color: var(--ink); }
.service-card p { margin: 0; color: var(--ink-soft); font-size: 0.94rem; }

.pricing-table { width: 100%; border-collapse: collapse; font-size: 0.96rem; }
.pricing-table caption { text-align: left; font-weight: 600; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 12px; }
.pricing-table th, .pricing-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--ink-soft); transition: background 0.15s ease; }
.pricing-table th { font-weight: 700; color: var(--ink-faint); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.05em; }
.pricing-table td.price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); }
.pricing-table tbody tr:hover td { background: var(--mist); }
.table-scroll { overflow-x: auto; }
.table-scroll .pricing-table td a {
  color: var(--teal); text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%; background-repeat: no-repeat; background-size: 0% 1px;
  transition: background-size 0.25s ease;
}
.table-scroll .pricing-table td a:hover { background-size: 100% 1px; }

/* ============ Contact page ============ */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.2vw, 22px); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px;
  padding: 28px; display: flex; flex-direction: column; gap: 10px;
  opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.25s ease;
}
.contact-card.in-view { opacity: 1; transform: translateY(0); }
.contact-card:hover { box-shadow: 0 18px 36px -24px rgba(11,12,15,0.24); }
.contact-card h3 { margin: 0; font-weight: 700; font-size: 1.15rem; }
.contact-card .role { margin: 0 0 4px; color: var(--ink-faint); font-size: 0.85rem; }
.contact-card a.line {
  text-decoration: none; color: var(--ink-soft); font-size: 0.96rem;
  background-image: linear-gradient(var(--teal), var(--teal));
  background-position: 0 100%; background-repeat: no-repeat; background-size: 0% 1px;
  transition: background-size 0.25s ease, color 0.15s ease;
}
.contact-card a.line:hover { color: var(--ink); background-size: 100% 1px; }

/* ============ Footer ============ */
footer { padding: clamp(48px, 6vw, 72px) 0 clamp(32px, 5vw, 48px); background: var(--ink); color: #fff; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; margin-bottom: 40px; }
.footer-brand .mark { display: inline-block; margin-bottom: 12px; color: #fff; }
.footer-brand .mark span.dot { color: var(--teal-tint); }
.footer-brand p { margin: 0; color: rgba(255,255,255,0.55); font-size: 0.88rem; max-width: 42ch; }
.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-links div { display: flex; flex-direction: column; gap: 10px; }
.footer-links span.h { font-weight: 600; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 4px; }
.footer-links a { text-decoration: none; color: rgba(255,255,255,0.75); font-size: 0.94rem; display: inline-block; transition: color 0.15s ease, transform 0.15s ease; }
.footer-links a:hover { color: #fff; transform: translateX(3px); }
.copyright { padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.82rem; color: rgba(255,255,255,0.4); }

@media (prefers-reduced-motion: reduce) {
  .division-card, .fact, .why-item, .service-card, .contact-card, .section-head, .prose, .statement {
    transition: none !important; animation: none !important; opacity: 1 !important; transform: none !important;
  }
  html { scroll-behavior: auto; }
}
