/* ==================================================
   360technic
   --------------------------------------------------
   1.  tokens
   2.  reset + base
   3.  layout helpers
   4.  typography
   5.  buttons
   6.  icons
   7.  preloader
   8.  header + navigation
   9.  hero
   10. who we are (flip cards)
   11. about, side image
   12. parallax bands
   13. team
   14. services (progress bars)
   15. courses (feature boxes)
   16. call to action
   17. testimonials
   18. contact
   19. footer + back to top
   20. reveal animation
   21. responsive
   ================================================== */


/* ==================================================
   1. tokens
   ================================================== */
:root {
    --accent: #de1c45;
    --accent-dark: #c3183c;

    --ink: #111;
    --body: #707070;
    --heading: #000;

    --dark-bg: #111;
    --dark-body: #bbb;
    --dark-heading: #eceff3;
    --dark-rule: #555;

    --font-body: "Open Sans", Arial, Helvetica, sans-serif;
    --font-head: "Raleway", Arial, Helvetica, sans-serif;

    --container: 1170px;
    --gutter: 15px;
    --header-h: 130px;
    --header-h-sm: 70px;

    --section-y: 90px;
    --ease: cubic-bezier(.215, .61, .355, 1);
}


/* ==================================================
   2. reset + base
   ================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    background: #fff;
    color: var(--body);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.8;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color .3s;
}

a:hover {
    color: var(--accent-dark);
}

p {
    margin: 0 0 20px;
}

button {
    font: inherit;
    cursor: pointer;
}

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

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 10000;
    padding: 12px 20px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
}

.skip-link:focus {
    left: 0;
    color: #fff;
}


/* ==================================================
   3. layout helpers
   ================================================== */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding-inline: var(--gutter);
}

section {
    position: relative;
    padding-block: var(--section-y);
    overflow: hidden;
    scroll-margin-top: var(--header-h-sm);
}

.no-padding {
    padding-block: 0;
}

.dark {
    background: var(--dark-bg);
    color: var(--dark-body);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.narrow {
    max-width: 620px;
    margin-inline: auto;
}


/* ==================================================
   4. typography
   ================================================== */
h1,
h2,
h3,
h4 {
    margin: 0 0 .6em;
    color: var(--heading);
    font-family: var(--font-head);
    font-weight: 400;
    line-height: 1.3;
}

.dark h1,
.dark h2,
.dark h3,
.dark h4 {
    color: var(--dark-heading);
}

.section-title {
    margin: 0;
    font-size: 26px;
    letter-spacing: 5px;
    text-transform: uppercase;
    text-align: center;
}

h3 {
    font-size: 18px;
    letter-spacing: .5px;
}

.lead-statement {
    display: inline-block;
    margin-bottom: 30px;
    font-size: clamp(1.375rem, 2.4vw, 1.875rem);
    font-weight: 500;
    line-height: 1.25;
}

.section-lead {
    margin-bottom: 0;
    text-align: center;
}

.intro {
    font-size: 16px;
    line-height: 1.6;
}

.id-color {
    color: var(--accent);
}

.small-border {
    display: block;
    width: 120px;
    height: 1px;
    margin: 20px auto 30px;
    background: var(--accent);
}

.small-border-left {
    width: 50px;
    margin-inline: 0;
    background: #666;
}

/* a title followed by its rule, then the section body */
.section-title + .small-border {
    margin-bottom: 60px;
}

.section-title + .small-border + .section-lead {
    margin-top: -35px;
    margin-bottom: 60px;
}


/* ==================================================
   5. buttons
   ================================================== */
.btn-border,
.btn-big {
    display: inline-block;
    border: 1px solid #bbb;
    background: none;
    color: var(--ink);
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: background .3s, color .3s, border-color .3s;
}

.btn-border {
    padding: 8px 30px;
    font-size: 13px;
}

.btn-big {
    padding: 15px 30px;
    border-color: #fff;
    color: var(--dark-heading);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* the chevron that followed every button in the original theme */
.btn-border::after,
.btn-big::after {
    content: "";
    display: inline-block;
    width: .4em;
    height: .4em;
    margin-left: .9em;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    transform: translateY(-1px) rotate(45deg);
}

.btn-big::after {
    margin-left: 1.3em;
}

.btn-border:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

.dark .btn-border {
    border-color: rgba(255, 255, 255, .5);
    color: #fff;
}

.dark .btn-border:hover,
.btn-big:hover {
    border-color: #fff;
    background: #fff;
    color: var(--ink);
}


/* ==================================================
   6. icons
   ================================================== */
.icon-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.icon {
    display: inline-block;
    vertical-align: middle;
    width: 24px;
    height: 24px;
}

.icon-lg {
    width: 68px;
    height: 68px;
}

.icon-md {
    width: 42px;
    height: 42px;
}

.icon-sm {
    width: 18px;
    height: 18px;
}


/* ==================================================
   7. preloader
   ================================================== */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    background: var(--ink);
    transition: opacity .5s ease, visibility .5s ease;
}

#preloader.done {
    opacity: 0;
    visibility: hidden;
}

