/* ==========================================================================
   Gloss front-end theme — design system
   Reference: candidate-finder-gloss-swiss.html (Grid Gloss / swiss)
   Fonts: Inter Tight (display/body) + Roboto Mono (labels), loaded via CDN.
   ========================================================================== */

:root {
    --paper: #fbfbf9;
    --white: #ffffff;
    --ink: #131313;
    --red: #e0342a;
    --muted: #6f6b64;
    --line: #dedbd2;
    --pink: #ff2d78;
    --violet: #7c3aed;
    --cyan: #06b6d4;

    --accent: var(--violet);
    --accent-2: var(--pink);
    --accent-3: var(--cyan);
    --grad: linear-gradient(100deg, var(--accent-2), var(--accent) 48%, var(--accent-3));
    --grad-soft: linear-gradient(150deg, var(--accent-2), var(--red));

    --shadow-card: 0 16px 38px rgba(40, 30, 80, .10), inset 0 1px 0 #fff;
    --shadow-card-hover: 0 24px 54px rgba(40, 30, 80, .16), inset 0 1px 0 #fff;
    --shadow-btn: 0 10px 24px rgba(124, 58, 237, .28);

    --bs-body-bg: var(--paper);
    --bs-body-color: var(--ink);
    --bs-border-color: var(--line);
    --bs-primary: var(--accent);
    --bs-primary-rgb: 124, 58, 237;
    --bs-link-color: var(--accent);
    --bs-link-hover-color: var(--accent-2);
    --bs-font-sans-serif: "Inter Tight", Helvetica, Arial, sans-serif;
    --bs-body-font-family: "Inter Tight", Helvetica, Arial, sans-serif;
}

/* ---------- base ---------- */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter Tight", Helvetica, Arial, sans-serif;
    font-weight: 400;
    background: var(--paper);
    color: var(--ink);
    line-height: 1.55;
    font-variant-numeric: tabular-nums;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(760px 500px at 86% -8%, rgba(255, 45, 120, .10), transparent 62%),
        radial-gradient(680px 460px at 2% 6%, rgba(124, 58, 237, .10), transparent 62%),
        radial-gradient(660px 480px at 50% 104%, rgba(6, 182, 212, .10), transparent 62%);
}

/* ---------- grid lines ---------- */
.gridlines {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.gridlines .inner {
    max-width: 1140px;
    height: 100%;
    margin: 0 auto;
    padding: 0 12px;
    background-image: linear-gradient(90deg, rgba(19, 19, 19, .05) 1px, transparent 1px);
    background-size: calc(100% / 12) 100%;
}

h1, h2, h3, h4, h5 {
    font-family: "Inter Tight", Helvetica, Arial, sans-serif;
    font-weight: 900;
    letter-spacing: -.045em;
    line-height: 1.05;
    margin: 0 0 .5rem;
}

h5 {
    font-weight: 700;
    letter-spacing: -.03em;
}

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

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

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

img {
    max-width: 100%;
}

.page {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1140px;
}

/* ---------- micro label / rules / gradient text ---------- */
.label {
    font-family: "Roboto Mono", monospace;
    font-size: .68rem;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
}

.label.red {
    color: var(--red);
}

.rule {
    border: 0;
    border-top: 1px solid var(--ink);
    margin: 0;
    opacity: 1;
}

.rule-soft {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 0;
    opacity: 1;
}

.grad {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- section shells ---------- */
.section {
    padding: 4.6rem 0;
}

.section.pt-0 {
    padding-top: 0;
    margin-top: 3rem;
}

.sec-title {
    font-size: clamp(1.9rem, 4.2vw, 3.2rem);
    letter-spacing: -.05em;
}

.sec-title .thin {
    font-weight: 400;
    font-style: italic;
}

.sec-lead {
    color: var(--muted);
    max-width: 54ch;
}

.text-center .sec-lead {
    margin-left: auto;
    margin-right: auto;
}

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

/* ---------- buttons ---------- */
.btn {
    border-radius: 0;
    font-family: "Inter Tight", Helvetica, Arial, sans-serif;
    font-weight: 600;
    font-size: .85rem;
    letter-spacing: .01em;
    padding: .82rem 1.45rem;
    position: relative;
    overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease, background-position .6s ease, color .2s ease;
}

.btn:focus,
.btn:focus-visible {
    box-shadow: none;
}

.btn-grad,
.btn-general,
.btn-primary {
    background: var(--grad);
    background-size: 220% 100%;
    color: #fff;
    border: 0;
    box-shadow: var(--shadow-btn);
}

.btn-grad::after,
.btn-general::after {
    content: "";
    position: absolute;
    top: 0;
    left: -70%;
    width: 45%;
    height: 100%;
    transform: skewX(-22deg);
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .8), transparent);
    animation: shine 4.4s ease-in-out infinite;
}

