:root {
    --jd-orange: #f45a21;
    --jd-orange-dark: #d94a16;
    --jd-orange-soft: #fff1ea;
    --jd-ink: #101216;
    --jd-muted: #6d7179;
    --jd-line: #e6e7e9;
    --jd-surface: #ffffff;
    --jd-surface-2: #f6f6f4;
    --jd-header: rgba(255, 255, 255, .88);
    --jd-shadow: 0 24px 70px rgba(16, 18, 22, .08);
    --jd-radius: 1.4rem;
    --jd-radius-sm: .95rem;
    --jd-font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

[data-bs-theme="dark"] {
    --jd-orange-soft: #2a1811;
    --jd-ink: #f4f5f6;
    --jd-muted: #a7abb2;
    --jd-line: #2b2e34;
    --jd-surface: #111318;
    --jd-surface-2: #171a20;
    --jd-header: rgba(17, 19, 24, .88);
    --jd-shadow: 0 24px 70px rgba(0, 0, 0, .25);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: var(--jd-font);
    color: var(--jd-ink);
    background: var(--jd-surface);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

::selection {
    color: #fff;
    background: var(--jd-orange);
}

a {
    color: inherit;
    text-decoration-thickness: .08em;
    text-underline-offset: .18em;
}

a:hover {
    color: var(--jd-orange);
}

img {
    max-width: 100%;
}

.shell {
    width: min(100% - 2rem, 1180px);
}

.skip-link {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 2000;
    padding: .75rem 1rem;
    border-radius: .7rem;
    color: #fff;
    background: var(--jd-orange);
    transform: translateY(-180%);
    transition: transform .2s ease;
}

.skip-link:focus {
    color: #fff;
    transform: translateY(0);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1020;
    border-bottom: 1px solid color-mix(in srgb, var(--jd-line) 85%, transparent);
    background: var(--jd-header);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.site-header .navbar {
    min-height: 78px;
    padding: .75rem 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    padding: 0;
}

.brand-logo {
    display: block;
    width: 188px;
    height: auto;
}

.brand-logo-dark {
    display: none;
}

[data-bs-theme="dark"] .brand-logo-light {
    display: none;
}

[data-bs-theme="dark"] .brand-logo-dark {
    display: block;
}

.navbar-nav {
    gap: .2rem;
}

.nav-link {
    position: relative;
    padding: .65rem .85rem !important;
    border-radius: .65rem;
    color: var(--jd-muted);
    font-size: .95rem;
    font-weight: 650;
    letter-spacing: -.01em;
    transition: color .18s ease, background .18s ease;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
    color: var(--jd-ink) !important;
    background: color-mix(in srgb, var(--jd-line) 55%, transparent);
}

.theme-toggle {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--jd-line);
    border-radius: 50%;
    color: var(--jd-ink);
    background: var(--jd-surface);
    transition: border-color .18s ease, transform .18s ease, background .18s ease;
}

.theme-toggle:hover {
    border-color: color-mix(in srgb, var(--jd-orange) 55%, var(--jd-line));
    transform: translateY(-1px);
}

.theme-toggle .dark-icon {
    display: none;
}

[data-bs-theme="dark"] .theme-toggle .light-icon {
    display: none;
}

[data-bs-theme="dark"] .theme-toggle .dark-icon {
    display: inline-block;
}

.navbar-toggler-icon {
    filter: none;
}

[data-bs-theme="dark"] .navbar-toggler-icon {
    filter: invert(1) grayscale(1) brightness(2);
}

/* Buttons */
.btn {
    --bs-btn-font-weight: 700;
    border-radius: .8rem;
    letter-spacing: -.015em;
}

.btn-lg {
    --bs-btn-padding-y: .9rem;
    --bs-btn-padding-x: 1.15rem;
    --bs-btn-font-size: .98rem;
}

.btn-brand {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--jd-orange);
    --bs-btn-border-color: var(--jd-orange);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--jd-orange-dark);
    --bs-btn-hover-border-color: var(--jd-orange-dark);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--jd-orange-dark);
    --bs-btn-active-border-color: var(--jd-orange-dark);
    box-shadow: 0 12px 24px rgba(244, 90, 33, .18);
}

