/* Gorilla Portfolio — production static styles
   Design tokens aligned with Gorilla Apex brand family */

:root {
  --navy: #071427;
  --navy-mid: #0c1f3a;
  --navy-edge: #163056;
  --gold: #c4a36a;
  --gold-hover: #d4b57a;
  --white: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.72);
  --text-soft: rgba(255, 255, 255, 0.65);
  --sans: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --display: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --radius: 1.1rem;
  --max: 72rem;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  line-height: 1.55;
  color: var(--white);
  background: var(--navy);
}

h1, h2, h3 {
  font-family: var(--display);
  text-wrap: balance;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  text-wrap: pretty;
  margin: 0;
}

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

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

/* Accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--gold);
  color: var(--navy);
  padding: 0.6rem 1rem;
  border-radius: 0.4rem;
  font-weight: 600;
  z-index: 100;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 1rem;
}

/* Layout */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Hero */
.hero {
  padding: 4.5rem 1.25rem 2.5rem;
  text-align: left;
}

.kicker {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 0.85rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.4rem);
  max-width: 16ch;
  margin-bottom: 1.1rem;
}

.lede {
  max-width: 36rem;
  color: var(--text-muted);
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  line-height: 1.6;
}

/* Pathway cards */
.pathways {
  padding: 1rem 1.25rem 4rem;
  flex: 1;
}

.card-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: 1fr;
}

@media (min-width: 780px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--navy-mid);
  border: 1px solid var(--navy-edge);
  border-radius: var(--radius);
  padding: 1.65rem 1.5rem 1.5rem;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
  min-height: 100%;
}

.card:hover,
.card:focus-visible {
  border-color: var(--gold);
  background: color-mix(in srgb, var(--navy-mid) 85%, var(--navy-edge));
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  outline: none;
}

.card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.card .meta {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.55rem;
}

.card h2 {
  font-size: clamp(1.2rem, 2.4vw, 1.4rem);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.card > p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  flex: 1;
}

.card .depth {
  margin-top: 0.85rem;
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.45;
}

.card .cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.35rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gold);
  transition: color 0.15s ease, gap 0.15s ease;
}

.card:hover .cta,
.card:focus-visible .cta {
  color: var(--gold-hover);
  gap: 0.5rem;
}

/* Footer */
footer {
  border-top: 1px solid var(--navy-edge);
  padding: 2rem 0 2.5rem;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  align-items: flex-start;
}

.footer-tagline {
  max-width: 40rem;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-soft);
}

.footer-links a {
  transition: color 0.15s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--gold);
  outline: none;
}

.footer-links .sep {
  opacity: 0.5;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .card {
    transition: none;
  }
  .card:hover,
  .card:focus-visible {
    transform: none;
  }
}
