@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/assets/fonts/cormorant-garamond-latin-400-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/assets/fonts/cormorant-garamond-latin-500-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/assets/fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: 'Karla';
  src: url('/assets/fonts/karla-latin-400-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Karla';
  src: url('/assets/fonts/karla-latin-600-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  --navy: #182636;
  --ink: #182636;
  --orange: #fb9d01;
  --teal: #19a3a6;
  --light-teal: #88e5e1;
  --violet: #804c8d;
  --paper: #e8e9eb;
  --white: #ffffff;
  --heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --body: 'Karla', Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-160%);
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}

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

.site-header {
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header-inner,
.hero-inner,
.section-inner {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand-logo {
  width: 180px;
  height: auto;
}

.main-site-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 3px;
  background: var(--teal);
  color: var(--navy);
  font-family: var(--heading);
  font-size: 15px;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.main-site-link:hover {
  background: var(--light-teal);
}

.main-site-link:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 4px;
}

.hero {
  position: relative;
  min-height: 660px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(24, 38, 54, 0.96) 0%, rgba(24, 38, 54, 0.78) 52%, rgba(24, 38, 54, 0.58) 100%),
    url('/assets/images/Montfort-South-Asia-Four.jpg') center 46% / cover no-repeat;
  color: var(--white);
}

.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(transparent, rgba(24, 38, 54, 0.2));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-block: 100px 118px;
}

.eyebrow {
  margin: 0 0 22px;
  font-family: var(--heading);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 500;
  letter-spacing: 0.005em;
}

.hero h1 {
  max-width: 850px;
  margin: 0;
  font-family: var(--heading);
  font-size: clamp(48px, 7vw, 82px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.hero-copy {
  max-width: 950px;
  margin-top: 34px;
  color: var(--orange);
  font-family: var(--heading);
  font-size: clamp(20px, 2.3vw, 28px);
  line-height: 1.3;
}

.hero-copy p {
  margin: 0;
}

.hero-copy p + p {
  margin-top: 28px;
}

.expertise-section {
  background: var(--paper);
  padding: 78px 0 92px;
}

.expertise-section h2 {
  margin: 0 0 52px;
  color: var(--navy);
  font-family: var(--heading);
  font-size: clamp(42px, 5.2vw, 64px);
  font-weight: 400;
  line-height: 1;
  text-align: center;
}

.expertise-section h2::after,
.section-intro h2::after {
  content: '';
  display: block;
  width: 72px;
  height: 6px;
  margin: 18px auto 0;
  background: var(--orange);
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.expertise-card {
  min-height: 310px;
  padding: 38px 40px;
  background: var(--white);
  border: 1px solid rgba(24, 38, 54, 0.08);
}

.expertise-card img {
  width: 52px;
  height: 52px;
  margin-bottom: 31px;
}

.expertise-card h3 {
  max-width: 280px;
  margin: 0;
  color: var(--navy);
  font-family: var(--heading);
  font-size: clamp(24px, 2vw, 30px);
  font-weight: 400;
  line-height: 1.03;
}

.expertise-card p {
  max-width: 270px;
  margin: 18px 0 0;
  color: var(--navy);
  font-size: 14px;
  line-height: 1.5;
}

.case-studies-section {
  padding: 88px 0;
  background: var(--white);
}

.section-intro {
  text-align: center;
}

.section-intro h2 {
  margin: 0;
  color: var(--navy);
  font-family: var(--heading);
  font-size: clamp(43px, 5.3vw, 66px);
  font-weight: 400;
  line-height: 1;
}

.case-study-list {
  width: min(1120px, calc(100% - 48px));
  margin: 52px auto 0;
  border: 1px solid var(--paper);
  border-bottom: 0;
}

.case-study {
  display: grid;
  grid-template-columns: 1fr 1.04fr;
  align-items: center;
  border-bottom: 1px solid var(--paper);
  background: var(--white);
}

.case-image-wrap {
  width: 100%;
  min-height: 0;
  min-width: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--paper);
}

.case-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-study:nth-child(3) .case-image-wrap img {
  object-fit: contain;
  padding: 36px;
  background: var(--white);
}

.case-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px 52px;
}

.case-copy h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--heading);
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 400;
  line-height: 1;
}

.case-copy p {
  max-width: 430px;
  margin: 14px 0 0;
  color: var(--navy);
  font-family: var(--heading);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.08;
}

.contact-band {
  background: var(--teal);
  color: var(--navy);
}

.contact-inner {
  width: min(1120px, calc(100% - 48px));
  min-height: 224px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.contact-inner h2 {
  margin: 0;
  font-family: var(--heading);
  font-size: clamp(35px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.05;
}

.contact-inner a {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border: 2px solid var(--navy);
  border-radius: 999px;
  color: var(--navy);
  font-size: clamp(16px, 1.7vw, 20px);
  font-weight: 400;
  text-decoration: none;
}

.contact-inner a:hover {
  background: var(--light-teal);
}

.contact-inner a:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 4px;
}

.footer-meta a:focus-visible,
.privacy-settings-button:focus-visible,
.privacy-panel a:focus-visible,
.privacy-panel button:focus-visible,
.not-found-link:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 4px;
}

.site-footer {
  padding: 72px 0 32px;
  background: var(--navy);
  color: var(--white);
}

