:root{
  --bg:#f6f4ef; --side:#fffdf8; --line:#ddd7ca;
  --ink:#1b1f2a; --text:#3e4350; --muted:#6b6f7a; --link:#b4501c; --accent:#b4501c; --panel:#ece8df;
  --hover:#ece8df; --chip:#fffdf8; --tip-bg:#1b1f2a; --tip-ink:#f6f4ef;
  --btn-bg:#1b1f2a; --btn-ink:#f6f4ef; --av:#1b1f2a; --av-ink:#f08a4b;
}

:root[data-theme="dark"]{
  --bg:#1b1f2a; --side:#232835; --line:#363c4b;
    --ink:#f6f4ef; --text:#c9ccd3; --muted:#8a8f9c; --link:#f08a4b; --accent:#f08a4b; --panel:#262b38;
    --hover:#262b38; --chip:#232835; --tip-bg:#f6f4ef; --tip-ink:#1b1f2a;
    --btn-bg:#f6f4ef; --btn-ink:#1b1f2a; --av:#2c3240; --av-ink:#f08a4b;
}

*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{font:15px/1.65 "Public Sans",system-ui,-apple-system,sans-serif;color:var(--text);background:var(--bg);-webkit-font-smoothing:antialiased}
a{color:inherit}
ul{list-style:none}
:focus-visible{outline:2px solid var(--link);outline-offset:2px;border-radius:4px}

/* Main column */
.main{min-height:100vh;padding:100px 24px 40px}
.col{max-width:600px;margin:0 auto}

.hero-av{width:52px;height:52px;border-radius:50%;background:var(--av);color:var(--av-ink);display:grid;place-items:center;font-weight:600;font-size:20px;font-family:"Space Grotesk",system-ui,sans-serif}
.hero-name{margin-top:20px;color:var(--ink);font-weight:600;font-family:"Space Grotesk",system-ui,sans-serif;letter-spacing:-.01em}
.hero-role{color:var(--text)}
.hero-role a{color:var(--link);font-weight:500;text-decoration:none}
.hero-role a:hover{text-decoration:underline}

section{margin-top:96px}
h2{font-size:15px;font-weight:600;color:var(--accent);margin-bottom:20px;letter-spacing:.12em;text-transform:uppercase}
section p{margin-bottom:14px;max-width:490px}
section p a{text-decoration:underline;text-decoration-color:var(--muted);text-underline-offset:3px}
section p a:hover{color:var(--ink);text-decoration-color:var(--ink)}

/* List rows */
.rows{margin:0 -12px}
.row{display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding:8px 12px;border-radius:8px;text-decoration:none}
.row:hover{background:var(--hover)}
.row-main{display:flex;flex-direction:column;min-width:0}
.row-title{color:var(--text);text-decoration:underline;text-decoration-color:var(--muted);text-underline-offset:3px}
.row:hover .row-title{color:var(--ink);text-decoration-color:var(--ink)}
.row-sub{font-size:13px;color:var(--muted)}
.row-aside{font-size:13px;color:var(--muted);white-space:nowrap;flex-shrink:0}
.rows-plain .row-aside{font-size:15px}

.links li+li{margin-top:22px}
.links a{text-decoration:underline;text-decoration-color:var(--muted);text-underline-offset:3px}
.links a:hover{color:var(--ink);text-decoration-color:var(--ink)}

.foot{display:flex;justify-content:space-between;align-items:center;margin-top:120px;font-size:13px;color:var(--muted)}
.theme{background:none;border:0;color:var(--ink);cursor:pointer;padding:6px;border-radius:50%;display:grid;place-items:center}
.theme:hover{background:var(--hover)}
.theme .moon{display:none}
:root[data-theme="dark"] .theme .sun{display:none}
:root[data-theme="dark"] .theme .moon{display:block}


/* Mobile */
@media (max-width:800px){
  .main{padding:48px 16px 32px}
  section{margin-top:64px}
  .rows{margin:0 -8px}
  .row{padding:8px}
  .row-aside{display:none}
}


/* Key metric label on case-study rows */
.row-metric{display:flex;flex-direction:column;align-items:flex-end;text-align:right;line-height:1.35}
.row-metric small{font-size:11px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--accent)}
.row:hover .row-metric{color:var(--ink)}
@media (max-width:800px){
  .row{flex-direction:column;align-items:flex-start;gap:6px}
  .row-aside.row-metric{display:flex;align-items:flex-start;text-align:left}
}

/* Display type (Space Grotesk) */
h1,h2,h3,h4,.row-title,.stat b,.finding .num{font-family:"Space Grotesk",system-ui,sans-serif}
.row-title{font-weight:500}

/* Tooltip on the role link */
.has-tip{position:relative}
.tip{position:absolute;left:0;top:calc(100% + 10px);z-index:10;width:320px;max-width:calc(100vw - 32px);padding:12px 14px;border-radius:10px;background:var(--tip-bg);color:var(--tip-ink);font-size:13px;line-height:1.5;font-weight:400;text-decoration:none;box-shadow:0 8px 24px -8px rgba(27,31,42,.35);opacity:0;visibility:hidden;transform:translateY(-4px);transition:opacity .15s,transform .15s,visibility .15s;pointer-events:none}
.tip::before{content:"";position:absolute;left:18px;top:-5px;width:10px;height:10px;background:var(--tip-bg);transform:rotate(45deg)}
.tip small{display:block;margin-top:16px;font-size:11px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:#f08a4b}
.has-tip:hover .tip,.has-tip:focus-visible .tip{opacity:1;visibility:visible;transform:none}
.hero-role a.has-tip:hover{text-decoration:none}
.hero-role a.has-tip{text-decoration:underline dotted;text-underline-offset:3px}
@media (prefers-reduced-motion:reduce){.tip{transition:none}}
.hero-photo{display:block;object-fit:cover;background:var(--panel)}
.hero-contact{margin-top:10px;font-size:13px;color:var(--muted);display:flex;flex-wrap:wrap;gap:4px 14px}
.hero-contact a{color:var(--muted);text-decoration:none}
.hero-contact a:hover{color:var(--ink);text-decoration:underline;text-underline-offset:3px}
.hero-contact b{font-weight:500;color:var(--text)}
.hero-photo{width:96px;height:96px}

/* How I work */
.principles{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.principles li,.about-cards li{display:flex;flex-direction:column;gap:4px}
.principles b,.about-cards b{color:var(--ink);font-weight:600;font-family:"Space Grotesk",system-ui,sans-serif}
.principles span,.about-cards span{font-size:13px;line-height:1.5;color:var(--muted)}
.pr-ic{width:30px;height:30px;fill:none;stroke:var(--accent);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;margin-bottom:8px}
.about-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:36px}
.about-cards li{background:var(--side);border:1px solid var(--line);border-radius:12px;overflow:hidden;padding-bottom:14px}
.about-cards img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;margin-bottom:8px}
.about-cards b,.about-cards span{padding:0 14px}
@media (max-width:600px){.principles{grid-template-columns:1fr;gap:18px}.about-cards{grid-template-columns:1fr}}

/* Kind words */
.kind-sub{color:var(--ink);font-family:"Space Grotesk",system-ui,sans-serif;font-weight:500;margin:-8px 0 16px}
.kind{display:grid;gap:12px}
.kind blockquote{margin:0;background:var(--side);border:1px solid var(--line);border-radius:12px;padding:16px;font-size:14px;color:var(--ink);line-height:1.6}
.kind cite{display:block;font-style:normal;font-size:12px;color:var(--muted);margin-top:10px}