.btn-quiet {
    --bs-btn-color: var(--jd-ink);
    --bs-btn-bg: transparent;
    --bs-btn-border-color: var(--jd-line);
    --bs-btn-hover-color: var(--jd-ink);
    --bs-btn-hover-bg: var(--jd-surface-2);
    --bs-btn-hover-border-color: color-mix(in srgb, var(--jd-ink) 22%, var(--jd-line));
}

/* Hero */
.hero-section {
    position: relative;
    overflow: hidden;
    padding: clamp(5rem, 9vw, 8.5rem) 0 clamp(5rem, 8vw, 7rem);
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(to right, color-mix(in srgb, var(--jd-line) 55%, transparent) 1px, transparent 1px),
        linear-gradient(to bottom, color-mix(in srgb, var(--jd-line) 55%, transparent) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.35), transparent 72%);
    opacity: .42;
}

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

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin: 0 0 1.2rem;
    color: var(--jd-orange);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    line-height: 1.3;
    text-transform: uppercase;
}

.status-dot {
    width: .55rem;
    height: .55rem;
    border-radius: 50%;
    background: var(--jd-orange);
    box-shadow: 0 0 0 .28rem var(--jd-orange-soft);
}

.hero-section h1 {
    max-width: 830px;
    margin: 0;
    color: var(--jd-ink);
    font-size: clamp(3.25rem, 7.2vw, 6.55rem);
    font-weight: 820;
    letter-spacing: -.065em;
    line-height: .91;
}

.hero-section h1 span {
    color: var(--jd-orange);
}

.hero-lead {
    max-width: 720px;
    margin: 2rem 0 0;
    color: var(--jd-muted);
    font-size: clamp(1.08rem, 1.6vw, 1.28rem);
    line-height: 1.72;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 2rem;
}

.hero-actions .btn i,
.contact-card .btn i {
    margin-left: .45rem;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: 2.2rem;
}

.hero-meta span,
.tag-row span {
    padding: .45rem .68rem;
    border: 1px solid var(--jd-line);
    border-radius: 999px;
    color: var(--jd-muted);
    background: color-mix(in srgb, var(--jd-surface) 92%, transparent);
    font-size: .78rem;
    font-weight: 700;
}

.hero-visual {
    position: relative;
    min-height: 490px;
    overflow: hidden;
    border: 1px solid var(--jd-line);
    border-radius: 2rem;
    background: var(--jd-surface-2);
    box-shadow: var(--jd-shadow);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, color-mix(in srgb, var(--jd-line) 75%, transparent) 1px, transparent 1px),
        linear-gradient(to bottom, color-mix(in srgb, var(--jd-line) 75%, transparent) 1px, transparent 1px);
    background-size: 38px 38px;
}

.mark-wrap {
    position: absolute;
    inset: 50% auto auto 50%;
    display: grid;
    width: min(66%, 285px);
    aspect-ratio: 1;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--jd-line) 80%, transparent);
    border-radius: 1.75rem;
    background: var(--jd-surface);
    box-shadow: 0 28px 70px rgba(16, 18, 22, .14);
    transform: translate(-50%, -50%) rotate(-2.5deg);
}

.mark-wrap::after {
    content: "";
    position: absolute;
    inset: .75rem;
    border: 1px dashed color-mix(in srgb, var(--jd-orange) 30%, var(--jd-line));
    border-radius: 1.25rem;
}

.mark-wrap img {
    position: relative;
    z-index: 1;
    width: 74%;
    filter: drop-shadow(0 8px 18px rgba(0,0,0,.12));
}

.visual-note {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem .7rem;
    border: 1px solid var(--jd-line);
    border-radius: .65rem;
    color: var(--jd-muted);
    background: color-mix(in srgb, var(--jd-surface) 94%, transparent);
    box-shadow: 0 12px 30px rgba(16,18,22,.07);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .68rem;
    letter-spacing: .02em;
}

.visual-note-top {
    top: 1.25rem;
    right: 1.25rem;
}

.visual-note-bottom {
    bottom: 1.25rem;
    left: 1.25rem;
}

.note-separator {
    color: var(--jd-orange);
}

/* Sections */
.section {
    padding: clamp(5rem, 8vw, 7.5rem) 0;
}