@keyframes shine {
    0%, 66% {
        left: -70%;
    }
    100% {
        left: 150%;
    }
}

.btn-grad:hover,
.btn-general:hover,
.btn-primary:hover {
    background-position: 100% 0;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(124, 58, 237, .4);
}

.btn-line {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--ink);
    box-shadow: none;
}

.btn-line:hover {
    background: var(--ink);
    color: var(--paper);
    transform: translateY(-2px);
}

.btn-ghost {
    background: rgba(19, 19, 19, .05);
    color: var(--ink);
    border: 1px solid transparent;
}

.btn-ghost:hover {
    background: var(--ink);
    color: var(--paper);
}

.btn-white {
    background: var(--paper);
    color: var(--accent);
    border: 0;
}

.btn-white:hover {
    color: var(--accent-2);
    transform: translateY(-2px);
}

.btn-sm {
    padding: .5rem .95rem;
    font-size: .78rem;
}

.btn-block,
.btn.w-100 {
    display: block;
    width: 100%;
}

/* ---------- header / nav ---------- */
.site-head {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(251, 251, 249, .92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--ink);
    padding: .72rem 0;
}

.brand {
    font-family: "Inter Tight", Helvetica, Arial, sans-serif;
    font-weight: 900;
    font-size: 1.14rem;
    letter-spacing: -.04em;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: .6rem;
    color: var(--ink);
}

.brand .sq {
    width: 13px;
    height: 13px;
    background: var(--grad);
    display: inline-block;
    flex: 0 0 auto;
}

.brand .txt {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand .logo-text {
    font-size: 1.35rem;
    line-height: 1;
    text-transform: uppercase;
}

.brand .logo-main-menu {
    max-height: 40px;
    width: auto;
}

.nav-link.link {
    color: var(--ink) !important;
    font-weight: 500;
    font-size: .82rem;
    letter-spacing: .07em;
    text-transform: uppercase;
    margin: 0 .85rem;
    padding: .4rem 0 !important;
    border-bottom: 2px solid transparent;
    transition: all .2s ease;
}

.nav-link.link:hover,
.nav-link.link.active {
    color: var(--red) !important;
    border-bottom-color: var(--red);
}

.site-head .navbar-toggler {
    border: 1px solid var(--ink);
    border-radius: 0;
    padding: .25rem .5rem;
    color: var(--ink);
}

.site-head .navbar-toggler:focus {
    box-shadow: none;
}

.site-head .dropdown-menu {
    border: 1px solid var(--line);
    border-radius: 0;
    box-shadow: 0 18px 40px rgba(40, 30, 80, .14);
    padding: .4rem;
    margin-top: .6rem;
}

.site-head .dropdown-item {
    font-size: .85rem;
    padding: .5rem .7rem;
}

.site-head .dropdown-item:hover {
    background: rgba(124, 58, 237, .08);
    color: var(--accent);
}

.icon-dropdown .nav-link,
.user-dropdown .nav-link {
    color: var(--ink);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: 1.05rem;
}

.front-notification-icon-badge {
    position: absolute;
    top: -4px;
    right: -8px;
    background: var(--red);
    color: #fff;
    font-size: .6rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 0;
    line-height: 1.4;
}

.menu-avatar {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border: 1px solid var(--ink);
}

.flag-dropdown {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.flag-icon {
    width: 1.2em;
    height: 1.2em;
    background-size: cover;
    display: inline-block;
}

/* dark-mode toggle (fixed side handle) */
.section-sidepanel {
    position: fixed;
    top: 30%;
    right: 0;
    z-index: 1040;
    display: flex;
    align-items: flex-start;
}

.section-sidepanel-handle {
    background: var(--ink);
    color: var(--paper);
    padding: .7rem .5rem;
    cursor: pointer;
    font-size: 1rem;
    transition: background .2s ease, color .2s ease;
}

.section-theme-toggle .section-sidepanel-handle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
}

.section-theme-toggle .section-sidepanel-handle:hover {
    background: var(--accent);
    color: #fff;
}

/* ---------- hero ---------- */
.hero {
    padding: 3.6rem 0 2rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 8.6vw, 7.4rem);
    letter-spacing: -.055em;
}

