:root {
  --navy: #101828;
  --muted: #667085;
  --line: #e4e7ec;
  --surface: #ffffff;
  --canvas: #f5f7fa;
  --brand: #c1121f;
  --brand-dark: #99121c;
  --brand-soft: #fff1f2;
  --shadow: 0 20px 50px rgba(16, 24, 40, .08);
}

/* Motion enhancement layer — preserves the existing visual design */
:root { --motion-ease: cubic-bezier(.22, 1, .36, 1); }
body:not(.auth-page) { animation: page-enter .68s var(--motion-ease) both; }
body.page-leaving { animation: page-leave .24s ease both; pointer-events: none; }
.auth-page { overflow-x: hidden; }
.auth-layout { animation: auth-shell-in .28s ease-out both; }
.auth-brand-panel { animation: panel-reveal .64s var(--motion-ease) both; transform-origin: left center; }
.auth-brand { animation: logo-drop .46s var(--motion-ease) .12s both; }
.auth-brand-copy .eyebrow { animation: rise-fade .42s var(--motion-ease) .20s both; }
.auth-brand-copy h1 { animation: rise-fade .54s var(--motion-ease) .28s both; }
.auth-brand-copy p { animation: rise-fade .42s var(--motion-ease) .40s both; }
.auth-quote, .auth-benefits { animation: rise-fade .42s var(--motion-ease) .50s both; }
.auth-form-panel { animation: form-slide-in .58s var(--motion-ease) .08s both; }
.auth-form .field-group, .auth-form .check-row, .auth-form .auth-submit, .auth-switch {
  animation: field-enter .48s var(--motion-ease) both;
}
.auth-form .field-group:nth-child(1) { animation-delay: .16s; }
.auth-form .field-group:nth-child(2) { animation-delay: .23s; }
.auth-form .field-group:nth-child(3) { animation-delay: .30s; }
.auth-form .field-group:nth-child(4) { animation-delay: .37s; }
.auth-form .check-row { animation-delay: .44s; }
.auth-form .auth-submit { animation-delay: .51s; }
.auth-switch { animation-delay: .58s; }
.intro-panel { animation: intro-slide-in .65s var(--motion-ease) .12s both; }
.form-section { animation: form-section-in .65s var(--motion-ease) .16s both; }
.motion-reveal { opacity: 0; transform: translateY(20px); }
.motion-reveal.is-visible { animation: scroll-reveal .5s var(--motion-ease) both; }
.field-group, .resource-row { position: relative; }
.field-group::after {
  content: "✓"; position: absolute; right: 12px; bottom: 15px; color: #1c8b50;
  font-size: 12px; font-weight: 800; opacity: 0; transform: scale(.7);
  transition: opacity .22s, transform .22s var(--motion-ease); pointer-events: none;
}
.field-group:has(input:valid:not(:placeholder-shown))::after,
.field-group:has(textarea:valid:not(:placeholder-shown))::after { opacity: 1; transform: scale(1); }
.field-group:focus-within label { color: var(--brand); transition: color .2s; }
input, textarea, select { transition: border-color .2s, box-shadow .2s, transform .2s var(--motion-ease); }
input:focus, textarea:focus, select:focus { transform: translateY(-1px); }
input.motion-invalid, textarea.motion-invalid { animation: field-shake .28s ease both; }
.button, .logout-button, .password-toggle { transition: transform .2s var(--motion-ease), box-shadow .2s, background-color .2s; }
.button:hover, .logout-button:hover { transform: translateY(-2px); }
.button:active, .logout-button:active { transform: scale(.97); }
.auth-submit.loading::before, .button.motion-loading::before {
  content: ""; width: 14px; height: 14px; border: 2px solid currentColor;
  border-right-color: transparent; border-radius: 50%; animation: motion-spin .65s linear infinite;
}
.auth-submit.loading { display: flex; align-items: center; justify-content: center; gap: 9px; }
.auth-form.is-success { animation: successful-exit .32s ease both; }
.logo-splash { animation: splash-close .01s linear .84s both; }
.logo-splash::before { animation: curtain-left .44s var(--motion-ease) .36s both; }
.logo-splash::after { animation: curtain-right .44s var(--motion-ease) .36s both; }
@keyframes auth-shell-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes page-enter { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes page-leave { to { opacity: 0; transform: translateY(-10px); } }
@keyframes panel-reveal { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0); } }
@keyframes logo-drop { from { opacity: 0; transform: translateY(-15px); } to { opacity: 1; transform: none; } }
@keyframes rise-fade { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes form-slide-in { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
@keyframes field-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes intro-slide-in { from { opacity: 0; transform: translateX(-25px); } to { opacity: 1; transform: none; } }
@keyframes form-section-in { from { opacity: 0; transform: translateX(25px); } to { opacity: 1; transform: none; } }
@keyframes scroll-reveal { to { opacity: 1; transform: none; } }
@keyframes field-shake { 25% { transform: translateX(-2px); } 55% { transform: translateX(2px); } 100% { transform: none; } }
@keyframes successful-exit { to { opacity: 0; transform: translateY(-10px); } }
@keyframes motion-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .logo-splash { display: none !important; }
}

* { box-sizing: border-box; }

:where(a, button, input, textarea, select):focus-visible {
  outline: 3px solid rgba(193,18,31,.28);
  outline-offset: 3px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--navy);
  background: var(--canvas);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.site-header {
  height: 76px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--navy);
  text-decoration: none;
}

