@import url("https://fonts.googleapis.com/css2?family=Caveat:wght@500;600;700&family=Kalam:wght@400;700&family=JetBrains+Mono:wght@400;500;700&family=Exo+2:wght@400;500;600;700&display=swap");
@import url("./colors_and_type.css");

/* =============================================================
 * Reset — override colors_and_type.css defaults that conflict
 * (h2 uppercase, explicit colors on h1/h2/h3/p/a)
 * ============================================================= */
h1, h2, h3, h4, h5, h6 {
  color: inherit;
  text-transform: none;
  letter-spacing: -0.02em;
}
p { color: inherit; margin: 0; }
a { color: inherit; }

/* ============================================================
 * Cursor Wireframe Kit — low/mid-fi exploration
 * sketchy-but-scientific: handwritten headers, mono body hints,
 * b&w base + Cursor brand color hints.
 * ============================================================ */

:root {
  /* brand hints */
  --emerald: #3CD387;
  --evergreen: #1A281F;
  --cobalt: #1446A0;
  --purple: #662E9B;
  --pacific: #53A2BE;
  --orange: #FFAD05;
  --lime: #10CA39;
  --ochre: #DE350C;
  --alabaster: #F5F5F5;

  /* wireframe neutrals */
  --ink: #1A281F;
  --ink-2: #3a4a42;
  --ink-3: #6b7a72;
  --line: #c9cec9;
  --line-2: #e5e8e5;
  --paper: #fafaf7;
  --paper-2: #f2f2ee;

  --hand: "Caveat", "Kalam", cursive;
  --hand-2: "Kalam", "Caveat", cursive;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --sans: "Exo 2", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ---------- sketchy borders ---------- */
.wf-box {
  border: 1.5px solid var(--ink);
  border-radius: 10px 9px 11px 9px / 9px 11px 9px 10px;
  background: #fff;
  position: relative;
}
.wf-box.dashed { border-style: dashed; }
.wf-box.thin { border-width: 1px; border-color: var(--line); }

.wf-img {
  border: 1.25px dashed var(--ink-3);
  background: #E5E7E5;
  display: flex; align-items: center; justify-content: center;
  color: #8A928D;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 8px;
  min-height: 120px;
  position: relative;
}
.wf-img::after {
  content: ""; position: absolute; inset: 8px;
  border: 1px dashed rgba(176,182,178,0.5);
  border-radius: 6px;
  pointer-events: none;
}
.wf-img > * { position: relative; z-index: 1; }

.wf-scribble {
  font-family: var(--hand);
  color: var(--ink);
}

/* annotation labels (in margin) */
.wf-annot {
  font-family: var(--hand);
  color: var(--cobalt);
  font-size: 17px;
  line-height: 1.1;
  position: relative;
  padding-left: 18px;
}
.wf-annot::before {
  content: "↳";
  position: absolute;
  left: 0; top: 0;
  color: var(--orange);
  font-family: var(--sans);
  font-weight: 700;
}

.wf-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: #fff;
}
.wf-tag.emerald { background: var(--emerald); color: var(--evergreen); border-color: var(--evergreen); }
.wf-tag.cobalt  { background: var(--cobalt);  color: #fff; border-color: var(--cobalt); }
.wf-tag.orange  { background: var(--orange);  color: var(--evergreen); border-color: var(--evergreen); }
.wf-tag.purple  { background: var(--purple);  color: #fff; border-color: var(--purple); }
.wf-tag.ghost   { background: transparent; color: var(--ink-2); border-style: dashed; }

/* hand-drawn btn */
.wf-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border: 1.5px solid var(--ink);
  border-radius: 8px 10px 7px 11px / 9px 8px 11px 9px;
  background: #fff;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  color: var(--ink);
}
.wf-btn.primary { background: var(--emerald); border-color: var(--evergreen); }
.wf-btn.dark    { background: var(--evergreen); color: #fff; }
.wf-btn.ghost   { background: transparent; border-style: dashed; }

/* placeholder text bars */
.wf-line {
  height: 10px;
  background: linear-gradient(90deg, var(--line) 0 100%);
  border-radius: 6px;
  margin: 6px 0;
}
.wf-line.w90 { width: 90%; }
.wf-line.w80 { width: 80%; }
.wf-line.w70 { width: 70%; }
.wf-line.w60 { width: 60%; }
.wf-line.w50 { width: 50%; }
.wf-line.w40 { width: 40%; }
.wf-line.w30 { width: 30%; }
.wf-line.dark { background: var(--ink); }
.wf-line.thick { height: 16px; border-radius: 8px; }

/* heading ghosts */
.wf-head {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.wf-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 8px;
}
.wf-eyebrow::before {
  content: ""; width: 18px; height: 1px; background: var(--ink-3);
}

/* section wrapper */
.wf-section {
  padding: 56px 0;
  border-bottom: 1px dashed var(--line);
  position: relative;
}
.wf-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

/* corner label per section */
.wf-section-label {
  position: absolute;
  top: 14px; right: 24px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
}

/* nav bar (wireframe) */
.wf-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,250,247,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.wf-nav-inner {
  max-width: 1240px; margin: 0 auto;
  padding: 14px 32px;
  display: flex; align-items: center; gap: 32px;
}
.wf-logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  color: var(--evergreen);
}
.wf-logo img,
.wf-logo img.wf-logo-full,
.wf-logo-full {
  height: 28px !important;
  width: auto !important;
  max-width: 160px;
  display: block;
  object-fit: contain;
}
.wf-footer .wf-logo img,
.wf-footer .wf-logo img.wf-logo-full {
  height: 32px !important;
  max-width: 180px;
}
/* dark bg variant — use white wordmark version (iso color + white text) */
.wf-logo.on-dark img.wf-logo-full {
  content: url("CursorLogo_2022_white.png");
}
.wf-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 24px;
  font-family: var(--sans); font-weight: 500; font-size: 13px;
  letter-spacing: 0.02em;
}
.wf-nav ul a { text-decoration: none; color: var(--ink-2); position: relative; }
.wf-nav ul a.active { color: var(--ink); }
.wf-nav ul a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px;
  height: 2px; background: var(--emerald);
  border-radius: 2px;
}
.wf-nav ul .caret { display: inline-flex; align-items: center; gap: 5px; }
.wf-nav ul .caret::before {
  content: "";
  order: 2;
  width: 9px; height: 9px;
  margin-top: 1px;
  background: currentColor;
  -webkit-mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  color: var(--ink-3);
  opacity: 0.7;
  transition: transform .22s ease, opacity .22s ease;
}
.wf-nav ul li.has-menu:hover .caret::before,
.wf-nav ul li.has-menu:focus-within .caret::before {
  transform: rotate(180deg);
  opacity: 1;
}
/* nav dropdown (Soluciones) */
.wf-nav ul li.has-menu { position: relative; }
.wf-nav .nav-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 300px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 18px 44px rgba(26,40,31,0.16);
  padding: 8px; opacity: 0; pointer-events: none;
  transition: opacity .16s ease, transform .16s ease; z-index: 60;
}
.wf-nav ul li.has-menu:hover .nav-menu,
.wf-nav ul li.has-menu:focus-within .nav-menu {
  opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(2px);
}
.wf-nav .nav-menu a {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 12px; border-radius: 8px; color: var(--ink-2);
}
.wf-nav .nav-menu a:hover { background: var(--paper-2); color: var(--ink); }
.wf-nav .nav-menu .nm-num { font-family: var(--mono); font-size: 11px; color: var(--ink-3); padding-top: 2px; }
.wf-nav .nav-menu strong { font-size: 13.5px; font-weight: 600; display: block; }
.wf-nav .nav-menu span.nm-sub { font-size: 12px; color: var(--ink-3); }
.wf-nav-right { margin-left: auto; display: flex; gap: 12px; align-items: center; }
.wf-nav-lang {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  border: 1px solid var(--line);
  padding: 4px 8px; border-radius: 4px;
}

