:root {
  --ink: #142033;
  --muted: #566273;
  --line: #d8e1ea;
  --paper: #fbfaf7;
  --white: #ffffff;
  --accent: #3f83bc;
  --accent-soft: #eaf4fb;
  --shadow: 0 18px 44px rgba(20, 32, 51, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.45;
}

p, nav, footer, .eyebrow, .label, .card p, input, textarea, button {
  font-family: Arial, Helvetica, sans-serif;
}

a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(22px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 247, 0.96);
}

.brand {
  font-size: clamp(0.92rem, 1.25vw, 1.08rem);
  text-decoration: none;
  color: #0B5E8E;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-variant-caps: small-caps;
  font-weight: 600;
}

nav {
  display: flex;
  gap: clamp(18px, 3vw, 34px);
  font-size: 0.91rem;
}

nav a {
  text-decoration: none;
  color: var(--muted);
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--ink);
}

nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: clamp(28px, 4.5vw, 54px);
  align-items: center;
  max-width: 1160px;
  min-height: calc(100vh - 58px);
  margin: 0 auto;
  padding: 30px clamp(22px, 4vw, 54px);
}

.eyebrow,
.label {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  font-weight: 700;
}

h1, h2, h3 {
  line-height: 1.05;
}

h1 {
  margin: 0;
  font-size: clamp(2.7rem, 4.35vw, 4.25rem);
  letter-spacing: -0.045em;
  font-weight: 500;
  color: #142033;
}

.subtitle {
  max-width: 610px;
  margin: 12px 0 18px;
  color: var(--accent);
  font-size: clamp(1.05rem, 1.55vw, 1.28rem);
  line-height: 1.35;
}

.intro {
  max-width: 690px;
  color: #293548;
  font-size: 0.95rem;
  line-height: 1.48;
}

.intro p {
  margin: 0 0 11px;
}

.portrait {
  margin: 0;
  width: 100%;
  max-width: 330px;
  max-height: calc(100vh - 120px);
  justify-self: end;
  border-radius: 20px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  border: 1px solid rgba(216, 225, 234, 0.78);
}

.portrait img {
  display: block;
  width: 100%;
  height: auto;
}

.interests {
  padding: 34px clamp(22px, 4vw, 54px) 42px;
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 22px;
}

.section-heading span {
  width: 72px;
  height: 1px;
  background: var(--accent);
  opacity: 0.55;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
  text-align: center;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
}

.card {
  min-height: 170px;
  padding: 20px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  text-align: center;
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.12rem;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.42;
}

footer {
  padding: 26px 24px 24px;
  text-align: center;
  background: #edf5fa;
  color: var(--muted);
}

footer p { margin: 0 0 8px; }

footer a {
  display: inline-block;
  color: var(--accent);
  margin-bottom: 14px;
}

footer small {
  display: block;
  font-size: 0.78rem;
}

/* Contact page */
.contact-page {
  max-width: 850px;
  margin: 0 auto;
  padding: 28px clamp(18px, 4vw, 46px) 48px;
}

.contact-intro {
  max-width: 720px;
  margin-bottom: 20px;
}

.contact-intro h1 {
  margin: 0;
  font-size: clamp(2.25rem, 4.2vw, 3.65rem);
  letter-spacing: -0.03em;
  font-weight: 500;
  color: #233047;
}

.contact-intro .subtitle {
  max-width: 650px;
  margin-bottom: 0;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.contact-form {
  display: block;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  margin-bottom: 18px;
}

.field label,
.checkboxes legend {
  display: block;
  margin-bottom: 7px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
}

.field label span,
.field label strong,
.checkboxes legend strong {
  color: var(--muted);
  font-weight: 400;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  font: 0.98rem/1.45 Arial, Helvetica, sans-serif;
  padding: 12px 13px;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 3px solid var(--accent-soft);
  border-color: var(--accent);
}

.checkboxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
  margin: 2px 0 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfdfe;
}

.checkboxes legend {
  float: left;
  width: 100%;
  margin-bottom: 10px;
}

.checkboxes label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  color: #293548;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.94rem;
  line-height: 1.35;
}

.checkboxes input {
  margin-top: 3px;
  flex: 0 0 auto;
}

.website-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.form-note {
  margin: 2px 0 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

button[type="submit"] {
  display: inline-block;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font: 700 0.95rem/1 Arial, Helvetica, sans-serif;
  padding: 14px 22px;
}

button[type="submit"]:hover {
  background: #26344a;
}

.form-status {
  margin-top: 16px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
}

.form-status.success { color: #22623a; }
.form-status.error { color: #9d2f2f; }

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .portrait {
    max-width: 360px;
    justify-self: start;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    height: auto;
    min-height: 58px;
    align-items: flex-start;
    gap: 12px;
    flex-direction: column;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  nav {
    flex-wrap: wrap;
  }

  h1 {
    font-size: clamp(2.85rem, 14vw, 4.2rem);
  }

  .hero {
    padding-top: 26px;
  }

  .cards,
  .form-grid,
  .checkboxes {
    grid-template-columns: 1fr;
  }

  .section-heading span {
    width: 36px;
  }
}


.required-key {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.required-star {
  color: #b3261e;
  font-weight: 800;
  margin-left: 3px;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}


.portrait picture {
  display: block;
}

.portrait img {
  aspect-ratio: auto;
}
