/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #0b2038;
  --navy: #0c447c;
  --teal: #1d9e75;
  --teal-tint: #eaf6f1;
  --navy-tint: #eaf1f8;
  --paper: #ffffff;
  --muted: #55677a;
  --radius: 20px;
  --max-width: 1120px;

  --font-display: "Space Grotesk", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
}

/* ---------- Base ---------- */
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy);
}

h1 {
  font-size: 56px;
  line-height: 1.08;
}
h2 {
  font-size: 34px;
  line-height: 1.2;
  margin-bottom: 20px;
}
h3 {
  font-size: 20px;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--ink);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--teal);
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1.5px solid transparent;
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--teal);
  color: #ffffff;
}
.btn-primary:hover {
  background: #17835f;
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-ghost:hover {
  background: var(--navy-tint);
}

.btn-small {
  padding: 8px 16px;
  font-size: 14px;
}
.btn-large {
  padding: 16px 28px;
  font-size: 17px;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 20;
  background: var(--navy);
  color: #ffffff;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 20px;
  border-radius: 0 0 12px 12px;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e7ecf1;
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
  white-space: nowrap;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 15px;
}
.header-nav a {
  color: var(--muted);
  font-weight: 500;
}
.header-nav a:hover {
  color: var(--navy);
}

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 96px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 46ch;
  margin: 22px 0 32px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-mark {
  display: flex;
  justify-content: center;
}
.hero-mark-svg {
  width: 100%;
  max-width: 340px;
}
.mark-square,
.mark-circle {
  opacity: 1;
  transform: translate(0, 0);
}

@media (prefers-reduced-motion: no-preference) {
  .mark-square {
    animation: mark-in-square 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .mark-circle {
    animation: mark-in-circle 0.7s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
}
@keyframes mark-in-square {
  from {
    opacity: 0;
    transform: translate(-24px, -24px);
  }
  to {
    opacity: 1;
    transform: translate(0, 0);
  }
}
@keyframes mark-in-circle {
  from {
    opacity: 0;
    transform: translate(24px, 24px);
  }
  to {
    opacity: 1;
    transform: translate(0, 0);
  }
}

/* ---------- Services ---------- */
.services {
  padding: 80px 0;
  background: var(--teal-tint);
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.service-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 28px 26px;
  border: 1px solid #dce9e3;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--teal);
}
.service-card p {
  color: var(--muted);
  font-size: 15.5px;
}

.service-icon {
  display: block;
  margin-bottom: 16px;
  height: 32px;
}
.icon-sq,
.icon-circ,
.icon-net,
.icon-cloud,
.icon-chip {
  display: inline-block;
}

.icon-sq {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--navy);
}
.icon-sq--dot {
  position: relative;
}
.icon-sq--dot::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--teal);
  right: -6px;
  bottom: -6px;
}
.icon-circ {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--teal);
}

.icon-net {
  width: 30px;
  height: 26px;
  position: relative;
  display: inline-block;
}
.icon-net::before,
.icon-net::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: var(--navy);
}
.icon-net::before {
  width: 10px;
  height: 10px;
  left: 0;
  top: 8px;
}
.icon-net::after {
  width: 10px;
  height: 10px;
  right: 0;
  top: 8px;
  background: var(--teal);
}

.icon-cloud {
  width: 30px;
  height: 20px;
  border-radius: 12px;
  background: var(--navy-tint);
  border: 2px solid var(--navy);
}
.icon-chip {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 2px solid var(--navy);
  background: repeating-linear-gradient(
    45deg,
    var(--teal-tint),
    var(--teal-tint) 4px,
    transparent 4px,
    transparent 8px
  );
}

/* ---------- Experience ---------- */
.experience {
  padding: 88px 0;
}
.experience-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.experience-copy {
  color: var(--muted);
  margin-top: 18px;
  font-size: 16px;
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: flex-start;
}
.tag-list li {
  font-family: var(--font-mono);
  font-size: 13.5px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--navy-tint);
  color: var(--navy);
}

/* ---------- Service area ---------- */
.service-area {
  padding: 88px 0;
  background: var(--navy-tint);
}
.service-area-sub {
  color: var(--muted);
  font-size: 17px;
  max-width: 60ch;
  margin-top: 16px;
}

