:root {
  --radius: 1.5rem;
  --background: oklch(0.977 0.002 264);
  --foreground: oklch(0.198 0.028 269);
  --surface: oklch(0.992 0.001 264);
  --card: oklch(0.988 0.002 264);
  --ink: oklch(0.198 0.028 269);
  --violet: oklch(0.505 0.293 295);
  --azure: oklch(0.6 0.204 255);
  --cyan: oklch(0.69 0.152 227);
  --soft-violet: oklch(0.936 0.036 300);
  --soft-azure: oklch(0.952 0.025 245);
  --primary-foreground: oklch(0.99 0.002 264);
  --muted: oklch(0.955 0.004 264);
  --muted-foreground: oklch(0.55 0.02 266);
  --accent-foreground: oklch(0.31 0.16 295);
  --border: oklch(0.925 0.005 264);
  --ring: oklch(0.505 0.293 295);
  --gradient-accent: linear-gradient(120deg, var(--violet), var(--azure) 60%, var(--cyan));
  --gradient-soft: linear-gradient(140deg, var(--soft-violet), var(--soft-azure));
  --gradient-surface: linear-gradient(145deg, oklch(1 0 0), oklch(0.966 0.003 264));
  --shadow-raised:
    12px 12px 30px oklch(0.2 0.03 269 / 0.07),
    -10px -10px 30px oklch(1 0 0 / 0.95);
  --shadow-lift:
    18px 22px 46px oklch(0.2 0.03 269 / 0.1),
    -12px -12px 34px oklch(1 0 0 / 0.98);
  --shadow-pill:
    6px 8px 18px oklch(0.2 0.03 269 / 0.06),
    -6px -6px 16px oklch(1 0 0 / 0.9);
  --shadow-inset:
    inset 4px 4px 10px oklch(0.2 0.03 269 / 0.05),
    inset -4px -4px 10px oklch(1 0 0 / 0.9);
  --shadow-glow: 0 30px 70px oklch(0.505 0.293 295 / 0.22);
  --line: oklch(1 0 0 / 0.8);
  --line-soft: oklch(1 0 0 / 0.7);
  --roles: oklch(0.198 0.028 269 / 0.8);
  --dot: oklch(0.198 0.028 269 / 0.13);
  --hero-shadow: oklch(0.505 0.293 295 / 0.25);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font: "Vazirmatn", ui-sans-serif, system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a.card {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

::selection {
  background: var(--soft-violet);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
}

.page {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

section[id] {
  scroll-margin-top: 6.5rem;
}

.icon {
  display: block;
  flex-shrink: 0;
}

.icon-sm {
  width: 1rem;
  height: 1rem;
}

.icon-md {
  width: 1.25rem;
  height: 1.25rem;
}

.icon-lg {
  width: 1.5rem;
  height: 1.5rem;
}

.violet { color: var(--violet); }
.azure { color: var(--azure); }
.cyan { color: var(--cyan); }

.surface-pill {
  background: var(--gradient-surface);
  box-shadow: var(--shadow-pill);
  border: 1px solid var(--line);
}

.surface-raised,
.card,
.panel {
  background: var(--gradient-surface);
  box-shadow: var(--shadow-raised);
  border: 1px solid var(--line-soft);
}

.text-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.strong {
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
}

.reveal[data-visible="true"] {
  opacity: 1;
  transform: translateY(0);
}

.lift {
  transition:
    transform 0.5s var(--ease),
    box-shadow 0.5s var(--ease);
}

.lift:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lift);
}

.decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.decor-glow {
  position: absolute;
  border-radius: 999px;
  background: var(--gradient-soft);
}

.decor-glow-a {
  top: -10rem;
  right: -10%;
  width: 36rem;
  height: 36rem;
  opacity: 0.6;
  filter: blur(120px);
}

.decor-glow-b {
  bottom: -12rem;
  left: -12rem;
  width: 34rem;
  height: 34rem;
  opacity: 0.5;
  filter: blur(130px);
}

.decor-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.28;
}

.site-header {
  position: sticky;
  top: 1rem;
  z-index: 50;
  padding-inline: 1rem;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  max-width: 64rem;
  margin-inline: auto;
}

.brand,
.theme-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 40px;
  backdrop-filter: blur(24px);
}

