:root {
  --ink: #0f0e0d;
  --paper: #f5f2ed;
  --accent: #c8400a;
  --muted: #7a7570;
  --rule: #d8d3cc;
  --light-bg: #ede9e3;
  --section-padding-y: 5rem;
  --container-padding: 2rem;
  --nav-padding-x: 2rem;
  --footer-padding-x: 4rem;
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.4;
}

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

section {
  padding: var(--section-padding-y) var(--container-padding);
}

.display,
.hero-title,
.about-title,
.services-title,
.contact-title,
.service-name,
.stat-number,
.result-number {
  font-family: 'Playfair Display', serif;
}

.display {
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.section-title-large {
  font-size: clamp(2.5rem, 3.5vw, 4rem);
  max-width: 600px;
  margin-bottom: 1rem;
}

.section-title-medium {
  font-size: clamp(2rem, 3vw, 3rem);
}

nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem var(--nav-padding-x);
  border-bottom: 1px solid transparent;
  transition: background var(--transition-base), border-color var(--transition-base), backdrop-filter var(--transition-base);
}

nav.scrolled {
  background: rgba(245, 242, 237, 0.9);
  border-color: var(--rule);
  backdrop-filter: blur(6px);
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.nav-logo .accent {
  font-style: italic;
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a,
.section-label,
.hero-eyebrow,
.service-number,
.service-price,
.stat-label,
.result-label,
.skill-group h4,
.skill-tag,
.contact-label,
.contact-link,
.footer-copy,
.credential-place {
  font-family: 'DM Mono', monospace;
  text-transform: uppercase;
}

.nav-links a {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.nav-links a:hover {
  color: var(--accent);
}

.hero {
  min-height: 80vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8rem;
  overflow: hidden;
}

.hero-left,
.hero-right {
  position: relative;
  min-width: 0;
}

.hero-right {
  /* padding-top: var(--container-padding);
  padding-bottom: var(--container-padding); */
  display: flex;
  align-items: center;
}

.hero-left-inner,
.hero-right-inner {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-left-inner {
  padding: 0 4rem 6rem var(--container-padding);
}

.hero-right {
  background: var(--light-bg);
  overflow: hidden;
}

.hero-right-inner {
  padding: 4rem var(--container-padding) 4rem var(--container-padding);
}

.hero-right::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 39px,
    var(--rule) 39px,
    var(--rule) 40px
  );
  opacity: 0.4;
}

.hero-eyebrow,
.hero-title,
.hero-sub,
.hero-cta,
.stat {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-eyebrow { animation-delay: 0.2s; }
.hero-title { animation-delay: 0.4s; }
.hero-sub { animation-delay: 0.6s; }
.hero-cta { animation-delay: 0.8s; }
.stat:nth-child(1) { animation-delay: 0.9s; }
.stat:nth-child(2) { animation-delay: 1.1s; }
.stat:nth-child(3) { animation-delay: 1.3s; }
.stat:nth-child(4) { animation-delay: 1.5s; }

.hero-eyebrow,
.section-label,
.contact-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--accent);
}

.hero-eyebrow {
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(3.2rem, 5.5vw, 6rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 3rem;
}

.hero-title em,
.about-title em,
.services-title em,
.contact-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub,
.about-text,
.services-intro,
.contact-sub {
  font-size: 1.05rem;
  line-height: 1.8;
}

.hero-sub {
  max-width: 420px;
  color: var(--muted);
  margin-bottom: 3rem;
}

.hero-cta,
.contact-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn,
.contact-link {
  display: inline-block;
  padding: 1rem 2rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}

.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule);
}

.btn-secondary:hover {
  border-color: var(--ink);
}

.hero-stats {
    
  position: relative;
  inset: auto;
  width: 100%;
  padding: 2rem;
  
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--container-padding);
  width: 100%;
  justify-items: center;
}

.stat {
  min-width: 0;
}

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  color: var(--ink);
}

.stat-number span,
.result-number span,
.marquee-track .accent {
  color: var(--accent);
}

.stat-label,
.result-label {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  line-height: 1.5;
}

.stat-label {
  margin-top: 0.5rem;
}

.marquee-section {
  padding: 1.2rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--ink);
  overflow: hidden;
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 20s linear infinite;
}

.marquee-track span {
  padding: 0 3rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: 0.6;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-label::after {
  content: '';
  display: block;
  width: 3rem;
  height: 1px;
  background: var(--accent);
}

.about,
.industries,
.services-header {
  display: grid;
}

.about {
  grid-template-columns: 1fr 1fr;
  gap: 8rem;
  align-items: center;
}

.about-title,
.services-title,
.contact-title {
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.about-title,
.services-title {
  font-size: clamp(2.5rem, 3.5vw, 4rem);
}

.about-title {
  margin-bottom: 2rem;
}

.about-text {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.about-text::after {
  content: '';
  display: block;
  clear: both;
}

.profile-image {
  float: left;
  width: 120px;
  height: 120px;
  margin: 1rem 1.5rem 0.5rem 0;
  object-fit: cover;
  border: 1px solid var(--rule);
  border-radius: 50%;
  filter: grayscale(25%) sepia(5%) contrast(95%);
  transition: filter var(--transition-base);
}

.profile-image:hover {
  filter: grayscale(10%) sepia(3%) contrast(98%);
}

.credentials {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule);
}

.credential-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--rule);
  transition: background var(--transition-fast);
}

