:root {
    --bg: #ffffff;
    --fg: #111111;
    --muted: #5a5a5a;
    --line: #e4e4e4;
    --red: #d40000;
    --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0f0f0f;
        --fg: #f0f0f0;
        --muted: #a8a8a8;
        --line: #2a2a2a;
        --red: #ff4136;
    }
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font: 17px/1.6 var(--font);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration-color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red); }

.wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

/* header */

.top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 32px;
    padding-bottom: 32px;
}

.logo img { display: block; width: 180px; height: auto; }

.top-links { display: flex; gap: 24px; font-size: 15px; color: var(--muted); }

/* hero: the logo's corner brackets frame the headline */

.hero {
    position: relative;
    margin-top: 48px;
    margin-bottom: 96px;
    padding-top: 56px;
    padding-bottom: 56px;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    width: 48px;
    height: 48px;
    border: 0 solid;
}

.hero::before { top: 0; left: 0; border-color: var(--fg); border-top-width: 6px; border-left-width: 6px; }
.hero::after { bottom: 0; right: 0; border-color: var(--red); border-bottom-width: 6px; border-right-width: 6px; }

.hero h1 {
    margin: 0 0 24px;
    font-size: clamp(34px, 6vw, 60px);
    line-height: 1.08;
    letter-spacing: -0.02em;
    font-weight: 700;
}

.hero p {
    margin: 0;
    max-width: 38em;
    font-size: clamp(18px, 2.2vw, 21px);
    color: var(--muted);
}

/* sections */

main > .wrap + .wrap { margin-top: 88px; }

h2 {
    margin: 0 0 32px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--red);
}

h3 { margin: 0 0 6px; font-size: 19px; font-weight: 650; }

/* services */

.services {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 36px 48px;
    counter-reset: svc;
}

.services li { counter-increment: svc; }

.services li::before {
    content: counter(svc, decimal-leading-zero);
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--red);
    font-variant-numeric: tabular-nums;
}

.services p, .about p { margin: 0; color: var(--muted); }

/* about */

.about { display: grid; grid-template-columns: 3fr 2fr; gap: 48px; }
.about p { color: var(--fg); font-size: 19px; }
.about p + p { margin-top: 16px; font-size: 17px; color: var(--muted); }

.facts { list-style: none; margin: 0; padding: 0; }
.facts li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.facts li:first-child { padding-top: 0; }

/* company details */

.details {
    display: grid;
    grid-template-columns: 12em 1fr;
    margin: 0;
}

.details dt, .details dd {
    margin: 0;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.details dt { color: var(--muted); }

/* footer */

.bottom {
    margin-top: 120px;
    padding-top: 32px;
    padding-bottom: 48px;
    font-size: 14px;
    color: var(--muted);
}

@media (max-width: 640px) {
    body { font-size: 16px; }
    .top-contact { display: none; }
    .hero { margin: 16px 16px 64px; padding: 40px 20px; }
    .about { grid-template-columns: 1fr; gap: 24px; }
    .details { grid-template-columns: 1fr; }
    .details dt { padding-bottom: 0; border-bottom: 0; font-size: 14px; }
    .details dd { padding-top: 2px; }
}
