/* Motion follows the work: reveal, assemble, resolve. No image tilt. */
:root {
  --motion-out: cubic-bezier(.22, 1, .36, 1);
  --motion-travel: cubic-bezier(.76, 0, .24, 1);
}
.hero--sheep .hero__media { perspective: none; }
.hero--sheep .hero__media img,
.js .hero--sheep .hero__media img {
  transform: none;
  animation: none;
  filter: none;
  transition: none;
  will-change: auto;
}
.hero-sequence__pin { position: relative; }
.hero-sequence .hero { isolation: isolate; }
.hero-sequence .hero__media { z-index: -1; }
.hero-sequence .statement { position: relative; }
.motion-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.motion-word > span { display: inline-block; }
.page-progress { position: fixed; top: 0; left: 0; z-index: 90; height: 3px; width: 100%; transform: scaleX(0); transform-origin: left; background: var(--orange); pointer-events: none; }
.brand-stage { background: #101010; color: var(--paper); overflow: clip; }
.brand-stage__pin { display: grid; grid-template-columns: 3.5fr 8fr; align-items: center; padding: 90px var(--pad); gap: 2%; }
.brand-stage__copy .title { font-size: clamp(44px, 5.2vw, 78px); max-width: 12ch; }
.brand-stage__copy > p { font-size: 18px; max-width: 30ch; margin: 30px 0 36px; }
.brand-stage__visual { min-width: 0; }
.brand-stage__canvas { position: relative; width: 100%; height: clamp(480px, 50vw, 760px); }
.brand-stage__canvas canvas { width: 100%; height: 100%; display: block; }
.brand-stage__fallback { position: absolute; inset: 0; margin: auto; width: 85%; height: 85%; object-fit: contain; }
.brand-stage--ready .brand-stage__fallback { display: none; }
@media (min-width: 1001px) and (prefers-reduced-motion: no-preference) {
  .motion-ready .brand-stage { height: 165svh; }
  .motion-ready .brand-stage .brand-stage__pin { position: sticky; top: 0; height: 100svh; padding-block: 90px 30px; }
  .motion-ready .brand-stage .brand-stage__canvas { height: min(78svh, 760px); }
}
@media (max-width: 1000px) {
  .brand-stage__pin { grid-template-columns: 1fr; gap: 20px; padding-block: 80px; }
  .brand-stage__copy .title { max-width: none; }
  .brand-stage__copy > p { max-width: 44ch; }
  .brand-stage__canvas { height: 580px; }
}
@media (max-width: 760px) {
  .brand-stage__canvas { height: 420px; }
  .brand-stage__copy .title { font-size: 44px; }
}

@media (prefers-reduced-motion: no-preference) {
  /* Alternate the complete step, keeping icon and copy together. */
  .js .rows .row[data-in] { --entry-x: -48px; opacity: 0; transform: translateX(var(--entry-x)); filter: blur(3px); transition: opacity 520ms var(--motion-out), transform 800ms var(--motion-out), filter 650ms var(--motion-out); transition-delay: 0ms; }
  .js .rows .row[data-in]:nth-child(even) { --entry-x: 48px; }
  .js .rows .row[data-in].is-in { opacity: 1; transform: translateX(0); filter: blur(0); }
  .motion-ready [data-motion-title] { opacity: 1 !important; transform: none !important; }
  .motion-ready [data-motion-title] .motion-word > span { transform: translateY(110%); transition: transform 850ms var(--motion-out); transition-delay: calc(var(--word, 0) * 45ms); }
  .motion-ready [data-motion-title].motion-in .motion-word > span { transform: none; }
  .motion-ready .project__image { isolation: isolate; }
  .motion-ready .project__image::after { content: ''; position: absolute; inset: 0; background: var(--black-3); transform-origin: top; transform: scaleY(1); transition: transform 1000ms var(--motion-travel); pointer-events: none; }
  .motion-ready .project.motion-in .project__image::after { transform: scaleY(0); }
  .motion-ready .project__image img { transform: scale(1.07); transition: transform 1400ms var(--motion-out); }
  .motion-ready .project.motion-in .project__image img { transform: scale(1); }
  .motion-ready .project figcaption, .motion-ready .project__description { opacity: 0; transform: translateY(12px); transition: opacity 600ms var(--motion-out) 260ms, transform 750ms var(--motion-out) 260ms; }
  .motion-ready .project.motion-in figcaption, .motion-ready .project.motion-in .project__description { opacity: 1; transform: none; }
  .motion-ready .project__image:hover img { transform: scale(1.025); transition-duration: 650ms; }
  .motion-ready .expertise__list > a { transition: background-color 180ms var(--motion-out), transform 450ms var(--motion-out); }
  .motion-ready .expertise__list > a:hover { transform: translateX(8px); }
  .motion-ready .expertise__list > a > span { transition: transform 350ms var(--motion-out); }
  .motion-ready .expertise__list > a:hover > span { transform: translate(3px, -3px); }
  .motion-ready .sheep-story__image { overflow: hidden; }
  .motion-ready .sheep-story__image img { transform: translateY(var(--story-drift, 0px)) scale(1.06); }
  .motion-ready .production > figure { overflow: hidden; }
  .motion-ready .production > figure img { transform: scale(var(--production-scale, 1)); }
  .motion-ready .footer__word { transform: translateY(var(--footer-rise, 0px)); }
  .motion-ready .nav__links a { position: relative; }
  .motion-ready .nav__links a::after { content: ''; position: absolute; inset: auto 0 -5px; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: right; transition: transform 220ms var(--motion-out); }
  .motion-ready .nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
  .motion-ready .pill i { transition: transform 220ms var(--motion-out); }
  .motion-ready .pill:hover i { transform: translate(3px, -3px); }
  .motion-ready .pill:active { transform: scale(.98); }
}

@media (min-width: 1001px) and (prefers-reduced-motion: no-preference) {
  .motion-ready .hero-sequence { height: 230svh; }
  .motion-ready .hero-sequence__pin { position: sticky; top: 0; height: 100svh; overflow: hidden; }
  .motion-ready .hero-sequence .hero { height: 100%; min-height: 0; }
  .motion-ready .hero-sequence .statement { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; justify-content: center; padding-top: 110px; transform: translateY(100%); }
  .motion-ready .hero-sequence .statement__text { font-size: clamp(72px, 8vw, 128px); }
  .motion-ready .hero-sequence .statement__foot { align-items: center; }
}




@media (prefers-reduced-motion: reduce) {
  .hero-sequence { height: auto !important; }
  .hero-sequence__pin { position: relative !important; height: auto !important; }
  .hero-sequence .statement { transform: none !important; position: relative !important; }
  .motion-word > span, .hero__foot, .footer__word, .sheep-story__image img, .production > figure img { transform: none !important; translate: none !important; opacity: 1 !important; }
  .hero__content { translate: none !important; opacity: 1 !important; }
  .page-progress { display: none; }
}

/* Native cross-document transitions keep normal links and browser navigation. */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: 160ms var(--motion-out) both pageOut; }
  ::view-transition-new(root) { animation: 420ms var(--motion-out) both pageIn; }
}
@keyframes pageOut { to { opacity: 0; } }
@keyframes pageIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
}

