/**
 * Digital business card styles — sage atmosphere, Outfit + DM Sans.
 */

:root {
  --ink: #0e2a28;
  --ink-soft: #1f4541;
  --paper: #f3f6f2;
  --paper-deep: #e2ebe4;
  --accent: #2f8f7b;
  --accent-deep: #1f6b5c;
  --glow: rgba(47, 143, 123, 0.28);
  --line: rgba(14, 42, 40, 0.12);
  --linkedin: #0a66c2;
  --linkedin-hover: #004182;
  /* nuceraPurple from thyssenkrupp-nucera.com */
  --nucera-purple: #a51482;
  --nucera-purple-dark: #5d0d62;
  --font-display: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "DM Sans", "Gill Sans", "Trebuchet MS", sans-serif;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  overflow-x: hidden;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 55% at 12% 18%, var(--glow), transparent 55%),
    radial-gradient(ellipse 70% 50% at 88% 8%, rgba(31, 69, 65, 0.12), transparent 50%),
    linear-gradient(165deg, #f7faf6 0%, var(--paper-deep) 48%, #d7e6df 100%);
  animation: drift 18s ease-in-out infinite alternate;
}

.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg width='72' height='72' viewBox='0 0 72 72' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M36 2v68M2 36h68' stroke='%230E2A28' stroke-opacity='0.05' stroke-width='1' fill='none'/%3E%3C/svg%3E");
  pointer-events: none;
}

@keyframes drift {
  from {
    transform: scale(1) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.04) translate3d(-1.5%, 1%, 0);
  }
}

.stage {
  width: min(40rem, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: clamp(2.75rem, 10vh, 5.5rem) 0 3rem;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translate3d(0, 1.25rem, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.intro {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1rem, 3vw, 1.6rem);
  align-items: center;
}

.portrait {
  width: clamp(6.5rem, 22vw, 8.75rem);
  height: clamp(6.5rem, 22vw, 8.75rem);
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 12px 28px rgba(14, 42, 40, 0.16);
  background: #d7e6df;
}

.intro-copy {
  min-width: 0;
}

.name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 6.5vw, 3.15rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.name-given,
.name-family {
  display: block;
}

.role {
  margin: 0.7rem 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  color: var(--accent-deep);
}

.org {
  margin: 0.35rem 0 0;
  font-size: 0.98rem;
}

.org-link {
  color: var(--nucera-purple);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--nucera-purple);
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.org-link:hover {
  color: var(--nucera-purple-dark);
  border-bottom-color: var(--nucera-purple-dark);
}

.lede {
  margin: 1.35rem 0 0;
  max-width: 38ch;
  font-size: 1.05rem;
  color: var(--ink-soft);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.85rem;
  padding: 0.65rem 1.25rem;
  border-radius: 0.55rem;
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

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

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--ink);
  color: #f4f8f5;
  box-shadow: 0 10px 24px rgba(14, 42, 40, 0.18);
}

.btn-primary:hover {
  background: var(--accent-deep);
}

.btn-linkedin {
  background: var(--linkedin);
  color: #fff;
  box-shadow: 0 10px 24px rgba(10, 102, 194, 0.22);
}

.btn-linkedin:hover {
  background: var(--linkedin-hover);
}

.btn-linkedin:focus-visible {
  outline-color: var(--linkedin);
}

.linkedin-icon {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
}

.facts {
  list-style: none;
  margin: 2.4rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.85rem;
}

.facts li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
  font-size: 0.98rem;
}

.fact-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(14, 42, 40, 0.55);
}

.facts a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}

.facts a:hover {
  color: var(--accent-deep);
}

.more-links {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.more-links h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.more-links-note {
  margin: 0.4rem 0 0;
  max-width: 36ch;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.link-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.link-list a {
  color: var(--accent-deep);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.link-list a:hover {
  border-bottom-color: var(--accent);
}

.site-foot {
  width: min(40rem, calc(100% - 2.5rem));
  margin: 0 auto 2rem;
  font-size: 0.82rem;
  color: rgba(14, 42, 40, 0.5);
}

.site-foot p {
  margin: 0;
}

.site-foot-domain {
  margin-top: 0.2rem;
}

@media (max-width: 480px) {
  .intro {
    grid-template-columns: 1fr;
  }

  .facts li {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .atmosphere,
  .stage,
  .btn {
    animation: none;
    transition: none;
  }
}
