/* Frame – photographer's dark room: images edge to edge, captions in small caps, nothing competes with the work. */

/* Type: one weight for every uppercase headline, so the light and heavy cut never meet at the same size. */
.e-frame .display{font-weight:700;letter-spacing:.01em}
.e-frame h2{font-weight:700;font-size:clamp(1.6rem,1rem + 2.4vw,3.2rem)}
.e-frame .page-title,.e-frame .pj-title,.e-frame .pj-card h3,.e-frame .pc-item h3,.e-frame .alt-copy h3,.e-frame .ft-row h3,.e-frame .ft-item h3,.e-frame .ft-statement,.e-frame .st-text,.e-frame .st-quote p{font-weight:700;letter-spacing:.01em}
.e-frame .eyebrow{letter-spacing:.3em}
.e-frame figcaption{font-size:.72rem;letter-spacing:.22em;text-transform:uppercase;color:var(--muted)}
.e-frame .wordmark{letter-spacing:.24em;font-size:1rem;font-weight:700}
.e-frame .nav a{font-size:.78rem;letter-spacing:.24em;text-transform:uppercase}
.e-frame .site-footer{border-top-color:transparent}
.e-frame .ft-statement{font-size:clamp(1.9rem,.4rem + 7.6vw,8rem);letter-spacing:.06em;color:color-mix(in srgb,var(--ink) 16%,var(--paper));overflow-wrap:normal;white-space:nowrap;overflow:hidden}

/* Page heads: the h1 and the first content belong together. */
.e-frame .page-head + .s,.e-frame .page-head + * > .s:first-child{padding-top:clamp(16px,3vw,40px)}

