/* Portalix interpretation of the supplied Techo reference template. */
:root {
  --template-blue: var(--blue);
  --template-cyan: var(--cyan);
  --template-navy: var(--ink);
}

.site-header { background: rgba(255, 255, 255, .96); }
.main-nav { border: 0; background: transparent; }
.main-nav a { border-radius: 4px; }
.header-cta,
.button { border-radius: 5px; }

.home .hero {
  min-height: 720px;
  padding: 148px 0 174px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.93) 31%, rgba(255,255,255,.48) 55%, rgba(7,20,38,.05) 100%),
    var(--template-hero-image) center / cover no-repeat;
}

.home .hero::before {
  opacity: 1;
  background: linear-gradient(90deg, var(--blue) 0 7px, transparent 7px) left 38px top 43% / 66px 2px no-repeat;
  mask-image: none;
}

.home .hero-grid { display: block; }
.home .hero-copy { max-width: 715px; }
.home .hero h1 { max-width: 710px; font-size: clamp(60px, 6.5vw, 92px); letter-spacing: -.067em; }
.home .hero p { max-width: 625px; color: #3f4e64; }
.home .hero-visual-shell { display: none; }
.home .hero-proof { display: none; }
.home .hero-actions .button { min-height: 58px; padding-inline: 29px; }

.home-feature-strip {
  position: relative;
  z-index: 5;
  margin-top: -82px;
}

.feature-strip-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: #fff;
  box-shadow: 0 24px 60px rgba(7, 28, 63, .16);
}

.feature-strip-card {
  position: relative;
  min-height: 190px;
  padding: 25px 23px 24px;
  border-right: 1px solid #e2e8f0;
  background: #fff;
  transition: color .25s ease, background-color .25s ease, transform .25s ease;
}

.feature-strip-card:last-child { border-right: 0; }