.brand {
  overflow: hidden;
  border: 0;
  border-radius: 0.85rem;
  background: transparent;
  box-shadow: 0 8px 22px oklch(0.45 0.18 280 / 0.28);
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.theme-btn {
  color: var(--muted-foreground);
  transition: color 0.3s, box-shadow 0.3s;
}

.theme-icon {
  display: flex;
}

html:not([data-theme="dark"]) .theme-icon-sun,
html[data-theme="dark"] .theme-icon-moon {
  display: none;
}

.theme-btn:hover {
  color: var(--foreground);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 48px;
  padding: 0.5rem;
  backdrop-filter: blur(24px);
}

.nav-desktop {
  display: none;
  max-width: calc(100% - 7.5rem);
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-desktop::-webkit-scrollbar {
  display: none;
}

.nav-mobile {
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-mobile::-webkit-scrollbar {
  display: none;
}

.nav-link {
  border-radius: 40px;
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1rem;
  color: var(--muted-foreground);
  white-space: nowrap;
  transition: color 0.3s;
}

.nav-desktop .nav-link {
  padding: 0.5rem 0.7rem;
  font-size: 0.8125rem;
  line-height: 1.25rem;
}

.nav-desktop .nav-link:hover {
  color: var(--foreground);
}

.nav-link.is-current {
  background: var(--gradient-accent);
  color: var(--primary-foreground);
  font-weight: 600;
}

.nav-link.is-current:hover {
  color: var(--primary-foreground);
}

.hero,
.section,
.about,
.contact,
.site-footer {
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.hero {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.hero-grid {
  display: grid;
  align-items: center;
  gap: 3.5rem;
}

.hero-copy {
  order: 2;
  text-align: center;
}

.hero-visual {
  order: 1;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--muted-foreground);
}

.kicker-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 999px;
  background: var(--gradient-accent);
}

.hero h1 {
  margin-top: 1.75rem;
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.role {
  margin-top: 0.75rem;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 2rem;
}

.roles {
  margin-top: 1rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5rem;
  color: var(--roles);
}

.lead {
  max-width: 28rem;
  margin-top: 1.5rem;
  margin-inline: auto;
  font-size: 15px;
  line-height: 2rem;
  color: var(--muted-foreground);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 999px;
  padding: 1rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.25rem;
  transition:
    transform 0.5s var(--ease),
    box-shadow 0.5s var(--ease);
}

.btn:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lift);
}

.btn-accent {
  background: var(--gradient-accent);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-glow);
}

.btn-sm {
  margin-top: 1.75rem;
  padding: 0.75rem 1.5rem;
}

.contact .btn {
  margin-top: 2.25rem;
  padding-inline: 2rem;
}

.hero-stage {
  position: relative;
  width: 100%;
  max-width: 28rem;
  aspect-ratio: 1;
  margin-inline: auto;
}

.hero-dots {
  position: absolute;
  top: 2.5rem;
  right: 2.5rem;
  bottom: 2rem;
  left: 2.5rem;
  opacity: 0.4;
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 14px 14px;
  -webkit-mask-image: radial-gradient(circle, black, transparent 70%);
  mask-image: radial-gradient(circle, black, transparent 70%);
}

.hero-float {
  position: relative;
  height: 100%;
  animation: float 11s ease-in-out infinite;
}

.hero-object {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 40px 60px var(--hero-shadow));
  transition: transform 0.7s var(--ease);
}

.float-pill {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 40px;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  line-height: 1rem;
  backdrop-filter: blur(24px);
  animation: float 7s ease-in-out infinite;
}

.pill-agent { top: 1rem; right: 0; }
.pill-auto { top: 5rem; left: 0; }
.pill-product { right: 1rem; bottom: 2.5rem; }

.section {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.section-head,
.copy-block,
.about {
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.375rem 1rem;
  background: var(--gradient-soft);
  color: var(--accent-foreground);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1rem;
}

.section-head h1,
.section-head h2 {
  margin-top: 1.25rem;
  font-size: 1.875rem;
  font-weight: 900;
  line-height: 2.25rem;
  letter-spacing: -0.025em;
}

.section-head p {
  max-width: 36rem;
  margin-top: 1rem;
  margin-inline: auto;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 2rem;
}

.products-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 48px;
  padding: 1.75rem;
}

.card h3 {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.75rem;
}

.card > p {
  margin-top: 0.75rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.75rem;
}

.icon-well {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 40px;
  background: var(--muted);
  box-shadow: var(--shadow-inset);
}

.icon-well-sm {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 32px;
  background: var(--gradient-surface);
  box-shadow: var(--shadow-pill);
  border: 1px solid var(--line);
}

.icon-well-round {
  border-radius: 999px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.tag {
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  background: var(--muted);
  color: var(--muted-foreground);
  font-size: 11px;
  font-weight: 600;
  line-height: 1rem;
}

.card-action {
  display: flex;
  justify-content: flex-start;
  margin-top: 2rem;
  padding-top: 0.5rem;
}

.arrow-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  color: var(--muted-foreground);
}

.panel {
  display: grid;
  gap: 2.5rem;
  border-radius: 64px;
  padding: 1.75rem;
}

