/* HEC Case Club — hard corners, logo blues */
:root {
  --navy: #002450;
  --blue: #00578c;
  --sky: #7fc0ff;
  --mist: #eef3f8;
  --line: #d3dde8;
  --white: #ffffff;
  --text: #002450;
  --muted: #4a5d75;
  --error: #b3261e;

  --display: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  border-radius: 0;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
p { margin: 0 0 1em; max-width: 64ch; }

h1, h2, h3 { font-family: var(--display); margin: 0; color: var(--navy); }
h1 { font-weight: 300; font-size: clamp(2.4rem, 5.4vw, 4.25rem); line-height: 1.08; letter-spacing: -0.015em; }
h2 { font-weight: 600; font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.15; letter-spacing: -0.01em; }
h3 { font-weight: 600; font-size: 1.15rem; line-height: 1.3; }

.nowrap { white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--mist { background: var(--mist); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { margin: 0; color: var(--muted); }
.lead { font-size: 1.2rem; line-height: 1.55; color: var(--muted); }

.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: var(--white); padding: 12px 16px; z-index: 100; }
.skip:focus { left: 16px; top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em;
  padding: 15px 28px; border: 2px solid transparent; border-radius: 0;
  text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--blue); color: var(--white); }
.btn--sky { background: var(--sky); color: var(--navy); }
.btn--sky:hover { background: var(--white); color: var(--navy); }
.btn--ghost { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn--white { background: var(--white); color: var(--navy); }
.btn--white:hover { background: var(--sky); color: var(--navy); }
.btn[disabled] { opacity: .7; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 36px; }
.nav a {
  font-family: var(--display); font-weight: 500; font-size: 0.95rem;
  color: var(--navy); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--sky); color: var(--navy); }
.nav a[aria-current="page"] { border-bottom-color: var(--navy); }
.nav a.btn { padding: 11px 22px; color: var(--white); border-bottom: 2px solid transparent; }
.nav a.btn:hover { color: var(--white); border-color: transparent; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--navy); }
.nav-toggle svg { display: block; }

@media (max-width: 820px) {
  .site-header .wrap { height: 68px; }
  .brand img { height: 38px; }
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); box-shadow: inset 3px 0 0 var(--navy); padding-left: 12px; }
  .nav .btn { margin-top: 16px; padding: 14px 22px; }
}

/* ---------- Circles (logo motif) ---------- */
.dots { display: flex; align-items: center; }
.dots span { display: block; border-radius: 50%; }
.dots span:nth-child(1) { width: 18px; height: 18px; background: var(--navy); }
.dots span:nth-child(2) { width: 26px; height: 26px; background: var(--blue); margin-left: -5px; }
.dots span:nth-child(3) { width: 34px; height: 34px; background: var(--sky); margin-left: -6px; }
.dots--on-navy span:nth-child(1) { background: var(--white); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(86vh, 780px); display: flex; align-items: flex-end; overflow: hidden; background: var(--navy); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero .wrap { position: relative; }
.hero__panel {
  background: var(--navy); color: var(--white);
  width: min(660px, 100%); padding: clamp(32px, 5vw, 60px) clamp(24px, 4.5vw, 56px) clamp(36px, 5vw, 60px);
  animation: panel-in .7s cubic-bezier(.2,.7,.2,1) both;
}
.hero__panel .dots { margin-bottom: 28px; }
.hero__panel h1 { color: var(--white); margin-bottom: 20px; }
.hero__panel p { color: #c9dcf0; font-size: 1.15rem; margin-bottom: 32px; }
@keyframes panel-in { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Page hero (inner pages) */
.page-hero { position: relative; min-height: clamp(320px, 46vw, 480px); display: flex; align-items: flex-end; background: var(--navy); overflow: hidden; }
.page-hero .hero__img { object-position: center 45%; }
.page-hero .hero__panel { width: min(560px, 100%); padding-bottom: clamp(28px, 4vw, 44px); }
.page-hero .hero__panel p { margin-bottom: 0; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; list-style: none; margin: 0; padding: 0; position: relative; }
.steps::before { content: ''; position: absolute; left: 0; right: 0; top: 30px; height: 2px; background: var(--line); }
.step { position: relative; }
.step__dot { height: 62px; display: flex; align-items: center; margin-bottom: 24px; }
.step__dot span { display: block; border-radius: 50%; box-shadow: 0 0 0 8px var(--white); }
.step:nth-child(1) .step__dot span { width: 28px; height: 28px; background: var(--navy); }
.step:nth-child(2) .step__dot span { width: 44px; height: 44px; background: var(--blue); }
.step:nth-child(3) .step__dot span { width: 62px; height: 62px; background: var(--sky); }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--muted); margin: 0; }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps::before { display: none; }
  .step { display: grid; grid-template-columns: 72px 1fr; column-gap: 16px; }
  .step__dot { grid-row: span 2; justify-content: center; margin: 0; }
}

