@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=IBM+Plex+Mono:wght@400;500&family=Inter:wght@300;400;500;600&display=swap');

:root {
  /* Colors */
  --c-basalt: #15130F;
  --c-excavation: #211C16;
  --c-umber: #30271D;
  --c-stone: #474035;
  --c-saffron: #E2A83B;
  --c-nile: #3E827B;
  --c-terracotta: #A85438;
  --c-lapis: #3F6685;
  --c-papyrus: #D8C79E;
  --c-limestone: #C8B994;
  --c-ivory: #F3E9D2;
  --c-linen: #C9BDA5;
  --c-grey: #918A7D;
  --c-border: #51483A;
  
  /* Gradients */
  --g-primary: linear-gradient(135deg, #E2A83B, #A85438);
  --g-secondary: linear-gradient(135deg, #3E827B, #3F6685);

  /* Typography */
  --font-display: 'DM Serif Display', serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* Layout */
  --max-w: 1440px;
  --w-content: min(100% - 4rem, var(--max-w));
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 2. Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; background-color: var(--c-basalt); }
body { font-family: var(--font-body); color: var(--c-linen); background-color: var(--c-basalt); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, picture, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { background: none; border: none; font: inherit; cursor: pointer; color: inherit; }
ul, ol { list-style: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* 3. Typography Global */
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 400; color: var(--c-ivory); line-height: 1.1; }
.meta-text { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--c-grey); }
.text-link { color: var(--c-saffron); font-family: var(--font-body); font-size: 0.875rem; font-weight: 500; display: inline-flex; align-items: center; gap: 0.5rem; transition: var(--transition); border-bottom: 1px solid transparent; }
.text-link:hover { color: var(--c-terracotta); border-bottom-color: var(--c-terracotta); }
.btn-primary { background: var(--c-umber); color: var(--c-ivory); border: 1px solid var(--c-border); padding: 0.75rem 2rem; font-family: var(--font-body); font-weight: 500; font-size: 0.875rem; display: inline-flex; justify-content: center; align-items: center; transition: var(--transition); text-transform: uppercase; letter-spacing: 0.05em; }
.btn-primary:hover { background: var(--c-stone); border-color: var(--c-saffron); color: var(--c-saffron); }

/* 4. Global Layout */
.container { width: var(--w-content); margin: 0 auto; position: relative; }
section { padding: 6rem 0; position: relative; }
.img-wrap { position: relative; overflow: hidden; }
.img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.line-divider { height: 1px; background: var(--c-border); width: 100%; margin: 2rem 0; }

/* 5. Excavation Status Strip & Compliance */
.compliance-bar { background: var(--c-umber); color: var(--c-ivory); font-family: var(--font-mono); font-size: 0.7rem; text-align: center; padding: 0.75rem 1rem; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid var(--c-border); }
.status-strip { background: var(--c-saffron); color: var(--c-basalt); padding: 0.5rem 2rem; display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
.status-strip span { text-align: center; }

/* 6. Field Header */
.field-header { background: var(--c-basalt); border-bottom: 1px solid var(--c-border); position: relative; z-index: 100; }
.header-grid { display: grid; grid-template-columns: 34% 66%; min-height: 5rem; }
.header-left { border-right: 1px solid var(--c-border); padding: 1.5rem 2rem; display: flex; flex-direction: column; justify-content: center; }
.brand-name { font-family: var(--font-display); font-size: 1.5rem; color: var(--c-ivory); letter-spacing: 0.02em; }
.brand-sub { font-family: var(--font-mono); font-size: 0.65rem; color: var(--c-saffron); letter-spacing: 0.1em; margin-bottom: 0.5rem; }
.brand-logo-link { display: inline-block; width: 100%; max-width: 260px; transition: opacity 0.3s ease; }
.brand-logo-link:hover { opacity: 0.8; }
.brand-logo { width: 100%; height: auto; display: block; }
.header-meta { display: flex; gap: 1rem; }
.header-right { display: flex; flex-direction: column; }
.nav-row { display: flex; justify-content: space-between; align-items: center; padding: 1rem 2rem 0 2rem; flex: 1; }
.main-nav ul { display: flex; gap: 2rem; }
.main-nav a { font-family: var(--font-mono); font-size: 0.8rem; color: var(--c-linen); text-transform: uppercase; letter-spacing: 0.05em; transition: var(--transition); position: relative; padding-bottom: 0.5rem; }
.main-nav a:hover, .main-nav a.active { color: var(--c-ivory); }
.main-nav a.active::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: var(--c-terracotta); }
.main-nav a.active::before { content: ''; position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%); width: 4px; height: 4px; background: var(--c-saffron); }
.ruler-line { height: 4px; background-image: repeating-linear-gradient(90deg, var(--c-border) 0, var(--c-border) 1px, transparent 1px, transparent 10px); background-size: 10px 100%; border-bottom: 1px solid var(--c-border); margin: 0 2rem; }
.btn-open-archive { background: var(--c-basalt); color: var(--c-ivory); font-family: var(--font-mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; border: none; border-bottom: 1px solid var(--c-border); padding: 1rem 2rem; display: inline-flex; align-items: center; justify-content: center; transition: var(--transition); height: 100%; border-left: 1px solid var(--c-border); }
.btn-open-archive:hover { background: var(--c-excavation); color: var(--c-saffron); }
.nav-controls { display: flex; align-items: stretch; justify-content: flex-end; }
.mobile-toggle { display: none; padding: 1rem; font-family: var(--font-mono); color: var(--c-saffron); text-transform: uppercase; font-size: 0.8rem; border-left: 1px solid var(--c-border); }

/* 7. Discovery Plate */
.discovery-hero { padding: 4rem 0 6rem 0; }
.discovery-label { margin-bottom: 2rem; display: flex; flex-direction: column; gap: 0.25rem; }
.hero-headline { font-size: 4.5rem; width: 75%; margin-bottom: 1rem; }
.hero-subheadline { font-family: var(--font-body); font-size: 1.5rem; font-weight: 300; color: var(--c-saffron); margin-bottom: 3rem; width: 75%; line-height: 1.4; }
.hero-image-wrap { width: 100%; aspect-ratio: 19 / 7; border: 1px solid var(--c-border); }
.hero-metadata-rail { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--c-border); border-top: none; background: var(--c-basalt); }
.rail-item { padding: 1rem 1.5rem; border-right: 1px solid var(--c-border); display: flex; flex-direction: column; gap: 0.25rem; }
.rail-item:last-child { border-right: none; }
.rail-val { font-family: var(--font-mono); color: var(--c-ivory); font-size: 0.875rem; letter-spacing: 0.05em; }
.hero-intro { display: grid; grid-template-columns: 62% 38%; gap: 4rem; margin-top: 3rem; align-items: start; }
.hero-desc { font-size: 1.125rem; color: var(--c-linen); max-width: 45ch; }
.hero-actions { display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-start; }

/* 8. Chamber Register */
.chamber-register { background: var(--c-excavation); border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); padding: 8rem 0; }
.register-grid { display: grid; grid-template-columns: 28% 72%; gap: 2rem; }
.register-left .large-num { font-family: var(--font-display); font-size: 6rem; color: var(--c-terracotta); line-height: 1; margin-bottom: 1rem; }
.register-left h2 { font-size: 2rem; margin-bottom: 1rem; }
.register-left p { color: var(--c-grey); font-size: 0.875rem; }
.register-rows { border-top: 1px solid var(--c-border); }
.register-row { display: grid; grid-template-columns: 4rem 1fr 2fr; gap: 2rem; padding: 2rem 0; border-bottom: 1px solid var(--c-border); align-items: start; }
.reg-num { font-family: var(--font-mono); color: var(--c-saffron); font-size: 1.25rem; }
.reg-title { font-family: var(--font-display); color: var(--c-ivory); font-size: 1.5rem; }
.reg-desc { color: var(--c-linen); font-size: 0.95rem; }

