:root {
  --forest: #0f2318;
  --forest-2: #1b3a2d;
  --forest-3: #2a5040;
  --gold: #c9a84c;
  --gold-light: #e8c96a;
  --cream: #f5f0e8;
  --cream-2: #ede5d5;
  --mist: #faf8f2;
  --ink: #101810;
  --muted: #5f625a;
  --line: rgba(201, 168, 76, 0.28);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Jost", Arial, sans-serif;
  color: var(--ink);
  background: var(--mist);
  line-height: 1.75;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: "Cormorant Garamond", Georgia, serif; line-height: 1.08; font-weight: 600; }
h1 { font-size: clamp(3.3rem, 7vw, 6.7rem); }
h2 { font-size: clamp(2.25rem, 4.5vw, 4.3rem); }
h3 { font-size: clamp(1.45rem, 2.4vw, 2.1rem); }
p { color: var(--muted); }
em { color: var(--gold); font-style: italic; font-weight: 400; }

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 82px;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 35, 24, 0.94);
  border-bottom: 1px solid rgba(201, 168, 76, 0.18);
  backdrop-filter: blur(16px);
  transition: 0.25s ease;
}
.site-nav.scrolled { height: 68px; background: rgba(15, 35, 24, 0.98); }
.brand { display: flex; align-items: center; gap: 0.75rem; color: var(--cream); }
.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
}
.brand small {
  display: block;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.62rem;
}
.brand strong {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
}
.nav-links { display: flex; align-items: center; gap: 1.25rem; }
.nav-links a {
  color: rgba(245, 240, 232, 0.78);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  font-weight: 500;
}
.nav-links a:hover, .nav-links .active { color: var(--gold); }
.nav-cta {
  border: 1px solid var(--gold);
  color: var(--gold) !important;
  padding: 0.65rem 1rem;
}
.nav-cta:hover { background: var(--gold); color: var(--forest) !important; }
.menu-toggle { display: none; background: none; border: 0; }
.menu-toggle span { display: block; width: 26px; height: 2px; margin: 5px 0; background: var(--gold); }

.hero, .subhero {
  position: relative;
  min-height: 100vh;
  padding: 140px 5vw 80px;
  background: var(--forest);
  color: var(--cream);
  overflow: hidden;
}
.subhero { min-height: 56vh; display: grid; align-content: center; text-align: center; }
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(130deg, rgba(15,35,24,0.98), rgba(15,35,24,0.78), rgba(15,35,24,0.94)),
    radial-gradient(circle at 78% 28%, rgba(201,168,76,0.2), transparent 28%),
    linear-gradient(45deg, rgba(245,240,232,0.08) 0 1px, transparent 1px 16px);
}
.hero-texture, .dark::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.25;
  background-image: url("data:image/svg+xml,%3Csvg width='70' height='70' viewBox='0 0 70 70' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23c9a84c' fill-opacity='0.045'%3E%3Cpath d='M34 0h2v70h-2zM0 34h70v2H0z'/%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner {
  position: relative;
  max-width: 1120px;
  padding-top: 8vh;
}
.hero h1 { max-width: 1040px; }
.hero-sub {
  max-width: 760px;
  margin: 1.4rem 0 2rem;
  color: rgba(245, 240, 232, 0.82);
  font-size: 1.18rem;
}
.hero-actions, .section-cta, .final-cta .section-inner { margin-top: 2rem; }
.hero-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  max-width: 1120px;
  margin-top: 5rem;
  border: 1px solid var(--line);
}
.hero-stats div {
  padding: 1.35rem;
  background: rgba(245, 240, 232, 0.055);
}
.hero-stats strong { display: block; color: var(--gold); font-family: "Cormorant Garamond", serif; font-size: 2.25rem; }
.hero-stats span { color: rgba(245, 240, 232, 0.72); font-size: 0.88rem; }

