@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/inter-400-800.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/manrope-400-800.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/space-mono-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/space-mono-700.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Shared foundation. The layout is defined once at each breakpoint. */
:root {
  color-scheme: light;
  --navy: #101A2C;
  --navy-light: #1B2B43;
  --ink: #203448;
  --muted: #4C5D6B;
  --gold: #C6A15B;
  --soft-gold: #E9D9B5;
  --bronze: #765B2C;
  --ivory: #F5F1E8;
  --line: #DDDCD5;
  --card-radius: 14px;
  --card-shadow: 0 8px 26px rgba(16, 26, 44, .07);
  --header-clearance: 88px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-clearance); }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 400 1rem/1.75 'Inter', system-ui, sans-serif; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
svg { flex-shrink: 0; vertical-align: middle; }
h1, h2, h3, h4, p, ul { margin: 0; }
h1, h2, h3, h4 { color: var(--navy); font-family: 'Manrope', 'Inter', sans-serif; font-weight: 800; line-height: 1.3; }
h2 { font-size: clamp(1.85rem, 3.3vw, 2.55rem); letter-spacing: -.035em; text-wrap: balance; }
h3 { font-size: 1.14rem; letter-spacing: -.015em; }
h4 { font-size: .96rem; }
a { color: #214D70; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--bronze); outline-offset: 5px; }
.jump-header :focus-visible, .hero :focus-visible, .contact-wrapper :focus-visible, .norfolk-footer :focus-visible { outline-color: var(--gold); }
:target { scroll-margin-top: 0; }
.container { width: min(100% - 64px, 1120px); margin-inline: auto; }
section:not(.hero), .contact-wrapper { position: relative; padding-block: 88px; }
section > .container, .contact-wrapper > .container { position: relative; }
.section-head, .projects-heading { max-width: 840px; margin: 0 auto 42px; text-align: center; }
.kicker, .projects-eyebrow { display: block; margin-bottom: 14px; color: var(--bronze); font: 700 .78rem/1.7 'Space Mono', monospace; letter-spacing: .07em; }
.section-sub, .projects-heading > p { max-width: 750px; margin: 18px auto 0; color: var(--muted); line-height: 1.75; }
.section-head h2::after, .projects-heading h2::after { content: ''; display: block; width: 54px; height: 3px; margin: 23px auto 0; background: var(--gold); border-radius: 2px; }
.link-arrow { width: 19px; height: 19px; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 300; padding: 12px 18px; background: white; color: var(--navy); font-weight: 700; }
.skip-link:focus { top: 16px; }
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--gold); z-index: 220; pointer-events: none; }

