{"version":3,"file":"shared-lib.DngPkmyT.mjs","names":["CSS","useState","useRef"],"sources":["https:/framerusercontent.com/modules/twY3caGLYOkq4WIP3GvG/qHu6cvUrvDXn5Agy7gRg/SiteFooter.js","https:/framerusercontent.com/modules/rtHaToc8Sq4cPkb19yCV/XggUaQ8YwhYEJvGVYL9u/SiteHeader.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";// ---------------------------------------------------------------------------\n// adam.film — the site footer. Same on every page.\n//\n// The mark here is the A/R monogram, not the wordmark — Adam confirmed 22 Aug,\n// following variants-v163. It is already uploaded and its asset URL is the\n// default below, so every instance draws it with nothing to click. The Mark\n// control stays as a per-page override.\n//\n// Same mask technique as the header, same reason — one file, any color, no\n// baked-in fill.\n//\n// THE CATEGORY URL IS `/two-campaigns`, NOT `/on-set`. Runbook §18c-ii settled\n// this and named SiteHeader, but this file had the same wrong default and was\n// never listed. Both fixed 26 Aug. The prop keeps the name onsetLink for\n// continuity; only the value changed.\n//\n// /licensing EXISTS. This comment used to say it did not and called it \"the\n// last thing standing between here and a site with no broken links.\" The page\n// was built; the note was never updated. Corrected 27 Aug.\n//\n// ---------------------------------------------------------------------------\n// INSTAGRAM AND LINKEDIN. REAL URLS, GIVEN BY ADAM 27 AUG.\n//\n// Both props used to default to \"#\", and \"#\" is not a placeholder — it is a\n// live link that scrolls the visitor to the top of the page. Those two rows\n// sat in the footer of all eight pages looking exactly like working links and\n// did nothing. On a phone that is worse than on desktop: a tap, a jolt to the\n// top, and no way to tell whether the site is broken or the finger missed.\n//\n// THE URLS ARE CONSTANTS, NOT DEFAULTS, AND THAT IS DELIBERATE. Changing the\n// defaultProps alone did not fix the live site: every SiteFooter instance on\n// the canvas carries its own \"#\" typed into the panel, and a per-instance\n// override beats a component default. Verified on the published page after\n// the defaults were changed — both rows were still missing on all eight pages.\n//\n// Rather than hand-clear sixteen fields across eight instances, `resolve()`\n// treats \"#\" and \"\" as \"nothing was set\" and falls through to the constant.\n// That is the same pattern WORDMARK and MONOGRAM already use in this codebase:\n// the real asset lives in the file, and the control is an override for the odd\n// page that needs a different one.\n//\n// TO CHANGE EITHER URL: edit the constant below. Typing a real URL into the\n// panel still wins, because only \"#\" and empty fall through.\n//\n// TO REMOVE A ROW ENTIRELY: set its constant to \"\". `social()` renders nothing\n// when there is nowhere to go, so the row disappears rather than shipping\n// another dead link.\n// ---------------------------------------------------------------------------\n//\n// FOOTER LINKS ON A PHONE, 27 AUG. The link column is five stacked 13px rows.\n// At desktop that is a tidy list; on a phone each row was about 19px tall on a\n// 25px pitch, so the gap between \"Contact\" and \"Licensing\" was smaller than a\n// fingertip. Below 820px the rows carry vertical padding instead of a bottom\n// margin, which takes them to roughly 37px without moving anything visually —\n// the text sits where it sat, the space around it is just now part of the\n// link. The bottom row (COLOR THROUGH / copyright) is left alone: it is one\n// inline link inside a sentence and padding there would break the line.\n// ---------------------------------------------------------------------------\n//\n// NO BAND AND NO HAIRLINE UNDER A CREAM PAGE, 23 SEP.\n//\n// The footer opens with `margin-top:20px` and a 1px `border-top`. Under a dark\n// page that is right: dark meets dark and the hairline is the only thing\n// separating content from footer. Under a CREAM block it is wrong twice over.\n// The 20px is page background, which on this site is #151516, so it paints a\n// thin black stripe between the cream and the footer; and the hairline then\n// sits on top of it as a second divider after a colour change that already\n// divided. The design system's own rule: after a full-bleed colour change, do\n// not also draw a line.\n//\n// This is a regression from the port, not a new decision. The comp had it\n// right: `.sb .close + footer{margin-top:0;border-top:0}`, and on its cream\n// pages the body background was cream, so the 20px margin was cream and the\n// dark hairline disappeared against the black footer. Framer's page\n// background is dark everywhere, which exposed both.\n//\n// Measured 23 Sep at 390px, four pages end on cream and all four showed the\n// stripe: Home (.afhb .close), About (.afab), Contact (.afcon) and Licensing\n// (.aflic). Two campaigns, Work, project pages and 404 end dark and keep the\n// margin and the hairline. The four are listed by their component root rather\n// than by layer name, so renaming a layer cannot break it — but IF A PAGE\n// CHANGES WHAT IT ENDS ON, THIS LIST HAS TO CHANGE WITH IT.\n//\n// TWO COLUMNS OF LINKS ON A PHONE, 23 SEP. The three footer groups used to\n// stack into one column under 820px: mark, then five site links, then three\n// contact links, 592px of footer on a 390px phone. The brand block now spans\n// the full width and the two link groups sit side by side below it, which is\n// how the footer reads on desktop and cuts it to 458px. At 320px the columns\n// are 138px each; \"Two campaigns\" at 13px is about 95px, so nothing wraps.\n// ---------------------------------------------------------------------------\nconst MONOGRAM=\"https://framerusercontent.com/assets/Ndo6uKID2Y4USzV9DKpu41McLOE.svg\";const INSTAGRAM=\"https://www.instagram.com/adamreign\";const LINKEDIN=\"https://www.linkedin.com/in/adamreign305/\";// CSS IS RENDERED INLINE, NOT INJECTED, 7 OCT. It used to be added to <head>\n// from a useEffect, and an effect only runs after the page has painted, so\n// every page load showed the bare HTML for a split second: blue underlined\n// links, grey default buttons, gallery frame numbers as bubbles. Adam saw it\n// on every page change. A <style> rendered as the first child of the root is\n// in Framer's server HTML, ahead of the markup it styles, so it is there on\n// the first paint. dangerouslySetInnerHTML, never {CSS} as a child: React\n// escapes text, which would turn every `>` combinator into &gt;.\nconst CSS=`\n.affoot{width:100%;padding:42px 0 30px;font-size:13px;font-weight:300;line-height:1.5;color:#8a8d80;border-top:1px solid #262723;margin-top:20px;font-family:Poppins,-apple-system,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased}\nbody:has(.afhb .close) .affoot,body:has(.afab) .affoot,body:has(.afcon) .affoot,body:has(.aflic) .affoot{margin-top:0;border-top:0}\n.affoot .wrap{max-width:1560px;margin:0 auto;padding:0 clamp(22px,3.4vw,64px)}\n.affoot .fg{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:26px;align-items:start}\n.affoot .flogo{display:block;height:52px;width:64px;margin-bottom:16px;background-color:currentColor;color:#EEF7CA;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:left center;mask-position:left center;-webkit-mask-size:contain;mask-size:contain}\n.affoot a{color:#b6bda2;text-decoration:none;display:block;margin-bottom:6px;transition:.15s}\n.affoot a:hover{color:#EEF7CA}\n.affoot .fbot{margin-top:34px;padding-top:18px;border-top:1px solid #262723;font-size:11.5px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;letter-spacing:.4px}\n.affoot .fbot a{display:inline;margin-bottom:0;color:inherit;text-decoration:underline;text-underline-offset:3px}\n.affoot .fbot span{white-space:nowrap}\n.affoot a:focus-visible{outline:2px solid #EEF7CA;outline-offset:3px;border-radius:2px}\n@media (max-width:820px){\n.affoot .fg{grid-template-columns:1fr 1fr;gap:30px 20px}\n.affoot .fg > div:first-child{grid-column:1/-1}\n.affoot .fg a{margin-bottom:0;padding:9px 0}\n.affoot .fg a:first-child{padding-top:0}\n.affoot .fbot a{padding:0;position:relative}\n.affoot .fbot a::after{content:\"\";position:absolute;inset:-14px -8px}\n}\n`;// \"#\" and \"\" both mean nothing was set. See the header note on why this falls\n// through to a constant rather than trusting the panel.\nfunction resolve(prop,fallback){const v=String(prop||\"\").trim();return!v||v===\"#\"?fallback:v;}// A row renders only if it has somewhere to go.\nfunction social(label,href){if(!href)return null;return /*#__PURE__*/_jsx(\"a\",{href:href,target:\"_blank\",rel:\"noopener\",children:label});}/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n */export default function SiteFooter(props){const src=props.mark||MONOGRAM;const maskStyle=src?{WebkitMaskImage:`url(\"${src}\")`,maskImage:`url(\"${src}\")`}:{opacity:.25};return /*#__PURE__*/_jsxs(\"footer\",{className:\"affoot\",children:[/*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:CSS}}),/*#__PURE__*/_jsxs(\"div\",{className:\"wrap\",children:[/*#__PURE__*/_jsxs(\"div\",{className:\"fg\",children:[/*#__PURE__*/_jsxs(\"div\",{children:[/*#__PURE__*/_jsx(\"span\",{className:\"flogo\",style:maskStyle,role:\"img\",\"aria-label\":\"Adam Reign\"}),props.role,/*#__PURE__*/_jsx(\"br\",{}),props.place]}),/*#__PURE__*/_jsxs(\"div\",{children:[/*#__PURE__*/_jsx(\"a\",{href:props.workLink,children:\"Work\"}),/*#__PURE__*/_jsx(\"a\",{href:props.onsetLink,children:\"Two campaigns\"}),/*#__PURE__*/_jsx(\"a\",{href:props.aboutLink,children:\"About\"}),/*#__PURE__*/_jsx(\"a\",{href:props.contactLink,children:\"Contact\"}),/*#__PURE__*/_jsx(\"a\",{href:props.licensingLink,children:\"Licensing\"})]}),/*#__PURE__*/_jsxs(\"div\",{children:[/*#__PURE__*/_jsx(\"a\",{href:\"mailto:\"+props.email,children:props.email}),social(\"Instagram\",resolve(props.instagram,INSTAGRAM)),social(\"LinkedIn\",resolve(props.linkedin,LINKEDIN))]})]}),/*#__PURE__*/_jsxs(\"div\",{className:\"fbot\",children:[/*#__PURE__*/_jsxs(\"span\",{children:[\"COLOR THROUGH\",\" \",/*#__PURE__*/_jsx(\"a\",{href:\"https://orangejuice.film\",target:\"_blank\",rel:\"noopener\",children:\"ORANGE JUICE\"})]}),/*#__PURE__*/_jsx(\"span\",{children:props.copyright})]})]})]});}SiteFooter.defaultProps={role:\"Cinematographer \\xb7 Photographer\",place:\"Miami, Florida \\xb7 Available worldwide\",email:\"ar@adam.film\",instagram:\"\",linkedin:\"\",copyright:\"\\xa9 2026 ADAM FILM CO\",workLink:\"/work\",onsetLink:\"/two-campaigns\",aboutLink:\"/about\",contactLink:\"/contact\",licensingLink:\"/licensing\"};addPropertyControls(SiteFooter,{mark:{type:ControlType.File,title:\"Mark\",allowedFileTypes:[\"svg\"],description:\"Optional override. Defaults to the uploaded adam-reign-monogram.svg, drawn as a mask\"},role:{type:ControlType.String,title:\"Role line\"},place:{type:ControlType.String,title:\"Place line\"},email:{type:ControlType.String,title:\"Email\"},instagram:{type:ControlType.String,title:\"Instagram →\",description:\"Optional override. Empty or # falls back to the real profile URL in the code. To change it for the whole site, edit the INSTAGRAM constant.\"},linkedin:{type:ControlType.String,title:\"LinkedIn →\",description:\"Optional override. Empty or # falls back to the real profile URL in the code.\"},copyright:{type:ControlType.String,title:\"Copyright\"},workLink:{type:ControlType.String,title:\"Work →\"},onsetLink:{type:ControlType.String,title:\"Two campaigns →\",description:\"/two-campaigns. Not /on-set — that is internal vocabulary.\"},aboutLink:{type:ControlType.String,title:\"About →\"},contactLink:{type:ControlType.String,title:\"Contact →\"},licensingLink:{type:ControlType.String,title:\"Licensing →\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SiteFooter\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SiteFooter.map","import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useEffect,useRef,useState}from\"react\";// ---------------------------------------------------------------------------\n// adam.film — the site header.\n//\n// ===========================================================================\n// THE HEADER WAS NEVER ACTUALLY STICKY. FOUND 27 AUG. READ THIS FIRST.\n//\n// `.afnav` has carried `position:sticky;top:0` since it was built, and it has\n// never once stuck — not on mobile, not on desktop, not on any page. Measured\n// on the published /work page at scrollY 826: the nav's top edge was at -826.\n// It scrolls away with the page and never comes back until you scroll up to\n// the very top.\n//\n// WHY. A sticky element can only travel inside its own parent's box. Framer\n// wraps every code component in a container div sized exactly to the\n// component, so the nav's parent is 68px tall — the same 68px as the nav. It\n// has nowhere to stick. It pins for zero pixels and then leaves with its\n// parent. Nothing was misconfigured; the rule was simply written one element\n// too low, and Framer's wrapper is invisible in the editor so there was no\n// reason to suspect it.\n//\n// THE FIX: the WRAPPER becomes the sticky element and the nav goes static\n// inside it. `useStickySlot` tags that wrapper with `.afnav-slot` on mount,\n// because there is no other way to reach it — it belongs to Framer, not to\n// this file. Verified on the published page: at scrollY 826 the nav's top\n// edge is 0.\n//\n// WHY A CLASS FROM JS RATHER THAN `[data-framer-name=\"SiteHeader\"]` IN CSS.\n// The attribute hook works for the sticky rule, but the transform rule under\n// `:has(.afnav.hid)` did not apply on the live page even though\n// `element.matches()` returned true for the same selector. Rather than ship a\n// rule I could not explain, both the slot and the hidden state are plain\n// classes put on by JS, which is deterministic and testable. If you rename the\n// SiteHeader layer nothing breaks, because nothing here depends on the name.\n// ===========================================================================\n//\n// THE HEADER IS DARK ON EVERY PAGE, INCLUDING THE CREAM ONES.\n// Corrected 26 Aug by Adam. This comment used to read \"light for the cream\n// pages — About, Contact, Licensing. Set `Light` on those.\" That was wrong.\n// The design is a dark header sitting on cream, and Licensing is built that\n// way. Leave `Light` off unless Adam says otherwise on a specific page.\n//\n// MOBILE NAV, BUILT 26 AUG. Found by loading /about and /404 at 390px: the\n// four links and the CTA ran straight off the right edge, on every page,\n// because this component had no mobile treatment at all.\n//\n// The comp does have an answer and it is not shippable. variants-v166.html:\n//     @media(max-width:900px){ .navlinks{display:none} }\n// The links simply vanish and nothing replaces them, so a visitor on a phone\n// has no navigation and no \"Start a project\" button. That is a hole in the\n// design rather than a decision, so it is not copied here.\n//\n// What is built instead: below 900px the inline links are replaced by a menu\n// button that opens a panel under the bar carrying the same four links plus\n// the CTA. Above 900px nothing changes. The panel closes on Escape and on a\n// link click, and it cannot appear on desktop because its `display:block`\n// lives inside the same 900px query.\n//\n// HOME IS IN THE PANEL ONLY, NEVER IN THE DESKTOP BAR. Adam, 27 Aug: \"More\n// people than ever, you learn to click the logo. Forget the home link. I added\n// it to the mobile only menu.\" `anchors(true)` prepends it; `anchors(false)`\n// does not. Do not \"tidy\" that asymmetry away.\n//\n// ---------------------------------------------------------------------------\n// THE PANEL SCROLLS, AND THAT IS NOT COSMETIC. Found 27 Aug on a landscape\n// phone. Six rows plus the CTA make the panel 320px tall. A phone held\n// sideways gives Safari about 330px of viewport, and the bar takes 68 of it —\n// so \"Start a project\", the one thing on this menu that turns a visitor into a\n// job, sat 62px below the fold with no way to reach it. Measured before the\n// fix at a 328px viewport: CTA bottom edge 390px. After: panel capped to\n// 253px, CTA reachable.\n//\n// The nav becomes a flex column capped at the viewport height while the panel\n// is open, so the bar keeps its natural height and the panel takes what is\n// left and scrolls inside it. Written that way rather than as\n// `max-height: calc(100dvh - 68px)` so nothing hardcodes the bar's height.\n// `100dvh` excludes mobile browser chrome as it shows and hides; the `100vh`\n// line before it is the fallback.\n//\n// ---------------------------------------------------------------------------\n// THE BAR HIDES ON THE WAY DOWN AND COMES BACK ON THE WAY UP. MOBILE ONLY.\n// Adam's call, 27 Aug.\n//\n// The bar is 68px. On a phone held sideways that is a fifth of everything the\n// visitor can see, and this is a site whose content is photographs. Giving\n// those pixels back while someone scrolls the work is the biggest single win\n// available on a phone.\n//\n// The rules, all deliberate:\n//   · ONLY BELOW 900px. A hiding header on a laptop is a fidget.\n//   · NEVER HIDES IN THE TOP 140px. A bar that vanishes the instant you nudge\n//     the page reads as a glitch. 140 is roughly two flicks.\n//   · NEVER HIDES WHILE THE MENU IS OPEN — `hidden && !open`. A menu that\n//     slides itself off the screen while you read it is the worst version.\n//   · ANY UPWARD SCROLL BRINGS IT BACK, at any depth. That is the contract:\n//     the nav is one flick away, always.\n//   · MOVEMENT UNDER 6px IS IGNORED. iOS rubber-banding produces a stream of\n//     one and two pixel deltas in alternating directions; without the\n//     threshold the bar flickers.\n//   · `prefers-reduced-motion: reduce` turns it off entirely — the listener is\n//     never attached. A stationary bar is a complete experience, not a\n//     degraded one.\n//\n// It moves with `transform`, which costs no layout. `top` was tried first and\n// does nothing: a negative `top` on a sticky element is clamped by its\n// containing block rather than parking it above the viewport. Measured both\n// ways on the live page.\n// ---------------------------------------------------------------------------\n//\n// THE LOGO is drawn as a CSS mask filled with currentColor, NOT an <img>, so\n// one file works cream-on-black and black-on-cream. `filter:brightness(0)` is\n// banned because it produces #000, not the brand black. It is a mask rather\n// than inline SVG because the wordmark is 73KB of hand-traced path data;\n// rounding it to shrink it moved 38% of pixels.\n//\n// THE CATEGORY URL IS `/two-campaigns`, NOT `/on-set`. Runbook §18c-ii. The\n// prop is still called onsetLink for continuity. \"On set\" is internal\n// vocabulary; every comp says Two campaigns.\n// ---------------------------------------------------------------------------\nconst WORDMARK=\"https://framerusercontent.com/assets/WsLSC70K8aFK5mNpY1YzgqScck.svg\";// CSS IS RENDERED INLINE, NOT INJECTED, 7 OCT. It used to be added to <head>\n// from a useEffect, and an effect only runs after the page has painted, so\n// every page load showed the bare HTML for a split second: blue underlined\n// links, grey default buttons, gallery frame numbers as bubbles. Adam saw it\n// on every page change. A <style> rendered as the first child of the root is\n// in Framer's server HTML, ahead of the markup it styles, so it is there on\n// the first paint. dangerouslySetInnerHTML, never {CSS} as a child: React\n// escapes text, which would turn every `>` combinator into &gt;.\nconst CSS=`\n.afnav-slot{position:sticky!important;top:0!important;z-index:60!important}\n.afnav{position:static;width:100%;background:rgba(21,21,22,.86);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border-bottom:1px solid #262723;font-family:Poppins,-apple-system,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased}\n.afnav.lt{background:rgba(238,247,202,.94);border-bottom:1px solid rgba(21,21,22,.13)}\n.afnav .navin{max-width:1560px;margin:0 auto;padding:15px clamp(22px,3.4vw,64px);display:flex;align-items:center;gap:32px}\n.afnav .logo{margin-right:auto;display:block;line-height:0}\n.afnav .mark{display:block;height:29px;width:180px;background-color:currentColor;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:left center;mask-position:left center;-webkit-mask-size:contain;mask-size:contain}\n.afnav .logo{color:#EEF7CA}\n.afnav.lt .logo{color:#151516}\n.afnav .navlinks{display:flex;gap:26px;align-items:center}\n.afnav a{text-decoration:none;font-size:11.5px;letter-spacing:1.8px;text-transform:uppercase;color:#dfe4cd;transition:.15s}\n.afnav a:hover{color:#EEF7CA}\n.afnav.lt a{color:#151516;opacity:.72}\n.afnav.lt a:hover{opacity:1}\n.afnav .cta{background:#EEF7CA;color:#151516;padding:10px 19px;border-radius:2px;font-weight:600;opacity:1}\n.afnav.lt .cta{background:#151516;color:#EEF7CA}\n.afnav a:focus-visible{outline:2px solid #EEF7CA;outline-offset:3px;border-radius:2px}\n.afnav.lt a:focus-visible{outline-color:#151516}\n.afnav .cta:focus-visible{outline-color:#151516;outline-offset:-5px}\n.afnav.lt .cta:focus-visible{outline-color:#EEF7CA;outline-offset:-5px}\n.afnav .burger{display:none;flex:0 0 auto;width:44px;height:44px;margin-right:-11px;align-items:center;justify-content:center;background:none;border:0;padding:0;cursor:pointer;color:#EEF7CA;font-family:inherit}\n.afnav.lt .burger{color:#151516}\n.afnav .burger:focus-visible{outline:2px solid #EEF7CA;outline-offset:-4px;border-radius:2px}\n.afnav.lt .burger:focus-visible{outline-color:#151516}\n.afnav .burger i{display:block;position:relative;width:22px;height:2px;background:currentColor;transition:.18s}\n.afnav .burger i::before,.afnav .burger i::after{content:\"\";position:absolute;left:0;width:22px;height:2px;background:currentColor;transition:.18s}\n.afnav .burger i::before{top:-7px}\n.afnav .burger i::after{top:7px}\n.afnav .burger.on i{background:transparent}\n.afnav .burger.on i::before{top:0;transform:rotate(45deg)}\n.afnav .burger.on i::after{top:0;transform:rotate(-45deg)}\n.afnav .panel{display:none}\n:target{scroll-margin-top:96px}\n@media (max-width:900px){\n.afnav .navin{gap:18px}\n.afnav .navlinks{display:none}\n.afnav .burger{display:inline-flex}\n.afnav .mark{height:26px;width:158px}\n.afnav .panel.on{display:block;border-top:1px solid #262723;background:#151516}\n.afnav.lt .panel.on{border-top-color:rgba(21,21,22,.13);background:#EEF7CA}\n.afnav .panel .pin{max-width:1560px;margin:0 auto;padding:6px clamp(22px,3.4vw,64px) 22px;display:flex;flex-direction:column}\n.afnav .panel a{display:block;padding:15px 0;border-bottom:1px solid rgba(238,247,202,.13)}\n.afnav.lt .panel a{border-bottom-color:rgba(21,21,22,.13)}\n.afnav .panel a.cta{margin-top:20px;border-bottom:0;text-align:center;padding:16px 19px}\n.afnav:has(.panel.on){display:flex;flex-direction:column;max-height:100vh;max-height:100dvh}\n.afnav .panel.on{overflow-y:auto;overscroll-behavior:contain;min-height:0}\n.afnav-slot{transition:transform .28s cubic-bezier(.2,.7,.3,1)}\n.afnav-slot.afnav-hid{transform:translateY(-100%)}\n}\n@media (prefers-reduced-motion:reduce){.afnav-slot{transition:none}.afnav-slot.afnav-hid{transform:none}}\n`;// See \"THE BAR HIDES ON THE WAY DOWN\" in the header comment. Every constant\n// here is explained there; do not tune one without reading it.\nconst REVEAL_ABOVE=140// never hide inside the first 140px of the page\n;const JITTER=6// ignore deltas smaller than this\n;function useHideOnScroll(){const[hidden,setHidden]=useState(false);useEffect(()=>{if(typeof window===\"undefined\")return;// Reduced motion: never attach the listener. The bar stays put.\nif(window.matchMedia&&window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches)return;let last=window.scrollY;let ticking=false;const onScroll=()=>{if(ticking)return;ticking=true;requestAnimationFrame(()=>{ticking=false;const y=window.scrollY;const dy=y-last;if(Math.abs(dy)<JITTER)return;last=y;if(y<REVEAL_ABOVE){setHidden(false);return;}setHidden(dy>0);});};window.addEventListener(\"scroll\",onScroll,{passive:true});return()=>window.removeEventListener(\"scroll\",onScroll);},[]);return hidden;}/**\n * Framer's component wrapper is the element that has to be sticky — see the\n * block at the top of this file. It belongs to Framer, so the only way to\n * reach it is to climb one level from our own root and tag it.\n */function useStickySlot(ref,hide){useEffect(()=>{const wrap=ref.current&&ref.current.parentElement;if(!wrap)return;wrap.classList.add(\"afnav-slot\");return()=>wrap.classList.remove(\"afnav-slot\");},[ref]);useEffect(()=>{const wrap=ref.current&&ref.current.parentElement;if(!wrap)return;wrap.classList.toggle(\"afnav-hid\",hide);},[ref,hide]);}/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n */export default function SiteHeader(props){const navRef=useRef(null);const[open,setOpen]=useState(false);const hidden=useHideOnScroll();useStickySlot(navRef,hidden&&!open);useEffect(()=>{if(!open||typeof document===\"undefined\")return;const onKey=e=>{if(e.key===\"Escape\")setOpen(false);};document.addEventListener(\"keydown\",onKey);return()=>document.removeEventListener(\"keydown\",onKey);},[open]);const src=props.logo||WORDMARK;const maskStyle=src?{WebkitMaskImage:`url(\"${src}\")`,maskImage:`url(\"${src}\")`}:{background:\"currentColor\",opacity:.25};const links=[[\"Work\",props.workLink],[\"Two campaigns\",props.onsetLink],[\"About\",props.aboutLink],[\"Contact\",props.contactLink]];// Home is prepended for the panel only. See the header comment.\nconst anchors=inPanel=>[...inPanel?[[\"Home\",props.homeLink||\"/\"]]:[],...links].map(([label,href])=>/*#__PURE__*/_jsx(\"a\",{href:href||\"#\",onClick:inPanel?()=>setOpen(false):undefined,children:label},label)).concat(/*#__PURE__*/_jsx(\"a\",{className:\"cta\",href:props.ctaLink||\"/contact\",onClick:inPanel?()=>setOpen(false):undefined,children:props.ctaLabel},\"cta\"));return /*#__PURE__*/_jsxs(\"nav\",{ref:navRef,className:\"afnav\"+(props.light?\" lt\":\"\"),children:[/*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:CSS}}),/*#__PURE__*/_jsxs(\"div\",{className:\"navin\",children:[/*#__PURE__*/_jsx(\"a\",{className:\"logo\",href:props.homeLink||\"/\",\"aria-label\":\"Adam Reign, home\",children:/*#__PURE__*/_jsx(\"span\",{className:\"mark\",style:maskStyle})}),/*#__PURE__*/_jsx(\"div\",{className:\"navlinks\",children:anchors(false)}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",className:\"burger\"+(open?\" on\":\"\"),\"aria-expanded\":open,\"aria-controls\":\"afnav-panel\",\"aria-label\":open?\"Close menu\":\"Menu\",onClick:()=>setOpen(!open),children:/*#__PURE__*/_jsx(\"i\",{})})]}),/*#__PURE__*/_jsx(\"div\",{className:\"panel\"+(open?\" on\":\"\"),id:\"afnav-panel\",hidden:!open,children:/*#__PURE__*/_jsx(\"div\",{className:\"pin\",children:anchors(true)})})]});}SiteHeader.defaultProps={light:false,ctaLabel:\"Start a project\",homeLink:\"/\",workLink:\"/work\",onsetLink:\"/two-campaigns\",aboutLink:\"/about\",contactLink:\"/contact\",ctaLink:\"/contact\"};addPropertyControls(SiteHeader,{logo:{type:ControlType.File,title:\"Logo\",allowedFileTypes:[\"svg\"],description:\"Optional override. Defaults to the uploaded adam-reign-wordmark.svg, drawn as a mask so it takes the nav's color\"},light:{type:ControlType.Boolean,title:\"Light\",enabledTitle:\"Cream\",disabledTitle:\"Dark\",description:\"Leave OFF. The header is dark on every page, cream ones included. Corrected 26 Aug.\"},ctaLabel:{type:ControlType.String,title:\"CTA label\"},homeLink:{type:ControlType.String,title:\"Home →\",description:\"Used by the wordmark on every width, and by the Home row that appears in the mobile menu only.\"},workLink:{type:ControlType.String,title:\"Work →\"},onsetLink:{type:ControlType.String,title:\"Two campaigns →\",description:\"/two-campaigns. Not /on-set — that is internal vocabulary.\"},aboutLink:{type:ControlType.String,title:\"About →\"},contactLink:{type:ControlType.String,title:\"Contact →\"},ctaLink:{type:ControlType.String,title:\"CTA →\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SiteHeader\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SiteHeader.map"],"mappings":"mMAwHA,SAAS,EAAQ,EAAK,EAAS,CAAC,IAAM,EAAE,OAAO,GAAM,EAAE,CAAC,CAAC,KAAK,EAAE,MAAM,CAAC,GAAG,IAAI,IAAI,EAAS,CAAE,CAC7F,SAAS,EAAO,EAAM,EAAK,CAAsB,OAAjB,EAAqC,EAAK,IAAI,CAAM,OAAK,OAAO,SAAS,IAAI,WAAW,SAAS,CAAK,CAAC,EAA3F,IAA6F,CAGtI,SAAwB,EAAW,EAAM,CAAC,IAAM,EAAI,EAAM,MAAM,EAAe,EAAU,EAAI,CAAC,gBAAgB,QAAQ,EAAI,IA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