/* =========================================================
   CAMELMARK
   Main Stylesheet
========================================================= */


/* =========================================================
   01. VARIABLES
========================================================= */

:root {

    /* Colors */
    --bg-main: #f4f3ef;
    --bg-secondary: #ebe9e3;
    --bg-dark: #171717;

    --text-main: #171717;
    --text-sub: #77746d;
    --text-light: #f4f3ef;

    --line: #d5d2ca;
    --accent: #b66f49;

    /* Navbar */
    --navbar-bg: rgba(244, 243, 239, 0.90);
    --navbar-height: 8vh;

    /* Fonts */
    --font-main:
        "Pretendard",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    --font-title:
        "Pretendard",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    /* Transitions */
    --transition-fast: 0.25s ease;
    --transition-normal: 0.4s ease;

    --transition-image:
        transform 0.7s cubic-bezier(0.2, 0.6, 0.3, 1);

    --hero-reveal-size: 160vmax;
}

@property --hero-reveal-size {
    syntax: "<length>";
    inherits: false;
    initial-value: 0.3rem;
}


/* =========================================================
   02. RESET
========================================================= */

html {
    scroll-behavior: smooth;
}

body {

    margin: 0;
    padding: 0;

    background: var(--bg-main);
    color: var(--text-main);

    font-family: var(--font-main);

    font-size: 16px;
    line-height: 1.6;

    -webkit-font-smoothing: antialiased;

    overflow-x: hidden;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img {
    display: block;
    width: 100%;
    height: auto;
}

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

button {
    font: inherit;
}


/* =========================================================
   03. NAVBAR
========================================================= */

#mainNavbar {

    position: fixed;

    top: 0;
    left: 0;
    right: 0;

    z-index: 1000;

    width: 100%;
    height: var(--navbar-height);

    min-height: 64px;

    background: var(--navbar-bg);

    border-bottom: 1px solid transparent;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    transition:
        background var(--transition-normal),
        border-color var(--transition-normal),
        box-shadow var(--transition-normal);
}


/* Navbar 내부 */

#mainNavbar .container-fluid {

    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;
    justify-content: space-between;

    padding-left: 4vw !important;
    padding-right: 4vw !important;
}


/* ---------------------------------------------------------
   LOGO
--------------------------------------------------------- */

.site-logo {

    display: inline-flex;
    align-items: center;

    margin: 0;
    padding: 0;

    color: var(--text-main) !important;

    font-family: var(--font-title);

    font-size: clamp(
        18px,
        1.4vw,
        24px
    );

    font-weight: 600;

    line-height: 1;
    letter-spacing: 0.12em;

    white-space: nowrap;
}


/* ---------------------------------------------------------
   NAVIGATION
--------------------------------------------------------- */

.navbar-nav {

    display: flex;

    flex-direction: row;

    align-items: center;

    gap: clamp(
        18px,
        2vw,
        36px
    );

    margin: 0;
    padding: 0;
}

.nav-item {
    margin: 0;
    padding: 0;
}

.nav-link {

    position: relative;

    display: inline-flex;
    align-items: center;

    margin: 0;
    padding: 0 !important;

    color: var(--text-sub) !important;

    font-size: clamp(
        15px,
        1.05vw,
        18px
    );

    font-weight: 500;

    line-height: 1;
    letter-spacing: 0.03em;

    transition:
        color var(--transition-fast),
        transform var(--transition-fast);
}

