@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --bg-card: #ffffff;
  --bg-card-hover: #fff7f0;
  --text: #111111;
  --text-soft: #333333;
  --muted: #777777;
  --accent: #f97316;
  --accent-2: #fb923c;
  --accent-glow: rgba(249, 115, 22, 0.25);
  --accent-strong: #ea580c;
  --line: rgba(0,0,0,0.08);
  --line-strong: rgba(0,0,0,0.14);
  --success: #10b981;
  --danger: #ef4444;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 8px 32px rgba(0,0,0,0.08);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.06);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Scroll progress bar ── */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ── Layout ── */
.container { width: min(1160px, 92%); margin: 0 auto; }
.section { padding: 90px 0; }

.section-title {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.section-title span { color: var(--accent); }

.section-subtitle {
  margin: 0 0 40px;
  color: var(--muted);
  max-width: 680px;
  font-size: 1.05rem;
}

/* ── Topbar ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--line);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.topbar.scrolled {
  border-bottom-color: var(--line-strong);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 64px;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  white-space: nowrap;
  padding-right: 28px;
  border-right: 1px solid var(--line);
  margin-right: 20px;
  flex-shrink: 0;
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: 0;
}

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

/* Nav */
.nav { display: flex; align-items: center; flex: 1; }

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.nav a, .submenu-toggle {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: color 0.18s, background 0.18s;
  white-space: nowrap;
  font-family: var(--font);
  line-height: 1;
}

.nav a:hover, .submenu-toggle:hover {
  color: var(--accent);
  background: rgba(249,115,22,0.07);
}

.nav a[aria-current="true"] {
  color: var(--accent);
  background: rgba(249,115,22,0.1);
  font-weight: 600;
}

/* Nav separator */
.nav-sep {
  width: 1px;
  height: 18px;
  background: var(--line);
  margin: 0 6px;
  flex-shrink: 0;
}

/* Submenu */
.nav-item-has-submenu { position: relative; }

.submenu-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
}

.submenu-toggle .arrow {
  font-size: 0.65rem;
  opacity: 0.6;
  transition: transform 0.2s;
  display: inline-block;
}

.nav-item-has-submenu:hover .arrow,
.submenu-open + .arrow { transform: rotate(180deg); }

.submenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  list-style: none;
  margin: 0;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
  display: none;
  animation: submenu-in 0.15s ease;
}

@keyframes submenu-in {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.submenu::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px; height: 10px;
  background: #ffffff;
  border-left: 1px solid var(--line-strong);
  border-top: 1px solid var(--line-strong);
  rotate: 45deg;
}

.submenu li { margin: 0; }

.submenu a {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.85rem;
  color: var(--muted);
  transition: all 0.15s;
}

.submenu a::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--muted);
  flex-shrink: 0;
  transition: background 0.15s;
}

.submenu a:hover {
  background: rgba(249,115,22,0.08);
  color: var(--accent);
}
.submenu a:hover::before { background: var(--accent); }

.nav-item-has-submenu:hover .submenu,
.submenu.submenu-open { display: block; }

/* Nav right actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding-left: 20px;
  flex-shrink: 0;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line-strong);
  color: var(--text-soft);
  background: transparent;
  padding: 7px 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font);
}

.nav-toggle:hover {
  background: rgba(249,115,22,0.07);
  border-color: var(--accent);
  color: var(--accent);
}

.nav-toggle-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}

.nav-toggle-icon span {
  display: block;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: all 0.25s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s;
  font-family: var(--font);
}

.btn:hover {
  background: var(--accent-strong);
  box-shadow: 0 0 24px var(--accent-glow);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: rgba(108, 99, 255, 0.5);
}
.btn-outline:hover {
  background: rgba(108, 99, 255, 0.1);
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn-sm { padding: 8px 16px; font-size: 0.82rem; }

/* ── Hero ── */
.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(249,115,22,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(251,146,60,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(249,115,22,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(249,115,22,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(249,115,22,0.08);
  border: 1px solid rgba(249,115,22,0.25);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-eyebrow::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--text);
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-soft);
  margin: 0 0 10px;
  font-weight: 500;
}

.hero p {
  margin: 0 0 32px;
  color: var(--muted);
  max-width: 520px;
  font-size: 1rem;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.hero-stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 500;
}

/* Hero right panel */
.hero-right { display: flex; flex-direction: column; gap: 16px; }

.hero-image {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
  position: relative;
}

.hero-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}
.hero-image:hover img { transform: scale(1.04); }