.lab-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lab-glow,
.contact-glow {
  position: absolute;
  border-radius: 999px;
  background: var(--gradient-soft);
  opacity: 0.7;
  filter: blur(64px);
}

.lab-glow {
  width: 14rem;
  height: 14rem;
}

.lab-object {
  position: relative;
  width: 16rem;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  animation: float 7s ease-in-out infinite;
}

.lab-body {
  display: grid;
  gap: 2rem;
}

.lab-notes {
  grid-column: 1 / -1;
}

.lab-notes .posts {
  align-items: stretch;
}

.copy-block h1,
.copy-block h2 {
  margin-top: 1.25rem;
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 2rem;
  letter-spacing: -0.025em;
}

.copy-block p,
.contact p {
  margin-top: 1rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 2rem;
}

.experiment-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border-radius: 48px;
  padding: 0.75rem;
  background: var(--muted);
  box-shadow: var(--shadow-inset);
}

.experiment {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-radius: 40px;
  padding: 0.75rem;
  transition: background-color 0.3s;
}

.experiment:hover {
  background: var(--card);
}

.experiment-title,
.experiment-desc {
  display: block;
}

.experiment-title {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.25rem;
}

.experiment-desc {
  color: var(--muted-foreground);
  font-size: 0.75rem;
  line-height: 1rem;
}

.people-grid,
.posts {
  display: grid;
  gap: 1.25rem;
}

.person {
  align-items: center;
  padding: 1.5rem;
  text-align: center;
}

.person h3 {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.person p {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  line-height: 1.5rem;
}

.person-arrow,
.post-arrow {
  color: var(--muted-foreground);
}

.person-arrow {
  margin-top: 1.25rem;
}

.content-layout {
  display: grid;
  gap: 2.5rem;
}

.post {
  overflow: hidden;
  padding: 0.75rem;
}

.post-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 8rem;
  overflow: hidden;
  border-radius: 40px;
  background-image:
    radial-gradient(var(--dot) 1px, transparent 1px),
    var(--gradient-soft);
  background-size: 14px 14px, auto;
}

.post-wave {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
}

.post-badge {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 40px;
  background: var(--gradient-accent);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-glow);
}

.post-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1rem;
}

.post-body .tag {
  width: fit-content;
}

.post-body h2,
.post-body h3 {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1.75rem;
}

.card-excerpt,
.card-meta {
  color: var(--muted-foreground);
}

.card-excerpt {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  line-height: 1.7rem;
}

.card-meta {
  margin-top: 0.75rem;
  font-size: 11px;
  font-weight: 600;
  line-height: 1rem;
}

.catalog-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 3.5rem;
}

