:root {
  --ys-primary: #163b5c;
  --ys-primary-dark: #0f2c46;
  --ys-secondary: #d66a1f;
  --ys-secondary-dark: #a8480d;
  --bs-primary-rgb: 22, 59, 92;
  --bs-secondary-rgb: 214, 106, 31;
  --bs-body-font-family: "Open Sans", sans-serif;
  --bs-body-color: #0f172a;
  --bs-body-bg: #ffffff;
  --bs-border-color: #dee2e6;
  --bs-link-color: var(--ys-primary);
  --bs-link-hover-color: var(--ys-primary-dark);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  font-family: var(--bs-body-font-family);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #0f172a;
  font-weight: 700;
  letter-spacing: -.025em;
}

.navbar-brand {
  color: #0f172a;
  font-weight: 700;
}

.navbar-brand-mark {
  display: inline-grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  color: #ffffff;
  background: var(--ys-primary);
  border-radius: 50%;
  font-size: .75rem;
  font-weight: 700;
}

.navbar .nav-link {
  color: #475569;
  font-weight: 600;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: var(--ys-primary);
}

.btn-primary {
  --bs-btn-bg: var(--ys-primary);
  --bs-btn-border-color: var(--ys-primary);
  --bs-btn-hover-bg: var(--ys-primary-dark);
  --bs-btn-hover-border-color: var(--ys-primary-dark);
  --bs-btn-active-bg: var(--ys-primary-dark);
  --bs-btn-active-border-color: var(--ys-primary-dark);
}

.btn-outline-primary {
  --bs-btn-color: var(--ys-primary);
  --bs-btn-border-color: var(--ys-primary);
  --bs-btn-hover-bg: var(--ys-primary);
  --bs-btn-hover-border-color: var(--ys-primary);
  --bs-btn-active-bg: var(--ys-primary-dark);
  --bs-btn-active-border-color: var(--ys-primary-dark);
}

.btn-secondary {
  --bs-btn-color: #ffffff;
  --bs-btn-bg: var(--ys-secondary-dark);
  --bs-btn-border-color: var(--ys-secondary-dark);
  --bs-btn-hover-color: #ffffff;
  --bs-btn-hover-bg: #843609;
  --bs-btn-hover-border-color: #843609;
  --bs-btn-active-color: #ffffff;
  --bs-btn-active-bg: #843609;
  --bs-btn-active-border-color: #843609;
  --bs-btn-disabled-color: #ffffff;
  --bs-btn-disabled-bg: var(--ys-secondary-dark);
  --bs-btn-disabled-border-color: var(--ys-secondary-dark);
}

.hero-section {
  padding-block: clamp(4rem, 8vw, 0rem);
}

.hero-section h1 {
  font-size: clamp(2.5rem, 4.2vw, 4rem);
  line-height: 1;
}