.section-muted {
    border-top: 1px solid var(--jd-line);
    border-bottom: 1px solid var(--jd-line);
    background: var(--jd-surface-2);
}

.section-title {
    max-width: 670px;
    margin: 0;
    font-size: clamp(2.15rem, 4vw, 3.55rem);
    font-weight: 790;
    letter-spacing: -.045em;
    line-height: 1.02;
}

.prose-lg {
    color: var(--jd-muted);
    font-size: 1.12rem;
    line-height: 1.8;
}

.prose-lg p:last-child {
    margin-bottom: 0;
}

.principles-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2.3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--jd-line);
}

.principles-row div {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.principles-row strong {
    font-size: .95rem;
}

.principles-row span {
    color: var(--jd-muted);
    font-size: .85rem;
    line-height: 1.5;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 3rem;
    margin-bottom: 3rem;
}

.section-sidecopy {
    width: min(100%, 350px);
    margin: 0 0 .2rem;
    color: var(--jd-muted);
    line-height: 1.7;
}

.focus-card {
    position: relative;
    min-height: 360px;
    padding: 1.6rem;
    overflow: hidden;
    border: 1px solid var(--jd-line);
    border-radius: var(--jd-radius);
    background: var(--jd-surface);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.focus-card:hover {
    border-color: color-mix(in srgb, var(--jd-orange) 45%, var(--jd-line));
    box-shadow: 0 22px 55px rgba(16, 18, 22, .08);
    transform: translateY(-4px);
}

.focus-icon {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: .9rem;
    color: var(--jd-orange);
    background: var(--jd-orange-soft);
    font-size: 1.2rem;
}

.focus-index {
    position: absolute;
    top: 1.6rem;
    right: 1.6rem;
    color: color-mix(in srgb, var(--jd-muted) 70%, transparent);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .78rem;
}

.focus-card h3 {
    margin: 4.3rem 0 .8rem;
    font-size: 1.4rem;
    font-weight: 760;
    letter-spacing: -.025em;
}

.focus-card p {
    margin: 0;
    color: var(--jd-muted);
    line-height: 1.7;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: 1.4rem;
}

.section-stack {
    padding-top: 0;
}

.stack-card {
    padding: clamp(2rem, 5vw, 4.2rem);
    border: 1px solid var(--jd-line);
    border-radius: 1.7rem;
    background: var(--jd-surface-2);
}

.stack-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

.stack-list span {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-height: 54px;
    padding: .7rem .95rem;
    border: 1px solid var(--jd-line);
    border-radius: .9rem;
    background: var(--jd-surface);
    font-size: .9rem;
    font-weight: 700;
}

.stack-list i {
    width: 1.3rem;
    color: var(--jd-orange);
    text-align: center;
}

.contact-section {
    padding-top: 1.2rem;
}

.contact-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    padding: clamp(2rem, 5vw, 4rem);
    border-radius: 1.7rem;
    color: #fff;
    background: #111318;
}

[data-bs-theme="dark"] .contact-card {
    color: #101216;
    background: #f1f2f2;
}

.contact-card .eyebrow {
    color: #ff7b4a;
}

.contact-card h2 {
    margin: 0 0 .7rem;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 790;
    letter-spacing: -.045em;
}

.contact-card p {
    max-width: 650px;
    margin: 0;
    color: rgba(255,255,255,.66);
    line-height: 1.65;
}

[data-bs-theme="dark"] .contact-card p {
    color: rgba(16,18,22,.65);
}

.contact-card .btn-light {
    flex: 0 0 auto;
    border: 0;
    color: #111318;
    background: #fff;
}

[data-bs-theme="dark"] .contact-card .btn-light {
    color: #fff;
    background: #111318;
}

/* Portfolio (prepared, disabled by default) */
.project-card {
    overflow: hidden;
    border: 1px solid var(--jd-line);
    border-radius: var(--jd-radius);
    background: var(--jd-surface);
}

.project-image-wrap {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--jd-surface-2);
}

.project-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.project-card:hover .project-image-wrap img {
    transform: scale(1.025);
}

.project-body {
    padding: 1.25rem;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: .5rem;
    color: var(--jd-muted);
    font-size: .78rem;
    font-weight: 700;
}

