/* C2 Design Tech — placeholder site. HTML + CSS + GSAP (app.js). */

:root {
  --ink: #ffffff;
  --slate: #cbd5e1;
  --muted: rgba(255, 255, 255, .72);
  --line: rgba(255, 255, 255, .16);
  --soft: #061631;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --accent-bright: #fbbf24;
  --bp-blue: #0a2149;
  --bp-grid: rgba(255, 255, 255, .12);
  --bp-grid-strong: rgba(255, 255, 255, .26);
  --bp-line: rgba(255, 255, 255, .55);
  --bp-line-soft: rgba(255, 255, 255, .78);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--bp-blue); }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bp-blue);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.page { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem clamp(1.2rem, 5vw, 4rem);
  background: rgba(10, 33, 73, .85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-weight: 800;
  letter-spacing: -.02em;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  color: var(--ink);
  text-decoration: none;
}

.wordmark__accent { color: var(--accent); }

.site-nav { display: flex; gap: clamp(1rem, 3vw, 2rem); }

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  transition: color .15s ease;
}

.site-nav a:hover { color: var(--ink); }

/* ---------- Animated stage ---------- */
.stage {
  position: relative;
  width: 100vw;
  min-height: max(72vh, 36rem);
  overflow: hidden;
  background-color: var(--bp-blue);
  background-image:
    repeating-linear-gradient(0deg, var(--bp-grid-strong) 0 1px, transparent 1px 110px),
    repeating-linear-gradient(90deg, var(--bp-grid-strong) 0 1px, transparent 1px 110px),
    repeating-linear-gradient(0deg, var(--bp-grid) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(90deg, var(--bp-grid) 0 1px, transparent 1px 22px);
}

.bp-titleblock {
  position: absolute;
  top: clamp(.9rem, 3vw, 2rem);
  left: clamp(1.2rem, 5vw, 4rem);
  margin: 0;
  z-index: 5;
  font-family: var(--mono);
  font-size: clamp(.58rem, 1vw, .72rem);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bp-line-soft);
  opacity: .72;
}

/* ---------- Blueprint words ---------- */
.words {
  position: absolute;
  top: 28%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-end;
  gap: .02em;
  width: auto;
  max-width: 96vw;
  margin: 0;
  padding: 0;
  white-space: nowrap;
  font-size: clamp(1.6rem, 5vw, 4.4rem);
  z-index: 3;
}

.b-letter {
  position: relative;
  display: inline-block;
  font-weight: 800;
  line-height: .9;
  font-size: inherit;
  letter-spacing: -.02em;
}

.b-letter__outline {
  position: relative;
  display: block;
  color: transparent;
  -webkit-text-stroke: 2px var(--bp-line);
  text-stroke: 2px var(--bp-line);
  z-index: 1;
}

.b-letter__fill {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  color: #ffffff;
  --wipe: 0;
  clip-path: inset(0 calc((1 - var(--wipe, 0) / 100) * 100%) 0 0);
  -webkit-clip-path: inset(0 calc((1 - var(--wipe, 0) / 100) * 100%) 0 0);
  z-index: 2;
}

.b-letter--accent .b-letter__fill { color: var(--accent-bright); }

.b-gap { display: inline-block; width: .38em; }

.b-plotter {
  position: absolute;
  left: 0;
  top: -.08em;
  height: 1.05em;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--accent) 18%, var(--accent) 82%, transparent);
  box-shadow: 0 0 8px rgba(245, 158, 11, .7);
  opacity: 0;
  pointer-events: none;
  z-index: 4;
  transform-origin: 50% 100%;
}

/* Pen nib at the tip of the sweeping plotter line. */
.b-plotter__nib {
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 10px;
  height: 10px;
  transform: translateX(-50%) rotate(45deg);
  background: var(--accent);
  box-shadow: 0 0 10px rgba(245, 158, 11, .8);
  border-radius: 2px;
  pointer-events: none;
}

.bp-baseline {
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -.18em;
  height: 12px;
  border-top: 2px solid var(--bp-line);
  background-image: repeating-linear-gradient(90deg, var(--bp-line) 0 1px, transparent 1px 26px);
  background-size: 100% 7px;
  background-repeat: repeat-x;
  opacity: .6;
}

