/* ---------- Tokens ---------- */
:root {
  --ink: #031716;
  --dark: #032F30;
  --teal: #0A7075;
  --primary: #0C969C;
  --sky: #6BA3BE;
  --slate: #274D60;
  --bg: #ffffff;
  --bg-soft: #F1F8F9;
  --border: #E1EDEE;
  --muted: #4C6668;
  --radius: 10px;
  --radius-lg: 20px;
  --shadow: 0 20px 45px -20px rgba(3, 23, 22, .25);
  --container: 1180px;
  --font-head: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -.01em;
}

p {
  margin: 0 0 1em
}

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

img {
  max-width: 100%;
  display: block
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none
}

button {
  font: inherit
}

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

.accent {
  color: var(--primary)
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 200;
}

.skip-link:focus {
  left: 0
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px)
}

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

.btn-primary:hover {
  background: var(--teal)
}

.btn-outline {
  border-color: var(--ink);
  color: var(--ink)
}

.btn-outline:hover {
  background: var(--ink);
  color: #fff
}

.btn-light {
  background: #fff;
  color: var(--ink)
}

.btn-light:hover {
  background: var(--bg-soft)
}

.btn-sm {
  padding: 10px 20px;
  font-size: .85rem
}

.btn-block {
  width: 100%
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.site-header.scrolled {
  border-color: var(--border);
  box-shadow: 0 4px 20px -12px rgba(3, 23, 22, .2)
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink)
}

.brand img {
  border-radius: 6px
}

.main-nav {
  display: flex;
  gap: 32px
}

.main-nav a {
  font-weight: 500;
  font-size: .95rem;
  color: var(--muted);
  transition: color .15s ease
}

.main-nav a:hover {
  color: var(--primary)
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 96px;
  overflow: hidden
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center
}

.eyebrow {
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 14px
}

.hero h1 {
  font-size: clamp(2.5rem, 4.6vw, 3.6rem)
}

.hero-text {
  color: var(--muted);
  max-width: 46ch;
  font-size: 1.05rem
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin: 28px 0 44px;
  flex-wrap: wrap
}

.hero-stats {
  display: flex;
  gap: 36px;
  margin: 0
}

.hero-stats dt {
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--ink)
}

.hero-stats dd {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: .9rem
}

/* ---------- Hero Visual ---------- */

.hero-visual {
  position: relative;
  width: 100%;
  height: 500px;
  max-width: 620px;
  margin: 0 auto;
  isolation: isolate;
}

/* Soft background glow */
.hero-blob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 500px;
  height: 420px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center,
      rgba(107, 163, 190, .32) 0%,
      rgba(12, 150, 156, .20) 42%,
      rgba(3, 47, 48, .06) 68%,
      transparent 76%);
  filter: blur(18px);
  z-index: -1;
}

/* Main logo */
.hero-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 245px;
  height: 245px;
  transform: translate(-50%, -50%);
  object-fit: contain;
  filter: drop-shadow(0 24px 35px rgba(3, 23, 22, .16));
  z-index: 2;
}

/* Floating service cards */
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 11px;

  min-height: 60px;
  padding: 0 22px;

  background: rgba(255, 255, 255, .96);
  border: 1px solid #DCEBED;
  border-radius: 15px;

  color: var(--ink);
  font-weight: 600;
  font-size: .92rem;
  line-height: 1;
  white-space: nowrap;

  box-shadow:
    0 14px 35px rgba(3, 23, 22, .08),
    0 2px 8px rgba(3, 23, 22, .03);

  z-index: 4;
}

/* Small colored indicators */
.dot {
  width: 10px;
  height: 10px;
  min-width: 10px;
  border-radius: 50%;
}

.dot-primary {
  background: var(--primary);
}

.dot-sky {
  background: var(--sky);
}

.dot-slate {
  background: var(--slate);
}