/* 9. Archive Game Chamber */
.game-chamber { padding: 8rem 0; }
.game-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 3rem; border-bottom: 1px solid var(--c-border); padding-bottom: 2rem; }
.game-header-left h2 { font-size: 3rem; margin-top: 0.5rem; }
.game-header-right { max-width: 400px; text-align: right; color: var(--c-grey); font-size: 0.875rem; }
.excavation-frame { display: flex; border: 1px solid var(--c-border); background: var(--c-excavation); border-radius: 8px; position: relative; }
.excavation-frame::before, .excavation-frame::after { content: ''; position: absolute; width: 10px; height: 10px; border: 2px solid var(--c-saffron); }
.excavation-frame::before { top: -1px; left: -1px; border-right: none; border-bottom: none; border-top-left-radius: 8px; }
.excavation-frame::after { bottom: -1px; right: -1px; border-left: none; border-top: none; border-bottom-right-radius: 8px; }
.depth-rail { width: 120px; border-right: 1px solid var(--c-border); padding: 2rem 0; display: flex; flex-direction: column; align-items: center; justify-content: space-between; }
.rail-block { writing-mode: vertical-rl; transform: rotate(180deg); display: flex; gap: 0.5rem; align-items: center; margin-bottom: 2rem; }
.rail-block:last-child { margin-bottom: 0; }
.status-line { width: 2px; height: 40px; background: var(--c-nile); margin: 1rem 0; }
.game-main { flex: 1; display: flex; flex-direction: column; }
.iframe-wrap { width: 100%; aspect-ratio: 16 / 9; background: #000; position: relative; }
.iframe-wrap iframe { width: 100%; height: 100%; border: none; display: block; }
.control-ledger { display: flex; justify-content: space-between; padding: 1rem 2rem; border-top: 1px solid var(--c-border); background: var(--c-umber); border-bottom-right-radius: 8px; }
.ledger-btn { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; color: var(--c-linen); display: flex; align-items: center; gap: 0.5rem; transition: var(--transition); }
.ledger-btn:hover { color: var(--c-saffron); }

/* 10. Excavation Records */
.record-01 { padding: 6rem 0; }
.rec1-img { width: 76%; aspect-ratio: 16 / 7; border: 1px solid var(--c-border); margin-bottom: 2rem; }
.rec1-content { width: 40%; }
.rec1-content h3 { font-size: 2.5rem; margin: 1rem 0; }
.rec1-content p { color: var(--c-linen); margin-bottom: 1.5rem; }

.record-02 { background: var(--c-papyrus); color: var(--c-basalt); padding: 6rem 0; border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); }
.rec2-grid { display: grid; grid-template-columns: 45% 55%; gap: 4rem; align-items: center; }
.rec2-content h3 { color: var(--c-basalt); font-size: 3.5rem; margin: 1rem 0; }
.rec2-content p { color: var(--c-stone); margin-bottom: 2rem; font-size: 1.125rem; }
.rec2-content .meta-text { color: var(--c-terracotta); }
.rec2-img { aspect-ratio: 3 / 4; border: 1px solid var(--c-stone); }

