:root {
  --bg:         #0e0e0e;
  --bg-2:       #161616;
  --bg-3:       #1e1e1e;
  --border:     #2a2a2a;
  --border-2:   #3a3a3a;
  --text:       #f0f0f0;
  --muted:      #888888;
  --military:   #4d7a2a;
  --mil-bright: #6db33f;
  --mil-dim:    #1a2612;
  --sand:       #d4b483;
  --sand-dim:   #2e2518;
  --olive:      #8fba4e;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }

body {
  font-family: "Inter", "Space Grotesk", sans-serif;
  color: var(--text);
  background-color: var(--bg);
  overflow-x: hidden;
}



.page-bg { display: none; }

/* ── layout ── */
.wrap {
  position: relative;
  z-index: 1;
  width: min(660px, 94vw);
  margin: 0 auto;
  padding: 90px 0 70px;
}

/* ── card ── */
.card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.7);
  padding: 124px 36px 44px;
  text-align: center;
  animation: card-in 560ms cubic-bezier(0.22, 0.8, 0.22, 1) both;
}

/* top accent strip */
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 2px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, transparent, var(--military), var(--mil-bright), var(--military), transparent);
}

/* ── avatar ── */
.avatar {
  position: absolute;
  top: -66px;
  left: 50%;
  transform: translateX(-50%);
  width: 132px;
  height: 132px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--bg-2);
  outline: 2px solid var(--military);
  box-shadow:
    0 0 0 4px rgba(90,110,58,0.15),
    0 10px 30px rgba(0,0,0,0.7);
  background: var(--bg-3);
}

/* ── eyebrow ── */
.eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  color: var(--mil-bright);
  background: var(--mil-dim);
  border: 1px solid var(--border-2);
  border-radius: 4px;
  padding: 4px 8px;
  text-transform: uppercase;
}

/* ── name ── */
h1 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

/* ── intro ── */
.intro {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.7;
  font-weight: 400;
  min-height: 1.7em;
}

.intro.typing::after {
  content: '|';
  display: inline;
  color: var(--mil-bright);
  animation: blink 0.7s step-end infinite;
  margin-left: 1px;
}

.brand-logo-wrap {
  margin: 18px auto 0;
  width: 108px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--border-2);
  background: rgba(5, 7, 4, 0.95);
  box-shadow: inset 0 0 0 1px rgba(122,154,72,0.12);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: logo-wrap-in 540ms cubic-bezier(0.22, 0.8, 0.22, 1) 180ms both;
}

.brand-logo {
  display: block;
  width: 86px;
  height: 86px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--border);
  flex-shrink: 0;
  animation: logo-img-in 340ms cubic-bezier(0.34, 1.56, 0.64, 1) 700ms both;
}

/* ── divider ── */
.links::before {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-2), transparent);
  margin-bottom: 10px;
}

/* ── links: single column, portrait ── */
.links {
  margin: 24px auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: var(--text);
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 22px 18px 24px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
  transition:
    border-color 180ms ease,
    background   180ms ease,
    transform    180ms ease,
    box-shadow   180ms ease,
    color        180ms ease;
  animation: link-in 380ms cubic-bezier(0.22, 0.8, 0.22, 1) both;
}

.links a:nth-child(1) { animation-delay: 380ms; }
.links a:nth-child(2) { animation-delay: 500ms; }
.links a:nth-child(3) { animation-delay: 620ms; }
.links a:nth-child(4) { animation-delay: 740ms; }
.links a:nth-child(5) { animation-delay: 860ms; }

/* left accent bar */
.links a::before {
  content: "";
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 2px;
  border-radius: 2px;
  background: var(--military);
  transition: top 180ms ease, bottom 180ms ease, background 180ms ease;
}

/* arrow */
.links a::after {
  content: "→";
  font-size: 1.3rem;
  color: var(--border-2);
  flex-shrink: 0;
  align-self: center;
  transition: color 180ms ease, transform 180ms ease;
}

.link-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
  flex: 1;
}

.link-icon {
  display: block;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  object-fit: cover;
  flex-shrink: 0;
  margin-right: 14px;
  border-radius: 8px;
}

/* icons with extra inner padding appear smaller — compensate */
.links a:nth-child(2) .link-icon {
  transform: scale(1.55);
}

.links a:nth-child(3) .link-icon {
  transform: scale(1.7);
}

.links a:nth-child(4) .link-icon,
.links a:nth-child(5) .link-icon {
  transform: scale(1.3);
}

.link-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  transition: color 180ms ease;
}

.link-desc {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted);
  transition: color 180ms ease;
}

.links a:hover .link-title { color: var(--sand); }
.links a:hover .link-desc  { color: var(--olive); }

/* CV and Gmail don't open in new tab, same arrow */

.links a:hover {
  background: var(--mil-dim);
  border-color: var(--military);
  transform: translateX(3px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4), inset 0 0 0 1px rgba(90,110,58,0.1);
  color: var(--sand);
}

.links a:hover::before { top: 0; bottom: 0; background: var(--mil-bright); }
.links a:hover::after  { color: var(--olive); transform: translate(2px, -2px); }

/* ── footer ── */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--border-2);
  padding: 14px 14px 32px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

/* ── animations ── */
@keyframes link-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

@keyframes logo-wrap-in {
  from { width: 100%; border-radius: 6px; }
  to   { width: 108px; border-radius: 14px; }
}

@keyframes logo-img-in {
  from { opacity: 0; transform: scale(0.7); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── responsive ── */
@media (max-width: 520px) {
  .wrap { padding-top: 76px; }
  .card { padding: 96px 20px 28px; }
  .links a { padding: 15px 16px 15px 18px; }
}

