:root {
  --sm-bg: #f7f9fc;
  --sm-surface: #ffffff;
  --sm-surface-2: #eef3f9;
  --sm-text: #142033;
  --sm-muted: #5d6b7c;
  --sm-line: #dce5ef;
  --sm-primary: #243b6b;
  --sm-primary-2: #4b2e83;
  --sm-accent: #f0b429;
  --sm-radius: 22px;
  --sm-shadow: 0 22px 60px rgba(20, 32, 51, 0.11);
  --sm-max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--sm-bg);
  color: var(--sm-text);
  line-height: 1.6;
}

a { color: var(--sm-primary-2); text-decoration: none; }
a:hover { text-decoration: underline; }

.sm-container {
  width: min(var(--sm-max), calc(100% - 40px));
  margin: 0 auto;
}

.sm-skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--sm-text);
  color: white;
  padding: 10px 14px;
  z-index: 999;
}
.sm-skip-link:focus { left: 8px; }

.sm-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 249, 252, 0.92);
  border-bottom: 1px solid rgba(220, 229, 239, 0.85);
  backdrop-filter: blur(16px);
}
.sm-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}
.sm-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--sm-text);
  text-decoration: none;
}
.sm-brand:hover { text-decoration: none; }
.sm-brand-mark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--sm-primary-2), var(--sm-primary));
  color: white;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.sm-brand-text { display: grid; line-height: 1.15; }
.sm-brand-text strong { font-size: 1rem; }
.sm-brand-text small { color: var(--sm-muted); font-size: 0.78rem; }

.sm-nav-list {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.sm-nav-list a {
  color: var(--sm-text);
  font-weight: 650;
  font-size: 0.95rem;
}
.sm-menu-toggle {
  display: none;
  border: 1px solid var(--sm-line);
  background: var(--sm-surface);
  color: var(--sm-text);
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 700;
}

.sm-hero {
  padding: 86px 0 60px;
  background:
    radial-gradient(circle at 82% 18%, rgba(240, 180, 41, 0.22), transparent 28%),
    radial-gradient(circle at 8% 16%, rgba(75, 46, 131, 0.13), transparent 28%);
}
.sm-hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: center;
  gap: 54px;
}
.sm-eyebrow {
  margin: 0 0 12px;
  color: var(--sm-primary-2);
  font-size: 0.79rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.035em; }
.sm-hero h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(2.75rem, 6vw, 5.6rem);
}
.sm-hero-text {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--sm-muted);
  font-size: clamp(1.05rem, 1.6vw, 1.26rem);
}
.sm-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.sm-actions-page { margin-top: 24px; }
.sm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.sm-btn:hover { transform: translateY(-1px); text-decoration: none; }
.sm-btn-primary { background: var(--sm-primary); color: white; box-shadow: 0 16px 28px rgba(36, 59, 107, 0.24); }
.sm-btn-secondary { background: var(--sm-surface); color: var(--sm-primary); border-color: var(--sm-line); }
.sm-btn-ghost { color: var(--sm-primary); }
.sm-btn-light { background: white; color: var(--sm-primary); }

.sm-hero-panel {
  padding: 20px;
  border: 1px solid rgba(220, 229, 239, 0.9);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--sm-shadow);
}
.sm-panel-card {
  border-radius: 26px;
  padding: 28px;
  background: linear-gradient(135deg, var(--sm-primary), var(--sm-primary-2));
  color: white;
}
.sm-panel-card span { display: block; margin-bottom: 10px; color: rgba(255,255,255,0.72); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; }
.sm-panel-card strong { display: block; font-size: 1.6rem; line-height: 1.16; letter-spacing: -0.04em; }
.sm-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.sm-mini-grid div {
  border-radius: 20px;
  padding: 18px;
  background: var(--sm-surface);
  border: 1px solid var(--sm-line);
}
.sm-mini-grid strong { display: block; font-size: 1.2rem; }
.sm-mini-grid span { color: var(--sm-muted); font-size: .9rem; }

