/* =========================================================================
   Cambridge Five Capital — Stylesheet
   Design system: royal blue, warm off-white, restrained gold.
   Typography: Cormorant Garamond (serif), Inter (sans).
   ========================================================================= */

/* ---- Reset & base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--off-white);
  overflow-x: hidden;
}

/* ---- Design tokens ---- */
:root {
  --royal: #0A1F5C;
  --royal-deep: #071329;
  --royal-soft: #102A72;
  --off-white: #F7F4EC;
  --paper: #FAF8F1;
  --stone: #D8D1C2;
  --stone-soft: #E8E2D5;
  --gold: #B79A56;
  --gold-light: #C5A45D;
  --gold-deep: #9C8146;
  --ink: #161616;
  --ink-soft: #3A3A3A;
  --rule: rgba(183, 154, 86, 0.35);
  --rule-soft: rgba(22, 22, 22, 0.08);
  --container: 1280px;
  --gutter: 6vw;
  --section-y: clamp(80px, 12vw, 160px);
  --serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.005em;
  color: var(--royal);
  line-height: 1.1;
}
h1 { font-size: clamp(44px, 6.4vw, 92px); font-weight: 300; letter-spacing: -0.018em; }
h2 { font-size: clamp(34px, 4.4vw, 60px); font-weight: 400; letter-spacing: -0.012em; }
h3 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 500; }
p { font-size: clamp(15px, 1.05vw, 17px); color: var(--ink-soft); max-width: 60ch; }
a { color: inherit; text-decoration: none; }
.serif { font-family: var(--serif); }
.label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.label-quiet { color: var(--ink-soft); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 28px;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--gold);
}

/* ---- Layout ---- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
section { padding: var(--section-y) 0; position: relative; }

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(247, 244, 236, 0.0);
  transition: background 400ms ease, padding 400ms ease, border-color 400ms ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(247, 244, 236, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 16px var(--gutter);
  border-bottom-color: var(--rule-soft);
}
.nav-mark {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--royal);
}
.nav-mark .mono {
  display: inline-flex;
  width: 34px; height: 34px;
  align-items: center;
  justify-content: center;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-links a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--royal);
  position: relative;
  transition: color 200ms ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 320ms ease;
}
.nav-links a:hover { color: var(--royal-deep); }
.nav-links a:hover::after { width: 100%; }
.nav-portal {
  padding: 11px 22px;
  border: 1px solid var(--gold);
  color: var(--royal) !important;
  transition: background 280ms ease, color 280ms ease;
}
.nav-portal:hover { background: var(--royal); color: var(--off-white) !important; }
.nav-portal::after { display: none !important; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 1px; background: var(--royal); margin: 6px 0; transition: transform 280ms ease, opacity 280ms ease; }

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    height: 100vh;
    width: min(420px, 100vw);
    background: var(--off-white);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 40px;
    gap: 28px;
    transition: right 480ms cubic-bezier(0.22, 0.61, 0.36, 1);
    border-left: 1px solid var(--rule);
  }
  .nav-links.open { right: 0; }
  .nav-toggle { display: block; z-index: 110; position: relative; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---- Hero ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 140px;
  background: var(--off-white);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
  align-items: center;
  width: 100%;
}
.hero-content { max-width: 740px; }
.hero h1 {
  margin: 18px 0 36px;
  font-style: italic;
  font-weight: 300;
}
.hero h1 .accent { font-style: normal; }
.hero-sub {
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.65;
  max-width: 560px;
  color: var(--ink-soft);
  margin-bottom: 56px;
}
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px 32px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 320ms cubic-bezier(0.22, 0.61, 0.36, 1);
  font-family: var(--sans);
}
.btn-primary {
  background: var(--royal);
  color: var(--off-white);
  border-color: var(--royal);
}
.btn-primary:hover { background: var(--royal-deep); border-color: var(--royal-deep); }
.btn-secondary {
  background: transparent;
  color: var(--royal);
  border-color: var(--royal);
}
.btn-secondary:hover { background: var(--royal); color: var(--off-white); }
.btn-ghost {
  background: transparent;
  color: var(--royal);
  border-color: transparent;
  border-bottom: 1px solid var(--gold);
  padding: 14px 0;
}
.btn-ghost:hover { color: var(--gold-deep); }
.btn .arrow { width: 14px; height: 1px; background: currentColor; position: relative; transition: width 280ms ease; }
.btn .arrow::after {
  content: '';
  position: absolute;
  right: 0; top: -3px;
  width: 7px; height: 7px;
  border-right: 1px solid currentColor;
  border-top: 1px solid currentColor;
  transform: rotate(45deg);
}
.btn:hover .arrow { width: 22px; }

/* Hero architectural element (right side) */
.hero-mark {
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-mark svg { width: clamp(180px, 22vw, 320px); height: auto; }
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 60px; }
  .hero-mark { justify-content: flex-start; }
  .hero-mark svg { width: 200px; }
}

