@font-face {
  font-family: "Ubuntu";
  src: url("assets/fonts/Ubuntu-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Ubuntu";
  src: url("assets/fonts/Ubuntu-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Ubuntu";
  src: url("assets/fonts/Ubuntu-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --white: #ffffff;
  --black: #000000;
  --soft-bg: #efefef;
  --header-bg: rgba(255, 255, 255, 0.86);
  --panel-side-pad: clamp(43px, 5vw, 78px);
  --panel-vertical-pad: clamp(30px, 3.75vh, 53px);
  --nav-size-desktop: clamp(17px, 1.2vw, 21px);
  --nav-size-tablet: clamp(14px, 1.5vw, 17px);
  --nav-size-mobile: clamp(10px, 2.9vw, 13px);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  font-family: "Ubuntu", sans-serif;
  background: #ffffff;
  color: #111;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: 88px;
  padding: 0 24px;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.brand {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  height: 100%;
}

.brand-logo {
  display: block;
  width: auto;
  max-width: clamp(120px, 10vw, 160px);
  max-height: 58px;
  height: auto;
}

.main-nav {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(44px, 6vw, 120px);
  width: max-content;
}

.nav-link {
  text-decoration: none;
  color: var(--black);
  font-size: var(--nav-size-desktop);
  letter-spacing: 0.1em;
  font-weight: 500;
}

.support-btn {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  text-decoration: none;
  color: var(--white);
  background: var(--black);
  border-radius: 999px;
  padding: 14px 28px;
  letter-spacing: 0.13em;
  font-size: var(--nav-size-desktop);
  font-weight: 500;
}

.hero {
  position: relative;
  width: 100%;
  height: 75vh;
  min-height: 520px;
  background-image: url("assets/images/hero.webp");
  background-size: cover;
  background-position: right center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, rgba(0, 0, 0, 0.64) 8%, rgba(0, 0, 0, 0.28) 52%, rgba(0, 0, 0, 0.18) 100%);
}

.hero-content {
  position: absolute;
  left: clamp(22px, 4vw, 58px);
  bottom: clamp(26px, 4vh, 52px);
  max-width: min(760px, 78%);
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

.hero-kicker {
  margin: 0;
  font-size: clamp(1.5rem, 2.2vw, 2.35rem);
  font-weight: 500;
  line-height: 1.05;
}

.hero-title {
  margin: 10px 0 8px;
  line-height: 0.95;
  font-size: clamp(2.7rem, 7vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-subline {
  margin: 0;
  font-size: clamp(1rem, 1.35vw, 1.35rem);
  font-weight: 400;
  max-width: 40ch;
  opacity: 0.92;
}

.partners {
  height: 39.0625vh;
  min-height: 406px;
  display: grid;
  grid-template-rows: 1fr 1fr;
  row-gap: 44px;
  background: var(--white);
  padding-bottom: 24px;
}

.partner-row {
  display: flex;
  align-items: stretch;
  min-height: 0;
  gap: 12px;
  padding: 0;
  background: var(--white);
}
.image-panel {
  position: relative;
  flex: 1 1 auto;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.partner-row > .image-panel,
.partner-row > .logo-panel {
  height: 100%;
}

.image-left {
  background-image: url("assets/images/banner-1.webp");
  border-radius: 22px;
  border-top-left-radius: 0;
  margin: 42px 0 42px 42px;
}

.image-right {
  background-image: url("assets/images/banner-2.webp");
  background-position: right center;
  border-radius: 22px;
  border-top-right-radius: 0;
  margin: 42px 42px 42px 0;
}

.image-veil {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 0;
}

.image-left .image-veil {
  left: 0;
  width: 50%;
  background: rgba(0, 0, 0, 0.55);
  border-top-right-radius: 22px;
}

.image-right .image-veil {
  right: 0;
  width: 50%;
  background: rgba(0, 0, 0, 0.55);
  border-top-left-radius: 22px;
}

.panel-text {
  position: absolute;
  left: 0;
  top: var(--panel-vertical-pad);
  bottom: var(--panel-vertical-pad);
  z-index: 1;
  display: flex;
  align-items: center;
  width: 50%;
  padding: clamp(14px, 1.8vw, 22px) clamp(20px, 2.2vw, 34px);
  box-sizing: border-box;
}

.panel-text-right {
  left: auto;
  right: 0;
  text-align: right;
  justify-content: flex-end;
}

.panel-text h2 {
  margin: 0;
  color: var(--white);
  font-weight: 500;
  font-size: clamp(1.45rem, 2.8vw, 3rem);
  line-height: 0.95;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

.panel-text h2 span {
  display: block;
  font-weight: 700;
}

.logo-panel {
  flex: 0 0 clamp(220px, 24vw, 340px);
  background: var(--white);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0;
  height: 100%;
}

.row-top .logo-panel {
  margin: 42px 42px 42px 0;
}

.partner-logo {
  max-width: 50%;
  max-height: 50%;
  width: 50%;
  height: auto;
  object-fit: contain;
  object-position: top center;
  display: block;
  margin-top: 0;
}

.row-top .partner-logo {
  width: 92%;
  height: auto;
  max-width: 92%;
  max-height: 92%;
}

.row-bottom .partner-logo {
  width: 92%;
  height: auto;
  max-width: 92%;
  max-height: 92%;
}

.row-bottom .logo-panel {
  margin: 42px 0 58px 42px;
}

.row-bottom .image-right {
  margin-bottom: 58px;
}

.site-footer {
  min-height: 96px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 78px 24px 72px;
  border-top: 1px solid #e6e6e6;
  text-align: center;
  margin-top: 0;
}

.footer-link {
  color: #111;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.footer-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.footer-logo {
  max-width: 138px;
  width: auto;
  height: 46px;
  object-fit: contain;
}

@media (max-width: 980px) {
  .site-header {
    height: 88px;
    padding: 0 14px;
  }

  .brand {
    left: 14px;
  }

  .brand-logo {
    max-height: 52px;
    max-width: 128px;
  }

  .main-nav {
    gap: clamp(18px, 3vw, 34px);
  }

  .nav-link {
    font-size: var(--nav-size-tablet);
    letter-spacing: 0.08em;
  }

  .support-btn {
    right: 14px;
    padding: 10px 16px;
    font-size: var(--nav-size-tablet);
  }

  .hero {
    min-height: 480px;
  }

  .partners {
    min-height: 250px;
  }

  .logo-panel {
    flex-basis: 190px;
  }
}

@media (max-width: 700px) {
  html,
  body {
    background: #ffffff;
  }

  .site-header {
    height: 88px;
    background: rgba(255, 255, 255, 0.92);
  }

  .brand-logo {
    max-height: 48px;
    max-width: 110px;
  }

  .main-nav {
    gap: 12px;
  }

  .nav-link {
    font-size: var(--nav-size-mobile);
    letter-spacing: 0.05em;
  }

  .support-btn {
    padding: 7px 10px;
    font-size: var(--nav-size-mobile);
  }

  .hero,
  .partners {
    height: auto;
  }

  .hero {
    min-height: 64vh;
  }

  .partners {
    grid-template-rows: 1fr 1fr;
    display: grid;
    gap: 30px;
    margin-top: 16px;
    padding-bottom: 20px;
  }

  .partner-row {
    min-height: 26vh;
    flex-direction: row;
    gap: 10px;
  }

  .image-left,
  .image-right {
    min-height: 22vh;
    margin-top: 26px;
    margin-bottom: 26px;
  }

  .image-left {
    margin-left: 26px;
    margin-right: 0;
  }

  .image-right {
    margin-right: 26px;
    margin-left: 0;
  }

  .logo-panel {
    min-height: 96px;
    flex-basis: 34%;
  }

  .row-top .logo-panel {
    margin: 26px 26px 26px 0;
  }

  .row-bottom .logo-panel {
    margin: 26px 0 38px 26px;
  }

  .row-bottom .image-right {
    margin-bottom: 38px;
  }

  .row-bottom {
    border-top: 16px solid #fff;
  }

  .panel-text,
  .panel-text-right {
    left: 0;
    right: auto;
    top: 20px;
    bottom: 20px;
    text-align: left;
    width: 100%;
    padding-left: 24px;
    padding-right: 24px;
  }

  .panel-text-right {
    right: 0;
    left: auto;
  }

  .image-left .image-veil,
  .image-right .image-veil {
    left: 0;
    right: 0;
    width: 100%;
    border-top-right-radius: inherit;
    border-top-left-radius: inherit;
    background: rgba(0, 0, 0, 0.55);
  }

  .site-footer {
    min-height: 88px;
    padding: 52px 16px 56px;
    gap: 12px;
  }

  .footer-link {
    font-size: 0.82rem;
  }

  .footer-logo {
    height: 38px;
    max-width: 120px;
  }
}

@media (max-width: 430px) {
  .main-nav {
    gap: 8px;
  }

  .nav-link,
  .support-btn {
    font-size: clamp(9px, 2.4vw, 11px);
    letter-spacing: 0.03em;
  }

  .support-btn {
    padding: 6px 8px;
  }
}

/* tighter iPhone-15 header sizing override */
@media (max-width: 430px) {
  .main-nav {
    gap: 6px;
  }

  .nav-link,
  .support-btn {
    font-size: clamp(8px, 2vw, 9.5px);
    letter-spacing: 0.02em;
  }

  .support-btn {
    padding: 5px 7px;
  }
}

/* iPhone-15 readability tweak: slightly larger again */
@media (max-width: 430px) {
  .main-nav {
    gap: 7px;
  }

  .nav-link,
  .support-btn {
    font-size: clamp(9px, 2.2vw, 10.5px);
    letter-spacing: 0.025em;
  }

  .support-btn {
    padding: 6px 8px;
  }
}
