/* ─────────────────────────────────────────────────────────────────
   Kaski Group — "Sovereign Aegis" design system
   Obsidian dark · Gold accent · Editorial serif · Technical mono
───────────────────────────────────────────────────────────────── */

/* ── Design tokens ── */
:root {
  --ink:          #080A12;
  --ink-2:        #0F1220;
  --ink-3:        #161A28;
  --surface:      rgba(15, 18, 32, 0.8);
  --surface-2:    rgba(22, 26, 40, 0.9);
  --gold:         #C4A255;
  --gold-light:   #DDBF80;
  --gold-faint:   rgba(196, 162, 85, 0.12);
  --gold-border:  rgba(196, 162, 85, 0.22);
  --teal:         #2EC9B8;
  --teal-faint:   rgba(46, 201, 184, 0.08);
  --text:         #EBE8DF;
  --text-soft:    #9A97A0;
  --border:       rgba(255, 255, 255, 0.07);
  --max:          1140px;
  --radius:       1.1rem;
  --radius-sm:    0.65rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", system-ui, sans-serif;
  background: var(--ink);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { text-decoration: none; }
ul { list-style: none; }
p { color: var(--text-soft); }

img, svg { display: block; }

/* ── Layout wrapper ── */
.wrap {
  width: min(calc(100% - 3rem), var(--max));
  margin-inline: auto;
}

.section { padding: 6rem 0; }

/* ── Ambient background ── */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
  background: var(--ink);
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.ambient-orb--teal {
  width: 60vw;
  height: 60vw;
  top: -20vw;
  left: -18vw;
  background: radial-gradient(circle, rgba(46, 201, 184, 0.065) 0%, transparent 65%);
  animation: drift-1 18s ease-in-out infinite alternate;
}

.ambient-orb--gold {
  width: 50vw;
  height: 50vw;
  top: 5vh;
  right: -18vw;
  background: radial-gradient(circle, rgba(196, 162, 85, 0.08) 0%, transparent 65%);
  animation: drift-2 22s ease-in-out infinite alternate;
}

.ambient-orb--mid {
  width: 40vw;
  height: 40vw;
  bottom: -10vh;
  left: 30vw;
  background: radial-gradient(circle, rgba(46, 201, 184, 0.04) 0%, transparent 70%);
  animation: drift-1 26s ease-in-out infinite alternate-reverse;
}

@keyframes drift-1 {
  from { transform: translate(0, 0); }
  to   { transform: translate(4vw, 3vh); }
}

@keyframes drift-2 {
  from { transform: translate(0, 0); }
  to   { transform: translate(-3vw, 4vh); }
}

.ambient-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 80%);
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity  0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) var(--stagger, 0ms),
    transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) var(--stagger, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ── Pill / eyebrow tags ── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: "DM Mono", monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  padding: 0.32em 0.75em;
  border: 1px solid rgba(46, 201, 184, 0.22);
  border-radius: 999px;
  background: var(--teal-faint);
}

.pill::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

/* ── Typography ── */
h1, h2, h3 {
  font-family: "Cormorant Garamond", "Georgia", serif;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(3rem, 6.5vw, 5rem); }
h2 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h3 { font-size: 1.5rem; font-weight: 600; }

/* ── Site header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  background: rgba(8, 10, 18, 0.78);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4.5rem;
}

/* ── Logo ── */
.logo {
  display: inline-flex;
  align-items: center;
  transition: opacity 0.2s;
}

.logo:hover { opacity: 0.85; }

.logo-img {
  height: 52px;
  width: auto;
  display: block;
}

/* ── Navigation ── */
.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-list a {
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.nav-list a:hover {
  color: var(--text);
  background: var(--border);
}

.nav-cta {
  color: var(--gold) !important;
  border-color: var(--gold-border) !important;
  background: var(--gold-faint) !important;
}

.nav-cta:hover {
  background: rgba(196, 162, 85, 0.2) !important;
  color: var(--gold-light) !important;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.8rem 1.5rem;
  font-family: "DM Sans", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 0.2s ease,
              box-shadow 0.25s ease;
}

.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0px); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #18110A;
  font-weight: 700;
}

