:root {
  --bg: #0A0A0A;
  --text-primary: #F5F5F5;
  --text-secondary: #A0A0A0;
  --text-muted: #808080;
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-hover: rgba(255, 255, 255, 0.18);
  --focus-ring: #F5F5F5;

  --font-display: "Bricolage Grotesque", "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 4px;
}

.page {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 40px 20px 28px;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

/* ---------- Identity ---------- */

.identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  margin-bottom: 24px;
}

.identity__photo {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 30%;
  border: 1px solid var(--border-subtle);
  background: #111;
  opacity: 0;
  animation: fade-in 0.5s var(--ease-premium) forwards;
}

.identity__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 2px 0 0;
  color: var(--text-primary);
}

.identity__role {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  letter-spacing: 0.01em;
}

/* ---------- Cards ---------- */

.links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 1300 / 600;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #111;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  transition: transform 0.35s var(--ease-premium),
              box-shadow 0.35s var(--ease-premium),
              border-color 0.35s var(--ease-premium);
  -webkit-tap-highlight-color: transparent;
}

.card picture,
.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-premium);
}

/* Desktop hover — only on devices with real pointer + hover support */
@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: scale(1.015);
    border-color: var(--border-hover);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  }

  .card:hover img {
    transform: scale(1.015);
  }
}

/* Touch feedback — all devices */
.card:active {
  transform: scale(0.98);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  transition-duration: 0.12s;
}

/* ---------- Footer ---------- */

.footer {
  margin-top: auto;
  padding-top: 32px;
  text-align: center;
}

.footer p {
  margin: 0;
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

/* ---------- Motion ---------- */

@keyframes fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- Breakpoints ---------- */

/* Small phones (390px and below): tighten spacing slightly */
@media (max-width: 374px) {
  .page {
    padding: 32px 16px 24px;
  }
  .identity {
    margin-bottom: 18px;
  }
  .identity__photo {
    width: 60px;
    height: 60px;
  }
  .identity__name {
    font-size: 21px;
  }
}

/* Tablet — intermediate stage between mobile and desktop */
@media (min-width: 640px) {
  .page {
    max-width: 500px;
    padding: 60px 24px 40px;
  }
  .identity {
    margin-bottom: 30px;
  }
  .identity__photo {
    width: 84px;
    height: 84px;
  }
  .identity__name {
    font-size: 29px;
  }
  .identity__role {
    font-size: 15px;
  }
  .links {
    gap: 17px;
  }
  .footer {
    padding-top: 38px;
  }
}

/* Desktop — the set needs real presence in the viewport, not a centered
   mobile layout. Container, cards, header and type all scale up together;
   clamp() keeps it from ballooning on ultra-wide monitors. */
@media (min-width: 1024px) {
  .page {
    max-width: clamp(600px, 46vw, 680px);
    padding: 0 32px;
    min-height: 100vh;
    justify-content: center;
  }
  .identity {
    margin-bottom: 40px;
    gap: 14px;
  }
  .identity__photo {
    width: 108px;
    height: 108px;
  }
  .identity__name {
    font-size: clamp(32px, 2.6vw, 38px);
  }
  .identity__role {
    font-size: 17px;
  }
  .links {
    gap: 22px;
  }
  .footer {
    margin-top: 0;
    padding-top: 44px;
  }
}
