/* ==========================================================================
   Shut.mk - dark industrial. Mobile-first; every breakpoint below is min-width.

   Palette note: the supporting gray from the brief (#52565F) sits at ~2.4:1 on
   the charcoal ground, below the readable floor, so it is used for rules,
   borders and quiet labels only. Running text uses the lighter --muted.
   ========================================================================== */

:root {
    --charcoal: #19191D;
    --raised: #202026;      /* cards, form panel */
    --sunken: #141418;      /* inputs, contact section ground */
    --line: #2C2C34;        /* hairlines */
    --gray: #52565F;        /* supporting gray: structure, never running text */
    --yellow: #FFC233;
    --yellow-deep: #E5A81F;
    --orange: #FF7A59;      /* errors - a site colour, distinct from the accent */
    --text: #EDEDEF;
    --muted: #9CA0A8;

    --display: "Oswald", "Arial Narrow", system-ui, sans-serif;
    --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", monospace;

    --wrap: 1120px;
    --gutter: clamp(20px, 5vw, 40px);
    --section-y: clamp(64px, 12vw, 128px);
    --radius: 2px;
}

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

html {
    scroll-behavior: smooth;
    /* Anchor targets must clear the sticky header. */
    scroll-padding-top: 96px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--charcoal);
    color: var(--text);
    font-family: var(--body);
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img,
svg {
    max-width: 100%;
}

a {
    color: var(--yellow);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--yellow-deep);
}

:focus-visible {
    outline: 2px solid var(--yellow);
    outline-offset: 3px;
}

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

.skip-link {
    position: absolute;
    left: -9999px;
}

.skip-link:focus {
    left: var(--gutter);
    top: 12px;
    z-index: 20;
    background: var(--yellow);
    color: var(--charcoal);
    padding: 10px 16px;
    font-weight: 600;
}

/* --- Signature: hazard band ------------------------------------------------
   Site tape, used structurally rather than decoratively - it closes the hero
   and opens the contact block, and appears nowhere else. */
.hazard {
    height: 14px;
    background: repeating-linear-gradient(-45deg,
        var(--yellow) 0 12px,
        var(--charcoal) 12px 24px);
    border-block: 1px solid var(--line);
}

/* --- Header ---------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(25, 25, 29, 0.94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

.site-header__inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 20px;
    padding-block: 12px;
}

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
}

.wordmark__mark {
    width: 22px;
    height: 22px;
    border-radius: var(--radius);
    background: repeating-linear-gradient(-45deg,
        var(--yellow) 0 5px,
        var(--charcoal) 5px 10px);
    outline: 1px solid var(--gray);
}

.wordmark__text {
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.4rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.site-nav {
    /* Below 860px the links drop to their own full-width row under the wordmark. */
    order: 3;
    flex-basis: 100%;
    display: flex;
    gap: 22px;
    padding-top: 4px;
    border-top: 1px solid var(--line);
}

.site-nav a {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    padding-block: 8px;
}

.site-nav a:hover {
    color: var(--yellow);
}

/* --- Buttons --------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-family: var(--display);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.btn--primary {
    background: var(--yellow);
    color: var(--charcoal);
}

.btn--primary:hover {
    background: var(--yellow-deep);
    color: var(--charcoal);
}

.btn--ghost {
    background: transparent;
    border-color: var(--gray);
    color: var(--text);
}

.btn--ghost:hover {
    border-color: var(--yellow);
    color: var(--yellow);
}

.btn--block {
    width: 100%;
}

.btn--call {
    margin-left: auto;
    padding: 9px 14px;
    background: transparent;
    border-color: var(--yellow);
    color: var(--yellow);
    font-size: 0.9rem;
}

.btn--call:hover {
    background: var(--yellow);
    color: var(--charcoal);
}

.btn--call svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

/* --- Shared type ----------------------------------------------------------- */
.eyebrow {
    margin: 0 0 14px;
    font-family: var(--mono);
    font-weight: 500;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--yellow);
}