.section { position: relative; padding: 110px 5vw; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.light { background: var(--mist); }
.cream { background: var(--cream); }
.dark { background: var(--forest); color: var(--cream); overflow: hidden; }
.dark p { color: rgba(245, 240, 232, 0.72); }
.diagonal { clip-path: polygon(0 4%, 100% 0, 100% 100%, 0 100%); }
.section-label {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.72rem;
  font-weight: 600;
}
.section-label::before, .section-label::after {
  content: "";
  width: 38px;
  height: 1px;
  background: var(--gold);
  opacity: 0.65;
}
.center { text-align: center; max-width: 820px; margin-inline: auto; }
.center .section-label { justify-content: center; }
.split { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 4rem; align-items: start; }
.btn-primary, .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.55rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  transition: 0.2s ease;
}
.btn-primary { background: var(--gold); color: var(--forest); border: 1px solid var(--gold); }
.btn-outline { color: var(--gold); border: 1px solid var(--gold); margin-left: 0.75rem; }
.btn-primary:hover, .btn-outline:hover { transform: translateY(-2px); }
.btn-outline:hover { background: var(--gold); color: var(--forest); }
.dark-outline { color: var(--forest); border-color: var(--forest); }
.dark-outline:hover { background: var(--forest); color: var(--cream); }

.product-grid, .service-grid, .portfolio-grid, .blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.featured { margin-top: 3rem; }
.product-card, .service-card, .portfolio-card, .blog-card, .console-card {
  position: relative;
  padding: 1.55rem;
  border: 1px solid var(--line);
  background: rgba(245, 240, 232, 0.055);
  min-height: 250px;
}
.product-card span, .portfolio-card small, .blog-card small, .console-card span {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
}
.product-card h3, .product-card h2, .service-card h3, .service-card h2, .portfolio-card h2, .blog-card h2, .console-card h3 { margin: 0.75rem 0; }
.product-card a, .service-card a, .blog-card a { display: inline-block; margin-top: 1rem; color: var(--gold); font-weight: 600; }
.light-card, .service-card, .portfolio-card, .blog-card {
  background: rgba(255,255,255,0.52);
  color: var(--ink);
  border-color: rgba(27, 58, 45, 0.14);
}
.product-card ul { margin: 1rem 0 0 1rem; color: var(--muted); }
.service-grid { margin-top: 3rem; }
.service-grid.large { margin-top: 0; }
.service-card { min-height: 230px; }
.portfolio-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(220px, 1fr));
  gap: 1px;
  overflow-x: auto;
  margin-top: 3rem;
  border: 1px solid rgba(27, 58, 45, 0.14);
}
.portfolio-strip article {
  padding: 1.35rem;
  min-height: 260px;
  background: rgba(255,255,255,0.42);
}
.portfolio-strip small { color: var(--gold); text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.67rem; }
.portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.blog-card.featured-post { grid-column: span 2; background: var(--forest); color: var(--cream); }
.blog-card.featured-post p { color: rgba(245, 240, 232, 0.76); }
.blog-card-image {
  width: calc(100% + 3.1rem);
  height: 220px;
  object-fit: cover;
  margin: -1.55rem -1.55rem 1.2rem;
  border-bottom: 3px solid var(--gold);
}
.console-card { background: rgba(245, 240, 232, 0.075); }

.final-cta {
  padding: 100px 5vw;
  background: var(--cream);
}
.final-cta h2 { max-width: 860px; margin: 0 auto 1rem; }
.subhero p { max-width: 760px; margin: 1rem auto 0; color: rgba(245, 240, 232, 0.78); font-size: 1.12rem; }

