/* ---------- Base ---------- */
:root {
  --bg: #000000;
  --bg-2: #111111;
  --fg: #ffffff;
  --muted: #bbbbbb;
  --card: #0a0a0a;
  --border: #333333;
  --accent: #ffffff;
  --shadow: 0 10px 25px rgba(255,255,255,0.05);
  --radius: 16px;
  --maxw: 1200px;
  --stroke-art: #ffffff;
  --fill-art: #ffffff;

  /* motion tokens */
  --ease: cubic-bezier(.2,.8,.2,1);
  --dur: 240ms;
  --dur-fast: 140ms;
}

/* ---------- Global ---------- */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
body {
  margin: 0;
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--fg);
  background: var(--bg);
}
.container { width: min(100% - 2rem, var(--maxw)); margin-inline: auto; }
.section { padding: clamp(48px,8vw,96px) 0; }
.section--alt { background: var(--bg-2); }
.section-sub { color: var(--muted); margin-top: -10px; }

/* ---------- Links ---------- */
a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-thickness: .08em;
  text-underline-offset: .15em;
  transition: color var(--dur) var(--ease), text-decoration-color var(--dur) var(--ease);
}
a:hover { color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: saturate(1.2) blur(8px);
  background: color-mix(in srgb, var(--bg), transparent 35%);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  display: grid; grid-template-columns: 1fr auto;
  gap: 16px; align-items: center; padding: 12px 0;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--fg); text-decoration: none;
}
.brand-badge {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--fg); color: var(--bg); font-weight: 800;
}
.brand-word { font-weight: 700; letter-spacing: .2px; }
.nav { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--fg); text-decoration: none; opacity: .9; transition: opacity var(--dur) var(--ease); }
.nav a:hover { opacity: 1; }

/* ---------- Buttons (smooth & snappy) ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px; padding:12px 18px; border-radius:12px;
  border:1px solid var(--border);
  color:var(--fg); text-decoration:none; background:transparent;
  transition:
    color var(--dur) var(--ease),
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    transform var(--dur-fast) var(--ease);
  will-change: transform;
}
.btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(255,255,255,0.08);
}
.btn:active{
  transform: translateY(0) scale(.985);
  box-shadow: none;
}
.btn:focus-visible{
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.btn--primary{
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
  font-weight: 700;
}
.site-header .nav .btn--primary{
  /* header CTA keeps the “ghost” look but animates smoothly */
  background: transparent;
  color: var(--fg);
  border-color: var(--fg);
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 10px;
}
.site-header .nav .btn--primary:hover{
  background: var(--fg);
  color: var(--bg);
}

/* Smooth transitions for link-ish controls */
.nav a,
.footer-nav a,
.footer-email{
  transition:
    color var(--dur) var(--ease),
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    transform var(--dur-fast) var(--ease),
    box-shadow var(--dur) var(--ease);
}
.footer-email:hover{
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255,255,255,0.06);
}
.footer-email:focus-visible{
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.accent {
  text-decoration: underline;
  text-decoration-thickness: .12em;
  text-underline-offset: .12em;
}

/* ---------- Hero ---------- */
.hero { padding: clamp(32px,12vw,120px) 0; }
.hero-inner {
  display: grid; grid-template-columns: 1.2fr .8fr;
  gap: clamp(24px,6vw,64px); align-items: center;
}
.hero h1 { font-size: clamp(32px,6vw,64px); line-height: 1.1; margin: 0 0 12px 0; }
.lead { color: var(--muted); max-width: 60ch; }
.hero-cta { display: flex; gap: 12px; margin-top: 18px; }
.hero-art {
  aspect-ratio: 3/2; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card); box-shadow: var(--shadow);
}
.hero-art img{ max-width: 92%; height:auto; display:block; }

/* ---------- Cards & Grids ---------- */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(12,1fr); }
.cards > * { grid-column: span 12; }
@media (min-width:700px){ .cards > * { grid-column: span 6; } }
@media (min-width:1024px){ .cards > * { grid-column: span 4; } }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease);
  will-change: transform;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(255,255,255,0.07); }
.card h3 { margin: 8px 0 6px; } .card-icon{ font-size: 28px; }

/* ---------- Work ---------- */
.work-grid { grid-template-columns: repeat(12,1fr); gap: 18px; }
.work-card { grid-column: span 12; margin: 0; }
@media (min-width:800px){ .work-card { grid-column: span 4; } }
.work-media {
  aspect-ratio: 3/2; border-radius: 14px; border: 1px solid var(--border);
  background: var(--card); box-shadow: var(--shadow);
}
.work-card figcaption { padding: 10px 2px 0; }

/* ---------- About ---------- */
.about-wrap { display: grid; gap: 24px; grid-template-columns: 1.2fr .8fr; align-items: start; }
.bullets { margin: 12px 0 0; } .bullets li{ margin: 6px 0; }
.about-aside { display: grid; gap: 12px; grid-template-columns: repeat(3,1fr); }
.stat {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 16px; text-align: center;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease);
}
.stat:hover{ transform: translateY(-2px); box-shadow: 0 8px 22px rgba(255,255,255,0.08); }
.stat span { display: block; font-weight: 800; font-size: 22px; }
.stat small { color: var(--muted); }

