/* css/profile.css */

/* 1. Profile Section Background */
.profile {
    
    padding-bottom: var(--section-padding-pc);
    
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.profile__inner {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* 2. Manila Folder (Base) */
.profile__file {
    position: relative;
    width: 1200px;
    height: 707px;
    border-radius: 25px;
    background-image: url('../images/common/bg_folder_manila.png');
    background-repeat: no-repeat;
    background-size: 1264px;
    background-position: -24px -31px;
    box-shadow: 10px 15px 30px rgba(0,0,0,0.15);
}

/* 3. Three Paper Layers */
.profile__paper-layer {
    position: absolute;
    box-shadow: 2px 4px 1px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.profile__paper-layer--1 {
    width: 1138px;
    height: 615px;
    background-color: var(--color-paper-cream);
    transform: rotate(3deg) translate(-10px, 10px);
    top: 7px;
    left: 45px;
}

.profile__paper-layer--2 {
    width: 1153px;
    height: 646px;
    background-color: var(--color-paper-shadow);
    transform: rotate(-4deg) translate(10px, -5px);
    left: 3px;
    top: 36px;
}

.profile__paper-layer--3 {
    width: 1155px;
    height: 646px;
    background-color: var(--color-paper-base);
    z-index: 10;
    /* Container for contents */
    display: flex;
    flex-direction: column;
    left: 17px;
    top: 20px;
}

/* Texture Overlay */
.profile__paper-layer--3::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.3;
    pointer-events: none;
    background-image: url('../images/common/texture_paper_common.jpg');
    background-repeat: repeat;
    background-size: auto;
    z-index: 1; /* Behind content */
}

/* Ensure content is above texture */
.profile__header,
.profile__tabs,
.profile__panels {
    position: relative;
    z-index: 2;
}

/* 4. Header & File Index */
.profile__header {
    display: flex;
    align-items: baseline;
    gap: 20px;
    padding: 25px 45px 10px;
    flex-shrink: 0;
}

.profile__title {
    font-family: var(--font-label);
    font-size: var(--font-size-section-title);
    color: var(--color-text-primary);
    letter-spacing: 0.05em;
}

.profile__file-no {
    display: inline-block;
    font-family: var(--font-typewriter);
    font-size: 1.5rem;
    color: var(--color-accent-red);
    border-bottom: 1px solid rgba(175, 43, 25, 0.45);
}

.profile__tabs {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: end;
    width: auto;
    margin: 0 40px;
    padding: 0;
    overflow: visible;
    border-bottom: none;
    isolation: isolate;
}

.profile__tabs::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -7px;
    z-index: 5;
    height: 10px;
    background-color: var(--color-paper-base);
    border-top: 2px solid var(--color-tab-line);
    pointer-events: none;
}

.profile-tab {
    position: relative;
    z-index: auto;
    min-width: 0;
    height: 51px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    margin: 0;
    color: var(--color-tab-text-inactive);
    font-size: var(--font-size-profile-tab);
    line-height: 1;
    text-align: center;
    cursor: pointer;
    isolation: auto;
    transform: none;
    transition:
        transform 0.24s ease,
        color 0.24s ease,
        filter 0.24s ease;
}


.profile-tab::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background-color: var(--color-tab-bg-inactive);
    clip-path: polygon(
        12px 0,
        calc(100% - 12px) 0,
        100% 100%,
        0 100%
    );
    pointer-events: none;
    transition:
        transform 0.24s ease,
        background-color 0.24s ease,
        border-color 0.24s ease,
        box-shadow 0.24s ease,
        filter 0.24s ease;
}

.profile-tab:not(.is-active) {
    z-index: auto;
    transform: none;
    color: var(--color-tab-text-inactive);
}

.profile-tab:not(.is-active)::before {
    transform: translateY(7px);
    filter: saturate(0.94) brightness(0.98);
}

.profile-tab:last-child::before {
    right: 0;
}

.profile-tab__label {
    position: relative;
    z-index: 7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    white-space: nowrap;
}

.profile-tab__label--short {
    display: none;
}

.profile-tab:hover {
    background-color: transparent;
}

.profile-tab:not(.is-active):hover,
.profile-tab:not(.is-active):focus-visible {
    color: var(--color-tab-text-hover);
    outline: none;
}

