/* ==========================================================================
   C2Net — design tokens
   ========================================================================== */
:root {
  /* C2Net brand palette — per C2Net_Logo_Stylesheet.pdf: black #000000,
     white #FFFFFF, blue #4285F4. Everything else here is a tint/shade
     of those three, not a new hue. */
  --bg: #FFFFFF;
  --panel: #FFFFFF;
  --panel-alt: #F5F8FE;      /* faint tint of blue, for section separation */
  --ink: #000000;
  --navy: #000000;           /* dark surface = brand black, not a separate navy */
  --signal: #4285F4;         /* brand blue used as the single accent */
  --signal-dim: #4285F433;
  --line: rgba(0,0,0,0.12);
  --slate: rgba(0,0,0,0.62); /* body copy = tinted black, not grey as a new hue */
  --slate-light: rgba(0,0,0,0.4);

  /* Header font per stylesheet is TT Lakes Neue Extended (licensed, not
     web-available) — Archivo Expanded is the closest free structural match:
     same geometric, wide-set, heavy-weight character. */
  --display: "Archivo Expanded", "Arial Narrow", sans-serif;
  --body: "IBM Plex Sans", -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --max: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--navy);
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--slate); max-width: 62ch; }
.lede { font-size: 1.2rem; color: var(--ink); }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* eyebrow / mono readout label — ties nav & section labels to the timing theme */
.readout {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: 0.9em;
}
.readout::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 3px var(--signal-dim);
}

/* tick-mark rule — a divider that looks like a clock/timing ruler,
   used instead of a plain <hr> throughout the site */
.tick-rule {
  height: 14px;
  margin: 0 0 0;
  background-image: repeating-linear-gradient(
    to right,
    var(--line) 0, var(--line) 1px,
    transparent 1px, transparent 24px
  );
  background-position: bottom;
  background-repeat: repeat-x;
  background-size: 100% 10px;
  border-bottom: 1px solid var(--line);
}

/* ==========================================================================
   Nav
   ========================================================================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7em;
  text-decoration: none;
}
.brand-logo {
  height: 42px;
  width: auto;
  flex-shrink: 0;
}
.brand .dotcloud {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.65rem;
  color: var(--slate-light);
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  list-style: none;
  margin: 0; padding: 0;
  font-size: 0.94rem;
}
.nav-links a {
  text-decoration: none;
  color: var(--slate);
  position: relative;
  padding: 6px 0;
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--navy); }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--signal);
}
.nav-cta {
  background: var(--navy);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 3px;
  font-weight: 500;
}
.nav-cta:hover { background: var(--ink); }

.nav-toggle { display: none; }

@media (max-width: 780px) {
  .nav-links {
    position: fixed;
    inset: 92px 0 auto 0;
    background: var(--panel);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px var(--gutter) 28px;
    border-bottom: 1px solid var(--line);
    gap: 14px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }
  .nav-links.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-toggle {
    display: block;
    background: none; border: 1px solid var(--line);
    border-radius: 4px;
    width: 40px; height: 40px;
    font-family: var(--mono);
    color: var(--navy);
  }
}

/* ==========================================================================
   Hero + sync scope signature visual
   ========================================================================== */
.hero {
  padding: clamp(56px, 9vw, 108px) 0 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(30px, 5vw, 60px);
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero h1 { margin-bottom: 0.4em; }
.hero .lede { margin-bottom: 1.8em; max-width: 46ch; }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.96rem;
  padding: 13px 24px;
  border-radius: 3px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--ink); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--navy); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--navy); }

/* the signature element: converging sync waveforms */
.scope {
  background: var(--navy);
  border-radius: 6px;
  padding: 26px 22px 20px;
  position: relative;
  overflow: hidden;
}
.scope-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 14px;
}
.scope-head .locked { color: var(--signal); }
.scope svg { width: 100%; height: auto; display: block; }
.scope-legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: rgba(255,255,255,0.65);
}
.scope-legend span { display: flex; align-items: center; gap: 6px; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }

.trace { fill: none; stroke-width: 1.6; opacity: 0.85; }
.trace-locked { stroke-width: 2.2; opacity: 1; }
.trace-anim { stroke-dasharray: 6 4; animation: dash 3.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -60; } }
.pulse-ring {
  animation: pulse 2.4s ease-in-out infinite;
  transform-origin: center;
}
@keyframes pulse {
  0%, 100% { opacity: 0.25; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.15); }
}

/* ==========================================================================
   Sections
   ========================================================================== */
section { padding: clamp(52px, 8vw, 96px) 0; }
.section-head { max-width: 60ch; margin-bottom: clamp(30px, 5vw, 48px); }

.panel-alt { background: var(--panel-alt); }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 800px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}
.cell {
  background: var(--panel);
  padding: 30px 28px;
}
.cell .readout { font-size: 0.66rem; }
.cell h3 { margin-bottom: 0.5em; }
.cell p { margin-bottom: 0; }

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 6vw, 64px);
  margin-top: 8px;
}
.stat { font-family: var(--mono); }
.stat .n { display: block; font-family: var(--display); font-size: 2.1rem; color: var(--navy); font-weight: 600; }
.stat .l { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate-light); }

.quote-block {
  border-left: 2px solid var(--signal);
  padding-left: 22px;
  margin: 0;
}
.quote-block p { font-family: var(--display); font-size: 1.3rem; color: var(--navy); font-style: normal; }
.quote-block cite { font-family: var(--mono); font-size: 0.76rem; color: var(--slate-light); font-style: normal; }

