:root {
  --ink: #121b2a;
  --muted: #5d6879;
  --line: #dfe6ee;
  --panel: #ffffff;
  --canvas: #f7fafc;
  --teal: #16b89a;
  --teal-dark: #0d8f78;
  --sidebar: #071719;
  --sidebar-soft: #0e2527;
  --shadow: 0 20px 60px rgba(18, 27, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 260px;
  display: flex;
  flex-direction: column;
  padding: 48px 0 34px;
  color: #eefdf9;
  background:
    radial-gradient(circle at 20% 12%, rgba(22, 184, 154, 0.18), transparent 28%),
    linear-gradient(180deg, #071719 0%, #0b2022 62%, #071719 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  display: grid;
  gap: 16px;
  justify-items: center;
  padding: 0 28px 34px;
  text-align: center;
}

.monogram {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  color: var(--teal);
  border: 2px solid var(--teal);
  border-radius: 50%;
  font-weight: 800;
  font-size: 1.35rem;
}

.brand-name {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
}

.brand-role {
  margin: 2px 0 0;
  color: rgba(238, 253, 249, 0.72);
  font-size: 0.94rem;
}

.nav {
  display: grid;
  gap: 2px;
}

.nav-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  gap: 12px;
  padding: 0 30px;
  color: rgba(238, 253, 249, 0.82);
  border-left: 4px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-left-color: var(--teal);
}

.nav-icon {
  width: 20px;
  color: var(--teal);
  text-align: center;
}

.resume-button {
  margin: auto 30px 28px;
  display: grid;
  min-height: 46px;
  place-items: center;
  color: var(--teal);
  border: 1px solid var(--teal);
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.resume-button:hover {
  color: #03100e;
  background: var(--teal);
}

.sidebar-footer {
  display: flex;
  gap: 18px;
  justify-content: center;
  color: rgba(238, 253, 249, 0.9);
  font-weight: 700;
}

.page-shell {
  margin-left: 260px;
  min-height: 100vh;
  background: #fff;
}

.section {
  padding: 56px 64px;
  border-bottom: 1px solid var(--line);
}

.section.compact {
  padding-top: 48px;
  padding-bottom: 48px;
}

.hero {
  min-height: 420px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 440px);
  align-items: center;
  gap: 42px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.86) 58%, rgba(247, 250, 252, 0.45) 100%),
    radial-gradient(circle at 90% 18%, rgba(22, 184, 154, 0.16), transparent 30%);
}

.hero h1,
.contact-hero h1,
.section h2 {
  margin: 0;
  color: var(--ink);
  letter-spacing: 0;
  line-height: 1.08;
}

.hero h1,
.contact-hero h1 {
  max-width: 720px;
  font-size: clamp(2.3rem, 5vw, 4.55rem);
  font-weight: 800;
}

.section h2 {
  font-size: clamp(1.75rem, 2.7vw, 2.55rem);
  font-weight: 800;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.lead {
  max-width: 640px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.highlight-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.highlight-strip span,
.chips span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  color: #243347;
  background: #f0f6f8;
  border: 1px solid #dcebed;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-visual {
  position: relative;
  justify-self: end;
  width: min(100%, 390px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(145deg, #e8f0f4, #ffffff);
  box-shadow: var(--shadow);
}

.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-visual::before {
  inset: -18px;
  border: 1px solid rgba(22, 184, 154, 0.28);
}

.hero-visual::after {
  right: -26px;
  top: 18%;
  width: 110px;
  height: 188px;
  border: 1px dotted rgba(18, 27, 42, 0.18);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  filter: saturate(0.92);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.service {
  min-width: 0;
}

.service-icon {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  place-items: center;
  color: var(--teal-dark);
  border: 1px solid rgba(13, 143, 120, 0.36);
  border-radius: 4px;
  font-weight: 800;
}

.service h3,
.timeline h3,
.skill-groups h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.3;
}

.service p,
.feature-card p,
.copy-stack p,
.skills-layout p,
.timeline p {
  margin: 0;
  color: var(--muted);
}

.feature-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 10px 32px rgba(18, 27, 42, 0.04);
}

.feature-card h2 {
  margin-bottom: 10px;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.text-link {
  flex: 0 0 auto;
  color: var(--teal-dark);
  font-weight: 800;
}

.text-link::after {
  content: " ->";
}

.blog-preview {
  background: #fbfdfe;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.article-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 10px 32px rgba(18, 27, 42, 0.04);
}

.featured-article {
  grid-column: span 1;
  background:
    linear-gradient(160deg, rgba(22, 184, 154, 0.09), rgba(255, 255, 255, 0) 55%),
    #fff;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--teal-dark);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.article-card h3,
.article-row h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.22rem;
  line-height: 1.25;
}

.article-card p,
.article-row p {
  margin: 0;
  color: var(--muted);
}

.blog-page,
.article-page {
  background: #fff;
}

.blog-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 48px;
  align-items: end;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.86)),
    radial-gradient(circle at 88% 16%, rgba(22, 184, 154, 0.18), transparent 30%);
}

.blog-hero h1,
.article-header h1 {
  margin: 0;
  color: var(--ink);
  letter-spacing: 0;
  line-height: 1.08;
  font-size: clamp(2.2rem, 4.6vw, 4.1rem);
  font-weight: 800;
}

