:root {
  --bg: #f3f7fb;
  --surface: #ffffff;
  --ink: #162130;
  --muted: #5e6b7d;
  --brand: #0f5f80;
  --brand-strong: #0b4a65;
  --accent: #e9f3fa;
  --line: #dbe6f0;
  --tag-bg: #eef6fc;
  --shadow: 0 14px 36px rgba(15, 35, 56, 0.1);
  --radius-xl: 18px;
  --radius-lg: 14px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Sora", sans-serif;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(1.8rem, 3.8vw, 2.8rem);
}

h2 {
  font-size: clamp(1.3rem, 2.8vw, 1.8rem);
}

h3 {
  font-size: clamp(1.05rem, 2.1vw, 1.2rem);
}

a {
  color: var(--brand-strong);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 12% 12%, rgba(18, 110, 145, 0.14), transparent 45%),
    radial-gradient(circle at 88% 8%, rgba(31, 119, 76, 0.1), transparent 40%),
    linear-gradient(180deg, #f8fbff 0%, #f1f6fb 65%, #eef4f9 100%);
  z-index: -1;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(8px);
  background: rgba(248, 251, 255, 0.92);
  border-bottom: 1px solid rgba(219, 230, 240, 0.9);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}

.brand {
  font-family: "Sora", sans-serif;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.nav-link {
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 500;
}

.nav-link.is-active,
.nav-link:hover {
  background: var(--accent);
  color: var(--brand-strong);
  text-decoration: none;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.lang-toggle a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  transition: background 0.2s;
}

.lang-toggle a:hover {
  background: var(--accent);
  text-decoration: none;
}

.lang-toggle a.active {
  color: var(--brand-strong);
  background: var(--accent);
}

.lang-toggle .divider {
  color: var(--line);
}

.hero {
  margin-top: 2.4rem;
  padding: 2.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.hero-text {
  flex: 1;
}

.hero-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--line);
  box-shadow: 0 4px 16px rgba(15, 35, 56, 0.12);
  flex-shrink: 0;
}

.eyebrow {
  color: var(--brand-strong);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
  margin-bottom: 0.5rem;
}

.hero-summary {
  margin-top: 1rem;
  color: var(--muted);
  max-width: 72ch;
}

.audience-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.audience-card {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fcfeff;
}

.audience-card h2 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.audience-card p {
  color: var(--muted);
}

.skills-strip {
  margin-top: 1.8rem;
  padding: 1.3rem 1.4rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(240, 249, 255, 0.95));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.skills-grid {
  margin-top: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.skill-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-weight: 500;
  font-size: 0.93rem;
}

.section-block {
  margin-top: 1.7rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.section-heading p {
  margin-top: 0.35rem;
  color: var(--muted);
}

.card-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(170deg, #ffffff, #f8fcff);
}

.card-top {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}

.card-top h3 {
  font-size: 1.05rem;
}

.value-line,
.project-value {
  color: var(--muted);
}

.tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-list li {
  border: 1px solid #c7d9e8;
  background: var(--tag-bg);
  color: var(--brand-strong);
  border-radius: 999px;
  padding: 0.24rem 0.58rem;
  font-size: 0.82rem;
  font-weight: 500;
}

.bullet-list,
.number-list {
  padding-left: 1.25rem;
  display: grid;
  gap: 0.45rem;
}

.bullet-list.compact {
  gap: 0.35rem;
}

.inline-link {
  font-weight: 600;
  width: fit-content;
}

.now-next {
  margin-top: 1.7rem;
}

.now-next-grid {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.panel {
  padding: 1.2rem;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.contact-links {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.contact-links a,
.link-list a,
.footer-links a {
  font-weight: 500;
}

.project-detail {
  margin-top: 1.6rem;
  margin-bottom: 2.5rem;
}

.project-header {
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.title-wrap {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.summary-grid,
.tech-grid,
.improve-grid {
  margin-top: 0.9rem;
  display: grid;
  gap: 1rem;
}

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

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

.summary-grid h3,
.tech-grid h3,
.improve-grid h3 {
  margin-bottom: 0.5rem;
}

.diagram {
  margin-top: 0.9rem;
  padding: 1rem;
  background: #f6fbff;
  border: 1px solid #d2e4f3;
  border-radius: var(--radius-sm);
  color: #27435b;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.95rem;
  overflow-x: auto;
}

.gallery-grid {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.shot-card {
  position: relative;
  margin: 0;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fbfdff;
}

.architecture-card {
  margin-top: 0.9rem;
}

.shot-media-wrap {
  position: relative;
}

.shot-media {
  width: 100%;
  min-height: 220px;
  border-radius: 8px;
  border: 1px solid #d7e6f3;
  background: #eef5fb;
}

.shot-frame {
  min-height: 320px;
}

.shot-card img {
  display: block;
  object-fit: cover;
}

.shot-card iframe {
  display: block;
  border-radius: 8px;
  background: #ffffff;
}

.shot-overlay-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 8px;
  text-decoration: none;
}

.shot-overlay-link span {
  position: absolute;
  right: 0.55rem;
  bottom: 0.55rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: #f6fbff;
  background: rgba(12, 40, 63, 0.72);
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
}

.shot-overlay-link:hover {
  background: rgba(18, 56, 84, 0.08);
}

.shot-overlay-link:focus-visible {
  outline: 2px solid var(--brand-strong);
  outline-offset: 2px;
}

.shot-card figcaption {
  margin-top: 0.55rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.status-note {
  margin-top: 0.35rem;
  color: var(--muted);
}

.link-list {
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #c9dceb;
  background: #f2f9ff;
  color: var(--brand-strong);
}

.icon-badge.large {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.icon-badge svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
}

.footer-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-inner p {
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.fade-up {
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp 0.55s ease forwards;
}

.delay-1 {
  animation-delay: 0.06s;
}

.delay-2 {
  animation-delay: 0.12s;
}

.delay-3 {
  animation-delay: 0.18s;
}

.delay-4 {
  animation-delay: 0.24s;
}

.delay-5 {
  animation-delay: 0.3s;
}

.delay-6 {
  animation-delay: 0.36s;
}

.delay-7 {
  animation-delay: 0.42s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .card-grid,
  .summary-grid,
  .gallery-grid,
  .tech-grid,
  .improve-grid,
  .audience-grid,
  .now-next-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 1.4rem;
  }

  .hero-header {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
  }

  .hero-avatar {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 620px) {
  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.7rem 0;
    min-height: 0;
  }

  .section-block,
  .project-header,
  .skills-strip {
    padding: 1.15rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 0.75rem 0;
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
