/* ==================================================================
   Tristan Hanford â€” Site Styles v3.3 (Home + About)
   - Connections bar: wider span, icons, larger text, positioned lower
   - Explore panel: feathered gradient to taupe, more vertical spacing
   - Explore buttons: soft fade on hover (light slate), text â†’ white
   - Typewriter: caret follows text; soft accent color
   - About header: full-width slate banner, white text
   - About intro: larger subtitle, better spacing & CTA offset
   ================================================================== */

/* -------------------- Design Tokens -------------------- */
:root{
  --paper:#ffffff;
  --taupe:#e4ddcc;
  --slate:#2b2f33;          /* text/body */
  --slate-strong:#1f2327;   /* headings */
  --muted:#707780;
  --line:rgba(15,17,19,.12);
  --focus:#0a6cff;
  --accent-soft:#c0121d;    /* candy-apple accent for typed words */
  --accent-strong:#d0161f;  /* brighter candy-apple red for CTAs */
  --accent-sheen:linear-gradient(135deg,
    color-mix(in srgb, var(--accent-strong) 82%, white),
    color-mix(in srgb, var(--accent-strong) 88%, black)
  );
  --accent-halo:color-mix(in srgb, var(--accent-strong) 18%, transparent);
  --accent-halo-strong:color-mix(in srgb, var(--accent-strong) 32%, transparent);
  --surface-bright:#ffffff;
  --surface-strong:rgba(255,255,255,.97);
  --surface-soft:rgba(255,255,255,.9);
  --card-border:rgba(43,47,51,.16);
  --card-shadow:0 24px 48px rgba(0,0,0,.14);
  --card-shadow-strong:0 32px 64px rgba(0,0,0,.18);
  --viewer-bg:linear-gradient(160deg, rgba(112,128,144,.92) 0%, rgba(78,88,100,.92) 100%);
  --viewer-bg-solid:#5f6b78;

  --radius:14px; --radius-lg:22px; --radius-xl:28px;
  --shadow-1:0 10px 28px rgba(0,0,0,.08);
  --shadow-2:0 18px 46px rgba(0,0,0,.16);

  --maxw:1200px; --nav-h:72px; --dock-h:78px;
}

@media (min-width:1440px){
  :root{--maxw:1320px;}
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;color:var(--slate);
  background-color:var(--taupe);
  background-image:radial-gradient(circle at 12% 18%, rgba(255,255,255,.65), rgba(255,255,255,0) 48%),
                   radial-gradient(circle at 82% 12%, rgba(214,205,187,.65), rgba(214,205,187,0) 52%),
                   linear-gradient(180deg, rgba(255,255,255,.9) 0%, rgba(236,229,216,.65) 44%, rgba(228,221,204,.9) 100%);
  background-attachment:fixed;
  font-family:'Inter',system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  line-height:1.6;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
  min-height:100%;
  position:relative;
  padding-bottom:calc(var(--dock-h) + env(safe-area-inset-bottom));
  overflow-x:hidden;
}

/* -------------------- Mobile Preface -------------------- */
.mobile-preface{
  position:fixed;
  inset:0;
  z-index:120;
  display:none;
  align-items:center;
  justify-content:center;
  padding:clamp(32px,8vw,60px) clamp(20px,7vw,56px);
  color:var(--paper);
  text-align:center;
  background:radial-gradient(circle at 18% 22%, rgba(255,255,255,.15) 0%, rgba(255,255,255,0) 55%),
             radial-gradient(circle at 82% 18%, rgba(255,255,255,.1) 0%, rgba(255,255,255,0) 60%),
             linear-gradient(160deg, rgba(31,35,39,.92) 0%, rgba(31,35,39,.88) 100%);
  backdrop-filter:blur(22px);
}

.mobile-preface::before{
  content:"";
  position:absolute;
  inset:clamp(22px,6vw,44px);
  border-radius:var(--radius-xl);
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 30px 60px rgba(0,0,0,.25);
  opacity:.5;
  pointer-events:none;
}

.mobile-preface__panel{
  position:relative;
  width:min(420px,100%);
  padding:clamp(30px,7vw,50px);
  border-radius:var(--radius-lg);
  background:linear-gradient(160deg, rgba(255,255,255,.96) 0%, rgba(240,233,219,.94) 100%);
  border:1px solid rgba(43,47,51,.12);
  color:var(--slate-strong);
  box-shadow:var(--shadow-2);
  display:grid;
  gap:20px;
  justify-items:center;
  overflow:hidden;
}

.mobile-preface__panel::before{
  content:"";
  display:block;
  width:72px;
  height:4px;
  border-radius:999px;
  background:linear-gradient(90deg, rgba(180,88,88,1) 0%, rgba(112,128,144,1) 100%);
  margin-bottom:4px;
}

