/*
 * mehul-thakkar theme - design tokens and base styles.
 *
 * Reference points are financial terminals and editorial print, not SaaS
 * landing pages. Monospace carries every number and tech label; the display
 * face carries prose. The accent is punctuation, never a surface.
 *
 * Fonts are self-hosted (latin subset only, woff2). See assets/fonts/ for
 * the files and their OFL licence text.
 */

@font-face {
    font-family: 'Instrument Sans';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url('../fonts/instrument-sans-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/jetbrains-mono-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------------------------------------------------------------------- */
/* Tokens                                                                  */
/* ---------------------------------------------------------------------- */

:root {
    /* Colour */
    --ink: #0B0C0E;
    --ink-2: #141619;
    --line: #22262B;
    --paper: #EDEDEB;
    --muted: #9BA3AD;
    --accent: #3FCF8E;
    --accent-2: #4EA8DE;

    /* Type */
    --font-display: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

    /* Fluid type scale, clamp(min, preferred, max), min viewport 400px, max viewport 1280px. */
    --step--1: clamp(0.78rem, 0.757rem + 0.09vw, 0.83rem);
    /* Floor raised to 1rem (16px): body text should never render below the
       conventional readability baseline, small phones included. Floor and
       ceiling are both 1rem, so this is a flat value, not a clamp: a
       preferred term between two equal bounds can never be selected, which
       made the old clamp() dead code. Pinning body copy at 16px everywhere
       is correct here, not an oversight. */
    --step-0: 1rem;
    --step-1: clamp(1.05rem, 0.982rem + 0.27vw, 1.2rem);
    --step-2: clamp(1.25rem, 1.136rem + 0.45vw, 1.5rem);
    --step-3: clamp(1.45rem, 1.257rem + 0.77vw, 1.875rem);
    --step-4: clamp(1.7rem, 1.404rem + 1.18vw, 2.35rem);
    --step-5: clamp(2rem, 1.545rem + 1.82vw, 3rem);
    --step-6: clamp(2.5rem, 1.727rem + 3.09vw, 4.2rem);

    /* Spacing, 4px base. */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-7: 2rem;
    --space-8: 2.5rem;
    --space-9: 3.5rem;
    --space-10: 4.5rem;
    --space-11: 6rem;
    --space-12: 8rem;

    /* Prose measure. Nothing reads full-bleed. Prose only, never the shell. */
    --measure: 68ch;

    /* Page container. .mt-shell uses this; every section grid lives inside it. */
    --shell: 1200px;
}

/* ---------------------------------------------------------------------- */
/* Reset and element defaults                                              */
/* ---------------------------------------------------------------------- */

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

html {
    font-size: 100%;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body,
h1, h2, h3, h4,
p, ul, ol, blockquote {
    margin: 0;
}

body {
    background: var(--ink);
    color: var(--paper);
    font-family: var(--font-display);
    font-size: var(--step-0);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--paper);
    margin: 0 0 var(--space-4);
}

h1 { font-size: var(--step-6); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-3); }
h4 { font-size: var(--step-2); }

p {
    max-width: var(--measure);
    margin: 0 0 var(--space-4);
}

p:last-child {
    margin-bottom: 0;
}

strong {
    font-weight: 600;
    color: var(--paper);
}

em {
    font-style: italic;
}

a {
    color: var(--paper);
    text-decoration-line: underline;
    text-decoration-color: var(--line);
    text-underline-offset: 0.15em;
    transition: color 150ms ease, text-decoration-color 150ms ease;
}

a:hover {
    color: var(--accent-2);
    text-decoration-color: var(--accent-2);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 2px;
}

ul, ol {
    max-width: var(--measure);
    margin: 0 0 var(--space-4);
    padding-left: 1.25em;
}

li {
    margin-bottom: var(--space-2);
}

li:last-child {
    margin-bottom: 0;
}

blockquote {
    max-width: var(--measure);
    margin: var(--space-6) 0;
    padding-left: var(--space-4);
    border-left: 1px solid var(--line);
    color: var(--muted);
    font-style: italic;
}

code, kbd, samp, pre {
    font-family: var(--font-mono);
    font-size: 0.9em;
}

::selection {
    background: var(--accent);
    color: var(--ink);
}

/* Skip link. The first focusable element on the page, off-screen until
   focused. Fixed positioning and a z-index above the sticky nav (40) so it
   never renders underneath the bar it precedes. */
.mt-skip {
    position: fixed;
    top: -4rem;
    left: var(--space-4);
    z-index: 100;
    background: var(--ink-2);
    color: var(--paper);
    padding: var(--space-3) var(--space-5);
    border: 1px solid var(--line);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: var(--step--1);
    text-decoration: none;
    transition: top 150ms ease;
}

.mt-skip:focus {
    top: var(--space-4);
}

/* ---------------------------------------------------------------------- */
/* Layout                                                                   */
/* ---------------------------------------------------------------------- */

.mt-shell {
    width: 100%;
    max-width: var(--shell);
    margin-inline: auto;
    padding-inline: clamp(var(--space-4), 5vw, var(--space-8));
}

.mt-main {
    display: block;
}

.mt-footer {
    border-top: 1px solid var(--line);
    padding-block: var(--space-6);
    color: var(--muted);
    font-size: var(--step--1);
}

.mt-footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
}