.nav-link::after {

    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: -9px;

    height: 1px;

    background: currentColor;

    transform: scaleX(0);

    transform-origin: center;

    transition:
        transform var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {

    color: var(--text-main) !important;

    transform: translateY(-1px);
}

.nav-link:hover::after,
.nav-link.active::after {

    transform: scaleX(1);
}


/* ---------------------------------------------------------
   MOBILE NAV BUTTON
--------------------------------------------------------- */

.navbar-toggler {

    padding: 0.35rem;

    border: none;
    outline: none;
}

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

.navbar-toggler-icon {

    width: 1.4rem;
    height: 1.4rem;
}


/* =========================================================
   04. COMMON
========================================================= */

.section-padding {

    padding-top: 12vh;
    padding-bottom: 12vh;
}

.section-header {

    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    margin-bottom: 5vh;
}

.section-number {

    display: block;

    margin: 0;

    color: var(--text-sub);

    font-size: clamp(
        12px,
        0.9vw,
        15px
    );

    font-weight: 600;

    line-height: 1;
    letter-spacing: 0.12em;
}

.section-header h2 {

    margin: 0;

    font-size: clamp(
        38px,
        4vw,
        78px
    );

    font-weight: 500;

    line-height: 0.95;
    letter-spacing: -0.05em;
}


/* =========================================================
   05. HERO
========================================================= */

.hero-section {

    position: relative;

    width: 100%;

    height: 88vh;
    min-height: 640px;

    margin-top: var(--navbar-height);

    padding: 0 5vw;

    display: flex;
    align-items: center;

    overflow: hidden;
}

.hero-section::after {

    content: "";

    position: absolute;
    inset: 0;

    z-index: 1;

    display: none;

    pointer-events: none;
}


/* ---------------------------------------------------------
   HERO WRAPPER
--------------------------------------------------------- */

.hero-wrapper {

    width: 100%;
    height: 100%;

    display: grid;
    grid-template-columns: minmax(280px, 0.42fr) minmax(0, 0.58fr);
    gap: clamp(2rem, 5vw, 5rem);

    align-items: center;
}


/* ---------------------------------------------------------
   HERO TEXT AREA
--------------------------------------------------------- */

.hero-content {

    position: relative;
    z-index: 2;

    width: min(620px, 100%);

    padding-right: 0;

    text-shadow: none;
}

.hero-label {

    margin: 0 0 2vh;

    color: var(--text-sub);

    font-size: clamp(
        13px,
        1vw,
        17px
    );

    font-weight: 600;

    line-height: 1;
    letter-spacing: 0.12em;
}

.hero-title {
    margin: 0;

    color: var(--text-main);

    font-family: var(--font-title);

    font-size: clamp(
        24px,
        2vw,
        34px
    );

    font-weight: 500;

    line-height: 1.2;

    letter-spacing: -0.03em;
}


.hero-description {

    max-width: 38vw;

    margin: 3vh 0 0;

    color: var(--text-sub);

    font-size: clamp(
        18px,
        1.5vw,
        28px
    );

    font-weight: 400;

    line-height: 1.7;
}

.hero-link-buttons {

    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 0.55rem;

    margin-top: 1.6rem;
}

.hero-link-buttons a {

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 92px;
    min-height: 34px;

    padding: 0 0.9rem;

    border: 1px solid var(--text-main);
    border-radius: 3px;

    color: var(--text-main);
    background: rgba(255,255,255,0.18);

    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.05em;

    transition:
        color var(--transition-fast),
        background var(--transition-fast),
        transform var(--transition-fast);
}

.hero-link-buttons a:hover {

    color: var(--text-light);
    background: var(--text-main);

    transform: translateY(-1px);
}


/* ---------------------------------------------------------
   HERO IMAGE
--------------------------------------------------------- */

.hero-image {

    position: relative;
    z-index: 0;

    width: 100%;

    height: min(70vh, 720px);
    max-height: 720px;

    overflow: hidden;

    background: #dedbd3;
    border-radius: 8px;
    box-shadow: 0 28px 80px rgba(23, 23, 23, 0.13);

    -webkit-mask-image:
        radial-gradient(
            circle at 72% 50%,
            #000 0,
            #000 var(--hero-reveal-size),
            rgba(0, 0, 0, 0) calc(var(--hero-reveal-size) + 4rem)
        );
    mask-image:
        radial-gradient(
            circle at 72% 50%,
            #000 0,
            #000 var(--hero-reveal-size),
            rgba(0, 0, 0, 0) calc(var(--hero-reveal-size) + 4rem)
        );

    animation: heroCircleReveal 1.35s cubic-bezier(0.18, 0.72, 0.2, 1) 0.15s both;
}

.hero-image img {

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;

    transition: var(--transition-image);
}

.hero-image:hover img {
    transform: scale(1.018);
}

@keyframes heroCircleReveal {

    0% {
        --hero-reveal-size: 0.35rem;
    }

    100% {
        --hero-reveal-size: 160vmax;
    }
}


/* =========================================================
   FEATURED
========================================================= */

.featured-section {
    padding: 12vh 5vw;
}


/* ---------------------------------------------------------
   SECTION HEADER
--------------------------------------------------------- */

.featured-section .section-header {

    display: flex;

    align-items: baseline;

    justify-content: space-between;

    margin-bottom: 5vh;
}


.featured-section .section-number {

    font-size: 13px;

    line-height: 1;

    letter-spacing: 0.12em;
}


.featured-section .section-header h2 {

    margin: 0;

    font-size: clamp(
        18px,
        1.4vw,
        24px
    );

    font-weight: 500;

    line-height: 1;

    letter-spacing: -0.03em;
}


/* ---------------------------------------------------------
   FEATURED GRID
--------------------------------------------------------- */

.featured-grid {

    display: grid;

    grid-template-columns: 1.55fr 0.8fr;

    gap: 2.5vw;

    width: 100%;
}


/* ---------------------------------------------------------
   IMAGE 2
   왼쪽의 큰 이미지
--------------------------------------------------------- */

.featured-main {

    width: 100%;
}


.featured-main .featured-image {

    width: 100%;

    aspect-ratio: 4 / 3;

    overflow: hidden;

    background: #dedbd3;
}


/* ---------------------------------------------------------
   IMAGE 3 / IMAGE 4
   오른쪽의 작은 이미지 2개
--------------------------------------------------------- */

.featured-side {

    display: grid;

    grid-template-rows: 1fr 1fr;

    gap: 2.5vw;

    width: 100%;
}


.featured-side .featured-image {

    width: 100%;

    aspect-ratio: 16 / 10;

    overflow: hidden;

    background: #dedbd3;
}


/* ---------------------------------------------------------
   COMMON IMAGE
--------------------------------------------------------- */

.featured-image img {

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    object-position: center;

    transition:
        transform 0.7s cubic-bezier(0.2, 0.6, 0.3, 1);
}


.featured-item:hover .featured-image img {

    transform: scale(1.03);
}


/* ---------------------------------------------------------
   FEATURE TEXT
--------------------------------------------------------- */

.featured-info {

    padding-top: 1rem;
}


.featured-info span {

    display: block;

    margin-bottom: 0.25rem;

    color: var(--text-sub);

    font-size: 12px;

    line-height: 1.2;

    letter-spacing: 0.08em;
}


.featured-info h3 {

    margin: 0;

    font-size: clamp(
        16px,
        1.2vw,
        21px
    );

    font-weight: 500;

    line-height: 1.2;

    letter-spacing: -0.03em;
}


/* =========================================================
   07. SINGLE FEATURE
========================================================= */

.single-feature-section {

    padding: 8vh 5vw 12vh;
}

.single-feature {
    display: block;
    width: 100%;
}

.single-feature-image {

    width: 100%;

    height: 62vh;

    overflow: hidden;

    background: var(--bg-secondary);
}

.single-feature-image img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: var(--transition-image);
}

