/* BilTech Corp — clean, airy product-page style */
:root {
  --ink: #1d1d1f; --ink-2: #6e6e73; --bg: #ffffff; --soft: #f5f5f7;
  --navy: #16408c; --cyan: #00bedc; --blue: #3b7bff; --dark: #0b0f1a;
  --r: 28px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); background: var(--bg);
  font: 17px/1.47 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Inter, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; letter-spacing: -.01em;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.ph { background: #fff3b8; color: #6b5300; border-radius: 6px; padding: 0 6px; font-weight: inherit; }

/* nav — translucent bar */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.72); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0,0,0,.06); }
.nav-in { max-width: 1024px; margin: 0 auto; padding: 0 22px; height: 52px; display: flex; align-items: center; gap: 28px; font-size: 13px; }
.nav-logo { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.nav-links { display: flex; gap: 26px; margin: 0 auto; color: #424245; }
.nav-links a:hover { color: var(--ink); }
.nav-login { color: var(--blue); font-weight: 500; }
.nav-login:hover { text-decoration: underline; }

/* type */
.kicker { font-size: 21px; font-weight: 600; color: var(--navy); margin: 0 0 6px; }
h1 { font-size: clamp(44px, 8vw, 88px); line-height: 1.04; letter-spacing: -.035em; font-weight: 700; margin: 0; }
h2 { font-size: clamp(36px, 5.5vw, 64px); line-height: 1.06; letter-spacing: -.03em; font-weight: 700; margin: 0; }
h3 { font-size: 28px; line-height: 1.12; letter-spacing: -.02em; margin: 6px 0 10px; }
.grad { background: linear-gradient(90deg, var(--cyan), var(--blue) 60%, var(--navy)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.35; color: var(--ink-2); max-width: 720px; margin: 18px auto 0; font-weight: 400; }
.dim { color: #86868b; }

/* buttons */
.pill { display: inline-block; background: var(--blue); color: #fff; border: 0; border-radius: 980px; padding: 12px 24px; font: inherit; font-size: 17px; cursor: pointer; transition: background .2s; }
.pill:hover { background: #2563eb; }
.pill-light { background: #fff; color: var(--ink); }
.pill-light:hover { background: #e8e8ed; }
.more { color: var(--blue); font-size: 19px; }
.more:hover { text-decoration: underline; }
.links { display: flex; gap: 28px; justify-content: center; align-items: center; margin-top: 30px; flex-wrap: wrap; }

/* hero */
.hero { text-align: center; padding: 96px 22px 0; overflow: hidden; }
.hero-visual { max-width: 980px; margin: 56px auto 0; }
.hero-visual svg { width: 100%; height: auto; }
/* hero animation: burying a cable (10 s loop) */
.bury .pedestal rect:first-child { fill: #8a94a6; }
.bury .pedestal .slot { fill: #5c6678; }
.bury .house path { fill: #ffffff; stroke: #c7d0de; stroke-width: 3; }
.bury .house .door { fill: #c7d0de; }
.bury .house .window { fill: #e4e9f1; animation: light 10s infinite; }
.bury .scene { animation: scene 10s infinite; }
.bury .trench, .bury .backfill, .bury .regrass { transform-box: fill-box; transform-origin: left center; }
.bury .half-r { transform-origin: right center; }
.bury .trench { fill: #5a4a3c; animation: dig 10s linear infinite; }
.bury .cable-lay { fill: none; stroke: url(#cg); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: lay 10s linear infinite; }
.bury .backfill { fill: url(#fill); animation: refill 10s linear infinite; }
.bury .regrass { fill: #8fd17c; animation: regrass 10s linear infinite; }
.bury .signal { fill: none; stroke: #ffffff; stroke-width: 4; stroke-linecap: round;
  stroke-dasharray: 70 1000; stroke-dashoffset: 1070; opacity: 0; animation: signal 10s linear infinite; }
.bury .trencher { animation: drive 10s linear infinite; }
.bury .trencher-r { animation: drive-r 10s linear infinite; }
.bury .digger .limb, .bury .digger .torso { stroke: #1d1d1f; stroke-width: 5; stroke-linecap: round; }
.bury .digger .torso { stroke: #16408c; stroke-width: 9; }
.bury .digger .head { fill: #1d1d1f; }
.bury .digger .hat { fill: #f59e0b; }
.bury .digger .handle { stroke: #8a6a45; stroke-width: 4; stroke-linecap: round; }
.bury .digger .spade { fill: #9aa3b2; stroke: #6b7280; stroke-width: 1.5; }
.bury .digger .shovel { transform-box: view-box; transform-origin: 80px 156px; animation: shovel .9s ease-in-out infinite; }
@keyframes shovel { 0%, 100% { transform: rotate(0deg); } 45% { transform: rotate(-38deg); } 60% { transform: rotate(-42deg); } }
.bury :is(.trencher, .trencher-r) .dirt circle { fill: #8b6f55; animation: toss .5s ease-out infinite; }
.bury :is(.trencher, .trencher-r) .dirt circle:nth-child(2) { animation-delay: .17s; }
.bury :is(.trencher, .trencher-r) .dirt circle:nth-child(3) { animation-delay: .33s; }

@keyframes drive  { 0% { transform: translateX(0); opacity: 1; } 60% { transform: translateX(330px); opacity: 1; }
                    66%, 100% { transform: translateX(330px); opacity: 0; } }
@keyframes drive-r { 0% { transform: translateX(0); opacity: 1; } 60% { transform: translateX(-330px); opacity: 1; }
                    66%, 100% { transform: translateX(-330px); opacity: 0; } }
@keyframes dig    { 0% { transform: scaleX(0); } 60%, 100% { transform: scaleX(1); } }
@keyframes lay    { 0%, 4% { stroke-dashoffset: 1000; } 64%, 100% { stroke-dashoffset: 0; } }
@keyframes refill { 0%, 14% { transform: scaleX(0); } 74%, 100% { transform: scaleX(1); } }
@keyframes regrass{ 0%, 18% { transform: scaleX(0); } 78%, 100% { transform: scaleX(1); } }
@keyframes signal { 0%, 76% { stroke-dashoffset: 1070; opacity: 0; } 77% { opacity: 1; }
                    90% { stroke-dashoffset: 0; opacity: 1; } 91%, 100% { opacity: 0; } }
@keyframes light  { 0%, 86% { fill: #e4e9f1; } 89%, 96% { fill: #ffd35a; } 100% { fill: #e4e9f1; } }
@keyframes scene  { 0%, 94% { opacity: 1; } 98% { opacity: 0; } 100% { opacity: 1; } }
@keyframes toss   { 0% { transform: translate(0, 0); opacity: 0; } 40% { opacity: 1; } 100% { transform: translate(-18px, -16px); opacity: 0; } }

/* statement */
.statement { background: var(--dark); color: #f5f5f7; text-align: center; padding: 140px 22px; }
.statement p { font-size: clamp(32px, 5vw, 56px); line-height: 1.1; letter-spacing: -.03em; font-weight: 700; margin: 0 auto; max-width: 900px; }

/* sections */
.section { max-width: 1024px; margin: 0 auto; padding: 120px 22px; }
.title { text-align: center; margin-bottom: 56px; }
.title.left { text-align: left; margin-bottom: 0; }

/* bento tiles */
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tile { background: var(--soft); border-radius: var(--r); padding: 40px; min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end; }
.tile p { color: var(--ink-2); margin: 0; }
.tile .tag { font-size: 14px; font-weight: 600; color: var(--navy); text-transform: uppercase; letter-spacing: .06em; }
.tile-big { grid-row: span 2; min-height: 620px; }
.tile-wide { grid-column: span 2; min-height: 240px; }
.tile.dark { background: linear-gradient(180deg, rgba(8,21,47,.15) 0%, rgba(8,21,47,.55) 45%, rgba(8,21,47,.95) 100%), url(assets/work-1.jpg) center 30% / cover no-repeat, var(--navy); color: #fff; }
.tile.dark p { color: #c9d6f2; }
.tile.dark .tag { color: var(--cyan); }
.tile.accent { background: linear-gradient(120deg, #e8fbff, #eaf1ff); }

/* numbers */
.numbers { max-width: 1024px; margin: 0 auto; padding: 40px 22px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.num b { display: block; font-size: clamp(40px, 5vw, 64px); letter-spacing: -.03em; line-height: 1.1; background: linear-gradient(90deg, var(--cyan), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.num b.ph { -webkit-background-clip: border-box; background-clip: border-box; background: #fff3b8; color: #6b5300; display: inline-block; font-size: 40px; }
.num span { color: var(--ink-2); font-size: 15px; display: block; margin-top: 6px; }

/* how */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.step span { font-size: 15px; font-weight: 600; color: var(--blue); }
.step h3 { font-size: 24px; margin: 8px 0; }
.step p { color: var(--ink-2); margin: 0; font-size: 16px; }
.note { text-align: center; color: var(--ink-2); margin: 56px 0 0; font-size: 15px; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.shot { margin: 0; aspect-ratio: 3/4; border-radius: 22px; overflow: hidden; background: #e8e8ed; }
.shot img, .shot video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.shot:hover img { transform: scale(1.03); }
.gallery { grid-auto-flow: dense; }
.shot-video { grid-row: span 2; aspect-ratio: auto; }
.eoe { color: #6e6e73; font-size: 13px; margin: 26px 0 0; }
.contacts a { color: var(--ink); }
.contacts a:hover b { color: var(--blue); }
.hint a { color: var(--blue); }

/* careers */
.careers { background: var(--dark); color: #f5f5f7; text-align: center; padding: 150px 22px; }
.careers-in { max-width: 820px; margin: 0 auto; }
.kicker.light { color: var(--cyan); }
.sub.light { color: #a1a1a6; margin-bottom: 34px; }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact .sub.left { margin: 18px 0 0; }
.contacts { margin-top: 28px; line-height: 2; }
.contacts span { color: var(--ink-2); display: inline-block; width: 60px; }
.form { display: grid; gap: 12px; }
.form input, .form select, .form textarea { font: inherit; padding: 16px 18px; border: 1px solid #d2d2d7; border-radius: 14px; background: #fff; color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(59,123,255,.15); }
.form .pill { justify-self: start; padding: 14px 34px; }
.hint { font-size: 12px; color: #86868b; margin: 0; }

/* footer */
.foot { background: var(--soft); font-size: 12px; color: var(--ink-2); }
.foot-in { max-width: 1024px; margin: 0 auto; padding: 22px; display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.foot-in span:first-child { display: flex; align-items: center; gap: 8px; }
.foot-in a { color: var(--blue); }
.foot-in a:first-of-type { margin-left: auto; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .bury * { animation: none !important; }
  .bury .trencher, .bury .trencher-r { display: none; }
  .bury .cable-lay { stroke-dashoffset: 0; }
  .bury .house .window { fill: #ffd35a; }
  html { scroll-behavior: auto; }
}

/* tablet / phone */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-login { margin-left: auto; }
  .hero { padding-top: 64px; }
  .bento { grid-template-columns: 1fr; }
  .tile-big { grid-row: auto; min-height: 380px; }
  .tile-wide { grid-column: auto; }
  .numbers { grid-template-columns: 1fr 1fr; gap: 36px 20px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .contact { grid-template-columns: 1fr; gap: 36px; }
  .section { padding: 88px 22px; }
  .statement, .careers { padding: 100px 22px; }
}
@media (max-width: 480px) {
  .tile { padding: 28px; min-height: 240px; }
  .steps { grid-template-columns: 1fr; }
  h3 { font-size: 24px; }
}

/* legal page */
.legal { max-width: 760px; margin: 0 auto; padding: 80px 22px 100px; }
.legal h1 { font-size: clamp(40px, 6vw, 56px); margin-bottom: 8px; }
.legal h2 { font-size: 24px; letter-spacing: -.01em; margin: 40px 0 10px; }
.legal p, .legal li { color: #424245; }
.legal ul { padding-left: 20px; }
.legal li { margin: 6px 0; }
.legal a { color: var(--blue); }
.legal .updated { color: #86868b; font-size: 14px; margin-top: 0; }
.legal .back { margin-top: 56px; }
