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

/* ─── Brand Tokens ──────────────────────────────────────────────────── */
:root {
  --bg:          #1a1918;          /* near-match to logo dark bg        */
  --bg-card:     #201e1c;          /* slightly lighter for cards        */
  --bg-card-h:   #252220;          /* card hover                        */
  --bg-section:  #161514;          /* alternate section bg              */
  --border:      rgba(194,174,140,0.10);
  --border-h:    rgba(194,174,140,0.22);
  --rule:        rgba(194,174,140,0.08);

  --text:        #e8ddd0;          /* warm white                        */
  --muted:       #9d8e7e;          /* brand muted                       */
  --subtle:      #64584b;          /* brand subtle                      */

  --gold:        #c2ae8c;          /* brand accent (champagne)          */
  --gold-warm:   #aa8b61;          /* brand highlight                   */
  --gold-light:  #d2c2a9;          /* brand muted (lighter)             */

  --radius:      14px;
  --font:        'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── Layout ────────────────────────────────────────────────────────── */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}

.rule {
  height: 1px;
  background: var(--rule);
}

/* ─── Nav ───────────────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26,25,24,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  height: 56px;
  display: flex;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  /* The lockup PNG has a dark bg — use slightly negative margins to blend it */
}

.nav-logo img {
  display: block;
  height: 34px;
  width: auto;
}

/* ─── Hero ──────────────────────────────────────────────────────────── */
.hero {
  padding: 88px 0 72px;
}



.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(34px, 5.5vw, 58px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
  color: var(--text);
}

.hero h1 .accent {
  color: var(--gold);
}

.hero-sub {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 20px;
}

.hero-notice {
  font-size: 13px;
  color: var(--subtle);
  line-height: 1.6;
  max-width: 440px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold-warm);
  border-radius: 6px;
  background: rgba(170,139,97,0.05);
}



/* ─── Portfolio ─────────────────────────────────────────────────────── */
.portfolio {
  padding: 72px 0 88px;
}

.section-header {
  margin-bottom: 44px;
}

.section-header h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
  color: var(--text);
}

.section-sub {
  font-size: 14px;
  color: var(--muted);
  max-width: 520px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

/* ─── Cards ─────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s, background 0.2s, transform 0.18s;
}

.card:hover {
  border-color: var(--border-h);
  background: var(--bg-card-h);
  transform: translateY(-2px);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* Card logo icon */
.card-logo {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}

.flipbloom-logo {
  background: rgba(231,103,71,0.1);
  border: 1px solid rgba(231,103,71,0.18);
}

.mcm-logo {
  background: rgba(220,50,47,0.12);
  border: 1px solid rgba(220,50,47,0.18);
}

.plm-logo {
  background: rgba(30,100,160,0.12);
  border: 1px solid rgba(30,100,160,0.18);
}

.card-sector {
  font-size: 11px;
  font-weight: 500;
  color: var(--subtle);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.card-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  flex: 1;
}

.card-divider {
  height: 1px;
  background: var(--rule);
}

.card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-features li {
  font-size: 13px;
  color: var(--subtle);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}

.card-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-warm);
  opacity: 0.6;
}

/* Card link — integrated button */
.card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  margin-top: 4px;
  padding: 9px 14px;
  border: 1px solid rgba(194,174,140,0.18);
  border-radius: 10px;
  background: rgba(194,174,140,0.04);
  letter-spacing: 0.02em;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}

.card-link:hover {
  background: rgba(194,174,140,0.09);
  border-color: rgba(194,174,140,0.35);
  color: var(--gold-light);
}

.link-arrow {
  font-size: 14px;
  line-height: 1;
  opacity: 0.7;
}

/* ─── Badge ─────────────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
  background: rgba(194,174,140,0.08);
  color: var(--gold);
  border: 1px solid rgba(194,174,140,0.18);
}

/* ─── About ─────────────────────────────────────────────────────────── */
.about {
  padding: 72px 0;
  background: var(--bg-section);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
  align-items: start;
}

.about-text h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  color: var(--text);
}

.about-text p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
  max-width: 520px;
}

.about-text p + p {
  margin-top: 14px;
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 36px;
  align-items: flex-end;
  flex-shrink: 0;
  padding-top: 4px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.stat-num {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-warm) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--subtle);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ─── Footer ────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-logo {
  display: block;
  height: 22px;
  width: auto;
  opacity: 0.65;
}

.footer-copy {
  font-size: 12px;
  color: var(--subtle);
}

/* ─── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 820px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-logo {
    display: none;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-stats {
    flex-direction: row;
    align-items: flex-start;
    gap: 48px;
  }

  .stat { align-items: flex-start; }
}

@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
}