.page-title {
  font-size: clamp(2.5rem, 4.2vw, 3rem);
  line-height: 1;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.hero-copy {
  max-width: 43rem;
  color: #64748b;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.75;
}

.availability-dot {
  width: .55rem;
  height: .55rem;
  background: #198754;
  border-radius: 50%;
}

.capability-card .card-header {
  background: #ffffff;
}

.capability-card .nav-link {
  color: #475569;
  font-size: .875rem;
}

.capability-card .nav-link.active,
.capability-card .nav-link.is-active {
  color: #ffffff;
  background: var(--ys-primary);
}

.code-panel {
  min-height: 11rem;
  font-family: "JetBrains Mono", monospace;
  font-size: .9rem;
}

.code-panel p:last-child {
  margin-bottom: 0;
}

.code-panel .muted {
  color: var(--ys-secondary-dark);
  font-weight: 700;
}

.metric strong {
  display: block;
  color: var(--ys-primary);
  font-size: 1.75rem;
}

.metric span {
  color: #64748b;
  font-size: .875rem;
}

.tech-strip {
  border-block: 1px solid var(--bs-border-color);
}

.tech-marquee {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.tech-track {
  display: flex;
  width: max-content;
  animation: tech-scroll 38s linear infinite;
}

.tech-marquee:hover .tech-track {
  animation-play-state: paused;
}

.tech-group {
  display: flex;
  flex-shrink: 0;
  gap: .75rem;
  padding-right: .75rem;
}

@keyframes tech-scroll {
  to { transform: translateX(-50%); }
}

.tech-badge img {
  width: 1.75rem;
  height: 1.75rem;
  object-fit: contain;
}

.tech-badge {
  flex: 0 0 12rem;
  justify-content: center;
  padding: .95rem 1.1rem !important;
  font-size: .95rem;
}

.section-space {
  padding-block: clamp(4rem, 7vw, 6rem);
}

[data-parallax] {
  overflow: clip;
}

[data-parallax] > .container,
[data-parallax] > .container-xxl {
  transform: translate3d(0, var(--parallax-y, 0), 0);
  will-change: transform;
}

.section-kicker {
  color: var(--ys-secondary-dark);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  line-height: 1;
}

.section-copy {
  color: #64748b;
  line-height: 1.75;
}

.portrait-image {
  width: 100%;
  height: 100%;
  min-height: 28rem;
  object-fit: cover;
}

.icon-box {
  display: inline-grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  color: var(--ys-primary);
  background: rgba(22, 59, 92, .08);
  border-radius: .5rem;
}

.icon-box svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.expertise-card {
  transition: border-color .2s ease, transform .2s ease;
}

.expertise-card:hover {
  border-color: rgba(22, 59, 92, .45);
  transform: translateY(-2px);
}

.expertise-card .card-text,
.support-flow p {
  color: #64748b;
  line-height: 1.7;
}

.process-list .list-group-item {
  display: grid;
  grid-template-columns: 3.25rem minmax(7rem, .45fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
  padding-block: 1.5rem;
  background-color: unset;
}

.process-number {
  color: var(--ys-secondary-dark);
  font-size: .825rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.process-list h3 {
  margin: 0;
  color: var(--ys-primary);
  font-size: 1.2rem;
}

.process-list p {
  margin: 0;
  color: #64748b;
  line-height: 1.65;
}

.support-flow {
  columns: 2;
  column-gap: clamp(3rem, 8vw, 8rem);
  max-width: 70rem;
}

.support-flow article {
  break-inside: avoid;
  margin-bottom: 2.5rem;
}

.support-flow h3 {
  color: var(--ys-primary);
  font-size: 1.2rem;
  margin-bottom: .65rem;
}

.support-flow p {
  margin: 0;
}

.contact-wrap {
  max-width: 65rem;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(22, 59, 92, .5);
  box-shadow: 0 0 0 .25rem rgba(22, 59, 92, .12);
}

.form-context {
  color: #64748b;
  font-size: .875rem;
}

.form-status:empty {
  display: none;
}

.form-status.is-visible {
  margin-bottom: 1rem;
  padding: .75rem 1rem;
  border: 1px solid var(--bs-border-color);
  border-radius: .375rem;
}

.spam-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-footer-bootstrap {
  color: rgba(255, 255, 255, .78);
  background: var(--ys-primary);
}

.site-footer-bootstrap .footer-heading {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .875rem;
}

.site-footer-bootstrap a {
  color: rgba(255, 255, 255, .78);
  text-decoration: none;
}

.site-footer-bootstrap a:hover,
.site-footer-bootstrap a:focus {
  color: #ffffff;
}

.site-footer-bootstrap .footer-nav,
.site-footer-bootstrap .footer-contact {
  display: grid;
  gap: .625rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer-bootstrap .footer-contact a {
  align-items: center;
  display: inline-flex;
  gap: .625rem;
}

.site-footer-bootstrap .footer-icon {
  color: var(--ys-secondary);
  flex: 0 0 auto;
  height: 1.125rem;
  width: 1.125rem;
}

.portfolio-hero,
.legal-hero {
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.portfolio-summary {
  background: #ffffff;
}

.portfolio-filter.is-active,
.portfolio-filter.active {
  color: #ffffff;
  border-color: var(--ys-primary);
  background: var(--ys-primary);
}

.project-card-link {
  color: inherit;
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease;
}

.project-card-link:hover,
.project-card-link:focus-visible {
  color: inherit;
  border-color: rgba(22, 59, 92, .5);
  transform: translateY(-2px);
}

.project-card-image {
  width: 100%;
  height: 15rem;
  object-fit: cover;
}

.project-meta {
  color: var(--ys-secondary-dark);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.project-card-link .card-text,
.project-lead,
.legal-copy {
  color: #64748b;
  line-height: 1.75;
}

.project-cover {
  width: 100%;
  max-height: 42rem;
  object-fit: cover;
}

.project-sidebar.sticky-lg-top {
  top: 6rem !important;
}

.project-sidebar dt {
  margin-top: 1.25rem;
  color: #64748b;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.project-sidebar dt:first-child {
  margin-top: 0;
}

.project-sidebar dd {
  margin: .25rem 0 0;
  color: #0f172a;
  font-weight: 600;
}

.content-card h2,
.legal-copy h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  line-height: 1.25;
}

.content-card p:last-child,
.content-card ul:last-child {
  margin-bottom: 0;
}

.content-card li + li {
  margin-top: .5rem;
}

.legal-container {
  max-width: 58rem;
}

.legal-copy h2 {
  margin-top: 2.5rem;
}

.legal-copy h2:first-child {
  margin-top: 0;
}

.legal-copy h3 {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.35;
}

.legal-copy a {
  overflow-wrap: anywhere;
}

.notice-bootstrap {
  color: #334155;
  background: #f8f9fa;
}

@media (max-width: 767.98px) {
  .hero-section h1 {
    max-width: none;
  }

  .portrait-image {
    min-height: 22rem;
  }

  .process-list .list-group-item {
    grid-template-columns: 2.5rem minmax(0, 1fr);
    gap: .5rem 1rem;
  }

  .process-list p {
    grid-column: 2;
  }

  .support-flow {
    columns: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-parallax] > .container,
  [data-parallax] > .container-xxl {
    transform: none;
  }

  .tech-track {
    width: auto;
    animation: none;
  }

  .tech-group {
    flex-wrap: wrap;
    justify-content: center;
  }

  .tech-group[aria-hidden="true"] {
    display: none;
  }
}
