/* =========================================================
   ORIGO — Design tokens
   ========================================================= */
:root {
  --ink: #16233A;
  /* primary dark navy — lightened from near-black */
  --ink-soft: #202F47;
  /* secondary panels on dark */
  --slate: #55677D;
  /* muted text on light */
  --paper: #F5F4EF;
  /* light section background */
  --paper-dim: #EAE8E0;
  /* card / alt background on light */
  --white: #FFFFFF;
  --brass: #A2916F;
  /* muted bronze accent — less saturated/orange than before */
  --brass-soft: #D2C7AE;
  /* tints, hovers */
  --brass-deep: #7C6B4E;
  /* darker bronze for small text on light backgrounds */
  --moss: #4C7A6E;
  /* secondary accent — checks / positive */

  --font-display: 'Newsreader', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --max: 1360px;
  --radius: 2px;
}

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

html {
  scroll-behavior: smooth;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.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: -999px;
  top: 0;
  background: var(--brass);
  color: var(--ink);
  padding: .75rem 1.25rem;
  z-index: 200;
  font-weight: 600;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.75rem;
}

/* =========================================================
   Type
   ========================================================= */
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  margin: 0;
}

em {
  font-style: italic;
  font-weight: 500;
  color: var(--brass-soft);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-soft);
  margin: 0 0 0.9rem;
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  max-width: 30ch;
  margin-bottom: 1.25rem;
}

.section-title-sm {
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  margin-bottom: 1rem;
}

.section-lead {
  max-width: 74ch;
  color: var(--slate);
  font-size: 1.05rem;
}

.section.section-alt .section-lead,
body .section-lead {
  color: var(--slate);
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(22, 35, 58, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.brand-name {
  font-family: var(--font-mono);
  letter-spacing: 0.18em;
  font-size: 0.95rem;
  color: var(--white);
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--white);
  opacity: 0.85;
  transition: opacity .2s ease;
}

.main-nav a:hover {
  opacity: 1;
}

.nav-cta {
  border: 1px solid var(--brass);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  opacity: 1 !important;
}

.nav-cta:hover {
  background: var(--brass);
  color: var(--ink);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  padding: 6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(ellipse 900px 600px at 85% 20%, rgba(162, 145, 111, 0.08), transparent 70%),
    var(--ink);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4.5rem;
  align-items: center;
}

.hero-copy {
  text-align: left;
}

.hero-copy .hero-lead {
  margin-left: 0;
  margin-right: 0;
}

.hero-actions {
  justify-content: flex-start;
}

.hero-copy h1 {
  font-size: clamp(2.6rem, 4.6vw, 3.8rem);
  margin: 0.6rem 0 1.4rem;
}

.hero-lead {
  color: #DCE1E8;
  max-width: 54ch;
  font-size: 1.14rem;
  line-height: 1.65;
  margin: 0 0 2.4rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Right-hand visual column: logo + credentials panel */
.hero-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.2rem;
}

.hero-logo-wrap {
  display: inline-block;
  background: var(--paper);
  padding: 1.4rem 2.2rem;
  border-radius: 6px;
}

.hero-logo {
  width: 450px;
  margin: 0;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem 2rem;
  width: 100%;
  background: var(--ink-soft);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 6px;
  padding: 1.8rem 2rem;
}

.hero-stat {
  text-align: left;
}

.hero-stat-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--white);
  margin: 0 0 0.35rem;
}

.hero-stat-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #9AA7B8;
  line-height: 1.4;
  margin: 0;
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.btn-primary {
  background: var(--brass);
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--brass-soft);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--white);
}

.btn-ghost:hover {
  border-color: var(--white);
}

.btn-full {
  width: 100%;
  text-align: center;
  border: none;
  font-size: 0.95rem;
}

/* =========================================================
   Sections (light / dark alternation)
   ========================================================= */
.section {
  padding: 5.5rem 0;
  background: var(--ink);
  color: var(--white);
}

.section.section-alt {
  background: var(--paper);
  color: var(--ink);
}

.section.section-alt .eyebrow {
  color: var(--brass-deep);
}

