/* =========================================================
   Star-Mark Industries — Global Stylesheet
   ========================================================= */

:root {
  --ink: #0B1A2F;
  --ink-2: #122A47;
  --ink-3: #1B3758;
  --cream: #F6F1E7;
  --cream-2: #EFE7D6;
  --paper: #FBF8F1;
  --gold: #B98B4B;
  --gold-soft: #D6B27B;
  --rust: #A34225;
  --line: rgba(11, 26, 47, 0.12);
  --line-dark: rgba(246, 241, 231, 0.16);
  --muted: #5B6B7E;
  --ok: #2F6B4F;
  --danger: #8A2F2F;

  --f-display: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --f-body: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --maxw: 1240px;
  --radius: 4px;
  --shadow-soft: 0 30px 60px -30px rgba(11, 26, 47, 0.35);
  --shadow-card: 0 2px 0 rgba(11, 26, 47, 0.04), 0 20px 40px -25px rgba(11, 26, 47, 0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1 { font-size: clamp(2.6rem, 6vw, 5rem); font-variation-settings: "SOFT" 30, "opsz" 144; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); }

.eyebrow {
  font-family: var(--f-body);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold);
}

.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 58ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 2px;
  transition: all 0.25s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--ink);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--ink-3);
  transform: translateY(-1px);
  box-shadow: 0 12px 30px -12px rgba(11, 26, 47, 0.5);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--cream);
}

.btn-gold {
  background: var(--gold);
  color: var(--ink);
}
.btn-gold:hover {
  background: var(--gold-soft);
}

.btn-arrow::after {
  content: "→";
  font-size: 1rem;
  transition: transform 0.25s ease;
}
.btn-arrow:hover::after { transform: translateX(4px); }

/* ---------- Top Announcement Bar ---------- */
.announce {
  background: var(--ink);
  color: var(--cream-2);
  font-size: 0.78rem;
  text-align: center;
  padding: 9px 16px;
  letter-spacing: 0.04em;
}
.announce strong { color: var(--gold-soft); font-weight: 500; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 241, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  width: 34px;
  height: 34px;
}
.brand-text {
  font-family: var(--f-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1;
}
.brand-text small {
  display: block;
  font-family: var(--f-body);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 3px;
}

.nav-menu {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
}
.nav-menu a {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}
.nav-menu a:hover { color: var(--gold); }
.nav-menu a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--gold);
}

.nav-cta {
  display: flex;
  gap: 12px;
  align-items: center;
}
.nav-cta .btn {
  padding: 10px 20px;
  font-size: 0.85rem;
}

.hamburger {
  display: none;
  width: 28px;
  height: 20px;
  position: relative;
}
.hamburger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  transition: 0.25s;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 120px 0 100px;
  background: var(--paper);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -20%; right: -10%;
  width: 780px; height: 780px;
  background: radial-gradient(circle, rgba(185, 139, 75, 0.09) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
}

.hero h1 {
  margin-top: 20px;
  margin-bottom: 28px;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-meta {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.hero-meta-item {
  font-size: 0.85rem;
}
.hero-meta-item strong {
  display: block;
  font-family: var(--f-display);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 2px;
}
.hero-meta-item span {
  color: var(--muted);
}

/* hero visual */
.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--ink);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(214, 178, 123, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 90%, rgba(163, 66, 37, 0.18) 0%, transparent 50%),
    linear-gradient(180deg, var(--ink-2) 0%, var(--ink) 100%);
}
.hero-visual-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(246, 241, 231, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 241, 231, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.6;
}
.hero-visual-content {
  position: absolute;
  inset: 0;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--cream);
}
.hero-stamp {
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-size: 0.75rem;
  text-align: center;
  letter-spacing: 0.1em;
  color: var(--gold-soft);
  background: rgba(246, 241, 231, 0.03);
  animation: spin-slow 40s linear infinite;
}
@keyframes spin-slow { to { transform: rotate(360deg); } }