.mobile-preface__panel h2{
  font-family:'Playfair Display', 'Times New Roman', serif;
  font-weight:600;
  letter-spacing:.01em;
  font-size:clamp(1.65rem,5.4vw,2.1rem);
  margin:0;
  color:var(--slate-strong);
}

.mobile-preface__panel p{
  margin:0;
  max-width:32ch;
  font-size:clamp(1rem,4.3vw,1.12rem);
  line-height:1.65;
  color:rgba(43,47,51,.72);
}

.mobile-preface__button{
  padding:14px 28px;
  border-radius:999px;
  border:2px solid rgba(43,47,51,.18);
  background:var(--paper);
  color:var(--slate-strong);
  font-weight:800;
  letter-spacing:.04em;
  font-size:1rem;
  cursor:pointer;
  box-shadow:var(--shadow-1);
  transition:transform .18s ease, box-shadow .18s ease, background-color .18s ease, filter .18s ease, color .18s ease;
}

.mobile-preface__button:hover{
  transform:translateY(-1px);
  box-shadow:var(--shadow-2);
  filter:brightness(1.02);
}

.mobile-preface__button:active{
  transform:translateY(0);
  box-shadow:var(--shadow-1);
}

@media (max-width:600px){
  body.preface-active{
    overflow:hidden;
    height:100dvh;
  }

  body.preface-active #siteContent{
    visibility:hidden;
    pointer-events:none;
  }

  body.preface-active .mobile-preface{
    display:flex;
  }
}

body.preface-dismissed .mobile-preface{display:none !important}

body::before,
body::after{
  content:"";
  position:fixed;
  inset:-30vh -30vw;
  pointer-events:none;
  z-index:-2;
  transition:opacity .6s ease;
}

body::before{
  background:radial-gradient(circle at 30% 30%, rgba(255,255,255,.38), rgba(255,255,255,0) 60%),
             radial-gradient(circle at 70% 60%, rgba(214,205,187,.35), rgba(214,205,187,0) 62%);
  opacity:.7;
}

body::after{
  z-index:-3;
  inset:-60vh -40vw;
  background:linear-gradient(120deg, rgba(255,255,255,.18) 0%, rgba(196,188,171,.12) 48%, rgba(31,35,39,.08) 100%);
  mix-blend-mode:soft-light;
  opacity:.55;
}

@media (max-width:780px){
  body::before{opacity:.55;}
  body::after{opacity:.4;}
}

img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
.container{width:100%;max-width:var(--maxw);margin:0 auto;padding:0 clamp(18px,5vw,32px)}
h1,h2,h3{margin:0 0 .5rem;line-height:1.15}

/* -------------------- Reveal animations -------------------- */
body.has-reveal .reveal-item{
  opacity:0;
  transform:translate3d(0,32px,0);
  transition:opacity .6s ease, transform .6s ease;
  transition-delay:var(--reveal-delay,0ms);
  will-change:opacity,transform;
}

body.has-reveal .reveal-item.is-visible{
  opacity:1;
  transform:translate3d(0,0,0);
}

@media (prefers-reduced-motion:reduce){
  body.has-reveal .reveal-item{opacity:1 !important;transform:none !important;transition:none !important}
}

/* -------------------- Buttons -------------------- */
.btn-primary,.btn-outline{
  position:relative;display:inline-flex;align-items:center;gap:10px;cursor:pointer;
  border-radius:999px;font-weight:800;letter-spacing:.03rem;padding:12px 18px;
  transition:transform .18s ease,box-shadow .18s ease,filter .18s ease;
}
.btn-primary{background:var(--paper);color:var(--slate);border:1px solid rgba(43,47,51,.18);box-shadow:var(--shadow-1)}
.btn-primary:hover{transform:translateY(-1px);box-shadow:var(--shadow-2);filter:brightness(1.02)}
.btn-outline{
  background:transparent;
  color:var(--accent-strong);
  border:3px solid color-mix(in srgb, var(--accent-strong) 65%, transparent);
  box-shadow:0 10px 26px var(--accent-halo);
  transition:transform .18s ease, box-shadow .18s ease, border-color .2s ease, color .2s ease;
}
.btn-outline:hover,
.btn-outline:focus-visible{
  transform:translateY(-1px);
  box-shadow:0 18px 38px var(--accent-halo-strong);
  background:transparent;
  border-color:color-mix(in srgb, var(--accent-strong) 82%, transparent);
  color:var(--accent-strong);
}
.btn-outline:active{transform:translateY(0);}
.btn-primary.is-taupe{background:var(--taupe);border-color:rgba(43,47,51,.22)}
.btn-primary.is-taupe:hover{filter:brightness(1.02)}

