/* ==========================================================
   TNT Architecture – Minimal Split-Screen Layout
   ========================================================== */

:root {
  --c-bg: #ffffff;
  --c-bg-soft: #f4f6f9;
  --c-ink: #111111;
  --c-ink-soft: #555555;
  --c-muted: #8a8a8a;
  --c-line: #e6e6e6;
  --c-accent: #f08a1c;          /* logo orange */
  --c-overlay: rgba(0, 0, 0, 0.35);

  --ff-serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --ff-sans:  'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --pad-x: clamp(24px, 2vw, 72px);
  --pad-y: clamp(28px, 3.5vw, 56px);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

/* ----- Split shell ---------------------------------------- */
.shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.shell__media {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: #1a1a1a;
}

.shell__media img,
.shell__media .bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shell__content {
  background: var(--c-bg);
  padding: var(--pad-y) var(--pad-x);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
}

/* ----- Header / nav (overlay on media) -------------------- */
.topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px var(--pad-x);
  color: #fff;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 22px;
  color: #fff;
}
.logo__mark {
  font-family: var(--ff-serif);
  font-weight: 600;
  font-size: 28px;
  line-height: 1;
}
.logo__tag {
  background: var(--c-accent);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  padding: 4px 8px;
  border-radius: 2px;
  font-weight: 500;
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 15px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav ul, .nav li {
  list-style: none !important;
  margin: 0;
  padding: 0;
  display: contents;
}
.nav li::before, .nav li::marker { content: none !important; }
.nav a {
  position: relative;
  padding: 4px 0;
  transition: color .25s ease;
}
.nav a:not(.nav__search)::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--c-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .4s cubic-bezier(.65, 0, .35, 1);
}
.nav a:not(.nav__search):hover { color: var(--c-accent); }
.nav a:not(.nav__search):hover::after,
.nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--c-accent); }
.nav__search {
  width: 32px; height: 32px;
  display: inline-grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35);
  transition: background .2s ease, border-color .2s ease, transform .25s ease;
}
.nav__search:hover {
  background: var(--c-accent);
  border-color: var(--c-accent);
  transform: rotate(-8deg) scale(1.05);
}
.nav__search svg { width: 14px; height: 14px; stroke: #fff; transition: stroke .2s ease; }
.nav__search:hover svg { stroke: #fff; }

/* When topbar sits over light content area */
.shell__content .topbar {
  position: static;
  color: var(--c-ink);
  padding: 0 0 var(--pad-y);
}
.shell__content .logo { color: var(--c-ink); }
.shell__content .nav__search { border-color: var(--c-line); }
.shell__content .nav__search svg { stroke: var(--c-ink); }
.shell__content .nav__search:hover svg { stroke: #fff; }

/* ----- Media caption / overlay text ----------------------- */
.media__title {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, -50%);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3vw, 36px);
  white-space: nowrap;
  font-family: var(--ff-serif);
  font-weight: bold;
  color: #fff;
  font-size: clamp(48px, 6vw, 96px);
  line-height: 1;
  letter-spacing: -0.01em;
  margin: 0;
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.media__title::before,
.media__title::after {
  content: '';
  flex: 0 0 auto;
  width: clamp(56px, 7vw, 130px);
  height: 7px;
  /* Hai lớp gradient: line chính fade ra ngoài + line phụ ngắn hơn, tạo cảm giác "double rule" mảnh kiểu blueprint */
  background:
    linear-gradient(to right, transparent 0%, rgba(255,255,255,.9) 100%) 0 0 / 100% 1px no-repeat,
    linear-gradient(to right, transparent 30%, rgba(255,255,255,.4) 100%) 0 100% / 100% 1px no-repeat,
    radial-gradient(circle, var(--c-accent) 0 2.5px, transparent 3px) right center / 6px 6px no-repeat;
  animation: vtsTitleLine 1.1s cubic-bezier(.65, .05, .36, 1) .25s both;
  transform-origin: right center;
}
.media__title::after {
  background:
    linear-gradient(to right, rgba(255,255,255,.9) 0%, transparent 100%) 0 0 / 100% 1px no-repeat,
    linear-gradient(to right, rgba(255,255,255,.4) 0%, transparent 70%) 0 100% / 100% 1px no-repeat,
    radial-gradient(circle, var(--c-accent) 0 2.5px, transparent 3px) left center / 6px 6px no-repeat;
  transform-origin: left center;
}
@keyframes vtsTitleLine {
  from { transform: scaleX(0); opacity: 0; }
  to   { transform: scaleX(1); opacity: 1; }
}

.media__prev,
.media__next {
  position: absolute;
  bottom: 56px;
  z-index: 5;
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  max-width: 45%;
  transition: opacity .2s ease, transform .25s ease;
}
.media__prev { left: var(--pad-x);  text-align: left; }
.media__next { right: var(--pad-x); text-align: right; }
.media__prev:hover { transform: translateX(-4px); opacity: .85; }
.media__next:hover { transform: translateX(4px);  opacity: .85; }
.media__prev strong,
.media__next strong {
  display: block;
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0;
  text-transform: none;
  margin-top: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 900px) {
  .media__prev,
  .media__next {
    bottom: 24px;
    font-size: 11px;
    max-width: 42%;
  }
  .media__prev strong,
  .media__next strong { font-size: 16px; }
}

/* ----- Content typography --------------------------------- */
.content { flex: 1; max-width: 640px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--c-muted);
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.eyebrow svg { width: 14px; height: 14px; }
.eyebrow a {
  color: inherit;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.eyebrow a:hover {
  color: var(--c-accent);
  border-bottom-color: var(--c-accent);
}

.h-display {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: clamp(48px, 5.5vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--c-ink);
}
.h-display .accent {
  font-family: var(--ff-sans);
  font-size: 0.28em;
  vertical-align: middle;
  letter-spacing: 0.04em;
  color: var(--c-ink-soft);
  margin-left: 8px;
}

.h-title {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: clamp(36px, 3.5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.h-title--post {
  font-size: clamp(26px, 2.2vw, 38px);
  line-height: 1.2;
}

.h-section {
  font-family: var(--ff-sans);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin-bottom: 14px;
}

.lead { font-size: 17px; color: var(--c-ink-soft); }
.body p { margin-top: 16px; color: var(--c-ink-soft); }
.body p strong { color: var(--c-ink); font-weight: 600; }

/* Single post entry — article body của blog posts */
.entry { margin-top: 0; }
.entry p { margin: 0 0 18px; color: var(--c-ink-soft); font-size: 16px; line-height: 1.75; }
.entry p strong { color: var(--c-ink); font-weight: 600; }
.entry h2 { font-family: var(--ff-serif); font-weight: 500; font-size: 28px; letter-spacing: -0.01em; margin: 36px 0 14px; color: var(--c-ink); }
.entry h3 { font-family: var(--ff-serif); font-weight: 500; font-size: 22px; margin: 28px 0 12px; color: var(--c-ink); }
.entry h4 { font-weight: 600; font-size: 16px; margin: 24px 0 10px; color: var(--c-ink); }
.entry blockquote { margin: 24px 0; padding: 6px 0 6px 20px; border-left: 2px solid var(--c-accent); font-family: var(--ff-serif); font-style: italic; font-size: 22px; line-height: 1.4; color: var(--c-ink); }
.entry img { margin: 24px 0; border-radius: 8px; }
.entry a:not(.btn-pill) { color: var(--c-ink); border-bottom: 1px solid var(--c-line); padding-bottom: 1px; transition: color .2s ease, border-color .2s ease; }
.entry a:not(.btn-pill):hover { color: var(--c-accent); border-bottom-color: var(--c-accent); }
.entry hr { margin: 32px 0; border: 0; border-top: 1px solid var(--c-line); }

/* Meta inline với gap */
.meta { display: inline-flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.meta__sep { color: var(--c-line); }
.meta__item { display: inline-flex; align-items: center; gap: 6px; }
.meta__icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--c-muted);
  opacity: .85;
}

/* Tags pill row */
.entry-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.entry-tags a { display: inline-block; padding: 4px 12px; border: 1px solid var(--c-line); border-radius: 999px; font-size: 12px; color: var(--c-ink-soft); transition: border-color .2s ease, color .2s ease; }
.entry-tags a:hover { border-color: var(--c-accent); color: var(--c-accent); }

/* Related projects — 2-col grid with thumbnail (single-vts_du_an) */
.related-projects { margin: 28px 0; }
.related-projects__title { margin-bottom: 18px; }
.related-projects__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.related-projects__grid .project-card {
  aspect-ratio: 4/5;
  border-radius: 6px;
}
.related-projects__grid .project-card__label {
  padding: 14px 14px 12px;
  opacity: 1;
  background: linear-gradient(to top, rgba(0,0,0,.75), transparent);
}
.related-projects__grid .project-card__label h4 { font-size: 16px; }
.related-projects__grid .project-card__label span { font-size: 11px; }

@media (max-width: 600px) {
  .related-projects__grid { grid-template-columns: 1fr; gap: 8px; }
}

/* Related posts — list-only, no thumbnail */
.related-posts { margin: 28px 0; }
.related-posts__title { margin-bottom: 18px; }
.related-posts__list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border-top: 1px solid var(--c-line) !important;
}
.related-posts__item {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  border-bottom: 1px solid var(--c-line) !important;
}
.related-posts__item::before { display: none !important; }
.related-posts__item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 4px;
  color: var(--c-ink);
  border: 0;
  transition: padding .25s ease, color .2s ease;
}
.related-posts__item a:hover {
  color: var(--c-accent);
  padding-left: 14px;
}
.related-posts__title-link {
  font-family: var(--ff-serif);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  flex: 1;
  min-width: 0;
}
.related-posts__date {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--c-muted);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

/* Prev / next post navigation */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 32px 0;
}
.post-nav__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid var(--c-line);
  border-radius: 6px;
  color: var(--c-ink);
  transition: border-color .2s ease, transform .2s ease;
}
.post-nav__item:hover { border-color: var(--c-accent); transform: translateY(-2px); }
.post-nav__item--next { text-align: right; align-items: flex-end; }
.post-nav__label { font-size: 12px; color: var(--c-muted); letter-spacing: 0.06em; text-transform: uppercase; }
.post-nav__item strong { font-family: var(--ff-serif); font-size: 18px; font-weight: 500; line-height: 1.3; }
.post-nav__item:hover strong { color: var(--c-accent); }
@media (max-width: 600px) {
  .post-nav { grid-template-columns: 1fr; }
  .post-nav__item--next { text-align: left; align-items: flex-start; }
}

