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

:root {
  --font: "Red Hat Mono", monospace;
  --font-heading: "Platypi", serif;
  --color-bg: #ffffff;
  --color-text: #000000;
  --color-muted: #555555;
  --color-divider: #cccccc;
  --color-accent: #8ab4e8;
  --nav-height: 72px;
}

html,
body {
  min-height: 100%;
  overflow-y: auto;
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

body {
  font-family: var(--font);
  background-color: var(--color-bg);
  color: var(--color-text);
}

/* ── Page layout ── */
.page {
  display: flex;
  justify-content: center;
  padding: 60px 24px calc(var(--nav-height) + 60px);
}

/* ── Content area ── */
#content-area {
  width: 100%;
  max-width: 760px;
  text-align: center;
}

/* ── Logo / brand ── */
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 36px;
}

.logo-triangle {
  width: 170px;
  height: auto;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* ── Description ── */
.description {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--color-text);
  max-width: 680px;
  margin: 0 auto 36px;
}

/* ── Divider ── */
.divider {
  border: none;
  border-top: 1px solid var(--color-divider);
  margin-bottom: 28px;
}

/* ── Footer info ── */
.footer-info {
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.9;
  color: var(--color-text);
}

/* ── Section pages (non-firm) ── */
.section-page {
  padding: 20px 0;
}

.section-page h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}

.section-page p {
  font-family: var(--font);
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-muted);
  max-width: 600px;
  margin: 0 auto 16px;
}

.section-page ul {
  list-style: none;
  margin-top: 8px;
}

.section-page ul li {
  font-family: var(--font);
  font-size: 0.9rem;
  line-height: 2;
  color: var(--color-muted);
}

.section-page ul li::before {
  content: "→ ";
  color: var(--color-accent);
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-top: 12px;
}

.team-card {
  font-family: var(--font);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text);
  width: 160px;
}

.team-card .name {
  font-weight: 700;
  display: block;
}

.team-card .role {
  color: var(--color-muted);
  font-size: 0.8rem;
}

.contact-block {
  font-family: var(--font);
  font-size: 0.95rem;
  line-height: 2.2;
  color: var(--color-text);
}

.contact-block a {
  color: var(--color-accent);
  text-decoration: none;
}

.contact-block a:hover {
  text-decoration: underline;
}

/* ── Portfolio table ── */
.portfolio-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: 24px;
  text-align: left;
}

.portfolio-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font);
  font-size: 0.8rem;
}

.portfolio-table thead tr {
  border-bottom: 1px solid var(--color-text);
}

.portfolio-table th {
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  padding: 0 16px 10px 0;
  white-space: nowrap;
}

.portfolio-table th:last-child,
.portfolio-table td:last-child {
  padding-right: 0;
}

.portfolio-table tbody tr {
  border-bottom: 1px solid #efefef;
  transition: background-color 0.12s ease;
}

.portfolio-table tbody tr:last-child {
  border-bottom: none;
}

.portfolio-table tbody tr:hover {
  background-color: #fafafa;
}

.portfolio-table td {
  padding: 12px 16px 12px 0;
  vertical-align: middle;
  color: var(--color-text);
  line-height: 1.5;
}

.portfolio-table .col-company {
  font-weight: 600;
  white-space: nowrap;
}

.portfolio-table .col-desc {
  color: var(--color-muted);
  min-width: 180px;
}

.status-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

.status-active {
  background-color: #e8f4e8;
  color: #2d7a2d;
}

.status-exit {
  background-color: #eef2fa;
  color: #3a5ca8;
}

.portfolio-table .col-x a {
  color: var(--color-accent);
  text-decoration: none;
  font-size: 0.78rem;
}

.portfolio-table .col-x a:hover {
  text-decoration: underline;
}

/* ── Bottom nav ── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background-color: #efefef;
  overflow-x: auto;
  scrollbar-width: none;
}

.bottom-nav::-webkit-scrollbar {
  display: none;
}

.nav-link {
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--color-text);
  text-decoration: none;
  padding: 0 22px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  border-radius: 4px;
  letter-spacing: 0.02em;
  transition: background-color 0.15s ease;
}

.nav-link:hover {
  background-color: #e0e0e0;
}

.nav-link.active {
  background-color: #e8e8e8;
  font-weight: 600;
}

/* ── Fade transition ── */
#content-area {
  animation: fadeIn 0.25s ease;
}

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

/* ── Responsive ── */
@media (max-width: 600px) {
  .brand-name {
    font-size: 1.8rem;
  }

  .description {
    font-size: 0.9rem;
  }

  .nav-link {
    font-size: 0.8rem;
    padding: 8px 12px;
  }
}
