:root {
  --bg: #fcfdfe;
  --surface: #ffffff;
  --ink: #101721;
  --muted: #536373;
  --line: #e1e8ef;
  --line-light: #edf2f6;
  --brand-blue: #5380ac;
  --brand-navy: #2c4d76;
  --brand-navy-dark: #1e3654;
  --card-hover-bg: #f5f8fb;
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
}

body {
  color: var(--ink);
  background-color: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 4px;
}

.skip {
  position: absolute;
  top: -100px;
  left: 24px;
  background: var(--brand-navy);
  color: #ffffff;
  padding: 10px 16px;
  font-size: 14px;
  z-index: 100;
  transition: top 0.2s;
}

.skip:focus {
  top: 16px;
}

/* Header */
.header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px clamp(20px, 4vw, 40px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-block;
  line-height: 0;
  transition: opacity 0.2s, transform 0.2s;
}

.brand:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.brand-logo {
  display: block;
  height: 112px;
  width: auto;
  object-fit: contain;
}

.header-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

/* Main Content Container */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

/* Eyebrow badge */
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brand-navy);
  margin-bottom: 20px;
}

/* Hero Section */
.hero {
  padding: clamp(56px, 7vw, 84px) 0 clamp(64px, 8vw, 92px);
  border-bottom: 1px solid var(--line);
}

.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 5.2vw, 68px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -1.5px;
  color: var(--ink);
  margin-bottom: 40px;
  max-width: 880px;
}

.hero h1 em {
  font-style: italic;
  color: var(--brand-blue);
}

/* Hero Two-Column Text: Spans the page with optimal reading measure */
.hero-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
}

.hero-text p {
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.68;
  color: var(--muted);
}

/* Common Section Styling */
.section {
  padding: clamp(60px, 7.5vw, 92px) 0;
  border-bottom: 1px solid var(--line);
}

.section-header {
  margin-bottom: 36px;
}

.section-header h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 400;
  letter-spacing: -0.6px;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
  max-width: 600px;
}

/* Companies Grid (Symmetrical 3x3 on desktop, 2x on tablet, 1x on mobile) */
.companies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.company-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background-color: var(--surface);
  border: 1px solid var(--line);
  padding: 24px 22px;
  min-height: 104px;
  border-radius: 3px;
  transition: border-color 0.2s, transform 0.15s, background-color 0.2s, box-shadow 0.2s;
}

.company-card:hover {
  background-color: var(--card-hover-bg);
  border-color: var(--brand-blue);
  box-shadow: 0 4px 12px rgba(44, 77, 118, 0.06);
  transform: translateY(-2px);
}

.company-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 12px;
}

.company-name {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.3px;
  color: var(--ink);
}

.company-category {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.external-icon {
  font-size: 14px;
  color: var(--muted);
  flex-shrink: 0;
  margin-top: 2px;
  transition: transform 0.2s, color 0.2s;
}

.company-card:hover .external-icon {
  color: var(--brand-blue);
  transform: translate(2px, -2px);
}

/* Partners Grid */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(32px, 4vw, 56px);
}

.partner-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(28px, 4vw, 40px);
  border-radius: 3px;
}

.partner-card-body {
  margin-bottom: 28px;
}

.partner-photo-frame {
  width: 122px;
  height: 136px;
  overflow: hidden;
  border-radius: 3px;
  margin-bottom: 24px;
}

.partner-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.partner-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--brand-navy);
  margin-bottom: 16px;
}

.partner-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 2.4vw, 28px);
  font-weight: 400;
  letter-spacing: -0.4px;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 18px;
}

.partner-card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

.partner-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  align-self: flex-start;
  transition: color 0.2s, border-color 0.2s;
}

.partner-link:hover {
  color: var(--brand-blue);
  border-color: var(--brand-blue);
}

.partner-link span {
  font-size: 13px;
  transition: transform 0.2s;
}

.partner-link:hover span {
  transform: translate(2px, -2px);
}

/* Contact Section */
.contact-section {
  padding: clamp(60px, 8vw, 96px) 0;
}

.contact-section h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -1px;
  color: var(--ink);
  margin-bottom: 20px;
  max-width: 720px;
}

.contact-text {
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.65;
  color: var(--muted);
  max-width: 620px;
}

/* Footer Section */
.footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px clamp(20px, 4vw, 40px) 64px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  font-size: 13px;
  color: var(--muted);
}

.footer-address {
  font-style: normal;
  line-height: 1.6;
  color: var(--muted);
}

.footer-right {
  text-align: right;
}

.footer-copy {
  color: var(--ink);
  font-weight: 500;
}

/* Responsive Breakpoints */
@media (max-width: 960px) {
  .companies-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-text {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .partners-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .footer-right {
    text-align: left;
  }
}

@media (max-width: 520px) {
  .companies-grid {
    grid-template-columns: 1fr;
  }

  .brand-logo {
    height: 88px;
  }
}

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