:root {
  --bg: #f3f7f5;
  --paper: #ffffff;
  --ink: #1e211f;
  --muted: #656d68;
  --line: #d7dfda;
  --accent: #0f6b5f;
  --accent-2: #b74835;
  --accent-3: #2f5d99;
  --shadow: 0 18px 60px rgba(30, 33, 31, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.site-header {
  min-height: 82vh;
  padding: 22px clamp(18px, 4vw, 64px) 54px;
  background:
    linear-gradient(135deg, rgba(15, 107, 95, 0.12), transparent 42%),
    linear-gradient(315deg, rgba(183, 72, 53, 0.16), transparent 46%),
    var(--bg);
}

.topbar,
.site-footer {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  font-weight: 800;
  font-size: 20px;
}

.nav-actions,
.site-footer {
  color: var(--muted);
}

.nav-actions {
  display: flex;
  gap: 18px;
  font-size: 14px;
}

.hero {
  max-width: 1180px;
  margin: 72px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.78fr);
  align-items: center;
  gap: clamp(34px, 6vw, 92px);
}

.hero-copy h1 {
  margin: 8px 0 18px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-link,
.secondary-link,
.search-box button,
.filter-pill {
  min-height: 42px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.primary-link,
.search-box button,
.filter-pill.active {
  background: var(--ink);
  color: #fff;
}

.secondary-link,
.filter-pill {
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
}

.primary-link:hover,
.secondary-link:hover,
.search-box button:hover,
.filter-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(30, 33, 31, 0.14);
}

.hero-media {
  min-height: 560px;
  position: relative;
}

.media-tile {
  position: absolute;
  border-radius: 8px;
  border: 1px solid rgba(30, 33, 31, 0.12);
  box-shadow: var(--shadow);
  overflow: hidden;
  background-position: center;
  background-size: cover;
  will-change: transform;
}

.media-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.24), transparent 35%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.1) 0 1px, transparent 1px 12px);
}

.media-tile span {
  position: absolute;
  left: 18px;
  bottom: 16px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 800;
}

.media-tile.has-image::before,
.media-tile.has-image span {
  display: none;
}

.media-tile.large {
  width: 78%;
  height: 68%;
  left: 8%;
  top: 0;
  background:
    linear-gradient(140deg, rgba(15, 107, 95, 0.94), rgba(30, 33, 31, 0.86));
  animation: floatLarge 6.8s ease-in-out infinite;
}

.media-tile.photo {
  width: 48%;
  height: 34%;
  right: 0;
  bottom: 8%;
  background:
    linear-gradient(145deg, rgba(183, 72, 53, 0.92), rgba(47, 93, 153, 0.78));
  animation: floatPhoto 7.4s ease-in-out infinite;
}

.media-tile.video {
  width: 42%;
  height: 28%;
  left: 0;
  bottom: 0;
  background:
    linear-gradient(145deg, rgba(47, 93, 153, 0.95), rgba(30, 33, 31, 0.84));
  animation: floatVideo 6.2s ease-in-out infinite;
}

@keyframes floatLarge {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(0, -14px, 0) rotate(0.6deg);
  }
}

@keyframes floatPhoto {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(0, 12px, 0) rotate(-0.7deg);
  }
}

@keyframes floatVideo {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(0, -10px, 0) rotate(-0.5deg);
  }
}

.content-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 64px clamp(18px, 4vw, 36px) 84px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.section-head h2 {
  margin: 6px 0 0;
  font-size: clamp(30px, 4vw, 46px);
}

.search-box {
  display: flex;
  width: min(100%, 440px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px;
}

.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 12px;
  background: transparent;
}

.search-box button {
  border-color: var(--ink);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 14px 0;
}

