/* A single typographic voice, with copper as the contrasting accent. */
.brand-leaf,
.metric > span {
  color: var(--copper);
}

.hero h1 {
  font-weight: 600;
  font-size: clamp(52px, 6.05vw, 84px);
  line-height: 1.02;
  letter-spacing: -.065em;
  max-width: 670px;
}

.hero .eyebrow::before {
  content: '';
  width: 25px;
  height: 2px;
  background: var(--copper);
}

.hero .eyebrow .status-dot {
  display: none;
}

.portrait {
  position: relative;
  transform: none;
  padding: 0;
  background: transparent;
}

.portrait::before {
  content: '';
  position: absolute;
  top: -15px;
  right: -15px;
  width: 95px;
  height: 95px;
  border-top: 3px solid var(--copper);
  border-right: 3px solid var(--copper);
  z-index: -1;
}

.portrait-image {
  border-radius: 3px;
}

.portrait img {
  filter: saturate(.8);
}

.portrait figcaption {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.portrait figcaption > span:last-child {
  color: var(--copper);
}

.primary {
  position: relative;
  isolation: isolate;
  box-shadow: 0 3px 0 #233d2e;
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}

/* Four soft corner lights sit behind the label, leaving its centre clear. */
.primary::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(ellipse 48% 115% at 0% 0%, #ed9a7070, transparent 75%),
    radial-gradient(ellipse 42% 105% at 100% 0%, #dce4d34d, transparent 75%),
    radial-gradient(ellipse 42% 105% at 0% 100%, #a6c6b04d, transparent 75%),
    radial-gradient(ellipse 48% 115% at 100% 100%, #ed9a7060, transparent 75%);
  box-shadow: inset 0 0 0 1px #f5f3ed40;
  opacity: 0;
  transition: opacity .3s ease;
}

.primary:focus-visible::before {
  opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
  .primary:hover {
    box-shadow: 0 5px 0 #233d2e, 0 12px 22px -12px #35544170;
  }
  .primary:hover::before {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .primary, .primary::before { transition: none; }
  .primary:hover { transform: none; }
}

@media (forced-colors: active), print {
  .primary::before { display: none; }
}

.text-link,
.nav-contact {
  transition: color .2s, border-color .2s, background .2s;
}

.text-link:hover {
  color: var(--copper);
  border-color: var(--copper);
}

.nav-contact:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--paper);
}

.impact-grid {
  align-items: stretch;
}

.impact-card {
  position: relative;
  padding-top: 0;
  border-radius: 7px;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  transform: perspective(1100px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transition: transform .4s ease, box-shadow .4s ease, border-color .3s;
  isolation: isolate;
}

.card-art {
  margin: 0 -26px 14px;
  border-radius: 6px 6px 0 0;
  overflow: hidden;
  background: var(--accent);
}

.card-art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.7,.3,1);
}

.impact-card .metric {
  margin-top: 0;
}

.impact-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(350px circle at var(--shine-x, 50%) var(--shine-y, 0%), #ffffff30, transparent 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
  z-index: 2;
}

.impact-card.is-tilting {
  transition: transform .12s ease-out, box-shadow .3s, border-color .3s;
  box-shadow: 0 20px 40px -22px #1d382b60;
  border-color: #a4b49a;
  z-index: 1;
}

.impact-card.is-tilting::after {
  opacity: 0;
}

/* Keep all lighting off the card content, including while the pointer is still. */
body:has(.impact-card:hover) .cursor-glow {
  opacity: 0;
  transition: none;
}

.impact-card.is-tilting .card-art img {
  transform: scale(1.035);
}

.impact-card:focus-within {
  border-color: var(--copper);
  box-shadow: 0 0 0 2px #b6573520;
}

.card-footer {
  position: relative;
  min-height: 64px;
  align-items: center;
  gap: 14px;
  transition: color .2s;
}

.card-footer:hover {
  color: var(--copper);
}

.card-link-arrow {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform .2s, color .2s, background .2s;
}

.card-footer:hover .card-link-arrow,
.card-footer:focus-visible .card-link-arrow {
  transform: rotate(45deg);
  background: var(--copper);
  border-color: var(--copper);
  color: white;
}

.timeline details {
  scroll-margin-top: 24px;
}

.timeline details:target {
  border-left: 3px solid var(--copper);
  padding-left: 18px;
}

.timeline details[open] .date {
  color: var(--copper);
}

.expertise-list article > span {
  color: var(--copper);
}

.contact {
  border-top: 4px solid var(--copper);
}

.contact h2 .heading-accent {
  color: var(--copper);
}

.cursor-glow {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, #d8855721 0%, #d885570b 35%, transparent 68%);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  transition: opacity .3s;
  will-change: transform;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .cursor-glow { display: block; }
  .cursor-glow.is-visible { opacity: 1; }
}

@media (max-width: 1000px) {
  .hero h1 { font-size: clamp(46px, 6.1vw, 68px); }
  .card-art { margin-inline: -18px; }
}

@media (max-width: 720px) {
  .hero h1 { font-size: clamp(48px, 10vw, 70px); }
  .hero .eyebrow::before { width: 14px; }
  .hero .eyebrow { letter-spacing: .6px; }
  .portrait::before { right: -10px; top: -10px; width: 65px; height: 65px; }
  .impact-card { padding-top: 0; }
  .card-art { margin-inline: -24px; }
  .card-top { flex-direction: row; }
  h2 { font-size: clamp(33px, 8vw, 41px); }
  .contact h2 { font-size: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  .impact-card { transform: none; }
  .card-art img { transform: none !important; }
}

@media print {
  .cursor-glow, .card-art { display: none; }
  .impact-card { transform: none; box-shadow: none; padding-top: 20px; }
  .hero h1 { font-size: 35pt; }
}

/* Canadian maple-leaf signature, scaled with the wordmark. */
.brand-leaf {
  display: inline-block;
  width: .58em;
  height: .572em;
  margin-left: .18em;
  vertical-align: -.01em;
  flex-shrink: 0;
}

/* One gentle sweep per hover, with an equivalent keyboard-focus state. */
.wordmark .brand-leaf {
  transition: color .25s ease;
}
.wordmark-name {
  display: inline-block;
  color: var(--ink);
}
.wordmark:hover .brand-leaf,
.wordmark:focus-visible .brand-leaf {
  color: #c62828;
}
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .wordmark-name {
    background-image: linear-gradient(110deg, var(--ink) 0%, var(--ink) 42%, #b7a28b 49%, #f5f3ed 50%, #b7a28b 51%, var(--ink) 58%, var(--ink) 100%);
    background-size: 300% 100%;
    background-position: 100% 0;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
  }
  .wordmark:hover .wordmark-name,
  .wordmark:focus-visible .wordmark-name {
    animation: name-shimmer 1.1s ease-in-out both;
  }
}
@keyframes name-shimmer {
  from { background-position: 100% 0; }
  to { background-position: 0% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .wordmark:hover .wordmark-name,
  .wordmark:focus-visible .wordmark-name { animation: none; }
}
@media (forced-colors: active), print {
  .wordmark-name { background: none; color: var(--ink); -webkit-text-fill-color: currentColor; }
}

/* Compact introduction with the professional/location line under the portrait. */
.closing-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 80px;
  align-items: center;
}
.closing-section h2 {
  font-size: clamp(34px, 4vw, 50px);
  margin: 0 0 24px;
}
.closing-copy > p {
  font-size: 14px;
  color: #53604e;
  margin-bottom: 16px;
  max-width: 600px;
}
.closing-copy h3 { font-size: 21px; margin-top: 26px; }
.closing-links { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 12px; }
.closing-links .text-link { display: inline-flex; align-items: center; }
.contact-icon { width: 16px; height: 16px; margin-right: 7px; flex-shrink: 0; }
.education-heading { margin: 0 0 14px; color: var(--green); }
.closing-facts > p { padding: 18px 0; border-top: 1px solid #bcc9b1; }
.closing-facts strong { display: block; font-weight: 550; font-size: 14px; }
.closing-facts span { display: block; margin-top: 5px; font-size: 12px; color: #53604e; }
.earlier-roles { list-style: none; padding-left: 0 !important; margin-top: 0; }
.earlier-roles li { margin: 0 0 18px; }
.earlier-roles strong, .earlier-roles span { display: block; }
.earlier-roles strong { color: var(--ink); font-weight: 500; }
.earlier-date { font-size: 11px; margin-top: 3px; }
.earlier-experience .text-link { display: inline-block; margin-top: 5px; }
@media (max-width: 720px) {
  .closing-grid { grid-template-columns: 1fr; gap: 30px; }
  .closing-links { gap: 20px; }
}
@media print {
  .closing-section { display: block; background: white; }
  .closing-grid { gap: 30px; }
}

.projects-section {
  border-top: 1px solid var(--line);
  background: #efeee7;
}
.project-list { margin-top: 38px; }
.project-row {
  display: grid;
  grid-template-columns: 28px 1fr 1.2fr auto;
  align-items: center;
  gap: 28px;
  padding: 28px 8px;
  border-top: 1px solid var(--line);
  transition: background .2s;
}
.project-row:last-child { border-bottom: 1px solid var(--line); }
.project-row:hover, .project-row:focus-visible { background: #e4e7dc; }
.project-number { color: var(--copper); font-size: 11px; }
.project-title .eyebrow { font-size: 8px; letter-spacing: 1px; margin-bottom: 10px; }
.project-title h3 { font-size: 24px; letter-spacing: -.6px; }
.project-row > p { color: var(--muted); font-size: 13px; max-width: 365px; }
.project-action { color: var(--green); font-size: 11px; white-space: nowrap; }
.project-action > span { display: inline-block; color: var(--copper); margin-left: 8px; transition: transform .2s; }
.project-row:hover .project-action > span { transform: translate(2px, -2px); }
@media (max-width: 1000px) {
  .project-row { grid-template-columns: 22px 1fr 1.2fr; gap: 18px; }
  .project-action { grid-column: 2 / -1; }
}
@media (max-width: 720px) {
  .project-row { grid-template-columns: 20px 1fr; padding-block: 24px; gap: 14px; }
  .project-row > p, .project-action { grid-column: 2; }
  .header nav > a[href="#projects"] { display: none; }
}
@media print {
  .projects-section { background: white; }
  .project-row { break-inside: avoid; }
}

.hero {
  padding-block: 48px;
  align-items: center;
}
.hero h1 { margin-top: 0; }
.portrait { margin-top: 0; }
.portrait .portrait-caption {
  display: block;
  padding-block: 12px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
}
.portrait .portrait-caption .caption-location {
  font-size: inherit;
  color: inherit;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .hero { padding-block: 32px; gap: 26px; }
  .portrait { margin-top: 0; }
}
@media print {
  .hero { padding-block: 20px; }
}
