/* Falcon Intelligent Systems
   Theme: the falcon's sight and dive. Daylight sky, slate plumage, cere-yellow accent.
   Type: Archivo, one family; width axis carries the hierarchy (expanded headlines, normal body). */

:root {
  --sky: #E6EDF2;        /* hero and alternate sections */
  --mist: #F6F8FA;       /* page background */
  --ink: #15232D;        /* slate plumage: text, dark section */
  --wing: #4C5D69;       /* secondary text */
  --line: #C9D4DC;       /* rules and borders */
  --cere: #F2B705;       /* falcon's eye-ring and cere: the one accent */
  --cere-deep: #D99E00;
  --on-ink: #F6F8FA;
  --on-ink-soft: #B9C7D1;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 7rem);
  --radius: 6px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ol { margin: 0; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.section-ink :focus-visible, .site-footer :focus-visible { outline-color: var(--cere); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--on-ink); padding: .6rem 1rem; border-radius: var(--radius);
}
.skip:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type scale ---------- */
.display {
  font-size: clamp(2.5rem, 5.6vw, 4.6rem);
  font-weight: 800;
  font-stretch: 125%;
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(1.75rem, 3.3vw, 2.5rem);
  font-weight: 760;
  font-stretch: 115%;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h3 {
  font-size: 1.125rem;
  font-weight: 700;
  font-stretch: 108%;
  line-height: 1.3;
}
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--wing); max-width: 36em; }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--cere); color: var(--ink);
  font: inherit; font-weight: 720; font-stretch: 110%;
  padding: .85rem 1.4rem; border: 0; border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease;
}
.btn:hover { background: var(--cere-deep); }
.btn-small { padding: .55rem 1rem; font-size: .95rem; }