.preloader-bar {
    display: block;
    width: min(240px, 50vw);
    height: 2px;
    background: rgba(255, 255, 255, .15);
    overflow: hidden;
}

.preloader-bar::after {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background: var(--accent);
    transform-origin: left;
    animation: preload 1.4s var(--ease) infinite;
}

@keyframes preload {
    0% { transform: scaleX(0); }
    60% { transform: scaleX(1); transform-origin: left; }
    61% { transform-origin: right; }
    100% { transform: scaleX(0); transform-origin: right; }
}


/* ==================================================
   8. header + navigation
   ================================================== */
#header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 999;
    height: var(--header-h);
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: height .3s, background .3s, border-color .3s;
}

#header.smaller {
    height: var(--header-h-sm);
    background: #fff;
    border-bottom-color: #ddd;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    flex: none;
}

.logo img {
    width: auto;
    transition: height .3s;
}

.logo-mark {
    height: 68px;
}

.logo-full {
    display: none;
    height: 32px;
}

#header.smaller .logo-mark {
    display: none;
}

#header.smaller .logo-full {
    display: block;
}

#mainmenu ul {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

#mainmenu a {
    display: block;
    padding: 10px 18px;
    color: var(--dark-heading);
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

#mainmenu a:hover,
#mainmenu a.active {
    color: var(--accent);
}

#header.smaller #mainmenu a {
    color: #333;
}

#header.smaller #mainmenu a:hover,
#header.smaller #mainmenu a.active {
    color: var(--accent);
}

/* menu toggle, hidden until small screens */
#menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: #333;
    color: #fff;
    transition: background .3s, color .3s;
}

#menu-btn:hover {
    background: #fff;
    color: #222;
}

.menu-bars,
.menu-bars::before,
.menu-bars::after {
    display: block;
    width: 18px;
    height: 2px;
    margin-inline: auto;
    background: currentColor;
    transition: transform .3s, opacity .2s;
}

.menu-bars {
    position: relative;
}

.menu-bars::before,
.menu-bars::after {
    content: "";
    position: absolute;
    left: 0;
}

.menu-bars::before {
    top: -6px;
}

.menu-bars::after {
    top: 6px;
}

#menu-btn[aria-expanded="true"] .menu-bars {
    background: transparent;
}

#menu-btn[aria-expanded="true"] .menu-bars::before {
    transform: translateY(6px) rotate(45deg);
}

#menu-btn[aria-expanded="true"] .menu-bars::after {
    transform: translateY(-6px) rotate(-45deg);
}


/* ==================================================
   9. hero
   ================================================== */
.hero {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding-block: calc(var(--header-h) + 40px) 60px;
    background: #111 url("../images/background/hero.jpg") center / cover no-repeat;
    text-align: center;
}

/* The photograph is light around the top left, which is exactly where the
   navigation sits. This scrim keeps the white type legible over it without
   flattening the image. */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, .62) 0%,
            rgba(0, 0, 0, .28) 26%,
            rgba(0, 0, 0, .3) 68%,
            rgba(0, 0, 0, .55) 100%);
}

.hero > .container {
    position: relative;
    z-index: 1;
}

.hero-inner {
    opacity: var(--hero-opacity, 1);
}