.profile-tab:not(.is-active):hover::before,
.profile-tab:not(.is-active):focus-visible::before {
    transform: translateY(4px);
    filter: saturate(1.02) brightness(1.02);
}

.profile-tab.is-active {
    display: flex !important;
    align-items: center;
    justify-content: center;
    transform: translateY(-5px);
    color: var(--color-tab-text-active);
    font-weight: var(--font-weight-bold);
}

.profile-tab.is-active:hover {
    background-color: transparent;
}

.profile-tab.is-active::before {
    z-index: 1;
    transform: none;
    background-color: var(--color-tab-bg-active);
    border-color: rgba(46, 64, 96, 0.32);
    box-shadow:
        0 8px 14px rgba(38, 30, 22, 0.18),
        inset 0 3px 6px rgba(255, 255, 255, 0.14);
    filter: saturate(1.05) brightness(1.03);
}

.profile__panels {
    flex: 1;
    position: relative;
    padding: 30px 38px;
    min-height: 0;
    box-sizing: border-box;
    z-index: 3;
}

.profile-panel {
    display: none;
    height: 100%;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
}

.profile-panel.is-active {
    display: block;
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.profile__content-inner {
    display: grid;
    gap: 20px; 
    height: auto;
    width: 100%;
    box-sizing: border-box;
}

/* Shared Profile Content Title */
.profile .profile-card__title {
    font-family: var(--font-label);
    font-size: var(--font-size-panel-title);
    font-weight: var(--font-weight-regular);
    letter-spacing: -2px;
    color: var(--color-text-primary);
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.profile__content-inner .profile-card__title {
    margin-top: 0;
}

/* =========================================================================
   6. Panel 1: PROFILE
   ========================================================================= */
.deco-clip-top-right {
    position: absolute;
    top: -40px;
    right: 40px;
    width: 111px;
    z-index: 5;
    pointer-events: none;
}

.profile__content-inner--profile {
    grid-template-columns: 310px 406px 300px;
    justify-content: center;
    gap: 30px;
    align-items: start;
    min-width: 0;
    padding-top: 0;
    position: relative;
}

/* Portrait */
.profile__photo {
    background-color: #E8E8E8;
    width: 100%;
    aspect-ratio: 4 / 5;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 2px 4px 10px rgba(0,0,0,0.08);
    border: 14px solid var(--color-white); 
    border-bottom-width: 35px;
    align-self: center;
}
/* About Me */
.profile__info {
    min-width: 0;
    box-sizing: border-box;
}
.profile__info .profile-table {
    max-width: 340px; 
    font-size: var(--font-size-body);
}
.profile-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 12px;
    font-family: var(--font-sans);
}
.profile-table th,
.profile-table td {
    padding: 6px 0; 
    border-bottom: 1px solid rgba(0,0,0,0.05);
    color: var(--color-text-primary);
    word-break: keep-all;
    overflow-wrap: normal;
}
.profile-table th {
    text-align: left;
    width: 90px;
    color: var(--color-text-secondary);
}

.profile__intro {
    font-family: var(--font-sans);
    font-size: 1.5rem;
    line-height: 1.8;
    color: var(--color-text-primary);
    word-break: keep-all;
    overflow-wrap: normal;
    width: 560px; 
    position: relative;
    z-index: 2;
}
.profile__intro strong {
    font-weight: bold;
    font-size: var(--font-size-body);
}

.profile__intro-text--mobile {
    display: none;
}

/* Skills & License */
.profile__skills-license {
    
    min-width: 0;
    box-sizing: border-box;
}

.profile-skill {
    width: 370px;
    position: absolute;
    right: 35px;
    top: 0;
}
.profile-skill .profile-card__title {
    margin-bottom: 15px; 
    padding-left: 30px;
}
.profile-skill__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px 8px;
}
.profile-skill__list li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: var(--font-size-body-small);
    font-family: var(--font-sans);
    text-align: center;
}
.profile-skill__list img {
    height: 40px;
    width: auto;
}

/* License Note */
.profile-license {
    width: 210px;
    background-color: var(--color-white);
    background-image: none;
    padding: 10px 18px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 2px 4px 10px rgba(0,0,0,0.08);
    position: absolute;
    right: 2px;
    bottom: -54px;
    transform: rotate(2deg);
    max-width: 100%;
    box-sizing: border-box;
}

