/* v2 preview (9/27): professional pass on the home page. Test site only (test-only.txt). */
:root {
  --ink: #16202e;
  --ink-2: #4a5566;
  --ink-3: #7a8494;
  --line: #e3e7ee;
  --tint: #f4f6f9;
  --accent: #1d3a6e;
  --accent-2: #2b5aa8;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #fff;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* top bar */
.bar { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 10; }
.bar .wrap { display: flex; justify-content: space-between; align-items: center; height: 56px; }
.bar .brand { font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.bar .links a { color: var(--ink-2); font-size: 14px; font-weight: 500; margin-left: 22px; }
.bar .links a:hover { color: var(--ink); text-decoration: none; }
.preview-note { background: #fff8dc; font-size: 13px; color: #6b5a14; text-align: center; padding: 6px 12px; }

/* hero */
.hero { padding: 56px 0 40px; }
.hero .wrap { display: flex; gap: 32px; align-items: center; }
.hero img { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; flex: none; border: 1px solid var(--line); }
.hero h1 { font-size: 40px; line-height: 1.1; margin: 0 0 6px; letter-spacing: -.02em; }
.hero .degree { font-size: 18px; color: var(--ink-2); margin: 0 0 4px; }
.hero .loc { font-size: 14px; color: var(--ink-3); margin: 0 0 14px; }
.hero .pitch { font-size: 17px; margin: 0 0 18px; max-width: 620px; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-block; padding: 8px 16px; border-radius: 6px; font-size: 14px; font-weight: 600; border: 1px solid var(--line); color: var(--ink); background: #fff; }
.btn:hover { text-decoration: none; border-color: var(--ink-3); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: #142b54; }

/* sections */
section { padding: 36px 0; border-top: 1px solid var(--line); scroll-margin-top: 56px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 18px; }
.lede { color: var(--ink-3); font-size: 14px; margin: -10px 0 18px; }
@media (hover: none) { .lede { display: none; } }

/* project cards: three across, flip top to bottom */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { position: relative; display: grid; perspective: 1400px; }
.face { grid-area: 1 / 1; border: 1px solid var(--line); border-radius: 10px; background: #fff; backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform .55s ease; }
.front { padding: 20px 20px 18px; display: flex; flex-direction: column; }
.front .org { font-size: 12px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 6px; }
.front h3 { font-size: 18px; line-height: 1.3; margin: 0 0 8px; letter-spacing: -.01em; }
.front h3 a { color: var(--ink); }
.front .result { font-size: 14px; font-weight: 600; color: var(--accent); margin: 0 0 10px; }
.front p.desc { font-size: 14.5px; color: var(--ink-2); margin: 0 0 14px; flex: 1; }
.front .more { font-size: 14px; font-weight: 600; margin-top: 12px; }
.back { transform: rotateX(-180deg); overflow: hidden; display: block; position: relative; background: #111; text-decoration: none; }
.back.light { background: #fff; }
.back img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.back.light img { object-fit: contain; padding: 14px; }
.back.fit img { object-fit: contain; }
.back.fit img.fill { object-fit: cover; filter: blur(14px) brightness(.8); transform: scale(1.15); }
.back span { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 18px 14px; color: #fff; font-weight: 600; font-size: 15px; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
@media (hover: hover) {
  .card:hover .front, .card:has(.back:focus-visible) .front { transform: rotateX(180deg); }
  .card:hover .back, .card:has(.back:focus-visible) .back { transform: rotateX(0deg); }
}
@media (hover: none) { .back { display: none; } }
@media (prefers-reduced-motion: reduce) { .face { transition: none; } }

.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 12.5px; line-height: 1.3; padding: 4px 9px; border-radius: 999px; background: var(--tint); color: var(--ink-2); border: 1px solid var(--line); }

/* experience timeline */
.role { display: grid; grid-template-columns: 1fr auto; column-gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.role:last-child { border-bottom: 0; }
.role h3 { font-size: 16px; margin: 0; }
.role .title { color: var(--ink-2); font-size: 15px; margin: 0 0 6px; }
.role .when { color: var(--ink-3); font-size: 14px; white-space: nowrap; }
.role p.what { grid-column: 1 / -1; margin: 0; font-size: 15px; color: var(--ink-2); }
.role .links { grid-column: 1 / -1; font-size: 14px; margin-top: 6px; }

/* skills */
.skillrow { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: start; }
.skillrow:last-child { border-bottom: 0; }
.skillrow h4 { margin: 3px 0 0; font-size: 14px; color: var(--ink); }
.honor { margin-top: 18px; font-size: 15px; color: var(--ink-2); }

/* leadership */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.two h3 { font-size: 16px; margin: 0 0 10px; }
.two ul { margin: 0; padding-left: 18px; }
.two li { margin-bottom: 6px; font-size: 15px; }
.two p { margin: 0 0 10px; font-size: 15px; color: var(--ink-2); }

footer { border-top: 1px solid var(--line); padding: 24px 0 48px; color: var(--ink-3); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

@media (max-width: 900px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .grid, .two { grid-template-columns: 1fr; }
  .hero { padding: 36px 0 28px; }
  .hero .wrap { flex-direction: column; align-items: flex-start; gap: 18px; }
  .hero img { width: 96px; height: 96px; }
  .hero h1 { font-size: 32px; }
  .bar .links a { margin-left: 14px; }
  .bar .links a.hide-sm { display: none; }
  .skillrow { grid-template-columns: 1fr; gap: 6px; }
  .role { grid-template-columns: 1fr; }
  .role .when { margin-bottom: 4px; }
}
