@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Libre+Franklin:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: light;
  font-family: "DM Sans", sans-serif;
  color: #13262f;
  background: #f6f4f3;
}
* { box-sizing: border-box; }
html { min-height: 100%; }
body { margin: 0; }
.landing-page {
  min-height: 100vh;
  min-height: 100svh;
  background: url('assets/hcjc-banner.jpg') no-repeat center center fixed;
  background-size: cover;
}
.landing-layout {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: clamp(24px, 4.5vw, 72px);
}
.landing-card {
  width: min(100%, 430px);
  padding: clamp(24px, 2.8vw, 38px);
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 22px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 18px 54px rgba(19,38,47,.16);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.landing-institution {
  margin: 0 0 7px;
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
h1 {
  margin: 0;
  color: #a80008;
  font-family: "Libre Franklin", sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -.075em;
  line-height: 1.06;
}
.landing-subtitle {
  margin: 7px 0 24px;
  color: #3b4e56;
  font-size: 1rem;
  font-weight: 600;
}
.landing-cta {
  border: 0;
  cursor: pointer;
  min-height: 52px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 18px;
  border-radius: 12px;
  background: #a80008;
  color: #fff;
  box-shadow: 0 10px 22px rgba(168,0,8,.24);
  font-family: "Libre Franklin", sans-serif;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.portal-dialog{width:min(820px,calc(100vw - 28px));max-height:min(90vh,780px);overflow:auto;border:1px solid #e4e2e2;border-radius:22px;background:#fff;padding:clamp(22px,4vw,38px);color:#13262f;box-shadow:0 28px 90px rgba(19,38,47,.3)}
.portal-dialog::backdrop{background:rgba(13,30,39,.7);backdrop-filter:blur(4px)}
.portal-close{position:absolute;right:17px;top:14px;width:34px;height:34px;border:0;border-radius:50%;background:#f1f3f3;color:#13262f;font-size:1.5rem;cursor:pointer}
.portal-dialog-brand{text-align:center;margin:0 0 25px}.portal-dialog-brand img{width:56px;height:56px;object-fit:cover;border-radius:50%;display:block;margin:0 auto 12px}.portal-dialog-brand p{font-size:.72rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#a80008;margin:0 0 10px}.portal-dialog-brand h2{font-family:"Libre Franklin",sans-serif;font-size:clamp(1.45rem,3vw,2rem);margin:0;letter-spacing:-.05em}
.portal-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.portal-choice{border:1px solid #dde3e5;border-radius:16px;padding:23px;display:flex;flex-direction:column;min-height:240px}.portal-choice.admin-choice{background:#fbf4f4;border-color:#e9caca}.portal-choice-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:10px;background:#f5e7e7;color:#a80008;font-weight:800}.portal-choice h3{font-family:"Libre Franklin",sans-serif;font-size:1.06rem;margin:14px 0 8px}.portal-choice p{font-size:.89rem;line-height:1.5;color:#61707b;flex:1}.portal-choice-button{display:block;text-align:center;text-decoration:none;border-radius:11px;background:#13262f;color:#fff;font-weight:800;padding:13px}.portal-choice-button:hover{background:#a80008}.portal-choice-button:focus-visible,.portal-close:focus-visible{outline:3px solid #a80008;outline-offset:3px}
@media(max-width:650px){.portal-choices{grid-template-columns:1fr}.portal-choice{min-height:0}.portal-dialog{padding:22px}}
.landing-cta:hover {
  background: #830006;
  box-shadow: 0 13px 26px rgba(168,0,8,.3);
  transform: translateY(-2px);
}
.landing-cta:focus-visible {
  outline: 3px solid #13262f;
  outline-offset: 4px;
}
@media (max-width: 700px) {
  .landing-page {
    background-color: #f6f4f3;
    background-position: center top;
    background-size: 100% auto;
    background-attachment: scroll;
  }
  .landing-layout {
    display: block;
    padding: calc(56.35vw + 16px) 16px 28px;
  }
  .landing-card {
    max-width: 500px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 12px 32px rgba(19,38,47,.1);
  }
}
@media (max-width: 400px) {
  .landing-card { padding: 22px; }
  .landing-motto { margin-bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .landing-cta { transition: none; }
  .landing-cta:hover { transform: none; }
}

/* Clean library interface */
:root {
  --brand: #a80008;
  --brand-dark: #780006;
  --ink: #172630;
  --muted: #61707b;
  --line: #d9dfe1;
  --surface: #ffffff;
}

.landing-layout {
  align-items: center;
  padding: clamp(24px, 5vw, 72px);
}

.landing-card {
  width: min(100%, 440px);
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid var(--line);
  border-top: 5px solid var(--brand);
  border-radius: 16px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 18px 45px rgba(19,38,47,.14);
  backdrop-filter: none;
}

.landing-institution { color: var(--ink); }
h1 { color: var(--brand); letter-spacing: -.06em; }
.landing-subtitle { color: var(--muted); }

.landing-cta {
  min-height: 50px;
  border-radius: 9px;
  background: var(--brand);
  box-shadow: none;
}
.landing-cta:hover { background: var(--brand-dark); box-shadow: none; transform: none; }

.portal-dialog {
  width: min(820px, calc(100vw - 28px));
  padding: clamp(26px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(19,38,47,.28);
}
.portal-dialog::backdrop { background: rgba(19,38,47,.72); backdrop-filter: blur(3px); }
.portal-close {
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}
.portal-close:hover { border-color: var(--brand); color: var(--brand); }
.portal-dialog-brand { margin-bottom: 26px; }
.portal-dialog-brand p { color: var(--brand); }
.portal-dialog-brand h2 { color: var(--ink); }
.portal-choices { gap: 14px; }
.portal-choice,
.portal-choice.admin-choice {
  min-height: 228px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}
.portal-choice:hover { border-color: #bd8d91; }
.portal-choice-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f7e9ea;
  color: var(--brand);
}
.portal-choice h3 { color: var(--ink); margin-top: 13px; }
.portal-choice p { color: var(--muted); }
.portal-choice-button {
  border-radius: 8px;
  background: var(--brand);
}
.portal-choice-button:hover { background: var(--brand-dark); }

@media (max-width: 700px) {
  .landing-layout { padding-top: calc(56.35vw + 18px); }
  .landing-card { border-radius: 13px; }
  .portal-choice { min-height: 0; }
}

/* Consistent portal and action icons */
.arrow-icon {
  width: 17px;
  height: 17px;
  flex: none;
  display: inline-block;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.portal-dialog-brand .portal-dialog-subtitle {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.5;
  text-transform: none;
}
.portal-choice-icon {
  position: relative;
  width: 40px;
  height: 40px;
}
.portal-choice-icon::before {
  content: "";
  position: absolute;
  inset: 10px;
  background: currentColor;
}
.member-portal-icon::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E") center / contain no-repeat;
}
.admin-portal-icon::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10Z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10Z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.portal-choice-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.portal-choice-button .arrow-icon { width: 16px; height: 16px; }

/* Compact, easier-to-scan portal choices. */
.portal-dialog { width: min(860px, calc(100vw - 28px)); }
.portal-dialog-brand { margin-bottom: 30px; }
.portal-choices { gap: 18px; }
.portal-choice,
.portal-choice.admin-choice {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "icon title"
    "description description"
    "action action";
  column-gap: 14px;
  min-height: 240px;
  padding: 24px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.portal-choice:hover {
  transform: translateY(-2px);
  border-color: #c99da0;
  box-shadow: 0 10px 24px rgba(19,38,47,.07);
}
.portal-choice-icon { grid-area: icon; align-self: center; }
.portal-choice h3 {
  grid-area: title;
  align-self: center;
  margin: 0;
  font-size: 1.08rem;
}
.portal-choice p {
  grid-area: description;
  margin: 19px 0 22px;
  line-height: 1.58;
}
.portal-choice-button { grid-area: action; align-self: end; min-height: 48px; }

/* Smooth portal chooser entrance. */
@keyframes portal-dialog-enter {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes portal-backdrop-enter {
  from { background-color: rgba(19,38,47,0); backdrop-filter: blur(0); }
  to { background-color: rgba(19,38,47,.72); backdrop-filter: blur(3px); }
}
.portal-dialog[open] {
  animation: portal-dialog-enter .28s cubic-bezier(.2,.8,.2,1) both;
}
.portal-dialog[open]::backdrop {
  animation: portal-backdrop-enter .24s ease-out both;
}

@media (max-width: 650px) {
  .portal-choice,
  .portal-choice.admin-choice { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .portal-dialog[open],
  .portal-dialog[open]::backdrop { animation: none; }
  .portal-choice { transition: none; }
  .portal-choice:hover { transform: none; }
}

/* Compact portal chooser */
.portal-dialog {
  width: min(760px, calc(100vw - 28px));
  max-height: min(88vh, 620px);
  padding: 26px 28px 28px;
}
.portal-close {
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
}
.portal-dialog-brand {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  column-gap: 14px;
  align-items: center;
  margin: 0 0 20px;
  padding: 0 46px 19px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.portal-dialog-brand img {
  grid-column: 1;
  grid-row: 1 / 4;
  width: 46px;
  height: 46px;
  margin: 0;
}
.portal-dialog-brand p {
  grid-column: 2;
  margin: 0 0 3px;
  font-size: .66rem;
}
.portal-dialog-brand h2 {
  grid-column: 2;
  margin: 0;
  font-size: 1.55rem;
  letter-spacing: -.035em;
}
.portal-dialog-brand .portal-dialog-subtitle {
  grid-column: 2;
  margin: 4px 0 0;
  font-size: .82rem;
  line-height: 1.4;
}
.portal-choices {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.portal-choice,
.portal-choice.admin-choice {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 154px;
  grid-template-rows: auto auto;
  grid-template-areas:
    "icon title action"
    "icon description action";
  column-gap: 14px;
  row-gap: 3px;
  align-items: center;
  min-height: 0;
  padding: 15px 16px;
  border-radius: 11px;
}
.portal-choice-icon {
  grid-area: icon;
  width: 40px;
  height: 40px;
  align-self: center;
}
.portal-choice h3 {
  grid-area: title;
  margin: 0;
  font-size: .98rem;
  line-height: 1.3;
}
.portal-choice p {
  grid-area: description;
  margin: 0;
  font-size: .78rem;
  line-height: 1.4;
}
.portal-choice-button {
  grid-area: action;
  align-self: center;
  min-height: 42px;
  padding: 10px 12px;
  font-size: .8rem;
}

@media (max-width: 650px) {
  .portal-dialog { padding: 22px 18px 20px; }
  .portal-dialog-brand {
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 11px;
    padding-right: 38px;
  }
  .portal-dialog-brand img { width: 40px; height: 40px; }
  .portal-dialog-brand h2 { font-size: 1.3rem; }
  .portal-choice,
  .portal-choice.admin-choice {
    grid-template-columns: 40px minmax(0, 1fr);
    grid-template-areas:
      "icon title"
      "icon description"
      "action action";
    padding: 14px;
  }
  .portal-choice-button { width: 100%; margin-top: 8px; }
}

/* Refined portal role selector */
.portal-dialog {
  width: min(720px, calc(100vw - 28px));
  padding: 24px 26px 26px;
  border-top: 4px solid var(--brand);
  background: #fff;
  box-shadow: 0 26px 80px rgba(19,38,47,.3);
}
.portal-dialog-brand {
  grid-template-columns: 42px minmax(0, 1fr);
  column-gap: 13px;
  margin-bottom: 16px;
  padding-bottom: 16px;
}
.portal-dialog-brand img { width: 42px; height: 42px; }
.portal-dialog-brand p { font-size: .64rem; letter-spacing: .14em; }
.portal-dialog-brand h2 { font-size: 1.48rem; }
.portal-dialog-brand .portal-dialog-subtitle { margin-top: 3px; font-size: .78rem; }
.portal-choices { gap: 9px; }
.portal-choice,
.portal-choice.admin-choice {
  grid-template-columns: 40px minmax(0, 1fr) 146px;
  column-gap: 13px;
  padding: 13px 14px;
  border-color: #dbe2e4;
  background: #fff;
}
.portal-choice.admin-choice { background: #fffbfb; }
.portal-choice::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(168,0,8,0);
  transition: box-shadow .18s ease;
}
.portal-choice { position: relative; isolation: isolate; }
.portal-choice:hover {
  transform: translateY(-1px);
  border-color: #c88f93;
  box-shadow: 0 7px 20px rgba(19,38,47,.06);
}
.portal-choice:hover::after { box-shadow: 0 0 0 2px rgba(168,0,8,.05); }
.portal-choice-icon { background: #faecec; }
.portal-choice h3 { font-size: .96rem; }
.portal-choice p { display:grid; gap:2px; }
.portal-choice p strong {
  color: #465862;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.35;
}
.portal-choice p span {
  color: var(--muted);
  font-size: .7rem;
  line-height: 1.35;
}
.portal-choice-button {
  min-height: 40px;
  border: 1px solid var(--brand);
  box-shadow: 0 5px 12px rgba(168,0,8,.12);
  transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.portal-choice-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 17px rgba(168,0,8,.2);
}

@media (max-width: 650px) {
  .portal-dialog { padding: 20px 16px 18px; }
  .portal-dialog-brand { grid-template-columns: 38px minmax(0,1fr); }
  .portal-dialog-brand img { width:38px; height:38px; }
  .portal-choice,
  .portal-choice.admin-choice {
    grid-template-columns: 38px minmax(0,1fr);
    padding: 13px;
  }
}

/* Editorial HCJC landing page */
.landing-page {
  min-height: 100vh;
  min-height: 100svh;
  background: #101c22;
}
.landing-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns:minmax(280px,1fr) auto minmax(270px,1fr);
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  padding: 12px clamp(22px, 5vw, 76px);
  border-bottom: 1px solid rgba(19,38,47,.11);
  background: rgba(255,255,255,.97);
  box-shadow: 0 5px 24px rgba(19,38,47,.08);
}
.landing-brand {
  display: inline-flex;
  align-items: center;
  justify-self:start;
  gap: 13px;
  color: var(--ink);
  text-decoration: none;
}
.landing-brand img { width: 52px; height: 52px; object-fit: contain; }
.landing-brand strong,
.landing-brand small { display: block; }
.landing-brand strong {
  color: #7e0006;
  font-family: "Playfair Display",serif;
  font-size: 1.18rem;
  line-height: 1.2;
  letter-spacing: .01em;
}
.landing-brand small {
  margin-top: 3px;
  color: #61707b;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.landing-menu {
  display: none;
  place-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #d8dfe1;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}
.landing-menu span { width: 19px; height: 2px; border-radius: 3px; background: var(--ink); }
.landing-menu:hover { border-color: var(--brand); }
.landing-layout {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 132px clamp(28px, 8vw, 142px) 54px;
  overflow: hidden;
  background:
    linear-gradient(90deg,rgba(8,20,27,.96) 0%,rgba(8,20,27,.88) 42%,rgba(8,20,27,.53) 72%,rgba(8,20,27,.36) 100%),
    url('assets/hcjc-banner.jpg') center / cover no-repeat;
}
.landing-layout::after {
  content: "";
  position: absolute;
  inset: auto -8vw -42vh auto;
  width: 58vw;
  height: 80vh;
  border-radius: 50%;
  background: radial-gradient(circle,rgba(168,0,8,.26),rgba(168,0,8,0) 68%);
  pointer-events: none;
}
.landing-hero {
  position: relative;
  z-index: 1;
  width: min(700px,100%);
  color: #fff;
}
.landing-values {
  margin: 0 0 25px;
  color: rgba(255,255,255,.84);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .24em;
  line-height: 1.6;
  text-transform: uppercase;
}
.landing-values span { margin: 0 .4em; color: #df545a; }
.landing-hero h1 {
  margin: 0;
  color: #fff;
  font-family: "Playfair Display",serif;
  font-size: clamp(3.5rem,7vw,6.8rem);
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: .93;
}
.landing-hero h1 em { color: #fff; font-weight: 600; }
.landing-intro {
  max-width: 620px;
  margin: 28px 0 0;
  color: rgba(255,255,255,.82);
  font-size: clamp(.98rem,1.35vw,1.18rem);
  font-weight: 500;
  line-height: 1.7;
}
.landing-actions { display:flex; align-items:center; gap:12px; margin-top:32px; }
.landing-cta,
.landing-secondary {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:52px;
  padding:13px 22px;
  border-radius:3px;
  font-family:"Libre Franklin",sans-serif;
  font-size:.82rem;
  font-weight:800;
  letter-spacing:.035em;
  text-decoration:none;
  text-transform:uppercase;
}
.landing-cta { width:auto; min-width:220px; border:1px solid var(--brand); background:var(--brand); color:#fff; box-shadow:0 10px 26px rgba(168,0,8,.3); }
.landing-cta:hover { background:#c00009; transform:translateY(-1px); }
.landing-secondary { min-width:170px; border:1px solid rgba(255,255,255,.72); color:#fff; background:rgba(255,255,255,.04); }
.landing-secondary:hover { border-color:#fff; background:rgba(255,255,255,.1); }
.hero-explore { min-width:190px; }
.landing-footnote {
  display:flex;
  align-items:center;
  gap:12px;
  margin:42px 0 0;
  color:rgba(255,255,255,.58);
  font-size:.67rem;
  line-height:1.4;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.landing-footnote strong { color:#fff; letter-spacing:.16em; }
.landing-footnote span { padding-left:12px; border-left:1px solid rgba(255,255,255,.28); }

@media (max-width: 700px) {
  .landing-header { min-height:70px; padding:9px 16px; }
  .landing-brand img { width:43px; height:43px; }
  .landing-brand strong { font-size:.96rem; }
  .landing-brand small { font-size:.57rem; }
  .landing-menu { width:40px; height:40px; }
  .landing-layout {
    display:grid;
    min-height:100svh;
    padding:112px 22px 38px;
    background:
      linear-gradient(180deg,rgba(8,20,27,.69) 0%,rgba(8,20,27,.92) 58%,rgba(8,20,27,.98) 100%),
      url('assets/hcjc-banner.jpg') 66% center / cover no-repeat;
  }
  .landing-hero h1 { font-size:clamp(3.1rem,15vw,4.8rem); }
  .landing-values { margin-bottom:19px; font-size:.61rem; letter-spacing:.16em; }
  .landing-intro { margin-top:22px; font-size:.92rem; }
  .landing-actions { align-items:stretch; flex-direction:column; margin-top:25px; }
  .landing-cta,.landing-secondary { width:100%; min-width:0; }
  .hero-mobile-auth { width:100%; }
  .landing-footnote { align-items:flex-start; flex-direction:column; gap:6px; margin-top:28px; }
  .landing-footnote span { padding:0; border:0; }
}

/* Full ARCAIVES landing experience */
html { scroll-behavior: smooth; }
.landing-main { background:#f5f4f1; }
.landing-nav { display:flex; align-items:center; justify-self:center; gap:34px; margin:0; }
.landing-nav a {
  position:relative;
  padding:9px 0;
  color:#43545d;
  font-family:"Libre Franklin",sans-serif;
  font-size:.76rem;
  font-weight:700;
  text-decoration:none;
}
.landing-nav a::after {
  content:"";
  position:absolute;
  left:0;
  right:100%;
  bottom:2px;
  height:2px;
  background:var(--brand);
  transition:right .18s ease;
}
.landing-nav a:hover::after { right:0; }
.header-auth-actions {
  justify-self:end;
  display:flex;
  align-items:center;
  gap:9px;
}
.auth-button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:10px 16px;
  border:1px solid var(--brand);
  border-radius:5px;
  font-family:"Libre Franklin",sans-serif;
  font-size:.7rem;
  font-weight:800;
  letter-spacing:.025em;
  line-height:1;
  text-decoration:none;
  text-transform:uppercase;
}
.auth-member { background:#fff; color:var(--brand); }
.auth-member:hover { background:#fff5f5; }
.auth-admin { background:var(--brand); color:#fff; }
.auth-admin:hover { background:var(--brand-dark); }
.hero-mobile-auth { display:none; }
.landing-layout {
  min-height:100vh;
  min-height:100svh;
  isolation:isolate;
  background:#111f26;
}
.landing-hero-image {
  position:absolute;
  inset:0;
  z-index:0;
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 42%;
}
.landing-hero-section::before {
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background:linear-gradient(90deg,rgba(7,17,23,.93) 0%,rgba(7,17,23,.78) 43%,rgba(7,17,23,.34) 70%,rgba(7,17,23,.1) 100%);
  pointer-events:none;
}
.landing-layout::after { z-index:1; }
.landing-hero { z-index:2; }
.landing-scroll {
  position:absolute;
  z-index:2;
  right:clamp(28px,5vw,76px);
  bottom:38px;
  display:flex;
  align-items:center;
  gap:12px;
  color:rgba(255,255,255,.72);
  font-size:.65rem;
  font-weight:800;
  letter-spacing:.15em;
  text-decoration:none;
  text-transform:uppercase;
}
.landing-scroll i { position:relative; width:28px; height:42px; border:1px solid rgba(255,255,255,.45); border-radius:18px; }
.landing-scroll i::after { content:""; position:absolute; top:8px; left:50%; width:3px; height:7px; border-radius:5px; background:#fff; transform:translateX(-50%); animation:scroll-cue 1.8s ease-in-out infinite; }
@keyframes scroll-cue { 0%,100%{transform:translate(-50%,0);opacity:.45} 45%{transform:translate(-50%,13px);opacity:1} }

.landing-section { padding:clamp(70px,9vw,126px) clamp(24px,7vw,118px); }
.section-heading {
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(300px,.7fr);
  align-items:end;
  gap:clamp(34px,7vw,110px);
  max-width:1380px;
  margin:0 auto 48px;
}
.section-eyebrow { margin:0 0 14px; color:var(--brand); font-size:.68rem; font-weight:800; letter-spacing:.2em; text-transform:uppercase; }
.section-eyebrow.light { color:#f07c82; }
.section-heading h2,.journey-copy h2,.landing-cta-section h2 {
  margin:0;
  color:var(--ink);
  font-family:"Playfair Display",serif;
  font-size:clamp(2.25rem,4.3vw,4.1rem);
  font-weight:600;
  letter-spacing:-.045em;
  line-height:1.04;
}
.section-heading>p { margin:0; color:#61707b; font-size:.94rem; line-height:1.75; }
.service-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; max-width:1380px; margin:auto; }
.service-card {
  position:relative;
  min-height:340px;
  padding:30px;
  border:1px solid #d8dfe1;
  background:#fff;
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}
.service-card:hover { transform:translateY(-4px); border-color:#caa4a6; box-shadow:0 18px 42px rgba(19,38,47,.08); }
.service-card.featured { border-color:#8b0007; background:#860007; color:#fff; }
.service-number { display:block; margin-bottom:74px; color:#9aabb3; font-size:.7rem; font-weight:800; letter-spacing:.15em; }
.service-card.featured .service-number { color:#f1aaad; }
.service-card h3 { margin:0 0 14px; font-family:"Libre Franklin",sans-serif; font-size:1.25rem; }
.service-card p { margin:0; color:#61707b; font-size:.85rem; line-height:1.7; }
.service-card.featured p { color:rgba(255,255,255,.75); }
.service-card a,.service-card button { position:absolute; left:30px; bottom:28px; display:inline-flex; align-items:center; gap:9px; padding:0; border:0; background:transparent; color:var(--brand); font:inherit; font-size:.75rem; font-weight:800; text-decoration:none; cursor:pointer; }
.service-card.featured a,.service-card.featured button { color:#fff; }

.journey-section {
  display:grid;
  grid-template-columns:minmax(0,.9fr) minmax(420px,1.1fr);
  gap:clamp(50px,10vw,150px);
  align-items:center;
  background:#13262f;
  color:#fff;
}
.journey-copy { max-width:610px; margin-left:auto; }
.journey-copy h2 { color:#fff; }
.journey-copy>p:not(.section-eyebrow) { margin:24px 0 0; color:rgba(255,255,255,.7); font-size:.92rem; line-height:1.75; }
.section-button { display:inline-flex; align-items:center; gap:9px; margin-top:28px; min-height:46px; padding:11px 18px; border:1px solid #d5575d; background:var(--brand); color:#fff; font-family:"Libre Franklin",sans-serif; font-size:.76rem; font-weight:800; text-decoration:none; cursor:pointer; }
.journey-steps { max-width:680px; margin:0 auto 0 0; padding:0; list-style:none; border-top:1px solid rgba(255,255,255,.18); }
.journey-steps li { display:grid; grid-template-columns:58px 1fr; gap:20px; padding:26px 0; border-bottom:1px solid rgba(255,255,255,.18); }
.journey-steps>li>span { color:#ed7177; font-size:.7rem; font-weight:800; letter-spacing:.13em; }
.journey-steps h3 { margin:0 0 6px; font-size:1rem; }
.journey-steps p { margin:0; color:rgba(255,255,255,.63); font-size:.8rem; line-height:1.5; }

.access-section { background:#fff; }
.access-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; max-width:1380px; margin:auto; }
.access-grid article { padding:34px; border:1px solid #d9dfe1; background:#fbfbfa; }
.access-grid article.staff-access { border-top:4px solid #315e72; background:#f7fafb; }
.access-grid article.admin-access { border-top:4px solid var(--brand); background:#fff8f8; }
.access-grid article>p { margin:0 0 12px; color:var(--brand); font-size:.66rem; font-weight:800; letter-spacing:.16em; text-transform:uppercase; }
.access-grid h3 { margin:0; color:var(--ink); font-family:"Libre Franklin",sans-serif; font-size:1.3rem; }
.access-grid ul { display:grid; gap:10px; margin:24px 0 28px; padding:0; list-style:none; }
.access-grid li { position:relative; padding-left:20px; color:#5f7079; font-size:.82rem; }
.access-grid li::before { content:""; position:absolute; left:0; top:.48em; width:7px; height:7px; border-radius:50%; background:var(--brand); }
.access-grid a { display:inline-flex; align-items:center; gap:9px; color:var(--brand); font-size:.76rem; font-weight:800; text-decoration:none; }

.landing-cta-section {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:40px;
  padding:clamp(60px,8vw,105px) clamp(24px,8vw,138px);
  background:#8b0007;
  color:#fff;
}
.landing-cta-section h2 { color:#fff; }
.landing-cta-section p:not(.section-eyebrow) { margin:14px 0 0; color:rgba(255,255,255,.73); }
.landing-cta-access { display:flex; flex:none; align-items:center; gap:10px; }
.landing-cta-access a { display:inline-flex; align-items:center; justify-content:center; min-height:52px; padding:13px 20px; border:1px solid #fff; font-family:"Libre Franklin",sans-serif; font-size:.73rem; font-weight:800; text-decoration:none; text-transform:uppercase; }
.footer-member-login { background:#fff; color:#850007; }
.footer-admin-login { background:transparent; color:#fff; }
.footer-admin-login:hover { background:rgba(255,255,255,.1); }
.landing-footer { padding:0 clamp(22px,6vw,96px); background:#0b181e; color:rgba(255,255,255,.65); }
.footer-main { display:grid; grid-template-columns:minmax(260px,1.4fr) repeat(3,minmax(150px,.7fr)); gap:clamp(34px,6vw,88px); max-width:1500px; margin:auto; padding:64px 0 54px; }
.footer-about { max-width:370px; }
.footer-about>p { margin:22px 0 0; color:rgba(255,255,255,.56); font-size:.78rem; line-height:1.7; }
.footer-brand { display:flex; align-items:center; gap:13px; color:#fff; text-decoration:none; }
.footer-brand img { width:46px; height:46px; }
.footer-brand strong,.footer-brand small { display:block; }
.footer-brand strong { font-family:"Libre Franklin",sans-serif; font-size:.9rem; letter-spacing:.12em; }
.footer-brand small { margin-top:3px; color:rgba(255,255,255,.55); font-size:.62rem; }
.footer-column { display:flex; align-items:flex-start; flex-direction:column; gap:11px; }
.footer-column h2 { margin:0 0 8px; color:#fff; font-family:"Libre Franklin",sans-serif; font-size:.7rem; font-weight:800; letter-spacing:.13em; text-transform:uppercase; }
.footer-column a,.footer-column span,.footer-column button { color:rgba(255,255,255,.62); font-family:"DM Sans",sans-serif; font-size:.74rem; line-height:1.45; text-decoration:none; }
.footer-column a:hover,.footer-column button:hover { color:#fff; }
.footer-column button { margin-top:3px; padding:0; border:0; border-bottom:1px solid rgba(255,255,255,.4); background:transparent; cursor:pointer; }
.footer-bottom { display:grid; grid-template-columns:1fr auto; align-items:center; gap:34px; max-width:1500px; margin:auto; padding:21px 0 24px; border-top:1px solid rgba(255,255,255,.13); }
.footer-bottom p { margin:0; color:rgba(255,255,255,.45); font-size:.62rem; line-height:1.5; letter-spacing:.04em; }
.footer-bottom p:nth-child(2) { letter-spacing:.11em; text-transform:uppercase; }

@media (max-width: 900px) {
  .landing-header { grid-template-columns:minmax(0,1fr) auto; }
  .header-auth-actions { display:none; }
  .landing-nav {
    position:absolute;
    top:calc(100% + 7px);
    right:clamp(14px,4vw,28px);
    display:none;
    align-items:stretch;
    flex-direction:column;
    gap:2px;
    width:min(250px,calc(100vw - 28px));
    margin:0;
    padding:9px;
    border:1px solid #dce2e4;
    border-radius:10px;
    background:#fff;
    box-shadow:0 18px 45px rgba(19,38,47,.18);
  }
  .landing-nav.is-open { display:flex; }
  .landing-nav a { width:100%; padding:12px 13px; border-radius:6px; font-size:.76rem; }
  .landing-nav a:hover { background:#f7f3f3; }
  .landing-nav a::after { display:none; }
  .landing-menu { display:grid; }
  .landing-actions { align-items:flex-start; flex-direction:column; }
  .hero-mobile-auth {
    display:grid;
    grid-template-columns:1fr;
    gap:9px;
    width:min(210px,100%);
  }
  .hero-mobile-auth .auth-button { width:100%; min-height:42px; padding:9px 10px; box-shadow:none; }
  .hero-mobile-auth .auth-member {
    border-color:#fff;
    background:rgba(255,255,255,.96);
    color:var(--brand);
  }
  .hero-mobile-auth .auth-admin {
    border-color:rgba(255,255,255,.68);
    background:rgba(7,17,23,.62);
    color:#fff;
  }
  .hero-mobile-auth .auth-admin:hover {
    border-color:#fff;
    background:rgba(7,17,23,.82);
  }
  .service-grid { grid-template-columns:1fr; }
  .service-card { min-height:270px; }
  .service-number { margin-bottom:38px; }
  .journey-section { grid-template-columns:1fr; }
  .journey-copy,.journey-steps { max-width:none; margin:0; }
  .access-grid { grid-template-columns:1fr; }
}
@media (max-width: 700px) {
  .landing-layout {
    padding:112px 22px 42px;
    background:#111f26;
  }
  .landing-hero-image { object-position:55% center; }
  .landing-hero-section::before { background:linear-gradient(180deg,rgba(7,17,23,.42) 0%,rgba(7,17,23,.78) 52%,rgba(7,17,23,.96) 100%); }
  .landing-scroll { display:none; }
  .landing-section { padding:64px 20px; }
  .section-heading { grid-template-columns:1fr; gap:22px; margin-bottom:32px; }
  .section-heading h2,.journey-copy h2,.landing-cta-section h2 { font-size:2.45rem; }
  .service-card { min-height:320px; padding:25px; }
  .service-card a,.service-card button { left:25px; bottom:23px; }
  .journey-section { padding-top:70px; padding-bottom:70px; }
  .access-grid { grid-template-columns:1fr; }
  .access-grid article { padding:27px; }
  .landing-cta-section { align-items:stretch; flex-direction:column; padding:60px 22px; }
  .landing-cta-access { display:grid; grid-template-columns:1fr 1fr; width:100%; }
  .landing-cta-access a { width:100%; }
  .footer-main { grid-template-columns:1fr 1fr; gap:38px 24px; padding:48px 0 42px; }
  .footer-about { grid-column:1/-1; max-width:440px; }
  .footer-system { grid-column:1/-1; }
  .footer-bottom { grid-template-columns:1fr; gap:10px; }
}

@media (max-width:480px) {
  .footer-main { grid-template-columns:1fr; }
  .footer-about,.footer-system { grid-column:auto; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  .landing-scroll i::after { animation:none; }
}

/* ARCAIVES typography system */
.landing-page { font-family:"DM Sans",sans-serif; }
.landing-brand strong {
  font-family:"Libre Franklin",sans-serif;
  font-size:1.03rem;
  font-weight:800;
  letter-spacing:-.025em;
}
.landing-brand small {
  font-family:"DM Sans",sans-serif;
  font-weight:700;
  letter-spacing:.095em;
}
.landing-nav a {
  font-family:"Libre Franklin",sans-serif;
  font-size:.75rem;
  font-weight:700;
  letter-spacing:-.01em;
}
.landing-values,.section-eyebrow,.landing-footnote,.landing-scroll {
  font-family:"Libre Franklin",sans-serif;
}
.landing-hero h1,
.section-heading h2,
.journey-copy h2,
.landing-cta-section h2 {
  font-family:"Libre Franklin",sans-serif;
  font-weight:800;
  letter-spacing:-.065em;
}
.landing-hero h1 {
  max-width:820px;
  font-size:clamp(3.5rem,6.6vw,6.25rem);
  line-height:.96;
}
.landing-hero h1 em {
  font-family:inherit;
  font-style:normal;
  font-weight:800;
}
.landing-intro {
  max-width:590px;
  font-family:"DM Sans",sans-serif;
  font-size:clamp(.96rem,1.12vw,1.08rem);
  font-weight:500;
  line-height:1.7;
}
.section-heading h2,.journey-copy h2,.landing-cta-section h2 {
  font-size:clamp(2.2rem,3.9vw,3.75rem);
  line-height:1.02;
}
.section-heading>p,.service-card p,.journey-copy>p:not(.section-eyebrow),.journey-steps p,.access-grid li {
  font-family:"DM Sans",sans-serif;
}
.service-card h3,.journey-steps h3,.access-grid h3 {
  font-family:"Libre Franklin",sans-serif;
  font-weight:800;
  letter-spacing:-.035em;
}
.landing-cta,.landing-secondary,.service-card a,.service-card button,.section-button,.access-grid a,.landing-cta-section button {
  font-family:"Libre Franklin",sans-serif;
}

@media (max-width:700px) {
  .landing-brand strong { font-size:.9rem; }
  .landing-brand small { font-size:.54rem; }
  .landing-hero h1 { font-size:clamp(2.9rem,13vw,4.2rem); }
  .section-heading h2,.journey-copy h2,.landing-cta-section h2 { font-size:2.25rem; }
}

/* Responsive hero composition */
@media (min-width:701px) and (max-width:1100px) {
  .landing-layout { padding-inline:clamp(38px,7vw,76px); }
  .landing-hero { width:min(640px,72vw); }
  .landing-hero h1 { font-size:clamp(3.7rem,7.4vw,5.4rem); }
}

@media (max-width:700px) {
  .landing-layout {
    align-items:start;
    min-height:100svh;
    padding:calc(70px + clamp(24px,4svh,38px)) 20px 30px;
  }
  .landing-hero {
    align-self:start;
    width:100%;
    max-width:460px;
    transform:none;
  }
  .landing-values {
    margin-bottom:15px;
    font-size:clamp(.52rem,2.2vw,.61rem);
    letter-spacing:.13em;
    line-height:1.5;
    white-space:nowrap;
  }
  .landing-values span { margin-inline:.22em; }
  .landing-hero h1 {
    max-width:100%;
    font-size:clamp(2.72rem,11.8vw,3.65rem);
    letter-spacing:-.06em;
    line-height:.98;
  }
  .landing-intro {
    max-width:390px;
    margin-top:19px;
    font-size:clamp(.84rem,3.7vw,.92rem);
    line-height:1.62;
  }
  .landing-actions { width:100%; gap:10px; margin-top:21px; }
  .landing-cta,.landing-secondary { min-height:48px; padding:11px 15px; font-size:.72rem; }
  .hero-explore { width:100%; }
}

@media (max-width:380px) {
  .landing-layout { padding-inline:16px; }
  .landing-hero h1 { font-size:2.58rem; }
  .landing-values { font-size:.49rem; letter-spacing:.1em; }
}

@media (max-width:700px) and (max-height:700px) {
  .landing-layout { align-items:start; min-height:100svh; padding-top:90px; padding-bottom:24px; }
  .landing-hero { transform:none; }
  .landing-values { margin-bottom:11px; }
  .landing-hero h1 { font-size:clamp(2.45rem,10.8vw,3.2rem); }
  .landing-intro { margin-top:14px; line-height:1.5; }
  .landing-actions { margin-top:17px; }
  .landing-cta,.landing-secondary { min-height:44px; }
}

/* Compact section rhythm and non-repetitive access content */
.journey-section,
.access-section {
  padding-top:clamp(56px,6vw,84px);
  padding-bottom:clamp(56px,6vw,84px);
}
.journey-section { gap:clamp(40px,7vw,96px); }
.journey-copy { max-width:540px; }
.journey-copy h2,
.access-section .section-heading h2 {
  font-size:clamp(2.35rem,3.45vw,3.45rem);
  line-height:1.04;
}
.journey-copy>p:not(.section-eyebrow) {
  max-width:520px;
  margin-top:18px;
  line-height:1.65;
}
.journey-steps li { padding:20px 0; }
.access-section .section-heading { margin-bottom:32px; }
.access-grid { gap:14px; }
.access-grid article { padding:27px 28px; }
.access-grid ul { gap:8px; margin:19px 0 0; }
.footer-main { padding-top:52px; padding-bottom:44px; }

@media (max-width:700px) {
  .journey-section,
  .access-section { padding:52px 20px; }
  .journey-section { gap:34px; }
  .journey-copy h2,
  .access-section .section-heading h2 { font-size:2.08rem; }
  .journey-steps li { grid-template-columns:44px 1fr; gap:14px; padding:18px 0; }
  .access-section .section-heading { margin-bottom:26px; }
  .access-grid article { padding:23px; }
  .access-grid ul { margin-top:16px; }
  .footer-main { padding-top:42px; padding-bottom:36px; }
}

/* Viewport-balanced section sizing */
#how-it-works,
#access { scroll-margin-top:82px; }
.journey-section,
.access-section {
  box-sizing:border-box;
  min-height:calc(100svh - 82px);
}
.journey-section { align-content:center; }
.access-section {
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.access-section>.section-heading,
.access-section>.access-grid { width:100%; }

@media (max-width:900px) {
  .journey-section,
  .access-section { min-height:calc(100svh - 70px); }
}

@media (max-width:700px) {
  html { scroll-snap-type:y proximity; }
  .landing-hero-section,
  .journey-section,
  .access-section { scroll-snap-align:start; scroll-snap-stop:normal; }
  #how-it-works,
  #access { scroll-margin-top:70px; }
  .journey-section,
  .access-section {
    min-height:calc(100svh - 70px);
    padding:clamp(42px,6svh,58px) 20px;
  }
  .journey-section { align-content:center; }
  .access-section { justify-content:center; }
}

/* Compact responsive footer */
@media (max-width:600px) {
  .landing-footer { padding-inline:20px; }
  .footer-main {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:27px 22px;
    padding:36px 0 29px;
  }
  .footer-about {
    grid-column:1/-1;
    max-width:none;
  }
  .footer-brand { gap:11px; }
  .footer-brand img { width:40px; height:40px; }
  .footer-brand strong { font-size:.84rem; }
  .footer-brand small { font-size:.58rem; }
  .footer-about>p {
    max-width:360px;
    margin-top:15px;
    font-size:.73rem;
    line-height:1.6;
  }
  .footer-column { gap:8px; }
  .footer-column h2 { margin-bottom:5px; font-size:.65rem; }
  .footer-column a,
  .footer-column span { font-size:.7rem; line-height:1.4; }
  .footer-system {
    grid-column:1/-1;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px 20px;
  }
  .footer-system h2 { grid-column:1/-1; }
  .footer-bottom {
    grid-template-columns:1fr;
    gap:7px;
    padding:17px 0 20px;
  }
  .footer-bottom p { font-size:.57rem; }
  .footer-bottom p:nth-child(2) { line-height:1.6; letter-spacing:.08em; }
}

@media (max-width:350px) {
  .landing-footer { padding-inline:16px; }
  .footer-main { gap:24px 16px; }
  .footer-system { gap:8px 14px; }
}