/* Responsive media inside content (iframes, standalone images) */
.shell__content iframe,
.content iframe {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  margin: 20px 0;
  border: 0;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}
.content img,
.body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Standalone media links inside article content */
.content > a,
.body > a {
  display: block;
  margin: 28px 0;
}
.content > a > img,
.body > a > img {
  display: block;
  width: 100%;
}
.content > img,
.body > img { display: block; margin: 28px 0; }

/* Vertical rhythm for top-level content blocks */
.content > p,
.body > p { margin: 16px 0; }
.content > .body { margin: 24px 0; }
.content > iframe { margin: 28px 0; }
.content > ul,
.content > ol { margin: 28px 0; }
.content > .gallery { margin-top: 36px; }
.content > h2,
.content > h3,
.content > .h-section { margin-top: 40px; }

/* Article lists (excluding .bio which has its own layout) */
.content > ul,
.content > ol,
.body ul,
.body ol {
  list-style: none;
  padding: 0;
  margin: 28px 0;
  border-top: 1px solid var(--c-line);
}
.content > ul li,
.content > ol li,
.body ul li,
.body ol li {
  position: relative;
  padding: 14px 8px 14px 32px;
  border-bottom: 1px solid var(--c-line);
  color: var(--c-ink-soft);
  font-size: 15px;
  line-height: 1.65;
  transition: background .2s ease;
}
.content > ul li:hover,
.content > ol li:hover,
.body ul li:hover,
.body ol li:hover { background: var(--c-bg-soft); }
.content > ul li:last-child,
.content > ol li:last-child,
.body ul li:last-child,
.body ol li:last-child { border-bottom: 0; }