.pager {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

.pager-status {
  color: var(--muted-foreground);
  font-size: 0.75rem;
  font-weight: 600;
}

.pager-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.pager-pages {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pager-btn,
.pager-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  padding-inline: 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.pager-num.is-current {
  background: var(--gradient-accent);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-glow);
}

.pager-btn.is-disabled,
.entry-jump.is-disabled {
  opacity: 0.45;
  background: var(--muted);
}

.pager-gap {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.entry {
  max-width: 48rem;
}

.entry-wrap {
  text-align: right;
}

.entry-back {
  display: inline-flex;
  margin-bottom: 1.25rem;
  color: var(--muted-foreground);
  font-size: 0.75rem;
  font-weight: 700;
}

.entry h1 {
  margin-top: 1.25rem;
  font-size: 1.875rem;
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: -0.025em;
}

.entry-meta {
  margin-top: 0.75rem;
  color: var(--muted-foreground);
  font-size: 0.75rem;
  font-weight: 600;
}

.entry-panel {
  display: block;
  margin-top: 2rem;
}

.entry-panel p + p,
.entry-panel h2,
.entry-panel .outline {
  margin-top: 1.25rem;
}

.entry-panel p {
  font-size: 0.95rem;
  line-height: 2.15rem;
}

.entry-panel h2 {
  font-size: 1.05rem;
  font-weight: 800;
}

.outline {
  display: grid;
  gap: 0.65rem;
  padding-inline-start: 1.25rem;
}

.outline li {
  font-size: 0.875rem;
  line-height: 1.8rem;
}

.entry-pager {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.entry-jump {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border-radius: 32px;
  padding: 1.25rem 1.5rem;
}

.entry-jump span {
  color: var(--muted-foreground);
  font-size: 0.75rem;
  font-weight: 700;
}

.entry-jump strong {
  font-size: 0.95rem;
  line-height: 1.8rem;
}

.post-arrow {
  margin-top: auto;
}

.about {
  max-width: 48rem;
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.statement {
  margin-top: 2rem;
  font-size: 1.125rem;
  line-height: 2.4;
}

.detail {
  margin-top: 1.5rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 2.25rem;
}

.contact {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.contact-panel {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 1.75rem;
  text-align: center;
}

.contact-glow {
  top: -6rem;
  right: -6rem;
  width: 16rem;
  height: 16rem;
}

.contact-inner {
  position: relative;
}

.contact h1,
.contact h2 {
  font-size: 1.875rem;
  font-weight: 900;
  line-height: 2.25rem;
  letter-spacing: -0.025em;
}

.contact p {
  max-width: 28rem;
  margin-inline: auto;
}

.site-footer {
  position: relative;
  overflow: hidden;
  padding-top: 2.5rem;
  padding-bottom: 3.5rem;
}

.footer-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.3;
  pointer-events: none;
}

.footer-bar {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.footer-id {
  text-align: center;
}

.footer-name {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.5rem;
}

.footer-role,
.footer-note {
  color: var(--muted-foreground);
  font-size: 0.75rem;
  line-height: 1rem;
}

.footer-role {
  margin-top: 0.25rem;
}

.socials {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 32px;
  color: var(--muted-foreground);
  transition: color 0.3s;
}

.social:hover {
  color: var(--foreground);
}

.missing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1rem;
  text-align: center;
}

.missing h1 {
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1;
}

.missing h2 {
  margin-top: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.missing p {
  margin-top: 0.5rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.missing .btn {
  margin-top: 1.5rem;
}

@keyframes float {
  0%,
  100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@media (min-width: 640px) {
  .site-header { top: 1.5rem; }
  .hero { padding-top: 6rem; }
  .hero h1 { font-size: 3.75rem; }
  .role { font-size: 1.875rem; line-height: 2.25rem; }
  .roles { font-size: 1.125rem; }
  .pill-agent { right: -0.5rem; }
  .pill-auto { left: -1.5rem; }
  .pill-product { right: 0; }
  .section-head h1,
  .section-head h2 { font-size: 2.25rem; line-height: 2.5rem; }
  .section-head p { font-size: 1rem; }
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-offset { margin-top: 2rem; }
  .panel { padding: 3rem; }
  .copy-block h1,
  .copy-block h2 { font-size: 1.875rem; line-height: 2.25rem; }
  .people-grid,
  .posts,
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .entry h1 { font-size: 2.25rem; }
  .entry-pager { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .statement { font-size: 1.25rem; }
  .detail { font-size: 1rem; }
  .contact-panel { padding-inline: 4rem; }
  .contact h1,
  .contact h2 { font-size: 2.25rem; line-height: 2.5rem; }
  .footer-bar {
    flex-direction: row;
    justify-content: space-between;
  }
  .footer-id { text-align: right; }
}

@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .nav-mobile { display: none; }
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
  }
  .hero-copy {
    order: 1;
    text-align: right;
  }
  .hero-visual { order: 2; }
  .hero h1 { font-size: 4.5rem; }
  .role { font-size: 2.25rem; line-height: 2.5rem; }
  .hero-copy .lead { margin-inline: 0; }
  .hero-actions { justify-content: flex-start; }
  .products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lab-panel { grid-template-columns: 0.9fr 1.1fr; align-items: center; }
  .lab-notes { grid-column: 1 / -1; align-self: stretch; }
  .lab-body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
  }
  .employees-panel { grid-template-columns: 0.8fr 1.2fr; align-items: center; }
  .people-grid,
  .posts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-layout {
    grid-template-columns: 0.75fr 1.25fr;
    align-items: center;
  }
  .copy-block { text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-float,
  .lab-object,
  .float-pill { animation: none; }
  .lift,
  .btn,
  .hero-object { transition: none; }
}

a.experiment {
  color: inherit;
  width: 100%;
}

.logo-mark {
  display: block;
  width: 1.45rem;
  height: 1.45rem;
}

.logo-mark-sm {
  width: 1rem;
  height: 1rem;
}

.logo-mark-lg {
  width: 2rem;
  height: 2rem;
}

.logo-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 24px;
  background: var(--gradient-surface);
  box-shadow: var(--shadow-pill);
  border: 1px solid var(--line);
}

.logo-tile-lg {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 32px;
  margin-bottom: 1.25rem;
}

.mark-claude,
.mark-claude-code { color: oklch(0.62 0.15 55); }
.mark-cursor,
.mark-github { color: oklch(0.32 0.03 269); }
.mark-openrouter { color: oklch(0.52 0.2 290); }
.mark-docker { color: oklch(0.58 0.14 240); }
.mark-orbstack { color: oklch(0.58 0.18 320); }
.mark-vibe-coding { color: var(--violet); }

.tool-card {
  gap: 0;
}

.tool-card .tag {
  width: fit-content;
  margin-top: 1.25rem;
}

.tool-card h3 {
  margin-top: 0.75rem;
}

.card-role,
.tool-role {
  color: var(--accent-foreground);
  font-size: 0.75rem;
  font-weight: 700;
}

.tool-card .card-role {
  margin-top: 0.35rem;
}

.tool-card .card-excerpt {
  margin-top: 0.65rem;
}

.tool-hub .section-head p {
  max-width: 40rem;
}

.eco-flow {
  display: grid;
  gap: 1rem;
  margin-top: 3rem;
}

.eco-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  border-radius: 40px;
  padding: 1.25rem;
}

.eco-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--gradient-accent);
  color: var(--primary-foreground);
  font-size: 0.75rem;
  font-weight: 800;
}

.eco-step strong {
  font-size: 1rem;
  font-weight: 800;
}

.eco-step p,
.usecase p {
  color: var(--muted-foreground);
  font-size: 0.8125rem;
  line-height: 1.85rem;
}

.logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.logo-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding-block: 0.3rem;
  padding-inline: 0.45rem 0.7rem;
  background: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2rem;
}

.tool-block {
  margin-top: 3.5rem;
}

.tool-block > h2,
.tool-page .tool-block > h2 {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.usecase-grid,
.tool-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.usecase h3 {
  margin-top: 0;
  font-size: 1rem;
}

.usecase p {
  margin-top: 0.75rem;
}

.usecase .logo-row {
  margin-top: 1.25rem;
}

.tool-hero h1 {
  margin-top: 1.25rem;
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.tool-role {
  margin-top: 0.75rem;
}

.tool-lead {
  max-width: 40rem;
  margin-top: 0.75rem;
  color: var(--muted-foreground);
  font-size: 0.95rem;
  line-height: 2.1rem;
}

.tool-page .entry-panel {
  margin-top: 2rem;
}

.tool-page .entry-pager {
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .usecase-grid,
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eco-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .tool-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .eco-flow { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .usecase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

html[data-theme="dark"] {
  color-scheme: dark;
  --background: oklch(0.145 0.028 168);
  --foreground: oklch(0.96 0.02 155);
  --surface: oklch(0.19 0.032 168);
  --card: oklch(0.205 0.034 168);
  --ink: oklch(0.96 0.02 155);
  --violet: oklch(0.8 0.19 152);
  --azure: oklch(0.78 0.14 178);
  --cyan: oklch(0.88 0.18 145);
  --soft-violet: oklch(0.3 0.07 162);
  --soft-azure: oklch(0.28 0.06 180);
  --primary-foreground: oklch(0.16 0.045 162);
  --muted: oklch(0.23 0.035 168);
  --muted-foreground: oklch(0.78 0.04 160);
  --accent-foreground: oklch(0.88 0.16 150);
  --border: oklch(0.8 0.16 155 / 0.3);
  --ring: oklch(0.84 0.18 152);
  --gradient-accent: linear-gradient(120deg, oklch(0.48 0.12 168), oklch(0.78 0.19 155) 48%, oklch(0.9 0.18 145));
  --gradient-soft: linear-gradient(145deg, oklch(0.34 0.09 165), oklch(0.26 0.07 185));
  --gradient-surface: linear-gradient(165deg, oklch(0.24 0.04 170), oklch(0.17 0.03 166));
  --shadow-raised:
    0 0 0 1px oklch(0.82 0.17 155 / 0.18),
    0 18px 42px oklch(0.05 0.02 165 / 0.55);
  --shadow-lift:
    0 0 0 1px oklch(0.88 0.18 150 / 0.4),
    0 0 28px oklch(0.78 0.18 152 / 0.22),
    0 22px 48px oklch(0.04 0.02 165 / 0.6);
  --shadow-pill:
    0 0 0 1px oklch(0.8 0.16 155 / 0.24),
    0 10px 28px oklch(0.04 0.02 165 / 0.5);
  --shadow-inset: inset 0 0 0 1px oklch(0.8 0.14 155 / 0.14);
  --shadow-glow: 0 0 28px oklch(0.78 0.19 152 / 0.48);
  --line: oklch(0.84 0.16 155 / 0.32);
  --line-soft: oklch(0.8 0.14 155 / 0.2);
  --roles: oklch(0.88 0.08 155);
  --dot: oklch(0.84 0.17 152 / 0.4);
  --hero-shadow: oklch(0.72 0.18 155 / 0.45);
}

html[data-theme="dark"] .decor::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(oklch(0.82 0.17 152 / 0.07) 1px, transparent 1px),
    linear-gradient(90deg, oklch(0.82 0.17 152 / 0.07) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at 70% 18%, black, transparent 72%);
}

html[data-theme="dark"] .theme-btn {
  color: oklch(0.9 0.17 150);
  box-shadow: var(--shadow-glow);
}

html[data-theme="dark"] .brand {
  box-shadow: 0 0 22px oklch(0.75 0.18 155 / 0.45);
}

html[data-theme="dark"] .mark-cursor,
html[data-theme="dark"] .mark-github {
  color: oklch(0.92 0.04 155);
}

.course-carousel {
  display: grid;
  gap: 1.5rem;
}

.carousel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.carousel-head h2 {
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.4;
}

.carousel-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.carousel-all {
  margin-inline-end: 0.35rem;
  color: var(--accent-foreground);
  font-size: 0.8125rem;
  font-weight: 800;
}

.carousel-btn {
  width: 2.75rem;
  height: 2.5rem;
  border-radius: 0.85rem;
  color: var(--foreground);
}

.carousel-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.icon.is-flip {
  transform: scaleX(-1);
}

.carousel-viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.carousel-viewport::-webkit-scrollbar {
  display: none;
}

.carousel-track {
  display: flex;
  gap: 1.25rem;
}

.course-card {
  display: flex;
  flex: 0 0 min(82%, 18.5rem);
  flex-direction: column;
  scroll-snap-align: start;
  overflow: hidden;
  border-radius: 1.35rem;
  background: var(--gradient-surface);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-raised);
  color: inherit;
}

.course-cover {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 11.5rem;
  padding: 1.15rem 1.2rem 1.2rem;
  overflow: hidden;
  color: oklch(0.98 0.01 155);
}

.course-cover strong {
  position: relative;
  max-width: 16rem;
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1.7;
}

.course-cover-tag {
  position: relative;
  width: fit-content;
  margin-bottom: 0.55rem;
  border-radius: 999px;
  padding: 0.15rem 0.65rem;
  background: oklch(1 0 0 / 0.14);
  font-size: 0.7rem;
  font-weight: 700;
}

.course-cover-icon {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  color: oklch(1 0 0 / 0.82);
}

.course-cover-icon .icon {
  width: 2.4rem;
  height: 2.4rem;
}

.cover-a {
  background:
    radial-gradient(circle at 15% 20%, oklch(0.62 0.2 295 / 0.85), transparent 42%),
    linear-gradient(155deg, oklch(0.28 0.08 285), oklch(0.14 0.04 265));
}

.cover-b {
  background:
    radial-gradient(circle at 80% 15%, oklch(0.72 0.16 230 / 0.8), transparent 40%),
    linear-gradient(160deg, oklch(0.32 0.1 250), oklch(0.14 0.05 255));
}

.cover-c {
  background:
    radial-gradient(circle at 20% 80%, oklch(0.78 0.18 150 / 0.75), transparent 42%),
    linear-gradient(155deg, oklch(0.28 0.07 165), oklch(0.13 0.04 170));
}

.cover-d {
  background:
    radial-gradient(circle at 75% 75%, oklch(0.75 0.16 70 / 0.7), transparent 42%),
    linear-gradient(160deg, oklch(0.3 0.08 50), oklch(0.14 0.04 30));
}

.course-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1rem 1.1rem 1.05rem;
}

.course-body h3 {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.75rem;
}

.course-body p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--muted-foreground);
  font-size: 0.8rem;
  line-height: 1.7rem;
}