.filter-pill {
  min-height: 46px;
  border-color: var(--line);
  border-radius: 8px;
  padding: 0 18px;
  background: #fff;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.content-card {
  min-width: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(30, 33, 31, 0.05);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.content-card:hover,
.content-card:focus-visible {
  border-color: rgba(15, 107, 95, 0.38);
  box-shadow: 0 14px 34px rgba(30, 33, 31, 0.1);
  outline: none;
  transform: translateY(-3px);
}

.card-media {
  aspect-ratio: 4 / 3;
  background: #e1e8e4;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.card-media img,
.card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder-media {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  background:
    linear-gradient(135deg, rgba(15, 107, 95, 0.92), rgba(47, 93, 153, 0.82)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.16) 0 2px, transparent 2px 16px);
}

.placeholder-media.image {
  background:
    linear-gradient(135deg, rgba(183, 72, 53, 0.9), rgba(15, 107, 95, 0.78)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.16) 0 2px, transparent 2px 16px);
}

.placeholder-media.video {
  background:
    linear-gradient(135deg, rgba(47, 93, 153, 0.92), rgba(30, 33, 31, 0.82)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.16) 0 2px, transparent 2px 16px);
}

.card-body {
  padding: 15px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.metric-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.metric-row span {
  border-radius: 999px;
  background: #eef6f4;
  color: var(--accent);
  padding: 4px 9px;
}

.type-badge {
  border-radius: 999px;
  padding: 3px 9px;
  background: #eef6f4;
  color: var(--accent);
  font-weight: 700;
}

.featured-dot {
  color: var(--accent-2);
  font-weight: 700;
}

.content-card h3 {
  margin: 12px 0 7px;
  font-size: 18px;
  line-height: 1.35;
}

.content-card p {
  display: -webkit-box;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.portfolio-panel .content-shell .section-head {
  align-items: start;
}

.portfolio-filter-area {
  max-width: 760px;
  margin-bottom: 36px;
}

.portfolio-panel .content-shell .section-head h2 {
  font-size: clamp(34px, 5vw, 50px);
}

.portfolio-panel .content-shell .filter-row {
  margin-top: 22px;
}

.portfolio-filter-row {
  margin: 0;
  gap: 14px;
}

.portfolio-panel .content-shell .portfolio-filter-row {
  margin: 0;
}

.portfolio-card {
  position: relative;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.portfolio-card:hover,
.portfolio-card:focus-visible {
  box-shadow: none;
  transform: translateY(-4px);
}

.portfolio-card .card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #e8eeeb;
  box-shadow: 0 12px 32px rgba(30, 33, 31, 0.08);
}

.portfolio-tag {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  max-width: calc(100% - 36px);
  border: 1px solid rgba(15, 107, 95, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent);
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(30, 33, 31, 0.12);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  color: #fff;
  background: linear-gradient(180deg, rgba(30, 33, 31, 0.04), rgba(30, 33, 31, 0.72));
  opacity: 0;
  transition: opacity 0.18s ease;
}

.portfolio-card:hover .portfolio-overlay,
.portfolio-card:focus-visible .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 800;
}

.portfolio-overlay .metric-row span {
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent);
}

.portfolio-overlay h3 {
  margin: 8px 0 6px;
  font-size: 24px;
  line-height: 1.2;
}

