:root {
    --bg: #f5f6f8;
    --bg2: #eef0f3;
    --card: #ffffff;
    --ink: #202833;
    --muted: #687382;
    --green: #3f6656;
    --lime: #c9d9cf;
    --orange: #b86b3f;
    --line: rgba(32, 40, 51, .14);
    --chip: #e9edf0;
    --nav: rgba(245, 246, 248, .94);
    --sh: 0 12px 32px rgba(32, 40, 51, .09);
    --red: #c43e3e
}

[data-theme=dark] {
    --bg: #171a1f;
    --bg2: #13161b;
    --card: #20252c;
    --ink: #edf0f4;
    --muted: #a5adb8;
    --green: #8db8a1;
    --lime: #c9d9cf;
    --orange: #d99469;
    --line: rgba(237, 240, 244, .13);
    --chip: #292f37;
    --nav: rgba(23, 26, 31, .95);
    --sh: 0 12px 32px rgba(0, 0, 0, .28);
    --red: #ff8179
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 76px
}

body {
    font-family: 'Nunito', system-ui, sans-serif;
    color: var(--ink);
    line-height: 1.7;
    background: linear-gradient(180deg, var(--bg), var(--bg2));
    background-attachment: fixed;
    transition: background .25s, color .25s;
    min-height: 100vh;
    display: flex;
    flex-direction: column
}

[data-theme=dark] body {
    background: linear-gradient(180deg, var(--bg), var(--bg2))
}

main {
    flex: 1
}

h1,
h2,
h3 {
    font-family: 'Fredoka', 'Nunito', sans-serif;
    line-height: 1.1
}

a {
    color: inherit;
    text-decoration: none
}

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

button,
input,
textarea {
    font: inherit;
    color: inherit
}

.wrap {
    width: min(1150px, calc(100% - 36px));
    margin: auto
}

.narrow {
    width: min(780px, calc(100% - 36px));
    margin: auto
}

nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--nav);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line)
}

.navin {
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px
}

.brand {
    font-family: 'Fredoka';
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: .08em;
    display: flex;
    align-items: center;
    gap: 10px
}

.mark {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 3px solid var(--green);
    position: relative
}

.mark:after {
    content: "";
    position: absolute;
    inset: 5px;
    border: 2px dashed var(--orange);
    border-radius: 50%
}

.links {
    display: flex;
    gap: 24px;
    font-weight: 700;
    font-size: .92rem;
    align-items: center
}

.links a:hover,
.links a.on {
    color: var(--orange)
}

.ctl {
    display: flex;
    gap: 8px;
    align-items: center
}

.ib {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid var(--line);
    background: var(--card);
    color: var(--ink);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: .2s
}

.ib:hover {
    transform: rotate(18deg);
    border-color: var(--orange)
}

.ib svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round
}

.moon {
    display: none
}

[data-theme=dark] .moon {
    display: block
}

[data-theme=dark] .sun {
    display: none
}

#mb {
    display: none
}

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 44px;
    align-items: center;
    padding: 64px 0 70px;
    min-height: calc(100vh - 66px)
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--chip);
    color: var(--green);
    font-weight: 800;
    font-size: .8rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 99px
}

.tag i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--orange)
}

h1 {
    font-size: clamp(3.4rem, 9vw, 7.6rem);
    letter-spacing: -.04em;
    margin: 20px 0 6px;
    line-height: .9
}

h1 em {
    font-style: normal;
    color: var(--orange)
}

.sub {
    font-family: 'Fredoka';
    letter-spacing: .24em;
    color: var(--green);
    font-size: .95rem;
    margin-bottom: 18px
}

.hero p {
    color: var(--muted);
    font-size: 1.1rem;
    max-width: 560px
}

.acts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px
}

.btn {
    display: inline-block;
    padding: 13px 24px;
    border-radius: 99px;
    font-weight: 800;
    border: 2px solid var(--ink);
    transition: .15s;
    cursor: pointer;
    background: transparent;
    text-align: center
}

.btn.p {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
    box-shadow: 0 5px 0 rgba(0, 0, 0, .18)
}

.btn.p:hover {
    transform: translateY(2px);
    box-shadow: 0 3px 0 rgba(0, 0, 0, .18)
}

.btn.p:disabled {
    opacity: .6;
    cursor: wait
}

.btn.s:hover {
    background: var(--chip)
}

.btn.sm {
    padding: 7px 16px;
    font-size: .85rem;
    border-width: 1.5px
}

.btn.danger {
    border-color: var(--red);
    color: var(--red)
}

.btn.danger:hover {
    background: var(--red);
    color: #fff
}

.stats {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
    margin-top: 34px
}

.stats b {
    font-family: 'Fredoka';
    font-size: 1.8rem;
    display: block;
    line-height: 1;
    color: var(--green)
}

.stats span {
    font-size: .72rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 700
}

.bp {
    position: relative;
    border-radius: 32px;
    background: #244636;
    box-shadow: var(--sh);
    padding: 22px 18px 16px;
    overflow: hidden;
    color: #e8f0d8
}

[data-theme=dark] .bp {
    background: #1d3a2d;
    border: 1px solid rgba(255, 255, 255, .12)
}

.bp:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 26px 26px
}

.bp>* {
    position: relative
}

.bph {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font: 700 .72rem monospace;
    letter-spacing: .1em;
    margin-bottom: 6px
}

.bp svg {
    width: 100%;
    display: block
}

.bpf {
    font: .68rem monospace;
    color: #b9ccbc;
    border-top: 1px solid rgba(255, 255, 255, .18);
    padding-top: 8px;
    margin-top: 4px;
    display: flex;
    justify-content: space-between;
    gap: 10px
}

section {
    padding: 90px 0
}

.k {
    font-weight: 800;
    font-size: .78rem;
    letter-spacing: .16em;
    color: var(--orange);
    text-transform: uppercase
}

.sh {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 50px;
    align-items: end;
    margin-bottom: 40px
}

h2 {
    font-size: clamp(2.3rem, 5vw, 4.6rem);
    letter-spacing: -.03em;
    margin-top: 8px
}

.sh p {
    color: var(--muted)
}

.panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 26px;
    box-shadow: 0 10px 30px rgba(60, 70, 50, .06)
}

.two {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 20px
}

.big {
    padding: 34px
}

.big p {
    color: var(--muted);
    margin-top: 14px
}

.big p:first-child {
    font-size: 1.25rem;
    color: var(--ink);
    margin: 0
}

.q {
    padding: 34px;
    background: var(--green);
    color: #f6f1e7
}

[data-theme=dark] .q {
    background: #2c4a3a
}

.q i {
    font: italic 5rem/.6 Georgia, serif;
    color: var(--lime);
    display: block
}

.q p {
    font-size: 1.25rem;
    line-height: 1.5;
    margin-top: 10px
}

.q small {
    opacity: .8;
    display: block;
    margin-top: 14px
}

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

.card {
    padding: 28px;
    transition: .2s;
    position: relative;
    overflow: hidden
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--sh)
}

.card b {
    font: 800 .72rem monospace;
    letter-spacing: .14em;
    color: var(--orange)
}

.card h3 {
    font-size: 1.35rem;
    margin: 22px 0 10px
}

.card p {
    color: var(--muted);
    font-size: .93rem
}

.card:after {
    content: "";
    position: absolute;
    width: 80px;
    height: 80px;
    border: 1.5px dashed var(--line);
    border-radius: 50%;
    right: -22px;
    bottom: -22px
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line);
    border-radius: 26px;
    overflow: hidden;
    background: var(--card)
}

.step {
    padding: 28px 24px;
    border-right: 1px solid var(--line)
}

.step:last-child {
    border: 0
}

.step b {
    font-family: 'Fredoka';
    font-size: 2.6rem;
    color: var(--lime);
    -webkit-text-stroke: 1.5px var(--green)
}

.step h3 {
    margin: 22px 0 8px;
    font-size: 1.3rem
}

.step p {
    color: var(--muted);
    font-size: .9rem
}

.arch {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 18px
}