.course-teacher {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 0.35rem;
  color: var(--foreground);
  font-size: 0.75rem;
  font-weight: 700;
}

.course-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  background: var(--gradient-soft);
  color: var(--accent-foreground);
  font-size: 0.75rem;
  font-weight: 800;
}

.course-level {
  margin-inline-start: auto;
  color: var(--muted-foreground);
  font-weight: 600;
}

.course-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}

.course-duration {
  color: var(--azure);
  font-size: 0.95rem;
  font-weight: 900;
}

html[data-theme="dark"] .course-duration {
  color: var(--cyan);
}

.course-lessons {
  color: var(--muted-foreground);
  font-size: 0.75rem;
  font-weight: 700;
}

@media (min-width: 768px) {
  .course-card { flex-basis: calc((100% - 1.25rem) / 2); }
}

@media (min-width: 1024px) {
  .carousel-head h2 { font-size: 2rem; }
  .course-card { flex-basis: calc((100% - 3.75rem) / 4); }
}

.lab-stage {
  display: grid;
  gap: 0.5rem;
  align-items: center;
  margin-top: 2.75rem;
  padding: 1.15rem;
  border-radius: 40px;
  background: var(--gradient-surface);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-raised);
}

.lab-section .lab-glow {
  width: 11rem;
  height: 11rem;
}