.sm-section { padding: 76px 0; }
.sm-section-muted { background: var(--sm-surface-2); }
.sm-section-head { max-width: 760px; margin-bottom: 30px; }
.sm-section-head-row {
  max-width: none;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
}
.sm-section h2, .sm-page-hero h1 { margin: 0; font-size: clamp(2rem, 4vw, 3.35rem); }
.sm-section-head p + h2 { margin-top: 0; }
.sm-card-grid { display: grid; gap: 20px; }
.sm-card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.sm-card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.sm-feature-card, .sm-project-card, .sm-project-detail, .sm-contact-card, .sm-post-card {
  background: var(--sm-surface);
  border: 1px solid var(--sm-line);
  border-radius: var(--sm-radius);
  padding: 28px;
  box-shadow: 0 10px 24px rgba(20, 32, 51, 0.04);
}
.sm-feature-card h3, .sm-project-card h3, .sm-project-detail h2, .sm-contact-card h2 { margin: 0 0 12px; font-size: 1.35rem; }
.sm-feature-card p, .sm-project-card p, .sm-project-detail p, .sm-contact-card p { margin: 0; color: var(--sm-muted); }
.sm-project-kicker, .sm-project-meta {
  color: var(--sm-primary-2);
  font-size: .78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 10px;
}
.sm-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.sm-tags span {
  display: inline-flex;
  border: 1px solid var(--sm-line);
  background: #f8fbff;
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--sm-primary);
  font-size: .82rem;
  font-weight: 800;
}
.sm-tags-large span { font-size: .92rem; padding: 8px 12px; }
.sm-link-arrow { font-weight: 850; color: var(--sm-primary); }
.sm-link-arrow::after { content: ' →'; }

.sm-split {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 54px;
  align-items: start;
}
.sm-prose { color: var(--sm-muted); font-size: 1.06rem; }
.sm-prose p:first-child { margin-top: 0; }
.sm-prose p:last-child { margin-bottom: 0; }

.sm-cta {
  padding: 58px 0;
  background: linear-gradient(135deg, var(--sm-primary), var(--sm-primary-2));
  color: white;
}
.sm-cta .sm-eyebrow { color: rgba(255,255,255,0.72); }
.sm-cta h2 { margin: 0; max-width: 760px; font-size: clamp(2rem, 4vw, 3rem); }
.sm-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.sm-page-hero {
  padding: 78px 0 54px;
  background: linear-gradient(180deg, #ffffff, var(--sm-bg));
  border-bottom: 1px solid var(--sm-line);
}
.sm-page-hero p:not(.sm-eyebrow) {
  max-width: 740px;
  color: var(--sm-muted);
  font-size: 1.15rem;
}
.sm-project-list { display: grid; gap: 18px; }
.sm-project-detail { padding: 34px; }
.sm-project-detail h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }

.sm-resume {
  display: grid;
  gap: 22px;
}
.sm-resume-block {
  background: var(--sm-surface);
  border: 1px solid var(--sm-line);
  border-radius: var(--sm-radius);
  padding: 30px;
}
.sm-resume-block h2 { font-size: 1.55rem; margin: 0 0 18px; }
.sm-timeline-item + .sm-timeline-item { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--sm-line); }
.sm-timeline-item h3 { margin: 0 0 5px; font-size: 1.15rem; }
.sm-timeline-item span { display: block; color: var(--sm-muted); font-weight: 750; margin-bottom: 8px; }
.sm-timeline-item p { margin: 0; color: var(--sm-muted); }
.sm-resume ul { margin: 10px 0 0; padding-left: 20px; color: var(--sm-muted); }

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

.sm-footer {
  background: #101827;
  color: white;
  padding: 34px 0;
}
.sm-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 28px;
}
.sm-footer p { margin: 8px 0 0; color: rgba(255,255,255,0.7); max-width: 560px; }
.sm-footer-links { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.sm-footer a { color: white; font-weight: 750; }

@media (max-width: 900px) {
  .sm-hero-grid, .sm-split { grid-template-columns: 1fr; }
  .sm-card-grid-3, .sm-card-grid-2, .sm-contact-grid { grid-template-columns: 1fr; }
  .sm-section-head-row, .sm-cta-inner, .sm-footer-inner { align-items: flex-start; flex-direction: column; }
  .sm-footer-links { align-items: flex-start; }
  .sm-hero { padding-top: 56px; }
}

@media (max-width: 720px) {
  .sm-container { width: min(100% - 28px, var(--sm-max)); }
  .sm-header-inner { min-height: 68px; }
  .sm-brand-text small { display: none; }
  .sm-menu-toggle { display: inline-flex; }
  .sm-nav {
    display: none;
    position: absolute;
    left: 14px;
    right: 14px;
    top: 76px;
    padding: 16px;
    border: 1px solid var(--sm-line);
    border-radius: 20px;
    background: var(--sm-surface);
    box-shadow: var(--sm-shadow);
  }
  .sm-nav.is-open { display: block; }
  .sm-nav-list { display: grid; gap: 10px; }
  .sm-nav-list a { display: block; padding: 9px 4px; }
  .sm-hero h1 { font-size: 2.55rem; }
  .sm-mini-grid { grid-template-columns: 1fr; }
  .sm-section { padding: 54px 0; }
  .sm-page-hero { padding: 52px 0 40px; }
  .sm-feature-card, .sm-project-card, .sm-project-detail, .sm-contact-card, .sm-resume-block { padding: 22px; }
}
