/* Rocinante marketing site. Colours and lettering from the brand sheet (v1, 12 Nov 2026): navy, brass, off-white; Archivo. */
:root {
  --ink: #10243a;
  --muted: #55616e;
  --paper: #f5f2ea;
  --card: #ffffff;
  --line: #ddd8cb;
  --navy: #10243a;
  --navy-strong: #0a1828;
  --navy-deep: #10243a;
  --navy-soft: #e4e8ec;
  --brass: #b87a1e;
  --brass-light: #e0a84a;
  --brass-ink: #8a5a12;
  --on-dark: #f5f2ea;
  --on-dark-muted: #a9b8c8;
  --max: 1160px;
  --radius: 14px;
  --shadow: 0 18px 40px rgba(11, 52, 56, 0.16), 0 2px 6px rgba(11, 52, 56, 0.08);
  --display: "Archivo", Arial, sans-serif;
  --sans: "Archivo", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { color: var(--navy-strong); }
::selection { background: var(--brass-light); color: var(--ink); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 6px; }
.dark :focus-visible, .site-footer :focus-visible { outline-color: var(--brass-light); }

h1, h2, h3 { font-family: var(--display); font-weight: 700; font-stretch: 112%; line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 40rem; }

.shell { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -80px; z-index: 50; background: var(--navy-deep); color: #fff; padding: 0.6rem 1rem; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 68px; }
.brand { display: flex; align-items: center; gap: 1rem; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.1rem; }
.brand img { height: 30px; width: auto; }
.brand small { font-weight: 500; color: var(--muted); font-size: 0.8rem; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--navy); }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #fff; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 46px; padding: 0.7rem 1.4rem; border-radius: 999px;
  font: 600 1rem var(--sans); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background 0.2s, color 0.2s, transform 0.15s; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-strong); color: #fff; }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy-soft); color: var(--navy-strong); }