.blog-stats {
  display: grid;
  gap: 16px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.blog-stats div {
  display: grid;
  gap: 4px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.blog-stats div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.blog-stats span,
.article-date span {
  color: var(--teal-dark);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.blog-stats strong {
  color: var(--ink);
  line-height: 1.35;
}

.article-list {
  display: grid;
  gap: 18px;
}

.article-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 10px 32px rgba(18, 27, 42, 0.04);
}

.article-date {
  display: grid;
  width: 64px;
  min-height: 64px;
  place-items: center;
  align-content: center;
  border: 1px solid rgba(13, 143, 120, 0.36);
  border-radius: 6px;
}

.article-date strong {
  color: var(--ink);
  font-size: 1.65rem;
  line-height: 1;
}

.article-header {
  display: grid;
  gap: 22px;
  background: #fbfdfe;
}

.back-link {
  width: fit-content;
}

.article-body {
  max-width: 820px;
}

.article-body p {
  margin: 0 0 24px;
  color: #364457;
  font-size: 1.08rem;
}

.article-body h2 {
  margin: 34px 0 14px;
  font-size: clamp(1.45rem, 2vw, 1.95rem);
}

.article-body blockquote {
  min-height: auto;
  margin: 34px 0;
  border-left: 4px solid var(--teal);
}

.related-articles {
  background: #f8fbfc;
}

.two-column,
.skills-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr);
  gap: 54px;
}

.copy-stack {
  display: grid;
  gap: 18px;
}

.skill-groups {
  display: grid;
  gap: 28px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.timeline {
  display: grid;
  gap: 26px;
}

.timeline-item {
  position: relative;
  padding-left: 34px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 18px;
  bottom: -28px;
  width: 1px;
  background: var(--line);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-dot {
  position: absolute;
  left: 0;
  top: 6px;
  width: 15px;
  height: 15px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 1px var(--teal);
}

.quote-section {
  background: #f8fbfc;
}

.quotes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

blockquote {
  margin: 0;
  min-height: 140px;
  padding: 24px;
  display: flex;
  align-items: center;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.45;
}

.contact-section {
  display: grid;
  gap: 24px;
  background: var(--ink);
  color: #fff;
}

.contact-section h2 {
  max-width: 820px;
  color: #fff;
}

.contact-section .eyebrow {
  color: var(--teal);
}

.primary-action {
  display: inline-grid;
  width: fit-content;
  min-height: 48px;
  place-items: center;
  padding: 0 18px;
  color: #03100e;
  background: var(--teal);
  border: 0;
  border-radius: 4px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.primary-action:hover {
  background: #18caaa;
}

.contact-page {
  background: #fff;
}

.contact-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 48px;
  align-items: end;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.86)),
    radial-gradient(circle at 88% 16%, rgba(22, 184, 154, 0.18), transparent 30%);
}

.contact-summary {
  display: grid;
  gap: 16px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.contact-summary div {
  display: grid;
  gap: 4px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.contact-summary div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.contact-summary span {
  color: var(--teal-dark);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-summary strong {
  color: var(--ink);
  line-height: 1.35;
}

.contact-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 42px;
  align-items: start;
}

.contact-panel,
.response-card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 10px 32px rgba(18, 27, 42, 0.04);
}

.contact-form {
  display: grid;
  gap: 22px;
  margin-top: 26px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.contact-form label > span,
.contact-form legend {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  color: var(--ink);
  background: #f8fbfc;
  border: 1px solid #cfdbe5;
  border-radius: 4px;
  font: inherit;
}

.contact-form textarea {
  min-height: 170px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(22, 184, 154, 0.22);
  border-color: var(--teal-dark);
  background: #fff;
}

.contact-form .field-error {
  border-color: #c53f3f;
}

.contact-form fieldset {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.contact-form legend {
  padding: 0 6px;
}

.check-option {
  display: flex;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 700;
}

.check-option input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--teal-dark);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.form-status {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.contact-details {
  display: grid;
  gap: 24px;
}

.detail-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.response-card h3 {
  margin: 0 0 10px;
  line-height: 1.25;
}

.response-card p {
  margin: 0;
  color: var(--muted);
}

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

@media (max-width: 1020px) {
  .sidebar {
    position: static;
    width: auto;
    min-height: auto;
    padding: 24px 20px 18px;
  }

  .brand {
    grid-template-columns: auto 1fr;
    justify-items: start;
    text-align: left;
    padding: 0 0 20px;
  }

  .monogram {
    width: 54px;
    height: 54px;
    font-size: 1rem;
  }

  .nav {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .nav-link {
    min-height: 42px;
    padding: 0 16px;
    border-left: 0;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
  }

  .nav-link:hover,
  .nav-link.active {
    border-left-color: transparent;
    border-bottom-color: var(--teal);
  }

  .resume-button,
  .sidebar-footer {
    display: none;
  }

  .page-shell {
    margin-left: 0;
  }

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

  .contact-hero,
  .blog-hero,
  .contact-workspace {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    justify-self: start;
    width: min(72vw, 320px);
  }

  .services-grid,
  .article-grid,
  .quotes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
  }

  .section {
    padding: 38px 22px;
  }

  .hero {
    min-height: auto;
    gap: 28px;
  }

  .highlight-strip,
  .feature-card,
  .section-heading,
  .two-column,
  .skills-layout,
  .form-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .services-grid,
  .article-grid,
  .quotes {
    grid-template-columns: 1fr;
  }

  .article-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .feature-card,
  .article-card,
  .article-row {
    padding: 22px;
  }

  blockquote {
    min-height: auto;
  }
}
