:root {
  --bg-dark: #233b45;
  --bg-darker: #172a32;
  --bg-deep: #102027;
  --surface: #294753;
  --surface-2: #315663;
  --surface-3: rgba(255,255,255,0.035);
  --text: #edf4f7;
  --muted: #bfd0d7;
  --muted-2: #9bb3bc;
  --accent: #20ce88;
  --accent-2: #8fc7d1;
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.14);
  --shadow: 0 18px 40px rgba(0,0,0,0.22);
  --shadow-soft: 0 10px 24px rgba(0,0,0,0.16);
  --radius: 18px;
  --radius-lg: 24px;
  --max: 1180px;
  --reading: 72ch;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a { color: inherit; }

.container {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}
.narrow { max-width: 900px; }
.center { text-align: center; }
.align-start { align-items: start; }

.section {
  padding: 88px 0;
  position: relative;
}
.section-light {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.018), rgba(255,255,255,0.008)),
    var(--bg-dark);
}
.section-dark {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.01), rgba(0,0,0,0.06)),
    var(--bg-darker);
}
.section-title-only {
  padding-top: 72px;
  padding-bottom: 28px;
}
.section-divider {
  padding-top: 78px;
  padding-bottom: 34px;
}

.hero {
  padding-top: 56px;
  padding-bottom: 78px;
  border-bottom: 1px solid var(--line);
}
.hero-grid,
.two-col,
.three-up {
  display: grid;
  gap: 32px;
}
.hero-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: center;
  gap: 96px;
}
.two-col {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
}
.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.gap-large { gap: 40px; }
.content-grid { align-items: start; }

.hero-left {
  max-width: 760px;
}
.hero-right {
  display: flex;
  justify-content: flex-end;
  padding-left: 32px;
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.82rem;
  font-weight: 700;
}
.role-title {
  margin: 0 0 18px;
  font-family: Oswald, Inter, sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.accent,
.section-title,
.project-title,
.content-card h4,
.transition-line,
.cta-link {
  color: var(--accent);
}
.hero-title {
  margin: 0;
  font-family: Oswald, Inter, sans-serif;
  font-size: clamp(2.2rem, 3.55vw, 4rem);
  line-height: 1.06;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-wrap: balance;
}
.hero-metrics {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  max-width: 60ch;
  font-size: 1.03rem;
}
.hero-metrics p {
  margin: 0 0 10px;
  padding: 10px 14px;
  border-left: 3px solid var(--accent);
  background: rgba(32, 206, 136, 0.07);
  border-radius: 0 8px 8px 0;
  color: var(--accent-2);
}
.hero-metrics p:last-child {
  margin-bottom: 0;
}
.hero-metrics .metrics-label {
  padding: 0;
  border-left: none;
  background: none;
  border-radius: 0;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted-2);
  margin-bottom: 12px;
}
.hero-stack {
  font-family: Oswald, Inter, sans-serif;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.05;
  text-align: right;
  color: rgba(255,255,255,0.1);
  letter-spacing: 0.06em;
  text-shadow: none;
  font-weight: 700;
  user-select: none;
  margin-top: -80px;
}
.hero-stack span {
  display: block;
}
.hero-stack span + span {
  margin-top: 10px;
}
.avatar {
  width: 124px;
  height: 124px;
  object-fit: cover;
  object-position: 50% 15%;
  border-radius: 50%;
  margin-bottom: 22px;
  border: 3px solid var(--accent);
  box-shadow: 0 10px 30px rgba(0,0,0,0.28), 0 0 0 6px rgba(32,206,136,0.15);
}

