/* ============================================================
   TERRACORE LIMITED : corporate website stylesheet
   Conservative private-banking aesthetic : midnight + gold
   ============================================================ */

:root {
  /* Palette : deep ink, warm cream, champagne gold */
  --paper:        #0a0d14;
  --paper-deep:   #06080f;
  --paper-soft:   #11151f;
  --ink:          #e8e1d1;
  --ink-muted:    rgba(232, 225, 209, 0.66);
  --ink-faint:    rgba(232, 225, 209, 0.38);
  --accent:       #c9a36b;
  --accent-deep:  #a8854f;
  --accent-soft:  rgba(201, 163, 107, 0.18);
  --rule:         rgba(232, 225, 209, 0.10);
  --rule-strong:  rgba(232, 225, 209, 0.22);

  /* Type */
  --serif-display: 'Fraunces', 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --serif-body:    'Source Serif 4', Georgia, 'Times New Roman', serif;

  /* Layout */
  --max-width:     1180px;
  --content-width: 720px;
  --gutter:        56px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif-body);
  font-size: 17px;
  line-height: 1.72;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  position: relative;
  overflow-x: hidden;
}

/* Atmospheric background : radial vignette + subtle warm glow upper-right */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 75% 0%, rgba(201, 163, 107, 0.06), transparent 60%),
    radial-gradient(ellipse 90% 70% at 50% 100%, rgba(0, 0, 0, 0.45), transparent 60%);
  z-index: 1;
}

/* Subtle film grain : warmth and texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='7'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/></svg>");
  opacity: 0.07;
  mix-blend-mode: overlay;
  z-index: 1;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 2;
}

a { color: inherit; }

/* Inline gold accent for key terms */
.gold {
  color: var(--accent);
  font-weight: 400;
}

/* ============================================================
   Navigation
   ============================================================ */

.site-header {
  padding: 30px 0;
  border-bottom: 1px solid var(--rule);
  position: relative;
  z-index: 10;
  background: rgba(10, 13, 20, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.wordmark {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  font-variation-settings: 'opsz' 14, 'SOFT' 30;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.wordmark .mark {
  width: 22px;
  height: 22px;
  display: inline-block;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 44px;
  list-style: none;
  align-items: center;
  margin: 0;
}

.nav-links a {
  font-family: var(--serif-body);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.45s ease;
}

.nav-links a:hover { color: var(--ink); }

.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--accent);
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  padding: 130px 0 110px;
  text-align: center;
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}

.hero--compact {
  padding: 100px 0 80px;
}

/* Atmospheric flourish : soft horizontal light wash behind hero */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 50% 50%, rgba(201, 163, 107, 0.05), transparent 70%);
  z-index: 0;
}

.hero > .container { position: relative; z-index: 1; }

.hero-eyebrow {
  font-family: var(--serif-body);
  font-size: 11px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 38px;
  font-weight: 500;
}

.hero-title {
  font-family: var(--serif-display);
  font-weight: 300;
  font-size: clamp(58px, 10vw, 132px);
  letter-spacing: 0.04em;
  line-height: 1;
  font-variation-settings: 'opsz' 144, 'SOFT' 0;
  color: var(--ink);
  margin-bottom: 30px;
}

.hero--compact .hero-title {
  font-size: clamp(48px, 7vw, 84px);
}

.hero-subtitle {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(20px, 2vw, 26px);
  color: var(--ink-muted);
  font-variation-settings: 'opsz' 24;
  margin-bottom: 56px;
  letter-spacing: 0.005em;
}

.hero-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  max-width: 360px;
  margin: 0 auto 52px;
  color: var(--accent);
}

.hero-ornament::before,
.hero-ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--rule-strong), transparent);
}

.hero-ornament .diamond {
  width: 6px;
  height: 6px;
  background: var(--accent);
  transform: rotate(45deg);
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(201, 163, 107, 0.4);
}

.hero-lede {
  font-family: var(--serif-display);
  font-weight: 300;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.55;
  color: var(--ink);
  max-width: 720px;
  margin: 0 auto;
  font-variation-settings: 'opsz' 36;
  letter-spacing: 0.002em;
}

.hero-lede .gold {
  font-style: normal;
}

/* ============================================================
   Sections
   ============================================================ */

main { position: relative; z-index: 2; }

.section {
  padding: 110px 0;
  border-bottom: 1px solid var(--rule);
}

.section:last-of-type { border-bottom: none; }

.section-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 80px;
  align-items: start;
}