.hero-quote {
  max-width: 320px;
  font-family: var(--f-display);
  font-size: 1.4rem;
  line-height: 1.3;
  color: var(--cream);
}
.hero-quote footer {
  margin-top: 16px;
  font-family: var(--f-body);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

/* ---------- Section base ---------- */
section { padding: 110px 0; }
.section-head {
  max-width: 760px;
  margin-bottom: 64px;
}
.section-head .eyebrow { margin-bottom: 14px; display: inline-block; }
.section-head h2 { margin-bottom: 20px; }

/* ---------- Services ---------- */
.services {
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-card {
  background: var(--cream);
  padding: 44px 36px;
  transition: background 0.3s;
  position: relative;
}
.service-card:hover {
  background: var(--paper);
}
.service-card .num {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 28px;
  display: block;
}
.service-card h3 {
  margin-bottom: 14px;
  font-size: 1.45rem;
}
.service-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}
.service-card .more {
  font-size: 0.82rem;
  color: var(--ink);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}

/* ---------- Sectors ---------- */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.sector {
  padding: 36px 30px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.sector:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.sector-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  color: var(--gold);
}
.sector h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
.sector p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Stats band ---------- */
.stats-band {
  background: var(--ink);
  color: var(--cream);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.stats-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(246, 241, 231, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 241, 231, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
}
.stats-band .container { position: relative; }
.stats-band h2 { color: var(--cream); margin-bottom: 12px; }
.stats-band .lede { color: var(--cream-2); opacity: 0.8; }
.stats-band .eyebrow { color: var(--gold-soft); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 48px;
  margin-top: 60px;
}
.stat-item strong {
  font-family: var(--f-display);
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 400;
  color: var(--gold-soft);
  display: block;
  line-height: 1;
  margin-bottom: 12px;
}
.stat-item span {
  font-size: 0.82rem;
  color: var(--cream-2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* ---------- Testimonials ---------- */
.testimonials {
  background: var(--cream);
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}
.testimonial {
  background: var(--paper);
  padding: 44px 40px;
  border: 1px solid var(--line);
  border-radius: 2px;
  position: relative;
}
.testimonial .mark {
  font-family: var(--f-display);
  font-size: 3.5rem;
  line-height: 0.8;
  color: var(--gold);
  margin-bottom: 16px;
}
.testimonial blockquote {
  font-family: var(--f-display);
  font-size: 1.15rem;
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 24px;
}
.testimonial cite {
  font-style: normal;
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.testimonial cite strong {
  display: block;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 2px;
  letter-spacing: normal;
  text-transform: none;
  font-size: 0.95rem;
}

/* ---------- Compliance row ---------- */
.compliance {
  padding: 80px 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.compliance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 36px;
}
.compliance-label {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.compliance-badges {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  align-items: center;
  font-family: var(--f-display);
  font-size: 0.9rem;
  color: var(--ink);
  letter-spacing: 0.05em;
}
.compliance-badges span {
  display: flex;
  align-items: center;
  gap: 10px;
}
.compliance-badges span::before {
  content: "✓";
  color: var(--gold);
  font-weight: 700;
}

/* ---------- CTA band ---------- */
.cta-band {
  padding: 120px 0;
  background: var(--ink);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: var(--cream); max-width: 720px; }
.cta-band h2 em { color: var(--gold-soft); font-weight: 400; }
.cta-band p { color: var(--cream-2); opacity: 0.8; max-width: 560px; margin-top: 20px; }
.cta-band .btn-gold { margin-top: 40px; }

/* ---------- Footer ---------- */
.site-footer {
  background: #060F1E;
  color: var(--cream-2);
  padding: 80px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 60px;
  margin-bottom: 60px;
}
.footer-brand p {
  margin-top: 20px;
  font-size: 0.88rem;
  color: var(--cream-2);
  opacity: 0.65;
  line-height: 1.6;
  max-width: 34ch;
}
.footer-col h4 {
  font-family: var(--f-body);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 22px;
  font-weight: 500;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a {
  font-size: 0.9rem;
  color: var(--cream-2);
  opacity: 0.75;
  transition: opacity 0.2s;
}
.footer-col a:hover { opacity: 1; }

.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--cream-2);
  opacity: 0.55;
}
.footer-bottom .legal {
  display: flex;
  gap: 24px;
}

/* ---------- Page hero (secondary) ---------- */
.page-hero {
  padding: 100px 0 80px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  max-width: 18ch;
  margin-bottom: 20px;
}
.page-hero .lede { max-width: 62ch; }

.crumb {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}
.crumb a:hover { color: var(--gold); }

/* ---------- Content blocks ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: start;
}
.two-col-sticky {
  position: sticky;
  top: 120px;
}
.prose p {
  margin-bottom: 22px;
  color: var(--ink-2);
  font-size: 1.02rem;
}
.prose p:first-of-type::first-letter {
  font-family: var(--f-display);
  font-size: 3.8rem;
  float: left;
  line-height: 0.9;
  margin: 6px 12px 0 0;
  color: var(--gold);
  font-weight: 500;
}

/* ---------- Service list (services page) ---------- */
.service-list {
  display: grid;
  gap: 0;
}
.service-row {
  display: grid;
  grid-template-columns: 80px 1fr 2fr;
  gap: 40px;
  padding: 44px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.service-row:last-child { border-bottom: 1px solid var(--line); }
.service-row .num {
  font-family: var(--f-mono);
  font-size: 0.82rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  padding-top: 8px;
}
.service-row h3 {
  font-size: 1.6rem;
}
.service-row p { color: var(--muted); font-size: 0.98rem; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
}
.contact-info h3 {
  font-family: var(--f-display);
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: var(--gold);
  letter-spacing: 0.05em;
}
.contact-info .block { margin-bottom: 36px; }
.contact-info p { font-size: 0.98rem; line-height: 1.7; }

.form {
  background: var(--paper);
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: 2px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.field { display: flex; flex-direction: column; }
.field label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.field input,
.field textarea,
.field select {
  font-family: var(--f-body);
  font-size: 1rem;
  padding: 14px 0;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--ink);
}
.field textarea {
  resize: vertical;
  min-height: 100px;
}

.form .btn { margin-top: 16px; }

.form-message {
  margin-top: 16px;
  padding: 14px 16px;
  font-size: 0.9rem;
  border-radius: 2px;
  display: none;
}
.form-message.show { display: block; }
.form-message.ok { background: #E7F0EA; color: var(--ok); }
.form-message.err { background: #F6E3E3; color: var(--danger); }

/* ---------- Login page ---------- */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--paper);
}
.auth-brand {
  background: var(--ink);
  color: var(--cream);
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.auth-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(246, 241, 231, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 241, 231, 0.025) 1px, transparent 1px);
  background-size: 50px 50px;
}
.auth-brand-inner { position: relative; z-index: 1; }
.auth-brand .brand-mark { width: 42px; height: 42px; }
.auth-brand .brand-text { font-size: 1.5rem; color: var(--cream); }
.auth-brand .brand-text small { color: var(--gold-soft); }
.auth-brand h2 {
  color: var(--cream);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-top: 80px;
  margin-bottom: 24px;
  max-width: 16ch;
}
.auth-brand p {
  color: var(--cream-2);
  opacity: 0.75;
  max-width: 40ch;
  font-size: 0.95rem;
}
.auth-brand .sig {
  font-size: 0.78rem;
  color: var(--cream-2);
  opacity: 0.55;
  letter-spacing: 0.12em;
  position: relative;
  z-index: 1;
}

.auth-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
}
.auth-card h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}
.auth-card > p {
  color: var(--muted);
  margin-bottom: 40px;
}
.auth-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.auth-tab {
  padding: 12px 0;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  margin-right: 28px;
  transition: all 0.2s;
}
.auth-tab.active {
  color: var(--ink);
  border-color: var(--gold);
}
.auth-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  margin-top: 24px;
}
.auth-row label { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.auth-row a { color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 1px; }
.auth-row a:hover { border-color: var(--ink); }

.auth-btn {
  width: 100%;
  justify-content: center;
  padding: 16px 24px;
  margin-top: 32px;
  font-size: 0.95rem;
}

.auth-hint {
  margin-top: 28px;
  padding: 16px 18px;
  background: var(--cream);
  border-left: 2px solid var(--gold);
  font-size: 0.82rem;
  color: var(--muted);
  font-family: var(--f-mono);
  line-height: 1.7;
}
.auth-hint strong { color: var(--ink); font-weight: 500; }

.auth-foot {
  margin-top: 40px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- Portal ---------- */
.portal-shell { min-height: 100vh; background: var(--cream); }
.portal-bar {
  background: var(--ink);
  color: var(--cream);
  padding: 14px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.portal-bar .brand-text { color: var(--cream); font-size: 1.1rem; }
.portal-bar .brand-text small { color: var(--gold-soft); }
.portal-user { display: flex; gap: 16px; align-items: center; font-size: 0.88rem; }
.portal-user .avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--gold); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600;
}
.portal-user button {
  color: var(--cream-2);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  border: 1px solid var(--line-dark);
  padding: 8px 14px;
  border-radius: 2px;
  transition: 0.2s;
}
.portal-user button:hover { background: var(--ink-3); }

.portal-main { max-width: 1240px; margin: 0 auto; padding: 48px 32px; }
.portal-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 40px; flex-wrap: wrap; gap: 20px; }
.portal-head h1 { font-size: 2.2rem; }
.portal-head p { color: var(--muted); margin-top: 6px; }

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}
.metric {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 26px;
  border-radius: 2px;
}
.metric .lbl { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 10px; }
.metric .val { font-family: var(--f-display); font-size: 2rem; color: var(--ink); line-height: 1; }
.metric .chg { font-size: 0.8rem; margin-top: 6px; color: var(--ok); }
.metric .chg.down { color: var(--danger); }

.portal-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
}
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.panel-head {
  padding: 22px 28px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.panel-head h3 { font-size: 1.1rem; }
.panel-head a { font-size: 0.82rem; color: var(--gold); letter-spacing: 0.05em; }
.panel-body { padding: 8px 0; }

table.accounts {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
table.accounts th, table.accounts td {
  padding: 14px 28px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
table.accounts th {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}
table.accounts tbody tr:last-child td { border-bottom: none; }
table.accounts tbody tr:hover { background: var(--cream); }
.tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  border-radius: 20px;
  font-weight: 500;
}
.tag.active { background: #E7F0EA; color: var(--ok); }
.tag.pending { background: #FBF0D9; color: #876A20; }
.tag.resolved { background: #EAEAEA; color: #4A4A4A; }

.activity { padding: 8px 28px 24px; }
.activity-item {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.88rem;
}
.activity-item:last-child { border-bottom: none; }
.activity-item .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); margin-top: 8px; flex-shrink: 0;
}
.activity-item time { color: var(--muted); font-size: 0.78rem; display: block; margin-top: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .container { padding: 0 20px; }
  .hero-inner { grid-template-columns: 1fr; gap: 50px; }
  .hero { padding: 80px 0 60px; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .two-col-sticky { position: static; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-brand { padding: 40px; min-height: 280px; }
  .auth-brand h2 { margin-top: 40px; }
  .auth-form-wrap { padding: 40px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .portal-grid { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 60px 1fr; }
  .service-row p { grid-column: 2; }

  .nav-menu, .nav-cta .btn-ghost { display: none; }
  .hamburger { display: block; }
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--paper);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--line);
  }
  section { padding: 70px 0; }
  .form-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-meta { grid-template-columns: 1fr 1fr; }
  .form { padding: 28px 22px; }
  .portal-main { padding: 32px 20px; }
  table.accounts th, table.accounts td { padding: 12px 16px; }
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
