:root {
  --bg-dark: #1D1819;
  --accent-yellow: #FDD100;
  --text-white: #FEFEFE;
  --text-light: #EEEEEF;
  --border-grey: #A1A1A1;
  --modal-text: #332C2B;
  --font-main: 'Montserrat', sans-serif;
  --header-height: clamp(4.25rem, 8dvh, 5.5rem);
  --container-max: 1280px;
  --container-pad: clamp(1.25rem, 5vw, 4rem);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  container-type: scroll-state;
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-white);
}

body {
  background-color: var(--bg-dark);
  color: var(--text-white);
  overflow-x: hidden;
  overflow-anchor: none;
  line-height: 1.4;
}

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

/* ==================== UNIFIED CONTAINER WIDTH (ALL PAGES & POSTS) ==================== */
.site-container,
.section-inner,
.blogpost-wrapper {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ==================== GLOBAL STICKY HEADER ==================== */
.site-header-sticky {
  position: sticky;
  top: 0;
  z-index: 200;
  width: 100%;
  container-type: scroll-state;
  container-name: site-header;
}

/* Default state (for non-hero sections & inner pages): semi-transparent so content behind is visible, no bottom border */
.site-header-bar {
  width: 100%;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background-color: rgba(29, 24, 25, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: none;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

/* Hero section state on Homepage: completely transparent (no background) */
.site-header-sticky.is-hero-top .site-header-bar {
  background-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-white);
  flex-shrink: 0;
}

.logo-ring {
  width: clamp(1.8rem, 1.4rem + 0.9vw, 2.35rem);
  height: clamp(1.8rem, 1.4rem + 0.9vw, 2.35rem);
  border-radius: 50%;
  border: 5px solid var(--accent-yellow);
  flex-shrink: 0;
}

.logo-text {
  font-weight: 900;
  font-size: clamp(0.85rem, 0.72rem + 0.4vw, 1.1rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
  color: var(--text-white);
}

.main-nav {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: clamp(0.88rem, 0.75rem + 0.4vw, 1.15rem);
  font-weight: 900;
}

.nav-link {
  color: var(--text-white);
  font-style: italic;
  font-weight: 900;
  text-decoration: none;
  border-bottom: 2px solid var(--text-white);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--accent-yellow);
  border-bottom-color: var(--accent-yellow);
}

.nav-link.active {
  color: var(--accent-yellow);
  border-bottom-color: transparent;
}

.nav-comma {
  color: var(--text-white);
  font-style: normal;
  font-weight: 900;
  margin-right: 0.35rem;
}

/* ==================== RIGHT-SIDE DOT NAVIGATION ==================== */
.dot-nav {
  position: fixed;
  right: clamp(0.75rem, 2vw, 2rem);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  z-index: 100;
}

.dot-nav .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2.5px solid var(--text-white);
  background: transparent;
  transition: border-color 0.25s ease, transform 0.25s ease;
  display: block;
}

.dot-nav .dot:hover,
.dot-nav .dot:focus-visible {
  transform: scale(1.25);
}

.dot-nav .dot.active {
  border-color: var(--accent-yellow);
}

/* ==================== BACK TO TOP BUTTON ==================== */
.back-to-top {
  position: fixed;
  right: clamp(1.25rem, 2.5vw, 2.25rem);
  bottom: clamp(1.25rem, 3dvh, 2.25rem);
  z-index: 190;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.95rem;
  background-color: rgba(29, 24, 25, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 2.5px solid var(--accent-yellow);
  color: var(--text-white);
  font-family: var(--font-main);
  font-style: italic;
  font-weight: 900;
  font-size: 0.88rem;
  cursor: pointer;
  visibility: hidden;
  opacity: 0;
  translate: 0 20px;
  transition:
    visibility 0.3s,
    opacity 0.3s ease,
    translate 0.3s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

.back-to-top-arrow {
  font-style: normal;
  font-weight: 900;
  color: var(--accent-yellow);
  transition: color 0.2s ease, transform 0.2s ease;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background-color: var(--accent-yellow);
  color: var(--bg-dark);
}

.back-to-top:hover .back-to-top-arrow,
.back-to-top:focus-visible .back-to-top-arrow {
  color: var(--bg-dark);
  transform: translateY(-2px);
}

/* When the container can be scrolled toward the top, show Back to Top */
@container scroll-state(scrollable: top) {
  .back-to-top {
    visibility: visible;
    opacity: 1;
    translate: 0 0;
  }
}

.back-to-top.is-visible {
  visibility: visible;
  opacity: 1;
  translate: 0 0;
}

/* ==================== PAGE SECTIONS (BERANDA) ==================== */
.page-section {
  min-height: calc(100dvh - var(--header-height));
  scroll-margin-top: var(--header-height);
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-block: clamp(2.25rem, 4.5dvh, 3.75rem);
  border-bottom: 1px solid #332C2B;
}

.section-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ==================== 1. HOME SECTION ==================== */
.home-section {
  min-height: 100dvh;
  margin-top: calc(-1 * var(--header-height));
  padding-top: calc(var(--header-height) + clamp(1.5rem, 3dvh, 2.5rem));
  scroll-margin-top: 0;
  background-image: url('sumber/andripermana_Images/andripermana_ImgID2.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-content {
  margin: auto 0;
  padding-left: clamp(0rem, 5vw, 4.5rem);
  padding-block: 2rem;
}

.hero-Lines {
  display: flex;
  flex-direction: column;
  gap: 0.14em;
  font-weight: 900;
  font-size: clamp(1.25rem, 0.85rem + 1.55vw, 2.35rem);
  line-height: 1.28;
  color: var(--text-light);
  letter-spacing: -0.015em;
}

.hero-line {
  display: block;
}

.hero-inline-link {
  color: var(--text-light);
  font-style: italic;
  font-weight: 900;
  text-decoration: none;
  border-bottom: 3px solid var(--text-light);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.hero-inline-link:hover,
.hero-inline-link:focus-visible {
  color: var(--accent-yellow);
  border-bottom-color: var(--accent-yellow);
}

.hero-photo-credit {
  text-align: right;
  font-size: clamp(0.72rem, 0.62rem + 0.28vw, 0.92rem);
  font-weight: 400;
  color: var(--text-light);
  letter-spacing: 0.01em;
}

.hero-photo-credit strong {
  font-weight: 800;
}

/* ==================== SECTION HEADINGS (WORKS, BLOG, CONTACT) ==================== */
.section-heading {
  text-align: center;
  margin-bottom: clamp(1.5rem, 3.2dvh, 2.75rem);
}

.section-title {
  font-weight: 900;
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3.4rem);
  letter-spacing: -0.02em;
  color: var(--text-white);
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.section-subtitle {
  font-weight: 600;
  font-size: clamp(0.85rem, 0.74rem + 0.35vw, 1.12rem);
  color: var(--text-white);
  line-height: 1.45;
}

/* ==================== 2. WORKS SECTION ==================== */
.works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: clamp(1rem, 2.2vw, 2.2rem);
  row-gap: clamp(1.25rem, 2.8dvh, 2.25rem);
  width: 100%;
  margin: auto 0;
}

.work-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  outline: none;
}

.work-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: var(--text-light);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.work-card:hover .work-thumb,
.work-card:focus-visible .work-thumb {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45), 0 0 0 2px var(--accent-yellow);
}

.work-thumb img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.work-thumb--light {
  background-color: var(--text-white);
  padding: 7%;
}

.work-thumb--light img {
  object-fit: contain;
}

.work-thumb--placeholder {
  background-color: var(--text-light);
}

.work-caption {
  margin-top: 0.75rem;
  font-weight: 900;
  font-size: clamp(0.88rem, 0.75rem + 0.38vw, 1.2rem);
  color: var(--text-white);
  transition: color 0.2s ease;
}

.work-card:hover .work-caption,
.work-card:focus-visible .work-caption {
  color: var(--accent-yellow);
}

/* ==================== MORE.. LINK ==================== */
.section-more {
  text-align: center;
  margin-top: clamp(1.5rem, 3dvh, 2.5rem);
}

.more-link {
  display: inline-block;
  font-style: italic;
  font-weight: 900;
  font-size: clamp(0.95rem, 0.82rem + 0.38vw, 1.25rem);
  color: var(--text-white);
  text-decoration: none;
  border-bottom: 2px solid var(--text-white);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.more-link:hover,
.more-link:focus-visible {
  color: var(--accent-yellow);
  border-bottom-color: var(--accent-yellow);
}

/* ==================== 3. BLOG SECTION ==================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2.2vw, 2.2rem);
  width: 100%;
  margin: auto 0;
}

.blog-card {
  aspect-ratio: 11772 / 13999;
  background-color: #8C8C8D;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover,
.blog-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.5), 0 0 0 2px var(--accent-yellow);
}

.blog-card-link {
  width: 100%;
  height: 100%;
  padding: clamp(1rem, 1.8vw, 1.65rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-decoration: none;
  color: var(--text-white);
  background: linear-gradient(180deg, rgba(29, 24, 25, 0.38) 0%, rgba(29, 24, 25, 0.68) 100%);
}

.blog-date {
  font-weight: 600;
  font-size: clamp(0.72rem, 0.64rem + 0.22vw, 0.88rem);
  color: var(--accent-yellow);
  margin-bottom: 0.4rem;
  flex-shrink: 0;
}

.blog-title {
  font-weight: 900;
  font-size: clamp(1rem, 0.82rem + 0.48vw, 1.32rem);
  line-height: 1.22;
  color: var(--accent-yellow);
  margin-bottom: 0.65rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
}

.blog-divider {
  display: block;
  width: 3.5rem;
  height: 2px;
  flex-shrink: 0;
  background-color: var(--accent-yellow);
  margin-bottom: 0.65rem;
}

.blog-excerpt {
  font-style: italic;
  font-weight: 500;
  font-size: clamp(0.8rem, 0.7rem + 0.25vw, 0.96rem);
  line-height: 1.38;
  color: var(--text-white);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==================== 4. CONTACT SECTION ==================== */
.contact-form {
  display: grid;
  grid-template-columns: 17110fr 32466fr;
  gap: clamp(1.5rem, 3vw, 3.25rem);
  width: 100%;
  margin: auto 0;
  align-items: start;
}

.contact-left {
  display: flex;
  flex-direction: column;
  gap: clamp(1.1rem, 2.4dvh, 1.85rem);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-label {
  font-style: italic;
  font-weight: 500;
  font-size: clamp(0.88rem, 0.76rem + 0.32vw, 1.12rem);
  color: var(--text-white);
}

.form-input {
  width: 100%;
  height: clamp(2.6rem, 4.6dvh, 3.15rem);
  background-color: var(--text-white);
  border: none;
  border-bottom: 3.5px solid var(--border-grey);
  padding: 0.5rem 0.85rem;
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--bg-dark);
  outline: none;
  transition: border-color 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
  border-bottom-color: var(--accent-yellow);
}

.contact-right {
  display: flex;
  flex-direction: column;
}

.form-textarea {
  width: 100%;
  height: calc(3 * clamp(2.6rem, 4.6dvh, 3.15rem) + 2 * clamp(1.1rem, 2.4dvh, 1.85rem) - 2.6rem);
  min-height: 9.5rem;
  background-color: var(--text-white);
  border: none;
  border-bottom: 3.5px solid var(--border-grey);
  padding: 0.75rem 0.95rem;
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--bg-dark);
  resize: vertical;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.95rem;
}

.submit-btn {
  background-color: var(--accent-yellow);
  color: var(--bg-dark);
  font-family: var(--font-main);
  font-weight: 900;
  font-size: clamp(0.95rem, 0.82rem + 0.38vw, 1.25rem);
  border: none;
  padding: 0.65rem 2.75rem;
  min-width: 10.5rem;
  height: clamp(2.6rem, 4.6dvh, 3.15rem);
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.submit-btn:hover,
.submit-btn:focus-visible {
  filter: brightness(1.06);
  transform: translateY(-2px);
}

/* ==================== CONTACT SOCIALS (THREADS & GITHUB) ==================== */
.contact-socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 0.9rem;
  margin-top: clamp(2rem, 4dvh, 3rem);
  padding-top: clamp(1.25rem, 2.5dvh, 1.85rem);
  border-top: 1px solid #332C2B;
  text-align: center;
}

.contact-socials-label {
  font-style: italic;
  font-weight: 500;
  font-size: clamp(0.85rem, 0.75rem + 0.3vw, 1.05rem);
  color: var(--border-grey);
}

.contact-socials-list {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  color: var(--text-white);
  text-decoration: none;
  font-style: italic;
  font-weight: 900;
  font-size: clamp(0.92rem, 0.8rem + 0.35vw, 1.15rem);
  transition: color 0.2s ease, transform 0.2s ease;
}

.social-icon {
  color: var(--accent-yellow);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.social-link-text {
  border-bottom: 2px solid var(--text-white);
  padding-bottom: 1px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.social-link:hover,
.social-link:focus-visible {
  color: var(--accent-yellow);
  transform: translateY(-1px);
}

.social-link:hover .social-link-text,
.social-link:focus-visible .social-link-text {
  color: var(--accent-yellow);
  border-bottom-color: var(--accent-yellow);
}

.social-link:hover .social-icon,
.social-link:focus-visible .social-icon {
  transform: scale(1.12);
}

.social-sep {
  font-weight: 900;
  font-size: clamp(0.92rem, 0.8rem + 0.35vw, 1.15rem);
  color: var(--text-white);
  margin-right: 0.45rem;
}

/* ==================== FOOTER ==================== */
.site-footer {
  text-align: center;
  margin-top: clamp(1.25rem, 2.5dvh, 2rem);
  padding-bottom: 2.5rem;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(0.75rem, 0.66rem + 0.25vw, 0.95rem);
  color: var(--text-white);
  line-height: 1.45;
}

.footer-made {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.footer-ring {
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  border-radius: 50%;
  border: 2.5px solid var(--accent-yellow);
  transform: translateY(1px);
}

/* ==================== WORKS POP-UP MODAL (<dialog>) ==================== */
.work-modal {
  margin: auto;
  border: none;
  background: transparent;
  padding: 2rem 1.25rem 1.25rem;
  max-width: min(94vw, 860px);
  width: 100%;
  overflow: visible;
}

.work-modal::backdrop {
  background-color: rgba(15, 12, 13, 0.84);
  backdrop-filter: blur(3px);
}

.work-modal-box {
  position: relative;
  width: 100%;
  background-color: var(--bg-dark);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
}

.work-modal-close-form {
  position: absolute;
  top: -2rem;
  right: -0.25rem;
  z-index: 10;
}

.work-modal-close {
  background: transparent;
  border: none;
  color: var(--accent-yellow);
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.work-modal-close:hover,
.work-modal-close:focus-visible {
  transform: scale(1.2);
}

.work-modal-preview {
  width: 100%;
  aspect-ratio: 33513 / 15643;
  background-color: var(--text-white);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-modal-preview img {
  width: 100%;
  height: 100%;
  aspect-ratio: 33513 / 15643;
  object-fit: cover;
  display: block;
}

.work-modal-preview.is-contain img {
  object-fit: contain;
  padding: 6%;
}

.work-modal-Meta {
  background-color: var(--accent-yellow);
  color: var(--modal-text);
  text-align: center;
  padding: clamp(0.85rem, 1.8vw, 1.35rem) 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
}

.modal-meta-label {
  font-weight: 500;
  font-size: clamp(0.8rem, 0.68rem + 0.3vw, 1rem);
  line-height: 1.25;
}

.modal-meta-value {
  font-weight: 900;
  font-size: clamp(0.95rem, 0.8rem + 0.45vw, 1.3rem);
  line-height: 1.25;
  color: var(--modal-text);
}

.modal-meta-link {
  text-decoration: none;
  word-break: break-all;
}

.modal-meta-link:hover,
.modal-meta-link:focus-visible {
  text-decoration: underline;
}

/* ==================== BLOG & BLOGPOST PAGES ==================== */
.blogpost-page {
  min-height: 100dvh;
  background-color: var(--bg-dark);
  color: var(--text-white);
  display: flex;
  flex-direction: column;
}

.blogpost-wrapper {
  flex: 1;
  padding-block: clamp(1.75rem, 3.8dvh, 3rem) clamp(2.25rem, 4.5dvh, 3.75rem);
  display: flex;
  flex-direction: column;
}

.blogpost-back-bar {
  margin-bottom: 1.25rem;
}

.back-link {
  display: inline-block;
  font-style: italic;
  font-weight: 900;
  font-size: clamp(0.88rem, 0.78rem + 0.3vw, 1.05rem);
  color: var(--text-white);
  text-decoration: none;
  border-bottom: 2px solid var(--text-white);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--accent-yellow);
  border-bottom-color: var(--accent-yellow);
}

.blogpost-main {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 6dvh, 4.5rem);
}

.blogpost-article {
  width: 100%;
}

.blogpost-hero {
  margin-bottom: clamp(2rem, 4.5dvh, 3.25rem);
}

.blogpost-hero-media {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  min-height: 17rem;
  background-color: #2B2526;
  overflow: hidden;
  border-bottom: 4px solid var(--accent-yellow);
}

.blogpost-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.72);
}

.blogpost-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(29, 24, 25, 0.95) 0%,
    rgba(29, 24, 25, 0.58) 55%,
    rgba(29, 24, 25, 0.22) 100%
  );
  padding: clamp(1.25rem, 3.5vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.blogpost-meta-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.blogpost-meta-top .blog-date {
  margin-bottom: 0;
  font-size: clamp(0.8rem, 0.72rem + 0.28vw, 1rem);
  font-weight: 600;
}

.blogpost-meta-sep {
  color: var(--text-light);
}

.blogpost-category {
  font-style: italic;
  font-weight: 600;
  font-size: clamp(0.8rem, 0.72rem + 0.28vw, 1rem);
  color: var(--text-light);
}

.blogpost-title {
  font-weight: 900;
  font-size: clamp(1.5rem, 1.1rem + 2.1vw, 3.1rem);
  line-height: 1.14;
  color: var(--accent-yellow);
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
  text-wrap: balance;
}

.blogpost-divider {
  width: 4.5rem;
  height: 3px;
  margin-bottom: 0.75rem;
}

.blogpost-subtitle {
  font-style: italic;
  font-weight: 600;
  font-size: clamp(0.95rem, 0.85rem + 0.55vw, 1.4rem);
  line-height: 1.35;
  color: var(--text-white);
  text-wrap: balance;
}

/* Article Body Content — Same Full Container Width as Header & Hero */
.blogpost-content {
  width: 100%;
  max-width: 100%;
  margin: 0;
  font-size: clamp(1rem, 0.92rem + 0.25vw, 1.125rem);
  line-height: 1.78;
  color: var(--text-light);
  overflow-wrap: break-word;
}

.blogpost-content h2,
.blogpost-content h3 {
  font-weight: 900;
  color: var(--text-white);
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin-top: 2.4rem;
  margin-bottom: 0.95rem;
  text-wrap: balance;
}

.blogpost-content h2 {
  font-size: clamp(1.3rem, 1.08rem + 0.75vw, 1.85rem);
}

.blogpost-content h2::after {
  content: "";
  display: block;
  width: 2.75rem;
  height: 3px;
  background-color: var(--accent-yellow);
  margin-top: 0.45rem;
}

.blogpost-content p,
.blogpost-content li,
.blogpost-quote p {
  text-wrap: pretty;
}

.blogpost-content p {
  margin-bottom: 1.4rem;
}

.blogpost-lead {
  font-size: clamp(1.06rem, 0.96rem + 0.32vw, 1.25rem);
  font-weight: 500;
  color: var(--text-white);
}

.blogpost-content strong {
  font-weight: 800;
  color: var(--text-white);
}

.inline-accent-link {
  color: var(--text-white);
  font-style: italic;
  font-weight: 900;
  text-decoration: none;
  border-bottom: 2px solid var(--accent-yellow);
  padding-bottom: 1px;
  transition: color 0.2s ease;
}

.inline-accent-link:hover,
.inline-accent-link:focus-visible {
  color: var(--accent-yellow);
}

.blogpost-quote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--accent-yellow);
  background-color: rgba(255, 255, 255, 0.03);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.02rem, 0.94rem + 0.32vw, 1.22rem);
  color: var(--text-white);
}

