:root {
  color-scheme: dark;
  --bg: #101b1c;
  --deep: #0c1516;
  --panel: #172627;
  --line: #334343;
  --text: #f3f5e9;
  --muted: #b7c5be;
  --lime: #ddf298;
  --display: Georgia, 'Times New Roman', serif;
  font: 100%/1.6 system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--bg); }
img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.skip { position: absolute; z-index: 3; left: 1rem; top: 1rem; transform: translateY(-180%); padding: .5rem 1rem; background: var(--lime); color: var(--deep); }
.skip:focus { transform: none; }
.wrap { width: min(81rem, 100% - clamp(2.5rem, 10vw, 9.5rem)); margin-inline: auto; }
.bar { min-height: 5rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
header { background: var(--deep); }
.brand { font-family: var(--display); font-size: 1.35rem; font-weight: bold; text-decoration: none; letter-spacing: -.04em; }
.brand span, h1 span { color: var(--lime); }
nav { display: flex; gap: clamp(.85rem, 3vw, 2.8rem); align-items: center; }
nav a { font-size: .9rem; font-weight: 600; text-decoration: none; }
nav a:hover, .card a:hover { color: var(--lime); text-decoration: underline; }
.nav-contact { padding: .55rem 1rem; border: 1px solid #60715e; border-radius: 2rem; }
.hero { position: relative; isolation: isolate; overflow: hidden; background: #193638; }
.hero-image, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { z-index: -2; object-fit: cover; object-position: right 38%; transform: rotate(.65deg) scale(1.045); }
.hero::after { content: ''; z-index: -1; background: linear-gradient(90deg, #091718f5, #0a191ab8 36%, #0a191a25 75%), linear-gradient(0deg,#101b1c6b,transparent 58%); }
.hero-inner { min-height: clamp(35rem, 76svh, 52rem); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-block: 4.5rem; }
.label { display: flex; align-items: center; gap: .65rem; margin: 0 0 1.45rem; color: var(--lime); text-transform: uppercase; letter-spacing: .17em; font-weight: 650; font-size: .85rem; }
.label span { width: 1.65rem; height: 1px; background: currentColor; }
h1,h2,h3 { font-family: var(--display); font-weight: normal; margin: 0; letter-spacing: -.055em; }
h1 { font-size: clamp(4.5rem, 11vw, 10.1rem); line-height: .83; }
.roles { color: #e2eae0; font-size: clamp(1.05rem, 2vw, 1.25rem); margin: 1.8rem 0 1.6rem; }
.button { display: inline-flex; min-height: 3.2rem; align-items: center; justify-content: center; padding: .6rem 1.35rem; border-radius: 2rem; background: var(--lime); color: var(--deep); font-weight: 700; text-decoration: none; white-space: nowrap; }
.button:hover { background: #effacb; }
.work, .about { padding-block: clamp(3.75rem, 8vw, 7rem); }
.section-title { margin-bottom: 2.1rem; }
h2 { font-size: clamp(2.9rem, 6vw, 5rem); line-height: 1; }
.section-title p, .card p, .bio p { color: var(--muted); }
.section-title p { margin: .8rem 0 0; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.card { display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--panel); border-radius: .55rem; overflow: hidden; }
.art { height: clamp(9rem, 15vw, 13rem); overflow: hidden; border-bottom: 1px solid var(--line); }
.marine-art { background: #234445 url('assets/solent.webp') 67% 49% / cover; }
.photo-art { display: grid; place-items: center; background: radial-gradient(ellipse at 50% 50%, #435950, #1d2c2d 72%); }
.viewfinder { display: grid; place-items: center; width: 47%; height: 57%; background: linear-gradient(var(--lime),var(--lime)) top left / 1rem 1px, linear-gradient(var(--lime),var(--lime)) top left / 1px 1rem, linear-gradient(var(--lime),var(--lime)) top right / 1rem 1px, linear-gradient(var(--lime),var(--lime)) top right / 1px 1rem, linear-gradient(var(--lime),var(--lime)) bottom left / 1rem 1px, linear-gradient(var(--lime),var(--lime)) bottom left / 1px 1rem, linear-gradient(var(--lime),var(--lime)) bottom right / 1rem 1px, linear-gradient(var(--lime),var(--lime)) bottom right / 1px 1rem; background-repeat: no-repeat; }
.viewfinder i { width: 3rem; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--lime); opacity: .7; }
.card-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 1.45rem; }
h3 { font-size: clamp(1.65rem, 3vw, 2.45rem); line-height: 1.07; }
.card p { margin: .85rem 0 1.25rem; }
.card a { margin-top: auto; color: var(--lime); font-weight: 650; text-underline-offset: .27em; }
.about { background: #162324; border-block: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 8vw, 8rem); }
.portrait { max-width: 27rem; }
.portrait img { width: 100%; height: auto; border-radius: .55rem; }
.bio p { font-size: 1.075rem; }
.bio .credentials { border-top: 1px solid var(--line); padding-top: 1rem; margin-bottom: 0; color: var(--lime); font-size: .95rem; }
.contact { background: var(--lime); color: var(--deep); padding-block: clamp(3rem, 7vw, 6rem); }
.contact-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.contact p { margin-bottom: 0; }
.contact .button { background: var(--deep); color: var(--text); }
.contact .button:hover { background: #324440; }
footer { background: var(--deep); }
footer small { color: var(--muted); }
@media (max-width: 850px) {
  .cards { grid-template-columns: 1fr; }
  .card { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1fr); }
  .art { height: 100%; border-bottom: 0; }
}
@media (max-width: 540px) {
  header .bar { flex-wrap: wrap; padding-block: .9rem; gap: .65rem; }
  .hero-inner { min-height: 33rem; }
  .hero-image { object-position: 86% center; }
  .hero::after { background: linear-gradient(90deg,#091718ed,#0a191a78); }
  h1 { font-size: clamp(3.75rem, 15vw, 5rem); }
  .card { display: flex; }
  .art { height: 10.5rem; }
  .about-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 18rem; }
  .contact-inner { align-items: flex-start; flex-direction: column; }
  footer .brand { font-size: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.contact-links { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; }
.social { font-weight: 650; text-underline-offset: .25em; }
.roles { margin-bottom: .65rem; }
.tagline { max-width: 29rem; margin: 0 0 1.6rem; color: #e2eae0; }
.experience { padding-block: clamp(3.75rem, 8vw, 7rem); border-bottom: 1px solid var(--line); }
.cv-header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1rem 2rem;
  margin-bottom: 2rem;
}
.cv-header a { color: var(--lime); }
.cv-featured, .cv-grid { display: grid; gap: clamp(1rem, 3vw, 2rem); }
.cv-featured { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.cv-feature {
  padding: clamp(1.3rem, 4vw, 2.7rem);
  border: 1px solid var(--line);
  border-top: 2px solid var(--lime);
  border-radius: .6rem;
  background: linear-gradient(135deg, #253a36, var(--panel) 80%);
}
.cv-feature p:last-child, .cv-timeline p:last-child { color: var(--muted); margin: .8rem 0 0; }
.cv-org {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .15rem 1rem;
  margin: 0 0 .65rem;
  color: var(--lime);
  font-size: .9rem;
  font-weight: 650;
}
.cv-org span { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.cv-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
.cv-timeline {
  list-style: none;
  margin: 1.3rem 0 1.6rem .35rem;
  padding: 0 0 0 1.35rem;
  border-left: 1px solid #536858;
}
.cv-timeline li { position: relative; }
.cv-timeline li + li { margin-top: 1.65rem; }
.cv-timeline li::before {
  content: '';
  position: absolute;
  top: .55rem;
  left: -1.35rem;
  transform: translateX(-50%);
  width: .5rem;
  aspect-ratio: 1;
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 0 .25rem var(--bg);
}
.cv-timeline h4 { margin: 0; font: normal 1.45rem/1.2 var(--display); }
.cv-qual { padding: clamp(1.3rem, 3vw, 2.2rem); background: var(--panel); border: 1px solid var(--line); border-radius: .55rem; }
.cv-qual ul { margin-bottom: 0; padding-inline-start: 1.15rem; color: var(--muted); }
.cv-qual li + li { margin-top: .75rem; }
.cv-qual li::marker { color: var(--lime); }
@media (max-width: 700px) { .cv-grid, .cv-featured { grid-template-columns: 1fr; } }
.earlier { border-block: 1px solid var(--line); }
.earlier summary { cursor: pointer; padding: 1rem .25rem; color: var(--lime); font-weight: 650; }
.earlier dl { padding-inline: .25rem; margin-top: 0; }
.earlier dt { font-weight: 650; }
.earlier dd { margin: .2rem 0 1rem; color: var(--muted); }
.cv-education { border-top: 1px solid var(--line); margin-top: 1.4rem; padding-top: 1.25rem; }
.cv-education p { margin: .55rem 0 0; color: var(--muted); }
.charter-quote {
  margin: 1.65rem 0;
  padding-inline-start: clamp(1rem, 3vw, 2rem);
  border-inline-start: 2px solid var(--lime);
  color: var(--text);
  font: italic clamp(1.3rem, 2.8vw, 2rem)/1.35 var(--display);
}
.experience .charter-quote { margin: 0 0 clamp(2.5rem, 5vw, 4.5rem); }
.cv-featured { margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.card .portfolio-link { margin-top: .65rem; }
.card p + p { margin-top: 0; }
.minecraft {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem 2rem;
  padding: 1.45rem;
  margin-top: 1.25rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: .55rem;
}
.minecraft p { margin: .65rem 0 0; color: var(--muted); }
.minecraft a { color: var(--lime); }
.family-photo { margin: 0; width: min(100%, 21rem); }
.family-photo figcaption { color: var(--muted); margin-top: .75rem; font-size: .95rem; }
.cadet-photo {
  float: right;
  width: min(34%, 9rem);
  margin: 1rem 0 .75rem 1rem;
}
.cadet-photo img { width: 100%; height: auto; border-radius: .45rem; }
.cadet-photo figcaption { color: var(--muted); font-size: .9rem; margin-top: .35rem; }
.current-portrait { align-self: start; width: 100%; }
.bio { display: flow-root; }
.bio .family-photo { float: left; clear: both; width: min(38%, 10rem); margin: 0 1rem .75rem 0; }
.family-photo img { display: block; width: 100%; height: auto; border-radius: .45rem; }
