:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --border: rgba(21, 39, 86, 0.12);
  --text: #1d2745;
  --muted: #5f6b89;
  --accent: #163c8c;
  --accent-deep: #0f2b68;
  --accent-soft: #e7eefb;
  --ink-dark: #0f172e;
  --shadow: 0 18px 48px rgba(17, 31, 68, 0.08);
  --radius: 24px;
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.page-shell {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding-bottom: 4rem;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
}

.brand,
.site-nav a {
  text-decoration: none;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink-dark);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent);
}

.hero,
.section,
.contact-card,
.value-card {
  animation: rise 700ms ease both;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.95fr;
  gap: 2.75rem;
  align-items: center;
  padding: 3rem 0 5rem;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto 0 -2rem 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(15, 43, 104, 0.18), rgba(15, 43, 104, 0.02));
}

.eyebrow,
.section-label {
  margin: 0 0 0.75rem;
  color: var(--accent-deep);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Newsreader", serif;
  font-weight: 500;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.7rem, 4.85vw, 4.8rem);
  line-height: 1.06;
  max-width: none;
  color: var(--ink-dark);
}

.headline-line {
  display: block;
}

.headline-line:first-child {
  white-space: nowrap;
}

.headline-line + .headline-line {
  margin-top: 0.08em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.02;
  color: var(--ink-dark);
}

h3 {
  font-size: 1.45rem;
  margin-bottom: 0.75rem;
  color: var(--ink-dark);
}

.lede,
.story-grid p,
.value-card p,
.contact-intro,
label,
input,
textarea,
button {
  font-size: 1.05rem;
  line-height: 1.75;
}

.lede {
  max-width: 62ch;
  color: var(--muted);
  margin: 1.5rem 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  box-shadow: 0 14px 26px rgba(15, 43, 104, 0.18);
}

.button-secondary {
  border-color: rgba(21, 39, 86, 0.14);
  background: var(--surface);
  color: var(--accent-deep);
}

.button-full {
  width: 100%;
  cursor: pointer;
}

.hero-photo {
  margin: 0;
  padding: 0.9rem;
  border-radius: calc(var(--radius) + 10px);
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 1px solid rgba(21, 39, 86, 0.08);
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 1 / 1.08;
  object-fit: cover;
  border-radius: var(--radius);
}

.section {
  padding: 2rem 0 1rem;
}

.section-heading {
  margin-bottom: 2rem;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem 2rem;
}

.story-grid p,
.value-card,
.contact-card {
  margin: 0;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.story-grid p,
.value-card p,
.contact-intro {
  color: var(--muted);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.section-contact {
  padding-bottom: 0;
}

.contact-card {
  width: 100%;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.form-status {
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: #eef7f1;
  border: 1px solid rgba(80, 170, 130, 0.18);
  color: #21543d;
}

label {
  display: grid;
  gap: 0.45rem;
  font-weight: 600;
  color: var(--ink-dark);
}

input,
textarea,
button {
  font: inherit;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(21, 39, 86, 0.14);
  border-radius: 18px;
  background: #fbfcff;
  padding: 0.9rem 1rem;
  color: var(--text);
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(22, 60, 140, 0.14);
  border-color: var(--accent);
}

.site-footer {
  padding: 2rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .site-header,
  .hero,
  .story-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    display: grid;
    justify-content: stretch;
  }

  .hero {
    padding-top: 1.5rem;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(calc(100% - 1.25rem), var(--max-width));
  }

  .site-nav {
    gap: 0.85rem;
    font-size: 0.95rem;
  }

  .story-grid p,
  .value-card,
  .contact-card {
    padding: 1.15rem;
  }

  .headline-line + .headline-line {
    margin-top: 0;
  }
}
