:root {
  --ink: #1d1b19;
  --muted: #6e6962;
  --paper: #f6f3ed;
  --white: #ffffff;
  --gold: #bd8b3e;
  --gold-dark: #926526;
  --gold-soft: #efe2cc;
  --line: rgba(29, 27, 25, 0.13);
  --shadow: 0 30px 70px rgba(52, 41, 24, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 6%, rgba(189, 139, 62, 0.15), transparent 26rem),
    linear-gradient(180deg, #fbfaf7 0%, var(--paper) 72%);
  font-family:
    Inter, Avenir, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.site-header {
  width: min(1320px, calc(100% - 64px));
  min-height: 116px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: 190px;
  height: auto;
  display: block;
  mix-blend-mode: multiply;
}

.environment {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.environment-dot,
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ca579;
  box-shadow: 0 0 0 5px rgba(44, 165, 121, 0.1);
}

main {
  width: min(1320px, calc(100% - 64px));
  margin: 0 auto;
}

.hero {
  min-height: 570px;
  padding: 88px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 56px;
  align-items: center;
}

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

.eyebrow {
  margin: 0 0 20px;
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  max-width: 100%;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.6rem, 6.2vw, 6.3rem);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.94;
}

.hero-description {
  max-width: 680px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.65;
}

.director-card {
  position: relative;
  padding: 42px;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 50%),
    var(--ink);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.director-card::after {
  content: "WE";
  position: absolute;
  right: -20px;
  bottom: -52px;
  color: rgba(255, 255, 255, 0.045);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11rem;
  line-height: 1;
}

.director-card-label {
  margin: 0;
  color: #cfb78f;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.director-card-value {
  margin: 24px 0 0;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 6.6rem;
  line-height: 0.9;
}

.director-card-copy {
  max-width: 300px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.05rem;
  line-height: 1.55;
}

.director-card-line {
  width: 100%;
  height: 1px;
  margin: 34px 0 22px;
  background: rgba(255, 255, 255, 0.16);
}

.director-card-footnote {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.applications {
  padding: 80px 0 84px;
  border-top: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 44px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.section-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 4.2vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.045em;
}

.section-heading > p {
  max-width: 430px;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

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

.application-card {
  min-height: 520px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(29, 27, 25, 0.1);
  border-radius: 26px;
  box-shadow: 0 18px 60px rgba(58, 45, 25, 0.065);
}

.application-card-active {
  border-top: 4px solid var(--gold);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.application-card-active:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.application-card-future {
  background: rgba(255, 255, 255, 0.5);
  border-style: dashed;
}

.application-status {
  align-self: flex-start;
  min-height: 28px;
  padding: 6px 11px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #177a58;
  background: #e8f5ef;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.application-status-future {
  color: #79736b;
  background: #edeae5;
}

.application-logo {
  height: 160px;
  margin: 20px 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.application-logo img {
  max-width: 84%;
  max-height: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.application-logo-cabina img {
  max-height: 126px;
}

.application-logo-faustino img {
  filter: grayscale(1);
  opacity: 0.52;
}

.future-mark {
  width: 106px;
  height: 106px;
  margin: 46px auto 36px;
  display: grid;
  place-items: center;
  color: #948d84;
  border: 1px solid #cfc8bd;
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.5rem;
}

.application-content {
  margin-top: auto;
}

.application-kicker {
  margin: 0 0 12px;
  color: var(--gold-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.application-content h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.15rem;
  font-weight: 400;
  letter-spacing: -0.035em;
}

.application-content > p:last-child {
  min-height: 76px;
  margin: 15px 0 24px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

.application-action {
  min-height: 58px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--white);
  background: var(--ink);
  border-radius: 16px;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.application-action span {
  font-size: 1.25rem;
}

.application-action-disabled {
  color: #8b857c;
  background: #eeece7;
  cursor: not-allowed;
}

.principles {
  padding: 72px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px;
  border-top: 1px solid var(--line);
}

.principles span {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
}

.principles strong {
  margin-top: 18px;
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 400;
}

.principles p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

footer {
  width: min(1320px, calc(100% - 64px));
  min-height: 110px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

  .director-card {
    max-width: 620px;
  }

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

  .application-card:last-child {
    grid-column: 1 / -1;
    min-height: 420px;
  }
}

@media (max-width: 720px) {
  .site-header,
  main,
  footer {
    width: min(100% - 36px, 1320px);
  }

  .site-header {
    min-height: 92px;
  }

  .brand img {
    width: 142px;
  }

  .environment {
    font-size: 0;
  }

  .environment::after {
    content: "Portal";
    font-size: 0.7rem;
  }

  .hero {
    min-height: auto;
    padding: 64px 0 56px;
  }

  h1 {
    font-size: clamp(3.2rem, 17vw, 5.4rem);
  }

  .director-card {
    padding: 32px 28px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .application-grid,
  .principles {
    grid-template-columns: 1fr;
  }

  .application-card:last-child {
    grid-column: auto;
  }

  .principles {
    gap: 38px;
  }

  footer {
    padding: 28px 0;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}

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