/* Wasatch / Contour. Soft photographic frames, precise type, considered motion.
   This presentation layer leaves original models, source media and Wix intact. */
:root {
  --frame-gap:clamp(10px,1.3vw,24px);
  --curve-small:clamp(20px,2.2vw,36px);
  --curve-large:clamp(54px,6.4vw,112px);
  --media-radius:24px;
  --craft-ease:cubic-bezier(.22,1,.36,1);
}

/* A floating frame without changing the header height used by the camera. */
.site-header{background:transparent;border-bottom:0;isolation:isolate}
.site-header::before {
  content:"";position:absolute;inset:8px var(--frame-gap);z-index:-1;
  border:1px solid #173f351a;border-radius:18px;background:var(--paper);
  box-shadow:0 5px 24px #102d2708;
}
.site-header nav>a:not(.button){position:relative}
.site-header nav>a:not(.button)::after {
  content:"";position:absolute;bottom:6px;left:0;width:100%;height:1px;
  background:currentColor;transform:scaleX(0);transform-origin:right;
  transition:transform .45s var(--craft-ease);
}
.site-header nav>a:not(.button):hover::after,
.site-header nav>a:not(.button):focus-visible::after{transform:scaleX(1);transform-origin:left}
.expertise-panel{border-radius:20px;overflow:visible;border:1px solid #b8c2a538}
.expertise-panel a{transition:color .2s,padding .4s var(--craft-ease)}
.expertise-panel a:hover{padding-left:7px}

/* Hero geometry stays sticky; only its visible stage is clipped. */
.arrival{padding-inline:var(--frame-gap);background:var(--paper)}
.arrival-stage {
  height:calc(100svh - var(--arrival-header) - var(--frame-gap));
  border-radius:32px 32px 72px 32px;
  background:var(--deep);
}
.arrival-note {
  margin:0 var(--gutter);padding:24px 0;background:var(--paper);color:var(--muted);
  border-bottom:1px solid var(--line);font-size:9px;
}
.arrival-note>span{color:var(--forest)}
.arrival-note a{color:var(--forest);border-bottom-color:var(--line)}
.arrival-actions button{border-radius:30px;padding:8px 15px;background:#f3f0e812;border:1px solid #f3f0e84a}
.arrival-actions button:hover{background:#f3f0e827}
.arrival-console{bottom:27px}
.arrival-chapter{font-size:10px}
.cinema-dialog{border-radius:24px;overflow:hidden}
.cinema-bar button{border-radius:30px}

/* A family of curves, with captions and useful image evidence left readable. */
.project-feature>img,
.project-index-list>article img,
.case-gallery>figure>img,
.custom-diptych img,
.specialty-pair>figure>img,
.material-primary img,
.about-teaser>figure>img,
.about-portrait img,
.evidence>figure>img,
.horizontal-story img,
.photo-sequence img,
.elevator-evidence img,
.detail-gallery img {
  border-radius:var(--curve-small) var(--curve-large) var(--curve-small) var(--curve-small);
}
.project-offset>img,
.project-index-list>article:nth-child(even) img,
.case-gallery>figure:nth-child(even)>img,
.custom-diptych>figure:nth-child(2) img,
.specialty-pair>figure:nth-child(2)>img {
  border-radius:var(--curve-large) var(--curve-small) var(--curve-small) var(--curve-small);
}
.editorial-page .full-photo,
.editorial-page .case-hero,
.editorial-page .about-hero{border-radius:32px var(--curve-large) 32px 32px}
.ed-historic .historic-hero figure>img{border-radius:24px}
.ed-site .site-hero>img{border-radius:32px var(--curve-large) 32px 32px}
.ed-elevator .elevator-hero>figure>img{border-radius:var(--curve-large) 28px 28px 28px}
.ed-development .development-hero>figure{margin:22px 22px 22px 0;overflow:hidden;border-radius:28px 74px 28px 28px}
.ed-development .development-hero{border-radius:32px;margin:0 var(--frame-gap);overflow:clip}
.ed-elevator .elevator-hero{border-radius:32px;margin:0 var(--frame-gap)}
.contact-address>img{border-radius:24px 70px 24px 24px}
.image-note,.since,.about-est{border-radius:12px 28px 12px 12px}
.since{border:1px solid #b8c2a54d}
.filter-bar>button{border-radius:30px;transition:background .25s,color .25s,border-color .25s}
.ed-chapter-nav a>span{transition:transform .4s var(--craft-ease)}
.ed-chapter-nav a:hover>span{transform:translateY(3px)}

/* Inset film/preservation chapters give the page a more spatial rhythm. */
.immersive-home .preservation-story,
.process-window,
.immersive-home .film-band {
  margin-inline:var(--frame-gap);border-radius:32px 72px 32px 32px;
}
.immersive-home .preservation-story{overflow:clip}
.immersive-home .preservation-story>figure>img{border-radius:30px 0 0 30px}
.process-window{margin-top:32px;padding:48px;gap:0;border-radius:72px 32px 32px 32px}
.process-window-media{border-radius:32px;isolation:isolate}
.process-window-copy{padding:48px 9% 24px 13%}
.process-window-copy .text-link{margin-top:35px}
.process-window-media::after {
  content:"";position:absolute;inset:0;pointer-events:none;border:1px solid #f3f0e81f;
  border-radius:inherit;
}
.immersive-home .film-band{overflow:clip;margin-block-end:clamp(16px,2vw,28px)}
.immersive-home .film-heading{padding:60px 12%}
.immersive-home .film-player{border-radius:28px 68px 28px 28px;isolation:isolate}
.ambient-toggle {border-radius:14px;min-height:48px;transition:background .3s,color .3s}
.immersive-home .film-play{border-radius:14px;width:auto;height:auto}
.field-film-frame{border-radius:28px;overflow:hidden}
.field-film-frame>video{border-radius:28px}
.sandridge-stage,.king-viewport{border-radius:26px}
.material-study img{border-radius:22px;background:#e2dfd559;border:1px solid #173f351a}

/* Original stepped crop: used once, where it can add depth without cutting
   through a face, historical evidence, caption or native movie controls. */
@supports (mask-image:url('/assets/wasatch-media-profile.svg')) {
  @media(min-width:1000px) {
    .process-window-media {
      -webkit-mask-image:url('/assets/wasatch-media-profile.svg');
      mask-image:url('/assets/wasatch-media-profile.svg');
      -webkit-mask-size:100% 100%;mask-size:100% 100%;
      -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
      border-radius:0;
    }
    .process-window-media::after{display:none}
  }
}

/* Small interactions use the same restrained acceleration as the text. */
.button {border-radius:13px;transition:background .3s,color .3s,transform .4s var(--craft-ease),box-shadow .4s}
.button:hover{transform:translateY(-2px);box-shadow:0 8px 22px #102d2712}
.text-link,.arrival-link{position:relative}
.text-link::after,.arrival-link::after {
  content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;
  background:currentColor;transform:scaleX(0);transform-origin:right;
  transition:transform .5s var(--craft-ease);
}
.text-link:hover::after,.arrival-link:hover::after,
.text-link:focus-visible::after,.arrival-link:focus-visible::after{transform:scaleX(1);transform-origin:left}
.project-meta b,.project-index-list>article b {
  transition:transform .5s var(--craft-ease),background .3s,color .3s;
  width:42px;height:42px;border:1px solid #173f353b;border-radius:50%;
  display:grid;place-items:center;font-size:22px;
}
.project-feature:hover .project-meta b,.project-index-list>article>a:hover b{transform:rotate(45deg);background:var(--forest);color:var(--paper)}
.project-feature:hover>img,.ed-projects .project-index-list>article>a:hover img{filter:brightness(.98)}
.ed-projects .project-index-list>article>a>div{grid-template-columns:1fr 42px}
.expertise-list>a{border-radius:16px;transition:padding .4s var(--craft-ease),background .4s}
.expertise-list>a>b{transition:transform .4s var(--craft-ease)}
.expertise-list>a:hover>b{transform:translate(4px,-4px)}
.expertise-preview-frame{position:relative;aspect-ratio:4/3;overflow:hidden;background:var(--stone);border-radius:var(--curve-large) 28px 28px 28px}
.expertise-preview-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center}
.expertise-preview-caption{padding-top:24px;display:grid;grid-template-columns:1fr auto;gap:12px 24px;align-items:start}
.expertise-preview-number{font:9px/1.6 var(--mono);letter-spacing:.08em;grid-column:2;grid-row:1;color:var(--muted)}
.expertise-preview-title{font-size:28px;line-height:1.2;letter-spacing:-.04em;grid-column:1;grid-row:1;max-width:15ch}
.expertise-preview-note{font:9px/1.8 var(--mono);color:var(--muted);grid-column:1/-1}
@media(min-width:1100px) and (pointer:fine) {
  .has-expertise-explorer .expertise-explorer{display:grid;grid-template-columns:.86fr 1.14fr;gap:7%;align-items:start}
  .has-expertise-explorer .expertise-preview{position:sticky;top:130px}
  .immersive-home .has-expertise-explorer .expertise-list>a{grid-template-columns:30px 1fr 30px;gap:8px 20px;padding:24px 0;border-radius:0}
  .has-expertise-explorer .expertise-list>a>.mono{grid-column:1;grid-row:1/3;align-self:start;margin-top:7px}
  .has-expertise-explorer .expertise-list>a>h3{grid-column:2;grid-row:1;font-size:clamp(27px,2.4vw,38px);max-width:none;line-height:1.2}
  .has-expertise-explorer .expertise-list>a>p{grid-column:2;grid-row:2;max-width:38ch;font-size:12px;line-height:1.7}
  .has-expertise-explorer .expertise-list>a>b{grid-column:3;grid-row:1/3;font-size:24px}
  .immersive-home .has-expertise-explorer .expertise-list>a:hover,
  .immersive-home .has-expertise-explorer .expertise-list>a:focus-visible,
  .has-expertise-explorer .expertise-list>a.expertise-active{padding-left:15px;padding-right:12px;background:#e2dfd561}
  .has-expertise-explorer .expertise-list>a.expertise-active>h3{color:var(--deep)}
}
.faq details summary>span{transition:transform .4s var(--craft-ease)}
.closing {margin-inline:var(--frame-gap);border-radius:56px 56px 0 0;padding-top:100px;position:relative;z-index:1}
.immersive-home .closing{margin-inline:0}
.ed-about #contact.closing{margin-inline:0;border-radius:0}
.site-footer{margin-top:-1px}
.footer-model-notice{max-width:66ch;margin:0 0 16px;font-size:13px;line-height:1.6;color:#c4cec0}

/* Progressive text enhancement: no JS and reduced-motion content is visible. */
.motion-word{display:inline-block;overflow:clip;padding:.02em .035em .17em;margin:-.02em -.035em -.17em;vertical-align:top}
.motion-ink{display:inline-block;transform-origin:50% 100%}
[data-motion-state],.is-reading{word-spacing:.035em}
.read-word {
  /* Give tightly tracked final letters room inside the gradient paint area. */
  padding-inline-end:.1em;margin-inline-end:-.1em;
  color:var(--forest);background:linear-gradient(90deg,var(--forest) 0%,var(--forest) var(--read-fill,100%),var(--muted) var(--read-fill,100%),var(--muted) 100%);
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
}
.motion-picture{object-position:calc(50% + var(--media-drift-x,0px)) calc(50% + var(--media-drift-y,0px))}

@media(min-width:1700px){.process-window{padding:65px}.arrival-stage{border-radius:38px 38px 94px 38px}}
@media(min-width:761px) and (max-width:1100px){
  .process-window{padding:32px}.process-window-copy{padding:32px 6% 25px 10%}
  .site-header::before{border-radius:16px}
}
@media(max-width:760px) {
  :root{--curve-small:22px;--curve-large:54px;--media-radius:22px}
  .site-header::before{inset:7px 10px;border-radius:14px}
  .site-header nav>a:not(.button)::after{display:none}
  .expertise-panel{border-radius:0;border:0}
  .arrival-stage{border-radius:24px 24px 46px 24px;height:calc(100svh - 86px)}
  .arrival-copy{left:20px;right:20px;bottom:157px}
  .arrival-copy h1{font-size:clamp(50px,15.4vw,78px)}
  .arrival-inside{left:20px;right:20px}
  .arrival-console{left:20px;right:20px;bottom:22px}
  .arrival-actions{gap:8px}.arrival-actions button{padding:8px 10px;gap:9px;font-size:9px}
  .arrival-actions a{font-size:9px;gap:8px}
  .arrival-chapter{font-size:9px}
  .arrival-note{margin-inline:22px;padding-block:20px;gap:9px;font-size:8px}
  .arrival-note p{font-size:8px}
  .arrival-link{min-height:42px;align-items:center}
  .spatial-manifesto h2{font-size:clamp(44px,14vw,55px)}
  .spatial-manifesto h2 br{display:initial}
  .immersive-home .preservation-story,.process-window,.immersive-home .film-band{border-radius:26px;margin-inline:10px}
  .immersive-home .preservation-story>figure>img{border-radius:26px 26px 0 0}
  .process-window{margin-top:20px;padding:14px}
  .process-window-media{width:100%;border-radius:22px}
  .process-window-copy{padding:38px 10px 24px}
  .process-window-copy h2{font-size:clamp(40px,11.4vw,49px)}
  .process-window-copy .text-link{margin-top:25px}
  .ambient-toggle{left:12px;right:12px;bottom:12px;border-radius:12px}
  .immersive-home .film-heading{padding:38px 24px}
  .immersive-home .film-player{border-radius:22px}
  .immersive-home .film-play{left:14px;bottom:14px;padding:13px 16px}
  .field-film-frame,.field-film-frame>video{border-radius:22px}
  .ed-development .development-hero{border-radius:24px}
  .ed-development .development-hero>figure{margin:0 14px 14px;border-radius:22px 46px 22px 22px}
  .ed-elevator .elevator-hero{border-radius:24px}
  .editorial-page .full-photo,.editorial-page .case-hero,.editorial-page .about-hero{border-radius:22px 54px 22px 22px}
  .ed-historic .historic-hero figure>img{border-radius:22px}
  .ed-site .site-hero>img{border-radius:22px 54px 22px 22px}
  .project-meta b,.project-index-list>article b{width:35px;height:35px;font-size:19px}
  .project-meta{padding-right:42px}
  .project-index-list>article>a>div{padding-right:10px}
  .ed-projects .project-index-list>article>a>div{grid-template-columns:1fr 35px}
  .since{border-radius:12px 25px 12px 12px}
  .closing{border-radius:32px 32px 0 0;padding-top:64px;margin-inline:10px}
  .button:hover{transform:none;box-shadow:none}
}
@media(max-height:620px){.arrival-stage{min-height:0}}
@media(prefers-reduced-motion:reduce){
  .motion-ink,.motion-picture{transform:none!important;clip-path:none!important}
  .read-word{background:none;-webkit-text-fill-color:currentColor;color:var(--forest)}
  .motion-picture{object-position:50% 50%}
}
html.motion-off .motion-ink,html.motion-off .motion-picture{transform:none!important;clip-path:none!important}
html.motion-off .read-word{background:none;-webkit-text-fill-color:currentColor;color:var(--forest)}
html.motion-off .motion-picture{object-position:50% 50%}
@media(forced-colors:active){.read-word{background:none;-webkit-text-fill-color:CanvasText;color:CanvasText}.site-header::before{background:Canvas;border-color:CanvasText}}

/* Logo fit: keep breathing room inside the floating navigation surface. */
.site-header .brand>.actual-logo{width:160px;height:auto}
@media(max-width:760px){.site-header .brand>.actual-logo{width:130px}}

/* The same line icons on desktop and mobile, without platform emoji glyphs. */
span.site-icon{
  display:inline-block;width:1em;height:1em;flex:none;vertical-align:-.13em;
  background:currentColor;
  -webkit-mask:var(--site-icon) center / contain no-repeat;
  mask:var(--site-icon) center / contain no-repeat;
}
.button:hover span.site-icon,.text-link:hover span.site-icon{transform:none}
.site-icon--northeast{
  --site-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4.5 15.5l11-11m-9 0h9v9' fill='none' stroke='black' stroke-width='1.5'/%3E%3C/svg%3E");
}
.site-icon--down,.site-icon--up,.site-icon--left{
  --site-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 3v14m-5-5 5 5 5-5' fill='none' stroke='black' stroke-width='1.5'/%3E%3C/svg%3E");
}
.site-icon--up{rotate:180deg}
.site-icon--left{rotate:90deg}
.site-icon--reset{
  --site-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 4v5h5M4 9a6 6 0 1 1 1 5' fill='none' stroke='black' stroke-width='1.5'/%3E%3C/svg%3E");
}
.site-icon--play{
  --site-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 3.5 16 10 6 16.5Z'/%3E%3C/svg%3E");
}
.site-icon--pause{
  --site-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7 4v12m6-12v12' stroke='black' stroke-width='2'/%3E%3C/svg%3E");
}

.footer-policies{display:flex;flex-wrap:wrap;gap:.65rem 1.5rem;margin-block:1.5rem;color:var(--paper);font-size:.875rem}
.footer-policies a,.policy-copy a,.inquiry-privacy a{text-decoration:underline;text-underline-offset:.2em}
.policy-page{padding-block:clamp(48px,7vw,108px)}
.policy-page h1{font-size:clamp(42px,7vw,92px)}
.policy-date{margin-top:1rem;color:var(--muted)}
.policy-copy{max-width:70ch;margin-top:clamp(32px,5vw,64px);overflow-wrap:anywhere}
.policy-copy h2{font-size:clamp(23px,3.5vw,34px);margin:2rem 0 .7rem}
.inquiry-privacy{margin-top:1.25rem;font-size:.875rem}

/* Compact vertical rhythm for phones. */
@media (max-width:760px) {
  .editorial-page{--ed-space:54px}
  .editorial-page .page-intro{padding-block:36px 29px}
  .editorial-page .page-intro .eyebrow{margin-bottom:25px}
  .editorial-page .intro-copy{margin-top:26px;padding-top:16px}
  .ed-collection .case-title{padding-block:24px 32px}
  .ed-collection .case-title>.back-link{margin-bottom:32px}
  .ed-collection .collection-intro,.editorial-page .manifesto,.editorial-page .split-text,
  .ed-custom .evidence,.ed-development .scope-grid,.ed-site .site-capabilities,
  .ed-site .service-bridge,.ed-elevator .elevator-evidence,.ed-about .about-portrait{
    padding-block:50px;row-gap:26px
  }
  .ed-process{padding-block:46px!important}
  .ed-process>h2{margin-bottom:29px}
  .ed-process ol>li{padding-block:21px!important}
  .ed-collection .case-gallery{row-gap:30px;padding-bottom:48px}
  .ed-collection .case-next{padding-block:36px 46px}
  .ed-projects .project-index-list{row-gap:34px}
  .ed-projects .project-index-list>article>a>div{padding-block:16px 19px}
  .ed-projects .filter-bar{margin-bottom:25px;padding-bottom:19px}
  .ed-contact .contact-address{padding-block:38px 34px}
  .ed-contact .contact-address h1{margin-top:34px}
  .ed-contact .form-panel{padding-block:42px 48px}
  .ed-contact .form-panel>form{margin-top:27px}
  .ed-contact #form-fields{row-gap:21px}
  .immersive-home .spatial-manifesto{padding-block:56px 52px}
  .immersive-home .spatial-manifesto .eyebrow{margin-bottom:28px}
  .immersive-home .selected-work,.immersive-home .material-story{padding-bottom:54px}
  .immersive-home .expertise,.immersive-home .about-teaser,.faq{padding-block:53px}
  .immersive-home .about-teaser{row-gap:40px}
  .sandridge-explorer{padding-top:49px;padding-bottom:34px}
  .field-film{padding-bottom:52px;row-gap:24px}
  #contact.closing{padding-block:48px}
  #contact.closing>.button{margin-top:25px;margin-bottom:0}
  .site-footer{padding-top:34px}
  .footer-top{row-gap:19px;padding-bottom:27px}
  .footer-links{row-gap:25px;padding-block:27px}
}

/* Join the closing panel directly to the footer. */
#contact.closing{margin-inline:0;margin-block-end:0;border-bottom:0}
#contact.closing + .site-footer{margin-block-start:0}