/*
 * Desktop composition
 *
 * These positions are deliberately tied to the
 * visual composition rather than percentages that
 * randomly move around the logo.
 */

.card-1 {
  top: 30px;
  left: 0;
}

.card-2 {
  top: 190px;
  right: 0;
}

.card-3 {
  bottom: 38px;
  left: 78px;
}

/* Tablet */
@media (max-width:992px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions,
  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    height: 430px;
    max-width: 560px;
    margin: 0 auto;
  }

  .hero-blob {
    width: 430px;
    height: 370px;
  }

  .hero-logo {
    width: 210px;
    height: 210px;
  }

  .float-card {
    min-height: 56px;
    padding: 0 18px;
    font-size: .86rem;
  }

  .card-1 {
    top: 24px;
    left: 0;
  }

  .card-2 {
    top: 168px;
    right: 0;
  }

  .card-3 {
    bottom: 28px;
    left: 55px;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-list {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 40px;
  }

  .process-list li:nth-child(2)::after {
    display: none;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* Mobile */
@media (max-width:640px) {
  .hero-visual {
    height: 330px;
    width: 100%;
    max-width: 390px;
    margin: 10px auto 0;
  }

  .hero-blob {
    top: 8%;
    left: 8%;
    width: 84%;
    height: 82%;
  }

  .hero-logo {
    width: 145px;
    height: 145px;
  }

  .float-card {
    padding: 9px 12px;
    gap: 8px;
    font-size: .72rem;
    border-radius: 10px;
  }

  .dot {
    width: 7px;
    height: 7px;
  }

  .card-1 {
    top: 4%;
    left: 0;
  }

  .card-2 {
    top: 43%;
    right: 0;
  }

  .card-3 {
    bottom: 5%;
    left: 5%;
  }
}

/* Very small phones */
@media (max-width:380px) {
  .hero-visual {
    height: 300px;
  }

  .hero-logo {
    width: 125px;
    height: 125px;
  }

  .float-card {
    padding: 8px 10px;
    font-size: .67rem;
  }

  .card-1 {
    left: -2px;
  }

  .card-2 {
    right: -2px;
  }

  .card-3 {
    left: 2%;
  }
}

/* ---------- Sections ---------- */
.section {
  padding: 100px 0
}

.section-soft {
  background: var(--bg-soft)
}

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.5rem)
}

.section-head p {
  color: var(--muted)
}

.grid {
  display: grid;
  gap: 28px
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr)
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr)
}

.icon-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--bg-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  flex: none;
}

.icon-box svg {
  width: 24px;
  height: 24px
}

.icon-box-sm {
  width: 42px;
  height: 42px;
  margin-bottom: 0;
  background: #fff;
  border: 1px solid var(--border)
}

.service-card {
  padding: 32px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color .2s ease
}

.service-card:hover {
  border-color: var(--primary)
}

.service-card h3 {
  font-size: 1.1rem
}

.service-card p {
  color: var(--muted);
  margin: 0;
  font-size: .95rem
}

/* ---------- Process ---------- */
.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  counter-reset: step
}

.process-list li {
  position: relative;
  padding-top: 8px
}

.process-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 26px;
  left: calc(50% + 34px);
  width: calc(100% - 34px);
  height: 1px;
  background: var(--border);
}

.process-num {
  display: inline-flex;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.process-list h3 {
  font-size: 1.05rem
}

.process-list p {
  color: var(--muted);
  font-size: .93rem;
  margin: 0
}

/* ---------- Work ---------- */
.project-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden
}

.project-thumb {
  height: 150px
}

.thumb-1 {
  background-image: url(../assets/tcwimg.png);
  background-size: 255px;
  background-repeat: no-repeat;
  background-position: center;
}

.thumb-2 {
  background-image: url(../assets/reviewflowimg.png);
  background-size: 255px;
  background-repeat: no-repeat;
  background-position: center;
}