/* Material, focus and light — one brand color, three depths. */
.nav {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transform: none;
}
.nav.is-scrolled {
  background: rgb(14 14 14 / 82%);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-dark);
  transform: none;
}
.nav.is-scrolled.nav--on-light {
  background: rgb(243 242 240 / 86%);
  border-bottom: 1px solid var(--border-light);
}
.project-dialog::backdrop { background: rgb(0 0 0 / 72%); backdrop-filter: blur(14px); }
.project__expand { background: rgb(243 242 240 / 88%); backdrop-filter: blur(12px); border-radius: 50%; border: 1px solid rgb(14 14 14 / 16%); }
.brand-stage { border-block: 1px solid var(--border-dark); }
.brand-stage__pin { isolation: isolate; position: relative; }
.brand-stage__signature {
  position: absolute; z-index: -2; left: -2%; top: 14%;
  font-size: clamp(130px, 26vw, 440px); font-weight: 600; line-height: 1;
  letter-spacing: -.08em; color: transparent; -webkit-text-stroke: 1px rgb(252 127 16 / 17%);
  pointer-events: none; transform: translateX(calc(var(--assembly, 1) * -7%));
}
.brand-stage__visual { position: relative; isolation: isolate; border: 1px solid var(--border-dark); border-radius: 18px; background: radial-gradient(circle at 50% 50%, rgb(252 127 16 / 6%), rgb(255 255 255 / 2%) 72%); }
.brand-stage__visual::before {
  content: ''; position: absolute; z-index: -1; inset: 22% 16%;
  background: linear-gradient(120deg, transparent 15%, rgb(252 127 16 / 23%) 49%, transparent 78%);
  filter: blur(55px); transform: rotate(-18deg) translateX(calc((1 - var(--assembly, 1)) * -18%));
  pointer-events: none;
}
.brand-stage__copy > .brand-stage__eyebrow {
  font-size: 12px; letter-spacing: .18em; color: var(--orange); margin: 0 0 24px; max-width: none;
}
.brand-stage__timeline {
  grid-column: 1 / -1; display: flex; justify-content: space-between; position: relative;
  padding-top: 20px; border-top: 1px solid rgb(255 255 255 / 18%);
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #a6a3a0;
}
.brand-stage__timeline::before {
  content: ''; position: absolute; top: -1px; left: 0; width: 100%; height: 2px;
  background: var(--orange); transform: scaleX(var(--assembly, 1)); transform-origin: left;
}
.brand-stage[data-phase="drawing"] .brand-stage__timeline span:first-child,
.brand-stage[data-phase="material"] .brand-stage__timeline span:nth-child(2),
.brand-stage[data-phase="presence"] .brand-stage__timeline span:last-child { color: var(--orange); }
@media (min-width: 1001px) and (prefers-reduced-motion: no-preference) {
  .motion-ready .brand-stage .brand-stage__pin { grid-template-rows: minmax(0, 1fr) auto; padding-bottom: 28px; }
  .motion-ready .brand-stage .brand-stage__canvas { height: min(70svh, 720px); }
  .motion-ready .hero-sequence .statement {
    background: var(--paper);
    backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .motion-ready [data-motion-title] .motion-word > span {
    filter: blur(6px); opacity: .2;
    transition: transform 750ms var(--motion-out), filter 650ms var(--motion-out), opacity 450ms var(--motion-out);
    transition-delay: calc(var(--word, 0) * 40ms);
  }
  .motion-ready [data-motion-title].motion-in .motion-word > span { filter: blur(0); opacity: 1; }
  .motion-ready .project__image img { filter: blur(5px); transition: transform 1200ms var(--motion-out), filter 800ms var(--motion-out); }
  .motion-ready .project.motion-in .project__image img { filter: blur(0); }
  .pill { transition: background-color 220ms var(--motion-out), color 220ms var(--motion-out), transform 220ms var(--motion-out), border-color 220ms var(--motion-out); }
  .pill:hover { transform: translateY(-2px); }
  .pill:focus-visible { transform: none; }
}
@media (max-width: 1000px) {
  .brand-stage__signature { top: 34%; }
  .brand-stage__timeline { margin-top: 20px; }
}
@media (max-width: 760px) {
  .brand-stage__timeline { font-size: 10px; letter-spacing: .02em; }
  .brand-stage__visual::before { filter: blur(30px); }
}
@media (prefers-reduced-motion: reduce) {
  .brand-stage__signature, .brand-stage__visual::before { transform: none; }
  .hero__content { filter: none !important; }
}
.brand-stage__timeline { padding-right: 64px; }
@media (max-width: 760px) { .brand-stage__timeline { padding-right: 0; } }

/* The forearms sit flush on the full-width section divider line; the paw overlaps it. */
.process--sheep { padding-top: 56px; }
.process__heading { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; isolation: isolate; margin-inline: calc(-1 * var(--pad)); padding-inline: var(--pad); border-bottom: 1px solid var(--border-light-strong); }
.process__heading .title { padding-bottom: 36px; }
.process__companion { --companion-width: clamp(240px, 31vw, 420px); width: var(--companion-width); flex: 0 0 auto; position: relative; margin-bottom: 0; pointer-events: none; z-index: 2; }
.process__companion img { display: block; width: 100%; height: auto; aspect-ratio: 1024 / 640; margin-bottom: 0; transform-origin: 50% 100%; }
.process--sheep .rows { margin-top: clamp(44px, 4.5vw, 64px); }
@media (prefers-reduced-motion: no-preference) {
  .motion-ready .process__companion { opacity: 0; transition: opacity 600ms var(--motion-out); }
  .motion-ready .process__companion.motion-in { opacity: 1; }
  .motion-ready .process__companion.is-active img { animation: sheep-breathe 3.6s cubic-bezier(.45, 0, .55, 1) 2; }
}
@keyframes sheep-breathe { 0%, 100% { transform: scaleY(1) rotate(0); } 50% { transform: scaleY(1.014) rotate(-.35deg); } }
@media (max-width: 760px) {
  .process--sheep { padding-top: 40px; }
  .process__heading { gap: 0; }
  .process__heading .title { font-size: clamp(30px, 7vw, 44px); max-width: 5ch; padding-bottom: 22px; }
  .process__companion { --companion-width: 48vw; }
}
@media (prefers-reduced-motion: reduce) {
  .process__companion, .process__companion img { opacity: 1; transform: none !important; transition: none; animation: none !important; }
}

/* Process pictograms share the site's vector weight. */
.process .rows { overflow: clip; padding-block: 2px; }
.process .row h3 { display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); }
.process__icon { display: grid; place-items: center; width: 64px; height: 64px; flex: 0 0 64px; background: var(--orange); color: var(--black); border-radius: 14px; border: 1px solid rgb(14 14 14 / 22%); }
.process__icon .icon { width: 32px; height: 32px; }
.process--dark .row, .process--dark .row:last-child { background: #141413; border: 1px solid var(--border-dark-strong); }
.process--dark .row:hover { border-color: var(--orange); }
@media (max-width: 760px) {
  .process__icon { width: 48px; height: 48px; flex-basis: 48px; border-radius: 12px; }
  .process__icon .icon { width: 26px; height: 26px; }
  .process .row h3 { gap: 14px; }
}
@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  .js .rows .row[data-in] { --entry-x: -24px; }
  .js .rows .row[data-in]:nth-child(even) { --entry-x: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .rows .row[data-in] { opacity: 1; transform: none; filter: none; transition: none; }
}

/* Large project frames advance horizontally with native vertical scrolling. */
.portfolio__progress { display: none; }
@media (min-width: 1001px) and (prefers-reduced-motion: no-preference) {
  .motion-ready .portfolio { padding: 0; height: var(--portfolio-height, 100svh); }
  .motion-ready .portfolio__pin { position: sticky; top: 0; height: 100svh; padding: 100px var(--pad) 26px; display: flex; flex-direction: column; overflow: clip; }
  .motion-ready .portfolio__head { flex: none; }
  .motion-ready .portfolio__head .title { font-size: clamp(36px, 3.6vw, 58px); max-width: 19ch; }
  .motion-ready .portfolio__head > p { font-size: 16px; }
  .motion-ready .portfolio__filters { margin: 22px 0; }
  .motion-ready .portfolio__filters button { min-height: 40px; padding: 9px 16px; font-size: 14px; }
  .motion-ready .portfolio__viewport { overflow: clip; flex: 1; min-height: 0; margin-right: calc(-1 * var(--pad)); }
  .motion-ready .portfolio__grid, .motion-ready .portfolio__grid.is-filtered { position: relative; display: flex; gap: 28px; height: 100%; margin: 0; align-items: stretch; }
  .motion-ready .portfolio .project { flex: 0 0 60vw; margin: 0; min-width: 0; display: flex; flex-direction: column; padding: 16px 16px 18px; background: #141413; border: 1px solid var(--border-dark-strong); border-radius: 16px; }
  .motion-ready .portfolio .project:last-child { margin-right: var(--pad); }
  .motion-ready .portfolio .project__image { flex: 1; min-height: 0; border-radius: 10px; border: 1px solid rgb(255 255 255 / 10%); }
  .motion-ready .portfolio .project__image img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; filter: none; transform: none; }
  .motion-ready .portfolio .project__image::after { display: none; }
  .motion-ready .portfolio .project figcaption, .motion-ready .portfolio .project__description { opacity: 1; transform: none; }
  .motion-ready .portfolio .project figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 14px; }
  .motion-ready .portfolio .project h3 { font-size: 26px; }
  .motion-ready .portfolio .project figcaption p { margin: 0; }
  .motion-ready .portfolio .project__description { font-size: 14px; margin-top: 7px; max-width: 65ch; }
  .motion-ready .portfolio__progress { display: block; flex: none; height: 2px; margin-top: 22px; background: rgb(255 255 255 / 18%); }
  .motion-ready .portfolio__progress span { display: block; height: 100%; background: var(--orange); transform-origin: left; transform: scaleX(calc(.04 + var(--portfolio-progress, 0) * .96)); }
}
@media (min-width: 1001px) and (max-height: 720px) and (prefers-reduced-motion: no-preference) {
  .motion-ready .portfolio__pin { padding-top: 80px; }
  .motion-ready .portfolio__head .title { font-size: 36px; }
  .motion-ready .portfolio__filters { margin-block: 12px; }
  .motion-ready .portfolio .project__description { display: none; }
}