.profile-license::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../images/profile/bg_license_memo.jpg');
    background-repeat: no-repeat;
    background-position: -29px 0;
    background-size: 527px;
    opacity: 0.2;
    pointer-events: none;
    z-index: 0;
}

.profile-license > * {
    position: relative;
    z-index: 1;
}

.profile-license::before {
    content: "";
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 95px;
    height: 27px;
    background-color: var(--color-tape-soft);
    box-shadow: 1px 1px 3px rgba(0,0,0,0.1);
    z-index: 2;
}
.profile-license .profile-card__title {
    text-align: center;
    display: block;
    margin-bottom: 3px;
}
.profile-license__list {
    list-style: none;
    margin-left: 3px;
}
.profile-license__list li {
    font-family: var(--font-sans);
    font-size: var(--font-size-body); 
    line-height: 1.6;
    color: var(--color-text-primary);
    position: relative;
    padding-left: 24px; 
    margin-bottom: 5px;
    word-break: keep-all;
    overflow-wrap: normal;
}
.profile-license__list li .check {
    position: absolute;
    left: 0;
    color: var(--color-accent-red);
    font-size: var(--font-size-micro);
}

.deco-star {
    height: 24px;
    vertical-align: top;
    margin-left: -1px;
    margin-bottom: 11px;
}

/* =========================================================================
   7. Panel 2: TRAIT ANALYSIS
   ========================================================================= */
.profile__content-inner--trait {
    grid-template-columns: minmax(0, 48%) minmax(0, 1fr);
    gap: 46px;
    align-items: start;
    position: relative;
    padding: 0 16px 12px;
    overflow: hidden;
}
.profile__content-inner--trait::before {
    content: "";
    position: absolute;
    left: calc(48% + 22px);
    top: 8px;
    bottom: 0px;
    width: 1px;
    background: linear-gradient(
        to bottom, 
        var(--color-scroll-thumb) 0%, 
        var(--color-scroll-thumb) 35%, 
        transparent 35%, 
        transparent 63%, 
        var(--color-scroll-thumb) 63%, 
        var(--color-scroll-thumb) 100%
    );
    pointer-events: none;
    z-index: 1;
}
.profile__content-inner--trait::after {
    content: "ANALYSIS RECORD";
    position: absolute;
    left: calc(48% + 23px);
    top: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    font-family: var(--font-label);
    font-size: var(--font-size-micro);
    letter-spacing: 0.08em;
    line-height: 1;
    color: var(--color-line-brown-text);
    white-space: nowrap;
    pointer-events: none;
    z-index: 1;
}

/* Core Traits (Left) */
.profile__trait-left {
    padding-right: 0;
    border-right: 0;
    height: auto;
    align-self: start;
    min-width: 0;
    box-sizing: border-box;
}
.profile__trait-desc {
    font-family: var(--font-sans);
    font-size: var(--font-size-body-small);
    line-height: 1.6;
    margin-bottom: 36px;
    color: var(--color-text-calm);
    word-break: keep-all;
    overflow-wrap: normal;
}
.profile__trait-desc strong {
    border-bottom: 5px solid rgba(221, 184, 92, 0.38);
    color: var(--color-text-strong);
}

.profile__trait-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px 22px;
}
.trait-card {
    height: 123px;
    width: 90%;
    left: 2%;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: 0 1px 2.5px rgba(0, 0, 0, 0.18);
    text-align: center;
    position: relative;
    overflow: visible;
    isolation: isolate;
    box-sizing: border-box;
    --trait-front-w: 100%;
    --trait-front-h: 123px;
    --trait-mid-w: 100%;
    --trait-mid-h: 113px;
    --trait-mid-x: 46%;
    --trait-mid-y: -1px;
    --trait-mid-r: -3deg;
    --trait-back-w: 100%;
    --trait-back-h: 110px;
    --trait-back-x: 53%;
    --trait-back-y: -3px;
    --trait-back-r: 1deg;
}


.trait-card:nth-child(1) { transform: rotate(-3deg); }
.trait-card:nth-child(2) { transform: rotate(3deg); }
.trait-card:nth-child(3) { transform: rotate(3.5deg); }
.trait-card:nth-child(4) { transform: rotate(-3.5deg); }