.section.section-alt .section-lead {
  color: var(--slate);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.about-text p {
  color: #C9CFD8;
  max-width: 66ch;
}

.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--white);
  font-size: 1.3rem;
  line-height: 1.4;
  border-left: 2px solid var(--brass);
  padding-left: 1.2rem;
  margin-top: 1.8rem;
}

.about-cards {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.card {
  background: var(--ink-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.6rem;
}

.card-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brass);
  margin: 0 0 0.6rem;
}

.card p:last-child {
  margin-bottom: 0;
  color: #C9CFD8;
}

/* Carousel (Why Origo / Industries — auto-scrolling strips) */
.carousel {
  margin-top: 3rem;
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.carousel-track {
  display: flex;
  width: max-content;
  gap: 1.1rem;
  padding: 0.4rem 0.5rem;
  animation: carousel-scroll 34s linear infinite;
}

.carousel:hover .carousel-track,
.carousel:focus-within .carousel-track {
  animation-play-state: paused;
}

@keyframes carousel-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.carousel-card {
  flex: 0 0 auto;
  width: 176px;
  background: var(--white);
  border: 1px solid rgba(22, 35, 58, 0.1);
  border-radius: 6px;
  padding: 1.6rem 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.carousel-card:hover {
  border-color: var(--brass);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.carousel-card:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

.carousel-card.is-active {
  border-color: var(--brass);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.carousel-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--brass);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.carousel-icon svg {
  width: 30px;
  height: 30px;
}

.carousel-card p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--ink);
  line-height: 1.35;
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track {
    animation: none;
    overflow-x: auto;
  }
}

@media (max-width: 720px) {
  .carousel-card {
    width: 148px;
    padding: 1.2rem 0.9rem;
  }

  .carousel-icon {
    width: 46px;
    height: 46px;
  }

  .carousel-icon svg {
    width: 24px;
    height: 24px;
  }
}

/* Carousel on dark section backgrounds (e.g. Industries) */
.section:not(.section-alt) .carousel-card {
  background: var(--ink-soft);
  border-color: rgba(255, 255, 255, 0.1);
}

.section:not(.section-alt) .carousel-card p {
  color: var(--white);
}

.section:not(.section-alt) .carousel {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
}

/* Carousel card description popover */
.carousel-popover {
  position: fixed;
  z-index: 300;
  width: 260px;
  background: var(--ink);
  border: 1px solid var(--brass);
  border-radius: 6px;
  padding: 1.1rem 1.2rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
}

.carousel-popover.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.carousel-popover-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 0.5rem;
  padding-right: 1.2rem;
}

.carousel-popover-text {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #DCE1E8;
  margin: 0;
}

.carousel-popover-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 20px;
  height: 20px;
  border: none;
  background: none;
  color: var(--slate);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
}

.carousel-popover-close:hover {
  color: var(--white);
}

/* Scatter grid (Challenges) — deliberately loose/uneven, echoes "before order" */
.scatter-grid {
  list-style: none;
  margin: 2.4rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem 1.4rem;
}

.scatter-grid li {
  font-size: 0.95rem;
  color: #C9CFD8;
  padding: 1rem 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

/* Banner */
.banner {
  background: var(--ink-soft);
  color: var(--white);
  padding: 3.6rem 0;
  border-top: 1px solid var(--brass);
  border-bottom: 1px solid var(--brass);
}

.banner-text {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  max-width: 76ch;
  margin: 0;
  line-height: 1.45;
  color: #DDE1E7;
}

/* Accordion (Core Services) */
.accordion {
  margin-top: 2.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.accordion-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.accordion-item h3 {
  margin: 0;
  font-weight: 400;
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 1.4rem 0;
  text-align: left;
  font-family: var(--font-body);
}

.acc-num {
  font-family: var(--font-mono);
  color: var(--brass);
  font-size: 0.85rem;
  width: 2ch;
}

.acc-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  flex: 1;
}

.acc-icon {
  width: 20px;
  height: 20px;
  position: relative;
  flex-shrink: 0;
}

.acc-icon::before,
.acc-icon::after {
  content: '';
  position: absolute;
  background: var(--brass);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.acc-icon::before {
  width: 14px;
  height: 2px;
}

.acc-icon::after {
  width: 2px;
  height: 14px;
  transition: transform .25s ease;
}

.accordion-trigger[aria-expanded="true"] .acc-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.accordion-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height .35s ease;
}

.accordion-item.open .accordion-panel {
  max-height: 900px;
}

.accordion-panel>*:last-child {
  padding-bottom: 1.6rem;
}

.accordion-panel p {
  color: #C9CFD8;
  margin: 0 0 1rem;
}

.accordion-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem 2rem;
}