.hero-panel {
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-card);
}

.hero-panel h2 {
  margin: 0 0 14px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-panel ul li a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-soft);
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.hero-panel ul li a::before {
  content: '→';
  color: var(--accent);
  font-size: 0.85rem;
  transition: transform 0.2s;
}

.hero-panel ul li a:hover {
  background: rgba(249,115,22,0.08);
  color: var(--accent);
}
.hero-panel ul li a:hover::before { transform: translateX(4px); }

/* ── Cards ── */
.project-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--bg-card);
  margin-bottom: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity 0.3s;
}

.project-card:hover {
  border-color: var(--line-strong);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}

.project-card:hover::before { opacity: 1; }

.stage-intro {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) 1.15fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 16px;
}

.stage-intro .article-cover {
  height: 220px;
  margin: 0;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.stage-intro h2 { margin-top: 4px; }

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-card h2, .project-card h3 {
  margin: 12px 0 8px;
  color: var(--text);
  font-weight: 700;
}

.project-thumb {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  margin-bottom: 16px;
  transition: transform 0.4s ease;
}

.project-card:hover .project-thumb { transform: scale(1.02); }

.project-thumb--logo,
.project-thumb--product {
  object-fit: contain;
  object-position: center;
  background: #fff;
  padding: 18px;
}

.project-thumb--hap {
  object-position: center;
}

.article-cover {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 0 0 16px;
  background: var(--bg-soft);
}

.article-image-link {
  display: block;
  cursor: zoom-in;
}

.article-image-link .article-cover {
  object-fit: contain;
  object-position: center center;
  padding: 10px;
  background: #fff;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.article-image-link:hover .article-cover {
  opacity: 0.88;
  transform: scale(1.01);
}

.article-source {
  margin: 12px 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.article-source a {
  color: var(--accent);
  word-break: break-word;
}

.hap-presentation {
  display: block;
  object-fit: contain;
  object-position: center;
  max-height: 520px;
  background: #fff;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
  justify-items: center;
}

.project-gallery img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.project-gallery img:only-child {
  max-width: 620px;
}

.sisr-cover { object-position: center 32%; }

/* ── Columns ── */
.columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

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

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

.project-grid .project-card {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}

.project-grid .project-card .project-thumb {
  aspect-ratio: 16/9;
}

.project-grid .project-card .project-actions {
  margin-top: auto;
  padding-top: 18px;
}

.project-featured {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr);
  gap: 30px;
  align-items: center;
  border-color: rgba(249,115,22,0.28);
  background: linear-gradient(135deg, #fffaf5, #ffffff);
}

.project-featured .project-thumb {
  margin: 0;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.project-featured h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); }

.project-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 8px;
  color: var(--accent-strong);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.project-meta span {
  padding-right: 8px;
  border-right: 1px solid var(--line-strong);
}

.project-meta span:last-child { border-right: 0; }

.project-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 46px 0 18px;
}

.project-section-heading h2 { margin: 0; }

.project-section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

/* ── Badges ── */
.badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

.badge {
  background: rgba(249,115,22,0.08);
  color: var(--accent-strong);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 100px;
  border: 1px solid rgba(249,115,22,0.2);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* ── Skill bars ── */
.skill-item { margin-bottom: 18px; }

.skill-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
}

.skill-bar {
  height: 6px;
  background: var(--line-strong);
  border-radius: 100px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--accent-strong), var(--accent));
  width: 0%;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Timeline ── */
.timeline { display: grid; gap: 0; }

.timeline-item {
  position: relative;
  padding: 0 0 28px 28px;
  border-left: 2px solid var(--line-strong);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -6px; top: 4px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

.timeline-item:last-child { padding-bottom: 0; border-left-color: transparent; }

.timeline-item h3, .timeline-item h4 {
  margin: 0 0 6px;
  color: var(--text);
  font-weight: 700;
  font-size: 1rem;
}

.timeline-item p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* ── Service items ── */
.service-list { display: grid; gap: 20px; }

.service-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: 24px;
  transition: all 0.3s;
}

.service-item:hover {
  border-color: rgba(249,115,22,0.3);
  box-shadow: 0 8px 32px rgba(249,115,22,0.1);
}