.thumb-3 {
  background-image: url(../assets/triviaclickzimg.png);
  background-size: 255px;
  background-repeat: no-repeat;
  background-position: center;
}

.thumb-4 {
  background-image: url(../assets/sourcefinderimg.png);
  background-size: 255px;
  background-repeat: no-repeat;
  background-position: center;
}

.project-card h3 {
  font-size: 1.02rem;
  padding: 0 20px;
  margin-bottom: 20px
}

.project-tag {
  color: var(--primary);
  font-size: .82rem;
  font-weight: 600;
  padding: 18px 20px 0;
  margin: 0
}

/* ---------- Testimonials ---------- */
.testimonial {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  border-left: 3px solid var(--primary)
}

.stars {
  color: var(--primary);
  letter-spacing: 2px;
  margin-bottom: 14px;
  font-size: .9rem
}

.testimonial p {
  font-size: 1rem;
  color: var(--ink)
}

.testimonial footer {
  display: flex;
  flex-direction: column;
  margin-top: 16px
}

.testimonial footer span {
  color: var(--muted);
  font-size: .88rem
}

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(120deg, var(--ink), var(--dark) 60%, var(--teal));
  color: #fff;
  padding: 88px 0
}

.cta-inner {
  text-align: center;
  max-width: 620px
}

.cta h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.3rem)
}

.cta p {
  color: #c9dcdc;
  margin-bottom: 32px
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px
}

.contact-info h2 {
  font-size: clamp(1.8rem, 3vw, 2.2rem)
}

.contact-info>p {
  color: var(--muted);
  max-width: 42ch
}

.contact-list {
  margin: 32px 0
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px
}

.contact-list strong {
  display: block;
  font-size: .82rem;
  color: var(--muted);
  font-weight: 600
}

.contact-list a,
.contact-list span {
  font-weight: 600
}

.social-row {
  display: flex;
  gap: 12px
}

.social-row a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.social-row a svg {
  width: 18px;
  height: 18px
}

.social-row a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff
}

.contact-form {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 36px
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px
}

.form-field {
  margin-bottom: 18px
}

.form-field label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 6px
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: #fff;
  color: var(--ink);
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--primary)
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0
}

.form-status {
  min-height: 1.4em;
  font-size: .9rem;
  font-weight: 600;
  margin: 12px 0 0
}

.form-status.success {
  color: var(--teal)
}

.form-status.error {
  color: #b3261e
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #cfe3e3
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 72px 32px 48px
}

.brand-light {
  color: #fff
}

.footer-brand p {
  color: #9fbdbd;
  margin: 16px 0 20px;
  max-width: 34ch;
  font-size: .92rem
}

.footer-brand .social-row a {
  border-color: #194645;
  color: #cfe3e3
}

.footer-col h4 {
  color: #fff;
  font-size: .95rem;
  margin-bottom: 18px
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px
}

.footer-col a,
.footer-col span {
  color: #9fbdbd;
  font-size: .92rem
}

.footer-col a:hover {
  color: var(--sky)
}

.footer-bottom {
  border-top: 1px solid #133836
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 32px;
  flex-wrap: wrap;
  gap: 12px
}

.footer-bottom p {
  margin: 0;
  color: #89a9a9;
  font-size: .85rem
}

.footer-legal {
  display: flex;
  gap: 20px
}

.footer-legal a {
  color: #89a9a9;
  font-size: .85rem
}

.footer-legal a:hover {
  color: #fff
}

/* ---------- Reveal animation ---------- */
/* Hidden state only applies once JS has confirmed it can run the reveal
   (html.js is set synchronously in <head>); with JS off, content is
   simply visible, no fade-in — this keeps it from ever going missing. */
.js .reveal>* {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease
}

.js .reveal.is-visible>* {
  opacity: 1;
  transform: none
}

.js .reveal>*:nth-child(2) {
  transition-delay: .08s
}

.js .reveal>*:nth-child(3) {
  transition-delay: .16s
}