.hero h1 .thin {
    font-weight: 400;
    font-style: italic;
    letter-spacing: -.03em;
}

.hero .lead {
    color: #3c3a35;
    font-size: 1.06rem;
    max-width: 48ch;
    margin-top: 1.7rem;
}

.hero-title {
    font-size: clamp(2.2rem, 6vw, 4.4rem);
    font-weight: 900;
    letter-spacing: -.055em;
    line-height: 1.02;
}

.hero-title h1,
.hero-title h2,
.hero-title h3 {
    font-size: inherit;
    letter-spacing: inherit;
    margin: 0;
}

.hero .bar {
    display: block;
    height: 9px;
    transform-origin: left;
    animation: draw .9s cubic-bezier(.2, .85, .25, 1) forwards;
}

@keyframes draw {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

.redblock {
    background: var(--grad-soft);
    color: #fff;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
    box-shadow: 0 16px 40px rgba(224, 52, 42, .28);
}

.redblock .big {
    font-family: "Inter Tight", Helvetica, Arial, sans-serif;
    font-weight: 900;
    font-size: 3.2rem;
    line-height: .94;
    letter-spacing: -.05em;
}

.redblock .label {
    color: rgba(255, 255, 255, .85);
}

/* home search */
.gloss-search {
    background: var(--white);
    border: 1px solid var(--line);
    padding: .8rem;
    box-shadow: var(--shadow-card);
}

.gloss-search .form-control,
.gloss-search .form-select {
    border: 1px solid var(--line);
    border-radius: 0;
    height: 46px;
    font-size: .9rem;
}

.gloss-search .btn {
    height: 46px;
    padding: .5rem 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ---------- stat row ---------- */
.statbox {
    padding: 1.8rem 0;
}

.statbox .v {
    font-size: clamp(2rem, 4.6vw, 3.3rem);
    font-weight: 900;
    letter-spacing: -.05em;
    line-height: 1;
}

.statbox .k {
    font-family: "Roboto Mono", monospace;
    font-size: .68rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: .7rem;
}

/* ---------- gloss cards ---------- */
.gloss {
    background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, .78));
    border: 1px solid #fff;
    backdrop-filter: blur(14px);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform .3s ease, box-shadow .3s ease;
}

.gloss::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 45%;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .9), transparent);
    transform: translateX(-180%);
}

.gloss:hover::after {
    animation: sheen 1.1s ease;
}

@keyframes sheen {
    to {
        transform: translateX(330%);
    }
}

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

.card-pad {
    padding: 1.8rem;
    height: 100%;
}

.feat .ico {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 1.1rem;
}

