/* ── TECH BY YOU — Brand Stylesheet ── */

/* ══════════════════════════════════════
   KEYFRAMES
══════════════════════════════════════ */
@keyframes tFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes tWordIn {
  from { opacity: 0; transform: translateY(36px); filter: blur(6px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}
@keyframes tSlideRight {
  from { opacity: 0; transform: translateX(50px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes tBarGrow {
  from { transform: scaleY(0); opacity: 0; }
  to   { transform: scaleY(1); opacity: 1; }
}
@keyframes tFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

/* ── Hero element animations (above-fold, fire on load) ── */
.t-eyebrow {
  animation: tFadeUp .6s cubic-bezier(.16,1,.3,1) .05s both;
}
/* Words injected by tech-anim.js */
.tw {
  display: inline-block;
  animation: tWordIn .85s cubic-bezier(.16,1,.3,1) var(--d, 0ms) both;
}
.t-hero-sub {
  animation: tFadeUp .7s cubic-bezier(.16,1,.3,1) 1s both;
}
.t-hero-actions {
  animation: tFadeUp .7s cubic-bezier(.16,1,.3,1) 1.18s both;
}

/* Widget group slides in from right, then floats */
.t-hero-widgets {
  animation: tSlideRight .9s cubic-bezier(.16,1,.3,1) .65s both;
}
.t-widget:nth-child(1) {
  animation: tFloat 5s 2s ease-in-out infinite;
}
.t-widget:nth-child(2) {
  animation: tFloat 5s 2.6s ease-in-out infinite;
}

/* Bars build up with stagger */
.t-bar {
  transform-origin: bottom;
  animation: tBarGrow .65s cubic-bezier(.34,1.56,.64,1)
             calc(.95s + var(--bi, 0) * 0.11s) both;
}

/* ── Scroll reveal (classes added by tech-anim.js) ── */
.t-sr {
  opacity: 0;
  transform: translateY(42px);
  transition: opacity .8s cubic-bezier(.16,1,.3,1),
              transform .8s cubic-bezier(.16,1,.3,1);
}
.t-sr.t-in {
  opacity: 1;
  transform: translateY(0);
}

:root {
  --tech-dark:  #0d1117;
  --tech-card:  #161b22;
  --tech-green: #238636;
  --tech-blue:  #dbeafe;
  --tech-muted: #f0f0f0;
  --tech-cream: #f9f4e3;
}

/* ── Navbar override ── */
.tech-page #navbar { background: var(--tech-cream); border-bottom: 1px solid rgba(0,0,0,.06); }
.tech-page #navbar.scrolled { background: var(--tech-cream); }
.tech-page .nav-cta { background: var(--tech-dark) !important; color: #fff !important; }
.tech-page .nav-cta:hover { background: #238636 !important; }

/* ── HERO ── */
.t-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.t-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.t-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.t-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
    rgba(13,17,23,.92) 0%,
    rgba(13,17,23,.75) 55%,
    rgba(13,17,23,.35) 100%
  );
}
.t-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding-top: 7rem;
  padding-bottom: 5rem;
}

/* Hero text */
.t-eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 1.2rem;
}
.t-hero-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2.8rem, 5.5vw, 4.8rem);
  font-weight: 700;
  line-height: 1.05;
  color: #ffffff;
  margin-bottom: 1.4rem;
}
.t-hero-title em {
  font-style: normal;
  color: #4ade80;
}
.t-hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.7);
  line-height: 1.7;
  max-width: 460px;
  margin-bottom: 2.2rem;
}
.t-hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.t-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: #ffffff;
  color: var(--tech-dark);
  font-weight: 600;
  font-size: .95rem;
  padding: .75rem 1.6rem;
  border-radius: 50px;
  transition: background .25s, transform .25s;
}
.t-btn-primary:hover { background: #e5e7eb; transform: translateY(-2px); }
.t-btn-ghost {
  display: inline-flex;
  align-items: center;
  color: rgba(255,255,255,.8);
  font-weight: 500;
  font-size: .95rem;
  padding: .75rem 1.4rem;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50px;
  transition: border-color .25s, color .25s;
}
.t-btn-ghost:hover { border-color: rgba(255,255,255,.6); color: #fff; }

/* Hero widgets */
.t-hero-widgets {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-end;
}
.t-widget {
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 1.4rem 1.6rem;
  width: 100%;
  max-width: 300px;
}
.t-widget-header {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1rem;
}
.t-widget-dots { display: flex; gap: 4px; }
.t-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.t-dot.green  { background: #4ade80; }
.t-dot.amber  { background: #fbbf24; }
.t-dot.red    { background: #f87171; }
.t-widget-title {
  flex: 1;
  font-size: .8rem;
  font-weight: 600;
  color: rgba(255,255,255,.7);
}
.t-widget-badge {
  font-size: .68rem;
  font-weight: 700;
  padding: 2px 8px;
  background: rgba(74,222,128,.2);
  color: #4ade80;
  border-radius: 20px;
  border: 1px solid rgba(74,222,128,.3);
}
.t-widget-metric {
  font-size: 2.8rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  margin-bottom: .8rem;
}
.t-widget-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 48px;
  margin-bottom: .8rem;
}
.t-bar {
  flex: 1;
  height: var(--h);
  background: rgba(255,255,255,.2);
  border-radius: 3px 3px 0 0;
  transition: background .25s;
}
.t-bar-hi { background: #4ade80 !important; }
.t-widget-sub {
  font-size: .75rem;
  color: #4ade80;
  font-weight: 500;
}

/* Small widget */
.t-widget-sm { padding: 1rem 1.4rem; }
.t-widget-pill {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  padding: 4px 12px;
  background: rgba(74,222,128,.15);
  color: #4ade80;
  border-radius: 20px;
  border: 1px solid rgba(74,222,128,.25);
  margin-bottom: .5rem;
}
.t-widget-sm-text {
  font-size: .83rem;
  color: rgba(255,255,255,.65);
}

/* ── TICKER ── */
.t-ticker {
  background: var(--tech-dark);
  padding: .9rem 0;
  overflow: hidden;
}
.t-ticker-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.t-ticker-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  white-space: nowrap;
}
.t-ticker-items {
  display: flex;
  align-items: center;
  gap: .8rem;
  flex-wrap: wrap;
}
.t-ticker-items span {
  font-size: .85rem;
  font-weight: 500;
  color: rgba(255,255,255,.75);
}
.t-sep { color: rgba(255,255,255,.25) !important; }

/* ── BENTO SERVICES ── */
.t-bento-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.t-section-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  color: #0d1117;
  margin: .8rem 0 1.2rem;
}
.t-bento-desc {
  font-size: 1rem;
  color: #6b7280;
  line-height: 1.7;
  margin-bottom: 2rem;
}
.t-btn-outline {
  display: inline-flex;
  align-items: center;
  font-size: .9rem;
  font-weight: 600;
  color: var(--tech-dark);
  border: 1.5px solid var(--tech-dark);
  padding: .6rem 1.4rem;
  border-radius: 50px;
  transition: background .25s, color .25s;
}
.t-btn-outline:hover { background: var(--tech-dark); color: #fff; }

.t-bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.t-bc {
  border-radius: 16px;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  transition: transform .25s;
}
.t-bc:hover { transform: translateY(-4px); }
.t-bc-icon { font-size: 1.6rem; margin-bottom: .2rem; }
.t-bc h3 { font-size: 1rem; font-weight: 700; line-height: 1.3; }
.t-bc p  { font-size: .85rem; line-height: 1.6; flex: 1; }
.t-bc-link {
  font-size: .82rem;
  font-weight: 600;
  margin-top: .4rem;
  opacity: .8;
  transition: opacity .2s;
}
.t-bc-link:hover { opacity: 1; }

/* Card colours */
.t-bc-dark  { background: var(--tech-dark); color: #fff; }
.t-bc-dark .t-bc-link { color: #4ade80; }
.t-bc-blue  { background: var(--tech-blue); color: #1e3a5f; }
.t-bc-muted { background: var(--tech-muted); color: #374151; }
.t-bc-green { background: #dcfce7; color: #166534; }

/* ── HIGHLIGHTS ── */
.t-hl-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.t-hl-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr;
  gap: 1rem;
  align-items: stretch;
}
.t-hl-card {
  border-radius: 20px;
  padding: 2.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 340px;
  overflow: hidden;
  position: relative;
  transition: transform .25s;
}
.t-hl-card:hover { transform: translateY(-4px); }

.t-hl-dark {
  background: var(--tech-dark);
  color: #fff;
}
.t-hl-dark h3 { font-size: 1.6rem; font-weight: 700; line-height: 1.2; }
.t-hl-dark p  { color: rgba(255,255,255,.65); font-size: .9rem; line-height: 1.65; }
.t-hl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: auto;
}
.t-hl-tags span {
  font-size: .75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.8);
  border: 1px solid rgba(255,255,255,.15);
}

.t-hl-light {
  background: #f0fdf4;
  color: var(--tech-dark);
}
.t-hl-eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #16a34a;
}
.t-hl-light h3 { font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.t-hl-score {
  display: flex;
  align-items: baseline;
  gap: .3rem;
  margin-top: auto;
}
.t-hl-num  { font-size: 3.5rem; font-weight: 800; color: #16a34a; line-height: 1; }
.t-hl-unit { font-size: 1.2rem; font-weight: 600; color: #6b7280; }
.t-hl-sub  { font-size: .78rem; color: #6b7280; }

.t-hl-photo {
  padding: 0;
  overflow: hidden;
  position: relative;
}
.t-hl-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.t-hl-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,17,23,.9) 40%, rgba(13,17,23,.2) 100%);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: .5rem;
}
.t-hl-photo-overlay h3 { font-size: 1.4rem; font-weight: 700; color: #fff; line-height: 1.25; }
.t-hl-photo-overlay p  { font-size: .85rem; color: rgba(255,255,255,.7); }

/* ── Process section colours ── */
.tech-process-overlay {
  background: linear-gradient(135deg, rgba(13,17,23,.92) 0%, rgba(13,17,23,.82) 100%) !important;
}
.tech-num { color: #4ade80 !important; }
.tech-line::after { background: #4ade80 !important; }

/* ── Contact ── */
.tech-page .contact { background: #f9fafb; }

/* ── Footer ── */
.tech-footer { background: var(--tech-dark); }

/* ── Button variants used in contact form ── */
.btn-tech-primary {
  background: var(--tech-dark);
  color: var(--white);
  border-color: var(--tech-dark);
}
.btn-tech-primary:hover {
  background: #238636;
  border-color: #238636;
  transform: translateY(-2px);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .t-hero-inner { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 6rem; }
  .t-hero-widgets { align-items: flex-start; }
  .t-widget { max-width: 100%; }
  .t-bento-layout { grid-template-columns: 1fr; gap: 3rem; }
  .t-hl-grid { grid-template-columns: 1fr 1fr; }
  .t-hl-photo { min-height: 260px; }
}
@media (max-width: 640px) {
  .t-bento-grid { grid-template-columns: 1fr; }
  .t-hl-grid { grid-template-columns: 1fr; }
  .t-hl-header { flex-direction: column; align-items: flex-start; }
  .t-ticker-inner { flex-direction: column; gap: .8rem; align-items: flex-start; }
}