.single-feature:hover .single-feature-image img {
    transform: scale(1.025);
}

.single-feature-info {

    display: flex;

    align-items: baseline;
    justify-content: space-between;

    gap: 2rem;

    padding-top: 1.5rem;
}

.single-feature-info span {

    color: var(--text-sub);

    font-size: 0.8rem;

    letter-spacing: 0.1em;
}

.single-feature-info h2 {

    margin: 0;

    font-size: clamp(
        34px,
        4vw,
        78px
    );

    font-weight: 500;

    line-height: 1;

    letter-spacing: -0.05em;
}


/* =========================================================
   08. INTRO
========================================================= */

.intro-section {

    padding: 12vh 5vw;

    background: var(--bg-secondary);
}

.intro-wrapper {

    display: grid;

    grid-template-columns: 18% 82%;
}

.intro-content {
    max-width: 1000px;
}

.intro-content h2 {

    margin: 0;

    font-size: clamp(
        42px,
        4.8vw,
        92px
    );

    font-weight: 500;

    line-height: 1.08;

    letter-spacing: -0.055em;
}

.intro-content p {

    max-width: 760px;

    margin: 4vh 0 0;

    color: var(--text-sub);

    font-size: clamp(
        17px,
        1.25vw,
        23px
    );

    line-height: 1.8;
}