.btn-gold:hover {
  opacity: 0.9;
  box-shadow: 0 8px 24px rgba(196, 162, 85, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--gold-border);
  background: var(--gold-faint);
  color: var(--gold-light);
}

.btn-lg { padding: 1rem 2.2rem; font-size: 1rem; }

/* ── Section header ── */
.sec-header {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 3rem;
}

/* ── HERO ── */
.hero {
  padding: 7rem 0 5.5rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero-content .reveal:first-child { margin-bottom: 1.8rem; }

.hero-headline {
  display: flex;
  flex-direction: column;
  gap: 0.05em;
  margin-bottom: 1.5rem;
  font-size: clamp(3rem, 6.5vw, 5rem);
  font-family: "Cormorant Garamond", "Georgia", serif;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hl-line {
  display: block;
}

.hl-line--accent {
  font-style: italic;
  color: var(--gold-light);
  font-weight: 600;
}

.hero-lead {
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  max-width: 50ch;
  margin-bottom: 2.2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

/* ── Hero panel ── */
.hero-panel {
  background: var(--surface);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow:
    0 32px 64px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 1px 0 rgba(196, 162, 85, 0.15) inset;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.4;
}

.panel-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(46, 201, 184, 0.5);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(46, 201, 184, 0.5); }
  60%  { box-shadow: 0 0 0 6px rgba(46, 201, 184, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 201, 184, 0); }
}

.panel-status-label {
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.panel-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.panel-list li {
  font-size: 0.9rem;
  color: var(--text-soft);
  padding-left: 1.1em;
  position: relative;
  line-height: 1.5;
}

.panel-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold);
  opacity: 0.55;
  font-family: "DM Mono", monospace;
  font-size: 0.8em;
}

.panel-rule {
  height: 1px;
  background: linear-gradient(90deg, var(--gold-border), transparent);
  margin-bottom: 1rem;
}

.panel-footnote {
  font-family: "DM Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--text-soft);
  opacity: 0.65;
}

/* ── Services cards ── */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition:
    border-color 0.35s ease,
    transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.35s ease;
  position: relative;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gold-faint) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.card:hover {
  border-color: var(--gold-border);
  transform: translateY(-5px);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--gold-border);
}

.card:hover::after { opacity: 1; }

.card-icon {
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--gold);
  margin-bottom: 1.4rem;
  background: var(--gold-faint);
  transition: border-color 0.3s;
}

.card:hover .card-icon { border-color: var(--gold-border); }

.card-icon svg { width: 1.1rem; height: 1.1rem; }

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}

.card p { font-size: 0.93rem; line-height: 1.65; }

/* ── Approach ── */
.section-ruled {
  position: relative;
}

.section-ruled::before,
.section-ruled::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-border) 30%, var(--gold-border) 70%, transparent);
}

.section-ruled::before { top: 0; }
.section-ruled::after  { bottom: 0; }

/* Steps track (decorative line + nodes) */
.steps {
  position: relative;
}

.steps-track {
  position: absolute;
  top: 2.5rem; /* aligns with step-num approximate center */
  left: calc(33.333% / 2);
  right: calc(33.333% / 2);
  height: 1px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.steps-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-border), rgba(196, 162, 85, 0.35), var(--gold-border));
}

.steps-node {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px var(--gold-faint), 0 0 0 5px rgba(196, 162, 85, 0.08);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.step {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: border-color 0.3s ease;
}

.step:hover { border-color: var(--gold-border); }

.step-num {
  display: block;
  font-family: "DM Mono", monospace;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.step h3 { margin-bottom: 0.55rem; font-size: 1.5rem; }
.step p  { font-size: 0.93rem; line-height: 1.65; }

/* ── Industries ── */
.industries-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.industries-copy {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.industries-copy h2 { margin: 0; }
.industries-copy p  { font-size: 1rem; max-width: 40ch; }

.industry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}

.industry-grid li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
  cursor: default;
}

.industry-grid li:hover {
  border-color: var(--gold-border);
  color: var(--gold-light);
  background: var(--gold-faint);
}

/* ── Contact form ── */
.contact-block {
  background:
    linear-gradient(135deg,
      rgba(196, 162, 85, 0.08) 0%,
      rgba(46, 201, 184, 0.03) 50%,
      transparent               100%);
  border: 1px solid var(--gold-border);
  border-radius: 1.5rem;
  padding: 3rem 3.5rem;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3.5rem;
  align-items: start;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.28),
    0 1px 0 rgba(196, 162, 85, 0.12) inset;
  position: relative;
  overflow: hidden;
}