/* Keep the radiating hover ONLY for generic buttons (not panel links) */
.btn-primary::before,.btn-primary::after{
  content:"";position:absolute;inset:0;pointer-events:none;border-radius:12px;opacity:0;
  border:2px solid rgba(43,47,51,.18);transform:scale(.9);
}
.btn-primary:hover::before{animation:burst 900ms ease-out forwards}
.btn-primary:hover::after{animation:burst 1200ms 90ms ease-out forwards}
@keyframes burst{0%{opacity:0;transform:scale(.9)}35%{opacity:.65}100%{opacity:0;transform:scale(1.25)}}

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

/* -------------------- Navbar (fades in; JS animates opacity) -------------------- */
.navbar{
  position:fixed;top:0;left:0;right:0;z-index:60;
  opacity:0;pointer-events:none;backdrop-filter:saturate(1.05) blur(8px);
}
.navbar::before{content:"";position:absolute;inset:0;background:rgba(255,255,255,.9);border-bottom:1px solid var(--line)}
.navbar.nav-active{pointer-events:auto}
.nav-inner{position:relative;height:var(--nav-h);display:grid;grid-template-columns:1fr auto 1fr;align-items:center}
.nav-title{justify-self:start;font-weight:800;letter-spacing:.08em;text-transform:uppercase;padding-left:8px}
.nav-links{list-style:none;display:flex;gap:18px;margin:0;padding:0}
.nav-links a{padding:10px 12px;border-radius:999px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;font-size:.9rem}
.nav-links a[aria-current="page"]{background:var(--paper);box-shadow:var(--shadow-1)}
.menu-btn{justify-self:end;background:transparent;border:0;font-size:1.6rem;padding:8px;display:none}
.drawer{position:fixed;inset:var(--nav-h) 0 auto 0;background:#fff;display:none;border-top:1px solid var(--line);box-shadow:0 10px 24px rgba(0,0,0,.08)}
.drawer.open{display:block}
.drawer ul{list-style:none;margin:0;padding:12px}
.drawer li{border-bottom:1px solid var(--line)}
.drawer a{display:block;padding:14px 8px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
@media (max-width:920px){.nav-inner{grid-template-columns:auto 1fr auto}.nav-links{display:none}.menu-btn{display:block}}
@media (max-width:780px){#mainNav{display:none}}

/* -------------------- Hero -------------------- */
.hero{position:relative;min-height:100dvh;display:grid;align-items:center;padding:60px 0 80px}
.hero-bg{position:absolute;inset:0;z-index:-1;overflow:hidden}
.magnetic-field{position:absolute;inset:0;width:100%;height:100%;display:block}
.magnetic-field.particles-disabled{display:none}
.particle-toggle{
  position:absolute;
  right:clamp(18px,4vw,36px);
  bottom:28px;
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 16px;
  border-radius:999px;
  border:1px solid var(--card-border);
  background:var(--surface-soft);
  color:var(--slate);
  font-weight:700;
  font-size:.88rem;
  letter-spacing:.02em;
  cursor:pointer;
  box-shadow:var(--shadow-1);
  transition:transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
  z-index:40;
}
.particle-toggle:hover{transform:translateY(-1px);box-shadow:var(--shadow-2);background:var(--surface-strong)}
.particle-toggle:active{transform:translateY(0);box-shadow:var(--shadow-1)}
.particle-toggle.is-off{background:color-mix(in srgb,var(--surface-soft) 80%, #f5f2ea);color:#585e65;border-color:rgba(43,47,51,.16)}
.particle-toggle__icon{
  width:18px;
  height:18px;
  border-radius:50%;
  background:radial-gradient(circle at 30% 30%, rgba(255,255,255,.9), rgba(255,255,255,0) 60%),
             radial-gradient(circle at 70% 70%, rgba(180,88,88,.35), rgba(180,88,88,0) 68%),
             linear-gradient(160deg, rgba(31,35,39,.2), rgba(31,35,39,.05));
  box-shadow:inset 0 0 0 1px rgba(43,47,51,.22), 0 6px 14px rgba(0,0,0,.16);
}
.particle-toggle.is-off .particle-toggle__icon{
  background:linear-gradient(160deg, rgba(31,35,39,.08), rgba(31,35,39,.02));
  box-shadow:inset 0 0 0 1px rgba(43,47,51,.16);
}
@media (max-width:640px){
  .particle-toggle{bottom:18px;right:18px;font-size:.82rem;padding:9px 14px;gap:8px}
  .particle-toggle__icon{width:16px;height:16px}
}
@media (max-width:1024px){
  .hero-bg{display:none}
}
/* Connections bar (wider span, icons, bigger text, positioned lower) */
.hero-connections{
  position:absolute;left:50%;transform:translateX(-50%);top:clamp(56px,17vh,190px);
  display:flex;align-items:center;gap:40px;color:#5b6168;
}
.hero-connections__line{
  display:block;
  height:2px;
  width:min(34vw,380px);
  background:linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent-strong) 70%, transparent), transparent);
  pointer-events:none;
}
.hero-connections a{font-weight:800;font-size:1.06rem;display:flex;flex-direction:column;align-items:center;gap:6px}
.hero-connections__label{display:block}
.hero-connections .dot{opacity:.6}
/* Icons via data-URI SVGs */
.hero-connections a::before{content:"";display:block;width:22px;height:22px;opacity:.9}
.hero-connections a[href*="linkedin."]::before{
  background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%232b2f33' stroke-width='1.8'><rect x='3' y='3' width='18' height='18' rx='2'/><path d='M8 11v6M8 7.5v.5M12 17v-6a3 3 0 0 1 6 0v6'/></svg>") center/contain no-repeat;
}
.hero-connections a[href^="mailto:"]::before{
  background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%232b2f33' stroke-width='1.8'><rect x='3' y='5' width='18' height='14' rx='2'/><path d='M3 7l9 6 9-6'/></svg>") center/contain no-repeat;
}
.hero-connections a[href*="instagram."]::before{
  background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%232b2f33' stroke-width='1.8'><rect x='3' y='3' width='18' height='18' rx='4'/><circle cx='12' cy='12' r='3.5'/><circle cx='17' cy='7' r='1'/></svg>") center/contain no-repeat;
}

.site-connections{
  margin:72px 0 0;
}
.site-connections__inner{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:36px;
  color:#5b6168;
  padding:38px 24px 30px;
  border-radius:24px;
  border:1px solid var(--card-border);
  background:var(--surface-strong);
  box-shadow:var(--card-shadow);
}
.site-connections__line{
  display:block;
  height:2px;
  width:min(28vw,300px);
  background:linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent-strong) 62%, transparent), transparent);
}
.site-connections a{
  font-weight:800;
  display:flex;
  align-items:center;
  gap:8px;
  letter-spacing:.02em;
  text-transform:uppercase;
  font-size:.92rem;
}
.site-connections .dot{opacity:.5;font-size:1.2rem;}
.site-connections a::before{content:"";display:block;width:18px;height:18px;opacity:.88}
.site-connections a[href*="linkedin."]::before{
  background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%232b2f33' stroke-width='1.8'><rect x='3' y='3' width='18' height='18' rx='2'/><path d='M8 11v6M8 7.5v.5M12 17v-6a3 3 0 0 1 6 0v6'/></svg>") center/contain no-repeat;
}
.site-connections a[href^="mailto:"]::before{
  background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%232b2f33' stroke-width='1.8'><rect x='3' y='5' width='18' height='14' rx='2'/><path d='M3 7l9 6 9-6'/></svg>") center/contain no-repeat;
}
.site-connections a[href*="instagram."]::before{
  background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%232b2f33' stroke-width='1.8'><rect x='3' y='3' width='18' height='18' rx='4'/><circle cx='12' cy='12' r='3.5'/><circle cx='17' cy='7' r='1'/></svg>") center/contain no-repeat;
}
@media (max-width:900px){
  .site-connections__inner{flex-wrap:wrap;gap:24px;}
  .site-connections__line{display:none;}
}
@media (max-width:600px){
  .site-connections{
    margin:56px 0 0;
  }
  .site-connections__inner{flex-direction:column;gap:18px;padding:28px 20px 24px;}
}
@media (max-width:780px){
  .site-connections{margin:48px 0 24px;}
  .site-connections__inner{padding:24px 20px;}
  .site-connections a{font-size:.84rem;}
}

