/* ---------- Global ---------- */

:root {
  --site-navy: #0b1f44;
  --site-blue: #315efb;
  --site-green: #dfe9da;
  --site-light-blue: #e8eefc;
  --site-light-purple: #eceafa;
  --site-text: #172033;
  --site-muted: #586174;
  --site-border: #dfe3ea;
  --site-background: #ffffff;
  --site-section: #f7f8fa;
}

body {
  color: var(--site-text);
  background: var(--site-background);
}

main {
  margin: 0;
  padding: 0;
}

.navbar {
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--site-border);
  background: rgba(255, 255, 255, 0.96);
}

.navbar-brand {
  color: var(--site-navy);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.navbar-nav .nav-link {
  color: var(--site-navy);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}


/* ---------- Homepage hero ---------- */

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(3rem, 6vw, 7rem);
  align-items: center;
  width: min(1400px, calc(100% - 6rem));
  margin: 0 auto;
  padding: 5rem 0;
}

.hero-text {
  min-width: 0;
  max-width: 680px;
}

.hero-title {
  max-width: 100%;
  margin: 0 0 2rem;
  color: var(--site-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 4.5vw, 5.5rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}

.hero-description {
  max-width: 620px;
}

.hero-visual {
  min-width: 0;
}

.hero-visual img {
  display: block;
  width: min(100%, 775px);
  height: auto;
  margin: 0 auto;
}

.hero-visual img {
  display: block;
  width: 100%;
  max-width: 775px;
  height: auto;
  margin: 0 auto;
  border: 0;
  box-shadow: none;
}

@media (max-width: 950px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 3rem;
    width: min(100% - 3rem, 760px);
    padding: 3rem 0;
  }

  .hero-title {
    font-size: clamp(3.5rem, 10vw, 5rem);
  }

  .hero-visual img {
    max-width: 560px;
  }
}

/* ---------- Selected work links on home page ---------- */

.selected-work-section {
  width: min(1400px, calc(100% - 6rem));
  margin: 0 auto;
  padding: 1rem 0 6rem;
}

.selected-work-section hr {
  margin: 0 0 4rem;
  border: 0;
  border-top: 1px solid var(--site-border);
  opacity: 1;
}