.blogpost-quote p:last-child {
  margin-bottom: 0;
}

.blogpost-figure {
  margin: 2.25rem 0;
}

.blogpost-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-bottom: 3px solid var(--border-grey);
}

.blogpost-figcaption {
  margin-top: 0.65rem;
  font-size: 0.875rem;
  color: var(--border-grey);
  text-align: center;
}

.blogpost-list {
  margin: 1.25rem 0 1.6rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.blogpost-list li::marker {
  color: var(--accent-yellow);
}

/* Article Footer (Tags, Social Share & Prev/Next) — Full Container Width */
.blogpost-article-footer {
  width: 100%;
  max-width: 100%;
  margin: 2.75rem 0 0;
  padding-top: 1.75rem;
  border-top: 1px solid #332C2B;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.blogpost-meta-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.blogpost-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem;
}

.tag-label,
.share-label {
  font-weight: 900;
  font-size: 0.9rem;
  color: var(--text-white);
  margin-right: 0.35rem;
}

.post-tag {
  font-style: italic;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--accent-yellow);
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.2s ease;
}

.post-tag:hover,
.post-tag:focus-visible {
  border-bottom-color: var(--accent-yellow);
}

/* Social Share Links */
.blogpost-share {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  row-gap: 0.45rem;
  font-size: 0.9rem;
}

