:root {
  --bg: #05070a;
  --surface: #0a0d11;
  --surface-deep: #07090c;
  --text: #f7f7f8;
  --muted: #aeb0b5;
  --accent: #d51637;
  --accent-soft: #c71937;
  --crimson: #a31030;
  --crimson-deep: #850a24;
  --inactive-border: rgba(163,16,48,.72);
  --card-border: rgba(255,255,255,.075);
}

* { box-sizing: border-box; }
html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  background: #030405;
  overflow: hidden !important;
  overscroll-behavior: none;
}
body {
  position: fixed;
  inset: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 12%, rgba(163,16,48,.055), transparent 31%),
    linear-gradient(180deg, #090b0e 0%, #040506 60%, #020304 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  touch-action: manipulation;
}

a { color: inherit; }

.page-shell {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 10px;
}

.card {
  position: relative;
  isolation: isolate;
  width: min(100%, 430px);
  height: min(100%, 900px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--card-border);
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 20%, rgba(255,255,255,.018), transparent 31%),
    linear-gradient(180deg, rgba(10,13,17,.99) 0%, rgba(4,6,8,.997) 100%);
  box-shadow: 0 24px 70px rgba(0,0,0,.52), inset 0 1px 0 rgba(255,255,255,.02);
  padding: 18px 17px 15px;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  background: radial-gradient(circle at 50% 31%, rgba(163,16,48,.028), transparent 25%);
}

.ambient {
  position: absolute;
  z-index: -2;
  pointer-events: none;
  width: 570px;
  height: 188px;
  opacity: .34;
  background-image: radial-gradient(circle, rgba(206,24,55,.72) 1px, transparent 1.25px);
  background-size: 10px 10px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 78%, transparent 100%);
  filter: drop-shadow(0 0 10px rgba(163,16,48,.08));
}
.ambient::after {
  content: "";
  position: absolute;
  inset: 34px -34px -25px;
  border-radius: 50%;
  border-top: 1px solid rgba(199,25,55,.20);
  transform: rotate(-6deg);
}
.ambient-top { display: none; }
.ambient-bottom { bottom: -78px; left: -94px; transform: rotate(-6deg) skewX(8deg); }

.hero {
  text-align: center;
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
}
.brand {
  display: inline-block;
  text-decoration: none;
}
.brand img {
  display: block;
  width: 146px;
  height: auto;
  margin: 0 auto 7px;
  mix-blend-mode: screen;
}

