:root {
  --bg: #eef0f3;
  --bg2: #e6e9ee;
  --paper: #f6f7f9;
  --ink: #0b0d12;
  --ink70: rgba(11, 13, 18, .7);
  --ink50: rgba(11, 13, 18, .5);
  --ink30: rgba(11, 13, 18, .28);
  --ink12: rgba(11, 13, 18, .12);
  --accent: #006199;
  --accent2: #5fb0e0;
  --grad: linear-gradient(90deg, var(--accent2), var(--accent));
  --grad-text: linear-gradient(90deg, #1c86b4, #004d78);
  --max: 1360px;
  --cards-per-view: 3;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  font-family: 'Instrument Sans', system-ui, sans-serif;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: 'Archivo', system-ui, sans-serif; margin: 0; }
input, textarea, button { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: var(--accent); color: #fff; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: clamp(20px, 5vw, 64px); }

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes fill { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

.rise { animation: rise .7s cubic-bezier(.2, .7, .3, 1) both; }
.rise-1 { animation-delay: .08s; }
.rise-2 { animation-delay: .16s; }
.rise-3 { animation-delay: .24s; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(238, 240, 243, .82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ink12);
}

.site-header .wrap {
  padding-block: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.brand .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

nav.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}

.nav-link {
  font-size: 14.5px;
  color: var(--ink70);
  transition: color .2s;
}
.nav-link:hover { color: var(--ink); }

.btn {
  font-weight: 500;
  font-size: 15px;
  padding: 14px 22px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform .25s cubic-bezier(.2, .7, .3, 1), border-color .25s, color .25s;
  border: 0;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--grad);
  color: #fff;
}
.btn-primary:hover { color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink12);
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

.btn-small {
  font-size: 14px;
  padding: 11px 18px;
}

/* Hero */
.hero {
  padding: clamp(84px, 10vh, 110px) 0 clamp(60px, 10vh, 110px);
}

.hero h1 {
  font-weight: 700;
  font-size: clamp(2.9rem, 8.3vw, 7.6rem);
  line-height: .98;
  letter-spacing: -0.035em;
  max-width: 18ch;
  text-wrap: balance;
}

.hero-lower {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 40px;
  align-items: end;
  margin-top: clamp(38px, 6vh, 64px);
}

.hero-intro {
  display: flex;
  align-items: center;
  gap: 24px;
}

.hero-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  filter: grayscale(1);
}

.hero-lower p {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  line-height: 1.45;
  color: var(--ink70);
  max-width: 34ch;
  font-weight: 400;
  margin: 0;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-self: end;
  align-self: end;
}

/* Section shell */
.section {
  padding: clamp(80px, 13vh, 150px) 0;
  border-top: 1px solid var(--ink12);
}
.section.bg2 { background: var(--bg2); }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 80px);
  align-items: start;
  padding-bottom: clamp(56px, 9vh, 110px);
}

.section-head h2 {
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: .96;
  letter-spacing: -0.03em;
}

.section-head .lede {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.5;
  color: var(--ink);
  max-width: 34ch;
  font-weight: 400;
  margin: 0 0 20px;
}

.section-head .sub {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--ink70);
  max-width: 36ch;
  margin: 0;
}

/* Services */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(30px, 5vw, 60px);
}

.hero-services {
  margin-top: clamp(64px, 10vh, 110px);
  padding-top: clamp(48px, 8vh, 80px);
}

.service-card { display: flex; flex-direction: column; gap: 14px; }

.service-card h3 {
  font-weight: 700;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.service-card p {
  font-size: 1.02rem;
  color: var(--ink70);
  line-height: 1.65;
  margin: 0;
}

/* Portfolio */
.portfolio-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 44px;
}

.portfolio-head h2 {
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 4rem);
  letter-spacing: -0.03em;
}

.slider-controls { display: flex; gap: 10px; }

.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--ink12);
  background: var(--paper);
  cursor: pointer;
  font-size: 16px;
  transition: border-color .2s, color .2s;
}
.slider-btn:hover { border-color: var(--accent); color: var(--accent); }

.slider-viewport { overflow: hidden; border-radius: 16px; }