/* Subtle grain overlay */
.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---- Firm / About ---- */
.firm { background: var(--paper); }
.firm-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(60px, 8vw, 140px);
  align-items: start;
}
.firm-grid p + p { margin-top: 22px; }
@media (max-width: 900px) { .firm-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ---- Focus areas ---- */
.focus { background: var(--off-white); }
.focus-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 90px;
}
.focus-head p { max-width: 460px; }
@media (max-width: 900px) { .focus-head { grid-template-columns: 1fr; gap: 30px; margin-bottom: 60px; } }

.focus-list { border-top: 1px solid var(--rule); }
.focus-item {
  display: grid;
  grid-template-columns: 90px 1fr 2fr 80px;
  gap: 40px;
  padding: 48px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
  transition: background 400ms ease, padding 400ms ease;
  cursor: default;
}
.focus-item:hover { padding-left: 16px; }
.focus-num {
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}
.focus-item h3 { font-weight: 500; }
.focus-item p { max-width: 56ch; }
.focus-tag {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: right;
}
@media (max-width: 900px) {
  .focus-item { grid-template-columns: 60px 1fr; gap: 16px 30px; padding: 36px 0; }
  .focus-item p { grid-column: 2; }
  .focus-tag { grid-column: 2; text-align: left; }
}

/* ---- Philosophy ---- */
.philosophy {
  background: var(--royal);
  color: var(--off-white);
  position: relative;
  overflow: hidden;
}
.philosophy::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  width: 1px; height: 80px;
  background: var(--gold);
}
.philosophy h2 { color: var(--off-white); font-style: italic; font-weight: 300; }
.philosophy .eyebrow { color: var(--gold-light); }
.philosophy .eyebrow::before { background: var(--gold-light); }
.philosophy p { color: rgba(247, 244, 236, 0.78); }
.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
}
.philosophy-grid p + p { margin-top: 22px; }
.philosophy-pillars {
  margin-top: 90px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(183, 154, 86, 0.3);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.pillar {
  background: var(--royal);
  padding: 44px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pillar .num {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--gold-light);
  font-style: italic;
}
.pillar h4 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  color: var(--off-white);
  letter-spacing: 0.01em;
}
.pillar p { font-size: 14px; line-height: 1.65; color: rgba(247, 244, 236, 0.7); }
@media (max-width: 900px) {
  .philosophy-grid { grid-template-columns: 1fr; gap: 30px; }
  .philosophy-pillars { grid-template-columns: 1fr; margin-top: 60px; }
}

/* ---- Presence ---- */
.presence { background: var(--paper); }
.presence-head {
  text-align: center;
  margin-bottom: 90px;
}
.presence-head p { margin: 24px auto 0; }
.presence-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  position: relative;
}
.presence-grid::before {
  content: '';
  position: absolute;
  top: 50px; left: 12.5%; right: 12.5%;
  height: 1px;
  background: var(--rule);
}
.presence-item {
  text-align: center;
  position: relative;
  padding-top: 80px;
}
.presence-item::before {
  content: '';
  position: absolute;
  top: 44px; left: 50%;
  width: 12px; height: 12px;
  background: var(--paper);
  border: 1px solid var(--gold);
  transform: translateX(-50%) rotate(45deg);
}
.presence-item h4 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--royal);
  margin-bottom: 8px;
}
.presence-item p {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0 auto;
  max-width: 220px;
  line-height: 1.6;
}
@media (max-width: 900px) {
  .presence-grid { grid-template-columns: 1fr 1fr; gap: 50px 30px; }
  .presence-grid::before { display: none; }
  .presence-item { padding-top: 30px; }
  .presence-item::before { top: 0; }
}