.contact-block::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 10%, var(--gold) 50%, transparent 90%);
  opacity: 0.35;
}

.contact-copy {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-top: 0.25rem;
}

.contact-copy h2 { max-width: 18ch; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.contact-copy p  { font-size: 0.97rem; max-width: 34ch; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-family: "DM Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.form-group input,
.form-group textarea {
  background: rgba(8, 10, 18, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-family: "DM Sans", sans-serif;
  font-size: 0.92rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-soft);
  opacity: 0.45;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold-border);
  box-shadow: 0 0 0 3px rgba(196, 162, 85, 0.1);
}

.form-footer {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.form-success {
  font-size: 0.88rem;
  color: var(--teal);
  font-family: "DM Mono", monospace;
  letter-spacing: 0.03em;
}

/* ── Footer ── */
.site-footer {
  padding: 1.5rem 0 2.5rem;
}

.footer-inner {
  border-top: 1px solid var(--border);
  padding-top: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-inner p {
  font-family: "DM Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  opacity: 0.55;
}

.footer-link {
  font-family: "DM Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  opacity: 0.55;
  transition: opacity 0.2s;
}

.footer-link:hover { opacity: 1; color: var(--gold); }

/* ── Cookie notice ── */
.cookie-bar[hidden] { display: none; }

.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 0.9rem 1.5rem;
  background: rgba(10, 12, 20, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
}

.cookie-bar p {
  font-size: 0.82rem;
  color: var(--text-soft);
  margin: 0;
}

.cookie-bar a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-accept {
  flex-shrink: 0;
  background: var(--gold-faint);
  border: 1px solid var(--gold-border);
  border-radius: 999px;
  color: var(--gold);
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4em 1em;
  cursor: pointer;
  transition: background 0.2s;
}

.cookie-accept:hover { background: rgba(196, 162, 85, 0.22); }

/* ── Privacy policy page ── */
.policy-wrap {
  padding: 5rem 0 6rem;
  max-width: 740px;
}

.policy-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.policy-header h1 { font-size: clamp(2.5rem, 6vw, 4rem); }

.policy-meta {
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  opacity: 0.6;
}

.policy-body {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.policy-body section { display: flex; flex-direction: column; gap: 0.75rem; }

.policy-body h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
}

.policy-body p,
.policy-body li {
  font-size: 0.97rem;
  line-height: 1.75;
  color: var(--text-soft);
}

.policy-body ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.policy-body li {
  padding-left: 1.2em;
  position: relative;
}

.policy-body li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold);
  opacity: 0.5;
  font-family: "DM Mono", monospace;
  font-size: 0.85em;
}

.policy-body a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.2s;
}

.policy-body a:hover { opacity: 0.8; }

.policy-body strong { color: var(--text); font-weight: 600; }

.policy-back { margin-top: 3rem; }

/* ─────────────────────────────────────────────────────────────────
   Responsive
───────────────────────────────────────────────────────────────── */

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-panel {
    max-width: 520px;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-track { display: none; }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .industries-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact-block {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.5rem;
  }
}

@media (max-width: 660px) {
  .section { padding: 4.5rem 0; }
  .hero { padding: 5.5rem 0 4rem; }

  .cards { grid-template-columns: 1fr; }

  .industry-grid { grid-template-columns: 1fr; }

  .nav-list li:not(:last-child) { display: none; }

  .nav-cta { display: inline-flex !important; }

  .hero-headline {
    font-size: clamp(2.6rem, 11vw, 3.5rem);
  }

  .contact-block {
    padding: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .btn-lg {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