.mt-footer__copy {
    margin: 0;
    max-width: none;
}

.mt-footer__top {
    color: var(--muted);
    text-decoration-color: var(--line);
    white-space: nowrap;
}

.mt-footer__top:hover {
    color: var(--accent-2);
    text-decoration-color: var(--accent-2);
}

/* Numbers and tech labels: monospace, never the display face. */
.mt-mono {
    font-family: var(--font-mono);
}

/* ---------------------------------------------------------------------- */
/* Site navigation                                                         */
/* ---------------------------------------------------------------------- */

/* Height the sticky nav reserves. Used both to size the bar and to give
   hash-link targets enough scroll-margin-top that the nav never covers the
   heading they jump to. */
:root {
    --mt-nav-h: 4rem;
}

#top, #work, #training, #contact, #services {
    scroll-margin-top: var(--mt-nav-h);
}

.mt-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--ink);
    border-bottom: 1px solid var(--line);
}

.mt-nav__inner {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
    min-height: var(--mt-nav-h);
}

.mt-nav__brand {
    font-family: var(--font-mono);
    font-size: var(--step--1);
    color: var(--paper);
    text-decoration: none;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.mt-nav__brand:hover {
    color: var(--accent-2);
}

.mt-nav__links {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: var(--space-6);
    max-width: none;
}

.mt-nav__links li {
    margin-bottom: 0;
}

.mt-nav__links a {
    display: inline-flex;
    align-items: center;
    /* Vertical padding only: the nav row already has room (min-height 4rem)
       to absorb it without growing, and padding here brings the tap target
       from an ~15px text-only hit area up past the 24px WCAG 2.5.8 minimum
       without touching the horizontal gaps the 480px collapse depends on. */
    padding-block: var(--space-3);
    font-family: var(--font-display);
    font-size: var(--step--1);
    color: var(--muted);
    text-decoration: none;
    white-space: nowrap;
}

.mt-nav__links a:hover {
    color: var(--paper);
}

.mt-nav__cta {
    flex-shrink: 0;
}

/* Collapse: drop the brand name and tighten spacing rather than wrapping
   into a second row. No hamburger, no JS state; three links and a CTA fit
   in one row down to 360px once the brand is gone. */
@media (max-width: 480px) {
    .mt-nav__brand {
        display: none;
    }

    .mt-nav__inner {
        gap: var(--space-3);
    }

    .mt-nav__links {
        gap: var(--space-3);
    }

    .mt-nav__cta {
        padding: var(--space-2) var(--space-4);
    }
}

/* ---------------------------------------------------------------------- */
/* Buttons                                                                  */
/* ---------------------------------------------------------------------- */

.mt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    border-radius: 4px;
    border: 1px solid transparent;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: var(--step--1);
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.mt-btn--primary {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--ink);
}