.record-03 { background: var(--c-basalt); padding: 6rem 0; position: relative; overflow: hidden; }
.rec3-bg-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-family: var(--font-display); font-size: 30vw; color: rgba(255,255,255,0.02); line-height: 1; pointer-events: none; }
.rec3-strip { width: 100%; height: 200px; border: 1px solid var(--c-border); margin-bottom: 4rem; }
.rec3-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; position: relative; z-index: 2; }
.rec3-grid h3 { font-size: 2rem; grid-column: 1 / 2; }
.rec3-grid p { grid-column: 2 / 3; font-size: 1.125rem; }
.rec3-grid .link-wrap { grid-column: 3 / 4; text-align: right; }

/* 11. Solar Manuscript */
.manuscript-section { padding: 8rem 0; border-top: 1px solid var(--c-border); }
.ms-grid { display: grid; grid-template-columns: 40% 60%; gap: 4rem; }
.ms-left h2 { font-size: 3rem; margin-bottom: 1.5rem; }
.ms-left p { font-size: 1.125rem; color: var(--c-linen); }
.ms-entries { display: flex; flex-direction: column; gap: 2rem; }
.ms-entry { border: 1px solid var(--c-border); padding: 2rem; background: var(--c-excavation); }
.ms-entry-head { display: flex; justify-content: space-between; border-bottom: 1px solid var(--c-border); padding-bottom: 1rem; margin-bottom: 1.5rem; }
.ms-entry h4 { font-size: 1.5rem; color: var(--c-saffron); margin-bottom: 0.5rem; }