.lab-section .lab-visual {
  height: auto;
}

.lab-section .lab-object {
  width: 9.5rem;
  height: auto;
}

.lab-tools,
.note-grid,
.agent-grid {
  display: grid;
  gap: 0.75rem;
}

.lab-tool {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  height: 100%;
  padding: 0.8rem;
  border-radius: 24px;
  background: var(--muted);
  box-shadow: var(--shadow-inset);
  color: inherit;
  text-align: right;
}

.lab-tool .logo-tile {
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border-radius: 18px;
}

.lab-tool-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.lab-tool-name {
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.5rem;
}

.lab-tool-desc,
.note-copy span {
  color: var(--muted-foreground);
  font-size: 0.75rem;
  line-height: 1.45rem;
}

.lab-notes {
  margin-top: 2rem;
}

.lab-notes h3 {
  margin-bottom: 0.9rem;
  font-size: 1.05rem;
  font-weight: 800;
  text-align: center;
}

.note-card,
.agent-card {
  height: 100%;
  border-radius: 28px;
  background: var(--gradient-surface);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-raised);
}

.note-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem;
  color: inherit;
}

.note-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  min-width: 0;
}

.note-copy .tag {
  width: fit-content;
}

.note-copy strong {
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.65rem;
}

.note-arrow {
  color: var(--muted-foreground);
}

