* { box-sizing: border-box; }
:root { color-scheme: light; scrollbar-gutter: stable; font-family: var(--font-body); color: #0d2638; background: #f9f2dd; }
body { margin: 0; padding: 28px max(16px, env(safe-area-inset-right)) 28px max(16px, env(safe-area-inset-left)); background: radial-gradient(ellipse at top, #fffdf1, transparent 70%); }
a { color: inherit; text-decoration: none; }
p { line-height: 1.65; margin: 0; word-break: keep-all; overflow-wrap: anywhere; }
h1, h2 { margin: 0; word-break: keep-all; overflow-wrap: anywhere; }
h1, h2, .brand strong { font-family: var(--font-display); font-synthesis: none; font-weight: 700; letter-spacing: 0; }
h2 { font-size: 24px; }
:focus-visible { outline: 3px solid #216d68; outline-offset: 5px; }
.icon { width: 32px; height: 32px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 3; stroke-linejoin: bevel; stroke-linecap: square; }
.icon-definitions { position: absolute; overflow: hidden; pointer-events: none; }
.site-frame { max-width: 1240px; margin: 0 auto; border: 5px solid #0d2638; border-radius: 13px; background: #f9edca; box-shadow: 0 5px 0 #0d2638, 0 10px 0 #b4ad95, inset 0 0 0 3px #66838b; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 3px; padding: 20px 24px; border-bottom: 4px solid #0d2638; background: #fff7e1; border-radius: 5px 5px 0 0; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-icon { width: 57px; height: 57px; }
.brand strong { display: block; font-size: 24px; line-height: 1.2; }
.brand small { display: block; margin-top: 6px; font-size: 12px; font-weight: 650; }
.desktop-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.desktop-nav a, .mobile-menu nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 13px; font-family: var(--font-display); font-size: 18px; font-weight: 400; font-synthesis: none; }
.desktop-nav a:hover, .mobile-menu nav a:hover { color: #1e625c; background: #e4edc9; }
.raised-button { display: inline-flex; justify-content: center; align-items: center; gap: 12px; border: 3px solid #0d2638; border-radius: 5px; background: #f9c94e; box-shadow: inset 2px 2px 0 #fff1b1, inset -3px -4px 0 #d19428, 0 5px 0 #0d2638; font-family: var(--font-display); font-weight: 400; font-synthesis: none; line-height: 1.15; letter-spacing: 0; }
.raised-button:hover { background: #ffda70; }
.raised-button:active { transform: translateY(3px); box-shadow: inset 2px 2px 0 #fff1b1, inset -2px -2px 0 #d19428, 0 2px 0 #0d2638; }
.login-link { min-height: 48px; padding: 7px 14px; font-size: 19px; white-space: nowrap; }
.login-link .icon { width: 25px; height: 25px; }
.mobile-menu { display: none; }
.portal-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; padding: 20px; }
.card { position: relative; min-width: 0; border: 3px solid #0d2638; border-radius: 3px; background: #fff6dc; box-shadow: 0 4px 0 #0d2638, inset 0 0 0 2px #d5ad61; overflow: hidden; }
.card::before, .card::after { content: ""; position: absolute; z-index: 1; top: 6px; width: 5px; height: 5px; border: 1px solid #8c642d; background: #efb83b; box-shadow: 1px 1px 0 #0d2638; pointer-events: none; }
.card::before { left: 6px; }
.card::after { right: 6px; }
.hero-card { grid-row: span 2; display: flex; flex-direction: column; }
.hero-copy { padding: 22px 26px 20px; }
.eyebrow { margin-bottom: 12px; color: #5f572e; font-size: 13px; font-weight: 800; letter-spacing: .1em; }
h1 { margin-bottom: 16px; font-size: 48px; line-height: 1.2; }
.hero-copy > p:last-child { font-size: clamp(14px, 1.45vw, 17px); font-weight: 650; }
.factory-preview { position: relative; flex: none; margin: 0; height: clamp(280px, 28vw, 390px); border-top: 2px solid #d5ad61; background: #dfe6c9; }
.factory-preview img { display: block; width: 100%; height: 100%; aspect-ratio: 1200 / 900; object-fit: cover; image-rendering: pixelated; }
.factory-preview figcaption { position: absolute; right: 10px; bottom: 10px; padding: 4px 8px; border: 1px solid #0d2638; background: #fff6dce8; font-size: 11px; font-weight: 700; }
.launch-card { display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 24px; background: #f5d275; }
.launch-card h2 { display: flex; align-items: center; gap: 12px; font-size: 20px; }
.launch-card h2 .icon { width: 42px; height: 42px; }
.start-button { min-height: 92px; padding: 16px; font-size: clamp(22px, 2.2vw, 30px); }
.start-button .icon { width: 40px; height: 40px; }
.guide-button { min-height: 65px; padding: 12px; background: #abebca; box-shadow: inset 2px 2px 0 #e5ffdb, inset -3px -4px 0 #60ac9c, 0 5px 0 #0d2638; font-size: 24px; }
.guide-button:hover { background: #c2f5dc; }
.account-note { margin-top: 2px; color: #514824; text-align: center; font-size: 12px; }
.catalog-card { display: flex; flex-direction: column; justify-content: center; padding: 24px; }
.card-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.card-heading h2 { display: flex; align-items: center; gap: 10px; }
.more-link { display: inline-flex; align-items: center; min-height: 44px; color: #1c526c; font-size: 14px; font-weight: 800; white-space: nowrap; }
.more-link .icon { width: 21px; height: 21px; }
.more-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.catalog-card > p { margin: 8px 0 18px; font-size: 13px; }
.category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.category-grid a { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 15px 3px; border: 2px solid #a98748; border-radius: 5px; background: #fffaf0; font-size: 12px; font-weight: 800; text-align: center; }
.category-grid a:hover { border-color: #0d2638; background: #fff0bd; }
.category-grid .icon { width: 57px; height: 57px; }
.shortcut-card { display: flex; align-items: center; gap: 17px; min-height: 145px; padding: 22px; }
.shortcut-card:hover { background: #fff1c4; }
.shortcut-card h2 { margin-bottom: 8px; font-size: clamp(20px, 2vw, 25px); }
.shortcut-card p { font-size: 13px; }
.shortcut-icon { width: 54px; height: 54px; }
.arrow-icon { width: 24px; height: 24px; margin-left: auto; }
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; padding: 3px 24px 20px; font-size: 12px; color: #4d563f; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.site-footer p { align-self: center; }
.skip-link { position: absolute; left: 24px; top: -100px; z-index: 2; padding: 12px 18px; border: 3px solid #0d2638; background: #fff6dc; font-weight: 800; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 980px) {
  .site-header { flex-wrap: wrap; }
  .desktop-nav { order: 3; flex-basis: 100%; justify-content: center; }
  .portal-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; padding: 16px; }
  .launch-card, .catalog-card { padding: 18px; }
  .launch-card h2 { gap: 8px; font-size: 17px; }
  .shortcut-card { gap: 10px; padding: 18px; }
  .shortcut-icon { width: 40px; height: 40px; }
}
@media (max-width: 700px) {
  body { padding: max(10px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); }
  .site-frame { border-width: 4px; border-radius: 9px; }
  .site-header { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 8px 10px; border-bottom-width: 3px; }
  .brand { min-width: 0; min-height: 48px; gap: 8px; }
  .brand-icon { flex: 0 0 32px; width: 32px; height: 32px; }
  .brand strong { font-size: clamp(16px, 4.6vw, 18px); white-space: nowrap; }
  .brand small { display: none; }
  .desktop-nav { display: none; }
  .login-link { display: flex; grid-column: 1 / -1; min-height: 48px; font-size: 16px; }
  .mobile-menu { display: block; grid-column: 2; grid-row: 1; }
  .mobile-menu summary { display: flex; align-items: center; justify-content: center; min-width: 56px; min-height: 48px; border: 2px solid #0d2638; border-radius: 3px; background: #fff6dc; font-family: var(--font-display); cursor: pointer; list-style: none; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu[open] summary { background: #f5d275; border-color: #0d2638; }
  .mobile-menu nav { position: absolute; z-index: 5; top: calc(100% + 3px); left: -3px; right: -3px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 8px; border: 3px solid #0d2638; background: #fff6dc; box-shadow: 0 4px 0 #0d2638; }
  .mobile-menu nav a { min-width: 48px; min-height: 48px; padding: 8px 10px; font-size: 16px; }
  .mobile-menu nav a:last-child { grid-column: 1 / -1; }
  .portal-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 12px; }
  .hero-card { grid-row: auto; }
  .hero-copy { padding: 24px 20px 22px; }
  h1 { font-size: 36px; }
  .eyebrow { font-size: 11px; }
  .hero-copy > p:last-child { font-size: 14px; }
  .desktop-break { display: none; }
  .factory-preview { height: auto; }
  .factory-preview img { height: auto; }
  .launch-card { padding: 20px 16px; gap: 18px; }
  .launch-card h2 { justify-content: center; font-size: 18px; }
  .start-button { min-height: 78px; gap: 8px; font-size: clamp(17px, 5.1vw, 24px); white-space: nowrap; }
  .start-button .icon { width: 24px; height: 24px; }
  .guide-button { font-size: 24px; }
  .catalog-card { padding: 18px 16px; }
  .category-grid { gap: 6px; }
  .category-grid a { font-size: 11px; }
  .category-grid .icon { width: 51px; height: 51px; }
  .shortcut-card { min-height: 140px; padding: 18px 14px; gap: 13px; }
  .shortcut-card h2 { font-size: 21px; }
  .shortcut-card p { font-size: 12px; }
  .shortcut-icon { width: 42px; height: 42px; }
  .arrow-icon { width: 18px; height: 18px; }
  .site-footer { display: block; padding: 4px 16px 14px; font-size: 11px; }
}
