/* Skylogic Systems — black & white theme based on the business card */
:root {
  --black: #000;
  --white: #fff;
  --ink: #000;
  --text: #444;
  --muted: #6b6b6b;
  --line: #e3e3e3;
  --soft: #f6f6f6;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wordmark: Arial, Helvetica, sans-serif;
  --pad: clamp(20px, 6vw, 80px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, p, figure, ul, ol { margin: 0; }
img, svg { max-width: 100%; }
a:focus-visible, button:focus-visible { outline: 3px solid #000; outline-offset: 4px; }
.dark a:focus-visible, .dark button:focus-visible { outline-color: #fff; }

.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; background: #000; color: #fff; padding: 12px 18px; }
.skip-link:focus { top: 16px; }
.container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--pad); }

/* Type pieces taken from the card */
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: #333; }
.rule { display: block; width: 64px; height: 4px; background: var(--black); margin: 20px 0 28px; }
h1 { font-size: clamp(2.5rem, 5.4vw, 3.8rem); line-height: 1.05; letter-spacing: -.02em; font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.15; letter-spacing: -.02em; font-weight: 700; margin-top: 14px; }
h3 { font-weight: 700; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.6; color: var(--text); max-width: 540px; margin: 22px 0 34px; }

.wordmark { font-family: var(--wordmark); font-weight: 700; color: var(--white); text-align: center; line-height: 1; font-size: clamp(2.6rem, 5.4vw, 4.3rem); }
.wordmark span { display: block; font-size: .25em; letter-spacing: .5em; text-indent: .5em; margin-top: 1.3em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; background: var(--black); color: var(--white); border: 1.5px solid var(--black); border-radius: 4px; font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; transition: background .2s, color .2s; }
.btn:hover { background: #222; }
.btn-outline { background: var(--white); color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--white); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { background: none; border: 0; padding: 0 0 4px; border-bottom: 2px solid var(--black); font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.text-link:hover { opacity: .6; }

/* Circle-outlined icons, as on the card */
.circle-icon { display: inline-grid; place-items: center; flex: none; width: 50px; height: 50px; border: 1.5px solid #9a9a9a; border-radius: 50%; }
.circle-icon svg { width: 52%; height: 52%; fill: none; stroke: var(--black); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { height: 84px; display: flex; align-items: center; justify-content: space-between; }
.helmet { display: block; width: 38px; height: 58px; }
.helmet.small { width: 22px; height: 34px; }
.navigation { display: flex; align-items: center; gap: 36px; }
.navigation a:not(.btn) { font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; position: relative; }
.navigation a:not(.btn)::after { content: ""; position: absolute; left: 0; right: .2em; bottom: -6px; height: 2px; background: #000; transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.navigation a:not(.btn):hover::after { transform: scaleX(1); }
.navigation .btn { min-height: 42px; padding: 0 20px; }
.menu-button { display: none; background: none; border: 0; padding: 8px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.55fr 1fr; min-height: min(78vh, 620px); }
.hero-copy { align-self: center; padding: 80px 60px 80px max(var(--pad), calc((100vw - 1280px) / 2 + var(--pad))); }
.hero-panel { background: var(--black); display: grid; place-items: center; padding: 60px 24px; }

/* Sections */
.section { padding-block: clamp(64px, 9vw, 110px); }
.dark { background: var(--black); color: var(--white); }
.dark .eyebrow { color: #bdbdbd; }
.dark .rule { background: var(--white); }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1.5px solid var(--black); }
.service { padding: 36px 36px 40px; border-right: 1px solid var(--line); }
.service:first-child { padding-left: 0; }
.service:last-child { border-right: 0; padding-right: 0; }
.service h3 { font-size: 1.35rem; margin: 22px 0 10px; }
.service p { color: var(--text); margin-bottom: 20px; }

/* Product */
.product { background: var(--soft); }
.product-inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.product-copy > p:not(.eyebrow) { color: var(--text); font-size: 1.1rem; }
.ticks { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 14px; height: 8px; border-left: 2.5px solid #000; border-bottom: 2.5px solid #000; transform: rotate(-45deg); }
.badge { display: inline-block; border: 1.5px solid #000; border-radius: 999px; padding: 6px 14px; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 26px; }
.dashboard { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 24px 60px rgba(0,0,0,.10); overflow: hidden; }
.dash-top { display: flex; justify-content: space-between; align-items: center; background: #000; color: #fff; padding: 16px 22px; }
.dash-top span { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #bbb; }
.dash-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 20px 22px 8px; }
.dash-metrics div { border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.dash-metrics span { display: block; font-size: 12px; color: var(--muted); }
.dash-metrics strong { font-size: 1.8rem; }
.dash-list { padding: 12px 22px 22px; font-size: 14px; }
.dash-head { font-weight: 700; margin: 8px 0 6px; }
.dash-list div { display: grid; grid-template-columns: 80px 1fr auto; padding: 10px 0; border-top: 1px solid var(--line); }
.dash-list em { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: #000; color: #fff; border-radius: 999px; padding: 3px 10px; }
.dash-list em.pending { background: #fff; color: #000; border: 1px solid #000; }
figcaption { margin-top: 12px; font-size: 13px; color: var(--muted); font-style: italic; text-align: right; }

/* Process */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.steps li { border-top: 1px solid #333; padding-top: 26px; }
.steps b { display: block; font-size: 13px; letter-spacing: .28em; color: #888; margin-bottom: 18px; }
.steps h3 { font-size: 1.5rem; margin-bottom: 10px; }
.steps p { color: #aaa; }

/* About */
.about-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 6vw, 80px); }
.about-copy > p { font-size: 1.2rem; line-height: 1.6; color: var(--text); margin-top: 14px; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; border-top: 1.5px solid #000; padding-top: 24px; }
.values h3 { font-size: 1rem; margin-bottom: 6px; }
.values p { font-size: .95rem; color: var(--muted); }

/* Contact card */
.card { display: grid; grid-template-columns: 1.55fr 1fr; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.10); }
.card-info { padding: clamp(32px, 5vw, 60px); }
.card-name { font-size: clamp(1.9rem, 3vw, 2.4rem); letter-spacing: -.01em; margin-bottom: 8px; }
.card-rows { list-style: none; padding: 0; display: grid; gap: 16px; margin-bottom: 32px; }
.card-rows li { display: flex; align-items: center; gap: 18px; font-size: 1.1rem; overflow-wrap: anywhere; }
.card-rows a:hover { text-decoration: underline; }
.card-rows small { color: var(--muted); font-size: .8em; }
.card-panel { background: #000; display: grid; place-items: center; padding: 48px 24px; }
.copy-status { min-height: 1.5em; margin-top: 12px; font-size: 14px; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 28px; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #555; }
.footer-inner nav { display: flex; gap: 24px; }
.footer-inner nav a:hover { color: #000; }

/* Dialog */
dialog { width: min(560px, calc(100% - 32px)); border: 0; border-radius: 14px; padding: 44px; box-shadow: 0 30px 80px rgba(0,0,0,.3); }
dialog::backdrop { background: rgba(0,0,0,.55); }
dialog > p:not(.eyebrow) { color: var(--text); }
.close-button { position: absolute; right: 16px; top: 16px; background: none; border: 0; padding: 6px; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
.no-js .reveal { opacity: 1; transform: none; }

/* Tablet & phone */
@media (max-width: 900px) {
  .menu-button { display: block; }
  .navigation { position: absolute; top: 84px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px var(--pad) 20px; display: none; }
  .navigation.is-open { display: flex; }
  .navigation a:not(.btn) { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .navigation .btn { margin-top: 16px; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 56px var(--pad); }
  .service-grid, .steps, .values { grid-template-columns: 1fr; }
  .service, .service:first-child, .service:last-child { padding: 30px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .product-inner, .about-inner, .card { grid-template-columns: 1fr; }
  .card-panel { order: -1; padding: 40px 24px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .actions .btn { width: 100%; }
  dialog { padding: 36px 24px; }
  .dash-list div { grid-template-columns: 64px 1fr auto; font-size: 13px; }
}
