/* Kronyx Tech — Le Récit (portfolio)
   Charte coming-soon : #0c1e21, #1e8a8a, verre, halo rouge */

:root {
  --r-white: #ffffff;
  --r-dark: #0c1e21;
  --r-dark-2: #18292c;
  --r-dark-3: #202e30;
  --r-primary: #1e8a8a;
  --r-primary-soft: rgba(30, 138, 138, 0.15);
  --r-primary-glow: rgba(30, 138, 138, 0.35);
  --r-red-soft: rgba(255, 0, 0, 0.08);
  --r-whatsapp: #25d366;
  --r-email: #268dc8;
  --r-text: rgba(255, 255, 255, 0.8);
  --r-muted: #a9b8b8;
  --r-border: rgba(255, 255, 255, 0.149);
  --r-border-5: rgba(30, 138, 138, 0.149);
  --r-glass: rgba(255, 255, 255, 0.06);
  --r-on-primary: #ffffff;
  --r-overlay: rgba(12, 30, 33, 0.72);
  --r-pattern-opacity: 0.04;
  --r-mock-bar: rgba(255, 255, 255, 0.18);
  --r-mock-bar-soft: rgba(255, 255, 255, 0.08);
  --r-link-hover: #3ecfcf;
  --r-whatsapp-text: #3ee878;
  --r-email-text: #5bb8e8;
  --r-modal-shadow: 0 28px 72px rgba(0, 0, 0, 0.45);
  --r-chip-on-surface: rgba(255, 255, 255, 0.06);
  --r-dot: rgba(255, 255, 255, 0.28);
  --r-dot-fill: rgba(255, 255, 255, 0.12);
  --r-radius: 16px;
  --r-radius-lg: 20px;
  --r-ff: "Mona Sans", system-ui, sans-serif;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

html[data-theme="light"] {
  color-scheme: light;
  --r-white: #0c1e21;
  --r-dark: #e8eef0;
  --r-dark-2: #ffffff;
  --r-dark-3: #d4e0e0;
  --r-text: #364e52;
  --r-muted: #5a6e70;
  --r-border: rgba(12, 30, 33, 0.14);
  --r-border-5: rgba(30, 138, 138, 0.22);
  --r-glass: rgba(255, 255, 255, 0.88);
  --r-overlay: rgba(12, 30, 33, 0.4);
  --r-pattern-opacity: 0.07;
  --r-mock-bar: rgba(12, 30, 33, 0.12);
  --r-mock-bar-soft: rgba(12, 30, 33, 0.07);
  --r-link-hover: #157a7a;
  --r-whatsapp-text: #1a9a48;
  --r-email-text: #1a6fa0;
  --r-modal-shadow: 0 28px 72px rgba(12, 30, 33, 0.18);
  --r-chip-on-surface: #e8eef0;
  --r-dot: rgba(12, 30, 33, 0.38);
  --r-dot-fill: rgba(12, 30, 33, 0.1);
}

html[data-theme="light"] body.recit::before {
  filter: invert(1);
}

html[data-theme="light"] .recit-portrait {
  box-shadow: 0 12px 32px rgba(12, 30, 33, 0.1);
}

html[data-theme="light"] .recit-glass,
html[data-theme="light"] .contact-card {
  box-shadow: 0 8px 28px rgba(12, 30, 33, 0.06);
}

html[data-theme="light"] .recit-modal .recit-chip {
  background: var(--r-chip-on-surface);
}

html[data-theme="light"] .recit-modal {
  color: var(--r-white);
}

@media (max-width: 900px) {
  html[data-theme="light"] .recit-progress {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 28px rgba(12, 30, 33, 0.12);
  }
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body.recit {
  font-family: var(--r-ff);
  color: var(--r-white);
  background-color: var(--r-dark);
  line-height: 1.6;
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
  transition: background-color 0.25s ease, color 0.25s ease;
  -webkit-tap-highlight-color: rgba(30, 138, 138, 0.2);
}

body.recit::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("../images/shape/pattern-3.svg");
  background-repeat: repeat;
  background-size: 120px;
  opacity: var(--r-pattern-opacity);
  pointer-events: none;
  z-index: 0;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

.recit-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--r-primary);
  background: var(--r-primary-soft);
  border: 1px solid var(--r-border-5);
  padding: 8px 20px;
  border-radius: 50px;
}

