:root {
    --bg-color: #000000;
    --bg-surface: #121214;
    --card-bg: rgba(28, 28, 30, 0.65);
    --card-border: rgba(255, 255, 255, 0.12);
    --card-hover-border: rgba(255, 255, 255, 0.35);
    --text-primary: #f5f5f7;
    --text-secondary: #86868b;
    --text-tertiary: #515154;
    --accent-red: #ff334b;
    --accent-red-glow: rgba(255, 51, 75, 0.35);
    --accent-blue: #2997ff;
    --accent-silver: #d2d2d7;
    --font-main: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
    --font-display: Outfit, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
    --nav-height: 52px;
    --max-width: 1240px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.5;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 72% 18%, rgba(255, 51, 75, 0.16), transparent 34%),
        linear-gradient(180deg, #000 0%, #080809 100%);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 4px;
}

::selection {
    color: #fff;
    background: var(--accent-red);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.visually-hidden,
.skip-link:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 2000;
    padding: 10px 14px;
    color: #000;
    background: #fff;
    border-radius: 999px;
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.text-gradient {
    background: linear-gradient(180deg, #ffffff 0%, #86868b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    width: 100%;
    height: var(--nav-height);
    align-items: center;
    background: rgba(0, 0, 0, 0.75);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: saturate(180%) blur(20px);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.navbar.is-scrolled {
    background: rgba(0, 0, 0, 0.86);
    border-bottom-color: rgba(255, 255, 255, 0.15);
}

.nav-content {
    display: flex;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.nav-logo {
    display: flex;
    min-height: 44px;
    min-width: 0;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0;
    text-decoration: none;
    white-space: nowrap;
}

.status-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 50%;
    background-color: var(--accent-red);
    box-shadow: 0 0 10px var(--accent-red);
}

.nav-domain-full,
.nav-domain-short {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-domain-short {
    display: none;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
    list-style: none;
}

.nav-links a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: 0 5px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 450;
    letter-spacing: 0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.header-logo {
    display: inline-flex;
    width: 184px;
    height: 44px;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    background: #ffffff;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.header-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.header-logo picture,
.tool-showcase picture,
.hero-photo-carousel picture,
.gallery-media picture {
    display: contents;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.menu-toggle span:not(.visually-hidden) {
    display: block;
    width: 17px;
    height: 2px;
    margin: 4px auto;
    background: var(--text-primary);
}

.hero {
    position: relative;
    display: flex;
    min-height: 100vh;
    align-items: center;
    padding-top: var(--nav-height);
    overflow: hidden;
    background: radial-gradient(circle at 70% 30%, rgba(45, 10, 15, 0.25) 0%, rgba(0, 0, 0, 1) 70%);
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 42px;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 0;
}

.hero-photo-carousel {
    position: relative;
    width: min(430px, 100%);
    aspect-ratio: 4 / 3;
    justify-self: end;
    overflow: hidden;
    background: rgba(28, 28, 30, 0.78);
    border: 0;
    border-radius: 22px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.48);
}

.hero-photo-carousel .gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-photo-carousel .carousel-button {
    width: 44px;
    height: 44px;
}

.hero-photo-carousel .carousel-dots {
    bottom: 14px;
}

.hero-tag,
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    color: var(--accent-red);
    font-size: 0.8rem;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-tag {
    padding: 6px 14px;
    background: rgba(255, 51, 75, 0.1);
    border: 1px solid rgba(255, 51, 75, 0.25);
    border-radius: 999px;
}

.section-tag {
    margin-bottom: 12px;
}

.hero-title {
    margin-bottom: 20px;
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 4.9rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: 0;
}

.hero-copy {
    max-width: 580px;
    margin-bottom: 36px;
}

.hero-copy p,
.section-copy p {
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: clamp(1.06rem, 1.45vw, 1.24rem);
    font-weight: 400;
    line-height: 1.65;
}

.hero-copy p:last-child,
.section-copy p:last-child {
    margin-bottom: 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.btn {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 550;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
    color: #000;
    background: #fff;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    background: var(--accent-silver);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.35);
    transform: scale(1.02);
}

.btn-secondary {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.section-padding {
    padding: 120px 0;
}

.section-surface {
    background: rgba(18, 18, 20, 0.64);
}

.section-header {
    max-width: 760px;
    margin-bottom: 64px;
}

.section-header p {
    max-width: 680px;
    color: var(--text-secondary);
    font-size: 1.08rem;
    line-height: 1.65;
}

.section-media-header {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
    gap: 36px;
    align-items: center;
    margin-bottom: 54px;
}

.section-media-header .section-header {
    margin-bottom: 0;
}

.section-media-header .section-title {
    max-width: 660px;
}

.section-title {
    margin-bottom: 16px;
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 720;
    line-height: 1.1;
    letter-spacing: 0;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}

.bento-card {
    position: relative;
    display: flex;
    min-height: 285px;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 36px;
    color: inherit;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 28px;
    text-decoration: none;
    backdrop-filter: blur(30px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card::after {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 60%);
    content: "";
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.bento-card:hover {
    border-color: var(--card-hover-border);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6);
    transform: translateY(-6px) scale(1.008);
}

.bento-card:hover::after {
    opacity: 1;
}

.col-4 {
    grid-column: span 4;
}

.col-6 {
    grid-column: span 6;
}

.col-12 {
    grid-column: span 12;
}

.card-flag {
    margin-bottom: 12px;
    color: var(--accent-red);
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.card-title {
    margin-bottom: 12px;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 1.72rem;
    font-weight: 720;
    line-height: 1.15;
    letter-spacing: 0;
    overflow-wrap: anywhere;
    hyphens: auto;
}

.card-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.55;
}

.card-subdomain {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    margin-top: 26px;
    padding: 6px 12px;
    overflow-wrap: anywhere;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.82rem;
}

.bento-card:hover .card-subdomain {
    background: rgba(255, 255, 255, 0.2);
}

.tool-card {
    min-height: 220px;
    padding: 28px;
    border-radius: 22px;
}

.tool-card > div {
    padding-right: 58px;
}

.tool-card .card-flag {
    margin-bottom: 10px;
    font-size: 0.7rem;
}

.tool-card .card-title {
    margin-bottom: 10px;
    font-size: 1.42rem;
}

.tool-card .card-subtitle {
    font-size: 0.9rem;
    line-height: 1.48;
}

.tool-card .tool-icon {
    position: absolute;
    right: 22px;
    top: 22px;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: var(--accent-red);
    background: rgba(255, 51, 75, 0.1);
    border: 1px solid rgba(255, 51, 75, 0.2);
    border-radius: 14px;
    box-shadow: 0 0 24px rgba(255, 51, 75, 0.08);
}

.hardware-grid {
    align-items: stretch;
}

.hardware-card {
    min-height: 245px;
    padding: 32px;
    border-radius: 24px;
}

.hardware-card > div {
    padding-right: 70px;
}

.hardware-card .card-title {
    max-width: 560px;
    font-size: 1.55rem;
}

.hardware-card .card-subtitle {
    max-width: 560px;
}

.hardware-icon {
    position: absolute;
    top: 26px;
    right: 26px;
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    color: var(--accent-red);
    background: rgba(255, 51, 75, 0.1);
    border: 1px solid rgba(255, 51, 75, 0.2);
    border-radius: 16px;
    box-shadow: 0 0 24px rgba(255, 51, 75, 0.08);
}

.hardware-icon::before {
    font-size: 1.24rem;
    font-weight: 700;
    line-height: 1;
}

.tool-showcase {
    position: relative;
    width: min(460px, 100%);
    justify-self: end;
    overflow: hidden;
    background: #ffffff;
    border: 0;
    border-radius: 22px;
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.38);
}

.tool-showcase img {
    width: 100%;
    height: auto;
    max-height: 210px;
    padding: 18px;
    object-fit: contain;
    object-position: center;
}

.project-card.col-12 {
    min-height: 260px;
}

.project-card.col-12 .card-title {
    max-width: 760px;
    font-size: 2.2rem;
}

.project-card.col-12 .card-subtitle {
    max-width: 780px;
    font-size: 1.08rem;
}

.tool-icon::before {
    font-size: 1.28rem;
    line-height: 1;
}

.tool-icon-home::before { content: "⌂"; }
.tool-icon-gear::before { content: "⚙"; }
.tool-icon-compare::before { content: "⇄"; }
.tool-icon-tool::before { content: "⌘"; }
.tool-icon-wood::before { content: "W"; font-weight: 800; }
.tool-icon-lathe::before { content: "↻"; }
.tool-icon-mill::before { content: "⌖"; }
.tool-icon-spin::before { content: "◌"; }
.tool-icon-sun::before { content: "☼"; }
.tool-icon-chart::before { content: "▦"; }

.hardware-icon-cnc::before { content: "5X"; }
.hardware-icon-printer::before { content: "3D"; }
.hardware-icon-workstation::before { content: "CAD"; font-size: 1rem; }
.hardware-icon-edumill::before { content: "EDU"; font-size: 0.94rem; }
.hardware-icon-spindle::before { content: "RPM"; font-size: 0.92rem; }
.hardware-icon-parts::before { content: "DIN"; font-size: 0.92rem; }

.timeline-card {
    position: relative;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    max-width: 900px;
    padding: 40px;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-card::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--text-tertiary);
    content: "";
    transition: background 0.3s ease;
}

.timeline-card:hover {
    border-color: var(--card-hover-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(-4px);
}

.timeline-card:hover::before {
    background: var(--accent-red);
}

.timeline-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.timeline-period {
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 720;
}

.timeline-badge {
    display: inline-block;
    width: fit-content;
    padding: 4px 10px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 0.75rem;
}

.timeline-content h3 {
    margin-bottom: 8px;
    font-size: 1.5rem;
    font-weight: 650;
}

.timeline-desc {
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.65;
}

.gallery-grid {
    align-items: start;
}

.gallery-card {
    min-height: 0;
    padding: 0;
}

.gallery-media {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: #080809;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gallery-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.gallery-image.is-active {
    opacity: 1;
}

.gallery-body {
    padding: 26px 28px 30px;
}

.gallery-body .card-title {
    font-size: 1.28rem;
    overflow-wrap: anywhere;
}

.gallery-body .card-subtitle {
    margin-bottom: 0;
}

.carousel-button {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.58);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transform: translateY(-50%);
}

.carousel-button::before {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.35rem;
}

.carousel-button:hover {
    background: rgba(255, 255, 255, 0.16);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-prev::before {
    content: "‹";
}

.carousel-next::before {
    content: "›";
}

.carousel-dots {
    position: absolute;
    right: 0;
    bottom: 12px;
    left: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    padding: 0 8px;
}

.carousel-dot {
    position: relative;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.carousel-dot::before {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.26);
    content: "";
}

.carousel-dot.is-active::before {
    background: #fff;
}

.gallery-card.is-gallery-hidden {
    display: none;
}

.gallery-load-more {
    display: flex;
    min-height: 48px;
    margin: 34px auto 0;
    align-items: center;
    justify-content: center;
    padding: 13px 26px;
    color: #000;
    background: #fff;
    border: 0;
    border-radius: 999px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
    font: inherit;
    font-weight: 650;
    cursor: pointer;
}

.gallery-load-more[hidden] {
    display: none;
}

.gallery-load-more:hover {
    background: var(--accent-silver);
}

.noscript-note {
    max-width: 720px;
    margin: -28px 0 36px;
    padding: 14px 16px;
    color: var(--text-primary);
    background: rgba(255, 159, 10, 0.08);
    border: 1px solid rgba(255, 159, 10, 0.25);
    border-radius: 14px;
}

.footer {
    padding: 80px 0 40px;
    background: #080809;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 40px;
    color: var(--text-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.85rem;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom nav {
    display: flex;
    gap: 16px;
    align-items: center;
}

.footer-bottom a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: 0 4px;
    color: var(--text-primary);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--accent-red);
}

.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

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

@media (max-width: 1080px) {
    .nav-links {
        gap: 18px;
    }

    .hero-layout,
    .section-media-header {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .hero-photo-carousel {
        justify-self: start;
        max-width: 430px;
    }

    .tool-showcase {
        justify-self: start;
        max-width: 440px;
    }

    .bento-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .col-4,
    .col-6 {
        grid-column: span 3;
    }

    .col-12 {
        grid-column: span 6;
    }
}

@media (max-width: 820px) {
    .navbar {
        height: auto;
        min-height: var(--nav-height);
        padding: 10px 0;
    }

    .nav-content {
        flex-wrap: wrap;
        padding: 0 16px;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .header-logo {
        width: 152px;
        height: 44px;
        margin-left: auto;
    }

    .nav-links {
        display: none;
        order: 3;
        width: 100%;
        padding: 8px 0 2px;
        overflow-x: auto;
        gap: 22px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links li {
        flex: 0 0 auto;
    }

    .hero {
        min-height: auto;
        padding-top: 112px;
        padding-bottom: 70px;
    }

    .hero-content {
        padding-bottom: 0;
    }

    .hero-photo-carousel {
        order: -1;
    }

    .hero-actions .btn {
        flex: 1 1 calc(50% - 12px);
        padding: 12px 20px;
        text-align: center;
    }

    .section-padding {
        padding: 70px 0;
    }

    .timeline-card {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 28px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 560px) {
    .container {
        padding: 0 16px;
    }

    .nav-content {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px 12px;
    }

    .nav-logo {
        grid-column: 1;
        grid-row: 1;
        max-width: none;
        overflow: hidden;
        font-size: 0.9rem;
        text-overflow: ellipsis;
    }

    .header-logo {
        grid-column: 2;
        grid-row: 1;
        width: 124px;
        height: 44px;
        margin-left: 0;
        padding: 5px 8px;
    }

    .menu-toggle {
        grid-column: 2;
        grid-row: 2;
        justify-self: end;
        margin-left: 0;
    }

    .nav-links {
        grid-column: 1 / -1;
        grid-row: 3;
        order: 0;
    }

    .hero {
        padding-top: 138px;
    }

    .hero-photo-carousel {
        border-radius: 22px;
    }

    .hero-photo-carousel .carousel-button {
        width: 44px;
        height: 44px;
    }

    .hero-title {
        font-size: 2.35rem;
        line-height: 1.14;
    }

    .hero-copy p,
    .section-copy p {
        font-size: 1.05rem;
        line-height: 1.58;
    }

    .tool-showcase img {
        max-height: 150px;
        padding: 12px;
    }

    .hero-actions .btn {
        flex: 1 1 100%;
        width: 100%;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .col-4,
    .col-6,
    .col-12 {
        grid-column: span 1;
    }

    .bento-card {
        min-height: 245px;
        padding: 24px;
        border-radius: 22px;
    }

    .tool-card {
        min-height: 205px;
        padding: 22px;
    }

    .card-title {
        font-size: 1.38rem;
    }

    .tool-card > div {
        padding-right: 52px;
    }

    .tool-card .card-title {
        font-size: 1.3rem;
    }

    .tool-card .card-subtitle {
        font-size: 0.88rem;
    }

    .tool-card .tool-icon {
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .hardware-card {
        min-height: 220px;
        padding: 24px;
    }

    .hardware-card > div {
        padding-right: 56px;
    }

    .hardware-card .card-title {
        font-size: 1.32rem;
    }

    .hardware-card .card-subtitle {
        font-size: 0.9rem;
    }

    .hardware-icon {
        top: 22px;
        right: 22px;
        width: 42px;
        height: 42px;
        border-radius: 13px;
    }

    .hardware-icon::before {
        font-size: 1rem;
    }

    .hardware-icon-workstation::before,
    .hardware-icon-edumill::before,
    .hardware-icon-spindle::before,
    .hardware-icon-parts::before {
        font-size: 0.78rem;
    }

    .card-subdomain {
        padding-right: 70px;
    }

    .gallery-media {
        height: 226px;
    }

    .gallery-body {
        padding: 22px;
    }
}

@media (max-width: 420px) {
    .nav-domain-full {
        display: none;
    }

    .nav-domain-short {
        display: inline;
    }
}
