:root {
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --text: #111111;
  --muted: #6f7480;
  --line: #e6ebf2;
  --line-strong: #cfd8e6;
  --soft: #eef4fb;

  --accent: #0f6dff;
  --accent-strong: #0057e6;
  --accent-dark: #001fb8;
  --accent-soft: #dce9ff;

  --shadow: 0 20px 60px rgba(0, 33, 120, 0.08);
  --shadow-soft: 0 12px 32px rgba(0, 33, 120, 0.06);

  --radius: 22px;
  --radius-lg: 30px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-shell {
  position: relative;
  overflow-x: clip;
}

.site-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 8%, rgba(15, 109, 255, 0.08), transparent 24%),
    radial-gradient(circle at 88% 15%, rgba(0, 31, 184, 0.06), transparent 22%),
    radial-gradient(circle at 80% 84%, rgba(15, 109, 255, 0.05), transparent 22%);
  z-index: 0;
}

main,
header,
footer {
  position: relative;
  z-index: 1;
}

.section {
  padding: 84px 0;
}

.section-tight {
  padding: 60px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-dark);
  font-weight: 700;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-dark) 100%);
  display: block;
}

.title-xl {
  margin: 14px 0 14px;
  font-size: clamp(28px, 3.1vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 800;
  max-width: 760px;
}

.title-lg {
  margin: 12px 0;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 800;
  max-width: 760px;
}

.title-md {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.lead {
  margin: 0;
  max-width: 700px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.text {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.section-head {
  display: grid;
  gap: 12px;
  margin-bottom: 30px;
}

.section-title-gap {
  margin-top: 14px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(17, 17, 17, 0.06);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.logo {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--accent-dark);
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav a {
  font-size: 13px;
  font-weight: 600;
  color: #202020;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.22s ease;
  cursor: pointer;
  border: none;
}

.btn-dark {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(0, 87, 230, 0.22);
}

.btn-dark:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--accent-strong) 0%, #00189c 100%);
  box-shadow: 0 16px 36px rgba(0, 87, 230, 0.26);
}

.btn-light {
  border: 1px solid var(--line-strong);
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.92);
}

.btn-light:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero {
  padding-top: 52px;
  padding-bottom: 34px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 48px;
  align-items: start;
}

.hero-copy {
  padding-top: 8px;
}

.hero-copy .title-xl {
  max-width: 680px;
}

.hero-copy .lead {
  max-width: 590px;
}

.hero-actions {
  margin-top: 26px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 30px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.hero-meta-item {
  display: grid;
  gap: 4px;
}

.hero-meta-item strong {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #161616;
}

.hero-meta-item span {
  color: var(--muted);
  font-size: 14px;
}

.hero-side {
  display: grid;
  gap: 18px;
}

.hero-line {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.hero-line:first-child {
  padding-top: 0;
}

.hero-line:last-child {
  border-bottom: none;
}

.hero-line p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.hero-mini-title {
  margin-top: 10px;
}

.services-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.service-number {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-dark);
  font-weight: 700;
}

.service-content {
  max-width: 720px;
}

.service-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  transition: opacity 0.2s ease;
}

.service-link:hover {
  opacity: 0.8;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.feature-list {
  display: grid;
  gap: 24px;
}

.feature-item {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.feature-item:last-child {
  border-bottom: none;
}

.feature-label {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--accent-dark);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
}

.steps {
  display: grid;
  gap: 20px;
}

.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
}

.step-index {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-dark);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.cta-strip {
  padding: 30px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(220, 233, 255, 0.38), rgba(255, 255, 255, 0));
}

.cta-strip-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.cta-strip p {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.cta-title {
  margin-top: 14px;
  margin-bottom: 8px;
}

.contact-wrap {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.contact-block {
  padding: 0 0 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.contact-block:last-child {
  margin-bottom: 0;
  border-bottom: none;
}

.footer {
  padding: 30px 0 42px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.footer-copy {
  max-width: 540px;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 17px;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--accent-dark);
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

/* pages */
.page-hero {
  padding-bottom: 28px;
}

.page-hero-copy {
  padding-top: 18px;
}

.service-row-page {
  margin-top: 0;
}

.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 22px 0 30px;
  border-bottom: 1px solid var(--line);
}

.detail-col {
  max-width: 520px;
}

.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.tech-item {
  padding: 0 0 20px;
  border-bottom: 1px solid var(--line);
}

.steps-large {
  display: grid;
  gap: 22px;
}

.step-large {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.contact-info-side {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.form-wrap {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.form-head {
  margin-bottom: 20px;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1b1b1b;
}

.field input,
.field textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 13px 0;
  outline: none;
  color: var(--text);
  border-radius: 0;
  font-size: 14px;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #9da5b3;
}

.field input:focus,
.field textarea:focus {
  border-bottom-color: var(--accent);
}

/* portfolio detail */
.project-showcase {
  padding: 0 0 50px;
  margin-bottom: 50px;
  border-bottom: 1px solid var(--line);
}

.project-showcase:last-child {
  margin-bottom: 0;
}

.project-top {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 38px;
  align-items: center;
}

.project-aside {
  max-width: 300px;
}

.project-title {
  margin: 0 0 10px;
  font-size: clamp(24px, 2.8vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.project-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.project-mini-line {
  width: 100%;
  height: 8px;
  margin: 18px 0;
  background: linear-gradient(90deg, var(--accent-soft) 0%, #f3f7ff 100%);
  border-radius: 999px;
}

.project-avatar-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.project-avatar {
  width: 68px;
  height: 68px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.04em;
  flex-shrink: 0;
}

.project-role {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  color: var(--muted);
}

.project-short {
  margin: 0 0 20px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.8;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-dark);
  transition: all 0.22s ease;
}

.project-link:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #ffffff;
}

.project-visual {
  min-width: 0;
}

.portfolio-frame {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #f5f8fc;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.portfolio-frame img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.project-bottom {
  padding-top: 30px;
  display: grid;
  gap: 24px;
}

.project-block {
  max-width: 900px;
}

.project-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.project-meta-card {
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.project-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.small-frame {
  border-radius: 22px;
}

.small-frame img {
  min-height: 100%;
}

/* portfolio listing page */
.portfolio-page-hero {
  padding-top: 34px;
  padding-bottom: 28px;
}

.portfolio-page-hero .lead {
  max-width: 760px;
}

.portfolio-grid-showcase {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 12px;
  align-items: stretch;
}

.portfolio-grid-main {
  min-width: 0;
}

.portfolio-grid-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.portfolio-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 16px;
  min-height: 260px;
  background: #d8d8d8;
  box-shadow: var(--shadow-soft);
  isolation: isolate;
}

.portfolio-card-large {
  min-height: 510px;
}

.portfolio-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      to top,
      rgba(0, 10, 45, 0.88) 0%,
      rgba(0, 30, 110, 0.5) 38%,
      rgba(0, 0, 0, 0.14) 100%
    );
  pointer-events: none;
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s ease;
}

.portfolio-card:hover img {
  transform: scale(1.05);
}

.portfolio-card-content {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 2;
  color: #ffffff;
}

.portfolio-card-content h2,
.portfolio-card-content h3 {
  margin: 0 0 10px;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.04;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.portfolio-card-content h2 {
  font-size: clamp(28px, 2.7vw, 42px);
}

.portfolio-card-content h3 {
  font-size: 17px;
}

.portfolio-card-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: 13px;
  line-height: 1.5;
  max-width: 100%;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.portfolio-card:hover .portfolio-card-content h2,
.portfolio-card:hover .portfolio-card-content h3 {
  color: #ffffff;
}

/* small premium utility blocks */
.soft-panel {
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-soft) 100%);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.metric-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.metric-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #ffffff;
  font-size: 12px;
  font-weight: 600;
  color: #222222;
}

/* PROJECT DETAIL PAGE */
.project-header {
  position: sticky;
  top: 0;
  z-index: 70;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(17, 17, 17, 0.06);
}

.project-header-inner {
  width: min(var(--max), calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.logo-mark {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--accent-dark);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.top-nav a {
  font-size: 13px;
  font-weight: 600;
  color: #202020;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.top-nav a:hover {
  color: var(--accent);
}

.project-layout {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 64px;
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

.project-sidebar {
  position: sticky;
  top: 110px;
}

.reading-label {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.reading-bar {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-soft) 0%, #edf4ff 100%);
  margin-bottom: 28px;
}

.reading-bar-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-dark) 100%);
  transition: width 0.18s ease;
  font-size: 0;
}

.profile-photo {
  width: 74px;
  height: 74px;
  border-radius: 999px;
  object-fit: cover;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.profile-name {
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.profile-text {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  max-width: 240px;
}

.cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.22s ease;
  box-shadow: 0 12px 28px rgba(0, 87, 230, 0.2);
}

.cta-pill:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, var(--accent-strong) 0%, #00189c 100%);
}

.cta-arrow {
  font-size: 15px;
  line-height: 1;
}

.project-main {
  min-width: 0;
}

.hero-image-wrap {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: #f4f8ff;
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}

.hero-image {
  width: 100%;
  display: block;
  object-fit: cover;
}

.summary-box {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-soft) 100%);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  margin-bottom: 30px;
}

.summary-toggle {
  width: 100%;
  border: none;
  background: transparent;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
  text-align: left;
}

.summary-toggle span:first-child {
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--text);
}

#summaryIcon {
  flex-shrink: 0;
  font-size: 16px;
  color: var(--accent-dark);
}