.recit-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 50px;
  border: 1px solid var(--r-border);
  background: var(--r-glass);
  color: var(--r-muted);
  font-size: 13px;
  font-weight: 600;
}

.recit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 50px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.25s ease, gap 0.25s ease, background 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.recit-btn:hover {
  gap: 12px;
  transform: translateY(-2px);
}

.recit-btn--primary {
  background: var(--r-primary);
  color: var(--r-on-primary);
}

.recit-btn--primary:hover {
  box-shadow: 0 12px 32px rgba(30, 138, 138, 0.35);
}

.recit-btn--ghost {
  background: transparent;
  border-color: var(--r-border);
  color: var(--r-white);
}

.recit-btn--ghost:hover {
  border-color: var(--r-primary);
  background: var(--r-primary-soft);
}

.recit-glass {
  background: var(--r-glass);
  border: 1px solid var(--r-border);
  backdrop-filter: blur(12px);
  border-radius: var(--r-radius);
}

.recit-kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--r-primary);
  margin: 0 0 12px;
}

/* Header */
.recit-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 95;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: max(14px, env(safe-area-inset-top, 0px)) max(32px, env(safe-area-inset-right, 0px)) 14px max(32px, env(safe-area-inset-left, 0px));
  pointer-events: none;
}

.recit-top img {
  height: 36px;
  width: auto;
  pointer-events: auto;
}

.recit-top .recit-btn {
  pointer-events: auto;
}

.recit-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

.recit-icon-btn {
  height: 40px;
  border-radius: 50px;
  border: 1px solid var(--r-border);
  background: var(--r-glass);
  color: var(--r-white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  min-width: 44px;
}

.recit-icon-btn:hover {
  border-color: var(--r-primary);
  background: var(--r-primary-soft);
}

/* Chapter dots */
.recit-progress {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.recit-progress a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--r-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  min-height: 32px;
  padding: 4px 0;
}

.recit-progress a .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--r-dot);
  background: var(--r-dot-fill);
  flex-shrink: 0;
}

.recit-progress a.is-active {
  color: var(--r-white);
}

.recit-progress a.is-active .dot {
  background: var(--r-primary);
  border-color: var(--r-primary);
  box-shadow: 0 0 12px rgba(30, 138, 138, 0.6);
}

.recit-progress a:hover {
  color: var(--r-white);
}

/* Stage */
.recit-stage {
  position: relative;
  z-index: 1;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.recit-chapter {
  min-height: 100%;
  min-height: 100dvh;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  padding: 96px max(96px, env(safe-area-inset-right, 0px)) 72px max(48px, env(safe-area-inset-left, 0px));
}

.recit-chapter-inner {
  width: 100%;
  max-width: 980px;
}

.recit-motto {
  margin: 0;
  padding: 0 2px;
}

.recit-motto p {
  margin: 0 0 8px;
  font-size: 15px;
  font-style: italic;
  line-height: 1.45;
  color: var(--r-text);
}

.recit-motto em {
  font-style: italic;
  font-weight: 600;
  color: var(--r-primary);
}

.recit-motto cite {
  display: block;
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--r-primary);
}

.recit-motto--inline {
  margin-top: 20px;
  padding: 16px 18px;
  border-left: 2px solid var(--r-primary);
  background: var(--r-glass);
  border-radius: 0 var(--r-radius) var(--r-radius) 0;
}

.recit-motto--inline p {
  font-size: 17px;
}

.recit-portrait {
  position: relative;
  margin: 0;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--r-radius-lg);
  overflow: hidden;
  border: 1px solid var(--r-border);
  background: var(--r-dark-3);
  box-shadow: 0 0 0 1px var(--r-border-5), 0 18px 40px rgba(12, 30, 33, 0.28);
}

.recit-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}

.recit-portrait.is-empty img {
  opacity: 0;
  position: absolute;
  inset: 0;
}

.recit-portrait-ph {
  display: none;
  position: absolute;
  inset: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  text-align: center;
  background: var(--r-dark-3);
  color: var(--r-muted);
}

.recit-portrait.is-empty .recit-portrait-ph {
  display: flex;
}

