/* ─── home-page overrides ────────────────────────────────── */
:root {
  --radius-sm: 14px;
  --decor-opacity: 1;
}

body {
  letter-spacing: .01em;
}
body[data-decor="off"] { background: var(--bg); }

.page { padding: 56px 28px 120px; }

/* Hero */
.hero {
  position: relative;
  background: var(--surface);
  border-radius: 32px;
  padding: 64px 56px 64px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--hair-soft);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 100% 0%, color-mix(in oklab, var(--pale) 40%, transparent) 0%, transparent 55%),
    radial-gradient(80% 60% at 0% 100%, color-mix(in oklab, var(--cream-2) 70%, transparent) 0%, transparent 60%);
  pointer-events: none;
  opacity: var(--decor-opacity);
}
.hero > * { position: relative; }

.hero__logo {
  display: block;
  width: min(420px, 72%);
  height: auto;
  margin: 4px 0 6px;
}
.hero__lede {
  margin: 40px 0 0;
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.85;
  max-width: 36em;
  color: var(--ink);
  font-weight: 500;
}
.hero__lede em {
  font-style: normal;
  background: linear-gradient(transparent 60%, color-mix(in oklab, var(--pale) 60%, transparent) 60%);
  padding: 0 .15em;
  border-radius: 2px;
}
.hero__meta {
  margin-top: 26px;
  display: flex; flex-wrap: wrap; gap: 8px 10px;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: .04em;
}
.hero__meta span {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: color-mix(in oklab, var(--cream-2) 60%, transparent);
}
.hero__meta span::before {
  content: ""; width: 6px; height: 7px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: var(--pale); display: inline-block;
}

/* decorative tamago shapes */
.tamago {
  position: absolute;
  width: 120px; height: 140px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: var(--pale);
  opacity: .55;
  filter: blur(.2px);
  pointer-events: none;
}
body[data-decor="off"] .tamago { display: none; }
.tamago.t1 { top: -30px;  right: -40px;  transform: rotate(18deg); opacity: .7; }
.tamago.t2 { bottom: -50px; left: -30px; width: 80px; height: 96px; transform: rotate(-22deg); background: var(--cream-2); opacity: .9; border: 1px dashed var(--hair); }
.tamago.t3 { top: 30%; right: 8%; width: 18px; height: 22px; opacity: .7; background: var(--navy); }

/* Section */
section { margin-top: 56px; }
.section-head {
  display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px;
  padding-left: 4px;
}
.section-head__num {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: .14em;
}
.section-head__bullet {
  display: inline-block; width: 14px; height: 17px;
  background: var(--navy); border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  margin-right: 12px; transform: translateY(2px) rotate(-8deg);
}
body[data-decor="off"] .section-head__bullet { display: none; }
.section-head h2 {
  font-family: "M PLUS Rounded 1c", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(22px, 2.6vw, 28px);
  margin: 0;
  letter-spacing: .01em;
}
.section-head h2 small {
  display: block;
  font-size: 12px;
  font-family: "DM Mono", ui-monospace, monospace;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: .14em;
  margin-top: 2px;
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--hair-soft);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow-card);
}

/* Profile */
.profile {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 28px;
  align-items: start;
}
.avatar {
  width: 132px; height: 132px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--pale-2), var(--pale));
  border: 1px solid var(--hair);
  box-shadow: var(--shadow-card);
  position: relative;
  object-fit: cover;
  object-position: center;
}
.avatar-wrap { position: relative; width: 132px; height: 132px; }
.avatar::after { display: none; }
.profile__name {
  font-size: clamp(22px, 2.4vw, 26px);
  font-weight: 800;
  margin: 0;
  line-height: 1.2;
}
.profile__name span {
  color: var(--ink-muted);
  font-weight: 500;
  font-size: 14px;
  margin-left: 8px;
  letter-spacing: .02em;
}
.profile__role {
  margin: 6px 0 0;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 13px;
  color: var(--ink-muted);
  letter-spacing: .04em;
}
.profile__role::before {
  content: "↳ ";
  color: var(--pale);
}