.g1 {
    background: linear-gradient(135deg, #ff2d78, #ff6b9d);
}

.g2 {
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
}

.g3 {
    background: linear-gradient(135deg, #06b6d4, #67e8f9);
}

.g4 {
    background: linear-gradient(135deg, #22c55e, #86efac);
}

.g5 {
    background: linear-gradient(135deg, #f59e0b, #fcd34d);
}

.g6 {
    background: linear-gradient(135deg, #2563eb, #60a5fa);
}

.feat h3 {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -.03em;
    margin-bottom: .5rem;
}

.feat p {
    color: var(--muted);
    margin: 0;
    font-size: .94rem;
}

.feat .step-num {
    position: absolute;
    top: 1.15rem;
    right: 1.35rem;
    font-family: "Roboto Mono", monospace;
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: .1em;
    color: var(--muted);
}

/* department tiles */
.dept-card {
    display: block;
    text-align: center;
    padding: 1.6rem 1rem;
    color: var(--ink);
}

.dept-card .ico {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    color: #fff;
    margin: 0 auto 1rem;
    background: var(--grad);
}

.dept-card .ico img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.dept-card .title {
    font-weight: 700;
    letter-spacing: -.02em;
    font-size: 1.02rem;
}

.dept-card .count {
    font-family: "Roboto Mono", monospace;
    font-size: .66rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: .35rem;
}

/* ---------- tables ---------- */
.gloss-table {
    width: 100%;
    --bs-table-bg: transparent;
    --bs-table-color: var(--ink);
    margin: 0;
}

.gloss-table thead th {
    font-family: "Roboto Mono", monospace;
    font-size: .65rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
    border-bottom: 1px solid var(--ink) !important;
    padding: .9rem .8rem;
    white-space: nowrap;
}

.gloss-table tbody td {
    border-color: var(--line) !important;
    border-bottom: 1px solid var(--line);
    padding: 1.1rem .8rem;
    vertical-align: middle;
    font-size: .94rem;
}

.gloss-table tbody tr {
    transition: background .2s ease;
}

.gloss-table tbody tr:hover {
    background: var(--white);
}

.gloss-table .ref {
    font-family: "Roboto Mono", monospace;
    font-size: .78rem;
    font-weight: 500;
    color: var(--red);
}

.gloss-table .r {
    font-weight: 700;
    letter-spacing: -.02em;
}

.gloss-table .cmp {
    font-weight: 700;
    letter-spacing: -.02em;
}

.tick {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: var(--grad);
    margin-right: .5rem;
    vertical-align: middle;
}

.job-actions {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    justify-content: flex-end;
}

.job-actions .mark-favorite,
.job-actions .refer-job {
    cursor: pointer;
    font-size: 1rem;
    color: var(--muted);
    transition: color .2s ease;
}

.job-actions .mark-favorite.favorited,
.job-actions .mark-favorite:hover {
    color: var(--pink);
}

/* ---------- forms ---------- */
.form-label {
    font-family: "Roboto Mono", monospace;
    font-size: .66rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .4rem;
}

.form-control,
.form-select {
    border: 1px solid var(--line);
    border-radius: 0;
    padding: .7rem .85rem;
    font-size: .92rem;
    background-color: var(--white);
    color: var(--ink);
}

.form-control::placeholder,
.form-select::placeholder {
    color: var(--muted);
    opacity: 1;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, .12);
}

.form-check-input {
    border-radius: 0;
}

.form-check-input:checked {
    background-color: var(--accent);
    border-color: var(--accent);
}

.form-text,
small.text-muted {
    color: var(--muted);
}

.errors-container {
    margin-bottom: 1rem;
}

.alert {
    border-radius: 0;
    border: 1px solid var(--line);
    font-size: .9rem;
}

.alert ul {
    margin: 0;
    padding-left: 1.1rem;
}

/* dropify tweaks */
.dropify-wrapper {
    border: 1px dashed var(--line);
    border-radius: 0;
    font-family: inherit;
}

/* ---------- page banner / breadcrumb ---------- */
.page-banner {
    padding: 3rem 0 1.4rem;
}

.page-banner h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
}

.crumb {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    padding: 0;
    margin: .8rem 0 0;
    font-family: "Roboto Mono", monospace;
    font-size: .68rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}

.crumb a {
    color: var(--muted);
}

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

.crumb .active a {
    color: var(--ink);
}

/* ---------- job listing layout ---------- */
.jobs-layout {
    padding: 2.4rem 0 4rem;
}

.filter-panel .gloss {
    margin-bottom: 1rem;
}

.filter-group {
    margin-bottom: 1.4rem;
}

.filter-group h2 {
    font-family: "Roboto Mono", monospace;
    font-size: .68rem;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: .7rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.filter-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-group li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .28rem 0;
    font-size: .9rem;
}

.filter-group li label {
    margin: 0;
    cursor: pointer;
}

/* ---------- pagination ---------- */
.pagination {
    gap: .4rem;
    margin: 0;
}

.pagination li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 .55rem;
    border: 1px solid var(--line);
    border-radius: 0;
    background: var(--white);
    color: var(--ink);
    font-family: "Roboto Mono", monospace;
    font-size: .8rem;
    line-height: 1;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.pagination li a:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
}

.pagination li.active a {
    background: var(--grad);
    border-color: transparent;
    color: #fff;
}

.pagination li.disabled a {
    color: var(--line);
    pointer-events: none;
}

/* ---------- job detail ---------- */
.job-head {
    padding: 3rem 0 1.6rem;
}

.job-head h1 {
    font-size: clamp(1.9rem, 4.6vw, 3.2rem);
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem;
    color: var(--muted);
    font-size: .9rem;
    margin-top: 1rem;
}

.job-meta span {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}

.job-body {
    padding: 1rem 0 3.5rem;
}

.job-filters {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin: 1.2rem 0;
}

.job-filters .chip {
    border: 1px solid var(--line);
    padding: .4rem .8rem;
    font-size: .8rem;
    display: inline-flex;
    gap: .4rem;
    align-items: center;
}

.job-filters .chip b {
    font-weight: 600;
}

.job-description {
    color: #3c3a35;
    font-size: .98rem;
    line-height: 1.7;
}

.quiz-notice {
    background: rgba(124, 58, 237, .07);
    border: 1px solid var(--line);
    padding: 1rem 1.2rem;
    margin: 1.2rem 0;
}

.trait-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .5rem 0;
    border-bottom: 1px solid var(--line);
}

.apply-box {
    padding: 2.2rem 0 0;
}

.map-frame {
    width: 100%;
    height: 320px;
    border: 1px solid var(--line);
    margin: 1.5rem 0;
}

/* ---------- auth pages ---------- */
.auth-wrap {
    padding: 3.4rem 0 4.6rem;
}

.auth-card {
    max-width: 520px;
    margin: 0 auto;
}

.auth-card .gloss {
    padding: 2.4rem;
}

.auth-card h1 {
    font-size: 2.2rem;
    margin-bottom: 1.6rem;
}

.auth-social {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: 1rem;
}

/* ---------- account area ---------- */
.account-wrap {
    padding: 2.6rem 0 4.6rem;
}

/* account cards stay static on hover (no lift, shadow change or sheen) */
.account-wrap .gloss:hover {
    transform: none;
    box-shadow: var(--shadow-card);
}

.account-wrap .gloss:hover::after {
    animation: none;
}

.account-nav .gloss {
    padding: 1rem;
}

.account-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.account-nav a {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .6rem .7rem;
    color: var(--ink);
    font-size: .9rem;
    border-left: 2px solid transparent;
    transition: all .2s ease;
}

.account-nav a:hover,
.account-nav a.active {
    background: var(--white);
    border-left-color: var(--accent);
    color: var(--accent);
}

.account-panel {
    padding: 2rem;
}

.account-panel h1 {
    font-size: 1.9rem;
    margin-bottom: 1.4rem;
}

.account-table td,
.account-table th {
    font-size: .86rem;
}

/* resume accordion */
.resume-section {
    border: 1px solid var(--line);
    margin-bottom: 1rem;
    background: var(--white);
}

.resume-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.2rem;
    cursor: pointer;
}