.portfolio-overlay p {
  display: -webkit-box;
  max-width: 280px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.portfolio-overlay strong {
  flex: 0 0 auto;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 10px 13px;
  font-size: 14px;
}

.empty-state {
  color: var(--muted);
  padding: 40px 0;
}

.detail-dialog {
  width: min(900px, calc(100vw - 24px));
  max-height: min(88vh, 860px);
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: var(--shadow);
}

.detail-dialog::backdrop {
  background: rgba(30, 33, 31, 0.48);
}

.dialog-close {
  position: sticky;
  top: 10px;
  float: right;
  width: 38px;
  height: 38px;
  margin: 10px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font-size: 24px;
}

.detail-content {
  padding: 28px clamp(18px, 5vw, 44px) 44px;
}

.detail-content h2 {
  margin: 12px 0;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.08;
}

.detail-content p,
.detail-content .rich-body {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
  white-space: pre-wrap;
}

.detail-visual {
  margin: 22px 0;
  border-radius: 8px;
  overflow: hidden;
  background: #e8eeeb;
}

.detail-visual img,
.detail-visual video {
  display: block;
  width: 100%;
  max-height: 66vh;
  object-fit: contain;
}

.site-footer {
  padding: 26px clamp(18px, 4vw, 64px) 42px;
  border-top: 1px solid var(--line);
}

.portfolio-layout {
  width: min(100%, 1560px);
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(18px, 3vw, 42px);
  display: grid;
  grid-template-columns: minmax(280px, 330px) minmax(0, 1fr);
  gap: 24px;
  background:
    linear-gradient(135deg, rgba(15, 107, 95, 0.12), transparent 42%),
    linear-gradient(315deg, rgba(183, 72, 53, 0.16), transparent 46%),
    var(--bg);
}

.profile-card,
.portfolio-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 42px rgba(30, 33, 31, 0.07);
}

.profile-card {
  position: sticky;
  top: 24px;
  align-self: start;
  min-height: calc(100vh - 84px);
  min-width: 0;
  padding: 28px;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.profile-avatar {
  width: 142px;
  height: 142px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 54px;
  font-weight: 800;
  background:
    linear-gradient(135deg, rgba(15, 107, 95, 0.92), rgba(47, 93, 153, 0.82)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.16) 0 2px, transparent 2px 16px);
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

.profile-avatar.has-avatar {
  color: transparent;
}

.profile-card h1 {
  margin: 24px 0 8px;
  font-size: 28px;
  line-height: 1.2;
  text-align: center;
}

.profile-role {
  margin: 0;
  max-width: 100%;
  border-radius: 999px;
  background: #eef6f4;
  color: var(--accent);
  padding: 7px 14px;
  text-align: center;
  overflow-wrap: anywhere;
}

.profile-divider {
  width: 100%;
  height: 1px;
  background: var(--line);
  margin: 24px 0;
}

.profile-list {
  width: 100%;
  display: grid;
  gap: 16px;
}

.profile-row,
.contact-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.profile-icon {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef6f4;
  color: var(--accent);
  flex: 0 0 52px;
}

.profile-icon svg {
  width: 24px;
  height: 24px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-row small,
.contact-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}

.profile-row a,
.profile-row > div > span,
.contact-card strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.social-links a {
  min-height: 38px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
}

.portfolio-panel {
  min-width: 0;
  min-height: calc(100vh - 84px);
  overflow: hidden;
}

.panel-tabs {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px clamp(20px, 4vw, 42px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  overflow-x: auto;
}

.panel-tabs button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
  white-space: nowrap;
}

.panel-tabs button:hover,
.panel-tabs button.active {
  background: #eef6f4;
  color: var(--accent);
}

.panel-page {
  display: none;
  min-height: calc(100vh - 174px);
  padding: clamp(30px, 5vw, 58px) clamp(20px, 4vw, 42px);
}

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

.page-title {
  margin-bottom: 30px;
}

.page-title.compact-title {
  margin-bottom: 34px;
}

.page-title h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.05;
}

.page-title span {
  display: block;
  width: 56px;
  height: 5px;
  margin-top: 18px;
  border-radius: 999px;
  background: var(--accent);
}

.about-copy {
  max-width: 920px;
  margin-top: -4px;
}

.about-copy .intro-line {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.8;
}

.about-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.subsection-title {
  margin: 48px 0 22px;
  font-size: clamp(26px, 4vw, 36px);
}

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

.service-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(30, 33, 31, 0.04);
}

.service-visual {
  width: 104px;
  min-height: 104px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  overflow: hidden;
}

.service-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card h4 {
  margin: 0 0 8px;
  font-size: 22px;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.marquee-section {
  margin-top: 50px;
}

.marquee-section.compact {
  margin-top: 42px;
}

.marquee-title {
  margin: 0 0 22px;
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.15;
}

.marquee-window {
  position: relative;
  overflow: hidden;
  margin-inline: -2px;
  padding: 1px 0;
}

.marquee-window::before,
.marquee-window::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  width: min(12vw, 120px);
  pointer-events: none;
}