/* =========================================================
   09. SIMPLE LINK
========================================================= */

.simple-link {

    position: relative;

    display: inline-flex;

    align-items: center;

    gap: 0.6rem;

    margin-top: 2.5rem;

    padding-bottom: 0.4rem;

    border-bottom: 1px solid currentColor;

    color: var(--text-main);

    font-size: clamp(
        13px,
        0.85vw,
        16px
    );

    font-weight: 600;

    letter-spacing: 0.08em;

    transition:
        gap var(--transition-fast),
        color var(--transition-fast);
}

.simple-link:hover {

    gap: 1rem;

    color: var(--accent);
}


/* =========================================================
   10. PROJECT PREVIEW
========================================================= */

.project-preview-section {

    padding: 12vh 5vw;
}

.project-preview-grid {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 2vw;
}

.project-preview {

    display: block;

    width: 100%;
}

.project-preview-image {

    width: 100%;

    aspect-ratio: 4 / 3;

    overflow: hidden;

    background: var(--bg-secondary);
}

.project-preview-image img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: var(--transition-image);
}

.project-preview:hover .project-preview-image img {
    transform: scale(1.04);
}

.project-preview-text {
    padding-top: 1rem;
}

.project-preview-text span {

    font-size: clamp(
        18px,
        1.3vw,
        24px
    );

    font-weight: 500;

    letter-spacing: -0.02em;
}

.section-more {
    text-align: right;
}


/* =========================================================
   11. FINAL IMAGE
========================================================= */

.final-image-section {

    width: 100%;

    padding-top: 4vh;
    padding-bottom: 0;
}

.final-image {

    width: 100%;

    height: 75vh;

    overflow: hidden;

    background: var(--bg-secondary);
}

.final-image img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: var(--transition-image);
}

.final-image:hover img {
    transform: scale(1.02);
}


/* =========================================================
   12. CONTACT
========================================================= */

.contact-section {

    padding: 14vh 5vw;

    background: var(--bg-dark);

    color: var(--text-light);
}

.contact-section .section-number {
    color: rgba(255,255,255,0.5);
}

.contact-section h2 {

    margin: 3vh 0 0;

    font-family: var(--font-title);

    font-size: clamp(
        64px,
        8vw,
        170px
    );

    font-weight: 500;

    line-height: 0.9;

    letter-spacing: -0.07em;
}

.contact-section .simple-link {

    color: var(--text-light);

    border-bottom-color: rgba(255,255,255,0.5);
}


/* =========================================================
   13. FOOTER
========================================================= */

.site-footer {

    width: 100%;

    padding: 1.5rem 5vw;

    background: var(--bg-dark);

    color: rgba(255,255,255,0.55);

    border-top: 1px solid rgba(255,255,255,0.12);

    font-size: 0.75rem;

    letter-spacing: 0.08em;
}

.footer-inner {

    width: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 2rem;
}

.footer-center {

    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 0.9rem;

    text-align: center;
}

.footer-social {

    display: inline-flex;
    align-items: center;

    gap: 0.45rem;
}