.content > ul li::before,
.body ul li::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 23px;
  width: 6px;
  height: 6px;
  background: var(--c-accent);
  border-radius: 50%;
}

.content > ol,
.body ol { counter-reset: olist; }
.content > ol li,
.body ol li { padding-left: 56px; min-height: 32px; }
.content > ol li::before,
.body ol li::before {
  counter-increment: olist;
  content: counter(olist, decimal-leading-zero);
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--ff-serif);
  font-size: 22px;
  line-height: 1;
  letter-spacing: 0;
  color: var(--c-accent);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.content > ol li strong,
.body ol li strong {
  display: block;
  color: var(--c-ink);
  font-weight: 600;
  margin-bottom: 2px;
}

.content > ul li a,
.content > ol li a,
.body ul li a,
.body ol li a {
  color: var(--c-ink);
  border-bottom: 1px solid var(--c-line);
  padding-bottom: 1px;
  transition: border-color .2s ease;
}
.content > ul li a:hover,
.content > ol li a:hover,
.body ul li a:hover,
.body ol li a:hover { border-bottom-color: var(--c-accent); }
.content > ul li a svg,
.body ul li a svg { vertical-align: -1px; margin-left: 3px; }
.gallery a,
.gallery img { border-radius: 6px; }

.meta {
  font-size: 14px;
  color: var(--c-muted);
  margin: 12px 0 32px;
}
.meta a {
  color: var(--c-ink);
  border-bottom: 1px solid var(--c-line);
  padding-bottom: 1px;
  margin-left: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color .2s ease, border-color .2s ease;
}
.meta a:hover { color: var(--c-accent); border-bottom-color: var(--c-accent); }
.meta__arrow {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  transition: transform .25s ease;
}
.meta a:hover .meta__arrow { transform: translate(2px, -2px); }