.hero-inner{display:grid;grid-template-columns:0.8fr 1.2fr;gap:32px;align-items:center;justify-items:center;text-align:center}
@media (max-width:980px){.hero-inner{grid-template-columns:1fr}}

@media (max-width:1360px), (max-height:820px){
  .hero{align-items:flex-start;padding:calc(var(--nav-h) + 100px) 0 80px;}
  .hero-connections{
    position:relative;
    top:auto;
    left:auto;
    transform:none;
    margin:0 auto 36px;
    flex-wrap:wrap;
    justify-content:center;
    padding:0 clamp(12px, 4vw, 32px);
  }
  .hero-connections__line{display:none;}
  .hero-inner{margin-top:0;}
}

@media (max-width:980px){
  .hero{padding:calc(var(--nav-h) + 120px) 0 72px;}
  .hero-connections{gap:28px;}
}

@media (max-width:780px){
  .hero{padding:calc(var(--nav-h) + 40px) 0 140px;align-items:flex-start;}
  .hero-inner{display:flex;flex-direction:column;align-items:stretch;gap:32px;padding-inline:clamp(18px,6vw,32px);}
  .hero-col--text{align-items:flex-start;text-align:left;gap:16px;}
  .hero-cta{width:100%;flex-direction:column;align-items:stretch;gap:14px;}
  .hero-cta .btn-primary,
  .hero-cta .btn-outline{flex:1 1 auto;width:100%;justify-content:center;}
  .hero-col--panel{order:3;}
  .panel{width:100%;padding:22px 20px;box-shadow:var(--card-shadow-strong);}
  .panel-links{gap:18px;}
  .hero-connections{position:relative;top:auto;left:auto;transform:none;margin:0;padding-inline:clamp(18px,6vw,32px);width:100%;gap:18px;overflow-x:auto;scroll-snap-type:x mandatory;justify-content:flex-start;flex-direction:row;align-items:center;}
  .hero-connections::-webkit-scrollbar{display:none;}
  .hero-connections a{flex:0 0 auto;display:flex;flex-direction:row;align-items:center;gap:10px;padding:12px 16px;border-radius:999px;background:var(--surface-strong);border:1px solid var(--card-border);box-shadow:var(--shadow-1);scroll-snap-align:center;}
  .hero-connections__line,.hero-connections .dot{display:none;}
}