.feature-strip-card:hover {
  z-index: 2;
  color: #fff;
  background: linear-gradient(145deg, var(--blue), #0b63dc);
  transform: translateY(-8px);
}

.feature-strip-icon {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  margin-bottom: 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  font: 500 12px var(--mono);
}

.feature-strip-card:hover .feature-strip-icon { color: var(--blue); background: #fff; }
.feature-strip-card h3 { min-height: 45px; margin: 0 0 7px; font-size: 17px; line-height: 1.3; }
.feature-strip-card p { color: #6d7b90; font-size: 13px; line-height: 1.5; }
.feature-strip-card:hover p { color: rgba(255,255,255,.76); }
.feature-strip-card > i { position: absolute; top: 26px; right: 22px; color: var(--blue); font-style: normal; }
.feature-strip-card:hover > i { color: #fff; }

@media (max-width: 1100px) {
  .feature-strip-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-strip-card:nth-child(3) { border-right: 0; }
  .feature-strip-card:nth-child(n+4) { border-top: 1px solid #e2e8f0; }
}

@media (max-width: 680px) {
  .home .hero { min-height: 650px; padding: 95px 0 128px; background-position: 62% center; }
  .home .hero::before { display: none; }
  .home .hero h1 { font-size: clamp(48px, 13vw, 62px); }
  .home-feature-strip { margin-top: -65px; }
  .feature-strip-grid { grid-template-columns: 1fr; border-radius: 4px; }
  .feature-strip-card { min-height: 0; padding: 20px 58px 20px 76px; border: 0; border-bottom: 1px solid #e2e8f0; }
  .feature-strip-card:last-child { border-bottom: 0; }
  .feature-strip-card:nth-child(n+4) { border-top: 0; }
  .feature-strip-icon { position: absolute; top: 19px; left: 18px; width: 42px; height: 42px; margin: 0; }
  .feature-strip-card h3 { min-height: 0; margin-bottom: 4px; }
  .feature-strip-card > i { top: 30px; }
}

/* About layout from the supplied reference, translated to Portalix content. */
.template-about { padding: 150px 0 130px; overflow: hidden; }

.template-about-grid {
  display: grid;
  grid-template-columns: minmax(420px, .95fr) minmax(0, 1.05fr);
  gap: 90px;
  align-items: center;
}

.template-about-media {
  position: relative;
  min-height: 610px;
  padding: 38px 38px 0 0;
}

.template-about-media::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0 80px 65px 22px;
  background: linear-gradient(145deg, rgba(23,74,255,.11), rgba(32,201,255,.28));
  clip-path: polygon(0 10%, 86% 0, 100% 88%, 12% 100%);
}

.template-about-media::after {
  content: '';
  position: absolute;
  z-index: -2;
  top: 17px;
  right: 25px;
  width: 150px;
  height: 150px;
  opacity: .22;
  background-image: radial-gradient(var(--blue) 2px, transparent 2px);
  background-size: 16px 16px;
}

.template-about-media > img {
  width: 100%;
  height: 540px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 28px 64px rgba(7,33,78,.18);
}

.template-about-badge {
  position: absolute;
  right: -28px;
  bottom: 70px;
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 205px;
  padding: 21px 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #0b67d7);
  box-shadow: 0 18px 42px rgba(23,74,255,.28);
}

.template-about-badge strong { font-size: 35px; line-height: 1; }
.template-about-badge span { font-size: 13px; font-weight: 800; line-height: 1.35; text-transform: uppercase; }

.template-about-note {
  position: absolute;
  left: -25px;
  top: 82px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 19px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(7,33,78,.16);
}

.template-about-note > i {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  color: #fff;
  background: var(--cyan);
  font-style: normal;
  font-weight: 900;
}

.template-about-note span { display: grid; }
.template-about-note strong { font-size: 13px; }
.template-about-note small { color: #738197; font-size: 11px; }

.template-about-copy > h2 { margin: 18px 0 25px; font-size: clamp(42px, 4.3vw, 60px); letter-spacing: -.055em; line-height: 1.08; }
.template-about-copy .rich-text { max-width: 660px; }

.template-about .benefit-list {
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: 34px;
  border-top: 1px solid #dde5ee;
}

.template-about .benefit-list article,
.template-about .benefit-list article:nth-child(odd) {
  min-height: 132px;
  padding: 23px 18px 20px 48px;
  border: 0;
  border-right: 1px solid #dde5ee;
  border-bottom: 1px solid #dde5ee;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.template-about .benefit-list article:nth-child(even) { border-right: 0; }
.template-about .benefit-list article:hover { transform: none; box-shadow: none; }
.template-about .benefit-list article::after { display: none; }

.template-about .benefit-list span {
  top: 24px;
  left: 0;
  width: auto;
  height: auto;
  color: var(--blue);
  background: transparent;
  box-shadow: none;
  font-size: 14px;
}

.template-about .benefit-list h3 { font-size: 18px; }
.template-about-cta { margin-top: 30px; }

/* Services grid and contact banner. */
.home .services-section {
  padding: 125px 0;
  background:
    var(--template-page-title-image) center top / 100% 230px no-repeat,
    #f4f6f9;
}

.home .services-section .section-head { align-items: center; }
.home .services-section .section-head h2 { max-width: 730px; }

.home .service-grid { gap: 18px; }

.home .service-card {
  min-height: 420px;
  border-radius: 3px;
  border-color: #e1e6ed;
  box-shadow: 0 10px 30px rgba(7,30,70,.06);
}

.home .service-card::before { border-radius: 2px 2px 0 0; }

.home .service-card .service-icon {
  border-radius: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.home .service-card:hover .service-icon { color: #fff !important; background: linear-gradient(135deg, var(--blue), var(--cyan)); }

.home .service-card .card-number {
  top: 180px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #dce4ee;
  color: var(--blue);
  background: #fff;
  font-size: 12px;
}

.services-inline-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  margin-top: 28px;
  padding: 38px 42px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 90% 20%, rgba(32,201,255,.42), transparent 29%),
    linear-gradient(120deg, var(--ink), #0e3f92 72%, var(--blue));
}

.services-inline-cta::after {
  content: '';
  position: absolute;
  right: 22%;
  top: -80px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  box-shadow: 0 0 0 32px rgba(255,255,255,.025);
}

.services-inline-cta > * { position: relative; z-index: 1; }
.services-inline-cta span { color: #6ddcff; font: 500 11px var(--mono); letter-spacing: .13em; }
.services-inline-cta h3 { margin-top: 7px; font-size: clamp(23px, 2.6vw, 34px); letter-spacing: -.04em; }
.services-inline-cta .button { color: var(--ink); background: #fff; box-shadow: none; white-space: nowrap; }

/* Image-led why section. */
.home .why-section {
  padding: 130px 0 155px;
  color: var(--ink);
  background: #fff;
}

.home .why-section::before,
.home .why-section::after { display: none; }

.home .why-grid { grid-template-columns: .82fr 1.18fr; gap: 86px; }
.home .why-copy h2 { color: var(--ink); }
.home .why-copy p { color: #5f6d81; }
.home .why-copy .eyebrow.light { color: var(--blue); }
.home .why-copy .eyebrow.light b { background: linear-gradient(90deg, var(--blue), var(--cyan)); }

.home .button-light-outline {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 12px 28px rgba(23,74,255,.2);
}

.home .button-light-outline:hover { color: #fff; background: var(--ink); border-color: var(--ink); }

.why-visual { position: relative; padding: 0 0 165px 60px; }

.why-visual::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 45px 45px 115px 0;
  background: linear-gradient(135deg, rgba(23,74,255,.14), rgba(32,201,255,.25));
}

.why-visual > img { width: 100%; height: 465px; object-fit: cover; box-shadow: 0 26px 56px rgba(7,33,78,.16); }

.home .why-items {
  position: absolute;
  right: 0;
  bottom: 0;
  width: calc(100% - 12px);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  background: #fff;
  box-shadow: 0 20px 50px rgba(7,33,78,.17);
}

.home .why-items article {
  min-height: 150px;
  padding: 24px;
  border: 0;
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  border-radius: 0;
  color: var(--ink);
  background: #fff;
  backdrop-filter: none;
}

.home .why-items article:nth-child(even) { border-right: 0; }
.home .why-items article:nth-last-child(-n+2) { border-bottom: 0; }
.home .why-items article:hover { transform: none; color: #fff; background: var(--blue); }
.home .why-items span { color: var(--blue); }
.home .why-items h3 { margin: 14px 0 7px; color: var(--ink); font-size: 17px; }
.home .why-items p { color: #6d7b90; font-size: 13px; }
.home .why-items article:hover span,
.home .why-items article:hover h3,
.home .why-items article:hover p { color: #fff; }

/* Dark project showcase like the reference template. */
.home .portfolio-section {
  position: relative;
  padding: 130px 0 150px;
  color: #fff;
  background:
    radial-gradient(circle at 92% 8%, rgba(32,201,255,.16), transparent 27%),
    linear-gradient(135deg, #061224, #0a1c38 70%, #0c2d63);
}

.home .portfolio-section::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .08;
  background-image: radial-gradient(#fff 1px, transparent 1px);
  background-size: 22px 22px;
}

.home .portfolio-section > .shell { position: relative; z-index: 1; }
.home .portfolio-section .eyebrow { color: #70dcff; }
.home .portfolio-section .section-head h2 { color: #fff; }
.home .portfolio-section .text-link { color: #fff; border-color: rgba(255,255,255,.24); background: rgba(255,255,255,.06); }
.home .portfolio-section .project-card { border: 0; border-radius: 2px; box-shadow: none; }
.home .portfolio-section .project-cover { margin: 0; border-radius: 0; }
.home .portfolio-section .project-meta { padding: 25px 26px 29px; color: var(--ink); }

/* Clear sequential process band. */
.home .process {
  padding: 125px 0;
  background:
    linear-gradient(90deg, rgba(23,74,255,.05) 1px, transparent 1px),
    linear-gradient(rgba(23,74,255,.05) 1px, transparent 1px),
    #f5f7fa;
  background-size: 56px 56px;
}

.home .process .steps article,
.home .process .steps article:not(:first-child) {
  border-radius: 2px;
  border-top: 4px solid var(--blue);
}

.home .process .steps article > span { border-radius: 0; }

/* Full-width photographic CTA instead of a generic gradient card. */
.final-cta {
  min-height: 520px;
  padding: 110px 0;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(5,17,34,.96) 0%, rgba(7,30,68,.88) 48%, rgba(23,74,255,.45) 100%),
    var(--template-cta-image) center / cover no-repeat;
}

.final-inner {
  width: min(1220px, calc(100% - 64px));
  max-width: 1220px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.final-inner::after { display: none; }
.final-cta h2 { max-width: 850px; font-size: clamp(48px, 5.6vw, 76px); }
.final-cta p { max-width: 660px; }

/* Inner pages share the strong image-led title area from the reference. */
.page-hero,
.project-hero,
.archive-hero {
  padding: 130px 0 115px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(5,17,34,.95), rgba(8,35,80,.76)),
    var(--template-page-title-image) center / cover no-repeat;
}

.page-hero::after,
.project-hero::after { display: none; }
.page-hero h1,
.project-hero h1 { color: #fff; font-size: clamp(54px, 5.8vw, 78px); }
.page-hero p,
.project-hero p { color: #c9d7ea; }
.page-hero .eyebrow,
.project-hero .eyebrow { color: #6ddcff; }

.service-hero { background: #f5f7fa; }
.archive-list,
.portfolio-archive { background: #f5f7fa; }
.archive-list .service-card,
.portfolio-archive .project-card { border-radius: 2px; }

.contact-layout .page-main { border-radius: 2px; border-top: 5px solid var(--blue); }
.page-cards > article { border-radius: 2px; }
.contact-form input,
.contact-form textarea,
.contact-form select { border-radius: 2px; }

.site-footer { background: #041021; }
.footer-inquiry { padding-bottom: 3px; border-bottom: 2px solid var(--cyan); }

@media (max-width: 1100px) {
  .template-about-grid { grid-template-columns: .9fr 1.1fr; gap: 48px; }
  .template-about-media { min-height: 560px; }
  .template-about-media > img { height: 500px; }
  .home .why-grid { gap: 45px; }
  .why-visual { padding-left: 25px; }
}

@media (max-width: 900px) {
  .template-about { padding-top: 115px; }
  .template-about-grid { grid-template-columns: 1fr; gap: 65px; }
  .template-about-media { width: min(100%, 650px); margin: auto; }
  .template-about-badge { right: 0; }
  .template-about-note { left: 0; }
  .home .why-grid { grid-template-columns: 1fr; }
  .why-visual { width: min(100%, 690px); margin: 0 auto; }
}

@media (max-width: 680px) {
  .site-header { background: #fff; }
  .template-about { padding: 90px 0 78px; }
  .template-about-grid { gap: 48px; }
  .template-about-media { min-height: 415px; padding: 20px 12px 0 0; }
  .template-about-media > img { height: 375px; }
  .template-about-media::before { inset: 0 30px 35px 15px; }
  .template-about-note { top: 42px; padding: 12px; }
  .template-about-badge { right: 0; bottom: 23px; min-width: 177px; padding: 16px 18px; }
  .template-about-badge strong { font-size: 28px; }
  .template-about-copy > h2 { font-size: 39px; }
  .template-about .benefit-list { grid-template-columns: 1fr; }
  .template-about .benefit-list article,
  .template-about .benefit-list article:nth-child(odd) { min-height: 0; padding: 20px 10px 18px 42px; border-right: 0; }
  .home .services-section { padding: 82px 0; background-size: auto 180px; }
  .services-inline-cta { align-items: flex-start; flex-direction: column; padding: 29px 24px; }
  .services-inline-cta .button { width: 100%; }
  .home .why-section { padding: 82px 0 100px; }
  .why-visual { padding: 0 0 310px; }
  .why-visual::before { inset: 25px 20px 270px -10px; }
  .why-visual > img { height: 330px; }
  .home .why-items { grid-template-columns: 1fr; width: calc(100% - 18px); }
  .home .why-items article { min-height: 0; padding: 20px; border-right: 0; border-bottom: 1px solid #e2e8f0 !important; }
  .home .why-items article:last-child { border-bottom: 0 !important; }
  .home .portfolio-section { padding: 85px 0 95px; }
  .home .process { padding: 82px 0; }
  .final-cta { min-height: 570px; padding: 80px 0; background-position: 58% center; }
  .final-inner { width: min(100% - 34px, 620px); }
  .final-cta h2 { font-size: 44px; }
  .page-hero,
  .project-hero,
  .archive-hero { padding: 90px 0 78px; }
  .page-hero h1,
  .project-hero h1 { font-size: 47px; }
}