.hero-eyebrow {
    margin-bottom: 30px;
    color: #fff;
    font-size: clamp(11px, 1.6vw, 14px);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-title {
    margin: 0 0 40px;
    color: #fff;
    font-family: var(--font-head);
    font-size: clamp(2rem, 8.5vw, 4.5rem);
    font-weight: 200;
    line-height: 1;
    letter-spacing: .14em;
    text-transform: uppercase;
}

/* the rules above and below the wordmark.
   extra left padding offsets the trailing letter-space so it reads centred */
.hero-title-inner {
    display: inline-block;
    padding: .3em .3em .3em .44em;
    border-top: 1px solid rgba(255, 255, 255, .4);
    border-bottom: 1px solid rgba(255, 255, 255, .4);
}


/* ==================================================
   10. who we are (flip cards)
   ================================================== */
.box-fx-grid {
    gap: 30px;
}

.box-fx {
    position: relative;
    overflow: hidden;
    border: 1px solid #eee;
    border-bottom: 2px solid var(--accent);
    text-align: center;
}

.box-fx-front {
    padding: 60px 30px;
    transition: opacity .3s ease;
}

.box-fx-front .icon {
    margin-bottom: 20px;
    color: var(--accent);
}

.box-fx-front h3 {
    margin-bottom: 10px;
}

.box-fx-front span {
    display: block;
    font-size: 14px;
}

.box-fx-info {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px 30px;
    background: var(--accent);
    color: #fff;
    transform: translateY(100%);
    transition: transform .5s var(--ease);
}

.box-fx-info p {
    margin: 0;
}

.box-fx-info .btn-border {
    border-color: rgba(255, 255, 255, .6);
    color: #fff;
}

.box-fx-info .btn-border:hover {
    border-color: #fff;
    background: #fff;
    color: var(--accent);
}

.box-fx:hover .box-fx-front,
.box-fx:focus-within .box-fx-front {
    opacity: 0;
}

.box-fx:hover .box-fx-info,
.box-fx:focus-within .box-fx-info {
    transform: translateY(0);
}

/* Without a pointer there is nothing to hover with, so the panel would hide
   the description behind a tap. Lay both halves out instead. */
@media (hover: none) {
    .box-fx-front {
        padding-bottom: 24px;
    }

    .box-fx-info {
        position: static;
        transform: none;
        padding: 0 30px 40px;
        background: none;
        color: inherit;
    }

    .box-fx:hover .box-fx-front,
    .box-fx:focus-within .box-fx-front {
        opacity: 1;
    }

    .box-fx-info .btn-border {
        border-color: #bbb;
        color: var(--ink);
    }

    .box-fx-info .btn-border:hover {
        border-color: var(--accent);
        background: var(--accent);
        color: #fff;
    }
}


/* ==================================================
   11. about, side image
   ================================================== */
.side-bg {
    background: #f8f8f8;
}

.side-bg-image {
    position: absolute;
    inset: 0 auto 0 0;
    width: 41.666%;
    background: #222 url("../images/background/about-side.jpg") center / cover no-repeat;
}

.side-bg-text {
    margin-left: 50%;
    padding-block: var(--section-y);
}

.side-bg-text h3 {
    margin-top: 10px;
}


/* ==================================================
   12. parallax bands
   ================================================== */
.band-parallax {
    background: #111 url("../images/background/impact.jpg") center / cover no-repeat fixed;
}

.band-contact {
    background: #111 url("../images/background/hero.jpg") center / cover no-repeat fixed;
}

.band-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .8);
}

.band-content {
    position: relative;
}

#impact .narrow {
    text-align: center;
}


/* ==================================================
   13. team
   ================================================== */
/* Two square cards side by side, each hovering and revealing independently —
   the .de-team-list arrangement from the original build. */
.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 0;
}

.team-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

.team-card-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s var(--ease);
}

/* pure black behind the panel, so the panel's own #111 reads as a distinct
   band and the slide on hover is visible — as it was originally */
.team-card-bio {
    background: #000;
}

.team-desc {
    position: absolute;
    top: 10%;
    left: 0;
    width: 100%;
    height: 50%;
    padding: 26px 30px;
    background: var(--ink);
    color: #ccc;
    text-align: left;
    transition: top .5s var(--ease);
}

.team-desc h3 {
    margin-bottom: 6px;
    color: #fff;
    font-size: 22px;
}

.team-desc .role {
    margin: 0;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
}

.team-desc .small-border {
    margin-block: 16px;
}

.team-desc p:last-child {
    margin: 0;
    font-size: 13px;
    line-height: 1.75;
}

