/* #region GLOBAL VARIABLES */
:root { color-scheme: dark; --page: #0b1118; --surface: #111a24; --surface-raised: #172330; --text: #edf3f8; --muted: #a7b5c3; --line: rgba(190, 209, 225, .14); --accent: #58d4bd; --accent-strong: #29bca5; --content: 1160px; font-family: Inter, "Segoe UI", Arial, sans-serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--page); color: var(--text); line-height: 1.65; font-family: Inter, "Segoe UI", Arial, sans-serif; }
.ht-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* #endregion */
/* #region HEADER & NAVIGATION */
.ht-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid var(--line); background: rgba(11, 17, 24, .92); backdrop-filter: blur(16px); }
.ht-header-inner { width: min(var(--content), calc(100% - 40px)); min-height: 72px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.ht-brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 750; text-decoration: none; letter-spacing: .01em; }
.ht-brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: #06231f; background: var(--accent); font-size: 1.25rem; }
.ht-brand-subtitle { display: block; color: var(--muted); font-size: .7rem; font-weight: 500; letter-spacing: .04em; }
.ht-navigation { display: flex; align-items: center; gap: 25px; }
.ht-navigation a { color: var(--muted); font-size: .9rem; text-decoration: none; transition: color .2s ease; }
.ht-navigation a:hover { color: var(--accent); }
.ht-navigation a:focus-visible { color: var(--accent); }
.ht-navigation .ht-nav-contact { padding: 9px 15px; border: 1px solid rgba(88, 212, 189, .55); border-radius: 8px; color: var(--accent); }
.ht-nav-articles { position: relative; }
.ht-nav-articles-heading { display: flex; align-items: center; }
.ht-nav-dropdown { position: absolute; top: calc(100% + 12px); left: -12px; display: none; width: min(340px, 80vw); max-height: min(70vh, 440px); overflow-y: auto; padding: 7px; border: 1px solid var(--line); border-radius: 10px; background: #111a24; box-shadow: 0 16px 35px rgba(0, 0, 0, .35); }
.ht-nav-dropdown a { display: block; padding: 9px 11px; border-radius: 6px; color: var(--muted); font-size: .84rem; line-height: 1.4; }
.ht-nav-dropdown a:hover, .ht-nav-dropdown a:focus-visible { background: var(--surface-raised); color: var(--accent); }
.ht-nav-articles:hover .ht-nav-dropdown, .ht-nav-articles:focus-within .ht-nav-dropdown { display: block; }
.ht-menu-toggle { display: none; color: inherit; }
.ht-wireframe-btn { color: inherit; }
.ht-popup-wireframe { color: inherit; }
.ht-model-view { color: inherit; }
.ht-popup-close { color: inherit; }
.ht-contact-field { font: inherit; }
.ht-contact-message { font: inherit; }
.ht-portfolio-item img { display: block; max-width: 100%; }

/* #endregion */
/* #region MAIN SECTIONS */
#service { padding: 90px 20px; }
#Object360View { padding: 90px 20px; }
#portfolio { padding: 90px 20px; }
#articles { padding: 90px 20px; }
#about-me { padding: 90px 20px; }
#contact { padding: 90px 20px; }

/* #endregion */
/* #region HERO / SERVICE SECTION */
#service { min-height: 590px; display: grid; align-items: center; overflow: hidden; background: radial-gradient(ellipse at 77% 42%, rgba(43, 137, 129, .22), transparent 38%), linear-gradient(120deg, #0b1118, #101d27 65%, #10232a); }
.ht-hero-inner { width: min(var(--content), 100%); margin: auto; }
.ht-kicker { color: var(--accent); font-size: .78rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.ht-hero-title { max-width: 760px; margin: 15px 0 18px; font-size: clamp(2.5rem, 6vw, 4.65rem); line-height: 1.08; letter-spacing: -.045em; }
.ht-hero-description { max-width: 760px; color: var(--muted); font-size: 1.05rem; }
.ht-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ht-action { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 10px 18px; border: 1px solid var(--line); border-radius: 8px; font-weight: 700; text-decoration: none; transition: transform .2s, border-color .2s, background .2s; }
.ht-action:hover { transform: translateY(-2px); border-color: var(--accent); }
.ht-action-primary { border-color: var(--accent); background: var(--accent); color: #06231f; }
.ht-action-primary:hover { background: #76e6d2; }
.ht-section-heading { width: min(var(--content), 100%); margin: 0 auto 35px; text-align: center; }
.ht-section-title { margin: 0; font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -.035em; }
.ht-articles-header .ht-section-title { margin: 0; font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -.035em; }
.ht-section-description { margin: 9px 0 0; color: var(--muted); }
.ht-articles-header .ht-section-description { margin: 9px 0 0; color: var(--muted); }
#Object360View { background: #0e1720; }
#portfolio { background: #0e1720; }

/* #endregion */
/* #region 3D MODEL VIEWER */
.ht-viewer-toolbar { width: min(var(--content), 100%); margin: 0 auto 18px; text-align: right; }
.ht-wireframe-btn { padding: 9px 14px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-raised); cursor: pointer; }
.ht-popup-wireframe { padding: 9px 14px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-raised); cursor: pointer; }
.ht-model-view { padding: 9px 14px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-raised); cursor: pointer; }
.ht-wireframe-btn:hover { border-color: var(--accent); }
.ht-popup-wireframe:hover { border-color: var(--accent); }
.ht-model-view:hover { border-color: var(--accent); }

/* #endregion */
/* #region MODEL & PORTFOLIO CARDS */
.ht-model-grid { width: min(var(--content), 100%); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.ht-portfolio-grid { width: min(var(--content), 100%); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.ht-model-card { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.ht-portfolio-item { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.ht-model-canvas { position: relative; min-height: 210px; overflow: hidden; background: radial-gradient(ellipse at center, #203642, #111a24 70%); }
.ht-model-name { margin: 0; padding: 13px 15px 0; color: var(--text); font-weight: 700; overflow-wrap: anywhere; }
.ht-model-view { margin: 12px 15px 16px; color: var(--accent); }
.ht-model-error { position: absolute; inset: auto 12px 10px; margin: 0; color: #ffd1c9; font-size: .8rem; text-align: center; }
.ht-portfolio-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--surface-raised); }
.ht-project-info { padding: 12px 15px; }
.ht-project-title { margin: 0; font-size: 1rem; }
.ht-empty { grid-column: 1 / -1; color: var(--muted); text-align: center; }

/* #endregion */
/* #region ARTICLE FEATURED AREA */
.ht-article-more { grid-column: 1 / -1; display: flex; justify-content: center; margin-top: 8px; }
.ht-article-featured { margin-bottom: 28px; padding: clamp(22px, 4vw, 36px); border: 1px solid var(--line); border-radius: 14px; background: radial-gradient(ellipse at 90% 0, rgba(88, 212, 189, .12), transparent 50%), var(--surface); }
.ht-featured-title { margin: 12px 0 10px; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.25; }
.ht-featured-excerpt { max-width: 760px; color: var(--muted); }
.ht-article-featured .ht-article-link { display: inline-block; margin-top: 10px; }

/* #endregion */
/* #region ABOUT SECTION */
body.popup-open { overflow: hidden; }
#about-me { background: radial-gradient(ellipse at 15% 50%, rgba(41, 188, 165, .08), transparent 40%); }
.ht-about-card { width: min(850px, 100%); margin: auto; padding: clamp(24px, 5vw, 50px); border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.ht-about-role { color: var(--accent); font-weight: 650; }
.ht-about-title { margin: 5px 0 12px; font-size: clamp(1.8rem, 4vw, 2.5rem); }
.ht-about-description { color: var(--muted); }
.ht-about-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.ht-about-tag { padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .83rem; }

/* #endregion */
/* #region CONTACT SECTION */
#contact { background: #0e1720; }
.ht-contact-container { width: min(var(--content), 100%); margin: auto; display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; }
.ht-contact-title { margin-top: 0; }
.ht-contact-detail { color: var(--muted); }
.ht-contact-form-element { display: grid; gap: 12px; }
.ht-contact-field, .ht-contact-message { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 8px; outline: none; background: var(--surface); color: var(--text); }
.ht-contact-field:focus, .ht-contact-message:focus { border-color: var(--accent); }
.ht-contact-submit { justify-self: start; padding: 12px 18px; border: 0; border-radius: 8px; background: var(--accent); color: #06231f; font-weight: 750; cursor: pointer; }
.ht-contact-submit:hover { background: #76e6d2; }

/* #endregion */
/* #region POPUP / 3D VIEWER MODAL */
.ht-popup { position: fixed; z-index: 50; inset: 0; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(2, 7, 11, .86); }
.ht-popup.is-open { display: flex; }
.ht-popup-content { display: flex; width: min(1100px, 100%); height: min(760px, 92vh); flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.ht-popup-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.ht-popup-title { margin: 0; font-size: 1.1rem; }
.ht-popup-header-actions { display: flex; gap: 9px; }
.ht-popup-close { padding: 9px 13px; border: 1px solid var(--line); border-radius: 7px; background: transparent; cursor: pointer; }
#popupViewer { position: relative; flex: 1; min-height: 0; background: radial-gradient(ellipse at center, #203642, #0b1118 72%); }
.ht-popup-viewer canvas, .ht-model-canvas canvas { display: block; width: 100%; height: 100%; }
.ht-viewer-message { position: absolute; inset: 50% 18px auto; transform: translateY(-50%); color: var(--muted); text-align: center; }

/* #endregion */
/* #region FOOTER */
.ht-footer { padding: 32px 20px; border-top: 1px solid var(--line); background: #080d12; }
.ht-footer-inner { width: min(var(--content), 100%); margin: auto; display: grid; grid-template-columns: 1fr auto; gap: 5px 24px; align-items: center; }
.ht-footer-brand { font-weight: 750; text-decoration: none; }
.ht-footer-brand span { color: var(--muted); }
.ht-footer-description { color: var(--muted); }
.ht-footer-copy { color: var(--muted); }
.ht-footer-description { margin: 0; font-size: .88rem; }
.ht-footer-top { grid-column: 2; grid-row: 1 / span 2; color: var(--accent); font-size: .9rem; text-decoration: none; }
.ht-footer-copy { grid-column: 1 / -1; margin-top: 15px; }

/* #endregion */
/* #region RESPONSIVE HEADER & SECTIONS */
@media (max-width: 760px) {
  .ht-header-inner { min-height: 66px; }
  .ht-menu-toggle { display: flex; width: 42px; height: 42px; flex-direction: column; justify-content: center; gap: 5px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: transparent; cursor: pointer; }
  .ht-menu-toggle > span:not(.ht-sr-only) { display: block; width: 100%; height: 2px; border-radius: 2px; background: var(--text); }
  .ht-navigation { position: absolute; top: 100%; right: 0; left: 0; display: none; align-items: stretch; gap: 0; padding: 8px 20px 16px; border-bottom: 1px solid var(--line); background: #0b1118; }
  .ht-navigation.is-open { display: flex; flex-direction: column; }
  .ht-navigation a { padding: 10px 4px; }
  .ht-nav-articles { width: 100%; }
  .ht-nav-dropdown { position: static; display: block; width: 100%; max-height: 280px; margin: 0 0 6px; box-shadow: none; }
  .ht-nav-dropdown a { padding: 9px 12px; }
  .ht-navigation .ht-nav-contact { margin-top: 5px; padding-left: 12px; }
  #service { padding: 68px 18px; }
  #Object360View { padding: 68px 18px; }
  #portfolio { padding: 68px 18px; }
  #articles { padding: 68px 18px; }
  #about-me { padding: 68px 18px; }
  #contact { padding: 68px 18px; }
  #service { min-height: 530px; }
  .ht-contact-container { grid-template-columns: 1fr; gap: 20px; }
  .ht-popup-header { align-items: flex-start; flex-direction: column; }
  .ht-footer-inner { grid-template-columns: 1fr auto; }
}

/* #endregion */
/* #region ACCESSIBILITY: REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* #endregion */
/* #region ARTICLES LIST */
#articles { background: var(--page); }
.ht-articles-header { width: min(var(--content), 100%); margin: 0 auto 32px; text-align: center; }
.ht-article-grid { width: min(var(--content), 100%); margin: auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.ht-article-card { display: flex; min-height: 245px; flex-direction: column; justify-content: space-between; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); transition: transform .2s ease, border-color .2s ease; }
.ht-article-card:hover { transform: translateY(-3px); border-color: rgba(88, 212, 189, .5); }
.ht-article-card-body { padding: 20px; }
.ht-article-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.ht-article-badge { color: var(--accent); font-size: .75rem; font-weight: 750; letter-spacing: .04em; }
.ht-article-date { color: var(--muted); font-size: .76rem; }
.ht-card-title { margin: 16px 0 8px; font-size: 1.14rem; line-height: 1.35; }
.ht-card-excerpt { margin: 0; color: var(--muted); font-size: .91rem; }
.ht-article-card-footer { padding: 0 20px 18px; }
.ht-article-link { color: var(--accent); font-weight: 700; font-size: .88rem; text-decoration: none; }
.ht-article-link:hover { text-decoration: underline; }

/* #endregion */
/* #region LEGACY ARTICLE PAGE STYLES */
.ht-article-page { min-height: calc(100vh - 150px); padding: 64px 20px 90px; }
.ht-article-page-inner { width: min(900px, 100%); margin: auto; }
.ht-article-back { display: inline-flex; margin-bottom: 22px; color: var(--accent); font-weight: 700; text-decoration: none; } 
.ht-article-back:hover { text-decoration: underline; }
.ht-article-page-header { padding: clamp(24px, 5vw, 48px); border: 1px solid var(--line); border-radius: 16px 16px 0 0; background: radial-gradient(ellipse at 90% 0, rgba(88, 212, 189, .13), transparent 48%), var(--surface); }
.ht-article-page-category { color: var(--accent); font-size: .78rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.ht-article-title { margin: 13px 0; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.15; letter-spacing: -.04em; }
.ht-article-page-date { color: var(--muted); font-size: .9rem; }
.ht-article-content { padding: clamp(24px, 5vw, 48px); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 16px 16px; background: var(--surface); }
.journal-page-title { color: green; font-size: clamp(1.5rem, 5vw, 3.8rem); font-weight: 750; line-height: 1.1; letter-spacing: -.04em; }
.ht-article-content .articletitle { margin: 0 0 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line);   color: #1e3a8a; font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 750; line-height: 1.2; letter-spacing: -.035em; text-wrap: balance; }
.ht-article-content h2 { margin: 2em 0 .7em; color: var(--text); font-size: clamp(1.3rem, 3vw, 1.7rem); line-height: 1.3; }
.ht-article-content h3 { margin: 1.6em 0 .55em; color: var(--text); font-size: 1.15rem; }
.ht-article-content p { color: #c4d0da; }
.ht-article-content li { color: #c4d0da; }
.ht-article-content p { margin: 0 0 1.15em; }
.ht-article-content ul, .ht-article-content ol { padding-left: 1.5em; }
.ht-article-content li { margin: .45em 0; }
.ht-article-content strong { color: var(--text); }
.ht-article-content a { color: var(--accent); }
.ht-article-content hr { margin: 2em 0; border: 0; border-top: 1px solid var(--line); }
.ht-article-content img { display: block; max-width: 100%; height: auto; margin: 1.5em auto; border-radius: 10px; }
.ht-article-content table { width: 100%; margin: 1.3em 0; border-collapse: collapse; }
.ht-article-content th { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
.ht-article-content td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
.ht-article-content th { background: var(--surface-raised); color: var(--text); }
.ht-article-content .insight-box { margin: 1.4em 0; padding: 18px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 9px; background: var(--surface-raised); color: #c4d0da; }
.ht-article-content .highlight-box { margin: 1.4em 0; padding: 18px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 9px; background: var(--surface-raised); color: #c4d0da; }
.ht-article-content .author-note { margin: 1.4em 0; padding: 18px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 9px; background: var(--surface-raised); color: #c4d0da; }
.ht-article-content .msme-chart { margin: 1.5em 0; padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-raised); }
.ht-article-content .msme-chart h2 { margin-top: 0; }
.article-card { cursor: pointer; }
.article-card:focus-visible { outline: 2px solid #58d4bd; outline-offset: 3px; }
.article-card:hover .article-link { color: #76e6d2; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) {
  .ht-article-page { padding: 42px 16px 60px; }
  .ht-article-content table { display: block; overflow-x: auto; white-space: nowrap; }
}

.ht-hero-description { max-width: 760px; color: var(--muted); font-size: 1.05rem; }
.ht-section-description { margin: 9px 0 0; color: var(--muted); }
.ht-project-title { margin: 0; font-size: 1rem; }
.ht-card-excerpt { margin: 0; color: var(--muted); font-size: .91rem; }
.ht-featured-excerpt { max-width: 760px; color: var(--muted); }
.ht-contact-detail { color: var(--muted); }
.ht-contact-field { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 8px; outline: none; background: var(--surface); color: var(--text); font: inherit; }
.ht-contact-message { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 8px; outline: none; background: var(--surface); color: var(--text); font: inherit; }
.ht-contact-field:focus { border-color: var(--accent); }
.ht-contact-message:focus { border-color: var(--accent); }
.ht-footer-description { margin: 0; color: var(--muted); font-size: .88rem; }
.ht-footer-copy { grid-column: 1 / -1; margin-top: 15px; color: var(--muted); }

/* #endregion */
/* #region RICH ARTICLE CONTENT */
.ht-rich-title { margin-top: 0; font-size: clamp(1.6rem, 4vw, 2rem); line-height: 1.25; }
.ht-rich-heading { margin: 2em 0 .7em; color: var(--text); font-size: clamp(1.3rem, 3vw, 1.7rem); line-height: 1.3; }
.ht-rich-subheading { margin: 1.6em 0 .55em; color: var(--text); font-size: 1.15rem; }
.ht-rich-paragraph { margin: 0 0 1.15em; color: #c4d0da; }
.ht-rich-list { padding-left: 1.5em; }
.ht-rich-list-item { margin: .45em 0; color: #c4d0da; }
.ht-rich-strong { color: var(--text); }
.ht-rich-link { color: var(--accent); }
.ht-rich-rule { margin: 2em 0; border: 0; border-top: 1px solid var(--line); }
.ht-rich-image { display: block; max-width: 100%; height: auto; margin: 1.5em auto; border-radius: 10px; }
.ht-rich-table { width: 100%; margin: 1.3em 0; border-collapse: collapse; }
.ht-rich-th { padding: 10px 12px; border: 1px solid var(--line); text-align: left; background: var(--surface-raised); color: var(--text); }
.ht-rich-td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
.ht-rich-insight, .ht-rich-highlight, .ht-rich-author-note { margin: 1.4em 0; padding: 18px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 9px; background: var(--surface-raised); color: #c4d0da; }
.ht-rich-chart { margin: 1.5em 0; padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-raised); }
.ht-rich-chart .ht-rich-heading { margin-top: 0; }


/* #endregion */
/* #region ARTICLE COMPONENT VARIANTS */
.ht-articles-title { margin: 0; color: #edf3f8; font-size: clamp(1.4rem, 3vw, 2.2rem); line-height: 1.15; letter-spacing: -.03em; }
.ht-articles-description { margin: 10px 0 0; color: #a7b5c3; }
.ht-article-card-title { margin: 0; color: #edf3f8; font-size: 1.05rem; line-height: 1.35; }
.ht-article-card-excerpt { margin: 10px 0 0; color: #a7b5c3; line-height: 1.55; }

/* ============================================================
   MAGAZINE ARTICLE LAYOUT
   ============================================================ */

.article-page { width: 100%; min-height: 100vh; padding: 42px 20px 80px; background: #0b1118; color: #edf3f8; }
.article-page-inner { width: min(1160px, 100%); margin: 0 auto; }
.article-page-header { width: 100%; margin: 0 0 30px; padding: 0 0 22px; border-bottom: 1px solid rgba(190, 209, 225, .14); }
.article-page-category { margin-bottom: 8px; color: #58d4bd; font-size: .72rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.article-page-title { margin: 0; color: #edf3f8; font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 750; line-height: 1.12; letter-spacing: -.035em; }
.article-page-date { margin-top: 9px; color: #a7b5c3; font-size: .88rem; line-height: 1.5; }
.journal-page-title { margin: 0; color: #edf3f8; font-size: clamp(2rem, 5vw, 3.8rem); font-weight: 750; line-height: 1.08; letter-spacing: -.045em; }
.article-page-header .journal-page-title { margin-bottom: 8px; }
.article-page-content { color: #c9d4de; font-size: 1rem; line-height: 1.8; }
.article-page-content > .article-card { margin-top: 0; }

.article-back-link { display: inline-flex; margin: 0 0 20px; color: #58d4bd; font-size: .86rem; font-weight: 700; text-decoration: none; }
.article-back-link:hover { color: #76e6d2; }

.article-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.article-card { display: flex; min-width: 0; min-height: 250px; flex-direction: column; justify-content: space-between; overflow: hidden; border: 1px solid rgba(190, 209, 225, .14); border-radius: 12px; background: #111a24; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.article-card:hover { transform: translateY(-3px); border-color: rgba(88, 212, 189, .48); background: #14202b; }
.article-card:first-child { grid-column: span 2; min-height: 300px; background: radial-gradient(ellipse at 90% 0, rgba(88, 212, 189, .13), transparent 45%), #111a24; }
.article-card-body { flex: 1; padding: 24px; }
.article-card:first-child .article-card-body { padding: 30px; }
.article-badge-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 15px; }
.article-badge { color: #58d4bd; font-size: .68rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.article-date { color: #8f9eab; font-size: .72rem; }
.article-card-title { margin: 0; color: #edf3f8; font-size: 1.2rem; line-height: 1.3; letter-spacing: -.015em; }
.article-card:first-child .article-card-title { max-width: 760px; font-size: clamp(1.45rem, 3vw, 2.1rem); line-height: 1.2; }
.article-card-excerpt { margin: 12px 0 0; color: #a7b5c3; font-size: .9rem; line-height: 1.65; }
.article-card:first-child .article-card-excerpt { max-width: 760px; font-size: .96rem; }
.article-card-footer { padding: 15px 24px 18px; border-top: 1px solid rgba(190, 209, 225, .1); }
.article-card:first-child .article-card-footer { padding: 17px 30px 21px; }
.article-link { color: #58d4bd; font-size: .83rem; font-weight: 750; text-decoration: none; }
.article-link:hover { color: #76e6d2; text-decoration: underline; text-underline-offset: 3px; }
.article-empty { grid-column: 1 / -1; padding: 35px; border: 1px dashed rgba(190, 209, 225, .2); border-radius: 12px; color: #a7b5c3; text-align: center; }

.article-page-content .ht-rich-title { margin: 0 0 20px; color: #edf3f8; font-size: 2rem; line-height: 1.2; }
.article-page-content .ht-rich-heading { margin: 35px 0 12px; color: #edf3f8; font-size: 1.5rem; line-height: 1.3; }
.article-page-content .ht-rich-subheading { margin: 28px 0 10px; color: #edf3f8; font-size: 1.2rem; line-height: 1.35; }
.article-page-content .ht-rich-paragraph { margin: 0 0 18px; color: #c9d4de; }
.article-page-content .ht-rich-list { margin: 0 0 20px; padding-left: 24px; }
.article-page-content .ht-rich-list-item { margin-bottom: 8px; color: #c9d4de; }
.article-page-content .ht-rich-strong { color: #edf3f8; font-weight: 700; }
.article-page-content .ht-rich-link { color: #58d4bd; text-decoration: underline; text-underline-offset: 3px; }
.article-page-content .ht-rich-rule { margin: 35px 0; border: 0; border-top: 1px solid rgba(190, 209, 225, .14); }
.article-page-content .ht-rich-image { display: block; max-width: 100%; height: auto; margin: 25px auto; border-radius: 10px; }
.article-page-content .ht-rich-table { width: 100%; margin: 25px 0; border-collapse: collapse; }
.article-page-content .ht-rich-th { padding: 12px 14px; border: 1px solid rgba(190, 209, 225, .14); background: #172330; color: #edf3f8; text-align: left; }
.article-page-content .ht-rich-td { padding: 12px 14px; border: 1px solid rgba(190, 209, 225, .14); color: #c9d4de; text-align: left; }


/* #endregion */
/* #region MAGAZINE RESPONSIVE: TABLET */
@media (max-width: 900px) {
    .article-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .article-card:first-child { grid-column: 1 / -1; }
}


/* #endregion */
/* #region MAGAZINE RESPONSIVE: MOBILE */
@media (max-width: 600px) {
    .article-page { padding: 24px 12px 55px; }
    .article-page-inner { width: 100%; }
    .article-page-header { margin-bottom: 22px; padding-bottom: 17px; }
    .article-page-title { font-size: 1.65rem; }
    .journal-page-title { font-size: 2rem; }
    .article-page-date { font-size: .78rem; }
    .article-list { grid-template-columns: 1fr; gap: 14px; }
    .article-card { min-height: 0; border-radius: 9px; }
    .article-card:first-child { grid-column: auto; min-height: 0; }
    .article-card-body, .article-card:first-child .article-card-body { padding: 18px; }
    .article-card:first-child .article-card-title { font-size: 1.35rem; }
    .article-card-title { font-size: 1.08rem; }
    .article-card-excerpt, .article-card:first-child .article-card-excerpt { font-size: .86rem; }
    .article-card-footer, .article-card:first-child .article-card-footer { padding: 13px 18px 15px; }
    .article-back-link { margin-bottom: 15px; }
    .article-page-content { font-size: .94rem; line-height: 1.72; }
    .article-page-content .ht-rich-table { display: block; overflow-x: auto; white-space: nowrap; }
}
/* #endregion */