.share-link {
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--text-white);
  padding: 0 0 1px 0;
  font-family: var(--font-main);
  font-style: italic;
  font-weight: 900;
  font-size: inherit;
  color: var(--text-white);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.share-link:hover,
.share-link:focus-visible,
.share-link.is-copied {
  color: var(--accent-yellow);
  border-bottom-color: var(--accent-yellow);
}

.blogpost-prev-next {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #332C2B;
}

.prev-next-link {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-decoration: none;
  color: var(--text-white);
  transition: color 0.2s ease;
}

.prev-next-link--next {
  text-align: right;
  align-items: flex-end;
}

.prev-next-dir {
  font-style: italic;
  font-weight: 900;
  font-size: 0.85rem;
  color: var(--accent-yellow);
}

.prev-next-title {
  font-weight: 800;
  font-size: clamp(0.92rem, 0.82rem + 0.3vw, 1.08rem);
  color: var(--text-white);
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.prev-next-link:hover .prev-next-title,
.prev-next-link:focus-visible .prev-next-title {
  color: var(--accent-yellow);
  border-bottom-color: var(--accent-yellow);
}

/* Related Stories & Comment Section */
.section-title--sm {
  font-size: clamp(1.65rem, 1.2rem + 1.5vw, 2.5rem);
}

.blogpost-related,
.blogpost-comments {
  width: 100%;
  padding-top: 2rem;
  border-top: 1px solid #332C2B;
}

.blog-grid--related {
  grid-template-columns: repeat(3, 1fr);
}

.comment-form {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.form-textarea--comment {
  height: calc(2 * clamp(2.6rem, 4.6dvh, 3.15rem) + clamp(1.1rem, 2.4dvh, 1.85rem));
  min-height: 7.25rem;
}

.blogpost-footer {
  margin-top: clamp(3rem, 6dvh, 4.5rem);
  padding-top: 2rem;
  border-top: 1px solid #332C2B;
}

/* ==================== BLOG ARCHIVE / LIST PAGE (/blog) ==================== */
.sr-only {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  padding: 0;
  margin: -1px;
  overflow: clip;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.blog-archive-heading {
  margin-block-end: clamp(1.5rem, 3.5dvh, 2.5rem);
}

.blog-toolbar {
  display: flex;
  align-items: safe center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding-block-end: 1.5rem;
  margin-block-end: clamp(2rem, 4dvh, 3rem);
  border-block-end: 1px solid #332C2B;
}

.blog-filter-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  row-gap: 0.5rem;
  font-size: clamp(0.88rem, 0.78rem + 0.35vw, 1.1rem);
}

.filter-pill {
  background: transparent;
  border: none;
  border-block-end: 2px solid var(--text-white);
  padding: 0 0 1px 0;
  font-family: var(--font-main);
  font-style: italic;
  font-weight: 900;
  font-size: inherit;
  color: var(--text-white);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.filter-pill:hover,
.filter-pill:focus-visible {
  color: var(--accent-yellow);
  border-block-end-color: var(--accent-yellow);
}

.filter-pill.active {
  color: var(--accent-yellow);
  border-block-end-color: transparent;
}

.blog-toolbar-right {
  display: flex;
  align-items: safe center;
  gap: 0.85rem;
  margin-inline-start: auto;
}

.blog-search-box {
  inline-size: clamp(13rem, 20vw, 18rem);
}

.blog-search-input {
  block-size: 2.45rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.88rem;
}

.blog-search-input::placeholder {
  font-style: italic;
  color: #6E6A6B;
}

.blog-view-toggle {
  display: inline-flex;
  gap: 0.35rem;
}

.view-btn {
  inline-size: 2.45rem;
  block-size: 2.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 2px solid #332C2B;
  color: var(--text-light);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.view-btn:hover,
.view-btn:focus-visible,
.view-btn.active {
  border-color: var(--accent-yellow);
  color: var(--accent-yellow);
}

.blog-archive-main {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* --- Editorial List View (Default) --- */
.blog-archive-list.is-list-view {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4dvh, 3rem);
}

.blog-archive-list.is-list-view .archive-item {
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding-block-end: clamp(2rem, 4dvh, 3rem);
  border-block-end: 1px solid #332C2B;
  align-items: center;
}

/* --- Subgrid Card View --- */
.blog-archive-list.is-grid-view {
  display: grid;
  inline-size: 100%;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(1.5rem, 2.5vw, 2.25rem);
}

.blog-archive-list.is-grid-view .archive-item {
  grid-row: span 2;
  display: grid;
  grid-template-rows: auto 1fr;
  grid-template-rows: subgrid;
  gap: 1.15rem;
  padding-block-end: 1.5rem;
  border-block-end: 1px solid #332C2B;
}

.archive-item[hidden] {
  display: none !important;
}

.archive-thumb-link {
  position: relative;
  display: block;
  inline-size: 100%;
  aspect-ratio: 16 / 10;
  background-color: #2B2526;
  overflow: clip;
  border-block-end: 3px solid var(--accent-yellow);
}

.archive-thumb-link img {
  inline-size: 100%;
  block-size: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.archive-item:hover .archive-thumb-link img,
.archive-item:focus-within .archive-thumb-link img {
  transform: scale(1.04);
}

.archive-badge {
  position: absolute;
  inset-block-start: 0.75rem;
  inset-inline-start: 0.75rem;
  background-color: var(--accent-yellow);
  color: var(--bg-dark);
  font-weight: 900;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.6rem;
}

.archive-body {
  display: flex;
  flex-direction: column;
  min-inline-size: 0;
}

.archive-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-block-end: 0.35rem;
}

.archive-meta .blog-date {
  margin-block-end: 0;
}

.archive-readtime {
  font-style: italic;
  font-size: clamp(0.75rem, 0.65rem + 0.25vw, 0.9rem);
  color: var(--border-grey);
}

.archive-title {
  font-weight: 900;
  font-size: clamp(1.2rem, 1rem + 0.7vw, 1.75rem);
  line-height: 1.2;
  margin-block-end: 0.6rem;
  text-wrap: balance;
}

.archive-title a {
  color: var(--accent-yellow);
  text-decoration: none;
  transition: color 0.2s ease;
}

.archive-title a:hover,
.archive-title a:focus-visible {
  color: var(--text-white);
}

.archive-subtitle {
  font-style: italic;
  font-weight: 600;
  font-size: clamp(0.9rem, 0.82rem + 0.3vw, 1.08rem);
  color: var(--text-white);
  margin-block-end: 0.65rem;
}

.archive-snippet {
  font-size: clamp(0.88rem, 0.8rem + 0.2vw, 0.98rem);
  line-height: 1.65;
  color: var(--text-light);
  margin-block-end: 1rem;
  text-wrap: pretty;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  overflow: clip;
}

.archive-footer {
  margin-block-start: auto;
}

.archive-read-link {
  font-size: clamp(0.88rem, 0.78rem + 0.25vw, 1.02rem);
}

/* Empty State */
.blog-empty-state {
  text-align: center;
  padding-block: 4rem;
}

.empty-state-text {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-block-end: 1rem;
}

.empty-reset-btn {
  background: transparent;
  border: none;
  border-block-end: 2px solid var(--accent-yellow);
  color: var(--accent-yellow);
  font-family: var(--font-main);
  cursor: pointer;
}

/* Pagination */
.blog-pagination {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-block-start: clamp(2.5rem, 5dvh, 4rem);
}

.page-num {
  font-weight: 900;
  font-size: clamp(1rem, 0.85rem + 0.35vw, 1.25rem);
  color: var(--text-white);
  text-decoration: none;
  border-block-end: 2px solid transparent;
  padding-block-end: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.page-num:hover,
.page-num:focus-visible {
  color: var(--accent-yellow);
  border-block-end-color: var(--accent-yellow);
}

.page-num.active {
  color: var(--accent-yellow);
  border-block-end-color: var(--accent-yellow);
}

.page-next {
  margin-inline-start: 0.5rem;
}

/* ==================== RESPONSIVE BREAKPOINTS (TABLET & MOBILE) ==================== */
@media (max-width: 1024px) {
  .works-grid,
  .blog-grid,
  .blog-grid--related {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-form {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .form-textarea,
  .form-textarea--comment {
    height: 9.5rem;
  }

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

  .blogpost-hero-media {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 768px) {
  .page-section {
    min-height: auto;
    padding-block: 3rem;
  }

  .home-section {
    min-height: 100dvh;
    padding-top: calc(var(--header-height) + 1.5rem);
    padding-bottom: 2rem;
  }

  .blog-archive-list.is-list-view .archive-item {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .blog-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .blog-toolbar-right {
    inline-size: 100%;
    margin-inline-start: 0;
    justify-content: space-between;
  }

  .blog-search-box {
    flex: 1;
    inline-size: auto;
  }

  .dot-nav {
    display: none;
  }

  .blogpost-hero-media {
    aspect-ratio: 4 / 3;
    min-height: 16rem;
  }
}

@media (max-width: 640px) {
  :root {
    --container-pad: 1.25rem;
  }

  .works-grid,
  .blog-grid,
  .blog-grid--related,
  .blogpost-prev-next,
  .blog-archive-list.is-grid-view {
    grid-template-columns: 1fr;
  }

  .blog-card {
    aspect-ratio: 4 / 3;
  }

  .prev-next-link--next {
    text-align: left;
    align-items: flex-start;
    padding-top: 1rem;
    border-top: 1px dashed #332C2B;
  }

  .hero-Lines {
    font-size: clamp(1.2rem, 5.2vw, 1.65rem);
    gap: 0.22em;
  }

  .hero-photo-credit {
    text-align: left;
    margin-top: 1.5rem;
  }

  .blogpost-hero-media {
    aspect-ratio: auto;
    min-height: 17.5rem;
  }

  .blogpost-quote {
    padding: 1rem 1.15rem;
  }

  .form-actions {
    justify-content: stretch;
  }

  .submit-btn {
    width: 100%;
  }

  .work-modal {
    padding: 2.25rem 0.75rem 0.75rem;
    max-width: 96vw;
  }

  .work-modal-close-form {
    top: -2.1rem;
    right: 0;
  }

  .back-to-top {
    right: 1rem;
    bottom: 1rem;
    padding: 0.45rem 0.8rem;
    font-size: 0.82rem;
  }
}