.agent-grid {
  margin-top: 2.75rem;
}

.agent-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 0.9rem;
  row-gap: 0.35rem;
  overflow: hidden;
  padding: 1rem 1.05rem;
  text-align: right;
}

.agent-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--gradient-accent);
}

.agent-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  grid-row: span 2;
  gap: 0.45rem;
}

.agent-mark {
  background: var(--gradient-soft);
}

.agent-live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  background: var(--muted);
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: var(--shadow-inset);
}

.agent-live i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.agent-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.7rem;
}

.agent-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.agent-skills li {
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
  background: var(--muted);
  color: var(--muted-foreground);
  font-size: 0.72rem;
  font-weight: 700;
}

@media (min-width: 540px) {
  .lab-tools,
  .note-grid,
  .agent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agent-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1.15rem 1.15rem 1.2rem;
  }
  .agent-head {
    flex-direction: row;
    justify-content: space-between;
    grid-row: auto;
    width: 100%;
  }
}

@media (min-width: 860px) {
  .lab-stage {
    grid-template-columns: 12rem 1fr;
    gap: 1.25rem;
    padding: 1.4rem;
  }
  .lab-section .lab-object { width: 11rem; }
}

@media (min-width: 1024px) {
  .agent-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.bio {
  padding-top: 2.5rem;
  padding-bottom: 4.5rem;
}

.bio-head h1 {
  margin-top: 0.85rem;
  font-size: 2.1rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.4;
}

.bio-role,
.bio-story p,
.bio-timeline p,
.bio-note,
.bio-now p,
.bio-works span {
  color: var(--muted-foreground);
  font-size: 0.95rem;
  line-height: 2rem;
}

.bio-role { max-width: 36rem; margin-top: 0.7rem; }

.bio-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.1rem;
}

.bio-facts li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  background: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.bio-story {
  display: grid;
  gap: 0.85rem;
  max-width: 42rem;
  margin-top: 1.75rem;
}

.bio-block { margin-top: 2.5rem; }

.bio-block h2,
.bio-now h2 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 900;
}

.bio-timeline { display: grid; gap: 0.85rem; }

.bio-timeline li {
  display: grid;
  gap: 0.35rem;
  padding: 1.05rem 1.1rem;
  border-radius: 24px;
  background: var(--gradient-surface);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-raised);
}

.bio-when {
  color: var(--azure);
  font-size: 0.78rem;
  font-weight: 800;
}

.bio-timeline strong,
.bio-works strong {
  display: block;
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.7rem;
}

.bio-timeline span {
  display: block;
  color: var(--foreground);
  font-size: 0.82rem;
  font-weight: 700;
}

.bio-timeline p { margin-top: 0.45rem; }

.bio-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.bio-skills li {
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  background: var(--gradient-soft);
  color: var(--accent-foreground);
  font-size: 0.82rem;
  font-weight: 800;
}

.bio-note { max-width: 40rem; margin-bottom: 1rem; }

.bio-works {
  display: grid;
  gap: 0.75rem;
}

.bio-works a {
  display: block;
  height: 100%;
  padding: 1rem 1.05rem;
  border-radius: 22px;
  background: var(--gradient-surface);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-raised);
}

.bio-works a:hover { box-shadow: var(--shadow-lift); }

.bio-now {
  margin-top: 2.5rem;
  padding: 1.35rem 1.25rem;
  border-radius: 28px;
  background: var(--gradient-surface);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-raised);
}

.bio-now p { max-width: 40rem; }

.bio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.15rem;
}

.bio-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  margin-top: 1.5rem;
  color: var(--muted-foreground);
  font-size: 0.85rem;
  font-weight: 700;
}

.bio-contact a:hover { color: var(--foreground); }