.ab {
    padding: 18px 12px;
    border-radius: 20px;
    background: var(--card);
    border: 1px solid var(--line);
    text-align: center;
    font-size: .8rem;
    color: var(--muted)
}

.ab strong {
    display: block;
    color: var(--ink);
    font-size: .95rem
}

.band {
    margin-top: 22px;
    padding: 42px 30px;
    border-radius: 30px;
    text-align: center;
    background: linear-gradient(135deg, #ffe3a3, #ffc9bd);
    color: #3b302c
}

.band h3 {
    font-size: 1.9rem;
    margin-bottom: 10px
}

.band p {
    max-width: 640px;
    margin: auto
}

[data-theme=dark] .band {
    background: linear-gradient(135deg, #3d4a2c, #4d3a2a);
    color: #f1eadb
}

.team {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px
}

.team.one {
    grid-template-columns: minmax(0, 640px);
    justify-content: center
}

.person {
    padding: 34px;
    text-align: center
}

.av {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    font: 700 2rem 'Fredoka';
    color: #fff
}

.t1 .av {
    background: var(--orange)
}

.person h3 {
    font-size: 1.7rem
}

.person p {
    color: var(--muted);
    margin: 12px 0 16px
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center
}

.chips span {
    background: var(--chip);
    border-radius: 99px;
    padding: 5px 14px;
    font-size: .8rem;
    font-weight: 800
}

.eq {
    margin-top: 20px;
    padding: 22px;
    text-align: center;
    border: 2px dashed var(--green);
    border-radius: 22px;
    color: var(--green);
    font-weight: 800
}

footer {
    padding: 36px 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .9rem
}

.ft {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap
}

.ft a:hover {
    color: var(--orange)
}

.rv {
    opacity: 0;
    transform: translateY(18px);
    transition: .7s
}

.rv.show {
    opacity: 1;
    transform: none
}

.fl {
    animation: fl 5s ease-in-out infinite
}

@keyframes fl {
    50% {
        transform: translateY(-7px)
    }
}

/* ---------- blog ---------- */
.pagehead {
    padding: 64px 0 28px
}

.pagehead h1 {
    font-size: clamp(2.6rem, 7vw, 5rem);
    margin: 10px 0 10px
}

.pagehead p {
    color: var(--muted);
    max-width: 620px;
    font-size: 1.08rem
}

.search {
    display: flex;
    gap: 10px;
    margin: 22px 0 4px;
    max-width: 460px
}

.search input {
    flex: 1;
    padding: 12px 18px;
    border-radius: 99px;
    border: 1.5px solid var(--line);
    background: var(--card);
    outline: none
}

.search input:focus,
.fld:focus {
    border-color: var(--orange)
}

.posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px 0 70px
}

.post {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: .2s
}

.post:hover {
    transform: translateY(-6px);
    box-shadow: var(--sh)
}

.thumb {
    position: relative;
    aspect-ratio: 16/10;
    background: var(--chip);
    overflow: hidden;
    display: block
}

.thumb img,
.thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.thumb.empty {
    display: grid;
    place-items: center;
    font-size: 2.6rem;
    background: linear-gradient(135deg, var(--chip), var(--lime))
}

[data-theme=dark] .thumb.empty {
    background: linear-gradient(135deg, var(--chip), #2c4a3a)
}

.badge {
    position: absolute;
    right: 10px;
    top: 10px;
    background: rgba(0, 0, 0, .6);
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 99px
}

.pbody {
    padding: 20px 22px 8px;
    flex: 1
}

.date {
    font: 700 .72rem monospace;
    letter-spacing: .1em;
    color: var(--orange);
    text-transform: uppercase
}

.pbody h3 {
    font-size: 1.4rem;
    margin: 8px 0 8px
}

.pbody p {
    color: var(--muted);
    font-size: .93rem
}

.pfoot {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px 18px;
    flex-wrap: wrap
}

.act {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 99px;
    border: 1.5px solid var(--line);
    background: transparent;
    cursor: pointer;
    font-weight: 800;
    font-size: .85rem;
    transition: .15s
}

.act:hover {
    border-color: var(--orange);
    color: var(--orange)
}

.act svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round
}

.act.liked {
    color: var(--red);
    border-color: var(--red)
}

.act.liked svg {
    fill: currentColor
}

.act.pop svg {
    animation: pop .35s
}

@keyframes pop {
    50% {
        transform: scale(1.5)
    }
}

.pfoot .more {
    margin-left: auto;
    font-weight: 800;
    font-size: .85rem;
    color: var(--green)
}

.pfoot .more:hover {
    color: var(--orange)
}

.empty-state {
    grid-column: 1/-1;
    text-align: center;
    padding: 60px 20px;
    color: var(--muted)
}

.empty-state b {
    display: block;
    font: 600 1.6rem 'Fredoka';
    color: var(--ink);
    margin-bottom: 6px
}

.loadmore {
    text-align: center;
    padding: 0 0 80px
}

/* ---------- single post ---------- */
.article {
    padding: 46px 0 80px
}

.back {
    font-weight: 800;
    font-size: .9rem;
    color: var(--green)
}

.back:hover {
    color: var(--orange)
}

.article h1 {
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    margin: 14px 0 12px;
    line-height: 1.02;
    letter-spacing: -.03em
}

.meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: .85rem;
    font-weight: 700
}

.prose {
    font-size: 1.1rem;
    margin: 28px 0
}

.prose p {
    margin-bottom: 1.1em;
    white-space: pre-wrap
}

.prose a {
    color: var(--orange);
    text-decoration: underline
}

.gallery {
    display: grid;
    gap: 16px;
    margin: 26px 0
}

.gallery.g2,
.gallery.g3,
.gallery.g4 {
    grid-template-columns: 1fr 1fr
}

.gallery .m {
    border-radius: 20px;
    overflow: hidden;
    background: var(--chip);
    border: 1px solid var(--line)
}

.gallery img {
    width: 100%;
    cursor: zoom-in;
    object-fit: cover
}

.gallery video {
    width: 100%;
    background: #000
}

.gallery .m.full {
    grid-column: 1/-1
}

.actions-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    padding: 18px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line)
}

.actions-bar .act {
    padding: 10px 20px;
    font-size: .95rem
}

.owner {
    margin-left: auto;
    display: flex;
    gap: 8px
}

.lb {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0, 0, 0, .88);
    display: none;
    place-items: center;
    padding: 20px;
    cursor: zoom-out
}

.lb.open {
    display: grid
}

.lb img {
    max-height: 92vh;
    max-width: 96vw;
    border-radius: 12px
}

/* ---------- share dialog + toast ---------- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(10, 16, 13, .55);
    display: none;
    place-items: center;
    padding: 18px
}

.modal.open {
    display: grid
}

.mbox {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 26px;
    padding: 28px;
    width: min(420px, 100%);
    box-shadow: var(--sh)
}

.mbox h3 {
    font-size: 1.5rem;
    margin-bottom: 6px
}

.mbox p.s {
    color: var(--muted);
    font-size: .9rem;
    margin-bottom: 16px
}

.sgrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px
}

.sgrid a,
.sgrid button {
    padding: 12px;
    border-radius: 16px;
    border: 1.5px solid var(--line);
    background: var(--chip);
    font-weight: 800;
    font-size: .9rem;
    cursor: pointer;
    text-align: center
}

.sgrid a:hover,
.sgrid button:hover {
    border-color: var(--orange);
    color: var(--orange)
}

.linkrow {
    display: flex;
    gap: 8px;
    margin-top: 14px
}

.linkrow input {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1.5px solid var(--line);
    background: var(--bg);
    font-size: .82rem
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 26px;
    transform: translate(-50%, 30px);
    background: var(--ink);
    color: var(--bg);
    padding: 11px 22px;
    border-radius: 99px;
    font-weight: 800;
    font-size: .9rem;
    opacity: 0;
    pointer-events: none;
    transition: .3s;
    z-index: 120
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0)
}

/* ---------- admin ---------- */
.login {
    max-width: 420px;
    margin: 70px auto;
    padding: 34px;
    text-align: center
}

