:root {
  color-scheme: light;
  --brand: #005571;
  --brand-secondary: #418296;
  --dark: #0e2531;
  --dark-raised: #12323e;
  --paper: #f2f7f9;
  --white: #fff;
  --ink: #112d39;
  --muted: #415b66;
  --light-muted: #c3d9e1;
  --accent: #a9e3f3;
  --line: #cedee4;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 system-ui, sans-serif; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.07; letter-spacing: -.045em; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.wrap { width: min(74rem, calc(100% - clamp(2rem, 8vw, 8rem))); margin-inline: auto; }
.section-space { padding-block: clamp(4rem, 8vw, 7rem); }
.skip { position: absolute; z-index: 1; inset: .75rem auto auto .75rem; background: var(--accent); color: var(--ink); padding: .65rem 1rem; transform: translateY(-180%); }
.skip:focus { transform: none; }

.hero, .contact { color: var(--white); background: var(--dark); }
.site-header, .site-footer { background: var(--white); }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; flex-wrap: wrap; padding-block: .9rem; }
.wordmark { display: inline-flex; align-items: center; min-height: 44px; color: var(--brand); }
.wordmark img { width: clamp(9rem, 18vw, 12rem); height: auto; }
nav { display: flex; flex-wrap: wrap; gap: .15rem clamp(.35rem, 2vw, 1.6rem); align-items: center; }
nav a { display: inline-flex; gap: .45rem; align-items: center; min-height: 44px; padding-inline: .5rem; color: var(--ink); font-weight: 650; font-size: .9rem; text-decoration: none; }
nav a:hover, .text-link:hover { text-decoration: underline; text-underline-offset: .25em; }
nav .nav-contact { border: 1px solid var(--brand-secondary); border-radius: .4rem; color: var(--brand); padding-inline: .8rem; }
.hero .text-link span { color: var(--accent); }

.hero-inner { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr); align-items: center; gap: clamp(2.4rem, 5vw, 5rem); padding-block: clamp(4rem, 8vw, 7.5rem); }
.eyebrow { font: 650 .77rem/1.5 var(--mono); letter-spacing: .075em; text-transform: uppercase; }
.location { display: flex; align-items: center; gap: .38rem .55rem; flex-wrap: wrap; color: var(--light-muted); }
.location span { width: .55rem; height: .55rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px #a9e3f322; margin-inline: .25rem .15rem; }
.location b { font-weight: inherit; }
h1 { margin-top: 1.25rem; font-size: clamp(2.85rem, 6.1vw, 5.85rem); line-height: .99; letter-spacing: -.075em; }
h1 em { color: var(--accent); font-style: normal; }
.intro { max-width: 35ch; margin-top: 1.55rem; color: var(--light-muted); font-size: clamp(1.09rem, 1.7vw, 1.28rem); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem 1.35rem; margin-top: 2rem; }
.button, .text-link { display: inline-flex; align-items: center; gap: .7rem; min-height: 44px; font-weight: 700; }
.button { justify-content: space-between; padding: .8rem 1.15rem; border-radius: .45rem; background: var(--accent); color: var(--ink); text-decoration: none; }
.button:hover { background: #d0f0f8; }
.button:focus-visible { outline-color: var(--white); }
.text-link { text-decoration: none; }
.hero-art { min-width: 0; padding: .7rem; border: 1px solid var(--brand-secondary); border-radius: 1rem; background: var(--dark-raised); }
.hero-art svg { width: 100%; height: auto; }
.art-caption { display: flex; gap: .4rem 1rem; justify-content: space-between; flex-wrap: wrap; padding: .65rem .25rem .1rem; color: var(--light-muted); font: .67rem/1.45 var(--mono); letter-spacing: .045em; }

.section-label { color: var(--brand); }
h2 { margin-top: .55rem; font-size: clamp(2.15rem, 4.7vw, 4.1rem); }
.section-heading { display: grid; grid-template-columns: 1fr minmax(0, 23rem); align-items: end; gap: 1rem 2rem; margin-bottom: 2rem; }
.section-heading > p, .service p, .about-copy > p:not(.eyebrow) { color: var(--muted); }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.service { display: flex; flex-direction: column; padding: clamp(1.15rem, 2.6vw, 2rem); border: 1px solid var(--line); border-radius: .8rem; background: var(--white); }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; color: var(--brand); font: .77rem/1.5 var(--mono); }
.card-top svg { width: 2.85rem; height: 2.85rem; padding: .65rem; border-radius: .55rem; background: #e0eff4; stroke: currentColor; stroke-width: 1.55; stroke-linejoin: round; stroke-linecap: round; }
h3 { margin-top: 1.45rem; font-size: clamp(1.35rem, 2.5vw, 1.8rem); }
.service p { margin: .7rem 0 1.25rem; }
.tags { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; padding: 0; margin: auto 0 0; }
.tags li { border: 1px solid var(--line); border-radius: .35rem; padding: .15rem .48rem; color: var(--muted); font-size: .79rem; }

.experience { background: var(--white); border-top: 1px solid var(--line); }
.project { background: var(--paper); }
.project-feature { grid-column: 1 / -1; }
.project-feature p { max-width: 76ch; }
.project .eyebrow { margin: 0; color: var(--brand); }
.project h3 { margin-top: .65rem; }
.project p:last-child { margin-bottom: 0; }

.about { background: #e6f0f4; border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: clamp(1.8rem, 7vw, 6rem); }
.profile-card { display: grid; align-content: space-between; gap: 2.5rem; min-height: 17rem; padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: .85rem; color: var(--white); background: radial-gradient(ellipse at top right, var(--brand), var(--dark-raised) 72%); }
.monogram { color: var(--accent); font-size: clamp(4.5rem, 10vw, 7rem); font-weight: 750; line-height: .9; letter-spacing: -.105em; }
.monogram span { color: #7cb2c4; }
.profile-name { font-size: 1.35rem; font-weight: 700; }
.profile-location { color: var(--light-muted); }
.about-copy > p:not(.eyebrow) { max-width: 52ch; margin-top: 1rem; }
.about-copy .text-link { margin-top: .6rem; color: var(--brand); text-decoration: underline; text-underline-offset: .25em; }
.credentials { margin-top: 1.25rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.credentials h3 { margin-top: 0; font-size: 1.3rem; }
.credentials ul { margin: .65rem 0 0; padding-inline-start: 1.2rem; color: var(--muted); }
.credentials li + li { margin-top: .25rem; }

.contact { background: var(--dark-raised); }
.contact-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.75rem 3rem; }
.contact-actions { display: flex; align-items: flex-start; flex-direction: column; gap: .55rem; }
.contact-actions .text-link span { color: var(--accent); }
.contact .eyebrow { color: var(--accent); }
.contact p:not(.eyebrow) { max-width: 47ch; margin-top: 1.1rem; color: var(--light-muted); }
.footer-inner { padding-block: 1rem; color: var(--muted); font-size: .87rem; }
.site-footer .wordmark img { width: 8rem; }
.site-footer .text-link { color: var(--brand); }

@media (min-width: 68rem) {
  .services .service-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 54rem) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { width: min(100%, 33rem); }
  .section-heading { grid-template-columns: 1fr; }
  .section-heading > p { max-width: 48ch; }
}

@media (max-width: 43rem) {
  .service-grid, .about-grid { grid-template-columns: 1fr; }
  .profile-card { min-height: 13rem; }
}

@media (max-width: 25rem) {
  nav { gap: .15rem .25rem; }
  nav a, nav .nav-contact { padding-inline: .35rem; }
}

@media (forced-colors: active) {
  .button, .skip { border: 1px solid ButtonText; }
}