.footer-inner {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.footer-statement {
  max-width: 600px;
  margin: 0;
  font-family: var(--heading);
  font-size: clamp(27px, 3.2vw, 42px);
  line-height: 1.05;
}

.footer-meta {
  margin-top: 72px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.footer-meta a {
  color: var(--orange);
  font-weight: 400;
  text-underline-offset: 4px;
}

.footer-meta p {
  margin: 0;
}

.footer-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.privacy-settings-button {
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.privacy-settings-button:hover {
  color: var(--white);
}

.privacy-panel[hidden] {
  display: none;
}

.privacy-panel {
  position: fixed;
  z-index: 120;
  right: 22px;
  bottom: 22px;
  width: min(520px, calc(100% - 44px));
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 18px 55px rgba(10, 18, 27, 0.34);
}

.privacy-panel h2 {
  margin: 0;
  font-family: var(--heading);
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
}

.privacy-panel p {
  margin: 13px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.45;
}

.privacy-panel a {
  color: var(--orange);
  text-underline-offset: 3px;
}

.privacy-panel__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
}

.privacy-panel__actions button {
  min-height: 46px;
  padding: 10px 18px;
  border: 2px solid var(--orange);
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  font: 600 15px/1 var(--body);
  cursor: pointer;
}

.privacy-panel__actions button:first-child {
  background: var(--orange);
  color: var(--navy);
}

.privacy-panel__actions button:hover {
  background: var(--light-teal);
  border-color: var(--light-teal);
  color: var(--navy);
}

.privacy-panel__status:empty {
  display: none;
}

.not-found-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background: var(--navy);
  color: var(--white);
  text-align: center;
}

.not-found-main {
  width: min(620px, 100%);
}

.not-found-logo {
  width: 190px;
  height: auto;
  margin: 0 auto 56px;
}

.not-found-kicker {
  margin: 0;
  color: var(--orange);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.not-found-main h1 {
  margin: 18px 0 14px;
  font-family: var(--heading);
  font-size: clamp(50px, 10vw, 82px);
  font-weight: 500;
  line-height: 0.95;
}

.not-found-copy {
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
}

.not-found-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
  padding: 11px 24px;
  border: 2px solid var(--orange);
  border-radius: 999px;
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}

.not-found-link:hover {
  background: var(--orange);
  color: var(--navy);
}

@media (max-width: 860px) {
  .header-inner,
  .hero-inner,
  .section-inner {
    width: min(100% - 34px, 680px);
  }

  .hero {
    min-height: 590px;
    background-position: 58% center;
  }

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

  .case-studies-section {
    padding-bottom: 72px;
  }

  .case-study-list,
  .contact-inner,
  .footer-inner {
    width: min(100% - 34px, 680px);
  }

  .case-copy {
    padding: 34px;
  }

  .contact-inner {
    min-height: 205px;
  }
}

@media (max-width: 680px) {
  .case-study {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .header-inner {
    min-height: 64px;
  }

  .brand-logo {
    width: 122px;
  }

  .main-site-link {
    min-height: 38px;
    padding: 8px 13px;
    font-size: 12px;
  }

  .hero {
    min-height: 600px;
    align-items: end;
    background-position: 61% center;
  }

  .hero-inner {
    padding-block: 72px 72px;
  }

  .eyebrow {
    max-width: 300px;
    margin-bottom: 16px;
    font-size: 18px;
    line-height: 1.15;
  }

  .hero h1 {
    font-size: 47px;
    line-height: 0.98;
  }

  .hero-copy {
    margin-top: 22px;
    font-size: 18px;
    line-height: 1.28;
  }

  .hero-copy p + p {
    margin-top: 18px;
  }

  .expertise-section {
    padding: 54px 0 64px;
  }

  .expertise-section h2 {
    margin-bottom: 34px;
    font-size: 44px;
  }

  .expertise-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .expertise-card {
    min-height: 0;
    padding: 30px 28px 32px;
  }

  .expertise-card img {
    margin-bottom: 24px;
  }

  .expertise-card h3 {
    font-size: 27px;
  }

  .case-studies-section {
    padding: 62px 0;
  }

  .section-intro h2 {
    font-size: 43px;
  }

  .case-study-list {
    width: calc(100% - 24px);
    margin-top: 36px;
  }

  .case-image-wrap {
    aspect-ratio: 16 / 9;
  }

  .case-copy {
    min-height: 150px;
    padding: 28px 26px 31px;
  }

  .case-copy h3 {
    font-size: 36px;
  }

  .case-copy p {
    max-width: 320px;
    margin-top: 9px;
    font-size: 20px;
  }

  .contact-inner {
    width: calc(100% - 34px);
    min-height: 248px;
    padding-block: 44px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 28px;
  }

  .contact-inner h2 {
    font-size: 37px;
  }

  .contact-inner a {
    width: 100%;
    font-size: 16px;
  }

  .site-footer {
    padding-top: 54px;
  }

  .footer-inner {
    width: calc(100% - 34px);
  }

  .footer-statement {
    max-width: 340px;
    font-size: 30px;
  }

  .footer-meta {
    margin-top: 52px;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .footer-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .privacy-panel {
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
    padding: 22px;
  }

  .privacy-panel__actions {
    grid-template-columns: 1fr;
  }
}

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