/* ============================================================
   Webcube - style.css
   ============================================================ */

html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; font-family: Sora, sans-serif; color: #3d4450; }
a { color: #1f5f9e; }
a:hover { color: #2e7cc3; }

section[id] { scroll-margin-top: 60px; }

/* ---- layout wrapper ---- */
.wrap { max-width: 1280px; margin: 0 auto; box-sizing: border-box; padding-left: 56px; padding-right: 56px; }

/* ---- section titles ---- */
.sec-title { font-family: Poppins, sans-serif; margin: 0 0 10px; color: #16233c; font-size: 54px; font-weight: 800; letter-spacing: -0.02em; }
.sec-sub { margin: 0 0 36px; color: #1f5f9e; font-size: 21px; font-weight: 600; }

.rgb-title { text-shadow: -1px 0 0 #00d5e0, 1px 0 0 #ff2ea6; transition: color .25s ease, text-shadow .25s ease; }
.rgb-title:hover { color: #000; text-shadow: -1px 0 0 #ff2ea6, 1px 0 0 #00d5e0; }
.rgb-title-light { text-shadow: -1px 0 0 #00d5e0, 1px 0 0 #ff2ea6, 0 5px 16px rgba(0,0,0,0.3); transition: color .25s ease, text-shadow .25s ease; }
.rgb-title-light:hover { color: #d0d4db; text-shadow: -1px 0 0 #ff2ea6, 1px 0 0 #00d5e0, 0 5px 16px rgba(0,0,0,0.3); }

/* ============================================================
   Header
   ============================================================ */
.site-head { position: fixed; top: 0; left: 0; right: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; padding: 26px 56px; max-width: 1280px; margin: 0 auto; box-sizing: border-box; transition: padding .3s ease, margin .3s ease; }
.site-head::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); width: 100vw; background: linear-gradient(160deg, #2e7cc3 0%, #1a4f8c 55%, #142a4d 100%); box-shadow: 0 3px 12px rgba(10,25,50,0.35); z-index: -1; opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.site-head.scrolled { padding-top: 0; padding-bottom: 0; }
.site-head.scrolled::before { opacity: 1; }
.site-head.scrolled .cube-box { visibility: hidden; }
.site-head.scrolled .logo-word { --logo-h: 15px; background-position: 0 100%; }
.site-head.scrolled .main-nav { transform: translateX(150px) !important; }
.site-head.scrolled .nav-pill { padding: 3px 11px; }

.logo-lockup { display: flex; align-items: center; gap: 18px; text-decoration: none; }
.logo-lockup .logo-word { transition: transform .35s ease; }
.logo-lockup:hover .logo-word { transform: translateX(20px); }
.logo-lockup:hover .spin-cube { --tz: 26px; --tz2: 21px; }
.logo-word {
  --logo-h: 26px;
  display: inline-block;
  height: var(--logo-h);
  width: calc(var(--logo-h) * 320 / 52);
  background: url('../images/webcube_logos.png') no-repeat 0 0 / 100% 200%;
  flex-shrink: 0;
}

/* ---- 3D spinning cube ---- */
.cube-box { width: 22px; height: 22px; perspective: 420px; }
.spin-cube { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; animation: cubespin 7s linear infinite; }
@keyframes cubespin { from { transform: rotateX(-22deg) rotateY(0deg); } to { transform: rotateX(-22deg) rotateY(360deg); } }
.face { position: absolute; inset: -2.5px; box-sizing: border-box; border-radius: 5px; display: grid; place-items: center; transition: transform .35s ease; }
.face:nth-child(1) { background: linear-gradient(135deg, #4a94d8, #2e7cc3); transform: translateZ(var(--tz, 16px)); }
.face:nth-child(2) { background: linear-gradient(135deg, #2e7cc3, #24629f); transform: rotateY(180deg) translateZ(var(--tz, 16px)); }
.face:nth-child(3) { background: linear-gradient(135deg, #2a72b5, #1f5f9e); transform: rotateY(90deg) translateZ(var(--tz, 16px)); }
.face:nth-child(4) { background: linear-gradient(135deg, #24629f, #1a4f8c); transform: rotateY(-90deg) translateZ(var(--tz, 16px)); }
.face:nth-child(5) { background: linear-gradient(135deg, #6fb0e6, #4a94d8); transform: rotateX(90deg) translateZ(var(--tz, 16px)); }
.face:nth-child(6) { background: linear-gradient(135deg, #1a4f8c, #143c6b); transform: rotateX(-90deg) translateZ(var(--tz, 16px)); }
.cube-ico { width: 11px; height: 11px; background: #fff; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.face:nth-child(1) .cube-ico { --icon: url('../images/icons/code.svg'); }
.face:nth-child(2) .cube-ico { --icon: url('../images/icons/java.svg'); }
.face:nth-child(3) .cube-ico { --icon: url('../images/icons/copy.svg'); }
.face:nth-child(4) .cube-ico { --icon: url('../images/icons/html.svg'); }
.face:nth-child(5) .cube-ico { --icon: url('../images/icons/images.svg'); }
.face:nth-child(6) .cube-ico { --icon: url('../images/icons/video.svg'); }

/* footer (small, light) variant */
.cube-box.sm { width: 18px; height: 18px; perspective: 380px; }
.cube-box.sm .face { inset: -2px; border-radius: 4px; }
.cube-box.sm .face:nth-child(1) { background: linear-gradient(135deg, #c9d6e6, #aebfd4); transform: translateZ(var(--tz2, 13px)); }
.cube-box.sm .face:nth-child(2) { background: linear-gradient(135deg, #b7c7db, #9cb0c9); transform: rotateY(180deg) translateZ(var(--tz2, 13px)); }
.cube-box.sm .face:nth-child(3) { background: linear-gradient(135deg, #adbfd6, #92a8c3); transform: rotateY(90deg) translateZ(var(--tz2, 13px)); }
.cube-box.sm .face:nth-child(4) { background: linear-gradient(135deg, #a3b6cf, #88a0bd); transform: rotateY(-90deg) translateZ(var(--tz2, 13px)); }
.cube-box.sm .face:nth-child(5) { background: linear-gradient(135deg, #d0dcea, #b5c6da); transform: rotateX(90deg) translateZ(var(--tz2, 13px)); }
.cube-box.sm .face:nth-child(6) { background: linear-gradient(135deg, #8fa6c0, #7590ae); transform: rotateX(-90deg) translateZ(var(--tz2, 13px)); }
.cube-box.sm .cube-ico { width: 9px; height: 9px; background: #070e18; }

/* ---- nav ---- */
.main-nav { display: flex; gap: 2px; align-items: center; transform: translateX(150px); transition: transform .3s ease; }
.nav-pill { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,0.85); font-size: 13.5px; font-weight: 600; padding: 8px 11px; text-decoration: none; transition: color .2s ease, padding .25s ease, font-size .25s ease; }
.nav-pill:hover { color: #fff; }
.nav-pill.active { color: #fff; }
.pill-cube { width: 13px; height: 13px; display: inline-block; flex: none; background: url('../images/icons/cube-nav.svg') no-repeat 0 100% / 100% 200%; opacity: 0; transition: opacity .2s ease; }
.nav-pill.active .pill-cube { opacity: 1; background-position: 0 0; }
.nav-pill:hover:not(.active) .pill-cube { opacity: 1; background-position: 0 100%; }

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}
.menu-icon {
  display: block;
  width: 22px;
  height: auto;
  filter: brightness(0) invert(1);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn29 { align-items: center; appearance: none; background-image: radial-gradient(100% 100% at 100% 0, #5adaff 0, #5468ff 100%); border: 0; border-radius: 6px; box-shadow: rgba(45,35,66,.4) 0 2px 4px, rgba(45,35,66,.3) 0 7px 13px -3px, rgba(58,65,111,.5) 0 -3px 0 inset; box-sizing: border-box; color: #fff; cursor: pointer; display: inline-flex; font-family: Sora, sans-serif; height: 48px; justify-content: center; line-height: 1; list-style: none; overflow: hidden; padding-left: 16px; padding-right: 16px; position: relative; text-align: left; text-decoration: none; transition: box-shadow .15s, transform .15s; user-select: none; -webkit-user-select: none; touch-action: manipulation; white-space: nowrap; will-change: box-shadow, transform; font-size: 18px; }
.btn29:focus { box-shadow: #3c4fe0 0 0 0 1.5px inset, rgba(45,35,66,.4) 0 2px 4px, rgba(45,35,66,.3) 0 7px 13px -3px, #3c4fe0 0 -3px 0 inset; }
.btn29:hover { background-image: linear-gradient(144deg, #AF40FF, #5B42F3 50%, #00DDEB); color: #fff; box-shadow: rgba(45,35,66,.4) 0 4px 8px, rgba(45,35,66,.3) 0 7px 13px -3px, #3c4fe0 0 -3px 0 inset; transform: translateY(-2px); }
.btn29:active { box-shadow: #3c4fe0 0 3px 7px inset; transform: translateY(2px); }
.btn29d { box-shadow: rgba(0,0,0,.5) 0 2px 4px, rgba(0,0,0,.4) 0 7px 13px -3px, rgba(58,65,111,.6) 0 -3px 0 inset, 0 0 26px rgba(90,218,255,.22); }
.btn29d:hover { box-shadow: rgba(0,0,0,.5) 0 4px 8px, rgba(0,0,0,.4) 0 7px 13px -3px, #3c4fe0 0 -3px 0 inset, 0 0 32px rgba(175,64,255,.35); }

/* ============================================================
   Hero
   ============================================================ */
.hero-sec { position: relative; min-height: 620px; background: #fff; }
.hero-art { position: absolute; top: 0; right: 0; bottom: 0; width: 50%; background: linear-gradient(160deg, #2e7cc3 0%, #1a4f8c 55%, #142a4d 100%); clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%); overflow: hidden; }
.mock { position: absolute; border-radius: 8px; overflow: hidden; background: #fff; border: 2px solid #fff; }
.mock1 { top: 140px; left: 20%; width: 64%; box-shadow: 0 24px 50px rgba(10,25,50,0.5); transform: rotate(-4deg); }
.mock2 { bottom: 52px; left: 46%; width: 42%; box-shadow: 0 24px 50px rgba(10,25,50,0.55); transform: rotate(5deg); }
.mock-bar { display: flex; gap: 5px; padding: 9px 12px; border-bottom: 1px solid #e6e9ee; }
.mock2 .mock-bar { padding: 8px 11px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #d9dee5; }
.mock2 .dot { width: 8px; height: 8px; }
.mock-body { height: 210px; overflow: hidden; }
.mock2 .mock-body { height: 160px; }
.mock-body img, .band-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.svc-ph { width: 100%; aspect-ratio: 330 / 207; background: url('../images/services.jpg') no-repeat; background-size: 100% 300%; }
.svc-ph-landing { background-position: 0 0; }
.svc-ph-speed { background-position: 0 50%; }
.svc-ph-ad { background-position: 0 100%; }
.hero-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 26px; background: linear-gradient(180deg, rgba(20,42,77,0) 0%, rgba(20,42,77,0.09) 100%); pointer-events: none; z-index: 1; }
.hero-wrap { position: relative; padding-top: 149px; padding-bottom: 90px; }
.hero-copy { width: 46%; }
.hero-copy h1 { font-family: Poppins, sans-serif; margin: 0; color: #16233c; font-size: 48px; line-height: 1.26; font-weight: 800; letter-spacing: -0.02em; }
.hero-lede { margin: 18px 0 0; color: #1f5f9e; font-size: 19px; font-weight: 600; line-height: 1.45; }
.hero-body { margin: 14px 0 34px; font-size: 16.5px; line-height: 1.65; max-width: 50ch; }

/* ---- animated hero word ---- */
.hero-word { position: relative; top: 4px; display: inline-block; padding: 0 0 2px; border: 1.5px solid #2e7cc3; background: rgba(46,124,195,0.07); vertical-align: baseline; transform: translateY(13px); white-space: nowrap; transition: width .34s cubic-bezier(.55, 0, .3, 1); }
.hw-clip { display: block; overflow: hidden; width: 100%; }
.hw-inner { display: inline-block; padding: 0 14px; white-space: nowrap; text-align: center; box-sizing: content-box; color: #2e7cc3; }
.hw-measure { position: absolute; left: 0; top: 0; visibility: hidden; white-space: nowrap; pointer-events: none; }
.hw-h { position: absolute; width: 7px; height: 7px; background: #fff; border: 1.5px solid #2e7cc3; box-sizing: border-box; }
.hw-h.tl { top: -4px; left: -4px; }
.hw-h.tr { top: -4px; right: -4px; }
.hw-h.bl { bottom: -4px; left: -4px; }
.hw-h.br { bottom: -4px; right: -4px; }

/* ============================================================
   Services
   ============================================================ */
.svc-wrap { padding-top: 84px; padding-bottom: 70px; }
.svc-list { border-top: 2px solid #16233c; }
.svc-row { display: grid; grid-template-columns: 130px 330px 1fr; gap: 36px; padding: 38px 0; border-bottom: 1px solid #e2e6ec; align-items: center; }
.svc-row:last-child { border-bottom: 0; }
.svc-badge { display: flex; align-items: center; gap: 10px; }
.iso-cube { transform: rotate(6deg); flex: none; }
.svc-num { font-size: 58px; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px #2e7cc3; transition: color .25s ease; }
.svc-row:hover .svc-num { color: #2e7cc3; }
.svc-col { display: flex; flex-direction: column; gap: 18px; }
.svc-title { font-family: Poppins, sans-serif; margin: 0; color: #16233c; font-size: 21px; font-weight: 700; line-height: 1.3; text-align: center; }
.svc-desc { margin: 0; font-size: 17px; line-height: 1.7; text-align: justify; }

/* ============================================================
   Hosting
   ============================================================ */
.rule-top { background: #fff; padding: 0 0 4px; }
.rule-bot { background: #f4f7fb; padding: 4px 0 0; }
.rule-band { height: 2px; background: rgba(20,42,77,0.5); }
.hosting-sec { background: url('../images/pixel_grid.svg') 0 0 / 595px 595px repeat, linear-gradient(200deg, #1a4f8c 0%, #142a4d 55%, #0e1f3a 100%); box-shadow: inset 0 14px 18px -14px rgba(0,0,0,0.55), inset 0 -14px 18px -14px rgba(0,0,0,0.55); }
.hosting-grid { padding-top: 72px; padding-bottom: 72px; display: grid; grid-template-columns: 1fr auto; gap: 44px; align-items: center; }
.hosting-grid h2 { font-family: Poppins, sans-serif; margin: 0 0 10px; color: #fff; font-size: 38px; font-weight: 800; }
.hosting-sub { margin: 0 0 18px; color: #9aa1aa; font-size: 19px; font-weight: 600; line-height: 1.45; }
.hosting-body { margin: 0; color: #c8cdd4; font-size: 15.5px; line-height: 1.7; max-width: 52ch; }
.carousel-wrap { display: flex; justify-content: flex-end; }
.carousel-col { display: flex; flex-direction: column; gap: 12px; }
.carousel-row { position: relative; width: 467px; height: 54px; }
.carousel-logo { position: absolute; left: 0; top: 0; width: 149px; height: 53.64px; border-radius: 5px; display: block; background-image: url('../images/techstack_logos.png'); background-repeat: no-repeat; background-size: 200% 500%; transform-origin: 50% 50%; transition: transform .65s cubic-bezier(.35, 0, .25, 1), opacity .65s ease; }

/* ============================================================
   Work
   ============================================================ */
.work-sec { background: #f4f7fb; }
.work-wrap { padding-top: 76px; padding-bottom: 104px; }
.work-list { display: flex; flex-direction: column; gap: 20px; }
.work-band { position: relative; background: #fff; border: 1px solid #16233c; border-radius: 4px; min-height: 260px; overflow: hidden; }
.work-band.dark { background: #142a4d; }
.band-img { position: absolute; top: 0; right: 0; bottom: 0; width: 46%; clip-path: polygon(0 0, 100% 0, 100% 100%, 14% 100%); overflow: hidden; transition: width .35s ease; }
.band-img.left { right: auto; left: 0; clip-path: polygon(0 0, 86% 0, 100% 100%, 0 100%); }
.band-txt { position: relative; width: 50%; padding: 34px 20px 34px 34px; display: flex; gap: 22px; align-items: flex-start; transition: width .35s ease, padding .35s ease; }
.band-txt-r { position: relative; margin-left: 50%; width: 46%; padding: 34px 34px 34px 20px; display: flex; gap: 22px; align-items: flex-start; transition: margin-left .35s ease, width .35s ease, padding .35s ease; }
.work-band:hover .band-img { width: calc(46% + 20px); }
.work-band:hover .band-txt { padding-right: 0; }
.work-band:hover .band-txt-r { margin-left: calc(50% + 20px); padding-left: 0; }
.band-badge { display: flex; align-items: center; gap: 8px; flex: none; }
.work-num { font-size: 42px; font-weight: 800; line-height: 1; color: transparent; transition: color .25s ease; }
.num-blue { -webkit-text-stroke: 1.5px #2e7cc3; }
.num-light { -webkit-text-stroke: 1.5px #7fb1e0; }
.work-band:hover .num-blue { color: #2e7cc3; }
.work-band:hover .num-light { color: #7fb1e0; }
.band-title { font-family: Poppins, sans-serif; margin: 0 0 8px; color: #16233c; font-size: 20px; font-weight: 700; }
.work-band.dark .band-title { color: #fff; }
.band-desc { margin: 0; color: #3d4450; font-size: 16px; line-height: 1.6; }
.work-band.dark .band-desc { color: #c8d7ea; }

.diag-wrap { background: #fff; }
.diag { height: 48px; background: #f4f7fb; clip-path: polygon(0 0, 100% 0, 100% 100%); }

/* ============================================================
   Testimonials
   ============================================================ */
.t-wrap { padding-top: 40px; padding-bottom: 84px; }
.t-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; }
.t-card { position: relative; display: flex; flex-direction: column; border: 1px solid #16233c; border-radius: 4px; background: #fff; overflow: hidden; box-sizing: border-box; }
.t-panel { position: absolute; top: 0; left: 0; bottom: 0; width: 22%; clip-path: polygon(0 0, 100% 0, 62% 100%, 0 100%); background: linear-gradient(200deg, #1a4f8c 0%, #142a4d 70%); transition: width .35s ease; }
.t-card:hover .t-panel { width: 25.3%; }
.t-body { position: relative; flex: 1; display: flex; flex-direction: column; margin-left: 166px; padding: 22px 26px 20px; }
.t-stars { display: flex; gap: 2px; margin-top: 8px; transition: transform .3s ease; transform-origin: left center; }
.t-star { display: block; width: 17.6px; height: 17.6px; flex: none; background: url('../images/stars.svg') no-repeat; background-size: 100% 300%; }
.t-star-full { background-position: 0 0; }
.t-star-half { background-position: 0 50%; }
.t-star-empty { background-position: 0 100%; }
.t-card:hover .t-stars { transform: scale(1.2); }
.t-quote { flex: 1; margin: 0; color: #3d4450; font-size: 15.5px; line-height: 1.65; }
.qm { font-family: Poppins, sans-serif; font-size: 38px; font-weight: 800; line-height: 0; color: #2e7cc3; vertical-align: -12px; }
.qm.l { margin-right: 3px; }
.qm.r { margin-left: 3px; }
.t-name { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 16px; color: #16233c; font-size: 14.5px; font-weight: 700; }
.t-flag { width: 16px; height: auto; border-radius: 2px; flex-shrink: 0; display: block; }
.t-role { display: block; color: #6b7280; font-size: 13px; }
.t-avatar { position: absolute; top: 25px; bottom: 25px; left: 25px; width: 140px; box-sizing: border-box; border-radius: 10px; overflow: hidden; box-shadow: 0 6px 16px rgba(10,25,50,0.3); }
.t-avatar a { display: block; width: 100%; height: 100%; background: url('../images/avatars.jpg') no-repeat; background-size: 400% 100%; }
.t-avatar-webchemistry a { background-position: 0 0; }
.t-avatar-masivo a { background-position: 33.333% 0; }
.t-avatar-sentrix a { background-position: 66.666% 0; }
.t-avatar-evoit a { background-position: 100% 0; }

/* ============================================================
   Contact
   ============================================================ */
.contact-sec { background: linear-gradient(200deg, #1a4f8c 0%, #142a4d 55%, #0e1f3a 100%); }
.contact-grid { padding-top: 84px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.contact-grid h2 { font-family: Poppins, sans-serif; margin: 0 0 10px; color: #fff; font-size: 43px; font-weight: 800; letter-spacing: -0.02em; }
.contact-sub { margin: 0 0 20px; color: #7fb1e0; font-size: 19px; font-weight: 600; }
.contact-body { margin: 0; color: #b9c6da; font-size: 15.5px; line-height: 1.7; max-width: 44ch; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 34px; }
.ff { position: relative; }
.fi { height: 48px; border-radius: 4px; border: 0; background: #fff; padding: 0 15px; color: #16233c; font-size: 14px; font-family: Sora, sans-serif; box-sizing: border-box; width: 100%; }
.fta { height: 140px; border-radius: 4px; border: 0; background: #fff; padding: 13px 15px; color: #16233c; font-size: 14px; font-family: Sora, sans-serif; box-sizing: border-box; width: 100%; resize: vertical; display: block; }
.flabel { position: absolute; left: 15px; top: 15px; font-size: 14px; color: #4b5563; pointer-events: none; font-family: Sora, sans-serif; transition: top .2s ease, left .2s ease, color .2s ease, font-size .2s ease; }
.ff input:focus ~ .flabel, .ff input:not(:placeholder-shown) ~ .flabel,
.ff textarea:focus ~ .flabel, .ff textarea:not(:placeholder-shown) ~ .flabel { top: -24px; left: 1px; font-size: 12px; color: #fff; font-weight: 600; }
.btn-send { margin-top: 20px; }
.btn-send:disabled { opacity: 0.65; cursor: wait; transform: none; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0 0 18px; padding: 12px 14px; border-radius: 4px; font-size: 14px; line-height: 1.45; }
.form-status.ok { background: rgba(46, 204, 113, 0.15); color: #d8ffe8; border: 1px solid rgba(46, 204, 113, 0.45); }
.form-status.err { background: rgba(255, 107, 107, 0.12); color: #ffd8d8; border: 1px solid rgba(255, 107, 107, 0.45); }
.contact-rule { padding: 150px 0 8px; }
.rule-light { height: 2px; background: rgba(255,255,255,0.5); }

/* ============================================================
   404
   ============================================================ */
.err-sec { position: relative; min-height: calc(100vh - 72px); background: #fff; }
.err-art { position: absolute; top: 0; right: 0; bottom: 0; width: 50%; background: linear-gradient(160deg, #2e7cc3 0%, #1a4f8c 55%, #142a4d 100%); clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%); display: grid; place-items: center; overflow: hidden; }
.err-glyph { font-family: Poppins, sans-serif; font-size: clamp(120px, 18vw, 220px); font-weight: 900; color: rgba(255,255,255,0.12); letter-spacing: -0.04em; line-height: 1; user-select: none; }
.err-wrap { position: relative; padding-top: 149px; padding-bottom: 90px; }
.err-copy { width: 46%; max-width: 520px; }
.err-title { font-family: Poppins, sans-serif; margin: 0; color: #16233c; font-size: 48px; line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
.err-lede { margin: 18px 0 0; color: #1f5f9e; font-size: 19px; font-weight: 600; line-height: 1.45; }
.err-body { margin: 14px 0 34px; font-size: 16.5px; line-height: 1.65; max-width: 42ch; }

/* ============================================================
   Footer
   ============================================================ */
.site-foot { background: #070e18; }
.foot-wrap { padding-top: 28px; padding-bottom: 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13.5px; color: #8d99ac; }
.foot-lockup { display: flex; align-items: center; gap: 16px; }
.foot-lockup .logo-word { --logo-h: 20px; background-position: 0 100%; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1600px) {
  .main-nav { transform: none !important; }
}

@media (max-width: 980px) {
  section[id] { scroll-margin-top: 72px; }

  .hero-art { display: none; }
  .hero-sec { min-height: 0; }
  .hero-wrap { padding-top: 72px; }

  .err-art { display: none; }
  .err-sec { min-height: 0; }
  .err-wrap { padding-top: 72px; }
  .err-copy { width: 100%; max-width: none; }
  .err-title { font-size: 36px; }

  .site-head {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    gap: 8px 0;
    padding: 2px 24px;
    max-width: none;
    background: linear-gradient(200deg, #1a4f8c 0%, #142a4d 100%);
  }
  .site-head::before { opacity: 1; }
  .menu-toggle {
    display: flex;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }
  .site-head .cube-box { display: none; }
  .site-head .logo-lockup {
    grid-column: 2;
    grid-row: 1;
    justify-content: center;
    gap: 0;
  }
  .site-head .logo-lockup:hover .logo-word { transform: none; }
  .site-head .logo-word {
    --logo-h: 15px;
    background-position: 0 100%;
  }
  .site-head .main-nav,
  .site-head.scrolled .main-nav {
    display: none;
    grid-column: 1 / -1;
    grid-row: 2;
    transform: none !important;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0;
    margin-top: 4px;
    padding: 8px 0 10px;
    border-top: 1px solid rgba(255,255,255,0.15);
  }
  .site-head.menu-open .main-nav {
    display: flex;
  }
  .site-head .nav-pill,
  .site-head.scrolled .nav-pill {
    justify-content: center;
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    box-sizing: border-box;
  }

  .hero-copy { width: 100%; }
  .hero-copy h1 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-word-wrap {
    display: block;
    margin-top: 6px;
  }
  .hero-word {
    top: 0;
    transform: none;
    vertical-align: baseline;
  }
  .svc-row { grid-template-columns: 110px 1fr; }
  .svc-row > p { grid-column: 1 / -1; }
  .svc-title { font-size: 20px; }
  .hosting-grid { grid-template-columns: 1fr; }
  .carousel-wrap { justify-content: center; }
  .carousel-col { width: 233.5px; max-width: 100%; }
  .carousel-row { width: 233.5px; max-width: 100%; height: 41px; overflow: hidden; }
  .carousel-logo { width: 111.75px; height: 40.23px; }
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .t-grid { grid-template-columns: 1fr; }

  .band-txt,
  .band-txt-r {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .t-card {
    --avatar-h: 264px;
    --avatar-top: 24px;
    padding-top: calc(var(--avatar-top) + var(--avatar-h) + 20px);
  }
  .t-panel {
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    height: calc(var(--avatar-top) + var(--avatar-h) / 2);
    clip-path: polygon(0 0, 100% 0, 100% 84%, 0 100%);
  }
  .t-card:hover .t-panel { width: 100%; }
  .t-avatar {
    top: var(--avatar-top);
    left: 50%;
    right: auto;
    bottom: auto;
    transform: translateX(-50%);
    width: 240px;
    height: var(--avatar-h);
    z-index: 2;
  }
  .t-body {
    margin-left: 0;
    padding: 22px 24px 24px;
    position: relative;
    z-index: 1;
  }
  .t-card:hover .t-stars { transform: none; }

  .foot-wrap {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
  .foot-lockup {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .wrap, .site-head { padding-left: 24px; padding-right: 24px; }
  h1 { font-size: 34px !important; }
  h2 { font-size: 32px !important; }
  .form-row { grid-template-columns: 1fr; gap: 30px; }
  .svc-row { grid-template-columns: 1fr; }
  .work-band .band-img { position: relative; width: 100%; height: 160px; clip-path: none; }
  .work-band .band-img img { right: 28px; position: relative; width: 110%; }
  .work-band .band-left { right: 0px !important; position: relative; width: 110%; }
  .work-band .band-txt,
  .work-band .band-txt-r {
    width: auto;
    margin-left: 0;
    padding: 24px;
    flex-direction: column;
    gap: 12px;
  }
  .work-band:hover .band-img { width: 100%; }
  .work-band:hover .band-txt { width: auto; padding: 24px; }
  .work-band:hover .band-txt-r { margin-left: 0; width: auto; padding: 24px; }
}
