/* ============================================================
   meshent.com — MESH Enterprises
   Part 1: tokens (mirror of ../brand/assets/guide.css, the canonical source)
   Part 2: base
   Part 3: components
   ============================================================ */

/* ---------- 1. tokens ---------- */
:root {
    color-scheme: dark;

    /* Type (Cloud.typography 607958/7766032). Whitney SSm: Light 300 (one large display line),
       Book 400 + Italic (text), Medium 500 (logo, headings), Semibold 600 (small labels), Bold 700.
       Operator Mono SSm: Book 400, Medium 500 (numbers, IDs, code).
       Chronicle Display: Roman 400 + Italic, Semibold 600 (editorial headlines). No other weights are hosted. */
    --font: "Whitney SSm A", "Whitney SSm B", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --serif: "Chronicle Display A", "Chronicle Display B", Georgia, "Times New Roman", serif;
    --mono: "Operator Mono SSm A", "Operator Mono SSm B", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    /* Slate — the brand ramp, built around the logo field (#394f64, "Mesh Slate" = 600). */
    --slate-50:  #f4f6f8;
    --slate-100: #e4e9ee;
    --slate-200: #c9d3dc;
    --slate-300: #a3b2c1;
    --slate-400: #7a8da1;
    --slate-500: #566c82;
    --slate-600: #394f64;
    --slate-700: #2e4052;
    --slate-800: #233140;
    --slate-900: #19232e;
    --slate-950: #10171e;

    /* Copper — the one warm signal (complement of slate). Sparing: tags, focus, a single highlight. */
    --copper-300: #e8b98f;
    --copper-400: #d99a66;
    --copper-600: #a4622f;

    /* Titanium — a warm brushed-metal neutral, used only as the card edge (never a fill). */
    --titanium-200: #cfccc6;
    --titanium-400: #8f8b85;

    /* Roles */
    --bg: var(--slate-600);
    --bg-deep: var(--slate-800);
    --surface: var(--slate-700);
    --surface-raised: #34495d;
    --line: rgba(255, 255, 255, .14);
    --line-strong: rgba(255, 255, 255, .28);
    --ink: #ffffff;
    --ink-soft: var(--slate-100);
    --muted: var(--slate-200);
    --accent: var(--copper-400);
    --focus: var(--copper-300);

    /* Geometry */
    --r-card: 14px; --r-control: 8px; --r-tag: 4px; --r-pill: 999px;
    --gutter: clamp(16px, 5vw, 48px);
    --measure: 1120px;
}

/* ---------- 2. base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; background: var(--bg); color: var(--ink);
    font-family: var(--font); font-weight: 400; font-size: 17px; line-height: 1.55;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
img, svg { display: block; max-width: 100%; }
.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 3. components ---------- */

/* Logo — the wide lockup: "mesh enterprises" on ONE line (never wraps), Whitney Medium, lowercase,
   with the four-dot mark centered beneath it. Every measure is in em of .logo or % of the name's
   width, so a single font-size scales the whole lockup. */
.logo { display: inline-flex; flex-direction: column; align-items: stretch; margin: 0; font-weight: 500; line-height: 1; }
.logo-name { font-size: 1em; white-space: nowrap; letter-spacing: -.005em; }
.logo-dots { display: flex; justify-content: space-between; padding: 0 11.4%; margin-top: .42em; }
/* Dots are 6.8% of the name's width; % here resolves against the padded row (77.2% of it), hence 8.8%. */
.logo-dots i { width: 8.8%; aspect-ratio: 1; border-radius: 50%; background: currentColor; }

/* Hero */
.hero { position: relative; overflow: hidden; isolation: isolate; padding: clamp(96px, 16vw, 176px) 0; text-align: center; }
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: .09;
    background: url(../img/mesh.svg) center / cover no-repeat;
    mask-image: radial-gradient(ellipse 70% 90% at 50% 50%, #000 15%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 90% at 50% 50%, #000 15%, transparent 75%);
}
.hero .logo { font-size: min(96px, 10vw); }

/* Section */
.section { padding: 96px 0; background: var(--bg-deep); }
.eyebrow {
    margin: 0 0 14px; font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
    color: var(--slate-300);
}
.section h2 { margin: 0 0 48px; font-weight: 500; font-size: clamp(28px, 3.2vw, 38px); line-height: 1.15; letter-spacing: -.01em; }

/* Project cards */
.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.project {
    position: relative; display: flex; flex-direction: column; gap: 22px;
    padding: 36px; border-radius: var(--r-card);
    background: var(--surface); border: 1px solid var(--line);
}
.project .mark { height: 64px; width: auto; align-self: flex-start; }
.project h3 { margin: 0; font-weight: 500; font-size: 28px; line-height: 1.1; }
.project p { margin: 0; color: var(--ink-soft); }
.tag {
    position: absolute; top: 36px; right: 36px;
    padding: 4px 10px; border-radius: var(--r-tag);
    font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    color: var(--copper-300); background: rgba(217, 154, 102, .12); /* a status label, not a control: no border */
}

/* Titanium edge: a 2px brushed-metal hairline along a card's top, fading out at both ends. */
.ti-edge::before {
    content: ""; position: absolute; left: 10%; right: 10%; top: -1px; height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--titanium-200) 20%, var(--titanium-400) 50%, var(--titanium-200) 80%, transparent);
}

/* Footer */
.foot { background: var(--slate-900); color: var(--slate-300); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between; padding-top: 36px; padding-bottom: 36px; }

@media (max-width: 600px) {
    body { font-size: 16px; }
    .section { padding: 72px 0; }
    .project { padding: 28px; }
    .tag { top: 28px; right: 28px; }
}