.brand-logo {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  object-fit: cover;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 7px 18px rgba(193,18,31,.2);
}

.logo-splash {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  background: #fff;
  animation: splash-close .72s cubic-bezier(.76,0,.24,1) 1.65s both;
}

body:has(> .logo-splash) { overflow: hidden; }

.logo-splash::before,
.logo-splash::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  width: 50.1%;
  background: linear-gradient(145deg, #fff 35%, #fff3f4);
}

.logo-splash::before { left: 0; animation: curtain-left .8s cubic-bezier(.76,0,.24,1) 1.35s both; }
.logo-splash::after { right: 0; animation: curtain-right .8s cubic-bezier(.76,0,.24,1) 1.35s both; }

.logo-splash-glow {
  position: absolute;
  z-index: 1;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(193,18,31,.13), transparent 68%);
  animation: splash-pulse 1.35s ease-out both;
}

.logo-splash-mark {
  position: relative;
  z-index: 2;
  width: 148px;
  height: 148px;
  filter: drop-shadow(0 20px 30px rgba(153,18,28,.2));
  animation: splash-arrive .75s cubic-bezier(.2,.8,.2,1) both;
}

.logo-splash-half {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.logo-splash-left {
  clip-path: inset(0 50% 0 0);
  animation: logo-cut-left .55s cubic-bezier(.76,0,.24,1) 1.25s both;
}

.logo-splash-right {
  clip-path: inset(0 0 0 50%);
  animation: logo-cut-right .55s cubic-bezier(.76,0,.24,1) 1.25s both;
}

.logo-splash-cut {
  position: absolute;
  top: -6%;
  left: 50%;
  width: 2px;
  height: 112%;
  background: linear-gradient(transparent, #fff 16%, #fff 84%, transparent);
  box-shadow: 0 0 14px 3px rgba(255,255,255,.95);
  transform: scaleY(0);
  animation: logo-cut-line .42s ease .96s both;
}

.logo-splash p {
  position: relative;
  z-index: 2;
  margin: 20px 0 0;
  color: #99121c;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  animation: splash-copy .6s ease .3s both;
}

@keyframes splash-arrive {
  from { opacity: 0; transform: scale(.72) rotate(-7deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes splash-pulse {
  from { opacity: 0; transform: scale(.45); }
  60% { opacity: 1; }
  to { opacity: .45; transform: scale(1.18); }
}
@keyframes splash-copy {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes logo-cut-line {
  0% { opacity: 0; transform: scaleY(0); }
  45% { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(1); }
}
@keyframes logo-cut-left { to { opacity: 0; transform: translateX(-86px) rotate(-8deg); } }
@keyframes logo-cut-right { to { opacity: 0; transform: translateX(86px) rotate(8deg); } }
@keyframes curtain-left { to { transform: translateX(-101%); } }
@keyframes curtain-right { to { transform: translateX(101%); } }
@keyframes splash-close { to { visibility: hidden; pointer-events: none; } }

.site-brand > span:last-child { display: flex; align-items: baseline; gap: .3em; line-height: 1.1; white-space: nowrap; }
.site-brand strong,
.site-brand small { color: inherit; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.site-brand small { margin-top: 0; text-transform: none; }
.secure-label { padding: 7px 11px; color: #344054; background: #f2f4f7; border-radius: 20px; font-size: 12px; font-weight: 600; }

.container { width: min(1180px, calc(100% - 40px)); margin: 52px auto 70px; display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 34px; align-items: start; }
.intro-panel { position: sticky; top: 28px; padding: 24px 12px 24px 0; }
.company-logo-preview { width: 92px; height: 92px; margin-bottom: 24px; display: block; object-fit: cover; border: 4px solid #fff; border-radius: 50%; box-shadow: 0 12px 30px rgba(16,24,40,.13); }
.eyebrow { display: block; margin-bottom: 10px; color: var(--brand); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
.intro-panel h1 { margin-bottom: 18px; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.08; letter-spacing: -.04em; }
.intro-panel > p { color: var(--muted); font-size: 16px; line-height: 1.7; }
.feature-list { margin-top: 32px; display: grid; gap: 13px; }
.feature-list span { display: flex; align-items: center; gap: 11px; color: #475467; font-size: 13px; font-weight: 600; }
.feature-list b { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: var(--brand); background: var(--brand-soft); font-size: 11px; }

.form-section { padding: 32px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.section-heading { display: flex; justify-content: space-between; gap: 20px; align-items: start; padding-bottom: 23px; border-bottom: 1px solid var(--line); }
.section-heading h2 { margin-bottom: 0; font-size: 24px; letter-spacing: -.025em; }
.required-note { color: var(--muted); font-size: 11px; }
form { margin-top: 27px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field-group { min-width: 0; }
.logo-upload-field { grid-column: 1 / -1; }
.logo-upload-control { padding: 14px; display: flex; align-items: center; gap: 16px; border: 1px dashed #d0d5dd; border-radius: 12px; background: #f9fafb; }
.logo-upload-control img { width: 72px; height: 72px; flex: 0 0 auto; border: 3px solid #fff; border-radius: 16px; object-fit: contain; background: #fff; box-shadow: 0 5px 15px rgba(16,24,40,.1); }
.logo-upload-control > div { min-width: 0; flex: 1; }
.logo-upload-control input[type="file"] { height: auto; padding: 9px; background: #fff; }
.logo-upload-control small { margin-top: 6px; display: block; color: var(--muted); font-size: 11px; }
label { display: block; margin-bottom: 8px; color: #344054; font-size: 13px; font-weight: 650; }
input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #d0d5dd;
  border-radius: 9px;
  outline: none;
  color: var(--navy);
  background: #fff;
  font: inherit;
  font-size: 14px;
  transition: border-color .2s, box-shadow .2s;
}
textarea {
  width: 100%;
  min-height: 90px;
  padding: 12px 14px;
  resize: vertical;
  border: 1px solid #d0d5dd;
  border-radius: 9px;
  outline: none;
  color: var(--navy);
  background: #fff;
  font: inherit;
  font-size: 14px;
  transition: border-color .2s, box-shadow .2s;
}
textarea::placeholder { color: #98a2b3; }
textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(193,18,31,.1); }
input::placeholder { color: #98a2b3; }
input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(193,18,31,.1); }
.divider { height: 1px; margin: 29px 0 27px; background: var(--line); position: relative; }
.divider span { position: absolute; top: 50%; left: 0; transform: translateY(-50%); padding-right: 12px; color: var(--muted); background: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.field-help { margin: -12px 0 15px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.resource-grid { display: grid; gap: 11px; }
.resource-row { display: grid; grid-template-columns: minmax(150px, .7fr) 1.3fr; gap: 10px; }
.document-picker { min-height: 52px; padding: 8px 13px; display: flex; align-items: center; gap: 10px; border: 1px solid #d0d5dd; border-radius: 10px; cursor: pointer; background: #fff; }
.document-picker:hover { border-color: var(--brand); }
.document-picker input { width: 1px; height: 1px; position: absolute; opacity: 0; pointer-events: none; }
.document-picker span { flex: 0 0 auto; padding: 7px 10px; border-radius: 7px; color: var(--brand); background: var(--brand-soft); font-size: 10px; font-weight: 750; }
.document-picker small { min-width: 0; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.document-picker.is-uploading { cursor: wait; opacity: .75; }
.document-picker.is-complete { border-color: #9ccbab; }

.form-footer { margin-top: 28px; padding-top: 23px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.hint { margin: 0; color: var(--muted); font-size: 11px; }
.button-row { display: flex; gap: 9px; }
.button {
  min-height: 42px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #d0d5dd;
  border-radius: 9px;
  cursor: pointer;
  text-decoration: none;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.button:hover { transform: translateY(-1px); }
.button.primary { border-color: var(--brand); color: #fff; background: var(--brand); box-shadow: 0 6px 14px rgba(193,18,31,.17); }
.button.primary:hover { background: var(--brand-dark); }
.button.secondary { color: #344054; background: #fff; }
.button.ghost { color: var(--muted); background: #f9fafb; }
.empty-card { padding: 50px; text-align: center; }
.empty-card p { color: var(--muted); }

/* Authentication */
.auth-page { background: #fff; }
.auth-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(390px, .9fr) minmax(500px, 1.1fr); }
.auth-brand-panel { min-height: 100vh; padding: 48px clamp(38px, 6vw, 90px); position: relative; overflow: hidden; display: flex; flex-direction: column; color: #fff; background: linear-gradient(145deg, #7f0b14 0%, #bd101d 54%, #df303b 100%); }
.auth-brand-panel::before, .auth-brand-panel::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; }
.auth-brand-panel::before { width: 520px; height: 520px; right: -280px; top: -180px; }
.auth-brand-panel::after { width: 360px; height: 360px; left: -210px; bottom: -150px; }
.auth-brand { color: #fff; position: relative; z-index: 1; }
.auth-brand img { width: 52px; height: 52px; object-fit: cover; border: 3px solid rgba(255,255,255,.9); border-radius: 50%; background: #fff; }
.auth-brand strong,
.auth-brand small { color: #fff; font-size: 19px; }
.auth-brand-copy { max-width: 570px; margin: auto 0; position: relative; z-index: 1; }
.auth-brand-copy .eyebrow { color: #ffd5d8; }
.auth-brand-copy h1 { margin-bottom: 23px; color: #fff; font-size: clamp(40px, 4.5vw, 66px); line-height: 1.05; letter-spacing: -.05em; }
.auth-brand-copy p { max-width: 530px; color: rgba(255,255,255,.78); font-size: 16px; line-height: 1.75; }
.auth-quote { max-width: 460px; margin: 0; position: relative; z-index: 1; color: rgba(255,255,255,.7); font-size: 12px; }
.auth-benefits { position: relative; z-index: 1; display: grid; gap: 11px; }
.auth-benefits span { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.85); font-size: 12px; font-weight: 600; }
.auth-benefits b { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: #a10d18; background: #fff; }
.auth-form-panel { padding: 50px 30px; display: grid; place-items: center; background: #fff; }
.auth-form-wrap { width: min(100%, 430px); }
.auth-form-wrap h2 { margin-bottom: 9px; font-size: 34px; letter-spacing: -.04em; }
.auth-intro { margin-bottom: 31px; color: var(--muted); font-size: 14px; }
.auth-form { display: grid; gap: 19px; }
.auth-form .field-group { display: grid; }
.auth-form input:not([type="checkbox"]) { height: 50px; }
@media (prefers-reduced-motion: reduce) {
  .logo-splash-glow,
  .logo-splash-mark,
  .logo-splash-half,
  .logo-splash-cut,
  .logo-splash p,
  .logo-splash::before,
  .logo-splash::after { animation: none; }
  .logo-splash { animation-duration: .01s; animation-delay: .35s; }
}
.label-row { display: flex; align-items: center; justify-content: space-between; }
.password-field { position: relative; }
.password-field input { padding-right: 62px; }
.password-toggle { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); padding: 7px; border: 0; color: var(--brand); background: transparent; cursor: pointer; font-size: 11px; font-weight: 750; }
.check-row { margin: -2px 0 0; display: flex; align-items: flex-start; gap: 9px; color: #475467; cursor: pointer; font-size: 12px; line-height: 1.45; }
.check-row input { width: 16px; height: 16px; flex: 0 0 auto; accent-color: var(--brand); }
.auth-submit { width: 100%; min-height: 50px; font-size: 13px; }
.auth-submit:disabled { cursor: wait; opacity: .82; }
.auth-submit.loading::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: button-spinner .7s linear infinite;
}
@keyframes button-spinner { to { transform: rotate(360deg); } }
.auth-switch { margin: 25px 0 0; text-align: center; color: var(--muted); font-size: 13px; }
.auth-switch a { color: var(--brand); font-weight: 750; text-decoration: none; }
.auth-message { min-height: 18px; margin: -5px 0; color: #b42318; font-size: 12px; }
.auth-message.success { color: #067647; }
.auth-mobile-logo { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.logout-button { padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; color: #475467; background: #fff; cursor: pointer; font: inherit; font-size: 11px; font-weight: 700; }
.directory-link { color: var(--brand); font-size: 12px; font-weight: 750; text-decoration: none; }
.directory-container { width: min(1120px, calc(100% - 40px)); margin: 54px auto 80px; }
.directory-heading { max-width: 680px; }
.directory-heading h1 { margin-bottom: 10px; font-size: clamp(34px, 5vw, 54px); letter-spacing: -.045em; }
.directory-heading p { color: var(--muted); line-height: 1.7; }
.directory-status { margin: 32px 0 18px; color: var(--muted); font-size: 13px; font-weight: 650; }
.directory-status.error { color: var(--brand); }
.directory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.directory-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.directory-logo { width: 100%; height: 180px; display: block; object-fit: contain; padding: 24px; background: linear-gradient(145deg, #fff4f4, #f8fafc); }
.directory-card-content { padding: 22px; }
.directory-company-label { color: var(--brand); font-size: 9px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.directory-card h2 { margin: 7px 0 3px; overflow-wrap: anywhere; font-size: 21px; }
.directory-card h3 { color: var(--muted); font-size: 12px; font-weight: 650; }
.directory-card p { min-height: 63px; margin: 14px 0 20px; color: #475467; font-size: 12px; line-height: 1.7; }
.directory-card .button { width: 100%; }
@media (max-width: 900px) { .directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .directory-container { width: min(100% - 24px, 1120px); margin-top: 32px; }
  .directory-grid { grid-template-columns: 1fr; }
  .directory-logo { height: 160px; }
}

@media (max-width: 820px) {
  .container { grid-template-columns: 1fr; margin-top: 28px; }
  .intro-panel { position: static; padding: 0; }
  .feature-list { display: none; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-brand-panel { display: none; }
  .auth-form-panel { min-height: 100vh; padding: 38px 24px; }
  .auth-mobile-logo { margin-bottom: 45px; display: flex; align-items: center; gap: 10px; }
  .auth-mobile-logo img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
}

@media (max-width: 620px) {
  .site-header { height: 66px; padding: 0 18px; }
  .secure-label { display: none; }
  .container { width: min(100% - 24px, 1180px); }
  .form-section { padding: 22px 18px; border-radius: 16px; }
  .form-grid { grid-template-columns: 1fr; gap: 16px; }
  .section-heading, .form-footer { align-items: stretch; flex-direction: column; }
  .form-footer { display: flex; }
  .button-row { display: grid; grid-template-columns: 1fr 1fr; }
  .button.primary { grid-column: 1 / -1; }
  #showCardButton { grid-column: 1 / -1; }
  .resource-row { grid-template-columns: 1fr; }
}

/* Public landing page */
.landing-page { overflow-x: hidden; background: #fff; }
.landing-header { position: relative; z-index: 10; }
.landing-nav { display: flex; align-items: center; gap: 24px; }
.landing-nav > a:not(.button) { color: #475467; font-size: 12px; font-weight: 700; text-decoration: none; }
.landing-nav .button { min-height: 38px; }
.landing-hero { min-height: 680px; padding: 80px max(24px, calc((100vw - 1180px) / 2)); display: grid; grid-template-columns: 1.03fr .97fr; align-items: center; gap: 70px; background: radial-gradient(circle at 82% 18%, rgba(193,18,31,.13), transparent 27%), linear-gradient(135deg, #fff 55%, #fff6f6); }
.landing-hero-copy { position: relative; z-index: 2; }
.landing-kicker { margin-bottom: 18px; display: inline-block; color: var(--brand); font-size: 11px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.landing-hero h1 { max-width: 680px; margin-bottom: 22px; font-size: clamp(48px, 6vw, 76px); line-height: 1.02; letter-spacing: -.055em; }
.landing-hero-copy > p { max-width: 620px; color: #475467; font-size: 17px; line-height: 1.75; }
.landing-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.landing-actions .button { min-height: 50px; padding-inline: 22px; }
.landing-trust { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 18px; color: #667085; font-size: 11px; font-weight: 650; }
.landing-trust span { display: flex; align-items: center; gap: 7px; }
.landing-trust b { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; color: var(--brand); background: var(--brand-soft); }
.landing-visual { min-height: 500px; position: relative; display: grid; place-items: center; }
.landing-orbit { position: absolute; border: 1px solid rgba(193,18,31,.12); border-radius: 50%; }
.landing-orbit-one { width: 470px; height: 470px; }

/* Compact digital card layout */
.compact-card-page { min-height: 100vh; padding: 18px 12px 48px; background: #eef1f5; }
.digital-card-shell { width: min(100%, 430px); margin: 0 auto; overflow: hidden; border-radius: 20px; background: #fff; box-shadow: 0 18px 50px rgba(16,24,40,.13); }
.digital-card-header { height: 52px; padding: 8px 14px; display: flex; align-items: center; justify-content: space-between; }
.digital-card-header img { width: 34px; height: 34px; display: block; object-fit: contain; }
.card-menu-button { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: #fff; cursor: pointer; letter-spacing: 1px; }
.compact-card-page .card-preview { width: 100%; display: block; }
.compact-profile-card { padding: 0 14px 10px; }
.compact-cover { height: 126px; position: relative; margin-bottom: 68px; border-radius: 17px; background: linear-gradient(130deg, var(--brand-dark), var(--brand) 58%, #df303b); }
.cover-pattern { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; background: radial-gradient(circle at 18% 35%, rgba(255,255,255,.22) 0 3px, transparent 4px), radial-gradient(circle at 78% 24%, rgba(255,255,255,.16) 0 4px, transparent 5px), linear-gradient(110deg, transparent 20%, rgba(255,255,255,.1) 20% 22%, transparent 22% 67%, rgba(255,255,255,.1) 67% 69%, transparent 69%); }
.compact-avatar { width: 120px; height: 120px; position: absolute; left: 50%; bottom: -60px; overflow: hidden; transform: translateX(-50%); border: 5px solid #fff; border-radius: 50%; background: #fff; box-shadow: 0 7px 18px rgba(16,24,40,.18); }
.compact-avatar img { width: 100%; height: 100%; object-fit: cover; }
.compact-identity { display: flex; flex-direction: column; align-items: center; text-align: center; }
.compact-identity h1 { margin: 0 0 3px; font-size: 25px; line-height: 1.15; letter-spacing: -.035em; }
.compact-role { margin: 0 0 3px; color: var(--brand); font-size: 11px; font-weight: 750; }
.compact-identity strong { font-size: 12px; }
.compact-location { margin-top: 7px; display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 10px; }
.compact-location svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.quick-contact { margin: 17px 0 10px; display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; }
.quick-contact a { min-width: 0; padding: 8px 3px 7px; display: flex; flex-direction: column; align-items: center; gap: 5px; border: 1px solid var(--line); border-radius: 10px; color: var(--navy); text-decoration: none; font-size: 8px; font-weight: 750; }
.quick-icon { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 7px; color: var(--brand); background: var(--brand-soft); font-size: 9px; }
.quick-icon svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.quick-contact a:nth-child(2) .quick-icon { color: #128c4a; background: #eaf8ef; }
.quick-contact a:nth-child(2) .quick-icon svg { fill: currentColor; stroke: none; }
.primary-card-actions,.secondary-card-actions { display: grid; gap: 7px; }
.primary-card-actions { grid-template-columns: 1fr 1fr; margin-top: 8px; }
.secondary-card-actions { grid-template-columns: 1fr 1fr; margin-top: 7px; }
.primary-card-actions > :only-child,.secondary-card-actions > :only-child { grid-column: 1 / -1; }
.primary-card-actions a,.primary-card-actions button,.secondary-card-actions button { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 7px; border-radius: 8px; cursor: pointer; text-decoration: none; font: inherit; font-size: 10px; font-weight: 750; }
.primary-card-actions svg,.secondary-card-actions svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.primary-card-actions a,.primary-card-actions button { border: 1px solid var(--brand); color: #fff; background: var(--brand); }
.secondary-card-actions button { border: 1px solid var(--navy); color: var(--navy); background: #fff; }
.compact-section { margin-top: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 3px 10px rgba(16,24,40,.035); }
.compact-section h2 { margin: 0 0 11px; font-size: 10px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.compact-section p { margin: 0; color: #475467; font-size: 11px; line-height: 1.75; white-space: pre-line; }
.service-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.service-pills span { max-width: 100%; padding: 7px 9px; overflow: hidden; border: 1px solid #bfc5ce; border-radius: 7px; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; font-weight: 700; }
.connect-section { padding: 0; border: 0; box-shadow: none; }
.social-strip { padding: 2px 0; display: grid; grid-template-columns: repeat(4,40px); align-items: center; justify-content: center; gap: 22px; background: transparent; }
.social-strip a,.social-strip > span { width: 40px; height: 40px; display: grid; place-items: center; border: 2px solid currentColor; border-radius: 50%; color: var(--brand); background: #fff; text-decoration: none; font-size: 10px; font-weight: 850; animation: social-icon-arrive .55s cubic-bezier(.2,.8,.2,1) backwards; transition: transform .22s ease,box-shadow .22s ease,background-color .22s ease; }
.social-strip > :nth-child(2) { animation-delay: .1s; }
.social-strip > :nth-child(3) { animation-delay: .2s; }
.social-strip > :nth-child(4) { animation-delay: .3s; }
.social-strip a:hover,.social-strip a:focus-visible { transform: translateY(-5px) scale(1.1); background: #f8fafc; box-shadow: 0 8px 18px rgba(16,24,40,.18); }
.social-strip a:active { transform: translateY(-1px) scale(.96); }
@keyframes social-icon-arrive { from { opacity: 0; transform: translateY(14px) scale(.65) rotate(-10deg); } to { opacity: 1; transform: translateY(0) scale(1) rotate(0); } }
.social-strip svg { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.social-strip .instagram svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.social-strip .instagram .icon-fill { fill: currentColor; stroke: none; }
.social-strip .youtube .icon-cutout { fill: #fff; }
.social-strip .facebook,.social-strip .linkedin { color: #1769aa; background: #fff; }
.social-strip .social-unavailable { opacity: .45; cursor: not-allowed; }
.compact-resources { display: grid; gap: 8px; }
.compact-resources a { min-width: 0; padding: 9px; display: grid; grid-template-columns: 30px minmax(0,1fr) 16px; align-items: center; gap: 8px; border: 1px solid #f0d9dc; border-radius: 9px; color: var(--navy); background: #fffafa; text-decoration: none; }
.document-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 7px; color: var(--brand); background: var(--brand-soft); }
.document-icon svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.compact-resources a > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.compact-resources strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
.compact-resources small { color: var(--muted); font-size: 9px; }
.compact-resources b { color: var(--brand); }
.card-qr-panel { margin: 10px 14px 0; padding: 18px; text-align: center; border: 1px solid var(--line); border-radius: 14px; }
.card-qr-panel img { width: 150px; height: 150px; display: block; margin: 0 auto 8px; }
.card-qr-panel strong { font-size: 10px; }
.digital-card-footer { padding: 22px 14px 28px; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); text-align: center; font-size: 9px; }
.powered-by-logo { width: 82px; height: auto; display: block; object-fit: contain; }
.site-powered-footer { padding: 22px 20px; display: flex; justify-content: center; border-top: 1px solid var(--line); background: #fff; }
.powered-by-lockup { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 9px; white-space: nowrap; }
.powered-by-lockup img { width: 82px; height: auto; display: block; object-fit: contain; }
@media (max-width: 460px) {
  .compact-card-page { padding: 0; background: #fff; }
  .digital-card-shell { border-radius: 0; box-shadow: none; }
}
.landing-orbit-two { width: 350px; height: 350px; border-style: dashed; animation: motion-spin 32s linear infinite; }
.landing-demo-card { width: min(100%, 410px); position: relative; z-index: 2; overflow: hidden; border: 1px solid rgba(16,24,40,.08); border-radius: 25px; background: #fff; box-shadow: 0 36px 80px rgba(92,12,20,.2); transform: rotate(2deg); }
.landing-demo-banner { height: 145px; padding: 24px; display: flex; justify-content: space-between; align-items: flex-start; color: #fff; background: linear-gradient(125deg, #8c1019, #d82532); }
.landing-demo-banner span { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.landing-demo-banner img { width: 84px; height: 84px; margin-bottom: -65px; align-self: end; border: 5px solid #fff; border-radius: 50%; object-fit: cover; background: #fff; box-shadow: 0 9px 25px rgba(16,24,40,.2); }
.landing-demo-content { padding: 34px 28px 28px; }
.landing-demo-content h2 { margin-bottom: 12px; font-size: 27px; letter-spacing: -.035em; }
.landing-demo-content p { color: #667085; font-size: 12px; line-height: 1.7; }
.landing-demo-links { margin-top: 22px; display: flex; gap: 8px; }
.landing-demo-links span { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--brand); background: #fffafa; font-size: 9px; font-weight: 800; }
.landing-section { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 90px 0; }
.landing-section-heading { max-width: 720px; }
.landing-section-heading h2 { font-size: clamp(34px, 4vw, 50px); line-height: 1.12; letter-spacing: -.045em; }
.landing-benefits { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.landing-benefits article { padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 12px 30px rgba(16,24,40,.06); }
.landing-benefits article > span { color: var(--brand); font-size: 11px; font-weight: 850; }
.landing-benefits h3 { margin: 34px 0 10px; font-size: 20px; }
.landing-benefits p { color: #667085; font-size: 12px; line-height: 1.7; }
.landing-cta { width: min(1180px, calc(100% - 48px)); margin: 0 auto 80px; padding: 46px; display: flex; justify-content: space-between; align-items: center; gap: 30px; border-radius: 24px; color: #fff; background: linear-gradient(120deg, #7d0d15, #c1121f); box-shadow: 0 25px 60px rgba(125,13,21,.24); }
.landing-cta .eyebrow { color: #fecdd3; }
.landing-cta h2 { max-width: 650px; margin: 0; font-size: clamp(28px, 4vw, 42px); }
.landing-cta .button { border-color: #fff; color: var(--brand); background: #fff; }
.landing-footer { padding: 30px max(24px, calc((100vw - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); }
.landing-footer p { color: var(--muted); font-size: 11px; }
@media (max-width: 900px) {
  .landing-hero { padding-top: 60px; grid-template-columns: 1fr; gap: 30px; }
  .landing-hero-copy { text-align: center; }
  .landing-hero-copy > p { margin-inline: auto; }
  .landing-actions, .landing-trust { justify-content: center; }
  .landing-visual { min-height: 480px; }
  .landing-benefits { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .landing-header { height: auto; min-height: 66px; padding-block: 12px; align-items: flex-start; }
  .landing-nav { gap: 10px; }
  .landing-nav > a:not(.button) { display: none; }
  .landing-nav .button { min-height: 36px; padding-inline: 10px; font-size: 10px; }
  .landing-hero { min-height: 0; padding: 55px 20px 65px; }
  .landing-hero h1 { font-size: clamp(36px, 12vw, 45px); }
  .landing-hero-copy > p { font-size: 14px; }
  .landing-actions { display: grid; }
  .landing-visual { min-height: 390px; }
  .landing-orbit-one { width: 360px; height: 360px; }
  .landing-orbit-two { width: 280px; height: 280px; }
  .landing-demo-card { width: min(94%, 380px); }
  .landing-section { width: min(100% - 32px, 1180px); padding: 65px 0; }
  .landing-cta { width: min(100% - 32px, 1180px); margin-bottom: 50px; padding: 30px 24px; align-items: stretch; flex-direction: column; }
  .landing-footer { align-items: flex-start; flex-direction: column; }
}