.trait-card__paper {
    box-sizing: border-box;
    border: 0;
}

.trait-card__paper::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    pointer-events: none;
    z-index: 0;
}


.trait-card__paper--back,
.trait-card__paper--mid {
    position: absolute;
    min-height: 0;
}

.trait-card__paper--back {
    width: var(--trait-back-w);
    height: var(--trait-back-h);
    left: var(--trait-back-x);
    top: var(--trait-back-y);
    transform: translateX(-50%) rotate(var(--trait-back-r));
    background-color: var(--color-paper-soft);
    border-radius: 5px;
    z-index: 1;
    box-shadow: 0 1px 2.5px rgba(0, 0, 0, 0.18);
}

.trait-card__paper--back::before {
    background-image: url('../images/profile/texture_paper_vintage.jpg');
    opacity: 0.25;
}

.trait-card__paper--mid {
    width: var(--trait-mid-w);
    height: var(--trait-mid-h);
    left: var(--trait-mid-x);
    top: var(--trait-mid-y);
    transform: translateX(-50%) rotate(var(--trait-mid-r));
    background-color: var(--color-paper-warm);
    border-radius: 5px;
    z-index: 2;
    box-shadow: -1px 0px 2.5px rgba(0, 0, 0, 0.18);
}

.trait-card__paper--mid::before {
    background-image: url('../images/profile/texture_paper_vintage.jpg');
    opacity: 0.40;
}

.trait-card__paper--front {
    position: relative;
    width: var(--trait-front-w);
    height: var(--trait-front-h);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 15px 18px 12px;
    background-color: var(--color-paper-cream);
    border-radius: 0;
    box-shadow: 0 1px 1.3px rgba(0, 0, 0, 0.25);
    z-index: 3;
}

.trait-card__paper--front::before {
    background-image: url('../images/common/texture_paper_beige.jpg');
    opacity: 0.36;
}

.trait-card__tape {
    position: absolute;
    top: -13px;
    left: 50%;
    width: 50px;
    height: 21px;
    transform: translateX(-50%) rotate(-1.5deg);
    background-color: rgba(215, 193, 153, 0.75);
    box-shadow: 0 1px 2px rgba(72, 55, 30, 0.15);
    z-index: 4;
}
.trait-card:nth-child(even) .trait-card__tape {
    transform: translateX(-50%) rotate(2deg);
    top: -13px;
}

.trait-icon {
    height: 40px;
    margin: 0 auto 12px;
    object-fit: contain;
    position: relative;
    z-index: 1;
}
.trait-card:nth-child(4) .trait-icon {
    height: 36px;
}
.trait-card .profile-card__title {
    display: block;
    font-family: 'Pretendard', sans-serif;
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-regular);
    line-height: 1.15;
    letter-spacing: 0;
    margin-bottom: 5px;
    justify-content: center;
    color: var(--color-text-strong);
    position: relative;
    z-index: 1;
}
.trait-card .profile-card__body {
    font-family: var(--font-sans);
    font-size: var(--font-size-body);
    color: var(--color-text-calm);
    line-height: 1.35;
    position: relative;
    z-index: 1;
}

/* Strength Analysis (Right) */
.profile__trait-right {
    padding-left: 0;
    position: relative;
    min-width: 0;
    box-sizing: border-box;
}
.profile__strength-list {
    --strength-line: rgba(38, 48, 70, 0.22);
    display: grid;
    
    grid-template-columns: 50% 50%;
    gap: 0;
    margin-top: 20px;
}
.profile__strength-item {
    min-height: 66px;
    padding: 12px 12px 12px 0;
    margin-bottom: 0;
    border-bottom: 1px dotted var(--strength-line);
    box-sizing: border-box;
    word-break: keep-all;
}
.profile__strength-item:nth-child(even) {
    border-left: 1px dotted var(--strength-line);
    padding-left: 12px;
    padding-right: 0;
}
.profile__strength-item:nth-child(odd) {
    padding-left: 0;
    padding-right: 12px;
}