/* ---- Relationships ---- */
.relationships {
  background: var(--off-white);
  position: relative;
}
.relationships-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 100px;
  align-items: start;
}
.relationships-grid h2 { font-style: italic; font-weight: 300; }
.relationships-grid p + p { margin-top: 22px; }
.relationships-cta {
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid var(--rule);
}
@media (max-width: 900px) { .relationships-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ---- Portal CTA ---- */
.portal-cta {
  background: var(--royal-deep);
  color: var(--off-white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.portal-cta::before, .portal-cta::after {
  content: '';
  position: absolute;
  width: 1px;
  background: var(--gold);
  opacity: 0.5;
}
.portal-cta::before { top: 40px; left: 50%; height: 60px; }
.portal-cta::after { bottom: 40px; left: 50%; height: 60px; }
.portal-cta .eyebrow { justify-content: center; color: var(--gold-light); }
.portal-cta .eyebrow::before { background: var(--gold-light); }
.portal-cta h2 {
  color: var(--off-white);
  font-style: italic;
  font-weight: 300;
  max-width: 14ch;
  margin: 0 auto 32px;
}
.portal-cta p {
  color: rgba(247, 244, 236, 0.7);
  margin: 0 auto 50px;
  text-align: center;
}
.portal-cta .btn-secondary {
  color: var(--off-white);
  border-color: var(--gold);
}
.portal-cta .btn-secondary:hover {
  background: var(--gold);
  color: var(--royal-deep);
  border-color: var(--gold);
}

/* ---- Contact ---- */
.contact { background: var(--paper); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 100px;
  align-items: start;
}
.contact-info p + p { margin-top: 22px; }
.contact-info h2 { font-style: italic; font-weight: 300; }
.contact-meta { margin-top: 44px; padding-top: 36px; border-top: 1px solid var(--rule); }
.contact-meta-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 14px;
}
.contact-meta-row .key { color: var(--ink-soft); letter-spacing: 0.04em; }
.contact-meta-row .val { color: var(--royal); font-weight: 500; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; }
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row.full { grid-column: 1 / -1; }
.form label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}
.form input, .form select, .form textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule);
  padding: 14px 2px;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--royal);
  font-weight: 400;
  outline: none;
  transition: border-color 280ms ease;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
}
.form select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' stroke='%23B79A56' stroke-width='1' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 24px;
}
.form textarea { resize: vertical; min-height: 120px; }
.form input:focus, .form select:focus, .form textarea:focus { border-bottom-color: var(--gold); }
.form-submit { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.form-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-soft);
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .form { grid-template-columns: 1fr; }
  .form-submit { flex-direction: column; gap: 24px; align-items: flex-start; }
}

