:root {
  --ink: #111817;
  --muted: #526160;
  --soft: #f6f8f6;
  --paper: #ffffff;
  --line: #dce4e0;
  --deep: #10242a;
  --deep-2: #153036;
  --teal: #13847c;
  --mint: #33a474;
  --amber: #c78628;
  --plum: #6651a9;
  --shadow: 0 18px 60px rgba(17, 24, 23, 0.12);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-140%);
  background: var(--paper);
  color: var(--ink);
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-decoration: none;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.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;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(220, 228, 224, 0.78);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: calc(100% - 40px);
  max-width: var(--max);
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 780;
  letter-spacing: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  color: #fff;
  background: var(--deep);
  box-shadow: inset 0 -3px 0 rgba(51, 164, 116, 0.45);
  font-size: 0.9rem;
}

.brand-photo {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border: 2px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 34%;
  background: var(--deep);
  box-shadow: 0 0 0 2px rgba(19, 132, 124, 0.28), 0 8px 22px rgba(17, 24, 23, 0.16);
  transform-origin: left center;
  transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.brand-text {
  font-size: 1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: #2b3837;
  font-size: 0.94rem;
  font-weight: 700;
  transition: background 180ms ease, color 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.is-active {
  background: #edf4f0;
  color: var(--deep);
  outline: none;
}

.nav-links .nav-cta {
  margin-left: 6px;
  background: var(--deep);
  color: #fff;
}

.nav-links .nav-cta:hover,
.nav-links .nav-cta:focus-visible {
  background: #18393f;
  color: #fff;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  display: none;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 84vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  padding: 112px 0 28px;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  inset: -14%;
  background-image: url("../images/generated/genai-quality-hero.jpg");
  background-size: cover;
  background-position: center;
  transform: translate3d(0, var(--hero-parallax, 0px), 0) scale(1.14);
  will-change: transform;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 20, 23, 0.96) 0%, rgba(8, 20, 23, 0.83) 34%, rgba(8, 20, 23, 0.45) 66%, rgba(8, 20, 23, 0.36) 100%),
    linear-gradient(180deg, rgba(8, 20, 23, 0.18) 0%, rgba(8, 20, 23, 0.88) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: calc(100% - 40px);
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 44px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 830;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #6bd7cf;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 680px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 12px 18px;
  text-decoration: none;
  font-weight: 800;
  line-height: 1;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button.primary {
  background: var(--mint);
  color: #061715;
  border-color: var(--mint);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: #45bf8a;
}

.button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.08);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.15);
}

.button.secondary.light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.material-icons {
  font-size: 1.18rem;
  line-height: 1;
}

.section {
  padding: 96px 0;
  background: var(--paper);
}

.section-intro {
  background: #fbfcfb;
  padding-top: 56px;
}

.section-contrast {
  background: var(--soft);
}

.section-inner {
  width: calc(100% - 40px);
  max-width: var(--max);
  margin: 0 auto;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 44px;
}

.section-heading h2,
.contact-inner h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.03;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.contact-inner p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.metric-card,
.expertise-card,
.timeline-content,
.detail-panel,
.toolbox {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 10px 32px rgba(17, 24, 23, 0.06);
}

.metric-card {
  min-height: 178px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
}

.metric-value {
  color: var(--deep);
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 0.95;
  font-weight: 860;
  letter-spacing: 0;
}

.metric-value.metric-text {
  max-width: 100%;
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  line-height: 1;
}

.metric-arrow {
  color: var(--amber);
  font-size: 1rem;
  font-weight: 850;
  text-transform: uppercase;
}

.metric-label {
  color: var(--muted);
  font-weight: 650;
}

.scorecard {
  margin-top: 52px;
  padding-top: 38px;
  border-top: 1px solid var(--line);
}

.scorecard > div:first-child {
  max-width: 780px;
  margin-bottom: 28px;
}

.scorecard h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.08;
}

.scorecard p {
  margin: 12px 0 0;
  color: var(--muted);
}

.scorecard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.scorecard-grid article {
  min-height: 190px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 10px 32px rgba(17, 24, 23, 0.05);
}