.profile__strength-item:nth-child(7) {
    grid-column: 1 / 3;
    border-bottom: none;
}
.profile__strength-label {
    font-family: var(--font-typewriter);
    font-size: 1.1rem;
    color: var(--color-accent-red);
    display: block;
    margin-bottom: 6px;
    letter-spacing: 0.05em;
}
.profile__strength-title {
    font-family: var(--font-sans);
    font-size: var(--font-size-body-small);
    line-height: 1.2;
    margin-bottom: 5px;
    color: var(--color-text-strong);
}
.profile__strength-desc {
    font-family: var(--font-sans);
    font-size: var(--font-size-body-small);
    color: var(--color-text-calm);
    line-height: 1.55;
    word-break: keep-all;
    overflow-wrap: normal;
}

.stamp-verified {
    position: absolute;
    right: 12px;
    bottom: -10px;
    height: 84px;
    transform: rotate(0deg);
    opacity: 0.90;
    z-index: 1;
}

/* =========================================================================
   8. Panel 3: TRACE LOG
   ========================================================================= */

.profile__trace-left {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.profile__trace-info::after {
    content: "";
    display: block;
    height: 1px;
    background-color: var(--color-scroll-thumb);
    width: 170px;
    margin: 26px auto 19px;
}

/* Timeline */
/* Dotted timeline line */
.profile__timeline-item:first-child::before {
    background-color: var(--color-accent-red);
}

/* Route Sketch */
/* =========================================================================
   9. Panel 4: BACKGROUND
   ========================================================================= */
/* Education (Left) */
.deco-clip {
    height: 25px;
    position: absolute;
    top: -12px;
    left: 15px;
}

.deco-arrow {
    position: absolute;
    left: -20px;
    top: 0;
    height: 25px;
}

/* Experience / Interest (Right) */
.profile-card__tags {
    display: flex;
    justify-content: center;
    gap: 3px;
    flex-wrap: wrap;
}
.tag {
    font-family: var(--font-sans);
    font-size: var(--font-size-micro);
    background-color: rgba(220, 150, 160, 0.15); /* Soft pink tone */
    color: #A05060;
    padding: 3px 6px;
    border-radius: 4px;
    white-space: nowrap;
}


.profile__content-inner--trace {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
    padding: 0 4px 4px;
    min-height: 386px;
    height: 98%;
    position: relative;
}

.profile__trace-card {
    position: relative;
    padding: 26px 17px 22px;
    border: 1px solid rgba(46, 64, 96, 0.18);
    border-radius: 5px;
    background: var(--color-paper-base);
    box-shadow: 0 2px 1.9px 0 rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
}
.profile__trace-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    background: url('../images/common/texture_paper_common.jpg') no-repeat;
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.profile__trace-info {
    position: relative;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    text-align: center;
    color: var(--color-text-secondary);
    word-break: keep-all;
    overflow-wrap: normal;
    margin: 0;
}

.profile__trace-info .profile-card__title {
    justify-content: center;
    margin-bottom: 4px;
}

.profile__trace-label {
    display: block;
    font-family: var(--font-typewriter);
    margin-bottom: 18px;
    font-size: var(--font-size-body-small);
    letter-spacing: -0.05em;
    color: var(--color-accent-red);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.profile__trace-info p {
    font-family: var(--font-sans);
    font-size: var(--font-size-body-small);
    line-height: 1.55;
    text-align: center;
    color: var(--color-text-secondary);
    word-break: keep-all;
    overflow-wrap: normal;
    margin: 0;
}

.profile__trace-photo {
    width: 202px;
    margin: 0 auto;
    transform: rotate(-1deg);
    position: absolute;
    bottom: 21px;
    left: 10px;
    text-align: center;
    box-sizing: border-box;
}

.profile__trace-photo::after {
    content: none;
}

.profile__trace-photo img:not(.deco-pin) {
    width: 100%;
    display: block;
    margin-bottom: 0;
}

.profile__trace-record {
    position: relative;
    min-width: 0;
    min-height: 358px;
    padding: 18px 184px 16px 28px;
    border: 1px solid var(--color-scroll-thumb);
    background-color: var(--color-paper-ivory);
    border-radius: 5px;
    box-shadow: 0 2px 1.9px 0 rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
}
.profile__trace-record::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    background: url('../images/common/texture_paper_common.jpg');
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.profile__trace-mid {
    padding: 0;
}

.profile__timeline {
    position: relative;
    padding: 0;
    min-width: 0;
}

.profile__timeline::before {
    content: "";
    position: absolute;
    top: 3px;
    bottom: 5px;
    left: 36px;
    width: 2px;
    background-image: repeating-linear-gradient(
        to bottom,
        var(--color-accent-red) 0,
        var(--color-accent-red) 6px,
        transparent 6px,
        transparent 11px
    );
}

.profile__timeline-item {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    column-gap: 20px;
    min-height: 45px;
    margin-bottom: 0;
    position: relative;
    align-items: center;
}

.profile__timeline-item::before {
    content: "";
    position: absolute;
    left: 31px;
    top: 50%;
    transform: translateY(-50%);
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border-width: 2px;
    border-style: solid;
    border-color: var(--color-accent-red);
    background-color: var(--color-paper-white);
    box-shadow: 0 0 0 2px rgba(255, 250, 244, 0.96);
}

.profile__timeline-item .date {
    font-family: var(--font-typewriter);
    font-size: var(--font-size-body);
    color: rgba(46, 64, 96, 0.68);
    width: auto;
    margin-left: 0;
    text-align: right;
    letter-spacing: -0.02em;
}

.profile__timeline-item .desc {
    font-family: var(--font-sans);
    font-size: var(--font-size-body-large);
    line-height: 1.35;
    color: rgba(29, 38, 54, 0.9);
    word-break: keep-all;
    overflow-wrap: normal;
}

.profile__trace-right {
    position: absolute;
    top: 6px;
    right: -12px;
    width: 231px;
    margin-top: 0;
    transform: rotate(2deg);
    z-index: 2;
}

.profile__trace-right img {
    display: block;
    width: 100%;
}

.profile__content-inner--background {
    grid-template-columns: 390px 28px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    position: relative;
    height: 100%;
    padding: 0 12px 2px 10px;
    min-width: 0;
}

.profile__content-inner--background::after {
    content: none;
}

.profile__bg-left {
    padding-right: 0;
    border-right: 0;
    min-width: 0;
    box-sizing: border-box;
}

.profile__education-stack {
    position: relative;
    top: -8px;
    width: 352px;
    margin: 12px 0 0 8px;
}

.profile__education-paper {
    position: absolute;
    pointer-events: none;
    box-sizing: border-box;
}

.profile__education-paper--back {
    width: 375px;
    height: 392px;
    top: 5px;
    left: 12px;
    background: var(--color-paper-folder);
    box-shadow: 0 4px 2.5px 0 rgba(0, 0, 0, 0.25);
    transform: rotate(2.4deg);
    z-index: 1;
}

.profile__education-paper--back::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/common/texture_paper_beige.jpg') no-repeat;
    opacity: 0.51;
}

.profile__education-wrapper {
    position: relative;
    width: 377px;
    height: 395px;
    margin: 0;
    padding: 22px 26px 24px;
    background-color: var(--color-paper-note);
    box-shadow: -1px 3px 6.9px 0 rgba(0, 0, 0, 0.25);
    transform: rotate(-3deg);
    box-sizing: border-box;
    z-index: 2;
}

.profile__education-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/common/texture_paper_beige.jpg') no-repeat;
    opacity: 0.6;
}