.login h2 {
    font-size: 2.2rem;
    margin: 6px 0 8px
}

.login p {
    color: var(--muted);
    margin-bottom: 18px;
    font-size: .95rem
}

.fld {
    width: 100%;
    padding: 13px 18px;
    border-radius: 16px;
    border: 1.5px solid var(--line);
    background: var(--bg);
    outline: none;
    margin-bottom: 12px
}

textarea.fld {
    min-height: 190px;
    resize: vertical;
    line-height: 1.6
}

.err {
    color: var(--red);
    font-weight: 800;
    font-size: .9rem;
    min-height: 1.4em;
    margin-bottom: 6px
}

.dash {
    padding: 40px 0 80px
}

.dtop {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: end;
    flex-wrap: wrap;
    margin-bottom: 24px
}

.dtop h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    margin: 6px 0 0
}

.kpis {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-bottom: 22px
}

.kpi {
    padding: 18px 20px
}

.kpi b {
    font: 600 2rem 'Fredoka';
    display: block;
    color: var(--green);
    line-height: 1
}

.kpi span {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted);
    font-weight: 800
}

.dgrid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 20px;
    align-items: start
}

.editor {
    padding: 28px
}

.editor h3 {
    font-size: 1.6rem;
    margin-bottom: 16px
}

.drop {
    border: 2px dashed var(--green);
    border-radius: 20px;
    padding: 26px;
    text-align: center;
    color: var(--green);
    font-weight: 800;
    cursor: pointer;
    margin-bottom: 12px;
    transition: .15s
}

.drop:hover,
.drop.over {
    background: var(--chip);
    border-color: var(--orange);
    color: var(--orange)
}

.drop small {
    display: block;
    font-weight: 600;
    color: var(--muted);
    margin-top: 4px
}

.prev {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 10px;
    margin-bottom: 14px
}

.pv {
    position: relative;
    aspect-ratio: 1;
    border-radius: 14px;
    overflow: hidden;
    background: var(--chip);
    border: 1px solid var(--line)
}

.pv img,
.pv video {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.pv button {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 0;
    background: rgba(0, 0, 0, .7);
    color: #fff;
    cursor: pointer;
    font-weight: 800;
    line-height: 1
}

.pv.gone {
    opacity: .3
}

.pv .vt {
    position: absolute;
    left: 6px;
    bottom: 5px;
    background: rgba(0, 0, 0, .65);
    color: #fff;
    font-size: .65rem;
    font-weight: 800;
    padding: 1px 7px;
    border-radius: 99px
}

.bar {
    height: 10px;
    border-radius: 99px;
    background: var(--chip);
    overflow: hidden;
    margin: 6px 0 12px;
    display: none
}

.bar i {
    display: block;
    height: 100%;
    width: 0;
    background: var(--orange);
    transition: width .2s
}

.erow {
    display: flex;
    gap: 10px;
    flex-wrap: wrap
}

.plist {
    padding: 22px
}

.plist h3 {
    font-size: 1.4rem;
    margin-bottom: 12px
}

.pi {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid var(--line)
}

.pi:first-of-type {
    border-top: 0
}

.pi .th {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: var(--chip);
    overflow: hidden;
    flex: none;
    display: grid;
    place-items: center
}

.pi .th img,
.pi .th video {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.pi .tx {
    flex: 1;
    min-width: 0
}

.pi .tx b {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.pi .tx small {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 700
}

.pi .bt {
    display: flex;
    gap: 6px
}

@media(prefers-reduced-motion:reduce) {
    .fl {
        animation: none
    }

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

@media(max-width:900px) {
    .links {
        position: absolute;
        top: 66px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--card);
        border-bottom: 1px solid var(--line);
        display: none
    }

    .links.open {
        display: flex
    }

    .links a {
        padding: 14px 22px;
        border-top: 1px solid var(--line)
    }

    #mb {
        display: grid
    }

    .hero,
    .sh,
    .two,
    .team,
    .dgrid {
        grid-template-columns: 1fr
    }

    .hero {
        min-height: 0;
        padding-top: 44px;
        gap: 34px
    }

    .sh {
        gap: 14px
    }

    .grid,
    .posts {
        grid-template-columns: 1fr 1fr
    }

    .steps {
        grid-template-columns: 1fr 1fr
    }

    .step:nth-child(2) {
        border-right: 0
    }

    .step:nth-child(-n+2) {
        border-bottom: 1px solid var(--line)
    }

    .arch {
        grid-template-columns: 1fr 1fr
    }

    section {
        padding: 70px 0
    }

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

@media(max-width:560px) {

    .grid,
    .steps,
    .arch,
    .posts {
        grid-template-columns: 1fr
    }

    .step {
        border-right: 0;
        border-bottom: 1px solid var(--line)
    }

    .step:last-child {
        border: 0
    }

    .wrap,
    .narrow {
        width: calc(100% - 28px)
    }

    .big,
    .q,
    .person {
        padding: 26px
    }

    .bpf {
        flex-direction: column;
        gap: 2px
    }

    .acts .btn {
        flex: 1;
        text-align: center
    }

    .kpis {
        grid-template-columns: 1fr 1fr
    }

    .gallery.g2,
    .gallery.g3,
    .gallery.g4 {
        grid-template-columns: 1fr
    }

    .owner {
        margin-left: 0
    }
}

/* ---------- separate project pages: restrained editorial style ---------- */
:root {
    --paper: #f4f1eb;
    --ink-soft: #4e514f
}

[data-theme=light] {
    --bg: #f5f2ec;
    --bg2: #efebe4;
    --card: #fffdf9;
    --ink: #242a29;
    --muted: #686d69;
    --green: #456a58;
    --lime: #d8e0d6;
    --orange: #b87955;
    --line: rgba(36, 42, 41, .14);
    --chip: #e9e4db;
    --nav: rgba(245, 242, 236, .96);
    --sh: 0 10px 28px rgba(43, 40, 33, .08)
}

[data-theme=dark] {
    --bg: #191b1b;
    --bg2: #171919;
    --card: #222625;
    --ink: #eeeae2;
    --muted: #b4b7b1;
    --green: #9db5a4;
    --lime: #34483c;
    --orange: #d19a79;
    --line: rgba(238, 234, 226, .14);
    --chip: #2a302d;
    --nav: rgba(25, 27, 27, .96);
    --sh: 0 12px 30px rgba(0, 0, 0, .24)
}

body {
    background: var(--bg);
    font-family: 'DM Sans', 'Nunito', sans-serif
}

h1,
h2,
h3 {
    font-family: 'DM Sans', 'Nunito', sans-serif;
    letter-spacing: -.035em
}

nav {
    backdrop-filter: none
}

.links {
    gap: 22px
}

.navicon {
    width: 15px;
    height: 15px;
    vertical-align: middle;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    margin-right: 4px
}

.inline-icon {
    width: 17px;
    height: 17px;
    vertical-align: middle;
    margin-left: 7px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round
}

.home-hero {
    padding: 66px 0 70px;
    background: var(--bg)
}

.home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 54px;
    align-items: center
}

.eyebrow,
.builder-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--green)
}

.eyebrow-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--orange);
    border-radius: 50%
}

.home-title {
    font-size: clamp(3.5rem, 7vw, 6.4rem);
    line-height: .94;
    margin: 22px 0 24px;
    letter-spacing: -.075em
}

.home-title span {
    color: var(--orange)
}

.home-lede {
    max-width: 530px;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.8
}

.home-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px
}

.home-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 38px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: .78rem;
    color: var(--muted)
}

.home-meta strong {
    color: var(--orange);
    margin-right: 6px
}

.home-art {
    background: #e7e2d8;
    color: #3e5047;
    padding: 20px 22px 14px;
    border: 1px solid #d3ccc0
}

.home-art svg {
    width: 100%;
    max-height: 430px
}

.art-top,
.art-bottom {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font: 700 .65rem monospace;
    letter-spacing: .08em
}

.art-top {
    border-bottom: 1px solid rgba(62, 80, 71, .18);
    padding-bottom: 10px
}

