/* ============================================
   Ryan Buhrke v2 — Performance-First Redesign
   Editorial dark theme. Georgia + Libre Franklin.
   ============================================ */

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

:root {
  --bg:          #0b0f14;
  --bg-alt:      #0f1319;
  --surface:     rgba(255,255,255,0.03);
  --surface-2:   rgba(255,255,255,0.06);
  --border:      rgba(255,255,255,0.07);
  --border-h:    rgba(255,255,255,0.14);
  --text:        #e4e8ee;
  --text-2:      #b0b8c4;
  --text-3:      #6e7a8a;
  --accent:      #14b8a6;
  --accent-d:    #0f766e;
  --accent-glow: rgba(20,184,166,0.10);
  --heading:     Georgia, 'Times New Roman', serif;
  --body:        'Libre Franklin', 'Trebuchet MS', sans-serif;
  --ease:        cubic-bezier(0.16, 1, 0.3, 1);
  --fast:        180ms cubic-bezier(0.16, 1, 0.3, 1);
  --container:   1120px;
}

body {
  min-height: 100dvh;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
h1,h2,h3,h4,h5,h6 { text-wrap: balance; line-height: 1.15; font-family: var(--heading); font-weight: 400; }
p { text-wrap: pretty; max-width: 68ch; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; }

::selection { background: rgba(20,184,166,0.3); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

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

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* --- Container --- */
.container { max-width: var(--container); margin: 0 auto; padding-inline: clamp(20px, 4vw, 40px); }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--body); font-weight: 600; font-size: 15px;
  text-decoration: none; border-radius: 8px;
  transition: background var(--fast), transform var(--fast), box-shadow var(--fast), border-color var(--fast);
}
.btn--accent {
  background: var(--accent-d); color: #fff; padding: 14px 32px;
  box-shadow: 0 2px 12px rgba(14,118,110,0.3);
}
.btn--accent:hover { background: #0d6d64; transform: translateY(-1px); box-shadow: 0 6px 24px rgba(14,118,110,0.4); }
.btn--accent:active { transform: translateY(0); }
.btn--ghost {
  background: transparent; color: var(--text-2); padding: 14px 28px;
  border: 1px solid var(--border-h);
}
.btn--ghost:hover { color: var(--text); border-color: rgba(255,255,255,0.25); background: var(--surface); }
.btn--sm { padding: 10px 20px; font-size: 14px; }

/* ==================== NAV ==================== */
.nav { padding: 20px 0; position: relative; z-index: 50; }
.nav__inner { display: flex; align-items: center; justify-content: space-between; }
.nav__name { font-family: var(--heading); font-size: 20px; text-decoration: none; color: var(--text); transition: color var(--fast); }
.nav__name:hover { color: var(--accent); }
.nav__right { display: flex; align-items: center; gap: 20px; }
.nav__tag { font-size: 13px; color: var(--text-3); letter-spacing: 0.04em; }
.nav__cta {
  font-size: 14px; font-weight: 500; color: var(--text); text-decoration: none;
  padding: 8px 18px; border: 1px solid var(--border-h); border-radius: 6px;
  transition: background var(--fast), border-color var(--fast);
}
.nav__cta:hover { background: var(--surface); border-color: rgba(255,255,255,0.2); }
@media (max-width: 600px) { .nav__cta { display: none; } }

/* ==================== HERO ==================== */
.hero { padding: clamp(40px,6vw,80px) 0 0; }
.hero__grid {
  display: grid; grid-template-columns: 1fr 340px; gap: clamp(32px,4vw,64px); align-items: start;
}
.hero__super {
  font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 20px;
}
.hero__h1 {
  font-size: clamp(38px, 4.5vw + 12px, 64px);
  line-height: 1.05; margin-bottom: 24px;
  color: var(--text);
}
.hero__h1 em {
  font-style: italic;
  background: linear-gradient(135deg, #6ea4f5, #a78bfa, #c084fc);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero__sub {
  font-size: 18px; color: var(--text-2); line-height: 1.6; margin-bottom: 36px; max-width: 540px;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero aside */
.hero__aside { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.hero__photo-wrap {
  width: 200px; height: 200px; border-radius: 50%; overflow: hidden;
  border: 2px solid var(--accent-d);
  box-shadow: 0 0 0 6px rgba(20,184,166,0.08), 0 0 40px rgba(20,184,166,0.12);
}
.hero__photo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.hero__badges { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.badge {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; padding: 8px 14px; border-radius: 8px; justify-content: center;
  border: 1px solid var(--border);
  background: var(--surface);
}
.badge--live { color: var(--accent); font-weight: 600; border-color: rgba(20,184,166,0.2); background: var(--accent-glow); }
.badge__dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.badge--cred { color: var(--text-3); font-size: 12px; }

@media (max-width: 768px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__aside { order: -1; }
  .hero__sub { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__badges { align-items: center; }
}

/* Countdown strip */
.countdown-strip {
  margin-top: clamp(32px,4vw,56px);
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.countdown-strip__inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.countdown-strip__label { font-size: 14px; color: var(--text-3); }
.countdown-strip__timer {
  font-size: 14px; font-weight: 600; color: var(--accent);
  font-variant-numeric: tabular-nums; letter-spacing: 0.02em;
}

/* ==================== SECTIONS ==================== */
.section { padding: clamp(56px,7vw,96px) 0; }
.section--alt { background: var(--bg-alt); }
.section__header {
  display: flex; align-items: flex-start; gap: 20px; margin-bottom: 48px;
}
.section__num {
  font-family: var(--heading); font-size: clamp(48px,5vw,72px); line-height: 1;
  color: var(--surface-2); font-weight: 400; flex-shrink: 0;
  /* Ghost number */
  -webkit-text-stroke: 1px var(--border-h);
  -webkit-text-fill-color: transparent;
  user-select: none;
}
.section__label {
  display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 8px;
}
.section__title { font-size: clamp(24px, 2vw + 14px, 36px); color: var(--text); }
.section__intro { font-size: 16px; color: var(--text-2); margin-top: 8px; }

/* ==================== PORTFOLIO ==================== */
.portfolio-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.pcard {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; text-decoration: none; color: inherit;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.pcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
  border-color: var(--border-h);
}
.pcard--feature { grid-column: 1 / -1; flex-direction: row; }
.pcard--feature .pcard__img { width: 55%; flex-shrink: 0; }
.pcard--feature .pcard__body { display: flex; flex-direction: column; justify-content: center; }
.pcard__img { aspect-ratio: 16/10; overflow: hidden; background: #070a0e; }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; opacity: 0.75; transition: opacity 0.3s var(--ease); }
.pcard:hover .pcard__img img { opacity: 1; }
.pcard__body { padding: 24px; flex: 1; }
.pcard__tag {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.pcard__name { font-size: 18px; margin-bottom: 8px; }
.pcard__desc { font-size: 14px; color: var(--text-2); line-height: 1.55; margin-bottom: 14px; }
.pcard__cta { font-size: 14px; font-weight: 500; color: var(--accent); }
.pcard:hover .pcard__cta { color: #2dd4bf; }

.portfolio-note { text-align: center; font-size: 13px; font-style: italic; color: var(--text-3); margin-top: 24px; }

@media (max-width: 700px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .pcard--feature { flex-direction: column; }
  .pcard--feature .pcard__img { width: 100%; }
}

/* ==================== SPEAKING / EVENT ==================== */
.event-card {
  display: grid; grid-template-columns: 200px 1fr; gap: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden;
}
.event-card__left {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 32px 24px;
  background: var(--accent-glow); border-right: 1px solid var(--border);
}
.event-card__date { text-align: center; }
.event-card__day { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.event-card__num { display: block; font-family: var(--heading); font-size: 56px; line-height: 1; color: var(--text); }
.event-card__loc { font-size: 13px; color: var(--text-3); }
.event-card__badge {
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--accent); background: rgba(20,184,166,0.12); border: 1px solid rgba(20,184,166,0.2);
  border-radius: 100px; padding: 4px 12px;
}
.event-card__sessions { padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.event-session { display: flex; gap: 20px; align-items: flex-start; }
.event-session__time {
  font-size: 14px; font-weight: 700; color: var(--accent);
  min-width: 72px; flex-shrink: 0; font-variant-numeric: tabular-nums;
  padding-top: 2px;
}
.event-session__name { font-size: 17px; margin-bottom: 4px; }
.event-session__sub { font-size: 14px; color: var(--text-2); line-height: 1.5; }

@media (max-width: 640px) {
  .event-card { grid-template-columns: 1fr; }
  .event-card__left { flex-direction: row; padding: 20px 24px; border-right: none; border-bottom: 1px solid var(--border); }
  .event-card__num { font-size: 36px; }
  .event-session { flex-direction: column; gap: 4px; }
}

/* ==================== FRAMEWORK / DIMENSIONS ==================== */
.dimensions { display: flex; flex-direction: column; }
.dim { border-bottom: 1px solid var(--border); }
.dim:first-child { border-top: 1px solid var(--border); }
.dim__head {
  display: flex; align-items: center; gap: 16px; width: 100%;
  padding: 22px 0; text-align: left; color: var(--text);
  transition: color var(--fast);
}
.dim__head:hover { color: var(--accent); }
.dim__num {
  font-family: var(--heading); font-size: 14px; color: var(--text-3);
  min-width: 28px; flex-shrink: 0;
}
.dim__titles { flex: 1; }
.dim__name { font-size: clamp(16px, 1vw + 14px, 19px); margin-bottom: 2px; }
.dim__hint { font-size: 13px; color: var(--text-2); font-style: italic; font-family: var(--body); font-weight: 400; opacity: 0.75; }
.dim__chevron {
  flex-shrink: 0; color: var(--text-3);
  transition: transform 0.3s var(--ease);
}
.dim__head[aria-expanded="true"] .dim__chevron { transform: rotate(180deg); }
.dim__body {
  padding: 0 0 24px 44px;
  animation: slideDown 0.3s var(--ease);
}
.dim__body p { font-size: 15px; color: var(--text-2); line-height: 1.65; margin-bottom: 14px; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

.dim__links { display: flex; flex-wrap: wrap; gap: 8px; }
.dim__links a {
  font-size: 12px; font-weight: 500; color: var(--accent); text-decoration: none;
  background: var(--accent-glow); border: 1px solid rgba(20,184,166,0.18);
  border-radius: 100px; padding: 5px 14px;
  transition: background var(--fast), border-color var(--fast);
}
.dim__links a:hover { background: rgba(20,184,166,0.18); border-color: rgba(20,184,166,0.3); }

@media (max-width: 600px) {
  .dim__hint { display: none; }
  .dim__body { padding-left: 44px; }
}

/* ==================== SERVICES ==================== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 28px 24px; position: relative; overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.svc::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent-d), var(--accent));
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.svc:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(0,0,0,0.3); border-color: var(--border-h); }
.svc:hover::after { opacity: 1; }
.svc__icon { color: var(--accent); margin-bottom: 16px; }
.svc__name { font-size: 18px; margin-bottom: 10px; }
.svc__desc { font-size: 14px; color: var(--text-2); line-height: 1.6; margin-bottom: 14px; }
.svc__avail { font-size: 12px; font-weight: 600; color: var(--accent); letter-spacing: 0.02em; }
.services-cta { text-align: center; font-size: 17px; color: var(--text-2); margin-top: 32px; }
.services-cta a { color: var(--accent); text-decoration: none; font-weight: 500; transition: color var(--fast); }
.services-cta a:hover { color: #2dd4bf; }
@media (max-width: 768px) { .services-grid { grid-template-columns: 1fr; } }

/* ==================== SUBSCRIBE ==================== */
.subscribe-section {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.subscribe-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,4vw,64px); align-items: center;
}
.subscribe__h2 { font-size: clamp(28px, 2.5vw + 14px, 40px); margin-bottom: 14px; }
.subscribe__desc { font-size: 16px; color: var(--text-2); line-height: 1.6; margin-bottom: 12px; }
.subscribe__micro { font-size: 13px; color: var(--text-3); }
.subscribe-form { display: flex; flex-direction: column; gap: 12px; }
.subscribe-form__input {
  width: 100%; background: var(--surface-2); border: 1px solid var(--border-h);
  border-radius: 8px; padding: 14px 18px; font-size: 15px; color: var(--text);
  transition: border-color var(--fast), box-shadow var(--fast);
}
.subscribe-form__input::placeholder { color: var(--text-3); }
.subscribe-form__input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.subscribe-form__btn { width: 100%; padding: 14px; }
.subscribe-form__proof { font-size: 12px; color: var(--text-3); text-align: center; }
.subscribe__success { color: var(--accent); font-size: 16px; font-weight: 500; text-align: center; animation: slideDown 0.3s var(--ease); }

@media (max-width: 700px) {
  .subscribe-wrap { grid-template-columns: 1fr; text-align: center; }
  .subscribe__desc { margin-inline: auto; }
}

/* ==================== FOOTER ==================== */
.footer { padding: 40px 0 32px; border-top: 1px solid var(--border); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer__left { display: flex; flex-direction: column; gap: 2px; }
.footer__name { font-family: var(--heading); font-size: 16px; }
.footer__role { font-size: 12px; color: var(--text-3); }
.footer__links { display: flex; gap: 24px; }
.footer__links a { font-size: 13px; color: var(--text-3); text-decoration: none; transition: color var(--fast); }
.footer__links a:hover { color: var(--accent); }
.footer__bottom { width: 100%; display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid var(--border); margin-top: 4px; }
.footer__hash { font-size: 13px; color: var(--text-3); }
.footer__attrib { font-size: 11px; color: var(--text-3); text-decoration: none; opacity: 0.6; transition: opacity var(--fast); }
.footer__attrib:hover { opacity: 1; }
@media (max-width: 600px) {
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ==================== STICKY CTA ==================== */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: rgba(11,15,20,0.88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border); padding: 10px 0;
  transform: translateY(100%); transition: transform 0.4s var(--ease);
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta__inner { display: flex; align-items: center; gap: 16px; }
.sticky-cta__text { font-size: 14px; font-weight: 500; color: var(--text-2); white-space: nowrap; }
.sticky-cta__form { display: flex; flex: 1; gap: 8px; }
.sticky-cta__input {
  flex: 1; min-width: 0; background: var(--surface-2); border: 1px solid var(--border-h);
  border-radius: 6px; padding: 8px 14px; font-size: 14px; color: var(--text);
  transition: border-color var(--fast);
}
.sticky-cta__input::placeholder { color: var(--text-3); }
.sticky-cta__input:focus { outline: none; border-color: var(--accent); }
.sticky-cta__success { font-size: 14px; font-weight: 500; color: var(--accent); }
@media (max-width: 640px) { .sticky-cta__text { display: none; } }

/* ==================== ANIMATIONS ==================== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============ MERGED ENHANCEMENTS ============ */

/* Headshot pulse rings */
.hero__photo-wrap { position: relative; }
.hero__photo-wrap::before {
  content: ''; position: absolute; inset: -10px; border-radius: 50%;
  border: 1px solid rgba(20,184,166,0.12);
  animation: ring-pulse 4s ease-in-out infinite; z-index: 0;
}
.hero__photo-wrap::after {
  content: ''; position: absolute; inset: -22px; border-radius: 50%;
  border: 1px solid rgba(20,184,166,0.06);
  animation: ring-pulse 4s ease-in-out 1s infinite; z-index: 0;
}
@keyframes ring-pulse { 0%,100% { opacity: 0.3; transform: scale(1); } 50% { opacity: 0.8; transform: scale(1.02); } }

/* Portfolio hover zoom + overlay */
.pcard__img { position: relative; }
.pcard__img::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,0,0.2);
  transition: background 0.35s var(--ease);
}
.pcard:hover .pcard__img::after { background: transparent; }
.pcard__img img { transition: opacity 0.3s var(--ease), transform 0.5s var(--ease); }
.pcard:hover .pcard__img img { transform: scale(1.05); }

/* Subscribe section gradient */
.subscribe-section {
  background: linear-gradient(180deg, var(--bg-alt) 0%, rgba(15,118,110,0.04) 50%, var(--bg-alt) 100%);
}
