/* FulStack — rebuilt from the archived fulstack.com */

:root {
  --accent: #6966d1;
  --accent-soft: #7979a8;
  --heading: #333;
  --text: #8a8a8a;
  --header-h: 120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: Raleway, sans-serif;
  font-size: 16px;
  line-height: 27px;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--heading); }
h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--heading); font-weight: 300; }
h2 { font-size: 26px; line-height: 1.2; letter-spacing: -.5px; }
h3 { font-size: 22px; line-height: 1.3; letter-spacing: -.5px; }
p { margin: 0 0 15px; }

.container { width: 1100px; max-width: calc(100% - 50px); margin: 0 auto; }

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  padding: 0 45px;
  display: flex; align-items: center; justify-content: space-between;
  transition: height .3s, background-color .3s, box-shadow .3s;
}
.site-header .logo { display: block; height: 100%; }
.site-header .logo img { height: 100%; width: auto; }
.site-header .logo .logo-dark { display: none; }
.site-header.scrolled {
  height: 90px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}
.site-header.scrolled .logo .logo-light { display: none; }
.site-header.scrolled .logo .logo-dark { display: block; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.main-nav li + li::before { content: "|"; color: rgba(255, 255, 255, .6); font-size: 13px; }
.main-nav a {
  display: inline-block; padding: 0 24px;
  color: #fff; font-size: 14px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
}
.main-nav li:last-child a { padding-right: 0; }
.main-nav a:hover, .main-nav a.active { color: var(--accent); }
.site-header:not(.scrolled) .main-nav a.active { color: #fff; }
.site-header:not(.scrolled) .main-nav a:hover { color: #fff; opacity: .7; }
.site-header.scrolled .main-nav a { color: var(--heading); }
.site-header.scrolled .main-nav a:hover,
.site-header.scrolled .main-nav a.active { color: var(--accent); }
.site-header.scrolled .main-nav li + li::before { color: #999; }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 10px;
  background: none; border: 0; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; margin: 5px 0; background: #fff; }
.site-header.scrolled .nav-toggle span { background: var(--heading); }

/* Buttons */
.btn {
  display: inline-block; height: 60px; padding: 0 30px;
  font: 600 14px/60px Poppins, sans-serif;
  letter-spacing: 2px; text-transform: uppercase;
  color: #fff; background: var(--accent);
  border: 0; border-radius: 3px; cursor: pointer;
  transition: color .2s, background-color .2s;
}
.btn:hover { color: #fff; background: #6d6d6d; }
.btn-ghost { background: rgba(140, 140, 140, .55); }
.btn-small { height: 45px; padding: 0 25px; font-size: 12px; line-height: 45px; }
.btn-white { color: var(--heading); background: #fff; }
.btn-white:hover { color: #fff; background: var(--heading); }

/* Hero */
.hero {
  position: relative; height: 100vh; min-height: 520px;
  overflow: hidden; background: #5d5d5d center / cover no-repeat;
}
.hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: url(../img/bg-lines.png);
}
.hero-content {
  position: absolute; z-index: 1; top: 23%; left: 0; right: 0;
  padding-top: 60px;
}
.hero h1 {
  max-width: 84%; margin-bottom: 30px;
  font: 500 74px/1.2 Cabin, sans-serif;
  letter-spacing: -1.9px; text-transform: capitalize; color: #fff;
}
.hero p { margin-bottom: 30px; font: 500 22px/33px Cabin, sans-serif; color: #ced1e5; }
.hero-down {
  position: absolute; z-index: 1; bottom: 50px; left: 0; right: 0;
}
.hero-down a { display: inline-block; color: #ced1e5; }
.hero-down svg { width: 32px; height: 32px; display: block; }

/* Intro */
.intro { padding: 100px 0 85px; }
.intro .container { display: grid; grid-template-columns: 2fr 3fr; gap: 60px; align-items: start; }
.intro p { margin: 0; font-size: 18px; line-height: 30px; }

/* Services */
.services { padding: 100px 0 80px; background: #f9f9f9; text-align: center; }
.services .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.service svg { width: 100px; height: 100px; margin: 0 auto 30px; display: block; color: var(--accent); }
.service h3 { margin-bottom: 20px; font-size: 18px; font-weight: 400; letter-spacing: 0; text-transform: uppercase; }
.service p { margin: 0; }

/* Portfolio grid */
.work { display: grid; grid-template-columns: repeat(4, 1fr); }
.work a { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; }
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.work a:hover img { transform: scale(1.05); }
.work .shade {
  position: absolute; inset: 0; padding: 20px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: #fff; background: var(--accent-soft);
  opacity: 0; transition: opacity .3s;
}
.work a:hover .shade, .work a:focus-visible .shade { opacity: 1; }
.work .shade strong { font-size: 22px; font-weight: 600; letter-spacing: -.5px; }
.work .shade span { text-transform: capitalize; }

/* Parallax bands */
.band { background: center / cover no-repeat fixed; }
.band-phone { height: 550px; }

/* Three boxes */
.boxes { display: grid; grid-template-columns: repeat(3, 1fr); }
.box { padding: 70px 50px; display: flex; flex-direction: column; align-items: flex-start; }
.box h3 { margin-bottom: 35px; text-transform: capitalize; }
.box p { flex: 1; margin-bottom: 35px; }
.box-blog { background: var(--accent-soft); color: #fff; }
.box-blog h3 { color: #dbdbdb; }
.box-start { background: #e5e5e5; }
.box-support { background: #ededed; }

/* Testimonial */
.testimonial {
  padding: 91px 0; min-height: 632px;
  display: flex; align-items: center;
  text-align: center; color: #fff;
}
.testimonial .container { max-width: 780px; }
.testimonial img { margin: 0 auto 35px; }
.testimonial p { font-size: 18px; line-height: 32px; }
.testimonial cite { display: block; margin-top: 30px; font-style: normal; font-weight: 600; }
.testimonial cite span { display: block; font-weight: 400; opacity: .8; }

/* Contact */
.contact { padding: 149px 0 96px; }
.contact .container { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact h2 { margin-bottom: 40px; }
.social { display: flex; gap: 0; margin-top: 30px; }
.social a { flex: 1; color: #939393; }
.social a:hover { color: var(--accent); }
.social svg { width: 44px; height: 44px; display: block; }
.contact form { text-align: right; }
.contact input, .contact textarea {
  display: block; width: 100%; margin-bottom: 18px; padding: 14px 18px;
  font: 14px/20px "Source Sans Pro", sans-serif; color: var(--heading);
  background: #fff; border: 1px solid #e5e5e5; border-radius: 0; outline: 0;
}
.contact textarea { height: 200px; resize: vertical; }
.contact input:focus, .contact textarea:focus { border-color: var(--accent); }
.contact .btn { margin: 8px 20px 0 0; font-size: 12px; height: 45px; line-height: 45px; }

/* Footer */
.site-footer {
  padding: 5% 25px; background: #1f1f1f; text-align: center;
  font: 16px/27px "Source Sans Pro", sans-serif; color: #d5d5d5;
}
.site-footer .logos { display: flex; justify-content: center; gap: 10px; margin-bottom: 40px; }
.site-footer .logos img { width: 160px; }
.site-footer a { color: #d5d5d5; }
.site-footer a:hover { color: #fff; }

.to-top {
  position: fixed; right: 25px; bottom: 65px; z-index: 90;
  width: 46px; height: 46px; display: grid; place-items: center;
  color: #fff; background: #333; border: 0; cursor: pointer;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s, background-color .2s;
}
.to-top.show { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--accent); }
.to-top svg { width: 16px; height: 16px; }

/* Inner page title */
.page-title {
  height: 416px; padding-top: var(--header-h);
  display: flex; align-items: center; background: #5d5d5d;
}
.page-title h1 { font-size: 74px; line-height: 82px; font-weight: 400; letter-spacing: -2px; color: #fff; }
.page-body { padding: 45px 0 80px; }

/* Portfolio single */
.project { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: start; }
.project h2 { margin-bottom: 20px; font-size: 22px; line-height: 55px; text-transform: capitalize; }
.project .copy p { margin: 0; }
.project .copy p + p { margin-top: 0; }
.project dl { margin: 30px 0 0; }
.project dt { margin-top: 22px; font-size: 15px; color: var(--heading); }
.project dd { margin: 4px 0 0; }
.back-link { display: inline-block; margin-top: 40px; }

/* Blog */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.post-card img { width: 100%; }

.post-card h2 { margin: 25px 0 18px; font-size: 16px; font-weight: 400; letter-spacing: 0; }
.post-card h2 a { color: var(--heading); }
.post-card h2 a:hover { color: var(--accent); }

.post-layout { display: grid; grid-template-columns: 3fr 1fr; gap: 40px; align-items: start; }
.post > img { width: 100%; margin-bottom: 35px; }
.post .meta { margin-bottom: 18px; color: #a0a0a0; text-transform: capitalize; }
.post .meta a { color: #a0a0a0; }
.post h2 { margin-bottom: 16px; }
.post h3 { margin: 30px 0 12px; }
.post h4 { margin: 25px 0 0; font-size: 18px; line-height: 30px; font-weight: 400; color: var(--text); }
.post ul, .post ol { margin: 0 0 15px; padding-left: 20px; }

.sidebar h4 {
  margin: 0 0 18px; padding: 12px 18px;
  font: 500 14px/30px Poppins, sans-serif; color: #fff; background: var(--accent);
}
.sidebar ul { list-style: none; margin: 0 0 40px; padding: 0; }
.sidebar li { margin-bottom: 10px; font-size: 14px; line-height: 23px; }
.sidebar li a { color: #a6a6a6; }
.sidebar li a:hover { color: var(--accent); }
.tags { display: flex; flex-wrap: wrap; gap: 5px 3px; }
.tags span {
  padding: 0 15px; font-size: 10px; font-weight: 500; line-height: 32px;
  letter-spacing: 1px; text-transform: uppercase; color: #a7a6a6;
  border: 1px solid #e0e0e0;
}

/* Responsive */
@media (max-width: 1000px) {
  :root { --header-h: 90px; }
  .site-header { padding: 0 25px; }
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    display: none; background: #fff; box-shadow: 0 4px 8px rgba(0, 0, 0, .08);
  }
  .main-nav.open { display: block; }
  .main-nav ul { display: block; padding: 10px 25px; }
  .main-nav li + li::before { content: none; }
  .main-nav a, .site-header:not(.scrolled) .main-nav a { display: block; padding: 10px 0; color: var(--heading); }
  .site-header:not(.scrolled) .main-nav a.active { color: var(--accent); }
  .hero h1 { font-size: 56px; max-width: none; }
  .intro .container, .contact .container, .project, .post-layout { grid-template-columns: 1fr; }
  .services .container, .work { grid-template-columns: repeat(2, 1fr); }
  .services .container { gap: 60px 30px; }
  .boxes { grid-template-columns: 1fr; }
  .posts { grid-template-columns: repeat(2, 1fr); }
  .band { background-attachment: scroll; }
  .page-title { height: 300px; }
  .page-title h1 { font-size: 50px; line-height: 56px; letter-spacing: -1px; }
}
@media (max-width: 600px) {
  .hero h1 { font-size: 44px; letter-spacing: -1px; }
  .hero p { font-size: 18px; line-height: 24px; }
  .services .container, .work, .posts { grid-template-columns: 1fr; }
  .intro { padding: 60px 0; }
  .contact { padding: 80px 0 60px; }
  .box { padding: 50px 25px; }
  .band-phone { height: 300px; }
  .page-title h1 { font-size: 36px; line-height: 42px; }
  .site-footer .logos img { width: 130px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