.art-bottom {
    border-top: 1px solid rgba(62, 80, 71, .18);
    padding-top: 10px
}

.home-links {
    padding: 64px 0 92px;
    border-top: 1px solid var(--line)
}

.section-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: end;
    margin-bottom: 30px
}

.section-intro h2 {
    font-size: clamp(2rem, 4vw, 3.3rem)
}

.section-intro p {
    color: var(--muted);
    max-width: 520px
}

.destination-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px
}

.destination {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 265px;
    background: var(--card);
    border: 1px solid var(--line);
    padding: 22px;
    transition: transform .18s, border-color .18s
}

.destination:hover {
    transform: translateY(-3px);
    border-color: var(--orange)
}

.dest-number {
    font: 700 .72rem monospace;
    color: var(--muted)
}

.dest-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    margin: 24px 0 18px;
    color: var(--green)
}

.dest-icon svg,
.milestone-icon svg,
.engineering-note svg,
.award-line svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round
}

.destination h3 {
    font-size: 1.2rem;
    margin-bottom: 8px
}

.destination p {
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.65
}

.dest-link {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 18px;
    font-weight: 700;
    font-size: .84rem
}

.dest-link b {
    color: var(--orange)
}

.page-banner {
    padding: 74px 0 48px;
    border-bottom: 1px solid var(--line)
}

.page-banner h1 {
    font-size: clamp(3rem, 7vw, 5.8rem);
    line-height: 1;
    margin: 16px 0
}

.page-banner p {
    max-width: 720px;
    color: var(--muted);
    font-size: 1.12rem;
    line-height: 1.8
}

.content-section {
    padding: 58px 0 88px
}

.about-layout {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 64px;
    align-items: start;
    padding: 10px 0 64px
}

.about-layout h2,
.engineering-copy h2,
.builder-bio h2,
.work-text h2 {
    font-size: clamp(2.3rem, 4vw, 3.8rem);
    line-height: 1.05;
    margin-top: 12px
}

.copy-block {
    color: var(--muted);
    line-height: 1.9
}

.copy-block p+p {
    margin-top: 16px
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line)
}

.feature-card {
    padding: 26px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    min-height: 190px
}

.feature-index {
    font: 700 .72rem monospace;
    color: var(--orange)
}

.feature-card h3 {
    font-size: 1.22rem;
    margin: 20px 0 8px
}

.feature-card p {
    font-size: .93rem;
    color: var(--muted);
    line-height: 1.7
}

.page-cta {
    margin-top: 44px;
    background: var(--chip);
    padding: 28px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px
}

.page-cta h3 {
    font-size: 1.35rem;
    margin-bottom: 5px
}

.page-cta p {
    color: var(--muted);
    font-size: .92rem
}

.page-cta .btn {
    flex-shrink: 0
}

.engineering-lead {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 54px;
    align-items: center;
    margin-bottom: 52px
}

.engineering-drawing {
    padding: 20px;
    background: var(--chip);
    color: var(--green);
    border: 1px solid var(--line)
}

.engineering-drawing svg {
    width: 100%
}

.engineering-copy p {
    color: var(--muted);
    line-height: 1.85;
    margin-top: 18px
}

.engineering-steps {
    border-top: 1px solid var(--line)
}

.engineering-steps article {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 20px;
    padding: 25px 8px;
    border-bottom: 1px solid var(--line)
}

.engineering-steps article>span {
    font: 700 .8rem monospace;
    color: var(--orange);
    padding-top: 5px
}

.engineering-steps h3 {
    font-size: 1.25rem;
    margin-bottom: 6px
}

.engineering-steps p {
    max-width: 780px;
    color: var(--muted);
    line-height: 1.8
}

.engineering-note {
    display: flex;
    gap: 16px;
    padding: 22px;
    background: var(--chip);
    margin-top: 28px
}

.engineering-note>svg {
    flex-shrink: 0;
    color: var(--orange)
}

.engineering-note p {
    font-size: .93rem;
    color: var(--muted);
    margin-top: 4px
}

.builder-hero {
    position: relative;
    min-height: 470px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #171a19;
    color: #f5f1e9
}

.builder-backdrop {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(12, 15, 14, .88) 0%, rgba(12, 15, 14, .67) 55%, rgba(12, 15, 14, .55) 100%), linear-gradient(0deg, rgba(12, 15, 14, .55), transparent 55%), url('/images-award-stage.jpg');
    background-size: cover;
    background-position: center 45%;
    filter: saturate(.75)
}

.builder-hero-inner {
    position: relative;
    z-index: 1;
    padding: 80px 0 92px
}

.builder-label {
    color: #e5b18e
}

.builder-hero h1 {
    font-size: clamp(2.9rem, 7vw, 5.5rem);
    line-height: 1.02;
    margin: 24px 0
}

.builder-hero h1 span {
    color: #e2b18e
}

.builder-hero p {
    max-width: 600px;
    color: #e0ded8;
    font-size: 1.08rem;
    line-height: 1.8;
    margin-bottom: 26px
}

.builder-hero .btn {
    box-shadow: none
}

.builder-photo-caption {
    position: absolute;
    z-index: 2;
    right: max(18px, calc((100vw - 1150px)/2));
    bottom: 20px;
    font: 700 .65rem monospace;
    letter-spacing: .1em;
    color: rgba(255, 255, 255, .75)
}

.builder-profile {
    display: grid;
    grid-template-columns: .72fr 1.28fr;
    gap: 54px;
    align-items: start;
    margin-bottom: 68px
}

.portrait-wrap {
    position: relative;
    background: var(--chip);
    padding: 12px;
    border: 1px solid var(--line)
}

.portrait-wrap img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    object-position: center 25%
}

.portrait-caption {
    font: 700 .68rem monospace;
    letter-spacing: .1em;
    padding: 12px 2px 2px;
    color: var(--muted)
}

.builder-bio p {
    color: var(--muted);
    line-height: 1.9;
    margin-top: 16px
}

.interest-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 24px
}

.interest-list span {
    border: 1px solid var(--line);
    padding: 7px 12px;
    font-size: .8rem;
    font-weight: 700
}

.work-feature {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    background: var(--card);
    border: 1px solid var(--line);
    margin-bottom: 36px
}

.work-text {
    padding: 34px
}

.work-text p {
    color: var(--muted);
    line-height: 1.85;
    margin-top: 16px
}

.award-line {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid var(--line);
    margin-top: 24px;
    padding-top: 18px;
    color: var(--orange)
}

.award-line span {
    display: flex;
    flex-direction: column
}

.award-line small {
    color: var(--muted);
    font-size: .78rem
}

.work-side {
    padding: 26px;
    background: var(--chip)
}

.work-side-top {
    display: flex;
    justify-content: space-between;
    font: 700 .68rem monospace;
    letter-spacing: .08em;
    border-bottom: 1px solid var(--line);
    padding-bottom: 14px
}

.note-row {
    display: flex;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line)
}

.note-row:last-child {
    border-bottom: 0
}

.note-row>span {
    font: 700 .72rem monospace;
    color: var(--orange)
}

.note-row strong,
.note-row small {
    display: block
}

.note-row small {
    color: var(--muted);
    font-size: .82rem;
    margin-top: 4px
}

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

.milestone-grid article {
    padding: 24px;
    border: 1px solid var(--line)
}

.milestone-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: var(--chip);
    margin-bottom: 22px
}

.milestone-grid .k {
    margin-bottom: 8px
}

.milestone-grid h3 {
    font-size: 1.2rem;
    margin-bottom: 8px
}

.milestone-grid p {
    font-size: .91rem;
    color: var(--muted);
    line-height: 1.7
}

.builder-end {
    margin-top: 48px;
    border-top: 1px solid var(--line);
    padding-top: 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap
}

.builder-end p {
    color: var(--muted)
}

.text-link {
    font-weight: 700
}

.text-link span {
    color: var(--orange);
    margin-left: 8px
}