.divider {
  border: 0;
  border-top: 1px solid var(--c-line);
  margin: 30px 0;
}

.quote {
  border-left: 2px solid var(--c-accent);
  padding: 6px 0 6px 20px;
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.4;
  color: var(--c-ink);
}

.bio {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 28px;
  align-items: start;
  margin-top: 24px;
}
.bio__photo {
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--c-bg-soft);
}
.bio__photo img { width: 100%; height: 100%; object-fit: cover; }
.bio__name {
  font-family: var(--ff-serif);
  font-size: 32px;
  font-weight: 500;
  border-bottom: 1px solid var(--c-line);
  padding-bottom: 6px;
  margin-bottom: 10px;
}
.bio__role {
  font-style: italic;
  color: var(--c-ink-soft);
  margin-bottom: 16px;
  font-size: 15px;
}
.bio ul { padding-left: 20px; }
.bio ul li { margin-bottom: 6px; color: var(--c-ink-soft); font-size: 15px; }
.bio ul li a { color: var(--c-ink); border-bottom: 1px solid var(--c-line); }

/* ----- Gallery (single project) --------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 32px;
}
.gallery a {
  position: relative;
  display: block;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--c-bg-soft);
}
.gallery a.wide { aspect-ratio: 1/1; }
.gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.gallery a:hover img { transform: scale(1.04); }

/* ----- Mobile menu (hamburger + overlay) ------------------ */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 10px 8px;
  background: transparent;
  border: transparent;
  border-radius: 50%;
  cursor: pointer;
  color: inherit;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
  transform-origin: center;
}
.nav-toggle.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.shell__content .nav-toggle { border-color: var(--c-line); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: rgba(17, 17, 17, 0.96);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.mobile-menu.is-open { opacity: 1; pointer-events: auto; }
body.menu-open { overflow: hidden; }

.mobile-menu__close {
  position: absolute;
  top: 20px; right: 20px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: transparent;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: background .2s ease;
}
.mobile-menu__close:hover { background: rgba(255,255,255,.1); }
.mobile-menu__close svg { width: 20px; height: 20px; }

.mobile-menu__list {
  list-style: none;
  padding: 0; margin: 0;
  text-align: center;
}
.mobile-menu__list li {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .35s ease, transform .35s ease;
}
.mobile-menu.is-open .mobile-menu__list li { opacity: 1; transform: translateY(0); }
.mobile-menu.is-open .mobile-menu__list li:nth-child(1) { transition-delay: .05s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(2) { transition-delay: .10s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(3) { transition-delay: .15s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(4) { transition-delay: .20s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(5) { transition-delay: .25s; }

.mobile-menu__list a {
  display: block;
  padding: 16px 24px;
  font-family: var(--ff-serif);
  font-size: 32px;
  color: #fff;
  letter-spacing: -0.005em;
  transition: color .2s ease;
}
.mobile-menu__list a:hover { color: var(--c-accent); }
.mobile-menu__list a.is-active {
  color: var(--c-accent);
  position: relative;
}
.mobile-menu__list a.is-active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  width: 24px;
  height: 1px;
  background: var(--c-accent);
}

/* ----- Floating contact ----------------------------------- */
.float-contact {
  position: fixed;
  left: 5px;
  bottom: 52px;
  z-index: 95;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.float-contact__toggle {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: var(--c-accent);
  color: #fff;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(240, 138, 28, 0.45);
  transition: transform .25s ease, background .2s ease;
  position: relative;
  overflow: hidden;
}
.float-contact__toggle:hover { transform: scale(1.06); }
.float-contact__toggle::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--c-accent);
  opacity: .35;
  animation: floatPulse 1.8s ease-out infinite;
  pointer-events: none;
}
@keyframes floatPulse {
  0%   { transform: scale(1);   opacity: .45; }
  100% { transform: scale(1.8); opacity: 0;   }
}
.float-contact.is-open .float-contact__toggle::before { animation: none; }
.float-contact__icon {
  width: 22px; height: 22px;
  transition: transform .25s ease, opacity .2s ease;
}
.float-contact__icon--close { position: absolute; opacity: 0; transform: rotate(-90deg); }
.float-contact.is-open .float-contact__icon:not(.float-contact__icon--close) {
  opacity: 0;
  transform: rotate(90deg);
}
.float-contact.is-open .float-contact__icon--close {
  opacity: 1;
  transform: rotate(0);
}

.float-contact__menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease;
}
.float-contact.is-open .float-contact__menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.float-contact__item {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--c-ink);
  border: 1px solid var(--c-line);
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(0,0,0,.10);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.float-contact__item:hover {
  background: var(--c-accent);
  color: #fff;
  border-color: var(--c-accent);
  transform: translateX(2px);
}
.float-contact__item svg { width: 18px; height: 18px; }
.float-contact__item::after {
  content: attr(data-label);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  padding: 6px 10px;
  background: var(--c-ink);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.float-contact__item:hover::after { opacity: 1; }

/* ----- Back to top ---------------------------------------- */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--c-ink);
  color: #fff;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, background .2s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover { background: var(--c-accent); }
.back-to-top:active { transform: scale(.94); }
.back-to-top svg { width: 18px; height: 18px; }

/* ----- Pill buttons (reusable CTA) ----------------------- */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--c-ink);
  border: 1px solid var(--c-ink);
  text-decoration: none;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}
