
/* =========================================
   KARAN — PERSONAL WEBSITE
   Theme: Dark / Ember
   ========================================= */

:root {
    --background: #101010;
    --surface: #171717;
    --surface-hover: #1e1e1e;

    --text: #eeeeea;
    --muted: #999995;
    --border: #292929;

    --accent: #e58b53;
    --accent-light: #f1aa79;

    --container: 1120px;
}


/* RESET */

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

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

body {
    background: var(--background);
    color: var(--text);
    font-family: Inter, "Segoe UI", sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
}

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

button {
    font: inherit;
}

.container {
    width: min(var(--container), 88%);
    margin-inline: auto;
}

.section-padding {
    padding-block: 110px;
}


/* TYPOGRAPHY */

h1, h2, h3 {
    line-height: 1.15;
    letter-spacing: -0.045em;
}

h1 {
    font-size: clamp(3.2rem, 7vw, 6.2rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(2.3rem, 4.5vw, 4rem);
}

h3 {
    font-size: 1.55rem;
}

.accent-text {
    color: var(--accent);
}

.eyebrow {
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    margin-bottom: 24px;
}


/* NAVIGATION */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(16, 16, 16, 0.88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.navbar {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-container {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.08em;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 38px;
}

.nav-links a {
    color: var(--muted);
    font-size: 0.88rem;
    transition: color 0.25s ease;
}

.nav-links a:hover {
    color: var(--accent-light);
}

.nav-links a.active {
    color: var(--accent);
}

.availability {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: 0.78rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #83bb85;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(131, 187, 133, 0.5);
}

.menu-toggle {
    display: none;
}


/* HERO */

.hero {
    min-height: 700px;
    position: relative;
    display: flex;
    align-items: center;
    padding-block: 110px 130px;
}

.hero-content {
    max-width: 680px;
    position: relative;
    z-index: 2;
}

.hero-description {
    color: var(--muted);
    max-width: 520px;
    font-size: 1.05rem;
    margin-top: 28px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 36px;
}

.button {
    min-height: 48px;
    padding: 12px 21px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 5px;
    font-size: 0.88rem;
    font-weight: 600;
    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.button:hover {
    transform: translateY(-3px);
}

.button-primary {
    background: var(--accent);
    color: #17110d;
}

.button-primary:hover {
    background: var(--accent-light);
}

.button-secondary {
    border: 1px solid var(--border);
    color: var(--text);
}

.button-secondary:hover {
    border-color: var(--accent);
}


/* HERO DECORATION */

.hero-decoration {
    position: absolute;
    width: 360px;
    height: 360px;
    right: 2%;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    opacity: 0.8;
}

.orbit {
    position: absolute;
    border: 1px solid rgba(229, 139, 83, 0.25);
    border-radius: 50%;
}

.orbit-one {
    width: 240px;
    height: 240px;
    animation: rotate 35s linear infinite;
}

.orbit-two {
    width: 340px;
    height: 340px;
    border-style: dashed;
    animation: rotate 55s linear infinite reverse;
}

.orbit-core {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: radial-gradient(circle, #34241b, #171310);
    border: 1px solid rgba(229, 139, 83, 0.5);
    box-shadow: 0 0 80px rgba(229, 139, 83, 0.12);
}

.orbit-core span {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.1em;
}

.decoration-label {
    position: absolute;
    bottom: -5px;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    color: var(--muted);
}

@keyframes rotate {
    to {
        transform: rotate(360deg);
    }
}

.hero-bottom {
    position: absolute;
    bottom: 32px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    color: #686865;
    font-size: 0.65rem;
    letter-spacing: 0.13em;
}


/* WORK */

.work-section {
    background: #141414;
    border-block: 1px solid var(--border);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 55px;
}

.section-description {
    max-width: 320px;
    color: var(--muted);
    font-size: 0.92rem;
}

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

.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition:
        transform 0.3s ease,
        border-color 0.3s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(229, 139, 83, 0.5);
}

.project-visual {
    height: 190px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.visual-linux {
    background: radial-gradient(circle at center, #493024, #211813 70%);
}

.visual-creative {
    background: radial-gradient(circle at center, #382b39, #1c1720 70%);
}

.visual-writing {
    background: radial-gradient(circle at center, #343a32, #191e19 70%);
}

.visual-symbol {
    font-size: 4rem;
    opacity: 0.8;
}

.visual-caption {
    position: absolute;
    bottom: 14px;
    left: 18px;
    font-size: 0.62rem;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.6);
}

.project-info {
    padding: 24px;
}

.project-category {
    color: var(--accent);
    font-size: 0.63rem;
    letter-spacing: 0.12em;
    font-weight: 700;
    margin-bottom: 12px;
}

.project-info h3 {
    margin-bottom: 12px;
}

.project-info > p:not(.project-category) {
    min-height: 85px;
    color: var(--muted);
    font-size: 0.85rem;
}

.text-link {
    display: inline-block;
    margin-top: 20px;
    font-size: 0.82rem;
    color: var(--accent-light);
    transition: color 0.2s ease;
}

.text-link:hover {
    color: white;
}


/* ABOUT */

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
}

.about-content p {
    color: var(--muted);
    margin-bottom: 18px;
    font-size: 0.95rem;
}

.interest-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.interest-list span {
    border: 1px solid var(--border);
    padding: 7px 13px;
    border-radius: 4px;
    font-size: 0.73rem;
    color: #c4c4be;
}


/* CONTACT */

.contact-section {
    background:
        radial-gradient(
            ellipse at center,
            rgba(229, 139, 83, 0.08),
            transparent 65%
        ),
        #151515;
    border-block: 1px solid var(--border);
    text-align: center;
}

.contact-content {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.contact-content > p:not(.eyebrow) {
    color: var(--muted);
    max-width: 470px;
    margin-block: 22px 30px;
}


/* FOOTER */

.site-footer {
    padding-block: 30px;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-content p,
.footer-content > span {
    color: var(--muted);
    font-size: 0.75rem;
}


/* SUBTLE ENTRANCE ANIMATION */

@media (prefers-reduced-motion: no-preference) {
    .hero-content {
        animation: fade-up 0.8s ease both;
    }

    .hero-decoration {
        animation: fade-in 1.2s ease both;
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 0.8;
    }
}


/* RESPONSIVE DESIGN */

@media (max-width: 900px) {

    .hero-decoration {
        right: -100px;
        opacity: 0.3;
    }

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

    .about-layout {
        gap: 50px;
    }
}


@media (max-width: 650px) {

    .section-padding {
        padding-block: 70px;
    }

    .navbar {
        min-height: 70px;
    }

    .availability {
        display: none;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
        z-index: 2;
    }

    .menu-toggle span {
        display: block;
        width: 23px;
        height: 2px;
        background: var(--text);
        transition: transform 0.25s ease;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        padding: 25px 6%;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        background: #151515;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.open {
        display: flex;
    }

    .hero {
        min-height: 650px;
        padding-block: 90px 120px;
    }

    .hero-decoration {
        width: 230px;
        height: 230px;
        right: -80px;
        top: 65%;
        opacity: 0.2;
    }

    .orbit-one {
        width: 160px;
        height: 160px;
    }

    .orbit-two {
        width: 220px;
        height: 220px;
    }

    .orbit-core {
        width: 85px;
        height: 85px;
    }

    .orbit-core span {
        font-size: 1.8rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .hero-bottom {
        font-size: 0.55rem;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
    }

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

    .project-info > p:not(.project-category) {
        min-height: auto;
    }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}


/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
/* ========================================
   PROJECTS PAGE
======================================== */

.projects-page .accent-text {
  color: var(--accent, #e58b55);
}

.projects-page .nav-links a.active {
  color: var(--accent, #e58b55);
}

/* Hero */

.projects-hero {
  padding-top: 110px;
  padding-bottom: 65px;
}

.projects-hero h1 {
  margin: 22px 0;
  font-size: clamp(3.5rem, 8vw, 7rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.projects-intro {
  max-width: 540px;
  color: var(--muted, #a5a19c);
  font-size: 1.05rem;
  line-height: 1.8;
}

.projects-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 75px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border, #30302d);
  color: var(--muted, #89857f);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}

/* Project entries */

.projects-section {
  padding-top: 25px;
}

.projects-list {
  display: flex;
  flex-direction: column;
}

.project-entry {
  padding: 38px 0 48px;
  border-bottom: 1px solid var(--border, #30302d);
}

.project-number {
  margin-bottom: 22px;
  color: var(--muted, #89857f);
  font-size: 0.72rem;
  letter-spacing: 0.13em;
}

.project-content {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 55px;
  align-items: center;
}

/* Abstract project artwork */

.project-art {
  position: relative;
  display: flex;
  min-height: 310px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: #191817;
  isolation: isolate;
}

.project-art-hypr {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(205, 105, 62, 0.17), transparent 55%),
    #191817;
}

.art-window {
  position: absolute;
  width: 48%;
  height: 38%;
  border: 1px solid rgba(238, 157, 105, 0.55);
  border-radius: 8px;
  background: rgba(32, 29, 27, 0.85);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.art-window-one {
  transform: translate(-15px, -12px);
}

.art-window-two {
  transform: translate(20px, 18px);
  border-color: rgba(238, 157, 105, 0.25);
}

.art-orbit {
  position: absolute;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(229, 139, 85, 0.22);
  border-radius: 50%;
}

.art-label {
  position: absolute;
  bottom: 22px;
  left: 24px;
  color: #d9946c;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
}

.project-art-emptycore {
  flex-direction: column;
  gap: 12px;
  background:
    radial-gradient(ellipse at center, rgba(150, 133, 117, 0.14), transparent 55%),
    #151515;
}

.emptycore-circle {
  width: 105px;
  height: 105px;
  border: 1px solid rgba(220, 205, 185, 0.55);
  border-radius: 50%;
  box-shadow: 0 0 65px rgba(220, 205, 185, 0.1);
}

.emptycore-word {
  color: #e4ddd2;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-weight: 600;
  letter-spacing: 0.2em;
}

.emptycore-caption {
  color: #8d8982;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
}

.project-art-archive {
  background:
    radial-gradient(ellipse at 70% 30%, rgba(126, 107, 157, 0.16), transparent 55%),
    #191719;
}

.archive-line {
  position: absolute;
  left: 15%;
  width: 45%;
  height: 1px;
  background: rgba(194, 173, 211, 0.35);
}

.archive-line-one {
  top: 35%;
}

.archive-line-two {
  top: 42%;
  width: 35%;
}

.archive-line-three {
  top: 49%;
  width: 40%;
}

.archive-mark {
  color: rgba(208, 190, 222, 0.8);
  font-family: Georgia, serif;
  font-size: 9rem;
  transform: translateX(55px);
}

.archive-label {
  position: absolute;
  bottom: 22px;
  left: 24px;
  color: #aaa0b4;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
}

/* Project information */

.project-details {
  padding: 10px 0;
}

.project-heading-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.project-details h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: -0.045em;
}

.project-status {
  padding: 6px 10px;
  border: 1px solid rgba(229, 139, 85, 0.3);
  border-radius: 30px;
  color: var(--accent, #e58b55);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
}

.status-concept {
  border-color: rgba(170, 160, 180, 0.3);
  color: #aaa0b4;
}

.project-details p {
  margin: 20px 0;
  color: var(--muted, #a5a19c);
  font-size: 0.96rem;
  line-height: 1.85;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 25px 0;
}

.project-tags span {
  padding: 7px 11px;
  border: 1px solid var(--border, #30302d);
  border-radius: 30px;
  color: var(--muted, #a5a19c);
  font-size: 0.72rem;
}

.project-link,
.project-coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--accent, #e58b55);
  font-size: 0.88rem;
  text-decoration: none;
}

.project-link {
  transition: gap 0.25s ease;
}

.project-link:hover {
  gap: 15px;
}

.project-coming-soon {
  color: var(--muted, #89857f);
  font-style: italic;
}

/* Closing section */

.projects-end {
  padding-top: 100px;
  padding-bottom: 110px;
}

.projects-end h2 {
  margin: 20px 0 28px;
  font-size: clamp(2.7rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

/* Responsive layout */

@media (max-width: 760px) {
  .projects-hero {
    padding-top: 80px;
    padding-bottom: 45px;
  }

  .projects-meta {
    margin-top: 50px;
  }

  .project-content {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .project-art {
    min-height: 250px;
  }

  .project-entry {
    padding: 30px 0 38px;
  }

  .projects-end {
    padding-top: 75px;
    padding-bottom: 80px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-link {
    transition: none;
  }
}
/* ========================================
   ABOUT PAGE
======================================== */

.about-page .accent-text,
.about-page .nav-links a.active {
  color: var(--accent, #e58b55);
}

/* Hero */

.about-hero {
  padding-top: 110px;
  padding-bottom: 65px;
}

.about-hero h1 {
  margin: 22px 0;
  font-size: clamp(3.8rem, 9vw, 7.5rem);
  line-height: 0.96;
  letter-spacing: -0.07em;
}

.about-lead {
  max-width: 650px;
  color: var(--muted, #a5a19c);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.85;
}

.about-divider {
  display: flex;
  justify-content: space-between;
  margin-top: 75px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border, #30302d);
  color: var(--muted, #89857f);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
}

/* Shared section layout */

.about-story,
.about-interests,
.about-current {
  display: grid;
  grid-template-columns: 0.32fr 1fr;
  gap: 65px;
  padding-top: 75px;
  padding-bottom: 75px;
  border-bottom: 1px solid var(--border, #30302d);
}

.about-side-label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  color: var(--muted, #89857f);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
}

.about-side-label span:first-child {
  color: var(--accent, #e58b55);
}

/* Story */

.about-story-content h2,
.about-interest-content h2,
.about-current-content h2 {
  margin: 0 0 30px;
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.about-story-content p,
.about-current-content > p:not(.eyebrow) {
  max-width: 690px;
  margin: 0 0 19px;
  color: var(--muted, #a5a19c);
  font-size: 0.98rem;
  line-height: 1.9;
}

/* Interests */

.about-interest-content h2 {
  margin-bottom: 38px;
}

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

.interest-card {
  position: relative;
  min-height: 190px;
  padding: 25px;
  border: 1px solid var(--border, #30302d);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.015);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.interest-card:hover {
  transform: translateY(-4px);
  border-color: rgba(229, 139, 85, 0.35);
  background: rgba(229, 139, 85, 0.035);
}

.interest-index {
  color: var(--accent, #e58b55);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.interest-card h3 {
  margin: 24px 0 10px;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
}

.interest-card p {
  margin: 0;
  color: var(--muted, #a5a19c);
  font-size: 0.86rem;
  line-height: 1.75;
}

/* Currently */

.about-current-content .eyebrow {
  margin: 0 0 20px;
}

.about-current-content h2 {
  margin-bottom: 25px;
}

.about-current-content .text-link {
  display: inline-flex;
  margin-top: 15px;
}

/* Closing */

.about-closing {
  padding-top: 100px;
  padding-bottom: 110px;
}

.about-closing h2 {
  margin: 20px 0 28px;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.065em;
}

/* Responsive */

@media (max-width: 760px) {
  .about-hero {
    padding-top: 80px;
    padding-bottom: 45px;
  }

  .about-divider {
    margin-top: 50px;
  }

  .about-story,
  .about-interests,
  .about-current {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 50px;
    padding-bottom: 55px;
  }

  .about-side-label {
    flex-direction: row;
    gap: 14px;
  }

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

  .interest-card {
    min-height: 160px;
  }

  .about-closing {
    padding-top: 75px;
    padding-bottom: 80px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .interest-card {
    transition: none;
  }

  .interest-card:hover {
    transform: none;
  }
}

/* ========================================
   GALLERY PAGE
======================================== */

.gallery-hero {
  min-height: 470px;
  padding: 110px 8% 65px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.gallery-hero::after {
  content: "";
  position: absolute;
  width: 390px;
  height: 390px;
  right: 8%;
  top: 40px;
  border: 1px solid rgba(255, 140, 90, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 45px rgba(255, 140, 90, 0.025),
    0 0 0 90px rgba(255, 140, 90, 0.018);
  pointer-events: none;
}

.gallery-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.gallery-hero h1 {
  font-size: clamp(3.4rem, 8vw, 6.5rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
  margin: 22px 0;
}

.gallery-hero h1 span {
  color: var(--accent);
}

.gallery-intro {
  max-width: 490px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.gallery-hero-note {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 55px;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
}

.gallery-note-line {
  width: 38px;
  height: 1px;
  background: var(--accent);
}

.gallery-section {
  padding: 100px 8%;
  border-bottom: 1px solid var(--border);
}

.gallery-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 35px;
  margin-bottom: 42px;
}

.gallery-section-heading h2 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  letter-spacing: -0.055em;
  margin-top: 12px;
}

.gallery-section-description {
  max-width: 300px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.92rem;
  margin-bottom: 5px;
}

.gallery-feature,
.gallery-secondary,
.gallery-card {
  min-width: 0;
}

.gallery-image-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: #191919;
  border: 1px solid var(--border);
  border-radius: 12px;
  aspect-ratio: 16 / 9;
}

.gallery-image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.gallery-feature:hover .gallery-image-frame img,
.gallery-card:hover .gallery-image-frame img,
.gallery-secondary:hover .gallery-image-frame img {
  transform: scale(1.018);
}

.gallery-image-index {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 5px;
  background: rgba(12, 12, 12, 0.7);
  color: #fff;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  backdrop-filter: blur(10px);
}

.gallery-caption {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
  padding: 20px 2px 0;
}

.gallery-caption h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 7px;
}

.gallery-caption p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.gallery-caption-tag {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 0.63rem;
  letter-spacing: 0.12em;
  padding-top: 5px;
  text-align: right;
}

.gallery-secondary {
  width: 73%;
  margin: 65px 0 0 auto;
}

.gallery-secondary .gallery-image-frame {
  aspect-ratio: 16 / 9;
}

.gallery-workspace {
  background: rgba(255, 255, 255, 0.012);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 42px 25px;
}

.gallery-card-wide {
  grid-column: 1 / -1;
}

.gallery-card-wide .gallery-image-frame {
  aspect-ratio: 16 / 8.2;
}

.gallery-grid .gallery-card:not(.gallery-card-wide) .gallery-image-frame {
  aspect-ratio: 16 / 10;
}

.gallery-creative {
  padding-bottom: 110px;
}

.gallery-image-link {
  position: absolute;
  right: 17px;
  bottom: 17px;
  padding: 11px 15px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 5px;
  background: rgba(12, 12, 12, 0.78);
  color: white;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  backdrop-filter: blur(10px);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.gallery-image-link:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.gallery-ending {
  padding: 100px 8%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.gallery-ending-mark {
  display: grid;
  place-items: center;
  width: 55px;
  height: 55px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 25px;
}

.gallery-ending p {
  max-width: 440px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 22px;
}

.gallery-ending .text-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
}

.gallery-ending .text-link span {
  display: inline-block;
  transition: transform 0.2s ease;
}

.gallery-ending .text-link:hover span {
  transform: translate(3px, -3px);
}

/* Gallery responsive layout */

@media (max-width: 760px) {
  .gallery-hero {
    min-height: 400px;
    padding: 90px 6% 55px;
  }

  .gallery-hero::after {
    width: 240px;
    height: 240px;
    right: -100px;
    top: 65px;
  }

  .gallery-hero h1 {
    font-size: clamp(3.2rem, 13vw, 5rem);
  }

  .gallery-section {
    padding: 75px 6%;
  }

  .gallery-section-heading {
    display: block;
    margin-bottom: 30px;
  }

  .gallery-section-description {
    margin-top: 15px;
  }

  .gallery-secondary {
    width: 88%;
    margin-top: 45px;
  }

  .gallery-grid {
    gap: 32px 15px;
  }

  .gallery-caption {
    display: block;
  }

  .gallery-caption-tag {
    display: inline-block;
    text-align: left;
    margin-top: 10px;
  }

  .gallery-ending {
    padding: 75px 6%;
  }
}

@media (max-width: 520px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .gallery-card-wide {
    grid-column: auto;
  }

  .gallery-card-wide .gallery-image-frame,
  .gallery-grid .gallery-card:not(.gallery-card-wide) .gallery-image-frame {
    aspect-ratio: 16 / 9;
  }

  .gallery-secondary {
    width: 100%;
  }

  .gallery-image-frame {
    border-radius: 8px;
  }

  .gallery-caption {
    padding-top: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-image-frame img,
  .gallery-image-link,
  .gallery-ending .text-link span {
    transition: none;
  }
}

/* ========================================
   DESKTOP SESSION TIMELINE
======================================== */

.desktop-timeline {
  max-width: 850px;
  margin: 0 auto;
  position: relative;
  padding-left: 58px;
}

.desktop-timeline::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 25px;
  bottom: 25px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--accent),
    rgba(255, 140, 90, 0.2)
  );
}

.desktop-timeline-item {
  position: relative;
  margin-bottom: 65px;
}

.desktop-timeline-item:last-child {
  margin-bottom: 0;
}

.desktop-timeline-marker {
  position: absolute;
  left: -58px;
  top: 0;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: var(--background);
  color: var(--accent);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  z-index: 1;
  box-shadow: 0 0 18px rgba(255, 140, 90, 0.1);
}

.desktop-timeline-content {
  width: 100%;
}

.desktop-timeline-image {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.desktop-timeline-content .gallery-caption {
  padding-top: 18px;
}

@media (max-width: 600px) {
  .desktop-timeline {
    padding-left: 43px;
  }

  .desktop-timeline::before {
    left: 13px;
  }

  .desktop-timeline-marker {
    left: -43px;
    width: 28px;
    height: 28px;
    font-size: 0.62rem;
  }

  .desktop-timeline-item {
    margin-bottom: 48px;
  }
}