.profile__education-wrapper::after {
    content: "";
    position: absolute;
    right: 146px;
    bottom: -19px;
    width: 109px;
    height: 35px;
    background: var(--color-tape-strong);
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.profile__education-wrapper .deco-clip {
    height: 108px;
    top: -42px;
    left: -4px;
    z-index: 3;
    transform: rotate(31deg);
}

.profile__education-wrapper .profile-card__title {
    position: relative;
    margin: 0 0 15px 40px;
}

.profile__education-wrapper .profile-table {
    position: relative;
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-sans);
    margin-bottom: 15px;
    border: 1px solid var(--color-scroll-thumb);
    font-size: var(--font-size-body-small);
    line-height: 1.35;
    table-layout: fixed;
}

.profile__education-wrapper .profile-table th,
.profile__education-wrapper .profile-table td {
    padding: 9px 12px;
    border-bottom: 1px solid rgba(46, 64, 96, 0.16);
    border-right: 1px solid rgba(46, 64, 96, 0.16);
    word-break: keep-all;
    overflow-wrap: break-word;
    vertical-align: middle;
}

.profile__education-wrapper .profile-table th {
    font-family: var(--font-typewriter);
    color: var(--color-text-secondary);
    text-align: left;
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: var(--font-size-micro);
}

.profile__education-wrapper .profile-table th:first-child,
.profile__education-wrapper .profile-table td:first-child {
    width: 30px;
    text-align: center;
}