.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 4rem; }
.contact-form {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(27, 58, 45, 0.14);
}
.contact-form.wide { max-width: 860px; margin: 0 auto; }
label { display: grid; gap: 0.35rem; color: var(--forest); font-weight: 500; }
input, select, textarea {
  width: 100%;
  border: 1px solid rgba(27, 58, 45, 0.22);
  background: var(--mist);
  color: var(--ink);
  padding: 0.85rem;
  font: inherit;
}
.check { display: flex; align-items: center; gap: 0.65rem; }
.check input { width: auto; }
.admin-wrap { max-width: 1320px; }
.blog-admin-dashboard {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}
.post-library,
.editor-workspace {
  border: 1px solid rgba(27, 58, 45, 0.14);
  background: rgba(255,255,255,0.52);
}
.post-library {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 120px);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
}
.post-library-head,
.editor-workspace-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1.15rem;
  border-bottom: 1px solid rgba(27, 58, 45, 0.12);
  background: var(--cream);
}
.post-library-head span,
.editor-workspace-head span {
  display: block;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 600;
}
.post-library-head h2,
.editor-workspace-head h2 {
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  margin-top: 0.25rem;
}
.post-library-head p,
.editor-workspace-head p {
  font-size: 0.9rem;
  margin-top: 0.25rem;
}
.post-library-head a,
.editor-workspace-head a {
  flex: 0 0 auto;
  border: 1px solid var(--gold);
  color: var(--forest);
  padding: 0.55rem 0.8rem;
  font-weight: 600;
}
.post-manager {
  display: grid;
  gap: 0.65rem;
  overflow-y: auto;
  padding: 0.8rem;
  align-content: start;
}
.post-manager article {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem;
  border: 1px solid rgba(27, 58, 45, 0.14);
  background: rgba(255,255,255,0.68);
}
.post-manager article.is-editing {
  border-color: var(--gold);
  background: var(--cream);
}
.post-manager small,
.post-manager span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}
.post-manager strong {
  display: block;
  color: var(--forest);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.16rem;
  line-height: 1.15;
  margin: 0.18rem 0;
}
.post-manager a {
  color: var(--forest);
  border: 1px solid var(--gold);
  padding: 0.45rem 0.8rem;
  font-weight: 600;
}
.empty-posts {
  padding: 1rem;
}
.editor-workspace .contact-form.wide {
  max-width: none;
  margin: 0;
  border: 0;
  background: transparent;
}
.editor-workspace .editor-form {
  padding: 1.15rem;
}
.inline-upload {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
}
.inline-upload button {
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--forest);
  padding: 0 1rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.field-hint {
  margin-top: -0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.editor-form { gap: 1.15rem; }
.editor-shell {
  overflow: hidden;
  border: 1px solid rgba(27, 58, 45, 0.16);
  background: var(--mist);
}
.editor-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  background: var(--forest);
  color: var(--cream);
}
.editor-top p {
  color: rgba(245, 240, 232, 0.72);
  font-size: 0.9rem;
}
.editor-top span {
  color: var(--gold);
  white-space: nowrap;
}
.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.75rem;
  border-bottom: 1px solid rgba(27, 58, 45, 0.12);
  background: var(--cream);
}
.editor-toolbar button {
  border: 1px solid rgba(27, 58, 45, 0.18);
  background: rgba(255,255,255,0.6);
  color: var(--forest);
  padding: 0.5rem 0.75rem;
  font: inherit;
  font-size: 0.86rem;
  cursor: pointer;
}
.editor-toolbar button:hover {
  border-color: var(--gold);
  color: var(--forest);
}
.native-editor {
  min-height: 430px;
  padding: 1.4rem;
  background: rgba(255,255,255,0.68);
  outline: none;
  font-size: 1.05rem;
}
.native-editor:empty::before {
  content: attr(data-placeholder);
  color: rgba(95, 98, 90, 0.72);
}
.native-editor h2,
.native-editor h3,
.native-editor p,
.native-editor ul,
.native-editor ol,
.native-editor blockquote {
  margin-bottom: 1rem;
}
.native-editor ul,
.native-editor ol {
  padding-left: 1.4rem;
}
.native-editor blockquote {
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--gold);
  background: var(--cream);
  color: var(--forest);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.45rem;
  line-height: 1.35;
}
.upload-status {
  padding: 0 0.9rem 0.75rem;
  color: var(--forest);
  font-size: 0.9rem;
}
.editor-preview {
  border: 1px solid rgba(27, 58, 45, 0.14);
  background: rgba(255,255,255,0.5);
}
.editor-preview summary {
  cursor: pointer;
  padding: 1rem;
  color: var(--forest);
  font-weight: 600;
}
.preview-body {
  padding: 1.5rem;
  border-top: 1px solid rgba(27, 58, 45, 0.1);
}