.section-title,
.project-title {
  margin: 0 0 14px;
  font-family: Oswald, Inter, sans-serif;
  font-size: clamp(2rem, 2.8vw, 2.85rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.01em;
}
.project-title {
  font-size: clamp(2rem, 2.4vw, 2.65rem);
}
.project-subtitle,
.lead-copy,
.tagline {
  margin: 0;
  color: var(--accent-2);
}
.project-subtitle {
  font-family: Oswald, Inter, sans-serif;
  font-size: clamp(1.2rem, 1.4vw, 1.55rem);
  line-height: 1.3;
}
.lead-copy {
  max-width: var(--reading);
  margin: 14px auto 0;
  font-size: 1.14rem;
  color: var(--muted);
}
.tagline {
  margin-top: 18px;
  font-family: Oswald, Inter, sans-serif;
  font-size: 1.5rem;
  line-height: 1.18;
  color: var(--accent);
}
.transition-line {
  margin: 0;
  font-family: Oswald, Inter, sans-serif;
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  line-height: 1.28;
}
.intro-block {
  max-width: 900px;
  margin: 0 auto 30px;
}

.content-card,
.visual-card,
.center-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(2px);
}
.content-card {
  padding: 30px;
}
.center-card {
  padding: 34px;
}
.visual-card {
  overflow: hidden;
  align-self: start;
}
.visual-card img,
.visual-wide img {
  width: 100%;
  height: auto;
}
.visual-wide {
  margin-top: 34px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.content-card h4 {
  margin: 0 0 14px;
  font-family: Oswald, Inter, sans-serif;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.01em;
}
.content-card p {
  margin: 0 0 13px;
  color: var(--text);
}
.content-card p:last-child {
  margin-bottom: 0;
}
.content-card ul {
  margin: 0;
  padding-left: 20px;
}
.content-card li {
  margin-bottom: 11px;
  color: var(--text);
}
.content-card li:last-child {
  margin-bottom: 0;
}
.content-block + .content-block {
  margin-top: 24px;
  padding-top: 4px;
}
.content-block h4 {
  margin-bottom: 12px;
}

.center-card,
.center-card .center-text,
.center-card .tagline {
  text-align: center;
}
.logo-lockup {
  position: relative;
  display: inline-block;
  margin: 0 auto 20px;
}
.logo-mark {
  width: min(190px, 46vw);
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
}
.logo-tm {
  position: absolute;
  top: 10px;
  right: -18px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  font-weight: 700;
}
.center-card .project-subtitle {
  max-width: 28ch;
  margin-inline: auto;
}

.tm-mark {
  display: none;
}
.proprietary-term {
  color: var(--accent);
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.term-tm {
  font-size: 0.6em;
  color: var(--muted-2);
  font-weight: 700;
  letter-spacing: 0.08em;
  vertical-align: super;
  line-height: 0;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border: 1px solid rgba(32, 206, 136, 0.35);
  border-radius: 999px;
  background: rgba(32, 206, 136, 0.08);
  font-size: 1.02rem;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.cta-link:hover {
  transform: translateY(-1px);
  background: rgba(32, 206, 136, 0.14);
  border-color: rgba(32, 206, 136, 0.55);
}

.section-dark .content-card,
.section-dark .visual-card,
.section-dark .center-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
}

.site-footer {
  padding: 28px 0 42px;
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  text-align: center;
}
.site-footer p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
}

.nw-layout {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: min(1480px, calc(100% - 48px));
  margin-inline: auto;
}
.nw-row-top,
.nw-row-bottom {
  display: grid;
  gap: 32px;
  align-items: center;
}
.nw-row-top {
  grid-template-columns: 2.5fr 1fr;
}
.nw-row-bottom {
  grid-template-columns: 1fr 2.5fr;
}
.nw-visual-primary {
  align-self: start;
}
.nw-visual-primary img {
  width: 100%;
  height: auto;
}
.nw-card-side {
  align-self: center;
}

@media (max-width: 980px) {
  .nw-row-top,
  .nw-row-bottom {
    grid-template-columns: 1fr;
  }
  .nw-row-bottom .nw-card-side {
    order: 2;
  }
  .nw-row-bottom .nw-visual-primary {
    order: 1;
  }
}

.top-space { margin-top: 34px; }
.top-space-small { margin-top: 22px; }
.bottom-space-small { margin-bottom: 22px; }

.contact-section .section-title {
  margin-bottom: 16px;
}
.contact-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 32px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
  min-width: 200px;
}
.contact-item:hover {
  border-color: rgba(32,206,136,0.45);
  background: rgba(32,206,136,0.07);
  transform: translateY(-2px);
}
.contact-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.contact-value {
  font-size: 1.05rem;
  color: var(--accent);
  font-weight: 500;
}