/* Sticky disclosure navigation; links remain in flow without JavaScript. */
.jump-header { position: sticky; top: 0; z-index: 200; background: var(--navy); border-bottom: 1px solid var(--gold); color: white; }
.jump-header-inner { position: relative; width: min(100% - 64px, 1120px); margin-inline: auto; min-height: 72px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.jump-header-label { display: inline-flex; align-items: center; flex: 0 1 auto; width: 220px; min-height: 44px; padding-block: 8px; text-decoration: none; }
.jump-header-label img { display: block; width: 100%; height: auto; }
.jump-menu-toggle { display: flex; gap: 10px; align-items: center; justify-content: center; min-height: 44px; padding: 8px 14px; border: 1px solid #627084; border-radius: 7px; background: transparent; color: white; cursor: pointer; font-size: .9rem; font-weight: 600; }
.jump-menu-toggle:hover { background: #24344B; border-color: var(--gold); }
.jump-menu-icon { display: grid; gap: 4px; }
.jump-menu-icon i { width: 16px; height: 1.5px; background: var(--soft-gold); }
.jump-menu-chevron { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin: -4px 2px 0 2px; }
.jump-menu-toggle[aria-expanded='true'] .jump-menu-chevron { transform: rotate(225deg); margin-top: 4px; }
.jump-nav { display: grid; width: 100%; gap: 2px; padding-block: 0 18px; }
.jump-nav a { display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 44px; padding: 10px 14px; color: white; text-decoration: none; border-radius: 5px; font-size: .94rem; }
/* Shared, accessible outline icons for menu and footer links. */
.nav-icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.nav-item-icon { width: 20px; height: 20px; flex: 0 0 20px; color: var(--soft-gold); }
.jump-nav .nav-link-start { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.jump-nav .nav-link-start > span { min-width: 0; }
.jump-nav a:hover { background: #24344B; color: var(--soft-gold); }
.navigation-ready .jump-nav { position: absolute; top: calc(100% + 10px); right: 0; width: min(350px, 100%); max-height: calc(100dvh - var(--header-clearance) - 16px); overflow-y: auto; padding: 10px; background: var(--navy); border: 1px solid #6E6655; border-radius: 10px; box-shadow: 0 12px 28px #101A2C33; }
.jump-contact { border-top: 1px solid #506078; margin-top: 5px; }

/* Identity image and summary have separate backgrounds so the crop stays stable. */
.hero { color: white; background: var(--navy); }
.hero-visual { background: linear-gradient(180deg, rgba(16,26,44,.19), rgba(16,26,44,.49) 72%, var(--navy)), url('images/d53b3c_083ae16011074d6aac3a2216e6f29ef9.webp') center 52% / cover no-repeat; }
.hero-identity { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 550px; padding-block: 66px 52px; text-align: center; }
.hero-signature { width: min(650px, 87%); margin-bottom: 18px; }
.hero-signature img { width: 100%; filter: brightness(1.12) drop-shadow(0 2px 10px rgba(16,26,44,.55)) drop-shadow(0 0 10px rgba(255,255,255,.12)); }
.hero h1 { color: white; font: 600 1.65rem/1.35 'Inter', system-ui, sans-serif; letter-spacing: .005em; text-shadow: 0 2px 10px rgba(16,26,44,.5); }
.hero-subtitle { margin-top: 9px; color: var(--gold); font: 500 1.14rem/1.6 'Manrope', 'Inter', sans-serif; letter-spacing: .01em; text-shadow: 0 2px 10px rgba(16,26,44,.7); }
.hero-highlights { margin-top: 20px; color: #F4F2EC; font-size: .97rem; line-height: 1.9; }
.hero-highlight-separator { padding-inline: 10px; color: var(--gold); }
.hero-cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 28px; }
.btn-hero-primary, .btn-hero-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 20px; border: 1px solid var(--gold); border-radius: 7px; text-decoration: none; font-size: .94rem; font-weight: 700; line-height: 1.45; }
.btn-hero-primary { background: var(--gold); color: var(--navy); }
.btn-hero-secondary { background: #101A2CD9; color: white; }
.btn-hero-primary:hover { background: var(--soft-gold); }
.btn-hero-secondary:hover { background: #24344B; }
.hero-summary { padding-block: 28px 44px; }
.dossier-box { padding-top: 26px; border-top: 1px solid #526078; }
.dossier-box-head { margin-bottom: 22px; text-align: center; }
.dossier-box-title { color: var(--soft-gold); font: 700 .8rem/1.6 'Space Mono', monospace; letter-spacing: .07em; }
.dossier-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; row-gap: 24px; list-style: none; padding: 0; }
.dossier-list li { display: flex; gap: 14px; align-items: flex-start; }
.dossier-icon { display: flex; align-items: center; justify-content: center; width: 35px; height: 35px; flex: 0 0 35px; color: var(--gold); border: 1px solid #6C634E; border-radius: 8px; }
.dossier-list strong { display: block; font: 700 1rem/1.5 'Manrope', sans-serif; margin-bottom: 5px; }
.dossier-list span { display: block; color: #DDE3E9; font-size: .92rem; line-height: 1.75; }

/* Shared card system: opaque surfaces, no alternation or decorative overlays. */
.practice-grid, .capabilities-grid, .systems-grid, .projects-grid, .timeline, .ledger-grid { display: grid; gap: 26px; align-items: stretch; }
.practice-grid, .projects-grid, .timeline, .ledger-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.capabilities-grid, .systems-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.practice-card, .cap-block, .system-box, .project-card, .timeline-entry, .ledger-card { min-width: 0; padding: 30px; background: #FFFFFF; color: var(--ink); border: 1px solid var(--line); border-radius: var(--card-radius); box-shadow: var(--card-shadow); overflow-wrap: break-word; }
.practice-icon, .cap-icon, .system-icon { display: flex; align-items: center; justify-content: center; width: 80px; height: 80px; margin: 0 auto 22px; border-radius: 18px; border: 1px solid #CBB17F; background: var(--navy); color: var(--soft-gold); }
.practice-icon svg, .cap-icon svg, .system-icon svg { width: 39px; height: 39px; }
/* Align every Legal skills card heading with its centred icon. */
#capabilities .cap-head h3 { text-align: center; text-wrap: balance; }
#capabilities .cap-head { margin-bottom: 20px; }

.cap-tags, .pill-wrap, .project-tags, .employment-skill-tags { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 7px; }
.cap-tag, .sys-pill, .project-tags span, .employment-skill-tag { max-width: 100%; padding: 4px 9px; background: #F6F5F1; color: #405361; border: 1px solid #DFE2E2; border-radius: 5px; font-size: .78rem; font-weight: 500; line-height: 1.65; }
.cap-tags, .pill-wrap { margin-top: 22px; }
.project-tags, .employment-skill-tags { padding-top: 22px; margin-top: 22px; border-top: 1px solid #E7E7E2; }
.clean-bullets, .practice-bullets { padding-left: 1.2em; }
.clean-bullets li, .practice-bullets li { padding-left: .3em; }
.clean-bullets li + li, .practice-bullets li + li { margin-top: 12px; }
.clean-bullets li::marker, .practice-bullets li::marker { color: var(--bronze); }
.content-details { border-block: 1px solid #DADFDf; margin-block: 22px; padding-block: 14px; }
.content-details summary { color: #214D70; font-weight: 650; cursor: pointer; line-height: 1.7; }
.content-details summary::marker { color: var(--bronze); }
.content-details summary:hover { text-decoration: underline; text-underline-offset: .2em; }
.content-details[open] summary { margin-bottom: 22px; }
.content-details p + p { margin-top: 18px; }

/* Profile. */
#profile { background: linear-gradient(100deg, #FFFFFFED, #FFFFFFE0), url('images/d53b3c_65f0137c859d40e88473ab5a55d8658b.webp') center / cover no-repeat; }
.profile-editorial-heading { margin-bottom: 28px; }
.profile-photo-single { width: 166px; height: 166px; margin: 0 auto; border-radius: 50%; border: 4px solid white; outline: 1px solid #CBB17F; overflow: hidden; box-shadow: 0 8px 24px #101A2C15; }
.profile-photo-single img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.profile-contact-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 22px; margin: 24px auto 30px; font-size: .87rem; font-weight: 550; }
.profile-contact-meta span, .profile-contact-meta a { display: inline-flex; gap: 7px; align-items: center; }
.profile-prose { max-width: 830px; margin: 0 auto; padding: 30px 34px; background: #FFFFFFF5; border: 1px solid #E4E2DA; border-radius: var(--card-radius); }
.profile-prose > p + p { margin-top: 18px; }
.profile-prose .content-details { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.profile-signature { width: 250px; max-width: 75%; margin: 30px auto 0; }
.profile-signature img { width: 100%; filter: brightness(0); opacity: .85; }

/* Principles: generous padding protects the text from card edges. */
#principles { background: linear-gradient(110deg, #F5F1E8E0, #F5F1E8BF), url('images/section-01-principles-hq.webp') center 48% / cover no-repeat; }
.practice-grid { gap: 28px; }
.practice-card { padding: 42px 52px; }
.practice-card h3 { text-align: center; margin-bottom: 22px; font-size: 1.2rem; }
.practice-bullets { line-height: 1.8; }
.list-lead { margin-bottom: 8px; }
.career-detail-row p + p { margin-top: 12px; }

/* Refreshed high-resolution Norfolk and English countryside section photographs.
   Side-to-side overlays protect readable text contrast while retaining the imagery. */
#capabilities {
  background: linear-gradient(105deg, rgba(16,26,44,.86), rgba(16,26,44,.77)),
    url('images/section-02-legal-skills-hq.webp') center 45% / cover no-repeat;
}
#capabilities .section-head h2 { color: white; }
#capabilities .kicker { color: var(--soft-gold); }
#capabilities .section-sub { color: #E0E5EA; }

#legal-highlights {
  background: linear-gradient(105deg, rgba(245,241,232,.85), rgba(245,241,232,.76)),
    url('images/section-03-legal-casework-hq.webp') center 35% / cover no-repeat;
}
#career {
  background: linear-gradient(105deg, rgba(245,241,232,.83), rgba(245,241,232,.74)),
    url('images/section-04-employment-hq.webp') center 48% / cover no-repeat;
}
#systems {
  background: linear-gradient(105deg, rgba(245,241,232,.87), rgba(245,241,232,.79)),
    url('images/section-05-systems-hq.webp') center / cover no-repeat;
}
#digital-projects {
  background: linear-gradient(105deg, rgba(245,241,232,.85), rgba(245,241,232,.75)),
    url('images/section-06-digital-projects-hq.webp') center 48% / cover no-repeat;
}
/* Subtle dividers remain visible where the photographs meet. */
#career, #systems, #digital-projects, #qualifications { border-top: 1px solid #E3DED3; }

/* Six legal studies, three natural pairs. No nth-child spans or card opacity. */
.legal-highlights-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.legal-case-study { height: 100%; }
.legal-case-study h3 { font-size: 1.22rem; line-height: 1.45; }
.legal-role-meta { display: flex; align-items: flex-start; flex-direction: column; gap: 10px; margin-top: 16px; }
.legal-role-label { font-size: .87rem; font-weight: 650; color: #435769; }
.legal-date-pill, .entry-date { display: inline-flex; align-items: center; max-width: 100%; padding: 5px 10px; background: var(--navy); color: white; border-radius: 5px; font-size: .78rem; font-weight: 600; line-height: 1.6; }
.case-study-part + .case-study-part { margin-top: 22px; }
.case-study-part h4 { margin-bottom: 10px; }
.case-study-scope { border-left: 3px solid var(--gold); padding-left: 16px; }
.case-study-scope p { font-size: .93rem; }

/* Employment keeps dates below employer names at every desktop width. */
.timeline-entry { display: flex; flex-direction: column; }
.entry-top { padding-bottom: 23px; border-bottom: 1px solid #E4E5E2; margin-bottom: 23px; }
.entry-title { font-size: 1.18rem; }
.entry-org { margin-top: 9px; color: var(--bronze); font-weight: 650; font-size: .94rem; }
.entry-date { margin-top: 14px; }
.entry-date.active { background: #1B384B; }
.career-detail-list { display: grid; gap: 20px; }
.career-detail-label, .project-detail-label { display: block; margin-bottom: 6px; color: var(--bronze); font-size: .78rem; line-height: 1.6; font-weight: 750; letter-spacing: .045em; }
.employment-skill-tags { margin-top: auto; }
.career-detail-list + .employment-skill-tags { margin-top: 24px; }
@supports (grid-template-rows: subgrid) {
  .timeline-entry { display: grid; grid-template-rows: subgrid; grid-row: span 3; gap: 0; }
  .entry-top { display: flex; flex-direction: column; align-items: flex-start; }
  .entry-date { margin-top: auto; }
  .entry-title-group { padding-bottom: 14px; }
}

/* Digital tools and projects. */
.system-box h3 { text-align: center; line-height: 1.5; text-wrap: balance; }
.system-box p { margin-top: 18px; }
.system-icon { margin-bottom: 20px; }
.project-index { display: block; color: var(--bronze); font: 700 .75rem/1.6 'Space Mono', monospace; letter-spacing: .07em; margin-bottom: 14px; }
.digital-project-card h3 { font-size: 1.2rem; line-height: 1.45; }
.project-owner { margin-top: 12px; color: #4C5D6B; font-size: .89rem; font-weight: 600; }
.project-detail-list { display: grid; gap: 20px; margin-top: 24px; }
.project-detail-row + .project-detail-row { margin-top: 20px; }
.project-detail-list .project-detail-row + .project-detail-row { margin-top: 0; }
.digital-project-card .content-details { margin-bottom: 0; }

/* Qualifications. */
#qualifications { background: linear-gradient(100deg, #F5F1E8F5, #F5F1E8E8), url('images/d53b3c_022f43fc80fd48e5a8aba188a0a99641.webp') right center / cover no-repeat; }
.ledger-head { margin-bottom: 24px; }
.ledger-head h3 { font-size: 1.21rem; line-height: 1.5; }
.ledger-head p { margin-top: 12px; font-size: .9rem; }
.ledger-card:first-child { background: var(--navy); color: white; border-color: var(--navy); }
.ledger-card:first-child h3 { color: white; }
.ledger-card:first-child .ledger-head p { color: #D9E0E8; }
.transcript-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 10px 14px; padding-block: 15px; border-top: 1px solid #45546A; font-size: .91rem; line-height: 1.65; }
.mod-code { display: inline-block; min-width: 36px; padding: 2px 5px; margin-right: 6px; border: 1px solid #807351; border-radius: 4px; color: var(--soft-gold); text-align: center; font: 700 .74rem/1.8 'Space Mono', monospace; }
.grade-tag { padding: 3px 9px; border: 1px solid #C6A15B; border-radius: 5px; color: var(--soft-gold); font-weight: 750; white-space: nowrap; }
.score-track { display: block; grid-column: 1 / -1; height: 5px; margin-top: 3px; border-radius: 4px; overflow: hidden; background: #3C4C62; }
.score-track > span { display: block; height: 100%; background: var(--gold); border-radius: inherit; }
.qual-detail-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 15px; font-size: .87rem; font-weight: 650; }
.qual-row { display: flex; gap: 13px; padding-block: 18px; border-top: 1px solid #E0E3E1; }
.qual-icon { display: flex; align-items: center; justify-content: center; width: 33px; height: 33px; flex: 0 0 33px; background: #F5F1E8; border: 1px solid #D9C49C; border-radius: 8px; color: var(--bronze); }
.qual-icon svg { width: 17px; height: 17px; }
.qual-content { min-width: 0; }
.qual-name { font: 750 .96rem/1.6 'Manrope', sans-serif; color: var(--navy); }
.qual-detail { font-size: .86rem; color: #4C5D6B; margin-top: 5px; line-height: 1.7; }

/* One contact background, with a strong reading overlay. */
.contact-wrapper { background: linear-gradient(100deg, #101A2CEF, #101A2CCF), url('images/d53b3c_48f8ee66b41641a6b28c34a1d4d42a5b.webp') center 55% / cover no-repeat; color: white; }
.contact-banner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 54px; align-items: center; }
.contact-copy h2 { color: white; font-size: clamp(1.8rem, 3vw, 2.35rem); }
.contact-copy .kicker { color: var(--soft-gold); }
.contact-copy > p { margin-top: 22px; color: #E4E8ED; }
.contact-proof { margin-top: 22px; font-size: .87rem; color: var(--soft-gold); }
.contact-proof > span { margin-right: 6px; }
.contact-cv-request a { color: white; font-size: .9rem; }
.contact-links { display: grid; gap: 14px; }
.contact-item { display: flex; justify-content: space-between; gap: 14px; padding: 18px 20px; min-height: 64px; border: 1px solid #8190A3; border-radius: 8px; color: white; background: #101A2CE8; text-decoration: none; }
.contact-primary { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.contact-item:hover { border-color: var(--soft-gold); background: #24344B; }
.contact-primary:hover { background: var(--soft-gold); color: var(--navy); }
.contact-label { display: block; min-width: 0; font-weight: 700; }
.contact-btn-icon { width: 20px; height: 20px; margin-right: 9px; }
.contact-email-address { display: block; margin-top: 7px; font-size: .83rem; font-weight: 500; overflow-wrap: anywhere; }
.contact-item > .link-arrow { margin-top: 4px; }

/* Footer shares the content alignment. */
.norfolk-footer { padding: 48px 0 24px; background: var(--navy); color: #DDE3EA; border-top: 1px solid #4F524F; }
.norfolk-footer-inner, .norfolk-footer-bottom { width: min(100% - 64px, 1120px); margin-inline: auto; }
.norfolk-footer-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 70px; align-items: center; }
.norfolk-footer-brand img { width: 280px; margin-bottom: 18px; }
.norfolk-footer-brand p { font-size: .91rem; }
.norfolk-footer-brand .norfolk-footer-location { font-size: .85rem; margin-top: 6px; color: #B9C5D1; }
.norfolk-footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 24px; }
.norfolk-footer-links a { display: flex; align-items: center; min-height: 42px; color: #E6EAF0; font-size: .9rem; text-decoration: none; }
.norfolk-footer-links a { gap: 10px; }
.norfolk-footer-links .nav-item-icon { width: 19px; height: 19px; flex-basis: 19px; }
.norfolk-footer-links a > span { min-width: 0; }
.norfolk-footer a:hover { color: var(--soft-gold); text-decoration: underline; }
.norfolk-footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding-top: 24px; margin-top: 36px; border-top: 1px solid #42516A; font-size: .78rem; }
.norfolk-footer-bottom a { color: var(--soft-gold); padding-block: 4px; }
.norfolk-footer-utility { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }

/* Tablet: keep two columns where each card still has readable line lengths. */
@media (max-width: 1050px) {
  .capabilities-grid, .systems-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .practice-card { padding: 38px 42px; }
  .contact-banner { gap: 32px; }
}
@media (max-width: 760px) {
  .container, .jump-header-inner, .norfolk-footer-inner, .norfolk-footer-bottom { width: calc(100% - 40px); }
  section:not(.hero), .contact-wrapper { padding-block: 62px; }
  .section-head, .projects-heading { margin-bottom: 32px; }
  h2 { font-size: clamp(1.8rem, 6.2vw, 2.25rem); }
  .jump-header-inner { min-height: 68px; gap: 12px; }
  .jump-header-label { width: 176px; }
  .jump-menu-toggle { padding-inline: 10px; }
  .hero-visual { background-position: 53% center; }
  /* Phone-specific focal points keep the subject visible in portrait crops. */
  #profile { background-position: 80% 0%; } /* Keep the church tower in the phone crop */
  #principles { background-position: 54% 38%; }
  #capabilities { background-position: 52% 45%; }
  #legal-highlights { background-position: 54% 38%; }
  #career { background-position: 52% 39%; }
  #systems { background-position: 50% 32%; }
  #digital-projects { background-position: 56% 43%; }
  #qualifications { background-position: 72% 32%; }
  .contact-wrapper { background-position: 54% 42%; }

  .hero-identity { min-height: 490px; padding-block: 56px 42px; }
  .hero-signature { width: 92%; margin-bottom: 22px; }
  /* A little extra separation from brighter clouds on phones, without changing desktop. */
  .hero-signature img { filter: brightness(1.12) drop-shadow(0 2px 10px rgba(16,26,44,.65)) drop-shadow(0 0 12px rgba(255,248,232,.22)); }
  .hero h1 { font-size: 1.3rem; letter-spacing: .01em; }
  .hero-subtitle { font-size: 1rem; max-width: 340px; }
  .hero-highlights { font-size: .88rem; }
  .hero-highlight-separator { padding-inline: 5px; }
  .hero-summary { padding-block: 12px 38px; }
  .dossier-list { column-gap: 24px; }
  .practice-grid, .legal-highlights-grid, .timeline, .digital-projects-grid, .ledger-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .project-card, .timeline-entry, .ledger-card { padding: 28px; }
  .practice-card { padding: 36px 40px; }
  .practice-card h3 { font-size: 1.16rem; }
  .profile-prose { padding: 26px; }
  .profile-contact-meta { column-gap: 17px; }
  .contact-banner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .norfolk-footer-inner { gap: 36px; grid-template-columns: minmax(0, 1fr); align-items: start; }
  .norfolk-footer { padding-top: 40px; }
  .timeline-entry { display: flex; grid-row: auto; }
  .entry-top { display: block; }
  .entry-date { margin-top: 0; }
}
@media (max-width: 560px) {
  .capabilities-grid, .systems-grid, .dossier-list { grid-template-columns: minmax(0, 1fr); }
  .cap-block, .system-box { padding: 28px; }
  .hero-cta-row { width: 100%; gap: 12px; }
  .btn-hero-primary, .btn-hero-secondary { width: 100%; max-width: 360px; }
  .hero-identity { min-height: 540px; }
  .hero-highlights { font-size: .84rem; }
  .dossier-list { gap: 22px; }
  .dossier-list strong { font-size: .97rem; }
  .dossier-list span { font-size: .91rem; }
  .cap-block, .system-box, .project-card, .timeline-entry, .ledger-card { padding: 25px; }
  .practice-card { padding: 34px 32px; }
  .practice-icon, .cap-icon, .system-icon { width: 74px; height: 74px; border-radius: 16px; }
  .profile-prose { padding: 24px; }
  .profile-contact-meta { flex-direction: column; align-items: center; gap: 12px; }
  .transcript-row { font-size: .87rem; gap: 10px; }
  .mod-code { margin-right: 4px; min-width: 32px; font-size: .69rem; }
  .norfolk-footer-links { column-gap: 20px; }
  .norfolk-footer-links a { font-size: .87rem; }
}
@media (max-width: 360px) {
  .container, .jump-header-inner, .norfolk-footer-inner, .norfolk-footer-bottom { width: calc(100% - 32px); }
  .jump-header-label { width: 148px; max-width: calc(100% - 110px); }
  .jump-menu-chevron { display: none; }
  .jump-menu-toggle { gap: 7px; font-size: .83rem; }
  .hero-highlight-separator { padding-inline: 2px; }
  .hero-highlights { font-size: .8rem; }
  .cap-block, .system-box, .project-card, .timeline-entry, .ledger-card { padding: 23px; }
  .practice-card { padding: 32px 30px; }
  .profile-prose { padding: 22px; }
  .contact-item { padding-inline: 16px; }
}

/* Preference support does not depend on script execution. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (prefers-contrast: more) {
  .practice-card, .cap-block, .system-box, .project-card, .timeline-entry, .ledger-card { border: 2px solid currentColor; box-shadow: none; }
  .profile-prose { background: white; }
  #profile, #principles, #capabilities, #legal-highlights, #career, #systems, #digital-projects, #qualifications { background-image: none; }
  .cap-tag, .sys-pill, .project-tags span, .employment-skill-tag { color: var(--navy); border-color: currentColor; }
}
@media (forced-colors: active) {
  .hero-visual, .contact-wrapper, #profile, #principles, #qualifications { background-image: none; }
  #capabilities::before, #legal-highlights::before, #career::before, #systems::before, #digital-projects::before { display: none; }
  .practice-card, .cap-block, .system-box, .project-card, .timeline-entry, .ledger-card, .jump-menu-toggle { border: 1px solid CanvasText; box-shadow: none; }
  .hero-signature, .profile-signature, .norfolk-footer-brand img, .scroll-progress { display: none; }
  .score-track { border: 1px solid CanvasText; }
}
@media print {
  @page { margin: 16mm; }
  html { scroll-behavior: auto; }
  body { background: white; color: black; font-size: 10pt; }
  .jump-header, .skip-link, .scroll-progress, .hero-signature, .profile-signature, .norfolk-footer, .hero-cta-row, .profile-photo-single { display: none; }
  section:not(.hero), .contact-wrapper { padding-block: 20px; }
  .container { width: 100%; }
  .hero, .hero-visual, #profile, #principles, #capabilities, #legal-highlights, #career, #systems, #digital-projects, #qualifications, .contact-wrapper { background: white; color: black; }
  #capabilities::before, #legal-highlights::before, #career::before, #systems::before, #digital-projects::before { display: none; }
  .hero-identity { min-height: 0; padding-block: 12px; }
  .hero h1, .hero-subtitle, #capabilities .section-head h2, #capabilities .kicker, #capabilities .section-sub, .contact-copy h2, .contact-copy .kicker, .contact-copy > p, .contact-proof, .dossier-list span, .dossier-box-title, .hero-highlights { color: black; }
  .hero-summary { padding-block: 12px; }
  .section-head, .projects-heading { margin-bottom: 20px; }
  .practice-grid, .capabilities-grid, .systems-grid, .projects-grid, .timeline, .ledger-grid, .dossier-list, .contact-banner { display: block; }
  .practice-card, .cap-block, .system-box, .project-card, .timeline-entry, .ledger-card, .profile-prose { break-inside: avoid; background: white; box-shadow: none; padding: 18px; margin-bottom: 18px; border: 1px solid #AAA; }
  .ledger-card:first-child, .ledger-card:first-child h3, .ledger-card:first-child .ledger-head p, .grade-tag, .mod-code { background: white; color: black; border-color: #777; }
  .contact-item, .contact-cv-request a { color: black; background: white; border-color: #777; }
  details > summary { display: none; }
  details > *:not(summary) { display: block !important; }
  a { color: black; }
  .dossier-list li { margin-bottom: 14px; }
}