@media (max-width:640px){
  .hero-connections{gap:18px;justify-content:center;}
  .hero-connections a{padding:0;width:52px;height:52px;justify-content:center;}
  .hero-connections a::before{width:28px;height:28px;}
  .hero-connections__label{display:none;}
  .hero-cta{flex-direction:column;align-items:center;}
}

@media (max-width:520px){
  .hero{padding:calc(var(--nav-h) + 24px) 0 138px;}
  .hero-inner{gap:26px;}
  .hero-connections{gap:12px;}
  .hero-connections a{width:48px;height:48px;}
  .hero-connections a::before{width:26px;height:26px;}
  .hero-cta{gap:12px;}
}

.eyebrow{
  letter-spacing:.26em;
  text-transform:uppercase;
  font-weight:800;
  font-size:.86rem;
  color:var(--accent-strong);
}
.hero-title{font-family:'Playfair Display',Georgia,serif;font-weight:700;font-size:clamp(2.6rem,6vw,4.6rem)}
.typed-wrap{margin-top:14px;font-weight:800;font-size:clamp(1.25rem,3.2vw,1.85rem)}
/* Typed words: soft accent + blinking caret, caret follows text */
.typed{
  color:var(--accent-soft);display:inline-block;white-space:nowrap;
  border-right:2px solid rgba(31,35,39,.95);padding-right:8px;animation:blink .9s steps(1) infinite;
}
@keyframes blink{50%{border-color:transparent}}
.hero-cta{
  margin-top:32px;
  display:flex;
  flex-wrap:wrap;
  gap:16px;
  justify-content:center;
}

.hero-cta .btn-primary,
.hero-cta .btn-outline{
  flex:1 1 clamp(280px, 30vw, 360px);
  max-width:360px;
  justify-content:center;
  padding-inline:clamp(32px, 6vw, 44px);
  text-align:center;
}

@media (max-width:640px){
  .hero-cta .btn-primary,
  .hero-cta .btn-outline{
    flex:1 1 100%;
  }
}

/* -------------------- Quick-nav panel (Explore) -------------------- */
.hero-col--panel{display:flex;justify-content:center}
.hero-col--text{display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px}
.panel{
  position: relative;width:min(820px,100%);border-radius: var(--radius-xl);
  border:1px solid var(--card-border);
  background:linear-gradient(180deg, var(--surface-bright) 0%, rgba(255,255,255,.92) 55%, rgba(255,255,255,.86) 100%);
  box-shadow:var(--card-shadow-strong);padding:26px 20px;overflow:hidden; /* clip any effects */
  backdrop-filter:blur(14px) saturate(1.08);
  margin:0 auto;
}
.panel::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;box-shadow:inset 0 1px 0 rgba(255,255,255,.35)}
.panel-title{
  margin:0 0 12px;text-align:center;font-weight:900;letter-spacing:.08em;text-transform:uppercase;
  font-size:clamp(1.15rem,2.4vw,1.5rem);
}
/* More vertical spacing between buttons */
.panel-links{display:grid;grid-template-columns:1fr;gap:28px;margin-top:10px}

@media (min-width:600px){
  .panel-links{grid-template-columns:repeat(2,minmax(0,1fr));}
}

@media (min-width:1024px){
  .panel-links{grid-template-columns:1fr;}
}

/* Explore buttons: subtle fade + white text on hover */
.panel-link{
  position:relative;
  display:block;
  text-align:center;
  padding:16px 18px;
  border-radius:999px;
  background:var(--surface-bright);
  border:1px solid color-mix(in srgb, var(--accent-strong) 35%, transparent);
  font-weight:800;
  color:var(--slate-strong);
  box-shadow:var(--shadow-1);
  transition:background-color .22s ease, color .18s ease, transform .18s ease, box-shadow .18s ease, border-color .22s ease;
}
.panel-link:hover,
.panel-link:focus-visible{
  background:var(--accent-sheen);
  color:#fff;
  border-color:color-mix(in srgb, var(--accent-strong) 65%, transparent);
  transform:translateY(-1px);
  box-shadow:0 26px 48px var(--accent-halo-strong);
}
/* Disable old refract filter for panel links */
.refract-armed .panel-link:hover{ filter:none }
.refract-filter{position:absolute;width:0;height:0}