@media (hover: hover) {
    .team-card-photo:hover img {
        transform: scale(1.2);
    }

    .team-card-bio:hover .team-desc {
        top: 0;
    }
}


/* ==================================================
   14. services (progress bars)
   ================================================== */
.services-grid {
    gap: 20px 40px;
}

.services-grid h3 {
    margin-bottom: 0;
}

.de-progress {
    width: 100%;
    height: 4px;
    margin-block: 16px 24px;
    border-radius: 40px;
    background: #ddd;
    overflow: hidden;
}

.dark .de-progress {
    background: #000;
}

.progress-bar {
    display: block;
    width: 0;
    height: 100%;
    border-radius: 40px;
    background: var(--accent);
    transition: width 1.1s var(--ease);
}

.progress-bar.filled {
    width: var(--value, 0%);
}


/* ==================================================
   15. courses (feature boxes)
   ================================================== */
.course-grid {
    gap: 40px 30px;
}

.feature-box {
    display: flex;
    gap: 22px;
    align-items: flex-start;
}

.feature-box .icon {
    flex: none;
    margin-top: 4px;
    color: var(--accent);
    transition: transform .4s var(--ease);
}

.feature-box:hover .icon {
    transform: scale(1.1) rotate(-6deg);
}

.feature-text h3 {
    margin-bottom: 6px;
}

.feature-text p {
    margin: 0;
}


/* ==================================================
   16. call to action
   ================================================== */
.call-to-action {
    padding-block: 60px;
    background: var(--accent);
    text-align: center;
}

.call-to-action .btn-big:hover {
    color: var(--accent);
}


/* ==================================================
   17. testimonials
   ================================================== */
#testimonials {
    background-color: #0d0d0d;
}

/* A hairline diagonal weave that drifts sideways forever, standing in for the
   scrolling photo the original theme used. A 14.142px band period on a 45deg
   axis is exactly 20px across, so a 20px tile repeats seamlessly and a 20px
   translate loops with no visible jump. Transform keeps it off the paint path. */
#testimonials::before {
    content: "";
    position: absolute;
    inset: -30px;
    pointer-events: none;
    background-image: repeating-linear-gradient(45deg,
            rgba(255, 255, 255, .035) 0 1.5px,
            transparent 1.5px 14.142px);
    background-size: 20px 20px;
    animation: drift 3s linear infinite;
}

@keyframes drift {
    to { transform: translateX(-20px); }
}

#testimonials .container {
    position: relative;
}

.carousel {
    position: relative;
}

.carousel-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 60px) / 3);
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.testimonial {
    margin: 0;
    scroll-snap-align: start;
}

.testimonial blockquote {
    margin: 0;
    padding: 25px 30px 30px;
    border: 0;
    border-radius: 8px;
    background: rgba(0, 0, 0, .4);
}

.testimonial blockquote p {
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
    color: var(--dark-heading);
}

.quote-mark {
    display: block;
    width: 22px;
    height: 22px;
    margin-bottom: 12px;
    color: var(--accent);
}

.testimonial-by {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 18px 0 0 20px;
}

.testimonial-by img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    flex: none;
}

.testimonial-by span {
    font-size: 13px;
    letter-spacing: 1px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.carousel-dots:empty {
    display: none;
}

.carousel-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .3);
    transition: background .3s, transform .3s;
}

.carousel-dots button[aria-current="true"] {
    background: var(--accent);
    transform: scale(1.25);
}


/* ==================================================
   18. contact
   ================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.field-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 20px;
}

.field {
    margin-bottom: 20px;
}

.field label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form input[type="tel"],
#contact-form textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--dark-rule);
    border-radius: 0;
    background: rgba(0, 0, 0, .3);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    transition: border-color .3s;
}

#contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

#contact-form ::placeholder {
    color: #999;
    opacity: 1;
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

#contact-form input.invalid,
#contact-form textarea.invalid {
    border-color: #e2495f;
}

.field-error {
    display: none;
    margin: 6px 0 0;
    color: #ff7a8d;
    font-size: 12px;
}

.field-error.show {
    display: block;
}

.form-status {
    margin: 0 0 20px;
    font-size: 13px;
}

.form-status.success {
    color: #4ad07d;
}

.form-status.error {
    color: #ff7a8d;
}

.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

#send-message:disabled {
    opacity: .6;
    cursor: wait;
}

address {
    font-style: normal;
}

address span {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--dark-rule);
    font-size: 15px;
    font-weight: 300;
    line-height: 1.6;
}

address span:last-child {
    border-bottom: 0;
    padding-bottom: 0;
    margin-bottom: 0;
}

address .icon {
    flex: none;
    margin-top: 4px;
    color: var(--accent);
}

address a {
    color: var(--dark-heading);
}

address a:hover {
    color: var(--accent);
}


/* ==================================================
   19. footer + back to top
   ================================================== */