.footer-social a {

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;

    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 999px;

    color: rgba(255,255,255,0.72);

    transition:
        color var(--transition-fast),
        border-color var(--transition-fast),
        background var(--transition-fast),
        transform var(--transition-fast);
}

.footer-social a:hover {

    color: #fff;
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.55);

    transform: translateY(-1px);
}

.footer-social i {
    font-size: 0.95rem;
    line-height: 1;
}


/* =========================================================
   14. ACTIVITY
========================================================= */

.activity-page {

    min-height: 100vh;

    background:
        linear-gradient(180deg, #f8f6ef 0%, var(--bg-main) 46%, #eeece6 100%);
}

.activity-header {

    padding-top: calc(var(--navbar-height) + clamp(4.5rem, 9vh, 7.5rem));
    padding-bottom: clamp(2.5rem, 6vh, 4.5rem);
}

.activity-kicker {

    margin: 0 0 1.2rem;

    color: var(--text-sub);

    font-size: 12px;
    font-weight: 700;

    line-height: 1;
    letter-spacing: 0.16em;
}

.activity-header h1 {

    margin: 0;

    font-family: var(--font-title);
    font-size: clamp(34px, 4.4vw, 72px);
    font-weight: 560;

    line-height: 1;
    letter-spacing: 0;
}

.activity-header p:last-child {

    max-width: 620px;

    margin: 1.5rem 0 0;

    color: var(--text-sub);

    font-size: clamp(15px, 1.2vw, 19px);
    line-height: 1.75;
}

.activity-year-nav {

    position: sticky;
    top: var(--navbar-height);
    z-index: 900;

    width: 100%;

    padding: 0.75rem 0;

    background: rgba(244, 243, 239, 0.88);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.activity-year-list {

    display: flex;
    align-items: center;

    gap: 0.45rem;

    overflow-x: auto;
    scrollbar-width: none;
}

.activity-year-list::-webkit-scrollbar {
    display: none;
}

.activity-year-button {

    flex: 0 0 auto;

    min-width: 64px;
    min-height: 34px;

    padding: 0 0.8rem;

    border: 1px solid var(--line);
    border-radius: 999px;

    background: rgba(255,255,255,0.28);
    color: var(--text-sub);

    font-size: 12px;
    font-weight: 700;

    line-height: 1;
    letter-spacing: 0.06em;

    transition:
        color var(--transition-fast),
        background var(--transition-fast),
        border-color var(--transition-fast),
        transform var(--transition-fast);
}

.activity-year-button:hover,
.activity-year-button.active {

    color: var(--text-light);
    background: var(--bg-dark);
    border-color: var(--bg-dark);

    transform: translateY(-1px);
}

.activity-content {

    padding-top: clamp(3rem, 7vh, 5.5rem);
    padding-bottom: clamp(5rem, 10vh, 8rem);
}

.activity-panel {
    display: none;
}

.activity-panel.active {
    display: block;
}

.activity-panel-head {

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 1.5rem;

    margin-bottom: clamp(1.5rem, 4vw, 3rem);
    padding-bottom: 1rem;

    border-bottom: 1px solid var(--text-main);
}

.activity-panel-head span {

    color: var(--text-sub);

    font-size: 13px;
    font-weight: 700;

    line-height: 1;
    letter-spacing: 0.12em;
}

.activity-panel-head h2 {

    margin: 0;

    font-size: clamp(24px, 3vw, 48px);
    font-weight: 560;

    line-height: 1;
    letter-spacing: 0;
}

.activity-grid {

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    grid-auto-flow: row;

    gap: clamp(0.9rem, 2vw, 1.8rem);
}

.activity-photo-frame {

    width: 100%;
    aspect-ratio: 4 / 3;

    border: 1.5px solid var(--text-main);
    border-radius: 8px;

    background:
        linear-gradient(135deg, rgba(23, 23, 23, 0.04), rgba(23, 23, 23, 0));
}

.activity-photo-frame img {

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;

    border-radius: 7px;
}

.activity-note-list {

    display: grid;
    gap: 0.55rem;

    max-width: 820px;

    margin: clamp(1.4rem, 3vw, 2.4rem) 0 0;
    padding-left: 1.1rem;

    color: var(--text-sub);

    font-size: clamp(14px, 1.05vw, 17px);
    line-height: 1.75;
}


/* =========================================================
   15. SUBPAGES
========================================================= */

.subpage {

    min-height: 100vh;

    background:
        linear-gradient(180deg, #f8f6ef 0%, var(--bg-main) 46%, #eeece6 100%);
}

.page-header {

    padding-top: calc(var(--navbar-height) + clamp(4.5rem, 9vh, 7.5rem));
    padding-bottom: clamp(2.5rem, 6vh, 4.5rem);
}

.eyebrow,
.small-label {

    margin: 0 0 1rem;

    color: var(--text-sub);

    font-size: 12px;
    font-weight: 700;

    line-height: 1;
    letter-spacing: 0.16em;
}

.page-header h1 {

    margin: 0;

    font-family: var(--font-title);
    font-size: clamp(34px, 4.4vw, 72px);
    font-weight: 560;

    line-height: 1;
    letter-spacing: 0;
}

.page-header p:last-child {

    max-width: 620px;

    margin: 1.5rem 0 0;

    color: var(--text-sub);

    font-size: clamp(15px, 1.2vw, 19px);
    line-height: 1.75;
}

.portfolio-section,
.photo-gallery-section,
.log-text-section {

    padding-top: clamp(2rem, 5vh, 4rem);
    padding-bottom: clamp(5rem, 10vh, 8rem);
}

.portfolio-project {

    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.65fr);
    gap: clamp(1.5rem, 4vw, 4rem);

    align-items: center;

    padding: clamp(2rem, 5vw, 4rem) 0;

    border-top: 1px solid var(--line);
}

.portfolio-project:last-child {
    border-bottom: 1px solid var(--line);
}

.portfolio-project.reverse {
    grid-template-columns: minmax(280px, 0.65fr) minmax(0, 0.95fr);
}

.portfolio-project.reverse .portfolio-image {
    order: 2;
}

.portfolio-image {

    width: 100%;
    aspect-ratio: 4 / 3;

    overflow: hidden;

    background: var(--bg-secondary);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.portfolio-image img {

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition: var(--transition-image);
}

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

.portfolio-info h2 {

    margin: 0;

    font-size: clamp(22px, 2.4vw, 42px);
    font-weight: 560;

    line-height: 1.08;
    letter-spacing: 0;
}

.portfolio-info p:not(.small-label) {

    margin: 1rem 0 0;

    color: var(--text-sub);

    font-size: clamp(14px, 1.05vw, 17px);
    line-height: 1.75;
}

.tag-list {

    display: flex;
    flex-wrap: wrap;

    gap: 0.45rem;

    margin-top: 1.3rem;
}

.tag-list span {

    display: inline-flex;
    align-items: center;

    min-height: 30px;

    padding: 0 0.75rem;

    border: 1px solid var(--line);
    border-radius: 999px;

    color: var(--text-sub);
    background: rgba(255,255,255,0.22);

    font-size: 12px;
    font-weight: 650;
    line-height: 1;
}

.photo-grid {

    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));

    gap: clamp(0.8rem, 1.6vw, 1.3rem);
}

.photo-item {

    position: relative;

    display: block;

    width: 100%;
    aspect-ratio: 1 / 1;

    padding: 0;

    overflow: hidden;

    border: 1px solid var(--line);
    border-radius: 8px;

    background: var(--bg-secondary);
    color: var(--text-light);

    cursor: pointer;

    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-fast),
        transform var(--transition-fast);
}

