:root {
  color-scheme: light;
  --ink: #182c36;
  --secondary: #435963;
  --blue: #15556b;
  --blue-dark: #104454;
  --soft: #e8f2f4;
  --wash: #f4f8f9;
  --line: #cfdde1;
  --white: #fff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.58;
}
button, input, select, textarea { font: inherit; color: inherit; }
button, select, a { touch-action: manipulation; }
a { color: var(--blue); }
button, select, a.button { cursor: pointer; }
:focus-visible { outline: 3px solid #1686ac; outline-offset: 3px; }
[hidden] { display: none !important; }
.skip-link {
  position: absolute;
  top: -100px;
  left: 10px;
  padding: 9px 14px;
  background: var(--blue-dark);
  color: white;
  z-index: 10;
}
.skip-link:focus { top: 10px; }
.page { max-width: 1180px; margin: 0 auto; }
.hero { padding: 46px 48px 32px; }
.hero-introduction {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  grid-template-areas: "heading portrait" "intro portrait";
  column-gap: 32px;
  align-items: start;
}
.hero-heading { grid-area: heading; }
.hero-introduction .intro { grid-area: intro; }
.hero-portrait {
  grid-area: portrait;
  align-self: center;
  width: 190px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 12px;
  background: var(--soft);
}
.hero-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.28);
  transform-origin: 57% 23%;
}
.eyebrow, .section-label {
  margin: 0 0 9px;
  color: var(--blue);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .035em;
}
.eyebrow { text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(34px, 5vw, 48px); line-height: 1.12; letter-spacing: -.025em; }
.headline { margin: 10px 0 0; font-size: clamp(20px, 2.5vw, 23px); line-height: 1.4; font-weight: 700; }
.intro { max-width: 790px; margin: 15px 0 0; color: var(--secondary); font-size: 18px; }
.profile-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-width: 920px;
  margin: 22px 0 0;
}
.profile-fact {
  min-width: 0;
  padding: 11px 14px;
  border: 1px solid #dfebee;
  border-radius: 5px;
  background: var(--wash);
}
.profile-fact dt {
  margin-bottom: 4px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .045em;
  line-height: 1.3;
  text-transform: uppercase;
}
.profile-fact dd { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.4; }
.profile-fact dd span { color: var(--secondary); font-weight: 400; }
.actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 21px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  padding: 9px 15px;
  border: 1px solid #a6bcc5;
  border-radius: 5px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}