/* footer */
.wf-footer {
  background: var(--evergreen);
  color: #cfd3cf;
  padding: 56px 0 32px;
  margin-top: 80px;
}
.wf-footer .wf-container {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px;
}
.wf-footer h5 {
  color: #fff; font-family: var(--sans); font-weight: 700; font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 14px;
}
.wf-footer ul { list-style: none; padding: 0; margin: 0; }
.wf-footer li { margin: 7px 0; font-size: 13px; opacity: 0.78; }
.wf-footer .wf-logo { color: #fff; }
.wf-footer-bottom {
  max-width: 1240px; margin: 40px auto 0; padding: 20px 32px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,0.55);
}

/* grid helpers */
.wf-grid { display: grid; gap: 20px; }
.wf-grid-2 { grid-template-columns: 1fr 1fr; }
.wf-grid-3 { grid-template-columns: repeat(3, 1fr); }
.wf-grid-4 { grid-template-columns: repeat(4, 1fr); }
.wf-grid-12 { grid-template-columns: repeat(12, 1fr); }

/* dotted grid paper bg variant */
.wf-paper {
  background-color: var(--paper);
  background-image:
    radial-gradient(circle, rgba(26,40,31,0.08) 1px, transparent 1.2px);
  background-size: 20px 20px;
}
.wf-grid-paper {
  background-color: #fff;
  background-image:
    linear-gradient(rgba(20,70,160,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,70,160,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* page titling */
.wf-page-title {
  font-size: 56px; line-height: 1.05; letter-spacing: -0.02em;
  font-weight: 700; margin: 0;
}
.wf-page-title em {
  font-family: var(--hand);
  font-style: normal;
  color: var(--cobalt);
  font-weight: 600;
}
.wf-page-sub {
  font-size: 18px; line-height: 1.5; color: var(--ink-2);
  margin: 16px 0 0; max-width: 640px;
}

/* callout speech bubble for annotations */
.wf-callout {
  font-family: var(--hand);
  color: var(--evergreen);
  background: var(--orange);
  padding: 6px 14px;
  border: 1.5px solid var(--evergreen);
  border-radius: 14px 16px 13px 17px / 15px 13px 16px 14px;
  font-size: 18px;
  display: inline-block;
  transform: rotate(-1.5deg);
  box-shadow: 2px 2px 0 var(--evergreen);
}

/* arrows (svg used inline) */
.wf-arrow {
  font-family: var(--hand);
  color: var(--cobalt);
  font-size: 22px;
}

/* generic rounded bar (progress / counter) */
.wf-bar {
  height: 14px; background: var(--line-2);
  border-radius: 99px; overflow: hidden;
  border: 1px solid var(--line);
}
.wf-bar > i {
  display: block; height: 100%;
  background: var(--emerald);
}

/* tabs */
.wf-tabs {
  display: flex; gap: 4px;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 0;
}
.wf-tabs button {
  font-family: var(--sans); font-weight: 600; font-size: 13px;
  letter-spacing: 0.02em;
  border: 1.5px solid var(--ink); border-bottom: none;
  background: #fff;
  padding: 10px 18px;
  margin-bottom: -1.5px;
  border-radius: 8px 10px 0 0;
  cursor: pointer;
  color: var(--ink-2);
}
.wf-tabs button.active {
  background: var(--evergreen); color: #fff;
}
.wf-tab-panel { padding: 28px 0; }

.wf-hidden { display: none !important; }

/* mobile nav toggle button (hidden on desktop, shown ≤720 via media query) */
.wf-nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line); border-radius: 9px;
  background: #fff; cursor: pointer; padding: 0;
  color: var(--ink);
}
.wf-nav-toggle svg { width: 20px; height: 20px; }
.wf-nav-toggle .icon-close { display: none; }
.wf-nav.menu-open .wf-nav-toggle .icon-open { display: none; }
.wf-nav.menu-open .wf-nav-toggle .icon-close { display: block; }

/* ============================================================
 * Real images inside placeholders — swap-ready <img> slots.
 * Replace the src in the HTML to drop in real assets.
 * ============================================================ */
.wf-img { padding: 0; overflow: hidden; }
.wf-img img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.wf-img:has(img) { border-style: solid; border-color: var(--line); background: none; }
.wf-img:has(img)::after { display: none; }

.app-thumb { overflow: hidden; padding: 0; }
.app-thumb img { width: 100%; height: 100%; object-fit: contain; background: #fff; display: block; }
.app-thumb:has(img) { border-style: solid; border-color: var(--line); }

/* ============================================================
 * RESPONSIVE — tablet (≤1024px) + mobile (≤720px)
 * Targets both shared .wf-* classes AND page-specific grids
 * ============================================================ */

@media (max-width: 1024px) {
  .wf-container { padding: 0 24px; }
  .wf-section { padding: 48px 0; }

  /* nav: shrink gaps */
  .wf-nav-inner { gap: 20px; padding: 12px 24px; }
  .wf-nav ul { gap: 18px; font-size: 12.5px; }
  .wf-nav-right .wf-btn { padding: 8px 14px; font-size: 13px; }

  /* single/legal wraps match general container padding on tablet */
  .art-wrap, .pj-wrap, .art-cover, .legal-wrap, .pj-hero { padding-left: 24px !important; padding-right: 24px !important; }

  /* footer: 2-row layout */
  .wf-footer .wf-container {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
  }
  .wf-footer .wf-container > div:first-child {
    grid-column: 1 / -1;
  }

  /* shared bento grids → 4 cols */
  .apps-bento,
  .port-bento {
    grid-template-columns: repeat(4, 1fr) !important;
  }
  .apps-bento .app-hero,
  .apps-bento .app-count { grid-column: span 4 !important; }
  .apps-bento .big       { grid-column: span 2 !important; }
  .apps-bento .wide      { grid-column: span 4 !important; }
  .apps-bento .sml-app   { grid-column: span 2 !important; }

  .port-bento .c-3x2 { grid-column: span 4 !important; }
  .port-bento .c-3x1 { grid-column: span 2 !important; }
  .port-bento .c-4x2 { grid-column: span 4 !important; }
  .port-bento .c-2x2 { grid-column: span 2 !important; }
  .port-bento .c-2x1 { grid-column: span 2 !important; }

  /* 3-col grids → 2 col */
  .values, .features-grid, .pages-grid,
  .legend {
    grid-template-columns: 1fr 1fr !important;
  }
  .features-grid[style*="repeat(4"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* 4-col → 2-col */
  .team, .use-cases {
    grid-template-columns: 1fr 1fr !important;
  }
  .clients-wall {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  /* timeline: wrap to 3-col x 2 rows */
  .timeline {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  .timeline::before { display: none; }
  .tl-year { padding-top: 32px; }
  .tl-year::before { top: 6px; }

  /* hero splits */
  .home-hero-grid,
  .methodology-wrap,
  .cnt-layout,
  .sol-split,
  .product-panel,
  .blog-layout,
  .posts-grid,
  .contact-cta {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  .home-hero h1,
  .nos-hero h1,
  .port-hero h1,
  .blog-hero h1,
  .sol-hero h1,
  .cnt-hero h1,
  .idx-hero h1 {
    font-size: 52px !important;
  }
  .home-hero p, .nos-hero p, .port-hero p, .blog-hero p, .sol-hero p, .cnt-hero p, .idx-hero p {
    font-size: 16px;
  }

  .methodology-circle { width: 100% !important; max-width: 420px; height: auto !important; aspect-ratio: 1; }

  /* node graph */
  .node-graph { height: 380px; }

  /* contact cta padding */
  .contact-cta { padding: 40px !important; }

  /* hero stats: 2x2 */
  .hero-stats { grid-template-columns: 1fr 1fr !important; gap: 20px; }

  /* sol-tabs: scroll horizontally */
  .sol-tabs-inner { overflow-x: auto; flex-wrap: nowrap; }
  .sol-tabs button { white-space: nowrap; }
}

@media (max-width: 720px) {
  .wf-container { padding: 0 18px; }
  .wf-section { padding: 40px 0; }

  /* mobile nav: show hamburger, collapsible menu */
  .wf-nav ul { display: none; }
  .wf-nav-inner { gap: 0; padding: 12px 18px; }
  .wf-nav-right { margin-left: auto; gap: 16px; }
  .wf-nav-lang { display: inline-flex; align-items: center; }
  .wf-nav-right .wf-btn.primary { display: none; }

  .wf-nav-toggle { display: inline-flex !important; }
  .wf-nav.menu-open ul {
    display: flex !important; flex-direction: column; gap: 4px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-top: 1px solid var(--line-2);
    box-shadow: 0 20px 40px rgba(26,40,31,0.14);
    padding: 12px; z-index: 90;
  }
  .wf-nav.menu-open ul li { width: 100%; }
  .wf-nav.menu-open ul li a {
    display: flex; align-items: center;
    padding: 13px 16px; font-size: 15px; font-weight: 600;
    border-radius: 12px; color: var(--ink);
    transition: background 140ms ease, color 140ms ease;
  }
  .wf-nav.menu-open ul li a:hover { background: var(--paper-2); }
  /* active state: tinted pill + dot, NO underline */
  .wf-nav.menu-open ul a.active::after { display: none !important; }
  .wf-nav.menu-open ul li a.active {
    background: rgba(60,211,135,0.14); color: var(--evergreen);
  }
  .wf-nav.menu-open ul li a.active::before {
    content: ""; width: 7px; height: 7px; border-radius: 50%;
    background: var(--emerald); margin-right: 10px; flex: 0 0 auto;
  }
  /* Soluciones submenu: separated block, numbers inline horizontal */
  .wf-nav.menu-open ul li.has-menu .nav-menu {
    position: static; transform: none; opacity: 1; pointer-events: auto;
    box-shadow: none; border: none; min-width: 0;
    display: block; padding: 4px 0 8px 16px; margin: 2px 0 4px 16px;
    border-left: 2px solid var(--line-2); border-radius: 0;
  }
  .wf-nav.menu-open ul li.has-menu .nav-menu a { border-radius: 0; }
  .wf-nav.menu-open ul li.has-menu .nav-menu a {
    display: flex; flex-direction: row; align-items: center; gap: 12px;
    padding: 10px 14px; font-weight: 500; font-size: 14px;
  }
  .wf-nav.menu-open .nav-menu .nm-num {
    font-family: var(--mono); font-size: 11px; color: var(--emerald);
    background: var(--evergreen); border-radius: 6px;
    padding: 3px 7px; flex: 0 0 auto; line-height: 1;
  }
  .wf-nav.menu-open .nav-menu a > span:last-child { display: flex; flex-direction: column; }
  .wf-nav.menu-open .nav-menu strong { font-weight: 600; font-size: 14px; }
  .wf-nav.menu-open .nav-menu .nm-sub { font-size: 12px; color: var(--ink-3); }
  .wf-nav.menu-open ul .caret::before { display: none; }

  /* article / project wraps keep mobile margins */
  .art-wrap, .pj-wrap, .art-cover, .legal-wrap, .pj-hero { padding-left: 18px !important; padding-right: 18px !important; }

  /* footer: single col */
  .wf-footer { padding: 48px 0 24px; }
  .wf-footer .wf-container {
    grid-template-columns: 1fr 1fr !important;
    gap: 28px 24px;
    padding: 0 24px;
  }
  .wf-footer .wf-container > div:first-child { grid-column: 1 / -1; }
  .wf-footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    margin-top: 24px;
    padding: 16px 24px 0;
  }

  /* bento → single column */
  .apps-bento,
  .port-bento {
    grid-template-columns: 1fr !important;
    grid-auto-rows: auto !important;
  }
  .apps-bento > *,
  .port-bento > * { grid-column: span 1 !important; grid-row: span 1 !important; min-height: 180px; }
  /* apps bento hero number smaller */
  .apps-bento .app-hero { min-height: 280px; }
  .apps-bento .app-hero div[style*="font-size: 120px"] { font-size: 72px !important; }
  .apps-bento .app-hero div[style*="font-size:80px"] { font-size: 48px !important; }

  /* port-bento featured */
  .port-card.feat { padding: 18px !important; }
  .port-card.feat h3 { font-size: 20px; }

  /* 2-col grids → 1 col */
  .values, .features-grid, .pages-grid,
  .legend, .team, .use-cases,
  .stack-grid, .form-row, .field-grid,
  .service-picker, .posts-grid {
    grid-template-columns: 1fr !important;
  }

  .clients-wall { grid-template-columns: 1fr 1fr !important; }
  .timeline    { grid-template-columns: 1fr 1fr !important; gap: 12px; }

  /* hero text sizes */
  .home-hero h1, .nos-hero h1, .port-hero h1,
  .blog-hero h1, .sol-hero h1, .cnt-hero h1,
  .idx-hero h1 {
    font-size: 38px !important;
    line-height: 1.05 !important;
  }
  .wf-page-title { font-size: 38px; }
  .wf-page-sub  { font-size: 16px; }

  /* section heads: stack the right-side links */
  .wf-container > div[style*="justify-content:space-between"] {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 16px;
  }

  /* methodology */
  .methodology-circle { max-width: 320px; }
  .method-step { width: 110px; }
  .method-step .bubble { width: 44px; height: 44px; font-size: 13px; }
  .method-step .label { font-size: 12px; }
  .method-step .hint  { font-size: 9.5px; }
  .method-center      { padding: 14px 18px; font-size: 13px; }

  /* contact cta: pad less */
  .contact-cta { padding: 28px !important; border-radius: 14px; }
  .contact-cta h2 { font-size: 32px !important; }

  /* form */
  .form-box { padding: 22px !important; }
  .cnt-hero h1 { font-size: 38px !important; }

  /* port filters horizontal scroll */
  .filters { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; }
  .filters > * { flex-shrink: 0; }

  /* sol-tabs */
  .sol-tabs button { padding: 14px 16px; font-size: 13px; }

  /* hero stats: stack to 2x2 already, ensure number is smaller */
  .hero-stats .stat .n { font-size: 28px; }

  /* node graph smaller */
  .node-graph { height: 320px; }
  .node { font-size: 10px; padding: 6px 9px; }
  .node.core { padding: 10px 14px; font-size: 11px; }

  /* idx hero stats */
  .idx-hero .wf-container > div[style*="display:flex"][style*="margin-top"] {
    flex-wrap: wrap; gap: 20px !important;
  }
  .idx-hero .wf-container > div[style*="display:flex"] > div {
    flex: 1 1 calc(50% - 20px);
  }

  /* blog featured post */
  .featured-post { grid-template-columns: 1fr !important; }
  .featured-post .cover { min-height: 180px !important; border-right: none !important; border-bottom: 1.5px solid var(--ink); }
  .featured-post .body { padding: 20px !important; }
  .featured-post h2 { font-size: 24px !important; }

  /* pricing strip stack */
  .pricing-strip {
    grid-template-columns: 1fr !important;
    padding: 28px !important;
  }

  /* faq compact */
  .faq-item { grid-template-columns: 32px 1fr 28px !important; gap: 10px !important; }
  .faq-item h4 { font-size: 16px !important; }

  /* sol-visual padding */
  .sol-visual { padding: 20px !important; min-height: auto; }
}

/* bento */
.wf-bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 180px;
  gap: 16px;
}
.wf-bento > * {
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  padding: 18px;
  background: #fff;
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* screen frame (page mocks shown inside wireframe 'device') */
.wf-screen-frame {
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  box-shadow: 6px 6px 0 var(--ink);
}
.wf-screen-frame .wf-screen-bar {
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  display: flex; gap: 8px; align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}
.wf-screen-frame .wf-screen-bar i {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.4);
  display: inline-block;
}

/* page intro banner for each wireframe page */
.wf-page-banner {
  background: var(--evergreen);
  color: #fff;
  padding: 14px 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.wf-page-banner .wf-container {
  display: flex; align-items: center; justify-content: space-between;
}
.wf-page-banner .pill {
  background: var(--emerald);
  color: var(--evergreen);
  padding: 3px 10px;
  border-radius: 3px;
  font-weight: 700;
}

/* ============================================================
 * HI-FI REFINEMENT LAYER  (overrides the wireframe scaffolding)
 * Goal: clean & subtle, keeping typography, palette, texts.
 * - hides designer annotations / corner labels / callouts
 * - normalizes the hand-drawn wonky radii into clean ones
 * - softens the brutalist hard-offset shadows
 * - adds gentle transitions for a polished feel
 * ============================================================ */

/* 1 — remove wireframe scaffolding (designer notes) */
.wf-section-label,
.wf-annot,
.wf-callout { display: none !important; }

/* 2 — clean, consistent radii (no more sketchy asymmetry) */
.wf-box { border-radius: 12px; }
.wf-btn { border-radius: 10px; }
.wf-logo-mark { border-radius: 8px; }
.wf-callout { border-radius: 12px; }

/* 3 — refined borders & surfaces */
.wf-box { border-color: var(--line); box-shadow: 0 1px 2px rgba(26,40,31,0.04); }
.wf-box.thin { box-shadow: none; }

/* 4 — buttons: subtle, modern */
.wf-btn {
  border-width: 1px;
  transition: transform 140ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  box-shadow: 0 1px 2px rgba(26,40,31,0.05);
}
.wf-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(26,40,31,0.10); }
.wf-btn.primary { border-color: var(--emerald-deep, #2BB976); }
.wf-btn.ghost { border-style: solid; border-color: var(--line); box-shadow: none; }
.wf-btn.ghost:hover { border-color: var(--ink); }

/* 5 — soften the hard-offset (brutalist) shadows used on cards/frames */
.wf-screen-frame { box-shadow: 0 12px 32px rgba(26,40,31,0.10) !important; }
.page-card:hover,
.port-card:hover,
.post-card:hover,
.rel-card:hover,
.featured-post:hover {
  box-shadow: 0 14px 36px rgba(26,40,31,0.12) !important;
}

/* 6 — tags: keep structure, slightly softer */
.wf-tag { border-radius: 5px; }
.wf-tag.ghost { border-style: solid; border-color: var(--line); }

/* 7 — smoother transitions on interactive surfaces */
.wf-nav ul a,
.wf-tabs button,
.filter-btn,
.cat-list li,
.tag-list .t { transition: color 150ms ease, background 150ms ease, border-color 150ms ease; }

/* 8 — images: clean solid frame instead of dashed */
.wf-img { border: 1px solid var(--line); }
.wf-img::after { display: none; }

/* 9 — soften ALL card-style borders site-wide (was 1.5px ink → clean) */
.value-card,
.team-card,
.feature-card,
.featured-post,
.post-card,
.rel-card,
.clients-wall,
.info-box,
.form-box,
.map-box,
.cert-box,
.timeline-tag,
.product-visual,
.sol-visual,
.node-graph {
  border-color: var(--line) !important;
  border-width: 1px !important;
  box-shadow: 0 1px 2px rgba(26,40,31,0.04);
}
.value-card:hover,
.team-card:hover,
.feature-card:hover { box-shadow: 0 14px 36px rgba(26,40,31,0.10); }

/* node/method visuals: keep clean 1px frame */
.method-circle svg, .methodology-circle svg { filter: none; }

/* tabs underline cleaner */
.sol-tabs button.active { border-bottom-color: var(--emerald); }

/* ============================================================
 * Skeleton screens — shimmer placeholder while images load.
 * Auto-applied by skeleton.js; never touches existing animations.
 * ============================================================ */
@keyframes skelShimmer { 0%{ background-position: 200% 0; } 100%{ background-position: -200% 0; } }
@keyframes skelFadeIn { from{ opacity: .35; } to{ opacity: 1; } }
img.skel {
  background-image: linear-gradient(100deg, #e7e9e7 25%, #f3f4f3 50%, #e7e9e7 75%);
  background-size: 200% 100%;
  background-repeat: no-repeat;
  animation: skelShimmer 1.25s linear infinite;
  border-radius: inherit;
}
img.skel.loaded {
  background-image: none;
  animation: skelFadeIn .45s ease both;
}
/* generic skeleton block authors can drop in */
.skeleton {
  background-image: linear-gradient(100deg, #e7e9e7 25%, #f3f4f3 50%, #e7e9e7 75%);
  background-size: 200% 100%;
  animation: skelShimmer 1.25s linear infinite;
  border-radius: 8px;
}
@media (prefers-reduced-motion: reduce){
  img.skel, .skeleton { animation: none; }
  img.skel.loaded { animation: none; }
}
/* scroll-triggered skeleton overlay — content silhouettes */
.skel-overlay {
  position: absolute; inset: 0; z-index: 6; border-radius: inherit;
  background: #fff; overflow: hidden;
  transition: opacity .6s ease; pointer-events: none;
}
.skel-overlay.block { background: #eef0ee; }
.skel-overlay.text { background: transparent; }
/* dark-section skeletons (e.g. contact CTA): transparent layer + light shimmer */
.contact-cta .skel-overlay { background: transparent; }
.contact-cta .skel-overlay [class^="sk-"] {
  background-image: linear-gradient(100deg, rgba(255,255,255,0.10) 30%, rgba(255,255,255,0.24) 50%, rgba(255,255,255,0.10) 70%) !important;
}
/* host reads as a clean grey box while loading (no leftover border/shadow) */
.is-skeleton { border-color: transparent !important; box-shadow: none !important; }
/* hide the real content underneath while the skeleton is showing */
.is-skeleton > *:not(.skel-overlay) { visibility: hidden !important; }
.skel-overlay { inset: -1px; }
.skel-overlay .sk-card { display: flex; flex-direction: column; height: 100%; }
.skel-overlay .sk-media { flex: 1; min-height: 55%; }
.skel-overlay .sk-text { padding: 16px 18px; display: flex; flex-direction: column; gap: 11px; }
.skel-overlay .sk-bar { height: 12px; border-radius: 6px; }
.skel-overlay .sk-bar.big { height: 22px; }
.skel-overlay .sk-bar.w30 { width: 30%; } .skel-overlay .sk-bar.w40 { width: 40%; }
.skel-overlay .sk-bar.w45 { width: 45%; } .skel-overlay .sk-bar.w55 { width: 55%; }
.skel-overlay .sk-bar.w60 { width: 60%; } .skel-overlay .sk-bar.w80 { width: 80%; }
.skel-overlay .sk-bar.w90 { width: 90%; }
.skel-overlay .sk-solid { width: 100%; height: 100%; }
.skel-overlay .sk-form { padding: 24px; display: flex; flex-direction: column; gap: 14px; height: 100%; }
.skel-overlay .sk-field { height: 42px; border-radius: 8px; }
.skel-overlay .sk-field.tall { height: 80px; }
.skel-overlay .sk-btn { height: 44px; width: 100%; border-radius: 999px; margin-top: 4px; }
.skel-overlay .sk-textblock { padding: 6px 0; display: flex; flex-direction: column; gap: 14px; }
.skel-overlay .sk-media, .skel-overlay .sk-bar, .skel-overlay .sk-solid,
.skel-overlay .sk-field, .skel-overlay .sk-btn {
  background-image: linear-gradient(100deg, #e4e7e4 30%, #f1f3f1 50%, #e4e7e4 70%);
  background-size: 200% 100%; background-repeat: no-repeat;
  animation: skelShimmer 2s linear infinite;
}
@media (prefers-reduced-motion: reduce){ .skel-overlay [class^="sk-"] { animation: none; } }
