@font-face {
  font-family: "Frutiger";
  src: url("assets/fonts/frutiger-roman-webfont.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Frutiger";
  src: url("assets/fonts/frutiger-bold-webfont.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
:root {
  --orange: rgb(223, 100, 58);
  --ink: rgb(76, 76, 76);
  --muted: #6f6f6f;
  --paper: #fffaf7;
  --line: rgba(76, 76, 76, .12);
  --max: 1160px;
  --header-h: 104px;
  --left-rail: clamp(100px, 8vw, 150px);
  --font-main: "Frutiger", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  line-height: 1.62;
  font-family: var(--font-main);
}

/* Fixed Q, matching the Pages/PDF composition:
   viewport-height based, cropped left, tail just above the bottom. */
body::before {
  content: "";
  position: fixed;
  z-index: 0;
  pointer-events: none;
  height: 98vh;
  width: calc(98vh * 1.298);
  left: -38vh;
  bottom: 1.2vh;
  background: url("assets/qualigy-q.svg") no-repeat left bottom / contain;
  opacity: .06;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.15rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;

  padding: .9rem clamp(1.2rem, 3vw, 3rem);

  background: transparent;
  border-bottom: none;
  isolation: isolate;
}
.brand { display: flex; align-items: center; }
.brand-logo { width: clamp(132px, 13vw, 185px); height: auto; display: block; }
.nav { display: flex; align-items: center; gap: clamp(.8rem, 2vw, 1.7rem); font-size: .95rem; font-weight: 400; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--orange); }
.lang { border: 1px solid var(--line); border-radius: 999px; padding: .25rem .65rem; font-weight: 400; color: var(--ink) !important; }

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  left: var(--left-rail);

  background: rgba(255,255,255,.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  z-index: -1;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 8rem) clamp(1.4rem, 3vw, 3rem);
  scroll-margin-top: calc(var(--header-h) + 1.25rem);
}

.hero {
  min-height: 72vh;
  display: grid;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 8rem) clamp(1.4rem, 3vw, 3rem);
}
.hero-copy { max-width: 880px; }
.hero .eyebrow { color: var(--orange); font-size: .82rem; letter-spacing: .18em; }
.eyebrow {
  color: var(--ink);
  text-transform: uppercase;
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  letter-spacing: .14em;
  font-weight: 400;
  margin-bottom: 1.1rem;
}

h1, h2, h3 { line-height: 1.08; letter-spacing: -.04em; margin: 0 0 1.35rem; }
h1 { font-size: clamp(2.7rem, 5.6vw, 5.4rem); max-width: 980px; color: var(--ink); font-weight: 600; }
h2 { font-size: clamp(2rem, 3.4vw, 3.3rem); max-width: 850px; color: var(--ink); font-weight: 600; }
h3 { font-size: clamp(1.45rem, 2vw, 1.95rem); color: var(--ink); font-weight: 600; }
.lead { font-size: clamp(1.15rem, 1.8vw, 1.45rem); color: var(--muted); max-width: 720px; }

.split { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.split p, .split blockquote { max-width: 760px; }
.statement { font-size: clamp(1.25rem, 2.1vw, 1.65rem); line-height: 1.35; font-weight: 400; color: var(--ink); margin: 2rem 0; }
blockquote { margin: 2rem 0 0; padding-left: 1.2rem; border-left: 3px solid var(--orange); color: var(--muted); font-size: 1.1rem; }
.portrait-card { position: sticky; top: 7rem; margin: 0; border-radius: 2rem; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.12); background: var(--paper); }
.portrait-card img { width: 100%; display: block; aspect-ratio: 4/5; object-fit: cover; object-position: 52% 28%; }

.services { border-top: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2.5rem; }
.card { border: 1px solid var(--line); border-radius: 2rem; padding: 1.1rem; background: rgba(255,255,255,.94); display: flex; flex-direction: column; min-height: 100%; }
.card h3, .card p, .card ul { margin-left: .65rem; margin-right: .65rem; }
.card p, .card li { color: var(--muted); }
.card ul { padding-left: 1.2rem; }
.card li::marker { color: var(--orange); }
.card-art { height: 160px; border-radius: 1.4rem; margin-bottom: 1.5rem; background: var(--paper); overflow: hidden; position: relative; }
.card-art::before, .card-art::after { content: ""; position: absolute; inset: auto; background: var(--orange); opacity: .86; }
.strategy::before { width: 220px; height: 220px; border: 16px solid var(--orange); background: transparent; opacity: .18; border-radius: 50%; right: -48px; top: -58px; }
.strategy::after { width: 55%; height: 3px; left: 28px; bottom: 42px; transform: rotate(-18deg); border-radius: 999px; }
.leadership::before { width: 86px; height: 86px; border-radius: 50%; left: 36px; top: 36px; opacity: .18; }
.leadership::after { width: 86px; height: 86px; border-radius: 50%; right: 46px; bottom: 30px; opacity: .38; }
.execution::before { width: 72%; height: 16px; left: 28px; top: 42px; border-radius: 999px; box-shadow: 0 40px 0 rgba(223,100,58,.55), 0 80px 0 rgba(223,100,58,.24); }
.execution::after { width: 22px; height: 22px; border-radius: 50%; right: 34px; top: 39px; box-shadow: 0 40px 0 rgba(223,100,58,.55), 0 80px 0 rgba(223,100,58,.24); }

.contact { border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.contact-list { display: grid; gap: .9rem; font-style: normal; font-size: 1.15rem; }
.contact-list a { padding-bottom: .8rem; border-bottom: 1px solid var(--line); color: var(--muted); }
.contact-list a:hover { color: var(--orange); }
.site-footer { max-width: var(--max); margin: 0 auto; padding: 2rem clamp(1.4rem, 3vw, 3rem) 4rem; display: flex; justify-content: space-between; color: var(--muted); border-top: 1px solid var(--line); }
.legal { min-height: 70vh; }

@media (max-width: 860px) {
  :root { --header-h: 0px; }
  .site-header { position: static; align-items: flex-start; flex-direction: column; gap: 1rem; }
  .nav { flex-wrap: wrap; }
  .split, .contact { grid-template-columns: 1fr; }
  .portrait-card { position: static; max-width: 420px; }
  .cards { grid-template-columns: 1fr; }
  .hero { min-height: 64vh; }
  h1 { font-size: clamp(2.4rem, 11vw, 4.2rem); }
  h2 { font-size: clamp(2rem, 9vw, 3.2rem); }
  .site-footer { flex-direction: column; gap: .4rem; }
  body::before {
    height: 92vh;
    width: calc(92vh * 1.298);
    left: -47vh;
    bottom: 1vh;
    opacity: .05;
  }
}