.recit-portrait-initials {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--r-primary);
  line-height: 1;
}

.recit-portrait-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--r-white);
}

.recit-portrait-file {
  font-size: 11px;
  letter-spacing: 0.02em;
  word-break: break-all;
}

.recit-profile {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.recit-portrait--about {
  max-width: 220px;
}

.recit-profile-copy .lead {
  max-width: none;
}

.recit-profile-copy h2 {
  font-size: clamp(28px, 4.2vw, 48px);
}

.recit-num {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--r-primary);
  font-weight: 600;
  margin: 0 0 8px;
}

.recit-chapter h1,
.recit-chapter h2 {
  font-size: clamp(32px, 5.4vw, 62px);
  line-height: 1.1;
  margin: 8px 0 20px;
  font-weight: 700;
}

.recit-chapter h1 em,
.recit-chapter h2 em {
  font-style: normal;
  color: var(--r-primary);
}

.recit-chapter .lead {
  font-size: 18px;
  color: var(--r-text);
  max-width: 640px;
  line-height: 1.7;
  margin: 0;
}

.recit-lead-gap {
  margin-top: 14px;
}

.recit-inline {
  color: var(--r-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.recit-inline:hover {
  color: var(--r-link-hover);
}

.recit-exp {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  max-width: 720px;
}

.recit-exp article {
  padding: 16px 18px;
  text-align: left;
}

.recit-exp .when {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--r-primary);
  margin-bottom: 4px;
}

.recit-exp h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.recit-exp p {
  margin: 0;
  font-size: 13px;
  color: var(--r-muted);
  line-height: 1.5;
}

.recit-aside {
  margin: 28px 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--r-primary);
}

.recit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.recit-hint {
  margin-top: 40px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--r-muted);
}

/* Stats */
.recit-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 36px;
  max-width: 720px;
}

.recit-stat {
  text-align: center;
  padding: 24px 12px;
  border-radius: var(--r-radius);
  background: var(--r-glass);
  border: 1px solid var(--r-border);
  backdrop-filter: blur(8px);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.recit-stat:hover {
  border-color: var(--r-primary);
  box-shadow: 0 0 24px rgba(30, 138, 138, 0.2);
}

.recit-stat .val {
  display: block;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}

.recit-stat .lab {
  display: block;
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--r-muted);
}

.recit-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.recit-steps span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--r-text);
  padding: 8px 12px;
  border-radius: 50px;
  border: 1px solid var(--r-border);
  background: var(--r-glass);
}

.recit-steps span b {
  color: var(--r-primary);
  margin-right: 6px;
  font-weight: 700;
}

/* Skills */
.recit-skills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.recit-skill {
  padding: 22px 20px;
  text-align: left;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.recit-skill:hover {
  transform: translateY(-4px);
  border-color: var(--r-primary);
  box-shadow: 0 0 24px rgba(30, 138, 138, 0.2);
}

.recit-skill h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.recit-skill p {
  margin: 0;
  font-size: 13px;
  color: var(--r-muted);
}

.recit-techs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

/* Apps */
.recit-chapter--apps {
  align-items: flex-start;
  padding-top: 108px;
  padding-bottom: 80px;
}

.recit-chapter--apps .app-mock {
  height: 72px;
}

.recit-apps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.recit-app {
  text-align: left;
  color: inherit;
  padding: 16px;
  cursor: pointer;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.recit-modal .recit-btn {
  margin-top: 8px;
}

.recit-app:hover {
  transform: translateY(-6px);
  border-color: var(--r-primary);
  box-shadow: 0 0 24px rgba(30, 138, 138, 0.2);
}

.recit-app h3 {
  margin: 12px 0 6px;
  font-size: 18px;
}

.recit-app p {
  margin: 0;
  font-size: 13px;
  color: var(--r-muted);
}

.app-mock {
  height: 100px;
  border-radius: 12px;
  background: var(--r-dark-3);
  border: 1px solid var(--r-border);
  position: relative;
  overflow: hidden;
}

.app-mock::after {
  content: "";
  position: absolute;
  inset: 16px 14px auto;
  height: 8px;
  border-radius: 6px;
  background: var(--r-mock-bar);
  box-shadow: 0 18px 0 var(--r-mock-bar-soft), 0 36px 0 var(--r-mock-bar-soft);
}

.app-mock--wide {
  height: 160px;
  margin-bottom: 16px;
}

/* Contact */
.recit-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.contact-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 22px 20px;
  border-radius: var(--r-radius-lg);
  overflow: hidden;
  background: var(--r-glass);
  border: 1px solid var(--r-border);
  backdrop-filter: blur(12px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s, box-shadow 0.35s;
}

.contact-card:hover {
  transform: translateY(-6px);
}

.contact-card--phone:hover {
  border-color: rgba(30, 138, 138, 0.55);
  box-shadow: 0 20px 48px rgba(30, 138, 138, 0.22);
}

.contact-card--whatsapp:hover {
  border-color: rgba(37, 211, 102, 0.5);
  box-shadow: 0 20px 48px rgba(37, 211, 102, 0.2);
}

.contact-card--email:hover {
  border-color: rgba(38, 141, 200, 0.55);
  box-shadow: 0 20px 48px rgba(38, 141, 200, 0.2);
}

.contact-card-glow {
  position: absolute;
  top: -40%;
  right: -20%;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.45;
  pointer-events: none;
}

.contact-card--phone .contact-card-glow { background: var(--r-primary); }
.contact-card--whatsapp .contact-card-glow { background: var(--r-whatsapp); }
.contact-card--email .contact-card-glow { background: var(--r-email); }

.contact-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--r-on-primary);
}