.resume-section-head h5 {
    margin: 0;
    font-size: 1rem;
}

.resume-section-head .box-open-close {
    color: var(--muted);
    text-decoration: none;
}

.resume-section-body {
    padding: 1.2rem;
}

.section-container .gloss-box {
    border: 1px solid var(--line);
    padding: 1rem;
    margin-bottom: 1rem;
}

/* ---------- quiz ---------- */
.quiz-box {
    padding: 1.6rem;
}

.quiz-answer {
    display: flex;
    align-items: center;
    gap: .6rem;
    border: 1px solid var(--line);
    padding: .8rem 1rem;
    margin-bottom: .6rem;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease;
}

.quiz-answer:hover {
    border-color: var(--accent);
    background: rgba(124, 58, 237, .05);
}

.quiz-timer {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: .55rem;
    font-family: "Roboto Mono", monospace;
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--ink);
}

.quiz-timer .number-wrapper {
    position: relative;
    display: inline-block;
    padding-bottom: 1.15rem;
}

.quiz-timer .number {
    display: block;
    width: 3.6rem;
    height: 3rem;
    line-height: 3rem;
    text-align: center;
    font-size: 1.45rem;
    font-weight: 700;
    color: #fff;
    background: var(--grad);
    border-radius: .55rem;
    box-shadow: 0 6px 16px rgba(40, 30, 80, .18), inset 0 1px 0 rgba(255, 255, 255, .35);
}

