/* Self-hosted fonts — no third-party requests at runtime */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-700-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-800-normal.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2");
}

/* ============================================================
   OCYP — Orion Consulting Yielding Projects
   Serious, minimal, corporate. One accent. Restrained motion.
   ============================================================ */

:root {
  --ink: #0b1220;
  --body: #37435a;
  --muted: #64748b;
  --bg: #fafbfd;
  --surface: #ffffff;
  --border: #e3e8f0;
  --border-strong: #cbd5e1;
  --accent: #1d4ed8;
  --accent-hover: #1e40af;
  --accent-soft: #eef3fe;
  --accent-soft-border: #d7e2fb;
  --ok: #15803d;
  --ok-bg: #f0faf3;
  --ok-border: #bfe6cb;
  --warn: #b45309;
  --warn-bg: #fff9ee;
  --warn-border: #f1dfb8;
  --danger: #b91c1c;
  --danger-bg: #fef3f2;
  --danger-border: #f5cbc7;
  --none: #64748b;
  --none-bg: #f6f8fb;
  --none-border: #e3e8f0;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgb(11 18 32 / 4%);
  --shadow-lift: 0 10px 30px rgb(11 18 32 / 7%);
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---------- Base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 16px;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

::selection {
  background: rgb(29 78 216 / 16%);
}

::placeholder {
  color: #94a3b8;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

.section {
  padding-top: 104px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Type utilities ---------- */

.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgb(29 78 216 / 22%);
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 14px;
}

.btn[disabled] {
  opacity: 0.65;
  cursor: default;
  transform: none;
  box-shadow: none;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.scrolled {
  background: rgb(255 255 255 / 85%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.brand-mark {
  width: 30px;
  height: auto;
}

.brand-name {
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
}

.site-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: #475569;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--ink);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 56px;
  text-align: center;
  background: radial-gradient(900px 420px at 50% -10%, rgb(29 78 216 / 6%), transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-border);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.1rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 auto 20px;
  max-width: 18ch;
}

.hero-sub {
  max-width: 46em;
  margin: 0 auto 32px;
  font-size: clamp(1.02rem, 1.6vw, 1.15rem);
  color: var(--body);
}

.hero-ctas {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- Watermarks (ambient) ---------- */

.watermark {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.watermark-hero {
  width: 620px;
  right: -150px;
  top: -70px;
  opacity: 0.04;
  animation: drift 60s ease-in-out infinite alternate;
}

.watermark-verify {
  width: 460px;
  right: -160px;
  bottom: -170px;
  opacity: 0.04;
}

.watermark-cta {
  width: 360px;
  right: -70px;
  top: -70px;
  opacity: 0.06;
  transform: rotate(8deg);
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  to {
    transform: translate3d(-34px, 22px, 0) rotate(4deg);
  }
}

/* ---------- Stat strip ---------- */

.stats {
  padding-top: 10px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  text-align: center;
}

.stat-value {
  display: block;
  margin-top: 6px;
  font-weight: 700;
  color: var(--ink);
  font-size: 16.5px;
}

/* ---------- Section headings ---------- */

h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 800;
}

.h-mark {
  width: 24px;
  height: auto;
  flex: none;
}

.section-intro {
  max-width: 44em;
  margin-bottom: 36px;
}

/* ---------- About ---------- */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 8px;
}

.two-col p {
  margin: 0;
  font-size: 16.5px;
}

/* ---------- Services ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: #c7d6f8;
  box-shadow: var(--shadow-lift);
}

.card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--body);
}

/* ---------- Criteria ---------- */

.criteria-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.criteria-list {
  list-style: none;
  margin: 24px 0 32px;
  padding: 0;
}

.criteria-list li {
  position: relative;
  padding-left: 26px;
  margin: 13px 0;
  font-size: 16px;
}

.criteria-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 11px;
  height: 10px;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.req-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  background: linear-gradient(135deg, #eaf1fe, #f6f9ff);
  border: 1px solid var(--accent-soft-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.req {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
}

.req-value {
  display: block;
  margin-top: 5px;
  font-weight: 700;
  color: var(--ink);
  font-size: 15px;
}

/* ---------- Verify (signature section) ---------- */

.verify-panel {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 56px);
  box-shadow: var(--shadow-lift);
}

.verify-head {
  position: relative;
  z-index: 1;
  max-width: 46em;
}

.verify-head .eyebrow {
  color: var(--accent);
  margin-bottom: 10px;
}

.verify-head p {
  margin-bottom: 0;
}

#verifyForm {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}

.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.field input {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgb(29 78 216 / 12%);
}

.verify-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.form-error {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--danger);
}

.spinner {
  display: none;
  width: 15px;
  height: 15px;
  border: 2px solid rgb(255 255 255 / 40%);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.is-loading .spinner {
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Verdict card ---------- */

.verdict-region {
  position: relative;
  z-index: 1;
}

.verdict {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 26px;
  padding: 18px 20px;
  border: 1px solid;
  border-radius: var(--radius);
  animation: verdict-in 0.3s ease-out;
}

@keyframes verdict-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.verdict-icon {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  line-height: 1;
}

.verdict-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.verdict-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.verdict-msg {
  margin: 4px 0 0;
  font-size: 15.5px;
  color: var(--ink);
}

.v-ok {
  background: var(--ok-bg);
  border-color: var(--ok-border);
}

.v-ok .verdict-icon {
  background: var(--ok);
}

.v-ok .verdict-tag {
  color: var(--ok);
}

.v-warn {
  background: var(--warn-bg);
  border-color: var(--warn-border);
}

.v-warn .verdict-icon {
  background: var(--warn);
}

.v-warn .verdict-tag {
  color: var(--warn);
}

.v-caution {
  background: var(--danger-bg);
  border-color: var(--danger-border);
}

.v-caution .verdict-icon {
  background: var(--danger);
}

.v-caution .verdict-tag {
  color: var(--danger);
}

.v-none {
  background: var(--none-bg);
  border-color: var(--none-border);
}

.v-none .verdict-icon {
  background: var(--none);
}

.v-none .verdict-tag {
  color: var(--none);
}

.check-path {
  stroke-dasharray: 26;
  stroke-dashoffset: 26;
  animation: draw-check 0.45s ease-out 0.1s forwards;
}

@keyframes draw-check {
  to {
    stroke-dashoffset: 0;
  }
}

.verify-note {
  position: relative;
  z-index: 1;
  margin: 22px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: linear-gradient(135deg, #eaf1fe, #f6f9ff);
  border: 1px solid var(--accent-soft-border);
  border-radius: var(--radius-lg);
  padding: 44px 48px;
}

.cta-copy {
  position: relative;
  z-index: 1;
}

.cta-copy h3 {
  font-size: clamp(1.3rem, 2.4vw, 1.65rem);
  font-weight: 800;
  margin-bottom: 8px;
}

.cta-copy p {
  margin: 0;
}

.cta-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 104px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  padding: 42px 0 48px;
  flex-wrap: wrap;
}

.footer-title {
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

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

.footer-right {
  text-align: right;
}

.footer-right a {
  font-weight: 600;
}

.footer-right .footer-sub {
  margin-top: 6px;
}

/* ---------- Motion: load + scroll reveals ---------- */

.fade-up {
  animation: fade-up 0.6s ease-out both;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.d1 { animation-delay: 0.05s; }
.d2 { animation-delay: 0.13s; }
.d3 { animation-delay: 0.21s; }
.d4 { animation-delay: 0.29s; }

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .fade-up,
  .reveal {
    opacity: 1;
    transform: none;
  }

  .watermark-hero {
    animation: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .criteria-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
    padding: 36px 32px;
  }
}

@media (max-width: 780px) {
  .site-nav {
    display: none;
  }

  .header-inner {
    justify-content: space-between;
  }

  .section {
    padding-top: 72px;
  }

  .site-footer {
    margin-top: 72px;
  }

  .hero {
    padding-top: 96px;
  }
}

@media (max-width: 720px) {
  #verifyForm {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-right {
    text-align: left;
  }

  .watermark-hero {
    width: 420px;
    right: -160px;
  }
}