.selected-work-section h2 {
  margin: 0 0 2.5rem;
  color: var(--site-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.selected-work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.selected-work-tile {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  padding: 2rem;
  border: 1px solid var(--site-border);
  background: #ffffff;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.selected-work-tile:hover {
  transform: translateY(-3px);
  border-color: #c9d1df;
  box-shadow: 0 14px 36px rgba(11, 31, 68, 0.08);
}

.selected-work-tile h3 {
  margin: 0 0 1.25rem;
  color: var(--site-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  line-height: 1.2;
}

.selected-work-tile p {
  margin: 0 0 1.5rem;
  color: var(--site-muted);
  line-height: 1.65;
}

.selected-work-tile p:last-child {
  margin-top: auto;
  margin-bottom: 0;
}

.selected-work-tile a {
  color: var(--site-blue);
  font-weight: 650;
  text-decoration: none;
}

.selected-work-tile a::after {
  content: " →";
}

.selected-work-tile a:hover {
  text-decoration: underline;
}

/* ---------- Responsive layouts ---------- */

@media (max-width: 950px) {
  .selected-work-section {
    width: min(100% - 3rem, 760px);
  }

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

  .work-card {
    grid-template-columns: minmax(220px, 38%) 1fr;
  }
}

@media (max-width: 650px) {
  .selected-work-section {
    width: calc(100% - 2rem);
  }

  .selected-work-grid {
    grid-template-columns: 1fr;
  }

  .selected-work-tile {
    min-height: 240px;
  }

  .work-card {
    grid-template-columns: 1fr;
  }

  .work-card-image {
    min-height: 220px;
    max-height: 300px;
  }

  .work-card-content {
    padding: 1.5rem;
  }
}
/* ---------- Contact page ---------- */

.contact-page {
  width: min(1400px, calc(100% - 6rem));
  margin: 0 auto;
  padding: 5rem 0 7rem;
}

.contact-intro {
  margin-bottom: 3rem;
}

.contact-intro h1 {
  margin: 0 0 1rem;
  color: var(--site-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.5rem, 6vw, 6rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.contact-intro p {
  margin: 0;
  color: var(--site-muted);
  font-size: 1.25rem;
  line-height: 1.6;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.contact-card {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  padding: 2.25rem;
  border: 1px solid var(--site-border);
  background: #ffffff;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.contact-card:hover {
  transform: translateY(-3px);
  border-color: #c9d1df;
  box-shadow: 0 14px 36px rgba(11, 31, 68, 0.08);
}

.contact-card-label {
  margin-bottom: 2rem;
  color: var(--site-blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-card h2 {
  margin: 0 0 1.25rem;
  color: var(--site-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1.15;
}

.contact-card p {
  margin: 0 0 2rem;
  color: var(--site-muted);
  line-height: 1.65;
}

.contact-card p:last-child {
  margin-top: auto;
  margin-bottom: 0;
}

.contact-button {
  display: inline-block;
  padding: 0.8rem 1.1rem;
  border: 1px solid var(--site-navy);
  color: var(--site-navy);
  font-weight: 650;
  text-decoration: none;
}

.contact-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.contact-button:hover {
  color: #ffffff;
  background: var(--site-navy);
  text-decoration: none;
}

@media (max-width: 950px) {
  .contact-page {
    width: min(100% - 3rem, 760px);
    padding: 3rem 0 5rem;
  }

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

  .contact-card {
    min-height: 280px;
  }
}
/* ---------- Main content ---------- */

.homepage-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 max(5vw, 2rem) 5rem;
}

.homepage-content > h2 {
  margin-top: 6rem;
  margin-bottom: 2rem;
  color: var(--site-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  letter-spacing: -0.025em;
}


/* ---------- Impact row ---------- */

.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 6rem;
  border-bottom: 1px solid var(--site-border);
}

.impact-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 1.25rem;
  padding: 3rem 2rem;
  border-right: 1px solid var(--site-border);
}

.impact-item:last-child {
  border-right: 0;
}

.impact-icon {
  display: flex;
  width: 72px;
  height: 72px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--site-navy);
  background: var(--site-light-blue);
  font-size: 2rem;
}

.impact-item:nth-child(2) .impact-icon {
  background: var(--site-green);
}

.impact-item:nth-child(3) .impact-icon {
  background: var(--site-light-purple);
}

.impact-copy h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--site-navy);
  font-size: 1.3rem;
  line-height: 1.25;
}

.impact-copy p {
  margin: 0;
  color: var(--site-muted);
  line-height: 1.6;
}


/* ---------- Case studies ---------- */

.case-study-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.case-study-card {
  min-height: 280px;
  padding: 2.25rem;
  border: 1px solid var(--site-border);
  background: #ffffff;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.case-study-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(11, 31, 68, 0.08);
}

.case-study-card h3 {
  margin-top: 0;
  color: var(--site-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  line-height: 1.2;
}

.case-study-card p {
  color: var(--site-muted);
  line-height: 1.65;
}

.case-study-card a {
  color: var(--site-blue);
  font-weight: 650;
  text-decoration: none;
}


/* ---------- Philosophy ---------- */

.philosophy-section {
  margin-top: 6rem;
  padding: 5rem;
  color: #ffffff;
  background: var(--site-navy);
}

.philosophy-section h2 {
  max-width: 850px;
  margin-top: 0;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  line-height: 1.05;
}

.philosophy-section p {
  max-width: 850px;
  margin-bottom: 0;
  font-size: 1.25rem;
  line-height: 1.7;
}


/* ---------- Footer CTA ---------- */

.homepage-footer-cta {
  padding: 6rem 0 2rem;
}

.homepage-footer-cta h2 {
  margin-top: 0;
  color: var(--site-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.5rem;
}

.homepage-footer-cta p {
  max-width: 760px;
  color: var(--site-muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.secondary-button {
  margin-right: 0.75rem;
  margin-top: 1rem;
}

.secondary-button:hover {
  color: #ffffff;
  background: var(--site-navy);
  text-decoration: none;
}


/* ---------- Responsive ---------- */

@media (max-width: 1050px) {
  .homepage-hero {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-image img {
    max-width: 680px;
  }

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

  .impact-item {
    border-right: 0;
    border-bottom: 1px solid var(--site-border);
  }

  .impact-item:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 700px) {
  .homepage-hero {
    min-height: auto;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .hero-copy h1 {
    font-size: 3.2rem;
  }

  .homepage-content {
    padding-right: 1.25rem;
    padding-left: 1.25rem;
  }

  .impact-item {
    grid-template-columns: 1fr;
    padding-right: 0;
    padding-left: 0;
  }

  .case-study-grid {
    grid-template-columns: 1fr;
  }

  .philosophy-section {
    padding: 3rem 1.75rem;
  }
}