.accordion-panel ul li {
  font-size: 0.94rem;
  color: #DDE1E7;
  padding-left: 1.1rem;
  position: relative;
}

.accordion-panel ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 5px;
  height: 5px;
  background: var(--slate);
}

.acc-quote {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--white) !important;
  font-size: 1.1rem;
  border-left: 2px solid var(--brass);
  padding-left: 1rem;
}

/* Benefits check grid */
.check-grid {
  list-style: none;
  margin: 2.2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem 2.5rem;
}

.check-grid li {
  padding-left: 1.8rem;
  position: relative;
  font-size: 0.98rem;
}

.check-grid li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--moss);
  font-weight: 700;
}

/* Two column (advantage / promise) */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
}

.compare-col {
  display: flex;
  flex-direction: column;
}

.compare-card {
  background: var(--white);
  border: 1px solid rgba(22, 35, 58, 0.1);
  border-radius: 6px;
  padding: 1.8rem 2rem 2rem;
  margin-top: 1.4rem;
  flex: 1;
}

.compare-intro {
  color: var(--slate);
  margin: 0 0 0.4rem;
  font-size: 0.98rem;
}

.plain-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.plain-list li {
  padding: 0.7rem 0;
  border-top: 1px solid rgba(22, 35, 58, 0.12);
  font-size: 0.98rem;
}

.plain-list-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 1.8rem;
}

.section-alt .plain-list li {
  border-color: rgba(22, 35, 58, 0.12);
}

.section:not(.section-alt) .plain-list li {
  border-color: rgba(255, 255, 255, 0.12);
}

.advantage-note {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--ink);
  border-left: 2px solid var(--brass);
  padding-left: 1.1rem;
  margin: 1.6rem 0 0;
}

/* Value proposition */
.value-prop {
  background: var(--ink-soft);
  padding: 6rem 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.value-prop h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin: 0 auto 1.6rem;
}

.value-prop p {
  max-width: 74ch;
  margin: 0 auto;
  color: #C9CFD8;
  font-size: 1.02rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3.5rem;
}

.contact-details {
  margin-top: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.contact-details dt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.2rem;
}

.contact-details dd {
  margin: 0;
}

.contact-details a {
  text-decoration: none;
}

.contact-details a:hover {
  color: var(--brass);
}

.contact-form {
  background: var(--ink-soft);
  padding: 2.2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.form-row {
  margin-bottom: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-row label {
  font-size: 0.85rem;
  color: #C9CFD8;
}

.form-row input,
.form-row textarea {
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--white);
  padding: 0.75rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border-radius: var(--radius);
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--brass);
  outline: none;
}

.form-note {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: var(--brass-soft);
  min-height: 1.2em;
}

/* Footer */
.site-footer {
  background: #111B2E;
  padding: 3rem 0;
}

.footer-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  font-size: 0.85rem;
}

.footer-brand .brand-mark {
  width: 26px;
  height: 26px;
}

.footer-tagline {
  color: var(--brass-soft);
  font-size: 0.88rem;
  margin: 0;
}

.footer-copy {
  color: var(--slate);
  font-size: 0.8rem;
  margin: 0;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .scatter-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .check-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .accordion-panel ul {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {

  .about-grid,
  .two-col,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .plain-list-cols {
    grid-template-columns: 1fr;
  }

  .scatter-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .check-grid {
    grid-template-columns: 1fr;
  }

  .accordion-panel ul {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    text-align: center;
    order: 1;
  }

  .hero-copy .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-side {
    order: 0;
  }
}

@media (max-width: 720px) {
  .main-nav ul {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--ink);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: none;
    gap: 1.2rem;
  }

  .main-nav ul.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .scatter-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }
}