.project-body h3 {
    margin: 0;
    font-size: 1.15rem;
}

/* Subpages */
.page-hero {
    padding: clamp(5rem, 9vw, 8rem) 0 4rem;
}

.page-hero h1 {
    max-width: 850px;
    margin: 0 0 1rem;
    font-size: clamp(3rem, 7vw, 6.2rem);
    font-weight: 820;
    letter-spacing: -.06em;
    line-height: .95;
}

.page-hero > .container > p:last-child {
    max-width: 670px;
    margin: 0;
    color: var(--jd-muted);
    font-size: 1.12rem;
    line-height: 1.7;
}

.contact-detail-card {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    min-height: 210px;
    padding: 2rem;
    border: 1px solid var(--jd-line);
    border-radius: var(--jd-radius);
    background: var(--jd-surface-2);
}

.contact-detail-card.compact {
    min-height: 210px;
}

.contact-detail-icon {
    display: grid;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: .9rem;
    color: var(--jd-orange);
    background: var(--jd-orange-soft);
}

.detail-label {
    display: block;
    margin-bottom: .35rem;
    color: var(--jd-muted);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.detail-value {
    display: inline-block;
    color: var(--jd-ink);
    font-size: clamp(1.35rem, 3vw, 2rem);
    font-weight: 780;
    letter-spacing: -.035em;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.detail-value.static:hover {
    color: var(--jd-ink);
}

.contact-detail-card p {
    margin: .8rem 0 0;
    color: var(--jd-muted);
}

.privacy-note {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1.3rem 1.45rem;
    border: 1px solid var(--jd-line);
    border-radius: var(--jd-radius-sm);
}

.privacy-note i {
    margin-top: .1rem;
    color: var(--jd-orange);
}

.privacy-note div {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

.privacy-note span {
    color: var(--jd-muted);
    line-height: 1.6;
}

.legal-hero {
    padding-bottom: 3rem;
}

.legal-layout {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

.legal-aside {
    position: sticky;
    top: 110px;
    display: flex;
    flex-direction: column;
    gap: .15rem;
    padding-top: .4rem;
    color: var(--jd-muted);
    font-size: .8rem;
}

.legal-aside strong {
    color: var(--jd-ink);
    font-size: .92rem;
}

.legal-card {
    max-width: 900px;
    padding: clamp(1.5rem, 4vw, 3rem);
    border: 1px solid var(--jd-line);
    border-radius: var(--jd-radius);
    background: var(--jd-surface-2);
}

.legal-card h2 {
    margin: 2.2rem 0 .7rem;
    font-size: 1.18rem;
    font-weight: 780;
    letter-spacing: -.02em;
}

.legal-card h2:first-child {
    margin-top: 0;
}

.legal-card p,
.legal-card li {
    color: var(--jd-muted);
    line-height: 1.75;
}

.legal-card p:last-child {
    margin-bottom: 0;
}

.legal-card a {
    color: var(--jd-ink);
    font-weight: 650;
}

.legal-card a:hover {
    color: var(--jd-orange);
}

/* 404 */
.error-section {
    display: grid;
    min-height: calc(100vh - 78px);
    padding: 5rem 0;
    place-items: center;
}

.error-code {
    margin-bottom: .5rem;
    color: var(--jd-orange);
    font-size: clamp(5rem, 15vw, 10rem);
    font-weight: 850;
    letter-spacing: -.08em;
    line-height: .8;
}

.error-section h1 {
    margin: 0 0 .75rem;
    font-size: clamp(2.3rem, 5vw, 4.3rem);
    font-weight: 800;
    letter-spacing: -.05em;
}

.error-section p:not(.eyebrow) {
    margin: 0 auto 1.8rem;
    color: var(--jd-muted);
}

/* Footer */
.site-footer {
    margin-top: clamp(4rem, 7vw, 7rem);
    padding: 4rem 0 1.7rem;
    color: rgba(255,255,255,.78);
    background: #0e1014;
}

.site-footer .shell {
    width: min(100% - 2rem, 1180px);
}

.footer-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
}

.footer-brand img {
    width: 175px;
}

.footer-copy {
    max-width: 390px;
    margin: 1rem 0 0;
    color: rgba(255,255,255,.5);
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .55rem 1.1rem;
}

.footer-links a,
.footer-link-button {
    padding: 0;
    border: 0;
    color: rgba(255,255,255,.66);
    background: transparent;
    font-size: .9rem;
    font-weight: 650;
    text-decoration: none;
}

.footer-links a:hover,
.footer-link-button:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3.2rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(255,255,255,.1);
    color: rgba(255,255,255,.42);
    font-size: .82rem;
}

.footer-bottom a {
    color: rgba(255,255,255,.56);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #fff;
}

/* Cookie / privacy notice */
.cookie-banner {
    position: fixed;
    z-index: 2000;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    pointer-events: none;
}

.cookie-banner[hidden] {
    display: none !important;
}

.cookie-panel {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    width: min(100%, 760px);
    margin-left: auto;
    padding: 1.1rem;
    border: 1px solid var(--jd-line);
    border-radius: 1rem;
    background: var(--jd-surface);
    box-shadow: 0 24px 80px rgba(0,0,0,.2);
    pointer-events: auto;
}

.cookie-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: .75rem;
    color: var(--jd-orange);
    background: var(--jd-orange-soft);
}

.cookie-content h2 {
    margin: 0 0 .35rem;
    font-size: 1rem;
    font-weight: 780;
}

.cookie-content p {
    margin: 0;
    color: var(--jd-muted);
    font-size: .86rem;
    line-height: 1.55;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: .85rem;
}

.cookie-actions .btn {
    --bs-btn-padding-y: .55rem;
    --bs-btn-padding-x: .8rem;
    --bs-btn-font-size: .82rem;
}

/* Motion */
@media (prefers-reduced-motion: no-preference) {
    .hero-section h1,
    .hero-lead,
    .hero-actions,
    .hero-meta,
    .hero-visual {
        animation: fade-up .55s ease both;
    }

    .hero-lead { animation-delay: .06s; }
    .hero-actions { animation-delay: .11s; }
    .hero-meta { animation-delay: .16s; }
    .hero-visual { animation-delay: .08s; }

    @keyframes fade-up {
        from { opacity: 0; transform: translateY(12px); }
        to { opacity: 1; transform: translateY(0); }
    }
}

@media (max-width: 991.98px) {
    .site-header .navbar-collapse {
        margin-top: .75rem;
        padding: .65rem;
        border: 1px solid var(--jd-line);
        border-radius: 1rem;
        background: var(--jd-surface);
        box-shadow: 0 16px 45px rgba(16,18,22,.08);
    }

    .navbar-nav {
        gap: .15rem;
    }

    .hero-section {
        padding-top: 4rem;
    }

    .hero-visual {
        min-height: 390px;
    }

    .mark-wrap {
        width: min(58%, 240px);
    }

    .section-head,
    .contact-card,
    .footer-main {
        align-items: flex-start;
        flex-direction: column;
    }

    .section-sidecopy {
        width: 100%;
        max-width: 650px;
    }

    .legal-layout {
        grid-template-columns: 1fr;
    }

    .legal-aside {
        position: static;
        flex-direction: row;
        gap: .4rem;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 767.98px) {
    .shell {
        width: min(100% - 1.35rem, 1180px);
    }

    .brand-logo {
        width: 156px;
    }

    .hero-section h1 {
        font-size: clamp(3rem, 16vw, 4.3rem);
    }

    .hero-lead {
        margin-top: 1.5rem;
    }

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

    .hero-visual {
        min-height: 330px;
        border-radius: 1.35rem;
    }

    .visual-note-top {
        top: .8rem;
        right: .8rem;
    }

    .visual-note-bottom {
        bottom: .8rem;
        left: .8rem;
    }

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

    .focus-card {
        min-height: auto;
    }

    .focus-card h3 {
        margin-top: 2.8rem;
    }

    .stack-list {
        grid-template-columns: 1fr;
    }

    .contact-card .btn {
        width: 100%;
    }

    .contact-detail-card,
    .contact-detail-card.compact {
        min-height: auto;
        padding: 1.4rem;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .cookie-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .visual-note {
        font-size: .6rem;
    }

    .visual-note-bottom span:nth-child(2),
    .visual-note-bottom span:nth-child(3) {
        display: none;
    }
}