.photo-item:hover,
.photo-item:focus-visible {

    border-color: rgba(23, 23, 23, 0.45);
    box-shadow: 0 18px 46px rgba(23, 23, 23, 0.14);

    transform: scale(1.025);
}

.photo-item:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.photo-item img {

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition: transform 0.45s ease;
}

.photo-item:hover img,
.photo-item:focus-visible img {
    transform: scale(1.035);
}

.photo-lightbox {

    position: fixed;
    inset: 0;
    z-index: 2000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: clamp(1rem, 4vw, 3rem);

    background: rgba(0, 0, 0, 0.76);

    opacity: 0;
    pointer-events: none;

    transition: opacity var(--transition-normal);
}

.photo-lightbox.active {

    opacity: 1;
    pointer-events: auto;
}

.photo-lightbox-frame {

    max-width: min(1120px, 92vw);
    max-height: 86vh;
}

.photo-lightbox-frame img {

    width: auto;
    max-width: 100%;
    max-height: 78vh;

    margin: 0 auto;

    object-fit: contain;

    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

.log-text-list {

    display: grid;
    gap: 0.55rem;

    max-width: 960px;

    padding-top: 1rem;

    border-top: 1px solid var(--text-main);
}

.log-text-list p {

    margin: 0;

    color: var(--text-main);

    font-size: clamp(14px, 1.05vw, 17px);
    line-height: 1.7;
}

/* =========================================================
   16. IMAGE AREA
========================================================= */

.featured-image,
.single-feature-image,
.project-preview-image,
.final-image {

    position: relative;
}


/* =========================================================
   17. SCROLL REVEAL
========================================================= */

.reveal {

    opacity: 0;

    transform: translateY(30px);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.reveal.visible {

    opacity: 1;

    transform: translateY(0);
}


/* =========================================================
   18. DESKTOP LOCK
========================================================= */

@media (min-width: 992px) {

    .home-document {
        height: 100vh;
        overflow: hidden;
    }

    .home-page {
        height: 100vh;
        overflow: hidden;
    }

    .home-page .hero-section {
        height: calc(100vh - var(--navbar-height) - 64px);
        min-height: 0;
    }

    .home-page .site-footer {

        min-height: 64px;
        padding-top: 0;
        padding-bottom: 0;

        display: flex;
        align-items: center;
    }

}


/* =========================================================
   19. TABLET
========================================================= */

@media (max-width: 991.98px) {

    :root {
        --navbar-height: 70px;
    }


    /* Navbar */

    #mainNavbar {
        height: var(--navbar-height);

        background:
            rgba(244, 243, 239, 0.96);
    }

    #mainNavbar .container-fluid {

        padding-left: 5vw !important;
        padding-right: 5vw !important;

        flex-wrap: wrap;
    }

    .navbar-collapse {

        width: 100%;

        margin-top: 0.8rem;

        padding: 1.2rem 0;

        background:
            rgba(244, 243, 239, 0.98);

        border-top: 1px solid var(--line);

        border-bottom: 1px solid var(--line);
    }

    .navbar-nav {

        width: 100%;

        flex-direction: column;

        align-items: flex-start;

        gap: 1rem;
    }

    .nav-link {

        padding: 0.4rem 0 !important;

        font-size: 16px;
    }

    .nav-link::after {
        bottom: 0;
    }


    /* Hero */

    .hero-section {

        height: auto;

        min-height: auto;

        margin-top: var(--navbar-height);

        padding: 8vh 5vw;
    }

    .hero-wrapper {

        height: auto;

        grid-template-columns: 1fr;
        gap: 5vh;
    }

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

    .hero-title {

        font-size: clamp(
            24px,
            5vw,
            46px
        );
    }

    .hero-description {

        max-width: 100%;

        font-size: clamp(
            17px,
            2.2vw,
            23px
        );
    }

    .hero-image {

        height: auto;
        aspect-ratio: 4 / 3;

        max-height: none;
    }


    /* Featured */

    .featured-section {
        padding-left: 5vw;
        padding-right: 5vw;
    }

    .featured-grid {

        grid-template-columns: 1fr;

        gap: 3vh;
    }

    .featured-main {
        min-height: 60vh;
    }

    .featured-side {

        min-height: auto;

        grid-template-columns: 1fr 1fr;

        grid-template-rows: none;

        gap: 3vw;
    }


    /* Single feature */

    .single-feature-section {
        padding-left: 5vw;
        padding-right: 5vw;
    }

    .single-feature-image {
        height: 55vh;
    }


    /* Intro */

    .intro-section {
        padding-left: 5vw;
        padding-right: 5vw;
    }

    .intro-wrapper {

        grid-template-columns: 1fr;

        gap: 4vh;
    }

    .intro-content h2 {

        font-size: clamp(
            38px,
            7vw,
            72px
        );
    }


    /* Project */

    .project-preview-section {
        padding-left: 5vw;
        padding-right: 5vw;
    }

    .project-preview-grid {

        grid-template-columns: 1fr 1fr;

        gap: 3vw;
    }


    /* Final */

    .final-image {
        height: 60vh;
    }


    /* Contact */

    .contact-section {
        padding-left: 5vw;
        padding-right: 5vw;
    }


    /* Activity */

    .activity-header {
        padding-top: calc(var(--navbar-height) + 3.5rem);
    }

    .activity-year-nav {
        top: var(--navbar-height);
    }

    .activity-panel-head {
        display: block;
    }

    .activity-panel-head h2 {
        margin-top: 0.7rem;
    }

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

    .portfolio-project,
    .portfolio-project.reverse {
        grid-template-columns: 1fr;
    }

    .portfolio-project.reverse .portfolio-image {
        order: 0;
    }

}