.quiz-timer .line {
    position: absolute;
    top: 1.5rem;
    left: .35rem;
    right: .35rem;
    height: 1px;
    background: rgba(0, 0, 0, .22);
}

.quiz-timer .caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    font-family: "Roboto Mono", monospace;
    font-size: .58rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}

.quiz-q {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.quiz-q li {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    font-family: "Roboto Mono", monospace;
    font-size: .72rem;
}

.quiz-q li.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* ---------- blog ---------- */
.blog-card {
    display: block;
    color: var(--ink);
    height: 100%;
}

.blog-card .thumb {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--line);
}

.blog-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.blog-card:hover .thumb img {
    transform: scale(1.05);
}

.blog-card .body {
    padding: 1.2rem;
}

.blog-card .date {
    font-family: "Roboto Mono", monospace;
    font-size: .64rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--red);
}

.blog-card h2 {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -.02em;
    margin: .6rem 0;
}

.blog-card p {
    color: var(--muted);
    font-size: .9rem;
    margin: 0;
}

.blog-search {
    background: var(--white);
    border: 1px solid var(--line);
    padding: .8rem;
    box-shadow: var(--shadow-card);
}

.blog-detail-img {
    width: 100%;
    height: auto;
    border: 1px solid var(--line);
}

.blog-content {
    color: #3c3a35;
    font-size: 1rem;
    line-height: 1.8;
}

/* ---------- cta ---------- */
.cta {
    border-radius: 0;
    padding: 3.6rem;
    position: relative;
    overflow: hidden;
    color: #fff;
    background: var(--grad);
    background-size: 220% 220%;
    animation: gradShift 14s ease infinite;
    box-shadow: 0 22px 52px rgba(124, 58, 237, .3);
}

@keyframes gradShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.cta h2 {
    color: #fff;
    font-size: clamp(2rem, 5vw, 3.8rem);
    letter-spacing: -.05em;
}

.cta h2 .thin {
    font-weight: 400;
    font-style: italic;
}

.cta p {
    color: rgba(255, 255, 255, .92);
    max-width: 52ch;
    margin: .9rem 0 0;
}

.cta .label {
    color: rgba(255, 255, 255, .85);
}

/* ---------- footer ---------- */
.site-foot {
    border-top: 1px solid var(--ink);
    padding: 3.2rem 0 2rem;
    color: var(--muted);
}

.site-foot a {
    color: var(--ink);
    text-decoration: none;
    display: block;
    padding: .24rem 0;
    font-size: .9rem;
    transition: color .2s ease, padding-left .2s ease;
}

.site-foot a:hover {
    color: var(--accent);
    padding-left: 6px;
}

.site-foot .label {
    margin-bottom: .6rem;
}

.site-foot h2 {
    font-size: 1.17em;
}

.site-foot h3 {
    font-size: 1em;
}

.foot-word {
    font-family: "Inter Tight", Helvetica, Arial, sans-serif;
    font-weight: 900;
    font-size: clamp(2.4rem, 12vw, 10rem);
    line-height: .82;
    letter-spacing: -.055em;
    color: #e9e7e0;
    overflow: hidden;
    white-space: nowrap;
}

/* ---------- modal ---------- */
.modal-content {
    border-radius: 0;
    border: 1px solid var(--line);
}

.modal-header,
.modal-footer {
    border-color: var(--line);
}

.modal-title {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -.02em;
}

/* ---------- reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .75s ease, transform .75s ease;
}

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

.reveal.dd1 {
    transition-delay: .07s;
}

.reveal.dd2 {
    transition-delay: .14s;
}

.reveal.dd3 {
    transition-delay: .21s;
}

/* ---------- utilities ---------- */
.spin-loader {
    color: var(--accent);
    vertical-align: middle;
}

.form-button-spinner {
    vertical-align: middle;
}

.text-muted {
    color: var(--muted) !important;
}

.display-4 {
    font-weight: 900;
    letter-spacing: -.05em;
}

/* ---------- responsive ---------- */
@media (max-width: 991px) {
    .hero h1 {
        font-size: clamp(2.3rem, 11vw, 4rem);
    }

    .cta {
        padding: 2.3rem;
    }

    .nav-link.link {
        margin: .4rem 0;
        border-bottom: 0;
    }
}

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

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

    .hero .bar {
        transform: scaleX(1);
    }
}
