/* ---------- Tokens ---------- */
:root {
  /* Dark base */
  --bg: #0a0a0c;
  --bg-elev: #111114;
  --bg-elev-2: #16161b;
  --surface: #1a1a20;
  --border: #26262e;
  --border-bright: #34343f;

  /* Text */
  --text: #f4f1ea;
  --text-soft: #b8b4ab;
  --text-mute: #6e6a62;

  /* Accents — coastal-after-dark palette */
  --burgundy: #d94560;       /* hot coral-burgundy */
  --burgundy-deep: #b02a44;
  --gold: #f5b14a;           /* warm sunset gold */
  --teal: #4dd4c0;           /* phosphorescent teal */
  --violet: #9d7cf7;         /* night sky violet */
  --ivory: #f4f1ea;

  /* Fonts */
  --serif-display: "Fraunces", "Playfair Display", "Times New Roman", serif;
  --sans: "Inter", "Helvetica Neue", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "Menlo", "Courier New", monospace;

  --maxw: 1240px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --radius: 14px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
section[id] { scroll-margin-top: 80px; }
body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

/* Subtle ambient glow blobs */
body::before, body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .35;
  pointer-events: none;
  z-index: 0;
}
body::before {
  width: 600px; height: 600px;
  background: var(--burgundy);
  top: -200px; left: -200px;
}
body::after {
  width: 700px; height: 700px;
  background: var(--violet);
  bottom: -300px; right: -200px;
  opacity: .25;
}

main, header, footer { position: relative; z-index: 1; }

img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--ivory); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.eyebrow, .label {
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.eyebrow::before, .label::before {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: var(--teal);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 12, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  gap: 2rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .85rem;
  color: var(--text);
}
.brand-mark {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .15em;
  color: var(--bg);
  background: var(--gold);
  padding: .35rem .55rem;
  border-radius: 6px;
  font-weight: 600;
}
.brand-name {
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.1;
  letter-spacing: -.01em;
}
.brand-name em {
  font-style: italic;
  font-weight: 400;
  color: var(--burgundy);
}
.site-nav { display: flex; gap: 2rem; align-items: center; }
.site-nav a {
  font-family: var(--sans);
  font-size: .92rem;
  font-weight: 500;
  color: var(--text-soft);
  position: relative;
  padding: .4rem 0;
}
.site-nav a:hover { color: var(--text); }
.site-nav a.active { color: var(--text); }
.site-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--burgundy), var(--gold));
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 7vw, 5rem);
  position: relative;
}
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: .45rem .9rem;
  border-radius: 999px;
  margin-bottom: 2rem;
}
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 12px var(--teal);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

.hero-title {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -.03em;
  margin: 0 0 2rem;
  max-width: 18ch;
}
.hero-title em {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(120deg, var(--burgundy), var(--gold) 60%, var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-lede {
  font-size: clamp(1.1rem, 1.4vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-soft);
  margin: 0 0 2.5rem;
  max-width: 55ch;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Tech ticker under hero */
.tech-row {
  margin-top: 4rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 2.5rem;
  align-items: center;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--text-mute);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.tech-row span { color: var(--text-soft); }
.tech-row .accent { color: var(--gold); }
.tech-row .accent-teal { color: var(--teal); }
.tech-row .accent-violet { color: var(--violet); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: .95rem;
  padding: .9rem 1.6rem;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--burgundy), var(--burgundy-deep));
  color: var(--ivory);
  box-shadow: 0 0 0 1px rgba(217, 69, 96, 0.3), 0 10px 30px -10px rgba(217, 69, 96, 0.5);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(217, 69, 96, 0.5), 0 16px 40px -10px rgba(217, 69, 96, 0.6);
  color: var(--ivory);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-bright);
}
.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--text-soft);
  color: var(--text);
}

/* ---------- Section: intro / about ---------- */
.section { padding: clamp(4rem, 8vw, 7rem) 0; position: relative; }
.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-bottom: 4rem;
  align-items: end;
}
.section-head h2 {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0;
  max-width: 22ch;
}
.section-head h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}
.section-head p {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--text-soft);
  margin: 0;
  max-width: 55ch;
}

