/* =============================================
   LINKS PAGE — AGB Corporate
   Editorial linkbio with brand consistency from index.html
   ============================================= */

.links-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(40px, 8vw, 80px) 20px;
  padding-top: max(clamp(40px, 8vw, 80px), env(safe-area-inset-top));
  padding-bottom: max(clamp(40px, 8vw, 80px), env(safe-area-inset-bottom));
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
  background: var(--bg);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Background art — oversized "AGB" letters as editorial backdrop */
.links-bg-art {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(20rem, 60vw, 50rem);
  letter-spacing: -0.05em;
  color: var(--accent);
  opacity: 0.04;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  line-height: 1;
  white-space: nowrap;
}

/* Subtle warm gradient from corner — replaces the generic blobs */
.links-page::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(150, 120, 92, 0.14), transparent 60%),
    radial-gradient(ellipse 50% 40% at 0% 0%, rgba(196, 169, 146, 0.10), transparent 60%);
}

.links-card {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* ---- FADE-UP STAGGER ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.links-kicker,
.links-logo,
.links-tag,
.links-title,
.links-subtitle,
.links-group,
.links-founders,
.links-footer {
  opacity: 0;
  animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.links-kicker    { animation-delay: 0.05s; }
.links-logo      { animation-delay: 0.12s; }
.links-tag       { animation-delay: 0.19s; }
.links-title     { animation-delay: 0.26s; }
.links-subtitle  { animation-delay: 0.33s; }
.links-group:nth-of-type(1) { animation-delay: 0.40s; }
.links-group:nth-of-type(2) { animation-delay: 0.48s; }
.links-group:nth-of-type(3) { animation-delay: 0.56s; }
.links-group:nth-of-type(4) { animation-delay: 0.64s; }
.links-founders  { animation-delay: 0.78s; }
.links-footer    { animation-delay: 0.90s; }

/* ---- HEADER BLOCK ---- */
.links-kicker {
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 28px;
  white-space: nowrap;
}

.links-logo {
  height: clamp(80px, 18vw, 100px);
  width: auto;
  margin-bottom: 8px;
}

.links-tag {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 24px;
  text-align: center;
}

.links-title {
  font-family: var(--font-body);
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 12px;
  text-align: center;
  color: var(--text);
}

.links-title .accent-text {
  color: var(--accent);
  font-weight: 700;
}

.links-subtitle {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 44px;
  max-width: 340px;
  line-height: 1.5;
}

/* ---- LINKS NAV ---- */
.links-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ---- GROUP (kicker label + buttons) ---- */
.links-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.links-group-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.links-group-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ---- BUTTON BASE ---- */
.link-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--dark);
  color: var(--text-light);
  border-radius: 14px;
  border: 1px solid var(--dark);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              background 0.3s ease,
              box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.link-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.link-btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 12px 28px -10px rgba(26, 23, 20, 0.35);
}

.link-btn:hover::before {
  opacity: 0.2;
}

.link-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.link-btn-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.link-btn-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.link-btn-text {
  flex: 1;
  position: relative;
  z-index: 1;
  min-width: 0;
}

.link-btn-label {
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  display: block;
}

.link-btn-sub {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  color: var(--accent-light);
  opacity: 0.85;
  display: block;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-btn-arrow {
  font-family: var(--font-mono);
  font-size: 1rem;
  opacity: 0.5;
  transition: transform 0.3s ease, opacity 0.3s ease;
  position: relative;
  z-index: 1;
}

.link-btn:hover .link-btn-arrow {
  transform: translateX(4px);
  opacity: 1;
}

/* ---- PRIMARY CTA ---- */
.link-btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  animation:
    fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.40s forwards,
    pulse 4s ease-in-out 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(0) scale(1.012); }
}

.link-btn-primary:hover {
  animation-play-state: running, paused;
}

.link-btn-primary::before {
  background: linear-gradient(135deg, var(--dark), transparent 60%);
}

.link-btn-primary:hover::before { opacity: 0.3; }

.link-btn-primary .link-btn-shine {
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: translateX(-150%) skewX(-18deg);
  animation: shimmer 7s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes shimmer {
  0%   { transform: translateX(-150%) skewX(-18deg); }
  35%  { transform: translateX(280%) skewX(-18deg); }
  100% { transform: translateX(280%) skewX(-18deg); }
}

/* ---- SOCIAL ROW (icon-only buttons) ---- */
.links-social-row {
  display: flex;
  gap: 10px;
}

.link-btn-icon-only {
  flex: 1;
  justify-content: center;
  padding: 16px;
  gap: 0;
}

.link-btn-icon-only svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  position: relative;
  z-index: 1;
}

/* ---- FOUNDERS ---- */
.links-founders {
  margin-top: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
}

.links-founders-label {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-right: 2px;
}

.links-founders-sep {
  opacity: 0.4;
}

.links-founder {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text);
  transition: color 0.3s;
  text-decoration: none;
}

.links-founder:hover {
  color: var(--accent);
}

/* ---- FOOTER ---- */
.links-footer {
  margin-top: 36px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  text-align: center;
  opacity: 0.7;
}

.links-footer a {
  color: var(--accent);
  transition: opacity 0.3s;
  text-decoration: none;
}

.links-footer a:hover { opacity: 0.7; }

/* ---- REDUCED MOTION ---- */
@media (prefers-reduced-motion: reduce) {
  .link-btn-primary .link-btn-shine,
  .link-btn-primary {
    animation: none;
  }
  .links-kicker,
  .links-logo,
  .links-tag,
  .links-title,
  .links-subtitle,
  .links-group,
  .links-founders,
  .links-footer {
    opacity: 1;
    animation: none;
  }
}

/* ---- TABLET ---- */
@media (max-width: 768px) {
  .links-card { max-width: 420px; }
  .links-title { font-size: clamp(1.6rem, 5vw, 2rem); }
  .links-bg-art { font-size: clamp(18rem, 50vw, 28rem); opacity: 0.05; }
}

/* ---- MOBILE ---- */
@media (max-width: 480px) {
  .links-card { max-width: 100%; }
  .links-kicker { font-size: 0.62rem; letter-spacing: 0.04em; }
  .links-tag { font-size: 0.65rem; letter-spacing: 0.1em; }
  .links-title { font-size: clamp(1.5rem, 6vw, 1.8rem); }
  .links-subtitle { font-size: 0.9rem; margin-bottom: 36px; }
  .links-nav { gap: 24px; }

  .link-btn {
    padding: 14px 16px;
    gap: 12px;
    min-height: 56px;       /* Apple HIG / Material touch target */
  }
  .link-btn-label { font-size: 0.92rem; }
  .link-btn-sub { font-size: 0.65rem; }

  .link-btn-icon-only {
    padding: 14px;
    min-height: 52px;
  }

  .links-social-row { gap: 8px; }

  .links-founders {
    margin-top: 32px;
    font-size: 0.68rem;
    gap: 8px;
  }

  .links-bg-art {
    font-size: 22rem;
    opacity: 0.05;
  }
}

/* ---- VERY SMALL (320-360px) ---- */
@media (max-width: 360px) {
  .links-kicker { font-size: 0.58rem; }
  .links-title { font-size: 1.4rem; }
  .link-btn { padding: 13px 14px; }
  .link-btn-label { font-size: 0.88rem; }
}