@media(max-width:900px) {

    .home-grid,
    .section-intro,
    .about-layout,
    .engineering-lead,
    .builder-profile {
        grid-template-columns: 1fr
    }

    .destination-grid {
        grid-template-columns: 1fr 1fr
    }

    .feature-grid {
        grid-template-columns: 1fr 1fr
    }

    .builder-profile {
        gap: 28px
    }

    .portrait-wrap {
        max-width: 420px
    }

    .work-feature {
        grid-template-columns: 1fr
    }

    .milestone-grid {
        grid-template-columns: 1fr 1fr
    }

    .home-grid {
        gap: 32px
    }

    .about-layout {
        gap: 20px
    }
}

@media(max-width:560px) {
    .home-hero {
        padding: 42px 0
    }

    .home-title {
        font-size: 3.4rem
    }

    .home-meta {
        gap: 12px
    }

    .home-art {
        padding: 14px
    }

    .destination-grid,
    .feature-grid,
    .milestone-grid {
        grid-template-columns: 1fr
    }

    .destination {
        min-height: 220px
    }

    .page-banner {
        padding: 48px 0 34px
    }

    .page-banner h1 {
        font-size: 3rem
    }

    .content-section {
        padding: 38px 0 60px
    }

    .page-cta {
        align-items: flex-start;
        flex-direction: column;
        padding: 24px
    }

    .builder-hero {
        min-height: 440px
    }

    .builder-hero-inner {
        padding: 62px 0
    }

    .builder-hero h1 {
        font-size: 2.8rem
    }

    .builder-photo-caption {
        left: 14px;
        right: auto;
        font-size: .58rem
    }

    .work-text {
        padding: 24px
    }

    .engineering-steps article {
        grid-template-columns: 38px 1fr;
        gap: 12px
    }

    .links {
        gap: 0
    }
}


/* Final responsive refinements: circular builder portrait, award photo crop, mobile admin */
.portrait-wrap {
    background: transparent;
    border: 0;
    padding: 0;
    max-width: 340px;
    margin-inline: auto;
    text-align: center
}

.portrait-wrap img {
    width: min(100%, 300px);
    aspect-ratio: 1/1;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 24%;
    border: 6px solid var(--card);
    outline: 1px solid var(--line);
    box-shadow: 0 12px 34px rgba(0, 0, 0, .12)
}

.portrait-caption {
    font-size: .65rem;
    line-height: 1.5;
    letter-spacing: .08em
}

@media(max-width:560px) {
    .builder-backdrop {
        background-image: linear-gradient(90deg, rgba(12, 15, 14, .76), rgba(12, 15, 14, .42)), linear-gradient(0deg, rgba(12, 15, 14, .52), transparent 70%), url('/images-award-stage.jpg');
        background-position: center, center, 78% center;
        background-size: cover, cover, auto 100%;
        background-repeat: no-repeat
    }

    .builder-hero {
        min-height: 500px
    }

    .builder-hero-inner {
        padding: 62px 0 72px
    }

    .portrait-wrap {
        max-width: 280px
    }

    .portrait-wrap img {
        width: min(78vw, 260px)
    }

    .builder-profile {
        gap: 30px
    }
}

/* Dashboard layouts stay usable on narrow screens and tablets. */
.dash {
    min-width: 0
}

.dtop {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap
}

.dgrid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 18px;
    align-items: start
}

.editor,
.plist {
    min-width: 0
}

.fld {
    max-width: 100%;
    min-width: 0
}

.erow {
    align-items: center
}

.pv {
    min-width: 0
}

.pi {
    min-width: 0
}

.pi .bt {
    flex-wrap: wrap
}

.drop {
    max-width: 100%;
    overflow-wrap: anywhere
}

@media(max-width:900px) {
    .dgrid {
        grid-template-columns: minmax(0, 1fr)
    }

    .dtop {
        align-items: flex-start
    }

    .editor,
    .plist {
        width: 100%
    }
}

@media(max-width:560px) {
    .dtop {
        flex-direction: column;
        align-items: stretch
    }

    .dtop .erow {
        width: 100%
    }

    .dtop .erow .btn {
        flex: 1;
        text-align: center
    }

    .editor,
    .plist {
        padding: 18px
    }

    .fld {
        font-size: 16px
    }

    .drop {
        padding: 22px 12px
    }

    .prev {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .pi {
        align-items: flex-start;
        flex-wrap: wrap
    }

    .pi .tx {
        min-width: calc(100% - 75px)
    }

    .pi .bt {
        width: 100%;
        padding-left: 68px
    }

    .pi .bt .btn {
        flex: 1
    }

    .kpis {
        gap: 8px
    }

    .kpis>* {
        min-width: 0
    }

    .bar {
        width: 100%
    }
}


/* Welcome experience, gated featured posts, and rounded professional admin tools */
.welcome-hero {
    padding: clamp(48px, 7vw, 96px) 0 58px;
    overflow: hidden
}

.welcome-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
    gap: clamp(32px, 6vw, 84px);
    align-items: center
}

.welcome-kicker {
    font-size: .76rem;
    letter-spacing: .24em;
    font-weight: 800;
    color: var(--muted);
    margin: 28px 0 6px
}

.welcome-copy .home-title {
    margin-top: 0
}

.welcome-note {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 30px;
    color: var(--muted)
}

.note-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--orange);
    font-weight: 900
}

.welcome-note b,
.welcome-note small {
    display: block
}

.welcome-note b {
    color: var(--ink);
    font-size: .9rem
}

.welcome-note small {
    font-size: .8rem;
    margin-top: 2px
}

.locked-preview {
    padding: 56px 0 70px;
    background: var(--chip)
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px
}

.featured-post {
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: transform .2s, box-shadow .2s;
    border-radius: 20px
}

.featured-post:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(40, 45, 35, .12)
}

.feature-thumb {
    height: 190px;
    position: relative;
    overflow: hidden;
    background: var(--chip)
}

.feature-thumb>img,
.feature-thumb>video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.feature-art {
    height: 100%;
    display: grid;
    place-items: center;
    font-size: 3rem;
    font-weight: 900;
    color: var(--muted);
    background: linear-gradient(135deg, var(--card), var(--chip));
    position: relative
}

.feature-art span {
    position: absolute;
    color: var(--orange);
    font-size: 2rem;
    transform: translate(32px, -28px)
}

.lock-chip {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 999px;
    padding: 7px 10px;
    background: rgba(20, 25, 22, .78);
    color: white;
    font-size: .73rem;
    font-weight: 800;
    backdrop-filter: blur(8px)
}

.lock-chip svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8
}

.feature-copy {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1
}

.feature-copy h3 {
    margin: 8px 0;
    font-size: 1.12rem;
    line-height: 1.35
}

.feature-copy p {
    font-size: .91rem;
    color: var(--muted);
    line-height: 1.65;
    margin: 0 0 20px
}

.feature-read {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    color: var(--orange);
    font-weight: 800;
    font-size: .88rem
}

.locked-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 24px
}

.locked-cta>span {
    color: var(--muted);
    font-weight: 700
}

.featured-placeholder {
    padding: 18px;
    border-radius: 20px
}

.skeleton {
    display: block;
    height: 150px;
    border-radius: 14px;
    background: var(--chip);
    margin-bottom: 16px;
    animation: pulse 1.6s ease-in-out infinite
}

.skeleton.short {
    height: 18px;
    width: 78%
}

.skeleton.tiny {
    height: 12px;
    width: 48%
}

@keyframes pulse {
    50% {
        opacity: .55
    }
}

.empty-feature {
    grid-column: 1/-1;
    padding: 28px;
    border-radius: 20px
}

.gated-page {
    padding: 70px 0;
    min-height: 50vh
}

.gated-card {
    max-width: 680px;
    margin: auto;
    padding: clamp(26px, 5vw, 52px);
    border-radius: 24px
}

.profile-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 14px
}

.profile-fields label,
.settings-grid label {
    display: block;
    font-size: .86rem;
    font-weight: 800;
    color: var(--ink)
}

.profile-fields[hidden] {
    display: none
}

.site-manager {
    margin-top: 28px;
    padding: clamp(22px, 4vw, 38px);
    border-radius: 24px
}

.site-manager>p {
    color: var(--muted);
    max-width: 780px
}