/*
  Same pill shape as .tag-list, sized up: these place names are primary
  content that local search reads, not secondary metadata.
*/
.area-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.area-pills li {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--navy);
  border: 1.5px solid #D6E2EF;
}
.area-pills .area-pill--primary {
  background: var(--navy);
  border-color: var(--navy);
  color: #ffffff;
  font-weight: 600;
}
.area-pills .area-pill--remote {
  background: var(--teal-tint);
  border-color: #BFE3D5;
  color: #146B4E;
}

/* ---------- Contact ---------- */
.contact {
  padding: 96px 0;
  text-align: center;
}
.contact-inner {
  max-width: 640px;
  margin: 0 auto;
}
.contact-sub {
  color: var(--muted);
  font-size: 17px;
  margin: 16px 0 32px;
}
.contact-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- About ---------- */
.about-hero {
  padding: 72px 0 24px;
}
.about-hero-inner {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: center;
}
.about-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 60ch;
  margin-top: 22px;
}

/*
  The portrait has no border or hard crop — a radial-gradient mask fades the
  photo to transparent before it reaches the edge, so it dissolves into the
  page background instead of sitting on it. Adjust the 42%/70% stops to move
  where the fade starts and finishes.
*/
/*
  height: auto is load-bearing. The <img> carries width/height attributes for
  CLS, and those give it a definite height — which makes the browser ignore
  aspect-ratio entirely and render a stretched box. Don't remove it.
*/
.about-portrait img {
  width: 100%;
  max-width: 300px;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 25%;
  border-radius: var(--radius);
  margin-inline: auto;
}
.about-story {
  padding: 40px 0 48px;
}
.about-story-inner {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.about-block h2 {
  font-size: 26px;
  margin-bottom: 12px;
}
.about-block p {
  color: var(--ink);
  margin-bottom: 16px;
}
.about-block p:last-child {
  margin-bottom: 0;
}

/* ---------- Blog ---------- */
.blog-index {
  padding: 72px 0 96px;
}
.blog-intro {
  color: var(--muted);
  font-size: 17px;
  max-width: 56ch;
  margin-top: 14px;
}
.post-list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.post-list-item a {
  display: block;
  padding: 24px 0;
  border-bottom: 1px solid #e7ecf1;
  transition: opacity 0.15s ease;
}
.post-list-item a:hover {
  opacity: 0.7;
}
.post-list-item h2 {
  font-size: 22px;
  margin-bottom: 6px;
}
.post-list-item p:not(.post-date) {
  color: var(--muted);
  font-size: 15.5px;
}
.post-date {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--teal);
  margin-bottom: 6px;
}

.post {
  padding: 64px 0 96px;
  max-width: 720px;
}
.post h1 {
  margin-bottom: 28px;
  font-size: 40px;
}
.post-body {
  font-size: 17px;
  color: var(--ink);
}
.post-body h2 {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--navy);
  margin: 40px 0 14px;
}
.post-body p {
  margin-bottom: 18px;
  color: var(--ink);
}
.post-body a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.post-updated {
  margin-top: 32px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}
.post-back {
  margin-top: 40px;
}
.post-back a {
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 80px 0 44px;
  border-top: 1px solid #e7ecf1;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}
.footer-cta {
  max-width: 640px;
}
.footer-cta h2 {
  margin-bottom: 14px;
}
.footer-sub {
  color: var(--muted);
  font-size: 17px;
}
.footer-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  font-size: 15px;
}
.footer-nav a {
  color: var(--muted);
  font-weight: 500;
}
.footer-nav a:hover {
  color: var(--navy);
}
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.footer-brand p {
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  h1 {
    font-size: 42px;
  }
  h2 {
    font-size: 28px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .about-hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .about-hero-copy {
    order: 2;
  }
  .about-portrait {
    order: 1;
  }
  .hero-mark {
    order: -1;
    max-width: 220px;
    margin: 0 auto 12px;
  }
  .experience-inner {
    grid-template-columns: 1fr;
  }
  .service-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .wrap {
    padding: 0 20px;
  }
  h1 {
    font-size: 34px;
  }
  .post h1 {
    font-size: 30px;
  }
  .service-grid {
    grid-template-columns: 1fr;
  }
  .header-nav {
    gap: 16px;
    font-size: 14px;
  }
  .hero {
    padding: 56px 0 64px;
  }
  .services,
  .experience,
  .service-area,
  .contact {
    padding: 64px 0;
  }
}

/* ---------- Motion & accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
