:root {
  --paper: #f7f4ef;
  --white: #ffffff;
  --ink: #0b2238;
  --muted: #6f6b64;
  --line: rgba(11, 34, 56, 0.14);
  --stone: #d8d1c5;
  --sage: #6f7c72;
  --smoke: #ece9e3;
  --shadow: 0 28px 70px rgba(11, 34, 56, 0.14);
  --radius: 8px;
  --serif: "Iowan Old Style", "Cormorant Garamond", Georgia, serif;
  --sans: Inter, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 18px clamp(18px, 4vw, 54px);
  background: rgba(247, 244, 239, 0.78);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: border-color 0.3s ease, background 0.3s ease, padding 0.3s ease;
}

.site-header.is-scrolled {
  padding-block: 12px;
  background: rgba(247, 244, 239, 0.94);
  border-bottom-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 15px;
}

.brand strong {
  font-size: 14px;
  font-weight: 550;
  white-space: nowrap;
}

.nav {
  justify-self: center;
  display: flex;
  gap: 26px;
  color: var(--muted);
  font-size: 13px;
}

.nav a,
.header-cta {
  transition: color 0.25s ease, opacity 0.25s ease;
}

.nav a:hover,
.header-cta:hover {
  color: var(--ink);
}

.header-cta {
  font-size: 13px;
  padding: 11px 17px;
  border: 1px solid var(--ink);
  border-radius: 999px;
}

.header-socials {
  display: flex;
  justify-self: end;
  gap: 8px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 17px;
  height: 1px;
  margin: 5px auto;
  background: var(--ink);
  transition: transform 0.25s ease;
}

.menu-open .menu-toggle span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.menu-open .menu-toggle span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.section {
  padding: clamp(72px, 9vw, 128px) clamp(18px, 5vw, 72px);
}

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  align-items: center;
  gap: clamp(34px, 5vw, 78px);
  padding-top: 116px;
  padding-bottom: 46px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--sage);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 0.98;
}

h1 {
  max-width: 760px;
  margin-bottom: 26px;
  font-size: clamp(42px, 6.4vw, 88px);
}

h2 {
  font-size: clamp(38px, 5vw, 72px);
}

h3 {
  font-size: 20px;
  font-weight: 520;
  line-height: 1.18;
}

.hero-lead {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 34px 0 42px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 560;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--ink);
  color: var(--white);
}

.btn-light {
  background: rgba(255, 255, 255, 0.45);
}

.btn-light:hover {
  background: var(--white);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-socials {
  margin: 18px 0 0;
}

.hero-proof span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
}

.hero-visual {
  position: relative;
  align-self: stretch;
  min-height: 540px;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 540px;
  object-fit: cover;
  object-position: center 38%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  position: absolute;
  left: clamp(16px, 3vw, 34px);
  right: clamp(16px, 3vw, 34px);
  bottom: clamp(16px, 3vw, 34px);
  display: grid;
  gap: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
}

.hero-card span,
.about-panel span,
.service-card span,
.article-card span {
  color: var(--sage);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.intro-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding-top: 0;
  background: var(--line);
}

.strip-item {
  min-height: 190px;
  padding: 30px;
  background: var(--paper);
}

.strip-item span {
  display: block;
  margin-bottom: 38px;
  color: var(--sage);
  font-family: var(--serif);
  font-size: 28px;
}

.strip-item p {
  max-width: 390px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

.about-grid,
.why,
.contacts {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(36px, 7vw, 92px);
  align-items: start;
}

.about-copy p,
.contacts-copy p {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.about-panel {
  display: grid;
  border-top: 1px solid var(--line);
}

.about-panel div {
  display: grid;
  gap: 10px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.about-panel strong {
  font-size: clamp(22px, 3vw, 34px);
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
}

.services {
  background: var(--white);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) minmax(0, 0.65fr);
  gap: 42px;
  margin-bottom: 44px;
}

.section-heading h2 {
  max-width: 860px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-card {
  min-height: 292px;
  padding: 28px;
  background: var(--white);
  transition: transform 0.28s ease, background 0.28s ease;
}

.service-card:hover {
  background: #fbfaf7;
  transform: translateY(-3px);
}

.service-card h3 {
  margin: 72px 0 16px;
}

.service-card p,
.article-card p,
.why-item p {
  color: var(--muted);
  line-height: 1.6;
}

.why {
  background: #173a5a;
  color: var(--white);
}

.why .section-kicker,
.why-item span {
  color: var(--stone);
}

.why-copy h2 {
  max-width: 720px;
}

.why-list {
  display: grid;
  gap: 1px;
  background: rgba(255, 255, 255, 0.16);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.why-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 18px;
  align-items: start;
  padding: 24px 0;
  background: #173a5a;
}

.why-item span {
  width: 8px;
  height: 8px;
  margin-top: 9px;
  background: var(--stone);
  border-radius: 50%;
}

.why-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
}

.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.article-card {
  min-height: 250px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  background: var(--white);
  box-shadow: 0 18px 46px rgba(11, 34, 56, 0.1);
}

.article-card h3 {
  margin: 58px 0 14px;
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 400;
}

.contacts {
  background: var(--smoke);
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 36px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-form label {
  display: grid;
  gap: 9px;
}

.contact-form span {
  color: var(--muted);
  font-size: 13px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 12px 0;
  color: var(--ink);
  outline: none;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-bottom-color: var(--ink);
}

.contact-form .btn {
  width: 100%;
  margin-top: 8px;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.form-note.is-success {
  color: var(--sage);
}

.footer {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 0.55fr);
  gap: 28px;
  padding: 38px clamp(18px, 5vw, 72px);
  background: var(--ink);
  color: var(--white);
}

.footer strong {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
}

.footer p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.5;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1020px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .nav {
    position: fixed;
    inset: 72px 12px auto 12px;
    display: none;
    grid-column: 1 / -1;
    padding: 22px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .menu-open .nav {
    display: grid;
    gap: 18px;
  }

  .header-socials {
    justify-self: end;
  }

  .menu-toggle {
    display: block;
  }

  .hero,
  .about-grid,
  .why,
  .contacts,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 108px;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 520px;
  }

  .services-grid,
  .journal-grid,
  .intro-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .site-header {
    gap: 10px;
    padding: 12px 16px;
  }

  .brand strong {
    max-width: 132px;
    white-space: normal;
    line-height: 1.15;
  }

  .header-socials {
    display: none;
  }

  .section {
    padding-inline: 18px;
  }

  h1 {
    font-size: clamp(38px, 12vw, 56px);
  }

  h2 {
    font-size: clamp(34px, 11vw, 48px);
  }

  .hero {
    gap: 30px;
    padding-bottom: 28px;
  }

  .hero-actions,
  .hero-proof {
    display: grid;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 440px;
  }

  .intro-strip,
  .services-grid,
  .journal-grid {
    grid-template-columns: 1fr;
  }

  .strip-item,
  .service-card,
  .article-card {
    min-height: auto;
  }

  .service-card h3,
  .article-card h3 {
    margin-top: 42px;
  }

  .footer {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