.btn-pill:hover {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: #fff;
}
.btn-pill:active { transform: translateY(1px); }
.btn-pill svg { width: 14px; height: 14px; transition: transform .25s ease; }
.btn-pill:hover svg:first-child { transform: translateX(-3px); }  /* leading arrow ← */
.btn-pill:hover svg:last-child  { transform: translateX(3px); }   /* trailing arrow → */

.btn-pill--ghost {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-line);
}
.btn-pill--ghost:hover {
  background: transparent;
  color: var(--c-accent);
  border-color: var(--c-accent);
}

/* ----- Inline search (404, sidebars) ---------------------- */
.search-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 420px;
  padding: 8px 8px 8px 16px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: var(--c-bg);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.search-inline:focus-within {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(240, 138, 28, 0.12);
}
.search-inline__icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--c-muted);
}
.search-inline input[type="search"] {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 15px;
  color: var(--c-ink);
  padding: 6px 0;
  -webkit-appearance: none;
  appearance: none;
}
.search-inline input[type="search"]::placeholder { color: var(--c-muted); }
.search-inline input[type="search"]::-webkit-search-cancel-button,
.search-inline input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
.search-inline button {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--c-ink);
  color: #fff;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background .2s ease, transform .15s ease;
}
.search-inline button:hover  { background: var(--c-accent); }
.search-inline button:active { transform: scale(.94); }
.search-inline button svg { width: 16px; height: 16px; }

/* ----- Search modal --------------------------------------- */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: none;
  opacity: 0;
  transition: opacity .2s ease;
}
.search-modal.is-open { display: block; opacity: 1; }
body.search-open { overflow: hidden; }

.search-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.search-modal__panel {
  position: relative;
  max-width: 640px;
  margin: 14vh auto 0;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0,0,0,.25);
  overflow: hidden;
  transform: translateY(-8px);
  animation: searchIn .25s ease both;
}
@keyframes searchIn {
  to { transform: translateY(0); }
}
.search-modal__close {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: transparent;
  border: 0;
  color: var(--c-ink-soft);
  cursor: pointer;
  border-radius: 50%;
  transition: background .2s ease, color .2s ease;
}
.search-modal__close:hover { background: var(--c-bg-soft); color: var(--c-ink); }
.search-modal__close svg { width: 18px; height: 18px; }

.search-modal__form {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--c-line);
}
.search-modal__icon {
  width: 20px; height: 20px;
  stroke: var(--c-muted);
  flex-shrink: 0;
}
.search-modal__input {
  flex: 1;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 18px;
  background: transparent;
  color: var(--c-ink);
  padding: 4px 0;
  -webkit-appearance: none;
  appearance: none;
}
.search-modal__input::placeholder { color: var(--c-muted); }
.search-modal__input::-webkit-search-cancel-button,
.search-modal__input::-webkit-search-decoration,
.search-modal__input::-webkit-search-results-button,
.search-modal__input::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}
.search-modal__input::-ms-clear,
.search-modal__input::-ms-reveal {
  display: none;
  width: 0;
  height: 0;
}

.search-modal__hint {
  padding: 10px 24px;
  font-size: 12px;
  color: var(--c-muted);
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--c-line);
  background: var(--c-bg-soft);
}
.search-modal__hint kbd {
  display: inline-block;
  padding: 1px 6px;
  font-family: inherit;
  font-size: 11px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 3px;
  color: var(--c-ink);
}

