:root {
  --ink: #171927;
  --muted: #626579;
  --paper: #f3f5fa;
  --card: rgba(255, 255, 255, 0.9);
  --line: rgba(49, 54, 96, 0.14);
  --primary: #3047c9;
  --primary-dark: #20338f;
  --yellow: #ffe17a;
  --periwinkle: #dfe3ff;
  --ice: #dce9f7;
  --coral: #ef6548;
  --shadow: 0 3px 0 rgba(48, 71, 201, .04), 0 26px 65px rgba(38, 42, 79, .12);
  color-scheme: light;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 280px;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

button { font: inherit; }

svg {
  width: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.network-background {
  position: fixed;
  inset: 0;
  display: block;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(48, 71, 201, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(48, 71, 201, .025) 1px, transparent 1px),
    radial-gradient(circle at 12% 18%, rgba(255, 225, 122, .34), transparent 27%),
    radial-gradient(circle at 90% 24%, rgba(223, 227, 255, .64), transparent 31%),
    radial-gradient(circle at 55% 92%, rgba(239, 101, 72, .12), transparent 28%);
  background-size: 44px 44px, 44px 44px, auto, auto, auto;
}

.skip-link {
  position: fixed;
  z-index: 20;
  left: 1rem;
  top: 1rem;
  padding: .8rem 1rem;
  border-radius: .65rem;
  color: white;
  background: var(--primary-dark);
  transform: translateY(-180%);
  transition: transform .2s ease;
}

.skip-link:focus { transform: translateY(0); }

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 3.5rem) 0 2rem;
}

.intro {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: clamp(1rem, 3vw, 2.5rem);
  max-width: 900px;
  padding: clamp(1rem, 3vw, 2rem) 0 clamp(2rem, 6vw, 4.5rem);
}

.monogram {
  display: grid;
  place-items: center;
  width: clamp(3.6rem, 8vw, 5.4rem);
  aspect-ratio: 1;
  border: 1px solid rgba(48, 71, 201, .2);
  border-radius: 32% 68% 61% 39% / 39% 38% 62% 61%;
  color: white;
  background: var(--primary);
  box-shadow: 0 12px 30px rgba(48, 71, 201, .22);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -.06em;
  transform: rotate(-4deg);
  transition: transform .25s ease;
}

.monogram:hover { transform: rotate(3deg) scale(1.04); }

.eyebrow, .card-kicker {
  margin: 0 0 .7rem;
  color: var(--primary-dark);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: .55rem;
}

.eyebrow span {
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 .3rem rgba(239, 101, 72, .15);
}

h1, h2, p { margin-top: 0; }

h1 {
  max-width: 800px;
  margin-bottom: .75rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.25rem, 8vw, 6.8rem);
  font-weight: 500;
  line-height: .91;
  letter-spacing: -.065em;
}

.lede {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 2.2vw, 1.28rem);
  line-height: 1.65;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, .9fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: stretch;
}

.contact-column {
  display: grid;
  gap: clamp(1rem, 2.5vw, 2rem);
}

.contact-card, .photo-section {
  border: 1px solid rgba(255,255,255,.92);
  border-radius: clamp(1.25rem, 3vw, 2rem);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.contact-card {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.card-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.card-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 3rem;
  aspect-ratio: 1;
  border-radius: 1rem;
  color: var(--primary-dark);
  background: var(--ice);
}

.professional-card .card-icon { background: var(--periwinkle); }

.card-heading h2, .photo-heading h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  letter-spacing: -.035em;
}

.card-kicker { margin-bottom: .25rem; }

.contact-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: .75rem;
  margin-bottom: 1.25rem;
}

.primary-action, .phone-action, .company-link, .site-list a {
  border: 1px solid var(--line);
  border-radius: 1rem;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.primary-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 4rem;
  padding: .9rem 1rem;
  color: white;
  background: var(--primary);
  border-color: var(--primary);
  font-weight: 750;
  text-align: center;
}

.primary-action:hover { background: var(--primary-dark); }

.phone-action {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 4rem;
  padding: .7rem 1rem;
  background: rgba(255,255,255,.72);
}

.phone-action span, .site-list small, .company-link small {
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.25;
}

.phone-action strong { font-size: .97rem; }

.phone-pair { display: grid; gap: .5rem; }

.phone-pair .phone-action { min-height: 3.1rem; padding-block: .5rem; }

.site-list { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }

.site-list a, .company-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .9rem 1rem;
  background: rgba(255,255,255,.5);
}

.site-list a span, .company-link span { display: grid; gap: .15rem; }

.site-list svg, .company-link svg { flex: 0 0 auto; color: var(--primary); }

.company-link { min-height: 4rem; }

.primary-action:hover, .phone-action:hover, .company-link:hover, .site-list a:hover {
  transform: translateY(-2px);
  border-color: rgba(48, 71, 201, .34);
  box-shadow: 0 10px 22px rgba(48, 71, 201, .11);
}

.photo-section {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: clamp(1.25rem, 3vw, 2rem);
  overflow: hidden;
}

.photo-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.photo-heading > p {
  max-width: 11rem;
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.45;
  text-align: right;
}

.photo-collage {
  display: grid;
  flex: 1;
  grid-template-columns: 1.25fr .75fr;
  grid-template-rows: 1fr 1fr;
  gap: .75rem;
  min-height: 530px;
}