/* Buttons. The arrow style has no inline padding, so never paint a filled box behind its label. */
.e-frame .v-poster .btn-primary{background:transparent;color:#fff;border-color:transparent}
.e-frame .v-poster .btn-primary .btn-arrow{background:#fff;color:#111}
.e-frame .v-poster .btn-primary:hover .btn-arrow{background:var(--accent);color:#111}
.e-frame .ct-form button[type=submit]{padding-inline:1.7rem;min-height:52px;background:var(--ink);color:var(--paper);border:1px solid var(--ink);font:600 .78rem/1.2 var(--f-text);letter-spacing:.2em;text-transform:uppercase}
.e-frame .ct-form button[type=submit]:hover,.e-frame .ct-form button[type=submit]:focus-visible{background:var(--accent);border-color:var(--accent);color:#111}
.e-frame .pc-item .btn-primary,.e-frame .pc-item.is-featured .btn-primary{background:transparent;color:var(--ink);border-color:transparent}
.e-frame .pc-item.is-featured .btn-primary .btn-arrow{background:var(--accent);color:#111}
.e-frame .btn:hover .btn-arrow{background:var(--accent);color:#111;border-color:var(--accent)}

/* Mobile sheet: the CTA is a button, not another giant nav word. */
.e-frame .nav.is-open .nav-cta .btn,.js .e-frame .nav.is-open .nav-cta a{font:600 .8rem/1.2 var(--f-text);letter-spacing:.2em;text-transform:uppercase;white-space:normal;min-height:48px}

/* Hero: a darker top band keeps the nav legible over the brightest sky; secondary CTA is a quiet text link. */
.e-frame .v-aperture .hero-frame::after{background:linear-gradient(180deg,rgba(0,0,0,.46) 0%,rgba(0,0,0,0) 26%,rgba(0,0,0,.06) 46%,rgba(0,0,0,.74) 100%)}
.e-frame .v-aperture .btn-secondary .btn-arrow{display:none}
.e-frame .v-aperture .btn-secondary span{border-bottom:1px solid rgba(255,255,255,.55);padding-bottom:.2em;transition:border-color .25s}
.e-frame .v-aperture .btn-secondary:hover span{border-color:var(--accent)}
.e-frame .v-aperture .actions{gap:1.2rem 2.4rem;align-items:center}
.e-frame .v-aperture .hero-note{font-size:.68rem;letter-spacing:.22em;text-transform:uppercase;text-align:end;color:rgba(255,255,255,.62)}
@media (max-width:600px){
  .e-frame .v-aperture .hero-copy{padding-bottom:64px}
  .e-frame .v-aperture .hero-text{font-size:1rem;margin-top:1.1rem}
  .e-frame .v-aperture .hero-note{text-align:start;bottom:1rem}
}

/* Rail: landscapes stay landscapes. Every frame keeps its 3:2, the gap is the only spacing. */
.e-frame .rail-item,.e-frame .rail-item:nth-child(3n+2){width:clamp(280px,46vw,720px)}
.e-frame .rail-item img,.e-frame .rail-item:nth-child(3n+2) img{aspect-ratio:3/2}
.e-frame .rail-item figcaption{padding-inline-start:.1rem}
@media (min-width:901px){
  html[data-motion=cinematic] .e-frame [data-fx=rail] .rail-item,html[data-motion=cinematic] .e-frame [data-fx=rail] .rail-item:nth-child(3n+2){width:auto}
  html[data-motion=cinematic] .e-frame [data-fx=rail] .rail-item img{height:min(52vh,560px);max-height:none;width:auto;aspect-ratio:3/2}
}

/* Full-bleed: never turn a 3:2 frame into a portrait strip on phones. */
.e-frame .fb-item img{height:auto;aspect-ratio:3/2;max-height:92vh}
.e-frame .fb-list{display:grid;gap:clamp(2.4rem,5vw,4.5rem)}
.e-frame .fb-item figcaption{padding-top:.2rem}

/* Series index (Home): visible numerals, the description reads as a caption. */
.e-frame .pj-n,.e-frame .pj-year{font-size:.9rem;color:color-mix(in srgb,var(--ink) 70%,transparent)}
.e-frame .pj-desc{font-size:.95rem}
.e-frame .pj-link{transition:padding .35s cubic-bezier(.2,.7,.2,1),color .25s}
@media (hover:hover) and (pointer:fine){.e-frame a.pj-link:hover .pj-title{color:var(--accent)}}

/* Series cards: 3:2 frames for landscapes, a wide 2:1 opener every third card. */
.e-frame .pj-card .frame{aspect-ratio:3/2}
.e-frame .pj-card.is-wide .frame{aspect-ratio:2/1}
.e-frame .pj-card{display:grid;gap:1rem;align-content:start}
.e-frame .pj-card h3{font-size:clamp(1.3rem,1rem + 1.2vw,2.2rem)}
.e-frame .pj-cap .pj-meta{font-family:var(--f-mono);font-size:.78rem;letter-spacing:.08em;text-transform:uppercase}
.e-frame .pj-card.is-wide .pj-text{max-width:52ch}
@media (max-width:700px){.e-frame .pj-card .frame,.e-frame .pj-card.is-wide .frame{aspect-ratio:3/2}}

/* Mosaic captions sit tight under the frame. */
.e-frame .mosaic{row-gap:clamp(1.6rem,3vw,2.6rem)}

/* Statement on Home: a quiet line, offset into the grid instead of floating flush left. */
@media (min-width:1024px){
  .e-frame .s-statement.v-reveal .st-body{margin-inline-start:calc(100% / 12 * 3)}
  .e-frame .s-statement.v-quote .st-body{margin-inline-start:calc(100% / 12 * 2)}
}
.e-frame .st-attr,.e-frame .st-quote footer{font-size:.72rem;letter-spacing:.24em;text-transform:uppercase}

/* Story rows (About, Prints): image keeps its landscape shape, copy is a measured caption. */
.e-frame .alt-media{aspect-ratio:3/2}
.e-frame .alt-copy{max-width:34rem}
.e-frame .alt-copy h3{font-size:clamp(1.4rem,1rem + 1.6vw,2.4rem)}
.e-frame .alt-list{display:grid;gap:clamp(3rem,7vw,7rem)}

/* Pricing: no SaaS plan picker on a dark wall. Hairline cards, the featured one outlined in accent. */
.e-frame .pc-item{background:transparent;outline:1px solid var(--line);outline-offset:-1px}
.e-frame .pc-item.is-featured{background:transparent;color:var(--ink);--muted:#8d8a85;--line:color-mix(in srgb,var(--ink) 18%,var(--paper));outline-color:var(--accent)}
.e-frame .pc-item .btn{justify-self:start;margin-top:.4rem}
.e-frame .pc-price{color:var(--ink)}
.e-frame .pc-item{display:flex;flex-direction:column}
.e-frame .pc-item>.btn{margin-top:auto;align-self:flex-start}
.e-frame .pc-item ul{margin-bottom:.8rem}
/* Tablet: three narrow cards cannot hold the labels, so each size becomes a row of a price list. */
@media (min-width:700px) and (max-width:1023px){
  .e-frame .s-pricing .pc{grid-template-columns:1fr;gap:1rem}
  .e-frame .s-pricing .pc-item{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);grid-template-rows:auto auto 1fr;gap:.6rem 2.4rem}
  .e-frame .s-pricing .pc-item>h3{grid-area:1/1}
  .e-frame .s-pricing .pc-item>.pc-price{grid-area:2/1}
  .e-frame .s-pricing .pc-item>.btn{grid-area:3/1;align-self:end;margin-top:1rem}
  .e-frame .s-pricing .pc-item>p:not(.pc-price){grid-column:2;grid-row:1/3}
  .e-frame .s-pricing .pc-item>ul{grid-area:3/2;margin:.6rem 0 0}
  .e-frame .s-features .ft-grid-items{grid-template-columns:repeat(3,minmax(0,1fr));gap:1.4rem}
}

/* Contact form: styled validation, no native-only feedback. */
.e-frame .field input:user-invalid,.e-frame .field textarea:user-invalid{border-color:var(--accent)}
.e-frame .field label{font-size:.72rem;letter-spacing:.2em;text-transform:uppercase;font-weight:600;color:var(--muted)}
.e-frame .ct-list dt{font-size:.72rem;letter-spacing:.2em;text-transform:uppercase;color:var(--muted)}

/* CTA band on a surface: title scaled down so it reads as an invitation, not a second hero. */
.e-frame .s-cta.v-band .cta-title{font-size:clamp(1.9rem,1.1rem + 3vw,4rem);max-width:20ch}
.e-frame .s-cta.v-band .cta-text{max-width:46ch;color:var(--muted)}

/* One button voice: small tracked caps like the nav and captions. */
.e-frame .btn{font-size:.76rem;letter-spacing:.2em;text-transform:uppercase}
.e-frame .hd-cta .btn{font-size:.72rem}

/* Phones: hero leaves a sliver of the next section visible (scroll cue) and keeps the CTAs above the fold. */
@media (max-width:600px){
  .e-frame .v-aperture .hero-stage{min-height:max(560px,calc(100svh - 72px))}
  .e-frame .pj-link{row-gap:.3rem;grid-template-columns:2.4rem minmax(0,1fr) auto}
  .e-frame .pj-link .pj-title,.e-frame .pj-desc{grid-column:2/-1}
  .e-frame .pj-link .pj-meta{grid-column:2}
  .e-frame .pj-link .pj-year{grid-column:3;text-align:end}
  .e-frame .pj-desc{margin-top:.4rem}
}

/* Statement footer: the giant wordmark already names the studio, so the small repeat stays for screen readers only. */
.e-frame .ft-statement + .ft-grid .ft-name{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* About story: road and crater are portrait frames, so they keep their 4:5 instead of being cut to landscape. */
.e-frame #studio .alt-media{aspect-ratio:4/5}
@media (min-width:901px){
  .e-frame #studio .alt-row{grid-template-columns:minmax(0,.8fr) minmax(0,1fr)}
  .e-frame #studio .alt-row.is-flip{grid-template-columns:minmax(0,1fr) minmax(0,.8fr)}
}

/* ===== Design pass 2: "the darkroom and the wall" =====
   Work hangs on near-black; light sections are the gallery wall where prints are framed.
   Captions read like film-edge markings (mono, coordinates); the safelight orange is only a tick, never a fill. */

/* Film-edge captions: mono, tabular, the leading rule in safelight orange. */
.e-frame figcaption,.e-frame .hero-note,.e-frame .alt-meta{font-family:var(--f-mono);font-size:.7rem;letter-spacing:.14em;text-transform:uppercase;font-variant-numeric:tabular-nums}
.e-frame figcaption::before{background:var(--accent);opacity:.9}
.e-frame .alt-meta{color:var(--accent);margin-bottom:.9rem}
.e-frame .t-brand .alt-meta{color:color-mix(in srgb,var(--accent) 70%,#000)}

/* The wall: light sections (brand tone) are the gallery wall. */
.e-frame .t-brand{--line:color-mix(in srgb,var(--on-brand) 14%,var(--brand))}
.e-frame .t-brand .st-quote p,.e-frame .t-brand .st-text{color:var(--on-brand)}

/* Prints shown as prints: a cotton-white mat on the dark hero, a black frame with mat on the wall. */
.e-frame #print .hero-split-media .frame{border:clamp(14px,2.2vw,34px) solid #f3f1ec;box-shadow:0 40px 80px -40px rgba(0,0,0,.9);aspect-ratio:4/5}
.e-frame #print .hero-split-media .frame img{height:100%}
/* Phones (engine media_first): the matted print leads but stays a print on the wall, so the title and the price link still reach the first screen. */
@media (max-width:900px){.e-frame #print.is-media-first .hero-split-media .frame{width:min(100%,calc(42svh * .8))}}
.e-frame #wall .alt-media{border:clamp(16px,2.6vw,40px) solid #fbfaf7;box-shadow:0 0 0 clamp(5px,.55vw,8px) #161616,0 34px 60px -28px rgba(0,0,0,.45);margin:clamp(5px,.55vw,8px)}
.e-frame #wall .alt-row{align-items:center}

/* Typemask (Series): the title is the frame. */
.e-frame .hero-mask .mask-title{letter-spacing:.02em;max-width:none;font-size:clamp(3.4rem,1rem + 13vw,14rem)}
.e-frame .hero-mask-copy .eyebrow{font-family:var(--f-mono);letter-spacing:.14em;flex-basis:100%;margin:0}
.e-frame .hero-mask-copy .hero-text{max-width:44ch;color:var(--muted)}

/* Split hero (About, Prints): copy sits low like a wall label, the note is a film-edge line. */
@media (min-width:901px){.e-frame .hero-split{align-items:end}}
.e-frame .hero-split .hero-note{margin-top:2rem;color:var(--muted);padding-top:1rem;border-top:1px solid var(--line);max-width:30rem}
.e-frame .hero-split .btn-secondary .btn-arrow{display:none}
.e-frame .hero-split .btn-secondary span{border-bottom:1px solid color-mix(in srgb,var(--ink) 45%,transparent);padding-bottom:.2em}
.e-frame .hero-split .actions{gap:1.2rem 2.2rem;align-items:center}

/* Stats: a quiet contact-sheet strip, tabular numerals. */
.e-frame .stat dd{font-weight:700;letter-spacing:.01em}
.e-frame .stat dt{font-size:.88rem;line-height:1.5}

/* Micro-interactions: frames breathe on hover (pointer devices only, never with reduced motion). */
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
  .e-frame .pj-card .frame img,.e-frame .mosaic-item img{transition:transform 1.1s cubic-bezier(.2,.7,.2,1),filter .6s}
  .e-frame a.pj-card:hover .frame img,.e-frame .pj-card:has(a:hover) .frame img{transform:scale(1.03)}
}
/* Typemask: a wider fill shows the bright sand; the vertical position comes from the photo's focus (engine --mask-pos), the height from the engine. */
.e-frame .mask-title[style]{background-size:140% auto}
@media (max-width:700px){.e-frame .hero-mask-sticky{padding-top:110px}.e-frame .mask-title[style]{background-size:cover}}

/* ===== Design pass 3: exposure, not animation =====
   Motion behaves like light on paper: ticks expose from the inline start, frames lift a stop, nothing bounces.
   Every rule below has a static end state; with reduced motion or data-motion=off the static state is all there is. */

/* Typography: lining, tabular figures wherever numbers are compared or read as data. */
.e-frame .pc-price,.e-frame .stat dd,.e-frame .pj-n,.e-frame .pj-year,.e-frame .pj-meta,.e-frame .alt-meta,.e-frame .ct-list dd{font-variant-numeric:lining-nums tabular-nums}
.e-frame .pc-price small{font-variant-numeric:lining-nums}
.e-frame :is(h1,h2,h3,.display,.cta-title,.st-text){font-optical-sizing:auto}
.e-frame .cta-title,.e-frame .alt-copy h3,.e-frame .pj-card h3,.e-frame .pc-item h3{text-wrap:balance}
.e-frame .hero-text,.e-frame .cta-text,.e-frame .alt-copy p,.e-frame .pj-text p,.e-frame .pj-desc,.e-frame .s-intro,.e-frame .ct-text p{text-wrap:pretty}
.e-frame figcaption,.e-frame .hero-note{text-wrap:balance}

/* Nav (desktop): a safelight hairline exposes from the start of the word; the current page keeps it. */
@media (min-width:1101px){
  .e-frame .nav ul a{text-decoration:none;background:linear-gradient(var(--accent),var(--accent)) no-repeat 0 calc(50% + 1em)/0 1px}
  [dir=rtl] .e-frame .nav ul a{background-position:100% calc(50% + 1em)}
  .e-frame .nav ul a[aria-current]{background-image:linear-gradient(currentColor,currentColor);background-size:100% 1px}
  .e-frame .nav ul a:is(:hover,:focus-visible){background-size:100% 1px}
  @media (prefers-reduced-motion:no-preference){.e-frame .nav ul a{transition:color .2s,background-size .45s cubic-bezier(.2,.7,.2,1)}}
}

/* Text links beside arrow buttons: the rule warms to safelight on hover and focus, everywhere. */
.e-frame .btn-secondary span{transition:border-color .3s,color .3s}
.e-frame :is(.hero-split,.v-aperture) .btn-secondary:is(:hover,:focus-visible) span{border-color:var(--accent)}
.e-frame .btn-secondary:focus-visible .btn-arrow{border-color:var(--accent)}

/* Index rows: the number and year warm with the title, a one-stop shift instead of a jump. */
@media (hover:hover) and (pointer:fine){
  .e-frame a.pj-link :is(.pj-n,.pj-year){transition:color .3s}
  .e-frame a.pj-link:is(:hover,:focus-visible) :is(.pj-n,.pj-year){color:var(--accent)}
}
.e-frame a.pj-link:focus-visible .pj-title{color:var(--accent)}

/* Contact sheet (rail) and outtakes: a frame is "printed" one stop brighter under the loupe; its tick lengthens. */
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
  .e-frame :is(.rail-item,.mosaic-item) img{transition:filter .6s cubic-bezier(.2,.7,.2,1)}
  .e-frame :is(.rail-item,.mosaic-item):not(:hover) img{filter:var(--img-filter) brightness(.9)}
  .e-frame :is(.rail-item,.mosaic-item,.fb-item) figcaption::before{transition:flex-basis .5s cubic-bezier(.2,.7,.2,1)}
  .e-frame :is(.rail-item,.mosaic-item):hover figcaption::before{flex-basis:3rem}
  .e-frame :is(.rail-item,.mosaic-item):hover figcaption{color:var(--ink)}
}

/* Pricing: hairline cards answer the pointer; the featured outline stays the only orange box. */
@media (hover:hover) and (pointer:fine){
  .e-frame .pc-item:not(.is-featured){transition:outline-color .35s}
  .e-frame .pc-item:not(.is-featured):hover{outline-color:color-mix(in srgb,var(--ink) 42%,transparent)}
}

/* Scroll choreography: film-edge ticks expose from the inline start as the frame enters. */
@supports (animation-timeline:view()){
  @media (prefers-reduced-motion:no-preference){
    @keyframes frame-tick{from{transform:translateY(-.25em) scaleX(0)}to{transform:translateY(-.25em) scaleX(1)}}
    html:not([data-motion=off]) .e-frame figcaption::before{transform-origin:0 50%;animation:frame-tick linear both;animation-timeline:view();animation-range:entry 10% cover 30%}
    [dir=rtl] .e-frame figcaption::before{transform-origin:100% 50%}
    /* Stage meta on the wall (Step 1, 2, 3) and the hero wall label rule expose the same way. */
    @keyframes frame-rule{from{background-size:0 1px}to{background-size:100% 1px}}
    html:not([data-motion=off]) .e-frame .hero-split .hero-note{border-top-color:transparent;background:linear-gradient(var(--line),var(--line)) no-repeat 0 0/100% 1px;animation:frame-rule 1.1s .35s cubic-bezier(.2,.7,.2,1) both}
    [dir=rtl] .e-frame .hero-split .hero-note{background-position:100% 0}
  }
}

/* Home: the second full-bleed frame steps back to a print on the wall (gallery item size = print: 64 %, 3:2); frame hangs it
   on the container's end edge instead of centring it. */
@media (min-width:901px){
  .e-frame .fb-item.is-print{margin-inline-start:auto;margin-inline-end:max(var(--gutter),calc((100% - var(--container)) / 2))}
  .e-frame .fb-item.is-print figcaption{margin-inline:0}
}

/* Phones (≤600): the home index becomes a contact list (title, place, year); the long lines live on the Series page. */
@media (max-width:600px){
  .e-frame .s-projects.v-index .pj-desc{display:none}
  .e-frame .s-projects.v-index .pj-link{padding-block:1.05rem}
}

/* Phones: prices as a swipe row (pricing mobile = swipe), the next card peeks in so the row reads as a row. */
@media (max-width:700px){.e-frame .s .pc[data-mobile=swipe]{--swipe-max:420px;gap:12px}}
