/* ===================== HERO ===================== */
.hero{
  --maxw: 1200px;
  --padX: clamp(16px, 5vw, 48px);
  --padY: clamp(32px, 8vw, 96px);
  background: var(--surface, #0b0d12);
  color: var(--text, #e8f0ff);
  padding: var(--padY) var(--padX);
}

.hero__inner{
  margin: 0 auto;
  max-width: var(--maxw);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
}

/* Desktop: text left, image right */
@media (min-width: 900px){
  .hero__inner{
    grid-template-columns: 1.15fr 0.85fr;
  }
  .hero__content{ order: 1; }
  .hero__media{   order: 2; justify-self: end; }
}

/* Mobile: image on top for quick recognition */
@media (max-width: 899.98px){
  .hero__content{ order: 2; }
  .hero__media{   order: 1; justify-self: center; }
}

/* ---------- text ---------- */
.eyebrow{
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .82rem;
  opacity: .75;
  margin-bottom: .5rem;
}

.hero__title{
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 1.1;
  margin: 0 0 .8rem;
}

.hero__blurb{
  max-width: 60ch;
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  opacity: .9;
}

/* ---------- buttons (minimal, uses your theme vars if present) ---------- */
.hero__cta{
  display: flex;
  gap: 12px;
  margin-top: clamp(16px, 2vw, 24px);
  flex-wrap: wrap;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}
.btn:active{ transform: translateY(1px); }

.btn--primary{
  background: var(--accent, #00d1ff);
  color: #041014;
}
.btn--primary:hover{ filter: brightness(1.05); }

.btn--ghost{
  border-color: color-mix(in oklab, var(--accent, #00d1ff) 50%, #ffffff 0%);
  color: var(--text, #e8f0ff);
}
.btn--ghost:hover{
  background: color-mix(in oklab, var(--accent, #00d1ff) 15%, transparent);
}

/* ---------- avatar with ring ---------- */
.hero__media{ width: 100%; }

.avatar{
  --size: clamp(180px, 32vw, 320px);
  width: var(--size);
  aspect-ratio: 1/1;
  border-radius: 50%;
  position: relative;
  display: grid;
  place-items: center;
  /* subtle depth */
  box-shadow: 0 10px 40px rgba(0,0,0,.45), 0 1px 0 rgba(255,255,255,.03) inset;
}

/* gradient ring (with safe fallback) */
.avatar::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 3px; /* ring thickness */
  background: conic-gradient(from 180deg at 50% 50%, #ff55cc, #00e0ff, #55ffda, #ff55cc);
  -webkit-mask:
    radial-gradient(farthest-side, #000 98%, #0000) content-box,
    radial-gradient(farthest-side, #000 100%, #0000);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

/* Fallback for very old browsers without mask-composite */
@supports not ((-webkit-mask-composite: xor) or (mask-composite: exclude)){
  .avatar{ border: 3px solid #00d1ff; }
  .avatar::before{ display: none; }
}

.avatar img{
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* motion-safety */
@media (prefers-reduced-motion: reduce){
  .btn{ transition: none; }
}

.about{
  background-image:url('/images/edinburgh.jpg'); 
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}