.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 18px;
    margin-top: 24px
}

.settings-grid .fld {
    margin-top: 8px
}

.settings-actions {
    grid-column: 1/-1;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap
}

.asset-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 32px;
    padding-top: 26px;
    border-top: 1px solid var(--line)
}

.asset-grid h3 {
    font-size: 1rem
}

.asset-current {
    display: block;
    width: 100%;
    max-width: 300px;
    height: 180px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid var(--line);
    margin: 12px 0
}

.asset-current:not(.stage-preview) {
    width: 180px;
    height: 180px;
    border-radius: 50%
}

.admin-note {
    font-size: .84rem;
    color: var(--muted);
    padding-top: 18px;
    border-top: 1px solid var(--line);
    margin-top: 26px
}

.site-manager .fld,
.profile-fields .fld {
    border-radius: 12px
}

.featured-post,
.destination,
.panel,
.fld,
.drop,
.pi,
.asset-current {
    border-radius: 18px
}

.home-art {
    border-radius: 24px
}

.home-links {
    padding-bottom: 70px
}

@media(max-width:850px) {
    .welcome-grid {
        grid-template-columns: 1fr
    }

    .home-art {
        max-width: 620px;
        width: 100%;
        margin: 0 auto
    }

    .featured-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .featured-post:last-child {
        display: none
    }
}

@media(max-width:580px) {
    .welcome-hero {
        padding-top: 38px
    }

    .featured-grid {
        grid-template-columns: 1fr
    }

    .featured-post:last-child {
        display: flex
    }

    .feature-thumb {
        height: 205px
    }

    .locked-cta {
        align-items: flex-start;
        flex-direction: column
    }

    .profile-fields,
    .settings-grid,
    .asset-grid {
        grid-template-columns: 1fr
    }

    .settings-actions {
        grid-column: auto
    }

    .asset-current {
        max-width: 100%
    }

    .asset-current:not(.stage-preview) {
        width: 160px;
        height: 160px
    }
}

.comment-manager {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--line)
}

.comment-manager>p {
    color: var(--muted)
}

.admin-comment {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    padding: 15px 0;
    border-bottom: 1px solid var(--line)
}

.admin-comment p {
    margin: 6px 0 0;
    color: var(--muted);
    white-space: pre-wrap;
    overflow-wrap: anywhere
}

.admin-comment small {
    color: var(--muted)
}

@media(max-width:580px) {
    .admin-comment {
        flex-direction: column
    }
}

/* Morphex 2026 refresh: consistent corners, member areas and intro sequence */
:root {
    scroll-behavior: smooth
}

.panel,
.destination,
.auth-panel,
.auth-form .fld,
.auth-google,
.btn,
.quiz-card,
.dashboard-card,
.paper-card {
    border-radius: 16px !important
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.4fr 1fr;
    gap: 28px;
    padding: 34px 0 24px
}

.footer-main>div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px
}

.footer-main strong {
    margin-bottom: 5px
}

.footer-main p,
.footer-main span,
.ft-bottom {
    color: var(--muted);
    font-size: .9rem
}

.ft-bottom {
    border-top: 1px solid var(--line);
    padding: 16px 0 24px;
    display: flex;
    justify-content: space-between;
    gap: 12px
}

.footer-main a,
.ft-bottom a {
    color: inherit
}

.intro-screen {
    position: fixed;
    z-index: 10000;
    inset: 0;
    background: radial-gradient(ellipse at 75% 20%, rgba(184, 121, 85, .25), transparent 38%), #172c24;
    color: #f5f0e8;
    display: grid;
    place-items: center;
    padding: 24px;
    transition: opacity .65s, visibility .65s
}

.intro-screen.intro-done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none
}

.intro-inner {
    width: min(100%, 900px);
    text-align: left
}

.intro-overline {
    font: 700 .78rem monospace;
    letter-spacing: .18em;
    color: #d5a27e
}

.intro-inner h1 {
    font-size: clamp(2.2rem, 8vw, 6rem);
    line-height: .98;
    letter-spacing: -.055em;
    margin: 22px 0;
    min-height: 2em
}

.intro-inner h1:after {
    content: '▌';
    color: #d5a27e;
    animation: cursorBlink .8s steps(2, start) infinite
}

.intro-inner p {
    color: #c7d4cb;
    letter-spacing: .06em;
    margin-bottom: 28px
}

.intro-inner .btn {
    color: #f5f0e8;
    border-color: #d5a27e
}

.home-note {
    padding: clamp(24px, 5vw, 48px);
    margin: 10px auto 36px;
    max-width: 900px
}

.home-note h2 {
    font-size: clamp(1.7rem, 4vw, 2.7rem);
    margin: 10px 0
}

.home-note p {
    max-width: 780px
}

.muted {
    color: var(--muted)
}

.quiz-layout,
.dashboard-grid,
.papers-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px
}

.dashboard-card,
.quiz-card,
.paper-card {
    border: 1px solid var(--line);
    background: var(--card);
    padding: 22px;
    box-shadow: 0 10px 28px rgba(20, 30, 25, .05)
}

.dashboard-card h2,
.quiz-card h2,
.paper-card h2 {
    margin-top: 0
}

.metric {
    font-size: 2rem;
    font-weight: 900;
    color: var(--green)
}

.quiz-option {
    display: flex;
    gap: 12px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 12px;
    margin: 10px 0;
    cursor: pointer
}

.quiz-option:has(input:checked) {
    border-color: var(--green);
    background: var(--chip)
}

.quiz-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap
}

.quiz-timer {
    font-size: 1.2rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums
}

.page-narrow {
    max-width: 900px;
    margin: 0 auto
}

.field-stack {
    display: grid;
    gap: 12px
}

.field-stack input,
.field-stack textarea,
.field-stack select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--card);
    color: var(--ink)
}

.status-line {
    min-height: 24px;
    color: var(--muted)
}

@keyframes cursorBlink {
    to {
        visibility: hidden
    }
}

@media(max-width:800px) {
    .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .quiz-layout,
    .dashboard-grid,
    .papers-grid {
        grid-template-columns: 1fr 1fr
    }
}

@media(max-width:520px) {

    .footer-main,
    .quiz-layout,
    .dashboard-grid,
    .papers-grid {
        grid-template-columns: 1fr
    }

    .ft-bottom {
        flex-direction: column
    }
}

/* Refinement pass: quieter type scale, compact lists, editorial alignment */
html {
    font-size: 15px
}

body {
    font-size: .94rem;
    line-height: 1.65
}

h1 {
    font-size: clamp(1.85rem, 4.2vw, 3rem) !important;
    line-height: 1.08
}

h2 {
    font-size: clamp(1.25rem, 2.5vw, 1.8rem) !important;
    line-height: 1.2
}

h3 {
    font-size: 1.05rem !important;
    line-height: 1.3
}

p,
li {
    font-size: .92rem
}

.home-title {
    font-size: clamp(2.5rem, 5.5vw, 4.5rem) !important
}

.intro-inner h1 {
    font-size: clamp(2rem, 6vw, 4.6rem) !important
}

.section-intro h2 {
    font-size: clamp(1.45rem, 3vw, 2.35rem) !important
}

.k,
.eyebrow,
.builder-label,
.intro-overline {
    font-size: .68rem
}

.destination {
    min-height: 225px;
    padding: 18px
}

.destination h3 {
    font-size: 1.04rem !important
}

.destination p {
    font-size: .86rem
}

.panel,
.destination,
.auth-panel,
.auth-form .fld,
.auth-google,
.btn,
.quiz-card,
.dashboard-card,
.paper-card {
    border-radius: 13px !important
}

.page-banner {
    padding: 32px 0 26px
}

.page-banner h1 {
    margin: .35rem 0 .55rem
}

.content-section {
    padding: 30px 0 54px
}

.papers-grid {
    grid-template-columns: 1fr !important;
    gap: 10px
}

.paper-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 5px 16px;
    padding: 15px 17px
}

.paper-card .k,
.paper-card h2,
.paper-card p {
    grid-column: 1
}

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