footer {
    padding-block: 60px;
    background: #0b0b0b;
    color: #ccc;
    text-align: center;
}

footer p {
    margin: 0;
}

footer .credit::before {
    content: "·";
    margin: 0 8px;
}

footer a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color .3s;
}

footer a:hover,
footer a:focus-visible {
    color: var(--accent);
}

@media (max-width: 600px) {
    footer .credit {
        display: block;
        margin-top: 6px;
    }

    footer .credit::before {
        content: none;
    }
}

#to-top {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 900;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: var(--accent);
    color: #fff;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .3s, visibility .3s, transform .3s, background .3s;
}

#to-top.show {
    opacity: 1;
    visibility: visible;
    transform: none;
}

#to-top:hover {
    background: var(--ink);
}

#to-top svg {
    width: 20px;
    height: 20px;
}


/* ==================================================
   20. reveal animation
   ================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .8s ease, transform .8s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: none;
}


/* ==================================================
   21. responsive
   ================================================== */
@media (max-width: 1199px) {
    #mainmenu a {
        padding-inline: 11px;
        letter-spacing: 1px;
    }
}

/* tablet and below: the header stops floating and becomes a solid bar */
@media (max-width: 992px) {
    :root {
        --section-y: 70px;
    }

    /* the header no longer floats over the content, so anchors need no offset */
    section {
        scroll-margin-top: 0;
    }

    #header,
    #header.smaller {
        position: static;
        height: auto;
        background: #000;
        border-bottom: 0;
    }

    .header-inner {
        flex-wrap: wrap;
        padding-block: 12px;
    }

    #header.smaller .logo-mark,
    .logo-mark {
        display: block;
        height: 54px;
    }

    #header.smaller .logo-full,
    .logo-full {
        display: none;
    }

    #menu-btn {
        display: block;
    }

    #mainmenu {
        display: none;
        width: 100%;
        order: 3;
    }

    #mainmenu.open {
        display: block;
    }

    #mainmenu ul {
        display: block;
        padding-block: 10px 20px;
    }

    #mainmenu li {
        border-bottom: 1px solid #333;
    }

    #mainmenu li:last-child {
        border-bottom: 0;
    }

    #header.smaller #mainmenu a,
    #mainmenu a {
        padding: 12px 4px;
        color: var(--dark-heading);
        letter-spacing: 3px;
        text-align: left;
    }

    #header.smaller #mainmenu a:hover,
    #mainmenu a:hover,
    #mainmenu a.active {
        color: var(--accent);
    }

    .hero {
        min-height: 82vh;
        padding-block: 60px;
    }

    /* background-attachment: fixed is unreliable on touch devices */
    .band-parallax,
    .band-contact {
        background-attachment: scroll;
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .side-bg-image {
        position: static;
        width: 100%;
        height: 320px;
    }

    /* below this width a half-height panel is too short for the bio, so the
       panel sits statically at the top of the card instead of floating over it */
    .team-card-bio {
        aspect-ratio: auto;
        background: var(--ink);
    }

    .team-card-bio .team-desc {
        position: static;
        height: auto;
        padding: 26px 28px;
    }

    .side-bg-text {
        margin-left: 0;
    }

    .carousel-track {
        grid-auto-columns: calc((100% - 30px) / 2);
    }

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

@media (max-width: 767px) {
    :root {
        --gutter: 25px;
    }

    .section-title {
        font-size: 22px;
        letter-spacing: 3px;
    }

    .grid-2,
    .grid-3,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .field-row {
        grid-template-columns: 1fr;
    }

    .carousel-track {
        grid-auto-columns: 100%;
    }

    .feature-box {
        gap: 18px;
    }

    .icon-lg {
        width: 56px;
        height: 56px;
    }

    #to-top {
        right: 15px;
        bottom: 15px;
    }
}

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

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .hero-inner {
        opacity: 1;
    }
}