.portrait-wrap {
  width: 88px;
  height: 88px;
  margin: 0 auto 9px;
  padding: 2.5px;
  border-radius: 50%;
  background: linear-gradient(145deg, #df1b3d 0%, var(--crimson) 70%, #c31534 100%);
  box-shadow: 0 0 0 1px rgba(163,16,48,.20), 0 0 16px rgba(163,16,48,.11);
}
.portrait {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 24%;
  border: 3px solid #090b0e;
}

h1 {
  margin: 0;
  font-size: clamp(33px, 8vw, 39px);
  line-height: .98;
  letter-spacing: .008em;
  font-weight: 760;
}
.role {
  margin: 7px 0 0;
  color: #e51c3d;
  font-weight: 640;
  letter-spacing: .105em;
  font-size: 15px;
}
.rule {
  width: 50px;
  height: 1.5px;
  margin: 7px auto;
  background: linear-gradient(90deg, transparent, #d71939, transparent);
}
.tagline {
  margin: 0;
  color: #d4d5d8;
  font-size: 13.5px;
  line-height: 1.33;
  font-weight: 400;
}

.actions {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: repeat(6, 54px);
  gap: 7px;
  flex: 0 0 auto;
  margin-top: 13px;
  align-content: center;
}
.action {
  height: 54px;
  min-height: 0;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 14px;
  align-items: center;
  column-gap: 11px;
  padding: 5px 13px;
  border: 1px solid var(--inactive-border);
  border-radius: 14px;
  text-decoration: none;
  background:
    linear-gradient(180deg, rgba(11,14,18,.96), rgba(6,9,12,.985));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.015);
  transition: transform .13s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.action:focus-visible {
  outline: 2px solid rgba(255,255,255,.9);
  outline-offset: 2px;
}
.action:hover {
  border-color: rgba(209,22,55,.92);
  transform: translateY(-1px);
}
.action:active { transform: scale(.994); }
.action.active {
  border-color: rgba(236,48,77,.82);
  background:
    linear-gradient(105deg, #d91839 0%, #c31435 48%, #99102d 100%);
  box-shadow:
    0 6px 18px rgba(163,16,48,.16),
    inset 0 1px 0 rgba(255,255,255,.12);
}

.icon {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  color: #d91c3b;
}
.icon svg { width: 25px; height: 25px; fill: currentColor; }
.action.active .icon { color: #fff; }
.linkedin svg { width: 24px; height: 24px; }

.copy {
  min-width: 0;
  display: grid;
  gap: 2px;
  text-align: left;
}
.copy strong {
  font-size: 15.2px;
  line-height: 1.05;
  font-weight: 610;
  letter-spacing: .002em;
}
.copy small {
  color: var(--muted);
  font-size: 11.6px;
  line-height: 1.06;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.action.active .copy small { color: rgba(255,255,255,.82); }
.chevron {
  justify-self: end;
  font-size: 24px;
  line-height: 1;
  font-weight: 200;
  color: #f7f7f8;
  transform: translateY(-1px);
}

footer {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  margin-top: 8px;
  text-align: center;
  line-height: 1;
}
footer a {
  color: #bfc2c7;
  text-decoration: none;
  font-size: 11.5px;
  letter-spacing: .035em;
}
footer a::before {
  content: "↗";
  margin-right: 5px;
  color: #d71939;
}

/* Mobile is a true one-screen experience. Keep elements large and compress spacing, not scale. */
@media (max-width: 520px) {
  .page-shell { padding: 0; display: block; }
  .card {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding:
      max(11px, env(safe-area-inset-top))
      15px
      max(10px, env(safe-area-inset-bottom));
  }
}

/* Typical iPhone in-app/Safari viewport (roughly 700–850 CSS px). */
@media (max-height: 820px) {
  .brand img { width: 136px; margin-bottom: 5px; }
  .portrait-wrap { width: 82px; height: 82px; margin-bottom: 7px; }
  h1 { font-size: 35px; }
  .role { margin-top: 5px; font-size: 14px; }
  .rule { margin: 5px auto; width: 46px; }
  .tagline { font-size: 12.8px; line-height: 1.28; }
  .actions { margin-top: 10px; gap: 6px; grid-template-rows: repeat(6, 51px); }
  .action { height: 51px; border-radius: 13px; padding: 4px 12px; }
  .copy strong { font-size: 14.7px; }
  .copy small { font-size: 11.2px; }
  footer { margin-top: 6px; }
  footer a { font-size: 11px; }
}

/* Only very short viewports get a modest second compression. */
@media (max-height: 690px) {
  .brand img { width: 122px; margin-bottom: 4px; }
  .portrait-wrap { width: 72px; height: 72px; margin-bottom: 5px; }
  h1 { font-size: 31px; }
  .role { margin-top: 4px; font-size: 12.8px; }
  .rule { margin: 4px auto; }
  .tagline { font-size: 11.7px; }
  .actions { margin-top: 7px; gap: 5px; grid-template-rows: repeat(6, 47px); }
  .action { height: 47px; border-radius: 12px; padding: 3px 11px; }
  .icon { width: 30px; height: 30px; }
  .icon svg { width: 23px; height: 23px; }
  .copy strong { font-size: 13.8px; }
  .copy small { font-size: 10.6px; }
  .chevron { font-size: 22px; }
  footer { margin-top: 5px; }
  footer a { font-size: 10.4px; }
}

@media (max-width: 350px) {
  .card { padding-left: 11px; padding-right: 11px; }
  .copy strong { font-size: 13.4px; }
  .copy small { font-size: 10.3px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