.marquee-window::before {
  left: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.92), transparent);
}

.marquee-window::after {
  right: 0;
  background: linear-gradient(270deg, rgba(255, 255, 255, 0.92), transparent);
}

.marquee-track {
  width: max-content;
  display: flex;
  gap: 16px;
  animation: marqueeLeft 34s linear infinite;
  will-change: transform;
}

.client-track {
  animation-duration: 24s;
}

.marquee-window:hover .marquee-track {
  animation-play-state: paused;
}

.testimonial-card,
.client-card {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(30, 33, 31, 0.04);
}

.testimonial-card {
  width: min(420px, calc(100vw - 72px));
  min-height: 210px;
  padding: 24px;
}

.testimonial-person {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.testimonial-avatar {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(15, 107, 95, 0.9), rgba(47, 93, 153, 0.82));
  color: #fff;
  font-weight: 800;
}

.testimonial-avatar img,
.client-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-card h4 {
  margin: 0;
  font-size: 21px;
  line-height: 1.2;
}

.testimonial-card small {
  display: block;
  margin-top: 5px;
  color: var(--accent);
  font-weight: 700;
}

.testimonial-card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.client-card {
  width: 210px;
  height: 112px;
  display: grid;
  place-items: center;
  padding: 20px;
}

.client-card img {
  max-width: 120px;
  max-height: 58px;
  object-fit: contain;
}

.client-card span {
  min-width: 74px;
  min-height: 46px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  background: #eef6f4;
  color: var(--accent);
  font-weight: 800;
}

@keyframes marqueeLeft {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(calc(-50% - 8px), 0, 0);
  }
}

.portfolio-panel .content-shell,
.article-panel,
.contact-panel,
.resume-panel {
  max-width: none;
  margin: 0;
}

.portfolio-panel .content-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.compact-head {
  margin-bottom: 24px;
}

