/* ==========================================================================
   ALPHA PMS — joseph.css — /joseph digital business card
   Direction: "executive glass" on the site's canonical brand system —
   neutral near-black base, white type, warm orange→amber accent (tokens
   mirror styles.css, the source of truth). Still scoped to this page only:
   it ships its own small stylesheet instead of loading styles.css.
   Mobile-first throughout: the base rules are the phone layout; wider
   viewports only relax them.
   ========================================================================== */

:root {
  /* ---- Color: base (solid panels, as on the main site) ------------------ */
  --bg:      #0a0a0b;
  --panel:   #131316;
  --panel-2: #17171b;

  /* ---- Color: hairlines ------------------------------------------------- */
  --border:        rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);
  --hairline-top:  rgba(255, 255, 255, 0.22);

  /* ---- Color: text ------------------------------------------------------ */
  --text:       #f4f4f5;
  --text-dim:   #a4a4ad;
  --text-faint: #8b8b95;

  /* ---- Color: warm accent (mirrors styles.css) --------------------------- */
  --accent:      #ff9a3c;
  --accent-soft: #ffb86b;
  --accent-deep: #ff6a2b;
  --accent-grad: linear-gradient(100deg, #ff7a2f 0%, #ffb24d 60%, #ffd089 100%);
  --accent-glow: rgba(255, 122, 47, 0.22);
  --ok:    #7ddba3;
  --error: #ff8a7a;

  /* ---- UI fills ---------------------------------------------------------- */
  --btn-fill: #fafafa;
  --btn-text: #0a0a0b;

  /* ---- Typography -------------------------------------------------------- */
  --font-display: 'Geist', ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, "SF Mono", Menlo, monospace;

  /* ---- Layout ------------------------------------------------------------ */
  --maxw: 640px;
  --gutter: clamp(1.1rem, 4vw, 1.75rem);
  --radius: 6px;
  --radius-lg: 10px;
  --radius-xl: 14px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  color: var(--text-dim);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100dvh;
  /* short page: keep the footer at the viewport bottom on tall screens */
  display: flex;
  flex-direction: column;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
/* large + light, as on the main site — declarative claims read more
   confident at a lower weight */
h1, h2, h3 { color: var(--text); line-height: 1.1; font-weight: 500; letter-spacing: -0.025em; }
strong { color: var(--text); font-weight: 600; }
::selection { background: var(--accent); color: #1a1205; }

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

.skip-link {
  position: absolute; left: 50%; top: -100px;
  transform: translateX(-50%);
  background: var(--btn-fill); color: var(--btn-text);
  padding: 0.5rem 1rem; border-radius: 0 0 8px 8px;
  font-weight: 600; z-index: 20;
  transition: top 0.15s var(--ease);
}
.skip-link:focus-visible { top: 0; }

/* Warm gradient text — hero tagline only. */
.grad {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ==========================================================================
   Ambient background — two soft warm glows + faint grain, fixed, no images.
   Orange reads hotter than blue at equal alpha, so these washes sit at half
   the strength the old blue ones did.
   ========================================================================== */
.bg {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(38rem 26rem at 85% -5%, rgba(255, 122, 47, 0.10), transparent 65%),
    radial-gradient(30rem 24rem at 8% 100%, rgba(255, 178, 77, 0.06), transparent 70%),
    var(--bg);
}
.bg::after {
  content: ""; position: absolute; inset: 0; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Panel primitive — solid raised panel with a bright top hairline, matching
   the main site's material (no translucent glass, no backdrop blur).
   ========================================================================== */
.glass {
  background: var(--panel);
  border: 1px solid var(--border);
  border-top-color: var(--hairline-top);
  border-radius: var(--radius-lg);
}

/* ==========================================================================
   Top bar
   ========================================================================== */
.topbar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1rem var(--gutter) 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.55rem; min-height: 44px; }
.brand__mark { width: 26px; height: 26px; }
.brand__word { color: var(--text); font-weight: 600; letter-spacing: -0.01em; }
.brand__pms { color: var(--accent-soft); }
.topbar__tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
}

/* ==========================================================================
   Shell
   ========================================================================== */
.shell {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.25rem var(--gutter) 3rem;
  display: grid;
  gap: 2.75rem;
  align-content: start;
  flex: 1;
}

/* ==========================================================================
   1 · Hero
   ========================================================================== */
.hero__card {
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 8vw, 3rem) clamp(1.25rem, 6vw, 2.5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* Single interior glow anchored to the avatar. */
.hero__card::before {
  content: ""; position: absolute; left: 50%; top: 0;
  width: 24rem; height: 14rem;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--accent-glow), transparent);
  pointer-events: none;
}
.hero__avatar {
  position: relative;
  width: 112px; height: 112px;
  margin: 0 auto 1.4rem;
  border-radius: 50%;
  display: grid; place-items: center;
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    var(--accent-grad) border-box;
  border: 2px solid transparent;
  box-shadow: 0 0 44px var(--accent-glow);
  object-fit: cover; /* applies when the monogram is swapped for an <img> */
}
.hero__avatar span {
  font-size: 2rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--accent-soft);
}
.hero__name { font-size: clamp(1.9rem, 4vw + 1rem, 2.6rem); }
.hero__role {
  margin-top: 0.5rem;
  color: var(--text-dim);
  font-size: 1.02rem;
}
.hero__tagline {
  margin-top: 1.1rem;
  color: var(--text);
  font-size: clamp(1.1rem, 2vw + 0.75rem, 1.35rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

/* ==========================================================================
   2 · Actions
   ========================================================================== */
.actions { display: grid; gap: 0.75rem; }
.actions__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.55rem;
  min-height: 52px;                /* thumb-sized tap target */
  padding: 0.8rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--panel);
  color: var(--text);
  font: inherit; font-weight: 500;
  cursor: pointer;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
}
.btn:hover { background: var(--panel-2); border-color: rgba(255, 255, 255, 0.28); }
.btn svg {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.btn--block { width: 100%; }
.btn--primary {
  background: var(--btn-fill);
  border-color: var(--btn-fill);
  color: var(--btn-text);
  font-weight: 600;
}
.btn--primary:hover { background: #ffffff; border-color: #ffffff; }
.btn--primary:disabled { opacity: 0.6; cursor: default; }
.btn--demo {
  border-color: transparent;
  background:
    linear-gradient(rgba(17, 17, 19, 0.92), rgba(17, 17, 19, 0.92)) padding-box,
    var(--accent-grad) border-box;
  border: 1px solid transparent;
  color: var(--accent-soft);
  font-weight: 600;
}
.btn--demo:hover { color: #ffd089; background:
    linear-gradient(rgba(22, 22, 25, 0.92), rgba(22, 22, 25, 0.92)) padding-box,
    var(--accent-grad) border-box; }

/* ==========================================================================
   Footer
   ========================================================================== */
.foot {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter) calc(2rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  text-align: center;
}
.foot__entity {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}
.foot__nav {
  margin-top: 0.7rem;
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.foot__nav a:hover { color: var(--text); }

/* ==========================================================================
   Wider viewports — relax the single column a little
   ========================================================================== */
@media (min-width: 520px) {
  .actions__grid { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
   Motion discipline
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
