@font-face {
  font-family: "Dancing Script";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../../../../assets/fonts/dancing-script/DancingScript.woff") format("woff");
}

:root {
  --text-primary: #233B60;
  --text-secondary: #526887;
}

.about-page { --about-top: clamp(160px, 16svh, 208px); }
.about-page .project-content { padding-block: 0; }
.about-first-screen {
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  padding-top: var(--about-top);
  align-content: start;
}
.about-hero { padding-bottom: 64px; }
.about-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: 64px; }
.about-hero h1 { margin: 0; color: var(--text-primary); font: 700 clamp(44px, 4vw, 64px)/1.15 Oswald, "Arial Narrow", sans-serif; letter-spacing: -.02em; text-wrap: balance; }
.about-greeting, .about-role { display: block; }
.about-person { white-space: nowrap; }
.about-title-name { position: relative; display: inline-block; white-space: nowrap; }
.about-second-name {
  position: absolute;
  top: -16px;
  left: calc(100% + 8px);
  width: 174px;
  height: 80px;
  overflow: visible;
  color: #4d6fa5;
  pointer-events: none;
}
.about-second-name text {
  fill: currentColor;
  font: 500 22px/1 "Dancing Script", "Segoe Print", cursive;
  letter-spacing: 0;
}
.about-marker { position: relative; z-index: 0; display: inline-block; white-space: nowrap; color: #2455af; }
.about-marker::before { content: ""; position: absolute; z-index: -1; inset: .12em -.06em .01em; border-radius: 6px; background: #dfe8ff; transform-origin: left center; transform: skewX(-6deg); animation: about-marker-draw .9s cubic-bezier(.16, 1, .3, 1) .35s both; }
@keyframes about-marker-draw { from { transform: skewX(-6deg) scaleX(0); } to { transform: skewX(-6deg) scaleX(1); } }
.about-lead { max-width: 52ch; margin: 20px 0 0; color: var(--text-secondary); font-size: 18px; line-height: 1.55; text-wrap: pretty; }
.about-lead + .about-lead { margin-top: 12px; }
.about-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.about-actions a { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; border-radius: 999px; font-size: 16px; line-height: 1.5; text-decoration: none; transition: background-color .2s, color .2s; }
.about-actions a:focus-visible { outline: 2px solid #2455af; outline-offset: 4px; }
.about-primary { padding: 8px 8px 8px 24px; background: var(--text-primary); color: #fff; }
.about-primary:hover { background: #2455af; }
.about-primary-arrow { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: #dce8ff; color: var(--text-primary); }
.about-primary-arrow svg { width: 18px; height: 18px; transition: transform .25s cubic-bezier(.16, 1, .3, 1); }
.about-primary:hover svg { transform: translateX(3px); }
.about-portrait { position: relative; width: 100%; max-width: min(440px, calc((100svh - var(--about-top) - 48px) * .8)); margin: 0 0 0 auto; }
.about-photo { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 24px; background: #e7edf8; }
.about-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.about-name-tag { position: absolute; bottom: -20px; left: -32px; max-width: calc(100% + 16px); padding: 12px 20px; border-radius: 16px; background: #e1f1ec; color: var(--text-primary); transform: rotate(-3deg); box-shadow: 0 12px 24px rgb(37 56 88 / 12%); }
.about-name-tag strong { display: block; font: 700 22px/1.3 Oswald, "Arial Narrow", sans-serif; letter-spacing: -.015em; }
.about-name-tag span { display: block; margin-top: 4px; color: #405a68; font-size: 13px; line-height: 1.5; }
.about-name-tag:focus-visible { outline: 2px solid #2455af; outline-offset: 4px; }
.about-badge-stage { display: grid; min-height: 52px; overflow: hidden; }
.about-badge-panel { grid-area: 1 / 1; min-width: 0; align-self: center; opacity: 0; visibility: hidden; }
.about-badge-panel.is-current { opacity: 1; visibility: visible; }
.about-badge-panel.is-leaving { visibility: visible; }
.about-badge-company { display: flex; align-items: center; justify-content: center; gap: 12px; }
.about-badge-company[hidden] { display: none; }
.about-badge-company img { display: block; flex: none; width: 44px; height: 44px; object-fit: contain; }
.about-badge-company strong { font-size: 20px; }
.about-hobby-cta { padding-block: 16px 80px; text-align: left; }
.about-hobby-cta h2 { max-width: 34ch; margin: 0; color: var(--text-primary); font: 700 clamp(28px, 4vw, 40px)/1.3 Oswald, "Arial Narrow", sans-serif; letter-spacing: -.015em; text-wrap: balance; }
.about-page .contact-section { width: 100%; padding-top: 0; }
.about-hobby-link { display: inline-flex; align-items: center; gap: .2em; min-height: 44px; color: #2455af; font: inherit; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.about-hobby-link svg { flex: none; width: .6em; height: .6em; transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
.about-hobby-link:hover svg, .about-hobby-link:focus-visible svg { transform: translate(3px, -3px); }
.about-hobby-link:focus-visible { outline: 2px solid #2455af; outline-offset: 6px; border-radius: 4px; }
.about-stats-section { padding: 24px 0 32px; }
.about-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(min-content, 1fr); margin: 0; border-block: 1px solid #d9e2f0; }
.about-stat { display: flex; flex-direction: column; min-width: 0; padding: 40px 32px; border-right: 1px solid #d9e2f0; }
.about-stat:first-child { padding-left: 0; }
.about-stat:last-child { border-right: 0; padding-right: 0; }
.about-stat:last-child .about-stat-description { white-space: nowrap; }
.about-stat dt { order: 2; margin-top: 12px; color: #344969; font-size: 15px; line-height: 1.5; }
.about-stat dd { margin: 0; }
.about-stat .about-stat-value { order: 1; color: var(--text-primary); font: 700 64px/1.1 Oswald, "Arial Narrow", sans-serif; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.about-counter { display: inline-flex; height: 1.1em; vertical-align: bottom; }
.about-counter-window { display: block; height: 1.1em; overflow: hidden; }
.about-counter-track { display: flex; flex-direction: column; }
.about-counter-track > span { display: block; flex: none; height: 1.1em; line-height: 1.1; }
.about-stat .about-stat-description { order: 3; margin-top: 4px; color: var(--text-secondary); font-size: 14px; line-height: 1.5; }
@media (min-width: 768px) and (max-width: 1023px) {
  .about-hero-grid { gap: 48px; }
  .about-name-tag { left: -16px; }
  .about-stat { padding-inline: 20px; }
}
/* The complete first screen includes copy, actions, portrait and statistics. */
@media (min-width: 1024px) {
  .about-page { --about-top: clamp(160px, 15svh, 192px); }
  .about-first-screen { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); gap: 24px 48px; padding-bottom: 32px; }
  .about-hero, .about-hero-grid { display: contents; }
  .about-hero-copy { grid-column: 1; grid-row: 1; }
  .about-hero h1 { font-size: clamp(38px, 3.5vw, 56px); }
  .about-role { margin-top: 12px; font-size: clamp(22px, 2vw, 32px); line-height: 1.25; }
  .about-portrait { grid-column: 2; grid-row: 1 / 3; align-self: center; max-width: min(440px, calc((100svh - var(--about-top) - 64px) * .8)); }
  .about-stats-section { grid-column: 1; grid-row: 2; padding: 0; }
  .about-stat { padding: 20px 16px; }
  .about-stat .about-stat-value { font-size: clamp(40px, 3.6vw, 56px); }
  .about-stat dt { font-size: 14px; line-height: 1.4; margin-top: 8px; }
  .about-stat .about-stat-description { font-size: 13px; line-height: 1.4; }
}
@media (min-width: 1024px) and (max-height: 740px) {
  .about-first-screen { gap: 16px 40px; }
  .about-hero h1 { font-size: clamp(36px, 3.2vw, 44px); }
  .about-role { margin-top: 8px; font-size: 22px; }
  .about-lead { margin-top: 16px; font-size: 16px; line-height: 1.5; }
  .about-lead + .about-lead { margin-top: 8px; }
  .about-actions { margin-top: 20px; }
  .about-actions a { min-height: 48px; }
  .about-primary-arrow { width: 32px; height: 32px; }
  .about-stat { padding: 12px 8px; }
  .about-stat .about-stat-value { font-size: 40px; }
  .about-stat dt { margin-top: 6px; font-size: 13px; }
}
@media (min-width: 1024px) and (max-height: 640px) {
  .about-page { --about-top: 144px; }
  .about-first-screen { gap: 12px 40px; }
  .about-lead { margin-top: 14px; }
  .about-lead + .about-lead { margin-top: 6px; }
  .about-actions { margin-top: 16px; }
  .about-stat { padding-block: 8px; }
}
@media (max-width: 767px) {
  .about-hobby-cta { padding-block: 8px 56px; }
  .about-first-screen { padding-top: 148px; }
  .about-hero { padding-bottom: 48px; }
  .about-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .about-hero h1 { font-size: 44px; }
  .about-second-name { width: clamp(140px, 40vw, 164px); height: auto; }
  .about-lead { font-size: 18px; }
  .about-portrait { max-width: 440px; margin-inline: auto; margin-bottom: 20px; }
  .about-name-tag { left: 20px; max-width: calc(100% - 40px); }
  .about-stats-section { padding-bottom: 24px; }
  .about-stats { grid-template-columns: minmax(0, 1fr) minmax(min-content, 1fr); }
  .about-stat { padding: 32px 16px; border-right: 0; }
  .about-stat:nth-child(odd) { padding-left: 0; border-right: 1px solid #d9e2f0; }
  .about-stat:nth-child(-n+2) { border-bottom: 1px solid #d9e2f0; }
  .about-stat .about-stat-value { font-size: 44px; }
}
@media (min-width: 640px) and (max-width: 767px) { .about-hero h1 { font-size: 56px; } }
@media (max-width: 374px) {
  .about-person { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .about-marker::before { animation: none; }
  .about-actions a, .about-primary-arrow svg, .about-hobby-link svg { transition: none; }
  .about-hobby-link:hover svg, .about-hobby-link:focus-visible svg { transform: none; }
}
