/* ---------- Theme tokens (light by default) ---------- */
:root{
    --bg:#fafafa;
    --panel:#fff;
    --text:#111;
    --muted:#6b7280;
    --line:#e5e7eb;
    --accent:#3897f0;
    --ring-outer:#e5e7eb;
    --ring-inner:#cbd5e1;
}
body{ background:var(--bg); color:var(--text); }

/* ---------- Base ---------- */
html,body{height:100%}
body{
    margin:0;
    font:14px/1.5 system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,"Apple Color Emoji","Segoe UI Emoji";
}
.page{ max-width:935px; margin:0 auto; padding:32px 16px 80px; }

/* ---------- Profile header ---------- */
.profile{
    display:grid;
    grid-template-columns: 180px 1fr;  /* avatar + main block */
    gap: 32px;
    align-items:center;
    margin-bottom: 12px;
}
.avatar{
    width:180px; height:180px; border-radius:50%;
    background: url('assets/ProfilePhoto.jpg') 80% center/150%  no-repeat;
    border:1px solid var(--line);
    transform: rotate(-6.5deg);
}
.profile-main{ display:grid; gap: 10px; }
.row{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.row-top{ align-items:center; gap:16px; }
.name{
    margin:0;
    font-size:36px;
    font-weight:800;
    letter-spacing:.2px;
}

/* Bio: tighter line spacing and small margins between rows */
.bio{ color:var(--muted); font-size:13px; }
.bio p{ margin:0 0 2px 0; }
.bio .title{ font-style:italic; }
.bio .bio2 {color: #000000c4; font-size: 16px;}

/* Buttons */
.btn{
    height:34px; padding:0 14px;
    border-radius:10px; border:1px solid var(--line);
    background:var(--panel); color:var(--text);
    display:inline-flex; align-items:center; justify-content:center;
    text-decoration:none; cursor:pointer;
    transition: background .15s ease, border-color .15s ease, transform .02s ease;
}
.btn:hover{ background:#f3f4f6; }
.btn.primary:hover{ background:#fff; color:#000; border-color:var(--ring-inner) }
.btn.ghost:hover{ background:#fff; color:#000; border-color:var(--ring-inner); }
.btn:active{ transform: translateY(1px); }
.btn.primary{ background:var(--accent); border-color:var(--accent); color:#fff; }
.btn.ghost{ background:var(--accent); border-color:var(--accent); color:#fff; }

.action-row{ display:flex; gap:10px; margin-top:10px; }

/* ---------- Highlights ---------- */
.highlights {
    display: flex;
    gap: 22px;
    align-items: flex-start;
    padding: 8px 2px 19px;
    overflow-x: auto;
}
.hl {
    width: 96px;
    text-align: center;
    color: var(--muted);
    user-select: none;
    text-decoration: none;
    display: block;
}

.hl:hover {
    color: var(--text);
}
.hl span {
    display: block;
    margin-top: 15px;
    font-size: 12px;
}

/* Story ring effect */
.hl-ring {
    width: 86px;
    height: 86px;
    margin: 0 auto;
    border-radius: 50%;
    display: grid;
    place-items: center;
    box-shadow:
      0 0 0 3px var(--panel), /* inner gap (panel color) */
      0 0 0 6px var(--ring-outer); /* outer ring */
}
.hl-circle {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: #111827 center/cover no-repeat;
    border: 1px solid var(--ring-inner);
}

/* Individual logo backgrounds for each highlight */
.hl:nth-child(1) .hl-circle {
    background-color: #FCFAEE; /* light yellow */
    background-image: url('assets/Greenhouse_Logo.png');
    background-position: center;
    background-size: 90%;
    background-repeat: no-repeat;
}

.hl:nth-child(2) .hl-circle {
    background-color: #CEEBFF; /* light blue */
    background-image: url('assets/LCH_Logo.png');
    background-position: center;
    background-size: 70%;
    background-repeat: no-repeat;
}

.hl:nth-child(3) .hl-circle {
    background-color: #FFE9E9; /* light pink */
    background-image: url('assets/MLAC_Logo.png');
    background-position: center;
    background-size: 60%;
    background-repeat: no-repeat;
}

/* ---------- Section tabs ---------- */
.tabs, .hl-tabs, .cs-tabs{ 
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 14px 0 12px;
    border-top: 1px solid var(--line); 
    border-bottom: 1px solid var(--line);
}
.hl-tabs { margin: 24px 0 23px; }
.cs-tabs { margin: 0.5px 0 8px; }

.tab, .hl-tab, .cs-tab{ 
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
}
.tab.active, .hl-tab--active, .cs-tab--active{ color: var(--text); }

/* ---------- Case Studies grid ---------- */
.cs-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
}

.cs-tile{
  position:relative;
  aspect-ratio:1/1;
  border:1px solid var(--line,#e5e7eb);
  border-radius:14px;
  overflow:hidden;
  background:linear-gradient(180deg,rgba(0,0,0,.04),rgba(0,0,0,.12));
}

.cs-tile.is-case{ cursor:pointer; }
.cs-tile__bg{
  position:absolute; inset:0;
  background-position:center; background-size:cover; background-repeat:no-repeat;
}
.cs-tile__icons {
    position: absolute;
    top: 8px;
    right: 8px;
    left: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
  
.cs-tile__icons img {
    height: clamp(16px, 2vw, 24px);
    width: clamp(16px, 2vw, 24px);
    display: block;
}

.cs-tile__overlay{
  position:absolute; inset:0; display:grid; place-items:center;
  color:#fff; font-weight:700; letter-spacing:.2px;
  background:rgba(0,0,0,.30);
  opacity:0; transition:opacity .15s ease;
}
.cs-tile:hover .cs-tile__overlay{ opacity:1; }

/* ---------- Footer ---------- */
.footer{ text-align:center; color:var(--muted); margin: 44px 0 16px; font-size:12px; }

/* ---------- Mobile (≤ 735px) ---------- */
@media (max-width:735px){
    .page{ padding: 0 0 60px; }
    .profile{ grid-template-columns: 1fr; gap:12px; padding: 16px; }
    .avatar{ width:96px; height:96px; }
    .name{ font-size:28px; }
    .highlights{ gap:16px; padding:12px 8px 4px; }
    .hl{ width:84px; }
    .hl-ring{ width:80px; height:80px; }
    .hl-circle{ width:72px; height:72px; }
    .grid{ gap:8px; }
}
