/* KeenanReynolds.com — standalone stylesheet */
:root {
  --ink: #071d4d;
  --ink-soft: #23436d;
  --blue: #0e4d91;
  --blue-hover: #083a72;
  --wash: #f2f7fc;
  --mist: #e7f0fa;
  --line: #dce7f2;
  --white: #ffffff;
  --shadow: 0 10px 28px rgba(7, 29, 77, .08);
  --display: Arial, Helvetica, sans-serif;
  --body: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--white); font-family: var(--body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
.wrap { width: min(100% - 8vw, 1512px); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link { position: fixed; top: -4rem; left: 1rem; z-index: 100; padding: .75rem 1rem; border-radius: 0 0 7px 7px; background: var(--ink); color: white; font-weight: 700; transition: top .16s ease; }
.skip-link:focus { top: 0; }

.site-header { position: sticky; z-index: 20; top: 0; background: rgba(255,255,255,.95); border-bottom: 1px solid rgba(220,231,242,.85); backdrop-filter: blur(10px); }
.navigation { height: 76px; display: flex; align-items: center; justify-content: space-between; }
.wordmark { font-family: var(--display); font-size: 30px; line-height: 1; font-weight: 800; letter-spacing: -1.7px; }
.wordmark span { color: var(--blue); }
.nav-links { display: flex; align-items: center; gap: clamp(1.6rem, 3vw, 3.45rem); }
.nav-links a { position: relative; padding: .5rem 0; font-size: 16px; font-weight: 700; }
.nav-links a::after { content: ""; position: absolute; right: 0; bottom: .22rem; left: 0; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: right; transition: transform .18s ease; }
.nav-links a:hover::after, .nav-links a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.menu-toggle { display: none; padding: .45rem; border: 0; background: transparent; color: var(--ink); }
.menu-toggle span:not(.sr-only) { display: block; width: 25px; height: 2px; margin: 5px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }

.hero { position: relative; overflow: hidden; background: #f8fbfe; }
.hero-backdrop { position: absolute; inset: 0; background: linear-gradient(105deg, rgba(250,252,254,.98) 0%, rgba(250,252,254,.96) 38%, rgba(236,246,253,.55) 62%, rgba(198,224,244,.30) 100%); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, .95fr) minmax(520px, 1.05fr); min-height: 400px; align-items: center; }
.hero-copy { position: relative; z-index: 2; padding: clamp(3rem, 4vw, 4.85rem) 0 clamp(2.8rem, 4vw, 4.55rem) .55%; }
.eyebrow, .section-kicker, .project-category { margin: 0; color: #56718f; font-size: 13px; line-height: 1.2; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow span { margin: 0 .55rem; color: var(--blue); }
h1, h2, h3 { margin-top: 0; font-family: var(--display); letter-spacing: -1.15px; }
h1 { max-width: 780px; margin-bottom: .45rem; font-size: clamp(3.05rem, 4.55vw, 4.95rem); line-height: .98; font-weight: 800; }
.hero-statement { margin: 0 0 .85rem; max-width: 720px; font-size: clamp(1.22rem, 1.55vw, 1.65rem); line-height: 1.2; font-weight: 700; letter-spacing: -.55px; }
.hero-description { max-width: 700px; margin: 0; color: #112f5d; font-size: clamp(1rem, 1.12vw, 1.18rem); line-height: 1.48; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1.15rem; margin-top: 1.75rem; }
.button { display: inline-flex; min-height: 55px; align-items: center; justify-content: center; gap: .8rem; padding: .85rem 1.7rem; border: 1.7px solid var(--blue); border-radius: 6px; font-size: 16px; font-weight: 700; transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 7px 17px rgba(7, 29, 77, .18); }
.button:active { transform: scale(.98); }
.button-primary { background: var(--blue); color: var(--white); }
.button-primary:hover { background: var(--blue-hover); }
.button-secondary { background: rgba(255,255,255,.32); color: var(--blue); }
.button-secondary:hover { background: var(--white); }
.resume-note { margin: .7rem 0 0; color: #58708f; font-size: 12px; }
.portrait-frame { align-self: stretch; position: relative; min-height: 400px; overflow: hidden; }
.portrait-frame::before { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg, #f9fbfe 0%, rgba(249,251,254,.37) 17%, rgba(249,251,254,0) 47%); pointer-events: none; }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 47%; filter: saturate(.98) contrast(1.01); }

.about-section { padding: clamp(3.7rem, 6vw, 6.4rem) 0; border-bottom: 1px solid var(--line); background: white; }
.about-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(2rem, 8vw, 10rem); align-items: start; }
.section-kicker { margin-bottom: .6rem; color: #587494; font-size: 12px; }
h2 { margin-bottom: 0; font-size: clamp(2rem, 3vw, 3.05rem); line-height: 1.06; font-weight: 800; }
.about-grid > p { max-width: 760px; margin: .1rem 0 0; color: #28486f; font-size: clamp(1.05rem, 1.3vw, 1.22rem); line-height: 1.62; }

.projects-section { padding: clamp(3.75rem, 5.3vw, 5.5rem) 0 2.75rem; background: var(--white); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.55rem; }
.section-heading h2 { font-size: clamp(2rem, 2.5vw, 2.55rem); }
.text-link, .project-link { color: var(--blue); font-weight: 700; }
.text-link { padding: .35rem 0; white-space: nowrap; }
.text-link span, .project-link span[aria-hidden="true"] { display: inline-block; margin-left: .32rem; transition: transform .18s ease; }
.text-link:hover span, .project-link:hover span[aria-hidden="true"] { transform: translateX(3px); }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.35rem; }
.project-card { display: grid; grid-template-columns: minmax(190px, .93fr) minmax(255px, 1.07fr); min-height: 245px; overflow: hidden; border: 1px solid #e3edf6; border-radius: 5px; background: #fbfdff; box-shadow: 0 7px 23px rgba(9, 37, 78, .055); transition: transform .18s ease, box-shadow .18s ease; }
.project-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.project-image { min-height: 100%; overflow: hidden; background: var(--ink); }
.project-image img { width: 100%; height: 100%; object-fit: cover; }
.project-image-shuteye img { object-position: 52% 50%; }
.project-image-eigensim { padding: 0; background: #101f33; }
.project-image-eigensim img { object-fit: cover; }
.project-content { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; padding: 1.45rem 1.35rem 1.25rem; }
.project-category { margin-bottom: .65rem; font-size: 10.5px; line-height: 1.35; letter-spacing: .145em; }
.project-category span { margin: 0 .3rem; color: #87a2bd; }
h3 { margin-bottom: .62rem; font-size: clamp(1.26rem, 1.5vw, 1.52rem); line-height: 1.08; font-weight: 800; }
.project-content > p:not(.project-category) { margin: 0 0 1rem; color: #18385f; font-size: 15.5px; line-height: 1.45; }
.project-link { margin-top: auto; font-size: 15px; }

.lower-section { padding: clamp(2.7rem, 4vw, 4rem) 0 clamp(3.3rem, 5vw, 5rem); border-top: 1px solid var(--line); background: var(--white); }
.lower-grid { display: grid; grid-template-columns: 1.45fr .75fr; gap: clamp(3rem, 9vw, 10rem); }
.lower-section h2 { margin-bottom: 1rem; font-size: clamp(1.65rem, 2vw, 2.05rem); }
.skill-list { display: flex; flex-wrap: wrap; gap: .65rem; max-width: 870px; padding: 0; margin: 0; list-style: none; }
.skill-list li { padding: .45rem .75rem; border: 1px solid #d9e7f4; border-radius: 5px; background: var(--mist); color: #174475; font-size: 14px; line-height: 1.1; font-weight: 600; }
.contact-block > p:not(.section-kicker):not(.location) { margin: 0 0 .6rem; color: #365676; line-height: 1.48; }
.location { display: flex; align-items: center; gap: .35rem; margin: .65rem 0 1rem; color: #5b7391; font-size: 14px; }
.location svg { flex: 0 0 auto; color: var(--blue); }
.contact-links { display: flex; flex-wrap: wrap; gap: 1.45rem; margin-top: 1rem; }
.contact-links a { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink); font-size: 14px; font-weight: 700; }
.contact-links a svg { color: var(--blue); transition: transform .17s ease; }
.contact-links a:hover svg { transform: translateY(-2px); }

.site-footer { padding: 1.35rem 0; border-top: 1px solid var(--line); background: #f8fbfe; color: #59728f; font-size: 13px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 1rem; }

:focus-visible { outline: 3px solid #77b3ec; outline-offset: 3px; }

@media (max-width: 1170px) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(430px, .95fr); }
  .project-card { grid-template-columns: 1fr; }
  .project-image { min-height: 215px; max-height: 250px; }
  .project-content { min-height: 255px; }
}

@media (max-width: 820px) {
  html { scroll-padding-top: 65px; }
  .wrap { width: min(100% - 2.5rem, 680px); }
  .navigation { height: 66px; }
  .menu-toggle { display: block; position: relative; z-index: 22; }
  .nav-links { position: absolute; top: 65px; right: 0; left: 0; display: grid; gap: 0; padding: .5rem 1.25rem .85rem; background: rgba(255,255,255,.98); border-bottom: 1px solid var(--line); box-shadow: 0 12px 16px rgba(7, 29, 77, .07); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .18s ease, visibility .18s ease, transform .18s ease; }
  .nav-links.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-links a { padding: .85rem 0; }
  .nav-links a::after { bottom: .65rem; }
  .menu-toggle[aria-expanded="true"] span:not(.sr-only):nth-child(2) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:not(.sr-only):nth-child(3) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:not(.sr-only):nth-child(4) { transform: translateY(-7px) rotate(-45deg); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 3.5rem 0 2.4rem; }
  .portrait-frame { min-height: min(116vw, 610px); margin: 0 -1.25rem; }
  .portrait-frame::before { background: linear-gradient(180deg, rgba(249,251,254,.34) 0%, rgba(249,251,254,0) 35%); }
  .portrait-frame img { object-position: 50% 38%; }
  .about-grid, .lower-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .section-heading { align-items: flex-end; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card { grid-template-columns: minmax(165px, .86fr) 1.14fr; min-height: 230px; }
  .project-image { min-height: auto; max-height: none; }
  .project-content { min-height: 230px; }
  .lower-grid { gap: 3.3rem; }
}

@media (max-width: 570px) {
  .wrap { width: min(100% - 2rem, 520px); }
  h1 { font-size: clamp(2.78rem, 13.5vw, 3.65rem); }
  .hero-statement { font-size: 1.2rem; }
  .hero-actions { display: grid; grid-template-columns: 1fr; gap: .75rem; margin-top: 1.5rem; }
  .button { width: 100%; min-height: 53px; }
  .portrait-frame { margin: 0 -1rem; min-height: 102vw; }
  .about-section { padding: 3.5rem 0; }
  .projects-section { padding: 3.5rem 0 2.4rem; }
  .section-heading { display: block; }
  .section-heading .text-link { display: inline-block; margin-top: .8rem; }
  .project-card { grid-template-columns: 1fr; }
  .project-image { min-height: 205px; max-height: 235px; }
  .project-content { min-height: 0; padding: 1.3rem 1.15rem 1.25rem; }
  .project-content > p:not(.project-category) { margin-bottom: 1.2rem; }
  .contact-links { flex-direction: column; gap: 1rem; }
  .site-footer .wrap { display: block; }
  .site-footer .wrap span + span { display: block; margin-top: .35rem; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }


/* Approved screenshot-faithful hero override */
.hero {
  min-height: 400px;
  isolation: isolate;
  background: #f8fbfe;
}
.hero-scene {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: url("../images/vancouver-mountains-water.jpg") center / cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  width: 57%;
  height: 100%;
  background: url("../images/hero-vancouver-portrait.jpg") right center / auto 100% no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .28) 14%, #000 33%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .28) 14%, #000 33%);
}
.hero::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,.99) 35%, rgba(255,255,255,.87) 46%, rgba(255,255,255,.56) 58%, rgba(255,255,255,.15) 71%, rgba(255,255,255,0) 83%);
}
.hero-copy {
  z-index: 3;
  min-height: 400px;
  padding: 41px 0 31px;
}
.hero h1 { max-width: 760px; font-size: clamp(3.05rem, 4.05vw, 4.3rem); }
.hero-statement { margin-bottom: .76rem; font-size: clamp(1.22rem, 1.5vw, 1.58rem); }
.hero-description { max-width: 700px; font-size: clamp(.98rem, 1.08vw, 1.12rem); line-height: 1.4; }
.hero-actions { margin-top: 1.35rem; }
.projects-section { padding: 1.18rem 0 1.15rem; }
.projects-section .section-heading { margin-bottom: .9rem; }
.projects-section .section-heading h2 { font-size: clamp(1.7rem, 2vw, 2rem); }
.project-card { min-height: 198px; }
.project-content { padding: 1rem 1.15rem .9rem; }
.project-category { margin-bottom: .46rem; }
.project-content > p:not(.project-category) { margin-bottom: .7rem; }
.project-content h3 { margin-bottom: .42rem; }
.lower-section { padding-top: 1.45rem; }

@media (max-width: 820px) {
  .hero { min-height: 660px; }
  .hero-scene { background-position: 65% center; }
  .hero::before {
    top: 252px;
    width: 100%;
    height: 408px;
    background-position: center bottom;
    background-size: auto 100%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .36) 15%, #000 48%);
    mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .36) 15%, #000 48%);
  }
  .hero::after { background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(255,255,255,.98) 42%, rgba(255,255,255,.68) 59%, rgba(255,255,255,.18) 77%, rgba(255,255,255,0) 92%); }
  .hero-copy { min-height: 0; padding: 3.15rem 0 0; }
  .hero h1 { font-size: clamp(2.78rem, 13.5vw, 3.65rem); }
  .hero-description { max-width: 100%; }
  .projects-section { padding-top: 1.5rem; }
}

@media (max-width: 570px) {
  .hero { min-height: 680px; }
  .hero::before { top: 285px; height: 395px; }
  .hero-copy { padding-top: 2.8rem; }
  .hero-description { font-size: .95rem; line-height: 1.35; }
  .hero-actions { margin-top: 1.25rem; }
  .projects-section .section-heading h2 { font-size: 1.8rem; }
}


/* Approved portrait placement adjustment: keeps Keenan clear of the text column. */
@media (min-width: 821px) {
  .hero::before {
    right: -220px;
    width: 70%;
  }
}
