/* =========================================================
   AI時代の個人実績プロフィール — style.css
   1. tokens / reset
   2. layout
   3. header / nav
   4. hero / socials
   5. chips / buttons
   6. projects
   7. skills / can-do / now / timeline
   8. contact / cta / footer
   9. motion / responsive
   ========================================================= */

/* ---------- 1. tokens ---------- */

:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #eef3f8;
  --border: #dde5ee;
  --border-strong: #c6d3e0;
  --text: #1b2733;
  --muted: #56687b;
  --primary: #0b5fd0;
  --primary-hover: #0a52b4;
  --primary-ink: #ffffff;
  --accent: #0d9488;
  --ring: rgba(11, 95, 208, 0.38);
  --shadow-sm: 0 1px 2px rgba(20, 40, 65, 0.06), 0 1px 3px rgba(20, 40, 65, 0.05);
  --shadow-md: 0 6px 16px rgba(20, 40, 65, 0.09), 0 2px 6px rgba(20, 40, 65, 0.06);

  --maxw: 960px;
  --gutter: 20px;
  --radius: 14px;
  --radius-sm: 10px;
  --speed: 200ms;

  --font: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans",
    "BIZ UDPGothic", Meiryo, system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1621;
    --surface: #16202c;
    --surface-2: #1b2635;
    --border: #2a3a4c;
    --border-strong: #3a4c60;
    --text: #e6edf5;
    --muted: #9db0c4;
    --primary: #5aa2ff;
    --primary-hover: #7ab5ff;
    --primary-ink: #0b1622;
    --accent: #2dd4bf;
    --ring: rgba(90, 162, 255, 0.45);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.38);
  }
}

:root[data-theme="dark"] {
  --bg: #0e1621;
  --surface: #16202c;
  --surface-2: #1b2635;
  --border: #2a3a4c;
  --border-strong: #3a4c60;
  --text: #e6edf5;
  --muted: #9db0c4;
  --primary: #5aa2ff;
  --primary-hover: #7ab5ff;
  --primary-ink: #0b1622;
  --accent: #2dd4bf;
  --ring: rgba(90, 162, 255, 0.45);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.38);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-underline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  line-height: 1.4;
  letter-spacing: 0.01em;
  margin: 0;
}

p {
  margin: 0;
}

ul,
ol,
dl,
dd {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

[hidden] {
  display: none !important;
}

.js-only {
  display: none !important;
}

svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
  flex: none;
}

:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translate(-50%, -200%);
  z-index: 100;
  background: var(--primary);
  color: var(--primary-ink);
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

/* ---------- 2. layout ---------- */

.section {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-block: 56px;
  border-top: 1px solid var(--border);
}

.section:first-of-type {
  border-top: 0;
}

.section__title {
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section__title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.section__lead {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 10px;
}

.subsection__title {
  font-size: 1.1rem;
  margin-top: 40px;
  padding-left: 12px;
  border-left: 4px solid var(--accent);
}

.prose {
  margin-top: 18px;
  color: var(--text);
}

/* ---------- 3. header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 8px var(--gutter);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__list {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
}

.nav__list::-webkit-scrollbar {
  display: none;
}

.nav__list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: color var(--speed), background var(--speed);
}

.nav__list a:hover,
.nav__list a.is-current {
  color: var(--primary);
  background: var(--surface-2);
}

.theme-toggle {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  transition: color var(--speed), border-color var(--speed), background var(--speed);
}

.theme-toggle:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--surface-2);
}

.theme-toggle__icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: inset -6px -4px 0 0 var(--bg);
  transition: box-shadow var(--speed), transform var(--speed);
}

:root[data-theme="dark"] .theme-toggle__icon,
:root:not([data-theme="light"]) .theme-toggle__icon {
  box-shadow: inset -6px -4px 0 0 var(--bg);
}

/* ---------- 4. hero ---------- */

.section--hero {
  padding-block: 44px 48px;
  text-align: center;
}

.avatar {
  width: 128px;
  height: 128px;
  margin: 0 auto;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--surface);
  box-shadow: var(--shadow-md);
  background: var(--surface-2);
}