@media (min-width: 720px) {
  .bio-head h1 { font-size: 2.6rem; }
  .bio-timeline li { grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; align-items: start; }
  .bio-works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* —— product / employee detail + contact form —— */
a.product-card,
a.agent-card {
  color: inherit;
  text-decoration: none;
}

.product-status {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 0.35rem;
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  background: var(--muted);
  color: var(--muted-foreground);
  font-size: 0.72rem;
  font-weight: 800;
}

.agent-summary {
  margin: 0.35rem 0 0.55rem;
  color: var(--muted-foreground);
  font-size: 0.84rem;
  line-height: 1.75rem;
}

.detail-hero {
  display: grid;
  gap: 1.25rem;
  margin-top: 1rem;
}

.detail-intro h1 {
  margin: 0.55rem 0 0.65rem;
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  font-weight: 900;
  line-height: 1.35;
}

.detail-intro > p {
  max-width: 38rem;
  color: var(--muted-foreground);
  line-height: 1.9rem;
}

.detail-intro .tags,
.detail-intro .btn,
.detail-skills {
  margin-top: 1rem;
}

.detail-mark {
  display: grid;
  place-items: center;
  min-height: 12rem;
  border-radius: 32px;
  background: var(--gradient-surface);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-raised);
}

.icon-well-xl {
  width: 5.5rem;
  height: 5.5rem;
}

.icon-xl {
  width: 2.5rem;
  height: 2.5rem;
}

.detail-layout {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.contact-rich .contact-inner {
  display: grid;
  gap: 1rem;
  justify-items: stretch;
  text-align: start;
}

.contact-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
}

.contact-channels a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--foreground);
  font-size: 0.88rem;
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.35rem;
}

.contact-fields {
  display: grid;
  gap: 0.75rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
}

.contact-form label > span {
  font-size: 0.78rem;
  font-weight: 800;
}

.contact-form label em {
  color: var(--muted-foreground);
  font-style: normal;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.85rem 0.95rem;
  background: var(--background);
  color: var(--foreground);
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.contact-form small,
.contact-error {
  color: oklch(0.55 0.19 25);
  font-size: 0.75rem;
  font-weight: 700;
}

.contact-done {
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: var(--muted);
}

.contact-done strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 900;
}

.contact-done p {
  margin-top: 0.35rem;
  color: var(--muted-foreground);
}

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

@media (min-width: 720px) {
  .contact-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .contact-message { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
  .detail-hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(14rem, 0.7fr);
    align-items: stretch;
  }
  .detail-layout {
    grid-template-columns: minmax(0, 1fr) 18.5rem;
    align-items: start;
  }
}

/* —— mobile polish —— */
html { -webkit-text-size-adjust: 100%; }
body { padding-bottom: env(safe-area-inset-bottom); }

.site-header {
  padding-inline: max(0.75rem, env(safe-area-inset-right)) max(0.75rem, env(safe-area-inset-left));
}

.page {
  padding-inline: max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-left));
}

.nav-mobile {
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  gap: 0.25rem;
  max-width: calc(100vw - 7.5rem);
}

.nav-mobile .nav-link {
  scroll-snap-align: start;
  white-space: nowrap;
  min-height: 2.5rem;
  padding-inline: 0.85rem;
  font-size: 0.82rem;
}

.theme-btn {
  min-width: 2.75rem;
  min-height: 2.75rem;
}

.hero-copy h1 { font-size: clamp(2rem, 9vw, 3.4rem); }
.hero-actions { width: 100%; }
.hero-actions .btn { flex: 1 1 auto; justify-content: center; min-height: 3rem; }

.contact-form .btn,
.course-jump,
.btn-accent {
  min-height: 2.9rem;
}

.contact-fields label input,
.contact-fields label textarea {
  font-size: 16px; /* جلوگیری از زوم iOS */
}

.products-grid,
.agent-grid,
.catalog-grid {
  gap: 0.85rem;
}

.bio-facts,
.contact-channels {
  gap: 0.55rem;
}

.bio-works { grid-template-columns: 1fr; }

.entry-pager { gap: 0.65rem; }

@media (max-width: 767px) {
  .section { padding-block: 2.4rem; }
  .section-head p { font-size: 0.92rem; }
  .carousel-viewport { margin-inline: -0.25rem; }
  .course-card { min-width: min(78vw, 17.5rem); }
  .lab-stage { gap: 0.85rem; }
  .fact-row { grid-template-columns: 1fr 1fr; }
  .detail-mark { min-height: 9.5rem; }
  .admin-top { position: static; }
}

@media (max-width: 420px) {
  .hero-actions { flex-direction: column; }
  .fact-row { grid-template-columns: 1fr; }
  .course-metrics { grid-template-columns: 1fr; }
}