/* 12. Platform Field Sheet */
.field-sheet { background: var(--c-papyrus); padding: 8rem 0; border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); color: var(--c-basalt); }
.sheet-grid { display: grid; grid-template-columns: 35% 65%; gap: 4rem; }
.sheet-left h2 { font-size: 3.5rem; color: var(--c-basalt); margin-top: 1rem; }
.sheet-left .meta-text { color: var(--c-terracotta); }
.tech-table { width: 100%; border-collapse: collapse; }
.tech-table tr { border-bottom: 1px solid var(--c-stone); }
.tech-table tr:first-child { border-top: 1px solid var(--c-stone); }
.tech-table td { padding: 1.5rem 0; font-size: 1rem; color: var(--c-stone); }
.tech-table td:first-child { font-family: var(--font-mono); font-weight: 500; font-size: 0.875rem; color: var(--c-basalt); width: 40%; text-transform: uppercase; }

/* 13. Correspondence */
.correspondence { background: var(--c-umber); padding: 8rem 0; border-bottom: 1px solid var(--c-border); }
.contact-grid { display: grid; grid-template-columns: 36% 64%; gap: 4rem; }
.contact-left h2 { font-size: 3rem; margin: 1rem 0 2rem 0; }
.support-email { display: inline-block; font-family: var(--font-mono); font-size: 1.125rem; color: var(--c-saffron); margin-bottom: 3rem; padding: 1rem; border: 1px solid var(--c-border); background: var(--c-excavation); }
.faq-refs h4 { font-size: 1rem; font-family: var(--font-mono); text-transform: uppercase; margin-bottom: 1rem; color: var(--c-grey); }
.faq-refs ul { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-refs a { font-size: 0.95rem; color: var(--c-linen); transition: var(--transition); border-bottom: 1px solid transparent; display: inline-block; width: max-content; }
.faq-refs a:hover { color: var(--c-terracotta); border-bottom-color: var(--c-terracotta); }
.contact-form { background: var(--c-excavation); border: 1px solid var(--c-border); padding: 3rem; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-family: var(--font-mono); font-size: 0.75rem; color: var(--c-grey); margin-bottom: 0.5rem; text-transform: uppercase; }
.form-control { width: 100%; background: var(--c-basalt); border: 1px solid var(--c-border); padding: 1rem; color: var(--c-ivory); font-family: var(--font-body); font-size: 1rem; transition: var(--transition); }
.form-control:focus { outline: none; border-color: var(--c-saffron); }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-msg { display: none; padding: 1rem; margin-top: 1rem; border: 1px solid; font-size: 0.875rem; font-family: var(--font-mono); }
.form-msg.success { display: block; border-color: var(--c-nile); color: var(--c-nile); background: rgba(62,130,123,0.1); }
.form-msg.error { display: block; border-color: var(--c-terracotta); color: var(--c-terracotta); background: rgba(168,84,56,0.1); }

/* 14. Desert Archive Footer */
.site-footer { background: var(--c-basalt); padding-top: 6rem; border-top: 1px solid var(--c-border); }
.footer-upper { display: grid; grid-template-columns: 44% 56%; gap: 4rem; margin-bottom: 4rem; }
.footer-brand { font-family: var(--font-display); font-size: 2rem; color: var(--c-ivory); margin-bottom: 0.5rem; }
.footer-sub { font-family: var(--font-mono); font-size: 0.75rem; color: var(--c-saffron); letter-spacing: 0.1em; display: block; margin-bottom: 1.5rem; }
.footer-logo-link { display: inline-block; width: 100%; max-width: 220px; margin-bottom: 1.5rem; transition: opacity 0.3s ease; }
.footer-logo-link:hover { opacity: 0.8; }
.footer-logo { width: 100%; height: auto; display: block; }
.footer-desc { color: var(--c-grey); font-size: 0.95rem; max-width: 40ch; margin-bottom: 1.5rem; }
.footer-email { font-family: var(--font-mono); font-size: 0.875rem; color: var(--c-linen); }
.footer-address { font-family: var(--font-mono); font-size: 0.875rem; color: var(--c-grey); margin-top: 1rem; line-height: 1.5; font-style: normal; }
.footer-nav-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.f-col h4 { font-family: var(--font-mono); font-size: 0.875rem; color: var(--c-grey); text-transform: uppercase; margin-bottom: 1.5rem; }
.f-col ul { display: flex; flex-direction: column; gap: 0.75rem; }
.f-col a { color: var(--c-linen); font-size: 0.95rem; transition: var(--transition); }
.f-col a:hover { color: var(--c-saffron); }
.footer-lower { border-top: 1px solid var(--c-border); padding: 2rem 0; display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 0.75rem; color: var(--c-grey); letter-spacing: 0.05em; text-transform: uppercase; }

/* 15. Cookie Notice */
.cookie-notice { position: fixed; bottom: 2rem; right: 2rem; background: var(--c-papyrus); color: var(--c-basalt); border-left: 4px solid var(--c-terracotta); padding: 1.5rem; width: 340px; z-index: 9999; box-shadow: 0 10px 30px rgba(0,0,0,0.5); display: none; border-radius: 6px; }
.cookie-notice.show { display: block; }
.ck-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; border-bottom: 1px solid var(--c-stone); padding-bottom: 0.5rem; }
.ck-label { font-family: var(--font-mono); font-size: 0.65rem; font-weight: 500; }
.ck-status { width: 8px; height: 8px; background: var(--c-saffron); }
.ck-title { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 0.5rem; color: var(--c-basalt); }
.ck-desc { font-size: 0.875rem; color: var(--c-stone); margin-bottom: 1.5rem; }
.ck-btns { display: flex; gap: 1rem; }
.ck-btn { flex: 1; padding: 0.5rem; font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; font-weight: 500; text-align: center; border: 1px solid var(--c-basalt); transition: var(--transition); }
.ck-btn.accept { background: var(--c-basalt); color: var(--c-papyrus); }
.ck-btn.accept:hover { background: var(--c-stone); }
.ck-btn.reject { background: transparent; color: var(--c-basalt); }
.ck-btn.reject:hover { background: rgba(0,0,0,0.05); }