/* ---- Footer ---- */
footer {
  background: var(--royal-deep);
  color: rgba(247, 244, 236, 0.65);
  padding: 90px var(--gutter) 40px;
  font-size: 13px;
  line-height: 1.7;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(183, 154, 86, 0.2);
  max-width: var(--container);
  margin: 0 auto;
}
.footer-mark {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--off-white);
  font-weight: 400;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-tag {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 24px;
}
.footer-col h5 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--off-white);
  font-weight: 500;
  margin-bottom: 22px;
}
.footer-col a {
  display: block;
  padding: 4px 0;
  color: rgba(247, 244, 236, 0.6);
  transition: color 200ms ease;
  font-size: 13px;
}
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  max-width: var(--container);
  margin: 36px auto 0;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  font-size: 11px;
  color: rgba(247, 244, 236, 0.45);
  letter-spacing: 0.04em;
}
.footer-disclaimer {
  max-width: var(--container);
  margin: 36px auto 0;
  padding: 28px 0 0;
  border-top: 1px solid rgba(183, 154, 86, 0.12);
  font-size: 11px;
  line-height: 1.8;
  color: rgba(247, 244, 236, 0.45);
  font-style: italic;
}
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}
@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ---- Reveal animation ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1100ms cubic-bezier(0.22, 0.61, 0.36, 1), transform 1100ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 120ms; }
.reveal-delay-2 { transition-delay: 240ms; }
.reveal-delay-3 { transition-delay: 360ms; }
.reveal-delay-4 { transition-delay: 480ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---- Hairline rule helper ---- */
.rule-gold {
  display: block;
  width: 56px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 24px;
}

/* =========================================================================
   PORTAL PAGE
   ========================================================================= */
body.portal {
  background: var(--royal-deep);
  color: var(--off-white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.portal .nav {
  position: relative;
  background: transparent;
  border-bottom: 1px solid rgba(183, 154, 86, 0.18);
  padding: 28px var(--gutter);
}
body.portal .nav-mark { color: var(--off-white); }
body.portal .nav-back {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(247, 244, 236, 0.7);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  transition: color 200ms ease;
}
body.portal .nav-back:hover { color: var(--gold-light); }
body.portal .nav-back::before {
  content: '';
  width: 22px; height: 1px;
  background: currentColor;
}

.portal-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px var(--gutter);
  position: relative;
}
.portal-main::before, .portal-main::after {
  content: '';
  position: absolute;
  width: 1px;
  background: rgba(183, 154, 86, 0.4);
  left: 50%;
}
.portal-main::before { top: 0; height: 80px; }
.portal-main::after { bottom: 0; height: 80px; }

.portal-card {
  background: var(--off-white);
  color: var(--ink);
  padding: clamp(40px, 5vw, 72px) clamp(32px, 4vw, 64px);
  max-width: 480px;
  width: 100%;
  position: relative;
  border: 1px solid var(--gold);
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.55);
}
.portal-card::before, .portal-card::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  border: 1px solid var(--gold);
}
.portal-card::before { top: -7px; left: -7px; border-right: none; border-bottom: none; }
.portal-card::after { bottom: -7px; right: -7px; border-left: none; border-top: none; }
.portal-card .label { display: block; text-align: center; margin-bottom: 24px; }
.portal-card h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 44px);
  text-align: center;
  font-weight: 300;
  font-style: italic;
  color: var(--royal);
  margin-bottom: 16px;
  line-height: 1.1;
}
.portal-card .lede {
  text-align: center;
  font-size: 14px;
  color: var(--ink-soft);
  max-width: 36ch;
  margin: 0 auto 44px;
  line-height: 1.7;
}
.portal-mono {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}
.portal-form { display: flex; flex-direction: column; gap: 24px; }
.portal-form label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
  display: block;
  font-weight: 500;
}
.portal-form input {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule);
  width: 100%;
  padding: 12px 2px;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--royal);
  outline: none;
  transition: border-color 280ms ease;
  border-radius: 0;
}
.portal-form input:focus { border-bottom-color: var(--gold); }
.portal-submit {
  margin-top: 16px;
  background: var(--royal);
  color: var(--off-white);
  border: 1px solid var(--royal);
  padding: 16px 24px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  transition: all 320ms ease;
  font-family: var(--sans);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.portal-submit:hover { background: var(--royal-deep); }
.portal-submit .arrow { width: 14px; height: 1px; background: currentColor; position: relative; transition: width 280ms ease; }
.portal-submit .arrow::after {
  content: '';
  position: absolute; right: 0; top: -3px;
  width: 7px; height: 7px;
  border-right: 1px solid currentColor;
  border-top: 1px solid currentColor;
  transform: rotate(45deg);
}
.portal-submit:hover .arrow { width: 22px; }

.portal-meta {
  margin-top: 36px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.portal-meta a {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--royal);
  border-bottom: 1px solid var(--gold);
  display: inline-block;
  padding-bottom: 4px;
  align-self: center;
  transition: color 200ms ease;
}
.portal-meta a:hover { color: var(--gold-deep); }
.portal-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
  max-width: 38ch;
  margin: 28px auto 0;
  line-height: 1.7;
}

.portal-foot {
  padding: 32px var(--gutter);
  border-top: 1px solid rgba(183, 154, 86, 0.18);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(247, 244, 236, 0.5);
}

/* Restricted page */
.restricted-card { text-align: center; }
.restricted-card h1 { margin-bottom: 24px; }
.restricted-card p { margin: 0 auto 16px; max-width: 42ch; }
.restricted-card .actions { margin-top: 40px; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.restricted-card .btn-primary {
  background: var(--royal);
  color: var(--off-white);
  border-color: var(--royal);
  padding: 16px 36px;
  font-size: 11px;
  letter-spacing: 0.24em;
}
.restricted-card .btn-primary:hover { background: var(--royal-deep); }