.text-link {
  font-weight: 650; text-decoration: underline; text-decoration-thickness: 2px;
  text-underline-offset: .3em; text-decoration-color: var(--cere);
}
.text-link:hover { text-decoration-color: currentColor; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--sky);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background-color .2s ease;
}
.site-header.is-scrolled { background: var(--mist); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand img { height: 50px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav a:not(.btn) { text-decoration: none; font-weight: 560; font-size: .975rem; color: var(--ink); }
.site-nav a:not(.btn):hover { text-decoration: underline; text-decoration-color: var(--cere); text-decoration-thickness: 2px; text-underline-offset: .35em; }

.menu-toggle {
  display: none; font: inherit; font-weight: 650; background: transparent; color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: var(--radius); padding: .4rem .9rem; cursor: pointer;
}

@media (max-width: 52rem) {
  .menu-toggle { display: inline-block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--mist); border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1.25rem;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 1rem; }
}

/* ---------- Hero: the dive ---------- */
.hero { background: var(--sky); padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3.5rem, 8vw, 6.5rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-copy .lead { margin-top: 1.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 1.75rem; margin-top: 2.25rem; }

.hero-art { position: relative; }
.dive { width: 100%; height: auto; overflow: visible; }
.dive .horizon line { stroke: #B4C3CE; stroke-width: 1.5; stroke-dasharray: 2 8; }
.dive-glide, .dive-stoop { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; }
.dive-glide { stroke-dasharray: .012 .018; opacity: .55; }
.dive-point .dot { fill: var(--cere); }
.dive-point .ring { fill: none; stroke: var(--cere); stroke-width: 2.5; }
.hero-caption { margin-top: 1rem; font-size: .9rem; line-height: 1.5; color: var(--wing); max-width: 30em; }

/* One orchestrated moment: the bird appears, glides, then stoops to the target. */
@media (prefers-reduced-motion: no-preference) {
  .js .dive-bird { opacity: 0; animation: bird-in .5s ease-out .1s forwards; }
  .js .dive-glide { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s cubic-bezier(.4,0,.6,1) .35s forwards, settle-dash 0s linear 1.45s forwards; }
  .js .dive-stoop { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .55s cubic-bezier(.55,0,1,.45) 1.45s forwards; }
  .js .dive-point { opacity: 0; transform-origin: 72px 482px; animation: strike .45s cubic-bezier(.2,.8,.3,1.4) 1.95s forwards; }
}
@keyframes bird-in { to { opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes settle-dash { to { stroke-dasharray: .012 .018; } }
@keyframes strike { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: scale(1); } }

@media (max-width: 52rem) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 26rem; justify-self: center; width: 100%; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section-sky { background: var(--sky); }
.section-ink { background: var(--ink); color: var(--on-ink); }
.section-head { display: grid; gap: .9rem; margin-bottom: clamp(2rem, 4vw, 3rem); max-width: 42rem; }
.section-intro { color: var(--wing); font-size: 1.1rem; }

/* Services: a reference list, not a card grid */
.services { border-top: 2px solid var(--ink); }
.service {
  display: grid; grid-template-columns: minmax(12rem, 1fr) 1.7fr; gap: .5rem 3rem;
  padding-block: 1.6rem; border-bottom: 1px solid var(--line);
}
.service dt { font-size: clamp(1.2rem, 1.9vw, 1.45rem); font-weight: 720; font-stretch: 112%; line-height: 1.25; }
.service dd { color: var(--wing); max-width: 38em; }
.stack { margin-top: 2rem; color: var(--wing); font-size: .975rem; max-width: 48em; }
@media (max-width: 44rem) { .service { grid-template-columns: 1fr; } }

/* Process: a flight line through four real stages */
.flight {
  list-style: none; padding: 0; position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
}
.flight::before {
  content: ""; position: absolute; left: 1.15rem; right: 0; top: 1.15rem;
  border-top: 2px solid var(--ink);
}
.flight li { position: relative; }
.flight-num {
  position: relative; display: inline-grid; place-items: center;
  width: 2.3rem; height: 2.3rem; border-radius: 50%;
  background: var(--sky); border: 2px solid var(--ink);
  font-weight: 760; font-stretch: 112%; margin-bottom: 1.1rem;
}
.flight li:last-child .flight-num { background: var(--cere); }
.flight h3 { margin-bottom: .4rem; }
.flight p { color: var(--wing); font-size: 1rem; }
@media (max-width: 52rem) {
  .flight { grid-template-columns: 1fr; gap: 1.75rem; padding-left: 3.4rem; }
  .flight::before { left: 1.1rem; right: auto; top: .5rem; bottom: .5rem; border-top: 0; border-left: 2px solid var(--ink); }
  .flight-num { position: absolute; left: -3.4rem; top: -.35rem; margin: 0; }
}

/* Engagement models */
.engage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.engage > div { border-left: 3px solid var(--cere); padding-left: 1.25rem; }
.engage h3 { margin-bottom: .45rem; }
.engage p { color: var(--wing); }
@media (max-width: 52rem) { .engage { grid-template-columns: 1fr; } }

/* About: purpose, vision, mission, values */
.about-lead { margin-top: 1.25rem; font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.5; color: var(--on-ink-soft); max-width: 40em; }
.purpose { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem clamp(2rem, 5vw, 4rem); margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.purpose > div { border-top: 2px solid var(--cere); padding-top: 1.25rem; }
.purpose h3 { font-size: 1rem; color: var(--cere); font-weight: 700; margin-bottom: .6rem; }
.purpose p { font-size: clamp(1.15rem, 1.7vw, 1.35rem); line-height: 1.45; font-weight: 500; font-stretch: 104%; }
.values-title { margin-top: clamp(3rem, 6vw, 4rem); margin-bottom: 1.25rem; font-size: 1rem; color: var(--cere); }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem 2rem; }
.values dt { font-weight: 720; font-stretch: 110%; margin-bottom: .3rem; }
.values dd { color: var(--on-ink-soft); font-size: .975rem; }
@media (max-width: 52rem) {
  .purpose { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 30rem) { .values { grid-template-columns: 1fr; } }

/* Founder */
.founder { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.75rem, 5vw, 4rem); align-items: start; }
.founder-mark {
  width: clamp(7rem, 16vw, 11rem); aspect-ratio: 1; border-radius: 50%;
  background: var(--sky); border: 3px solid var(--ink); box-shadow: 0 0 0 6px var(--mist), 0 0 0 8px var(--cere);
  display: grid; place-items: center;
}
.founder-mark span { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 820; font-stretch: 125%; letter-spacing: -0.02em; }
.founder-copy { max-width: 40rem; display: grid; gap: 1rem; justify-items: start; }
.founder-name { font-size: 1.3rem; font-weight: 720; font-stretch: 110%; }
.founder-name span { display: block; font-size: .95rem; font-weight: 500; font-stretch: 100%; color: var(--wing); }
.founder-copy p:not(.founder-name) { color: var(--wing); }
@media (max-width: 40rem) { .founder { grid-template-columns: 1fr; } }

/* Contact */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-copy { display: grid; gap: 1rem; }
.contact-copy p { color: var(--wing); max-width: 28em; }
.contact-direct a { color: var(--ink); font-weight: 650; text-decoration-color: var(--cere); text-decoration-thickness: 2px; text-underline-offset: .25em; overflow-wrap: anywhere; }
.contact-form { display: grid; gap: 1.1rem; background: var(--mist); padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--radius); border: 1px solid var(--line); }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 620; font-size: .95rem; }
.optional { font-weight: 400; color: var(--wing); }
.field input, .field textarea {
  font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: var(--radius); padding: .7rem .8rem; width: 100%;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--cere); outline-offset: 0; border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: #B3261E; }
.contact-form .btn { justify-self: start; }
.form-status { font-size: .95rem; color: var(--wing); min-height: 1.5em; }
.form-status.is-error { color: #B3261E; }
@media (max-width: 52rem) { .contact { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-ink-soft); padding-block: 3rem; }
.footer-inner { display: grid; gap: 1rem; justify-items: start; }
.footer-inner img { height: 44px; width: auto; }
.footer-motto { color: var(--on-ink); font-weight: 700; font-stretch: 115%; font-size: 1.15rem; }
.footer-meta { font-size: .9rem; }
.footer-meta a { color: var(--on-ink); }

/* 404 */
.notfound { min-height: 70vh; display: grid; align-content: center; gap: 1.25rem; padding-block: 4rem; }
.notfound p { color: var(--wing); max-width: 32em; }