/* 16. Internal Pages */
.internal-masthead { background: var(--c-excavation); border-bottom: 1px solid var(--c-border); padding: 6rem 0 4rem 0; }
.internal-masthead .meta-text { margin-bottom: 1rem; display: block; }
.internal-masthead h1 { font-size: 4rem; margin-bottom: 1.5rem; }
.masthead-meta { display: flex; gap: 2rem; border-top: 1px solid var(--c-border); padding-top: 1rem; margin-top: 2rem; }
.internal-content { padding: 6rem 0; background: var(--c-basalt); }
.content-wrapper { max-width: 800px; margin: 0 auto; }
.content-wrapper h2 { font-size: 2.5rem; margin: 3rem 0 1.5rem 0; }
.content-wrapper p { margin-bottom: 1.5rem; font-size: 1.125rem; color: var(--c-linen); }
.content-wrapper ul { margin-bottom: 1.5rem; padding-left: 1.5rem; list-style: square; color: var(--c-linen); }
.content-wrapper li { margin-bottom: 0.5rem; }
.papyrus-section { background: var(--c-papyrus); color: var(--c-basalt); padding: 4rem; border: 1px solid var(--c-stone); margin-bottom: 3rem; }
.papyrus-section h2, .papyrus-section h3 { color: var(--c-basalt); }
.papyrus-section p, .papyrus-section li { color: var(--c-stone); }
.btn-return { display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--c-border); color: var(--c-ivory); font-family: var(--font-mono); font-size: 0.875rem; text-transform: uppercase; padding: 1rem 2rem; margin-top: 4rem; transition: var(--transition); }
.btn-return:hover { background: var(--c-excavation); color: var(--c-saffron); border-color: var(--c-saffron); }

