/* Identity studio: a visual signature drawn from precision and engineering. */
.personal-hero {
  --ink: #f3f4df;
  --gray: #c3d2c8;
  --blue: #d5ef8b;
  --line: #466358;
  --surface: #234137;
  --studio-accent: #d5ef8b;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: 1180px;
  margin: 32px auto 0;
  padding: 56px;
  grid-template-columns: 1.45fr .9fr;
  gap: 44px 56px;
  border: 1px solid #37574a;
  border-radius: 28px;
  background: #19372e;
  color: var(--ink);
  box-shadow: 0 24px 72px #17382b18;
}
.personal-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image: linear-gradient(#abcbb70b 1px,transparent 1px),linear-gradient(90deg,#abcbb70b 1px,transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(90deg,transparent 20%,#000);
}
.personal-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(480px circle at var(--studio-pointer-x,80%) var(--studio-pointer-y,20%),#d5ef8b16,transparent 75%);
  opacity: .5;
  transition: opacity .4s ease;
}
.personal-hero.studio-pointer-active::after { opacity: 1; }
.personal-hero > * { min-width: 0; }
.personal-hero .eyebrow { color: var(--gray); font-size: 10px; letter-spacing: .08em; }
.personal-hero .eyebrow::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 10px; border: 1px solid var(--studio-accent); border-radius: 50%; vertical-align: 1px; }
.personal-hero h1 { font-size: clamp(76px,8vw,116px); font-weight: 650; letter-spacing: -.07em; line-height: .92; margin-bottom: 34px; }
.personal-hero h1 > span { color: var(--studio-accent); }
.personal-hero .identity-statement { font-size: clamp(21px,2vw,27px); font-weight: 500; max-width: 520px; }
.personal-hero .intro { color: var(--gray); font-size: 16px; line-height: 1.8; margin: 20px 0 30px; max-width: 500px; }
.personal-hero .button { background: var(--studio-accent); border-color: var(--studio-accent); color: #19372e; font-weight: 600; box-shadow: none; }
.personal-hero .button:hover { background: #e2f5ad; border-color: #e2f5ad; box-shadow: 0 6px 22px #d5ef8b18; }
.personal-hero .identity-cv { color: var(--ink); }
.personal-hero .identity-meta { font-size: 11px; gap: 6px 16px; margin-top: 30px; }
.identity-portrait { background: transparent; border: 0; padding: 20px 12px 0; box-shadow: none; }
.identity-portrait::before, .identity-portrait::after { display: none; }
.portrait-mount { position: relative; isolation: isolate; }
.portrait-orbit { position: absolute; width: 142%; max-width: none; left: -21%; top: -13%; z-index: -1; fill: none; stroke: #8fb29b; stroke-width: .7; opacity: .48; pointer-events: none; }
.portrait-orbit .orbit-trace { stroke: var(--studio-accent); stroke-width: 2; stroke-dasharray: 350; stroke-dashoffset: 0; }
.identity-portrait img { width: 100%; aspect-ratio: 390/460; object-fit: cover; object-position: center top; border-radius: 180px 180px 14px 14px; border: 1px solid #b1c79d; background: #fdfcf8; }
.identity-portrait figcaption { display: grid; grid-template-columns: auto 1fr; align-items: start; padding: 22px 0 0; gap: 14px; color: var(--gray); font-size: 11px; }
.identity-portrait .identity-index { padding-top: 2px; font-size: 10px; white-space: nowrap; }
.identity-principles { margin: 0; padding: 28px 0 0; border-bottom: 0; border-top: 1px solid var(--line); gap: 28px; }
.identity-principles h2 { font-size: 20px; font-weight: 500; }
.identity-principles p { color: var(--gray); font-size: 12px; }
.principle-number { color: var(--studio-accent); }
:root[data-theme=dark] .personal-hero { background: #112a22; border-color: #365648; box-shadow: 0 24px 72px #0002; }
:root[data-theme=dark] header #primary-nav { background: transparent; }

/* A central case, then alternating projects and two compact exploration notes. */
#proyectos .heading h2 { font-size: clamp(38px,5vw,64px); max-width: 650px; }
#proyectos .feature { grid-template-columns: 1fr 1.2fr; gap: 22px 48px; border-radius: 22px; padding: 44px; background: var(--surface); border-color: var(--line); box-shadow: 0 16px 54px #19372e0c; }
#proyectos .feature .eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-family: ui-monospace,Consolas,monospace; font-size: 10px; letter-spacing: .03em; color: var(--gray); }
.featured-label { background: #e7efdc; border: 1px solid #c8d8b8; color: #36512e; padding: 6px 8px; border-radius: 5px; font-size: 9px; }
:root[data-theme=dark] .featured-label { background: #314836; border-color: #617b5b; color: #d5ef8b; }
#proyectos .feature h3 { font-size: clamp(34px,4vw,50px); }
#proyectos .feature > .feature-capture { padding: 12px; background: var(--bg); border-radius: 12px; align-self: center; }
.feature-capture img { border-radius: 5px; }
#proyectos .feature > .feature-note { border-color: var(--line); }
#proyectos .feature-note > strong { font-weight: 500; font-size: 20px; }
#proyectos .steps { gap: 16px; }
#proyectos .steps li { border: 0; border-left: 1px solid var(--line); border-radius: 0; padding: 8px 18px; background: transparent; }
#proyectos .steps li:first-child { border-left: 0; padding-left: 0; }
#proyectos .steps li > span { color: var(--blue); font-family: ui-monospace,Consolas,monospace; font-size: 11px; }
#proyectos .steps li > strong { font-size: 15px; font-weight: 500; letter-spacing: -.02em; }
#proyectos .grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
#proyectos .project:not(.editorial) { grid-column: 1/-1; }
#proyectos #proyecto-ubo > * { grid-column: 1; }
#proyectos #proyecto-ubo > .capture-button { grid-column: 2; }
#proyectos .project.editorial { display: flex; flex-direction: column; padding: 28px; gap: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
#proyectos .project.editorial .editorial-intro { flex-direction: row; justify-content: space-between; align-items: center; width: 100%; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
#proyectos .project.editorial .editorial-intro > span:first-child { font-size: 54px; font-style: italic; }
#proyectos .project.editorial .editorial-intro > span:last-child { font-family: ui-monospace,Consolas,monospace; font-size: 10px; }
#proyectos .project.editorial h3 { font-size: 30px; }
#proyectos .project.editorial .concept-preview { margin-top: auto; }
.project .capture-label { display: inline-flex; gap: 8px; align-items: center; }

/* Carry the studio signature through the remaining sections. */
.about .personal-note { border-left-color: #d5ef8b; }
.about .personal-note .identity-index { color: #d5ef8b; }
.about .award-place > span { font-family: Georgia,serif; font-style: italic; font-weight: 400; }
.tool { position: relative; overflow: hidden; }
.tool::after { content: ''; position: absolute; width: 32px; height: 32px; top: 16px; right: 16px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-radius: 0 8px 0 0; pointer-events: none; }
.contact-intro h2 { font-size: clamp(40px,4.4vw,62px); letter-spacing: -.05em; }
.contact-intro .eyebrow::before { content: ''; display: inline-block; width: 22px; height: 1px; margin-right: 12px; vertical-align: middle; background: var(--blue); }
@media (min-width:641px) and (prefers-reduced-motion:no-preference) {
  .showcase-ready .identity-portrait.visible .orbit-trace { animation: studio-trace 1.2s var(--finish-ease) both; }
}
@keyframes studio-trace { from { stroke-dashoffset: 350; opacity: 0; } to { stroke-dashoffset: 0; opacity: 1; } }
@media (max-width:1200px) {
  .personal-hero { width: calc(100% - 48px); padding: 44px; gap: 36px 40px; }
  .personal-hero h1 { font-size: clamp(62px,8.3vw,96px); }
}
@media (max-width:900px) {
  .personal-hero { padding: 36px; grid-template-columns: 1.3fr .8fr; gap: 36px 28px; }
  .personal-hero h1 { font-size: clamp(58px,8vw,80px); }
  .personal-hero .identity-statement { font-size: 22px; }
  .personal-hero .intro { font-size: 14px; }
  .identity-portrait { padding: 12px 0 0; }
  .identity-portrait figcaption { grid-template-columns: 1fr; gap: 6px; }
  #proyectos .feature { padding: 32px; gap: 20px 28px; }
}
@media (max-width:640px) {
  .personal-hero { width: calc(100% - 24px); margin-top: 12px; padding: 30px 24px; border-radius: 20px; grid-template-columns: 1fr; gap: 28px; }
  .personal-hero .eyebrow { font-size: 10px; letter-spacing: .03em; line-height: 1.8; margin-bottom: 24px; }
  .personal-hero h1 { font-size: clamp(48px,14.5vw,86px); margin-bottom: 26px; }
  .personal-hero .identity-statement { font-size: 21px; }
  .personal-hero .intro { font-size: 14px; margin-block: 18px 24px; }
  .personal-hero .actions { gap: 12px 20px; }
  .personal-hero .actions .button { font-size: 14px; padding-inline: 18px; }
  .personal-hero .identity-cv { font-size: 13px; }
  .personal-hero .identity-meta { margin-top: 24px; font-size: 11px; }
  .identity-portrait { display: grid; width: 100%; grid-template-columns: 96px 1fr; align-items: center; padding: 0; gap: 22px; }
  .portrait-orbit { width: 140%; top: -3%; }
  .identity-portrait img { width: 96px; height: 124px; aspect-ratio: auto; border-radius: 60px 60px 8px 8px; }
  .identity-portrait figcaption { padding: 0; font-size: 11px; line-height: 1.75; }
  .identity-principles { grid-template-columns: 1fr; gap: 20px; padding-top: 24px; }
  .identity-principles > div { padding-bottom: 20px; }
  .identity-principles > div:last-child { padding-bottom: 0; }
  .identity-principles h2 { margin: 10px 0 8px; font-size: 19px; }
  #proyectos .feature { grid-template-columns: 1fr; padding: 24px; border-radius: 16px; }
  #proyectos .feature > .feature-capture { grid-column: 1; grid-row: auto; }
  #proyectos .feature .eyebrow { gap: 8px; }
  #proyectos .steps { flex-direction: column; gap: 12px; }
  #proyectos .steps li { border-left: 0; border-top: 1px solid var(--line); padding: 14px 0 0; }
  #proyectos .steps li:first-child { border-top: 0; padding-top: 0; }
  #proyectos .grid { grid-template-columns: 1fr; gap: 20px; }
  #proyectos #proyecto-ubo > *, #proyectos #proyecto-ubo > .capture-button { grid-column: 1; grid-row: auto; }
  #proyectos .project.editorial { padding: 24px; }
}
@media (prefers-reduced-motion:reduce) {
  .personal-hero::after { transition: none; }
  .portrait-orbit .orbit-trace { animation: none; }
}
.capture-label { display: inline-flex; align-items: center; gap: 8px; }
.capture-label::after { content: ''; width: 12px; height: 12px; flex: none; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='black' stroke-width='1.5' d='M3 13 13 3M3 3h10v10'/%3E%3C/svg%3E") center/contain no-repeat; }
