:root {
  --midnight: #1a2744;
  --navy-deep: #0f1628;
  --burgundy: #8b1e3f;
  --burgundy-soft: #a83252;
  --copper: #b87333;
  --copper-bright: #d4a574;
  --ivory: #f5f0e6;
  --ivory-muted: #d9d0c0;
  --plum: #1c1018;
  --plum-soft: #2a1824;
  --lacquer: #14101c;
  --glass: rgba(245, 240, 230, 0.06);
  --glass-border: rgba(184, 115, 51, 0.35);
  --text: var(--ivory);
  --text-muted: var(--ivory-muted);
  --accent: var(--copper);
  --accent-hot: var(--burgundy);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
  --space-xs: 0.35rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2.5rem;
  --space-xl: 4.5rem;
  --radius: 2px;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(139, 30, 63, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 0%, rgba(184, 115, 51, 0.12), transparent 50%),
    linear-gradient(180deg, var(--navy-deep) 0%, var(--plum) 48%, var(--lacquer) 100%);
  background-attachment: fixed;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--copper-bright);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.25s var(--ease);
}

a:hover {
  color: var(--ivory);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--ivory);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-top: 0; }
h3 { font-size: 1.45rem; }

p { margin: 0 0 1rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--copper);
  color: var(--plum);
  padding: 0.5rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.coord {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
  display: block;
  margin-bottom: var(--space-sm);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(15, 22, 40, 0.82);
  border-bottom: 1px solid var(--glass-border);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ivory);
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1.5px solid var(--copper);
  background:
    radial-gradient(circle at 50% 50%, var(--burgundy) 0 18%, transparent 19%),
    radial-gradient(circle at 50% 50%, transparent 42%, rgba(245, 240, 230, 0.15) 43% 44%, transparent 45%);
  box-shadow: inset 0 0 0 4px rgba(26, 39, 68, 0.9);
  animation: ring-breathe 6s ease-in-out infinite;
}

@keyframes ring-breathe {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(12deg); }
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-coord {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  color: var(--copper);
  text-transform: uppercase;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.1rem;
}

.site-nav a {
  color: var(--ivory-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 400;
}

.site-nav a:hover {
  color: var(--ivory);
}

.nav-cta {
  border: 1px solid var(--copper);
  padding: 0.4rem 0.85rem;
  color: var(--copper-bright) !important;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.nav-cta:hover {
  background: var(--copper);
  color: var(--plum) !important;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--copper);
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  background: var(--ivory);
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(20, 16, 28, 0.97);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 1.25rem 1.5rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Layout helpers */
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: var(--space-xl) 1.25rem;
}

.wrap-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-xl) 1.25rem;
}

.section-head {
  margin-bottom: var(--space-lg);
  max-width: 36rem;
}

/* Buttons — telescope control feel */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease);
}

.btn::before {
  content: "";
  position: absolute;
  inset: -3px;
  border: 1px solid transparent;
  border-radius: 3px;
  transition: border-color 0.35s var(--ease), transform 0.45s var(--ease);
}

.btn-primary {
  background: linear-gradient(135deg, var(--copper) 0%, #9a5a28 100%);
  color: var(--plum);
  box-shadow: 0 0 0 1px rgba(184, 115, 51, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px) rotate(-0.5deg);
  color: var(--plum);
  box-shadow: 0 8px 24px rgba(184, 115, 51, 0.25);
}

.btn-primary:hover::before {
  border-color: var(--copper-bright);
  transform: rotate(3deg);
}

.btn-secondary {
  background: transparent;
  color: var(--ivory);
  box-shadow: inset 0 0 0 1px var(--copper);
}

.btn-secondary:hover {
  background: var(--glass);
  color: var(--ivory);
  transform: translateX(3px);
}

.btn-secondary:hover::before {
  border-color: var(--burgundy-soft);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: var(--space-md);
}

/* Hero — full bleed */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.55);
  animation: hero-drift 28s ease-in-out infinite alternate;
}

@keyframes hero-drift {
  from { transform: scale(1.05) translate(0, 0); }
  to { transform: scale(1.12) translate(-1.5%, 1%); }
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 22, 40, 0.92) 0%, rgba(15, 22, 40, 0.55) 48%, rgba(28, 16, 24, 0.35) 100%),
    linear-gradient(0deg, rgba(20, 16, 28, 0.95) 0%, transparent 42%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 5rem 1.25rem 4rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 4.8rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--ivory);
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.45);
  animation: rise-in 0.9s var(--ease) both;
}

.hero-lead {
  max-width: 28rem;
  font-size: 1.15rem;
  color: var(--ivory-muted);
  animation: rise-in 1s 0.15s var(--ease) both;
}

.hero-content .btn-row {
  animation: rise-in 1s 0.3s var(--ease) both;
}

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

/* Panels */
.panel {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: var(--space-md) var(--space-lg);
  backdrop-filter: blur(8px);
}

.panel-dark {
  background: rgba(26, 39, 68, 0.45);
}