.article-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.article-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.article-card {
  min-width: 0;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(30, 33, 31, 0.06);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.article-card:hover,
.article-card:focus-visible {
  border-color: rgba(15, 107, 95, 0.38);
  box-shadow: 0 14px 34px rgba(30, 33, 31, 0.1);
  outline: none;
  transform: translateY(-3px);
}

.article-card h3 {
  margin: 16px 0 12px;
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.35;
}

.article-card p {
  display: -webkit-box;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.article-card strong {
  margin-top: auto;
  color: var(--accent);
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.article-media {
  aspect-ratio: 16 / 9.2;
  background: #e1e8e4;
  overflow: hidden;
}

.article-media .placeholder-media {
  min-height: 100%;
}

.article-media img,
.article-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-card-content {
  padding: 22px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 18px;
}

.article-tags span {
  border-radius: 8px;
  background: #f3f7f5;
  color: var(--muted);
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 700;
}

.contact-card {
  padding: 18px;
  min-height: 96px;
}

.contact-panel .compact-head {
  margin-bottom: 32px;
}

.contact-map {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 5.8;
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #e1e8e4;
  box-shadow: 0 12px 32px rgba(30, 33, 31, 0.08);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.contact-map-link {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--accent);
  padding: 9px 13px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(30, 33, 31, 0.14);
}

.contact-panel .contact-grid {
  margin-top: 28px;
}

.contact-panel .contact-card {
  min-height: 118px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(30, 33, 31, 0.05);
}

.contact-panel .contact-card .profile-icon {
  width: 64px;
  height: 64px;
  flex-basis: 64px;
}

.contact-panel .contact-card small {
  font-size: 14px;
}

.contact-panel .contact-card strong {
  font-size: 18px;
}

.contact-form {
  display: grid;
  gap: 22px;
  margin-top: 34px;
}

.contact-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.contact-form label {
  display: grid;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  outline: none;
  padding: 16px 18px;
  font: inherit;
  box-shadow: 0 8px 24px rgba(30, 33, 31, 0.04);
}

.contact-form input {
  min-height: 58px;
}

.contact-form textarea {
  min-height: 210px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(15, 107, 95, 0.48);
  box-shadow: 0 0 0 3px rgba(15, 107, 95, 0.12);
}

.contact-submit {
  width: fit-content;
  min-height: 58px;
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  padding: 0 26px;
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(15, 107, 95, 0.18);
}

.contact-submit svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.form-message {
  min-height: 22px;
  margin: 0;
  color: var(--accent);
  font-size: 14px;
}

.form-message.error {
  color: var(--accent-2);
}

.compact-empty {
  padding: 0;
}

.timeline-section h3 {
  margin: 0 0 24px;
  font-size: clamp(26px, 4vw, 36px);
}

.timeline-section + .timeline-section,
.skills-section {
  margin-top: 42px;
}

.timeline {
  display: grid;
  gap: 0;
  max-width: 920px;
  border-left: 2px solid var(--line);
}

.timeline article {
  position: relative;
  padding: 0 0 34px 34px;
}

.timeline article::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--accent);
}

.timeline strong {
  display: block;
  font-size: 24px;
}

.timeline small {
  display: block;
  margin: 10px 0;
  color: var(--accent);
  font-weight: 700;
}

.timeline p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.skills-section h3 {
  margin: 0 0 24px;
  font-size: clamp(26px, 4vw, 36px);
}

.skill-list {
  display: grid;
  gap: 22px;
}

.skill-item {
  display: grid;
  gap: 9px;
}

.skill-item div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.skill-item strong {
  font-size: 18px;
}

.skill-item span {
  color: var(--muted);
  font-weight: 700;
}

.skill-item i {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: #e4ebe7;
  overflow: hidden;
}

.skill-item em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.site-footer {
  display: none;
}

@media (max-width: 1100px) {
  .content-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 900px) {
  .site-header {
    min-height: auto;
  }

  .hero {
    grid-template-columns: 1fr;
    margin-top: 46px;
  }

  .hero-media {
    min-height: 360px;
  }

  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .search-box {
    width: 100%;
  }

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

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

@media (max-width: 620px) {
  .topbar,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .hero-copy p {
    font-size: 16px;
  }

  .hero-media {
    min-height: 300px;
  }

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

  .portfolio-panel .content-grid {
    grid-template-columns: 1fr;
  }

  .search-box {
    flex-direction: column;
  }

  .search-box input {
    min-height: 42px;
  }

  .search-box button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .media-tile,
  .marquee-track {
    animation: none;
  }
}

@media (max-width: 1180px) {
  .portfolio-layout {
    grid-template-columns: 280px minmax(0, 1fr);
  }

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

@media (max-width: 960px) {
  .portfolio-layout {
    grid-template-columns: 1fr;
  }

  .profile-card {
    position: static;
    min-height: auto;
  }

  .profile-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .article-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 740px) {
  .portfolio-layout {
    padding: 12px;
    gap: 12px;
  }

  .profile-list {
    grid-template-columns: 1fr;
  }

  .panel-tabs {
    gap: 8px;
    padding: 14px;
  }

  .panel-tabs button {
    min-height: 38px;
    padding: 0 12px;
  }

  .panel-page {
    min-height: auto;
    padding: 26px 14px;
  }

  .service-card {
    grid-template-columns: 1fr;
  }

  .contact-map {
    aspect-ratio: 1 / 0.82;
    min-height: 240px;
  }

  .contact-form-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .contact-submit {
    width: 100%;
  }

  .portfolio-overlay {
    opacity: 1;
    padding: 18px;
  }

  .portfolio-overlay strong {
    display: none;
  }

  .testimonial-card {
    width: min(320px, calc(100vw - 56px));
    min-height: 220px;
    padding: 20px;
  }

  .client-card {
    width: 166px;
    height: 94px;
  }
}