.mt-btn--primary:hover {
    background: var(--accent-2);
    border-color: var(--accent-2);
    color: var(--ink);
}

.mt-btn--ghost {
    background: transparent;
    border-color: var(--line);
    color: var(--paper);
}

.mt-btn--ghost:hover {
    border-color: var(--accent-2);
    color: var(--accent-2);
}

/* ---------------------------------------------------------------------- */
/* Section headings                                                         */
/* ---------------------------------------------------------------------- */

.mt-h2 {
    max-width: var(--measure);
    margin-bottom: var(--space-8);
}

/* ---------------------------------------------------------------------- */
/* Hero                                                                     */
/* ---------------------------------------------------------------------- */

.mt-hero {
    padding-block: var(--space-11) var(--space-12);
    border-bottom: 1px solid var(--line);
}

.mt-hero__grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: var(--space-10);
}

.mt-eyebrow {
    font-family: var(--font-mono);
    font-size: var(--step--1);
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 var(--space-4);
}

.mt-hero__headline {
    margin-bottom: var(--space-5);
}

.mt-hero__sub {
    color: var(--muted);
    font-size: var(--step-1);
    margin-bottom: var(--space-6);
}

.mt-credstrip {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0 0 var(--space-8);
    padding: 0;
    gap: var(--space-2) var(--space-5);
    font-family: var(--font-mono);
    font-size: var(--step--1);
    color: var(--muted);
    max-width: none;
}

.mt-credstrip li {
    margin-bottom: 0;
}

.mt-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.mt-hero__portrait {
    margin: 0;
    justify-self: center;
}

.mt-hero__portrait img {
    display: block;
    width: 100%;
    max-width: 420px;
    height: auto;
}

@media (max-width: 860px) {
    .mt-hero__grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .mt-hero__portrait {
        max-width: 260px;
        margin-inline: auto;
    }
}

/* ---------------------------------------------------------------------- */
/* Proof bar                                                                */
/* ---------------------------------------------------------------------- */

.mt-proof {
    padding-block: var(--space-9);
    border-bottom: 1px solid var(--line);
}

.mt-proof__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-7) var(--space-4);
    margin: 0;
}

.mt-proof__item {
    border-left: 1px solid var(--line);
    padding-left: var(--space-4);
}

.mt-proof__value {
    font-family: var(--font-mono);
    font-size: var(--step-3);
    font-weight: 400;
    color: var(--paper);
    margin: 0 0 var(--space-1);
}

.mt-proof__label {
    margin: 0;
    color: var(--muted);
    font-size: var(--step--1);
}

@media (min-width: 640px) {
    .mt-proof__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .mt-proof__grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* ---------------------------------------------------------------------- */
/* Approach                                                                 */
/* ---------------------------------------------------------------------- */

.mt-approach {
    padding-block: var(--space-12);
    border-bottom: 1px solid var(--line);
}

.mt-beats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: none;
}

.mt-beat {
    margin: 0;
    padding-top: var(--space-5);
    border-top: 1px solid var(--line);
}

.mt-beat__num {
    display: block;
    font-family: var(--font-mono);
    font-size: var(--step-1);
    color: var(--accent);
    margin-bottom: var(--space-3);
}

.mt-beat__title {
    margin-bottom: var(--space-3);
}

.mt-beat__body {
    color: var(--muted);
}