/* Service list */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.offer-item {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 1.25rem;
  transition: border-color 0.3s var(--ease);
}

.offer-item:hover {
  border-color: var(--copper);
}

.offer-item img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 1rem;
  filter: brightness(0.85);
  transition: filter 0.4s var(--ease);
}

.offer-item:hover img {
  filter: brightness(1);
}

.offer-item h3 {
  margin: 0 0 0.5rem;
  color: var(--ivory);
}

.offer-meta {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.5rem;
}

/* Split sections */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-lg);
  align-items: center;
}

@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
}

.split-visual img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

/* Quote */
.quote-block {
  border-left: 2px solid var(--burgundy);
  padding-left: 1.25rem;
  margin: var(--space-lg) 0;
}

.quote-block p {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-style: italic;
  color: var(--ivory);
}

.quote-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* Pricing */
.rate-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-md) 0;
}

.rate-table th,
.rate-table td {
  text-align: left;
  padding: 1rem 0.75rem;
  border-bottom: 1px solid var(--glass-border);
  vertical-align: top;
}

.rate-table th {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 500;
}

.rate-price {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--copper-bright);
  white-space: nowrap;
}

/* Forms */
.form {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  gap: 0.4rem;
}

.form-row label {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper);
}

.form-row input,
.form-row select,
.form-row textarea {
  font: inherit;
  color: var(--ivory);
  background: rgba(15, 22, 40, 0.7);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
}

.form-row textarea {
  min-height: 140px;
  resize: vertical;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--copper);
  box-shadow: 0 0 0 2px rgba(184, 115, 51, 0.2);
}

.field-error {
  color: #e8a0b0;
  font-size: 0.85rem;
  min-height: 1.2em;
}

.form-status {
  padding: 0.85rem 1rem;
  border: 1px solid var(--glass-border);
  display: none;
}

.form-status.is-visible { display: block; }
.form-status.is-success {
  border-color: var(--copper);
  color: var(--copper-bright);
}
.form-status.is-error {
  border-color: var(--burgundy-soft);
  color: #e8a0b0;
}

/* Blog */
.post-list {
  display: grid;
  gap: 2rem;
}

.post-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  text-decoration: none;
  color: inherit;
  align-items: start;
}

@media (max-width: 640px) {
  .post-card { grid-template-columns: 1fr; }
}

.post-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--glass-border);
}

.post-card h2 {
  font-size: 1.6rem;
  margin: 0.35rem 0 0.5rem;
}

.post-date {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
}

.prose p {
  max-width: 42rem;
}

.prose .cover {
  margin: 0 0 var(--space-lg);
  border: 1px solid var(--glass-border);
}

.prose .cover img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

/* Legal */
.legal h2 {
  margin-top: 2rem;
  font-size: 1.5rem;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 1rem 0;
}

.legal th,
.legal td {
  border: 1px solid var(--glass-border);
  padding: 0.65rem 0.75rem;
  text-align: left;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--glass-border);
  background: rgba(10, 8, 14, 0.85);
  margin-top: var(--space-xl);
  padding: var(--space-lg) 1.25rem var(--space-md);
}

.footer-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}

.footer-tag {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.5rem;
}

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

.footer-links li { margin-bottom: 0.35rem; }

.footer-copy {
  max-width: 1120px;
  margin: 2rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(20, 16, 28, 0.96);
  border-top: 1px solid var(--glass-border);
  padding: 1rem 1.25rem;
  backdrop-filter: blur(12px);
}

.cookie-banner[hidden] { display: none !important; }

.cookie-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-inner p {
  margin: 0;
  flex: 1 1 280px;
  font-size: 0.95rem;
  color: var(--ivory-muted);
}

.cookie-actions {
  display: flex;
  gap: 0.65rem;
}

/* Lab timeline */
.lab-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: lab;
}

.lab-steps li {
  position: relative;
  padding: 1.25rem 0 1.25rem 3.5rem;
  border-bottom: 1px solid var(--glass-border);
  counter-increment: lab;
}

.lab-steps li::before {
  content: counter(lab, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.25rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--copper);
}

/* 404 */
.page-404 {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--space-xl) 1.25rem;
}

.page-404 .coord {
  margin-bottom: 0.5rem;
}

/* Detail meta */
.detail-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin: var(--space-md) 0 var(--space-lg);
  padding: var(--space-md);
  border: 1px solid var(--glass-border);
  background: rgba(26, 39, 68, 0.35);
}

.detail-meta dt {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.25rem;
}

.detail-meta dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.checklist li {
  padding: 0.45rem 0 0.45rem 1.4rem;
  position: relative;
  border-bottom: 1px solid rgba(184, 115, 51, 0.15);
}

.checklist li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--copper);
  font-size: 0.75rem;
  top: 0.6rem;
}

.img-placeholder {
  background: linear-gradient(135deg, var(--midnight), var(--plum-soft));
  border: 1px solid var(--glass-border);
  min-height: 180px;
}