.credential-item:last-child {
  border-bottom: 0;
}

.credential-item:hover {
  background: var(--light-bg);
}

.credential-role {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
}

.credential-place {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

.services-section,
.contact-section {
  background: var(--ink);
  color: var(--paper);
}

.services-header {
  grid-template-columns: 1fr 1fr;
  gap: 8rem;
  margin-bottom: 5rem;
}

.services-intro {
  color: rgba(245, 242, 237, 0.5);
  align-self: end;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(245, 242, 237, 0.1);
}

.service-card {
  padding: 3rem 2.5rem;
  border-right: 1px solid rgba(245, 242, 237, 0.1);
  transition: background var(--transition-base);
}

.service-card:last-child {
  border-right: 0;
}

.service-card:hover {
  background: rgba(245, 242, 237, 0.04);
}

.service-number,
.service-price,
.skill-group h4 {
  color: var(--accent);
}

.service-number {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  margin-bottom: 2rem;
}

.service-name {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--paper);
}

.service-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(245, 242, 237, 0.55);
  margin-bottom: 2rem;
}

.service-features {
  list-style: none;
  margin-bottom: 2rem;
}

.service-features li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.2rem;
  font-size: 0.88rem;
  color: rgba(245, 242, 237, 0.55);
  border-bottom: 1px solid rgba(245, 242, 237, 0.06);
}

.service-features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
}

.service-price {
  padding-top: 2rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  border-top: 1px solid rgba(245, 242, 237, 0.1);
}

.results-section {
  background: var(--light-bg);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 4rem;
  border: 1px solid var(--rule);
}

.result-item {
  padding: 3rem 2rem;
  text-align: center;
  border-right: 1px solid var(--rule);
}

.result-item:last-child {
  border-right: 0;
}

.result-number {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.industries {
  grid-template-columns: 1fr 2fr;
  gap: 8rem;
  align-items: start;
}

.industry-list {
  display: flex;
  flex-direction: column;
  margin-top: 3rem;
}

.industry-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 1.1rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.industry-item::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.industry-item:hover {
  color: var(--accent);
}

.industry-item:hover::before {
  transform: scale(1.5);
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.skill-group h4 {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  padding: 0.4rem 0.8rem;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  border: 1px solid var(--rule);
  transition: all var(--transition-fast);
}

.skill-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.contact-section {
  position: relative;
  overflow: hidden;
  padding: 10rem 4rem;
  text-align: center;
}

.contact-section::before {
  content: 'COO';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Playfair Display', serif;
  font-size: 30vw;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.02);
  white-space: nowrap;
  pointer-events: none;
}

.contact-title {
  font-size: clamp(3rem, 5vw, 6rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.contact-sub {
  max-width: 480px;
  margin: 0 auto 4rem;
  color: rgba(245, 242, 237, 0.5);
}

.contact-links {
  justify-content: center;
  gap: 1.5rem;
}

.contact-link {
  padding: 1.2rem 2.5rem;
  font-size: 0.75rem;
  color: var(--paper);
  border: 1px solid rgba(245, 242, 237, 0.2);
}

.contact-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.contact-link.primary {
  background: var(--accent);
  border-color: var(--accent);
}

.contact-link.primary:hover {
  background: transparent;
}

.divider {
  height: 1px;
  margin: 0 4rem;
  background: var(--rule);
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 2rem var(--footer-padding-x);
  border-top: 1px solid var(--rule);
}

.footer-copy {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 900px) {
  nav {
    padding: 1.5rem 2rem;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .about,
  .industries,
  .services-header {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-left-inner {
    min-height: auto;
    padding: 8rem var(--container-padding) 4rem;
  }

  .hero-right-inner {
    min-height: auto;
    padding: 1rem var(--container-padding) 2rem;
  }

  .hero-stats {
    gap: 1rem;
  }

  .about,
  .industries {
    gap: 3rem;
  }

  .services-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    border-right: 0;
    border-bottom: 1px solid rgba(245, 242, 237, 0.1);
  }

  .service-card:last-child {
    border-bottom: 0;
  }

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

  .result-item {
    padding: 1rem;
    border-right: 1px solid var(--rule);
  }

  .result-item:nth-child(2),
  .result-item:nth-child(4) {
    border-right: 0;
  }

  .result-item:nth-child(3),
  .result-item:nth-child(4) {
    border-top: 1px solid var(--rule);
  }

  footer {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .hero-left-inner {
    padding: 7rem 1rem 3rem;
  }

  .hero-right-inner {
    padding: 1rem 1rem 2rem 1rem;
  }

  .hero-stats {
    gap: 0.875rem;
  }

  .hero-cta,
  .contact-links {
    flex-direction: column;
  }

  .btn,
  .contact-link {
    width: 100%;
    text-align: center;
  }

  .profile-image {
    float: none;
    margin: 0 0 1.25rem;
  }

  .credential-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .credential-place {
    text-align: left;
    white-space: normal;
  }

  .contact-section,
  .divider,
  footer {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .divider {
    margin: 0 2rem;
  }
}
