.portal {
  min-height: 100vh;
  background: #f6f6ef;
  color: #18332d;
}
.portal-header, .portal-main {
  width: min(calc(100% - 4rem), 94rem);
  margin-inline: auto;
}
.portal-header {
  min-height: 6.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.portal-header .brand { padding: 0; color: #122d27; }
.portal-header .brand:hover { background: transparent; }
.portal-header .brand-mark { background: #d8ed80; color: #17372c; }
.portal-header .brand-name { font-size: 1.35rem; }
.portal-header .brand-name small { color: #52655c; }
.portal-header nav { display: flex; align-items: center; gap: 1.7rem; }
.portal-header nav a { font-weight: 650; text-decoration: none; }
.portal-header nav a:hover { text-decoration: underline; }
.portal-signin { display: inline-flex; align-items: center; gap: .9rem; padding: .55rem 1rem; border: 1px solid #a9b7a7; border-radius: 2rem; }
.portal-main { padding-bottom: 4rem; }
.portal-main:focus, #connexion:focus { outline: none; }
.entry-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(22rem, .95fr);
  gap: 1rem;
}
.entry-hero {
  min-height: clamp(32rem, 44vw, 39rem);
  display: grid;
  position: relative;
  isolation: isolate;
  align-items: end;
  overflow: hidden;
  border-radius: 1.25rem;
  background: #142e27;
  color: white;
}
.entry-photo, .entry-hero::before { position: absolute; inset: 0; height: 100%; width: 100%; }
.entry-photo { z-index: -2; object-fit: cover; object-position: 61% center; }
.entry-hero::before {
  z-index: -1;
  content: "";
  background: linear-gradient(0deg, #0a241efc 0%, #0b241deb 15%, #10282088 52%, transparent 80%),
              linear-gradient(90deg, #09221c55, transparent 70%);
}
.entry-copy { padding: clamp(1.6rem, 4vw, 4rem); }
.entry-copy .section-label { color: #e0f195; }
.entry-copy h1 {
  margin: .65rem 0 .85rem;
  font-size: clamp(3.1rem, 5.2vw, 5.4rem);
  font-weight: 740;
  letter-spacing: -.065em;
  line-height: .96;
}
.entry-copy h1 em { color: #e0f195; font-style: normal; }
.entry-copy > p:last-child { max-width: 41ch; color: #f3f7ef; font-size: clamp(1.01rem, 1.3vw, 1.25rem); line-height: 1.48; }
.entry-access {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  min-width: 0;
  scroll-margin-top: 1rem;
  padding: clamp(1.5rem, 3.15vw, 3.2rem);
  background: #fff;
  border: 1px solid #d2d9ce;
  border-radius: 1.25rem;
}
.entry-access .section-label { display: flex; align-items: center; gap: .6rem; }
.access-dot {
  flex: none;
  display: inline-block;
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: #5b7534;
}
.entry-access h2 {
  margin: .8rem 0 .5rem;
  font-size: clamp(1.85rem, 2.75vw, 2.9rem);
  letter-spacing: -.06em;
  line-height: 1.04;
}
.access-intro, .access-demo { color: var(--muted); line-height: 1.48; }
.access-form { display: grid; gap: .95rem; margin-block: 1.65rem; }
.access-form .field { gap: .38rem; }
.access-form .field input { min-height: 3.1rem; border-radius: .45rem; }
.access-form .button { min-height: 3.15rem; margin-top: .3rem; justify-content: space-between; padding-inline: 1.05rem; }
.access-form .button span { font-size: 1.25rem; }
.access-errors { padding: .7rem; border-left: 3px solid #a54334; background: #fff1ed; }
.access-errors .errorlist { padding: 0; list-style: none; }
.access-demo { padding-top: 1rem; border-top: 1px solid var(--line); font-size: .9rem; }
.access-demo strong { display: block; color: #283f32; }
.field-story { margin-top: clamp(2.4rem, 4.5vw, 4.7rem); }
.story-intro h2 { margin: .45rem 0 1.5rem; font-size: clamp(1.75rem, 3.05vw, 3rem); line-height: 1.1; letter-spacing: -.055em; }
.story-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: clamp(1rem, 3.3vw, 3.4rem);
  padding: 0;
  margin: 0;
  list-style: none;
}
.story-steps li { position: relative; border-top: 1px solid #acbba9; padding: 1.3rem 0 .4rem; }
.story-steps li::before { content: ""; position: absolute; top: -.2rem; left: 0; width: 2rem; height: .32rem; background: #396746; }
.story-steps h3 { margin: 0 0 .4rem; font-size: 1.27rem; letter-spacing: -.025em; }
.story-steps p { max-width: 42ch; color: #46584d; line-height: 1.6; }
@media (max-width: 56rem) {
  .portal-header, .portal-main { width: min(calc(100% - 2.4rem), 50rem); }
  .entry-grid { grid-template-columns: 1fr; }
  .entry-hero { min-height: 24rem; }
  .entry-photo { object-position: center 37%; }
  .entry-copy { padding: 1.65rem; }
  .entry-access { display: grid; padding: 1.65rem; }
  .entry-access h2 { font-size: 2.2rem; }
  .access-form { margin-bottom: 1.25rem; }
}
@media (max-width: 38rem) {
  .portal-header, .portal-main { width: calc(100% - 2rem); }
  .portal-header { min-height: 5rem; }
  .portal-header .brand-name { display: grid; gap: 0; font-size: 1.15rem; }
  .portal-header .brand-name small { margin-top: .12rem; }
  .portal-header .portal-explore { display: none; }
  .entry-hero { min-height: 23.5rem; }
  .entry-copy { padding: 1.45rem; }
  .entry-copy h1 { font-size: clamp(2.8rem, 10.3vw, 4rem); }
  .entry-copy > p:last-child { max-width: 34ch; }
  .entry-access { padding: 1.4rem; }
  .story-steps { grid-template-columns: 1fr; gap: 1rem; }
  .story-intro h2 { margin-bottom: 1.2rem; }
  .story-steps li { padding-top: .85rem; }
}