.dark .btn-primary { background: var(--brass-light); color: var(--ink); }
.dark .btn-primary:hover { background: #ebbd6e; color: var(--ink); }
.dark .btn-ghost { border-color: var(--on-dark); color: var(--on-dark); }
.dark .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.nav .btn { min-height: 40px; padding: 0.45rem 1.1rem; font-size: 0.95rem; }

/* Hero */
.hero { padding: 4.5rem 0 3rem; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 3rem; align-items: center; }
.hero h1 em { font-style: normal; color: var(--brass); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.8rem 0 1rem; }
.hero-note { font-size: 0.92rem; color: var(--muted); }
.hero-visual { position: relative; padding-bottom: 2.5rem; }
.frame { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); background: var(--card); border: 1px solid var(--line); }
.frame-bar { display: flex; gap: 6px; padding: 9px 12px; background: #eceae3; border-bottom: 1px solid var(--line); }
.frame-bar span { width: 10px; height: 10px; border-radius: 50%; background: #cfccc2; }
.phone { position: absolute; right: -12px; bottom: 0; width: 30%; border-radius: 26px; overflow: hidden; border: 7px solid #0b1826; box-shadow: var(--shadow); background: #0b1826; }

/* Sections */
section { padding: 5rem 0; }
.section-head { max-width: 46rem; margin-bottom: 2.5rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* Department list on the home page */
.dept-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.dept-list a, .dept-card { display: flex; flex-direction: column; gap: 0.25rem; height: 100%; padding: 1.3rem 1.2rem 1.1rem; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s; }
.dept-list a:hover, .dept-card:hover { border-color: var(--navy); box-shadow: var(--shadow); color: var(--ink); }
.dept-list strong, .dept-name { font-family: var(--display); font-size: 1.4rem; font-weight: 600; line-height: 1.2; }
.dept-list .who, .dept-who { font-size: 0.9rem; font-weight: 600; color: var(--brass-ink); }
.dept-list .blurb, .dept-blurb { font-size: 0.92rem; color: var(--muted); margin-top: 0.4rem; flex: 1; }
.dept-list .go, .dept-card .go { font-weight: 600; color: var(--brass-ink); margin-top: 0.8rem; }

/* Feature rows */
.feature { display: grid; grid-template-columns: 1fr 1.25fr; gap: 3.5rem; align-items: center; padding: 3rem 0; border-top: 1px solid var(--line); }
.feature:nth-child(even) .feature-text { order: 2; }
.feature ul { list-style: none; padding: 0; margin: 1rem 0 0; }
.feature li { padding: 0.45rem 0 0.45rem 1.5rem; position: relative; color: var(--muted); }
.feature li::before { content: ""; position: absolute; left: 0; top: 0.95em; width: 0.6rem; height: 2px; background: var(--brass); }
.feature li strong { color: var(--ink); font-weight: 600; }
.feature-shot.phone-shot { max-width: 300px; margin: 0 auto; border-radius: 26px; border: 7px solid #0b1826; overflow: hidden; box-shadow: var(--shadow); }

/* Dark band: how it's installed */
.dark { background: var(--navy-deep); color: var(--on-dark); }
.dark h2, .dark h3 { color: #fff; }
.dark p, .dark .section-head p { color: var(--on-dark-muted); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem 3rem; }
.facts h3 { font-size: 1.2rem; margin-bottom: 0.4rem; padding-top: 1rem; border-top: 2px solid var(--brass-light); }
.facts p { font-size: 0.98rem; margin: 0; }

/* Enquiry */
.enquire-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3.5rem; align-items: start; }
.form { display: grid; gap: 1rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.35rem; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; padding: 0.7rem 0.85rem; border-radius: 9px; border: 1px solid #8f948f; background: #fff; color: var(--ink); }
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 0.88rem; color: var(--muted); margin: 0; }
.form-status { font-weight: 600; margin: 0; }
.form-status.ok { color: #2f6b3e; }
.form-status.err { color: #a3352e; }

/* Footer */
.site-footer { background: var(--ink); color: #a9b8c8; padding: 2.5rem 0; font-size: 0.92rem; }
.site-footer a { color: #fff; }
.footer-grid { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem 2rem; }
.footer-logo { height: 26px; width: auto; margin-bottom: 1.5rem; }

/* ---------- Demo ---------- */
.dept-pick { padding: 3rem 0 4rem; }
.dept-pick h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.dept-cards { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.demo-disclaimer { font-size: 0.88rem; color: var(--muted); margin-top: 1.5rem; max-width: 46rem; }

.viewer { padding: 1.5rem 0 3rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; scroll-margin-top: 68px; }
.viewer > * { min-width: 0; }
.viewer[hidden], .dept-pick[hidden] { display: none; }
.viewer-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem 1.5rem; }
.dept-tabs { display: flex; gap: 0.35rem; overflow-x: auto; scrollbar-width: none; }
.dept-tabs a { display: grid; padding: 0.45rem 0.9rem; border-radius: 10px; border: 1px solid transparent; color: var(--ink); text-decoration: none; white-space: nowrap; line-height: 1.25; }
.dept-tabs a strong { font-size: 0.95rem; }
.dept-tabs a span { font-size: 0.78rem; color: var(--muted); }
.dept-tabs a:hover { background: var(--card); border-color: var(--line); color: var(--ink); }
.dept-tabs a[aria-current="true"] { background: var(--navy); color: #fff; }
.dept-tabs a[aria-current="true"] span { color: #cfd8e2; }
.viewer-switches { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.theme-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.theme-switch button { font: 600 0.88rem var(--sans); border: 0; background: none; color: var(--muted); padding: 0.4rem 1rem; min-height: 34px; border-radius: 999px; cursor: pointer; }
.theme-switch button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.browser { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--card); }
.browser-bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.45rem 0.6rem; background: #eceae3; border-bottom: 1px solid var(--line); }
.bb-btn { font: 600 1.15rem/1 var(--sans); min-width: 34px; height: 32px; border-radius: 8px; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.bb-btn:hover:not([disabled]) { background: rgba(0, 0, 0, 0.07); }
.bb-btn[disabled] { opacity: 0.35; cursor: default; }
.bb-btn.bb-text { font-size: 0.82rem; padding: 0 0.7rem; border: 1px solid var(--line); background: var(--card); white-space: nowrap; }
.bb-btn.bb-text[aria-pressed="true"] { background: var(--brass-light); border-color: var(--brass-light); }
.address { flex: 1; min-width: 0; font-size: 0.85rem; color: var(--muted); background: var(--card); border-radius: 999px; padding: 0.35rem 0.9rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.screen { position: relative; height: min(78vh, 900px); overflow: hidden; background: #fff; }
.browser.is-dark .screen { background: #0f1416; }
.screen iframe { display: block; border: 0; transform-origin: 0 0; background: transparent; }

/* Phone: a phone-shaped frame around the same screen. */
.browser.is-phone { width: min(100%, 410px); margin: 0 auto; border-radius: 34px; border: 10px solid #0b1826; background: #0b1826; }
.browser.is-phone .browser-bar { background: #0b1826; border-bottom: 0; padding: 0.35rem 0.4rem 0.5rem; }
.browser.is-phone .bb-btn { color: #f5f2ea; }
.browser.is-phone .bb-btn:hover:not([disabled]) { background: rgba(255, 255, 255, 0.1); }
.browser.is-phone .bb-btn.bb-text { background: #1d3350; border-color: #1d3350; color: #f5f2ea; }
.browser.is-phone .bb-btn.bb-text[aria-pressed="true"] { background: var(--brass-light); color: var(--ink); }
.browser.is-phone .address { background: #1d3350; color: #a9b8c8; font-size: 0.78rem; }
.browser.is-phone .screen { height: min(76vh, 780px); border-radius: 0 0 24px 24px; }

.coach { position: absolute; left: 50%; transform: translateX(-50%); bottom: 1rem; width: min(calc(100% - 2rem), 30rem); z-index: 2; display: flex; gap: 1rem; align-items: center;
  background: var(--navy-deep); color: var(--on-dark); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--shadow); }
.coach[hidden] { display: none; }
.coach p { margin: 0; font-size: 0.92rem; line-height: 1.45; }
.coach .btn { flex-shrink: 0; min-height: 38px; padding: 0.4rem 1rem; font-size: 0.9rem; background: var(--brass-light); color: var(--ink); }

.viewer-foot { display: grid; gap: 0.6rem; }
.try { display: flex; gap: 0.6rem; align-items: baseline; flex-wrap: wrap; }
.try-label { font-weight: 600; font-size: 0.9rem; }
.try ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; }
.try a { display: inline-block; font-size: 0.88rem; padding: 0.3rem 0.8rem; border-radius: 999px; background: var(--card); border: 1px solid var(--line); text-decoration: none; }
.try a:hover { border-color: var(--navy); }
.viewer-note { font-size: 0.88rem; color: var(--muted); margin: 0; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .feature, .enquire-grid { grid-template-columns: 1fr; gap: 2rem; }
  .feature:nth-child(even) .feature-text { order: 0; }
  .facts { grid-template-columns: 1fr 1fr; }
  .dept-list, .dept-cards { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav-links li:not(:last-child) { display: none; }
  .hero { padding-top: 2.5rem; }
  section { padding: 3.5rem 0; }
  .facts { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .form { padding: 1.3rem; }
  .dept-list, .dept-cards { grid-template-columns: 1fr; }
  .viewer-bar { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .dept-tabs { margin: 0 -20px; padding: 0 20px; }
  .viewer-switches .theme-switch { flex: 1; }
  .viewer-switches .theme-switch button { flex: 1; }
  .browser.is-phone { border-width: 6px; border-radius: 26px; }
  .phone { width: 34%; right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
