:root {
  --navy: #0f2745;
  --navy-deep: #081a30;
  --red: #a62c2b;
  --red-dark: #862221;
  --paper: #f7f7f4;
  --white: #ffffff;
  --steel: #66717e;
  --steel-light: #d8dde2;
  --ink: #18263a;
  --line: rgba(15, 39, 69, 0.14);
  --shadow: 0 30px 90px rgba(8, 26, 48, 0.15);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

/* Foundation */
* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background-color: var(--paper);
  background-image:
    repeating-radial-gradient(ellipse at 8% 8%, transparent 0 34px, rgba(15, 39, 69, 0.025) 35px 36px, transparent 37px 68px),
    repeating-radial-gradient(ellipse at 94% 82%, transparent 0 45px, rgba(102, 113, 126, 0.022) 46px 47px, transparent 48px 86px);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.page-shell {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 24px 14px;
}

.card-stage {
  width: min(100%, 520px);
}

/* Homepage contact directory */
.profile-directory {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 14px;
}

.profile-directory__label {
  margin-right: 4px;
  color: var(--steel);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-directory__link {
  min-height: 42px;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 800;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.profile-directory__link:hover,
.profile-directory__link[aria-current="page"] {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}

.contact-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(15, 39, 69, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.contact-card::before {
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: 430px;
  content: "";
  background-image:
    repeating-radial-gradient(ellipse at 22% 10%, transparent 0 32px, rgba(15, 39, 69, 0.032) 33px 34px, transparent 35px 63px),
    linear-gradient(180deg, rgba(247, 247, 244, 0.82), rgba(255, 255, 255, 0));
  opacity: 0.8;
}

.card-accent {
  height: 4px;
  background: linear-gradient(90deg, var(--navy) 0 66%, #8c969f 66% 82%, var(--red) 82%);
}

/* Identity hero */
.hero {
  padding: 21px 26px 24px;
  text-align: center;
}

.logo-link {
  display: inline-flex;
  width: min(360px, 92%);
  min-height: 72px;
  align-items: center;
  justify-content: center;
  animation: fade-in 420ms ease both;
}

.logo {
  display: block;
  width: 100%;
  max-height: 80px;
  object-fit: contain;
}

.portrait-frame {
  width: 204px;
  height: 204px;
  margin: 14px auto 20px;
  overflow: hidden;
  border: 5px solid var(--white);
  border-radius: 14px;
  background: var(--navy);
  box-shadow: 0 18px 44px rgba(8, 26, 48, 0.18), 0 0 0 1px rgba(15, 39, 69, 0.16);
  animation: slide-up 440ms 70ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.portrait {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.identity {
  animation: slide-up 440ms 130ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--red);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 9px 0 0;
  color: var(--navy-deep);
  font-size: clamp(2.25rem, 10vw, 3rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.title,
.company {
  margin: 10px 0 0;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 800;
}

.company {
  margin-top: 4px;
  color: var(--steel);
  font-size: 0.94rem;
  font-weight: 700;
}

.positioning {
  max-width: 390px;
  margin: 17px auto 0;
  color: #2b394c;
  font-size: 1rem;
  line-height: 1.58;
}

/* Contact actions */
.primary-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 0 26px 16px;
  animation: slide-up 440ms 190ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.action {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.action:hover,
.quick-action:hover,
.trust-card:hover {
  transform: translateY(-2px);
}

.action--primary {
  min-height: 64px;
  background: var(--red);
  color: var(--white);
  box-shadow: 0 16px 34px rgba(166, 44, 43, 0.24);
}

.action--primary:hover {
  background: var(--red-dark);
  box-shadow: 0 18px 38px rgba(166, 44, 43, 0.3);
}

.action--secondary {
  border-color: rgba(15, 39, 69, 0.22);
  background: var(--white);
  color: var(--navy);
}

.icon {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  padding: 0 26px 27px;
  animation: slide-up 440ms 240ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.quick-action {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.quick-action:hover {
  border-color: rgba(166, 44, 43, 0.42);
  color: var(--red);
  box-shadow: 0 12px 24px rgba(8, 26, 48, 0.07);
}

/* Credibility and profile content */
.credibility,
.details {
  padding: 25px 26px 27px;
  border-top: 1px solid var(--line);
}

.section-heading {
  margin: 7px 0 0;
  color: var(--navy-deep);
  font-size: 1.45rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.trust-grid {
  display: grid;
  gap: 10px;
  margin-top: 17px;
}

.trust-card {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(8, 26, 48, 0.045);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.trust-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 0.96rem;
  letter-spacing: 0;
}

.trust-card p {
  margin: 7px 0 0;
  color: var(--steel);
  font-size: 0.86rem;
  line-height: 1.52;
}

.details {
  display: grid;
  gap: 24px;
  background: rgba(247, 247, 244, 0.62);
}

.detail-block p:last-child {
  margin: 9px 0 0;
  color: #334155;
  font-size: 0.92rem;
  line-height: 1.66;
}

.footer {
  padding: 18px 26px 21px;
  border-top: 1px solid var(--line);
  color: var(--steel);
  font-size: 0.72rem;
  font-weight: 750;
  text-align: center;
}

/* Motion and responsive behavior */
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(166, 44, 43, 0.36);
  outline-offset: 3px;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 560px) {
  .page-shell {
    padding: 46px 20px;
  }

  .primary-actions {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .trust-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .details {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 380px) {
  .hero,
  .primary-actions,
  .quick-actions,
  .credibility,
  .details {
    padding-left: 18px;
    padding-right: 18px;
  }

  .portrait-frame {
    width: 188px;
    height: 188px;
  }

  .quick-actions {
    grid-template-columns: repeat(2, 1fr);
  }

  .profile-directory {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