/* Social grid */
.social {
  list-style: none; padding: 0; margin: 18px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 8px;
}
.social a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--hair);
  border-radius: 12px;
  text-decoration: none;
  background: color-mix(in oklab, var(--cream-2) 50%, transparent);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
  min-width: 0;
}
.social a > span:not(.social__dot) { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; gap: 3px; }
.social a:hover {
  transform: translateY(-1px);
  border-color: var(--navy);
  background: var(--surface);
}
.social__label {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 10.5px;
  color: var(--ink-muted);
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1;
}
.social__handle {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  overflow-wrap: anywhere;
  word-break: break-all;
  line-height: 1.35;
}
.social a > span { display: block; }
.social__dot {
  flex: 0 0 auto;
  width: 10px; height: 12px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: var(--pale);
}
.social a:hover .social__dot { background: var(--navy); }

/* Skills */
.skills {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.skills li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 12px 14px;
  border: 1px dashed var(--hair);
  border-radius: 14px;
  background: color-mix(in oklab, var(--cream-2) 35%, transparent);
}
.skills .lang {
  font-weight: 800;
  font-size: 15px;
  color: var(--navy);
  white-space: nowrap;
}
.skills .desc {
  font-size: 13.5px;
  color: var(--ink-muted);
  line-height: 1.6;
}

.certs {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed var(--hair);
}
.certs h3 {
  margin: 0 0 10px;
  font-size: 13px;
  font-family: "DM Mono", ui-monospace, monospace;
  letter-spacing: .14em;
  color: var(--ink-muted);
  font-weight: 500;
  text-transform: uppercase;
}
.certs ul { margin: 0; padding-left: 1.1em; }
.certs li { font-size: 14px; margin: 4px 0; }

/* Activity timeline */
.timeline {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.timeline li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 12px 6px;
  border-bottom: 1px solid var(--hair-soft);
  align-items: baseline;
}
.timeline li:last-child { border-bottom: 0; }
.timeline .yr {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 13px;
  color: var(--navy);
  font-weight: 500;
  letter-spacing: .02em;
  white-space: nowrap;
}
.timeline .yr::before {
  content: ""; display: inline-block; width: 7px; height: 9px; margin-right: 8px;
  background: var(--pale);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  transform: translateY(1px);
}
.timeline .body { font-size: 14.5px; line-height: 1.65; }
.timeline .body a { font-weight: 700; }
.timeline .role {
  display: inline-block;
  margin-left: 6px;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 2px 8px;
  border: 1px solid var(--hair);
  border-radius: 999px;
}

/* Cards grid for products / design */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.item {
  display: block;
  padding: 18px 18px 16px;
  border-radius: 16px;
  border: 1px solid var(--hair);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, border-color .2s ease;
  position: relative;
}
.item:hover {
  transform: translateY(-2px);
  border-color: var(--navy);
}
.item .kind {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.item .ttl {
  margin-top: 4px;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.4;
}
.item .desc {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.55;
}
.item::after {
  content: "↗";
  position: absolute; top: 14px; right: 16px;
  color: var(--pale);
  font-size: 14px;
}
.item:hover::after { color: var(--navy); }

/* Note line */
.note {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--ink-muted);
}
.note code {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 12px;
  background: color-mix(in oklab, var(--cream-2) 60%, transparent);
  border: 1px solid var(--hair);
  padding: 1px 6px; border-radius: 6px;
}

/* Responsive */
@media (max-width: 640px) {
  .page { padding: 24px 16px 80px; }
  .hero { padding: 32px 24px 36px; border-radius: 24px; }
  .card { padding: 22px 20px; }
  .profile { grid-template-columns: 1fr; }
  .avatar { width: 104px; height: 104px; }
  .timeline li { grid-template-columns: 92px 1fr; gap: 10px; }
  .timeline .yr { font-size: 12px; }
}
