.period-section { scroll-margin-top: 90px; }
.period-icon { width:46px; height:46px; display:grid; place-items:center; flex:0 0 46px; border-radius:12px; background:#e5f0f1; color:#14546b; }
.period-icon svg { display:block; width:27px; height:27px; }
.period-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin-top:24px; }
.period-card { min-width:0; background:#fff; border:1px solid #d4dfe3; border-radius:14px; padding:24px; }
.period-card h3,.period-card h4 { font:700 19px/1.35 "DM Sans",system-ui,sans-serif; color:#142f44; margin:16px 0 9px; }
.period-card p,.period-details { font-size:16px; line-height:1.65; color:#435a68; margin:0; }
.period-card details { border-top:1px solid #dce4e8; padding-top:14px; margin-top:18px; }
.period-card summary { font-size:16px; font-weight:650; color:#17475c; cursor:pointer; }
.period-details { padding-top:12px; }
.period-details a { display:inline; }
.period-card a { color:#145269; font-size:14px; font-weight:650; text-underline-offset:3px; }
.period-card > a { display:inline-flex; align-items:center; min-height:44px; margin-top:12px; }
.period-process { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border:1px solid #d7c6a3; background:#f5efe3; border-radius:14px; margin:28px 0; }
.period-process > div { display:grid; gap:8px; padding:22px; }
.period-process > div + div { border-left:1px solid #ded2bc; }
.period-process strong { font-size:16px; color:#253e4f; }
.period-process span:not(.period-icon) { font-size:14px; color:#485d69; }
.period-limits { margin-top:24px; color:#526674; font-size:15px; }
.period-next { display:flex; flex-wrap:wrap; gap:12px 24px; margin-top:20px; }
.period-next a { padding:10px 0; color:#174b62; font-weight:650; font-size:16px; }
.home-periods { grid-column:1/-1; border-top:1px solid #cbd9de; padding-top:32px; margin-top:8px; }
.home-periods > h3 { font-size:26px; line-height:1.3; color:#163449; margin:0 0 10px; }
.home-periods .period-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.home-periods .period-card { display:flex; flex-direction:column; align-items:flex-start; padding:20px; }
.home-periods .period-card > a { margin-top:auto; padding-top:12px; }
.home-page .home-periods p { max-width:none; font-size:16px; }
.period-other { display:flex; gap:18px; align-items:flex-start; padding:24px; margin-top:20px; border-radius:14px; border:1px solid #d9c59d; background:#f8f3e8; }
.period-other h4 { margin:0 0 8px; font-size:18px; color:#163449; }
.period-other a { display:inline-flex; padding:10px 0; min-height:44px; color:#174b62; font-weight:650; font-size:14px; }
.period-card[id] { scroll-margin-top:90px; }
@media(max-width:1050px) { .home-periods .period-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:650px) {
  .period-grid,.home-periods .period-grid,.period-process { grid-template-columns:minmax(0,1fr); }
  .period-process > div { grid-template-columns:46px 1fr; align-items:center; gap:4px 14px; padding:18px; }
  .period-process .period-icon { grid-row:1/3; }
  .period-process > div + div { border-left:0; border-top:1px solid #ded2bc; }
  .period-card { padding:20px; }
  .period-other { padding:18px; gap:12px; }
}

/* Horizontal experience signature; contained within the portrait at every width. */
.hero-portrait .experience-badge{left:18px;right:18px;bottom:18px;width:auto;display:flex;align-items:center;gap:20px;padding:18px 22px;border:1px solid #d9ceb6;border-left:3px solid #c9a65b;border-radius:8px;background:#faf8f2;box-shadow:0 8px 25px #08182724}
.hero-portrait .experience-badge strong{display:flex;align-items:baseline;gap:7px;white-space:nowrap;font-size:42px;line-height:1;color:#0b2136;font-weight:400}
.hero-portrait .experience-badge strong small{font:400 23px/1 Georgia,serif}
.hero-portrait .experience-badge>span{display:block;margin:0;padding-left:20px;border-left:1px solid #d9ceb6;font-size:13px;line-height:1.5;color:#52616b}
.hero-portrait .experience-badge>span b{display:block;color:#0b2136;font-size:15px;font-weight:700}
@media(max-width:520px){.hero-portrait .experience-badge{left:12px;right:12px;bottom:12px;padding:15px;gap:14px}.hero-portrait .experience-badge strong{font-size:37px}.hero-portrait .experience-badge strong small{font-size:21px}.hero-portrait .experience-badge>span{padding-left:14px;font-size:12px}}

/* Contextual photographs sit behind a readable foreground, only on the homepage. */
.home-periods .period-photo-card{position:relative;isolation:isolate;overflow:hidden;background:#fff;transition:transform .3s ease,border-color .3s ease,box-shadow .3s ease}
.home-periods .period-photo-background{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover;opacity:1;transition:transform .7s ease,opacity .4s ease;pointer-events:none}
.home-periods .period-photo-card:before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,transparent 20px,#fffffff0 115px,#fffffff0 100%);pointer-events:none}
.home-periods .period-photo-card>h4,.home-periods .period-photo-card>p{text-shadow:0 1px 2px #fff}
.home-periods .period-photo-card>.period-icon{background:#e1f2ef;border:1px solid #bad7d0;color:#006c5c}
.home-periods .period-photo-card:focus-within{border-color:#00816b;box-shadow:0 12px 28px #0b213617}
.home-periods .period-photo-card:focus-within .period-photo-background{transform:scale(1.06);opacity:1}
.home-periods.periods-revealed .period-photo-card{animation:period-photo-arrive .7s ease both}
.home-periods.periods-revealed .period-photo-card:nth-child(2){animation-delay:.07s}.home-periods.periods-revealed .period-photo-card:nth-child(3){animation-delay:.14s}.home-periods.periods-revealed .period-photo-card:nth-child(4){animation-delay:.21s}.home-periods.periods-revealed .period-photo-card:nth-child(5){animation-delay:.28s}.home-periods.periods-revealed .period-photo-card:nth-child(6){animation-delay:.35s}.home-periods.periods-revealed .period-photo-card:nth-child(7){animation-delay:.42s}.home-periods.periods-revealed .period-photo-card:nth-child(8){animation-delay:.49s}
@keyframes period-photo-arrive{from{opacity:.15;translate:0 18px}to{opacity:1;translate:0 0}}
@media(hover:hover) and (pointer:fine){.home-periods .period-photo-card:hover{transform:translateY(-5px);border-color:#00816b;box-shadow:0 12px 28px #0b213617}.home-periods .period-photo-card:hover .period-photo-background{transform:scale(1.06);opacity:1}}
@media(prefers-reduced-motion:reduce){.home-periods.periods-revealed .period-photo-card{animation:none}.home-periods .period-photo-card,.home-periods .period-photo-background{transition:none}.home-periods .period-photo-card:hover,.home-periods .period-photo-card:hover .period-photo-background,.home-periods .period-photo-card:focus-within .period-photo-background{transform:none}}

.home-periods .period-photo-credits{margin:18px 0;color:#506673;font-size:14px;line-height:1.6}.home-periods .period-photo-credits summary{cursor:pointer;min-height:44px;padding:10px 0;font-weight:600}.home-periods .period-photo-credits p{font-size:14px;line-height:1.7;max-width:900px}.home-periods .period-photo-credits a{font-size:14px}

.period-recognition {
  scroll-margin-top: 110px;
  padding: clamp(22px, 4vw, 48px);
  background: linear-gradient(90deg, #faf7f0f5 20%, #faf7f0ef 56%, transparent 84%),
              url('/periodo-foto-ctps.jpg') center right / cover no-repeat;
}
.recognition-copy { max-width: 59%; }
.period-recognition h4 { font: 500 clamp(25px, 3vw, 38px)/1.15 Georgia, serif; margin: 12px 0; }
.home-page .period-recognition p { color: #294254; line-height: 1.55; }
.period-recognition .recognition-action { padding: 12px 18px; border-radius: 7px; background: #006e60; color: white; text-decoration: none; align-items: center; }
.period-recognition details { margin-top: 14px; color: #344c5b; font-size: 14px; }
.period-recognition summary { cursor: pointer; padding: 8px 0; font-weight: 600; }
.period-recognition ul { padding-left: 18px; }
.period-recognition li a { display: inline; padding: 0; text-decoration: underline; }
@media (max-width: 700px) {
  .period-recognition {
    padding-top: 160px;
    background: linear-gradient(180deg, transparent 65px, #faf7f0f5 170px),
                #faf7f0 url('/periodo-foto-ctps.jpg') center 35% / cover no-repeat;
    background-position: top, center top;
    background-size: auto, 100% auto;
  }
  .recognition-copy { max-width: 100%; }
}