.search-modal__results {
  list-style: none;
  max-height: 50vh;
  overflow-y: auto;
  padding: 8px 0;
}
.search-modal__results li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 24px;
  font-size: 15px;
  color: var(--c-ink);
  border-left: 2px solid transparent;
  transition: background .15s ease, border-color .15s ease;
}
.search-modal__results li a:hover,
.search-modal__results li a:focus {
  background: var(--c-bg-soft);
  border-left-color: var(--c-accent);
  outline: none;
}
.search-modal__result-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-modal__result-type {
  flex-shrink: 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-muted);
  background: var(--c-bg-soft);
  padding: 2px 8px;
  border-radius: 3px;
}
.search-modal__results li a:hover .search-modal__result-type {
  background: #fff;
  color: var(--c-accent);
}
.search-modal__view-all {
  border-top: 1px solid var(--c-line);
  margin-top: 4px;
}
.search-modal__view-all a {
  font-size: 13px !important;
  letter-spacing: 0.04em;
  color: var(--c-ink-soft) !important;
  justify-content: center !important;
}
.search-modal__view-all a:hover { color: var(--c-accent) !important; }
.search-modal__empty {
  padding: 20px 24px;
  font-size: 14px;
  color: var(--c-muted);
  text-align: center;
}

@media (max-width: 600px) {
  .search-modal__panel { margin: 0; height: 100vh; max-width: 100%; border-radius: 0; }
  .search-modal__results { max-height: calc(100vh - 180px); }
}

/* ----- Lightbox ------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .25s ease;
  touch-action: pan-y;
  user-select: none;
}
.lightbox.is-open { display: flex; opacity: 1; }
body.lightbox-open { overflow: hidden; }

.lightbox__viewport {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.lightbox__track {
  display: flex;
  height: 100%;
  will-change: transform;
  transition: transform .35s cubic-bezier(.22,.61,.36,1);
}
.lightbox__track.is-dragging { transition: none; }
.lightbox__slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 80px;
}
.lightbox__slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}

.lightbox__btn {
  position: absolute;
  z-index: 2;
  background: transparent;
  border: 0;
  color: rgba(255,255,255,.7);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
.lightbox__btn:hover {
  color: #fff;
  background: rgba(255,255,255,.1);
}
.lightbox__btn:active { transform: scale(.92); }
.lightbox__btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev  { left: 18px;  top: 50%; transform: translateY(-50%); }
.lightbox__next  { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__prev:active,
.lightbox__next:active { transform: translateY(-50%) scale(.92); }
.lightbox__btn[disabled] { opacity: .25; pointer-events: none; }

.lightbox__caption {
  position: absolute;
  left: 0; right: 0; bottom: 22px;
  z-index: 2;
  text-align: center;
  color: rgba(255,255,255,.6);
  font-size: 13px;
  letter-spacing: 0.04em;
  pointer-events: none;
  padding: 0 80px;
}
.lightbox__counter {
  position: absolute;
  top: 22px; left: 22px;
  z-index: 2;
  color: rgba(255,255,255,.5);
  font-size: 11px;
  letter-spacing: 0.18em;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 600px) {
  .lightbox__slide { padding: 56px 16px; }
  .lightbox__caption { padding: 0 16px; bottom: 12px; font-size: 13px; }
  .lightbox__btn { width: 40px; height: 40px; }
  .lightbox__prev { left: 8px; }
  .lightbox__next { right: 8px; }
  .lightbox__close { top: 12px; right: 12px; }
  .lightbox__counter { top: 18px; left: 16px; }
}

/* ----- Category / Post archive --------------------------- */
.post-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 8px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--c-line);
}
.post-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: inherit;
  font-size: 13px;
  color: var(--c-ink-soft);
  background: transparent;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.post-filter:hover { color: var(--c-ink); border-color: var(--c-ink-soft); }
.post-filter.is-active {
  background: var(--c-ink);
  color: #fff;
  border-color: var(--c-ink);
}
.post-filter span {
  font-size: 11px;
  opacity: .6;
  font-variant-numeric: tabular-nums;
}

.posts { display: flex; flex-direction: column; }
.post {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--c-line);
}
.post__media {
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 6px;
  background: var(--c-bg-soft);
}
.post__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.post:hover .post__media img { transform: scale(1.04); }
.post__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.post__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--c-muted);
  letter-spacing: 0.04em;
}
.post__tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--c-bg-soft);
  color: var(--c-ink);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  font-weight: 500;
}
.post__read::before { content: '· '; }
.post__title {
  font-family: var(--ff-serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.005em;
  margin: 0;
}
.post__title a { color: var(--c-ink); transition: color .2s ease; }
.post:hover .post__title a { color: var(--c-accent); }
.post__excerpt {
  font-size: 14px;
  color: var(--c-ink-soft);
  line-height: 1.6;
  margin: 0;
}
.post__more {
  font-size: 13px;
  color: var(--c-ink);
  border-bottom: 1px solid var(--c-line);
  padding-bottom: 1px;
  width: fit-content;
  transition: color .2s ease, border-color .2s ease;
}
.post__more:hover { color: var(--c-accent); border-bottom-color: var(--c-accent); }

/* Feature post: full-width image on top */
.post--feature {
  grid-template-columns: 1fr;
  gap: 16px;
}
.post--feature .post__media { aspect-ratio: 16/9; }
.post--feature .post__title { font-size: 30px; }

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 40px 0 16px;
}
.pagination__page,
.pagination__btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  font-size: 13px;
  color: var(--c-ink-soft);
  font-variant-numeric: tabular-nums;
  transition: background .2s ease, color .2s ease;
}
.pagination__page:hover,
.pagination__btn:hover { background: var(--c-bg-soft); color: var(--c-ink); }
.pagination__page.is-active {
  background: var(--c-ink);
  color: #fff;
  font-weight: 500;
}
.pagination__sep {
  color: var(--c-muted);
  padding: 0 4px;
}
.pagination__btn[aria-disabled="true"] {
  opacity: .35;
  pointer-events: none;
}