/* ---------- Pillars (3 cards) ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.pillar {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all .3s ease;
}
.pillar:hover {
  transform: translateY(-4px);
  border-color: var(--border-bright);
}
.pillar::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-color, var(--burgundy));
  opacity: .7;
}
.pillar[data-color="gold"] { --accent-color: var(--gold); }
.pillar[data-color="teal"] { --accent-color: var(--teal); }
.pillar[data-color="violet"] { --accent-color: var(--violet); }

.pillar-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color, var(--burgundy));
  margin-bottom: 1.5rem;
}
.pillar-num {
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--text-mute);
  letter-spacing: .15em;
  margin: 0 0 .75rem;
}
.pillar h3 {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: 1.5rem;
  margin: 0 0 .75rem;
  letter-spacing: -.01em;
}
.pillar p {
  color: var(--text-soft);
  margin: 0;
  font-size: .98rem;
  line-height: 1.6;
}

/* ---------- Code-style accent block ---------- */
.code-block {
  margin-top: 3rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-family: var(--mono);
  font-size: .9rem;
}
.code-head {
  background: var(--bg-elev-2);
  padding: .75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--text-mute);
  font-size: .8rem;
}
.code-dots { display: flex; gap: .35rem; margin-right: .75rem; }
.code-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border-bright);
}
.code-dots span:nth-child(1) { background: #ff5f57; }
.code-dots span:nth-child(2) { background: #febc2e; }
.code-dots span:nth-child(3) { background: #28c840; }
.code-body { padding: 1.5rem; line-height: 1.7; }
.code-body .c-key { color: var(--violet); }
.code-body .c-str { color: var(--gold); }
.code-body .c-com { color: var(--text-mute); }
.code-body .c-fn { color: var(--teal); }

/* ---------- Quote / pull section ---------- */
.pull-section {
  padding: clamp(4rem, 8vw, 6rem) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse at center, rgba(157, 124, 247, 0.08), transparent 60%),
    var(--bg);
  text-align: center;
}
.pull-section blockquote {
  margin: 0 auto;
  max-width: 850px;
}
.pull-section blockquote p {
  font-family: var(--serif-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.3;
  letter-spacing: -.01em;
  margin: 0 0 2rem;
  color: var(--text);
}
.pull-section blockquote p em {
  background: linear-gradient(120deg, var(--gold), var(--burgundy));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
}
.pull-section cite {
  font-family: var(--mono);
  font-style: normal;
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-mute);
}

/* ---------- Page head (services + contact) ---------- */
.page-head {
  padding: clamp(5rem, 10vw, 8rem) 0 clamp(3rem, 6vw, 4rem);
  border-bottom: 1px solid var(--border);
}
.page-title {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1;
  letter-spacing: -.03em;
  margin: 0 0 1.5rem;
}
.page-title em {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(120deg, var(--gold), var(--burgundy));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-deck {
  font-size: clamp(1.15rem, 1.5vw, 1.3rem);
  line-height: 1.55;
  color: var(--text-soft);
  max-width: 55ch;
  margin: 0;
}

/* ---------- Services list ---------- */
.services-section {
  padding: clamp(4rem, 8vw, 7rem) 0;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(22, 22, 27, 0.4));
}
.services-list { margin-top: 1rem; }
.service-item {
  display: grid;
  grid-template-columns: 100px 1fr 1.5fr;
  gap: 3rem;
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
  transition: background .3s ease;
}
.service-item:last-child { border-bottom: none; }
.service-num {
  font-family: var(--mono);
  font-size: .85rem;
  color: var(--burgundy);
  letter-spacing: .1em;
}
.service-title h2,
.service-title h3 {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0 0 .75rem;
}
.service-title h2 em,
.service-title h3 em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}
.service-tag {
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--teal);
  letter-spacing: .15em;
  text-transform: uppercase;
}
.service-body p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-soft);
  margin: 0 0 1.5rem;
}
.service-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.service-features li {
  padding: .65rem 1rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: .95rem;
  font-family: var(--mono);
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: .65rem;
}
.service-features li::before {
  content: "→";
  color: var(--gold);
  font-family: var(--sans);
}

/* ---------- CTA strip ---------- */
.cta-strip {
  padding: clamp(4rem, 7vw, 6rem) 0;
  border-top: 1px solid var(--border);
}
.cta-inner {
  background: linear-gradient(135deg, var(--bg-elev), var(--bg-elev-2));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(217, 69, 96, 0.15), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(245, 177, 74, 0.1), transparent 50%);
  pointer-events: none;
}
.cta-inner > * { position: relative; }
.cta-inner h2 {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.1;
  margin: 0 0 1rem;
}
.cta-inner h2 em {
  font-style: italic;
  color: var(--gold);
}
.cta-inner p {
  font-size: 1.1rem;
  color: var(--text-soft);
  margin: 0 0 2rem;
}

/* ---------- Contact page ---------- */
.contact-section { padding: clamp(3rem, 6vw, 5rem) 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}
.contact-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
}
.contact-large {
  display: block;
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  line-height: 1.2;
  color: var(--text);
  margin: .5rem 0 2rem;
  word-break: break-word;
  letter-spacing: -.01em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.5rem;
}
.contact-large:hover { color: var(--gold); }
.contact-note {
  font-size: .95rem;
  color: var(--text-mute);
  margin: 0 0 2rem;
  font-family: var(--mono);
}
.contact-meta {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.contact-meta-item p {
  margin: .25rem 0 0;
  color: var(--text);
  font-size: .95rem;
}

.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label {
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.field input, .field textarea {
  font-family: var(--sans);
  font-size: 1rem;
  padding: .9rem 1rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  transition: all .2s ease;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--burgundy);
  background: var(--bg-elev-2);
  box-shadow: 0 0 0 3px rgba(217, 69, 96, 0.12);
}
.contact-form .btn { align-self: flex-start; margin-top: .5rem; }
.hidden-field { position: absolute; left: -9999px; visibility: hidden; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: clamp(3rem, 5vw, 4rem) 0 2rem;
  margin-top: 4rem;
  background: var(--bg-elev);
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.footer-brand .footer-name {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: 1.5rem;
  margin: 0 0 .5rem;
  letter-spacing: -.01em;
}
.footer-brand .footer-name em {
  font-style: italic;
  color: var(--burgundy);
  font-weight: 400;
}
.footer-brand .footer-tag {
  color: var(--text-mute);
  margin: 0;
  font-size: .95rem;
  max-width: 38ch;
}
.footer-col h4 {
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 1rem;
  font-weight: 500;
}
.footer-col a {
  display: block;
  color: var(--text-soft);
  font-size: .95rem;
  padding: .25rem 0;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--text-mute);
  letter-spacing: .05em;
}
.footer-bottom .pulse {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .section-head { grid-template-columns: 1fr; gap: 1.5rem; }
  .pillars { grid-template-columns: 1fr; }
  .service-item { grid-template-columns: 1fr; gap: 1.5rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 600px) {
  .header-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .site-nav { gap: 1.25rem; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1; justify-content: center; }
  .contact-card { padding: 1.75rem; }
}
