:root {
  --bg: #f5efe6;
  --bg-top: #fbf8f1;
  --surface: rgba(255, 251, 245, 0.92);
  --surface-strong: #fffdf8;
  --surface-muted: #efe6da;
  --text: #16231d;
  --muted: #5e6e66;
  --line: rgba(22, 35, 29, 0.12);
  --line-strong: rgba(22, 35, 29, 0.2);
  --accent: #1f6f63;
  --accent-strong: #114c46;
  --accent-soft: rgba(31, 111, 99, 0.12);
  --shadow-soft: 0 16px 40px rgba(86, 63, 36, 0.08);
  --shadow-card: 0 24px 60px rgba(86, 63, 36, 0.1);
  --maxw: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  position: relative;
  background:
    radial-gradient(900px 500px at 0% 0%, rgba(207, 225, 218, 0.72), transparent 68%),
    radial-gradient(900px 520px at 100% 0%, rgba(224, 211, 186, 0.4), transparent 62%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg) 34%, #f3ebdf 100%);
  color: var(--text);
  font-family: "Manrope", "Segoe UI", sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.48), transparent 32%),
    linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.22) 100%);
  opacity: 0.7;
}

a {
  color: var(--accent-strong);
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

.container {
  width: min(var(--maxw), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(22, 35, 29, 0.08);
  background: rgba(251, 248, 241, 0.82);
  backdrop-filter: blur(18px);
  animation: rise-in 520ms ease both;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}

.brand-logo {
  display: block;
  width: 92px;
  height: auto;
}

.brand-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #39a28b 0%, #18574f 100%);
  box-shadow: 0 0 0 7px rgba(31, 111, 99, 0.1);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav a {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 12px;
  color: rgba(22, 35, 29, 0.82);
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.nav a:hover {
  color: var(--accent-strong);
  border-color: rgba(31, 111, 99, 0.18);
  background: rgba(255, 255, 255, 0.72);
  transform: translateY(-1px);
}

.nav a[aria-current="page"] {
  border-color: rgba(31, 111, 99, 0.24);
  background: rgba(31, 111, 99, 0.08);
  color: var(--accent-strong);
}

.nav .nav-icon-link {
  min-width: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  font-size: 18px;
  line-height: 1;
}

main.container {
  padding-bottom: 40px;
}

.hero {
  position: relative;
  overflow: visible;
  margin-top: 40px;
  padding: clamp(26px, 6vw, 58px) 0 clamp(34px, 7vw, 88px);
  border: 0;
  border-bottom: 1px solid rgba(22, 35, 29, 0.12);
  border-radius: 0;
  background: none;
  box-shadow: none;
  animation: rise-in 620ms ease both;
}

.hero::before { display: none; /* DISABLED */
  content: "";
  position: absolute;
  top: -24px;
  right: -24px;
  width: min(44vw, 520px);
  height: min(32vw, 360px);
  pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(31, 111, 99, 0.12), transparent 72%),
    radial-gradient(closest-side, rgba(204, 182, 140, 0.16), transparent 74%);
  filter: blur(2px);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.65fr);
  gap: 40px;
  align-items: start;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 0 0 10px;
  border: 0;
  border-bottom: 1px solid rgba(22, 35, 29, 0.12);
  border-radius: 0;
  background: none;
  color: rgba(22, 35, 29, 0.72);
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  position: relative;
  z-index: 1;
  margin: 20px 0 18px;
  max-width: 10.5ch;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: #112019;
}

.hero p {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 60ch;
  font-size: 18px;
  color: var(--muted);
}

.cta-row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid rgba(22, 35, 29, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  box-shadow: 0 8px 24px rgba(86, 63, 36, 0.08);
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 111, 99, 0.18);
  box-shadow: 0 14px 32px rgba(86, 63, 36, 0.1);
}