.article-body {
  max-width: 820px;
  margin: 0 auto;
  font-size: 1.08rem;
}
.article-body h2 { margin: 2rem 0 1rem; font-size: clamp(2rem, 3vw, 3rem); }
.article-body p { margin-bottom: 1.2rem; }
.article-body ul, .article-body ol { margin: 0 0 1.4rem 1.4rem; color: var(--muted); }
.article-body blockquote {
  margin: 2rem 0;
  padding: 1.2rem 1.5rem;
  border-left: 3px solid var(--gold);
  background: var(--cream);
  color: var(--forest);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.6rem;
  line-height: 1.35;
}
.post-media,
.post-embed,
.post-chart {
  margin: 2rem 0;
}
.post-media img,
.post-media video {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border-bottom: 4px solid var(--gold);
  background: var(--forest);
}
.post-media audio {
  width: 100%;
}
.post-media figcaption,
.post-embed figcaption,
.post-chart figcaption {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}
.post-download {
  padding: 1rem 1.25rem;
  border: 1px solid rgba(27, 58, 45, 0.14);
  background: var(--cream);
}
.post-download a {
  color: var(--forest);
  font-weight: 600;
}
.post-table {
  width: 100%;
  margin: 2rem 0;
  border-collapse: collapse;
  background: rgba(255,255,255,0.62);
}
.post-table th,
.post-table td {
  border: 1px solid rgba(27, 58, 45, 0.16);
  padding: 0.8rem;
  text-align: left;
  vertical-align: top;
}
.post-table th {
  background: var(--forest);
  color: var(--cream);
}
.post-embed iframe {
  width: 100%;
  min-height: 420px;
  border: 0;
  background: var(--forest);
}
.post-chart {
  padding: 1.25rem;
  border: 1px solid rgba(27, 58, 45, 0.14);
  background: var(--cream);
}
.post-chart figcaption {
  margin: 0 0 1rem;
  color: var(--forest);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.65rem;
  text-align: left;
}
.chart-row {
  display: grid;
  grid-template-columns: minmax(90px, 0.35fr) 1fr auto;
  gap: 0.85rem;
  align-items: center;
  margin: 0.65rem 0;
}
.chart-row span,
.chart-row strong {
  color: var(--forest);
}
.chart-row div {
  height: 16px;
  background: rgba(27, 58, 45, 0.12);
  overflow: hidden;
}
.chart-row i {
  display: block;
  height: 100%;
  background: var(--gold);
}
.article-cover {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  margin-bottom: 2rem;
  border-bottom: 4px solid var(--gold);
}
.article-hero { min-height: 62vh; }

.site-footer {
  padding: 70px 5vw 28px;
  background: var(--forest);
  color: var(--cream);
  border-top: 1px solid var(--line);
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
}
.footer-grid h4 {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}
.footer-grid a, .footer-grid span { display: block; color: rgba(245, 240, 232, 0.72); margin: 0.45rem 0; }
.footer-grid p { color: rgba(245, 240, 232, 0.72); margin-top: 1rem; }
.footer-bottom {
  max-width: 1200px;
  margin: 2.5rem auto 0;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(201, 168, 76, 0.18);
  color: rgba(245, 240, 232, 0.62);
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: 82px 0 auto;
    display: none;
    padding: 2rem 5vw;
    background: var(--forest);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
  }
  .menu-open .nav-links { display: flex; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .product-grid, .service-grid, .portfolio-grid, .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .blog-admin-dashboard { grid-template-columns: 1fr; }
  .post-library {
    position: static;
    max-height: 360px;
  }
}

@media (max-width: 640px) {
  .site-nav { padding: 0 1rem; }
  .brand strong { font-size: 0.95rem; }
  .hero, .subhero { padding: 120px 1.1rem 60px; }
  .section, .final-cta { padding: 70px 1.1rem; }
  .product-grid, .service-grid, .portfolio-grid, .blog-grid, .hero-stats { grid-template-columns: 1fr; }
  .blog-card.featured-post { grid-column: auto; }
  .btn-outline { margin: 0.8rem 0 0; }
  .post-library-head,
  .editor-workspace-head,
  .post-manager article,
  .inline-upload {
    grid-template-columns: 1fr;
  }
  .post-library-head,
  .editor-workspace-head,
  .post-manager article {
    display: grid;
    align-items: start;
  }
  .inline-upload button { min-height: 46px; }
  .footer-grid { grid-template-columns: 1fr; }
}