@media (max-width: 720px) {
  .post {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .post__media { aspect-ratio: 16/9; }
  .post__title { font-size: 22px; }
  .post--feature .post__title { font-size: 24px; }
}

/* ----- Project listing grid (projects.html right side) ---- */
/* Full-width archive layout: applied via .shell--projects on body shell */
.shell--projects .content { max-width: none; }
.shell--projects .shell__content {
  padding-left: clamp(6px, 2.5vw, 6px);
  padding-right: clamp(6px, 2.5vw, 6px);
  padding-top: 6px;
  padding-bottom: 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.project-card {
  position: relative;
  display: block;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--c-bg-soft);
}
.project-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease, filter .3s ease;
}
.project-card:hover img { transform: scale(1.05); filter: brightness(.75); }
.project-card__label {
  position: absolute;
  inset: auto 0 0 0;
  padding: 18px 18px 16px;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.7), transparent);
  opacity: 0;
  transition: opacity .25s ease;
}
.project-card:hover .project-card__label { opacity: 1; }
.project-card__label h4 {
  font-family: var(--ff-serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.project-card__label span {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: .85;
}

/* ----- Load more (du-an) ---------------------------------- */
.project-card.is-hidden { display: none; }
@keyframes cardReveal {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.project-card.is-revealed { animation: cardReveal .5s ease both; }

.load-more-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 30px 0 24px;
}
.load-more-wrap::before,
.load-more-wrap::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--c-line);
}
.load-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
  background: none;
  border: 0;
  padding: 6px 4px;
  cursor: pointer;
  transition: color .2s ease;
}
.load-more:hover { color: var(--c-accent); }
.load-more svg {
  width: 14px; height: 14px;
  transition: transform .25s ease;
}
.load-more:hover svg { transform: translateY(3px); }
.load-more__count {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: none;
  opacity: .6;
  font-weight: 400;
}

/* ----- Job cards (tuyen-dung) ----------------------------- */
.jobs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}
.job {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px 60px;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: 8px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.job:hover {
  border-color: var(--c-accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,.06);
}
.job__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.job__title {
  font-family: var(--ff-serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--c-ink);
  margin: 0;
  line-height: 1.2;
}
.job__tag {
  flex-shrink: 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  background: var(--c-accent);
  color: #fff;
  border-radius: 3px;
  font-weight: 500;
}
.job__tag--ghost {
  background: transparent;
  color: var(--c-accent);
  border: 1px solid var(--c-accent);
}
.job__meta {
  font-size: 13px;
  color: var(--c-muted);
  letter-spacing: 0.02em;
  margin: 0;
}
.job__desc {
  font-size: 14px;
  color: var(--c-ink-soft);
  line-height: 1.6;
  margin: 0;
}
.job__cta {
  position: absolute;
  left: 22px;
  bottom: 18px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--c-ink);
  border-bottom: 1px solid var(--c-line);
  padding-bottom: 1px;
  transition: color .2s ease, border-color .2s ease;
}
.job__cta:hover { color: var(--c-accent); border-bottom-color: var(--c-accent); }