/* Brand statement: Sheep with a physical signage piece. */
.statement--brand { overflow: clip; background: var(--paper); border-block: 1px solid var(--border-light); }
.statement__layout { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 5%; width: 100%; }
.statement__eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .16em; margin-bottom: 26px; }
.statement--brand .statement__text { font-size: clamp(48px, 6.8vw, 110px); line-height: .98; }
.statement--brand .statement__lead { margin: 30px 0; font-size: clamp(16px, 1.3vw, 20px); max-width: 43ch; }
.statement__art { color: var(--black); min-width: 0; }
.statement__scene { display: block; width: 100%; height: min(64svh, 640px); object-fit: contain; }
.statement__craft { display: flex; justify-content: space-between; padding: 16px 20px; border: 1px solid var(--border-light-strong); border-radius: 12px; background: rgb(255 255 255 / 60%); margin: 12px 6% 0; font-size: 12px; letter-spacing: .04em; gap: 20px; }
@media (min-width: 1001px) and (prefers-reduced-motion: no-preference) {
  .motion-ready .hero-sequence .statement__text { font-size: clamp(48px, 6.8vw, 110px); }
  .motion-ready .statement__scene { transform: translateY(calc((1 - var(--manifesto-entry, 1)) * 35px)); }
}
@media (max-width: 1000px) {
  .statement__layout { gap: 24px; }
  .statement__craft { margin-inline: 0; font-size: 11px; }
}
@media (max-width: 760px) {
  .statement__layout { grid-template-columns: 1fr; gap: 32px; }
  .statement__eyebrow { font-size: 10px; margin-bottom: 22px; }
  .statement__art { width: min(100%, 440px); justify-self: center; }
  .statement__scene { height: auto; max-height: 520px; }
  .statement--brand .statement__text { font-size: clamp(44px, 10vw, 64px); }
  .statement__craft { margin-inline: 2%; }
}