.js .reveal>*:nth-child(4) {
  transition-delay: .24s
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto
  }

  .js .reveal>* {
    opacity: 1;
    transform: none;
    transition: none
  }

  .btn:hover {
    transform: none
  }
}

/* ---------- Responsive ---------- */
@media (max-width:992px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center
  }

  .hero-text {
    margin-left: auto;
    margin-right: auto
  }

  .hero-actions,
  .hero-stats {
    justify-content: center
  }

  .hero-visual {
    height: 320px;
    max-width: 420px;
    margin: 0 auto
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr)
  }

  .process-list {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 40px
  }

  .process-list li:nth-child(2)::after {
    display: none
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px
  }
}

/* ---------- Mobile Navigation ---------- */

@media (max-width:768px) {

  /* Prevent the off-canvas menu from causing horizontal movement */
  html,
  body {
    overflow-x: hidden;
  }

  .main-nav {
    position: fixed;
    top: 80px;
    right: 0;
    bottom: 0;
    left: 0;

    background: #fff;

    display: flex;
    flex-direction: column;

    padding: 32px 24px;
    gap: 0px;
    /* Closed state */
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
      transform .28s ease,
      opacity .2s ease,
      visibility 0s linear .28s;
    z-index: 99;
  }

  /* Open state */
  .main-nav.open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transition:
      transform .28s ease,
      opacity .2s ease,
      visibility 0s linear 0s;
  }

  .main-nav a {
    display: block;
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 1.05rem;
    background: #fff;
  }

  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 101;
  }

  .header-actions .btn-sm {
    display: none;
  }

  /* Hamburger → X */
  .nav-toggle span {
    transform-origin: center;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (max-width:640px) {
  .section {
    padding: 72px 0
  }

  .grid-4,
  .grid-3 {
    grid-template-columns: 1fr
  }

  .process-list {
    grid-template-columns: 1fr
  }

  .process-list li::after {
    display: none
  }

  .form-row {
    grid-template-columns: 1fr
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    padding: 56px 32px
  }

  .footer-brand {
    grid-column: 1/-1;
    padding-left: 32px
  }

  .hero-stats {
    gap: 22px
  }

  /* ---------- Mobile Hero Visual ---------- */

  .hero-visual {
    height: 350px;
    width: 100%;
    max-width: 390px;
    margin: 18px auto 0;
  }

  .hero-blob {
    width: 310px;
    height: 280px;
    filter: blur(15px);
  }

  .hero-logo {
    width: 155px;
    height: 155px;
  }

  /* Compact cards for phones */
  .float-card {
    min-height: 48px;
    padding: 0 13px;
    gap: 8px;
    border-radius: 12px;
    font-size: .70rem;
    box-shadow:
      0 10px 25px rgba(3, 23, 22, .07),
      0 1px 5px rgba(3, 23, 22, .03);
  }

  .dot {
    width: 8px;
    min-width: 8px;
    height: 8px;
  }

  /* Top-left */
  .card-1 {
    top: 8px;
    left: 0;
  }

  /* Right-middle */
  .card-2 {
    top: 132px;
    right: 0;
  }

  /* Bottom-left */
  .card-3 {
    bottom: 12px;
    left: 25px;
  }
}

@media (max-width:380px) {

  .hero-visual {
    height: 320px;
  }

  .hero-blob {
    width: 275px;
    height: 250px;
  }

  .hero-logo {
    width: 135px;
    height: 135px;
  }

  .float-card {
    min-height: 44px;
    padding: 0 10px;
    font-size: .64rem;
    gap: 7px;
  }

  .dot {
    width: 7px;
    min-width: 7px;
    height: 7px;
  }

  .card-1 {
    top: 4px;
    left: 0;
  }

  .card-2 {
    top: 120px;
    right: 0;
  }

  .card-3 {
    bottom: 6px;
    left: 12px;
  }
}