.button:hover { border-color: var(--blue); background: #f3f9fa; }
.button.primary { color: white; border-color: var(--blue); background: var(--blue); }
.button.primary:hover { background: var(--blue-dark); }
.header-note { margin: 13px 0 0; color: var(--secondary); font-size: 15px; }
.layout {
  display: grid;
  grid-template-columns: minmax(270px, 30%) minmax(0, 1fr);
  align-items: start;
  border-top: 1px solid var(--line);
}
.timeline {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: min(100vh, 900px);
  background: var(--wash);
  border-right: 1px solid var(--line);
  padding: 27px 20px 20px 36px;
}
.timeline-heading h2 { font-size: 22px; line-height: 1.25; margin: 0 0 2px; }
.timeline-heading p { margin: 0 0 18px; color: var(--secondary); font-size: 15px; }
label { display: block; font-size: 16px; font-weight: 700; margin-bottom: 6px; }
select, input[type="number"], textarea, input[type="file"] {
  width: 100%;
  min-height: 45px;
  padding: 9px 11px;
  border: 1px solid #9eb1ba;
  border-radius: 4px;
  background: white;
}
textarea { resize: vertical; min-height: 130px; line-height: 1.55; }
input[type="file"] { padding: 7px; }
.timeline-heading select { margin-bottom: 16px; }
.timeline-scroll { overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; padding-right: 4px; }
.timeline-group { margin: 16px 0 8px; font-size: 16px; font-weight: 700; }
.event-list { border-left: 1px solid #afc3cb; }
.event {
  position: relative;
  display: block;
  width: 100%;
  min-height: 53px;
  padding: 9px 11px 10px 17px;
  border: 0;
  border-radius: 0 4px 4px 0;
  background: transparent;
  text-align: left;
  line-height: 1.35;
}
.event::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 19px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #67808c;
}
.event:hover { background: #eaf3f5; }
.event[aria-pressed="true"] { background: #dcecf0; }
.event[aria-pressed="true"]::before { background: var(--blue); box-shadow: 0 0 0 3px var(--wash); }
.event-date { display: block; margin-bottom: 3px; color: var(--secondary); font-size: 14px; }
.event-title { display: block; font-size: 16px; font-weight: 700; }
.content { min-width: 0; padding: 34px 48px 60px; }
.section-label { text-transform: uppercase; }
.experience:focus { outline: none; }
.company { margin: 0 0 4px; color: var(--secondary); font-size: 16px; }
.experience h2 { margin: 0; font-size: clamp(27px, 3.5vw, 34px); line-height: 1.2; letter-spacing: -.02em; }
.detail-date { margin: 8px 0 20px; color: var(--secondary); font-size: 16px; }
.description { max-width: 70ch; margin: 0 0 22px; font-size: 19px; line-height: 1.6; }
.content h3 { margin: 0 0 9px; font-size: 19px; line-height: 1.35; }
.detail-list { padding-left: 23px; margin: 0; }
.detail-list li { padding-left: 3px; margin: 10px 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding-top: 19px; border-top: 1px solid var(--line); }
.tag { background: var(--wash); padding: 5px 9px; border-radius: 3px; font-size: 15px; }
.feature { margin-top: 42px; padding-top: 29px; border-top: 1px solid var(--line); }
.feature h2 { margin-bottom: 13px; font-size: 27px; line-height: 1.25; letter-spacing: -.01em; }
.feature > p { margin-bottom: 14px; }
.feature textarea, .feature input[type="file"] { margin-bottom: 14px; }
.notice { padding: 14px 16px; background: var(--wash); border-left: 3px solid var(--blue); font-size: 16px; }
.helper, .status { margin: 9px 0 0; color: var(--secondary); font-size: 15px; }
.status:empty { display: none; }
.match-results { margin-top: 24px; }
.match-results:empty { display: none; }
.match-results h3 { margin: 20px 0 8px; }
.match-results ul { padding-left: 22px; }
.match-results li { margin-bottom: 10px; }
.match-score { font-size: 21px; font-weight: 700; }
.match-score small { display: block; font-size: 15px; font-weight: 400; color: var(--secondary); }
.project-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--blue);
  font-size: 16px;
  text-align: left;
  text-decoration: underline;
}
.rate-calculator {
  max-width: 590px;
  margin-top: 20px;
  padding: 19px 20px 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--wash);
}
.calculator-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.calculator-heading h3 { margin: 0; }
.currency-field { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--secondary); font-size: 13px; }
.currency-field select { width: auto; min-height: 36px; padding: 5px 28px 5px 9px; font-size: 14px; }
.calculator-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 22px;
  margin-top: 20px;
}
.hourly-field { grid-column: 1 / -1; }
.range-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.range-heading label { margin: 0; font-size: 14px; }
.range-heading output { color: var(--blue); font-size: 15px; font-weight: 700; }
.range-field input[type="range"] { display: block; width: 100%; height: 22px; margin: 7px 0 0; accent-color: var(--blue); cursor: pointer; }
.range-limits { display: flex; justify-content: space-between; color: var(--secondary); font-size: 12px; line-height: 1.2; }
#manual-rate-wrap { max-width: 260px; margin-top: 14px; }
.rate-calculator .helper { font-size: 13px; }
.rate-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.rate-results span, .rate-results strong { display: block; }
.rate-results span { color: var(--secondary); font-size: 13px; }
.rate-results strong { overflow-wrap: anywhere; font-size: 17px; }
.calculator-note { margin-bottom: 0; line-height: 1.45; }
.contact-links { display: flex; flex-wrap: wrap; gap: 7px 25px; }
.contact-link { font-size: 18px; overflow-wrap: anywhere; }
footer { padding: 24px 48px 40px; border-top: 1px solid var(--line); color: var(--secondary); font-size: 15px; }
footer span { margin: 0 7px; }
@media (max-width: 760px) {
  .hero { padding: 32px 23px 26px; }
  .hero-introduction {
    grid-template-columns: minmax(0, 1fr) 125px;
    grid-template-areas: "heading portrait" "intro intro";
    column-gap: 16px;
  }
  .hero-portrait { width: 125px; }
  .profile-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .timeline { position: static; height: auto; padding: 23px; border-right: 0; border-bottom: 1px solid var(--line); }
  .timeline-scroll { max-height: 280px; }
  .content { padding: 29px 23px 48px; }
  .actions .button { flex: 1 1 auto; }
  footer { padding: 24px 23px 36px; }
}
@media (max-width: 420px) {
  .hero-introduction { grid-template-columns: minmax(0, 1fr) 100px; }
  .hero-portrait { width: 100px; }
  .rate-calculator { padding: 16px; }
  .calculator-grid { gap: 16px 14px; }
  .rate-results { grid-template-columns: minmax(0, 1fr); }
  .rate-results div { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

