:root {
  --bg-main: #050810;
  --bg-elevated: #0b1020;
  --bg-alt: #080c18;
  --accent: #f5b452;
  --text-main: #0f172a;
  --text-muted: #4b5563;
  --border-subtle: rgba(15, 23, 42, 0.12);
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.18);
  --max-width: 1120px;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #e5e7eb 0, #d1d5db 30%, #9ca3af 70%, #020617 100%);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(148, 163, 184, 0.4);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  object-fit: contain;
  background: #ffffff;
}

.brand-text {
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.88rem;
  color: #0f172a;
}

.nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: #6b7280;
}

.nav a {
  position: relative;
  padding: 0.1rem 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), #f97316);
  border-radius: 999px;
  transition: width 0.18s ease-out;
}

.nav a:hover {
  color: #111827;
}

.nav a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.3rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px 0;
  background: #111827;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero {
  position: relative;
  padding: 4.5rem 0 3.5rem;
  overflow: hidden;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.15), transparent 55%),
    radial-gradient(circle at top left, rgba(245, 181, 82, 0.16), transparent 55%);
  opacity: 0.9;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 2.75rem;
  align-items: center;
  z-index: 1;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 600;
  color: #2563eb;
  margin: 0 0 0.9rem;
}

.hero h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(2.2rem, 3vw, 2.7rem);
  line-height: 1.15;
  color: #020617;
}

.hero-subtitle {
  margin: 0 0 1.7rem;
  color: #4b5563;
  max-width: 36rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.1s ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), #f97316);
  color: #111827;
  box-shadow: var(--shadow-soft);
}

.btn.primary:hover {
  transform: translateY(-1px);
}

.btn.ghost {
  border-color: rgba(148, 163, 184, 0.6);
  color: #111827;
  background: rgba(255, 255, 255, 0.9);
}

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

.hero-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stat-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(209, 213, 219, 0.9);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-soft);
}

.stat-card h2 {
  margin: 0 0 0.6rem;
  font-size: 1.1rem;
  color: #111827;
}

.stat-card p {
  margin: 0;
  font-size: 0.9rem;
  color: #4b5563;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.stat-item {
  padding: 0.85rem 0.9rem;
  background: #f9fafb;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(209, 213, 219, 0.9);
}

.stat-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.stat-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: #111827;
}

.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: linear-gradient(to bottom, #f3f4f6, #e5e7eb);
  border-top: 1px solid rgba(209, 213, 219, 0.9);
  border-bottom: 1px solid rgba(209, 213, 219, 0.9);
}

.former-section {
  background: #f9fafb;
  border-top: 1px solid rgba(209, 213, 219, 0.85);
  border-bottom: 1px solid rgba(209, 213, 219, 0.85);
}

.section-header {
  text-align: left;
  max-width: 40rem;
  margin-bottom: 2rem;
}

.section-header h2 {
  margin: 0 0 0.6rem;
  font-size: 1.6rem;
  color: #111827;
}

.section-header p {
  margin: 0;
  color: #4b5563;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

.card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(209, 213, 219, 0.9);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-soft);
}

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

.checklist li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.1rem;
  font-size: 0.8rem;
  color: #16a34a;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.portfolio-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(209, 213, 219, 0.9);
  padding: 1.3rem 1.3rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  box-shadow: var(--shadow-soft);
}

.logo-wrap {
  height: 42px;
  display: flex;
  align-items: center;
  margin-bottom: 0.4rem;
}

.portfolio-card h3 {
  margin: 0;
  font-size: 1rem;
  color: #111827;
}

.portfolio-card p {
  margin: 0;
  font-size: 0.86rem;
  color: #4b5563;
  flex: 1;
}

.portfolio-card a {
  align-self: flex-start;
  margin-top: 0.6rem;
  font-size: 0.86rem;
  color: #2563eb;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
}

.principle-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(209, 213, 219, 0.9);
  padding: 1.2rem 1.3rem;
  box-shadow: var(--shadow-soft);
}

.principle-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  color: #111827;
}

.principle-card p {
  margin: 0;
  font-size: 0.9rem;
  color: #4b5563;
}

.contact-layout {
  align-items: flex-start;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  font-size: 0.92rem;
}

.contact-list li {
  margin-bottom: 0.4rem;
}

.contact-list a {
  color: #2563eb;
}

.site-footer {
  border-top: 1px solid rgba(209, 213, 219, 0.9);
  padding: 1.5rem 0 2rem;
  background: #f9fafb;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #6b7280;
}

.footer-secondary {
  opacity: 0.85;
}

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-aside {
    order: -1;
  }
  .two-col {
    grid-template-columns: minmax(0, 1fr);
  }
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .principles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .header-inner {
    gap: 1rem;
  }
  .nav {
    position: absolute;
    top: 72px;
    right: 0;
    left: 0;
    flex-direction: column;
    background: #ffffff;
    padding: 0.75rem 1.5rem 1.1rem;
    border-bottom: 1px solid rgba(209, 213, 219, 0.9);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease;
  }
  .nav.nav-open {
    opacity: 1;
    pointer-events: auto;
  }
  .nav-toggle {
    display: block;
  }
  .nav-toggle.nav-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .nav-toggle.nav-open span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.nav-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
  .hero {
    padding-top: 3.5rem;
  }
  .section {
    padding: 3rem 0;
  }
  .portfolio-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .principles-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}