.btn.primary {
  border-color: rgba(31, 111, 99, 0.5);
  background: linear-gradient(135deg, #1f6f63 0%, #185750 100%);
  color: #f7fbfa;
}

.panel {
  position: relative;
  z-index: 1;
  display: block;
  padding: 8px 0 0 30px;
  border: 0;
  border-left: 1px solid rgba(22, 35, 29, 0.12);
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.panel h3 {
  margin: 0 0 14px;
  font-size: 12px;
  font-family: "Space Mono", ui-monospace, monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(22, 35, 29, 0.72);
}

.chips {
  display: grid;
  gap: 0;
}

.chip {
  display: block;
  min-height: 0;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid rgba(22, 35, 29, 0.09);
  border-radius: 0;
  background: none;
  color: rgba(22, 35, 29, 0.82);
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.chip:last-child {
  border-bottom: 0;
}

.section {
  padding: 46px 0;
  animation: rise-in 680ms ease both;
}

.section + .section {
  border-top: 1px solid rgba(22, 35, 29, 0.1);
}

.section-title {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #13211a;
}

.section-intro {
  margin: 0;
  max-width: 70ch;
  color: var(--muted);
  font-size: 17px;
}

.grid-2,
.grid-3 {
  display: grid;
  gap: 28px 34px;
  margin-top: 26px;
  align-items: start;
}

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

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

.card {
  border: 0;
  border-top: 1px solid rgba(22, 35, 29, 0.12);
  border-radius: 0;
  padding: 18px 0 0;
  background: none;
  box-shadow: none;
}

.card h4 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #112019;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.card p + p {
  margin-top: 12px;
}

.portfolio-group + .portfolio-group {
  margin-top: 42px;
}

.portfolio-group-title {
  margin: 0;
  color: rgba(22, 35, 29, 0.74);
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.portfolio-group-intro {
  margin: 10px 0 0;
  max-width: 58ch;
  color: var(--muted);
  font-size: 15px;
}

.portfolio-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 36px;
  margin-top: 28px;
}

.portfolio-group .portfolio-list {
  margin-top: 22px;
}

.portfolio-item {
  overflow: visible;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 0;
  padding-top: 18px;
  border: 0;
  border-top: 1px solid rgba(22, 35, 29, 0.12);
  border-radius: 0;
  background: none;
  box-shadow: none;
  transition:
    transform 200ms ease,
    border-color 200ms ease;
}

.portfolio-item:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 111, 99, 0.22);
}

.portfolio-logo-wrap {
  width: 120px;
  aspect-ratio: 1 / 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 20px;
  border-radius: 18px;
  background: var(--tile-bg, rgba(255, 255, 255, 0.7));
}

.portfolio-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.portfolio-logo-servicecam {
  width: 76%;
  height: 76%;
}

.portfolio-name {
  display: block;
  padding: 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
}

.meta {
  display: block;
  padding: 0;
  justify-self: end;
  color: rgba(17, 76, 70, 0.72);
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer {
  margin-top: 20px;
  padding: 22px 0 34px;
  border-top: 1px solid rgba(22, 35, 29, 0.08);
  color: rgba(22, 35, 29, 0.66);
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: rise-in 760ms ease both;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.portal-placeholder main.container {
  min-height: calc(100vh - 170px);
  display: flex;
  align-items: center;
}

.placeholder-shell {
  width: min(680px, 100%);
  margin: 0 auto;
  padding: clamp(34px, 6vw, 64px) 0;
  border: 0;
  border-top: 1px solid rgba(22, 35, 29, 0.12);
  border-bottom: 1px solid rgba(22, 35, 29, 0.12);
  border-radius: 0;
  background: none;
  box-shadow: none;
  text-align: center;
}

.placeholder-shell p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.placeholder-shell .kicker {
  justify-content: center;
}

.placeholder-shell h1 {
  margin: 18px 0 0;
  font-size: clamp(32px, 6vw, 56px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

body.brand-guide .signal-panel,
body.brand-guide .meta-chip,
body.brand-guide .token-card,
body.brand-guide .swatch-card,
body.brand-guide .brand-card,
body.brand-guide .logo-card,
body.brand-guide .type-card,
body.brand-guide .voice-card,
body.brand-guide .ui-panel,
body.brand-guide .section-shell,
body.brand-guide .stat-block {
  border: 0 !important;
  border-top: 1px solid rgba(22, 35, 29, 0.12) !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
}

body.brand-guide .signal-panel,
body.brand-guide .token-card,
body.brand-guide .swatch-card,
body.brand-guide .brand-card,
body.brand-guide .logo-card,
body.brand-guide .type-card,
body.brand-guide .voice-card,
body.brand-guide .ui-panel,
body.brand-guide .section-shell {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.brand-guide .meta-chip {
  padding: 14px 0 0 !important;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

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

@media (max-width: 980px) {
  .hero-grid,
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .portfolio-list {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 18px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(22, 35, 29, 0.12);
  }
}

@media (max-width: 760px) {
  .container {
    width: min(var(--maxw), calc(100% - 28px));
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav {
    gap: 8px;
  }

  .hero {
    padding: 20px 0 48px;
  }

  .hero h1 {
    max-width: none;
  }

  .hero p,
  .section-intro,
  .placeholder-shell p,
  .portfolio-group-intro {
    font-size: 16px;
  }

  .portfolio-group + .portfolio-group {
    margin-top: 34px;
  }

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

  .portfolio-logo-wrap {
    width: 96px;
  }

  .meta {
    justify-self: start;
    grid-column: 2;
  }
}