@media (max-width: 860px) {
    .mt-beats {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
}

/* ---------------------------------------------------------------------- */
/* Capabilities                                                             */
/* ---------------------------------------------------------------------- */

.mt-caps {
    padding-block: var(--space-12);
    border-bottom: 1px solid var(--line);
}

.mt-caps__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

.mt-cap {
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: var(--space-6);
}

.mt-cap__title {
    font-size: var(--step-2);
    margin-bottom: var(--space-3);
}

.mt-cap__body {
    color: var(--muted);
    margin-bottom: var(--space-4);
}

.mt-tags {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: var(--space-2);
    max-width: none;
}

.mt-tag {
    font-family: var(--font-mono);
    font-size: var(--step--1);
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 3px;
    padding: var(--space-1) var(--space-3);
    margin-bottom: 0;
}

@media (min-width: 640px) {
    .mt-caps__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .mt-caps__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ---------------------------------------------------------------------- */
/* Selected work                                                            */
/* ---------------------------------------------------------------------- */

.mt-work {
    padding-block: var(--space-12);
    border-bottom: 1px solid var(--line);
}

.mt-work__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

.mt-case {
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: var(--space-6);
}

.mt-case__head {
    margin-bottom: var(--space-4);
}

.mt-case__client {
    font-family: var(--font-mono);
    font-size: var(--step--1);
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 var(--space-2);
    max-width: none;
}

.mt-case__title {
    font-size: var(--step-2);
    margin-bottom: var(--space-2);
}

.mt-case__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1) var(--space-4);
    font-family: var(--font-mono);
    font-size: var(--step--1);
    color: var(--muted);
    margin: 0;
    max-width: none;
}

.mt-case__shot {
    margin: 0 0 var(--space-4);
    border: 1px solid var(--line);
    border-radius: 3px;
    overflow: hidden;
    line-height: 0;
}

.mt-case__shot img {
    display: block;
    width: 100%;
    height: auto;
}

.mt-case__body {
    margin: 0 0 var(--space-4);
    max-width: none;
}

.mt-case__body dt {
    font-family: var(--font-mono);
    font-size: var(--step--1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    margin-bottom: var(--space-1);
}

.mt-case__body dd {
    margin: 0 0 var(--space-4);
    color: var(--paper);
    max-width: none;
}

.mt-case__body dd:last-child {
    margin-bottom: 0;
}

.mt-tags--case {
    margin-top: var(--space-4);
}

@media (min-width: 720px) {
    .mt-work__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---------------------------------------------------------------------- */
/* Project index                                                            */
/* ---------------------------------------------------------------------- */

.mt-index {
    padding-block: var(--space-12);
    border-bottom: 1px solid var(--line);
}

.mt-index__list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: none;
    border-top: 1px solid var(--line);
}

.mt-index__row {
    display: grid;
    grid-template-columns: 1fr 2fr 1.4fr;
    gap: var(--space-2) var(--space-6);
    align-items: baseline;
    padding-block: var(--space-3);
    border-bottom: 1px solid var(--line);
    margin-bottom: 0;
}

.mt-index__client {
    font-family: var(--font-mono);
    font-size: var(--step--1);
    color: var(--muted);
}

.mt-index__title {
    font-size: var(--step-0);
    color: var(--paper);
}

.mt-index__tech {
    font-family: var(--font-mono);
    font-size: var(--step--1);
    color: var(--muted);
}

@media (max-width: 720px) {
    .mt-index__row {
        grid-template-columns: 1fr;
        gap: var(--space-1);
        padding-block: var(--space-4);
    }
}

/* ---------------------------------------------------------------------- */
/* Client wall                                                              */
/* ---------------------------------------------------------------------- */

.mt-clients {
    padding-block: var(--space-12);
    border-bottom: 1px solid var(--line);
}

.mt-clients__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: var(--space-4);
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: none;
}

.mt-clients__item {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 3 / 2;
    background: var(--paper);
    border-radius: 4px;
    padding: var(--space-4);
    margin-bottom: 0;
    transition: outline-color 150ms ease;
}

.mt-clients__item:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.mt-clients__item img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    filter: grayscale(1);
    opacity: 0.65;
    transition: filter 150ms ease, opacity 150ms ease;
}