.contact-card--phone .contact-card-icon { background: var(--r-primary); }
.contact-card--whatsapp .contact-card-icon { background: var(--r-whatsapp); }
.contact-card--email .contact-card-icon { background: var(--r-email); }

.contact-card-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--r-muted);
  margin-bottom: 6px;
}

.contact-card-number {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  word-break: break-word;
}

.contact-card-desc {
  font-size: 13px;
  color: var(--r-muted);
  margin-bottom: 16px;
  flex: 1;
}

.contact-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--r-border);
  font-size: 14px;
  font-weight: 600;
  color: var(--r-primary);
}

.contact-card--whatsapp .contact-card-cta { color: var(--r-whatsapp-text); }
.contact-card--email .contact-card-cta { color: var(--r-email-text); }

.recit-foot {
  margin-top: 36px;
  font-size: 13px;
  color: var(--r-muted);
}

/* Modal */
.recit-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--r-overlay);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, background-color 0.25s ease;
}

.recit-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.recit-modal {
  position: fixed;
  z-index: 91;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%) scale(0.96);
  width: min(720px, calc(100% - 32px));
  max-height: min(86vh, 760px);
  overflow: auto;
  background: var(--r-dark-2);
  color: var(--r-white);
  border: 1px solid var(--r-border);
  border-radius: var(--r-radius-lg);
  padding: 32px 56px 32px 32px;
  opacity: 0;
  pointer-events: none;
  box-shadow: var(--r-modal-shadow);
  color-scheme: inherit;
  transition: opacity 0.3s, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.recit-modal.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.recit-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--r-border);
  background: var(--r-glass);
  color: var(--r-white);
  font-size: 22px;
  line-height: 1;
  z-index: 2;
}

.recit-close:hover {
  border-color: var(--r-primary);
  background: var(--r-primary-soft);
}

.recit-modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 24px;
}

.recit-modal h2 {
  margin: 8px 0 0;
  font-size: 28px;
  color: var(--r-white);
}

.recit-modal .recit-chip {
  background: var(--r-chip-on-surface);
}

.recit-case-block {
  margin-bottom: 18px;
}