/* -------------------- About -------------------- */
.section.about{background:var(--paper);border-top:1px solid var(--line);scroll-margin-top:var(--nav-h)}
/* Full-width slate banner for About heading */
.section-band{position:relative;inset:0;background:var(--slate-strong);color:#fff}
.section-band .band-inner{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 24px;
  display:flex;
  justify-content:center;
}
.section-band h2{
  margin: 0;
  font-weight: 900;
  letter-spacing: .06em;
  font-size: clamp(2rem, 4.4vw, 3rem); /* larger banner title */
  color: #fff;
  text-align:center;
}

/* Top row: portrait + blurb */
.about-grid{display:grid;grid-template-columns:0.9fr 1.1fr;gap:34px;align-items:start;justify-items:center;text-align:center;padding:48px 0 68px}
.portrait{max-width:340px;border-radius:28px;overflow:hidden;background:var(--paper);box-shadow:var(--shadow-1);border:1px solid var(--line);margin:0 auto}
.portrait img{width:100%;height:auto;display:block}
@media (max-width:980px){.portrait{max-width:320px}}
@media (max-width:520px){.portrait{max-width:280px}}

.about-body{
  padding:32px clamp(24px,3vw,36px);
  border-radius:24px;
  background:var(--surface-strong);
  border:1px solid var(--card-border);
  box-shadow:var(--card-shadow);
  text-align:left;
} /* aligns text block with top of photo */
.about-subtitle{
  margin:0 0 12px; font-weight:900; letter-spacing:.06em; text-transform:uppercase;
  color:var(--slate-strong); font-size:clamp(1.05rem,2vw,1.28rem);
}
.about-blurb{ margin:0 0 14px; color:var(--slate); }

/* Buttons below blurb */
.about-cta{
  display:flex;gap:12px;flex-wrap:wrap;margin-top:36px;justify-content:center;
}

/* Highlights below the intro */
.about-highlights{
  display:grid;
  grid-template-columns:minmax(0, 1.1fr) minmax(0, 0.95fr);
  gap:32px;
  align-items:start;
  justify-items:stretch;
  padding:48px 0 20px;
}

@media (max-width:1080px){
  .about-highlights{grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);}
}

@media (max-width:980px){
  .about-highlights{grid-template-columns:1fr;gap:28px;}
}

@media (max-width:780px){
  .about-grid{grid-template-columns:1fr;gap:28px;justify-items:stretch;text-align:left;padding:28px 0 44px;max-width:520px;margin:0 auto;}
  .about-body{padding:26px 24px;}
  .about-cta{flex-direction:column;align-items:stretch;gap:14px;}
  .about-cta .btn-primary,
  .about-cta .btn-outline{width:100%;justify-content:center;}
  .about-highlights{grid-template-columns:1fr;gap:24px;text-align:left;padding:12px 0 24px;max-width:620px;margin:0 auto;width:100%;}
  .workflow{width:100%;}
  .skills-panel{width:100%;padding:24px 22px;margin:0 auto;}
}

.block-title{
  margin:0 0 12px; font-weight:900; letter-spacing:.06em; text-transform:uppercase;
  font-size:clamp(1rem,1.9vw,1.2rem); color:var(--slate-strong);
}

.workflow{justify-self:stretch;width:100%;display:flex;flex-direction:column;align-items:flex-start;gap:18px;text-align:left}
.workflow .block-title{text-align:left}

/* Workflow cards */
.workflow-steps{
  margin:0;
  padding:12px 0 12px 32px;
  list-style:none;
  display:grid;
  gap:32px;
}

.step{
  position:relative;
  display:grid;
  grid-template-columns:auto 1fr;
  gap:18px;
  align-items:flex-start;
  padding:22px 24px 22px 28px;
  border-radius:18px;
  border:1px solid var(--card-border);
  background:var(--surface-strong);
  box-shadow:var(--card-shadow);
  backdrop-filter:blur(14px);
  margin:0;
  width:100%;
  max-width:620px;
  transition:transform .2s ease, box-shadow .2s ease;
  text-align:left;
  z-index:1;
  overflow:visible;
}
.step::before,
.step::after{
  content:"";
  position:absolute;
  left:calc(28px + 22px);
  width:2px;
  background:rgba(43,47,51,.18);
  pointer-events:none;
  z-index:0;
}
.step::before{
  top:-32px;
  height:32px;
}
.step::after{
  bottom:-32px;
  height:32px;
}
.step:first-child::before{display:none}
.step:last-child::after{display:none}
.step:hover{ box-shadow:0 28px 52px rgba(0,0,0,.16); transform:translateY(-4px); }
.badge{
  width:44px;
  height:44px;
  border-radius:999px;
  display:grid;
  place-items:center;
  font-weight:900;
  font-size:1rem;
  background:var(--accent-soft);
  color:#fff;
  box-shadow:inset 0 0 0 2px rgba(255,255,255,.35), 0 4px 10px rgba(0,0,0,.15);
  border:1px solid rgba(43,47,51,.2);
  position:relative;
  z-index:2;
}