/* ----- Contact form (lien-he) ----------------------------- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 8px;
}
.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-form__field > span {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--c-ink-soft);
}
.contact-form__field input,
.contact-form__field select,
.contact-form__field textarea {
  font: inherit;
  font-size: 15px;
  color: var(--c-ink);
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: 6px;
  padding: 12px 14px;
  outline: 0;
  transition: border-color .2s ease, box-shadow .2s ease;
  width: 100%;
}
.contact-form__field textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.55;
}
.contact-form__field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--c-ink-soft) 50%), linear-gradient(135deg, var(--c-ink-soft) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.contact-form__field input:focus,
.contact-form__field select:focus,
.contact-form__field textarea:focus {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(240, 138, 28, 0.12);
}
.contact-form__submit {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--c-ink);
  border: 0;
  border-radius: 6px;
  padding: 13px 22px;
  cursor: pointer;
  transition: background .2s ease, transform .15s ease;
  margin-top: 6px;
}
.contact-form__submit:hover { background: var(--c-accent); }
.contact-form__submit:active { transform: translateY(1px); }
.contact-form__submit svg { width: 16px; height: 16px; }
.contact-form__note {
  font-size: 13px;
  color: var(--c-muted);
  margin: 0;
}
.contact-form__note a { color: var(--c-ink); border-bottom: 1px solid var(--c-line); padding-bottom: 1px; }

.social-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.social-list li {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
.social-list li::before { display: none !important; }
.social-list li a {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  font-size: 14px;
  color: var(--c-ink);
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.social-list li a:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
  background: rgba(240, 138, 28, 0.06);
}

/* ----- Footer -------------------------------------------- */
/* Footer: rich, anchored at the end of .shell__content */
.footer {
  margin-top: auto;
  padding: 28px 0 28px;
  border-top: 1px solid var(--c-line);
  color: var(--c-ink-soft);
  display: block;
  font-size: 14px;
  padding-bottom: 20px;
}

.footer__main {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: stretch;
  padding-bottom: 36px;
}
.footer__brand { display: flex; flex-direction: column; gap: 10px; }
.footer__logo {
  font-family: var(--ff-serif);
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--c-ink);
  margin: 0 0 4px;
  line-height: 1;
}
.footer__addr {
  font-style: normal;
  font-size: 14px;
  color: var(--c-ink-soft);
  line-height: 1.6;
  margin: 0;
}
.footer__link {
  font-size: 14px;
  color: var(--c-ink);
  display: inline-block;
  width: fit-content;
  border-bottom: 1px solid var(--c-line);
  padding-bottom: 1px;
  transition: border-color .2s ease, color .2s ease;
}
.footer__link:hover { color: var(--c-accent); border-bottom-color: var(--c-accent); }

.footer__connect {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-end;
  justify-content: center;
}
.footer__socials {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.footer__socials li {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
.footer__socials li::before { display: none !important; }
.footer__socials a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--c-line);
  border-radius: 50%;
  color: var(--c-ink-soft);
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.footer__socials a:hover {
  background: var(--c-ink);
  color: #fff;
  border-color: var(--c-ink);
  transform: translateY(-2px);
}
.footer__socials svg { width: 16px; height: 16px; }

.footer__bottom {
  padding-top: 22px;
  border-top: 1px solid var(--c-line);
  font-size: 12px;
  color: var(--c-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}

@media (max-width: 720px) {
  .footer__main { grid-template-columns: 1fr; gap: 28px; padding-bottom: 28px; }
  .footer__connect { align-items: flex-start; }
  .footer__bottom { justify-content: flex-start; flex-direction: column; gap: 4px; }
  .footer__logo { font-size: 32px; }
}
.flag {
  width: 24px; height: 16px;
  display: inline-block;
  background:
    linear-gradient(#b22234 0 7.7%, #fff 7.7% 15.4%, #b22234 15.4% 23.1%, #fff 23.1% 30.8%, #b22234 30.8% 38.5%, #fff 38.5% 46.2%, #b22234 46.2% 53.9%, #fff 53.9% 61.6%, #b22234 61.6% 69.3%, #fff 69.3% 77%, #b22234 77% 84.7%, #fff 84.7% 92.4%, #b22234 92.4% 100%);
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 50;
  border: 1px solid var(--c-line);
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.flag::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 40%; height: 53.9%;
  background: #3c3b6e;
}

/* ----- Animations ---------------------------------------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeUp .9s ease both; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .25s; }
.delay-3 { animation-delay: .4s; }

/* ----- Responsive ---------------------------------------- */
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .shell__media {
    position: relative;
    height: 70vh;
  }
  .shell__content { min-height: auto; }
  .nav { gap: 12px; margin-left: auto; }
  .nav a:not(.nav__search) { display: none; }
  .nav-toggle { display: flex; margin-left: 10px; }
  .mobile-menu__list a { font-size: 28px; padding: 14px 20px; }
  .shell__media .topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 12px 20px;
    background: rgba(17, 17, 17, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .shell__content { padding-top: 30px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .bio { grid-template-columns: 1fr; }
  .bio__photo { max-width: 220px; }
  .contact-form__row { grid-template-columns: 1fr; }
  .jobs { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .h-display { font-size: 44px; }
  .h-title { font-size: 36px; }
  .gallery, .projects-grid { grid-template-columns: 1fr 1fr; gap: 4px; }
  .topbar { padding: 18px 20px; }
  .logo__mark { font-size: 22px; }
  .logo__tag { font-size: 10px; padding: 3px 6px; }
}