.profile__education-wrapper .profile-table th:last-child,
.profile__education-wrapper .profile-table td:last-child {
    border-right: 0;
    text-align: left;
}

.profile__education-status {
    position: relative;
    padding-left: 14px;
}

.profile__education-status .status-label {
    display: block;
    margin-bottom: 6px;
    font-family: var(--font-typewriter);
    font-size: var(--font-size-micro);
    color: var(--color-accent-red);
}

.profile__education-status p {
    margin: 0;
    font-family: var(--font-sans);
    font-size: var(--font-size-body);
    line-height: 1.5;
    color: var(--color-text-default);
    word-break: keep-all;
    overflow-wrap: normal;
}

.profile__education-status .deco-arrow {
    left: -58px;
    top: -49px;
    height: 91px;
    transform: rotate(19deg);
}

.profile__bg-divider::before {
    content: "";
    position: absolute;
    left: calc(390px + 46px);
    top: 8px;
    bottom: 0px;
    width: 1px;
    background: linear-gradient(to bottom, var(--color-scroll-thumb) 0%, var(--color-scroll-thumb) 33%, transparent 33%, transparent 66%, var(--color-scroll-thumb) 66%, var(--color-scroll-thumb) 100%);
    pointer-events: none;
    z-index: 1;
}

.profile__bg-divider::after {
    content: "BACKGROUND RECORD";
    position: absolute;
    left: calc(390px + 46px);
    top: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    font-family: var(--font-label);
    font-size: var(--font-size-micro);
    letter-spacing: 0.08em;
    line-height: 1;
    color: var(--color-line-brown-text);
    white-space: nowrap;
    pointer-events: none;
    z-index: 1;
}

.profile__bg-right {
    padding-left: 0;
    min-width: 0;
    box-sizing: border-box;
    margin-top: -36px;
}

.profile__experience-header {
    margin-bottom: 18px;
}

.profile__experience-header .profile-card__title {
    margin-bottom: 5px;
}

.profile__experience-header .profile__bg-label {
    display: block;
    font-family: var(--font-typewriter);
    margin-bottom: 0;
    font-size: var(--font-size-body-small);
    color: var(--color-accent-red);
}

.profile__bg-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    min-width: 0;
    box-sizing: border-box;
}

.background-card {
    position: relative;
    min-height: 244px;
    padding: 14px 10px 12px;
    border: 0;
    background-color: #F8EFE6;
    box-shadow: 2px 5px 8px rgba(38, 30, 22, 0.13);
    text-align: center;
    min-width: 0;
    word-break: keep-all;
    overflow-wrap: normal;
    box-sizing: border-box;
}

.background-card::before {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(46, 64, 96, 0.14);
    pointer-events: none;
}

.background-card__photo {
    height: 102px;
    margin: 0 0 10px;
    background-color: rgba(255, 250, 244, 0.82);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.background-card__photo .deco-pin {
    position: absolute;
    top: -9px;
    left: 50%;
    transform: translateX(-50%);
    height: 17px;
}

.background-card__photo img:not(.deco-pin) {
    height: 48px;
}

.background-card .profile-card__title {
    justify-content: center;
    margin-bottom: 9px;
    font-family: var(--font-sans);
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-bold);
    letter-spacing: 0;
}

.background-card .profile-card__title::after {
    content: "";
    display: block;
    position: absolute;
    left: 24px;
    right: 24px;
    top: 145px;
    height: 1px;
    background-color: rgba(46, 64, 96, 0.16);
}

.background-card .profile-card__body {
    margin-bottom: 13px;
    font-size: var(--font-size-body-small);
    line-height: 1.6;
    color: rgba(29, 38, 54, 0.82);
}

.background-card .profile-card__tags {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -40px;
    gap: 8px;
}

.background-card .tag {
    border-radius: 4px;
    background-color: rgba(190, 80, 104, 0.78);
    color: var(--color-paper-white);
    font-size: var(--font-size-body-small);
    padding: 4px 9px;
}