.step-body{text-align:left}
.step-body h4{ margin:0 0 6px; font-size:1.05rem; color:var(--slate-strong); }
.step-body p{ margin:0; color:var(--muted); }

@media (max-width:640px){
  .workflow{align-items:flex-start;}
  .workflow-steps{padding-left:20px;gap:28px;}
  .step{padding:20px 20px 20px 24px;max-width:100%;}
  .step::before,
  .step::after{left:calc(24px + 22px);}
}

@media (max-width:780px){
  .workflow-steps{
    display:grid;
    grid-template-columns:1fr;
    padding:0;
    gap:22px;
    overflow:visible;
  }
  .workflow-steps::-webkit-scrollbar{display:none;}
  .step{
    min-width:0;
    padding:20px 20px 20px 24px;
  }
  .step::before,
  .step::after{display:none;}
}

/* Core skills + interests panel */
.skills-panel{
  position:relative;
  display:flex;
  flex-direction:column;
  gap:42px;
  border:1px solid var(--card-border);
  border-radius:var(--radius-xl);
  background:var(--surface-strong);
  box-shadow:var(--card-shadow);
  backdrop-filter:blur(16px);
  padding:32px clamp(22px,4vw,32px);
  width:100%;
  max-width:520px;
  text-align:left;
}
.skills-panel__group{display:flex;flex-direction:column;gap:22px;}

.interests-section{
  margin-top: clamp(16px, 3vw, 32px);      /* smaller gap above */
  padding-bottom: clamp(36px, 8vw, 96px);  /* this won't collapse */
}

.interests-surface{
  border-radius:28px;
  border:1px solid rgba(43,47,51,.12);
  background:linear-gradient(145deg, rgba(255,255,255,.96), rgba(241,242,244,.94));
  box-shadow:0 26px 52px rgba(0,0,0,.14);
  padding:clamp(26px,5vw,42px);
  display:flex;
  flex-direction:column;
  gap:20px;
}

.interests-header{display:flex;flex-direction:column;gap:12px;max-width:620px;}
.interests-lede{margin:0;color:var(--muted);line-height:1.6;}

.skill-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
  gap:18px;
}

.info-card{
  padding:22px 20px 24px;
  border-radius:18px;
  border:1px solid var(--card-border);
  background:var(--surface-bright);
  box-shadow:var(--card-shadow);
  display:flex;
  flex-direction:column;
  gap:10px;
  transition:transform .18s ease, box-shadow .18s ease;
}

.info-card:hover,
.info-card:focus-within{
  transform:translateY(-4px);
  box-shadow:0 26px 48px rgba(0,0,0,.16);
}

.info-card h4{margin:0;font-size:1.02rem;font-weight:700;color:var(--slate-strong);}
.info-card p{margin:0;color:var(--muted);line-height:1.55;}

.interest-grid{
  display:flex;
  flex-wrap:wrap;
  gap:12px 14px;
  justify-content:center;      /* center the row */
  text-align:center;           /* optional: center text if they wrap */
}

.interest-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 16px;
  border-radius:999px;
  border:1px solid var(--card-border);
  background:var(--surface-strong);
  font-size:.9rem;
  font-weight:600;
  letter-spacing:.02em;
  color:var(--slate-strong);
  box-shadow:0 12px 24px rgba(0,0,0,.1);
}

@media (max-width:540px){
  .skills-panel{
    padding:26px 22px 28px;
    gap:32px;
  }

  .info-card{padding:20px 18px 22px;}
  .interests-surface{padding:24px 22px 28px;}
}