.summary-content {
  border-top: 1px solid var(--line);
  padding: 16px 22px 18px;
  background: rgba(255, 255, 255, 0.7);
}

.summary-content p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.project-article {
  max-width: 860px;
}

.project-section {
  padding: 0 0 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.project-section:last-of-type {
  margin-bottom: 0;
}

.project-title {
  margin: 0 0 14px;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  font-weight: 800;
  max-width: 760px;
}

.project-paragraph {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
  max-width: 760px;
}

.project-paragraph strong {
  color: var(--text);
}

.project-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
  max-width: 800px;
}

.project-list li {
  margin-bottom: 12px;
}

.project-list li:last-child {
  margin-bottom: 0;
}

.project-list strong {
  color: var(--text);
}

.project-footer {
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
}

.project-meta-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  font-size: 13px;
  color: var(--muted);
}

.site-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
  transition: all 0.22s ease;
}

.site-button:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #ffffff;
}

.scroll-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--accent-dark);
  font-size: 16px;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.scroll-top:hover {
  transform: translateY(-2px);
  background: var(--accent-soft);
  border-color: var(--accent);
}

/* responsive */
@media (max-width: 1100px) {
  .project-top {
    grid-template-columns: 1fr;
  }

  .project-aside {
    max-width: 100%;
  }

  .project-meta-grid {
    grid-template-columns: 1fr 1fr;
  }

  .portfolio-grid-showcase {
    grid-template-columns: 1fr;
  }

  .portfolio-card-large {
    min-height: 420px;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .split,
  .service-detail,
  .tech-grid,
  .form-grid,
  .project-layout {
    grid-template-columns: 1fr;
  }

  .service-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .cta-strip-inner,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-inner,
  .project-header-inner {
    min-height: auto;
    padding: 14px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
  }

  .logo,
  .logo-mark {
    width: 100%;
  }

  .nav,
  .top-nav {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    gap: 10px 14px;
    justify-content: flex-start;
  }

  .nav a,
  .top-nav a {
    font-size: 12px;
  }

  .header .btn,
  .project-header .btn,
  .cta-pill {
    width: auto;
    min-height: 42px;
    padding: 0 16px;
    font-size: 12px;
  }

  .section {
    padding: 68px 0;
  }

  .hero {
    padding-top: 24px;
  }

  .step-large {
    grid-template-columns: 48px 1fr;
  }

  .portfolio-grid-side {
    grid-template-columns: 1fr 1fr;
  }

  .portfolio-card-large {
    min-height: 380px;
  }

  .project-sidebar {
    position: static;
    top: auto;
  }

  .profile-text {
    max-width: 100%;
  }
}

@media (max-width: 760px) {
  .container,
  .project-layout,
  .project-header-inner {
    width: min(var(--max), calc(100% - 28px));
  }

  .title-xl {
    font-size: 28px;
  }

  .title-lg {
    font-size: 22px;
  }

  .lead,
  .text,
  .hero-line p,
  .project-subtitle,
  .project-short,
  .cta-strip p,
  .project-paragraph,
  .project-list,
  .summary-content p,
  .summary-toggle span:first-child {
    font-size: 14px;
  }

  .header-inner,
  .project-header-inner {
    align-items: flex-start;
  }

  .logo,
  .logo-mark {
    width: 100%;
    font-size: 18px;
  }

  .nav,
  .top-nav {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .nav a,
  .top-nav a {
    font-size: 11px;
  }

  .header .btn {
    width: 100%;
    justify-content: center;
    margin-top: 4px;
  }

  .project-meta-grid,
  .project-gallery,
  .portfolio-grid-side {
    grid-template-columns: 1fr;
  }

  .project-avatar {
    width: 58px;
    height: 58px;
    font-size: 18px;
  }

  .project-link,
  .project-meta-row,
  .site-button,
  .cta-pill,
  .btn {
    width: 100%;
    justify-content: center;
  }

  .btn-row {
    width: 100%;
  }

  .portfolio-card,
  .portfolio-card-large {
    min-height: 280px;
  }

  .portfolio-card-content {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .portfolio-card-content h2 {
    font-size: 24px;
  }

  .portfolio-card-content h3 {
    font-size: 18px;
  }

  .portfolio-card-content p {
    max-width: 100%;
    font-size: 14px;
  }

  .project-title {
    font-size: 28px;
  }

  .project-footer {
    align-items: stretch;
  }

  .project-meta {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }

  .scroll-top {
    right: 16px;
    bottom: 16px;
  }
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo-img {
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
}

@media (max-width: 760px) {
  .logo-img {
    height: 42px;
  }
}
.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  box-shadow: var(--shadow-soft);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.menu-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile-cta {
  display: none;
}

.header-cta {
  display: inline-flex;
}

@media (max-width: 980px) {
  .header-inner {
    position: relative;
    min-height: 76px;
    padding: 14px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
  }

  .logo {
    width: auto;
    flex-shrink: 0;
  }

  .menu-toggle {
    display: inline-flex;
    flex-shrink: 0;
  }

  .header-cta {
    display: none;
  }

  .nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
    z-index: 60;
  }

  .nav.nav-open {
    display: flex;
  }

  .nav a {
    width: 100%;
    padding: 10px 4px;
    font-size: 14px;
  }

  .nav-mobile-cta {
    display: inline-flex;
    justify-content: center;
    margin-top: 6px;
    width: 100%;
  }
}

@media (min-width: 981px) {
  .nav {
    display: flex !important;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 22px;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
  }
}