.slider-track {
  display: flex;
  gap: 16px;
  transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}

.slide {
  flex: 0 0 calc((100% - 32px) / var(--cards-per-view));
}

.slide-card {
  background: var(--paper);
  border: 1px solid var(--ink12);
  border-radius: 16px;
  overflow: hidden;
}

.slide-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

.slide-card .slide-body { padding: 20px 22px; }

.slide-card p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink70);
  margin: 0;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.slider-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink12);
  display: inline-block;
  transition: background .2s;
}
.slider-dots span.active { background: var(--accent); }

/* Process */
.section h3.section-title {
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 4rem);
  letter-spacing: -0.02em;
  margin: 0 0 48px;
}

.timeline { position: relative; }

.timeline-line {
  position: absolute;
  left: 19px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: var(--ink12);
  border-radius: 2px;
  overflow: hidden;
}

.timeline-line-fill {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform-origin: top;
  animation: fill 1.6s cubic-bezier(.4, 0, .2, 1) .1s both;
}

.timeline-step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: clamp(20px, 3vw, 44px);
  padding-bottom: 44px;
  align-items: start;
}
.timeline-step:last-child { padding-bottom: 0; }

.timeline-num {
  position: relative;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
}

.timeline-body h4 {
  font-weight: 700;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 12px;
}

.timeline-body p {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--ink70);
  max-width: 52ch;
  margin: 0;
}

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 9px;
  display: block;
}

/* Pricing */
.pricing-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 48px;
}

.pricing-head h2 {
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 4rem);
  letter-spacing: -0.03em;
}

.pricing-note {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  color: var(--ink50);
  letter-spacing: 0.04em;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  align-items: start;
}

.price-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--ink12);
  border-radius: 16px;
  padding: 28px 24px;
  transition: transform .25s cubic-bezier(.2, .7, .3, 1);
}
.price-card:hover { transform: translateY(-6px); }

.price-card.highlight {
  background: var(--grad);
  color: #fff;
  border-color: var(--accent);
}

.price-card-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px 16px;
}

.price-card h3 {
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  margin: 0;
}

.price-amount {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.price-desc {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink70);
  margin: 14px 0 20px;
}
.price-card.highlight .price-desc { color: rgba(255, 255, 255, .85); }

.price-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.price-features li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink70);
}
.price-features li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--ink30);
}
.price-card.highlight .price-features li { color: rgba(255, 255, 255, .85); }
.price-card.highlight .price-features li::before { color: rgba(255, 255, 255, .5); }

.pricing-hosting {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink70);
  max-width: 78ch;
  margin: 32px 0 0;
}
.pricing-hosting strong { color: var(--ink); }

.pricing-footnote {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink50);
  max-width: 78ch;
  margin: 20px 0 0;
}

/* Contact */
.contact-section { padding-bottom: 0; }

.contact-section h2 {
  font-weight: 700;
  font-size: clamp(2.6rem, 8vw, 7rem);
  line-height: .92;
  letter-spacing: -0.04em;
  margin: 0 0 clamp(36px, 6vh, 64px);
  text-wrap: balance;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: clamp(60px, 10vh, 110px);
}

.contact-lead {
  font-weight: 700;
  margin: 0;
  transition: color .2s;
}
a.contact-lead:hover { color: var(--accent); }

.contact-name { font-size: 1.35rem; letter-spacing: -0.02em; }

.contact-info p { margin: 0; }
.contact-info p.contact-detail-start { margin-top: 12px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--ink12);
  padding: 40px clamp(20px, 5vw, 64px) 48px;
  background: var(--bg);
}

.footer-copyright {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ink30);
}

/* Responsive */
@media (max-width: 900px) {
  :root { --cards-per-view: 2; }
}

@media (max-width: 780px) {
  .hero-lower,
  .section-head {
    grid-template-columns: 1fr;
  }
  .hero-ctas { justify-self: start; }
  .hero-intro { flex-direction: column; align-items: flex-start; gap: 20px; }
  .service-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  nav.main-nav { gap: 14px; }
}

@media (max-width: 560px) {
  :root { --cards-per-view: 1; }
}
