/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: #f0e8d6;
  color: #1a1209;
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Nav ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2.5rem;
  background: rgba(240, 232, 214, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid #c8b898;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo-img {
  height: 4rem;
  width: auto;
  display: block;
}

.nav-links { display: flex; gap: 2rem; }

.nav-link {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a09070;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active { color: #1a1209; }

/* ─── Hero ─── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 8rem;
  gap: 1.25rem;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(5.5rem, 20vw, 17rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: #1a1209;
  animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-subtitle {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 400;
  font-style: italic;
  color: #9a8060;
  letter-spacing: 0.01em;
  max-width: 460px;
  opacity: 0;
  animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

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

/* ─── Ticker ─── */
.hero-ticker {
  overflow: hidden;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  opacity: 0;
  animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 14%, black 86%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 14%, black 86%, transparent 100%);
}

.hero-ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: ticker 28s linear infinite;
}

.ticker-item {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a89878;
  padding: 0 1.4rem;
  transition: color 0.2s;
  cursor: default;
}

.ticker-item:hover { color: #1a1209; }

.ticker-sep {
  color: #c8b090;
  font-size: 0.45rem;
  flex-shrink: 0;
}

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

/* ─── Page Header ─── */
.page-header {
  padding: 9rem 2.5rem 3.5rem;
  max-width: 1100px;
  margin: 0 auto;
  border-bottom: 1px solid #c8b898;
}

.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1a1209;
}

.page-header p {
  margin-top: 0.75rem;
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  font-style: italic;
  color: #9a8a70;
}

/* ─── Portfolio Featured ─── */
.portfolio-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: #c8b898;
}

.company-card-featured {
  background: #f0e8d6;
  padding: 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  transition: background 0.2s;
  cursor: default;
}

.company-card-featured:hover { background: #e8dfc8; }

.company-logo-img {
  height: 2.25rem;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.featured-meta { display: flex; flex-direction: column; gap: 0.3rem; }

.featured-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #1a1209;
}

.featured-role {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a09070;
}

.featured-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  padding-top: 0;
  border-top: 1px solid transparent;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease, padding-top 0.3s ease, border-color 0.3s ease;
}

.company-card-featured:hover .featured-stats {
  max-height: 300px;
  opacity: 1;
  margin-top: 0.5rem;
  padding-top: 2rem;
  border-top-color: #c8b898;
}

.stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #1a1209;
}

.stat-label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9a8a70;
  margin-top: 0.3rem;
}

/* ─── Portfolio Grid (remaining companies) ─── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: #c8b898;
}

.company-card {
  background: #f0e8d6;
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  transition: background 0.2s;
  cursor: default;
}

.company-card:hover { background: #e8dfc8; }

.company-logo-area {
  width: 100%;
  aspect-ratio: 16 / 7;
  background: #e5dcc8;
  border: 1px solid #c8b898;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color 0.25s;
}

.company-card:hover .company-logo-area {
  border-color: #a89878;
}

.company-logo-img-sm {
  height: 1.6rem;
  width: auto;
  max-width: 110px;
  object-fit: contain;
}

.company-abbr {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #c0a880;
}

.company-name-label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #9a8a70;
}

.card-stats {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0;
  margin: 0;
}

.card-stats li {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #b8a078;
}

.card-stats li::before {
  content: '—  ';
  color: #c8b090;
}

.card-consulting {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #b8a078;
  font-style: italic;
}

/* ─── About ─── */
.about-section {
  padding: 10rem 2.5rem 6rem;
  max-width: 860px;
  margin: 0 auto;
}

.about-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1a1209;
  margin-bottom: 0.75rem;
}

.about-tagline {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  font-style: italic;
  color: #9a8a70;
  margin-bottom: 5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid #c8b898;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: #c8b898;
}

.team-card {
  background: #f0e8d6;
  padding: 3.5rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: background 0.2s;
}

.team-card:hover { background: #e8dfc8; }

.team-avatar {
  width: 4rem;
  height: 4rem;
  background: #e0d5c0;
  border: 1px solid #c8b898;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: #b8a078;
  margin-bottom: 1.25rem;
}

.team-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1a1209;
}

.team-role {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a09070;
  margin-top: 0.2rem;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .portfolio-featured { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .nav { padding: 1.25rem 1.5rem; }
  .portfolio-featured { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .company-card-featured { padding: 2.5rem 2rem; min-height: auto; }
  .company-card { padding: 2rem 1.5rem; }
  .team-card { padding: 2.5rem 2rem; }
  .page-header { padding: 8rem 1.5rem 2.5rem; }
  .about-section { padding: 8rem 1.5rem 4rem; }
  .stat-value { font-size: 2.25rem; }
}

@media (max-width: 480px) {
  .hero { padding: 5rem 1.5rem 6rem; }
  .portfolio-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero { padding: 5rem 1.5rem 6rem; }
}