/* -------------------- Footer -------------------- */
.footer{background:var(--paper);border-top:1px solid var(--line)}
.footer-inner{padding:18px 24px;display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;color:#737a82}
@media (max-width:780px){
  .footer-inner{padding:18px clamp(18px,6vw,28px) calc(18px + env(safe-area-inset-bottom));flex-direction:column;align-items:flex-start;gap:6px;}
}
/* -------------------- Utility -------------------- */
.noscript{background:rgba(0,0,0,.05);border:1px dashed rgba(0,0,0,.12);border-radius:12px;padding:10px 14px;margin:16px 0}

/* -------------------- Mobile dock navigation -------------------- */
.mobile-dock{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:12px clamp(16px,6vw,28px) calc(12px + env(safe-area-inset-bottom));
  height:var(--dock-h);
  background:var(--surface-strong);
  border-top:1px solid var(--card-border);
  box-shadow:0 -10px 30px rgba(0,0,0,.12);
  backdrop-filter:blur(18px) saturate(1.08);
  z-index:120;
}

.mobile-dock__link{
  position:relative;
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
  padding:10px 12px;
  border-radius:18px;
  font-size:.72rem;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#4a5057;
  transition:color .18s ease, background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.mobile-dock__link::before{
  content:"";
  display:block;
  width:20px;
  height:20px;
  opacity:.84;
  transition:opacity .2s ease, transform .2s ease;
}

.mobile-dock__label{white-space:nowrap;}

.mobile-dock__link[aria-current="page"],
.mobile-dock__link:focus-visible{
  background:rgba(43,47,51,.08);
  color:var(--slate-strong);
  box-shadow:0 8px 18px rgba(0,0,0,.12);
}

.mobile-dock__link:hover{
  background:rgba(43,47,51,.06);
  color:var(--slate-strong);
  transform:translateY(-2px);
}

.mobile-dock__link:hover::before,
.mobile-dock__link[aria-current="page"]::before{
  opacity:1;
  transform:translateY(-1px);
}

.mobile-dock__link--home::before{
  background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%234a5057' stroke-width='1.8'><path d='M4 11.5 12 5l8 6.5'/><path d='M6 10v9h12v-9'/></svg>") center/contain no-repeat;
}

.mobile-dock__link--about::before{
  background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%234a5057' stroke-width='1.8'><circle cx='12' cy='7' r='4'/><path d='M5 21c0-3.3 2.7-6 6-6h2c3.3 0 6 2.7 6 6'/></svg>") center/contain no-repeat;
}

.mobile-dock__link--portfolio::before{
  background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%234a5057' stroke-width='1.8'><rect x='3' y='4' width='18' height='16' rx='3'/><path d='M16 21v-3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3'/></svg>") center/contain no-repeat;
}

.mobile-dock__link--resume::before{
  background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%234a5057' stroke-width='1.8'><path d='M7 3h10a2 2 0 0 1 2 2v14l-4-3-4 3-4-3v-14a2 2 0 0 1 2-2z'/><path d='M9 7h6'/><path d='M9 11h6'/></svg>") center/contain no-repeat;
}

@media (min-width:768px){
  body{padding-bottom:0;}
  .mobile-dock{display:none;}
}

@media (max-width:420px){
  :root{--dock-h:70px;}
  .mobile-dock{height:var(--dock-h);gap:4px;padding:10px clamp(12px,5vw,18px) calc(10px + env(safe-area-inset-bottom));}
  .mobile-dock__link{font-size:.64rem;padding:8px 10px;}
  .mobile-dock__link::before{width:18px;height:18px;}
}

/* -------------------- Reduced Motion -------------------- */
@media (prefers-reduced-motion:reduce){
  *{animation:none !important;transition:none !important;filter:none !important}
}

/* === Fix alignment on hero + about (overrides) === */

/* Stop global centering in the hero grid */
.hero-inner{
  justify-items: stretch;      /* was center */
  text-align: initial;         /* let children control their own alignment */
}

/* Left-align the text column and keep the CTA left */
.hero-col--text{
  align-items: flex-start;     /* was center */
  text-align: left;            /* was center */
}
.hero-cta{ justify-content: flex-start; }

/* Keep the typewriter prefix fixed on the left */
.typed-wrap{
  display: inline-flex;        /* keeps prefix + typed on one line without centering shift */
  align-items: baseline;
  text-align: left;
}

/* About-me: left-align grid cell and text */
.about-grid{
  justify-items: start;        /* was center */
  text-align: left;            /* was center */
}
.about-body{ text-align: left; }
.about-cta{ justify-content: flex-start; }

/* On narrow screens, re-center if you prefer the original stacking look */
@media (max-width: 640px){
  .hero-col--text{ align-items: flex-start; text-align: left; }
  .hero-cta{ justify-content: flex-start; }
  .about-grid{ justify-items: stretch; text-align: left; }
  .about-cta{ justify-content: flex-start; }
}

/* Explore panel: dial width back */
.panel{
  width: min(480px, 100%);   /* was 560px */
}

/* Keep hero CTAs on one row on roomy screens */
@media (min-width: 760px){
  .hero-cta{
    flex-wrap: nowrap;          /* prevent stacking */
    justify-content: flex-start;
  }
  .hero-cta .btn-primary,
  .hero-cta .btn-outline{
    flex: 0 0 auto;             /* size to content */
    max-width: none;            /* remove 360px clamp if present */
  }
}

/* Skills graph container â€” remove hard box/border */
.skills, .skills-panel, .skills-card, .skills-surface {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Canvas itselfâ€”no outlines/borders, transparent bg */
#skillsGraph{
  display: block;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
}