.hero__name {
  margin-top: 20px;
  font-size: 1.85rem;
  letter-spacing: 0.04em;
}

.hero__role {
  display: block;
  margin-top: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.06em;
}

.hero__tagline {
  margin-top: 14px;
  color: var(--text);
  font-size: 1rem;
}

.hero__summary {
  margin-top: 18px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.92rem;
  text-align: left;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: transform var(--speed), border-color var(--speed), color var(--speed),
    box-shadow var(--speed);
}

.social:hover {
  transform: translateY(-2px);
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.social svg {
  width: 17px;
  height: 17px;
}

/* ---------- 5. chips / buttons ---------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chips--center {
  justify-content: center;
  margin-top: 16px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.7;
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid transparent;
}

.chip--genre {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}

.chip--tag {
  background: color-mix(in srgb, var(--accent) 15%, var(--surface));
  color: color-mix(in srgb, var(--accent) 45%, var(--text));
  border-color: color-mix(in srgb, var(--accent) 34%, var(--surface));
}

.chip--tech {
  background: var(--surface-2);
  color: var(--muted);
  border-color: var(--border);
}

.chip--filter {
  min-height: 36px;
  padding: 0 14px;
  font-family: inherit;
  cursor: pointer;
  background: var(--surface);
  border-color: var(--border);
  color: var(--muted);
  transition: color var(--speed), border-color var(--speed), background var(--speed);
}

.chip--filter:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.chip--filter.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-ink);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--speed), background var(--speed), border-color var(--speed),
    color var(--speed), box-shadow var(--speed);
}

.btn:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.btn--primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-ink);
}

.btn--primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: var(--primary-ink);
}

.btn--lg {
  min-height: 52px;
  padding: 0 26px;
  font-size: 0.95rem;
}

.btn--disabled {
  color: var(--muted);
  border-style: dashed;
  cursor: default;
  font-weight: 600;
}

.btn--disabled:hover {
  transform: none;
  border-color: var(--border-strong);
  color: var(--muted);
  box-shadow: none;
}

.btn svg {
  width: 17px;
  height: 17px;
}

.icon-btn {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
  transition: color var(--speed), border-color var(--speed), background var(--speed);
}

.icon-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--surface-2);
}

.icon-btn svg {
  width: 16px;
  height: 16px;
}

.icon-btn.is-copied {
  color: var(--accent);
  border-color: var(--accent);
}

/* ---------- 6. projects ---------- */

.cards {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--speed) ease, box-shadow var(--speed) ease,
    border-color var(--speed) ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.card__media {
  background: var(--surface-2);
  aspect-ratio: 16 / 9;
  max-width: 100%;
  overflow: hidden;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  flex: 1;
}

.card__title {
  font-size: 1.2rem;
}

.card__summary {
  font-weight: 700;
  font-size: 0.95rem;
}

.card__desc {
  color: var(--muted);
  font-size: 0.88rem;
}

.meta {
  display: grid;
  gap: 10px;
  padding: 14px 0 2px;
  border-top: 1px solid var(--border);
}

.meta__row {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 10px;
  align-items: start;
}

.meta__label {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.06em;
  padding-top: 3px;
}

.meta__value {
  font-size: 0.85rem;
  margin: 0;
}

.bullets li {
  position: relative;
  padding-left: 15px;
  font-size: 0.85rem;
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.75em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.bullets--lg li {
  font-size: 0.95rem;
  padding-left: 20px;
}

.bullets--lg li::before {
  width: 7px;
  height: 7px;
  left: 3px;
}

.card__actions {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
}

.card__links,
.card__share {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.empty {
  margin-top: 20px;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
}

/* ---------- 6b2. 公開中のサービス ---------- */

.subsection__lead {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.dep-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.dep {
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  transition: transform var(--speed), border-color var(--speed);
}

.dep:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  border-left-color: var(--accent);
}

.dep__link {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  text-decoration: none;
}

.dep__name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
}

.dep__host {
  font-size: 0.72rem;
  color: var(--muted);
  word-break: break-all;
}

.dep__body {
  margin-top: 8px;
  color: var(--text);
  font-size: 0.84rem;
}

.dep__platform {
  margin-top: 8px;
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

/* ---------- 6c. その他の制作物 ---------- */

.ow-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.ow {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: transform var(--speed), border-color var(--speed);
}

.ow:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.ow__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.ow__title {
  font-size: 0.92rem;
  position: relative;
  padding-left: 14px;
}

.ow__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.ow__body {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.82rem;
}

/* ---------- 6a. 代表作 ---------- */

.feats {
  display: grid;
  gap: 22px;
  margin-top: 22px;
}

.feat {
  display: grid;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--speed) ease, box-shadow var(--speed) ease;
}

.feat:hover {
  transform: translateY(-3px);
}

.feat__media {
  aspect-ratio: 16 / 9;
  max-width: 100%;
  background: var(--surface-2);
  overflow: hidden;
}

.feat__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feat__body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feat__rank {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.feat__title {
  font-size: 1.35rem;
  line-height: 1.4;
}

.feat__title a {
  color: inherit;
  text-decoration: none;
}

.feat__title a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.feat__summary {
  font-size: 0.95rem;
  font-weight: 700;
}

.feat__results li {
  font-size: 0.86rem;
}

.feat__tech .chip {
  font-size: 0.72rem;
}

.feat__status {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 15%, var(--surface));
  color: color-mix(in srgb, var(--accent) 45%, var(--text));
  font-size: 0.76rem;
  font-weight: 700;
}

.feat__actions {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  border-top: 1px solid var(--border);
}

@media (min-width: 860px) {
  .feat {
    grid-template-columns: 46% 1fr;
    align-items: stretch;
  }
  .feat__media {
    aspect-ratio: auto;
    height: 100%;
  }
  .feat__body {
    padding: 26px 28px;
  }
}

/* ---------- 6b. Videos（ファサード方式の埋め込み） ---------- */

.vcards {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

.vcard {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--speed) ease, box-shadow var(--speed) ease,
    border-color var(--speed) ease;
}

.vcard:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.vcard__media {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 100%;
  background: #000;
  overflow: hidden;
}

.vcard__body {
  padding: 18px 20px 20px;
}

.vcard__title {
  font-size: 1.05rem;
}

.vcard__summary {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.vcard__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.vcard__project {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  transition: background var(--speed), color var(--speed);
}

.vcard__project::before {
  content: "↳ ";
  margin-right: 4px;
}

.vcard__project:hover {
  background: var(--primary);
  color: var(--primary-ink);
}

.video {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  text-decoration: none;
  cursor: pointer;
}

.video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--speed) ease, filter var(--speed) ease;
}

.video:hover img,
.video:focus-visible img {
  transform: scale(1.03);
  filter: brightness(0.88);
}

.video__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.video__play svg {
  width: 68px;
  height: 48px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.video__play-bg {
  fill: rgba(28, 28, 28, 0.78);
  transition: fill var(--speed) ease;
}

.video__play-arrow {
  fill: #fff;
}

.video:hover .video__play-bg,
.video:focus-visible .video__play-bg {
  fill: #f00;
}

.video-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- 6d. 個別ページ ---------- */

.card__title-link {
  color: inherit;
  text-decoration: none;
}

.card__title-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

.card__more {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
}

.card__more::after {
  content: " →";
}

.card__more:hover {
  text-decoration: underline;
}

.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--muted);
}