.solve-list {
  list-style: none;
  padding: 0;
  margin: 28px auto 0;
  max-width: 68ch;
  display: grid;
  gap: 12px;
  text-align: left;
}
.solve-list li {
  padding: 13px 18px;
  border-left: 3px solid var(--accent);
  background: rgba(32, 206, 136, 0.06);
  border-radius: 0 8px 8px 0;
  color: var(--text);
  font-size: 1.04rem;
  line-height: 1.5;
}

.where-i-fit-list li strong {
  color: var(--accent);
  font-weight: 600;
}

.ea-takeaways {
  margin: 28px auto 0;
  max-width: 820px;
  padding: 20px 26px;
  background: rgba(32, 206, 136, 0.07);
  border: 1px solid rgba(32, 206, 136, 0.2);
  border-radius: var(--radius);
}
.takeaways-label {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted-2);
}
.ea-takeaways ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}
.ea-takeaways li {
  color: var(--accent-2);
  font-size: 1.03rem;
  line-height: 1.5;
}

.cta-statement {
  margin: 0 auto 28px;
  max-width: 56ch;
  font-family: Oswald, Inter, sans-serif;
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
  color: var(--muted);
  line-height: 1.35;
}

/* ── Blog ─────────────────────────────────────────── */

.site-nav {
  position: absolute;
  top: 0;
  right: 0;
  padding: 18px 24px;
  z-index: 10;
}
.site-nav a {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s ease;
}
.site-nav a:hover {
  color: var(--accent);
}

.back-link {
  display: inline-block;
  margin-bottom: 22px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s ease;
}
.back-link:hover {
  color: var(--accent);
}