.paper-actions {
    grid-column: 2;
    grid-row: 1/4;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap
}

.quiz-layout {
    grid-template-columns: 1fr !important;
    gap: 10px
}

.quiz-card {
    padding: 17px
}

.quiz-card h2 {
    font-size: 1.1rem !important
}

.quiz-timer {
    font-size: 1rem
}

.dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px
}

.metric {
    font-size: 1.55rem
}

.lb {
    cursor: default
}

.lb img {
    object-fit: contain
}

.lb-controls {
    position: absolute;
    inset: 50% 16px auto;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none
}

.lb-controls button {
    pointer-events: auto;
    border: 1px solid #ffffff88;
    background: #18241f;
    color: white;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    font-size: 1.35rem;
    cursor: pointer
}

.lb-close {
    position: absolute;
    right: 18px;
    top: 18px;
    border: 1px solid #ffffff88;
    background: #18241f;
    color: white;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
    cursor: pointer
}

@media(max-width:600px) {
    html {
        font-size: 14px
    }

    .dashboard-grid {
        grid-template-columns: 1fr
    }

    .paper-card {
        grid-template-columns: 1fr
    }

    .paper-actions {
        grid-column: 1;
        grid-row: auto;
        margin-top: 8px
    }

    .paper-actions .btn {
        flex: 1
    }
}

/* Welcome gate is a standalone entry screen, not part of the homepage content. */
.intro-screen {
    background: radial-gradient(ellipse at 72% 18%, rgba(184, 121, 85, .2), transparent 38%), #172c24
}

.intro-inner {
    text-align: center
}

.intro-welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px
}

.intro-logo-mark {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border: 1px solid #d5a27e;
    border-radius: 22px;
    color: #f4e9de;
    font-size: 2rem;
    font-weight: 800;
    background: rgba(255, 255, 255, .06);
    box-shadow: 0 10px 36px #0002
}

.intro-welcome-title {
    font-size: clamp(1.8rem, 5vw, 3.2rem) !important;
    line-height: 1.12 !important;
    margin: 12px 0 !important;
    letter-spacing: -.035em
}

.intro-welcome p:not(.intro-overline) {
    max-width: 460px;
    color: #d3ddd5;
    font-size: .96rem
}

.intro-welcome .btn {
    margin-top: 10px;
    min-width: 145px
}

.intro-animation h1 {
    font-size: clamp(2rem, 6vw, 4.6rem) !important
}

.intro-inner h1:after {
    display: none
}

.intro-animation h1:after {
    display: inline
}

.profile-fields .fld {
    margin-top: 6px
}

.auth-visual {
    box-shadow: 0 12px 30px rgba(20, 30, 25, .1)
}

.member-side,
.member-section,
.member-metric {
    border-radius: 12px !important
}

.member-section {
    box-shadow: 0 6px 22px rgba(20, 30, 25, .035)
}

/* Social-style multi-photo post cards */
.post-collage {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 3px;
    aspect-ratio: 1/1;
    position: relative;
    overflow: hidden;
    background: var(--chip);
    border-radius: 12px 12px 0 0;
    isolation: isolate
}

.post-collage.count-1 {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr
}

.post-collage.count-2 {
    grid-template-rows: 1fr
}

.post-collage.count-3 .collage-tile:first-child {
    grid-row: span 2
}

.collage-tile {
    position: relative;
    display: block;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: var(--chip)
}

.collage-tile img,
.collage-tile video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.tile-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    background: #0008;
    border-radius: 50%;
    padding: 7px 9px
}

.collage-more {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 5px 9px;
    border-radius: 8px;
    background: #111b;
    color: #fff;
    font-weight: 800
}


/* Responsive finishing: compact desktop type, tactile surfaces and the hand-drawn 3D intro scene. */
:root {
    --surface-shadow: 0 12px 28px rgba(13, 27, 20, .08);
    --surface-shadow-hover: 0 18px 38px rgba(13, 27, 20, .14)
}

body {
    font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: .93rem;
    line-height: 1.62;
    letter-spacing: 0
}

h1,
h2,
h3,
h4,
.brand {
    font-family: 'Nunito', system-ui, sans-serif;
    letter-spacing: -.025em
}

.wrap {
    width: min(1120px, calc(100% - 44px))
}

.page-banner {
    padding: 40px 0 32px
}

.page-banner h1 {
    font-size: clamp(1.85rem, 3vw, 2.8rem) !important
}

.btn {
    font-size: .88rem;
    padding: 10px 15px;
    box-shadow: 0 4px 10px rgba(16, 29, 22, .08);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 9px 19px rgba(16, 29, 22, .13)
}

.panel,
.destination,
.auth-panel,
.quiz-card,
.dashboard-card,
.paper-card {
    box-shadow: var(--surface-shadow);
    transition: box-shadow .18s ease, border-color .18s ease
}

.panel:hover,
.dashboard-card:hover {
    box-shadow: var(--surface-shadow-hover)
}

.post-collage,
.feature-thumb,
.home-art,
.builder-backdrop {
    box-shadow: 0 16px 34px rgba(9, 20, 14, .13)
}

.intro-screen {
    overflow: hidden;
    background: radial-gradient(ellipse at 18% 22%, rgba(77, 117, 93, .22), transparent 38%), radial-gradient(ellipse at 82% 78%, rgba(183, 121, 85, .19), transparent 35%), #14251e
}

.intro-inner {
    width: min(100%, 1000px)
}

.intro-welcome {
    text-align: center
}

.intro-animation {
    text-align: center;
    position: relative
}

.intro-animation h1 {
    font-size: clamp(1.55rem, 4.25vw, 3.5rem) !important;
    line-height: 1.04 !important;
    letter-spacing: -.045em !important;
    margin: 4px auto 12px;
    max-width: 760px;
    position: relative;
    z-index: 2
}

.intro-animation>p {
    font-size: .9rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #d0d9d1;
    position: relative;
    z-index: 2
}

.intro-3d-scene {
    width: min(470px, 78vw);
    height: 245px;
    position: relative;
    margin: 0 auto 2px;
    perspective: 750px;
    isolation: isolate
}

.intro-robot-wire {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 9px rgba(192, 215, 190, .18));
    animation: robotFloat 6s ease-in-out infinite;
    transform-style: preserve-3d
}

.intro-orbit {
    --orbit-x: 68deg;
    --orbit-y: 0deg;
    --orbit-z: -20deg;
    position: absolute;
    left: 50%;
    top: 49%;
    width: 210px;
    height: 90px;
    border: 1px solid rgba(205, 223, 205, .3);
    border-radius: 50%;
    transform: translate(-50%, -50%) rotateX(var(--orbit-x)) rotateY(var(--orbit-y)) rotateZ(var(--orbit-z));
    transform-style: preserve-3d;
    box-shadow: 0 0 18px rgba(172, 202, 179, .06);
    animation: orbitSpin 22s linear infinite
}

.orbit-b {
    --orbit-x: 70deg;
    --orbit-y: 52deg;
    --orbit-z: 28deg;
    width: 270px;
    height: 120px;
    transform: translate(-50%, -50%) rotateX(var(--orbit-x)) rotateY(var(--orbit-y)) rotateZ(var(--orbit-z));
    border-color: rgba(210, 158, 121, .29);
    animation-duration: 29s
}

.orbit-c {
    --orbit-x: 0deg;
    --orbit-y: 66deg;
    --orbit-z: -32deg;
    width: 335px;
    height: 150px;
    transform: translate(-50%, -50%) rotateX(var(--orbit-x)) rotateY(var(--orbit-y)) rotateZ(var(--orbit-z));
    border-style: dashed;
    border-color: rgba(205, 223, 205, .18);
    animation-duration: 37s;
    animation-direction: reverse
}

.scene-label {
    position: absolute;
    font: 10px/1.3 ui-monospace, SFMono-Regular, Consolas, monospace;
    letter-spacing: .16em;
    color: #b7cdbd
}

.scene-label-a {
    left: 0;
    top: 26%
}

.scene-label-b {
    right: 0;
    bottom: 18%
}

