:root {
  color-scheme: light;
  --navy: #102c40;
  --ink: #142d40;
  --red: #c72534;
  --muted: #596c7b;
  --line: #dce4e9;
  --paper: #f3f6f8;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 1rem; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
svg { display: block; flex-shrink: 0; }
a:focus-visible { outline: 3px solid #137eae; outline-offset: 5px; }
.shell { width: min(1360px, calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 10; top: -8rem; left: 1rem; background: white; padding: .75rem 1rem; border-radius: .4rem; }
.skip-link:focus { top: 1rem; }
.masthead { background: white; border-top: 4px solid var(--red); border-bottom: 1px solid var(--line); }
.masthead-inner { min-height: 98px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: 1rem; }
.brand { display: flex; align-items: center; gap: 1rem; }
.brand-mark { width: 52px; height: 52px; object-fit: contain; flex-shrink: 0; }
.brand-name { font-size: 1.22rem; font-weight: 650; line-height: 1.3; letter-spacing: -.02em; }
.brand-name span { display: block; }
.workspace-label { display: flex; align-items: center; gap: 1rem; color: var(--muted); font-size: .75rem; letter-spacing: .14em; }
.workspace-monogram { color: var(--navy); font-weight: 750; font-size: 1.3rem; letter-spacing: .08em; padding-right: 1rem; border-right: 1px solid #cdd8df; }
main { padding-top: 2.1rem; padding-bottom: 2.4rem; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; }
h1 { font-size: clamp(2.25rem, 3.9vw, 3.2rem); line-height: 1.1; font-weight: 650; letter-spacing: -.055em; margin: 0; }
.heading-accent { color: var(--red); }
.page-heading p { margin: .65rem 0 0; color: var(--muted); }
.new-tab-note { display: inline-flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .875rem; flex-shrink: 0; margin-bottom: .12rem; }
.new-tab-note svg { width: 16px; height: 16px; }
.portal-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; align-items: stretch; }
.calculators, .projects { display: flex; flex-direction: column; min-width: 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: 1rem; }
.section-heading h2 { margin: 0; font-size: 1.0625rem; font-weight: 650; }
.section-heading > span { font-size: .75rem; font-weight: 650; letter-spacing: .08em; color: #667987; }
.calculator-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; flex: 1; }
.tool-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: white; border: 1px solid #e0e6eb; border-radius: .85rem; text-decoration: none; box-shadow: 0 5px 15px #142e4306; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.tool-card:hover { transform: translateY(-5px); border-color: #a9bbc8; box-shadow: 0 16px 36px #142e4314; }
.card-image, .project-image { position: relative; height: 225px; overflow: hidden; background: #c9d5dd; margin: 0; }
.card-image::after, .project-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #0a1b2b28, transparent 40%, #0a1b2b50); pointer-events: none; }
.card-image > img, .project-image > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .55s ease; }
.lease .card-image > img { object-position: 42% center; }
.investment .card-image > img { object-position: 35% center; }
.tool-card:hover .card-image > img { transform: scale(1.045); }
.image-label { position: absolute; z-index: 1; left: 1rem; bottom: 1rem; background: #102c40ec; border: 1px solid #ffffff35; color: white; border-radius: .25rem; padding: .4rem .65rem; font-size: .75rem; font-weight: 600; letter-spacing: .065em; }
.image-arrow { position: absolute; z-index: 1; top: 1rem; right: 1rem; display: grid; place-items: center; width: 34px; height: 34px; background: #ffffffef; color: var(--navy); border-radius: 50%; }
.image-arrow svg { width: 18px; height: 18px; }
.card-content { display: flex; flex-direction: column; align-items: flex-start; padding: 1.55rem 1.5rem 1.4rem; flex: 1; }
.tool-icon { color: var(--red); margin-bottom: .9rem; }
.tool-icon svg { width: 25px; height: 25px; }
.investment .tool-icon { color: #245575; }
.tool-card h3 { margin: 0; font-size: 1.38rem; line-height: 1.3; font-weight: 650; letter-spacing: -.025em; }
.tool-card p { margin: .75rem 0 1.7rem; font-size: 1rem; color: var(--muted); }
.card-action { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 1rem; margin-top: auto; border-top: 1px solid #e4e9ed; padding-top: 1rem; font-size: .9375rem; font-weight: 650; color: var(--navy); }
.card-action svg { width: 20px; height: 20px; color: var(--red); transition: transform .22s ease; }
.tool-card:hover .card-action svg { transform: translateX(3px); }
.project-card { display: flex; flex-direction: column; flex: 1; background: var(--navy); color: white; overflow: hidden; border: 1px solid #18374e; border-radius: .85rem; box-shadow: 0 8px 24px #142e430d; }
.project-image > img { object-position: center 27%; }
.project-image::after { background: linear-gradient(180deg, transparent 30%, #102c4090); }
.project-image .image-label { left: 1.2rem; bottom: 1rem; background: #102c40e8; }
.project-image figcaption { position: absolute; z-index: 1; right: .65rem; top: .6rem; color: white; background: #102c40dc; padding: .2rem .45rem; border-radius: .2rem; font-size: .75rem; }
.project-content { display: flex; flex-direction: column; padding: 1.5rem; flex: 1; }
.project-content h3 { margin: 0; font-size: 1.7rem; line-height: 1.2; letter-spacing: -.035em; font-weight: 550; }
.project-content > p { margin: .65rem 0 1.5rem; color: #c4d5e1; font-size: 1rem; }
.resource-list { display: flex; flex-direction: column; gap: .65rem; margin-top: auto; }
.resource-link { display: flex; align-items: center; gap: .7rem; padding: .85rem .9rem; border: 1px solid #ffffff36; background: #ffffff07; border-radius: .4rem; text-decoration: none; transition: background .2s ease, border-color .2s ease; }
.resource-link:hover { border-color: #ffffff85; background: #ffffff18; }
.resource-link:focus-visible { outline-color: #9ae3fc; outline-offset: 3px; }
.resource-link span { flex: 1; font-size: .9375rem; font-weight: 550; }
.resource-icon { width: 20px; height: 20px; color: #c6d8e5; }
.resource-arrow { width: 18px; height: 18px; color: #c6d8e5; }
footer { padding-bottom: 1.5rem; }
.footer-inner { border-top: 1px solid var(--line); padding-top: 1.1rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .7rem 2rem; font-size: .8125rem; color: var(--muted); }
.footer-brand { color: var(--navy); font-weight: 700; letter-spacing: .09em; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (min-width: 1560px) { .card-image, .project-image { height: 245px; } }
@media (max-width: 1120px) {
  .shell { width: calc(100% - 48px); }
  .portal-grid, .calculator-grid { gap: 1rem; }
  .card-content, .project-content { padding: 1.3rem; }
  .section-heading > span { display: none; }
  .card-image, .project-image { height: 200px; }
  .tool-card h3 { font-size: 1.25rem; }
  .project-content h3 { font-size: 1.5rem; }
}
@media (max-width: 950px) {
  .portal-grid { grid-template-columns: 1fr; gap: 2rem; }
  .calculator-grid { gap: 1.25rem; }
  .tool-card h3 { font-size: 1.375rem; }
  .card-image { height: 225px; }
  .project-card { display: grid; grid-template-columns: 1fr 1fr; }
  .project-image { height: 100%; min-height: 300px; }
  .project-content { padding: 1.75rem; }
  .project-content h3 { font-size: 1.8rem; }
  .page-heading { align-items: flex-start; }
  .new-tab-note { align-self: flex-end; }
}
@media (max-width: 700px) {
  .page-heading { flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
  .new-tab-note { align-self: flex-start; }
  .workspace-label > span:last-child { display: none; }
  .workspace-monogram { border: 0; padding: 0; }
}
@media (max-width: 570px) {
  .shell { width: calc(100% - 36px); }
  .masthead-inner { min-height: 90px; gap: 1rem; }
  .brand { gap: .7rem; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-name { font-size: 1.05rem; }
  .workspace-label { display: none; }
  main { padding-top: 1.7rem; }
  .calculator-grid { grid-template-columns: 1fr; }
  .card-image { height: auto; aspect-ratio: 1.65; }
  .card-content { padding: 1.4rem; }
  .tool-card h3 { font-size: 1.5rem; }
  .tool-card p { margin-bottom: 1.3rem; }
  .project-card { display: flex; }
  .project-image { height: auto; aspect-ratio: 1.45; min-height: 0; }
  .project-content { padding: 1.5rem; }
  .resource-link { padding: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .tool-card:hover, .tool-card:hover .card-image > img, .tool-card:hover .card-action svg { transform: none; }
}
