/* ============================================================
   VEIDA PROPERTIES - SHARED BLOG STYLESHEET
   Used by veida-blog.html (hub) and all blog-*.html posts
   ============================================================ */

:root {
  --ink: #0a0a0a;
  --deep: #0f0f0f;
  --panel: #141414;
  --surface: #1a1a1a;
  --border: rgba(255,255,255,0.07);
  --gold: #c9a96e;
  --gold-light: #e8cfa0;
  --cream: #f5f0e8;
  --text-dim: rgba(245,240,232,0.45);
  --text-soft: rgba(245,240,232,0.72);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--cream);
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}

/* CURSOR */
.cursor { position: fixed; width: 8px; height: 8px; background: var(--gold); border-radius: 50%; pointer-events: none; z-index: 9999; transform: translate(-50%,-50%); transition: transform 0.15s ease; }
.cursor-ring { position: fixed; width: 36px; height: 36px; border: 1px solid rgba(201,169,110,0.4); border-radius: 50%; pointer-events: none; z-index: 9998; transform: translate(-50%,-50%); transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), width 0.3s, height 0.3s, border-color 0.3s; }
body:has(a:hover) .cursor-ring, body:has(button:hover) .cursor-ring { width: 56px; height: 56px; border-color: rgba(201,169,110,0.7); }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 56px;
  background: linear-gradient(to bottom, rgba(10,10,10,0.95), transparent);
  transition: background 0.4s, padding 0.3s;
}
nav.scrolled { background: rgba(10,10,10,0.97); padding: 20px 56px; border-bottom: 1px solid var(--border); }
.nav-logo { font-family: 'Cormorant Garamond', serif; font-size: 44px; font-weight: 400; letter-spacing: 0.12em; color: var(--cream); text-decoration: none; }
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a { font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-soft); text-decoration: none; transition: color 0.25s; }
.nav-links a:hover { color: var(--gold); }
.nav-right { display: flex; align-items: center; gap: 22px; }
.nav-cta { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(201,169,110,0.5); padding: 10px 24px; text-decoration: none; transition: background 0.25s, color 0.25s; white-space: nowrap; }
.nav-cta:hover { background: var(--gold); color: var(--ink); }

/* GRAIN */
.grain { position: absolute; inset: -50%; width: 200%; height: 200%; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E"); opacity: 0.4; animation: grain 0.8s steps(2) infinite; pointer-events: none; }
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,-4%)} 40%{transform:translate(-5%,2%)} 60%{transform:translate(2%,-6%)} 80%{transform:translate(-4%,3%)} 100%{transform:translate(3%,-2%)} }

/* ============ HUB (blog index) ============ */
.hub-hero { position: relative; padding: 200px 56px 70px; overflow: hidden; border-bottom: 1px solid var(--border); text-align: center; }
.hub-hero-bg { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,0.7) 0%, rgba(10,10,10,0.93) 100%), url('https://images.unsplash.com/photo-1580060839134-75a5edca2e99?w=1800&q=80') center/cover no-repeat; filter: saturate(0.85); }
.hub-hero-inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }
.hub-eyebrow { font-size: 10px; letter-spacing: 0.38em; text-transform: uppercase; color: var(--gold); margin-bottom: 22px; display: flex; align-items: center; justify-content: center; gap: 16px; }
.hub-eyebrow::before, .hub-eyebrow::after { content: ''; display: block; width: 32px; height: 1px; background: var(--gold); opacity: 0.5; }
.hub-hero h1 { font-family: 'Cormorant Garamond', serif; font-size: clamp(44px, 6vw, 80px); font-weight: 300; line-height: 1.04; color: var(--cream); margin-bottom: 24px; }
.hub-hero h1 em { font-style: italic; color: var(--gold-light); }
.hub-hero p { font-size: 14.5px; color: var(--text-soft); line-height: 1.8; max-width: 580px; margin: 0 auto; }