.portfolio__navigation { display: none; }
@media (min-width: 1001px) and (prefers-reduced-motion: no-preference) {
  .motion-ready .portfolio__navigation { display: flex; align-items: center; gap: 12px; margin-top: 18px; flex: none; }
  .motion-ready .portfolio__navigation .portfolio__progress { flex: 1; margin: 0 16px 0 0; }
  .portfolio__position { font-size: 12px; font-variant-numeric: tabular-nums; margin-right: 8px; }
  .portfolio__navigation button { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #666; border-radius: 50%; color: var(--paper); }
  .portfolio__navigation button:hover:not(:disabled) { background: var(--orange); color: var(--black); border-color: var(--orange); }
  .portfolio__navigation button:disabled { opacity: .3; cursor: default; }
  .portfolio__navigation .icon { width: 20px; height: 20px; }
  .portfolio__continue { display: inline-flex; gap: 10px; align-items: center; font-size: 13px; margin-left: 12px; padding: 10px 0; }
}

/* Three fabrication stages fill with the actual scroll position. */
.statement__step { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.statement__meter { position: relative; display: block; height: 3px; background: rgb(14 14 14 / 16%); }
.statement__meter i { display: block; height: 100%; background: var(--orange); transform-origin: left; transform: scaleX(var(--step-progress, 1)); }
.statement__step.is-current > span:last-child { font-weight: 600; }
.statement__step.is-complete .statement__meter i { background: var(--black); }
.statement__scene { transform-origin: 50% 94%; }
@media (prefers-reduced-motion: no-preference) {
  .motion-ready .statement__scene { animation: sheep-craft 1s linear both paused; animation-delay: var(--craft-time, 0s); }
}
@keyframes sheep-craft {
  0% { scale: 1; rotate: -1deg; }
  33.333% { scale: 1.025; rotate: .6deg; }
  66.667% { scale: 1.045; rotate: -.6deg; }
  100% { scale: 1; rotate: 0deg; }
}
@media (prefers-reduced-motion: reduce) {
  .statement__meter i { transform: scaleX(1); }
  .statement__scene { animation: none !important; transform: none !important; scale: 1; rotate: 0deg; }
}