.section__title {
    margin: 0 0 20px;
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(1.9rem, 6vw, 2.9rem);
    line-height: 1.05;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.section {
    padding-block: var(--section-y);
}

.section--contact {
    background: var(--sunken);
}

/* --- Hero ------------------------------------------------------------------ */
.hero {
    padding-block: clamp(56px, 14vw, 112px) clamp(48px, 10vw, 96px);
}

.hero__title {
    margin: 0 0 24px;
    font-family: var(--display);
    font-weight: 600;
    /* The largest thing on the page: signage, not a headline. */
    font-size: clamp(2.75rem, 11.5vw, 6rem);
    line-height: 0.94;
    letter-spacing: -0.005em;
    text-transform: uppercase;
}

.hero__title span {
    display: block;
}

.hero__title span:last-child {
    color: var(--yellow);
}

.hero__lead {
    margin: 0 0 32px;
    max-width: 46ch;
    font-size: clamp(1.0625rem, 2.4vw, 1.25rem);
    color: var(--muted);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin: 40px 0 0;
    padding: 0;
    list-style: none;
}

.hero__tags li {
    padding: 6px 12px;
    border: 1px solid var(--gray);
    border-radius: var(--radius);
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

/* --- Services -------------------------------------------------------------- */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 36px;
}

.service {
    display: flex;
    flex-direction: column;
    padding: 26px 24px 24px;
    background: var(--raised);
    border: 1px solid var(--line);
    border-left: 3px solid var(--gray);
    border-radius: var(--radius);
    transition: border-left-color 0.18s ease, transform 0.18s ease;
}

.service:hover {
    border-left-color: var(--yellow);
    transform: translateY(-2px);
}

.service__icon {
    width: 34px;
    height: 34px;
    margin-bottom: 18px;
    fill: none;
    stroke: var(--yellow);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service__title {
    margin: 0 0 10px;
    font-family: var(--display);
    font-weight: 500;
    font-size: 1.4rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.service__summary {
    margin: 0 0 18px;
    font-size: 0.95rem;
    color: var(--muted);
}

.service__spec {
    margin: auto 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray);
}

/* --- Contact --------------------------------------------------------------- */
.contact {
    display: grid;
    gap: clamp(40px, 7vw, 72px);
}

.contact__about p {
    color: var(--muted);
    max-width: 52ch;
}

.facts {
    display: grid;
    gap: 16px;
    margin: 32px 0 0;
}

.facts dt {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gray);
}

.facts dd {
    margin: 4px 0 0;
    font-family: var(--display);
    font-weight: 500;
    font-size: 1.2rem;
    letter-spacing: 0.02em;
}

.facts a {
    text-decoration: none;
}

.facts a:hover {
    text-decoration: underline;
}

/* --- Form ------------------------------------------------------------------ */
.contact__form {
    padding: clamp(22px, 5vw, 34px);
    background: var(--raised);
    border: 1px solid var(--line);
    border-top: 3px solid var(--yellow);
    border-radius: var(--radius);
}

.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    margin-bottom: 7px;
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.field__hint {
    color: var(--gray);
    letter-spacing: 0.08em;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--sunken);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    font-family: var(--body);
    /* 16px minimum, or iOS Safari zooms the page on focus. */
    font-size: 1rem;
    transition: border-color 0.16s ease;
}

.field textarea {
    resize: vertical;
    min-height: 128px;
}

.field select {
    /* The native arrow is invisible on a dark control in several mobile browsers. */
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
                      linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px;
    background-size: 6px 6px;
    background-repeat: no-repeat;
    padding-right: 40px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--yellow);
    outline: none;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #5C606A;
}

.field__error {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: var(--orange);
}

.field__error:empty {
    display: none;
}

.field-row {
    display: grid;
    gap: 0 16px;
}

.form__note {
    margin: 14px 0 0;
    font-size: 0.8rem;
    color: var(--gray);
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.panel {
    padding: 20px 22px;
    margin-bottom: 22px;
    background: var(--sunken);
    border-left: 3px solid var(--yellow);
    border-radius: var(--radius);
}

.panel p {
    margin: 0;
    color: var(--muted);
}

.panel--success {
    margin-bottom: 0;
}

.panel--warning {
    border-left-color: var(--orange);
}

.panel__title {
    margin: 0 0 10px;
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.6rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.panel--success .btn {
    margin-top: 18px;
}

/* --- Footer ---------------------------------------------------------------- */
.site-footer {
    border-top: 1px solid var(--line);
    padding-block: 40px;
}

.site-footer__inner {
    display: grid;
    gap: 20px;
}

.site-footer__name {
    margin: 0;
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.site-footer__meta,
.site-footer__copy {
    margin: 4px 0 0;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: var(--gray);
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.site-footer__links a {
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-decoration: none;
}

.site-footer__links a:hover {
    text-decoration: underline;
}

/* --- Error page ------------------------------------------------------------ */
.error {
    padding-block: clamp(72px, 16vw, 160px);
}

.error__code {
    margin: 0 0 14px;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray);
}

.error p {
    color: var(--muted);
    max-width: 52ch;
}

/* --- Entrance -------------------------------------------------------------- */
.js .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.js .reveal.is-in {
    opacity: 1;
    transform: none;
}

/* The hero lands one element after another, like a sign being assembled. Addressed by class
   rather than by position so adding a line does not silently reshuffle the timings. */
.js .hero__title .reveal:nth-child(2) { transition-delay: 0.07s; }
.js .hero__title .reveal:nth-child(3) { transition-delay: 0.14s; }
.js .hero__lead { transition-delay: 0.21s; }
.js .hero__actions { transition-delay: 0.28s; }
.js .hero__tags { transition-delay: 0.35s; }

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .js .reveal,
    .js .reveal.is-in {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .service:hover {
        transform: none;
    }
}

/* --- Breakpoints ----------------------------------------------------------- */
@media (min-width: 560px) {
    .field-row {
        grid-template-columns: 1fr 1fr;
    }

    .facts {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 860px) {
    .site-nav {
        order: 0;
        flex-basis: auto;
        margin-left: auto;
        padding-top: 0;
        border-top: 0;
    }

    .btn--call {
        margin-left: 0;
    }

    .contact {
        grid-template-columns: 1fr 1.1fr;
        align-items: start;
    }

    .site-footer__inner {
        grid-template-columns: 1fr auto;
        align-items: center;
    }

    .site-footer__copy {
        grid-column: 1 / -1;
    }
}