.crumb a {
  color: var(--muted);
  text-decoration: none;
}

.crumb a:hover {
  color: var(--primary);
}

.detail__title {
  margin-top: 14px;
  font-size: 1.7rem;
}

.detail__lead {
  margin-top: 12px;
  font-size: 1.02rem;
  font-weight: 700;
}

.detail .chips {
  margin-top: 18px;
}

.detail__media {
  margin-top: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
  aspect-ratio: 16 / 9;
  max-width: 100%;
}

.detail__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail .meta {
  margin-top: 24px;
  padding-top: 18px;
}

.detail .meta__row {
  grid-template-columns: 96px 1fr;
}

.detail__links {
  margin-top: 24px;
}

.detail__back {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

.detail__back a {
  text-decoration: none;
  font-weight: 700;
}

.detail__back a:hover {
  text-decoration: underline;
}

.aip__section {
  margin-top: 36px;
}

.aip__section h2 {
  font-size: 1.15rem;
  padding-left: 12px;
  border-left: 4px solid var(--accent);
}

.aip__section > * + * {
  margin-top: 14px;
}

.aip__updated {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- 7. skills / can-do / now / timeline ---------- */

.skill-grid {
  display: grid;
  gap: 16px;
  margin-top: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.skill-group {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.skill-group__title {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 12px;
}

.cando-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.cando {
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform var(--speed), border-color var(--speed);
}

.cando:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.cando__title {
  font-size: 0.98rem;
  position: relative;
  padding-left: 16px;
}

.cando__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}

.cando__body {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.86rem;
}

.now {
  margin-top: 22px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.now__future {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.now__future-title {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.now__future-body {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.now__updated {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.tl {
  margin-top: 24px;
  padding-left: 4px;
}

.tl__item {
  position: relative;
  padding: 0 0 26px 26px;
  border-left: 2px solid var(--border);
}

.tl__item:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.tl__item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--primary);
}

.tl__date {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--primary);
}

.tl__title {
  font-size: 1rem;
  margin-top: 2px;
}

.tl__text {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
}

/* ---------- 7b. FAQ ---------- */

.faq {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq__q {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  min-height: 44px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  transition: color var(--speed);
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__q::before {
  content: "Q";
  flex: none;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-ink);
  font-size: 0.72rem;
}

.faq__q:hover {
  color: var(--primary);
}

.faq__item[open] .faq__q {
  border-bottom: 1px solid var(--border);
}

.faq__a {
  padding: 16px 18px 18px 50px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- 8. contact / cta / footer ---------- */

.cta {
  margin-top: 24px;
  padding: 30px 22px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.cta__lead {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.cta__note {
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--muted);
}

.mail-text {
  word-break: break-all;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 32px var(--gutter);
  text-align: center;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
}

.footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--muted);
  transition: color var(--speed);
}

.footer__links a:hover {
  color: var(--primary);
}

.footer__meta {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer__meta a {
  color: var(--muted);
  text-decoration: none;
}

.footer__meta a:hover {
  color: var(--primary);
}

.footer__url {
  margin-top: 6px;
  font-size: 0.85rem;
}

.footer__url a {
  color: var(--muted);
  text-decoration: none;
}

.footer__url a:hover {
  color: var(--primary);
}

.footer__copy {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

/* ---------- 9. motion / responsive ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 300ms ease, transform 300ms ease;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 768px) {
  .section {
    padding-block: 72px;
  }
  .section--hero {
    padding-block: 60px 64px;
  }
  .avatar {
    width: 148px;
    height: 148px;
  }
  .hero__name {
    font-size: 2.15rem;
  }
  .hero__summary {
    text-align: center;
    padding: 20px 24px;
    border-left: 0;
    border-top: 4px solid var(--accent);
  }
  .section__title {
    font-size: 1.7rem;
  }
}

@media (min-width: 1024px) {
  .cards,
  .vcards {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
}

@media (max-width: 400px) {
  :root {
    --gutter: 16px;
  }
  .meta__row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .card__actions {
    justify-content: flex-start;
  }
}