.scorecard-grid span {
  display: block;
  margin-bottom: 10px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scorecard-grid strong {
  display: block;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.2;
}

.scorecard-grid p {
  margin-top: 12px;
  font-size: 0.95rem;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.expertise-card {
  min-height: 320px;
  padding: 24px;
}

.card-icon {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 6px;
  color: var(--deep);
  background: #e5f3ed;
}

.expertise-card:nth-child(2) .card-icon {
  background: #f7ecd9;
  color: #75500f;
}

.expertise-card:nth-child(3) .card-icon {
  background: #e5f1f2;
  color: #135e67;
}

.expertise-card:nth-child(4) .card-icon {
  background: #eeeafa;
  color: var(--plum);
}

.expertise-card h3,
.toolbox h3,
.detail-panel h3,
.timeline-content h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.expertise-card p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.toolbox {
  margin-top: 18px;
  padding: 26px;
}

.tag-groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.tag-group {
  min-height: 150px;
  padding: 18px;
  border: 1px solid #e3ebe7;
  border-radius: 8px;
  background: #fbfcfb;
}

.tag-group h4 {
  margin: 0 0 10px;
  color: var(--deep);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.tag-group p {
  margin: 0;
  color: var(--muted);
  font-weight: 630;
}

.timeline {
  position: relative;
  display: grid;
  gap: 18px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 12px;
  width: 2px;
  background: var(--line);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 22px;
}

.timeline-marker {
  position: relative;
  z-index: 2;
  width: 26px;
  height: 26px;
  margin-top: 24px;
  border: 5px solid #e3f4ee;
  border-radius: 50%;
  background: var(--teal);
}

.timeline-content {
  padding: 26px;
}

.role-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.role-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.role-head span {
  flex: 0 0 auto;
  color: var(--deep);
  font-size: 0.9rem;
  font-weight: 820;
  text-align: right;
}

.impact-list,
.compact-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.impact-list {
  display: grid;
  gap: 12px;
}

.impact-list li {
  position: relative;
  padding-left: 22px;
  color: #344241;
}

.impact-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

.two-column .section-heading {
  margin-bottom: 0;
}

.detail-panels {
  display: grid;
  gap: 16px;
}

.detail-panel {
  padding: 24px;
}

.compact-list {
  display: grid;
  gap: 14px;
}

.compact-list li {
  display: grid;
  gap: 4px;
  padding-left: 16px;
  border-left: 3px solid var(--teal);
}

.compact-list strong {
  color: var(--ink);
}

.compact-list span {
  color: var(--muted);
  font-size: 0.94rem;
}

.contact-section {
  background: var(--deep);
  color: #fff;
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 42px;
  align-items: center;
  padding: 18px 0;
}

.contact-inner .eyebrow {
  color: #6bd7cf;
}

.contact-inner h2 {
  color: #fff;
}

.contact-inner p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 680px;
}

.contact-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.site-footer {
  background: #081416;
  color: rgba(255, 255, 255, 0.72);
  padding: 28px 0;
}

.footer-inner {
  width: calc(100% - 40px);
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner p {
  margin: 0;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  font-weight: 760;
}

.js .reveal {
  opacity: 0;
  filter: blur(4px);
  transform: translateY(44px);
  transition: opacity 820ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 820ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 820ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

@media (hover: hover) and (pointer: fine) and (min-width: 821px) {
  .brand-photo:hover,
  .brand:focus-visible .brand-photo {
    transform: translate3d(4px, 7px, 0) scale(1.52);
    filter: saturate(1.05) contrast(1.04);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.98), 0 18px 42px rgba(17, 24, 23, 0.26);
  }
}

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

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

  .js .reveal {
    opacity: 1;
    filter: none;
    transform: none;
  }
}

@media (max-width: 1060px) {
  .metrics-grid,
  .scorecard-grid,
  .expertise-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tag-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two-column,
  .contact-inner {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 820px) {
  .nav-shell {
    min-height: 66px;
  }

  .nav-toggle {
    display: grid;
    flex: 0 0 44px;
    margin-left: auto;
  }

  .brand {
    min-width: 0;
  }

  .nav-links {
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 10px 20px 22px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(calc(-100% - 66px));
    transition: transform 220ms ease;
  }

  .nav-links.is-open {
    transform: translateY(0);
  }

  .nav-links a {
    width: 100%;
    justify-content: flex-start;
    min-height: 48px;
  }

  .nav-links .nav-cta {
    margin: 8px 0 0;
    justify-content: center;
  }

  .hero {
    min-height: auto;
    padding: 118px 0 74px;
  }

  .hero-bg {
    background-position: 64% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(8, 20, 23, 0.97) 0%, rgba(8, 20, 23, 0.86) 56%, rgba(8, 20, 23, 0.56) 100%),
      linear-gradient(180deg, rgba(8, 20, 23, 0.24) 0%, rgba(8, 20, 23, 0.9) 100%);
  }

  .section {
    padding: 72px 0;
  }

  .role-head {
    display: grid;
    gap: 10px;
  }

  .role-head span {
    text-align: left;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .nav-shell,
  .hero-content,
  .section-inner,
  .footer-inner {
    width: calc(100% - 28px);
  }

  .brand-text {
    max-width: 190px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-photo {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2rem, 8.8vw, 2.45rem);
    line-height: 1.02;
    overflow-wrap: break-word;
  }

  .hero .eyebrow {
    max-width: 100%;
    font-size: 0.72rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
  }

  .hero-copy {
    max-width: 100%;
    font-size: 1rem;
    overflow-wrap: break-word;
  }

  .hero-actions,
  .contact-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .metrics-grid,
  .scorecard-grid,
  .expertise-grid,
  .tag-groups {
    grid-template-columns: 1fr;
  }

  .metric-card,
  .scorecard-grid article,
  .expertise-card,
  .tag-group {
    min-height: auto;
  }

  .timeline::before {
    left: 10px;
  }

  .timeline-item {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 14px;
  }

  .timeline-marker {
    width: 22px;
    height: 22px;
    border-width: 4px;
  }

  .timeline-content,
  .metric-card,
  .expertise-card,
  .toolbox,
  .detail-panel {
    padding: 20px;
  }
}
