/* About page: the existing site's type scale, edges, icons and controls. */
.story-page{--story-gap:clamp(88px,10vw,148px);--story-border:#ececec}
.story-wrap{width:min(calc(100% - var(--page-edge)*2),var(--content-width));margin-inline:auto}
.story-section{margin-bottom:var(--story-gap);scroll-margin-top:140px}
.story-strengths{margin-bottom:clamp(62px,6vw,88px)}
.story-page h1,.story-page h2,.story-page h3{font-weight:500;letter-spacing:-.04em}
.story-page h2{font-size:var(--type-section);line-height:1.12}
.story-page p{color:var(--ink-muted);font-size:var(--type-body);line-height:1.65}
.story-page .feature-icon{color:var(--brand-orange);background:#f7f7f7}
.story-page .button{gap:14px;min-height:48px}
.story-page .button>.ms-icon{display:block;width:20px;height:20px;flex:none}
.story-page a,.story-page button,.story-panel{scroll-margin-block:132px 28px}
.story-hero-accent{color:var(--brand-orange)}
.story-skip{position:fixed;z-index:1000;top:8px;left:16px;padding:12px 20px;border-radius:12px;background:#fff;color:#111;transform:translateY(-160%)}
.story-skip:focus{transform:translateY(0);outline:2px solid var(--brand-orange)}

.story-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.08fr);align-items:center;gap:clamp(36px,5vw,80px);padding-block:clamp(40px,5vw,72px);margin-bottom:clamp(52px,6vw,88px)}
.story-hero h1{font-size:var(--type-display);line-height:1.06;letter-spacing:-.055em;margin-top:24px}
.story-hero .story-hero-lead{font-size:var(--type-body);line-height:1.65;color:#191919;margin-top:26px;max-width:36ch}
.story-hero-description{margin-top:14px;max-width:43ch}
.story-hero-action{margin-top:30px}
.story-hero-location{display:flex;align-items:center;gap:8px;margin-top:24px;font-size:var(--type-support);color:var(--ink-muted)}
.story-hero-location .ms-icon{color:var(--brand-orange);width:20px;height:20px;flex:none}
.story-hero-visual{position:relative;min-width:0;padding-bottom:64px;transform:perspective(1100px) rotateX(0) rotateY(0);transform-style:preserve-3d;transition:transform .38s var(--motion-ease);will-change:transform}
.story-hero-photo{position:relative;height:clamp(400px,35vw,500px);margin:0 0 0 14%;border-radius:20px;overflow:hidden;background:#f4f4f4;transition:box-shadow .38s var(--motion-ease)}
.story-hero-photo img{width:100%;height:100%;object-fit:cover;object-position:50% 68%}
.story-hero-photo-secondary{position:absolute;left:0;bottom:0;width:47%;aspect-ratio:1/1.08;margin:0;border:7px solid #fff;border-radius:20px;overflow:hidden;background:#f4f4f4;box-shadow:0 12px 28px rgba(0,0,0,.08)}
.story-hero-photo-secondary img{width:100%;height:100%;object-fit:cover}
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){.story-hero-visual.is-hovered{transform:perspective(1100px) rotateX(var(--story-tilt-x,0deg)) rotateY(var(--story-tilt-y,0deg))}.story-hero-visual.is-hovered .story-hero-photo{box-shadow:0 22px 42px rgba(22,28,24,.18)}}
.story-experience{position:absolute;right:-28px;bottom:0;display:flex;align-items:center;gap:12px;width:calc(53% - 16px);padding:20px 16px;background:#fff;border:1px solid var(--story-border);border-radius:16px;box-shadow:0 8px 24px rgba(0,0,0,.06)}
.story-experience .feature-icon{width:42px;height:42px;flex:none}
.story-experience .feature-icon .ms-icon{width:22px;height:22px}
.story-experience p{display:grid;gap:3px;line-height:1.35}
.story-experience strong{line-height:1.1;letter-spacing:-.04em;font-weight:500;color:#111}
.story-experience p>span{max-width:17ch}

.story-section-heading{text-align:center;max-width:690px;margin:0 auto 34px}
.story-section-heading h2{margin-top:20px}
.story-section-heading p{margin:20px auto 0;max-width:52ch}
.story-tabs{display:flex;justify-content:center;gap:8px;margin:0 auto 30px}
.story-tabs[hidden]{display:none}
.story-tabs button{min-height:44px;padding:10px 24px;border:1px solid var(--story-border);border-radius:999px;background:#fff;color:#555;font-size:14px;font-weight:500;transition:background-color .2s ease,color .2s ease,border-color .2s ease}
.story-tabs button[aria-selected="true"]{background:#050505;border-color:#050505;color:#fff}
.story-tabs button:focus-visible,.story-panel:focus-visible{outline:2px solid var(--brand-orange);outline-offset:4px}
.story-panel{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.15fr);border:1px solid var(--story-border);border-radius:20px;overflow:hidden;background:#fff;margin-bottom:24px}
.story-panel-photo{min-height:470px;background:#f6f6f6;position:relative}
.story-panel-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.story-panel-copy{align-self:center;padding:clamp(28px,3.7vw,54px)}
.story-panel h3{font-size:var(--type-section-small);line-height:1.16;margin-top:24px}
.story-panel p{margin-top:20px;max-width:54ch}
.story-panel .text-link{margin-top:24px;min-height:44px;align-items:center;padding-bottom:4px}
/* All panels share a grid cell, reserving the tallest one's size without jumps. */
.story-identity-content.is-enhanced .story-panels{display:grid}
.story-identity-content.is-enhanced .story-panel{grid-area:1/1;margin:0;transition:opacity .22s ease,transform .28s var(--motion-ease),visibility .28s;opacity:1;transform:translateY(0)}
.story-identity-content.is-enhanced .story-panel[aria-hidden="true"]{visibility:hidden;opacity:0;transform:translateY(8px);pointer-events:none}
.story-identity-content.is-keyboard .story-panel{transition:none}

.story-strengths-heading{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.65fr);align-items:end;gap:48px;margin-bottom:40px}
.story-strengths-heading h2{margin-top:20px}
.story-strengths-heading>p{max-width:42ch;margin-bottom:3px}
.story-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.story-values article{padding:28px;border:1px solid var(--story-border);border-radius:18px;background:#fff;min-width:0}
.story-values h3{font-size:var(--type-card);font-weight:600;line-height:1.3;letter-spacing:-.025em;margin-top:24px}
.story-values p{margin-top:12px;font-size:15px;line-height:1.6}

.story-close{position:relative;isolation:isolate;overflow:hidden;padding:clamp(70px,7vw,100px) 0 clamp(190px,18vw,260px);background-color:#fff;background-image:linear-gradient(180deg,#fff 0%,#fff8f4 48%,#ffebe3 100%);background-size:100% 100%;background-position:center bottom;background-repeat:no-repeat}
.story-close-inner{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;text-align:center}
.story-mountain{width:126px;height:54px;background:var(--brand-orange);-webkit-mask:url('assets/cerro-portones.png') center/contain no-repeat;mask:url('assets/cerro-portones.png') center/contain no-repeat;margin-bottom:24px}
.story-close h2{margin-top:22px;font-size:clamp(38px,4vw,58px);letter-spacing:-.045em}
.story-close p{max-width:57ch;margin-top:24px}
.story-close-action{margin-top:30px}
.story-clouds{position:absolute;z-index:0;left:50%;bottom:-10px;width:max(100%,1200px);max-width:none;height:auto;transform:translateX(-50%);pointer-events:none;user-select:none;opacity:.92}

@media(hover:hover) and (pointer:fine){
  .story-tabs button:not([aria-selected="true"]):hover{border-color:#d3d3d3;background:#f7f7f7;color:#111}
}
@media(max-width:1100px){
  .story-hero{gap:32px}
  .story-experience{padding:16px 12px;gap:10px;width:calc(53% - 12px)}
  .story-experience .feature-icon{width:34px;height:34px}
  .story-panel-copy{padding:32px}
  .story-panel h3{font-size:30px}
  .story-values{gap:16px}
  .story-values article{padding:24px}
}
@media(max-width:800px){
  .story-hero{grid-template-columns:1fr;gap:40px;padding-top:40px;margin-bottom:48px}
  .story-hero-copy{max-width:640px}
  .story-hero-description{max-width:50ch}
  .story-hero-visual{width:100%;max-width:600px;justify-self:center}
  .story-experience{right:-12px}
  .story-hero-photo{height:440px}
  .story-hero-photo img{object-position:50% 75%}
  .story-panel{grid-template-columns:1fr}
  .story-panel-copy{grid-row:1;padding:32px}
  .story-panel-photo{min-height:0;height:310px}
  .story-strengths-heading{grid-template-columns:1fr;gap:20px}
  .story-strengths-heading>p{max-width:56ch}
  .story-values{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){
  .story-hero h1{font-size:clamp(38px,10vw,48px)}
  .story-hero .story-hero-lead,.story-hero .story-hero-description{font-size:15px}
}
@media(max-width:480px){
  .story-page{--story-gap:82px}
  .story-hero{padding-top:28px;gap:30px}
  .story-hero h1{margin-top:20px}
  .story-hero-location{margin-top:24px}
  .story-hero-action .button{width:100%}
  .story-hero-visual{padding-bottom:66px}
  .story-hero-photo{height:320px;border-radius:16px;margin-left:10%}
  .story-hero-photo-secondary{width:46%;border-width:5px;border-radius:16px}
  .story-experience{width:calc(54% - 10px);border-radius:14px;padding:14px 12px;gap:8px}
  .story-experience .feature-icon{width:28px;height:28px}
  .story-experience .feature-icon .ms-icon{width:18px;height:18px}
  .story-page h2{font-size:32px}
  .story-section-heading{margin-bottom:28px}
  .story-section-heading p{font-size:15px}
  .story-tabs{gap:6px;margin-bottom:20px}
  .story-tabs button{flex:1;padding:10px 8px;font-size:13px;white-space:nowrap}
  .story-panel{border-radius:16px}
  .story-panel-copy{padding:26px 22px}
  .story-panel h3{font-size:28px;line-height:1.2}
  .story-panel p{font-size:15px;margin-top:16px}
  .story-panel-photo{height:260px}
  .story-values{grid-template-columns:1fr;gap:14px}
  .story-values article{display:grid;grid-template-columns:42px minmax(0,1fr);column-gap:16px;padding:24px}
  .story-values article>.feature-icon{grid-row:1/3}
  .story-values h3{margin-top:0;font-size:18px}
  .story-values p{grid-column:2;margin-top:8px}
  .story-close{padding-top:10px;padding-bottom:190px}
  .story-close h2{font-size:36px}
  .story-close p{font-size:15px}
  .story-close-action{align-self:stretch}
  .story-close-action .button{width:100%}
  .story-clouds{width:900px}
}

.story-values article{transition:transform .28s var(--motion-ease),box-shadow .28s var(--motion-ease),border-color .2s ease}
@media(hover:hover){.story-values article:hover{transform:translateY(-3px);box-shadow:0 12px 28px rgba(0,0,0,.07)}}