.section-marker {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.section-marker .roman {
  display: block;
  font-size: 28px;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  font-variation-settings: 'opsz' 36;
}

.section-marker .label {
  display: block;
  font-family: var(--serif-body);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
}

.section-content {
  max-width: var(--content-width);
}

.section-title {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(30px, 3.6vw, 42px);
  letter-spacing: -0.004em;
  line-height: 1.18;
  font-variation-settings: 'opsz' 48, 'SOFT' 20;
  color: var(--ink);
  margin-bottom: 36px;
}

.section-content p {
  font-size: 18px;
  line-height: 1.78;
  color: var(--ink);
  margin-bottom: 1.1em;
}

.section-content p:last-child { margin-bottom: 0; }

.section-content em {
  font-style: italic;
  color: var(--ink-muted);
}

/* Pull quote / opening line variant */
.section-content .lede-line {
  font-family: var(--serif-display);
  font-size: clamp(20px, 2.4vw, 26px);
  font-style: italic;
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink);
  font-variation-settings: 'opsz' 36;
  margin-bottom: 32px;
  padding-left: 28px;
  border-left: 1px solid var(--accent);
}

/* ============================================================
   Disclaimer / Important Information section
   ============================================================ */

.disclaimer {
  background: var(--paper-soft);
  border-top: 1px solid var(--accent-soft);
  padding: 70px 0 70px;
  position: relative;
  z-index: 2;
}

.disclaimer-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 80px;
  align-items: start;
}

.disclaimer-label {
  font-family: var(--serif-body);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

.disclaimer-body {
  max-width: var(--content-width);
}

.disclaimer-body p {
  font-family: var(--serif-display);
  font-size: 15px;
  line-height: 1.78;
  color: var(--ink-muted);
  font-variation-settings: 'opsz' 14, 'SOFT' 30;
  letter-spacing: 0.005em;
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background: var(--paper-deep);
  border-top: 1px solid var(--rule-strong);
  padding: 90px 0 50px;
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 70px;
  margin-bottom: 70px;
}

.footer-block-label {
  font-family: var(--serif-body);
  font-size: 10px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 22px;
  display: block;
}

.footer-address {
  font-family: var(--serif-display);
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
  font-variation-settings: 'opsz' 18, 'SOFT' 30;
  letter-spacing: 0.02em;
}

.footer-address strong {
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 14px;
  display: block;
  margin-bottom: 6px;
  font-variation-settings: 'opsz' 14, 'SOFT' 0;
  color: var(--ink);
}

.footer-contact {
  font-family: var(--serif-display);
  font-size: 16px;
  line-height: 1.85;
  font-variation-settings: 'opsz' 18;
}

.footer-contact a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 1px;
  transition: border-color 0.4s ease, color 0.4s ease;
}

.footer-contact a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.footer-contact-note {
  color: var(--ink-muted);
  font-size: 14px;
}

.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav li {
  margin-bottom: 10px;
}

.footer-nav a {
  font-family: var(--serif-body);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.4s ease;
}

.footer-nav a:hover { color: var(--accent); }

.footer-meta {
  padding-top: 30px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-meta-item {
  font-family: var(--serif-body);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.footer-meta-item strong {
  color: var(--ink-muted);
  font-weight: 500;
}

.footer-finelegal {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-family: var(--serif-body);
  font-size: 11.5px;
  line-height: 1.72;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
  max-width: 920px;
}

/* ============================================================
   Page-load animation : restrained, single staggered rise
   ============================================================ */

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.rise { animation: rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.18s; }
.delay-3 { animation-delay: 0.30s; }
.delay-4 { animation-delay: 0.42s; }
.delay-5 { animation-delay: 0.54s; }

@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 900px) {
  :root { --gutter: 32px; }

  .nav-links { gap: 24px; }
  .nav-links a { font-size: 11px; letter-spacing: 0.18em; }

  .section { padding: 80px 0; }
  .section-grid { grid-template-columns: 1fr; gap: 32px; }
  .section-marker { display: flex; gap: 20px; align-items: baseline; }
  .section-marker .roman { font-size: 22px; margin-bottom: 0; }

  .hero { padding: 90px 0 70px; }
  .hero--compact { padding: 70px 0 50px; }

  .footer-grid { grid-template-columns: 1fr; gap: 44px; }
  .site-footer { padding: 70px 0 40px; }
  .footer-meta { flex-direction: column; align-items: flex-start; gap: 14px; }

  .disclaimer { padding: 56px 0; }
  .disclaimer-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 600px) {
  .nav-inner { flex-direction: column; align-items: flex-start; gap: 18px; }
  .wordmark { font-size: 15px; }
  .nav-links { flex-wrap: wrap; gap: 18px 22px; }

  .hero-title { letter-spacing: 0.02em; }
  .section-content p { font-size: 16.5px; }
}