.hub-section { max-width: 1180px; margin: 0 auto; padding: 72px 56px 0; }
.hub-section:last-of-type { padding-bottom: 40px; }
.hub-section-head { display: flex; align-items: center; gap: 20px; margin-bottom: 40px; }
.hub-section-head span { font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.hub-section-head::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.post-card { background: var(--panel); border: 1px solid var(--border); text-decoration: none; display: flex; flex-direction: column; overflow: hidden; transition: border-color 0.3s; position: relative; }
.post-card:hover { border-color: rgba(201,169,110,0.3); }
.post-card:hover .post-card-img img { transform: scale(1.05); filter: brightness(0.78) saturate(0.85); }
.post-card-img { height: 200px; overflow: hidden; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.82) saturate(0.9); transition: transform 0.7s cubic-bezier(0.16,1,0.3,1), filter 0.5s; }
.post-card-body { padding: 26px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.post-card-cat { font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.post-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 23px; font-weight: 400; color: var(--cream); line-height: 1.18; margin-bottom: 12px; }
.post-card p { font-size: 13px; color: var(--text-soft); line-height: 1.7; margin-bottom: 20px; flex: 1; }
.post-card-link { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); display: inline-flex; align-items: center; gap: 8px; }
.post-card-link::after { content: '\2192'; }

/* ============ POST (article) ============ */
.article-header { position: relative; padding: 190px 56px 70px; overflow: hidden; border-bottom: 1px solid var(--border); }
.article-header-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: saturate(0.85); }
.article-header-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,0.72) 0%, rgba(10,10,10,0.93) 100%); }
.article-header-inner { position: relative; z-index: 2; max-width: 820px; margin: 0 auto; }
.article-eyebrow { font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); margin-bottom: 24px; display: flex; align-items: center; gap: 16px; }
.article-eyebrow::before { content: ''; display: block; width: 40px; height: 1px; background: var(--gold); opacity: 0.6; }
.article-header h1 { font-family: 'Cormorant Garamond', serif; font-size: clamp(34px, 5vw, 60px); font-weight: 300; line-height: 1.08; letter-spacing: -0.01em; color: var(--cream); margin-bottom: 26px; }
.article-header h1 em { font-style: italic; color: var(--gold-light); }
.article-meta { display: flex; flex-wrap: wrap; gap: 24px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); }
.article-meta span { display: flex; align-items: center; gap: 8px; }
.article-meta span::before { content: ''; display: block; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); opacity: 0.7; }

.article { max-width: 760px; margin: 0 auto; padding: 72px 56px 40px; }
.article .lead { font-size: 18px; line-height: 1.78; color: var(--cream); font-weight: 300; margin-bottom: 34px; }
.article p { font-size: 15.5px; line-height: 1.9; color: var(--text-soft); margin-bottom: 22px; }
.article h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(27px, 3.3vw, 38px); font-weight: 300; color: var(--cream); line-height: 1.16; margin: 56px 0 20px; letter-spacing: -0.005em; scroll-margin-top: 110px; }
.article h2 em { font-style: italic; color: var(--gold-light); }
.article h3 { font-family: 'Cormorant Garamond', serif; font-size: 23px; font-weight: 400; color: var(--cream); margin: 36px 0 12px; }
.article h4 { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin: 26px 0 10px; }
.article strong { color: var(--cream); font-weight: 500; }
.article em { font-style: italic; }
.article a.inline { color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(201,169,110,0.4); transition: border-color 0.25s; }
.article a.inline:hover { border-color: var(--gold); }

.article ul, .article ol { margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 11px; list-style: none; }
.article ul li, .article ol li { font-size: 15px; line-height: 1.8; color: var(--text-soft); display: flex; gap: 14px; align-items: flex-start; }
.article ul li::before { content: ''; flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); opacity: 0.7; margin-top: 10px; }
.article ol { counter-reset: step; }
.article ol li { counter-increment: step; }
.article ol li::before { content: counter(step); flex-shrink: 0; font-family: 'Cormorant Garamond', serif; font-size: 16px; color: var(--gold); width: 20px; }

.article figure { margin: 38px 0; }
.article figure img { width: 100%; height: 360px; object-fit: cover; filter: brightness(0.88) saturate(0.9); border: 1px solid var(--border); }
.article figcaption { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); margin-top: 12px; text-align: center; }

