
/* =========================================================
   UI TOKEN BASE (chips, pills, badges, etc.)
   ========================================================= */
.ui-token{
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  will-change: transform;
}

@media (hover:hover) and (pointer:fine){
  .ui-token:hover{
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(15,23,42,.08);
    border-color:#d1d5db;
  }
}

@media (prefers-reduced-motion: reduce){
  .ui-token{ transition:none; }
}

.section-title{
  display:flex;
  align-items:center;
  font-size: clamp(26px, 3.8vw, 38px);  /* 🔥 responsive size */
  font-weight: 700;
  line-height: 1.15;
    margin-bottom: 6px;   /* tighten spacing below */
}

#contact .section-title{
  margin-top: 2px;   /* new value */
  font-size: clamp(24px, 3.2vw, 34px);
}


/* =========================================================
   HERO
   ========================================================= */
.hero{
  min-height: calc(100svh - var(--header-h) - var(--ticker-h, 0px));
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(40px, 5vw, 80px);

  /* vertical centering fix */
  align-items: center;
  align-content: center;   /* 🔥 important */
  padding-block: 40px;     /* breathing room */
}


.hero > section{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:22px;
  max-width:650px;
}


/* =========================================================
   Eyebrow
   ========================================================= */
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;

  padding:5px 12px;          /* slightly tighter */
  width: fit-content;        /* 🔥 key line */
  max-width: max-content;    /* prevents stretch */
  
  background:var(--panel);
  border:1px solid #e5e7eb;
  color:var(--pop);
  border-radius:999px;       /* cleaner pill look */
  font-weight:600;
  white-space:nowrap;        /* stops wrapping */

  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  animation: eyebrowIn .45s ease-out both;
  animation-delay:.1s;
}


@keyframes eyebrowIn {
  from { opacity:0; transform:translateY(6px) scale(.98); }
  to   { opacity:1; transform:translateY(0) scale(1); }
}

@media (hover:hover) and (pointer:fine){
  .eyebrow:hover{
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(15,23,42,0.10);
    border-color:#d1d5db;
  }
}

/* =========================================================
   HERO IMAGE EXPANSION ON LARGE SCREENS
   ========================================================= */
@media (min-width: 1200px){

  .hero{
    grid-template-columns: 1fr 0.7fr; /* give image more space */
  }

  .photo-card{
    width: 115%;            /* expand past column */
    margin-left: -8%;       /* pull toward left edge */
  }

  .photo-card .frame{
    height: min(58vh, 640px);
  }
}

/* =========================================================
   TEXT
   ========================================================= */
h1{
  font-size: clamp(32px, 6vw, 64px);
  line-height:1.06;
  margin:0px;
}

.lead{
  color:var(--muted-ink);
  max-width:58ch;
  font-size: clamp(15px, 2.2vw, 18px);
  padding: 0px;
  margin-top: 0px;
  margin-bottom: 12px;
}



/* =========================================================
   BUTTONS
   ========================================================= */
.actions{display:flex; gap:12px; margin:0px}

.btn{
  appearance:none;
  border:none;
  padding:12px 18px;
  border-radius:14px;
  font-weight:800;
  cursor:pointer;
}