@keyframes robotFloat {

    0%,
    100% {
        transform: translateY(0) rotateY(-4deg)
    }

    50% {
        transform: translateY(-8px) rotateY(4deg)
    }
}

@keyframes orbitSpin {
    from {
        transform: translate(-50%, -50%) rotateX(var(--orbit-x)) rotateY(var(--orbit-y)) rotateZ(var(--orbit-z))
    }

    to {
        transform: translate(-50%, -50%) rotateX(var(--orbit-x)) rotateY(var(--orbit-y)) rotateZ(calc(var(--orbit-z) + 360deg))
    }
}

@media(max-width:800px) {
    .wrap {
        width: min(calc(100% - 30px), 1120px)
    }

    .page-banner {
        padding: 32px 0 25px
    }

    .intro-3d-scene {
        height: 195px
    }

    .intro-orbit {
        width: 170px;
        height: 72px
    }

    .orbit-b {
        width: 220px;
        height: 96px
    }

    .orbit-c {
        width: 275px;
        height: 118px
    }

    .intro-animation h1 {
        font-size: clamp(1.6rem, 6vw, 2.8rem) !important
    }

    .scene-label {
        font-size: 8px
    }
}

@media(max-width:520px) {
    .wrap {
        width: calc(100% - 26px)
    }

    .btn {
        padding: 9px 12px;
        font-size: .84rem
    }

    .panel,
    .quiz-card,
    .paper-card {
        box-shadow: 0 8px 22px rgba(13, 27, 20, .07)
    }

    .intro-screen {
        padding: 18px
    }

    .intro-logo-mark {
        width: 62px;
        height: 62px;
        border-radius: 17px
    }

    .intro-welcome-title {
        font-size: clamp(1.55rem, 7vw, 2.25rem) !important
    }

    .intro-3d-scene {
        width: 100%;
        height: 165px
    }

    .intro-orbit {
        width: 146px;
        height: 65px
    }

    .orbit-b {
        width: 190px;
        height: 82px
    }

    .orbit-c {
        width: 238px;
        height: 103px
    }

    .intro-animation h1 {
        font-size: clamp(1.45rem, 6.8vw, 2.3rem) !important
    }

    .intro-animation>p {
        font-size: .7rem
    }

    .scene-label-a {
        left: 2%
    }

    .scene-label-b {
        right: 1%
    }
}

@media(prefers-reduced-motion:reduce) {

    .intro-robot-wire,
    .intro-orbit {
        animation: none !important
    }

    .btn,
    .panel,
    .dashboard-card {
        transition: none !important
    }
}

/* Honor the HTML hidden state even for components with explicit layout styles. */
[hidden] {
    display: none !important
}

/* Keep desktop hero typography strong without overwhelming the page. */
.home-title {
    font-size: clamp(2rem, 4.1vw, 3.45rem) !important;
    line-height: 1.06 !important
}

@media(max-width:520px) {
    .home-title {
        font-size: clamp(1.85rem, 8vw, 2.65rem) !important
    }
}


/* Final visual pass: clearer content galleries, confident light shadows, and restrained colored dark-theme edges. */
.gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 14px
}

.gallery.g1 {
    grid-template-columns: minmax(0, 1fr)
}

.gallery .m {
    position: relative;
    min-width: 0;
    aspect-ratio: 4/3;
    border-radius: 15px;
    overflow: hidden;
    background: var(--chip);
    border: 1px solid var(--line)
}

.gallery .m.full {
    grid-column: 1/-1;
    aspect-ratio: 16/9
}

.gallery .m img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover
}

.gallery .m video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain
}

.gallery .m.full video {
    object-fit: contain
}

html[data-theme=light] {
    --surface-shadow: 0 12px 27px rgba(24, 31, 28, .13), 0 3px 8px rgba(24, 31, 28, .07);
    --surface-shadow-hover: 0 18px 38px rgba(24, 31, 28, .18), 0 5px 12px rgba(24, 31, 28, .08)
}

html[data-theme=dark] {
    --surface-shadow: 0 12px 28px rgba(0, 0, 0, .34), 0 0 0 1px rgba(107, 205, 181, .13), 0 0 20px rgba(90, 110, 255, .09);
    --surface-shadow-hover: 0 18px 40px rgba(0, 0, 0, .42), 0 0 0 1px rgba(110, 223, 200, .25), 0 0 28px rgba(134, 91, 255, .15)
}

.panel:not(.bp):not(.home-art),
.destination,
.auth-panel,
.quiz-card,
.dashboard-card,
.paper-card,
.featured-post,
.featured-post .feature-thumb,
.post-collage,
.history-item,
.member-metric,
.dashboard-shortcuts a,
.dashboard-tabs a,
.gallery .m,
.work-feature,
.portrait-wrap,
.milestone-grid article,
.site-manager,
.asset-current,
.settings-grid .fld,
.auth-google,
.profile-fields .fld,
.member-edit input {
    box-shadow: var(--surface-shadow);
    transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease
}

.panel:not(.bp):not(.home-art):hover,
.destination:hover,
.quiz-card:hover,
.dashboard-card:hover,
.paper-card:hover,
.featured-post:hover,
.history-item:hover,
.dashboard-shortcuts a:hover,
.dashboard-tabs a:hover,
.work-feature:hover,
.milestone-grid article:hover,
.site-manager:hover,
.auth-google:hover {
    box-shadow: var(--surface-shadow-hover)
}

/* The diagram/technical illustration frames stay clean so their lines remain easy to read. */
.bp,
.home-art,
.arch,
.arch .ab,
.steps,
.steps .step,
[data-diagram-frame] {
    box-shadow: none !important;
    filter: none !important
}

html[data-theme=light] .gallery .m {
    box-shadow: 0 9px 22px rgba(21, 27, 24, .15), 0 2px 5px rgba(21, 27, 24, .07)
}

html[data-theme=dark] .gallery .m {
    box-shadow: 0 10px 24px rgba(0, 0, 0, .35), 0 0 0 1px rgba(84, 220, 183, .17), 0 0 20px rgba(99, 102, 241, .11)
}

html[data-theme=dark] .panel:not(.bp):not(.home-art),
html[data-theme=dark] .destination,
html[data-theme=dark] .auth-panel,
html[data-theme=dark] .quiz-card,
html[data-theme=dark] .dashboard-card,
html[data-theme=dark] .paper-card,
html[data-theme=dark] .featured-post,
html[data-theme=dark] .history-item,
html[data-theme=dark] .member-metric,
html[data-theme=dark] .dashboard-shortcuts a,
html[data-theme=dark] .dashboard-tabs a,
html[data-theme=dark] .work-feature,
html[data-theme=dark] .portrait-wrap,
html[data-theme=dark] .milestone-grid article {
    border-color: color-mix(in srgb, var(--line) 72%, #6e73ff 28%)
}

.auth-wrap {
    width: min(920px, calc(100% - 32px));
    margin: 38px auto 58px
}

.auth-layout {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    justify-content: center;
    gap: 20px;
    align-items: stretch
}

.auth-panel {
    padding: clamp(22px, 4vw, 34px)
}

.auth-login .auth-wrap {
    width: min(520px, calc(100% - 30px))
}

.auth-login .auth-layout {
    grid-template-columns: minmax(0, 480px)
}

.auth-login .auth-visual,
.auth-login .auth-terms,
.auth-login #auth-intro {
    display: none !important
}

@media(max-width:560px) {
    .gallery {
        gap: 9px
    }

    .gallery .m {
        aspect-ratio: 1/1;
        border-radius: 11px
    }

    .gallery .m.full {
        aspect-ratio: 16/10
    }

    .gallery.g1 .m {
        aspect-ratio: 16/10
    }

    .history-item {
        padding: 11px
    }

    .auth-login .auth-wrap {
        margin-top: 22px
    }

    .auth-panel {
        padding: 21px
    }
}

@media(prefers-reduced-motion:reduce) {

    .history-item,
    .panel,
    .destination,
    .auth-panel,
    .quiz-card,
    .dashboard-card,
    .paper-card,
    .featured-post {
        transition: none !important
    }
}