.recit-case-block strong {
  display: block;
  color: var(--r-primary);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.recit-case-block p {
  margin: 0;
  color: var(--r-text);
}

body.recit-locked {
  overflow: hidden;
}

body.recit-locked .recit-top .recit-btn--ghost,
body.recit-locked .recit-progress {
  visibility: hidden;
  pointer-events: none;
}

@media (hover: none) {
  .recit-btn:hover,
  .recit-app:hover,
  .recit-skill:hover,
  .contact-card:hover,
  .recit-stat:hover {
    transform: none;
  }
}

@media (max-width: 1024px) {
  .recit-apps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .recit-progress {
    top: auto;
    right: auto;
    left: 50%;
    bottom: max(14px, env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    flex-direction: row;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border-radius: 50px;
    background: var(--r-glass);
    border: 1px solid var(--r-border);
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 28px rgba(12, 30, 33, 0.28);
    z-index: 40;
  }

  .recit-progress .lbl {
    display: none;
  }

  .recit-progress a {
    min-width: 36px;
    min-height: 36px;
    justify-content: center;
    padding: 0;
  }

  .recit-progress a .dot {
    width: 11px;
    height: 11px;
    border-width: 2px;
  }

  .recit-progress a.is-active .dot {
    width: 13px;
    height: 13px;
  }

  .recit-chapter {
    align-items: center;
    justify-content: center;
    min-height: 100dvh;
    padding: 72px 20px 72px;
    padding-left: max(20px, env(safe-area-inset-left, 0px));
    padding-right: max(20px, env(safe-area-inset-right, 0px));
    padding-bottom: 72px;
  }

  .recit-chapter--apps {
    align-items: flex-start;
    min-height: 0;
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .recit-chapter-inner {
    text-align: center;
    margin-inline: auto;
  }

  .recit-chapter .lead {
    margin-inline: auto;
  }

  .recit-actions,
  .recit-techs,
  .recit-steps {
    justify-content: center;
  }

  .recit-portrait--about {
    margin-inline: auto;
  }

  .recit-motto--inline {
    text-align: center;
    border-left: none;
    border-top: 2px solid var(--r-primary);
    border-radius: var(--r-radius);
  }

  .recit-exp article,
  .recit-skill,
  .recit-app {
    text-align: center;
  }

  .contact-card {
    text-align: center;
    align-items: center;
  }

  .contact-card-cta {
    justify-content: center;
  }

  .recit-actions {
    margin-top: 20px;
  }

  .recit-hint {
    margin-top: 20px;
  }

  .recit-stats {
    margin-top: 20px;
  }

  .recit-exp {
    margin-top: 16px;
  }

  .recit-aside {
    margin: 18px 0 8px;
  }

  .recit-apps,
  .recit-skills,
  .recit-contact-grid {
    margin-top: 20px;
  }

  .recit-profile {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .recit-portrait--about {
    max-width: 180px;
  }

  .recit-skills,
  .recit-contact-grid,
  .recit-stats {
    grid-template-columns: 1fr 1fr;
  }

  .recit-exp,
  .recit-stats {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .recit-top {
    padding: max(10px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) 10px max(12px, env(safe-area-inset-left, 0px));
  }

  .recit-top img {
    height: 28px;
  }

  .recit-toolbar {
    gap: 6px;
    flex-shrink: 0;
  }

  .recit-toolbar .recit-btn--ghost {
    padding: 10px 12px;
    font-size: 13px;
  }

  .recit-icon-btn {
    height: 40px;
    min-width: 40px;
    padding: 0 10px;
  }

  .recit-chapter {
    padding: 64px max(16px, env(safe-area-inset-right, 0px)) 68px max(16px, env(safe-area-inset-left, 0px));
  }

  .recit-chapter--apps {
    padding-top: 64px;
    padding-bottom: 68px;
  }

  .recit-chapter h1,
  .recit-chapter h2 {
    margin: 6px 0 12px;
  }

  .recit-portrait--about {
    max-width: 148px;
  }

  .recit-profile-copy h2 {
    font-size: clamp(24px, 7vw, 36px);
  }

  .recit-motto--inline p {
    font-size: 15px;
  }

  .recit-skills,
  .recit-apps,
  .recit-contact-grid,
  .recit-stats {
    grid-template-columns: 1fr;
  }

  .recit-chapter h1,
  .recit-chapter h2 {
    font-size: clamp(26px, 8vw, 38px);
  }

  .recit-chapter .lead {
    font-size: 16px;
  }

  .recit-modal {
    width: calc(100% - 16px);
    max-height: min(88dvh, calc(100% - 24px));
    padding: 24px 20px 28px;
  }

  .recit-modal h2 {
    font-size: 22px;
    padding-right: 36px;
  }

  .recit-close {
    top: 10px;
    right: 10px;
  }
}

@media (max-width: 420px) {
  .recit-toolbar .recit-btn--ghost {
    display: none;
  }
}