/* =========================================================
   17. MOBILE
========================================================= */

@media (max-width: 575.98px) {

    /* Common */

    .section-padding {
        padding-top: 9vh;
        padding-bottom: 9vh;
    }


    /* Navbar */

    #mainNavbar .container-fluid {

        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }

    .site-logo {
        font-size: 16px;
    }

    .nav-link {
        font-size: 15px;
    }


    /* Hero */

    .hero-section {

        min-height: auto;

        padding: 7vh 1.25rem;
    }

    .hero-label {
        font-size: 13px;
    }

    .hero-title {

        font-size: clamp(
            24px,
            8vw,
            34px
        );
    }

    .hero-description {

        font-size: 17px;

        line-height: 1.7;
    }

    .hero-image {
        height: auto;
        aspect-ratio: 4 / 3;
    }


    /* Section header */

    .section-header {

        display: block;

        margin-bottom: 4vh;
    }

    .section-header h2 {
        margin-top: 1rem;
    }


    /* Featured */

    .featured-section {

        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .featured-main {
        min-height: 50vh;
    }

    .featured-side {

        grid-template-columns: 1fr;

        gap: 4vh;
    }

    .featured-side .featured-item {
        min-height: 42vh;
    }


    /* Single Feature */

    .single-feature-section {

        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .single-feature-image {
        height: 45vh;
    }

    .single-feature-info {
        display: block;
    }

    .single-feature-info h2 {
        margin-top: 0.7rem;
    }


    /* Intro */

    .intro-section {

        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .intro-content h2 {

        font-size: clamp(
            34px,
            10vw,
            52px
        );
    }


    /* Project */

    .project-preview-section {

        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .project-preview-grid {

        grid-template-columns: 1fr;

        gap: 5vh;
    }


    /* Final */

    .final-image {
        height: 50vh;
    }


    /* Contact */

    .contact-section {

        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .contact-section h2 {

        font-size: clamp(
            52px,
            15vw,
            84px
        );
    }


    /* Footer */

    .site-footer {

        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .footer-inner {

        flex-direction: column;

        align-items: center;

        gap: 0.6rem;
    }

    .activity-grid {
        grid-template-columns: 1fr;
    }

    .page-header {
        padding-top: calc(var(--navbar-height) + 3.5rem);
    }

    .portfolio-project {
        padding: 2rem 0;
    }

    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
    }

}