/* compact tech/industry chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.chip {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--fg);
  font-size: .95rem;
  line-height: 1;
}

/* ---------- Testimonials ---------- */
.testimonial-slider {
  position: relative; overflow: hidden; text-align: center;
  max-width: 800px; margin: 0 auto; min-height: 180px;
  padding-inline: 16px; padding-bottom: 36px;
}
.testimonial-slide {
  position: absolute; inset: 0; opacity: 0; transform: translateY(8px);
  transition: opacity .45s var(--ease), transform .45s var(--ease); pointer-events: none;
}
.testimonial-slide.active { opacity: 1; transform: translateY(0); pointer-events: auto; }
blockquote { font-size: 1.25rem; line-height: 1.5; color: var(--fg); margin: 0 auto; max-width: 900px; }
blockquote footer{ margin-top: 12px; font-weight: 600; color: var(--muted); }
.testimonial-dots{
  position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 2;
}
.testimonial-dots .dot{ width:14px;height:14px;border-radius:50%;background:var(--border);cursor:pointer;transition:background .3s var(--ease),transform .15s var(--ease); }
.testimonial-dots .dot:hover{ transform: scale(1.15); }
.testimonial-dots .dot.active{ background: var(--fg); }

/* ---------- Contact ---------- */
.contact-form{
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur-fast) var(--ease);
}
.contact-form:hover{ transform: translateY(-1px); box-shadow: 0 8px 22px rgba(255,255,255,0.06); }
.form-grid{ display: grid; gap: 12px; grid-template-columns: repeat(2,1fr); }
label{ display: grid; gap: 6px; color: var(--fg); }
input,select,textarea{
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--bg-2); color: var(--fg);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
input:focus, select:focus, textarea:focus{
  outline: none; border-color: var(--fg);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--fg), transparent 80%);
}
textarea{ resize: vertical; }
.form-actions{ display: flex; gap: 12px; align-items: center; margin-top: 12px; }
.form-note{ color: var(--muted); }
.form-feedback{ margin-top: 10px; color: var(--muted); }

/* ---------- Visit / Map ---------- */
.visit-grid{ display: grid; gap: 18px; grid-template-columns: 1fr 1.3fr; align-items: start; }
.visit-info{
  display: grid;
  gap: 10px;
  justify-items: start;        /* stick items to the left edge */
}
.visit-info p{ margin: 0 0 10px 0; }
.visit-info .btn{
  margin-top: 8px;
}
@media (min-width: 900px){
  .visit-info .btn{ margin-left: -6px; } /* subtle nudge further left on desktop */
}
.visit-map iframe{
  width:100%; height: clamp(280px,40vw,420px);
  border:1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}

/* ---------- Responsive ---------- */
@media (max-width:900px){
  .hero-inner{ grid-template-columns: 1fr; }
  .about-wrap{ grid-template-columns: 1fr; }
  .form-grid{ grid-template-columns: 1fr; }
  .visit-grid{ grid-template-columns: 1fr; }
}

/* Keep nav visible on mobile; stack header rows */
@media (max-width:820px){
  .nav-wrap { grid-template-columns: 1fr; gap: 10px; }
  .nav { justify-content: center; }
  .brand-word{ display: inline; }
}

/* ---------- Footer (top + legal bar) ---------- */
.site-footer{
  border-top:1px solid var(--border);
  background: color-mix(in srgb, var(--bg), transparent 8%);
  padding:32px 0 26px;
}
.footer-top{
  display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:16px;
}
.brand--footer .brand-badge{
  width:44px;height:44px;border-radius:12px;background:var(--fg);color:var(--bg);
  display:grid;place-items:center;font-weight:800;
}
/* Nav now hugs the LTV badge */
.footer-nav{ display:flex; gap:18px; justify-content:flex-start; flex-wrap:wrap; }
.footer-nav a{ color:var(--muted); text-decoration:none; }
.footer-nav a:hover{ color:var(--fg); }
.footer-cta{ display:grid; justify-items:end; gap:6px; }
.footer-email{
  display:inline-block; padding:8px 12px; border-radius:10px; border:1px solid var(--border);
  color:var(--fg); text-decoration:none;
}
.footer-email:hover{ background:var(--fg); color:var(--bg); }
.tagline{ margin:0; color:var(--muted); font-size:.95rem; }

.footer-divider{
  border:0; border-top:1px solid var(--border); margin:18px 0 12px;
}

.legal-bar{
  display:grid; grid-template-columns: 1fr auto auto; gap:12px; align-items:center;
  color:var(--muted); font-size:.925rem;
}
.legal-copy{ margin:0; }
.legal-links{ list-style:none; display:flex; gap:14px; margin:0; padding:0; }
.legal-links a{ color:var(--muted); text-decoration:none; }
.legal-links a:hover{ color:var(--fg); }
.region{ white-space:nowrap; }

/* Powered by Pulse Point — smaller & subtler */
.powered-by{
  margin-top: 10px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.3px;
}

@media (max-width:820px){
  .footer-top{ grid-template-columns:1fr; text-align:center; }
  .footer-cta{ justify-items:center; }
  .tagline{ text-align:center; }
  .legal-bar{ grid-template-columns: 1fr; justify-items:center; gap:8px; }
}

/* ---------- Utility ---------- */
.mt-16 { margin-top: 16px; }
.br-md { display: none; } @media (min-width:800px){ .br-md { display: inline; } }

/* --- Legal page helpers --- */
.legal-header h1{ margin:0 0 6px; }
.legal-content{ max-width: 900px; }
.legal-content h2{ margin-top: 22px; margin-bottom: 8px; font-size: 1.15rem; }
.legal-content p{ margin: 8px 0; }
.legal-content ul{ margin: 8px 0 12px 1.2rem; }