.photo {
  position: relative;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 1.2rem;
  color: white;
  background: var(--ice);
  cursor: zoom-in;
}

.photo-main { grid-row: 1 / -1; }

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2,.8,.2,1), filter .3s ease;
}

.photo-main img { object-position: 52% center; }
.photo-top img { object-position: 50% 31%; }
.photo-bottom img { object-position: 50% 31%; }

.photo span {
  position: absolute;
  left: 50%;
  bottom: .85rem;
  padding: .5rem .8rem;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 2rem;
  background: rgba(24, 27, 56, .72);
  backdrop-filter: blur(8px);
  font-size: .75rem;
  font-weight: 700;
  opacity: 0;
  transform: translate(-50%, .5rem);
  transition: opacity .25s ease, transform .25s ease;
  white-space: nowrap;
}

.photo:hover img { transform: scale(1.035); filter: saturate(1.05); }
.photo:hover span, .photo:focus-visible span { opacity: 1; transform: translate(-50%, 0); }

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

footer {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding: 2rem .25rem 0;
  color: var(--muted);
  font-size: .82rem;
}

.qr-trigger {
  padding: .7rem 1rem;
  border: 1px solid rgba(48, 71, 201, .28);
  border-radius: 2rem;
  color: var(--primary-dark);
  background: rgba(255, 255, 255, .68);
  font-weight: 750;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.qr-trigger:hover {
  transform: translateY(-2px);
  border-color: rgba(48, 71, 201, .52);
  box-shadow: 0 8px 18px rgba(48, 71, 201, .12);
}

.lightbox {
  width: min(94vw, 1120px);
  max-width: none;
  max-height: 92vh;
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 1.2rem;
  color: white;
  background: #171927;
  box-shadow: 0 35px 100px rgba(0,0,0,.42);
}

.lightbox::backdrop {
  background: rgba(18, 20, 43, .78);
  backdrop-filter: blur(10px);
}

.qr-dialog {
  width: min(92vw, 430px);
  max-width: none;
  max-height: 92vh;
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 1.5rem;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 35px 100px rgba(0, 0, 0, .3);
}

.qr-dialog::backdrop {
  background: rgba(18, 20, 43, .78);
  backdrop-filter: blur(10px);
}

.qr-content {
  display: grid;
  justify-items: center;
  padding: clamp(1.25rem, 5vw, 2rem);
  text-align: center;
}

.qr-content h2 {
  margin: 0 0 1rem;
  font-size: 1.6rem;
  letter-spacing: -.035em;
}

.qr-content img {
  display: block;
  width: min(100%, 320px);
  height: auto;
  margin-bottom: 1rem;
  border-radius: .75rem;
}

.qr-content a {
  color: var(--primary-dark);
  font-weight: 750;
  text-underline-offset: .2em;
}

.lightbox img {
  display: block;
  width: 100%;
  max-height: 82vh;
  border-radius: 1.2rem;
  object-fit: contain;
}

.lightbox p {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  max-width: calc(100% - 5rem);
  margin: 0;
  padding: .5rem .75rem;
  border-radius: .6rem;
  background: rgba(24, 27, 56, .78);
  font-size: .82rem;
  backdrop-filter: blur(7px);
}

.lightbox-close, .qr-close {
  position: absolute;
  z-index: 2;
  top: .8rem;
  right: .8rem;
  display: grid;
  place-items: center;
  width: 2.8rem;
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.36);
  border-radius: 50%;
  color: white;
  background: rgba(24, 27, 56, .78);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.qr-close {
  color: var(--primary-dark);
  background: rgba(255, 255, 255, .92);
  border-color: rgba(48, 71, 201, .22);
}

body:has(dialog[open]) { overflow: hidden; }

@media (max-width: 960px) {
  .content-grid { grid-template-columns: 1fr; }
  .photo-section { min-height: 680px; }
  .photo-collage { min-height: 560px; }
}

@media (max-width: 620px) {
  .page-shell { width: min(100% - 1rem, 1180px); padding-top: .5rem; }
  .intro { grid-template-columns: 1fr; gap: 1.35rem; padding-inline: .75rem; }
  .monogram { width: 3.7rem; }
  h1 { font-size: clamp(3rem, 15vw, 4.6rem); }
  .contact-card, .photo-section { border-radius: 1.35rem; }
  .contact-actions, .site-list { grid-template-columns: 1fr; }
  .photo-section { min-height: auto; }
  .photo-heading { align-items: start; }
  .photo-heading > p { max-width: 8rem; }
  .photo-collage {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(340px, 63vh) 180px;
    min-height: 0;
  }
  .photo-main { grid-column: 1 / -1; grid-row: auto; }
  .photo span { opacity: 1; transform: translate(-50%, 0); }
  footer { flex-direction: column; align-items: center; text-align: center; }
}

@media (max-width: 370px) {
  .photo-heading { display: block; }
  .photo-heading > p { max-width: none; margin-top: .5rem; text-align: left; }
  .photo-collage { grid-template-rows: 340px 150px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

@media (prefers-reduced-transparency: reduce) {
  .contact-card, .photo-section { background: #fff; backdrop-filter: none; }
}