/* ---------- Blueprint drafting decoration ---------- */
/* Dimension line above the words: thin blue rule with end ticks + label. */
.bp-dim {
  position: absolute;
  top: clamp(4.5rem, 18%, 12rem);
  left: 50%;
  transform: translateX(-50%);
  width: min(96vw, 1160px);
  height: 0;
  pointer-events: none;
  z-index: 2;
}

.bp-dim__rule {
  display: block;
  position: relative;
  height: 0;
  border-top: 1.5px solid var(--bp-line);
  opacity: .7;
  transform: scaleX(0);
  transform-origin: left center;
}

.bp-dim__label {
  position: absolute;
  left: 0;
  bottom: .55rem;
  font-family: var(--mono);
  font-size: clamp(.55rem, .95vw, .7rem);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--bp-line-soft);
  white-space: nowrap;
  opacity: 0;
}

.bp-dim__cap {
  position: absolute;
  top: -6px;
  width: 1.5px;
  height: 12px;
  background: var(--bp-line);
  opacity: .7;
}

.bp-dim__cap--l { left: 0; }
.bp-dim__cap--r { right: 0; }

/* Corner registration crosshairs. */
.bp-mark {
  position: absolute;
  width: 22px;
  height: 22px;
  pointer-events: none;
  opacity: 0;
  z-index: 2;
}

.bp-mark::before,
.bp-mark::after {
  content: "";
  position: absolute;
  background: var(--bp-line);
  opacity: .5;
}

.bp-mark::before {
  left: 50%;
  top: 0;
  width: 1.5px;
  height: 100%;
  transform: translateX(-50%);
}

.bp-mark::after {
  top: 50%;
  left: 0;
  height: 1.5px;
  width: 100%;
  transform: translateY(-50%);
}

.bp-mark--tl { top: clamp(3rem, 7vw, 4.5rem); left: clamp(1rem, 3vw, 2.5rem); }
.bp-mark--tr { top: clamp(3rem, 7vw, 4.5rem); right: clamp(1rem, 3vw, 2.5rem); }
.bp-mark--bl { bottom: clamp(2rem, 6vw, 4rem); left: clamp(1rem, 3vw, 2.5rem); }
.bp-mark--br { bottom: clamp(2rem, 6vw, 4rem); right: clamp(1rem, 3vw, 2.5rem); }

/* ---------- Sections ---------- */
.subtitle {
  text-align: center;
  padding: 1rem clamp(1.2rem, 5vw, 3rem) 4rem;
  max-width: 760px;
  margin: 0 auto;
}

.subtitle h1 {
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  margin: .2rem 0 .6rem;
  letter-spacing: -.02em;
}

.subtitle p {
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.6;
  margin: .3rem 0;
}

.subtitle .warm { color: var(--ink); font-weight: 600; }

.services {
  background: var(--bp-blue);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.2rem, 5vw, 4rem);
  scroll-margin-top: 4rem;
}

/* ---------- About band ---------- */
.about {
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.2rem, 5vw, 4rem);
  text-align: center;
  scroll-margin-top: 4rem;
}

.band__inner { max-width: 820px; margin: 0 auto; }

.band__eyebrow {
  margin: 0 0 1rem;
  font-family: var(--mono);
  font-size: clamp(.6rem, 1vw, .72rem);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

.about h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 1.2rem;
  letter-spacing: -.02em;
}

.about p {
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.65;
  margin: .6rem 0;
}

.services__inner { max-width: 1080px; margin: 0 auto; }

.services h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 1.8rem;
  letter-spacing: -.02em;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.2rem;
}

.card {
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.6rem;
  box-shadow: none;
}

.card h3 { margin: .9rem 0 .5rem; font-size: 1.15rem; }

.card p { margin: 0; color: var(--muted); line-height: 1.55; font-size: .98rem; }

.card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(251, 191, 36, .18);
}

.site-footer {
  text-align: center;
  padding: 2.4rem 1.2rem;
  color: var(--muted);
  font-size: .92rem;
  scroll-margin-top: 4rem;
}

.site-footer strong { color: var(--ink); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .b-letter__outline { opacity: 0; }
  .b-letter__fill { --wipe: 100; }
  .b-plotter { display: none; }
  .bp-dim__rule { transform: scaleX(1); }
  .bp-dim__label { opacity: 1; }
  .bp-mark { opacity: 1; }
}