.btn.primary{background:var(--accent); color:#fff}
.btn.ghost{background:transparent; color:var(--ink); border:2px solid var(--line)}


/* =========================================================
   METRICS
   ========================================================= */
.metrics{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:16px;
  max-width:480px;
}

.metric{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:16px;
  padding:14px 16px;
  text-align:center;
  transition: transform .2s ease, box-shadow .2s ease;
}

.metric b{font-size:22px; display:block}
.metric span{color:var(--muted-ink)}

@media (hover:hover) and (pointer:fine){
  .metrics .metric:hover{
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(15,23,42,0.10);
  }
}


/* =========================================================
   PHOTO CARD
   ========================================================= */
.photo-card{
  position:relative;
  background:linear-gradient(180deg,#f9fafb,#eef2ff);
  border:1px solid var(--line);
  border-radius:24px;
  box-shadow:var(--shadow);
  padding:14px;
  overflow:hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.photo-card .frame{
  border-radius:18px;
  background:#dbe1f3;
  height:min(62vh,560px);
  display:flex;
  align-items:flex-end;
  justify-content:center;
  overflow:hidden;
}

.photo-card img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 15%;
  filter:grayscale(100%);
}
/* =========================================================
   HERO STACK ON SMALL SCREENS
   ========================================================= */
/* =========================================================
   HERO: tight stacked layout on small screens
   ========================================================= */
@media (max-width: 900px){

  /* overall hero becomes a tight vertical stack */
  .hero{
    grid-template-columns: 1fr;
    gap: 22px;                               /* tighter than desktop */
    margin-top: 14px;
    min-height: unset;                        /* stop forcing 100vh on mobile */
  }

  .hero > section{
    max-width: 100%;
    gap: 16px;                                /* tighten internal spacing */
  }

  /* tighten text blocks */


  .actions{ margin: 10px 0 10px; }

  /* metrics: compact and wrap nicely */
  .metrics{
    max-width: none;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0,1fr));
  }
  .metric{
    padding: 10px 10px;
    border-radius: 14px;
  }
  .metric b{ font-size: 18px; }
  .metric span{ font-size: 13px; }

  /* if it gets REALLY narrow, go 2 columns */
  @media (max-width: 520px){
    .metrics{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  }

  /* photo card: full width, centered, no “tiny card” feel */
  .photo-card{
    width: 100%;
    max-width: none;
    margin: 8px 0 0;
    padding: 12px;
    border-radius: 22px;
  }

.photo-card .frame{
    width: 100%;
    height: 34vh;            /* 🔥 controls image height */
    max-height: 320px;       /* prevents giant tablets */
    overflow: hidden;
  }

  .photo-card img{
    width: 100%;
    height: 100%;
    object-fit: cover;       /* crop top/bottom */
    object-position: center 30%; /* keeps face in frame */
  }
  /* pills: prevent awkward overlap on small widths */
  .pill.top{
    top: 14%;
    max-width: min(92%, 22ch);
  }
  .pill.left{ left: 4%; bottom: 10%; }
  .pill.right{ right: 4%; bottom: 16%; }
}

/* =========================================================
   EXTRA TIGHT: phones
   ========================================================= */
@media (max-width: 420px){
  .hero{ gap: 16px; }
  .actions{ margin: 8px 0; }
  .btn{ padding: 11px 16px; border-radius: 14px; }
  .photo-card{ padding: 10px; }
  .pill{ padding: 7px 10px; font-size: 13px; }
}


/* =========================================================
   PILLS (use class="pill ui-token")
   ========================================================= */
.pill{
  position:absolute;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:8px 12px;
  background:var(--pill);
  border-radius:999px;
  box-shadow:var(--shadow);
  font-weight:700;
  color:#111827;
  text-align:center;
  line-height:1.1;
}

.pill.top{ top:16%; left:50%; transform:translate(-50%,-50%) translateY(var(--lift)); max-width:min(88%,18ch); white-space:normal; text-wrap:balance; hyphens:auto; }
.pill.right{ right:6%; bottom:24%; transform: translateY(var(--lift)); }
.pill.left{  left:6%;  bottom:16%; transform: translateY(var(--lift)); }

.photo-card .pill{ --lift:0px; }

@media (hover:hover) and (pointer:fine){
  .photo-card:hover .pill{ --lift:-2px; box-shadow:0 8px 18px rgba(15,23,42,0.08); border-color:#d1d5db; }
}


/* =========================================================
   SKILLS (use class="chip ui-token")
   ========================================================= */
.skills-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap:14px;
  grid-auto-rows:96px;
}

.chip{
  height:100%;
  box-sizing:border-box;
  display:flex;
  align-items:center;
  justify-content:center;
}

.chip-label{
  padding:12px 16px;
  text-align:center;
  font-weight:700;
  font-size:16px;
  line-height:1.25;
  white-space:normal;
  word-break:break-word;
}


/* =========================================================
   CONTACT
   ========================================================= */
.contact{
  background:var(--nav-bg);
  border:1px solid var(--line);
  border-radius:22px;
  padding:18px;
  box-shadow:var(--shadow);
}

.contact form{display:grid; gap:12px;}
.contact label{display:grid; gap:6px; font-weight:700}
.contact input,.contact textarea{
  padding:12px 14px;
  border-radius:12px;
  border:1px solid var(--line);
  background:var(--input-field);
  font:inherit;
}

.contact textarea{min-height:120px; resize:vertical}
.contact button{justify-self:start}


/* =========================================================
   FOOTNOTE
   ========================================================= */
.footnote{
  font-size:0.9rem;
  color:var(--muted-ink);
  margin-top:-0.1rem;
  margin-bottom:0.7rem;
  transition: color 140ms ease, transform 140ms ease;
}

.footnote:hover{
  color:var(--ink);
  transform:translateX(2px);
}

.site-footer{
  margin-top: 18px;            /* ✅ tight */
  padding: 0 16px 36px;
  text-align: center;
  font-size: 15px;
  color: var(--muted-ink);
}



.site-footer strong{
  color:var(--ink);
  font-weight:600;
}




.contact{
  margin-top: 100px;   /* was 18px */
}
/* --- outward motion system (doesn't override your positioning transforms) --- */
.photo-card .pill{
  --dx: 0px;
  --dy: 0px;
  transition: transform 320ms cubic-bezier(.22,.9,.2,1), box-shadow 320ms cubic-bezier(.22,.9,.2,1);
  will-change: transform;
}

/* preserve each pill's positioning transform, then add outward offset */
.pill.top{
  top:16%;
  left:50%;
  transform: translate(-50%,-50%) translate(var(--dx), var(--dy)) translateY(var(--lift));
  max-width:min(88%,18ch);
  white-space:normal;
  text-wrap:balance;
  hyphens:auto;
}

.pill.right{
  right:6%;
  bottom:24%;
  transform: translate(var(--dx), var(--dy)) translateY(var(--lift));
}

.pill.left{
  left:6%;
  bottom:16%;
  transform: translate(var(--dx), var(--dy)) translateY(var(--lift));
}

/* on hover: push them outward radially (tweak numbers) */
@media (hover:hover) and (pointer:fine){
  .photo-card:hover .pill.top   { --dx:  0px;  --dy: -28px; }
  .photo-card:hover .pill.right { --dx:  34px; --dy:  14px; }
  .photo-card:hover .pill.left  { --dx: -34px; --dy:  14px; }

  /* keep your subtle lift if you want it too */
  .photo-card:hover .pill{ --lift:-2px; box-shadow:0 8px 18px rgba(15,23,42,0.08); border-color:#d1d5db; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce){
  .photo-card .pill{ transition:none; }
}
