/* Clean grayscale CV one-pager */

:root {
  --ink: #111111;
  --text: #222222;
  --muted: #555555;
  --line: #d0d0d0;
  --paper: #ffffff;
  --wash: #f4f4f4;
  --side: #1a1a1a;
  --side-text: #f2f2f2;
  --side-muted: #bdbdbd;
  --accent: #1a5f7a;
  --accent-deep: #0f3d4f;
  --accent-soft: #e7f2f6;
  --max: 980px;
  --font: "IBM Plex Sans", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--wash);
}

a {
  color: inherit;
}

a:hover {
  text-decoration: underline;
}

.sheet {
  width: min(var(--max), calc(100% - 1.5rem));
  margin: 1.25rem auto 2.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

.site-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.85rem 1.35rem;
  border-bottom: 1px solid var(--line);
  background: #fafafa;
}

.site-brand {
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.site-brand-sub {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.site-nav {
  display: flex;
  gap: 1rem;
  font-size: 0.84rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  color: var(--ink);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 17.5rem;
  min-height: 70vh;
}

.main {
  padding: 1.5rem 1.65rem 1.75rem 1.5rem;
}

.side {
  background: var(--side);
  color: var(--side-text);
  padding: 1.45rem 1.15rem 1.75rem;
}

.intro {
  margin-bottom: 1.15rem;
}

h1 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 1.95rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.15;
}

.title {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

.proposition {
  margin: 0.55rem 0 0;
  max-width: 36rem;
  font-size: 0.93rem;
  color: var(--muted);
}

section {
  margin-bottom: 1.35rem;
}

h2 {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--line);
}

.main section > p {
  margin: 0 0 0.65rem;
  color: var(--text);
}

.note {
  font-size: 0.86rem;
  color: var(--muted) !important;
}

.role {
  margin-bottom: 1.1rem;
}

.role-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.role h3 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
}

.org {
  margin: 0.15rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

.org-note {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.role-focus,
.role-context {
  margin: 0.45rem 0 0.55rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.role-focus {
  color: var(--text);
}

.work-link {
  margin: 1.15rem 0 0.35rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.work-link .btn-hint {
  display: block;
  margin: 0.45rem 0 0;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
}

.work-link a,
a.btn-case {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.7rem 1.15rem;
  border: 1px solid var(--accent-deep);
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.work-link a:hover,
a.btn-case:hover {
  background: var(--accent-deep);
  text-decoration: none;
  color: #ffffff;
}

.work-link a:focus-visible,
a.btn-case:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.work-link a.btn-case-secondary,
a.btn-case-secondary {
  background: #ffffff;
  color: var(--accent-deep);
  border-color: var(--accent);
}

.work-link a.btn-case-secondary:hover,
a.btn-case-secondary:hover {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.capability-blocks {
  list-style: none;
  margin: 0;
  padding: 0;
}

.capability-blocks li {
  margin-bottom: 0.75rem;
}

.capability-blocks strong {
  display: block;
  color: var(--side-text);
  font-size: 0.86rem;
  margin-bottom: 0.15rem;
}

.capability-blocks span {
  display: block;
  color: var(--side-muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.foot a {
  color: var(--muted);
  text-decoration: none;
}

.foot a:hover {
  text-decoration: underline;
}

.role-meta {
  text-align: right;
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
}

.role-meta p {
  margin: 0;
}

.role ul {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
  color: var(--text);
}

.role li {
  margin-bottom: 0.28rem;
}

.edu-note {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.cases {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.95rem;
}

.cases li {
  margin: 0;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.cases li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.cases p {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.status-inline {
  display: inline-block;
  margin-left: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.cred-status {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cred-status li {
  margin-bottom: 0.65rem;
  color: var(--side-muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.cred-status span {
  display: block;
  color: var(--side-text);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.1rem;
}

.muted-note {
  font-size: 0.8rem !important;
  line-height: 1.4;
  opacity: 0.9;
}

.side-photo {
  width: 9rem;
  height: 9rem;
  max-width: none;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  border: 2px solid #e6e6e6;
  box-shadow: 0 0 0 1px #3a3a3a;
  background: #2a2a2a;
}

.side h2 {
  color: var(--side-text);
  border-bottom-color: #3a3a3a;
}

.side-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.side-list li {
  margin-bottom: 0.45rem;
  color: var(--side-muted);
  font-size: 0.9rem;
  padding-left: 0.85rem;
  position: relative;
}

.side-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #888;
}

.side-list.compact li {
  margin-bottom: 0.55rem;
  font-size: 0.86rem;
  line-height: 1.35;
}

.side-list a {
  color: var(--side-text);
  text-decoration: none;
}

.side-list a:hover {
  text-decoration: underline;
}

.side-copy {
  margin: 0 0 0.55rem;
  color: var(--side-muted);
  font-size: 0.88rem;
}

.side-copy a {
  color: var(--side-text);
}

.side-copy strong {
  color: var(--side-text);
  font-weight: 600;
}

.foot {
  padding: 0.7rem 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}

.foot p {
  margin: 0;
}

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

  /* Home: keep brand/hero first; do not promote the contact rail above the intro */
  .side {
    order: 0;
  }

  .side-photo {
    width: 7.5rem;
    height: 7.5rem;
  }

  .site-top {
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
  }

  .site-top > div {
    min-width: 0;
    flex: 1 1 auto;
  }

  .site-nav {
    flex: 0 0 auto;
    margin-left: 0;
    gap: 0.85rem;
  }

  .title {
    font-size: 0.88rem;
    line-height: 1.4;
  }

  .proposition {
    font-size: 0.9rem;
  }

  .main {
    padding: 1.25rem 1.15rem 1.5rem;
  }

  .work-link a,
  a.btn-case,
  a.btn-case-secondary {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .status-inline {
    display: block;
    margin: 0.25rem 0 0;
    margin-left: 0;
  }
}

@media (max-width: 560px) {
  body {
    overflow-x: hidden;
    background: var(--paper);
  }

  .sheet {
    width: 100%;
    margin: 0;
    border: 0;
    box-shadow: none;
  }

  .site-top {
    padding: 0.7rem 1rem;
  }

  .site-brand {
    font-size: 0.8rem;
  }

  .site-brand-sub {
    font-size: 0.72rem;
  }

  /* Site chrome already carries the brand; keep hero name but slightly tighter */
  h1 {
    font-size: 1.28rem;
  }

  .title {
    font-size: 0.82rem;
    line-height: 1.45;
  }

  .proposition {
    font-size: 0.88rem;
  }

  .role-head {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .role-meta {
    text-align: left;
    white-space: normal;
  }

  .main,
  .side {
    padding: 1.1rem 1rem 1.3rem;
  }

  .side-photo {
    width: 6.5rem;
    height: 6.5rem;
    margin: 0 auto 0.85rem;
    display: block;
  }

  .intro {
    margin-bottom: 1rem;
  }
}

@media print {
  body {
    background: #fff;
  }

  .sheet {
    width: 100%;
    margin: 0;
    border: 0;
    box-shadow: none;
  }

  a {
    color: var(--ink);
    text-decoration: none;
  }
}