.callout { background: var(--panel); border: 1px solid var(--border); border-left: 2px solid var(--gold); padding: 28px 32px; margin: 34px 0; }
.callout-label { font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.callout p { margin-bottom: 0; color: var(--cream); font-size: 15px; }

.table-wrap { overflow-x: auto; margin: 28px 0; border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 460px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--border); }
th { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
td { color: var(--text-soft); }
tr:last-child td { border-bottom: none; }
td:first-child { color: var(--cream); }

.tech-card { background: var(--panel); border: 1px solid var(--border); padding: 30px 32px; margin: 22px 0; position: relative; overflow: hidden; }
.tech-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: 0; transition: opacity 0.3s; }
.tech-card:hover::before { opacity: 1; }
.tech-name { font-family: 'Cormorant Garamond', serif; font-size: 27px; font-weight: 400; color: var(--cream); margin-bottom: 4px; }
.tech-role { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }

.gold-rule { display: flex; align-items: center; gap: 20px; margin: 64px 0 8px; }
.gold-rule::before, .gold-rule::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.gold-rule span { font-size: 10px; letter-spacing: 0.35em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }

.disclaimer { font-size: 12.5px; line-height: 1.75; color: var(--text-dim); border-top: 1px solid var(--border); padding-top: 24px; margin-top: 44px; }
.disclaimer a { color: var(--text-soft); text-decoration: none; border-bottom: 1px solid var(--border); }
.disclaimer a:hover { color: var(--gold); }

/* RELATED POSTS */
.related { max-width: 1180px; margin: 0 auto; padding: 24px 56px 0; }
.related-head { font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); margin-bottom: 28px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }

/* CTA */
.cta-block { background: var(--panel); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 96px 56px; text-align: center; margin-top: 80px; }
.cta-block .section-label { font-size: 10px; letter-spacing: 0.35em; text-transform: uppercase; color: var(--gold); margin-bottom: 22px; display: inline-block; }
.cta-block h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(30px, 4vw, 50px); font-weight: 300; color: var(--cream); line-height: 1.1; margin-bottom: 20px; max-width: 700px; margin-left: auto; margin-right: auto; }
.cta-block h2 em { font-style: italic; color: var(--gold-light); }
.cta-block p { font-size: 14px; color: var(--text-soft); max-width: 540px; margin: 0 auto 38px; line-height: 1.8; }
.cta-row { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.btn-primary { display: inline-block; background: var(--gold); color: var(--ink); font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; padding: 16px 38px; transition: background 0.25s, transform 0.2s; }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-ghost { display: inline-block; color: var(--text-soft); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; border: 1px solid var(--border); padding: 16px 32px; transition: color 0.25s, border-color 0.25s; }
.btn-ghost:hover { color: var(--gold); border-color: rgba(201,169,110,0.4); }

/* FOOTER */
footer { background: var(--ink); border-top: 1px solid var(--border); padding: 48px 56px; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.footer-logo { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 300; letter-spacing: 0.14em; color: var(--cream); text-decoration: none; }
.footer-logo span { color: var(--gold); }
.footer-links { display: flex; gap: 28px; list-style: none; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); text-decoration: none; transition: color 0.25s; }
.footer-links a:hover { color: var(--cream); }
.footer-copy { font-size: 11px; color: var(--text-dim); }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1); }
.reveal.visible { opacity: 1; transform: none; }

/* RESPONSIVE */
@media (max-width: 980px) {
  .card-grid, .related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  nav { padding: 18px 24px; }
  nav.scrolled { padding: 14px 24px; }
  .nav-links { display: none; }
  .nav-logo { font-size: 34px; }
  .hub-hero { padding: 150px 24px 56px; }
  .hub-section { padding: 56px 24px 0; }
  .article-header { padding: 140px 24px 52px; }
  .article { padding: 56px 24px 32px; }
  .related { padding: 24px 24px 0; }
  .cta-block { padding: 72px 24px; }
  footer { padding: 40px 24px; }
  .card-grid, .related-grid { grid-template-columns: 1fr; }
  .article figure img { height: 240px; }
  body { cursor: auto; }
  .cursor, .cursor-ring { display: none; }
}