/* 17. Animations */
@media (prefers-reduced-motion: no-preference) {
  .fade-in { animation: fadeIn 0.8s ease forwards; opacity: 0; }
  @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
}

/* 18. Responsive Rules */
@media (max-width: 1024px) {
  .header-grid { grid-template-columns: 40% 60%; }
  .hero-headline { width: 100%; font-size: 3.5rem; }
  .hero-subheadline { width: 100%; font-size: 1.25rem; }
  .hero-intro { grid-template-columns: 1fr; gap: 2rem; }
  .register-grid { grid-template-columns: 1fr; }
  .register-left { border-bottom: 1px solid var(--c-border); padding-bottom: 2rem; }
  .game-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .game-header-right { text-align: left; }
  .excavation-frame { flex-direction: column; }
  .depth-rail { width: 100%; border-right: none; border-bottom: 1px solid var(--c-border); flex-direction: row; padding: 1rem 2rem; }
  .rail-block { writing-mode: horizontal-tb; transform: none; margin-bottom: 0; }
  .status-line { width: 40px; height: 2px; margin: 0 1rem; }
  .rec1-img { width: 100%; }
  .rec1-content { width: 100%; }
  .rec2-grid { grid-template-columns: 1fr; }
  .rec3-grid { grid-template-columns: 1fr; }
  .ms-grid { grid-template-columns: 1fr; }
  .sheet-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-upper { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  html { font-size: 14px; }
  .status-strip { flex-direction: column; gap: 0.5rem; text-align: center; }
  .header-grid { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--c-border); }
  .header-left { border-right: none; padding: 1rem; }
  .nav-row { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: var(--c-excavation); flex-direction: column; padding: 0; border-bottom: 1px solid var(--c-border); }
  .nav-row.open { display: flex; }
  .main-nav ul { flex-direction: column; gap: 0; width: 100%; }
  .main-nav a { display: block; padding: 1.5rem; border-bottom: 1px solid var(--c-border); }
  .ruler-line { display: none; }
  .btn-open-archive { width: 100%; padding: 1.5rem; border-left: none; }
  .mobile-toggle { display: block; }
  .hero-metadata-rail { grid-template-columns: 1fr 1fr; }
  .hero-metadata-rail .rail-item:nth-child(2) { border-right: none; }
  .hero-metadata-rail .rail-item:nth-child(1), .hero-metadata-rail .rail-item:nth-child(2) { border-bottom: 1px solid var(--c-border); }
  .register-row { grid-template-columns: 1fr; gap: 0.5rem; }
  .tech-table td, .tech-table td:first-child { display: block; width: 100%; padding: 0.75rem 0; }
  .tech-table tr { padding: 1rem 0; }
  .tech-table td:first-child { padding-bottom: 0; color: var(--c-terracotta); }
  .footer-nav-cols { grid-template-columns: 1fr; }
  .footer-lower { flex-direction: column; gap: 1rem; text-align: center; }
  .internal-masthead h1 { font-size: 2.5rem; }
  .masthead-meta { flex-direction: column; gap: 0.5rem; }
  .papyrus-section { padding: 2rem; }
}