.blog-index-header {
  padding-top: 56px;
  padding-bottom: 72px;
}
.blog-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 64px;
  align-items: center;
}
.blog-hero-left {
  max-width: 620px;
}
.blog-hero-right {
  display: flex;
  justify-content: flex-end;
}
.blog-hero-img {
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.blog-tagline {
  margin: 18px 0 0;
  font-family: Oswald, Inter, sans-serif;
  font-size: clamp(1.2rem, 1.6vw, 1.5rem);
  color: var(--muted);
  line-height: 1.35;
}
@media (max-width: 860px) {
  .blog-hero-grid {
    grid-template-columns: 1fr;
  }
  .blog-hero-right {
    justify-content: flex-start;
  }
  .blog-hero-img {
    max-width: 100%;
  }
}

.post-list {
  display: grid;
  gap: 20px;
}
.post-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025));
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.post-card:hover {
  border-color: rgba(32,206,136,0.35);
  background: rgba(32,206,136,0.05);
  transform: translateY(-2px);
}
.post-card-link {
  display: block;
  padding: 26px 30px;
  text-decoration: none;
  color: inherit;
}
.post-card-date {
  margin: 0 0 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.post-card-title {
  margin: 0 0 10px;
  font-family: Oswald, Inter, sans-serif;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--accent);
}
.post-card-description {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 68ch;
}
.post-card-cta {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.no-posts {
  color: var(--muted);
  font-size: 1.1rem;
}

.post-header {
  padding-top: 56px;
  padding-bottom: 72px;
}

/* Post header with hero image */
.post-header-with-image {
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: 40px;
  align-items: center;
  max-width: 880px;
}
.post-header-text { min-width: 0; }
.post-header-image {
  width: 270px;
  overflow: hidden;
}
.post-header-image img {
  width: 270px !important;
  max-width: none !important;
  height: auto;
  border-radius: 14px;
}

@media (max-width: 640px) {
  .post-header-image { display: none; }
}

.post-description {
  margin: 18px 0 0;
  max-width: 58ch;
  font-size: 1.12rem;
  color: var(--muted);
  line-height: 1.6;
}

.post-content {
  max-width: 70ch;
}
.post-content h2 {
  margin: 2em 0 0.6em;
  font-family: Oswald, Inter, sans-serif;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  font-weight: 500;
  color: var(--accent);
  line-height: 1.15;
}
.post-content h3 {
  margin: 1.6em 0 0.5em;
  font-family: Oswald, Inter, sans-serif;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  font-weight: 500;
  color: var(--accent-2);
}
.post-content p {
  margin: 0 0 1.3em;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.75;
}
.post-content ul,
.post-content ol {
  margin: 0 0 1.3em;
  padding-left: 22px;
}
.post-content li {
  margin-bottom: 0.5em;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.7;
}
.post-content strong {
  color: var(--accent-2);
  font-weight: 600;
}
.post-content blockquote {
  margin: 1.5em 0;
  padding: 14px 20px;
  border-left: 3px solid var(--accent);
  background: rgba(32,206,136,0.06);
  border-radius: 0 8px 8px 0;
  color: var(--accent-2);
  font-size: 1.06rem;
  line-height: 1.65;
}
.post-content blockquote p {
  margin: 0;
  color: inherit;
}
.post-content code {
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 0.9em;
  background: rgba(255,255,255,0.08);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent-2);
}
.post-content pre {
  margin: 1.5em 0;
  padding: 20px 24px;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-x: auto;
}
.post-content pre code {
  background: none;
  padding: 0;
  font-size: 0.92rem;
  color: var(--text);
}
.post-content hr {
  margin: 2.5em 0;
  border: none;
  border-top: 1px solid var(--line-strong);
}

.post-comments {
  padding-top: 56px;
  padding-bottom: 72px;
}
.comments-label {
  margin: 0 0 24px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted-2);
}

/* ── End Blog ─────────────────────────────────────── */

.footer-trademark {
  margin-top: 8px !important;
  font-size: 0.82rem !important;
  color: var(--muted-2) !important;
  opacity: 0.7;
}

@media (min-width: 981px) {
  .two-col.align-start > .content-card,
  .two-col.align-start > .visual-card {
    align-self: start;
  }

  .section-light .two-col > .visual-card,
  .section-light .two-col > aside.visual-card {
    position: sticky;
    top: 24px;
  }

  .section-light .two-col .visual-card img {
    min-height: 100%;
  }
}

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

  .hero-right {
    justify-content: flex-start;
  }

  .hero-stack {
    text-align: left;
    font-size: clamp(2.8rem, 12vw, 4.8rem);
  }
}

@media (max-width: 980px) {
  .two-col,
  .three-up {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 72px 0;
  }

  .content-card,
  .center-card {
    padding: 26px;
  }

  .section-title-only {
    padding-top: 62px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--max), calc(100% - 28px));
  }

  .hero {
    padding-top: 42px;
    padding-bottom: 60px;
  }

  .section {
    padding: 56px 0;
  }

  .content-card,
  .center-card {
    padding: 22px;
  }

  .hero-metrics,
  .lead-copy,
  .content-card p,
  .content-card li,
  .project-subtitle {
    font-size: 0.98rem;
  }

  .content-card h4 {
    font-size: 1.2rem;
  }

  .logo-tm {
    top: 6px;
    right: -12px;
  }

  .cta-link {
    width: 100%;
    max-width: 100%;
    word-break: break-word;
    text-align: center;
    padding-inline: 16px;
  }
}