.cta-band {
  background: var(--navy);
  color: #fff;
  border-radius: 6px;
  padding: clamp(36px, 6vw, 56px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 0.2em; }
.cta-band p { color: rgba(255,255,255,0.7); margin-bottom: 0; }

/* Precision dial illustration (About page) */
.dial-panel {
  background: var(--panel-alt);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px;
  text-align: center;
}
.dial-panel svg { width: 100%; max-width: 300px; height: auto; margin: 0 auto; display: block; }
.dial-caption { margin-top: 6px; }
.dial-caption .readout { justify-content: center; }

/* Icon badges used in sector grid + values rows */
.icon-badge {
  width: 44px; height: 44px;
  margin-bottom: 16px;
}
.icon-badge svg { width: 100%; height: 100%; color: var(--signal); }

.sector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.sector-cell {
  background: var(--panel);
  padding: 30px 22px;
}
.sector-cell .icon-badge { margin-left: auto; margin-right: auto; }
.sector-cell h4 {
  font-family: var(--display);
  font-size: 0.98rem;
  color: var(--navy);
  margin: 0 0 6px;
  text-align: center;
}
.sector-cell p { font-size: 0.85rem; text-align: center; margin: 0; }
@media (max-width: 800px) {
  .sector-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Architecture flow diagram (Services page) */
.flow-diagram { width: 100%; height: auto; display: block; }
.flow-diagram .node-circle { fill: var(--panel-alt); stroke: var(--line); stroke-width: 1.4; }
.flow-diagram .node-icon { color: #000000; }
.flow-diagram .node-icon.locked { color: var(--signal); }
.flow-diagram .node-label {
  font-family: var(--mono);
  font-size: 12px;
  fill: var(--ink);
  text-anchor: middle;
}
.flow-diagram .node-sub {
  font-family: var(--mono);
  font-size: 10.5px;
  fill: var(--slate-light);
  text-anchor: middle;
}
.readout-invert {
  color: rgba(255,255,255,0.85);
}
.readout-invert::before {
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.2);
}

/* Strategy canvas (Blue Ocean value curve) */
.canvas-wrap {
  margin-top: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px 20px 8px;
}
.strategy-canvas { width: 100%; height: auto; display: block; }
.canvas-axis { stroke: var(--line); stroke-width: 1.5; }
.canvas-axis-cap {
  font-family: var(--mono);
  font-size: 10px;
  fill: var(--slate-light);
}
.canvas-axis-label {
  font-family: var(--mono);
  font-size: 10.5px;
  fill: var(--slate);
  text-anchor: middle;
}
.canvas-line {
  fill: none;
  stroke-width: 2.4;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 1600;
  stroke-dashoffset: 1600;
}
.canvas-line-legacy {
  stroke: #000000;
  stroke-opacity: 0.3;
}
.canvas-line-c2net { stroke: #4285F4; }
.canvas-dot {
  opacity: 0;
  transform: scale(0.4);
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.dot-legacy { fill: #000000; fill-opacity: 0.3; }
.dot-c2net { fill: #4285F4; }

.canvas-wrap.is-visible .canvas-line { animation: draw-line 1.4s ease forwards; }
.canvas-wrap.is-visible .canvas-line-c2net { animation-delay: 0.15s; }
.canvas-wrap.is-visible .canvas-dot { opacity: 1; transform: scale(1); }
@keyframes draw-line { to { stroke-dashoffset: 0; } }

.canvas-legend {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  padding: 14px 4px 18px;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--slate);
}
.canvas-legend span { display: flex; align-items: center; gap: 7px; }
.canvas-legend .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* Scroll-reveal utility, applied broadly for a subtle sense of motion */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Hover motion on card-style components */
.cell, .sector-cell, .contrast-col {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cell:hover, .sector-cell:hover, .contrast-col:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
  position: relative;
  z-index: 1;
}

/* Old way / new way contrast section */
.contrast-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 8px;
}
.contrast-col { background: var(--panel); padding: 30px 30px; }
.contrast-col ul { list-style: none; margin: 0; padding: 0; }
.contrast-col li {
  padding: 12px 0 12px 24px;
  position: relative;
  font-size: 0.95rem;
  border-top: 1px solid var(--line);
}
.contrast-col li:first-child { border-top: none; }
.contrast-old li { color: var(--slate-light); }
.contrast-old li::before {
  content: "×";
  position: absolute; left: 0; top: 11px;
  color: var(--slate-light);
  font-family: var(--mono);
}
.contrast-new li { color: var(--ink); }
.contrast-new li::before {
  content: "✓";
  position: absolute; left: 0; top: 11px;
  color: var(--signal);
  font-family: var(--mono);
}
@media (max-width: 700px) {
  .contrast-grid { grid-template-columns: 1fr; }
}

.process-list { list-style: none; margin: 0; padding: 0; }
.process-list li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 22px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.process-list li:last-child { border-bottom: 1px solid var(--line); }
.process-list .tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--signal);
  padding-top: 3px;
}

/* Forms */
.form-grid { display: grid; gap: 18px; max-width: 560px; }
label {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 7px;
}
input, textarea, select {
  width: 100%;
  font-family: var(--body);
  font-size: 0.98rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--panel);
  color: var(--ink);
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--signal);
  outline-offset: 1px;
  border-color: var(--signal);
}
textarea { resize: vertical; min-height: 140px; }

.contact-info { font-family: var(--mono); font-size: 0.9rem; }
.contact-info dt { color: var(--slate-light); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 18px; }
.contact-info dd { margin: 4px 0 0; color: var(--navy); }

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  margin-top: 20px;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--slate-light);
}
.footer-row a { text-decoration: none; color: var(--slate); }
.footer-row a:hover { color: var(--navy); }
