:root {
  color: #171817;
  background: #f5f5f2;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Helvetica Neue", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 18% 0%, #fff 0, #f5f5f2 38rem); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

.topbar {
  position: sticky; top: 0; z-index: 20; height: 64px; padding: 0 max(24px, calc((100vw - 1180px) / 2));
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(250,250,247,.82); border-bottom: 1px solid rgba(24,26,24,.08); backdrop-filter: blur(24px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .16em; }
.brand-dot { width: 9px; height: 9px; border-radius: 50%; background: #202623; box-shadow: 0 0 0 5px rgba(32,38,35,.08); }
.topbar-state { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #666b67; }
.lock-dot { width: 7px; height: 7px; border-radius: 50%; background: #aa8b56; }
.page { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 56px 0 80px; }

.hero { display: grid; grid-template-columns: 1.25fr .75fr; gap: 32px; align-items: stretch; margin-bottom: 40px; }
.hero-copy, .surface, .project-card, .case-card, .login-card, .loading-card {
  border: 1px solid rgba(24,26,24,.08); background: rgba(255,255,253,.88); border-radius: 28px; box-shadow: 0 24px 70px rgba(38,41,38,.07);
}
.hero-copy { padding: 52px; }
.eyebrow { margin: 0 0 18px; color: #737873; font-size: 12px; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(38px, 5vw, 66px); line-height: 1.03; letter-spacing: -.055em; font-weight: 650; }
.hero-copy > p:last-child { max-width: 680px; margin: 26px 0 0; color: #626762; font-size: 17px; line-height: 1.8; }
.hero-aside { padding: 34px; display: flex; flex-direction: column; justify-content: space-between; background: #242826; color: #f7f6f0; border-radius: 28px; }
.hero-aside strong { display: block; max-width: 330px; font-size: 26px; line-height: 1.3; letter-spacing: -.03em; }
.hero-aside p { margin: 24px 0 0; color: #bfc4bf; line-height: 1.7; }

.toolbar { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 42px 2px 18px; }
.toolbar h1, .toolbar h2 { margin: 0; font-size: 32px; letter-spacing: -.04em; }
.toolbar p { margin: 8px 0 0; color: #6d726d; line-height: 1.6; }
.pill { padding: 9px 13px; border-radius: 999px; background: #e9ebe6; color: #525853; font-size: 12px; white-space: nowrap; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.project-card, .case-card { padding: 28px; transition: transform .18s ease, box-shadow .18s ease; }
.project-card:hover, .case-card:hover { transform: translateY(-2px); box-shadow: 0 30px 80px rgba(38,41,38,.11); }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 36px; }
.monogram { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; background: #272b29; color: white; font-weight: 650; }
.role { font-size: 12px; color: #707570; }
.project-card h2, .case-card h3 { margin: 0 0 10px; letter-spacing: -.025em; }
.project-card p, .case-card p { margin: 0; color: #6b706b; line-height: 1.65; }
.card-link { display: inline-flex; margin-top: 28px; font-size: 14px; font-weight: 650; }

.login-wrap { min-height: calc(100vh - 150px); display: grid; place-items: center; }
.login-card { width: min(480px, 100%); padding: 44px; }
.login-card h1 { font-size: 40px; }
.login-card > p { color: #6b706b; line-height: 1.75; }
.field { display: grid; gap: 9px; margin-top: 26px; }
.field label { font-size: 13px; color: #555b56; }
input, textarea, select { width: 100%; border: 1px solid #d9ddd7; border-radius: 14px; background: #fff; padding: 13px 14px; color: #202321; outline: none; }
input:focus, textarea:focus, select:focus { border-color: #858e87; box-shadow: 0 0 0 4px rgba(71,82,74,.08); }
textarea { min-height: 130px; resize: vertical; line-height: 1.65; }
.primary, .secondary, .danger { border: 0; border-radius: 14px; padding: 13px 18px; cursor: pointer; font-weight: 650; }
.primary { background: #242826; color: #fff; }
.secondary { background: #e8ebe6; color: #2d332f; }
.danger { background: #f4e9df; color: #784a2a; }
.full { width: 100%; margin-top: 18px; }
.error { margin-top: 14px; color: #a24034; font-size: 13px; }

.breadcrumb { display: flex; gap: 8px; color: #737873; font-size: 13px; margin-bottom: 20px; }
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; }
.surface { padding: 28px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.tab { border: 0; border-radius: 999px; padding: 9px 13px; background: #eceee9; color: #5a605b; cursor: pointer; }
.tab.active { background: #252a27; color: #fff; }
.preview-title { font-size: 28px; letter-spacing: -.035em; }
.preview-summary { color: #747974; line-height: 1.7; }
.preview-body { white-space: pre-wrap; line-height: 1.9; color: #353a36; }
.form-grid { display: grid; gap: 16px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.meta-list { display: grid; gap: 12px; margin-top: 20px; }
.meta-row { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid #eceeea; padding-bottom: 12px; font-size: 13px; }
.meta-row span:first-child { color: #777c77; }
.notice { border-radius: 16px; padding: 15px; background: #f4f1e9; color: #675a42; line-height: 1.6; font-size: 13px; }
.loading-card { padding: 32px; color: #6b706b; }
.empty { padding: 42px; border: 1px dashed #cfd4ce; border-radius: 22px; text-align: center; color: #747974; }

@media (max-width: 820px) {
  .hero, .detail { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 34px 28px; }
  .page { padding-top: 30px; }
  .toolbar { align-items: start; flex-direction: column; }
}