/* ---------- Resource blocks ---------- */
.resources { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.resource {
  position: relative; display: flex; flex-direction: column; min-height: 260px;
  padding: 28px 26px 24px; text-decoration: none; color: var(--white);
  transition: transform .15s;
}
.resource:hover { color: var(--white); transform: translateY(-4px); }
.resource h3 { color: inherit; margin: 36px 0 10px; }
.resource p { margin: 0 0 20px; font-size: 0.98rem; opacity: .9; }
.resource__lock { position: absolute; top: 24px; right: 24px; opacity: .85; }
.resource__icon { width: 44px; height: 44px; display: grid; place-items: center; background: var(--white); color: var(--navy); }
.resource__cta { margin-top: auto; font-family: var(--display); font-weight: 600; font-size: 0.9rem; padding-top: 14px; border-top: 1px solid currentColor; }
.resource--navy { background: var(--navy); }
.resource--blue { background: var(--blue); }
.resource--sky { background: var(--sky); color: var(--navy); }
.resource--sky:hover { color: var(--navy); }
.resource--sky .resource__icon { background: var(--navy); color: var(--sky); }
.resource--line { background: var(--white); color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.resource--line:hover { color: var(--navy); }
.resource--line .resource__icon { background: var(--navy); color: var(--white); }
.resources--large { grid-template-columns: repeat(2, 1fr); }
.resources--large .resource { min-height: 300px; padding: 36px; }
@media (max-width: 1000px) { .resources { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .resources, .resources--large { grid-template-columns: 1fr; } .resource { min-height: 0; } }

/* ---------- Split (image + text) ---------- */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split h2 { margin-bottom: 20px; }
.split figure { margin: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.text-link { font-family: var(--display); font-weight: 600; font-size: 0.95rem; color: var(--navy); text-decoration: none; border-bottom: 2px solid var(--sky); padding-bottom: 2px; }
.text-link:hover { border-bottom-color: var(--navy); }

/* ---------- Band ---------- */
.band { background: var(--blue); color: var(--white); padding: clamp(48px, 7vw, 80px) 0; }
.band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.band h2 { color: var(--white); margin-bottom: 8px; }
.band p { margin: 0; color: #d6e8f8; }

/* ---------- About ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(24px, 6vw, 80px); }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.service { border-top: 2px solid var(--navy); padding: 22px 0 36px; }
.service h3 { margin-bottom: 8px; }
.service p { margin: 0; color: var(--muted); font-size: 1rem; }
@media (max-width: 900px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }

.founders { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(32px, 5vw, 64px); }
.founder { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: start; }
.founder img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--mist); }
.founder__body { border-left: 4px solid var(--navy); padding: 4px 0 4px 20px; }
.founder:nth-child(2) .founder__body { border-left-color: var(--blue); }
.founder h3 { font-size: 1.4rem; }
.founder__role { font-family: var(--display); font-weight: 500; font-size: 0.95rem; color: var(--blue); margin: 4px 0 14px; }
.founder p { color: var(--muted); font-size: 1rem; }
.founder__link { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 1100px) { .founders { grid-template-columns: 1fr; max-width: 720px; } }
@media (max-width: 560px) { .founder { grid-template-columns: 1fr; gap: 20px; } .founder img { width: 200px; } }

.photo-wide { margin: 0; }
.photo-wide img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }

/* ---------- Auth pages ---------- */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 85px); }
.auth__aside { position: relative; background: var(--navy); overflow: hidden; display: flex; align-items: flex-end; }
.auth__aside img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth__aside .hero__panel { position: relative; width: min(460px, 100%); animation: none; }
.auth__aside .hero__panel h1 { font-size: clamp(2rem, 3.6vw, 3rem); }
.auth__aside .hero__panel p { margin-bottom: 0; font-size: 1.05rem; }
.auth__main { display: flex; align-items: center; justify-content: center; padding: clamp(40px, 6vw, 80px) var(--gutter); }
.auth__form { width: 100%; max-width: 460px; }
.auth__form h2 { margin-bottom: 8px; }
.auth__form > p { color: var(--muted); margin-bottom: 32px; }
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; min-height: 0; }
  .auth__aside { min-height: 280px; }
}

.field { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }
label { display: block; font-family: var(--display); font-weight: 500; font-size: 0.9rem; margin-bottom: 8px; }
.hint { font-size: 0.85rem; color: var(--muted); margin: 6px 0 0; }
input, select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--navy);
  padding: 13px 14px; border: 1.5px solid #9fb2c8; border-radius: 0; background: var(--white);
  appearance: none; -webkit-appearance: none;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23002450' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
input:hover, select:hover { border-color: var(--navy); }
input:focus, select:focus { outline: none; border-color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
input[aria-invalid="true"] { border-color: var(--error); box-shadow: inset 0 0 0 1.5px var(--error); }
.field--codeword input { background: var(--mist); letter-spacing: 0.08em; }
.form-error {
  display: none; border-left: 4px solid var(--error); background: #fbeeed; color: #5c1410;
  padding: 14px 16px; margin-bottom: 24px; font-size: 0.95rem;
}
.form-error.is-visible { display: block; }
.form-error strong { display: block; margin-bottom: 2px; }
.form-note { display: none; border-left: 4px solid var(--blue); background: var(--mist); padding: 14px 16px; margin: 0 0 24px; font-size: 0.95rem; }
.form-note.is-visible { display: block; }
.auth__form .btn { width: 100%; margin-top: 8px; }
.form-foot { margin-top: 24px; font-size: 0.95rem; color: var(--muted); }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.field-head { display: flex; justify-content: space-between; align-items: baseline; }
.field-head .link-button { font-size: 0.875rem; margin-bottom: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c9dcf0; padding: 64px 0 28px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.18); }
.site-footer img { height: 44px; width: auto; margin-bottom: 18px; }
.site-footer h3 { color: var(--white); font-size: 0.95rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #c9dcf0; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.socials { display: flex; gap: 12px; margin-top: 18px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.35); color: var(--white); }
.socials a:hover { background: var(--white); color: var(--navy); text-decoration: none; }
.footer-bottom { padding-top: 24px; font-size: 0.85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: flex; align-items: center; }
.notfound .dots { margin-bottom: 28px; }
.notfound h1 { margin-bottom: 16px; }

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