/* Lower sections share yuri.ly's compact, neutral card vocabulary. */
.section-lead {
  min-height: 0;
  padding: 0 0 8px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  align-items: flex-end;
  gap: 24px;
  overflow: visible;
}
.section-lead > div { min-width: 0; }
.section-lead h2 {
  margin-top: 6px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}
.section-lead p {
  flex: 0 1 34ch;
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.42;
}
#method .section-lead { padding: 0 0 8px; }
#method .section-lead h2 { font-size: 24px; }
#method .method,
#method .method-visual { min-height: 320px; padding: 24px; }
#method .method { gap: 28px; }
#method .method-detail-head,
#method .method-flow-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
#method .method-counter { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
#method .method-copy { display: flex; flex: 1; flex-direction: column; gap: 16px; min-height: 0; margin: 0; }
#method .method h3 { max-width: 22ch; margin: 0; font-size: 26px; font-weight: 600; line-height: 1.18; text-wrap: balance; }
#method .method-copy p { max-width: 45ch; font-size: 14px; line-height: 1.55; text-wrap: pretty; transition: none; }
#method .method-result { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }
#method .method-result-label { display: block; margin-bottom: 6px; font-size: 12px; color: var(--muted); }
#method .method-result p { color: var(--text); }
#method .method-visual { display: flex; flex-direction: column; align-items: stretch; gap: 14px; background: var(--card); cursor: auto; touch-action: auto; user-select: auto; }
#method .method-timer { position: relative; display: grid; place-items: center; flex: none; width: 36px; height: 36px; padding: 2px; margin: -8px -4px -8px 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
#method .method-timer:hover { color: var(--text); background: var(--card2); }
#method .method-timer:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
#method .method-timer:disabled { cursor: default; }
#method .method-timer svg { width: 32px; height: 32px; fill: none; stroke-width: 1.5; transform: rotate(-90deg); }
#method .method-timer-track { stroke: var(--line); }
#method .method-timer-progress { stroke: currentColor; stroke-dasharray: 1; stroke-dashoffset: 0; stroke-linecap: round; }
#method .method-timer-value { position: absolute; font-size: 10px; line-height: 1; font-variant-numeric: tabular-nums; }
#method .method-steps { display: grid; grid-template-columns: 1fr; gap: 6px; margin: 0; padding: 0; }
#method .step { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 58px; padding: 10px 12px; border: 1px solid transparent; border-radius: 14px; background: transparent; color: var(--muted); font: inherit; text-align: left; transform: none; transition: none; }
#method .step:hover { background: var(--card2); }
#method .step[aria-pressed="true"] { border-color: var(--line); background: var(--card2); color: var(--text); }
#method .step-number { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 10px; font-size: 12px; font-variant-numeric: tabular-nums; }
#method .step[aria-pressed="true"] .step-number { border-color: transparent; background: var(--inverse); color: var(--inverse-text); }
#method .step-info { display: grid; gap: 3px; min-width: 0; }
#method .step-name { font-size: 14px; font-weight: 600; line-height: 1.3; }
#method .step-summary { color: var(--muted); font-size: 12px; line-height: 1.4; text-wrap: pretty; }
#method .step-arrow { margin-left: auto; font-size: 18px; opacity: 0; }
#method .step[aria-pressed="true"] .step-arrow { opacity: 1; }
#about .link-card {
  min-height: 168px;
  padding: 24px;
  gap: 20px;
  transition: transform 160ms ease-out;
}
#about .about-label { gap: 10px; }
#about .about-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--card2);
  color: var(--text);
  transform: none;
  box-shadow: none;
}
#about .about-icon .glyph { width: 19px; height: 19px; }
#about .link-card .topline > .link-arrow {
  width: 26px;
  height: 26px;
  min-width: 26px;
  flex-basis: 26px;
  border-radius: 50%;
  background: var(--card2);
  color: var(--muted);
  font-size: 18px;
}
#about .link-card h3 { font-size: 19px; font-weight: 600; line-height: 1.2; }
#about .link-card p { margin-top: 5px; font-size: 14px; line-height: 1.42; }
#about .link-card:hover { transform: none; }
#about .link-card:active { transform: scale(.98); }
#about .link-card:hover .about-icon { transform: none; }
#contact .contact,
#contact .socials { grid-column: span 6; min-height: 232px; padding: 24px; }
#contact .contact { gap: 12px; background: var(--card); color: var(--text); }
#contact .contact .eyebrow { color: var(--muted); opacity: 1; }
#contact .contact h2 {
  max-width: 29ch;
  margin-top: 0;
  padding-right: 40px;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
}
#contact .contact p {
  max-width: 49ch;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.42;
  opacity: 1;
}
#contact .contact .btn {
  min-height: 44px;
  margin-top: auto;
  padding: 8px 16px;
  background: var(--inverse);
  color: var(--inverse-text);
  font-size: 14px;
  font-weight: 500;
}
#contact .contact-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
#contact .contact-actions .btn { margin-top: 0; text-align: center; }
#contact .contact .contact-email { background: var(--card2); color: var(--text); }
#contact .contact-doodle {
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  color: var(--muted);
  transform: none;
}
#contact .socials {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  align-content: start;
  gap: 10px;
}
#contact .socials > .eyebrow,
#contact .socials h3 { grid-column: 1 / -1; }
#contact .socials h3 { margin: 0 0 8px; font-size: 19px; font-weight: 600; line-height: 1.2; }
#contact .socials a {
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  gap: 4px;
  border: 0;
  border-radius: 99px;
  background: var(--card2);
  font-size: 14px;
  line-height: 1.3;
}
#contact .socials a:last-child { border: 0; }
#contact .social-link-label { gap: 8px; }
#contact .social-link-label .glyph { width: 16px; height: 16px; }
#contact .socials .link-arrow { width: 16px; min-width: 16px; flex-basis: 16px; height: 16px; font-size: 16px; }
.footer {
  flex-wrap: wrap;
  padding: 0 0 28px;
  gap: 12px;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.42;
}
.footer a { display: inline-flex; align-items: center; min-height: 32px; text-underline-offset: 3px; }
.footer a:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .section-lead { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 0 0 6px; }
  .section-lead h2, #method .section-lead h2 { font-size: 22px; }
  .section-lead p { flex-basis: auto; max-width: 45ch; margin-top: 0; font-size: 14px; }
  #method .method, #method .method-visual { min-height: 0; padding: 20px; }
  #method .method { gap: 20px; order: 2; }
  #method .method-visual { order: 1; }
  #method .method-steps { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
  #method .step { position: relative; justify-content: center; min-height: 44px; padding: 0; border-radius: 12px; background: var(--card2); }
  #method .step-number { width: auto; height: auto; border: 0; background: transparent; font-size: 14px; }
  #method .step[aria-pressed="true"] { border-color: transparent; background: var(--inverse); color: var(--inverse-text); }
  #method .step[aria-pressed="true"] .step-number { background: transparent; color: inherit; }
  #method .step-info { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  #method .step-arrow { display: none; }
  #method .method h3 { font-size: 24px; }
  #method .method-copy { gap: 14px; }
  #method .method-result { padding-top: 16px; }
  #about .link-card { min-height: 154px; }
  #contact .contact, #contact .socials { grid-column: span 12; min-height: 0; }
  #contact .contact { gap: 14px; }
  #contact .contact h2 { font-size: 24px; }
  #contact .contact .btn { margin-top: 2px; }
  #contact .socials { gap: 10px; }
  #contact .socials a { padding-inline: 12px; font-size: 13px; }
  .footer { flex-direction: column; align-items: flex-start; gap: 4px; }
}
@media (max-width: 360px) {
  #contact .socials { grid-template-columns: 1fr; column-gap: 8px; }
  #contact .socials a { padding-inline: 10px; }
  #contact .social-link-label { gap: 5px; }
  #contact .social-link-label .glyph { width: 14px; height: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="full"]) #about .link-card:active { transform: none; }
}
html[data-motion="off"] #about .link-card:active { transform: none; }
/* Preserve the selected step when the OS replaces surface colors. */
@media (forced-colors: active) {
  #method .step[aria-pressed="true"] { outline: 2px solid Highlight; outline-offset: -4px; }
}

/* Places follows the project previews: oversized artwork clipped by the card edge. */
#about .places-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 224px;
}
#about .places-card .topline { position: relative; z-index: 1; }
#about .places-body { display: block; max-width: 46%; margin-top: auto; }
#about .places-body > div { position: relative; z-index: 1; }
#about .places-globe {
  position: absolute;
  left: 52%;
  top: 16px;
  display: block;
  width: 320px;
  height: 320px;
  pointer-events: none;
}
@media (max-width: 640px) {
  #about .places-globe { top: 32px; width: 280px; height: 280px; }
}
