/* Tech Craft Inc. — Lean Shared Stylesheet */
:root {
  --ink: #14121A;
  --ink-2: #5A5568;
  --ink-3: #A39DB5;
  --paper: #F5F4F0;
  --paper-2: #F3F2EE;
  --border: #E6E3DC;
  --dark: #0A090E;
  --dark-2: #16131F;
  --dark-border: #2B2540;
  --yellow: #F5C518;
  --purple: #6D28D9;
  --purple-soft: #EDE9FE;
  --ease-out: cubic-bezier(.2,.7,.2,1);
  --font-sans: 'Archivo', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
img { max-width: 100%; height: auto; }

/* Keyframes */
@keyframes tnBlink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes tcBlink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes tfFlow { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }
@keyframes tcFlow { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }
@keyframes tfSpin { to { transform: rotate(360deg); } }
@keyframes tfBlink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes tcMarquee { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }
@keyframes tcMarq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes tcPulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.35); opacity: .5; } }

/* SiteNav */
.tc-nav-root { position: fixed; top: 0; left: 0; right: 0; z-index: 60; pointer-events: none; }
.tc-nav-intro { transform: translateY(-18px); opacity: 0; transition: transform .6s var(--ease-out), opacity .6s; }
.tc-nav-intro.is-ready { transform: translateY(0); opacity: 1; }
.tc-nav-intro.is-scrolled { transform: translateY(-40px); }
.tc-topbar { pointer-events: auto; height: 40px; background: #14121A; color: #D9D6DE; font-size: 13px; transition: opacity .35s; }
.tc-nav-intro.is-scrolled .tc-topbar { opacity: 0; pointer-events: none; }
.tc-topbar-in { max-width: 1320px; height: 100%; margin: 0 auto; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.tc-ticker { position: relative; flex: 1 1 auto; height: 20px; overflow: hidden; min-width: 0; }
.tc-ticker-item { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 10px; white-space: nowrap; opacity: 0; transform: translateY(14px); transition: opacity .5s, transform .6s var(--ease-out); }
.tc-ticker-item.is-active { opacity: 1; transform: translateY(0); }
.tc-ticker-item.is-prev { opacity: 0; transform: translateY(-14px); }
.tc-dot-blink { width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); animation: tnBlink 1.8s infinite; flex: 0 0 auto; }
.tc-topbar-links { display: flex; gap: 20px; flex: 0 0 auto; }
.tc-topbar-links a { color: #FFFFFF; transition: color .2s; }
.tc-topbar-links a:hover { color: var(--yellow); }

.tc-nav-wrap { padding: 0; transition: padding .5s var(--ease-out); }
.tc-nav-intro.is-scrolled .tc-nav-wrap { padding: 10px 16px 0; }
.tc-nav {
  pointer-events: auto; position: relative; max-width: 1320px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 10px 10px 10px 18px;
  background: rgba(250,250,247,0); border: 1.5px solid rgba(20,18,26,0); border-radius: 0;
  box-shadow: 0 0 0 rgba(109,40,217,0); backdrop-filter: blur(14px);
  transition: max-width .55s var(--ease-out), background .45s, border-color .45s, border-radius .55s, box-shadow .45s;
}
.tc-nav-intro.is-scrolled .tc-nav {
  max-width: 1180px; background: rgba(20,18,26,.96); border-color: #14121A;
  border-radius: 16px; box-shadow: 5px 5px 0 #6D28D9;
}
.tc-nav-intro.is-mob-open .tc-nav {
  max-width: 1180px; background: rgba(255,255,255,.96); border-color: #14121A;
  border-radius: 16px; box-shadow: 5px 5px 0 #6D28D9;
}
.tc-logo { position: relative; display: flex; align-items: center; flex-shrink: 0; transition: transform .5s cubic-bezier(.3,1.6,.5,1); }
.tc-logo:hover { transform: rotate(-6deg); }
.tc-logo img { height: 44px; width: auto; display: block; margin: -6px 0 -6px -14px; transition: opacity .4s; }
.tc-logo .logo-dark { position: absolute; left: 0; top: 50%; margin: -22px 0 0 -14px; opacity: 0; }
.tc-nav-intro.is-scrolled:not(.is-mob-open) .tc-logo .logo-light { opacity: 0; }
.tc-nav-intro.is-scrolled:not(.is-mob-open) .tc-logo .logo-dark { opacity: 1; }

.tc-links-pill {
  position: relative; display: flex; align-items: center; gap: 2px; padding: 4px;
  font-size: 15px; font-weight: 600; background: rgba(255,255,255,.72);
  border: 1px solid #E6E3DC; border-radius: 14px; transition: background .45s, border-color .45s;
}
.tc-nav-intro.is-scrolled:not(.is-mob-open) .tc-links-pill { background: transparent; border-color: transparent; }
.tc-hl {
  position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; opacity: 0;
  background: #F3F2EE; border-radius: 10px; pointer-events: none;
  transition: transform .45s var(--ease-out), width .45s var(--ease-out), opacity .25s, background .45s;
}
.tc-nav-intro.is-scrolled:not(.is-mob-open) .tc-hl { background: #2A2733; }
.tc-nav-link {
  position: relative; z-index: 1; padding: 10px 15px; border-radius: 10px;
  display: flex; align-items: center; gap: 7px; color: #14121A; white-space: nowrap; transition: color .45s;
}
.tc-nav-intro.is-scrolled:not(.is-mob-open) .tc-nav-link { color: #FFFFFF; }
.tc-nav-link .tc-roll-box { position: relative; display: block; overflow: hidden; height: 20px; line-height: 20px; }
.tc-nav-link .tc-roll-in { display: block; transition: transform .38s var(--ease-out); }
.tc-nav-link:hover .tc-roll-in, .tc-nav-link:focus-visible .tc-roll-in { transform: translateY(-100%); }
.tc-nav-link .tc-roll-clone { position: absolute; left: 0; top: 100%; color: var(--purple); }
.tc-nav-intro.is-scrolled:not(.is-mob-open) .tc-nav-link .tc-roll-clone { color: var(--yellow); }
.tc-active-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--purple); }
.tc-nav-intro.is-scrolled:not(.is-mob-open) .tc-active-dot { background: var(--yellow); }

.tc-cta-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 8px 8px 18px;
  border-radius: 12px; background: #14121A; color: #FFFFFF; font-size: 14.5px; font-weight: 700;
  transition: background .3s, color .3s, transform .25s var(--ease-out);
}
.tc-cta-btn:hover { background: var(--purple); }
.tc-nav-intro.is-scrolled:not(.is-mob-open) .tc-cta-btn { background: var(--yellow); color: #14121A; }
.tc-nav-intro.is-scrolled:not(.is-mob-open) .tc-cta-btn:hover { background: #FFFFFF; }
.tc-cta-arrow {
  width: 30px; height: 30px; border-radius: 8px; background: var(--yellow); color: #14121A;
  display: grid; place-items: center; font-size: 15px; transition: transform .35s var(--ease-out);
}
.tc-nav-intro.is-scrolled:not(.is-mob-open) .tc-cta-arrow { background: #14121A; color: var(--yellow); }
.tc-cta-btn:hover .tc-cta-arrow { transform: rotate(-45deg); }

.tc-progress-track { position: absolute; left: 16px; right: 16px; bottom: 0; height: 2px; overflow: hidden; opacity: 0; transition: opacity .35s; }
.tc-nav-intro.is-scrolled:not(.is-mob-open) .tc-progress-track { opacity: 1; }
.tc-progress-bar { height: 100%; background: var(--yellow); transform-origin: left; transform: scaleX(0); }

/* Mega Menu */
.tc-mega {
  position: absolute; left: 0; right: 0; top: calc(100% + 10px);
  background: #FFFFFF; color: #14121A; border: 1.5px solid #14121A; border-radius: 20px;
  box-shadow: 0 28px 60px rgba(20,18,26,.16), 6px 6px 0 var(--purple);
  padding: 24px; display: grid; grid-template-columns: 1fr 1fr 1fr 270px; gap: 20px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-12px) scale(.985);
  transition: opacity .32s, transform .4s var(--ease-out), visibility .32s;
}
.tc-mega.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0) scale(1); }
.tc-mega-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border-radius: 12px; transition: background .2s, opacity .4s, transform .45s var(--ease-out);
}
.tc-mega-item:hover, .tc-mega-item.is-picked { background: #F3F2EE; }
.tc-mega-item .ar { color: var(--purple); font-weight: 800; opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .25s; }
.tc-mega-item:hover .ar, .tc-mega-item.is-picked .ar { opacity: 1; transform: translateX(0); }

/* Mobile Menu */
.tc-hb-btn {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 0;
  background: #14121A; color: #FFFFFF; cursor: pointer; align-items: center; justify-content: center;
}
.tc-nav-intro.is-scrolled .tc-hb-btn, .tc-nav-intro.is-mob-open .tc-hb-btn { background: var(--yellow); color: #14121A; }
.tc-mob-drawer {
  position: fixed; inset: 0; background: #14121A; color: #FFFFFF; z-index: 55;
  pointer-events: none; clip-path: circle(0px at calc(100% - 42px) 40px);
  transition: clip-path .75s cubic-bezier(.7,0,.2,1); overflow-y: auto;
}
.tc-mob-drawer.is-open { pointer-events: auto; clip-path: circle(150% at calc(100% - 42px) 40px); }

@media (max-width: 1023px) {
  .tc-topbar-links, .tc-links-pill, .tc-cta-wrap, .tc-mega { display: none !important; }
  .tc-hb-btn { display: inline-flex; }
}

/* Footer hover helpers */
.tc-clock-card { border: 1px solid #2B2540; background: rgba(255,255,255,.03); border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; transition: border-color .3s, background .3s; }
.tc-clock-card:hover { border-color: var(--purple); background: rgba(109,40,217,.12); }
.tc-ft-link { color: #D9D6DE; transition: color .2s, transform .25s; display: inline-flex; align-items: center; gap: 8px; }
.tc-ft-link:hover { color: #FFFFFF; transform: translateX(4px); }
.tc-ft-pill { padding: 7px 12px; border: 1px solid #2B2540; border-radius: 20px; color: #D9D6DE; transition: all .2s; }
.tc-ft-pill:hover { border-color: var(--yellow); color: var(--yellow); }
.tc-ft-word span { display: inline-block; padding-bottom: .06em; transition: color .25s; }
.tc-ft-word span:hover { color: var(--yellow) !important; }
.tc-ft-top { position: relative; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #16131F; color: #FFFFFF; cursor: pointer; display: grid; place-items: center; font-size: 16px; font-weight: 800; transition: background .2s; }
.tc-ft-top:hover { background: var(--purple); }

/* Shared Interactive Cards & Buttons */
.tc-btn-primary {
  display: inline-flex; align-items: center; gap: 10px; background: #14121A; color: #FFFFFF;
  padding: 15px 24px; border-radius: 14px; font-size: 15.5px; font-weight: 700; border: 0; cursor: pointer;
  transition: background .25s, transform .25s var(--ease-out), box-shadow .25s;
}
.tc-btn-primary:hover { background: var(--purple); transform: translateY(-2px); box-shadow: 4px 4px 0 #14121A; }
.tc-btn-yellow {
  display: inline-flex; align-items: center; gap: 10px; background: var(--yellow); color: #14121A;
  padding: 15px 24px; border-radius: 14px; font-size: 15.5px; font-weight: 800; border: 0; cursor: pointer;
  transition: background .25s, transform .25s var(--ease-out);
}
.tc-btn-yellow:hover { background: #FFFFFF; transform: translateY(-2px); }
.tc-card-lift { transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .3s; }
.tc-card-lift:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(20,18,26,.09); }
.tc-container { max-width: 1320px; margin: 0 auto; padding-left: 28px; padding-right: 28px; }
@media (max-width: 640px) { .tc-container { padding-left: 18px; padding-right: 18px; } }

/* Home v6 Bento & Work Responsive Spans */
body { background: #FAFAF7; }
.tc-span-7 { grid-column: span 7; }
.tc-span-5 { grid-column: span 5; }
.tc-span-4 { grid-column: span 4; }
.tc-work-card-wide { width: min(66vw, 900px); }
.tc-work-card-narrow { width: min(46vw, 620px); }
@media (max-width: 1099px) {
  .tc-span-7, .tc-span-5 { grid-column: span 12; }
  .tc-span-4 { grid-column: span 6; }
}
@media (max-width: 759px) {
  .tc-span-7, .tc-span-5, .tc-span-4 { grid-column: span 12; }
  .tc-work-card-wide, .tc-work-card-narrow { width: 84vw; }
}

/* Exact Input Focus & Hover States from Tech Craft Home v6 */
main input:not([type="hidden"]):focus,
main textarea:focus {
  border-color: #6D28D9 !important;
  background: #FFFFFF !important;
  box-shadow: 0 0 0 4px #E4D9FB !important;
  outline: none !important;
}
main input:not([type="hidden"]):active,
main textarea:active {
  border-color: #6D28D9 !important;
}
main a:hover { color: #6D28D9; }
#ai a:hover { color: #F2F0F7; }
#work a:hover { color: #FFFFFF; }
#contact address a:hover { color: #B99CFF !important; }
#services [data-go-price]:hover {
  background: #6D28D9 !important;
  color: #FFFFFF !important;
  border-color: #6D28D9 !important;
}
#services article:nth-child(1) [data-go-price]:hover,
#services article:nth-child(6) [data-go-price]:hover,
#services article:nth-child(8) [data-go-price]:hover {
  background: #FFFFFF !important;
  color: #14121A !important;
  border-color: #FFFFFF !important;
}
#contact button[type="submit"]:hover {
  background: #5B21B6 !important;
  transform: translateY(-1px);
}
#tc-est-send:hover,
#ai a[href="#contact"]:hover {
  background: #131119 !important;
  color: #F2F0F7 !important;
  transform: translateY(-1px);
}
#reviews a[href="#contact"]:hover {
  transform: translateY(-2px);
  color: #14121A !important;
}

@keyframes tcWave { from { transform: scaleY(.22); } to { transform: scaleY(1); } }
