/* FORTIS GLOBAL — styles */

/* Manrope, self-hosted (SIL Open Font License). Files live in /fonts. */
@font-face {
  font-family: "Manrope";
  src: url("fonts/Manrope-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
:root {
  --off-white: #F7F6F3;
  --white: #FFFFFF;
  --grey-bg: #EFEDE8;
  --line: #E3E1DC;
  --line-strong: #CFCCC6;
  --charcoal: #1F2326;
  --text-2: #4A5056;
  --text-3: #5C6268;
  --accent: #1D4A55;
  --accent-hover: #163A43;
  --accent-light: #9FC3CB;
  --radius: 6px;
  --font: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--off-white);
  color: var(--charcoal);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.03em; }
p { margin: 0; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--charcoal); color: var(--white); padding: 12px 18px; border-radius: 4px; z-index: 100; text-decoration: none; }
.skip-link:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.16em; color: var(--accent); margin-bottom: 16px; }
.accent { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 48px; padding: 16px 30px; border-radius: 4px;
  font: 600 14px/1 var(--font); letter-spacing: 0.12em; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn svg { transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:disabled { opacity: .6; cursor: wait; }
.btn-outline { border-color: var(--charcoal); color: var(--charcoal); padding: 12px 22px; font-size: 13px; min-height: 44px; }
.btn-outline:hover { background: var(--charcoal); color: var(--white); }
.text-link { font-weight: 600; font-size: 15px; text-underline-offset: 6px; padding: 12px 4px; }
.text-link:hover { color: var(--accent); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247, 246, 243, .92); backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.logo { font-weight: 700; font-size: 18px; letter-spacing: 0.14em; text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 32px; font-size: 15px; font-weight: 500; }
.site-nav a:not(.btn) { text-decoration: none; padding: 8px 0; }
.site-nav a:not(.btn):hover { color: var(--accent); }
.nav-toggle { display: none; }

/* Hero */
.hero { padding-top: 120px; padding-bottom: 96px; }
.hero-title { font-size: clamp(42px, 6.4vw, 80px); line-height: 1.04; letter-spacing: -0.035em; max-width: 960px; }
.hero .eyebrow { margin-bottom: 32px; }
.hero-bottom { display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: flex-end; justify-content: space-between; margin-top: 56px; }
.lead { font-size: 19px; line-height: 1.65; color: var(--text-2); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.service-index { list-style: none; margin: 96px 0 0; padding: 0; border-top: 1px solid #D6D3CD; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.service-index li { padding: 20px 20px 0 0; font-size: 14px; font-weight: 500; color: var(--text-2); }
.service-index span { color: var(--accent); font-weight: 600; margin-right: 10px; }

/* Sections */
.section { padding-top: 120px; padding-bottom: 120px; }
.section-white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-grey { background: var(--grey-bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.1; }
.section-head { display: flex; flex-wrap: wrap; gap: 24px 64px; justify-content: space-between; align-items: flex-end; margin-bottom: 64px; }
.section-head h2 { max-width: 620px; }
.section-intro { font-size: 17px; line-height: 1.65; color: var(--text-2); max-width: 400px; }

/* Services */
.service-lead {
  background: var(--charcoal); color: var(--off-white); border-radius: var(--radius);
  padding: 56px; display: flex; flex-wrap: wrap; gap: 32px 64px; margin-bottom: 24px;
}
.service-lead-text { flex: 1 1 360px; }
.service-meta { display: flex; gap: 16px; align-items: center; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; color: #B9BEC2; margin-bottom: 28px; }
.service-meta span { font-size: 14px; letter-spacing: 0; color: var(--accent-light); }
.service-lead h3 { font-size: 36px; line-height: 1.1; letter-spacing: -0.025em; }
.service-lead-text p:last-child { margin-top: 20px; font-size: 17px; line-height: 1.7; color: #D3D6D8; max-width: 480px; }
.service-lead-list { flex: 1 1 300px; list-style: none; margin: 0; padding: 0; align-self: flex-end; font-weight: 500; }
.service-lead-list li { padding: 16px 0; border-top: 1px solid #3A4045; }
.service-lead-list li:last-child { border-bottom: 1px solid #3A4045; }

.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.service-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 40px;
  display: flex; flex-direction: column; gap: 18px; background: var(--white);
  transition: border-color .25s ease, transform .25s ease;
}
.service-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.num { font-size: 14px; font-weight: 600; color: var(--accent); }
.service-card h3 { font-size: 24px; letter-spacing: -0.02em; }
.service-card p { color: var(--text-2); line-height: 1.7; }
.service-card .service-tags { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-3); }

/* About */
.about { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 3fr); gap: 32px 96px; }
.about-statement { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.4; letter-spacing: -0.02em; font-weight: 500; }
.about-text { margin-top: 32px; font-size: 17px; line-height: 1.75; color: var(--text-2); max-width: 640px; }

/* Approach */
.approach-title { margin-bottom: 64px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 32px; }
.steps li { border-top: 2px solid var(--charcoal); padding-top: 24px; }
.steps h3 { margin: 14px 0 10px; font-size: 22px; letter-spacing: -0.02em; }
.steps p { color: var(--text-2); line-height: 1.7; }

/* Contact */
.contact { background: var(--charcoal); color: var(--off-white); padding: 128px 0; }
.contact-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 56px 96px; align-items: start; }
.contact-details { border-top: 1px solid #3A4045; padding-top: 28px; }
.contact-name { font-weight: 700; font-size: 18px; letter-spacing: 0.14em; }
.contact-tagline { margin-top: 10px; color: #B9BEC2; font-size: 15px; }
.contact-email { display: inline-block; margin-top: 28px; font-size: 17px; font-weight: 600; color: var(--off-white); text-underline-offset: 6px; word-break: break-word; }
.contact-email:hover { color: var(--accent-light); }
.contact-cta h2 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.08; letter-spacing: -0.03em; }
.contact-cta p { margin-top: 28px; font-size: 18px; line-height: 1.7; color: #D3D6D8; max-width: 560px; }
.btn-contact { margin-top: 40px; border-color: #3C7A88; }
.btn-contact:hover { background: #255D6A; }

/* Footer */
.site-footer { background: var(--charcoal); color: var(--off-white); padding: 64px 0 40px; border-top: 1px solid #3A4045; }
.footer-top { display: flex; flex-wrap: wrap; gap: 40px 64px; justify-content: space-between; }
.footer-name { font-weight: 700; font-size: 18px; letter-spacing: 0.14em; }
.footer-tagline { margin: 10px 0 20px; color: #B9BEC2; font-size: 15px; }
.site-footer a { color: var(--off-white); font-size: 15px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 16px 32px; align-content: flex-start; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover, .legal-nav a:hover { color: var(--accent-light); }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid #3A4045; display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; font-size: 13px; color: #B9BEC2; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.legal-nav a { color: #B9BEC2; font-size: 13px; }

/* 404 page */
.legal { padding-top: 96px; padding-bottom: 120px; max-width: 820px; }
.legal h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.08; letter-spacing: -0.035em; }
.legal-notice { margin-top: 40px; padding: 28px 32px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.legal-notice p { color: var(--text-2); line-height: 1.7; }
.legal .text-link { display: inline-block; margin-top: 32px; }

/* Legal documents */
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px 96px; padding-top: 96px; padding-bottom: 120px; align-items: start; }
.legal-sidenav { position: sticky; top: 112px; }
.legal-sidenav ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.legal-sidenav li { border-bottom: 1px solid var(--line); }
.legal-sidenav a { display: block; padding: 14px 0; font-size: 15px; font-weight: 500; color: var(--text-2); text-decoration: none; }
.legal-sidenav a:hover { color: var(--charcoal); }
.legal-sidenav a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.legal-doc { max-width: 760px; }
.legal-doc h1 { font-size: clamp(36px, 4.6vw, 56px); line-height: 1.08; letter-spacing: -0.035em; }
.legal-meta { margin-top: 16px; font-size: 14px; color: var(--text-3); }
.legal-intro { margin-top: 40px; font-size: 19px; line-height: 1.65; color: var(--charcoal); }
.legal-doc section { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.legal-doc h2 { font-size: 21px; line-height: 1.3; letter-spacing: -0.015em; }
.legal-doc h3 { margin-top: 28px; font-size: 17px; letter-spacing: -0.01em; }
.legal-doc section p, .legal-doc section li { font-size: 16px; line-height: 1.75; color: var(--text-2); }
.legal-doc section p { margin-top: 14px; }
.legal-doc section ul { margin: 14px 0 0; padding-left: 22px; }
.legal-doc section li + li { margin-top: 6px; }
.legal-doc strong { color: var(--charcoal); font-weight: 600; }
.legal-doc section a { color: var(--accent); text-underline-offset: 3px; }
.legal-details { margin: 20px 0 0; }
.legal-details div { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 4px 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.legal-details div:first-child { border-top: 1px solid var(--line); }
.legal-details dt { font-size: 14px; font-weight: 600; color: var(--charcoal); }
.legal-details dd { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text-2); overflow-wrap: anywhere; }
.table-wrap { margin-top: 20px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.legal-table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 14px; line-height: 1.55; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.legal-table th { font-weight: 600; color: var(--charcoal); background: var(--off-white); }
.legal-table td { color: var(--text-2); }
.legal-table tr:last-child td { border-bottom: 0; }
.legal-table td:first-child { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; color: var(--charcoal); white-space: nowrap; }
.legal-back { display: inline-block; margin-top: 56px; }

/* Reveal animation */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn svg, .service-card { transition: none; }
}

/* Responsive */
@media (max-width: 1024px) {
  .service-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-inner { grid-template-columns: 1fr; }
  .service-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal-layout { grid-template-columns: 200px minmax(0, 1fr); gap: 48px 56px; }
  .legal-details div { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .container { padding-left: 20px; padding-right: 20px; }
  .header-inner { min-height: 64px; }
  .logo { font-size: 16px; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 4px; background: transparent; cursor: pointer;
  }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    display: block; width: 18px; height: 1.5px; background: var(--charcoal); position: relative; transition: transform .2s ease, background-color .2s ease;
  }
  .nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bar::before { top: -6px; }
  .nav-toggle-bar::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--off-white); border-bottom: 1px solid var(--line); padding: 8px 20px 20px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav-cta { margin-top: 16px; }

  .hero { padding-top: 64px; padding-bottom: 64px; }
  .hero .eyebrow { margin-bottom: 24px; }
  .hero-bottom { margin-top: 36px; }
  .lead { font-size: 17px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { width: 100%; }
  .service-index { margin-top: 56px; grid-template-columns: 1fr; }
  .service-index li { padding: 14px 0; border-bottom: 1px solid var(--line); }

  .section { padding-top: 80px; padding-bottom: 80px; }
  .section-head { margin-bottom: 40px; }
  .service-lead { padding: 32px 24px; }
  .service-lead h3 { font-size: 30px; }
  .service-card { padding: 28px 24px; }
  .about { grid-template-columns: 1fr; gap: 0; }
  .approach-title { margin-bottom: 40px; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .contact { padding: 80px 0; }
  .btn-contact { width: 100%; }
  .footer-bottom { flex-direction: column; }

  .legal-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 48px; padding-bottom: 80px; }
  .legal-sidenav { position: static; }
  .legal-intro { margin-top: 28px; font-size: 17px; }
  .legal-doc section { margin-top: 36px; padding-top: 28px; }
  .legal-details div { grid-template-columns: 1fr; }
}