.mt-clients__item:hover img,
.mt-clients__item:focus-visible img,
.mt-clients__item:focus-within img {
    filter: grayscale(0);
    opacity: 1;
}

/* ---------------------------------------------------------------------- */
/* Stack                                                                    */
/* ---------------------------------------------------------------------- */

.mt-stack {
    padding-block: var(--space-12);
    border-bottom: 1px solid var(--line);
}

.mt-stack__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-7);
}

.mt-stack__heading {
    font-family: var(--font-mono);
    font-size: var(--step--1);
    font-weight: 400;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 var(--space-3);
}

@media (min-width: 640px) {
    .mt-stack__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .mt-stack__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ---------------------------------------------------------------------- */
/* Lede paragraph, shared by any section that opens with one line of      */
/* larger muted prose before its body copy.                               */
/* ---------------------------------------------------------------------- */

.mt-lede {
    color: var(--muted);
    font-size: var(--step-1);
    margin-bottom: var(--space-6);
}

.mt-btn--lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--step-0);
}

/* ---------------------------------------------------------------------- */
/* Training                                                                 */
/* ---------------------------------------------------------------------- */

.mt-training {
    padding-block: var(--space-12);
    border-bottom: 1px solid var(--line);
}

.mt-training__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
}

.mt-training__figures {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6) var(--space-4);
    margin: 0;
    max-width: none;
}

.mt-training__figures > div {
    border-left: 1px solid var(--line);
    padding-left: var(--space-4);
}

.mt-training__figures dt {
    font-family: var(--font-mono);
    font-size: var(--step-3);
    font-weight: 400;
    color: var(--paper);
    margin: 0 0 var(--space-1);
}

.mt-training__figures dd {
    margin: 0;
    color: var(--muted);
    font-size: var(--step--1);
    max-width: none;
}

@media (min-width: 860px) {
    .mt-training__grid {
        grid-template-columns: 1.2fr 1fr;
        gap: var(--space-10);
        align-items: start;
    }
}

/* ---------------------------------------------------------------------- */
/* Credentials                                                              */
/* ---------------------------------------------------------------------- */

.mt-creds {
    padding-block: var(--space-12);
    border-bottom: 1px solid var(--line);
}

.mt-creds__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3);
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: none;
}

.mt-creds__item {
    font-family: var(--font-mono);
    font-size: var(--step--1);
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 3px;
    padding: var(--space-3) var(--space-4);
    margin-bottom: 0;
}

@media (min-width: 640px) {
    .mt-creds__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .mt-creds__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ---------------------------------------------------------------------- */
/* Testimonials                                                             */
/* ---------------------------------------------------------------------- */

.mt-quotes {
    padding-block: var(--space-12);
    border-bottom: 1px solid var(--line);
}

.mt-quotes__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: none;
}

.mt-quote {
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: var(--space-6);
    margin-bottom: 0;
}

.mt-quote__text {
    margin: 0 0 var(--space-4);
    padding: 0;
    border: 0;
    max-width: none;
    color: var(--paper);
    font-style: normal;
}

.mt-quote__text:last-child {
    margin-bottom: 0;
}

.mt-quote__by {
    margin: 0;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: var(--step--1);
    max-width: none;
}

@media (min-width: 640px) {
    .mt-quotes__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .mt-quotes__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ---------------------------------------------------------------------- */
/* Contact. Last section on the page: no trailing hairline before the      */
/* footer.                                                                  */
/* ---------------------------------------------------------------------- */

.mt-contact {
    padding-block: var(--space-12);
}

.mt-contact__list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0 0 var(--space-6);
    padding: 0;
    gap: var(--space-2) var(--space-6);
    font-family: var(--font-mono);
    font-size: var(--step--1);
    max-width: none;
}

.mt-contact__list li {
    margin-bottom: 0;
}

.mt-contact__note {
    color: var(--muted);
    font-size: var(--step--1);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