.service-visual {
  min-height: 180px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(249,115,22,0.07), rgba(251,146,60,0.04));
  border: 1px solid var(--line);
}

/* ── About grid ── */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
}

.photo-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 300px;
  background: linear-gradient(135deg, rgba(249,115,22,0.06), rgba(251,146,60,0.03));
}

.text-card {
  border-left: 3px solid var(--accent);
  padding-left: 22px;
  color: var(--text-soft);
}

.split-line { border-top: 1px solid var(--line); margin: 20px 0 0; }

/* ── Contact form ── */
.form-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: 32px;
}

.form-grid { display: grid; gap: 16px; }

.hp-field {
  position: absolute; left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden; opacity: 0;
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-soft);
  margin-bottom: 6px;
}

input, textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: var(--bg-soft);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font: inherit;
  font-size: 0.95rem;
  transition: all 0.2s;
}

input:hover, textarea:hover { border-color: rgba(108,99,255,0.4); }
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(108,99,255,0.15); }

textarea { resize: vertical; min-height: 130px; }

button:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ── Alerts ── */
.alert {
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 0 0 14px;
  font-weight: 500;
  font-size: 0.9rem;
}

.alert-success {
  border: 1px solid rgba(16,185,129,0.3);
  background: rgba(16,185,129,0.08);
  color: #34d399;
}

.alert-error {
  border: 1px solid rgba(239,68,68,0.3);
  background: rgba(239,68,68,0.08);
  color: #f87171;
}

/* ── CTA section ── */
.cta-section {
  background: linear-gradient(135deg, rgba(249,115,22,0.07), rgba(251,146,60,0.04));
  border: 1px solid rgba(249,115,22,0.2);
  border-radius: var(--radius);
  padding: 60px 40px;
  text-align: center;
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  background: #fafafa;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.footer-brand span { color: var(--accent); }

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0; padding: 0;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }

.footer-copy {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ── Reveal animations ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Chip / tag ── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 4px 12px;
  border-radius: 100px;
}

/* ── Section divider ── */
.section-divider {
  width: 48px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-strong), var(--accent));
  border-radius: 100px;
  margin: 0 0 32px;
}

/* ── Typing cursor ── */
.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 0.9em;
  background: var(--accent);
  margin-left: 4px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-right { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .hero-image { aspect-ratio: 16/9; }
}

@media (max-width: 980px) {
  .hero-grid, .about-grid, .service-item, .columns, .columns-3 {
    grid-template-columns: 1fr;
  }
  .project-gallery {
    grid-template-columns: 1fr;
  }

  .topbar-inner {
    flex-wrap: wrap;
    padding: 10px 0;
    gap: 0;
  }

  .brand {
    border-right: none;
    margin-right: 0;
    padding-right: 0;
    flex: 1;
  }

  .nav-actions { display: none; }
  .nav-toggle { display: inline-flex; }

  .nav {
    width: 100%;
    display: none;
    order: 3;
    border-top: 1px solid var(--line);
    margin-top: 8px;
    padding-top: 8px;
  }
  .nav.nav-open { display: block; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 4px 0 8px;
  }

  .nav-sep { display: none; }

  .nav a, .submenu-toggle {
    padding: 9px 12px;
    font-size: 0.9rem;
    border-radius: 8px;
    width: 100%;
    text-align: left;
  }

  .nav-item-has-submenu { width: 100%; }

  .submenu {
    position: static;
    transform: none;
    margin: 4px 0 4px 12px;
    width: calc(100% - 12px);
    box-shadow: none;
    border-color: var(--line);
    animation: none;
  }

  .submenu::before { display: none; }

  .hero-right { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
}

@media (max-width: 640px) {
  .project-grid, .project-featured { grid-template-columns: 1fr; }
  .project-featured { gap: 20px; }
  .project-featured .project-thumb { min-height: 190px; }
  .project-section-heading { display: block; }
  .project-section-heading p { margin-top: 5px; }
  .stage-intro { grid-template-columns: 1fr; gap: 18px; }
  .stage-intro .article-cover { height: 180px; }
  .section { padding: 60px 0; }
  .hero { min-height: auto; padding: 60px 0; }
  .hero h1 { font-size: 2rem; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .cta-section { padding: 40px 24px; }
  .form-wrap { padding: 20px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
