/* ══════════════════════════════════════
   ccstudio® — Global Styles
   ══════════════════════════════════════ */

/* ── VARIABLES ── */
:root {
  color-scheme: light only;
  --blue:  #0066FF;
  --white: #FFFFFF;
  --b80: rgba(0,102,255,0.80);
  --b60: rgba(0,102,255,0.60);
  --b40: rgba(0,102,255,0.40);
  --b25: rgba(0,102,255,0.25);
  --b12: rgba(0,102,255,0.12);
  --b06: rgba(0,102,255,0.06);
  --font: 'DM Sans', sans-serif;
  --mono: 'DM Mono', monospace;
  --ease: cubic-bezier(0.16,1,0.3,1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  background: #FFFFFF;
  color-scheme: light only;
}

body {
  font-family: var(--font);
  background: #FFFFFF !important;
  color: var(--blue);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--blue); color: var(--white); }

/* ── TOP HEADER STRIP ── */
.top-strip {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 18px 32px;
  background: var(--white);
  font-size: 11px;
  font-family: var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--b60);
}

.ts-logo { display: flex; align-items: center; }
.ts-logo img { height: 18px; width: auto; display: block; }

.ts-tagline {
  display: flex; align-items: center; gap: 10px;
  color: var(--blue);
}
.ts-tagline .num { color: var(--b40); }
.ts-tagline .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--blue);
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.ts-time {
  display: flex; align-items: center; gap: 8px;
  color: var(--b60);
}
.ts-time .clock { color: var(--blue); font-weight: 500; }

.ts-nav { display: flex; gap: 24px; }
.ts-nav a {
  text-decoration: none; color: var(--b60);
  transition: color 0.2s;
}
.ts-nav a:hover, .ts-nav a.active { color: var(--blue); }

.ts-cta {
  text-decoration: none;
  background: var(--blue); color: var(--white);
  padding: 8px 16px; border-radius: 1px;
  letter-spacing: 0.08em;
  transition: opacity 0.2s;
}
.ts-cta:hover { opacity: 0.85; }

/* ── FOOTER ── */
footer {
  background: var(--white);
  padding: 80px 32px 28px;
  color: var(--blue);
}

.footer-glyph-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(8px, 1vw, 14px);
  font-size: clamp(20px, 3.5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--blue);
  margin-bottom: 14px;
}

.footer-glyph-line:last-of-type {
  margin-bottom: 48px;
}

.footer-glyph-line a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s;
}
.footer-glyph-line a:hover { opacity: 0.65; }

.footer-glyph {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: clamp(20px, 3vw, 38px);
  height: clamp(20px, 3vw, 38px);
  border: 1.5px solid var(--blue);
  border-radius: 999px;
  flex-shrink: 0;
  vertical-align: middle;
  position: relative;
  top: -0.04em;
}
.footer-glyph.square    { border-radius: 4px; }
.footer-glyph.no-border { border: none; }
.footer-glyph svg { width: 60%; height: 60%; }
.footer-glyph svg * { fill: var(--blue); stroke: var(--blue); }

.footer-num-badge {
  display: inline-flex;
  align-items: stretch;
  border: 1.5px solid var(--blue);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: clamp(11px, 1.1vw, 15px);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
  text-decoration: none;
  color: var(--blue);
  overflow: hidden;
  vertical-align: middle;
  position: relative;
  top: -0.06em;
  transition: background 0.25s, color 0.25s;
}
.footer-num-badge:hover {
  background: var(--blue);
  color: var(--white);
}
.footer-num-badge .seg {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-right: 1.5px solid var(--blue);
}
.footer-num-badge:hover .seg { border-right-color: rgba(255,255,255,0.4); }
.footer-num-badge .seg:last-child { border-right: none; }

.footer-bottom {
  margin: 0;
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px; font-family: var(--mono);
  letter-spacing: 0.08em; text-transform: uppercase;
  line-height: 1;
  color: var(--b40);
}

.footer-meta { color: var(--b60); }
.footer-year { color: var(--blue); font-weight: 500; }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(28px); }
.reveal.visible { animation: revealUp 0.9s var(--ease) forwards; }

@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE — GLOBAL ── */
@media (max-width: 1100px) {
  .top-strip { grid-template-columns: auto 1fr auto; gap: 16px; padding: 14px 20px; }
  .ts-nav { gap: 16px; font-size: 10px; }
}

@media (max-width: 768px) {
  footer { padding: 80px 20px 32px; }
  .footer-glyph-line:last-of-type { margin-bottom: 56px; }
  .footer-bottom { flex-direction: column; gap: 20px; align-items: flex-start; }
  .footer-year { align-self: flex-end; }
  .ts-nav a:nth-child(2) { display: none; }
}
